/* Nyx beta, in the Metamagnetics layout system rebuilt from observation:
 * cream and ink dual ground, framed side rails, hairline grid cells,
 * squared techno caps for chrome over a grotesque for display. Fonts are
 * open substitutes: Instrument Sans for PP Neue Montreal, Chakra Petch
 * for TT Octosquares Condensed. */

@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/InstrumentSans.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Chakra Petch";
  src: url("fonts/ChakraPetch-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Chakra Petch";
  src: url("fonts/ChakraPetch-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Chakra Petch";
  src: url("fonts/ChakraPetch-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --cream: #f5f3e7;
  --ink: #262622;
  --ink-soft: rgba(38, 38, 34, 0.62);
  --cream-soft: rgba(245, 243, 231, 0.62);
  --dim: #8b8b83;
  --blue: #1581da;
  --rail: rgba(140, 140, 130, 0.28);
  --rail-dark: rgba(245, 243, 231, 0.14);
  --sans: "Instrument Sans", Arial, sans-serif;
  --tech: "Chakra Petch", "Arial Narrow", sans-serif;
  --rail-x: clamp(18px, 4.3vw, 62px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 500 17px/1.45 var(--sans);
  -webkit-font-smoothing: antialiased;
}

/* The side rails that frame every section. */
body::before, body::after {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--rail);
  z-index: 60;
  pointer-events: none;
}
body::before { left: var(--rail-x); }
body::after { right: var(--rail-x); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

section, footer { border-bottom: 1px solid var(--rail); }

.dark { background: var(--ink); color: var(--cream); }
.dark.thesis, .hero.dark { border-color: var(--rail-dark); }
.light { background: var(--cream); color: var(--ink); }

/* Nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  background: var(--ink);
  color: var(--cream);
  border-bottom: 1px solid var(--rail-dark);
  padding: 0 0 0 var(--rail-x);
  height: 78px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 600 21px var(--tech);
  letter-spacing: 0.16em;
  margin-left: 16px;
}
.brand svg { width: 36px; height: 28px; }

.nav nav { margin-left: auto; display: flex; gap: 34px; }
.nav nav a {
  font: 500 14.5px var(--tech);
  letter-spacing: 0.06em;
  color: var(--cream);
  opacity: 0.92;
}
.nav nav a:hover { color: #fff; opacity: 1; }
.has-caret::after { content: " ⌄"; opacity: 0.6; }

.nav-cta {
  margin-left: 40px;
  height: 78px;
  display: flex;
  align-items: center;
  padding: 0 34px;
  background: var(--cream);
  color: var(--ink);
  font: 600 14.5px var(--tech);
  letter-spacing: 0.06em;
  border-left: 1px solid var(--rail-dark);
  margin-right: var(--rail-x);
}
.nav-cta:hover { background: #fff; }

/* Shared frame padding */

.hero, .thesis, .product, .trusted, .newsroom, .closing,
.model-lib, .model-hero, .model-body,
.foot-top, .newsletter, .foot-cols, .foot-legal {
  padding-left: calc(var(--rail-x) + 68px);
  padding-right: calc(var(--rail-x) + 68px);
}

/* Hero */

.hero {
  position: relative;
  min-height: calc(100vh - 78px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 90px;
}
.hero h1 {
  font: 500 clamp(40px, 4.6vw, 66px)/1.12 var(--sans);
  letter-spacing: -0.01em;
  margin: 0;
  max-width: 15ch;
}
.hero-side {
  position: absolute;
  right: calc(var(--rail-x) + 68px);
  bottom: 110px;
  max-width: 380px;
}
.hero-side p { font-size: 17px; line-height: 1.5; margin: 0 0 26px; color: var(--cream); }

/* Hero media: the rendered wafer loop by default, anchored as a large
   disc bleeding off the right edge; ?bg=fab swaps in the cleanroom
   footage full-bleed. Both are baked over the ink ground. */

.hero { overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero h1, .hero-side { position: relative; z-index: 2; }
.hero-side { position: absolute; }

.hero-video { display: none; }
.wafer-video,
.hero-canvas {
  display: block;
  position: absolute;
  top: 50%;
  left: 58%;
  transform: translate(-50%, -50%);
  width: min(112vh, 84vw);
  aspect-ratio: 1;
}
.hero-canvas[hidden] { display: none; }
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(38, 38, 34, 0.78) 24%, rgba(38, 38, 34, 0.30) 52%, transparent 74%),
    linear-gradient(0deg, rgba(38, 38, 34, 0.60), transparent 38%);
}

@media (max-width: 900px) {
  .wafer-video,
  .hero-canvas {
    left: 50%;
    width: min(150vw, 78vh);
    opacity: 0.85;
  }
  .hero-shade {
    background:
      linear-gradient(0deg, rgba(38, 38, 34, 0.72) 18%, rgba(38, 38, 34, 0.20) 55%, transparent 80%);
  }
}

/* Buttons: squared, techno caps. */

.btn {
  display: inline-block;
  font: 600 14.5px var(--tech);
  letter-spacing: 0.06em;
  padding: 17px 30px;
}
.btn.light { background: var(--cream); color: var(--ink); }
.btn.light:hover { background: #fff; }
.btn.dark { background: var(--ink); color: var(--cream); }
.btn.dark:hover { background: #000; }

/* Thesis with the static field and signal line */

.thesis { position: relative; padding-top: 60px; padding-bottom: 130px; }
#static-field {
  width: min(56%, 680px);
  height: auto;
  display: block;
  margin-bottom: 70px;
}
.signal-line {
  position: absolute;
  top: 208px;
  left: 50%;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--blue) 12%, var(--blue));
}
.eyebrow {
  font: 500 14px var(--tech);
  letter-spacing: 0.04em;
  color: var(--blue);
  text-transform: uppercase;
  margin: 0 0 22px;
}
.thesis .big {
  font: 500 clamp(26px, 2.4vw, 34px)/1.35 var(--sans);
  max-width: 58ch;
  max-width: 620px;
  margin: 0;
}

/* Stat strip: hairline-separated proof columns under the thesis. */

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rail-dark);
  margin-top: 90px;
}
.stat-strip > div { padding: 30px 26px 6px 0; }
.stat-strip > div + div { border-left: 1px solid var(--rail-dark); padding-left: 26px; }
.st-n { font: 500 clamp(30px, 3vw, 44px) var(--sans); letter-spacing: -0.01em; margin: 0 0 8px; }
.st-l { font: 500 12.5px var(--tech); letter-spacing: 0.06em; color: var(--cream-soft); margin: 0; }

/* Product sections */

.product { position: relative; padding-top: 120px; padding-bottom: 110px; }
.product.centered, .product-copy.centered { text-align: center; }
.product h2 {
  font: 500 clamp(36px, 3.8vw, 54px)/1.1 var(--sans);
  letter-spacing: -0.01em;
  margin: 0 0 24px;
}
.product .sub {
  font-size: 18.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 54ch;
  margin: 0 0 34px;
}
.product .sub.narrow { max-width: 40ch; }
.product.centered .sub, .product-copy.centered .sub { margin-inline: auto; }

.float-render {
  margin: -220px 0 40px;
  display: flex;
  justify-content: center;
  position: relative;
}
.float-render img {
  width: min(54vw, 520px);
  filter: drop-shadow(0 40px 60px rgba(38, 38, 34, 0.35));
}
/* The laser-etch overlay sits in exact registration with the wafer
   render: same box, same implied coordinate space. */
.float-render .etch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(54vw, 520px);
  aspect-ratio: 1;
  pointer-events: none;
}

.product.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

/* Photo bands: a graded landscape ground with one white card floating
   at center, the reference site's construction. */

.photo-band { padding: 0; position: relative; }
.photo-band img {
  width: calc(100% - 2 * var(--rail-x));
  margin: 0 auto;
  display: block;
  height: min(74vh, 58vw);
  min-height: 380px;
  object-fit: cover;
}
.float-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  color: #1d1d1a;
  border-radius: 14px;
  padding: 30px 34px;
  min-width: min(400px, 82vw);
  box-shadow: 0 30px 70px rgba(20, 20, 15, 0.30);
}
.fc-label { font: 500 15px var(--sans); color: #8a8a83; margin: 0 0 8px; }
.fc-big { font: 500 36px var(--sans); letter-spacing: -0.01em; margin: 0 0 26px; }
.fc-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid #eceae1;
  font-size: 15.5px;
}
.fc-chip { width: 20px; height: 20px; border-radius: 5px; flex-shrink: 0; }
.fc-end { margin-left: auto; color: #8a8a83; font-size: 14px; }

/* Benchmark rows inside the float cards. */

.fc-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid #eceae1;
  font-size: 15px;
}
.fc-bar .bl { width: 118px; flex-shrink: 0; white-space: nowrap; }
.fc-bar .track { flex: 1; height: 8px; border-radius: 4px; background: #f0eee4; overflow: hidden; }
.fc-bar .fill { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #f0b653, #c98a2e); }
.fc-bar.mut .fill { background: #d8d6cc; }
.fc-bar .bv { width: 64px; flex-shrink: 0; text-align: right; color: #8a8a83; font-size: 14px; }
.fc-fine { margin: 14px 0 0; color: #8a8a83; font-size: 13px; }


/* Dedicated capacity, the race: two lanes on ink. Gold requests fly
   straight into your three rendered pods at full speed; in the shared
   lane below, grey traffic keeps cutting in front of your request and
   the lane's tok/s sits far lower. */
.pods-race { background: var(--ink); color: var(--cream); margin-top: 64px; position: relative; overflow: hidden; }
.pods-race canvas { width: 100%; height: 500px; display: block; }
.pr-label {
  position: absolute;
  left: 38px;
  font: 500 12px var(--tech);
  letter-spacing: 0.08em;
  color: var(--cream-soft);
  margin: 0;
  z-index: 2;
}
.pr-label b { font: 500 17px var(--sans); letter-spacing: 0; color: var(--cream); margin-left: 6px; font-variant-numeric: tabular-nums; }
.pr-l1 { top: 7%; }
.pr-l1 b { color: #f0b653; }
.pr-l2 { top: 7%; left: 54%; }
.pr-note {
  position: absolute;
  left: 38px;
  font: 500 14.5px var(--sans);
  color: var(--cream-soft);
  margin: 0;
  z-index: 2;
}
.pr-n1 { top: calc(7% + 26px); }
.pr-n2 { top: calc(7% + 26px); left: 54%; }
@media (max-width: 900px) {
  .pods-race canvas { height: 380px; }
  .pods-race { margin-top: 44px; }
  .pr-label { left: 18px; }
  .pr-note { left: 18px; font-size: 13px; }
}

/* The engine section: loop pills and the build-decisions ledger. */

/* The engine pipeline: build chips ride the line through the stages,
   rejects die at VERIFY, ships stamp through to the ledger. */
.pipe {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 56px;
  position: relative;
  max-width: 640px;
}
.p-stage {
  font: 500 13.5px var(--tech);
  letter-spacing: 0.06em;
  border: 1px solid var(--ink);
  padding: 9px 18px;
  position: relative;
  transition: background 0.25s ease, color 0.25s ease;
}
.p-stage.active { background: var(--ink); color: var(--cream); }
.p-stage.active::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(201, 138, 46, 0.9);
  animation: stagepulse 0.9s ease-out infinite;
  pointer-events: none;
}
@keyframes stagepulse {
  from { opacity: 0.9; transform: scale(1); }
  to { opacity: 0; transform: scale(1.14, 1.35); }
}
.p-stage.deny { animation: denyshake 0.4s ease; }
@keyframes denyshake {
  0%, 100% { transform: none; }
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}
.p-track { flex: 1; height: 1px; background: var(--rail); min-width: 24px; }
.p-chip {
  position: absolute;
  top: -38px;
  left: 0;
  transform: translateX(-50%);
  font: 500 11.5px var(--tech);
  letter-spacing: 0.05em;
  white-space: nowrap;
  background: linear-gradient(135deg, #f0b653, #c98a2e);
  color: #1d1d1a;
  padding: 4px 10px;
  transition: left 0.55s cubic-bezier(0.5, 0, 0.2, 1), top 0.4s ease, opacity 0.4s ease;
}
.p-chip.rej {
  background: var(--cream);
  border: 1px solid var(--rail);
  color: var(--ink-soft);
  text-decoration: line-through;
}
.p-chip.drop { top: 16px; opacity: 0; }
.d-row.d-new { animation: rowin 0.6s ease; }
@keyframes rowin {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .p-stage.active::after, .p-stage.deny, .d-row.d-new { animation: none; }
  .p-chip { display: none; }
}

.decisions { margin-top: 64px; border-top: 1px solid var(--ink); }
.d-row {
  display: grid;
  grid-template-columns: 90px 1.4fr 1.2fr 110px;
  gap: 18px;
  align-items: baseline;
  padding: 15px 0;
  border-bottom: 1px solid var(--rail);
  font-size: 15.5px;
}
.d-row > span:first-child { font: 500 13.5px var(--tech); letter-spacing: 0.04em; color: var(--ink-soft); }
.d-row > span:nth-child(3) { color: var(--ink-soft); }
.d-head > span { font: 500 12.5px var(--tech); letter-spacing: 0.06em; color: var(--ink-soft); }
.d-ship, .d-rej { font: 500 12.5px var(--tech); letter-spacing: 0.06em; justify-self: start; padding: 3px 10px; }
.d-ship { background: var(--ink); color: var(--cream); }
.d-rej { color: var(--ink-soft); border: 1px solid var(--rail); }

/* Trusted by */

.trusted { padding-top: 90px; padding-bottom: 90px; }
.trusted h2 { font: 500 34px var(--sans); margin: 0 0 52px; }

/* Logo carousel: identical sets ride an endless track on the cream
   ground so the marks keep their real colors; hover pauses it and the
   edges fade out. Heights are tuned per mark for equal optical weight. */
.logo-marquee { overflow: hidden; position: relative; }
.logo-marquee::before,
.logo-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 110px;
  z-index: 2;
  pointer-events: none;
}
.logo-marquee::before { left: 0; background: linear-gradient(90deg, var(--cream), transparent); }
.logo-marquee::after { right: 0; background: linear-gradient(270deg, var(--cream), transparent); }
.logo-track {
  display: flex;
  width: max-content;
  animation: logoscroll 44s linear infinite;
  will-change: transform;
}
.logo-marquee:hover .logo-track { animation-play-state: paused; }
.logo-set {
  display: flex;
  align-items: center;
  gap: clamp(56px, 7vw, 104px);
  padding-right: clamp(56px, 7vw, 104px);
  flex-shrink: 0;
}
.logo-set .lg { width: auto; display: block; flex-shrink: 0; }
.lg-cal { height: 34px; }
.lg-stanford { height: 27px; }
.lg-texas { height: 30px; }
.lg-utd { height: 40px; }
.lg-princeton-lock { display: inline-flex; align-items: center; gap: 13px; }
.pl-shield { height: 40px; width: auto; display: block; }
.pl-text { height: 30px; width: auto; display: block; }
@keyframes logoscroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .logo-track { animation: none; }
  .logo-marquee { overflow-x: auto; }
}

/* Newsroom */

.newsroom { padding-top: 100px; padding-bottom: 110px; }
.newsroom h2 { font: 500 54px var(--sans); margin: 0 0 50px; }
.news-head { margin-bottom: 50px; }
.news-head h2 { margin: 0; }
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.news-card img { aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 18px; }
.news-meta { font: 500 12.5px var(--tech); letter-spacing: 0.05em; color: var(--ink-soft); margin: 0 0 8px; }
.news-card h3 { font: 500 22px/1.25 var(--sans); margin: 0; }
.news-card:hover h3 { text-decoration: underline; text-underline-offset: 4px; }

/* Closing CTA */

.closing { padding-top: 110px; padding-bottom: 120px; }
.closing h2 {
  font: 500 clamp(26px, 2.6vw, 34px)/1.4 var(--sans);
  max-width: 700px;
  margin: 0 0 40px;
}

/* Footer */

footer { background: var(--ink); color: var(--cream); border-bottom: none; position: relative; }
#static-field-2 {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.5;
}
.foot-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 40px;
}
.socials { display: flex; gap: 22px; font: 600 16px var(--tech); }
.socials a { opacity: 0.8; }
.socials a:hover { opacity: 1; }

.newsletter {
  border-top: 1px solid var(--rail-dark);
  padding-top: 30px;
  padding-bottom: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}
.newsletter label { font: 500 14px var(--tech); letter-spacing: 0.05em; }
.nl-row { display: flex; border: 1px solid var(--rail-dark); }
.nl-row input {
  flex: 1;
  background: none;
  border: none;
  color: var(--cream);
  font: 500 16px var(--sans);
  padding: 16px 18px;
  outline: none;
}
.nl-row input::placeholder { color: var(--cream-soft); }
.nl-row button {
  background: var(--cream);
  color: var(--ink);
  border: none;
  font: 600 14.5px var(--tech);
  letter-spacing: 0.06em;
  padding: 0 30px;
  cursor: pointer;
}
.nl-row button:hover { background: #fff; }

.foot-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rail-dark);
}
.foot-cols > div {
  padding: 34px 26px 46px 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.foot-cols > div + div { border-left: 1px solid var(--rail-dark); padding-left: 26px; }
.foot-head { font: 500 14px var(--tech); color: var(--blue); letter-spacing: 0.05em; margin: 0 0 6px; }
.foot-cols a { font: 500 14px var(--tech); letter-spacing: 0.04em; opacity: 0.9; }
.foot-cols a:hover { opacity: 1; color: #fff; }

.foot-legal {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 20px;
  border-top: 1px solid var(--rail-dark);
  padding-top: 30px;
  padding-bottom: 44px;
  font-size: 14.5px;
  color: var(--cream-soft);
}
.foot-legal a { color: var(--cream); opacity: 0.85; }
.foot-legal.solo { border-top: none; }
.foot-legal div { display: flex; flex-direction: column; gap: 8px; }

/* Blog posts: painting hero with a slow settle, prose column, rise-in
   blocks, and a next-post band. */

.post-hero { position: relative; padding: 0; overflow: hidden; background: var(--ink); }
.post-hero img {
  width: calc(100% - 2 * var(--rail-x));
  margin: 0 auto;
  display: block;
  height: min(76vh, 62vw);
  object-fit: cover;
  animation: kenburns 15s ease-out both;
  transform-origin: 50% 28%;
}
@keyframes kenburns {
  from { transform: scale(1.07); }
  to { transform: scale(1); }
}
.post-shade {
  position: absolute;
  inset: 0 var(--rail-x);
  background: linear-gradient(0deg, rgba(22, 22, 18, 0.78), rgba(22, 22, 18, 0.24) 42%, transparent 68%);
}
.post-title-block {
  position: absolute;
  left: calc(var(--rail-x) + 68px);
  right: calc(var(--rail-x) + 68px);
  bottom: 52px;
  color: var(--cream);
  z-index: 2;
}
.post-meta {
  font: 500 13px var(--tech);
  letter-spacing: 0.08em;
  color: rgba(245, 243, 231, 0.78);
  margin: 0 0 14px;
}
.post-hero h1 {
  font: 500 clamp(32px, 4.4vw, 60px)/1.1 var(--sans);
  letter-spacing: -0.01em;
  margin: 0;
  max-width: 22ch;
}

.post-body { padding: 96px calc(var(--rail-x) + 68px) 40px; }
.prose { max-width: 680px; margin-inline: auto; }
.prose p { font-size: 18.5px; line-height: 1.68; margin: 0 0 26px; color: rgba(38, 38, 34, 0.88); }
.prose p.lede { font-size: 22px; line-height: 1.55; color: var(--ink); margin-bottom: 40px; }
.prose h2 { font: 500 30px/1.2 var(--sans); letter-spacing: -0.01em; margin: 54px 0 20px; }
.prose .pull {
  font: 500 26px/1.35 var(--sans);
  border-left: 3px solid var(--ink);
  padding: 6px 0 6px 26px;
  margin: 44px 0;
  color: var(--ink);
}
.post-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rail);
  border-bottom: 1px solid var(--rail);
  margin: 48px 0;
}
.post-stats > div { padding: 24px 20px 20px 0; }
.post-stats > div + div { border-left: 1px solid var(--rail); padding-left: 20px; }
.post-stats .st-n { font-size: clamp(24px, 2.4vw, 34px); color: var(--ink); }
.post-stats .st-l { color: var(--ink-soft); }

.post-next { padding: 0 calc(var(--rail-x) + 68px); }
.post-next a {
  display: flex;
  align-items: center;
  gap: 26px;
  justify-content: space-between;
  padding: 56px 0;
  border-top: 1px solid var(--rail);
}
.post-next .pn-label { font: 500 13px var(--tech); letter-spacing: 0.08em; color: var(--ink-soft); flex-shrink: 0; }
.post-next h2 { font: 500 clamp(24px, 2.6vw, 36px)/1.15 var(--sans); margin: 0; flex: 1; }
.post-next .arrow { font-size: 38px; transition: transform 0.25s ease; }
.post-next a:hover .arrow { transform: translateX(12px); }

/* Blog listing */

.blog-head { padding-top: 90px; padding-bottom: 10px; }
.blog-head h1 { font: 500 clamp(44px, 5vw, 72px) var(--sans); margin: 0 0 14px; }
.blog-head p { color: var(--ink-soft); font-size: 18px; margin: 0; }
.news-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.news-all { font: 500 13.5px var(--tech); letter-spacing: 0.06em; color: var(--ink-soft); }
.news-all:hover { color: var(--ink); }

/* Model library */

.model-lib { padding-top: 90px; padding-bottom: 110px; }
.model-lib h1 { font: 500 clamp(44px, 5vw, 72px) var(--sans); margin: 0 0 14px; }
.model-lib .lib-sub { color: var(--ink-soft); font-size: 18px; margin: 0 0 40px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.chip {
  font: 500 13px var(--tech);
  letter-spacing: 0.05em;
  padding: 9px 16px;
  border: 1px solid var(--rail);
  background: none;
  color: var(--ink-soft);
  cursor: pointer;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.on { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.model-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.model-card {
  border: 1px solid var(--rail);
  padding: 22px 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  transition: border-color 0.2s ease, transform 0.3s ease, opacity 0.7s ease;
}
.model-card:hover { border-color: var(--ink); transform: translateY(-3px); }
.model-card.hide { display: none; }
.mc-meta {
  font: 500 12px var(--tech);
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  display: flex;
  justify-content: space-between;
  margin: 0;
}
.model-card h3 { font: 500 22px var(--sans); margin: 0; }
.mc-mk { display: inline-flex; align-items: center; gap: 8px; }
.mc-mk svg { width: 14px; height: 14px; flex-shrink: 0; }
.mh-mk { display: inline-flex; align-items: center; gap: 10px; }
.mh-mk svg { width: 18px; height: 18px; fill: var(--blue); flex-shrink: 0; }
.mc-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 14px;
  color: var(--ink-soft);
  margin: auto 0 0;
}
.mc-go { font: 500 12px var(--tech); letter-spacing: 0.06em; color: var(--ink); flex-shrink: 0; }

/* Model detail */

.model-hero { padding-top: 90px; padding-bottom: 70px; }
.model-hero h1 { font: 500 clamp(40px, 5vw, 66px) var(--sans); letter-spacing: -0.01em; margin: 0 0 16px; }
.model-hero .mh-sub { color: var(--cream-soft); font-size: 18px; line-height: 1.55; max-width: 60ch; margin: 0; }
.model-hero .stat-strip { margin-top: 54px; }
.model-body { padding-top: 90px; padding-bottom: 100px; }
.model-cols {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: start;
  max-width: 1080px;
}
.model-cols h2 { font: 500 28px var(--sans); margin: 0 0 18px; }
.model-cols h2 + p { margin-top: 0; }
.model-cols p { font-size: 17px; line-height: 1.65; color: rgba(38, 38, 34, 0.88); margin: 0 0 20px; }
.model-cols h2:not(:first-child) { margin-top: 40px; }
.code-card {
  background: var(--ink);
  color: var(--cream);
  padding: 22px 24px;
  overflow-x: auto;
}
.code-card pre { margin: 0; font: 400 12.5px/1.65 ui-monospace, Menlo, monospace; }
.code-card .c-dim { color: var(--cream-soft); }
/* Bordered callout beside the spec rows on the enterprise page. */
.quote-block {
  border: 1px solid var(--rail);
  padding: 22px 24px;
  margin-top: 26px;
  font-size: 15px;
  line-height: 1.6;
}
.quote-block p + p { margin-top: 10px; }

.spec-rows { border-top: 1px solid var(--rail); margin-top: 26px; }
.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--rail);
  font-size: 15px;
}
.spec-row span:first-child { font: 500 12.5px var(--tech); letter-spacing: 0.05em; color: var(--ink-soft); }

/* Prose links inside model and solution columns. */
.model-cols p a { text-decoration: underline; text-underline-offset: 3px; }
.blog-head + .newsroom { padding-top: 50px; }

/* Quote form on the contact page. */
.q-form { display: grid; gap: 16px; }
.q-form label {
  font: 500 12px var(--tech);
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  display: block;
  margin-bottom: 7px;
}
.q-form input, .q-form textarea {
  background: #fff;
  border: 1px solid var(--rail);
  padding: 13px 14px;
  font: 500 15px var(--sans);
  color: var(--ink);
  width: 100%;
  outline: none;
}
.q-form input:focus, .q-form textarea:focus { border-color: var(--ink); }
.q-form textarea { min-height: 130px; resize: vertical; }

/* Rise-in blocks */

.rise {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.rise.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .post-hero img { animation: none; }
  .rise { opacity: 1; transform: none; transition: none; }
}

/* Word reveal: words start dim and fill on scroll, stagger per word. */

.reveal-words .w {
  display: inline-block;
  opacity: 0.22;
  transform: translateY(0.25em);
  transition: opacity 0.55s ease, transform 0.55s ease;
  transition-delay: calc(var(--i) * 70ms);
}
.reveal-words.in .w { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal-words .w { opacity: 1; transform: none; transition: none; }
}

/* Small screens */

@media (max-width: 900px) {
  .hero, .thesis, .product, .trusted, .newsroom, .closing,
  .model-lib, .model-hero, .model-body,
  .foot-top, .newsletter, .foot-cols, .foot-legal {
    padding-left: calc(var(--rail-x) + 18px);
    padding-right: calc(var(--rail-x) + 18px);
  }
  .nav nav { display: none; }
  .hero-side { position: static; margin-top: 40px; }
  .hero { justify-content: center; }
  .product.split { grid-template-columns: 1fr; }
  .side-render.low { position: static; width: 100%; margin-top: 40px; }
  .float-render { margin-top: -120px; }
  .stat-strip { grid-template-columns: 1fr 1fr; margin-top: 60px; }
  .stat-strip > div:nth-child(3) { border-left: none; padding-left: 0; }
  .stat-strip > div { border-top: 1px solid var(--rail-dark); margin-top: -1px; }
  .d-row { grid-template-columns: 64px 1fr auto; gap: 6px 14px; }
  .d-row > span:nth-child(3) { grid-column: 2; font-size: 14px; }
  .d-head > span:nth-child(3) { display: none; }
  .fc-bar .bl { width: 92px; font-size: 14px; }
  .photo-band img { min-height: 470px; }
  .float-card { padding: 22px 24px; min-width: 0; width: min(330px, 86vw); }
  .fc-big { font-size: 29px; margin-bottom: 18px; }
  .fc-fine { font-size: 12px; }
  .news-grid { grid-template-columns: 1fr; }
  .newsletter { grid-template-columns: 1fr; gap: 14px; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .foot-cols > div + div { border-left: none; padding-left: 0; }
  .foot-legal { grid-template-columns: 1fr; }
  .scene img { height: 52vh; }
}
