/* divtodiv — next experience. One core, many forms. Quiet, precise, monochrome. */

:root {
  --bg: #0a0a0b;
  --bg-solid: #0a0a0b;
  --ink: #f5f5f7;
  --muted: #a1a1a6;
  --subtle: #6e6e73;
  --line: rgba(255, 255, 255, 0.1);
  --card: rgba(255, 255, 255, 0.025);
  --pad: clamp(22px, 6vw, 104px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --sans: "Outfit", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --dawn: 0;
}

html.is-dawn {
  --bg-solid: #f5f5f7;
  --ink: #1d1d1f;
  --muted: #515154;
  --subtle: #86868b;
  --line: rgba(0, 0, 0, 0.12);
  --card: rgba(0, 0, 0, 0.025);
  color-scheme: light;
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(16px, 1.15vw, 19px);
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: color 0.8s var(--ease);
}

a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
ol, ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { margin: 0; font-weight: 300; }

::selection { background: var(--ink); color: var(--bg-solid); }

:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 4px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------------------------------------------------------------- stage */

.core {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  pointer-events: none;
}

.core-fallback {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 70% 48%, rgba(236, 235, 230, 0.16), transparent 22%),
    radial-gradient(circle at 70% 48%, rgba(236, 235, 230, 0.05), transparent 42%);
}
.no-webgl .core { display: none; }
.no-webgl .core-fallback { display: block; }
.no-webgl body { background: var(--bg); }
html.no-webgl.is-dawn body { background: #f5f5f7; }

/* labels pinned to points on the 3D forms */
.anchors {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.no-webgl .anchors { display: none; }
.anchors__set {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.anchor {
  position: absolute;
  top: 0; left: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  will-change: transform;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--subtle);
  transition: color 0.4s;
}
.anchor b {
  font-weight: 400;
  translate: 0 -50%;
}
.anchor i {
  width: 22px;
  height: 1px;
  background: currentColor;
  translate: 0 -50%;
  opacity: 0.6;
  transition: width 0.5s var(--ease);
}
.anchor.is-on { color: var(--ink); }
.anchor.is-on i { width: 40px; }
.anchors__set--flow .anchor b { translate: -50% 0; }
.anchors__set--flow .anchor.is-done { color: var(--muted); }

.cursor:not(.is-live) { opacity: 0; }

.grain {
  position: fixed;
  inset: -50%;
  z-index: 40;
  pointer-events: none;
  opacity: calc(0.07 - var(--dawn) * 0.04);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.5  0 0 0 0 0.5  0 0 0 0 0.5  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}

@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

main, .foot { position: relative; z-index: 1; }

/* ---------------------------------------------------------------- cursor */

.cursor {
  position: fixed;
  top: 0; left: 0;
  z-index: 60;
  pointer-events: none;
  display: none;
  mix-blend-mode: difference;
}
.has-cursor .cursor { display: block; }
.cursor__dot,
.cursor__ring {
  position: absolute;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor__dot { width: 5px; height: 5px; background: #fff; }
.cursor__ring {
  width: 34px; height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  transition: width 0.45s var(--ease), height 0.45s var(--ease), opacity 0.3s;
}
.cursor.is-hot .cursor__ring { width: 64px; height: 64px; }
.cursor.is-text .cursor__ring { opacity: 0; }
.has-cursor body,
.has-cursor a,
.has-cursor button,
.has-cursor summary { cursor: none; }

/* ---------------------------------------------------------------- chrome */

.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 1px;
  z-index: 55;
  pointer-events: none;
}
.progress__bar {
  display: block;
  height: 100%;
  background: var(--ink);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

.hdr {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px var(--pad);
  transition: background 0.5s var(--ease), backdrop-filter 0.5s;
}
.hdr.is-scrolled {
  background: color-mix(in srgb, var(--bg-solid) 55%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
}
.hdr__logo {
  font-size: 19px;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.hdr__nav {
  display: flex;
  gap: clamp(18px, 2.4vw, 36px);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hdr__nav a {
  position: relative;
  color: var(--muted);
  transition: color 0.3s;
}
.hdr__nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -9px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--ink);
  transform: translateX(-50%) scale(0);
  transition: transform 0.4s var(--ease);
}
.hdr__nav a:hover,
.hdr__nav a.is-active { color: var(--ink); }
.hdr__nav a.is-active::after { transform: translateX(-50%) scale(1); }

.rail {
  position: fixed;
  right: clamp(16px, 2vw, 32px);
  top: 50%;
  z-index: 45;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  transform: translateY(-50%);
}
.rail a {
  position: relative;
  display: block;
  width: 18px;
  height: 10px;
}
.rail a::before {
  content: "";
  position: absolute;
  right: 0; top: 50%;
  width: 14px; height: 1px;
  background: var(--subtle);
  transition: width 0.5s var(--ease), background 0.3s;
}
.rail a.is-active::before { width: 30px; background: var(--ink); }
.rail__label {
  position: absolute;
  right: 42px;
  top: 50%;
  transform: translate(8px, -50%);
  white-space: nowrap;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.4s var(--ease);
}
.rail:hover .rail__label,
.rail a:focus-visible .rail__label { opacity: 1; transform: translate(0, -50%); }
.rail a.is-active .rail__label { color: var(--ink); }

/* ---------------------------------------------------------------- shared */

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 28px;
  border: 1px solid color-mix(in srgb, var(--ink) 26%, transparent);
  border-radius: 999px;
  background: transparent;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.6s var(--ease), background 0.35s, color 0.35s, border-color 0.35s;
}
.pill:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.pill--solid {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg-solid);
}
.pill--solid:hover { background: color-mix(in srgb, var(--ink) 86%, transparent); }
.pill--small { height: 40px; padding: 0 20px; font-size: 14px; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow__no {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
}
.eyebrow__no::after {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--line);
}
.eyebrow--center { justify-content: center; }

.tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

h2 {
  font-size: clamp(40px, 5.3vw, 92px);
  line-height: 1.02;
  letter-spacing: -0.038em;
  margin-bottom: 0.42em;
}

.prose {
  max-width: 31em;
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 1.2vw, 19.5px);
  line-height: 1.65;
}

/* word reveal */
.w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}
.js .w > span {
  display: inline-block;
  transform: translateY(108%);
  transition: transform 1.1s var(--ease) calc(var(--i, 0) * 55ms);
}
.js .is-in .w > span { transform: none; }

.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1s var(--ease), transform 1.2s var(--ease);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- hero */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 120px var(--pad) clamp(64px, 11svh, 120px);
}

.kicker {
  margin: 0 0 clamp(18px, 3svh, 32px);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__title {
  font-size: clamp(42px, 7.4vw, 136px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 300;
}
.hero__line {
  position: relative;
  display: flex;
  align-items: flex-start;
  width: fit-content;
  transition: opacity 0.6s var(--ease), transform 0.8s var(--ease);
}
.hero__line sup {
  margin: 0.55em 0 0 0.6em;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--subtle);
  transition: color 0.3s;
}
.mask {
  display: inline-block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.hero__word { display: inline-block; }
.js .hero__word {
  transform: translateY(105%);
  transition: transform 1.4s var(--ease);
}
.js.is-loaded .hero__word { transform: none; }
.js .hero__line:nth-child(2) .hero__word { transition-delay: 0.12s; }
.js .hero__line:nth-child(3) .hero__word { transition-delay: 0.24s; }

/* hero furniture arrives with the core, not on scroll */
.js .hero .kicker,
.js .hero__foot,
.js .hero__hint {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1.2s var(--ease) 0.9s, transform 1.4s var(--ease) 0.9s;
}
.js.is-loaded .hero .kicker,
.js.is-loaded .hero__foot,
.js.is-loaded .hero__hint { opacity: 1; transform: none; }
.js .hero .kicker { transition-delay: 0.2s; }

.is-fine .hero__title:hover .hero__line:not(:hover) { opacity: 0.22; }
.is-fine .hero__line:hover { transform: translateX(14px); }
.hero__line:hover sup { color: var(--ink); }

.hero__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px 48px;
  margin-top: clamp(28px, 5svh, 56px);
  max-width: 1100px;
}
.lede {
  max-width: 30em;
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 1.25vw, 20px);
  line-height: 1.6;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__hint {
  position: absolute;
  left: 50%;
  bottom: 84px;
  margin: 0;
  translate: -50% 0;
  white-space: nowrap;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--subtle);
}
.hint-touch { display: none; }
html:not(.is-fine) .hint-fine { display: none; }
html:not(.is-fine) .hint-touch { display: inline; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 22px;
  width: 1px;
  height: 46px;
  overflow: hidden;
  background: var(--line);
}
.scroll-cue span {
  position: absolute;
  inset: 0;
  background: var(--ink);
  animation: cue 2.4s var(--ease) infinite;
}
@keyframes cue {
  0% { transform: translateY(-100%); }
  60% { transform: translateY(100%); }
  100% { transform: translateY(100%); }
}

/* ---------------------------------------------------------------- chapters */

.chapter {
  position: relative;
  min-height: 112svh;
  display: grid;
  grid-template-columns: minmax(0, 45%) 1fr;
  align-items: center;
  column-gap: 6vw;
  padding: 18svh var(--pad);
}
.chapter__copy { grid-column: 1; max-width: 620px; }
.chapter--flip .chapter__copy { grid-column: 2; }

/* 01 stack */
.stack {
  margin-top: 34px;
  border-top: 1px solid var(--line);
}
.stack button {
  position: relative;
  display: grid;
  grid-template-columns: 76px 1fr;
  align-items: baseline;
  gap: 16px;
  width: 100%;
  padding: 17px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  text-align: left;
  cursor: pointer;
  transition: padding 0.6s var(--ease);
}
.stack button::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 0; height: 1px;
  background: var(--ink);
  transition: width 0.6s var(--ease);
}
.stack__k {
  font-size: 21px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--muted);
  transition: color 0.3s;
}
.stack__v {
  font-size: 15px;
  color: var(--subtle);
  transition: color 0.3s;
}
.stack button.is-on { padding-left: 34px; }
.stack button.is-on::before { width: 20px; }
.stack button.is-on .stack__k { color: var(--ink); }
.stack button.is-on .stack__v { color: var(--muted); }

.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 0;
}
.platforms span {
  padding: 6px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* 02 pipeline */
.pipeline,
.console {
  margin: 34px 0 0;
  padding: 18px 22px 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.pipeline__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.pipeline__clock {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--subtle);
  font-variant-numeric: tabular-nums;
}
.step {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  grid-template-areas: "dot title state" "dot sys state";
  align-items: center;
  column-gap: 12px;
  padding: 13px 0;
  border-bottom: 1px dashed var(--line);
}
.step:last-child { border-bottom: 0; }
.step__dot {
  grid-area: dot;
  position: relative;
  width: 9px; height: 9px;
  border: 1px solid var(--subtle);
  border-radius: 50%;
  transition: background 0.4s, border-color 0.4s;
}
.step__title {
  grid-area: title;
  font-size: 16px;
  color: var(--subtle);
  transition: color 0.4s;
}
.step__sys {
  grid-area: sys;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--subtle);
}
.step__state {
  grid-area: state;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--subtle);
}
.step.is-run .step__dot { border-color: var(--ink); }
.step.is-run .step__dot::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  animation: ping 1s var(--ease) infinite;
}
.step.is-run .step__title,
.step.is-done .step__title { color: var(--ink); }
.step.is-done .step__dot { background: var(--ink); border-color: var(--ink); }
.step.is-done .step__state { color: var(--ink); }
@keyframes ping {
  from { transform: scale(0.6); opacity: 1; }
  to { transform: scale(1.6); opacity: 0; }
}
.pipeline__foot {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--subtle);
}

/* 03 console */
.console__bar {
  display: flex;
  align-items: center;
  gap: 12px;
}
.console__dots { display: inline-flex; gap: 6px; }
.console__dots i {
  width: 8px; height: 8px;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.console__title {
  flex: 1;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.console__body {
  min-height: 10.5em;
  padding: 16px 0 4px;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.75;
}
.console__prompt { margin: 0 0 10px; color: var(--ink); }
.console__caret { color: var(--subtle); }
.console__out { margin: 0; color: var(--muted); }
.console__line { display: block; }
.console__cursor {
  display: inline-block;
  width: 7px;
  height: 1.05em;
  margin-left: 3px;
  vertical-align: -0.15em;
  background: var(--ink);
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.chips li {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
}

/* 04 privacy */
.switch {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 30px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.switch button {
  position: relative;
  z-index: 1;
  height: 44px;
  padding: 0 30px;
  border: 0;
  background: none;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.5s var(--ease);
}
.switch button[aria-pressed="true"] { color: var(--bg-solid); }
.switch__thumb {
  position: absolute;
  top: 4px; left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  border-radius: 999px;
  background: var(--ink);
  transition: transform 0.7s var(--ease);
}
.switch[data-mode="onprem"] .switch__thumb { transform: translateX(100%); }

.compare { margin: 26px 0 0; }
.compare div {
  display: grid;
  grid-template-columns: 10em 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.compare dt {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--subtle);
  padding-top: 3px;
}
.compare dd {
  margin: 0;
  font-size: 16px;
  transition: opacity 0.16s, transform 0.2s var(--ease);
}
.compare dd.is-swap { opacity: 0; transform: translateY(6px); }

.ticker {
  grid-column: 1 / -1;
  display: flex;
  margin: 12svh calc(var(--pad) * -1) 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.ticker__track {
  display: flex;
  flex-shrink: 0;
  gap: 64px;
  padding-right: 64px;
  animation: ticker 40s linear infinite;
}
.ticker li {
  font-size: clamp(28px, 3.2vw, 52px);
  font-weight: 200;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: var(--subtle);
}
@keyframes ticker { to { transform: translateX(-100%); } }

/* 05 process */
.timeline {
  position: relative;
  margin-top: 40px;
  padding-left: 40px;
}
.timeline li {
  position: relative;
  padding-bottom: 40px;
  opacity: 0.35;
  transition: opacity 0.6s var(--ease);
}
.timeline li.is-past { opacity: 1; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -44.5px;
  top: 6px;
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 1px solid var(--subtle);
  background: var(--bg-solid);
  transition: background 0.4s, border-color 0.4s;
}
.timeline li.is-past::before { background: var(--ink); border-color: var(--ink); }
.timeline__no {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--subtle);
}
.timeline h3 {
  font-size: clamp(22px, 1.9vw, 28px);
  font-weight: 400;
  letter-spacing: -0.015em;
  margin-bottom: 6px;
}
.timeline p { margin: 0; max-width: 30em; color: var(--muted); font-size: 16px; }
.timeline__line {
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 50px;
  width: 1px;
  background: var(--line);
}
.timeline__fill {
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform-origin: 50% 0;
  transform: scaleY(0);
}

/* industries */
.industries {
  position: relative;
  padding: 18svh 0 16svh;
  overflow: hidden;
}
.industries__rows { margin-top: 6svh; }
.industries__row {
  margin: 0;
  white-space: nowrap;
  font-size: clamp(64px, 11vw, 210px);
  font-weight: 200;
  line-height: 1.04;
  letter-spacing: -0.05em;
  will-change: transform;
}
.industries__row i {
  font-style: normal;
  margin: 0 0.25em;
  color: var(--subtle);
}
.industries__row--ghost {
  color: transparent;
  -webkit-text-stroke: 1px color-mix(in srgb, var(--ink) 30%, transparent);
}
.industries__row--ghost i { color: transparent; }
.industries__note {
  max-width: 34em;
  margin: 7svh auto 0;
  padding: 0 var(--pad);
  text-align: center;
  color: var(--muted);
}

/* ---------------------------------------------------------------- contact */

.contact {
  position: relative;
  min-height: 100svh;
  padding: 20svh var(--pad) 12svh;
}
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(48px, 8vw, 140px);
  max-width: 1320px;
}

.note-form { margin-top: 36px; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.field {
  position: relative;
  display: block;
  padding-top: 22px;
  margin-bottom: 26px;
}
.field__label {
  position: absolute;
  left: 0;
  top: 32px;
  font-size: 16px;
  color: var(--subtle);
  pointer-events: none;
  transform-origin: 0 0;
  transition: transform 0.45s var(--ease), color 0.3s;
}
.field.is-focus .field__label,
.field.is-filled .field__label {
  transform: translateY(-26px) scale(0.75);
  color: var(--muted);
}
.field input,
.field textarea {
  width: 100%;
  padding: 10px 0 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  font-size: 17px;
  outline: none;
  resize: vertical;
}
.field textarea { min-height: 120px; }
.field__line {
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.6s var(--ease);
}
.field--area .field__line { bottom: 28px; }
.field.is-focus .field__line { transform: scaleX(1); }
.field.is-invalid .field__line { transform: scaleX(1); background: #b3261e; }
.field__hint {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--subtle);
}
.contact-turnstile { min-height: 65px; margin: 4px 0 22px; }
.note-form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.note-form__send:disabled { opacity: 0.4; cursor: not-allowed; }
.note-form__send-pulse { display: none; }
.form-status { margin: 0; font-size: 14px; color: var(--muted); }
.form-status.is-ok { color: var(--ink); }
.form-status.is-err { color: #b3261e; }

.faq__title {
  font-size: clamp(28px, 2.6vw, 40px);
  letter-spacing: -0.025em;
  margin-bottom: 18px;
}
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 19px 0;
  font-size: 17px;
  font-weight: 400;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex-shrink: 0;
  width: 11px; height: 11px;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 100% 1px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1px 100% no-repeat;
  transition: transform 0.5s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  margin: 0;
  padding: 0 0 20px;
  font-size: 15.5px;
  color: var(--muted);
}

/* ---------------------------------------------------------------- footer */

.foot {
  padding: 9svh var(--pad) 40px;
  border-top: 1px solid var(--line);
}
.foot__brand { margin: 0; font-size: 22px; font-weight: 400; letter-spacing: -0.01em; }
.foot__line { margin: 6px 0 28px; color: var(--muted); }
.foot__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 0;
  font-size: 13px;
  color: var(--subtle);
}
.foot__meta a { color: var(--ink); }

/* ---------------------------------------------------------------- portrait / phone */

@media (max-width: 899px), (max-aspect-ratio: 17/20) {
  .hdr__nav, .rail, .hero__hint { display: none; }
  .anchors__set--flow .anchor b { translate: 0 -50%; }

  .hero {
    justify-content: flex-end;
    padding: 96px var(--pad) 72px;
  }
  .hero__title { font-size: clamp(38px, 11.4vw, 72px); }
  .hero__line sup { font-size: 10px; margin-left: 0.4em; }
  .hero__foot { margin-top: 26px; }
  .cta-row { width: 100%; }
  .cta-row .pill { flex: 1; }

  /* the core floats above; copy rides up over a soft scrim */
  .chapter {
    display: block;
    min-height: auto;
    padding: 50svh var(--pad) 10svh;
  }
  .chapter__copy {
    position: relative;
    max-width: none;
    padding-top: 28px;
  }
  .chapter__copy::before {
    content: "";
    position: absolute;
    inset: -64px calc(var(--pad) * -1) -10svh;
    z-index: -1;
    /* fades in above the copy and back out below it — no hard edge between chapters */
    background: linear-gradient(180deg, rgba(10, 10, 11, 0), rgba(10, 10, 11, 0.86) 96px, rgba(10, 10, 11, 0.86) calc(100% - 9svh), rgba(10, 10, 11, 0));
    pointer-events: none;
  }
  /* the marquee shows ~1.5 words on a phone — list every standard instead */
  .ticker {
    display: block;
    margin: 5svh 0 0;
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .ticker::before {
    content: "Architecture mapped to";
    display: block;
    margin-bottom: 14px;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--subtle);
  }
  .ticker__track {
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    animation: none;
  }
  .ticker__track[aria-hidden] { display: none; }
  .ticker li {
    padding: 8px 15px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--muted);
  }

  .stack button { grid-template-columns: 58px 1fr; padding: 15px 0; }
  .stack__k { font-size: 18px; }
  .stack__v { font-size: 14px; }

  .pipeline, .console { padding: 16px 16px 14px; border-radius: 16px; }
  .console__body { font-size: 12.5px; }
  .compare div { grid-template-columns: 7.6em 1fr; }
  .compare dd { font-size: 15px; }
  .switch { display: grid; width: 100%; }

  .industries__row { font-size: 17vw; }

  .contact { padding-top: 16svh; }
  .contact__grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
}

/* ---------------------------------------------------------------- reduced motion */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain, .scroll-cue span, .console__cursor, .step.is-run .step__dot::after { animation: none; }
  .ticker { flex-wrap: wrap; }
  .ticker__track { animation: none; flex-wrap: wrap; gap: 12px 40px; }
  .ticker__track[aria-hidden] { display: none; }
  .js [data-reveal], .js .w > span, .js .hero__word { transform: none; opacity: 1; transition: none; }
}
