:root {
  --paper: #fff6fa;
  --paper-soft: #ffe2ef;
  --ink: #2b1220;
  --ink-soft: #6e4a5b;
  --muted: #b98aa1;
  --accent: #ff4f9c;
  --accent-2: #ff8fc4;
  --accent-soft: rgb(255 79 156 / 14%);
  --line: rgb(43 18 32 / 10%);
  --line-strong: rgb(43 18 32 / 20%);
  --radius: 4px;
  --shadow: 0 22px 70px rgb(255 79 156 / 20%);
  color-scheme: light;
  color: var(--ink);
  background: var(--paper);
  font-family: Manrope, "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; background: var(--paper); scroll-behavior: smooth; }
body { min-width: 320px; min-height: 100vh; margin: 0; overflow-x: hidden; background: var(--paper); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }

.serif {
  font-family: Playball, Fraunces, Georgia, serif;
  font-weight: 400;
  color: var(--accent);
  text-shadow: 0 1px 0 rgb(255 255 255 / 60%), 0 0 26px rgb(255 79 156 / 35%);
}

/* ---------- glam badge (dashed pill) ---------- */
.badge-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px;
  font-size: 0.86rem; font-weight: 650; color: var(--ink);
  background: rgb(255 255 255 / 82%); border: 1.5px dashed var(--accent); border-radius: 999px;
  box-shadow: 0 10px 30px rgb(255 79 156 / 16%);
}

body.has-custom-cursor, body.has-custom-cursor a, body.has-custom-cursor button { cursor: none; }

/* ---------- grain texture ---------- */
.grain {
  position: fixed; inset: -20%; z-index: 5; pointer-events: none; opacity: 0.045; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 9s steps(8) infinite;
}
@keyframes grainShift { to { transform: translate3d(-4%, 3%, 0); } }

/* ---------- preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  background: var(--ink); color: var(--paper);
}
.preloader__word { font-family: Fraunces, Georgia, serif; font-style: italic; font-size: clamp(2.2rem, 7vw, 4rem); }
.preloader__count { font-size: 0.85rem; letter-spacing: 0.1em; color: rgb(250 248 244 / 55%); font-variant-numeric: tabular-nums; }
.preloader.is-done { pointer-events: none; }

/* ---------- custom cursor ---------- */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 90; pointer-events: none;
  transform: translate3d(-50%, -50%, 0); will-change: transform;
}
.cursor-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
.cursor-ring {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong);
  display: grid; place-items: center; transition: width 200ms ease, height 200ms ease, background 200ms ease, border-color 200ms ease;
}
.cursor-ring__label {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--paper);
  opacity: 0; transition: opacity 150ms ease; white-space: nowrap;
}
.cursor-ring.is-active { width: 84px; height: 84px; background: var(--ink); border-color: var(--ink); }
.cursor-ring.is-active .cursor-ring__label { opacity: 1; }

/* ---------- scroll progress ---------- */
.progress-bar { position: fixed; top: 0; left: 0; z-index: 60; width: 100%; height: 2px; pointer-events: none; }
.progress-bar span { display: block; height: 100%; width: 0%; background: var(--accent); }

/* ---------- side rail (scrollspy) ---------- */
.rail { position: fixed; right: 22px; top: 50%; z-index: 45; display: grid; gap: 12px; transform: translateY(-50%); }
.rail a { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); transition: transform 200ms ease, background 200ms ease; }
.rail a.is-active { background: var(--accent); transform: scale(1.7); }

/* ---------- placeholders ---------- */
.media-placeholder {
  position: relative; width: 100%; height: 100%; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(120% 140% at 30% 20%, rgb(255 143 196 / 45%), transparent 60%), linear-gradient(160deg, #ffe4f0, #ffb2d6 65%, #ff8fc4);
  color: rgb(43 18 32 / 45%); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
}
.media-placeholder--soft { background: linear-gradient(160deg, #fff0f7, #ffc7e2); }
.media-placeholder--video { cursor: pointer; }
.media-placeholder img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; z-index: 50; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center; width: 100%; min-height: 76px; padding: 6px clamp(20px, 4vw, 48px); color: var(--paper);
  background: transparent; transition: background 260ms ease, color 260ms ease, backdrop-filter 260ms ease, border-color 260ms ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid {
  color: var(--ink); background: rgb(255 246 250 / 80%); border-bottom-color: var(--line);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.brand, .nav-links, .header-action { display: flex; align-items: center; }
.brand { gap: 10px; }
.brand__name { font-family: Fraunces, serif; font-style: italic; font-size: 1.15rem; font-weight: 500; }
.nav-links { justify-content: center; gap: 6px; }
.nav-links a { padding: 10px 14px; font-size: 0.92rem; font-weight: 500; border-radius: 999px; transition: background 180ms ease; }
.nav-links a:hover { background: rgb(128 128 128 / 14%); }
.header-action {
  justify-self: end; min-height: 42px; padding: 0 18px; font-weight: 650; border-radius: 999px;
  color: var(--ink); background: var(--paper); transition: transform 180ms ease;
}
.site-header.is-solid .header-action { color: var(--paper); background: var(--ink); }
.header-action:hover { transform: translateY(-2px); }

.button {
  display: inline-flex; align-items: center; justify-content: center; min-width: 150px; min-height: 50px; padding: 0 24px;
  font-weight: 650; border-radius: 999px; border: 1px solid var(--ink); transition: transform 180ms ease, background 180ms ease;
}
.button--dark { color: #fff; background: linear-gradient(135deg, var(--accent), #ff2d84); border-color: transparent; box-shadow: 0 14px 34px rgb(255 79 156 / 34%); }
.button--ghost { color: var(--ink); background: transparent; border-color: var(--accent); }
.button--ghost:hover { background: rgb(255 79 156 / 8%); }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(1px); }

.section-pad { width: min(1240px, calc(100% - 40px)); margin: 0 auto; padding: 108px 0; }
.section-title { max-width: 780px; margin-bottom: 54px; }
.section-title h2, .about h2, .work__header h2, .contact h2 {
  font-size: clamp(2.4rem, 4.6vw, 4rem); font-weight: 700; line-height: 1.05;
}

.eyebrow { display: inline-block; margin-bottom: 18px; font-size: 0.85rem; font-weight: 650; letter-spacing: 0.02em; color: var(--accent); }

/* ================= HERO ================= */
.hero {
  position: relative; overflow: hidden; min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--paper); isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; }
.hero__blob--a { width: 46vw; height: 46vw; top: -14vw; right: -10vw; background: radial-gradient(circle, #ffb6da, transparent 70%); }
.hero__blob--b { width: 32vw; height: 32vw; bottom: -12vw; left: -8vw; background: radial-gradient(circle, #ffd9ec, transparent 70%); }

.hero__badge { position: absolute; z-index: 3; bottom: -16px; left: -22px; transform: rotate(-6deg); }

.hero__inner { width: min(980px, calc(100% - 40px)); text-align: center; padding-top: 40px; }
.hero__title { margin: 0; font-size: clamp(2.6rem, 8vw, 6.4rem); font-weight: 800; line-height: 1.02; letter-spacing: -0.01em; }
.hero__title .word { display: inline-block; overflow: hidden; vertical-align: top; margin-right: 0.28em; }
.hero__title .word__inner { display: inline-block; transform: translateY(115%); }
.hero__title .word--serif .word__inner { font-family: Fraunces, Georgia, serif; font-style: italic; font-weight: 500; color: var(--accent); }
.hero__lead { max-width: 46ch; margin: 26px auto 0; color: var(--ink-soft); font-size: 1.14rem; line-height: 1.7; }
.hero__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero__portrait {
  position: relative; margin: 46px 0 0; width: min(360px, 62vw); height: min(460px, 56vw);
  border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--shadow);
  transform-style: preserve-3d; will-change: transform;
}

.hero__scroll-cue {
  position: absolute; bottom: 86px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column;
  align-items: center; gap: 8px; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.hero__scroll-cue span { width: 1px; height: 34px; background: var(--line-strong); position: relative; overflow: hidden; }
.hero__scroll-cue span::after {
  content: ""; position: absolute; top: -100%; left: 0; width: 100%; height: 100%; background: var(--accent);
  animation: scrollCue 1.8s ease-in-out infinite;
}
@keyframes scrollCue { 50% { top: 100%; } 100% { top: 100%; } }

.hero__marquee {
  position: absolute; left: -4%; right: -4%; bottom: 0; transform: rotate(-1.4deg) translateY(50%);
  padding: 12px 0; background: var(--ink); overflow: hidden; z-index: 2;
}
.hero__marquee-track {
  display: flex; gap: 44px; width: max-content; animation: heroMarquee 20s linear infinite;
  font-size: 0.92rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--paper);
}
.hero__marquee-track span::after { content: "·"; margin-left: 44px; color: var(--accent); }
@keyframes heroMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ================= ABOUT ================= */
.about { display: grid; grid-template-columns: minmax(260px, 0.62fr) minmax(0, 1fr); gap: 72px; align-items: start; }
.about__aside { position: sticky; top: 110px; display: grid; gap: 18px; }
.about__portrait { height: 420px; overflow: hidden; border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--shadow); transform-style: preserve-3d; will-change: transform; }
.about__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.about__stats div { padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); }
.about__stats b { display: block; font-family: Fraunces, serif; font-size: 1.9rem; font-weight: 560; color: var(--accent); font-variant-numeric: tabular-nums; }
.about__stats span { font-size: 0.82rem; color: var(--muted); }

.about__manifesto { font-size: clamp(1.5rem, 2.6vw, 2.3rem); line-height: 1.5; font-weight: 600; }
.about__manifesto .word { color: rgb(28 25 18 / 22%); transition: color 60ms linear; }
.about__manifesto .word.is-lit { color: var(--ink); }
.about__facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.about__facts span { padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 999px; font-weight: 550; }

/* ================= FORMATS: horizontal pinned scroll ================= */
.formats-pin { position: relative; overflow: hidden; background: var(--ink); color: var(--paper); }
.formats-track { display: flex; height: 100vh; height: 100dvh; will-change: transform; }
.format-panel {
  position: relative; flex: 0 0 100vw; display: flex; flex-direction: column; justify-content: center; gap: 22px;
  padding: 0 clamp(24px, 8vw, 120px); border-right: 1px solid rgb(250 248 244 / 12%);
}
.format-panel__index { font-size: 0.85rem; letter-spacing: 0.1em; color: rgb(250 248 244 / 55%); }
.format-panel h2 { font-family: Fraunces, serif; font-weight: 500; font-size: clamp(2.8rem, 9vw, 7rem); line-height: 0.96; }
.format-panel p { max-width: 46ch; font-size: 1.06rem; line-height: 1.6; color: rgb(250 248 244 / 74%); }
.format-panel__media { position: absolute; right: clamp(20px, 6vw, 100px); top: 50%; transform: translateY(-50%); width: min(320px, 30vw); height: min(400px, 44vh); border-radius: var(--radius); display: none; }
.format-panel--cta { align-items: flex-start; }
.format-panel--cta .button--dark { color: var(--ink); background: var(--paper); border-color: var(--paper); }

/* mobile fallback: vertical stack instead of pinned horizontal scroll */
@media (max-width: 899px) {
  .formats-track { display: grid; height: auto; grid-auto-flow: row; transform: none !important; }
  .format-panel { flex: none; min-height: 70vh; border-right: 0; border-bottom: 1px solid rgb(250 248 244 / 12%); padding: 64px 24px; }
}
@media (min-width: 900px) { .format-panel__media { display: block; } }

/* ================= WORK: draggable stack ================= */
.work__header { max-width: 640px; margin-bottom: 46px; }
.work__header p { margin-top: 16px; color: var(--ink-soft); font-size: 1.02rem; }

.stack { position: relative; height: 560px; max-width: 340px; margin: 0 auto; touch-action: pan-y; }
.stack__card {
  position: absolute; inset: 0; display: grid; gap: 4px; padding-bottom: 0;
  transition: transform 420ms cubic-bezier(0.16, 1, 0.3, 1), opacity 420ms ease; will-change: transform;
  user-select: none;
}
.stack__card .media-placeholder { aspect-ratio: 9 / 12; height: auto; border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: 0 24px 60px rgb(28 25 18 / 18%); }
.stack__card div { margin-top: 12px; display: grid; gap: 2px; }
.stack__card strong { font-size: 1.02rem; font-weight: 650; }
.stack__card span { color: var(--muted); font-size: 0.9rem; }
.stack__card.is-dragging { transition: none; cursor: grabbing; }
.video-toggle {
  position: absolute; top: 50%; left: 50%; display: grid; width: 54px; height: 54px; place-items: center;
  background: rgb(250 248 244 / 88%); border: 1px solid var(--line-strong); border-radius: 999px;
  box-shadow: 0 16px 40px rgb(28 25 18 / 18%); transform: translate(-50%, -50%);
}
.video-toggle::before { width: 0; height: 0; margin-left: 4px; content: ""; border-top: 9px solid transparent; border-bottom: 9px solid transparent; border-left: 14px solid var(--ink); }

.stack-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 34px; }
.stack-controls__hint { font-size: 0.86rem; color: var(--muted); }
.work-arrow { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 999px; transition: transform 150ms ease, border-color 150ms ease; }
.work-arrow:hover { transform: translateY(-2px); border-color: var(--ink); }

/* ================= PROCESS: timeline ================= */
.timeline { position: relative; display: grid; gap: 0; padding-left: 54px; }
.timeline__line { position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px; background: var(--line-strong); }
.timeline__fill { position: absolute; top: 0; left: 0; width: 100%; height: 0%; background: var(--accent); }
.timeline__step { position: relative; padding: 30px 0; border-bottom: 1px solid var(--line); }
.timeline__step:last-child { border-bottom: 0; }
.timeline__num {
  position: absolute; left: -54px; top: 30px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper);
  border: 2px solid var(--line-strong); font-size: 0; transition: background 200ms ease, border-color 200ms ease, transform 200ms ease;
}
.timeline__step.is-active .timeline__num { background: var(--accent); border-color: var(--accent); transform: scale(1.3); }
.timeline__step h3 { font-size: 1.28rem; font-weight: 650; }
.timeline__step p { margin-top: 10px; max-width: 60ch; color: var(--ink-soft); line-height: 1.6; }

/* ================= NICHES: tilt + glare ================= */
.niche-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.niche-card {
  position: relative; overflow: hidden; padding: 34px 22px; min-height: 150px; display: flex; align-items: flex-end;
  background: var(--paper-soft); border: 1px solid var(--line); border-radius: var(--radius);
  transform-style: preserve-3d; will-change: transform; transition: border-color 200ms ease;
}
.niche-card:hover { border-color: var(--accent); }
.niche-card h3 { position: relative; z-index: 1; font-size: 1.2rem; font-weight: 650; }
.niche-card__glare {
  position: absolute; inset: 0; z-index: 0; opacity: 0; transition: opacity 200ms ease;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgb(156 107 62 / 30%), transparent 55%);
}
.niche-card:hover .niche-card__glare { opacity: 1; }

/* ================= WHY: accordion ================= */
.accordion { border-top: 1px solid var(--ink); }
.reason { border-bottom: 1px solid var(--line-strong); }
.reason__head { display: grid; grid-template-columns: 50px 1fr 30px; align-items: center; width: 100%; padding: 24px 0; text-align: left; cursor: pointer; }
.reason__num { font-family: Fraunces, serif; font-style: italic; color: var(--muted); font-size: 1.3rem; }
.reason__title { font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 650; }
.reason__plus { position: relative; width: 18px; height: 18px; justify-self: end; }
.reason__plus::before, .reason__plus::after { content: ""; position: absolute; inset: 0; margin: auto; background: var(--ink); transition: transform 220ms ease; }
.reason__plus::before { width: 100%; height: 1.5px; }
.reason__plus::after { width: 1.5px; height: 100%; }
.reason.is-open .reason__plus::after { transform: rotate(90deg) scaleX(0); }
.reason__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 280ms ease; }
.reason__body p { overflow: hidden; padding-right: 40px; color: var(--ink-soft); line-height: 1.6; }
.reason__body > p { min-height: 0; }
.reason.is-open .reason__body { grid-template-rows: 1fr; padding-bottom: 22px; }
.reason__body { overflow: hidden; }

/* ================= CONTACT ================= */
.contact { position: relative; overflow: hidden; border-radius: var(--radius); }
.contact__canvas { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; }
.contact__inner { position: relative; z-index: 1; text-align: center; max-width: 720px; margin: 0 auto; }
.contact h2 { margin-top: 8px; }
.contact__links { display: grid; gap: 12px; margin-top: 44px; }
.contact__links a, .contact__email {
  display: grid; grid-template-columns: 130px 1fr; align-items: center; gap: 16px; padding: 20px 24px; text-align: left;
  background: rgb(255 255 255 / 68%); border: 1px solid var(--line-strong); border-radius: var(--radius);
  backdrop-filter: blur(10px); transition: transform 180ms ease, border-color 180ms ease; cursor: pointer;
}
.contact__links a:hover, .contact__email:hover { transform: translateX(4px); border-color: var(--accent); }
.contact__links span { color: var(--muted); font-size: 0.9rem; }
.contact__links strong { font-size: 1.1rem; }

.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translate(-50%, 20px); z-index: 80; padding: 12px 22px;
  background: var(--ink); color: var(--paper); border-radius: 999px; font-size: 0.9rem; font-weight: 600;
  opacity: 0; pointer-events: none; transition: opacity 220ms ease, transform 220ms ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.legal-footer { width: min(1240px, calc(100% - 40px)); margin: 0 auto; padding: 0 0 40px; }
.legal-footer p { max-width: 760px; color: var(--muted); font-size: 0.8rem; line-height: 1.5; }

/* ---------- contact sheet ---------- */
.sheet { position: fixed; inset: 0; z-index: 70; pointer-events: none; }
.sheet.is-open { pointer-events: auto; }
.sheet__backdrop { position: absolute; inset: 0; padding: 0; cursor: pointer; background: rgb(28 25 18 / 0%); border: 0; transition: background 260ms ease; }
.sheet.is-open .sheet__backdrop { background: rgb(28 25 18 / 24%); }
.sheet__panel {
  position: absolute; right: 16px; bottom: 16px; left: 16px; max-width: 720px; padding: 20px 24px 26px; margin: 0 auto;
  color: var(--ink); background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--radius);
  box-shadow: 0 30px 120px rgb(28 25 18 / 24%); transform: translateY(calc(100% + 24px)); transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
}
.sheet.is-open .sheet__panel { transform: translateY(0); }
.sheet__handle { width: 42px; height: 3px; margin: 0 auto 18px; background: var(--line-strong); border-radius: 999px; }
.sheet h2 { max-width: 560px; font-size: clamp(2rem, 4.6vw, 3.6rem); font-weight: 700; line-height: 1.04; }
.sheet p { max-width: 520px; margin-top: 14px; color: var(--ink-soft); line-height: 1.65; }
.sheet__links { display: grid; margin-top: 26px; border-top: 1px solid var(--ink); }
.sheet__links a { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); transition: color 180ms ease; }
.sheet__links a:hover { color: var(--accent); }
.sheet__links span { color: var(--muted); }
.sheet__links strong { overflow-wrap: anywhere; font-size: 1.06rem; }
.sheet__close { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 50px; margin-top: 20px; padding: 0 18px; color: var(--paper); font-weight: 600; background: var(--ink); border-radius: var(--radius); cursor: pointer; }
.sheet__close:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 75; pointer-events: none; display: grid; place-items: center; }
.lightbox.is-open { pointer-events: auto; }
.lightbox__backdrop { position: absolute; inset: 0; background: rgb(28 25 18 / 0%); border: 0; cursor: pointer; transition: background 260ms ease; }
.lightbox.is-open .lightbox__backdrop { background: rgb(28 25 18 / 78%); }
.lightbox__panel {
  position: relative; z-index: 1; width: min(360px, 84vw); height: min(560px, 76vh); border-radius: var(--radius);
  overflow: hidden; opacity: 0; transform: scale(0.92); transition: opacity 260ms ease, transform 260ms ease;
}
.lightbox.is-open .lightbox__panel { opacity: 1; transform: scale(1); }

/* ---------- reveal ---------- */
body.sheet-open, body.lightbox-open { overflow: hidden; }
.reveal-up { opacity: 0; transform: translateY(24px); transition: opacity 720ms cubic-bezier(0.16, 1, 0.3, 1), transform 720ms cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-up.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal-up { opacity: 1; transform: none; }
  .hero__title .word__inner { transform: none; }
  .grain { display: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .about { grid-template-columns: 1fr; gap: 40px; }
  .about__aside { position: static; }
  .niche-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .rail { display: none; }
  .nav-links { display: none; }
  .section-pad { width: min(100% - 28px, 720px); padding: 76px 0; }
  .hero__marquee { transform: rotate(0deg) translateY(0); position: static; margin-top: 40px; }
  .stack { height: 480px; max-width: 280px; }
  .niche-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .site-header { padding: 6px 16px; min-height: 64px; }
  .header-action { min-height: 38px; padding: 0 14px; font-size: 0.86rem; }
  .hero__actions { flex-direction: column; width: 100%; }
  .hero__actions .button { width: 100%; }
  .about__stats { grid-template-columns: 1fr; }
  .niche-grid { grid-template-columns: 1fr; }
  .contact__links a, .contact__email { grid-template-columns: 1fr; gap: 4px; }
}
