/* =============================================================
   Juani Muzzio — Marca personal
   Paleta tomada de las fotos: grafito cálido, hueso, ámbar de la
   madera y del título de "Mi otro yo", pizarra azul del cielo.
   ============================================================= */

/* 1. Tokens ---------------------------------------------------- */
:root {
  color-scheme: dark;
  --bg:      #0d0c0b;
  --bg-2:    #141311;
  --bg-3:    #1c1a17;
  --ink:     #ece5d8;
  --ink-2:   #b9b1a3;
  --ink-3:   #7d766b;
  --accent:  #e2a33c;
  --accent-2:#b97a1f;
  --slate:   #8a97ad;
  --line:    rgba(236,229,216,.12);
  --line-2:  rgba(236,229,216,.24);

  --f-display: "Instrument Serif", "Times New Roman", serif;
  --f-body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono:    "JetBrains Mono", ui-monospace, "Consolas", monospace;

  --gutter: clamp(1rem, 4vw, 3.5rem);
  --max: 1320px;
  --ease: cubic-bezier(.22,.8,.2,1);
  --nav-h: 72px;
}

/* 2. Reset & base ---------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--f-body); font-weight: 400; font-size: 1rem; line-height: 1.6;
  overflow-x: clip; -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em { font-family: var(--f-display); font-style: italic; font-weight: 400; color: var(--accent); }
::selection { background: var(--accent); color: var(--bg); }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 1rem; z-index: 999; background: var(--accent); color: var(--bg); padding: .6rem 1rem; border-radius: 8px; }
.skip:focus { left: 1rem; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* 3. Typography helpers ---------------------------------------- */
.kicker {
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent);
}
.label {
  display: flex; align-items: center; gap: .9rem;
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 2.2rem;
}
.label span { color: var(--accent); }
.label::after { content: ""; flex: 0 0 60px; height: 1px; background: var(--line-2); }
.h2 {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 5.2rem); line-height: 1; letter-spacing: -.01em;
  text-wrap: balance; max-width: 16ch; margin-bottom: clamp(2rem, 5vw, 4rem);
}

/* 4. Global layers --------------------------------------------- */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0,0); } 20% { transform: translate(-3%,2%); }
  40% { transform: translate(2%,-3%); } 60% { transform: translate(-2%,-1%); }
  80% { transform: translate(3%,3%); } 100% { transform: translate(0,0); }
}
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }

/* Cursor — hidden until first mousemove (gotcha A.3) */
.cursor { position: fixed; inset: 0; z-index: 130; pointer-events: none; opacity: 0; transition: opacity .3s var(--ease); }
.cursor.is-ready { opacity: 1; }
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; border-radius: 50%; will-change: transform; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--accent); }
.cursor-ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1px solid rgba(236,229,216,.55);
  transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), background .3s, border-color .3s;
}
.cursor.is-hover .cursor-ring { width: 70px; height: 70px; margin: -35px 0 0 -35px; background: rgba(226,163,60,.12); border-color: var(--accent); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* 5. Splash (double safety net, gotcha A.9) -------------------- */
.splash {
  position: fixed; inset: 0; z-index: 200; background: var(--bg);
  display: grid; place-items: center; align-content: center; gap: 1.4rem;
  transition: opacity .7s var(--ease), clip-path .9s var(--ease);
  clip-path: inset(0 0 0 0);
  animation: splashSafety .01s 4.5s forwards;
}
.splash.is-out { opacity: 0; clip-path: inset(0 0 100% 0); pointer-events: none; }
@keyframes splashSafety { to { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); } }
.splash-ring {
  width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-2); position: relative;
}
.splash-ring::before {
  content: ""; position: absolute; inset: -1px; border-radius: 50%;
  background: conic-gradient(var(--accent) 0 90deg, transparent 90deg);
  -webkit-mask: radial-gradient(circle, transparent 58px, #000 59px);
          mask: radial-gradient(circle, transparent 58px, #000 59px);
  animation: sweep 1s linear infinite;
}
@keyframes sweep { from { transform: rotate(0); } to { transform: rotate(360deg); } }
.splash-count { font-family: var(--f-display); font-size: 4rem; line-height: 1; }
.splash-label { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .25em; color: var(--ink-3); text-transform: uppercase; }

/* 6. Nav ------------------------------------------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-inline: var(--gutter);
  transition: background .4s var(--ease), border-color .4s, transform .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-solid { background: rgba(13,12,11,.9); border-color: var(--line); }
@supports (backdrop-filter: blur(10px)) {
  .nav.is-solid { background: rgba(13,12,11,.62); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); }
}
.nav.is-hidden { transform: translateY(-100%); }
.nav-logo { font-family: var(--f-body); font-weight: 600; letter-spacing: .02em; font-size: 1rem; }
.nav-logo em { font-size: 1.25em; }
.nav-links { display: flex; gap: 2rem; font-size: .85rem; color: var(--ink-2); }
.nav-links a { position: relative; padding-block: .3rem; transition: color .3s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta {
  display: inline-flex; align-items: center; gap: .55rem; font-size: .82rem; font-weight: 500;
  padding: .6rem 1.1rem; border: 1px solid var(--line-2); border-radius: 100px;
  transition: background .3s, color .3s, border-color .3s;
}
.nav-cta:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.rec-dot { width: 7px; height: 7px; border-radius: 50%; background: #e0452c; animation: blink 1.4s steps(1) infinite; }
@keyframes blink { 50% { opacity: .15; } }
@media (max-width: 860px) { .nav-links { display: none; } }

/* 7. Buttons --------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: 1rem 1.6rem; border-radius: 100px; font-size: .9rem; font-weight: 500;
  transition: background .35s var(--ease), color .35s, border-color .35s;
  will-change: transform;
}
.btn-primary { background: var(--accent); color: #140f06; }
.btn-primary:hover { background: var(--ink); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); background: rgba(236,229,216,.06); }
.link-arrow { display: inline-flex; gap: .5rem; align-items: center; font-weight: 500; border-bottom: 1px solid var(--accent); padding-bottom: .2rem; }
.link-arrow span { transition: transform .35s var(--ease); }
.link-arrow:hover span { transform: translate(3px,-3px); }

/* 8. Hero ------------------------------------------------------ */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end; overflow: hidden; isolation: isolate;
}
.hero-media { position: absolute; inset: 0 0 0 30%; z-index: -3; overflow: hidden; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, rgba(13,12,11,.6) 18%, transparent 45%); }
@media (max-width: 900px) {
  .hero-media { inset: 0 0 auto 0; height: 62svh; height: 62vh; }
  .hero-media img { object-position: 56% 40%; }
  .hero-inner { padding-top: 50vh; }
  .hero-media::after { background: linear-gradient(180deg, transparent 55%, var(--bg) 100%); }
}
.hero-media img {
  width: 100%; height: 115%; object-fit: cover; object-position: 50% 30%;
  filter: saturate(.9) contrast(1.08) brightness(.82);
  transform: scale(1.08); animation: heroZoom 2.8s var(--ease) .3s forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero-shade {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(180deg, rgba(13,12,11,.55) 0%, rgba(13,12,11,0) 28%, rgba(13,12,11,.15) 50%, rgba(13,12,11,.92) 86%, var(--bg) 100%),
    radial-gradient(ellipse at 50% 30%, transparent 30%, rgba(13,12,11,.55) 100%);
}
.hero-light, .contact-light {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(circle 420px at var(--mx, 50%) var(--my, 40%), rgba(226,163,60,.22), transparent 70%);
  mix-blend-mode: screen; transition: opacity .6s;
}

/* Viewfinder HUD */
.hud { position: absolute; inset: calc(var(--nav-h) + 1rem) var(--gutter) 1.5rem; pointer-events: none; z-index: 0; }
.hud-corner { position: absolute; width: 34px; height: 34px; border-color: rgba(236,229,216,.6); border-style: solid; border-width: 0; }
.hud-corner.tl { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.hud-corner.tr { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.hud-corner.bl { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.hud-corner.br { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }
.hud-top {
  position: absolute; top: 14px; left: 50px; right: 50px;
  display: flex; justify-content: space-between; gap: 1rem;
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; color: rgba(236,229,216,.8);
}
.hud-rec { display: inline-flex; align-items: center; gap: .5rem; }
.hud-rec i { width: 8px; height: 8px; border-radius: 50%; background: #e0452c; animation: blink 1.2s steps(1) infinite; }
.hud-center { position: absolute; left: 50%; top: 42%; width: 22px; height: 22px; transform: translate(-50%,-50%); }
.hud-center::before, .hud-center::after { content: ""; position: absolute; background: rgba(236,229,216,.5); }
.hud-center::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.hud-center::after { top: 50%; left: 0; right: 0; height: 1px; }
@media (max-width: 640px) { .hud-meta { display: none; } .hud-top { left: 42px; right: 42px; } }

.hero-inner {
  width: 100%; max-width: var(--max); margin-inline: auto;
  padding: 0 calc(var(--gutter) + 1.5rem) clamp(3.5rem, 8vh, 6rem);
}
.hero .kicker { margin-bottom: 1.4rem; }
.hero-title {
  font-family: var(--f-display); font-weight: 400; letter-spacing: -.02em;
  font-size: clamp(3.4rem, 11.5vw, 10.5rem); line-height: .88;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span { display: inline-block; transform: translateY(105%); animation: lineUp 1.2s var(--ease) forwards; }
.hero-title .line:nth-child(1) > span { animation-delay: 1.05s; }
.hero-title .line:nth-child(2) > span { animation-delay: 1.17s; }
.hero-title .line:nth-child(3) > span { animation-delay: 1.29s; }
@keyframes lineUp { to { transform: translateY(0); } }
.hero-foot {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap;
  margin-top: clamp(1.6rem, 4vh, 2.8rem);
  opacity: 0; animation: fadeUp 1s var(--ease) 1.6s forwards;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero-sub { max-width: 44ch; color: var(--ink-2); font-size: clamp(.98rem, 1.3vw, 1.1rem); }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; right: calc(var(--gutter) + 1.6rem); bottom: 2.4rem; z-index: 2;
  writing-mode: vertical-rl; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .3em;
  text-transform: uppercase; color: var(--ink-3); display: flex; align-items: center; gap: .8rem;
}
.hero-scroll span { width: 1px; height: 56px; background: linear-gradient(var(--accent), transparent); animation: drip 2s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 860px) { .hero-scroll { display: none; } }

/* 9. Marquee --------------------------------------------------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding-block: 1.3rem; background: var(--bg); }
.marquee-track { display: flex; width: max-content; gap: 2.2rem; align-items: center; animation: marquee 38s linear infinite; }
.marquee-track span { font-family: var(--f-display); font-size: clamp(1.6rem, 3vw, 2.6rem); white-space: nowrap; color: var(--ink-2); }
.marquee-track i { font-style: normal; color: var(--accent); font-size: .9rem; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* 10. Sections ------------------------------------------------- */
section { position: relative; }
.about, .highlights, .services, .work, .social { padding-block: clamp(5rem, 12vw, 10rem); }

/* About */
.about { overflow: clip; }
.about-float {
  position: absolute; right: -4vw; top: 8%; width: clamp(180px, 22vw, 360px);
  opacity: .22; filter: grayscale(1) contrast(1.1); pointer-events: none; z-index: 0;
}
.about .container { position: relative; z-index: 1; }
.manifesto {
  font-family: var(--f-display); font-size: clamp(1.9rem, 4.2vw, 3.9rem);
  line-height: 1.12; letter-spacing: -.01em; max-width: 22ch; text-wrap: pretty;
}
.manifesto .w { opacity: .16; transition: opacity .25s linear; }
.manifesto .w.on { opacity: 1; }
.facts {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: clamp(3rem, 7vw, 5.5rem);
  border-top: 1px solid var(--line);
}
.facts > div { padding: 1.4rem 1.4rem 0 0; border-right: 1px solid var(--line); padding-left: 1.4rem; }
.facts > div:first-child { padding-left: 0; }
.facts > div:last-child { border-right: 0; }
.facts dt { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .5rem; }
.facts dd { font-size: 1.02rem; }
@media (max-width: 860px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .facts > div { border-right: 0; padding: 1.2rem 0; border-bottom: 1px solid var(--line); padding-left: 0 !important; }
}

/* Highlights */
.highlights { background: var(--bg-2); border-block: 1px solid var(--line); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3rem); margin-bottom: clamp(4rem, 9vw, 7rem); }
.stat { border-top: 1px solid var(--line-2); padding-top: 1.4rem; }
.stat-num { display: block; font-family: var(--f-display); font-size: clamp(4rem, 9vw, 8.5rem); line-height: .9; letter-spacing: -.02em; }
.stat-label { display: block; margin-top: .8rem; color: var(--ink-2); font-size: .92rem; max-width: 24ch; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr; } }

.feature { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.feature-body .kicker { margin-bottom: 1rem; display: block; }
.feature-body .h2 { margin-bottom: 1.4rem; }
.feature-body p { color: var(--ink-2); max-width: 46ch; margin-bottom: 1.8rem; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } }

/* YouTube facade */
.yt { position: relative; display: block; width: 100%; aspect-ratio: 16/9; overflow: hidden; border-radius: 6px; background: #000; }
.yt img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), filter .6s; filter: saturate(.85) brightness(.85); }
.yt:hover img { transform: scale(1.05); filter: saturate(1) brightness(1); }
.yt-play {
  position: absolute; left: 50%; top: 50%; width: 78px; height: 78px; transform: translate(-50%,-50%);
  border-radius: 50%; background: rgba(13,12,11,.55); border: 1px solid rgba(236,229,216,.5);
  transition: transform .45s var(--ease), background .35s;
}
@supports (backdrop-filter: blur(6px)) { .yt-play { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); } }
.yt-play::after { content: ""; position: absolute; left: 53%; top: 50%; transform: translate(-50%,-50%); border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent var(--ink); }
.yt:hover .yt-play { transform: translate(-50%,-50%) scale(1.12); background: var(--accent); }
.yt:hover .yt-play::after { border-left-color: #140f06; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-tag { position: absolute; left: 1rem; top: 1rem; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; padding: .4rem .7rem; background: var(--accent); color: #140f06; border-radius: 4px; }
.yt-vert { aspect-ratio: 9/16; }
.yt::before { /* frame corners */
  content: ""; position: absolute; inset: 12px; z-index: 1; pointer-events: none;
  background:
    linear-gradient(var(--ink),var(--ink)) top left/18px 1px, linear-gradient(var(--ink),var(--ink)) top left/1px 18px,
    linear-gradient(var(--ink),var(--ink)) top right/18px 1px, linear-gradient(var(--ink),var(--ink)) top right/1px 18px,
    linear-gradient(var(--ink),var(--ink)) bottom left/18px 1px, linear-gradient(var(--ink),var(--ink)) bottom left/1px 18px,
    linear-gradient(var(--ink),var(--ink)) bottom right/18px 1px, linear-gradient(var(--ink),var(--ink)) bottom right/1px 18px;
  background-repeat: no-repeat; opacity: .55; transition: opacity .4s, inset .5s var(--ease);
}
.yt:hover::before { inset: 18px; opacity: 1; }
.yt.is-playing::before, .yt.is-playing .yt-play, .yt.is-playing .yt-tag { display: none; }

/* Story — filmstrip */
.story { padding-top: clamp(5rem, 12vw, 10rem); padding-bottom: clamp(3rem, 7vw, 6rem); overflow: clip; }
.story-head .h2 { margin-bottom: clamp(2.2rem, 5vw, 3.5rem); }
.story-viewport { position: relative; }
.story-track {
  display: flex; gap: clamp(1rem, 2.5vw, 2rem); padding-inline: var(--gutter);
  padding-block: 34px; position: relative; width: max-content;
}
.story-track::before, .story-track::after { /* sprocket holes */
  content: ""; position: absolute; left: 0; right: 0; height: 14px;
  background: radial-gradient(circle at 50% 50%, transparent 0, transparent 0), repeating-linear-gradient(90deg, transparent 0 14px, rgba(236,229,216,.16) 14px 30px, transparent 30px 44px);
  -webkit-mask: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
          mask: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  border-radius: 2px;
}
.story-track::before { top: 6px; }
.story-track::after { bottom: 6px; }
.frame {
  flex: 0 0 auto; width: min(78vw, 820px); display: grid; grid-template-columns: 1.15fr 1fr; gap: 0;
  background: var(--bg-3); border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
}
.frame-img { position: relative; overflow: hidden; min-height: 420px; }
.frame-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) contrast(1.05); transform: scale(1.1); transition: transform 1.2s var(--ease); }
.frame:hover .frame-img img { transform: scale(1.02); }
.frame-img-type {
  display: flex; flex-direction: column; justify-content: center; padding: 2.4rem;
  background: radial-gradient(circle at 30% 30%, rgba(226,163,60,.2), transparent 60%), var(--bg-2);
}
.frame-img-type .big { font-family: var(--f-display); font-size: clamp(3.4rem, 6vw, 5.6rem); line-height: .95; }
.frame-img-type .small { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.2rem; }
.frame-body { padding: clamp(1.6rem, 3vw, 2.6rem); display: flex; flex-direction: column; justify-content: flex-end; gap: 1rem; }
.frame-num { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.frame h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.8rem, 2.8vw, 2.6rem); line-height: 1.04; }
.frame p { color: var(--ink-2); font-size: .95rem; }

/* No-pin fallback (mobile / JS off): native horizontal scroll */
.story:not(.is-pinned) .story-viewport { overflow-x: auto; overflow-y: visible; scroll-snap-type: x mandatory; scrollbar-width: none; }
.story:not(.is-pinned) .story-viewport::-webkit-scrollbar { display: none; }
.story:not(.is-pinned) .frame { scroll-snap-align: center; }
@media (max-width: 760px) {
  .frame { width: 84vw; grid-template-columns: 1fr; }
  .frame-img { min-height: 0; aspect-ratio: 4/3; }
  .frame-img-type { aspect-ratio: 4/3; padding: 1.6rem; }
}

/* Services — accordion rows */
.rows { list-style: none; border-top: 1px solid var(--line); }
.row { border-bottom: 1px solid var(--line); }
.row-head {
  width: 100%; display: grid; grid-template-columns: 4rem 1fr auto; align-items: center; gap: 1rem;
  padding: clamp(1.4rem, 3vw, 2.2rem) 0; text-align: left; position: relative; overflow: hidden;
}
.row-head::before { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease); z-index: 0; }
.row-head > * { position: relative; z-index: 1; transition: color .35s, transform .5s var(--ease); }
.row-num { font-family: var(--f-mono); font-size: .75rem; color: var(--accent); padding-left: .2rem; }
.row-title { font-family: var(--f-display); font-size: clamp(1.9rem, 4.6vw, 3.8rem); line-height: 1; }
.row-icon { width: 22px; height: 22px; position: relative; margin-right: .4rem; }
.row-icon::before, .row-icon::after { content: ""; position: absolute; left: 50%; top: 50%; background: currentColor; transform: translate(-50%,-50%); transition: transform .45s var(--ease); }
.row-icon::before { width: 100%; height: 1px; }
.row-icon::after { width: 1px; height: 100%; }
.row.is-open .row-icon::after { transform: translate(-50%,-50%) scaleY(0); }
@media (hover: hover) {
  .row-head:hover::before { transform: scaleY(1); }
  .row-head:hover > * { color: var(--bg); }
  .row-head:hover .row-title { transform: translateX(1rem); }
}
.row-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.row-body > p { overflow: hidden; color: var(--ink-2); max-width: 56ch; padding-left: 5rem; font-size: 1.02rem; }
.row.is-open .row-body { grid-template-rows: 1fr; }
.row.is-open .row-body > p { padding-bottom: 2rem; }
@media (max-width: 640px) { .row-head { grid-template-columns: 2.4rem 1fr auto; } .row-body > p { padding-left: 2.4rem; } }

/* Work */
.work { background: var(--bg-2); border-block: 1px solid var(--line); }
.work-main { margin-bottom: clamp(1.2rem, 3vw, 2rem); }
.work-vertical { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.5vw, 2rem); margin-bottom: clamp(3rem, 7vw, 5rem); }
.work-vertical figcaption { margin-top: .9rem; font-size: .88rem; color: var(--ink-3); }
.work-vertical figcaption strong { color: var(--ink); font-weight: 500; margin-right: .4rem; }
@media (max-width: 760px) {
  .work-vertical { grid-template-columns: repeat(3, 72vw); overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .work-vertical figure { scroll-snap-align: center; }
}
.behance { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2.5vw, 2rem); }
.bh-card {
  display: grid; grid-template-columns: 150px 1fr auto; align-items: center; gap: 1.4rem;
  padding: 1rem; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-3);
  transition: border-color .35s, transform .5s var(--ease);
  transform-style: preserve-3d; will-change: transform;
}
.bh-card:hover { border-color: var(--accent); }
.bh-card img { width: 150px; aspect-ratio: 4/3; object-fit: cover; border-radius: 4px; }
.bh-card .kicker { display: block; margin-bottom: .35rem; }
.bh-card h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.5rem, 2.4vw, 2.1rem); line-height: 1.05; }
.bh-arrow { font-size: 1.3rem; padding-right: .6rem; transition: transform .35s var(--ease), color .3s; }
.bh-card:hover .bh-arrow { transform: translate(4px,-4px); color: var(--accent); }
@media (max-width: 860px) { .behance { grid-template-columns: 1fr; } .bh-card { grid-template-columns: 110px 1fr auto; } .bh-card img { width: 110px; } }

/* Gallery */
.gallery { padding-block: clamp(5rem, 12vw, 10rem); }
.gallery-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: clamp(140px, 17vw, 240px);
  gap: clamp(.5rem, 1.2vw, 1rem); padding-inline: var(--gutter); max-width: 1600px; margin-inline: auto;
}
.g { position: relative; overflow: hidden; border-radius: 4px; grid-column: span 2; grid-row: span 1; background: var(--bg-3); }
.g-wide { grid-column: span 2; }
.g-tall { grid-row: span 2; }
.g:nth-child(2) { grid-column: span 4; grid-row: span 1; }
.g:nth-child(4) { grid-column: span 2; }
.g:nth-child(6) { grid-column: span 4; }
.g:nth-child(9) { grid-column: span 6; grid-row: span 2; }
.g img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(.55) contrast(1.05) brightness(.85);
  transform: scale(1.06); transition: filter .7s var(--ease), transform 1.1s var(--ease);
}
.g:hover img { filter: grayscale(0) contrast(1.05) brightness(1); transform: scale(1); }
.g figcaption {
  position: absolute; left: .8rem; bottom: .7rem; font-family: var(--f-mono); font-size: .66rem;
  letter-spacing: .15em; color: var(--ink); opacity: .7; mix-blend-mode: difference;
}
@media (max-width: 760px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 44vw; grid-auto-flow: dense; }
  .g, .g-wide, .g:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .g-tall { grid-row: span 2 !important; }
  .g:nth-child(2), .g:nth-child(6), .g:nth-child(9) { grid-column: span 2; }
  .g:nth-child(9) { grid-row: span 1; }
}

/* Social rows */
.social-list { list-style: none; border-top: 1px solid var(--line); }
.social-list li { border-bottom: 1px solid var(--line); }
.social-list a {
  display: grid; grid-template-columns: 9rem 1fr auto auto; align-items: center; gap: 1.5rem;
  padding: clamp(1.2rem, 2.6vw, 1.9rem) .4rem; position: relative; overflow: hidden;
}
.social-list a::before { content: ""; position: absolute; inset: 0; background: var(--accent); transform: translateX(-101%); transition: transform .6s var(--ease); }
.social-list a > * { position: relative; transition: color .35s, transform .5s var(--ease); }
.s-plat { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }
.s-handle { font-family: var(--f-display); font-size: clamp(1.7rem, 4vw, 3.2rem); line-height: 1; }
.s-desc { color: var(--ink-3); font-size: .88rem; }
.s-arrow { font-size: 1.4rem; }
@media (hover: hover) {
  .social-list a:hover::before { transform: translateX(0); }
  .social-list a:hover > * { color: #140f06; }
  .social-list a:hover .s-handle { transform: translateX(.8rem); }
  .social-list a:hover .s-arrow { transform: translate(4px,-4px) rotate(0deg); }
}
@media (max-width: 640px) { .social-list a { grid-template-columns: 1fr auto; gap: .3rem 1rem; } .s-plat { grid-column: 1 / -1; } .s-desc { display: none; } }

/* Contact */
.contact {
  position: relative; overflow: hidden; isolation: isolate; text-align: center;
  padding-block: clamp(7rem, 16vw, 13rem);
  background: radial-gradient(ellipse at 50% 120%, rgba(226,163,60,.16), transparent 60%), var(--bg);
}
.contact .label { justify-content: center; }
.contact .label::before { content: ""; flex: 0 0 60px; height: 1px; background: var(--line-2); }
.contact-title { font-family: var(--f-display); font-weight: 400; font-size: clamp(3.4rem, 12vw, 11rem); line-height: .9; letter-spacing: -.02em; }
.contact-sub { color: var(--ink-2); max-width: 42ch; margin: 1.8rem auto 2.8rem; }
.contact-mail {
  display: inline-block; font-family: var(--f-display); font-style: italic;
  font-size: clamp(1.4rem, 4.4vw, 3.4rem); color: var(--ink); position: relative; padding-bottom: .15em;
  overflow-wrap: anywhere; will-change: transform;
}
.contact-mail::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); transform: scaleX(.25); transition: transform .7s var(--ease); }
.contact-mail:hover::after { transform: scaleX(1); }
.contact-mail:hover { color: var(--accent); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding-block: 2rem; font-size: .82rem; color: var(--ink-3); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.footer-tag { font-family: var(--f-display); font-style: italic; font-size: 1.1rem; color: var(--ink-2); }
.footer-links { display: flex; gap: 1.2rem; }
.footer-links a:hover { color: var(--accent); }

/* 11. Reveals (gotcha A.8 + A.4.5) ----------------------------- */
[data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
[data-reveal].is-revealed { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

/* 12. Only truly intrusive motion is gated (gotcha A.2) -------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain { animation: none; }
}

/* 13. Mobile hero composition (photo on top, text below) ------- */
@media (max-width: 900px) {
  .hero-inner { padding-top: 46vh; padding-top: 46svh; }
  .hero-title { font-size: clamp(3.2rem, 15vw, 6rem); }
}
@media (max-width: 900px) { .hud-center { display: none; } }

/* 14. Hero face (frame sequence scrubbed by the cursor) ------- */
.hero-face {
  position: relative; width: 100%; height: 108%;
  --fx: 34%; --fy: 30%;
  filter: saturate(.78) contrast(1.06) brightness(.72);
  transform: scale(1.08); animation: heroZoom 2.8s var(--ease) .3s forwards;
}
.hero-face-poster, .hero-face-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-media .hero-face-poster { height: 100%; transform: none; animation: none; filter: none; object-fit: cover; object-position: var(--fx) var(--fy); }
.hero-face-canvas { opacity: 0; transition: opacity .6s var(--ease); }
.hero-face.is-live .hero-face-canvas { opacity: 1; }
@media (max-width: 900px) { .hero-face { --fx: 50%; --fy: 30%; } }
