/* ============================================================
   ORX — design system v2
   Gallery white · matte cube black · signal orange
   One family: Archivo (variable width axis)
   ============================================================ */

:root {
  /* color — OKLCH, neutrals at chroma 0 */
  --paper: oklch(0.975 0 0);
  --grey: oklch(0.92 0 0);
  --ink: oklch(0.22 0 0);
  --ink-soft: oklch(0.42 0 0);
  --black: oklch(0.19 0 0);
  --on-black: oklch(0.94 0 0);
  --on-black-soft: oklch(0.7 0 0);
  --accent: oklch(0.63 0.2 38);
  --accent-hover: oklch(0.55 0.19 38);
  --accent-ink: oklch(0.3 0.08 38);
  --hair: oklch(0.875 0 0);
  --hair-dark: oklch(0.33 0 0);
  --line: oklch(0.84 0 0);

  /* focus ring — single source for all keyboard focus.
     Solid accent: 3.55:1 on paper, 4.84:1 on black (WCAG 2.4.11 ≥3:1). */
  --focus-ring: 0 0 0 3px var(--accent);

  /* type */
  --font: "Archivo", system-ui, -apple-system, sans-serif;

  /* type scale — display (125% stretch) + consolidated body sizes */
  --display-l: clamp(2.5rem, 5.6vw, 4.9rem);
  --display-m: clamp(2rem, 4.4vw, 3.6rem);
  --display-s: clamp(1.6rem, 2.4vw, 2.1rem);
  --text-lead: 1.1rem;
  --text-body: 1rem;
  --text-caption: 0.9rem;

  /* rhythm */
  --nav-h: 72px;
  --pad: clamp(20px, 4vw, 48px);
  --section: clamp(96px, 12vw, 160px);

  /* z scale */
  --z-nav: 50;
  --z-menu: 60;

  /* motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  font-optical-sizing: auto;
  overflow-x: hidden;
}

::selection { background: var(--accent-hover); color: var(--paper); }
* { -webkit-tap-highlight-color: transparent; }

/* keyboard focus — one ring, every interactive element */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* skip link — first tab stop, hidden until focused */
.skip {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: calc(var(--z-menu) + 10);
  background: var(--ink);
  color: var(--paper);
  font: 600 0.9rem/1 var(--font);
  padding: 12px 20px;
  text-decoration: none;
  transform: translateY(calc(-100% - 20px));
  transition: transform 0.2s var(--ease);
}
.skip:focus-visible { transform: translateY(0); }

/* visually hidden, available to assistive tech */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

section { scroll-margin-top: var(--nav-h); }

h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

.accent { color: var(--accent); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  font: 600 1rem/1 var(--font);
  text-decoration: none;
  padding: 16px 28px;
  border: 1.5px solid var(--ink);
  transition: background 0.12s var(--ease), color 0.12s var(--ease), border-color 0.12s var(--ease);
}
.btn:active { transform: scale(0.98); }
summary:active { transform: scale(0.98); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--paper); }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--paper); }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-nav);
  height: var(--nav-h);
  background: transparent;
  transition: background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.nav--scrolled {
  background: color-mix(in oklch, var(--paper) 92%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--hair);
}
.nav__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--pad);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav__cube { display: block; height: 36px; width: auto; }
.nav__brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1;
}
.nav__word {
  font-stretch: 125%;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.nav__full {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.nav__links { display: flex; align-items: center; gap: 32px; }
.nav__links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: var(--text-body);
  font-weight: 500;
  transition: color 0.15s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a.is-active {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 7px;
  text-decoration-color: var(--accent);
}
/* a.nav__cta outranks .nav__links a by specificity — no !important needed */
.nav__links a.nav__cta {
  background: var(--ink);
  color: var(--paper);
  padding: 12px 20px;
  font-weight: 600;
  transition: background 0.12s var(--ease);
}
.nav__links a.nav__cta:hover { background: var(--accent-hover); }
.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
}
.nav__burger span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s var(--ease);
}

/* ---------- hero ---------- */
.hero {
  padding: calc(var(--nav-h) + clamp(48px, 8vh, 96px)) 0 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
  flex: 1;
}
.hero__title {
  font-stretch: 125%;
  font-weight: 800;
  font-size: var(--display-l);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span { display: block; }
.hero__title em {
  font-style: normal;
  color: var(--accent);
}

.hero__sub {
  color: var(--ink-soft);
  font-size: var(--text-lead);
  line-height: 1.65;
  max-width: 52ch;
  margin-bottom: 40px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__artifact { display: flex; justify-content: center; align-items: center; }
.hero__artifact img {
  width: min(100%, 420px);
  height: auto;
  max-height: 480px;
}



/* light-on-dark compensation for all black sections */
.arc, .cairo, .contact { letter-spacing: 0.01em; }
.arc__lead, .phase__body, .cairo__list p, .contact__lead { line-height: 1.75; }

/* ---------- arc (black) ---------- */
.arc {
  background: var(--black);
  color: var(--on-black);
  padding: var(--section) 0;
  position: relative;
}
.arc::before {
  content: "";
  position: absolute;
  inset: -1px 0 auto 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--black));
  pointer-events: none;
  z-index: 1;
}
.arc__title {
  font-stretch: 125%;
  font-weight: 800;
  font-size: var(--display-m);
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin-bottom: 24px;
}
.arc__lead {
  color: var(--on-black-soft);
  font-size: var(--text-lead);
  line-height: 1.65;
  max-width: 56ch;
  margin-bottom: clamp(56px, 7vw, 88px);
}
.arc__track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(32px, 4vw, 64px);
  border-top: 1px solid var(--hair-dark);
}
.phase { padding-top: 40px; position: relative; }
.phase__num {
  position: absolute;
  top: -0.62em;
  left: 0;
  background: var(--black);
  padding-right: 16px;
  font-stretch: 125%;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--accent);
  line-height: 1;
}
.phase h3 {
  font-stretch: 125%;
  font-weight: 800;
  font-size: var(--display-s);
  margin-bottom: 6px;
}
.phase__verb {
  color: var(--accent);
  font-weight: 600;
  font-size: var(--text-caption);
  margin-bottom: 20px;
}
.phase__body {
  color: var(--on-black-soft);
  font-size: var(--text-body);
  line-height: 1.65;
  margin-bottom: 24px;
}
.phase ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.phase li {
  font-size: var(--text-body);
  padding-left: 20px;
  position: relative;
}
.phase li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px;
  height: 8px;
  background: var(--accent);
}

/* ---------- catalogue (white) ---------- */
.catalogue { background: var(--grey); padding: var(--section) 0; }

.catalogue__head {
  margin-bottom: clamp(48px, 6vw, 72px);
}
.catalogue__label {
  font-size: var(--text-caption);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.catalogue__head h2 {
  font-stretch: 125%;
  font-weight: 800;
  font-size: var(--display-m);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 12px;
}
.catalogue__meta {
  color: var(--ink-soft);
  font-size: var(--text-body);
  line-height: 1.6;
  margin-bottom: 10px;
}
.catalogue__lead {
  color: var(--ink-soft);
  font-size: var(--text-lead);
  line-height: 1.65;
  max-width: 52ch;
}

.specs { border-bottom: 1.5px solid var(--ink); }
.spec { border-top: 1.5px solid var(--ink); }
.spec summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 52px 1fr auto 20px;
  align-items: center;
  gap: 20px;
  padding: 28px 0;
  transition: background 0.15s var(--ease);
}
.spec summary::-webkit-details-marker { display: none; }
.spec summary:hover .spec__name { color: var(--accent-ink); }
.spec__index {
  font-weight: 800;
  font-size: 1.75rem;
  font-stretch: 125%;
  color: var(--accent-ink);
  line-height: 1;
}
.spec__info {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.spec__name {
  font-stretch: 115%;
  font-weight: 700;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  transition: color 0.15s var(--ease);
}
.spec__tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--ink);
  color: var(--paper);
  font-size: var(--text-caption);
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}
.spec__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 800;
  font-size: 0.8125rem;
  line-height: 1;
  justify-self: end;
}
.spec__toggle {
  width: 14px;
  height: 14px;
  position: relative;
  justify-self: end;
  transition: transform 0.3s var(--ease);
}
.spec[open] .spec__toggle { transform: rotate(45deg); }
.spec__toggle::before,
.spec__toggle::after {
  content: "";
  position: absolute;
  background: var(--ink);
  transition: background 0.15s var(--ease);
}
.spec__toggle::before { width: 100%; height: 2px; top: 50%; transform: translateY(-50%); }
.spec__toggle::after { width: 2px; height: 100%; left: 50%; transform: translateX(-50%); }
.spec summary:hover .spec__toggle::before,
.spec summary:hover .spec__toggle::after { background: var(--accent-ink); }

.spec__body {
  padding: 0 0 32px 72px;
  display: flex;
  flex-direction: column;
}
.spec[open] .spec__body { animation: specIn 0.25s var(--ease); }
@keyframes specIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.spec__row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.spec__body .spec__row:first-child { border-top: 1.5px solid var(--ink); }
.spec__svc { font-weight: 700; font-size: var(--text-body); }
.spec__row p { color: var(--ink-soft); font-size: var(--text-body); line-height: 1.6; max-width: 65ch; }

/* ---------- mark (white, heavy hairlines) ---------- */
.mark {
  padding: var(--section) 0;
  border-top: 1.5px solid var(--ink);
}
/* .acro — outlined display letter that fills with accent on scroll.
   --p (0–1) is set from JS scroll progress; default 0 = outline only.
   Reduced motion forces the final state. */
.acro {
  position: relative;
  display: block;
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(9rem, 20vw, 18rem);
  line-height: 0.8;
  user-select: none;
}
.acro__outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--hair);
}
.acro__fill {
  position: absolute;
  inset: 0;
  color: var(--accent);
  clip-path: inset(calc((1 - var(--p, 0)) * 100%) 0 0 0);
}

.mark__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.mark__letter {
  display: flex;
  justify-content: center;
  align-items: center;
}
.mark__letter .acro { font-size: clamp(8rem, 14vw, 14rem); }
.mark__quote {
  font-stretch: 125%;
  font-weight: 800;
  font-size: var(--display-m);
  letter-spacing: -0.02em;
  line-height: 1.02;
  max-width: 18ch;
  margin-bottom: 32px;
}
.mark__list { border-bottom: 1.5px solid var(--ink); }
.mark__list p {
  border-top: 1.5px solid var(--ink);
  padding: 22px 0;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  font-weight: 500;
  line-height: 1.5;
}
.mark__key {
  color: var(--accent-ink);
  font-weight: 800;
  margin-right: 16px;
}
.mark__key::after { content: "—"; margin-left: 16px; font-weight: 500; }

/* ---------- engagement (grey, decision aid) ---------- */
.engagement {
  background: var(--grey);
  padding: var(--section) 0;
}
.engagement__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(48px, 6vw, 96px);
  align-items: start;
}
.engagement__intro { position: sticky; top: calc(var(--nav-h) + 24px); }
.engagement__intro h2 {
  font-stretch: 125%;
  font-weight: 800;
  font-size: var(--display-m);
  letter-spacing: -0.02em;
  line-height: 1.02;
  max-width: 14ch;
  margin-bottom: 24px;
}
.engagement__intro p {
  color: var(--ink-soft);
  font-size: var(--text-lead);
  line-height: 1.65;
  max-width: 44ch;
  margin-bottom: 32px;
}
.engagement__founders {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding-top: 12px;
}
.engagement__founder {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  border-top: 1.5px solid var(--ink);
  padding-top: 24px;
}
.engagement__initial {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--ink);
  font-stretch: 125%;
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--accent-ink);
}
.engagement__founder h3 {
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 6px;
}
.engagement__role {
  color: var(--accent-ink);
  font-weight: 600;
  font-size: var(--text-caption);
  margin-bottom: 12px;
}
.engagement__quote {
  color: var(--ink-soft);
  font-size: var(--text-lead);
  line-height: 1.65;
  max-width: 48ch;
  font-style: italic;
}

/* ---------- founder creed + team (engagement right column) ---------- */
.engagement__body {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

/* creed — "Forged in the fire of execution" */
.engagement__creed h3 {
  font-stretch: 125%;
  font-weight: 800;
  font-size: var(--display-m);
  letter-spacing: -0.02em;
  line-height: 1.02;
  max-width: 22ch;
  margin-bottom: 24px;
}
.engagement__creed-letter {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}
.engagement__creed .acro { font-size: clamp(6rem, 11vw, 10rem); }
.engagement__creed-list { border-bottom: 1.5px solid var(--ink); }
.engagement__creed-list p {
  border-top: 1.5px solid var(--ink);
  padding: 22px 0;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  font-weight: 500;
  line-height: 1.5;
}
.engagement__creed-key {
  color: var(--accent-ink);
  font-weight: 800;
  margin-right: 16px;
}
.engagement__creed-key::after { content: "·"; margin-left: 16px; font-weight: 500; }



/* ---------- cairo (black, closing statement — same band as contact) ---------- */
.cairo {
  background: var(--black);
  color: var(--on-black);
  padding: var(--section) 0 clamp(64px, 8vw, 104px);
  position: relative;
}
.cairo::before {
  content: "";
  position: absolute;
  inset: -1px 0 auto 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--black));
  pointer-events: none;
  z-index: 1;
}
.cairo__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.cairo__letter { display: flex; justify-content: center; }
.cairo .acro__outline { -webkit-text-stroke-color: var(--hair-dark); }
/* creed F sits on --grey: --hair (0.875) is near-invisible there, use --line */
.engagement .acro__outline { -webkit-text-stroke-color: var(--line); }
.cairo__title {
  font-stretch: 125%;
  font-weight: 800;
  font-size: var(--display-m);
  letter-spacing: -0.02em;
  line-height: 1.02;
  max-width: 20ch;
  margin-bottom: 24px;
}
.cairo__list {
  margin-top: 40px;
  max-width: 640px;
  border-top: 1px solid var(--hair-dark);
}
.cairo__list p {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--hair-dark);
  color: var(--on-black-soft);
  font-size: var(--text-lead);
  line-height: 1.55;
}
.cairo__key {
  flex: 0 0 auto;
  width: 2ch;
  color: var(--on-black);
  font-stretch: 125%;
  font-weight: 800;
  font-size: 1.4rem;
  line-height: 1;
}

/* ---------- contact (black) ---------- */
.contact {
  background: var(--black);
  color: var(--on-black);
  padding: clamp(64px, 8vw, 104px) 0 var(--section);
}
.contact h2 {
  font-stretch: 125%;
  font-weight: 800;
  font-size: var(--display-m);
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin-bottom: 24px;
}
.contact__lead {
  color: var(--on-black-soft);
  font-size: var(--text-lead);
  line-height: 1.65;
  max-width: 52ch;
  margin-bottom: clamp(48px, 6vw, 72px);
}
.contact__mail {
  display: inline-block;
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(1.8rem, 5.5vw, 4.2rem);
  line-height: 1.05;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 4px solid transparent;
  transition: border-color 0.2s var(--ease);
  margin-bottom: clamp(48px, 6vw, 72px);
  overflow-wrap: anywhere;
}
.contact__mail:hover { border-bottom-color: var(--accent); }
.contact__meta { color: var(--on-black-soft); font-size: var(--text-caption); }

/* ---------- footer ---------- */
.footer {
  background: var(--black);
  color: var(--on-black-soft);
  border-top: 1px solid var(--hair-dark);
  padding: 28px 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--on-black);
  font-stretch: 125%;
  font-weight: 800;
  font-size: var(--text-body);
  letter-spacing: 0.04em;
}
.footer__brand img { height: 24px; width: auto; filter: invert(1); }
.footer__links { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.footer__links a {
  color: var(--on-black-soft);
  text-decoration: none;
  font-size: var(--text-caption);
  padding: 12px 0;
  transition: color 0.15s var(--ease);
}
.footer__links a:hover { color: var(--on-black); }
.footer__copy { font-size: var(--text-caption); }

/* ---------- hero load choreography ---------- */
@keyframes lineUp {
  from { transform: translateY(110%); }
  to { transform: translateY(0); }
}
@keyframes fadeRise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes artifactIn {
  from { opacity: 0; transform: scale(0.96) translateY(24px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.hero__title .line > span { animation: lineUp 0.9s var(--ease) both; }
.hero__title .line:nth-child(2) > span { animation-delay: 0.08s; }
.hero__title .line:nth-child(3) > span { animation-delay: 0.16s; }
.hero__sub { animation: fadeRise 0.8s var(--ease) 0.3s both; }
.hero__actions { animation: fadeRise 0.8s var(--ease) 0.42s both; }
.hero__artifact img { animation: artifactIn 1.1s var(--ease) 0.2s both; }

/* ---------- scroll reveals (JS-gated, enhance visible default) ---------- */
.js .rv {
  opacity: 0;
  transform: translateY(28px);
}
.js .rv.in {
  animation: fadeRise 0.8s var(--ease) both;
}

/* display titles get a focus-pull entrance, lists keep the staggered rise */
@keyframes titleIn {
  from { opacity: 0; transform: translateY(24px); filter: blur(8px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
.js .rv-title {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(8px);
}
.js .rv-title.in {
  animation: titleIn 0.9s var(--ease) both;
}

/* ---------- per-section reveal signatures ---------- */

/* Arc — phases scale in like a magnifying effect */
@keyframes scaleFade {
  from { opacity: 0; transform: scale(0.96) translateY(16px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.js .arc .phase.rv {
  transform: scale(0.96) translateY(16px);
}
.js .arc .phase.rv.in {
  animation-name: scaleFade;
  animation-duration: 0.9s;
}

/* Catalogue — fast, business-like */
.catalogue .rv { opacity: 1; transform: none; }
.js .catalogue .rv { opacity: 0; transform: translateY(28px); }
.catalogue .rv.in { animation-duration: 0.4s; }

/* ruled-line draw-in for mark and cairo rows */
@keyframes lineDraw {
  from { width: 0; }
  to { width: 100%; }
}
.mark__list p,
.cairo__list p {
  position: relative;
}
.mark__list p::before,
.cairo__list p::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  height: 1.5px;
  width: 0;
  background: var(--ink);
  pointer-events: none;
}
.mark__list p.in::before,
.cairo__list p.in::before {
  animation: lineDraw 0.6s var(--ease) forwards;
}
.cairo__list p::before { background: var(--hair-dark); }

/* Mark — quote enters from the left */
@keyframes revealLeft {
  from { opacity: 0; transform: translateX(-24px); }
  to { opacity: 1; transform: translateX(0); }
}
.js .mark .mark__quote.rv-title {
  transform: translateX(-24px);
  filter: none;
}
.js .mark .mark__quote.rv-title.in {
  animation-name: revealLeft;
  animation-duration: 0.8s;
}
.mark .mark__list .rv.in { animation-duration: 0.6s; }

/* Engagement — founders enter from the right */
@keyframes revealRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}
.js .engagement .engagement__founder.rv {
  transform: translateX(20px);
}
.js .engagement .engagement__founder.rv.in {
  animation-name: revealRight;
  animation-duration: 0.7s;
}

/* Forge creed — deliberate and slow */
.engagement__creed .rv.in { animation-duration: 1s; }


/* Cairo — shorter travel, snappier */
.js .cairo .rv { transform: translateY(16px); }
.cairo .rv.in { animation-duration: 0.7s; }

/* Contact — simple, final CTA */
.contact .rv.in { animation-duration: 0.6s; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
  .js .rv { opacity: 1; transform: none; }
  .js .rv-title { opacity: 1; transform: none; filter: none; }
  .js .arc .rv,
  .js .mark .rv,
  .js .mark .rv-title,
  .js .engagement .rv,
  .js .cairo .rv,
  .js .contact .rv {
    opacity: 1;
    transform: none;
    filter: none;
  }
  .acro__fill { clip-path: inset(0 0 0 0); }
  .mark__list p::before,
  .cairo__list p::before { width: 100%; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .hero__artifact img { width: min(72vw, 340px); max-height: 380px; }
  .arc__track { grid-template-columns: 1fr; gap: 48px; }
  .cairo__grid { grid-template-columns: 1fr; gap: 48px; }
  .cairo__letter { justify-content: flex-start; }
  .mark__letter, .engagement__creed-letter { justify-content: flex-start; }
  .acro { font-size: clamp(7rem, 34vw, 12rem); }
  .mark__grid, .engagement__grid { grid-template-columns: 1fr; gap: 48px; }
  .engagement__intro { position: static; }

}

@media (max-width: 1024px) {
  .nav__links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    z-index: var(--z-menu);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--paper);
    box-shadow: 0 1px 0 var(--hair);
    padding: 16px var(--pad) 24px;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0s 0.2s;
  }
  .nav__links a { padding: 12px 0; font-size: 1.05rem; }
  .nav__cta { margin-top: 10px; }
  .nav--open .nav__links {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0s 0s;
  }
  .nav__burger { display: flex; }
  .nav--open .nav__burger span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav--open .nav__burger span:last-child { transform: translateY(-4px) rotate(-45deg); }
}

@media (max-width: 760px) {
  .catalogue__label { margin-bottom: 4px; }

  .spec summary {
    grid-template-columns: 36px 1fr auto 18px;
    gap: 12px;
    padding: 22px 0;
  }
  .spec__index { font-size: 1.25rem; }
  .spec__info { gap: 8px; }
  .spec__tag { font-size: 11px; padding: 2px 8px; }
  .spec__count { width: 26px; height: 26px; font-size: 11px; }
  .spec__body { padding: 0 0 24px; }
  .spec__row { grid-template-columns: 1fr; gap: 4px; padding: 10px 0; }
}
