/* Armwright — site styles.
   Palette from the cell's own materials: brushed aluminium ground, graphite steel ink,
   black anodised hero, and the e-stop yellow as the single signal colour. */

@font-face { font-family: "Armwright Sans"; src: url("../fonts/ArmwrightSans-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Armwright Sans"; src: url("../fonts/ArmwrightSans-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Armwright Sans"; src: url("../fonts/ArmwrightSans-Semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Armwright Sans"; src: url("../fonts/ArmwrightSans-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --alu: #eceeef;        /* aluminium sheet, page ground */
  --alu-2: #dfe2e4;      /* machined aluminium, rules and quiet surfaces */
  --steel: #8c9196;      /* raw steel, axis and secondary lines */
  --ink: #1e2226;        /* graphite steel, text */
  --ink-2: #555b61;      /* secondary text on aluminium (6.1:1) */
  --anod: #000;          /* black anodised, hero and closing */
  --signal: #f2bf0d;     /* e-stop yellow */
  --signal-press: #d9a900;

  --font: "Armwright Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4.4vw, 64px);
  --max: 1360px;
  --sec-y: clamp(88px, 12vw, 168px);
  --r-ctl: 6px;
  --r-media: 4px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --focus: var(--ink);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--alu);
  color: var(--ink);
  font-family: var(--font);
  font-size: clamp(17px, 0.35vw + 15.7px, 19px);
  line-height: 1.55;
  font-variant-numeric: proportional-nums;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol, dl, dd, figure { margin: 0; padding: 0; }

::selection { background: var(--signal); color: var(--anod); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
html { scrollbar-color: var(--steel) var(--alu); }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--signal); color: var(--anod); padding: 10px 14px; border-radius: var(--r-ctl); font-weight: 600; text-decoration: none; }
.skip:focus { top: 16px; }

/* Type scale: 1.333 (perfect fourth) from the body size */
h1 { font-size: clamp(34px, 4.74vw, 73px); line-height: 0.98; letter-spacing: -0.032em; font-weight: 600; }
h2 { font-size: clamp(32px, 3.9vw, 60px); line-height: 1.04; letter-spacing: -0.026em; }
h3 { font-size: clamp(19px, 0.5vw + 17px, 22px); line-height: 1.25; letter-spacing: -0.01em; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  color: #fff;
  transition: background-color .35s var(--ease-out), color .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.nav__row { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav.is-solid { background: color-mix(in srgb, var(--alu) 88%, transparent); color: var(--ink); backdrop-filter: saturate(1.2) blur(14px); -webkit-backdrop-filter: saturate(1.2) blur(14px); box-shadow: 0 1px 0 var(--alu-2); }
.wordmark { font-weight: 700; font-size: 21px; letter-spacing: -0.02em; text-decoration: none; }
.wordmark--sm { font-size: 17px; }
.nav__links { display: flex; gap: clamp(18px, 2.4vw, 36px); list-style: none; font-size: 16px; font-weight: 500; }
.nav__links a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; padding-bottom: 2px; transition: background-size .3s var(--ease-out); }
.nav__links a:hover { background-size: 100% 1px; }
.nav:not(.is-solid) { --focus: #fff; }

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border-radius: var(--r-ctl); border: 1px solid transparent;
  font: inherit; font-size: 16px; font-weight: 600; letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease-out), background-color .2s var(--ease-out), border-color .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); transition-duration: .06s; }
.btn--signal { background: var(--signal); color: var(--anod); box-shadow: 0 1px 2px rgb(0 0 0 / .18); }
.btn--signal:hover { box-shadow: 0 6px 18px -6px rgb(242 191 13 / .55), 0 1px 2px rgb(0 0 0 / .18); }
.btn--signal:active { background: var(--signal-press); }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 18px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 90vh; min-height: 90svh; display: flex; align-items: flex-end;
  background: var(--anod); color: #fff; overflow: hidden;
  --focus: #fff;
}
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero__scrim {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(to top, rgb(0 0 0 / .78) 0%, rgb(0 0 0 / .45) 34%, rgb(0 0 0 / 0) 62%),
    linear-gradient(to right, rgb(0 0 0 / .42) 0%, rgb(0 0 0 / 0) 55%),
    linear-gradient(to bottom, rgb(0 0 0 / .55) 0%, rgb(0 0 0 / 0) 20%);
}
.hero__body { padding-bottom: clamp(56px, 9vh, 112px); padding-top: 140px; }
.hero h1 { max-width: 12.5ch; }
.hero__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgb(255 255 255 / .14); pointer-events: none; }
.hero__progress span { display: block; height: 100%; width: 100%; background: var(--signal); transform-origin: 0 50%; transform: scaleX(0); will-change: transform; }
.hero__lead { max-width: 40ch; margin: clamp(20px, 2.4vw, 32px) 0 clamp(28px, 3vw, 40px); font-size: clamp(18px, 0.6vw + 15.5px, 22px); line-height: 1.45; color: rgb(255 255 255 / .86); }
.hero__toggle {
  position: absolute; right: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter))); bottom: clamp(58px, 9vh, 114px);
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid rgb(255 255 255 / .4); background: rgb(0 0 0 / .25); color: #fff;
  cursor: pointer; transition: background-color .2s, border-color .2s;
}
.hero__toggle:hover { background: rgb(0 0 0 / .45); border-color: #fff; }
.hero__toggle svg { width: 16px; height: 16px; fill: currentColor; }
.hero__toggle .i-play, .hero__toggle.is-paused .i-pause { display: none; }
.hero__toggle.is-paused .i-play { display: block; }

/* ---------- Sections ---------- */
.sec { padding-block: var(--sec-y); }
.sec + .sec { border-top: 1px solid var(--alu-2); }
.sec p + p { margin-top: 1em; }

/* Recovery: the arithmetic */
.recovery__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 112px); align-items: start; }
.recovery__copy h2 { margin-bottom: clamp(24px, 2.4vw, 36px); }
.recovery__copy p { max-width: 46ch; color: var(--ink-2); }
.chart__figure { line-height: .86; }
.chart__num { font-size: clamp(70px, 10.4vw, 160px); font-weight: 600; letter-spacing: -0.04em; }
.chart__cap { max-width: 34ch; margin-top: 18px; color: var(--ink-2); }
.chart__svg { width: 100%; height: auto; margin-top: clamp(28px, 3vw, 44px); overflow: visible; }
.chart__grid line { stroke: var(--alu-2); stroke-width: 1.5; }
.chart__axis text { fill: var(--ink-2); font-size: 15px; font-variant-numeric: tabular-nums; }
.chart__line { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.chart__pts circle { fill: var(--alu); stroke: var(--ink); stroke-width: 2.5; }
.chart__pts circle.is-end { fill: var(--signal); stroke: var(--anod); }
.chart__pts text { fill: var(--ink); font-size: 17px; font-weight: 600; }

/* How it works: a real sequence, so it is numbered */
.how__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 112px); margin-top: clamp(40px, 5vw, 72px); align-items: start; }
.steps { list-style: none; counter-reset: step; display: grid; gap: 0; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; padding: 22px 0; border-top: 1px solid var(--alu-2); }
.steps li:last-child { border-bottom: 1px solid var(--alu-2); }
.steps li::before { content: counter(step); grid-row: span 2; font-weight: 600; font-size: 19px; line-height: 1.3; color: var(--steel); font-variant-numeric: tabular-nums; }
.steps p { margin-top: 6px; color: var(--ink-2); max-width: 44ch; }
.how__media { position: sticky; top: 104px; }
.how__media img, .simple__media img, .cell__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r-media); background: var(--alu-2); }
.how__media img { aspect-ratio: 4 / 3.4; object-position: 45% 50%; }

/* Simple: conventional vs Armwright */
.simple__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 112px); margin-top: clamp(40px, 5vw, 72px); align-items: start; }
.compare { width: 100%; border-collapse: collapse; font-size: clamp(18px, 0.6vw + 15px, 22px); line-height: 1.3; }
.compare th { text-align: left; font-size: 15px; font-weight: 500; color: var(--ink-2); padding: 0 16px 14px 0; vertical-align: bottom; }
.compare td { padding: 22px 16px 22px 0; border-top: 1px solid var(--alu-2); vertical-align: top; width: 50%; }
.compare tr:last-child td { border-bottom: 1px solid var(--alu-2); }
.compare td:first-child { color: var(--ink-2); text-decoration: line-through; text-decoration-color: rgb(85 91 97 / .45); text-decoration-thickness: 1px; }
.compare td:last-child { font-weight: 600; }
.simple__media { display: grid; gap: 16px; }
.simple__media img { aspect-ratio: 16 / 9; }

/* Cell */
.cell__lead { max-width: 52ch; margin-top: clamp(20px, 2vw, 28px); color: var(--ink-2); font-size: clamp(18px, 0.5vw + 16px, 21px); }
.cell__grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(32px, 4vw, 72px); margin-top: clamp(40px, 5vw, 72px); align-items: start; }
.cell__media img { aspect-ratio: 16 / 10.5; }
.specs > div { padding: 16px 0; border-top: 1px solid var(--alu-2); }
.specs > div:last-child { border-bottom: 1px solid var(--alu-2); }
.specs dt { font-weight: 600; }
.specs dd { color: var(--ink-2); margin-top: 2px; }

/* Arm */
.arm { padding-bottom: 0; }
.arm__head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 112px); align-items: start; }
.arm__head h2 { max-width: 13ch; }
.arm__head { align-items: end; }
.arm__lead { max-width: 50ch; color: var(--ink-2); font-size: clamp(18px, 0.5vw + 16px, 21px); }

/* The build loop: three steps, and a line that runs from the last back to the first */
.loop { list-style: none; counter-reset: loop; position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); margin-top: clamp(56px, 7vw, 104px); padding-bottom: 56px; }
.loop li { counter-increment: loop; position: relative; padding-top: 28px; border-top: 2px solid var(--ink); }
.loop li::before { content: counter(loop); position: absolute; z-index: 1; top: -15px; left: 0; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--alu); border: 2px solid var(--ink); font-size: 14px; font-weight: 700; line-height: 1; }
.loop li:first-child::before { background: var(--signal); }
.loop h3 { font-size: clamp(21px, 0.8vw + 17px, 26px); letter-spacing: -0.015em; }
.loop p { margin-top: 10px; color: var(--ink-2); max-width: 34ch; }
.loop::after {
  content: ""; position: absolute; left: 14px; right: calc((100% - 2 * clamp(24px, 3vw, 48px)) / 3 * .5);
  bottom: 0; height: 32px; border: 2px solid var(--steel); border-top: 0; border-radius: 0 0 16px 16px;
}
.loop::before {
  content: ""; position: absolute; left: 8px; bottom: 26px; width: 0; height: 0;
  border-left: 8px solid transparent; border-right: 8px solid transparent; border-bottom: 10px solid var(--steel);
  transform: translateY(-2px);
}
.arm__date { margin-top: clamp(32px, 3vw, 44px); font-weight: 600; }
.arm__media { margin-top: clamp(56px, 7vw, 104px); }
.arm__media img { width: 100%; height: clamp(288px, 55.8vw, 738px); object-fit: cover; object-position: 50% 60%; }

/* Contact: black anodised close */
.contact { background: var(--anod); color: #fff; border-top: 0; --focus: #fff; }
.sec + .contact { border-top: 0; }
.contact__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 112px); align-items: start; }
.contact h2 { font-size: clamp(36px, 4.6vw, 72px); max-width: 12ch; margin-bottom: clamp(24px, 2.4vw, 36px); }
.contact p { color: rgb(255 255 255 / .74); max-width: 42ch; }
.contact__alt { margin-top: 1.4em; }
.contact__alt a { color: #fff; text-decoration-color: rgb(255 255 255 / .4); text-underline-offset: 3px; transition: text-decoration-color .2s; }
.contact__alt a:hover { text-decoration-color: var(--signal); }

/* Pre-order form: a machined-aluminium plate on the black close */
.preorder {
  display: grid; gap: 22px;
  background: var(--alu); color: var(--ink);
  border-radius: 14px; padding: clamp(24px, 3.2vw, 44px);
  box-shadow: 0 1px 0 rgb(255 255 255 / .5) inset, 0 30px 60px -30px rgb(0 0 0 / .9);
  --focus: var(--ink);
}
.preorder__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 18px; }
.field { display: grid; gap: 8px; align-content: start; }
.field label { font-size: 15px; font-weight: 600; color: var(--ink); }
.field__opt { font-weight: 400; color: var(--ink-2); margin-left: 6px; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 17px; line-height: 1.4; color: var(--ink);
  background: #fff; border: 1px solid #c9ced2; border-radius: 8px;
  padding: 13px 14px; min-height: 52px; caret-color: var(--ink);
  box-shadow: 0 1px 2px rgb(30 34 38 / .06);
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder, .field textarea::placeholder { color: #8f959a; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:hover, .field textarea:hover { border-color: #9aa1a7; }
.field input:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgb(242 191 13 / .55); }
.field input[aria-invalid="true"] { border-color: #c8372d; box-shadow: 0 0 0 3px rgb(200 55 45 / .15); }
.field--trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.preorder__submit { width: 100%; justify-content: center; margin-top: 2px; }
.preorder__submit[disabled] { opacity: .6; cursor: progress; transform: none; }
.preorder .btn--signal { box-shadow: 0 1px 0 rgb(0 0 0 / .25); }
.preorder__status { min-height: 1.5em; font-size: 16px; margin-top: -6px; }
.preorder__status:empty { display: none; }
.preorder__status.is-ok { color: #1d6b3a; font-weight: 600; }
.preorder__status.is-error { color: #b3261e; }

/* Footer */
.foot { background: var(--anod); color: rgb(255 255 255 / .6); font-size: 15px; border-top: 1px solid rgb(255 255 255 / .12); }
.foot__row { display: flex; flex-wrap: wrap; gap: 8px 32px; align-items: baseline; padding-block: 28px calc(28px + env(safe-area-inset-bottom)); }
.foot .wordmark { color: #fff; margin-right: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .loop { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-bottom: 0; padding-left: 44px; }
  .loop li { border-top: 0; padding-top: 0; }
  .loop li::before { top: -2px; left: -44px; }
  .loop::after { left: 0; right: auto; top: 30px; bottom: 6px; width: 14px; height: auto; border: 2px solid var(--steel); border-right: 0; border-radius: 0; border-left-width: 2px; border-top: 0; border-bottom: 0; left: 13px; }
  .loop::before { display: none; }
  .recovery__grid, .how__grid, .simple__grid, .cell__grid, .arm__head, .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .how__media { position: static; order: -1; }
  .how__media img { aspect-ratio: 16 / 10; }
  .simple__media { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .preorder__row { grid-template-columns: minmax(0, 1fr); }
  .hide-sm { display: none; }
  .hero__body { padding-bottom: 96px; }
  .hero__toggle { bottom: 24px; }
  .actions .btn { flex: 1 1 100%; justify-content: center; }
  .simple__media { grid-template-columns: minmax(0, 1fr); }
  .compare { font-size: 17px; }
  .compare th, .compare td { padding-right: 12px; }
  .chart__axis text { font-size: 19px; }
  .chart__pts text { font-size: 21px; }
  .btn--lg { width: 100%; justify-content: center; }
  .foot .wordmark { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
.nowrap { white-space: nowrap; }
