/* Mentzai website.
   Extends the design-system tokens in ds/ (copied unchanged from the Mentzai design system).
   A light page with one midnight hero band and a midnight footer; hairlines do the work;
   one citrus point per view; motion only on interaction. */

/* ---------- Base ---------- */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
table { border-collapse: collapse; }
[hidden] { display: none !important; }
::selection { background: var(--citrus); color: var(--midnight); }
html { caret-color: var(--navy); accent-color: var(--navy); scrollbar-color: var(--line-strong) var(--surface-sunken); }
a { text-underline-offset: 3px; text-decoration-thickness: 1px; }
.num, dd, .step-count { font-variant-numeric: tabular-nums; }

:root { --gutter: 16px; --header-h: 72px; }
@media (min-width: 768px) { :root { --gutter: 32px; } }
@media (min-width: 1024px) { :root { --gutter: 48px; } }

.skip-link { position: absolute; left: var(--gutter); top: -64px; z-index: 100; padding: 8px 12px; background: var(--primary); color: var(--on-primary); border-radius: var(--radius-md); text-decoration: none; font-weight: 700; }
.skip-link:focus { top: 12px; }
.skip-link:hover, .skip-link:focus { color: var(--on-primary); }
.num { font-family: var(--font-mono); letter-spacing: 0; white-space: nowrap; }
.muted { color: var(--ink-muted); }
.nowrap { white-space: nowrap; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--content-max); margin: 0 auto; padding: 0 var(--gutter); }
.band { background: var(--surface); color: var(--ink); }
.band--sunken { background: var(--surface-sunken); }
.section { padding-block: 64px; }
@media (min-width: 1024px) { .section { padding-block: 96px; } }
.section-head { max-width: var(--text-max); margin-bottom: 48px; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head p:not(.eyebrow) { margin-top: 20px; color: var(--ink-muted); font-size: 18px; line-height: 28px; text-wrap: pretty; }
.section-foot { margin-top: 40px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.eyebrow { color: var(--ink-muted); }

/* Two-line headlines: the first line sets up, the second lands. */
.hl { display: block; }
.hl--soft { color: var(--ink-muted); }

/* The dot grid: the point repeated at a 24px pitch, the one pattern the brand allows. */
.dots { position: relative; isolation: isolate; }
.dots::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-size: 24px 24px; background-position: 12px 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Ccircle cx='12' cy='12' r='1.25' fill='%23dde3ec'/%3E%3C/svg%3E"); }
[data-theme="dark"].dots::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Ccircle cx='12' cy='12' r='1.25' fill='%2322395f'/%3E%3C/svg%3E"); }

/* ---------- The point ---------- */
.point { display: inline-block; flex: none; width: var(--point-size); height: var(--point-size); border-radius: var(--radius-full); background: var(--citrus); vertical-align: middle; }
.point--deck { width: var(--point-size-deck); height: var(--point-size-deck); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--control-height); padding: 0 16px; border: 1px solid transparent; border-radius: var(--radius-md);
  font-family: var(--font-sans); font-size: 16px; line-height: 24px; font-weight: 700; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background var(--motion-fast), color var(--motion-fast), border-color var(--motion-fast); }
.btn:focus-visible { border-radius: var(--radius-md); }
.btn--primary { background: var(--primary); color: var(--on-primary); }
.btn--primary:hover { background: var(--primary-hover); color: var(--on-primary); }
.btn--secondary { background: var(--surface-raised); color: var(--ink); border-color: var(--line-strong); }
.btn--secondary:hover { background: var(--surface-sunken); color: var(--ink); }
[data-theme="dark"] .btn--secondary { background: transparent; }
[data-theme="dark"] .btn--secondary:hover { background: var(--surface-raised); }
.btn--tertiary { background: transparent; color: var(--link); padding: 0 4px; }
.btn--tertiary:hover { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
.btn--dense { height: var(--control-height-dense); font-size: 14px; line-height: 20px; padding: 0 12px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--surface); border-bottom: 1px solid transparent; transition: border-color var(--motion-fast); }
.site-header.is-scrolled, .site-header.is-open { border-bottom-color: var(--line); }
.site-header__bar { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand-link { display: inline-flex; flex: none; border-radius: var(--radius-sm); }
.wordmark { display: block; width: 120px; height: 25px; }
.site-nav { display: none; gap: 24px; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: 16px; line-height: 24px; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration-line: underline; color: var(--ink); }
.site-header__actions { display: flex; align-items: center; gap: 12px; }
.header-cta { display: none; }
.mobile-nav { border-top: 1px solid var(--line); background: var(--surface); padding: 8px 0 24px; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
.mobile-nav a:not(.btn) { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 20px; line-height: 28px; font-weight: 700; }
.mobile-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.mobile-nav .btn { width: 100%; margin-top: 24px; }
@media (min-width: 1080px) {
  .site-nav, .header-cta { display: inline-flex; }
  .menu-toggle, .mobile-nav { display: none !important; }
}

/* ---------- Chips, tags ---------- */
.chip { display: inline-flex; align-items: center; gap: 8px; height: var(--control-height-dense); padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-full); background: var(--surface-raised);
  color: var(--ink); font-size: 14px; line-height: 20px; white-space: nowrap; cursor: pointer; transition: background var(--motion-fast), border-color var(--motion-fast); }
.chip:hover { background: var(--surface-sunken); }
.chip:focus-visible { border-radius: var(--radius-full); }
.chip[aria-selected="true"], .chip[aria-pressed="true"] { background: var(--navy-soft); border-color: var(--navy); font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 767px) {
  .chips--scroll { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter) 6px; scrollbar-width: none; }
  .chips--scroll::-webkit-scrollbar { display: none; }
}

/* ---------- Hero ---------- */
.hero { background: var(--surface); color: var(--ink); }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1fr); padding-block: 72px 56px; }
.hero__eyebrow { margin-bottom: 24px; }
.hero__title { margin-bottom: 28px; color: var(--ink-on-midnight); font-size: clamp(44px, 8vw, 96px); line-height: 0.98; letter-spacing: -0.035em; text-wrap: balance; }
.hero__title .hl--soft { color: var(--ink-muted); }
.hero__title .point { width: 0.14em; height: 0.14em; margin-left: 0.12em; vertical-align: baseline; }
.hero__lead { color: var(--ink-muted); max-width: 600px; margin-bottom: 36px; text-wrap: pretty; }
.hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 72px; border-top: 1px solid var(--line); }
.hero-facts div { display: flex; flex-direction: column-reverse; gap: 4px; padding: 20px 16px 0 0; }
.hero-facts div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.hero-facts dd { font-family: var(--font-mono); font-size: clamp(28px, 4vw, 44px); line-height: 1; font-weight: 700; letter-spacing: -0.02em; }
.hero-facts dt { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
@media (min-width: 1024px) { .hero__inner { padding-block: 120px 64px; } .hero-facts { max-width: 720px; } }

/* ---------- Services on the home page: a feature and a ruled index ---------- */
.offer { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.offer__lead { display: flex; flex-direction: column; gap: 16px; align-self: start; padding: 32px; border-radius: var(--radius-lg); background: var(--midnight); color: #ffffff; text-decoration: none; transition: box-shadow var(--motion-fast); }
.offer__lead:hover { color: #ffffff; box-shadow: var(--shadow-md); }
.offer__lead:focus-visible { border-radius: var(--radius-lg); }
.offer__lead .eyebrow { color: #aab7cc; }
.offer__lead h3 { display: flex; align-items: center; gap: 12px; font-size: 32px; line-height: 38px; letter-spacing: -0.02em; }
.offer__lead p { color: #aab7cc; text-wrap: pretty; }
.offer__caps { display: grid; margin-top: 8px; }
.offer__caps li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-top: 1px solid #22395f; font-size: 14px; line-height: 20px; }
.offer__caps svg { width: 20px; height: 20px; color: #3fd0a0; }
.offer__list { border-top: 1px solid var(--line); }
.offer__list a { display: grid; grid-template-columns: minmax(0, 1fr) 24px; gap: 4px 16px; padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.offer__list a:focus-visible { border-radius: var(--radius-sm); }
.offer__name { font-size: 18px; line-height: 26px; }
.offer__desc { grid-column: 1; color: var(--ink-muted); font-size: 15px; line-height: 22px; text-wrap: pretty; }
.offer__arrow { grid-column: 2; grid-row: 1 / span 2; align-self: center; width: 20px; height: 20px; color: var(--ink-subtle); transition: transform var(--motion-fast), color var(--motion-fast); }
.offer__list a:hover .offer__name { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.offer__list a:hover .offer__arrow { color: var(--ink); transform: translateX(4px); }
@media (min-width: 1024px) {
  .offer { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; }
  .offer__lead { position: sticky; top: calc(var(--header-h) + 24px); padding: 40px; }
  .offer__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; border-top: 0; }
  .offer__list li:nth-child(-n+2) a { border-top: 1px solid var(--line); }
}

/* ---------- Low-code and AI ---------- */
.ai { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
.ai__copy h2 { margin: 16px 0 20px; }
.ai__copy p + p { margin-top: 16px; }
.ai__copy p:not(.eyebrow) { color: var(--ink-muted); text-wrap: pretty; }
@media (min-width: 1024px) { .ai { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; } }
.flow { display: grid; gap: 0; padding: 24px; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.flow__step { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; align-items: start; }
.flow__num { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--line-strong); border-radius: var(--radius-full); background: var(--surface); font-family: var(--font-mono); font-size: 12px; }
.flow__step--key .flow__num { border-color: var(--ink); }
.flow__text { padding: 3px 0 0; font-weight: 700; }
.flow__text span { display: block; font-weight: 400; font-size: 14px; line-height: 20px; color: var(--ink-muted); margin-top: 2px; }
.flow__link { width: 1.5px; height: 24px; margin: 4px 0 4px 13px; background: var(--ink-muted); }
.flow__caps { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 14px; line-height: 20px; }
.flow__caps li { display: flex; gap: 10px; }
.flow__caps svg { flex: none; width: 20px; height: 20px; color: var(--success); }

/* ---------- Why Mentzai, values, culture: numbered hairline grid ---------- */
.why-grid { display: grid; gap: 32px 40px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.why { border-top: 1px solid var(--line); padding-top: 16px; }
.why h3 { margin: 4px 0 8px; }
.why p { color: var(--ink-muted); text-wrap: pretty; }
.trusted { display: flex; align-items: center; gap: 12px; margin: -16px 0 40px; font-weight: 700; }

/* ---------- Industries on the home page: tabs and a panel ---------- */
.sector-panel { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px 48px; margin-top: 24px; padding: 24px; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.sector-panel h3 { margin-bottom: 12px; }
.sector-panel p { color: var(--ink-muted); text-wrap: pretty; }
.sector-panel .sector-panel__lead { color: var(--ink); font-weight: 700; margin-bottom: 12px; }
.sector-panel .btn--tertiary { margin: 16px 0 0 -4px; }
.sector-panel:focus-visible { border-radius: var(--radius-lg); }
@media (min-width: 1024px) { .sector-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 32px; } }
.uses__label { margin-bottom: 8px; }
.uses li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 20px; }
.uses li:last-child { border-bottom: 1px solid var(--line); }

/* ---------- Technology stack on the home page: one typographic run ---------- */
.stack-run { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 0.9em; max-width: 1000px; font-size: clamp(22px, 3vw, 34px); line-height: 1.3; font-weight: 700; letter-spacing: -0.015em; }
.stack-run li { display: inline-flex; align-items: center; gap: 10px; }
.stack-run li:nth-child(n+2) { color: var(--ink-muted); }

/* ---------- How we work: stepper ---------- */
.stepper { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.steps { display: flex; gap: 8px; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter) 6px; scrollbar-width: none; }
.steps::-webkit-scrollbar { display: none; }
.step { flex: none; display: inline-flex; align-items: center; gap: 8px; height: var(--control-height-dense); padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-full);
  background: var(--surface-raised); color: var(--ink); cursor: pointer; font-size: 14px; line-height: 20px; transition: background var(--motion-fast), color var(--motion-fast), border-color var(--motion-fast); }
.step:hover { background: var(--surface-sunken); }
.step:focus-visible { border-radius: var(--radius-full); }
.step__num { font-family: var(--font-mono); font-size: 12px; color: var(--ink-muted); }
.step[aria-selected="true"] { background: var(--navy-soft); border-color: var(--navy); font-weight: 700; }
.step[aria-selected="true"] .step__num { color: var(--ink); }
.step-panel { display: grid; align-content: start; gap: 16px; min-height: 280px; padding: 32px; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.step-panel:focus-visible { border-radius: var(--radius-lg); }
.step-panel__num { font-family: var(--font-mono); font-size: 72px; line-height: 72px; font-weight: 700; letter-spacing: -0.04em; color: var(--ink); }
.step-panel h3 { font-size: 28px; line-height: 34px; letter-spacing: -0.01em; }
.step-panel p:not(.step-panel__num) { color: var(--ink-muted); font-size: 18px; line-height: 28px; max-width: 560px; text-wrap: pretty; }
.step-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.step-count { font-family: var(--font-mono); font-size: 14px; color: var(--ink-muted); }
@media (min-width: 1024px) {
  .stepper { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
  .steps { flex-direction: column; gap: 0; margin: 0; padding: 0; overflow: visible; border-bottom: 1px solid var(--line); }
  .step { display: grid; grid-template-columns: 40px minmax(0, 1fr); height: auto; padding: 16px 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent;
    text-align: left; font-size: 20px; line-height: 28px; font-weight: 700; color: var(--ink-subtle); }
  .step:hover { background: transparent; color: var(--ink-muted); }
  .step:focus-visible { border-radius: var(--radius-sm); }
  .step__num { font-size: 14px; line-height: 28px; font-weight: 400; }
  .step[aria-selected="true"] { background: transparent; color: var(--ink); }
  .step[aria-selected="true"] .step__title::after { content: ""; display: inline-block; width: var(--point-size); height: var(--point-size); margin-left: 10px; border-radius: var(--radius-full); background: var(--citrus); vertical-align: middle; }
  .step-panel { min-height: 360px; padding: 48px; }
}

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.quote { display: grid; align-content: start; gap: 24px; }
.quote:focus-visible { border-radius: var(--radius-md); }
.quote blockquote { font-size: 24px; line-height: 34px; letter-spacing: -0.01em; font-weight: 400; text-wrap: pretty; }
.people { display: grid; gap: 8px; align-content: start; }
.person { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; align-items: center; width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-md);
  background: var(--surface-raised); text-align: left; cursor: pointer; transition: background var(--motion-fast), border-color var(--motion-fast); }
.person:hover { background: var(--surface-sunken); }
.person:focus-visible { border-radius: var(--radius-md); }
.person[aria-selected="true"] { background: var(--navy-soft); border-color: var(--navy); }
.person__initials { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--radius-full); background: var(--midnight); color: #ffffff; font-family: var(--font-mono); font-size: 13px; font-weight: 700; }
.person__role { display: block; font-weight: 700; font-size: 15px; line-height: 20px; }
.person__org { display: block; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
@media (min-width: 1024px) {
  .quotes { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 64px; align-items: start; }
  .quote blockquote { font-size: 32px; line-height: 42px; }
}

/* ---------- Closing call to action ---------- */
.cta { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.cta h2 { margin-bottom: 16px; text-wrap: pretty; }
.cta p { color: var(--ink-muted); max-width: 560px; font-size: 18px; line-height: 28px; text-wrap: pretty; }
@media (min-width: 1024px) { .cta { grid-template-columns: minmax(0, 1fr) auto; gap: 64px; align-items: end; } }

/* ---------- Inner page heads ---------- */
.page-head { background: var(--surface-sunken); }
.page-head .section { padding-block: 64px; }
.page-head h1 { max-width: 820px; margin: 16px 0 20px; text-wrap: balance; }
.page-head .lead { max-width: var(--text-max); color: var(--ink-muted); text-wrap: pretty; }
.page-head .actions { margin-top: 32px; }
@media (min-width: 1024px) { .page-head .section { padding-block: 96px; } }

/* ---------- Services page ---------- */
.svc-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding-block: 24px 64px; }
.toc { display: flex; gap: 8px; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 16px var(--gutter) 6px; scrollbar-width: none; }
.toc::-webkit-scrollbar { display: none; }
.toc a { flex: none; display: inline-flex; align-items: center; gap: 8px; height: var(--control-height-dense); padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-full); color: var(--ink); text-decoration: none; font-size: 14px; line-height: 20px; }
.toc a .point { display: none; }
.toc__label { display: none; }
@media (min-width: 1024px) {
  .svc-layout { grid-template-columns: 232px minmax(0, 1fr); gap: 64px; padding-block: 40px 96px; }
  .toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; flex-direction: column; gap: 2px; margin: 0; padding: 40px 0 0; overflow: visible; }
  .toc__label { display: block; margin: 0 0 8px 12px; }
  .toc a { height: auto; padding: 8px 12px; border: 0; border-radius: var(--radius-md); color: var(--ink-muted); }
  .toc a .point { display: inline-block; visibility: hidden; }
  .toc a:hover { color: var(--ink); }
  .toc a.is-current { background: var(--navy-soft); color: var(--ink); }
  .toc a.is-current .point { visibility: visible; }
}
.svc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px 48px; padding: 40px 0; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 16px); }
.svc:last-child { border-bottom: 1px solid var(--line); }
.svc__eyebrow { display: flex; gap: 12px; align-items: baseline; margin-bottom: 12px; }
.svc__eyebrow .num { color: var(--ink-muted); }
.svc h2 { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.svc p { color: var(--ink-muted); text-wrap: pretty; }
.caps__label { margin-bottom: 8px; }
.caps li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 20px; }
.caps li:first-child { border-top: 1px solid var(--line); }
.caps svg { width: 20px; height: 20px; color: var(--success); }
@media (min-width: 768px) { .svc { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }

/* ---------- Industries page ---------- */
.sectors { border-bottom: 1px solid var(--line); }
.sector { border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 16px); }
.sector > summary { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 24px 0; cursor: pointer; border-radius: var(--radius-sm); }
.sector > summary::-webkit-details-marker { display: none; }
.sector__text { display: block; min-width: 0; }
.sector__name { display: block; margin: 0; font-size: 28px; line-height: 34px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink-muted); transition: color var(--motion-fast); }
.sector__line { display: block; margin-top: 4px; font-size: 16px; line-height: 24px; color: var(--ink-muted); }
.sector > summary:hover .sector__name, .sector[open] .sector__name { color: var(--ink); }
.sector__icon { width: 24px; height: 24px; color: var(--ink); transition: transform var(--motion-fast); }
.sector[open] .sector__icon { transform: rotate(45deg); }
.sector__body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px 48px; padding: 0 0 40px; }
.sector__body > div > p { color: var(--ink-muted); text-wrap: pretty; }
@media (min-width: 1024px) {
  .sector__text { display: contents; }
  .sector__name { font-size: 40px; line-height: 44px; letter-spacing: -0.02em; }
  .sector > summary { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) auto; gap: 32px; padding: 28px 0; }
  .sector__line { margin-top: 0; }
  .sector__body { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px; padding-right: 56px; }
}

/* ---------- Technologies page ---------- */
.principles { display: grid; gap: 32px 40px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.layers { border-top: 1px solid var(--line); }
.layer { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px 32px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.layer__name { font-size: 14px; line-height: 20px; color: var(--ink-muted); font-weight: 700; }
.layer__tools { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 22px; line-height: 30px; font-weight: 700; letter-spacing: -0.01em; }
.layer__tools li { display: inline-flex; align-items: center; gap: 10px; }
@media (min-width: 768px) { .layer { grid-template-columns: 240px minmax(0, 1fr); align-items: baseline; } }

/* ---------- About page ---------- */
.about-intro { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
.about-intro h2 { margin: 16px 0 20px; }
.about-intro p:not(.eyebrow) { color: var(--ink-muted); text-wrap: pretty; }
.about-intro p + p { margin-top: 16px; }
@media (min-width: 1024px) { .about-intro { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; } }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.fact { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 4px; padding: 24px 16px 24px 0; border-bottom: 1px solid var(--line); }
.fact:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
.fact__value { font-family: var(--font-mono); font-size: clamp(36px, 5vw, 56px); line-height: 1; font-weight: 700; letter-spacing: -0.03em; }
.fact__label { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.purpose { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin-top: 64px; }
.purpose > div { padding: 32px; border-radius: var(--radius-lg); background: var(--surface-sunken); }
.purpose > div:last-child { background: var(--midnight); color: #ffffff; }
.purpose > div:last-child p { color: #aab7cc; }
.purpose h3 { margin-bottom: 12px; }
.purpose p { color: var(--ink-muted); font-size: 18px; line-height: 28px; text-wrap: pretty; }
.timeline { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--line); }
.moment { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); }
.moment__year { font-family: var(--font-mono); font-size: 20px; line-height: 28px; font-weight: 700; }
.moment p { display: flex; align-items: center; gap: 10px; }
@media (min-width: 1024px) {
  .timeline { grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 0; }
  .moment { grid-template-columns: minmax(0, 1fr); gap: 12px; align-content: start; padding: 20px 16px 0 0; border-bottom: 0; border-top: 1px solid var(--line-strong); }
  .moment__year { font-size: 24px; line-height: 32px; }
  .moment p { display: block; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
  .moment--key { border-top-color: var(--ink); }
  .moment--key .moment__year::after { content: ""; display: inline-block; width: var(--point-size); height: var(--point-size); margin-left: 8px; border-radius: var(--radius-full); background: var(--citrus); vertical-align: middle; }
}

/* ---------- Careers page ---------- */
.roles { max-width: 880px; border-top: 1px solid var(--line); }
.role { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.role:focus-visible { border-radius: var(--radius-sm); }
.role__name { font-weight: 700; font-size: clamp(18px, 2.2vw, 24px); line-height: 1.3; letter-spacing: -0.01em; }
.role__apply { flex: none; font-size: 14px; line-height: 20px; font-weight: 700; color: var(--link); transition: transform var(--motion-fast); }
.role:hover .role__name { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.role:hover .role__apply { transform: translateX(4px); }

/* ---------- Contact page ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
@media (min-width: 1024px) { .contact { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: start; } }
.contact h2 { margin-bottom: 8px; }
.contact__intro { color: var(--ink-muted); margin-bottom: 32px; }
.form { display: flex; flex-direction: column; gap: 24px; }
.form__row { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > label { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.input, .select, .textarea { width: 100%; height: var(--control-height); padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink);
  font-family: var(--font-sans); font-size: 16px; line-height: 24px; }
.textarea { height: auto; min-height: 144px; padding: 8px 12px; resize: vertical; }
.select { appearance: none; -webkit-appearance: none; padding-right: 36px; background-repeat: no-repeat; background-position: right 12px center; background-size: 16px 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a5871' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
.input::placeholder, .textarea::placeholder { color: var(--ink-subtle); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { border-radius: var(--radius-sm); }
.input:user-invalid, .textarea:user-invalid { border-color: var(--danger); }
.form__submit { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form__note { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.sent { display: grid; gap: 16px; }
.sent__line { display: flex; gap: 12px; align-items: baseline; font-weight: 700; }
.sent__line .point { position: relative; top: -2px; }
.copy-block { margin: 0; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-sunken); font-family: var(--font-mono); font-size: 13px; line-height: 20px; white-space: pre-wrap; overflow-wrap: anywhere; }
.contact-card { padding: 32px; background: var(--surface-sunken); border-radius: var(--radius-lg); }
.contact-card h2 { margin-bottom: 12px; }
.contact-card > p { color: var(--ink-muted); margin-bottom: 24px; text-wrap: pretty; }
.contact-list div { padding: 16px 0; border-top: 1px solid var(--line); }
.contact-list dt { margin-bottom: 4px; }
.contact-list dd { font-size: 16px; line-height: 24px; }
.contact-list dd + dd { color: var(--ink-muted); }
@media (min-width: 1024px) { .contact-card { position: sticky; top: calc(var(--header-h) + 24px); } }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); color: var(--ink); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding: 64px 0 48px; }
.footer-blurb { margin-top: 20px; max-width: 320px; font-size: 14px; line-height: 20px; color: var(--ink-muted); text-wrap: pretty; }
.footer-col h2 { margin-bottom: 16px; }
.footer-col li + li { margin-top: 10px; }
.footer-col li, .footer-col a { font-size: 14px; line-height: 20px; }
.footer-col li { color: var(--ink-muted); }
.footer-col a { color: var(--ink); text-decoration: none; }
.footer-col a:hover { text-decoration: underline; text-underline-offset: 2px; color: var(--ink); }
.legal { padding: 24px 0 32px; border-top: 1px solid var(--line); font-size: 12px; line-height: 16px; color: var(--ink-muted); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 48px; } }

/* ---------- 404 ---------- */
.lost { padding: 96px 0; max-width: var(--text-max); }
.lost h1 { margin: 16px 0 20px; }
.lost p { color: var(--ink-muted); margin-bottom: 32px; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
