/* Core pages (home, /services/, service pages, /about/, /contact/): the sections built by
   scripts/lib/components.mjs. Same tokens, type and bands as site.css. Mobile first; every section
   reads without JavaScript and without motion. Color stays data: cobalt marks an outcome. */

/* Hero ------------------------------------------------------------------------------------- */
.core-hero { padding-top: clamp(120px, 14vw, 168px); }
.core-hero .display { font-size: clamp(2.5rem, 5.4vw, 5.6rem); max-width: 16ch; margin-bottom: 28px; }
.core-hero.has-side .display { font-size: clamp(2.5rem, 4.6vw, 4.9rem); }
.core-hero .lead { color: #d9dcda; max-width: 54ch; }
.core-hero .lead + .lead { margin-top: -0.2em; }
.core-hero-grid { display: grid; gap: 48px; }
@media (min-width: 1080px) {
  .core-hero.has-side .core-hero-grid { grid-template-columns: 7fr 5fr; gap: 64px; align-items: center; }
}
.core-hero.is-simple { min-height: 80svh; }
.core-hero.is-simple .display { max-width: 18ch; }
.kicker { margin: 0 0 20px; color: var(--fog); font-size: 1rem; font-weight: 560; letter-spacing: 0; }
.core-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.core-micro { margin: 18px 0 0; max-width: 52ch; color: var(--fog); font-size: 0.9375rem; }
.core-micro.dark { color: var(--steel); margin-top: 32px; }

.crumbs { margin-bottom: 28px; font-size: 0.875rem; color: var(--fog); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; list-style: none; margin: 0; padding: 0; }
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li + li::before { content: "/"; margin: 0 10px; opacity: 0.5; }
.crumbs a { color: inherit; text-decoration: none; padding: 10px 0; }
.crumbs a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.crumbs [aria-current] { color: #fff; }

/* Screens (the dot-matrix panels, hero screens, legends, rails): site.css, shared with every page. */
/* Article hero: the intro beside the article's own screen, under the full-width headline. */
.article-hero-grid { display: grid; gap: 40px; margin-bottom: 8px; }
@media (min-width: 1080px) { .article-hero-grid { grid-template-columns: 7fr 5fr; gap: 64px; align-items: center; } }
.article-hero-grid .hero-screen { aspect-ratio: 16 / 10; }

/* Service cards: the same form as the Insights cards (screen, title, one sentence). ------------- */
.svc-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 44px 28px; }
@media (min-width: 720px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .svc-grid { grid-template-columns: repeat(4, 1fr); } }
.svc-card { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.svc-cover { aspect-ratio: 16 / 10; }
.svc-title {
  margin: 18px 0 8px; font-size: 1.2rem; line-height: 1.22; font-weight: 700; font-stretch: 106%; letter-spacing: -0.012em;
  text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: 5px;
  transition: text-decoration-color 0.45s var(--premium);
}
.svc-dek { margin: 0 0 14px; font-size: 0.9375rem; color: #2b2e2c; max-width: 46ch; }
.svc-more { margin-top: auto; font-size: 0.9375rem; font-weight: 650; color: var(--flow-ink); }
.svc-card:hover .svc-title, .svc-card:focus-visible .svc-title { text-decoration-color: currentColor; }
.band-void .svc-dek { color: #cfd2d0; }
.band-void .svc-more { color: var(--flow); }
.svc-link {
  margin-top: auto; align-self: flex-start; min-height: 44px; display: inline-flex; align-items: center;
  font-weight: 650; color: var(--flow); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px;
}
.svc-link:hover { color: #fff; }

/* Delivery stages: a screen per stage, numbered because it is a sequence. */
.stage-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 40px 24px; }
@media (min-width: 720px) { .stage-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .stage-grid { grid-template-columns: repeat(4, 1fr); } }
.stage-cover { aspect-ratio: 4 / 3; }
.stage-num { margin: 18px 0 6px; font-family: var(--dots); font-weight: 800; font-size: 1.5rem; line-height: 1; color: var(--steel); }
.stage-grid li:last-child .stage-num { color: var(--flow-ink); }
.stage-grid .h3 { margin-bottom: 8px; }
.stage-grid p:last-child { margin: 0; color: #2b2e2c; font-size: 0.9375rem; max-width: 38ch; }
.also { margin: 32px 0 0; max-width: 72ch; color: var(--steel); }
.also a { color: #000; font-weight: 600; text-underline-offset: 4px; }

.area-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line-d); border: 1px solid var(--line-d); border-radius: 20px; overflow: hidden; }
@media (min-width: 720px) { .area-grid { grid-template-columns: 1fr 1fr; } }
/* The black band's cells sit on the same faint dot field as the screens. */
.area-grid li {
  background: #000 radial-gradient(circle, rgba(255, 255, 255, 0.06) 1.2px, transparent 1.6px) 0 0 / 9px 9px;
  padding: 28px 26px; display: flex; flex-direction: column;
}
.area-grid .h3 { margin-bottom: 10px; }
.area-grid .h3 a { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.area-grid p { color: #cfd2d0; margin-bottom: 14px; }

/* Flows, definitions, lists -------------------------------------------------------------- */
.flow-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: s; border-top: 1px solid var(--line); }
.flow-steps li { counter-increment: s; display: grid; grid-template-columns: 56px 1fr; gap: 4px 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .flow-steps li { grid-template-columns: 72px 260px 1fr; align-items: baseline; } }
.flow-steps li::before { content: counter(s, decimal-leading-zero); grid-row: span 2; font-family: var(--dots); font-weight: 800; font-size: 1.6rem; line-height: 1.1; color: var(--steel); }
@media (min-width: 900px) { .flow-steps li::before { grid-row: auto; } }
.flow-steps b { font-weight: 700; font-stretch: 106%; font-size: 1.1875rem; }
.flow-steps span { color: var(--steel); }
.flow-steps li.is-out::before { color: var(--flow-ink); }
.band-void .flow-steps, .band-void .flow-steps li { border-color: var(--line-d); }
.band-void .flow-steps span { color: #cfd2d0; }
.band-void .flow-steps li.is-out::before { color: var(--flow); }
/* The step the rail has reached: its number in cobalt (covers.js sets is-on). */
.flow-steps li::before { transition: color 0.2s ease-out; }
.flow-steps li.is-on::before { color: var(--flow-ink); }
.band-void .flow-steps li.is-on::before { color: var(--flow); }
.flow-steps.is-tracking li.is-out:not(.is-on)::before { color: var(--steel); }

.def-grid { margin: 0; display: grid; gap: 12px; }
@media (min-width: 720px) { .def-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .def-grid { grid-template-columns: repeat(3, 1fr); } }
.def-grid > div { background: var(--card); padding: 22px 22px 24px; border: 1px solid var(--line); border-radius: 16px; }
.def-grid dt { font-weight: 700; font-stretch: 106%; font-size: 1.125rem; margin-bottom: 6px; }
.def-grid dd { margin: 0; color: #2b2e2c; font-size: 1rem; }

/* What can be built: Insights-form cards, three across (five, six or eight modules all break well). */
@media (min-width: 1100px) { .module-cards { grid-template-columns: repeat(3, 1fr); } }
.module-card { display: flex; flex-direction: column; }
.module-cards + .note-label { margin-top: 28px; }

.ticks { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 8px; height: 8px; background: var(--flow-ink); }
.band-void .ticks li::before { background: var(--flow); }
.ticks.is-deferred li::before { background: transparent; border: 1.5px solid var(--steel); }
.chips-list { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips-list li { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 0.9375rem; }

.split { display: grid; gap: 40px; }
@media (min-width: 960px) { .split { grid-template-columns: 5fr 6fr; gap: 72px; align-items: start; } }
.split p { max-width: 62ch; }
.counter { margin-top: 24px; padding: 18px 20px; border-left: 3px solid var(--heat-paper); background: var(--card); max-width: 62ch; }
.band-void .counter { background: #0b0b0b; border-left-color: var(--heat); }

.scope-grid { display: grid; gap: 56px; }
@media (min-width: 960px) { .scope-grid { grid-template-columns: 1fr 1fr; gap: 72px; } }
.scope-grid .h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 24px; }
.scope-grid .h3 { margin: 28px 0 14px; }
.scope-grid p { max-width: 58ch; }
.scope-request { max-width: 70ch; color: #cfd2d0; }
.scope-cut { display: grid; gap: 24px; margin: 24px 0; }
@media (min-width: 760px) { .scope-cut { grid-template-columns: 1fr 1fr; } }
.scope-cut > div { padding: 24px; border: 1px solid var(--line-d); border-radius: 18px; }
.scope-cut .h3 { margin-bottom: 16px; }

.fit-table { width: 100%; border-collapse: collapse; font-size: 1.0625rem; }
.fit-table th { text-align: left; font-size: 0.875rem; font-weight: 600; color: var(--steel); padding: 0 16px 12px 0; border-bottom: 1px solid #000; }
.fit-table td { padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.fit-table td:last-child { white-space: nowrap; }
.fit-table a { font-weight: 650; color: var(--flow-ink); text-underline-offset: 4px; }
@media (max-width: 640px) {
  .fit-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .fit-table tr, .fit-table td { display: block; }
  .fit-table td { border: 0; padding: 4px 0; }
  .fit-table tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .fit-table td:last-child { white-space: normal; }
}

.related { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 40px; }
.related p { margin: 0; color: var(--steel); }
.related ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.related a { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: #000; text-decoration: none; font-weight: 600; }
.related a:hover { border-color: #000; }

/* Closing call to action ------------------------------------------------------------------- */
.cta-band-grid { display: grid; gap: 40px; }
@media (min-width: 1020px) { .cta-band-grid { grid-template-columns: 7fr 5fr; gap: 64px; align-items: end; } }
.cta-band .cta-title { max-width: 16ch; font-size: clamp(2.4rem, 5vw, 5rem); }
.cta-body { color: #cfd2d0; max-width: 52ch; font-size: 1.125rem; margin: 0; }
.cta-band-actions .core-actions { margin-top: 0; }
.cta-band-actions .fine { margin: 16px 0 0; }
.cta-band-actions a:not(.btn) { color: #fff; text-underline-offset: 4px; }

/* Contact page ----------------------------------------------------------------------------- */
.contact-band { padding-top: 0; }
.contact-paths { display: grid; gap: 20px; }
@media (min-width: 1020px) { .contact-paths { grid-template-columns: 5fr 7fr; align-items: start; } }
.path-card { padding: clamp(24px, 3vw, 36px); border: 1px solid var(--line-d); border-radius: 22px; background: #0b0b0b; }
.path-cover { aspect-ratio: 2 / 1; margin-bottom: 24px; border-radius: 14px; background-color: #000; }
.path-card .h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); margin-bottom: 12px; }
.path-card > p { color: #cfd2d0; max-width: 52ch; }
.path-card .core-actions { margin-top: 20px; }
.path-card .fine { margin: 14px 0 0; }
.brief-form { margin-top: 24px; }
.brief-form label { display: block; }
.brief-form .form-body { display: grid; gap: 20px; }
.brief-form select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #9aa09d 50%), linear-gradient(135deg, #9aa09d 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.brief-form select.input option { background: #0f0f0f; color: #fff; }
.field-hint { display: block; margin-top: 6px; color: var(--fog); font-size: 0.875rem; font-weight: 400; }
.field-error { display: block; margin-top: 6px; color: #ff8a5c; font-size: 0.875rem; font-weight: 600; }
.input[aria-invalid="true"] { border-color: #ff8a5c; }
.form-error-summary { padding: 16px 18px; border: 1px solid #ff8a5c; border-radius: 12px; color: #fff; margin-bottom: 8px; }
.form-error-summary p { margin: 0 0 8px; font-weight: 650; }
.form-error-summary ul { margin: 0; padding-left: 20px; }
.form-error-summary a { color: #ffb08f; }
.form-caution { color: var(--fog); margin: 0; }
.form-status:not(:empty) { margin-top: 20px; padding: 18px 20px; border-radius: 14px; border: 1px solid var(--line-d); background: #000; }
.form-status.is-error { border-color: #ff8a5c; }
.form-status .btn { margin-top: 14px; margin-right: 10px; }
.form-status p { margin: 0 0 6px; }
.brief-form.is-sent .form-body, .brief-form.is-sent .form-error-summary { display: none; }
.brief-form button[disabled] { opacity: 0.6; cursor: progress; }

/* Hover lift and its reduced-motion form: site.css ("One hover for everything clickable"). */
