/* Home page only. Kit tokens everywhere; no glow, no gradients on text or buttons. */

/* ---------- Hero ---------- */
.home-hero { position: relative; overflow: hidden; min-height: 560px; display: flex; align-items: center; }
@media (min-width: 720px) { .home-hero { min-height: min(78vh, 720px); } }
/* Light backdrop fade behind the text only (the stars stay visible across the left half). */
.home-hero::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, color-mix(in srgb, var(--ss-bg) 62%, transparent) 0%, color-mix(in srgb, var(--ss-bg) 38%, transparent) 26%, transparent 46%); }
@media (max-width: 719px) {
  .home-hero::before { background: linear-gradient(180deg, color-mix(in srgb, var(--ss-bg) 55%, transparent) 0%, color-mix(in srgb, var(--ss-bg) 55%, transparent) 62%, transparent 85%); }
  .home-hero .home-hero-inner { padding-bottom: 240px; }
}
/* Phones to small laptops: keep a band under the text for the "found a constellation" card (up to ~170 px tall,
   64 px off the bottom), so it never lands on the buttons or the hint. Wider screens move it bottom-right. */
@media (min-width: 720px) and (max-width: 1219px) { .home-hero .home-hero-inner { padding-bottom: 240px; } }
.home-text { max-width: 780px; }
.home-hero-inner { position: relative; z-index: 2; width: 100%; padding-top: 64px; padding-bottom: 72px; }
.ss .home-h1 { font-size: clamp(36px, 8.6vw, 64px); line-height: 1.04; letter-spacing: -0.025em; max-width: 12em; margin: 0 0 24px; }
.ss .home-line { font-size: 18px; line-height: 1.5; color: var(--ss-text); max-width: 40em; margin: 0 0 8px; }
.ss .home-line2 { font-size: 16px; color: var(--ss-text-2); max-width: 40em; margin: 0 0 32px; }
.ss .home-hint { font-size: 12px; color: var(--ss-text-3); margin: 20px 0 0; max-width: 40em; transition: opacity .25s ease, visibility .25s; }
.ss .home-hint.is-covered { opacity: 0; visibility: hidden; }
.home-motion { position: absolute; z-index: 4; right: 16px; bottom: 12px; min-height: 44px; padding: 0 10px; background: transparent; border: 0;
  color: var(--ss-text-3); font: 500 12px/1 var(--ss-font-mono); cursor: pointer; border-radius: var(--ss-r); }
.home-motion:hover { color: var(--ss-text); }
.home-motion[hidden] { display: none; }
@media (min-width: 720px) { .home-motion { right: 32px; } }
@media (prefers-reduced-motion: reduce) { .home-motion, .home-hint { display: none !important; } }

/* ---------- Overscan feature ---------- */
.feature-grid { display: grid; gap: 48px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .feature-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; } }
.feature-brand { display: flex; align-items: center; gap: 16px; margin: 0 0 16px; }
.feature-icon { display: block; flex: none; width: 52px; height: 52px; }
.feature-icon img { display: block; width: 100%; height: 100%; }
@media (min-width: 720px) { .feature-icon { width: 60px; height: 60px; } }
.ss .feature-brand .feature-h { margin: 0; }
/* Title + icon link to /overscan: looks like the heading, underline on hover (2026-10-11) */
.ss .feature-h-link { color: inherit; text-decoration: none; }
.ss .feature-h-link:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.ss .feature-brand .eyebrow { display: block; margin: 0 0 4px; }
.ss .feature-h { margin: 0 0 14px; font-size: clamp(30px, 4vw, 38px); }
.ss .feature-pitch { font: 500 clamp(19px, 2.4vw, 22px)/1.35 var(--ss-font-head); letter-spacing: -0.01em; color: var(--ss-text); margin: 0 0 16px; }
.ss .feature-body { color: var(--ss-text-2); max-width: 52ch; margin: 0 0 28px; }
.ss .feature-spec { font: 400 12px/1.7 var(--ss-font-mono); color: var(--ss-text-2); margin: 20px 0 0; }

.rig-fig { margin: 0; }
/* Three screens on a desk. ss-glow draws the moving scene inside the middle one and lights the two side screens from
   its edges (clipped to their glass). The screens are a picture of monitors, so their colours are fixed. */
.rig { position: relative; display: grid; grid-template-columns: 1fr 1.5fr 1fr; gap: 10px; align-items: center; padding: 32px 16px 28px;
  background: var(--ss-surface); border: 1px solid var(--ss-line); border-radius: var(--ss-r-lg); overflow: hidden; }
.mon { position: relative; z-index: 1; aspect-ratio: 16 / 10; border: 3px solid #1c1c1f; border-radius: 6px; background: #050506;
  box-shadow: 0 0 0 1px var(--ss-line-strong); }
.mon.mid { aspect-ratio: 16 / 9; overflow: hidden; background: #0c1228; }
/* Stands (second grid row): a short neck and a foot under each screen */
.rig .stand { display: block; justify-self: center; width: 22%; height: 16px; margin-top: -10px;
  background: linear-gradient(var(--ss-line-strong), var(--ss-line-strong)) center top / 14% 12px no-repeat,
    linear-gradient(var(--ss-line-strong), var(--ss-line-strong)) center bottom / 100% 4px no-repeat; }
.ss .rig-cap { margin: 14px 0 0; font: 400 12px/1.5 var(--ss-font-mono); color: var(--ss-text-2); }

/* ---------- Tools table ---------- */
.ss .tools-h { margin: 0 0 32px; font-size: clamp(28px, 4vw, 36px); }
.tools-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--ss-line); border-radius: var(--ss-r-lg); background: var(--ss-surface); overflow: hidden; }
.tools-row { display: grid; gap: 4px 16px; padding: 16px 20px; border-top: 1px solid var(--ss-line); grid-template-columns: 104px minmax(0, 1fr) auto; align-items: baseline; }
.tools-row:first-child { border-top: 0; }
.tools-thumb { grid-column: 1; grid-row: 1 / 3; align-self: start; display: block; aspect-ratio: 16 / 10; border-radius: var(--ss-r); overflow: hidden; }
.tools-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; border: 1px solid var(--ss-line); border-radius: var(--ss-r); }
.tools-thumb .ph-box { width: 100%; height: 100%; padding: 4px; font-size: 10px; line-height: 1.3; border-radius: var(--ss-r); box-sizing: border-box; }
.tools-name { grid-column: 2; grid-row: 1; font: 600 17px/1.3 var(--ss-font-head); color: var(--ss-text); }
.ss a.tools-name { color: var(--ss-text); text-decoration: none; justify-self: start; }
.ss a.tools-name:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.tools-kind { grid-column: 2; grid-row: 2; font: 400 12px/1.4 var(--ss-font-mono); color: var(--ss-text-2); }
.tools-desc { grid-column: 1 / -1; grid-row: 3; color: var(--ss-text-2); font-size: 15px; margin-top: 8px; }
.tools-price { grid-column: 3; grid-row: 1; text-align: right; font-size: 14px; }
.tools-price .ss-mono { font-size: 13px; color: var(--ss-text); }
.ss .tools-go { grid-column: 3; grid-row: 2; text-align: right; font-size: 14px; }
@media (min-width: 1040px) {
  .tools-row { grid-template-columns: 132px 160px 140px minmax(0, 1fr) 100px 70px; gap: 20px; align-items: center; padding: 16px 24px; }
  .tools-thumb, .tools-name, .tools-kind, .tools-desc, .tools-price, .ss .tools-go { grid-column: auto; grid-row: auto; margin-top: 0; }
  .tools-thumb { align-self: center; }
  .tools-thumb .ph-box { font-size: 11px; padding: 8px; }
  .tools-price { text-align: left; }
  .ss .tools-go { text-align: right; }
}
.ss .tools-all { margin: 20px 0 0; font-size: 15px; }

/* ---------- Work we've done ---------- */
.ss .work-h, .ss .quotes-h { margin: 0 0 32px; font-size: clamp(28px, 4vw, 36px); }
.work-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .work-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.work-card { display: flex; flex-direction: column; padding: 24px; }
.ss .work-label { margin: 0 0 12px; font-size: 12px; color: var(--ss-text-3); text-transform: uppercase; letter-spacing: .06em; }
.ss .work-title { margin: 0 0 16px; font: 600 20px/1.25 var(--ss-font-head); letter-spacing: -0.01em; color: var(--ss-text); }
/* Problem -> what we built, as a two-step line: hollow dot for the problem, filled dot for the fix */
.work-steps { margin: 0 0 24px; padding: 0; display: grid; gap: 16px; }
.work-step { position: relative; padding-left: 22px; }
.work-step::before { content: ""; position: absolute; left: 0; top: 4px; width: 10px; height: 10px; border-radius: 50%;
  border: 2px solid var(--ss-line-strong); box-sizing: border-box; background: var(--ss-surface); }
.work-step.is-built::before { border-color: var(--rc, var(--ss-accent)); background: var(--rc, var(--ss-accent)); }
.work-step.is-problem::after { content: ""; position: absolute; left: 4px; top: 18px; bottom: -14px; width: 2px; background: var(--ss-line-strong); }
.ss .work-step dt { margin: 0 0 4px; font: 500 11px/1.4 var(--ss-font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ss-text-3); }
.ss .work-step dd { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ss-text-2); }
.ss .work-step.is-built dd { color: var(--ss-text); }
.ss .work-stat { margin: auto 0 0; padding-top: 20px; border-top: 1px solid var(--ss-line); }
.work-stat b { display: block; font: 600 44px/1.05 var(--ss-font-head); letter-spacing: -0.02em; color: var(--ss-accent); }
.work-stat span { display: block; margin-top: 6px; font-size: 14px; color: var(--ss-text-2); }
/* Desktop: the three cards share one set of rows (subgrid), so titles, "The problem", "What we built" and the numbers
   line up across cards even when a title wraps to two lines (Shrav 2026-10-12: "not aligned, looks untidy"). */
@media (min-width: 900px) {
  @supports (grid-template-rows: subgrid) {
    .work-grid > .work-card { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
    .work-card .work-steps { grid-row: span 2; grid-template-rows: subgrid; row-gap: 16px; }
    .ss .work-card .work-stat { margin-top: 0; }
  }
}

/* ---------- Numbers ---------- */
.numbers-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 32px 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .numbers-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; } }
.numbers-grid b { display: block; font: 600 32px/1.1 var(--ss-font-head); letter-spacing: -0.02em; color: var(--ss-text); margin-bottom: 6px; }
.numbers-grid span { display: block; font-size: 14px; line-height: 1.45; color: var(--ss-text-2); max-width: 22ch; margin: 0 auto; }
.numbers-grid li { text-align: center; }

/* ---------- Custom work teaser ---------- */
/* Stacked like the About / Custom work closing blocks (one closing pattern site-wide, 2026-10-11) */
.custom-grid { display: block; }
.ss .custom-grid h2 { margin: 0 0 20px; font-size: clamp(28px, 4vw, 36px); }
.ss .custom-text { color: var(--ss-text-2); max-width: 52ch; margin: 0 0 28px; }

/* ---------- What people say ---------- */
.quotes-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .quotes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
.quote-ph { min-height: 150px; }
.ss .quotes-note { margin: 18px 0 0; font-size: 13px; color: var(--ss-text-2); }

/* ---------- Closing rings ---------- */
.section.custom { position: relative; overflow: hidden; }
.section.custom > .wrap { position: relative; z-index: 1; }
/* _rings.html, styled in site.css; placed like the other closing blocks (pages.css .closing .rings) */
@media (min-width: 1000px) { .section.custom .rings { right: -120px; top: 50%; width: 560px; height: 560px; transform: translateY(-50%); } }
