/* EDS project page — page-specific layout rules.
   Loaded after assets/styles.css. Reuses existing custom properties and
   component classes (.section, .section-intro, .section-label, .button,
   .hero-lede, .hero-actions, .contact-section, .contact-copy) and adds
   layout only for shapes unique to this page. Does not redefine palette
   tokens or touch assets/styles.css. */

/* ---------- Hero ---------- */

.eds-hero {
  width: min(100% - var(--pad) * 2, var(--max));
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) 0 clamp(64px, 8vw, 100px);
}

/* Short landscape phones get none of the width-based tiers' relief. */
@media (max-height: 500px) and (orientation: landscape) {
  .eds-hero {
    padding-top: clamp(24px, 6vh, 40px);
    padding-bottom: clamp(20px, 5vh, 28px);
  }

  .eds-hero h1 {
    margin-bottom: 14px;
  }

  .eds-hero .hero-lede {
    margin-bottom: 16px;
  }
}

.eds-breadcrumb {
  display: inline-block;
  margin: -12px -4px 16px;
  padding: 12px 4px;
  color: var(--dim);
  font-size: 0.82rem;
  font-weight: 700;
  transition: color 160ms ease;
}

.eds-breadcrumb:hover {
  color: var(--ink);
}

.eds-hero h1 {
  max-width: 780px;
  margin-bottom: 24px;
  color: var(--ink);
  font-size: clamp(2.6rem, 5.6vw, 4.6rem);
  font-weight: 900;
  line-height: 1.03;
  letter-spacing: -0.01em;
}

.eds-hero .hero-lede {
  margin-bottom: 26px;
}

.eds-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 34px;
}

.eds-tag {
  padding: 7px 10px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eds-tag-status {
  color: var(--red);
  border-color: rgba(122, 30, 39, 0.45);
  background: var(--red-soft);
}

.eds-tag-domain {
  color: var(--dim);
}

/* ---------- Overview: prose + spec panel ---------- */

.overview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.overview-copy p {
  max-width: 560px;
  margin-bottom: 20px;
  color: #c3c8cf;
  font-size: clamp(1rem, 1.4vw, 1.14rem);
}

.overview-copy p:last-child {
  margin-bottom: 0;
}

/* .spec-panel / .spec-row moved to assets/styles.css (shared — also used
   on the homepage contact section and project-hera.css) */

/* ---------- Sensing inputs grid ---------- */

.eds-sensing .section-intro p {
  max-width: 720px;
  color: #c3c8cf;
  font-size: clamp(1rem, 1.3vw, 1.06rem);
}

.input-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}

.input-card {
  padding: 24px;
  background: rgba(15, 15, 19, 0.94);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--chamfer-sm)), calc(100% - var(--chamfer-sm)) 100%, 0 100%);
  transition: background-color 160ms ease;
}

.input-card:hover {
  background: rgba(23, 23, 27, 0.96);
}

/* 7 cards never divides evenly into the 3-col (desktop) or 2-col (tablet)
   grid — without this, the trailing row leaves 1-2 empty, still-bordered
   grid cells that read as missing/broken cards rather than intentional
   whitespace. Spanning the last card closes the row instead. */
.input-grid .input-card:last-child {
  grid-column: 1 / -1;
}

.input-index {
  display: block;
  margin-bottom: 20px;
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.input-card h3 {
  min-height: 44px;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.2;
  text-transform: uppercase;
}

.input-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- Forecasting / alerting pipeline ---------- */

.pipeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}

.pipeline-step {
  position: relative;
  padding: 22px 20px;
  background: rgba(15, 15, 19, 0.94);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--chamfer-sm)), calc(100% - var(--chamfer-sm)) 100%, 0 100%);
}

.pipeline-step:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: 0;
  z-index: 1;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  transform: translate(0, -50%);
  color: var(--dim);
  background: var(--black-soft);
  font-size: 0.7rem;
  content: "\2192";
}

.pipeline-index {
  display: block;
  margin-bottom: 16px;
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pipeline-step h3 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 0.94rem;
  text-transform: uppercase;
}

.pipeline-step p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

/* ---------- Operational awareness outputs ---------- */

.output-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}

.output-card {
  padding: 24px;
  background: rgba(15, 15, 19, 0.94);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--chamfer-sm)), calc(100% - var(--chamfer-sm)) 100%, 0 100%);
  transition: background-color 160ms ease;
}

.output-card:hover {
  background: rgba(23, 23, 27, 0.96);
}

.output-card h3 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 1rem;
  text-transform: uppercase;
}

.output-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- Prototype status timeline ---------- */

.status-timeline {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.status-item {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.status-marker {
  position: relative;
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border: 1px solid var(--dim);
  border-radius: 50%;
  background: transparent;
}

.status-item[data-state="done"] .status-marker {
  border-color: var(--ink);
  background: var(--ink);
}

.status-item[data-state="active"] .status-marker {
  border-color: var(--red);
  background: var(--red);
}

.status-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}

.status-heading h3 {
  margin-bottom: 0;
  color: var(--ink);
  font-size: 1.02rem;
  text-transform: uppercase;
}

.status-state {
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.status-item[data-state="active"] .status-state {
  color: var(--red);
}

.status-item[data-state="done"] .status-state {
  color: var(--muted);
}

.status-content p {
  max-width: 640px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.status-note {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin: 28px 0 0;
  padding: 16px 20px;
  border: 1px solid var(--line);
  background: rgba(15, 15, 19, 0.6);
  color: var(--muted);
  font-size: 0.88rem;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--chamfer-sm)), calc(100% - var(--chamfer-sm)) 100%, 0 100%);
}

.status-note-label {
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- Collaboration list (contact section) ---------- */

.collab-list {
  display: grid;
  gap: 10px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.collab-list li {
  position: relative;
  padding-left: 18px;
  color: #c5cad1;
  font-size: 0.94rem;
}

.collab-list li::before {
  position: absolute;
  left: 0;
  color: var(--red);
  content: "\2013";
}

/* ---------- Responsive ---------- */

@media (max-width: 1060px) {
  .overview-layout {
    grid-template-columns: 1fr;
  }

  .input-grid,
  .output-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pipeline {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .pipeline-step:not(:last-child)::after {
    top: auto;
    right: 50%;
    bottom: 0;
    transform: translate(50%, 0) rotate(90deg);
  }
}

@media (max-width: 700px) {
  .input-grid,
  .output-grid {
    grid-template-columns: 1fr;
  }

  .status-item {
    grid-template-columns: 14px minmax(0, 1fr);
    gap: 14px;
  }

  .eds-meta {
    gap: 10px;
  }
}
