/* ============================================================
   RotorDev — Industrial Editorial
   ============================================================ */

:root {
  --bg:        #0b0b0a;
  --bg-soft:   #131311;
  --line:      #1f1e1b;
  --line-2:    #2a2925;
  --fg:        #edeae0;
  --fg-mute:   #9b988d;
  --fg-dim:    #5a5852;
  --ember:     #ff4a1c;
  --ember-soft:#ff7a4d;
  --cream:     #f3efe4;

  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans:  'Geist', system-ui, sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, monospace;

  --maxw: 1320px;
  --gutter: clamp(1.25rem, 3.4vw, 3rem);
  --rad: 2px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--fg); }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-weight: 400;
  font-feature-settings: 'ss01','ss02','cv01','cv11';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; }

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

/* ─────────  Overlay textures  ───────── */
.grain {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 100;
  opacity: .07; mix-blend-mode: overlay;
  background-image:
    repeating-radial-gradient(circle at 23% 17%, #fff 0 1px, transparent 1px 3px),
    repeating-radial-gradient(circle at 71% 81%, #fff 0 1px, transparent 1px 3px);
  background-size: 3px 3px, 5px 5px;
}
.vignette {
  position: fixed; inset: 0; pointer-events: none; z-index: 99;
  background: radial-gradient(150% 130% at 50% 50%, transparent 0%, transparent 72%, rgba(0,0,0,.22) 100%);
}

/* ──────────────────────────────  NAV  ────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: .85rem var(--gutter);
  display: grid; grid-template-columns: auto 1fr auto auto;
  align-items: center; gap: 2rem;
  background: linear-gradient(180deg, rgba(11,11,10,.92), rgba(11,11,10,.55) 70%, transparent);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, padding .3s;
}
.nav.scrolled { border-bottom-color: var(--line); padding-top: .55rem; padding-bottom: .55rem; }

.brand {
  display: inline-flex; align-items: center; gap: .65rem;
  font-family: var(--sans); font-weight: 700; letter-spacing: -.01em;
  font-size: 1.05rem;
}
.brand-mark {
  width: 56px; height: 56px;
  display: block;
  filter: drop-shadow(0 0 14px rgba(255,74,28,.22));
  transition: transform .5s cubic-bezier(.22,.61,.36,1), filter .5s;
}
.brand:hover .brand-mark {
  transform: rotate(-15deg) scale(1.06);
  filter: drop-shadow(0 0 24px rgba(255,74,28,.5));
}
.nav.scrolled .brand-mark {
  width: 44px; height: 44px;
  transition: width .3s, height .3s, filter .5s, transform .5s;
}
.brand-word { color: var(--fg); }

.nav-links {
  list-style: none; margin: 0; padding: 0; justify-self: center;
  display: flex; gap: 2.2rem; font-size: .82rem; font-weight: 500;
  color: var(--fg-mute);
}
.nav-links a { transition: color .25s; display: inline-flex; align-items: baseline; gap: .35rem; }
.nav-links a i { font-family: var(--mono); font-style: normal; font-size: .7rem; color: var(--fg-dim); }
.nav-links a:hover { color: var(--fg); }
.nav-links a:hover i { color: var(--ember); }

.nav-cta {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .58rem .9rem .58rem 1rem;
  border: 1px solid var(--line-2);
  background: rgba(255,255,255,.02);
  border-radius: 999px;
  font-size: .82rem; font-weight: 500;
  transition: background .25s, border-color .25s, color .25s, transform .25s;
}
.nav-cta:hover { background: var(--ember); border-color: var(--ember); color: var(--bg); }
.nav-cta:hover svg path { stroke: var(--bg); }
.nav-cta svg { width: 14px; height: 14px; }

.menu-toggle {
  display: none; background: none; border: 0; color: var(--fg); cursor: pointer;
  width: 34px; height: 34px; padding: 0;
}
.menu-toggle span {
  display: block; width: 18px; height: 1.5px; background: currentColor; margin: 4px auto;
}

/* ──────────────────────────────  HERO  ───────────────────────── */
.hero-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex;
  flex-direction: column;
}
.hero {
  position: relative;
  z-index: 1;
  flex: 1;
  padding: clamp(8rem, 14vh, 11rem) var(--gutter) 4rem;
  display: grid;
  grid-template-rows: auto 1fr auto;
  max-width: var(--maxw); margin: 0 auto;
  width: 100%;
}

.hero-meta {
  display: flex; flex-wrap: wrap; gap: 2rem 2.4rem;
  font-family: var(--mono); font-size: .72rem; font-weight: 400;
  color: var(--fg-mute); text-transform: uppercase; letter-spacing: .08em;
}
.hero-meta .pill {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .3rem .7rem; border: 1px solid var(--line-2); border-radius: 999px;
  color: var(--fg); background: rgba(255,255,255,.02);
}
.pulse {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--ember); box-shadow: 0 0 0 0 var(--ember);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,74,28,.6); }
  70%  { box-shadow: 0 0 0 10px rgba(255,74,28,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,74,28,0); }
}

.hero-title {
  margin: 1.6rem 0 0;
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(3.4rem, 11vw, 11rem);
  line-height: .92;
  letter-spacing: -0.045em;
  color: var(--fg);
  align-self: end;
  text-wrap: balance;
}
.hero-title .line { display: block; }
.hero-title em,
.hero-title .it {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--cream);
}
.hero-title em {
  font-style: italic; color: var(--ember); padding: 0 .15em;
}
.ember { color: var(--ember); }

.hero-foot {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem;
  align-items: end; margin-top: 3rem;
  padding-top: 1.8rem; border-top: 1px solid var(--line);
}
.hero-sub {
  margin: 0; max-width: 52ch;
  color: var(--fg-mute); font-size: clamp(.98rem, 1.15vw, 1.12rem);
  line-height: 1.55;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; justify-self: end; }

/* Hero brand mark — full-bleed ambient */
.hero-mark {
  position: absolute;
  right: clamp(-18rem, -8vw, -4rem);
  top: 8%;
  width: clamp(34rem, 58vw, 62rem);
  aspect-ratio: 1;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  animation: hero-fade 1.6s cubic-bezier(.22,.61,.36,1) .35s forwards;
}
.hero-mark img {
  width: 100%; height: 100%;
  display: block;
  filter: drop-shadow(0 0 80px rgba(255,74,28,.32))
          drop-shadow(0 0 160px rgba(255,74,28,.14))
          brightness(1.05);
  animation: breathe 9s ease-in-out 1.6s infinite;
  transform-origin: center;
}
@keyframes hero-fade {
  from { opacity: 0; transform: scale(.94); }
  to   { opacity: .95; transform: scale(1); }
}
@keyframes breathe {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50%      { transform: scale(1.025) rotate(2.5deg); }
}

/* ──────────────────────────────  BTNS  ───────────────────────── */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: .65rem;
  padding: .95rem 1.4rem;
  border-radius: 999px;
  font-size: .92rem; font-weight: 500; letter-spacing: -.005em;
  border: 1px solid transparent;
  transition: background .25s, color .25s, border-color .25s, transform .25s;
  cursor: pointer;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--ember); color: var(--bg); }
.btn-primary:hover { background: var(--cream); }
.btn-primary:hover svg path { stroke: var(--bg); }
.btn-ghost { border-color: var(--line-2); color: var(--fg); }
.btn-ghost:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn.big { padding: 1.3rem 2rem; font-size: 1.05rem; }

/* ──────────────────────────────  TICKER  ─────────────────────── */
.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.4rem 0;
  overflow: hidden;
  position: relative;
  background: linear-gradient(180deg, rgba(255,74,28,.03), transparent);
}
.ticker::before, .ticker::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 12rem; z-index: 2;
  pointer-events: none;
}
.ticker::before { left: 0;  background: linear-gradient(90deg, var(--bg), transparent); }
.ticker::after  { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }

.ticker-track {
  display: inline-flex; gap: 2.2rem; align-items: center;
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  white-space: nowrap;
  animation: ticker 50s linear infinite;
  color: var(--cream);
}
.ticker-track .dot { color: var(--ember); font-style: normal; font-size: .55em; }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ──────────────────────────────  SECTION HEADS  ──────────────── */
.section-head {
  display: flex; align-items: baseline; gap: 1.4rem; flex-wrap: wrap;
  padding-bottom: 1.4rem; margin-bottom: 3rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: .78rem; letter-spacing: .08em;
  color: var(--fg-mute); text-transform: uppercase;
}
.section-head .num   { color: var(--ember); font-weight: 500; }
.section-head .label { color: var(--fg); font-weight: 500; }
.section-head .meta  { margin-left: auto; color: var(--fg-dim); text-transform: none; letter-spacing: .04em; font-size: .73rem; }

/* ──────────────────────────────  MANIFESTO  ──────────────────── */
.manifesto {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(5rem, 10vh, 8rem) var(--gutter) 2rem;
}
.manifesto-body {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.6vw, 3.4rem);
  line-height: 1.18; letter-spacing: -.015em;
  color: var(--cream);
  max-width: 28ch;
  margin: 0;
}
.manifesto-body em {
  color: var(--ember); font-style: italic;
}

/* ──────────────────────────────  DISCIPLINES  ────────────────── */
.disciplines {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(5rem, 10vh, 8rem) var(--gutter);
}
.disc-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 0;
  grid-template-columns: repeat(2, 1fr);
}
.disc {
  position: relative;
  padding: 2.2rem 2.4rem 2.6rem;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  min-height: 22rem;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: background .35s;
}
.disc:nth-child(2n)   { border-right: 1px solid var(--line); }
.disc:nth-last-child(-n+2):not(:nth-child(odd)),
.disc:last-child { border-bottom: 1px solid var(--line); }
.disc:nth-last-child(2):nth-child(odd),
.disc:last-child:nth-child(odd) { border-bottom: 1px solid var(--line); }
.disc:hover { background: linear-gradient(180deg, rgba(255,74,28,.05), transparent 50%); }
.disc header { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.disc-id {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .12em;
  color: var(--ember); text-transform: uppercase;
}
.disc h3 {
  margin: .8rem 0 1rem;
  font-family: var(--sans); font-weight: 800;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  line-height: 1; letter-spacing: -.035em;
  color: var(--fg);
  flex: 1 1 100%;
}
.disc h3 i { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--cream); }
.disc p { margin: 0 0 1.6rem; color: var(--fg-mute); max-width: 38ch; }

.disc .tags {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .45rem;
}
.disc .tags li {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .08em;
  padding: .35rem .65rem;
  border: 1px solid var(--line-2);
  border-radius: 2px;
  color: var(--fg-mute);
  text-transform: uppercase;
}

/* ──────────────────────────────  METHOD  ─────────────────────── */
.method {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(5rem, 10vh, 8rem) var(--gutter);
}
.method-title {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(2.4rem, 5.5vw, 5rem);
  line-height: 1.02; letter-spacing: -.035em;
  margin: 0 0 4rem;
  max-width: 18ch;
}
.method-title i { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--ember); }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: 7rem 1fr 2fr;
  gap: 2rem;
  align-items: baseline;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  transition: padding-left .4s;
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step:hover { padding-left: 1rem; }
.step-no {
  font-family: var(--mono); font-size: .78rem; letter-spacing: .12em;
  color: var(--ember);
}
.step h4 {
  margin: 0;
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1; color: var(--cream); letter-spacing: -.01em;
}
.step p { margin: 0; color: var(--fg-mute); max-width: 52ch; font-size: 1.02rem; }

/* ──────────────────────────────  STACK  ──────────────────────── */
.stack {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(5rem, 10vh, 8rem) var(--gutter);
}
.stack-grid {
  display: grid; gap: 2rem;
  grid-template-columns: repeat(3, 1fr);
}
.stack-col {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.012), transparent);
  padding: 1.8rem 1.8rem 2rem;
  border-radius: var(--rad);
}
.stack-col h5 {
  margin: 0 0 1.2rem;
  font-family: var(--mono); font-size: .76rem; letter-spacing: .12em;
  color: var(--ember); text-transform: uppercase;
}
.stack-col ul { list-style: none; margin: 0; padding: 0; }
.stack-col li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: .85rem 0;
  border-top: 1px dashed var(--line);
  font-size: 1rem; color: var(--fg);
}
.stack-col li:first-child { border-top: 0; padding-top: 0; }
.stack-col li span {
  font-family: var(--mono); font-size: .72rem; color: var(--fg-dim);
  letter-spacing: .04em;
}

.stack-note {
  margin: 2.5rem 0 0;
  padding: 1.6rem 1.8rem;
  border-left: 2px solid var(--ember);
  background: rgba(255,74,28,.04);
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  color: var(--cream);
  line-height: 1.4;
}
.stack-note .mono { font-family: var(--mono); font-style: normal; color: var(--ember); font-size: .9rem; }

/* ──────────────────────────────  WORK  ───────────────────────── */
.work {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(5rem, 10vh, 8rem) var(--gutter);
}
.work-grid {
  display: grid; gap: 2rem;
  grid-template-columns: repeat(2, 1fr);
}
.work-card {
  position: relative;
  border: 1px solid var(--line);
  padding: 1.5rem;
  border-radius: var(--rad);
  transition: border-color .3s, transform .4s;
  cursor: pointer;
}
.work-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.work-visual {
  position: relative;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  border-radius: var(--rad);
  overflow: hidden;
  margin-bottom: 1.4rem;
}
.work-visual .mono {
  position: absolute; bottom: .8rem; right: .9rem;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .12em;
  color: var(--fg-mute); z-index: 2;
}
.work-blob {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 80% at 75% 35%, var(--accent) 0%, transparent 60%),
    radial-gradient(50% 70% at 25% 80%, color-mix(in srgb, var(--accent) 50%, transparent) 0%, transparent 60%),
    linear-gradient(135deg, #1c1b18 0%, #0e0d0c 100%);
  filter: saturate(115%);
  transition: filter .5s, transform .8s;
}
.work-card:hover .work-blob { transform: scale(1.05); filter: saturate(140%) brightness(110%); }
.work-blob.alt {
  background:
    conic-gradient(from 220deg at 60% 50%, var(--accent), transparent 60%),
    linear-gradient(135deg, #1c1b18 0%, #0e0d0c 100%);
}
.work-blob.alt2 {
  background:
    repeating-linear-gradient(135deg, color-mix(in srgb, var(--accent) 35%, transparent) 0 2px, transparent 2px 16px),
    linear-gradient(135deg, #1c1b18 0%, #0e0d0c 100%);
}
.work-blob.alt3 {
  background:
    radial-gradient(120% 80% at 100% 0%, var(--accent) 0%, transparent 45%),
    radial-gradient(60% 50% at 0% 100%, color-mix(in srgb, var(--accent) 40%, transparent) 0%, transparent 70%),
    linear-gradient(135deg, #1c1b18 0%, #0e0d0c 100%);
}
.work-card h4 {
  margin: 0 0 .5rem;
  font-family: var(--sans); font-weight: 700;
  font-size: 1.4rem; letter-spacing: -.02em;
}
.work-card h4 i { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--fg-mute); }
.work-card p { margin: 0 0 1rem; color: var(--fg-mute); font-size: .95rem; }
.work-meta {
  display: flex; justify-content: space-between; gap: 1rem;
  padding-top: .9rem;
  border-top: 1px dashed var(--line);
  font-family: var(--mono); font-size: .72rem; letter-spacing: .08em;
  color: var(--fg-dim); text-transform: uppercase;
}

/* ──────────────────────────────  STATS  ──────────────────────── */
.stats {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(4rem, 8vh, 6rem) var(--gutter);
  display: grid; gap: 0;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: 2rem 1.5rem;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: .55rem;
}
.stat:last-child { border-right: 0; }
.stat strong {
  font-family: var(--sans); font-weight: 800;
  font-size: clamp(3rem, 5.5vw, 5.5rem);
  letter-spacing: -.05em; line-height: .9;
  color: var(--fg);
}
.stat span {
  font-family: var(--mono); font-size: .74rem; letter-spacing: .08em;
  color: var(--fg-mute); text-transform: uppercase;
  max-width: 24ch;
}

/* ──────────────────────────────  CTA  ────────────────────────── */
.cta {
  position: relative;
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(7rem, 14vh, 11rem) var(--gutter) clamp(6rem, 12vh, 10rem);
  text-align: left;
  overflow: hidden;
}
.cta::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(60% 80% at 100% 50%, rgba(255,74,28,.13) 0%, transparent 60%),
    radial-gradient(40% 60% at 0% 100%, rgba(255,74,28,.06) 0%, transparent 60%);
  z-index: -1;
}
.cta-meta {
  display: flex; gap: 2rem; font-family: var(--mono); font-size: .74rem;
  letter-spacing: .12em; color: var(--fg-mute); text-transform: uppercase;
}
.cta-title {
  margin: 1.6rem 0 1.6rem;
  font-family: var(--sans); font-weight: 800;
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: .98; letter-spacing: -.045em;
  max-width: 18ch;
}
.cta-title i { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--ember); }
.cta-sub {
  max-width: 56ch; color: var(--fg-mute);
  font-size: clamp(1rem, 1.2vw, 1.15rem); margin: 0 0 2.4rem;
}

/* ──────────────────────────────  FOOTER  ─────────────────────── */
.footer {
  border-top: 1px solid var(--line);
  background: #08080701;
  padding-top: 4rem;
}
.footer-grid {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 var(--gutter) 3rem;
  display: grid; gap: 3rem;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
}
.foot-brand p {
  margin: 1.2rem 0 0;
  color: var(--fg-mute); max-width: 32ch; font-size: .95rem;
}
.foot-col h6 {
  margin: 0 0 1rem;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .12em;
  color: var(--ember); text-transform: uppercase; font-weight: 500;
}
.foot-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.foot-col a {
  color: var(--fg-mute); transition: color .2s;
  font-size: .95rem;
}
.foot-col a:hover { color: var(--ember); }

.footer-bar {
  border-top: 1px solid var(--line);
  padding: 1.4rem var(--gutter);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-family: var(--mono); font-size: .7rem; letter-spacing: .08em;
  color: var(--fg-dim); text-transform: uppercase;
  max-width: var(--maxw); margin: 0 auto;
}
.footer-bar .up { color: var(--fg-mute); }
.footer-bar .up:hover { color: var(--ember); }

/* ──────────────────────────────  REVEAL  ─────────────────────── */
/* Hero per-word reveal */
.reveal-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(110%);
  animation: word-up 1s cubic-bezier(.22,.61,.36,1) forwards;
}
.line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero-title .line .reveal-word:nth-child(1) { animation-delay: .15s; }
.hero-title .line .reveal-word:nth-child(2) { animation-delay: .22s; }
.hero-title .line .reveal-word:nth-child(3) { animation-delay: .29s; }
.hero-title .line:nth-child(1) .reveal-word { animation-delay: .15s; }
.hero-title .line:nth-child(1) .reveal-word:nth-child(2) { animation-delay: .25s; }
.hero-title .line:nth-child(2) .reveal-word { animation-delay: .35s; }
.hero-title .line:nth-child(2) .reveal-word:nth-child(2) { animation-delay: .45s; }
.hero-title .line:nth-child(2) .reveal-word:nth-child(3) { animation-delay: .55s; }
.hero-title .line:nth-child(3) .reveal-word { animation-delay: .65s; }
.hero-title .line:nth-child(3) .reveal-word:nth-child(2) { animation-delay: .75s; }
.hero-title .line:nth-child(4) .reveal-word { animation-delay: .9s; }

@keyframes word-up {
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: fade-up 1s cubic-bezier(.22,.61,.36,1) forwards;
  animation-delay: 1.1s;
}
.hero-meta .reveal:nth-child(2) { animation-delay: 1.18s; }
.hero-meta .reveal:nth-child(3) { animation-delay: 1.24s; }
.hero-meta .reveal:nth-child(4) { animation-delay: 1.32s; }
.hero-sub.reveal { animation-delay: 1.35s; }
.hero-actions.reveal { animation-delay: 1.45s; }

@keyframes fade-up {
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll-triggered reveal */
.reveal-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s cubic-bezier(.22,.61,.36,1), transform .9s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
}
.reveal-up.in {
  opacity: 1;
  transform: translateY(0);
}

/* ──────────────────────────────  RESPONSIVE  ─────────────────── */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav { grid-template-columns: 1fr auto auto; }
  .nav-cta span { display: none; }
  .nav-cta { padding: .58rem; }
  .menu-toggle { display: block; }
  .hero-foot { grid-template-columns: 1fr; gap: 2rem; }
  .hero-actions { justify-self: start; }
  .hero-mark {
    right: -32%;
    top: 8%;
    bottom: auto;
    width: clamp(20rem, 92vw, 30rem);
  }
  .hero-mark img { animation: breathe 9s ease-in-out 1.6s infinite; }
  .disc-grid { grid-template-columns: 1fr; }
  .disc { border-right: 1px solid var(--line) !important; }
  .disc:last-child { border-bottom: 1px solid var(--line); }
  .stack-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .step { grid-template-columns: 5rem 1fr; gap: 1rem; }
  .step p { grid-column: 2; max-width: none; }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-meta { gap: .9rem 1.4rem; font-size: .68rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal-word, .reveal, .reveal-up { opacity: 1; transform: none; }
  .ticker-track { animation: none; }
  .hero-mark img { animation: none; }
}
