/* Future Tech Ventures — variant C · Technical precision
   Fonts: Geist + Geist Mono (SIL OFL 1.1, see fonts/OFL.txt), self-hosted, Latin + Latin Extended subset. */

@font-face {
  font-family: "Geist";
  src: url("fonts/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("fonts/geist-mono.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #efeee9;
  --paper-2: #e6e5df;
  --ink: #16171a;
  --ink-2: #4a4c50;
  --ink-3: #5a5c60;
  --hair: #c4c2ba;
  --signal: #ff4f00;          /* graphic use only: 2.8:1 on paper */
  --signal-text: #b33a00;     /* 5.1:1 on paper */
  --signal-on-ink: #ff6a26;   /* 5.9:1 on ink */

  --sans: "Geist", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --gutter: clamp(1rem, 3.2vw, 3.5rem);
  --edge: clamp(0.875rem, 2.6vw, 2.5rem);
  --line: 1px;
  --heavy: 2px;

  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

p, h1, h2, h3, dl, dd, figure { margin: 0; }

a { color: inherit; }

:focus-visible {
  outline: 0.1875rem solid var(--signal-text);
  outline-offset: 0.1875rem;
}
main:focus { outline: none; }

/* ---------- skip link ---------- */
.skip-link {
  position: absolute;
  z-index: 10;
  left: 0.75rem;
  top: 0.75rem;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }
.skip-link:focus-visible { outline-color: var(--signal-on-ink); outline-offset: 0.125rem; }

/* ---------- the drawing sheet ---------- */
.sheet {
  position: relative;
  max-width: 92rem;
  margin: var(--edge) auto;
  margin-inline: max(var(--edge), calc((100% - 92rem) / 2));
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  border: var(--heavy) solid var(--ink);
}

/* crop marks, set outside the sheet like a print trim */
.crop {
  position: absolute;
  width: 0;
  height: 0;
  pointer-events: none;
  --gap: clamp(0.1875rem, 0.6vw, 0.5rem);
  --len: clamp(0.5rem, 1.6vw, 1.5rem);
}
.crop::before,
.crop::after {
  content: "";
  position: absolute;
  background: var(--ink);
}
.crop::before { width: var(--len); height: 1px; }
.crop::after { width: 1px; height: var(--len); }
.crop--tl { top: calc(-1 * var(--heavy)); left: calc(-1 * var(--heavy)); }
.crop--tr { top: calc(-1 * var(--heavy)); right: calc(-1 * var(--heavy)); }
.crop--bl { bottom: calc(-1 * var(--heavy)); left: calc(-1 * var(--heavy)); }
.crop--br { bottom: calc(-1 * var(--heavy)); right: calc(-1 * var(--heavy)); }
.crop--tl::before { right: calc(var(--gap)); top: 0; }
.crop--tl::after { bottom: calc(var(--gap)); left: 0; }
.crop--tr::before { left: calc(var(--gap)); top: 0; }
.crop--tr::after { bottom: calc(var(--gap)); right: 0; }
.crop--bl::before { right: calc(var(--gap)); bottom: 0; }
.crop--bl::after { top: calc(var(--gap)); left: 0; }
.crop--br::before { left: calc(var(--gap)); bottom: 0; }
.crop--br::after { top: calc(var(--gap)); right: 0; }

/* zone references along the border, as on an engineering drawing */
.zones {
  display: flex;
  font-family: var(--mono);
  font-size: 0.6875rem;
  line-height: 1;
  color: var(--ink-2);
  font-feature-settings: "zero" 1;
}
.zones span {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.zones--x {
  grid-column: 2;
  grid-row: 1;
  border-bottom: var(--line) solid var(--ink);
  min-height: 1.75em;
}
.zones--x span + span { border-left: var(--line) solid var(--hair); }
.zones--y {
  grid-column: 1;
  grid-row: 2;
  flex-direction: column;
  border-right: var(--line) solid var(--ink);
  width: 1.9em;
}
.zones--y span + span { border-top: var(--line) solid var(--hair); }
/* corner cell */
.sheet::before {
  content: "";
  grid-column: 1;
  grid-row: 1;
  border-right: var(--line) solid var(--ink);
  border-bottom: var(--line) solid var(--ink);
  background:
    linear-gradient(45deg, transparent calc(50% - 0.5px), var(--hair) calc(50% - 0.5px), var(--hair) calc(50% + 0.5px), transparent calc(50% + 0.5px));
}

.frame {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* ---------- masthead ---------- */
.masthead {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 1.5rem;
  padding: 0.75rem var(--gutter);
  border-bottom: var(--line) solid var(--ink);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.75rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.mark {
  position: relative;
  flex: none;
  width: 1.75rem;
  aspect-ratio: 1;
}
.mark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  border-top-right-radius: 100%;
}
.mark::after {
  content: "";
  position: absolute;
  left: 73%;
  top: 9%;
  width: 18%;
  height: 18%;
  border-radius: 50%;
  background: var(--signal);
}

.coords {
  flex: 1 1 auto;
  justify-content: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  border: var(--line) solid var(--ink);
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
}
.nav-link:hover { background: var(--ink); color: var(--paper); }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: end;
  padding: clamp(2.5rem, 7vw, 6.5rem) var(--gutter) clamp(2.5rem, 5vw, 4.5rem);
  border-bottom: var(--line) solid var(--ink);
}

.hero-text {
  container-type: inline-size;
  min-width: 0;
}

.tag {
  display: inline-flex;
  align-items: flex-start;
  line-height: 1.5;
  gap: 0.625rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.tag-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  margin-top: calc(0.75em - 0.25rem);
  background: var(--signal);
  flex: none;
}

h1 {
  font-weight: 620;
  font-size: min(10rem, 24.5cqi);
  line-height: 0.86;
  letter-spacing: -0.055em;
  margin-left: -0.05em;
}

.lead {
  text-wrap: pretty;
  margin-top: clamp(1.75rem, 3.5vw, 3rem);
  padding-top: 1rem;
  border-top: var(--line) solid var(--ink);
  max-width: 30rem;
  font-size: clamp(1.25rem, 1rem + 0.9vw, 1.625rem);
  line-height: 1.3;
  letter-spacing: -0.012em;
  font-weight: 430;
}

/* ---------- figure: the mark, drawn with its construction ---------- */
.drawing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto auto;
  column-gap: 0.75rem;
  row-gap: 0.5rem;
  width: 100%;
  max-width: 30rem;
  justify-self: end;
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--ink-2);
  font-feature-settings: "zero" 1;
}

.drawing-dim {
  display: grid;
  align-items: center;
  justify-items: center;
}
.drawing-dim span {
  position: relative;
  z-index: 1;
  padding: 0 0.5em;
  background: var(--paper);
  line-height: 1.2;
}
.drawing-dim--x {
  grid-column: 1;
  grid-row: 1;
  grid-template-columns: 15fr 60fr 25fr;
}
.drawing-dim--x span { grid-column: 2; grid-row: 1; }
.drawing-dim--x::before {
  content: "";
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  justify-self: stretch;
  height: 0.75em;
  border-inline: var(--line) solid var(--ink);
  background: linear-gradient(var(--ink), var(--ink)) center / 100% 1px no-repeat;
}
.drawing-dim--y {
  grid-column: 2;
  grid-row: 2;
  grid-template-rows: 25fr 60fr 15fr;
}
.drawing-dim--y span {
  grid-row: 2;
  grid-column: 1;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  padding: 0.5em 0.2em;
}
.drawing-dim--y::before {
  content: "";
  grid-row: 2;
  grid-column: 1;
  justify-self: center;
  align-self: stretch;
  width: 0.75em;
  border-block: var(--line) solid var(--ink);
  background: linear-gradient(var(--ink), var(--ink)) center / 1px 100% no-repeat;
}

.drawing-field {
  grid-column: 1;
  grid-row: 2;
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: var(--line) solid var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(to right, rgb(22 23 26 / 0.075) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(22 23 26 / 0.075) 1px, transparent 1px);
  background-size: 5% 5%;
}
.drawing-field > span { position: absolute; display: block; }

.d-square {
  left: 15%; top: 25%; width: 60%; height: 60%;
  border: var(--line) solid rgb(22 23 26 / 0.45);
}
.d-quarter {
  left: 15%; top: 25%; width: 60%; height: 60%;
  background: var(--ink);
  border-top-right-radius: 100%;
  transform-origin: 0 100%;
}
.d-orbit {
  left: -54.6%; top: 15.4%; width: 139.2%; height: 139.2%;
  border-radius: 50%;
  border: 1.5px dashed var(--signal);
}
.d-dot {
  left: 58.8%; top: 30.4%; width: 10.8%; height: 10.8%;
  border-radius: 50%;
  background: var(--signal);
}
/* dash-dot centre lines through the dot */
.d-axis--h {
  left: 0; right: 0; top: 35.8%; height: 1px;
  background: repeating-linear-gradient(to right, var(--ink) 0 14px, transparent 14px 18px, var(--ink) 18px 20px, transparent 20px 24px);
  opacity: 0.55;
}
.d-axis--v {
  top: 0; bottom: 0; left: 64.2%; width: 1px;
  background: repeating-linear-gradient(to bottom, var(--ink) 0 14px, transparent 14px 18px, var(--ink) 18px 20px, transparent 20px 24px);
  opacity: 0.55;
}
/* centre mark of the arc */
.d-centre {
  left: 15%; top: 85%; width: 7%; height: 7%;
  transform: translate(-50%, -50%);
  background:
    linear-gradient(var(--ink), var(--ink)) center / 100% 1px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1px 100% no-repeat;
}

.drawing-cap {
  grid-column: 1 / -1;
  grid-row: 3;
  padding-top: 0.25rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- numbered blocks ---------- */
.block {
  display: grid;
  grid-template-columns: minmax(11rem, 3fr) minmax(0, 9fr);
  gap: 1.5rem clamp(2rem, 4vw, 4rem);
  padding: clamp(2.25rem, 5vw, 4.5rem) var(--gutter);
  border-bottom: var(--line) solid var(--ink);
}

.block-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
}
.block-no {
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--signal-text);
  font-feature-settings: "zero" 1;
}
h2 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.2;
}

.prose { max-width: 50rem; }
.prose p + p { margin-top: 1.25rem; }
.prose-lead {
  font-size: clamp(1.5rem, 1.05rem + 1.5vw, 2.375rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
  font-weight: 460;
  text-wrap: pretty;
}
.prose p:not(.prose-lead) {
  max-width: 36rem;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink-2);
}

/* ---------- contact ---------- */
.contact .block-body {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 2.5rem clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.field-label {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  line-height: 1.3;
}

.person-name {
  margin-top: 0.5rem;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  font-weight: 560;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.email {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 100%;
  min-height: 2.75rem;
  margin-top: 1.25rem;
  padding: 0.375rem 0;
  border-bottom: var(--heavy) solid var(--ink);
  font-size: clamp(1.0625rem, 0.95rem + 0.5vw, 1.375rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.25;
  text-decoration: none;
  transition: border-color 0.15s;
}
.email-text { min-width: 0; overflow-wrap: anywhere; }
.email-arrow {
  flex: none;
  color: var(--signal-text);
  transition: transform 0.2s;
}
.email:hover { border-bottom-color: var(--signal-text); }
.email:hover .email-arrow { transform: translateX(0.25rem); }

/* title block: company details set like an engineering drawing's title block */
.titleblock {
  border: var(--heavy) solid var(--ink);
  min-width: 0;
}
.titleblock-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding: 0.625rem 1rem;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.3;
}
.titleblock-ref { color: var(--signal-on-ink); }

.titleblock-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.tb {
  min-width: 0;
  padding: 0.75rem 1rem 0.875rem;
  border-top: var(--line) solid var(--ink);
}
.tb:nth-child(3) { border-left: var(--line) solid var(--ink); }
.tb--name,
.tb--addr { grid-column: 1 / -1; }
.tb:first-child { border-top: 0; }
.tb dt {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  line-height: 1.3;
}
.tb dd {
  margin-top: 0.375rem;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.35;
  overflow-wrap: break-word;
}
.tb dd.num {
  font-family: var(--mono);
  font-size: 1rem;
  font-feature-settings: "zero" 1, "tnum" 1;
  letter-spacing: 0.01em;
}
.tb--name dd { letter-spacing: 0.02em; }

/* ---------- AI models ---------- */

/* Cells sit on an ink ground, so the hairlines line up at any column count. */
.models-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--line);
  background: var(--ink);
  border: var(--heavy) solid var(--ink);
  list-style: none;
  padding: 0;
}

.model {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0.875rem 1rem 1.125rem;
  background: var(--paper);
}

.model-name {
  margin-top: 0.5rem;
  font-size: 1.125rem;
  font-weight: 560;
  letter-spacing: -0.012em;
  line-height: 1.25;
}

.model-text {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink-2);
}

.model-stat {
  margin-top: auto;
  padding-top: 1.25rem;
  font-family: var(--mono);
  font-feature-settings: "zero" 1, "tnum" 1;
}
.model-stat-pre {
  font-size: 0.8125rem;
  color: var(--ink-2);
}
.model-stat-num {
  font-size: clamp(1.5rem, 1.1rem + 0.8vw, 1.875rem);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.model-stat-unit {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.model-stat-ctx {
  margin-top: 0.375rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--ink-2);
}

@media (max-width: 68rem) {
  .models-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 30rem) {
  .models-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- footer ---------- */
.footer {
  display: grid;
  grid-template-columns: minmax(11rem, 3fr) minmax(0, 9fr);
  gap: 0.75rem clamp(2rem, 4vw, 4rem);
  align-items: baseline;
  padding: 1.25rem var(--gutter) 1.5rem;
  margin-top: auto;
  font-size: 0.875rem;
  line-height: 1.5;
}
.copy {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}
.privacy {
  max-width: 44rem;
  color: var(--ink-2);
}
.privacy-label {
  margin-right: 0.5rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}

/* ---------- responsive ---------- */
@media (max-width: 68rem) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); }
  .contact .block-body { grid-template-columns: minmax(0, 1fr); }
  .titleblock { max-width: 40rem; }
}

@media (max-width: 52rem) {
  .coords { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .drawing { justify-self: start; max-width: 22rem; }
  .block,
  .footer { grid-template-columns: minmax(0, 1fr); }
  .zones--x span:nth-child(n + 5) { display: none; }
}

@media (max-width: 30rem) {
  .titleblock-grid { grid-template-columns: minmax(0, 1fr); }
  .tb:nth-child(3) { border-left: 0; }
  .masthead { padding-block: 0.5rem; gap: 0.5rem 0.75rem; }
  .nav-link { padding-inline: 0.75rem; }
  .brand { font-size: 1rem; gap: 0.625rem; }
  .mark { width: 1.5rem; }
}

@media (max-width: 22rem) {
  :root { --edge: 0.5rem; --gutter: 0.875rem; }
  .crop { --gap: 0.125rem; --len: 0.3125rem; }
  .sheet { grid-template-columns: minmax(0, 1fr); }
  .sheet::before, .zones--y { display: none; }
  .zones--x, .frame { grid-column: 1; }
  .zones--x span:nth-child(n + 4) { display: none; }
  .tb { padding-inline: 0.75rem; }
  .tb dt { letter-spacing: 0.04em; }
  .titleblock-head { padding-inline: 0.75rem; letter-spacing: 0.06em; }
}

/* ---------- AI first screen: hero statement + AI products, above the fold ---------- */
.hero.hero--ai {
  grid-template-columns: minmax(0, 9fr) minmax(0, 3fr);
  padding: clamp(1.25rem, 2vw, 2.5rem) var(--gutter) clamp(1rem, 1.6vw, 2rem);
}
.hero--ai .tag { margin-bottom: clamp(0.875rem, 1.6vw, 1.5rem); }
.hero--ai h1 {
  font-size: clamp(1.75rem, 8cqi, 4rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  margin-left: -0.04em;
  text-wrap: balance;
}
.hero-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  margin-top: clamp(1rem, 2vw, 1.75rem);
  padding-top: 0.75rem;
  border-top: var(--line) solid var(--ink);
}
.hero--ai .lead {
  flex: 1 1 22rem;
  max-width: 36rem;
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
  font-size: clamp(1.125rem, 0.95rem + 0.6vw, 1.375rem);
}
.hero-cta {
  flex: 0 1 auto;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  border: var(--line) solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s;
}
.hero-cta:hover { background: var(--signal-text); border-color: var(--signal-text); }
.hero--ai .drawing { max-width: 15rem; }

.ai {
  padding: clamp(1.25rem, 2vw, 1.75rem) var(--gutter) clamp(2.25rem, 5vw, 4.5rem);
  border-bottom: var(--line) solid var(--ink);
}
.ai-head {
  display: grid;
  grid-template-columns: minmax(11rem, 3fr) minmax(0, 9fr);
  gap: 0.5rem clamp(2rem, 4vw, 4rem);
  align-items: baseline;
  margin-bottom: clamp(0.75rem, 1.6vw, 1.25rem);
}
.ai-intro {
  max-width: 44rem;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
}

@media (max-width: 52rem) {
  .hero.hero--ai { grid-template-columns: minmax(0, 1fr); }
  .hero--ai .drawing { display: none; }
  .ai-head { grid-template-columns: minmax(0, 1fr); }
}

/* iOS Safari shows about 664 px of an 844 px phone, so the first product and its
   proof figure need a tighter rhythm than the desktop first screen uses. */
@media (max-width: 30rem) {
  .hero.hero--ai { padding-block: 0.375rem; }
  .hero--ai .tag { margin-bottom: 0.375rem; }
  .hero-foot { margin-top: 0.5rem; padding-top: 0.5rem; gap: 0.375rem 2rem; }
  .hero--ai .lead { font-size: 1rem; }
  .ai { padding-top: 0.375rem; }
  .ai-head { gap: 0.25rem; margin-bottom: 0.25rem; }
  .ai-intro { font-size: 0.875rem; line-height: 1.4; }
  .model { padding: 0.5rem 0.875rem; }
  .model-name { margin-top: 0.375rem; }
  .model-text { margin-top: 0.375rem; font-size: 0.875rem; line-height: 1.4; }
  .model-stat { padding-top: 0.375rem; }
  .model-stat-ctx { font-size: 0.8125rem; line-height: 1.4; }
}

/* ---------- motion: the figure draws itself once ---------- */
@media (prefers-reduced-motion: no-preference) {
  .d-square { animation: fade 0.6s 0.1s both; }
  .d-quarter { animation: sweep 0.9s 0.25s cubic-bezier(0.2, 0.7, 0.1, 1) both; }
  .d-orbit { animation: fade 0.8s 0.9s both; }
  .d-dot { animation: pop 0.5s 1.05s cubic-bezier(0.3, 1.6, 0.5, 1) both; }
  .d-axis--h { animation: drawx 0.7s 0.6s ease-out both; transform-origin: 0 50%; }
  .d-axis--v { animation: drawy 0.7s 0.7s ease-out both; transform-origin: 50% 0; }
  .hero-text > * { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.1, 1) both; }
  .hero-text > :nth-child(2) { animation-delay: 0.08s; }
  .hero-text > :nth-child(3) { animation-delay: 0.16s; }
}

@keyframes fade { from { opacity: 0; } }
@keyframes sweep { from { transform: rotate(-90deg) scale(0.6); opacity: 0; } }
@keyframes pop { from { transform: scale(0); } }
@keyframes drawx { from { transform: scaleX(0); } }
@keyframes drawy { from { transform: scaleY(0); } }
@keyframes rise { from { opacity: 0; transform: translateY(0.75rem); } }

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