/* =========================================================
   Lauter Metal Technologies
   Black. White. Heat.
   ========================================================= */

:root {
  --black: #000;
  --ink: #0a0a0a;
  --steel-900: #111;
  --steel-800: #1a1a1a;
  --steel-600: #3a3a3a;
  --steel-400: #7a7a7a;
  --steel-200: #c9c9c9;
  --white: #fff;

  --display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.77, 0, .175, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --line: 1px solid rgba(255, 255, 255, .16);

  color-scheme: dark;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.is-loading { overflow: hidden; }

::selection { background: var(--white); color: var(--black); }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img, video, svg { display: block; max-width: 100%; }

.mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.section-tag { display: inline-block; color: var(--steel-400); }

h1, h2, h3 { margin: 0; font-weight: 800; line-height: .9; letter-spacing: -.02em; }
em { font-style: italic; font-weight: 300; font-variation-settings: "wdth" 100; }

/* ---------------------------------------------------------
   Grain overlay
   --------------------------------------------------------- */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 90;
  pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-6%, 4%); }
  40%  { transform: translate(4%, -8%); }
  60%  { transform: translate(-10%, 2%); }
  80%  { transform: translate(8%, 6%); }
  100% { transform: translate(0, 0); }
}

/* ---------------------------------------------------------
   Preloader
   --------------------------------------------------------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.loader__shutter {
  position: absolute;
  left: 0; right: 0;
  height: 50.5%;
  background: var(--black);
  transition: transform 1.1s var(--ease);
}
.loader__shutter--top { top: 0; }
.loader__shutter--bottom { bottom: 0; }
.loader__inner {
  position: relative;
  z-index: 2;
  width: min(560px, calc(100vw - 2 * var(--gutter)));
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  transition: opacity .4s ease, transform .6s var(--ease);
}
.loader__temp {
  grid-column: 1 / -1;
  font-size: clamp(64px, 16vw, 140px);
  font-weight: 900;
  font-variation-settings: "wdth" 125;
  line-height: .85;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.04em;
}
.loader__temp sup { font-size: .3em; font-weight: 300; vertical-align: top; margin-left: .1em; }
.loader__bar {
  grid-column: 1 / -1;
  height: 2px;
  background: var(--steel-800);
  overflow: hidden;
}
.loader__bar span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--white);
  transform: scaleX(var(--p, 0));
  transform-origin: left;
}
.loader__label { color: var(--steel-400); }
.loader__label--right { text-align: right; }
.loader__label:first-child { grid-row: 3; }

body.is-ready .loader__inner { opacity: 0; transform: translateY(-20px); }
body.is-ready .loader__shutter--top { transform: translateY(-100%); }
body.is-ready .loader__shutter--bottom { transform: translateY(100%); }
body.is-ready .loader { visibility: hidden; transition: visibility 0s 1.2s; }


/* ---------------------------------------------------------
   Nav
   --------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(env(safe-area-inset-top, 0px) + 22px) var(--gutter) 22px;
  mix-blend-mode: difference;
  transition: transform .6s var(--ease);
}
.nav.is-hidden { transform: translateY(-110%); }

.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: var(--white);
  color: var(--black);
  font-weight: 900;
  font-size: 20px;
  font-variation-settings: "wdth" 125;
  transition: transform .6s var(--ease);
}
.brand:hover .brand__mark { transform: rotate(90deg); }
.brand__word {
  display: flex; flex-direction: column;
  font-weight: 800;
  font-variation-settings: "wdth" 125;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 15px;
  line-height: 1;
}
.brand__word em {
  font-family: var(--mono);
  font-style: normal;
  font-weight: 400;
  font-size: 9px;
  letter-spacing: .2em;
  margin-top: 4px;
  opacity: .7;
}

.nav__links { display: flex; gap: clamp(18px, 2.4vw, 36px); }
.nav__links a {
  position: relative;
  display: block;
  overflow: hidden;
  height: 1.2em;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1.2;
}
.nav__links a span { position: relative; display: block; transition: transform .5s var(--ease); }
.nav__links a span::after {
  content: attr(data-hover);
  position: absolute;
  left: 0; top: 100%;
}
.nav__links a:hover span { transform: translateY(-100%); }

.nav__toggle { display: none; width: 40px; height: 40px; position: relative; }
.nav__toggle span {
  position: absolute; left: 8px; right: 8px;
  height: 2px; background: var(--white);
  transition: transform .5s var(--ease);
}
.nav__toggle span:first-child { top: 15px; }
.nav__toggle span:last-child { top: 23px; }
body.menu-open .nav__toggle span:first-child { transform: translateY(4px) rotate(45deg); }
body.menu-open .nav__toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0;
  z-index: 95;
  background: var(--white);
  color: var(--black);
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 var(--gutter);
  clip-path: inset(0 0 100% 0);
  transition: clip-path .8s var(--ease);
}
body.menu-open .menu { clip-path: inset(0 0 0 0); }
.menu a {
  display: flex; align-items: baseline; gap: 16px;
  font-size: clamp(48px, 16vw, 96px);
  font-weight: 900;
  font-variation-settings: "wdth" 125;
  text-transform: uppercase;
  line-height: 1;
  border-bottom: 1px solid rgba(0,0,0,.12);
  padding: 12px 0;
}
.menu a small { font-size: 11px; }

@media (max-width: 1100px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
}

/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--gutter) clamp(28px, 5vh, 56px);
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__video {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.35) brightness(.72);
  transform: scale(calc(1.05 + var(--hero-p, 0) * .15));
  will-change: transform;
}
body:not(.is-ready) .hero__video { transform: scale(1.4); }
body.is-ready .hero__video { transition: transform 2.4s var(--ease-out); }
body.is-ready.scrolled .hero__video { transition: none; }

.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 28%, rgba(0,0,0,0) 50%, rgba(0,0,0,.85) 100%),
    radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,.6) 100%);
  opacity: calc(1 + var(--hero-p, 0));
}
.hero__content { position: relative; z-index: 2; }

.hero__eyebrow {
  margin: 0 0 12px;
  color: rgba(255,255,255,.8);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s 1.3s, transform 1s 1.3s var(--ease-out);
}

.hero__title {
  display: flex;
  justify-content: space-between;
  font-size: 20vw; /* refined by fitText() in main.js */
  font-weight: 900;
  font-variation-settings: "wdth" 125;
  line-height: .78;
  letter-spacing: -.035em;
  text-transform: uppercase;
  margin: 0;
  overflow: hidden;
  padding-top: .04em;
}
.hero__title span {
  display: inline-block;
  transform: translateY(105%);
  transition: transform 1.3s var(--ease-out), font-variation-settings .6s var(--ease-out);
  transition-delay: calc(.55s + var(--i, 0) * .07s), 0s;
}
body.is-ready .hero__title span { transform: translateY(calc(var(--hero-p, 0) * var(--drift, 0) * 1%)); }
body.is-ready.scrolled .hero__title span { transition: font-variation-settings .6s var(--ease-out); }
@media (hover: hover) {
  .hero__title span:hover { font-variation-settings: "wdth" 62; }
}

.hero__sub {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-top: clamp(14px, 2.4vw, 28px);
  padding-top: clamp(14px, 2vw, 22px);
  border-top: var(--line);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s 1.5s, transform 1s 1.5s var(--ease-out);
}
body.is-ready .hero__eyebrow,
body.is-ready .hero__sub { opacity: 1; transform: none; }

.hero__tag {
  margin: 0;
  font-size: clamp(18px, 2.2vw, 30px);
  font-weight: 300;
  font-variation-settings: "wdth" 125;
  text-transform: uppercase;
  letter-spacing: .08em;
  line-height: 1.05;
}
.hero__lede {
  margin: 0;
  max-width: 34ch;
  color: var(--steel-200);
  font-size: clamp(14px, 1.2vw, 17px);
  text-align: right;
}

.scroll-cue {
  position: absolute;
  z-index: 3;
  right: var(--gutter);
  top: 30%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  writing-mode: vertical-rl;
  color: rgba(255,255,255,.75);
  opacity: 0;
  transition: opacity 1s 2s;
}
body.is-ready .scroll-cue { opacity: 1; }
.scroll-cue__line {
  width: 1px; height: 64px;
  background: rgba(255,255,255,.2);
  position: relative;
  overflow: hidden;
}
.scroll-cue__line::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--white);
  animation: drip 2s var(--ease) infinite;
}
@keyframes drip {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

@media (max-width: 720px) {
  .hero__sub { flex-direction: column; align-items: flex-start; }
  .hero__lede { text-align: left; }
  .scroll-cue { display: none; }
}

/* ---------------------------------------------------------
   Marquee
   --------------------------------------------------------- */
.marquee {
  position: relative;
  z-index: 2;
  background: var(--white);
  color: var(--black);
  overflow: hidden;
  padding: 18px 0;
  transform: rotate(-2deg) scale(1.05);
  margin: -24px 0 0;
}
.marquee__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee span {
  font-size: clamp(28px, 5vw, 64px);
  font-weight: 900;
  font-variation-settings: "wdth" 125;
  text-transform: uppercase;
  line-height: 1;
  padding: 0 .4em;
  white-space: nowrap;
}
.marquee span:nth-of-type(even) {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--black);
}
.marquee b {
  width: .6em; height: .6em;
  font-size: clamp(28px, 5vw, 64px);
  background: var(--black);
  transform: rotate(45deg) scale(.5);
  flex: none;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------
   Manifesto
   --------------------------------------------------------- */
.manifesto {
  padding: clamp(120px, 20vh, 220px) var(--gutter);
  max-width: 1500px;
}
.manifesto__text {
  margin: 28px 0 0;
  font-size: clamp(30px, 5.2vw, 84px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.025em;
  font-variation-settings: "wdth" 88;
}
.manifesto__text .w {
  display: inline-block;
  color: var(--steel-800);
  transition: color .25s linear, text-shadow .4s;
}
.manifesto__text .w.on { color: var(--white); }
.manifesto__text .w.hot { text-shadow: 0 0 24px rgba(255,255,255,.55); }

/* ---------------------------------------------------------
   Process (pinned horizontal)
   --------------------------------------------------------- */
.process { position: relative; height: 480vh; }
.process__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-top: var(--line);
}
.process__head {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 100px var(--gutter) 0;
}
.process__progress {
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,.16);
  position: relative;
}
.process__progress span {
  position: absolute; inset: 0;
  background: var(--white);
  transform: scaleX(var(--pp, 0));
  transform-origin: left;
}
.process__count { color: var(--steel-400); font-variant-numeric: tabular-nums; }
.process__count b { color: var(--white); font-weight: 600; }

.process__track {
  flex: 1;
  display: flex;
  align-items: stretch;
  gap: clamp(16px, 2vw, 28px);
  padding: 40px var(--gutter) 48px;
  width: max-content;
  will-change: transform;
}

.panel {
  position: relative;
  width: min(78vw, 520px);
  flex: none;
  border: var(--line);
  padding: clamp(20px, 2.4vw, 36px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background: var(--black);
  transition: background .6s var(--ease-out), color .6s var(--ease-out);
}
.panel.is-active { background: var(--white); color: var(--black); }
.panel.is-active .panel__glyph { stroke: var(--black); }
.panel.is-active p { color: var(--steel-600); }

.panel--intro {
  width: min(86vw, 640px);
  border: 0;
  justify-content: flex-end;
  padding-left: 0;
  background: transparent !important;
  color: var(--white) !important;
}
.panel--intro h2 {
  font-size: clamp(56px, 8.5vw, 140px);
  font-variation-settings: "wdth" 110;
  text-transform: uppercase;
}
.panel--intro p { color: var(--steel-400) !important; max-width: 30ch; margin: 24px 0 0; }

.panel__num {
  font-size: clamp(80px, 12vw, 180px);
  font-weight: 900;
  font-variation-settings: "wdth" 62;
  line-height: .8;
  color: transparent;
  -webkit-text-stroke: 1px var(--white);
  transition: -webkit-text-stroke-color .6s;
}
.panel.is-active .panel__num { -webkit-text-stroke-color: var(--black); }
.panel__glyph {
  position: absolute;
  top: clamp(20px, 2.4vw, 36px);
  right: clamp(20px, 2.4vw, 36px);
  width: 38%;
  fill: none;
  stroke: var(--white);
  stroke-width: 1.2;
  transition: stroke .6s;
}
.panel__glyph path, .panel__glyph rect, .panel__glyph circle, .panel__glyph line {
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  transition: stroke-dashoffset 2s var(--ease-out);
}
.panel.is-seen .panel__glyph * { stroke-dashoffset: 0; }
.panel__glyph--spin circle { transform-origin: center; transform-box: fill-box; }
.panel.is-active .panel__glyph--spin circle:first-child { animation: spin 4s linear infinite; }
.panel.is-active .panel__glyph--spin circle:nth-child(2) { animation: spin 4s linear infinite reverse; }
.panel__glyph--spin circle { stroke-dasharray: 18 8; stroke-dashoffset: 0; }
@keyframes spin { to { transform: rotate(360deg); } }

.panel h3 {
  font-size: clamp(48px, 6vw, 96px);
  font-variation-settings: "wdth" 125;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.panel p {
  margin: 0 0 24px;
  color: var(--steel-400);
  max-width: 36ch;
  font-size: clamp(14px, 1.1vw, 17px);
  transition: color .6s;
}
.panel__spec {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid currentColor;
}

@media (max-height: 640px) {
  .panel__num { font-size: 64px; }
  .panel h3 { font-size: 40px; }
  .process__head { padding-top: 80px; }
}

/* ---------------------------------------------------------
   Material
   --------------------------------------------------------- */
.material {
  padding: clamp(100px, 16vh, 180px) var(--gutter);
  border-top: var(--line);
}
.material__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 120px);
  align-items: center;
  margin-top: 48px;
}
.element {
  position: relative;
  aspect-ratio: 1;
  max-width: 460px;
  width: 100%;
  background: var(--white);
  color: var(--black);
  padding: clamp(20px, 3vw, 36px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  transform-style: preserve-3d;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .5s var(--ease-out);
  overflow: hidden;
}
.element__num { font-size: clamp(14px, 1.6vw, 20px); }
.element__sym {
  align-self: center;
  font-size: clamp(140px, 22vw, 300px);
  font-weight: 900;
  font-variation-settings: "wdth" 100;
  line-height: .8;
  letter-spacing: -.05em;
}
.element__name, .element__mass { font-size: clamp(12px, 1.3vw, 16px); }
.element__mass { position: absolute; right: clamp(20px, 3vw, 36px); bottom: clamp(20px, 3vw, 36px); }
.element__shine {
  position: absolute; inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(0,0,0,.14), transparent 45%);
  pointer-events: none;
}

.material__copy h2 {
  font-size: clamp(44px, 6.4vw, 110px);
  font-variation-settings: "wdth" 110;
  text-transform: uppercase;
}
.material__copy p {
  margin: 32px 0 0;
  color: var(--steel-200);
  font-size: clamp(16px, 1.4vw, 21px);
  max-width: 48ch;
}

.stats {
  list-style: none;
  padding: 0;
  margin: clamp(80px, 12vh, 140px) 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: var(--line);
}
.stats li {
  padding: 28px 20px 8px 0;
  border-right: var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.stats li + li { padding-left: 20px; }
.stats li:last-child { border-right: 0; }
.stats__val {
  font-size: clamp(44px, 5.4vw, 88px);
  font-weight: 900;
  font-variation-settings: "wdth" 70;
  line-height: .9;
  font-variant-numeric: tabular-nums;
}
.stats__val b { font-weight: inherit; }
.stats__val i { font-style: normal; font-weight: 300; font-size: .35em; margin-left: .2em; vertical-align: top; }
.stats .mono { color: var(--steel-400); }

@media (max-width: 860px) {
  .material__grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats li:nth-child(2) { border-right: 0; }
  .stats li:nth-child(3) { padding-left: 0; }
  .stats li:nth-child(n+3) { border-top: var(--line); }
}

/* ---------------------------------------------------------
   Expanding video
   --------------------------------------------------------- */
.reveal-video { position: relative; height: 260vh; }
.reveal-video__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.reveal-video__frame {
  position: absolute;
  inset: 0;
  clip-path: inset(var(--inset-y, 30%) var(--inset-x, 34%) round var(--radius, 0px));
  will-change: clip-path;
}
.reveal-video__frame video {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.3) brightness(.6);
  transform: scale(calc(1.3 - var(--rv, 0) * .3));
}
.reveal-video__caption {
  position: relative;
  z-index: 2;
  text-align: center;
  font-size: clamp(34px, 6.2vw, 120px);
  font-variation-settings: "wdth" 125;
  text-transform: uppercase;
  mix-blend-mode: difference;
  pointer-events: none;
  padding: 0 var(--gutter);
}
.reveal-video__caption span { display: block; }
.reveal-video__caption span:first-child { transform: translateX(calc((1 - var(--rv, 0)) * -40vw)); }
.reveal-video__caption span:last-child {
  transform: translateX(calc((1 - var(--rv, 0)) * 40vw));
  font-weight: 300;
  font-style: italic;
}

/* ---------------------------------------------------------
   CTA
   --------------------------------------------------------- */
.cta {
  padding: clamp(120px, 20vh, 220px) var(--gutter) clamp(80px, 12vh, 140px);
  background: var(--white);
  color: var(--black);
}
.cta .section-tag { color: var(--steel-600); }
.cta__title {
  margin: 32px 0 0;
  font-size: clamp(40px, 10.4vw, 200px);
  font-variation-settings: "wdth" 125;
  text-transform: uppercase;
  line-height: .86;
}
.cta__title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.cta__title .line > span {
  display: inline-block;
  transform: translateY(105%);
  transition: transform 1.2s var(--ease-out);
}
.cta__title .line:nth-child(2) > span { transition-delay: .1s; }
.cta__title .line:nth-child(3) > span { transition-delay: .2s; }
.cta__title.in .line > span { transform: none; }
.cta__title em { font-variation-settings: "wdth" 62; }

.cta__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  margin-top: clamp(48px, 8vh, 96px);
  padding-top: 32px;
  border-top: 1px solid rgba(0,0,0,.15);
}
.cta__row p { margin: 0; max-width: 40ch; color: var(--steel-600); font-size: clamp(16px, 1.3vw, 20px); }

.cta__button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 26px 36px;
  background: var(--black);
  color: var(--white);
  border-radius: 999px;
  font-weight: 700;
  font-variation-settings: "wdth" 110;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: clamp(15px, 1.3vw, 19px);
  overflow: hidden;
  isolation: isolate;
  transition: transform .4s var(--ease-out);
}
.cta__button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--steel-800);
  transform: translateY(101%);
  border-radius: 50% 50% 0 0;
  transition: transform .6s var(--ease), border-radius .6s var(--ease);
}
.cta__button:hover::before { transform: none; border-radius: 0; }
.cta__button svg {
  width: 22px; height: 22px;
  fill: none; stroke: currentColor; stroke-width: 2;
  transition: transform .5s var(--ease);
}
.cta__button:hover svg { transform: rotate(45deg); }

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */
.footer {
  background: var(--black);
  padding: 32px var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 12px);
  overflow: hidden;
}
.footer__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  color: var(--steel-400);
}
.footer__row a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  margin: -8px 0;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  cursor: pointer;
  transition: color .2s, border-color .2s, background-color .2s;
}
.footer__row a:hover {
  color: var(--black);
  background: var(--white);
  border-color: var(--white);
}
.footer__giant {
  margin-top: 40px;
  font-size: 22vw; /* refined by fitText() */
  font-weight: 900;
  width: max-content;
  margin-inline: auto;
  font-variation-settings: "wdth" 125;
  line-height: .74;
  letter-spacing: -.04em;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.35);
  background: linear-gradient(0deg, var(--white) 50%, transparent 50%) 0 var(--fill, 0%) / 100% 200% no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  transition: background-position 1.2s var(--ease);
  user-select: none;
}
.footer__giant.in { background-position: 0 100%; }

/* ---------------------------------------------------------
   Sub-pages: Blog & Careers
   --------------------------------------------------------- */
.page { padding: clamp(110px, 16vh, 180px) var(--gutter) clamp(70px, 12vh, 140px); max-width: 1120px; margin: 0 auto; }
.page__head { margin-bottom: clamp(36px, 6vh, 64px); }
.page__title { font-size: clamp(48px, 9vw, 132px); font-weight: 900; font-variation-settings: "wdth" 125; text-transform: uppercase; line-height: .88; letter-spacing: -.02em; margin: 18px 0 0; }
.page__lede { margin: 20px 0 0; color: var(--steel-200); font-size: clamp(16px, 1.5vw, 21px); max-width: 60ch; }
.back-link { display: inline-block; margin-bottom: 20px; color: var(--steel-400); font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.back-link:hover { color: var(--white); }

.post-list { list-style: none; margin: 0; padding: 0; border-top: var(--line); }
.post-list a {
  display: block; padding: clamp(22px, 3vw, 40px) 4px; border-bottom: var(--line);
  transition: padding-left .4s var(--ease-out), color .4s;
}
.post-list a:hover { padding-left: 16px; }
.post-list h2 { font-size: clamp(24px, 3.6vw, 52px); font-weight: 800; font-variation-settings: "wdth" 110; text-transform: uppercase; line-height: 1; letter-spacing: -.01em; }
.post-list p { margin: 12px 0 0; color: var(--steel-400); max-width: 70ch; }
.post-list .meta { display: block; margin-top: 12px; color: var(--steel-600); font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }

.prose { max-width: 760px; }
.prose h1 { font-size: clamp(34px, 5vw, 68px); font-weight: 900; font-variation-settings: "wdth" 110; text-transform: uppercase; line-height: .95; margin: 0 0 24px; }
.prose h2 { font-size: clamp(24px, 3vw, 38px); font-weight: 800; margin: 44px 0 14px; }
.prose h3 { font-size: clamp(19px, 2vw, 26px); font-weight: 700; margin: 32px 0 10px; }
.prose p { color: var(--steel-200); font-size: clamp(16px, 1.25vw, 19px); line-height: 1.75; margin: 0 0 20px; }
.prose ul { color: var(--steel-200); font-size: clamp(16px, 1.25vw, 19px); line-height: 1.7; padding-left: 1.2em; margin: 0 0 20px; }
.prose li { margin: 6px 0; }
.prose a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--steel-600); }
.prose a:hover { text-decoration-color: var(--white); }
.prose code { font-family: var(--mono); font-size: .88em; background: var(--steel-900); padding: 2px 6px; border-radius: 4px; }
.article__meta { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin: 0 0 clamp(28px, 4vh, 44px); color: var(--steel-400); font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.article__sources { margin-top: clamp(40px, 6vh, 72px); padding-top: 24px; border-top: var(--line); }
.article__sources h4 { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--steel-400); margin: 0 0 12px; }
.article__sources a { display: block; color: var(--steel-200); margin: 6px 0; }

.job-detail { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.apply-card { position: sticky; top: 110px; border: var(--line); border-radius: 14px; padding: clamp(22px, 3vw, 34px); background: var(--steel-900); }
.apply-card h3 { font-size: 22px; text-transform: uppercase; margin: 0 0 6px; }
.apply-card .cform { margin-top: 18px; border-top: 0; padding-top: 0; max-width: none; }
.apply-card .cform__grid { grid-template-columns: 1fr; gap: 4px; }
.apply-card .cform label { color: var(--steel-400); }
.apply-card .cform input, .apply-card .cform textarea { border-bottom-color: var(--steel-600); color: var(--white); }
.apply-card .cform input:focus, .apply-card .cform textarea:focus { border-bottom-color: var(--white); }
.apply-card .cform__submit { background: var(--white); color: var(--black); }
.apply-card .cform__status { color: var(--steel-400); }
.apply-card .cform__status.ok { color: #4ade80; }
.apply-card .cform__status.err { color: #ff6b6b; }
.cform input[type="file"] { border: 1px dashed rgba(0,0,0,.3); border-radius: 8px; padding: 12px; font-size: 13px; }
.apply-card .cform input[type="file"] { border-color: var(--steel-600); color: var(--steel-200); }
.apply-card .cform input[type="file"]::file-selector-button { background: var(--steel-800); color: var(--white); border: 0; border-radius: 6px; padding: 6px 12px; margin-right: 12px; font: inherit; cursor: pointer; }
@media (max-width: 860px) { .job-detail { grid-template-columns: 1fr; } .apply-card { position: relative; top: 0; } }

/* ---------------------------------------------------------
   Datasheets page (self-contained; used on both sites)
   --------------------------------------------------------- */
.dpage { padding: clamp(110px, 16vh, 180px) var(--gutter) clamp(70px, 12vh, 140px); max-width: 1080px; margin: 0 auto; }
.dpage__head { margin-bottom: 8px; }
.dpage__title { font-size: clamp(48px, 9vw, 120px); font-weight: 900; font-variation-settings: "wdth" 125; text-transform: uppercase; line-height: .9; letter-spacing: -.02em; margin: 16px 0 0; }
.dpage__lede { margin: 18px 0 0; color: var(--steel-200); font-size: clamp(16px, 1.4vw, 20px); max-width: 62ch; }
.ds-cat { margin: clamp(40px, 6vh, 72px) 0 0; }
.ds-cat h2 { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--steel-400); padding-bottom: 12px; border-bottom: var(--line); margin: 0; }
.ds-list { list-style: none; margin: 0; padding: 0; }
.ds { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 4px; border-bottom: var(--line); }
.ds__t { font-size: clamp(18px, 2.2vw, 26px); font-weight: 800; font-variation-settings: "wdth" 110; text-transform: uppercase; margin: 0; }
.ds__grade { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px; margin-left: 10px; color: var(--steel-200); }
.ds__meta { margin-top: 6px; color: var(--steel-400); font-size: 13px; }
.ds__dl { flex: none; display: inline-flex; align-items: center; gap: 10px; background: var(--white); color: var(--black); border-radius: 999px; padding: 12px 22px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; transition: transform .3s var(--ease-out); }
.ds__dl:hover { transform: translateY(-2px); }
.ds-empty { color: var(--steel-400); border: 1px dashed var(--line); border-radius: 12px; padding: 40px; text-align: center; margin-top: 32px; }
@media (max-width: 600px) { .ds { flex-direction: column; align-items: flex-start; } }

/* ---------------------------------------------------------
   Contact form (on the white CTA)
   --------------------------------------------------------- */
.cform { margin-top: clamp(40px, 6vh, 72px); border-top: 1px solid rgba(0,0,0,.15); padding-top: clamp(28px, 4vh, 44px); max-width: 920px; }
.cform__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cform label { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--steel-600); }
.cform > label { margin-top: 20px; }
.cform input, .cform textarea {
  display: block; width: 100%; margin-top: 8px;
  background: transparent; border: 0; border-bottom: 1.5px solid rgba(0,0,0,.25);
  padding: 10px 2px; font: inherit; color: var(--black); border-radius: 0;
}
.cform textarea { resize: vertical; }
.cform input:focus, .cform textarea:focus { outline: none; border-bottom-color: var(--black); }
.cform__foot { display: flex; align-items: center; gap: 20px; margin-top: 26px; flex-wrap: wrap; }
.cform__submit {
  background: var(--black); color: var(--white); border: 0; border-radius: 999px;
  padding: 16px 32px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: 14px;
  transition: transform .3s var(--ease-out);
}
.cform__submit:hover { transform: translateY(-2px); }
.cform__submit:disabled { opacity: .5; cursor: default; }
.cform__status { color: var(--steel-600); }
.cform__status.ok { color: #0a7d33; }
.cform__status.err { color: #c8102e; }
@media (max-width: 720px) { .cform__grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------
   Reveal utility
   --------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: calc(var(--d, 0) * .09s);
}
[data-reveal].in { opacity: 1; transform: none; }

/* ---------------------------------------------------------
   American Steel
   --------------------------------------------------------- */
.american {
  position: relative;
  padding: clamp(110px, 18vh, 200px) var(--gutter) clamp(80px, 12vh, 130px);
  border-top: var(--line);
  overflow: hidden;
}
.american__stars {
  color: var(--steel-600);
  letter-spacing: .1em;
  margin-bottom: clamp(28px, 5vh, 56px);
  white-space: nowrap;
  overflow: hidden;
}
.american__title {
  margin: 28px 0 0;
  font-size: clamp(44px, 9vw, 168px);
  font-variation-settings: "wdth" 125;
  text-transform: uppercase;
  line-height: .88;
}
.american__title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.american__title .line > span {
  display: inline-block;
  transform: translateY(105%);
  transition: transform 1.1s var(--ease-out);
}
.american__title .line:nth-child(2) > span { transition-delay: .1s; }
.american__title .line:nth-child(3) > span { transition-delay: .2s; }
.american__title.in .line > span { transform: none; }
.american__title em { font-variation-settings: "wdth" 62; }

.american__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: end;
  margin-top: clamp(40px, 7vh, 80px);
}
.american__lede {
  margin: 0;
  color: var(--steel-200);
  font-size: clamp(16px, 1.5vw, 22px);
  max-width: 52ch;
}
.creds { list-style: none; margin: 0; padding: 0; }
.creds li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  border-top: var(--line);
  font-size: clamp(15px, 1.3vw, 19px);
  font-weight: 600;
  font-variation-settings: "wdth" 110;
}
.creds li:last-child { border-bottom: var(--line); }
.creds li span { color: var(--steel-400); flex: none; }

.american__giant {
  margin-top: clamp(60px, 10vh, 120px);
  font-size: 22vw; /* refined by fitText() */
  font-weight: 900;
  width: max-content;
  font-variation-settings: "wdth" 125;
  line-height: .74;
  letter-spacing: -.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.28);
  background: linear-gradient(0deg, var(--white) 50%, transparent 50%) 0 var(--fill, 0%) / 100% 200% no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  transition: background-position 1.3s var(--ease);
  user-select: none;
}
.american__giant.in { background-position: 0 100%; }

/* USA rendered as the flag, clipped inside the letters */
.flag-text {
  -webkit-text-stroke: 0;
  color: transparent;
  -webkit-text-fill-color: transparent;
  background-image: url("assets/flag.svg");
  background-size: 100% 100%;
  background-position: 0 0;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
}

@media (max-width: 860px) {
  .american__grid { grid-template-columns: 1fr; align-items: start; }
}

/* ---------------------------------------------------------
   Industries
   --------------------------------------------------------- */
.industries {
  padding: clamp(100px, 16vh, 180px) var(--gutter);
  border-top: var(--line);
}
.industries__title {
  margin: 28px 0 clamp(40px, 7vh, 72px);
  font-size: clamp(44px, 6.4vw, 110px);
  font-variation-settings: "wdth" 110;
  text-transform: uppercase;
}
.industries__title em { font-variation-settings: "wdth" 62; }

.ind-list { list-style: none; margin: 0; padding: 0; border-top: var(--line); }
.ind {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(16px, 3vw, 48px);
  padding: clamp(22px, 3vw, 40px) clamp(16px, 3vw, 40px);
  border-bottom: var(--line);
  overflow: hidden;
  color: var(--white);
  transition: color .5s var(--ease-out), padding-left .5s var(--ease-out);
}
.ind::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--white);
  transform: translateY(101%);
  transition: transform .55s var(--ease);
}
.ind > * { position: relative; z-index: 1; }
.ind__num { color: var(--steel-400); transition: color .5s; }
.ind__name {
  font-size: clamp(26px, 4.4vw, 68px);
  font-weight: 800;
  font-variation-settings: "wdth" 110;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: -.01em;
}
.ind__desc {
  grid-column: 2;
  max-width: 44ch;
  color: var(--steel-400);
  font-size: clamp(13px, 1.05vw, 16px);
}
.ind__arrow {
  width: 30px; height: 30px;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity .5s, transform .5s var(--ease-out);
}

@media (hover: hover) {
  .ind__desc {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    overflow: hidden;
    transition: max-height .55s var(--ease-out), opacity .45s, margin-top .55s var(--ease-out);
  }
  .ind:hover::before { transform: none; }
  .ind:hover { color: var(--black); padding-left: clamp(24px, 4vw, 60px); }
  .ind:hover .ind__num { color: var(--steel-600); }
  .ind:hover .ind__desc { max-height: 8em; opacity: 1; margin-top: 14px; }
  .ind:hover .ind__arrow { opacity: 1; transform: none; }
}
@media (max-width: 720px) {
  .ind { grid-template-columns: auto 1fr; }
  .ind__arrow { display: none; }
  .ind__desc { margin-top: 12px; }
}

/* ---------------------------------------------------------
   Reduced motion
   --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
  .grain { display: none; }
  .marquee__track { animation: none; }
}
