/* Nautilus Tech Labs. Tokens first; everything below reads from them. */
:root {
  --bg: #fbfbfd;
  --surface: #f0f0f3;
  --ink: #111316;
  --muted: #5e6268;
  --soft: #73777d;
  --accent: #0a5c8f;
  --accent-ink: #ffffff;
  --deep: #050607;
  --deep-2: #121416;
  --deep-ink: #f2f2f2;
  --deep-muted: #a7a9ab;
  --shell: #0b3558;
  --shell-2: #0e406a;
  --shell-ink: #f2f2f2;
  --link-dark: #8fd0ff;
  --accent-hover: #084c76;
  --line: #7d828a;
  --hover: #e4e5e9;
  --ok: #1f6b3a;
  --err: #a1261b;
  --panel: #16191d;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2.5rem, 1.2rem + 5vw, 5.5rem);
  --step-display: clamp(2.4rem, 9.4vw, 11rem);

  --margin: clamp(16px, 3vw, 44px);
  --gap: clamp(80px, 9vw, 140px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
section[id] { scroll-margin-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Archivo", system-ui, -apple-system, sans-serif;
  font-size: var(--step-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ol, ul, figure, blockquote { margin: 0; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
[data-chapter="dark"] :focus-visible, .bar[data-ink="light"] :focus-visible, .foot :focus-visible, .svc-foot :focus-visible, .doc-foot :focus-visible { outline-color: var(--link-dark); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--err); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header: wordmark left, two links and the one action right. Its ink follows the chapter beneath. */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px var(--margin);
  color: var(--ink);
  background: var(--bg);
  transition: color 300ms ease, background-color 300ms ease;
}
.bar[data-ink="light"] { color: var(--deep-ink); }
.wordmark { font-weight: 700; font-size: var(--step-small); text-decoration: none; letter-spacing: -0.01em; }
.bar nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 32px); font-size: var(--step-small); }
.bar nav a:not(.btn) { text-decoration: none; }
.bar nav a:not(.btn):hover { text-decoration: underline; text-underline-offset: 4px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 22px;
  border: 0; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font: 500 var(--step-small)/1 "Archivo", system-ui, sans-serif;
  text-decoration: none; cursor: pointer;
  transition: transform 200ms var(--ease-out), background-color 200ms ease;
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: scale(0.96); }
.btn[disabled] { opacity: .55; cursor: progress; }
.bar[data-ink="light"] .btn { background: var(--deep-ink); color: var(--deep); }

/* Hero: one colour field, two inks, the statement in the upper two-thirds. */
.hero {
  display: grid; grid-template-rows: auto auto; row-gap: clamp(56px, 11vh, 120px);
  padding: 22svh var(--margin) clamp(64px, 10vh, 112px);
  background: var(--bg);
}
.hero h1 {
  font-weight: 800; font-stretch: 78%;
  font-size: var(--step-display);
  line-height: 0.9; letter-spacing: -0.045em;
  max-width: 100%;
}
.hero h1 span { display: block; }
.hero h1 .two { color: var(--soft); }
.hero-foot {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: end;
}
.hero-side { grid-column: 7 / 13; display: grid; gap: 28px; justify-items: start; }
.hero-side p { font-size: var(--step-lead); line-height: 1.35; letter-spacing: -0.01em; max-width: 34ch; }
.hero-foot .actions { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.hero-foot .actions a:not(.btn) { font-size: var(--step-small); text-underline-offset: 4px; }

/* A full-bleed picture between two type sections: the shell cut open, chambers showing. */
.section-view { background: var(--deep); color: var(--deep-ink); padding: 0 0 var(--gap); }
.section-view figure { overflow: hidden; }
.section-view img { width: 100%; height: min(92svh, 64vw); object-fit: cover; object-position: 50% 45%; }
.section-view .view-text {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px;
  padding: 56px var(--margin) 0;
}
.section-view h2 { grid-column: 1 / 7; font-size: var(--step-head); font-weight: 800; line-height: .95; letter-spacing: -0.04em; }
.section-view .view-text p { grid-column: 8 / 13; font-size: var(--step-lead); line-height: 1.4; color: var(--deep-ink); }
.section-view .view-text .caption { grid-column: 8 / 13; margin-top: 0; }

/* Showcase: the copy on the left, a working assistant fragment on the right. */
.showcase {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: center;
  padding: var(--gap) var(--margin);
  background: var(--deep-2); color: var(--deep-ink);
}
.showcase-copy { grid-column: 1 / 7; }
.showcase h2, .band h2, .faq h2 { font-size: var(--step-head); font-weight: 800; line-height: .95; letter-spacing: -0.04em; }
.showcase-copy p { margin-top: 24px; font-size: var(--step-lead); line-height: 1.4; max-width: 34ch; }
.showcase-copy .note { font-size: var(--step-small); color: var(--deep-muted); line-height: 1.5; }
.chat {
  grid-column: 8 / 13;
  background: #1c1f23; border-radius: 22px; padding: 20px;
  display: grid; gap: 12px; font-size: 1rem; line-height: 1.45;
}
.chat-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 8px 10px 14px; border-bottom: 1px solid #2c3036; } /* taste-skill-ignore: part of the data-ui chat fragment */
.chat-name { font-weight: 700; }
.chat-model { color: var(--deep-muted); font-size: var(--step-small); }
.msg { max-width: 88%; padding: 12px 16px; border-radius: 18px; }
.msg.me { justify-self: end; background: var(--accent); color: #fff; border-bottom-right-radius: 6px; }
.msg.ai { justify-self: start; background: #2a2e34; border-bottom-left-radius: 6px; }
.sources { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.sources span { font-size: var(--step-small); background: #3a3f46; color: #dfe3e8; padding: 6px 12px; border-radius: 999px; }
.chat-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 10px 10px 4px; color: var(--deep-muted); font-size: var(--step-small); }

/* Band: one tall photograph beside the copy and a second, wide one. */
.band {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: start;
  padding: var(--gap) var(--margin);
  background: var(--deep); color: var(--deep-ink);
}
.band-tall { grid-column: 1 / 6; }
.band-copy { grid-column: 7 / 13; }
.band-copy p { margin-top: 24px; font-size: var(--step-lead); line-height: 1.4; max-width: 36ch; }
.band-copy figure { margin-top: 48px; overflow: hidden; }
.band-copy img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.band figcaption { font-size: var(--step-small); color: var(--deep-muted); margin-top: 8px; }

/* FAQ: questions in two columns on a surface tone. */
.faq { padding: var(--gap) var(--margin); background: var(--surface); }
.qa { margin: 56px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 48px 64px; }
.qa dt { font-weight: 700; font-size: clamp(1.125rem, 1rem + .45vw, 1.5rem); letter-spacing: -0.015em; line-height: 1.3; }
.qa dd { margin: 10px 0 0; max-width: 56ch; }
.opt { font-weight: 400; color: var(--muted); }

/* App development fragment: code beside the phone it draws. */
.app-shot {
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; align-items: center;
  background: #15181c; border-radius: 22px; padding: 20px; overflow: hidden;
}
.code { background: #0d0f12; border-radius: 14px; padding: 14px 16px 16px; min-width: 0; }
.code-tabs { display: flex; gap: 14px; font-size: 0.8125rem; color: #7d848c; margin-bottom: 12px; overflow: hidden; white-space: nowrap; }
.code-tabs .on { color: #e8eaed; }
.code pre { margin: 0; font: 0.8125rem/1.6 ui-monospace, "SF Mono", Menlo, monospace; color: #c9d1d9; overflow: hidden; }
.code .k { color: #ff7ab2; } .code .t { color: #8fd3ff; } .code .s { color: #ffbe7a; }
.phone { justify-self: center; width: min(220px, 100%); aspect-ratio: 9 / 19; background: #000; border-radius: 34px; padding: 8px; }
.screen { height: 100%; background: #f5f5f7; color: #111; border-radius: 27px; padding: 10px 12px; display: flex; flex-direction: column; gap: 7px; overflow: hidden; }
.status { display: flex; justify-content: space-between; align-items: center; font-size: 0.75rem; font-weight: 600; padding: 2px 6px 4px; }
.island { width: 58px; height: 16px; background: #000; border-radius: 999px; }
.ph-title { font-weight: 800; font-size: 1.5rem; letter-spacing: -0.02em; line-height: 1; margin-top: 4px; }
.ph-sub { font-size: 0.75rem; color: #6e6e73; }
.job { background: #fff; border-radius: 12px; padding: 9px 10px; display: grid; gap: 2px; font-size: 0.75rem; }
.job b { font-size: 0.8125rem; }
.job span { color: #6e6e73; }
.job.now { background: var(--accent); color: #fff; }
.job.now span { color: #d6e8f5; }
.job i { font-style: normal; font-weight: 600; font-size: 0.75rem; }
.ask { margin-top: auto; background: #e8e8ed; color: #55555a; border-radius: 999px; padding: 8px 12px; font-size: 0.75rem; }

/* Architecture diagram (light). */
.arch { width: 100%; height: auto; display: block; background: var(--surface); border-radius: 22px; padding: 20px; font-family: "Archivo", system-ui, sans-serif; }
.arch .lanes text { font-size: 15px; font-weight: 700; fill: var(--muted); }
.arch .links path { stroke: #b9bcc2; stroke-width: 2; fill: none; }
.arch .nodes rect { fill: var(--bg); stroke: #d5d7db; stroke-width: 1.5; }
.arch .nodes rect.wide { fill: var(--ink); stroke: none; }
.arch .nodes rect.wide + text { fill: var(--bg); }
.arch .nodes rect.hot { fill: var(--accent); stroke: none; }
.arch .nodes rect.side { fill: var(--hover); stroke: none; }
.arch .nodes text { font-size: 14px; font-weight: 600; fill: var(--ink); text-anchor: middle; dominant-baseline: middle; }
.arch .nodes text.hot { fill: #fff; }
.arch .nodes text.small { font-size: 11.5px; font-weight: 500; }
.arch .nodes text.side-t { font-size: 12.5px; font-weight: 600; fill: var(--muted); }
.arch .foot { font-size: 14px; fill: var(--muted); }

/* What we build: a comparison set as text, no lines. Applied AI is the filled column. */
.build { padding: var(--gap) var(--margin); background: var(--bg); }
.build h2 { font-size: var(--step-head); font-weight: 800; line-height: .95; letter-spacing: -0.04em; margin-bottom: 20px; }
.build .lede { max-width: 52ch; margin-bottom: 64px; font-size: var(--step-lead); line-height: 1.4; letter-spacing: -0.01em; }
.table { display: grid; grid-template-columns: 4fr repeat(3, 3fr); position: relative; }
.table > div { padding: 20px 22px; font-size: var(--step-body); line-height: 1.4; min-height: 72px; display: flex; align-items: center; }
.table .row-alt { background: var(--surface); }
.table .rh { font-weight: 600; font-size: clamp(1.125rem, 1rem + .45vw, 1.5rem); letter-spacing: -0.015em; }
.table .ch { font-weight: 700; align-items: flex-end; padding-top: 28px; }
.table .feat { background: #e3eef6; }
.table .feat.row-alt { background: #d6e6f1; }
.table .feat.ch { background: #e3eef6; color: var(--accent); }
.table-note { margin-top: 28px; max-width: 60ch; }
.tables-phone { display: none; }

/* How a project grows: four lines that step across like the shell's chambers. */
.grow { padding: var(--gap) var(--margin); background: var(--shell); color: var(--shell-ink); }
.grow-inner { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 56px; }
.stage { grid-column: var(--start) / 13; }
.stage h2, .stage h3 { font-size: clamp(2rem, 4.2vw, 4.25rem); font-weight: 700; line-height: 1; letter-spacing: -0.035em; }
.stage p { max-width: 38ch; margin-top: 12px; color: var(--shell-ink); opacity: .86; }
.stage:last-child h3 { color: var(--link-dark); }

/* Contact: the question at display size on the left, the form on a surface on the right. */
.contact { padding: var(--gap) var(--margin); background: var(--bg); }
.contact-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: start; }
.contact-copy { grid-column: 1 / 7; position: sticky; top: 96px; }
.contact-copy h2 { font-size: var(--step-head); font-weight: 800; line-height: .95; letter-spacing: -0.04em; }
.contact-copy p { margin-top: 24px; max-width: 40ch; font-size: var(--step-lead); line-height: 1.4; }
.next { margin-top: 40px; padding-left: 1.4em; display: grid; gap: 16px; max-width: 40ch; }
.next li { padding-left: 6px; }
.next li::marker { font-weight: 700; color: var(--accent); }
.next b { display: block; }
.form { grid-column: 8 / 13; background: var(--surface); padding: clamp(24px, 3.4vw, 48px); border-radius: 22px; }
.form fieldset { border: 0; padding: 0; margin: 0 0 28px; }
.form legend { font-weight: 600; margin-bottom: 12px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border-radius: 999px; background: var(--bg); color: var(--ink);
  font-size: var(--step-small); font-weight: 500;
  transition: background-color 200ms ease, color 200ms ease, transform 200ms var(--ease-out);
}
.chips label:hover span { background: var(--hover); }
.chips input:checked + span { background: var(--ink); color: var(--bg); }
.chips input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.chips input:active + span { transform: scale(.96); }
.field { display: grid; gap: 8px; margin-bottom: 20px; }
.field label { font-weight: 600; font-size: var(--step-small); }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; min-height: 52px;
  transition: border-color 200ms ease;
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(10, 92, 143, .18); } /* taste-skill-ignore: focus ring, not at rest */
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.form .turnstile { min-height: 70px; margin: 8px 0 20px; }
.form .consent { font-size: var(--step-small); color: var(--muted); margin-top: 16px; }
.form .status { margin-top: 16px; font-weight: 500; min-height: 1.5em; }
.form .status[data-state="ok"] { color: var(--ok); }
.form .status[data-state="error"] { color: var(--err); }

/* Footer: ground and ink inverted, columns above, the name across the full width below. */
.foot {
  min-height: 100svh;
  display: grid; grid-template-rows: auto 1fr auto auto;
  padding: 40px var(--margin) 24px;
  background: var(--deep); color: var(--deep-ink);
}
.foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.foot-cols h2 { font-size: var(--step-body); font-weight: 600; }
.foot-cols ul { list-style: none; padding: 0; margin-top: 2px; display: grid; gap: 0; }
.foot-cols li, .foot-cols p { color: var(--deep-muted); font-size: var(--step-body); }
.foot-cols a { text-decoration: none; display: inline-block; padding: 6px 0; }
.foot-cols a:hover { color: var(--deep-ink); text-decoration: underline; text-underline-offset: 4px; }
.foot .mark { display: block; width: 100%; height: auto; margin-top: 40px; fill: var(--deep-ink); }
.legal { margin-top: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: var(--step-small); color: var(--deep-muted); }
.legal a { color: var(--deep-ink); }

/* Service pages. */
.svc-hero {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: center;
  padding: 140px var(--margin) var(--gap); background: var(--bg);
}
.svc-copy { grid-column: 1 / 7; }
.crumbs { font-size: var(--step-small); color: var(--muted); margin-bottom: 20px; }
.crumbs a { color: var(--muted); }
.svc-hero h1 { font-size: var(--step-head); font-weight: 800; line-height: .95; letter-spacing: -0.04em; }
.svc-lede { margin-top: 24px; font-size: var(--step-lead); line-height: 1.4; max-width: 40ch; }
.svc-copy .actions { margin-top: 32px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.svc-copy .actions a:not(.btn) { font-size: var(--step-small); text-underline-offset: 4px; }
.svc-visual { grid-column: 8 / 13; }
.svc-visual .chat { background: var(--panel); color: var(--deep-ink); }
.svc-visual figcaption { font-size: var(--step-small); color: var(--muted); margin-top: 10px; }
.svc-points { padding: var(--gap) var(--margin); background: var(--surface); }
.svc-points h2, .svc-how h2, .cta h2 { font-size: var(--step-head); font-weight: 800; line-height: .95; letter-spacing: -0.04em; }
.svc-how { padding: var(--gap) var(--margin); background: var(--deep); color: var(--deep-ink); }
.svc-how dd a, .svc-more a { color: var(--link-dark); }
.svc-more { margin-top: 56px; font-size: var(--step-lead); line-height: 1.4; max-width: 52ch; }
.faq dd a { color: var(--accent); }
.cta { padding: var(--gap) var(--margin); background: var(--shell); color: var(--shell-ink); display: grid; justify-items: start; gap: 24px; }
.cta p { font-size: var(--step-lead); line-height: 1.4; max-width: 40ch; }
.cta .btn { background: var(--shell-ink); color: var(--shell); }
.cta .btn:hover { background: #fff; }
.svc-foot { padding: 56px var(--margin) 32px; background: var(--deep); color: var(--deep-ink); }
.svc-foot .legal { margin-top: 48px; }

/* Legal pages: one readable column. */
.doc { padding: 140px var(--margin) var(--gap); max-width: calc(68ch + 2 * var(--margin)); }
.doc h1 { font-size: var(--step-head); font-weight: 800; line-height: .95; letter-spacing: -0.04em; }
.doc .updated { color: var(--muted); margin-top: 16px; }
.doc h2 { font-size: var(--step-lead); font-weight: 700; letter-spacing: -0.015em; margin: 48px 0 12px; }
.doc p, .doc li { max-width: 68ch; }
.doc p + p, .doc ul + p { margin-top: 14px; }
.doc ul { padding-left: 1.2em; margin-top: 10px; display: grid; gap: 6px; }
.doc-foot { background: var(--deep); color: var(--deep-ink); padding: 40px var(--margin); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: var(--step-small); }

/* Motion: content is visible by default; the script opts parts in to an entrance. */
.js [data-rise] { opacity: 0; transform: translateY(24px); transition: opacity 800ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: var(--d, 0ms); }
.js [data-rise].in { opacity: 1; transform: none; }
.drift { animation: drift 24s ease-in-out infinite alternate; transform-origin: 50% 45%; }
@keyframes drift { from { transform: scale(1.02) translate3d(0, 0, 0); } to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); } }
figure img { transition: transform 900ms var(--ease-out); }
.band-copy figure:hover img { transform: scale(1.04); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-rise] { opacity: 1; transform: none; transition: none; }
  .drift { animation: none; }
  figure img, .btn, .chips span { transition: none; }
}

/* Tablet */
@media (max-width: 960px) {
  .hero-side { grid-column: 4 / 13; }
  .section-view h2, .section-view .view-text p, .section-view .view-text .caption { grid-column: 1 / 13; }
  .table { grid-template-columns: 3fr repeat(3, 3fr); }
  .table > div { padding: 16px 14px; font-size: 1rem; }
  .showcase-copy, .chat, .band-tall, .band-copy { grid-column: 1 / 13; }
  .chat { margin-top: 24px; }
  .contact-copy { grid-column: 1 / 13; position: static; }
  .svc-copy, .svc-visual { grid-column: 1 / 13; }
  .svc-visual { margin-top: 40px; }
  .svc-hero { padding-top: 112px; }
  .next { margin: 28px 0 8px; }
  .form { grid-column: 1 / 13; }
  .foot-cols { grid-template-columns: 1fr 1fr; row-gap: 32px; }
}

/* Phone: its own composition. */
@media (max-width: 640px) {
  .bar nav a.hide-sm, .hide-sm { display: none; }
  .menu { display: block; }
  .arch { display: none; }
  .arch-list { display: grid; }
  .hero { padding-top: 20svh; row-gap: 40px; }
  .hero h1 { font-size: 10.8vw; font-stretch: 70%; line-height: .92; letter-spacing: -0.035em; }
  .hero-foot { display: block; }
  .hero-side p { font-size: 1.125rem; }
  .section-view img { height: 62svh; }
  .section-view .view-text { display: block; }
  .section-view .view-text p { margin-top: 20px; }
  .section-view .view-text .caption { margin-top: 12px; }
  .table { display: none; }
  .tables-phone { display: grid; gap: 0; }
  .tables-phone section { padding: 20px 16px; }
  .tables-phone section:nth-child(even) { background: var(--surface); }
  .tables-phone h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 8px; }
  .tables-phone dl { margin: 0; display: grid; gap: 2px; }
  .tables-phone dt { font-size: var(--step-small); font-weight: 600; color: var(--muted); margin-top: 10px; }
  .tables-phone dd { margin: 0; }
  .table-note { margin-top: 20px; }
  .qa { grid-template-columns: 1fr; gap: 32px; margin-top: 32px; }
  .msg { max-width: 94%; }
  .app-shot { grid-template-columns: 1fr; }
  .code { display: none; }
  .phone { width: min(240px, 70%); }
  .arch { padding: 10px; }
  .grow-inner { display: block; }
  .stage { padding-left: calc(var(--i) * 6vw); margin-bottom: 40px; }
  .stage h2, .stage h3 { font-size: clamp(1.75rem, 8.4vw, 2.5rem); }
  .foot .mark { margin-top: 20svh; }
}

/* Links inside headings and dark copy. */
.table .ch a, .tables-phone h3 a { color: inherit; text-underline-offset: 4px; }
.showcase-copy a { color: var(--link-dark); }

/* Service page sections with a second visual. */
.svc-points, .svc-how, .cta { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: center; }
.svc-points-copy, .svc-how-copy, .cta-copy { grid-column: 1 / 7; }
.cta-copy { display: grid; justify-items: start; gap: 24px; }
.svc-second, .svc-photo, .cta-photo { grid-column: 8 / 13; overflow: hidden; }
.svc-second figcaption { font-size: var(--step-small); color: var(--muted); margin-top: 10px; }
.svc-photo figcaption { font-size: var(--step-small); color: var(--deep-muted); margin-top: 8px; }
.cta-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 22px; }
.qa.one { grid-template-columns: 1fr; gap: 32px; margin-top: 40px; }
@media (max-width: 960px) {
  .svc-points-copy, .svc-how-copy, .cta-copy, .svc-second, .svc-photo, .cta-photo { grid-column: 1 / 13; }
  .svc-second, .svc-photo, .cta-photo { margin-top: 32px; }
}

/* Phone menu: a native disclosure, so it works without script. */
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; padding: 0 6px; font-weight: 500; }
.menu summary::-webkit-details-marker { display: none; }
.menu-list {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px;
  display: grid; padding: 8px; border-radius: 16px;
  background: var(--bg); color: var(--ink);
  box-shadow: 0 12px 32px rgba(5, 6, 7, .22); /* taste-skill-ignore: a floating menu */
}
.menu-list a { padding: 12px 14px; border-radius: 10px; text-decoration: none; }
.menu-list a:hover { background: var(--surface); }

/* Shell-chamber release diagram. */
.shell-fig { display: grid; gap: 24px; }
.shell { width: 100%; height: auto; }
.shell .core { fill: none; stroke: #2e5f86; stroke-width: 2; }
.shell .old { stroke: #050607; stroke-width: 1.5; }
.shell .rel { fill: #2f79ad; stroke: #050607; stroke-width: 1.5; }
.shell .rel.now { fill: var(--link-dark); }
.shell .tags text { font: 700 17px "Archivo", system-ui, sans-serif; fill: #fff; text-anchor: middle; dominant-baseline: middle; }
.shell .tags text:last-child { fill: var(--deep); }
.shell-key { list-style: none; padding: 0; display: grid; gap: 10px; }
.shell-key li { display: grid; grid-template-columns: 2.6em 1fr; align-items: baseline; color: var(--deep-ink); }
.shell-key b { color: var(--link-dark); }
.shell-key li.now { font-weight: 600; }

/* Product panels on the service pages. */
.panel { background: var(--panel); color: var(--deep-ink); border-radius: 22px; padding: 22px; display: grid; gap: 16px; font-size: 1rem; }
.panel-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.panel-top span { color: var(--deep-muted); font-size: var(--step-small); }
.panel-foot { color: var(--deep-muted); font-size: var(--step-small); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pill { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: var(--step-small); font-weight: 600; white-space: nowrap; }
.pill.ok { background: #1d4d33; color: #bff0d2; }
.pill.wait { background: #4d3c12; color: #ffe2a3; }
.pill.test { background: #163a57; color: #cfe8fb; }
.eval table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.eval th { text-align: left; font-size: var(--step-small); font-weight: 600; color: var(--deep-muted); padding: 0 8px 10px 0; }
.eval td { padding: 12px 8px 12px 0; }
.eval tbody tr + tr td { border-top: 1px solid #2c3036; } /* taste-skill-ignore: rows of a data table */
.eval tr.win td { color: var(--link-dark); font-weight: 600; }
.builds ul, .runlog ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.builds li { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: #1f2328; border-radius: 14px; padding: 12px 14px; }
.builds li div { display: grid; }
.builds li div span { color: var(--deep-muted); font-size: var(--step-small); }
.runlog .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.runlog .stats div { background: #1f2328; border-radius: 14px; padding: 12px 14px; display: grid; }
.runlog .stats b { font-size: 1.75rem; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.runlog .stats span { color: var(--deep-muted); font-size: var(--step-small); }
.runlog li { display: grid; grid-template-columns: 3.4em 1fr auto; gap: 12px; align-items: center; padding: 6px 0; }
.runlog time { color: var(--deep-muted); font-variant-numeric: tabular-nums; font-size: var(--step-small); }

/* Architecture as a list on phones, where the diagram's text would be too small. */
.arch-list { display: none; list-style: none; padding: 16px; margin: 0; gap: 8px; background: var(--surface); border-radius: 22px; }
.arch-list li { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; padding: 10px 12px; background: var(--bg); border-radius: 12px; }
.arch-list li b { width: 100%; font-size: var(--step-small); color: var(--muted); }
.arch-list li span { background: var(--surface); padding: 4px 10px; border-radius: 999px; font-size: var(--step-small); }
.arch-list li span.hot { background: var(--accent); color: #fff; }
.arch-list li.dark { background: var(--ink); color: var(--bg); }
.arch-list li.dark b { color: var(--deep-muted); }
.arch-list li.dark span { background: #2a2e34; }
.arch-list li.side { background: var(--hover); }
@media (max-width: 640px) {
  .menu { display: block; }
  .arch-list { display: grid; }
  .runlog li { grid-template-columns: 3.4em 1fr; }
  .runlog li .pill { grid-column: 2; justify-self: start; }
  .shell-fig { gap: 16px; }
}
