/* =========================================================
   Monon — personal site
   Layout: single column of generous sections; hero splits copy / portrait card.
   Dark-first. Accent = ember orange (FireDrum).
   ========================================================= */

:root {
  /* Dark (default) */
  --bg: #0e0c0b;
  --bg-2: #161311;
  --surface: rgba(255, 246, 238, 0.045);
  --surface-strong: rgba(255, 246, 238, 0.08);
  --glass: rgba(22, 19, 17, 0.62);
  --line: rgba(255, 240, 228, 0.10);
  --text: #f6f2ee;
  --text-2: #b9b0a8;
  --text-3: #8a817a;
  --accent: #ff7a30;
  --accent-ink: #1a0c04;
  --accent-soft: rgba(255, 122, 48, 0.14);
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7), 0 2px 8px rgba(0, 0, 0, 0.25);
  --ph-a: #1d1916;
  --ph-b: #2a211b;
  color-scheme: dark;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, "Segoe UI", Roboto, sans-serif;
  --font-accent: "Instrument Serif", "New York", "Iowan Old Style", Georgia, serif;

  --r-lg: 28px;
  --r-md: 22px;
  --r-sm: 14px;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --nav-h: 64px;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #faf8f6;
    --bg-2: #f1ece7;
    --surface: rgba(30, 20, 12, 0.035);
    --surface-strong: rgba(30, 20, 12, 0.06);
    --glass: rgba(255, 252, 249, 0.7);
    --line: rgba(40, 24, 12, 0.10);
    --text: #17120e;
    --text-2: #574d45;
    --text-3: #7a6f66;
    --accent: #d9530f;
    --accent-ink: #ffffff;
    --accent-soft: rgba(217, 83, 15, 0.10);
    --shadow: 0 24px 50px -28px rgba(60, 30, 10, 0.35), 0 1px 4px rgba(60, 30, 10, 0.08);
    --ph-a: #ece5de;
    --ph-b: #e2d7cc;
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #faf8f6;
  --bg-2: #f1ece7;
  --surface: rgba(30, 20, 12, 0.035);
  --surface-strong: rgba(30, 20, 12, 0.06);
  --glass: rgba(255, 252, 249, 0.7);
  --line: rgba(40, 24, 12, 0.10);
  --text: #17120e;
  --text-2: #574d45;
  --text-3: #7a6f66;
  --accent: #d9530f;
  --accent-ink: #ffffff;
  --accent-soft: rgba(217, 83, 15, 0.10);
  --shadow: 0 24px 50px -28px rgba(60, 30, 10, 0.35), 0 1px 4px rgba(60, 30, 10, 0.08);
  --ph-a: #ece5de;
  --ph-b: #e2d7cc;
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 24px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
em { font-family: var(--font-accent); font-style: italic; font-weight: 400; letter-spacing: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 10px; }
::selection { background: var(--accent); color: var(--accent-ink); }

.skip { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 10px 16px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); }
.skip:focus { top: 16px; }

.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

.glass {
  background: var(--glass);
  -webkit-backdrop-filter: saturate(160%) blur(20px);
  backdrop-filter: saturate(160%) blur(20px);
  border: 1px solid var(--line);
}

/* ---------- Type ---------- */
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-3);
}
.hero-title {
  font-size: clamp(44px, 8.2vw, 104px);
  font-weight: 700; line-height: .98; letter-spacing: -0.045em;
}
.section-title {
  font-size: clamp(34px, 5.4vw, 64px);
  font-weight: 700; line-height: 1.02; letter-spacing: -0.04em;
}
.hero-title em, .section-title em { color: var(--accent); font-size: 1.06em; }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--text-2); max-width: 34em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 999px;
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap;
  transition: transform .45s var(--spring), background-color .25s, color .25s, box-shadow .25s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active, .card-press:active, .icon-btn:active { transform: scale(.95); transition-duration: .12s; transition-timing-function: var(--ease); }
.btn-accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 24px -10px var(--accent); }
.btn-accent:hover { filter: brightness(1.06); }
.btn-glass { background: var(--surface-strong); border: 1px solid var(--line); }
.btn-glass:hover { background: var(--accent-soft); }
.btn-big { min-height: 60px; padding: 0 28px; font-size: 17px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

.text-link {
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 600; color: var(--accent);
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 10px) / 0 1px no-repeat;
  transition: background-size .35s var(--ease);
}
.text-link:hover { background-size: 100% 1px; }

.icon-btn {
  width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center;
  background: var(--surface-strong); border: 1px solid var(--line);
  transition: transform .45s var(--spring), background-color .25s;
}
.icon-btn:hover { background: var(--accent-soft); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--glass);
  -webkit-backdrop-filter: saturate(170%) blur(22px);
  backdrop-filter: saturate(170%) blur(22px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1200px; margin-inline: auto; height: var(--nav-h);
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.wordmark { font-size: 22px; font-weight: 800; letter-spacing: -0.05em; min-height: 44px; display: inline-flex; align-items: center; }
.wordmark-dot { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a:not(.btn) {
  position: relative; padding: 10px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--text-2);
  transition: color .2s, background-color .2s;
}
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-links a.is-active { color: var(--text); background: var(--surface-strong); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-cta { min-height: 40px; padding: 0 16px; font-size: 14px; }
.nav-cta-mobile, .burger { display: none; }

.theme-toggle .i-sun { display: none; }
.theme-toggle .i-moon { display: block; }
:root[data-theme="light"] .theme-toggle .i-sun { display: block; }
:root[data-theme="light"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme="dark"]) .theme-toggle .i-moon { display: none; }
}

.burger span {
  display: block; width: 18px; height: 1.8px; background: currentColor; border-radius: 2px;
  transition: transform .4s var(--spring);
}
.burger { gap: 5px; display: none; flex-direction: column; align-items: center; justify-content: center; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.4px) rotate(-45deg); }

@media (max-width: 1060px) {
  .burger { display: flex; }
  .nav-cta { display: none; }
  .nav-links {
    position: fixed; left: 0; right: 0; top: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px max(20px, env(safe-area-inset-right, 0px)) 24px max(20px, env(safe-area-inset-left, 0px));
    background: var(--glass);
    -webkit-backdrop-filter: saturate(170%) blur(22px);
    backdrop-filter: saturate(170%) blur(22px);
    border-bottom: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .3s var(--ease), transform .45s var(--spring), visibility 0s .3s;
  }
  .nav-links.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .3s var(--ease), transform .45s var(--spring); }
  .nav-links a:not(.btn) { font-size: 20px; font-weight: 600; padding: 12px 14px; min-height: 48px; }
  .nav-cta-mobile { display: inline-flex; margin-top: 12px; min-height: 52px; }
}

/* ---------- Media placeholders ---------- */
.media { position: relative; overflow: hidden; background: var(--ph-a); }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), opacity .4s; }
.media.is-missing {
  background:
    radial-gradient(120% 80% at 80% 110%, var(--accent-soft), transparent 60%),
    linear-gradient(145deg, var(--ph-a), var(--ph-b));
}
.media.is-missing img { opacity: 0; }
.media.is-missing::after {
  content: attr(data-ph);
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-size: 12px; letter-spacing: .08em; color: var(--text-3);
  padding: 8px 14px; border: 1px dashed var(--line); border-radius: 999px; white-space: nowrap;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(48px, 8vw, 104px) clamp(72px, 9vw, 120px);
}
.hero-copy { display: grid; gap: 26px; min-width: 0; }
.follow { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding-top: 6px; }
.follow-label { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); }
.socials { display: flex; gap: 6px; }
.socials a {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 999px;
  color: var(--text-2); border: 1px solid var(--line);
  transition: color .2s, background-color .2s, transform .45s var(--spring);
}
.socials a:hover { color: var(--accent); background: var(--accent-soft); }
.socials svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.socials svg .f { fill: currentColor; stroke: none; }

.portrait-card {
  position: relative; margin: 0; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow); aspect-ratio: 4 / 5; max-width: 100%;
  justify-self: end; width: min(100%, 460px);
}
.portrait-card .media { position: absolute; inset: 0; }
.portrait-card img { object-position: 50% 20%; }
.portrait-card:hover img { transform: scale(1.03); }
.portrait-tag {
  position: absolute; left: 14px; right: 14px; bottom: 14px;
  display: grid; gap: 2px; padding: 14px 18px; border-radius: 18px;
}
.portrait-tag strong { font-size: 17px; letter-spacing: -0.02em; }
.portrait-tag span { font-size: 13px; color: var(--text-2); }

.scroll-hint {
  position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%);
  font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--text-3);
  min-height: 44px; display: inline-flex; align-items: center;
  animation: nudge 2.4s var(--ease) infinite;
}
@keyframes nudge { 0%, 100% { translate: 0 0; } 50% { translate: 0 6px; } }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-bottom: 96px; }
  .portrait-card { justify-self: stretch; width: 100%; aspect-ratio: 4 / 4.4; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 128px); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head > div:first-child { display: grid; gap: 14px; }
.disclosure { margin-top: 20px; font-size: 13px; color: var(--text-3); }

/* ---------- Featured ---------- */
.featured-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.feature-card {
  position: relative; display: block; border-radius: var(--r-lg); overflow: hidden;
  aspect-ratio: 4 / 3.3; max-width: 100%; box-shadow: var(--shadow);
  transition: transform .5s var(--spring);
}
.feature-card .media { position: absolute; inset: 0; }
.feature-card:hover img { transform: scale(1.06); }
.feature-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 45%, rgba(8, 6, 5, .78));
}
.badge {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  padding: 7px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.badge-accent { background: var(--accent); color: var(--accent-ink); }
.feature-body { position: absolute; left: 24px; right: 24px; bottom: 22px; z-index: 2; display: grid; gap: 6px; color: #f6f2ee; }
.feature-kicker { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; opacity: .8; }
.feature-body h3 { font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -0.03em; line-height: 1.1; }
@media (max-width: 760px) {
  .featured-grid { grid-template-columns: 1fr; }
}

.clients { margin-top: 40px; display: grid; gap: 14px; }
.clients-label { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); }
.marquee {
  display: flex; overflow: hidden; gap: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; flex-shrink: 0; gap: 44px; padding-right: 44px; animation: marquee 38s linear infinite; }
.marquee-track li { font-size: clamp(18px, 2vw, 24px); font-weight: 650; letter-spacing: -0.02em; color: var(--text-2); white-space: nowrap; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- Link grid ---------- */
.link-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.link-card a {
  height: 100%; display: grid; align-content: start; gap: 8px;
  padding: 22px; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .5s var(--spring), background-color .25s, border-color .25s, box-shadow .3s;
}
.link-card a:hover { background: var(--surface-strong); border-color: var(--accent-soft); box-shadow: var(--shadow); }
.link-card.is-featured { grid-column: span 2; }
.link-card.is-featured a { background: linear-gradient(140deg, var(--accent-soft), var(--surface) 60%); }
.lc-icon {
  position: relative; width: 52px; height: 52px; border-radius: 14px; overflow: hidden;
  display: grid; place-items: center; margin-bottom: 8px;
  background: var(--surface-strong); border: 1px solid var(--line);
}
.lc-icon::before { content: attr(data-letter); font-weight: 800; font-size: 20px; color: var(--accent); letter-spacing: -0.04em; }
.lc-icon img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lc-cat { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.lc-name { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.is-featured .lc-name { font-size: 26px; }
.lc-desc { font-size: 15px; color: var(--text-2); line-height: 1.45; }
.lc-note {
  justify-self: start; margin-top: 6px; padding: 5px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; color: var(--accent); background: var(--accent-soft);
}
@media (max-width: 1000px) { .link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) {
  .link-grid { grid-template-columns: 1fr; }
  .link-card.is-featured { grid-column: auto; }
}

/* ---------- Setup ---------- */
.setup { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; align-items: start; }
.setup-photo { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16 / 9; max-width: 100%; }
.setup-photo .media { position: absolute; inset: 0; }
.hotspots { position: absolute; inset: 0; }
.hotspot {
  position: absolute; transform: translate(-50%, -50%);
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 999px;
}
.hotspot span {
  width: 30px; height: 30px; display: grid; place-items: center; border-radius: 999px;
  font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums;
  background: rgba(255, 250, 245, .92); color: #17120e;
  box-shadow: 0 0 0 0 rgba(255, 122, 48, .55), 0 6px 16px rgba(0, 0, 0, .3);
  transition: transform .45s var(--spring), background-color .2s, color .2s;
  animation: ping 2.6s var(--ease) infinite;
}
.hotspot.is-on span, .hotspot:hover span { transform: scale(1.25); background: var(--accent); color: var(--accent-ink); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255, 122, 48, .5), 0 6px 16px rgba(0,0,0,.3); } 70%, 100% { box-shadow: 0 0 0 12px rgba(255, 122, 48, 0), 0 6px 16px rgba(0,0,0,.3); } }

.setup-list { display: grid; gap: 10px; counter-reset: item; }
.setup-item {
  display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 14px; align-items: center;
  padding: 14px 16px; border-radius: var(--r-sm);
  background: var(--surface); border: 1px solid var(--line);
  transition: background-color .25s, border-color .25s, transform .45s var(--spring);
}
.setup-item.is-on { background: var(--accent-soft); border-color: var(--accent); transform: translateX(4px); }
.si-num {
  width: 32px; height: 32px; display: grid; place-items: center; border-radius: 999px;
  font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums;
  background: var(--surface-strong); color: var(--text);
}
.setup-item.is-on .si-num { background: var(--accent); color: var(--accent-ink); }
.si-text { display: grid; gap: 2px; min-width: 0; }
.si-text strong { font-size: 16px; letter-spacing: -0.01em; }
.si-text span { font-size: 14px; color: var(--text-2); }
.si-link { min-height: 40px; padding: 0 14px; font-size: 13px; }
@media (max-width: 900px) { .setup { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.about-side { display: grid; gap: 20px; position: sticky; top: calc(var(--nav-h) + 32px); }
.about-portrait { border-radius: var(--r-lg); aspect-ratio: 1 / 1; max-width: 100%; box-shadow: var(--shadow); }
.about-portrait img { object-position: 50% 18%; }
.stats { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stats div { padding: 16px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 2px; }
.stats dt { font-size: 12px; color: var(--text-3); order: 2; }
.stats dd { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; order: 1; }
.about-copy { display: grid; gap: 20px; min-width: 0; }
.about-copy > p:not(.eyebrow) { font-size: 18px; color: var(--text-2); max-width: 36em; }
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.quote { margin: 0; padding: 22px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 14px; align-content: space-between; }
.quote blockquote { margin: 0; font-family: var(--font-accent); font-style: italic; font-size: 21px; line-height: 1.3; }
.quote figcaption { font-size: 13px; color: var(--text-3); }
.quote figcaption strong { color: var(--text); font-weight: 600; }
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
  .about-side { position: static; grid-template-columns: 1fr 1fr; align-items: start; }
  .about-portrait { aspect-ratio: 4 / 5; }
  .stats { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .quotes { grid-template-columns: 1fr; }
  .about-side { grid-template-columns: 1fr; }
  .about-portrait { aspect-ratio: 1 / 1; }
  .stats { grid-template-columns: 1fr 1fr; }
}

/* ---------- Contact ---------- */
.contact {
  position: relative; overflow: hidden;
  padding: clamp(36px, 6vw, 80px); border-radius: var(--r-lg);
  display: grid; gap: 22px; justify-items: start;
  background:
    radial-gradient(70% 90% at 100% 0%, var(--accent-soft), transparent 70%),
    var(--glass);
}
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; max-width: 100%; }
.contact-actions .btn-accent { white-space: normal; overflow-wrap: anywhere; text-align: center; }
.contact-meta { font-size: 14px; color: var(--text-3); }

/* ---------- Footer ---------- */
.footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px;
  padding-block: 40px calc(40px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
}
.footer-copy { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.footer-links { display: flex; flex-wrap: wrap; gap: 2px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; font-size: 14px; color: var(--text-2); }
.footer-links a:hover { color: var(--accent); }


/* ---------- Feature card extras ---------- */
.feature-body p { font-size: 15px; line-height: 1.45; opacity: .82; max-width: 34em; }
.play {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  width: 48px; height: 48px; border-radius: 999px; display: grid; place-items: center;
  background: rgba(255, 250, 245, .9); color: #17120e;
  transition: transform .5s var(--spring);
}
.play svg { width: 20px; height: 20px; fill: currentColor; margin-left: 2px; }
.feature-card:hover .play, .work-card a:hover .play { transform: scale(1.12); }
.feature-card { aspect-ratio: 4 / 3.4; }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px; padding: 0 16px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--text-2);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .45s var(--spring), background-color .2s, color .2s;
}
.chip:hover { color: var(--text); }
.chip:active { transform: scale(.94); }
.chip.is-on { background: var(--text); color: var(--bg); border-color: transparent; }

/* ---------- Work grid ---------- */
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.work-card[hidden] { display: none !important; }
.work-card a { display: grid; gap: 12px; transition: transform .5s var(--spring); }
.work-card .thumb { position: relative; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 16 / 9; max-width: 100%; box-shadow: var(--shadow); }
.work-card .thumb .media { position: absolute; inset: 0; }
.work-card a:hover img { transform: scale(1.06); }
.work-card .play { width: 40px; height: 40px; top: auto; bottom: 12px; right: 12px; }
.work-card .play svg { width: 16px; height: 16px; }
.w-meta { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.w-meta span:last-child { font-variant-numeric: tabular-nums; }
.w-title { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.w-desc { font-size: 15px; color: var(--text-2); line-height: 1.45; }
@media (max-width: 980px) { .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .work-grid { grid-template-columns: 1fr; } }

/* ---------- Most watched ---------- */
.watched { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; align-items: start; }
.views { display: grid; gap: 10px; counter-reset: v; }
.views a {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; grid-template-areas: "n name num" "n tag num";
  column-gap: 14px; align-items: center;
  padding: 16px 20px; border-radius: var(--r-sm);
  background: var(--surface); border: 1px solid var(--line);
  counter-increment: v;
  transition: transform .45s var(--spring), border-color .2s;
}
.views a::before {
  content: counter(v); grid-area: n; font-size: 13px; font-weight: 700; color: var(--text-3); font-variant-numeric: tabular-nums;
}
.views a::after {
  content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); z-index: -1;
  background: linear-gradient(90deg, var(--accent-soft), transparent);
  border-right: 2px solid var(--accent);
  transform-origin: left; transition: transform 1.2s var(--ease);
}
.js .views:not(.is-in) a::after { transform: scaleX(0); }
.views a:hover { border-color: var(--accent); }
.views a:active { transform: scale(.98); }
.v-name { grid-area: name; font-weight: 650; letter-spacing: -0.01em; min-width: 0; }
.v-tag { grid-area: tag; font-size: 13px; color: var(--text-3); }
.v-num { grid-area: num; font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.v-num::after { content: " views"; font-size: 12px; font-weight: 600; letter-spacing: 0; color: var(--text-3); }
.watched-side { display: grid; gap: 10px; }
.spot-card {
  display: grid; gap: 6px; padding: 20px; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .5s var(--spring), border-color .2s, background-color .2s;
}
.spot-card:hover { border-color: var(--accent-soft); background: var(--surface-strong); }
.spot-card strong { font-size: 18px; letter-spacing: -0.02em; }
.spot-stat { font-size: 14px; color: var(--text-2); }
.spot-stat b { color: var(--accent); font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .watched { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .views a { padding: 14px 14px; column-gap: 10px; } .v-num::after { content: ""; } }

/* ---------- Life strip ---------- */
.life { margin-top: clamp(48px, 7vw, 88px); display: grid; gap: 20px; }
.life-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; }
.life-head h3 { font-size: clamp(24px, 3vw, 34px); letter-spacing: -0.03em; }
.life-head p { color: var(--text-2); }
.life-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: clamp(140px, 17vw, 230px); gap: 12px; }
.life-strip li { border-radius: var(--r-sm); overflow: hidden; }
.life-strip li:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.life-strip li:nth-child(2) { grid-column: span 4; }
.life-strip li:nth-child(3), .life-strip li:nth-child(4) { grid-column: span 2; }
.life-strip li:nth-child(5), .life-strip li:nth-child(6) { grid-column: span 3; }
.life-strip .media { width: 100%; height: 100%; }
.life-strip li:hover img { transform: scale(1.05); }
@media (max-width: 700px) {
  .life-strip { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .life-strip li:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .life-strip li:nth-child(1) { grid-row: span 2; }
  .life-strip li:nth-child(6) { grid-column: span 2; }
}
}

/* ---------- Timeline ---------- */
.timeline { display: grid; gap: 0; border-top: 1px solid var(--line); }
.t-item { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; padding-block: 28px; border-bottom: 1px solid var(--line); }
.t-years { font-size: 14px; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; padding-top: 4px; }
.t-body { display: grid; gap: 10px; }
.t-body h3 { font-size: clamp(20px, 2.2vw, 26px); letter-spacing: -0.025em; line-height: 1.2; }
.t-body p { color: var(--text-2); max-width: 40em; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--text-2); background: var(--surface-strong); }
.tags-lg li { font-size: 14px; padding: 8px 14px; }
.tools { margin-top: 32px; display: grid; gap: 14px; }
@media (max-width: 640px) { .t-item { grid-template-columns: 1fr; gap: 8px; } }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom, 0px)); z-index: 80;
  transform: translate(-50%, 20px) scale(.96); opacity: 0; pointer-events: none;
  padding: 12px 20px; border-radius: 999px; font-size: 15px; font-weight: 600;
  background: var(--text); color: var(--bg); box-shadow: var(--shadow);
  transition: opacity .25s var(--ease), transform .5s var(--spring);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0) scale(1); }

/* ---------- Scroll reveal (only when JS runs) ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Custom cursor ---------- */
.cursor-dot, .cursor-ring { display: none; }
.has-cursor, .has-cursor a, .has-cursor button { cursor: none; }
.has-cursor .cursor-dot, .has-cursor .cursor-ring {
  display: block; position: fixed; left: 0; top: 0; z-index: 200; pointer-events: none; border-radius: 999px;
}
.cursor-dot, .cursor-ring { opacity: 0; }
.has-cursor.cursor-live .cursor-dot { opacity: 1; }
.has-cursor.cursor-live .cursor-ring { opacity: .45; }
.has-cursor.cursor-live .cursor-ring.is-hover { opacity: 1; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--accent); }
.cursor-ring {
  width: 36px; height: 36px; margin: -18px 0 0 -18px;
  border: 1.5px solid var(--text);
  transition: width .35s var(--spring), height .35s var(--spring), margin .35s var(--spring), opacity .25s, background-color .25s, border-color .25s;
}
.cursor-ring.is-hover {
  width: 64px; height: 64px; margin: -32px 0 0 -32px;
  border-color: transparent; background: var(--accent-soft);
}
.cursor-ring.is-down { width: 26px; height: 26px; margin: -13px 0 0 -13px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee { overflow-x: auto; }
}

@media (max-width: 560px) {
  .feature-card { aspect-ratio: 4 / 4.6; }
  .contact-actions .btn-big { font-size: 15px; padding: 0 20px; white-space: nowrap; overflow-wrap: normal; }
  .contact-actions { flex-direction: column; align-items: stretch; width: 100%; }
}

/* =========================================================
   Cinematic layer
   ========================================================= */

/* Hero stage: always dark, like a screening room */
.hero-stage {
  --text: #f6f2ee; --text-2: #c9c0b8; --text-3: #9a918a;
  --surface-strong: rgba(255, 246, 238, 0.10); --line: rgba(255, 240, 228, 0.16);
  --glass: rgba(18, 15, 13, 0.55); --accent-soft: rgba(255, 122, 48, 0.18);
  position: relative; isolation: isolate; overflow: hidden;
  color: var(--text); background: #0b0908;
  color-scheme: dark;
}
.hero-stage .hero { position: relative; z-index: 2; }
.reel { position: absolute; inset: 0; z-index: 0; }
.reel-slide {
  position: absolute; inset: -4%; background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.04);
  transition: opacity 1.6s var(--ease);
  filter: saturate(.9) contrast(1.05);
}
.reel-slide.is-on { opacity: .85; animation: kenburns 9s linear forwards; }
@keyframes kenburns { from { transform: scale(1.04) translate3d(0,0,0); } to { transform: scale(1.14) translate3d(-1.5%, -1%, 0); } }
.reel-shade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(11,9,8,.92) 0%, rgba(11,9,8,.72) 40%, rgba(11,9,8,.25) 72%, rgba(11,9,8,.45) 100%),
    linear-gradient(180deg, rgba(11,9,8,.2) 0%, transparent 30%, transparent 70%, #0b0908 100%);
}
/* letterbox bars */
.hero-stage::before, .hero-stage::after {
  content: ""; position: absolute; left: 0; right: 0; height: 22px; z-index: 3; background: #000; pointer-events: none;
}
.hero-stage::before { top: 0; }
.hero-stage::after { bottom: 0; }

/* camera HUD */
.hud {
  position: absolute; z-index: 3; top: 40px; right: max(20px, env(safe-area-inset-right, 0px), calc((100% - 1200px) / 2 + 20px));
  display: flex; align-items: center; gap: 14px;
  font: 600 11px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .12em; color: rgba(246,242,238,.72);
  font-variant-numeric: tabular-nums;
}
.hud-rec { display: inline-flex; align-items: center; gap: 6px; color: #ff4d3a; }
.hud-rec i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: blink 1.2s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
@media (max-width: 700px) { .hud-meta { display: none; } .hud { top: 34px; } .hero-stage .hero { padding-top: 72px; } .reel-shade { background: linear-gradient(180deg, rgba(11,9,8,.7), rgba(11,9,8,.85) 60%, #0b0908); } }

/* headline word reveal */
.hero-title.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.hero-title.split .w > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s cubic-bezier(.2,.8,.2,1); }
.hero-title.split .w:nth-child(2) > span { transition-delay: .08s; }
.hero-title.split .w:nth-child(3) > span { transition-delay: .16s; }
.hero-title.split .w:nth-child(4) > span { transition-delay: .24s; }
.hero-title.split .w:nth-child(5) > span { transition-delay: .32s; }
.hero-title.split.is-in .w > span, html:not(.js) .hero-title.split .w > span { transform: none; }
.hero-title em { background: linear-gradient(100deg, #ff7a30, #ffb36b 45%, #ff5a1f); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }

/* film grain */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none;
  background-image: url(assets/grain.png); opacity: .05; mix-blend-mode: overlay;
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0,0); } 20% { transform: translate(-3%,2%); } 40% { transform: translate(2%,-3%); }
  60% { transform: translate(-2%,-1%); } 80% { transform: translate(3%,3%); } 100% { transform: translate(0,0); }
}

/* scroll progress */
.progress { position: fixed; left: 0; right: 0; top: env(safe-area-inset-top, 0px); height: 2px; z-index: 70; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--accent), #ffb36b); }

/* spotlight + tilt on cards */
.work-card .thumb, .feature-card { --mx: 50%; --my: 50%; }
.work-card .thumb::after, .feature-card .media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 200, 150, .22), transparent 45%);
}
.work-card a:hover .thumb::after, .feature-card:hover .media::after { opacity: 1; }
.tilt { transform-style: preserve-3d; will-change: transform; }

/* stronger brand marquee */
.marquee-track li { font-size: clamp(22px, 3vw, 40px); font-weight: 800; letter-spacing: -0.03em; color: transparent; -webkit-text-stroke: 1px var(--text-3); transition: color .3s; }
.marquee-track li:hover { color: var(--text); -webkit-text-stroke-color: transparent; }

/* section headline: italic word picks up the ember gradient too */
.section-title em { background: linear-gradient(100deg, var(--accent), #ffb36b 60%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }

@media (prefers-reduced-motion: reduce) {
  .reel-slide.is-on { animation: none; }
  .grain { animation: none; }
  .hero-title.split .w > span { transform: none; }
}

/* =========================================================
   Ambient background: ember orbs, rising sparks, film sprockets,
   giant section numbers. All scroll-linked from script.js.
   ========================================================= */
main, .footer { position: relative; z-index: 1; }
.section { position: relative; }
.bg-fx { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.orb {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55;
  will-change: transform;
}
.orb-a { width: 46vw; height: 46vw; left: -12vw; top: 10vh; background: radial-gradient(circle, rgba(255, 110, 40, .45), transparent 65%); }
.orb-b { width: 38vw; height: 38vw; right: -10vw; top: 45vh; background: radial-gradient(circle, rgba(255, 170, 80, .30), transparent 65%); }
.orb-c { width: 30vw; height: 30vw; left: 30vw; top: 80vh; background: radial-gradient(circle, rgba(200, 40, 20, .35), transparent 65%); }
:root[data-theme="light"] .orb { opacity: .35; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .orb { opacity: .35; } }
#embers { position: absolute; inset: 0; width: 100%; height: 100%; }

.sprockets {
  position: absolute; top: 0; bottom: 0; width: 24px; opacity: .9;
  border-left: 1px solid var(--line); border-right: 1px solid var(--line);
  background: repeating-linear-gradient(180deg, var(--line) 0 12px, transparent 12px 28px) center var(--sp, 0px) / 10px 28px repeat-y;
}
.sprockets-l { left: 14px; }
.sprockets-r { right: 14px; }
@media (max-width: 1320px) { .sprockets { display: none; } }

.bg-num {
  position: absolute; z-index: -1; right: max(8px, env(safe-area-inset-right, 0px)); top: 20px;
  font-size: clamp(140px, 24vw, 340px); font-weight: 800; line-height: .8; letter-spacing: -0.06em;
  color: transparent; -webkit-text-stroke: 1px var(--line);
  font-variant-numeric: tabular-nums; pointer-events: none; user-select: none;
  will-change: transform;
}
.contact .bg-num, #contact .bg-num { top: -10px; }

/* hairline light sweep across section heads as they enter */
.section-head { position: relative; }
.section-head::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -18px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: scaleX(0); opacity: .7; transition: transform 1.4s var(--ease);
}
.section-head.is-lit::after { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  #embers { display: none; }
}
