/* Homepage. Extends style.css: same ground and accent, a wider grid, a display
   face for headings and a mono face for the labels that name each band. */

.home {
  --hair: rgba(148, 163, 184, 0.16);
  --dim: #7d846f;
  --panel: #161814;

  --display: "Archivo", "Inter", -apple-system, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --rail: 160px;
  --gutter: 48px;
  --col: 660px;

  width: 100%;
  padding: 0 0 140px;
}

/* One grid for the whole page: a label rail, then the reading column.
   Every band opts into it, so the labels line up down the page. */
.home .band {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, var(--col));
  gap: var(--gutter);
  justify-content: center;
  padding: 0 32px;
}

.home .band + .band,
.home .page-head + .band,
.home .standing + .band { margin-top: 92px; }

/* A band's name is a reading on the page's scale, not a stamp over the text: it
   keeps its own case, and a graduation hangs off the line above it in the same
   direction as the ticks on the rule. */
.home .label {
  font-family: var(--mono);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  color: #99a189;
  padding-top: 0.62rem;
  border-top: 1px solid var(--rule);
  display: block;
  position: relative;
}

.home .label::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 8px;
  background: var(--accent, #b1e74f);
  opacity: 0.55;
}

.home .col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

.home h2 {
  font-family: var(--display);
  font-size: 30px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--bright, #e8f0d5);
  margin: 0;
  text-wrap: balance;
}

.home p { margin: 0; line-height: 1.65; }
.home .point b { color: #e8f0d5; font-weight: 600; }

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

/* The hero and the standing band share the reading grid's outer edge, so the
   page has one left margin from the logo down. */
.home .hero,
.home .page-head,
.home .standing {
  max-width: calc(var(--rail) + var(--gutter) + var(--col) + 64px);
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

.home .hero { padding-top: 80px; }

.home h1 {
  font-family: var(--display);
  font-size: clamp(32px, 3.9vw, 54px);
  line-height: 1.08;
  font-weight: 700;
  /* Tight tracking closes the word gaps as well as the letter gaps, so the
     word space is put back by hand. */
  letter-spacing: -0.018em;
  word-spacing: 0.1em;
  color: #f2f5ea;
  margin: 0;
  text-wrap: balance;
}

.home h1 em {
  font-style: normal;
  color: var(--accent, #b1e74f);
}

.home .hero-lede {
  font-size: 1.22rem;
  line-height: 1.55;
  color: #cdd2c4;
  margin-top: 26px;
}

/* ---- Actions ------------------------------------------------------------- */

.home .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 34px; }

.home .act {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  padding: 14px 22px;
  border-radius: 3px;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.home .act .sub {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  opacity: 0.72;
}

.home .act-primary {
  background: var(--accent, #b1e74f);
  color: #0d1005;
  border: 1px solid var(--accent, #b1e74f);
}
.home .act-primary:hover { background: #c3f065; border-color: #c3f065; color: #0d1005; }

/* The second action still has to read as a control, so it keeps a face of its
   own: a raised panel and a border strong enough to see against the ground. */
.home .act-ghost {
  background: #1e211b;
  color: #e8f0d5;
  border: 1px solid rgba(177, 231, 79, 0.42);
}
.home .act-ghost:hover {
  background: #262a21;
  border-color: var(--accent, #b1e74f);
  color: var(--accent, #b1e74f);
}

.home a:focus-visible { outline: 2px solid var(--accent, #b1e74f); outline-offset: 3px; }

/* ---- Standing band: who vouches for us -----------------------------------
   Three readings off one line. A graduation marks where each entry starts, the
   mark sits on the ground, and its role is annotated under it. No cells and no
   panel: the alignment does the work the borders were doing. */

.home .standing { margin-top: 74px; }

.home .standing-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  border-top: 1px solid var(--rule);
  padding-top: 26px;
}

.home .standing-cell { position: relative; }

.home .standing-cell::before {
  content: "";
  position: absolute;
  top: -27px;
  left: 0;
  width: 1px;
  height: 9px;
  background: var(--accent, #b1e74f);
  opacity: 0.55;
}

/* The marks are set to a shared baseline rather than a shared box, so the
   Runway descender hangs below the row instead of lifting the wordmark. */
.home .standing-mark {
  display: flex;
  align-items: flex-end;
  height: 22px;
  color: #dfe6d2;
}

a.standing-mark { text-decoration: none; }
a.standing-mark:hover { color: var(--accent, #b1e74f); }

.home .standing-mark svg { display: block; height: auto; }
.home .standing-runway svg { width: 98px; margin-bottom: -6px; }
.home .standing-nebius svg { width: 114px; }

/* PhAIL is a mark plus a wordmark, so the lockup sits on the same baseline as
   the two wordmarks and the icon overhangs the row upwards. */
.home .standing-phail { gap: 9px; }
.home .standing-phail-icon {
  display: block;
  width: 28px;
  height: 32px;
  border-radius: 6px;
  background: url("../img/phail-mark.png") center / contain no-repeat;
}
.home .standing-phail span {
  font-family: var(--display);
  font-size: 1.34rem;
  font-weight: 700;
  letter-spacing: -0.012em;
  line-height: 1;
}
.home .standing-phail:hover span { color: var(--accent, #b1e74f); }

/* A measure wide enough to hold each role on one line at the reading width. */
.home .standing-role {
  display: block;
  margin-top: 14px;
  max-width: 30ch;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--dim);
  line-height: 1.45;
}

/* ---- Protocol: the three steps ------------------------------------------- */

/* The three steps break left across the label rail: this is the one place the
   reader is being walked through a sequence, and it gets the full width. */
.home .steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--rule);
  margin: 6px 0 0 calc(-1 * (var(--rail) + var(--gutter)));
}

.home .step { padding: 20px 22px 4px 0; border-right: 1px solid var(--hair); }
.home .step:last-child { border-right: 0; padding-right: 0; }
.home .step:not(:first-child) { padding-left: 22px; }

.home .step-verb {
  display: block;
  font-family: var(--mono);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  color: var(--accent, #b1e74f);
  margin-bottom: 10px;
}

.home .step p { font-size: 0.97rem; }

/* ---- Customer quote ------------------------------------------------------ */

.home .quote {
  margin: 26px 0 0;
  padding: 24px 26px;
  border-left: 2px solid var(--accent, #b1e74f);
  background: var(--panel);
  border-radius: 0 4px 4px 0;
}

.home .quote blockquote {
  margin: 0;
  font-family: var(--display);
  font-size: 1.28rem;
  line-height: 1.4;
  font-weight: 500;
  color: #e8f0d5;
  text-wrap: pretty;
}

.home .quote figcaption {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.005em;
  color: var(--dim);
}

/* A slot with no approved line in it yet. Visibly unfinished on purpose. */
.home .quote-empty {
  border-left: 2px dashed var(--dim);
  background: transparent;
}
.home .quote-empty blockquote { color: var(--dim); font-weight: 400; font-size: 1.05rem; }

/* ---- Close --------------------------------------------------------------- */

.home .close { margin-top: 96px; }

.home .close .actions { margin-top: 26px; }

/* The two fields and the button read as one control: they share a row, a
   height and a corner, and the note field takes whatever width is left. */
.home .contact {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
  margin-top: 26px;
  max-width: 620px;
}

.home .contact input {
  font-family: var(--display);
  font-size: 0.98rem;
  color: #e8f0d5;
  background: #1a1d17;
  border: 1px solid var(--hair);
  border-radius: 3px;
  padding: 13px 15px;
  min-width: 0;
}

.home .contact input::placeholder { color: var(--dim); }
.home .contact input:focus { outline: none; border-color: var(--accent, #b1e74f); }
.home .contact input[name="email"] { flex: 1 1 220px; }
.home .contact input[name="note"] { flex: 2 1 260px; }
.home .contact button { border: 0; cursor: pointer; }
.home .contact button:disabled { opacity: 0.6; cursor: default; }

/* Off-screen rather than hidden, so a screen reader still reads the labels. */
.home .contact-hidden,
.home .contact-hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.home .contact-status {
  flex-basis: 100%;
  margin: 0;
  min-height: 1.3em;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--dim);
}
.home .contact-status.is-error { color: #e8a0a0; }

/* The second way to reach us, on the same left edge as the form. */
.home .contact-alt { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.home .contact-alt > span {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--dim);
}

.home .footer-links {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--dim);
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.home .footer-links a { color: var(--dim); font-weight: 400; text-decoration: none; border-bottom: 1px solid var(--hair); }
.home .footer-links a:hover { color: var(--accent, #b1e74f); border-color: var(--accent, #b1e74f); }

/* ---- A page that opens on a statement rather than the hero ---------------- */

.home .page-head { padding-top: 74px; padding-bottom: 4px; }

.home .page-head h1 {
  font-family: var(--display);
  font-size: clamp(2.1rem, 4.4vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.06;
  margin: 0 0 18px;
}

.home .page-head .hero-lede { margin: 0; max-width: 46ch; text-align: left; }

/* ---- Founders ------------------------------------------------------------ */

.home .founders {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px;
  margin-top: 28px;
}

.home .founder-face {
  display: block;
  width: 156px;
  height: 156px;
  object-fit: cover;
  border-radius: 3px;
}

.home .founder-name { margin: 16px 0 0; font-family: var(--display); font-weight: 700; font-size: 1.1rem; }

.home .founder-role {
  margin: 4px 0 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent, #b1e74f);
}

.home .founder-line { margin: 12px 0 0; }

/* The marks sit grey until a reader points at one, and then each takes its
   own colour rather than the page accent. */
.home .founder-links { display: flex; gap: 12px; margin: 14px 0 0; }
.home .founder-links a { display: inline-flex; color: var(--dim); transition: color 0.15s ease; }
.home .founder-links svg { display: block; width: 19px; height: 19px; }
.home .founder-links .icon-linkedin:hover { color: #0a66c2; }
.home .founder-links .icon-x:hover { color: #f2f5ea; }

/* ---- Narrow -------------------------------------------------------------- */

@media (max-width: 900px) {
  .home .band { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .home .standing-inner { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  /* Stacked, only the first entry still sits under the line. */
  .home .standing-cell:not(:first-child)::before { display: none; }
  .home .founders { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .home .steps { grid-template-columns: minmax(0, 1fr); margin-left: 0; }
  .home .step { border-right: 0; border-bottom: 1px solid var(--hair); padding: 18px 0; }
  .home .step:not(:first-child) { padding-left: 0; }
  .home .step:last-child { border-bottom: 0; }
}

@media (max-width: 640px) {
  .home .hero { padding-top: 64px; }
  .home .band + .band { margin-top: 64px; }
  .home .act { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .home * { transition: none !important; }
}
