/* =============================================
   GUSTAVO SEVERINO — DTC EDITOR · portfolio v2
   Monochrome black/cream, one gold accent.
   ============================================= */

@font-face { font-family: 'Archivo'; src: url(../fonts/archivo-latin-var.woff2) format('woff2'); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url(../fonts/cormorant-italic-latin.woff2) format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --bg: #050505; --bg-2: #0b0b0c;
  --ink: #e8e4dc; --cream: #cfc9bc; --cream-ink: #16150f;
  --line: rgba(232,228,220,.09); --line-2: rgba(232,228,220,.2);
  --mute: rgba(232,228,220,.56); --mute-2: rgba(232,228,220,.32);
  --gold: #c9a84c;
  --display: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif-i: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
  --ease: cubic-bezier(.25,.46,.45,.94); --spring: cubic-bezier(.34,1.56,.64,1); --out: cubic-bezier(.22,.61,.36,1);
  --nav-h: 64px; --pad-x: clamp(18px, 5vw, 64px); --section-py: clamp(64px, 8.5vw, 120px); --max-w: 1400px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-padding-top: calc(var(--nav-h) + 8px); -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--ink); font: 400 1rem/1.5 var(--display); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img, video, canvas, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; background: none; border: 0; }
ul, ol { list-style: none; }
:focus { outline: none; }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }
::selection { background: var(--cream); color: var(--cream-ink); }
.gold { color: var(--gold); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 3000; padding: 10px 14px; background: var(--ink); color: var(--bg); border-radius: 6px; }
.skip:focus { left: 8px; }

/* ---------- type utilities ---------- */
.giant {
  font: 900 clamp(64px, 16.5vw, 250px)/.86 var(--display); letter-spacing: -.035em; text-transform: uppercase;
  background: linear-gradient(180deg, #fff 0%, #e8e4dc 38%, #6a6c71 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  padding-bottom: .06em;
}
.giant-right { text-align: right; }
.section-head .giant { font-size: clamp(56px, 13vw, 196px); }
.giant-md { font-size: clamp(48px, 8vw, 120px); }
.micro { font: 500 .62rem/1.5 var(--mono); letter-spacing: .28em; text-transform: uppercase; color: var(--mute); }

/* ---------- intro ---------- */
.intro { position: fixed; inset: 0; z-index: 9999; background: var(--bg); display: grid; place-items: center; overflow: hidden; }
html.no-intro .intro { display: none; }
html:not(.no-intro) body.is-intro { overflow: hidden; }
.intro-name { position: relative; display: flex; align-items: baseline; font: 900 clamp(56px, 14vw, 210px)/1 var(--display); letter-spacing: -.03em; }
.ch {
  display: inline-block; opacity: 0; transform: translate(var(--rx, 0), var(--ry, 0)) rotate(var(--rr, 0deg));
  background: linear-gradient(180deg, #fff 0%, #e8e4dc 40%, #6a6c71 100%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.intro.run .ch { animation: assemble .9s var(--out) calc(var(--i) * 70ms) forwards; }
@keyframes assemble { to { opacity: 1; transform: none; } }
.intro-dot { position: absolute; right: -.3em; bottom: .07em; width: .14em; height: .14em; border-radius: 50%; background: var(--gold); opacity: 0; transform: translateY(-3em); }
.intro-dot.drop { animation: dotDrop .55s var(--spring) forwards; }
@keyframes dotDrop { to { opacity: 1; transform: none; } }
.intro.is-out { animation: introOut .65s cubic-bezier(.7, 0, .3, 1) forwards; }
@keyframes introOut { to { clip-path: inset(0 0 100% 0); } }

/* ---------- progress + nav ---------- */
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: var(--ink); opacity: .75; z-index: 1001; }
.nav {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h); z-index: 900;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 var(--pad-x);
  background: linear-gradient(180deg, rgba(5,5,5,.92), rgba(5,5,5,0)); transition: background .3s, border-color .3s; border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(5,5,5,.9); border-bottom-color: var(--line); }
.nav-name { font: 800 .95rem/1 var(--display); letter-spacing: .18em; text-transform: uppercase; white-space: nowrap; }
.nav-links { display: flex; gap: clamp(16px, 2.4vw, 34px); }
.nav-links a { position: relative; padding: 8px 0; font: 600 .74rem/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); transition: color .2s; }
.nav-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--out); }
.nav-links a:hover, .nav-links a.is-current { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.is-current::after { transform: scaleX(1); }
.nav-burger { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; align-items: center; gap: 6px; cursor: pointer; margin-right: -10px; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--ink); transition: transform .3s var(--out); }
.nav-burger.active span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-burger.active span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mobile-menu { position: fixed; inset: 0; z-index: 950; background: var(--bg); display: flex; flex-direction: column; justify-content: center; padding: var(--pad-x); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-close { position: absolute; top: 10px; right: calc(var(--pad-x) - 10px); width: 44px; height: 44px; font-size: 1.2rem; cursor: pointer; }
.mobile-link { display: flex; align-items: baseline; gap: 16px; padding: 14px 0; font: 900 clamp(2rem, 9vw, 3.4rem)/1 var(--display); text-transform: uppercase; letter-spacing: -.02em; border-bottom: 1px solid var(--line); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--nav-h) + 20px) var(--pad-x) 32px; overflow: hidden; isolation: isolate;
}
.hero-portrait { position: absolute; left: 50%; top: 47%; transform: translate(-50%, -50%); width: min(82vh, 94vw); aspect-ratio: 1; z-index: 0; pointer-events: none; }
.hero-portrait canvas, .portrait-fallback { width: 100%; height: 100%; }
.portrait-fallback { object-fit: cover; filter: grayscale(1) contrast(1.1); opacity: .5; -webkit-mask-image: radial-gradient(circle at 50% 42%, #000 52%, transparent 74%); mask-image: radial-gradient(circle at 50% 42%, #000 52%, transparent 74%); }
.hero-word { position: relative; z-index: 1; text-align: center; font-size: clamp(64px, 12.6vw, 196px); letter-spacing: -.045em; white-space: nowrap; margin-top: auto; }
.hero-foot { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-top: 6px; }
.hero-role { font: 700 clamp(1.3rem, 2.6vw, 2.1rem)/1.1 var(--display); letter-spacing: -.02em; }
.hero-role em { font: italic 400 1.12em/1 var(--serif-i); color: var(--mute); }
.hero-tags { margin-top: 10px; }
.hero-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.hero-word, .hero-foot { opacity: 0; transform: translateY(36px); }
body.is-ready .hero-word, body.is-ready .hero-foot { opacity: 1; transform: none; transition: opacity .8s var(--out), transform .8s var(--out); }
body.is-ready .hero-foot { transition-delay: .15s; }
html.no-intro .hero-word, html.no-intro .hero-foot { opacity: 1; transform: none; }

.btn-round { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-size: 1.1rem; transition: background .25s, color .25s, transform .25s; }
.btn-round:hover { background: var(--ink); color: var(--bg); transform: translateY(2px); }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px; border: 1px solid var(--line-2); font: 600 .82rem/1 var(--display); letter-spacing: .04em; transition: background .25s, color .25s, border-color .25s; }
.pill:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pill-status { border-color: var(--line); color: var(--mute); font: 500 .66rem/1 var(--mono); letter-spacing: .24em; text-transform: uppercase; }
.pill-status:hover { background: none; color: var(--mute); border-color: var(--line); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(201,168,76,.55); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(201,168,76,0); } 100% { box-shadow: 0 0 0 0 rgba(201,168,76,0); } }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 15px 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; width: max-content; animation: marquee 36s linear infinite; }
.mq-group { display: flex; align-items: center; gap: 28px; padding-right: 28px; }
.mq-group span { font: 600 .74rem/1 var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--mute); white-space: nowrap; }
.mq-group i { color: var(--gold); font-style: normal; font-size: .6rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: var(--section-py) var(--pad-x); }
.section-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: clamp(24px, 4vw, 52px); }
.section-head .micro { padding-top: .6em; }

/* reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .75s var(--out), transform .75s var(--out); }
.reveal.revealed { opacity: 1; transform: none; }

/* ---------- work: tabs + shelf ---------- */
.tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); margin-bottom: clamp(18px, 3vw, 34px); -webkit-overflow-scrolling: touch; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; flex: 0 0 auto; display: flex; align-items: baseline; gap: 7px; padding: 14px 18px 16px; font: 600 .8rem/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); cursor: pointer; transition: color .2s; }
.tab sup { font: 500 .56rem/1 var(--mono); color: var(--mute-2); letter-spacing: 0; }
.tab::after { content: ''; position: absolute; left: 18px; right: 18px; bottom: -1px; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .3s var(--out); }
.tab:hover, .tab[aria-selected="true"] { color: var(--ink); }
.tab[aria-selected="true"]::after { transform: scaleX(1); }

.shelf { --slide-w: clamp(220px, 24vw, 340px); --gap: clamp(12px, 2vw, 28px); position: relative; margin-inline: calc(-1 * var(--pad-x)); }
.shelf[data-ratio="wide"] { --slide-w: clamp(300px, 56vw, 720px); }
.shelf-viewport { overflow: hidden; touch-action: pan-y pinch-zoom; user-select: none; -webkit-user-select: none; cursor: grab; min-height: calc(var(--slide-w) * 16 / 9 + 24px); transition: opacity .25s; }
.shelf-viewport:focus-visible { outline: none; box-shadow: inset 0 0 0 1px var(--gold); }
.shelf-viewport.is-switching { opacity: 0; }
.shelf-viewport.is-dragging { cursor: grabbing; }
.shelf-track { position: relative; display: flex; gap: var(--gap); padding: 12px 0 4px; will-change: transform; transform: translate3d(var(--tx, 0px), 0, 0); transition: transform .6s var(--out); }
.shelf-viewport.is-dragging .shelf-track, .shelf-track.is-instant { transition: none; }
.slide { flex: 0 0 var(--slide-w); }
.slide-card {
  position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; background: #0b0b0b; overflow: hidden;
  border: 1px solid var(--line); border-radius: 10px; cursor: pointer; padding: 0; text-align: left;
  transform: scale(.86); opacity: .42; transition: transform .6s var(--out), opacity .6s, border-color .3s;
}
.shelf[data-ratio="wide"] .slide-card { aspect-ratio: 16 / 9; }
.slide.is-active .slide-card { transform: scale(1); opacity: 1; border-color: var(--line-2); }
.slide-poster, .slide-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; -webkit-user-drag: none; pointer-events: none; }
.slide-video { opacity: 0; transition: opacity .35s; }
.slide.is-playing .slide-video { opacity: 1; }
.slide-play { display: none; position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; transform: translate(-50%, -50%); border-radius: 50%; background: rgba(5,5,5,.55); border: 1px solid var(--line-2); place-items: center; }
.slide-play::after { content: ''; border-left: 18px solid var(--ink); border-top: 11px solid transparent; border-bottom: 11px solid transparent; margin-left: 4px; }
.slide.needs-gesture .slide-play, .slide.poster-only .slide-play { display: grid; }
.slide-meta { display: flex; flex-direction: column; gap: 4px; padding: 14px 6px 0; opacity: 0; transition: opacity .4s; }
.slide.is-active .slide-meta { opacity: 1; }
.slide-title { font: 700 .95rem/1.2 var(--display); }

.shelf-arrow { position: absolute; top: calc(50% - 34px); transform: translateY(-50%); z-index: 3; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(5,5,5,.65); color: var(--ink); font-size: 1.1rem; display: grid; place-items: center; cursor: pointer; transition: background .25s, color .25s; touch-action: manipulation; }
.shelf-arrow:hover { background: var(--ink); color: var(--bg); }
.shelf-arrow-prev { left: var(--pad-x); } .shelf-arrow-next { right: var(--pad-x); }
.shelf-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 10px var(--pad-x) 0; }
.shelf-dots { display: flex; gap: 2px; }
.shelf-dot, .dot-btn { }
.shelf-dots .dot { width: auto; height: auto; border-radius: 0; background: none; box-shadow: none; animation: none; }
.shelf-dots button { position: relative; width: 22px; height: 16px; cursor: pointer; }
.shelf-dots button::before { content: ''; position: absolute; left: 2px; right: 2px; top: 7px; height: 2px; background: var(--mute-2); transition: background .3s; }
.shelf-dots button[aria-current="true"]::before { background: var(--ink); }
.shelf-hint { text-align: center; transition: opacity .5s; }
.shelf-hint.is-hidden { opacity: 0; }
.shelf-counter { text-align: right; }

/* ---------- services ---------- */
.service-list { border-top: 1px solid var(--line); }
.service { border-bottom: 1px solid var(--line); }
.service a { display: grid; grid-template-columns: 3.2rem 1fr auto; align-items: center; gap: clamp(12px, 3vw, 40px); padding: clamp(22px, 3vw, 34px) var(--pad-x); margin-inline: calc(-1 * var(--pad-x)); transition: background .25s, color .25s; }
.service-num { font: 500 1rem/1 var(--mono); color: var(--mute); transition: color .25s; }
.service-body { display: grid; grid-template-rows: auto 0fr; transition: grid-template-rows .35s var(--out); }
.service-title { font: 900 clamp(1.15rem, 2.6vw, 2rem)/1.1 var(--display); letter-spacing: .02em; text-transform: uppercase; }
.service-desc { overflow: hidden; min-height: 0; font: 400 .95rem/1.5 var(--display); color: var(--mute); opacity: 0; transition: opacity .3s, margin .3s; }
.service-arrow { font-size: 1.4rem; color: var(--mute); transition: color .25s, transform .25s; }
.service a:hover, .service a:focus-visible { background: var(--cream); color: var(--cream-ink); outline: none; }
.service a:hover .service-num, .service a:hover .service-desc, .service a:focus-visible .service-num, .service a:focus-visible .service-desc { color: rgba(22,21,15,.72); }
.service a:hover .service-body, .service a:focus-visible .service-body { grid-template-rows: auto 1fr; }
.service a:hover .service-desc, .service a:focus-visible .service-desc { opacity: 1; margin-top: 8px; }
.service a:hover .service-arrow, .service a:focus-visible .service-arrow { color: var(--gold); transform: translate(3px, 3px); }
.service-notes { margin-top: 28px; text-align: center; }

/* ---------- about ---------- */
.about-left .giant { font-size: clamp(56px, 9.6vw, 150px); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.about-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; padding: clamp(24px, 3.5vw, 44px); font: 400 clamp(1rem, 1.5vw, 1.18rem)/1.65 var(--display); color: var(--mute); }
.about-card p + p { margin-top: 1em; }
.about-card strong { color: var(--ink); font-weight: 700; }
.tools { margin-top: clamp(40px, 6vw, 80px); }
.tools .micro { margin-bottom: 8px; }
.chips-row { overflow: hidden; margin-top: 12px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.chips-track { display: flex; width: max-content; animation: marquee 44s linear infinite; }
.chips-row-reverse .chips-track { animation-direction: reverse; }
.chips-group { display: flex; gap: 12px; padding-right: 12px; }
.chips-group span { padding: 12px 20px; border-radius: 999px; border: 1px solid var(--line); background: rgba(232,228,220,.04); font: 600 .82rem/1 var(--display); white-space: nowrap; }
.chips-group span::before { content: ''; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--mute-2); margin-right: 10px; vertical-align: middle; }

/* ---------- proof ---------- */
.case { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: center; padding: clamp(28px, 4vw, 56px) 0; border-top: 1px solid var(--line); }
.case:nth-of-type(even) .case-media { order: 2; }
.case-media img { width: 100%; max-width: 400px; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); margin: 0 auto; }
.case-media-quote { display: grid; place-items: center; }
.case-title { font: 900 clamp(2rem, 4.6vw, 3.6rem)/1 var(--display); letter-spacing: -.02em; text-transform: uppercase; margin: 10px 0 18px; }
.case-title em { font: italic 400 1.05em/1 var(--serif-i); text-transform: none; letter-spacing: 0; }
.case-body > p { color: var(--mute); line-height: 1.6; max-width: 56ch; }
.quote { margin: 22px 0 0; padding: 18px 24px; border-left: 2px solid var(--gold); font: italic 400 1.25rem/1.45 var(--serif-i); color: var(--ink); }
.quote cite { display: block; margin-top: 12px; font: 500 .62rem/1.4 var(--mono); letter-spacing: .24em; text-transform: uppercase; color: var(--mute); font-style: normal; }
.quote-big { font-size: clamp(1.4rem, 2.4vw, 2rem); border-left: 0; background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; padding: clamp(24px, 3vw, 40px); max-width: 520px; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chips span { padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); font: 600 .74rem/1 var(--display); color: var(--mute); }
.chips-lg span { padding: 12px 18px; font-size: .84rem; color: var(--ink); }
.brands { margin-top: clamp(36px, 5vw, 64px); border-top: 1px solid var(--line); padding-top: 28px; }
.proof-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 32px; }
.proof-metrics li { padding: 20px; border: 1px solid var(--line); border-radius: 12px; display: grid; gap: 6px; }
.proof-metrics strong { font: 900 1.4rem/1.1 var(--display); }
.proof-metrics span { font: 500 .62rem/1.5 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.contact-left .pill-status { margin-bottom: 22px; }
.contact-text { color: var(--mute); line-height: 1.6; max-width: 50ch; margin: 20px 0 28px; font-size: 1.05rem; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; border: 1px solid var(--line-2); font: 600 .88rem/1 var(--display); transition: background .25s, color .25s, border-color .25s; }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn-fill { background: var(--cream); color: var(--cream-ink); border-color: var(--cream); }
.btn-fill:hover { background: #fff; border-color: #fff; }
.btn-line:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.info-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.info-row { display: grid; gap: 8px; padding: 20px 24px; border-top: 1px solid var(--line); font-size: 1.02rem; }
.info-row:first-child { border-top: 0; }
.info-row a:hover { color: var(--gold); }

/* ---------- footer ---------- */
.footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 28px var(--pad-x); border-top: 1px solid var(--line); color: var(--mute); font-size: .8rem; }
.footer-links { display: flex; gap: 18px; }
.footer-links a:hover { color: var(--ink); }

/* ---------- modal ---------- */
.video-modal { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 16px; opacity: 0; transition: opacity .3s; }
.video-modal[hidden] { display: none; }
.video-modal.open { opacity: 1; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.94); }
.modal-container { position: relative; z-index: 1; width: min(94vw, 1100px); max-height: 94vh; display: flex; flex-direction: column; gap: 10px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.modal-title { font: 600 .85rem/1.3 var(--display); color: var(--mute); }
.modal-close { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); cursor: pointer; display: grid; place-items: center; flex-shrink: 0; transition: background .25s, color .25s; }
.modal-close:hover { background: var(--ink); color: var(--bg); }
.modal-video-wrap { position: relative; margin: 0 auto; background: #000; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.modal-video-wrap.vertical { width: min(94vw, calc(84vh * 9 / 16)); aspect-ratio: 9 / 16; }
.modal-video-wrap.wide { width: min(94vw, 1100px); aspect-ratio: 16 / 9; }
.modal-video-wrap video, .modal-video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: contain; background: #000; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .about-grid, .case, .contact-grid { grid-template-columns: 1fr; }
  .case:nth-of-type(even) .case-media { order: 0; }
  .proof-metrics { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .hero { padding-bottom: 28px; }
  .hero-portrait { top: 44%; width: min(70vh, 100vw); }
  .hero-word { white-space: normal; font-size: 23vw; line-height: .86; text-align: left; }
  .hero-word span { display: block; }
  .hero-foot { flex-direction: column; align-items: flex-start; gap: 18px; }
  .hero-role { font-size: 1.35rem; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .section-head .micro { padding-bottom: 0; }
  .giant-right { text-align: left; }
  .shelf { --slide-w: min(64vw, 300px); }
  .shelf[data-ratio="wide"] { --slide-w: 88vw; }
  .shelf-arrow { display: none; }
  .shelf-bar { grid-template-columns: 1fr auto; }
  .shelf-hint { grid-column: 1 / -1; grid-row: 2; text-align: left; margin-top: 6px; }
  .service a { grid-template-columns: 2.2rem 1fr auto; }
  .service-title { font-size: 1.15rem; }
  .service a .service-body { grid-template-rows: auto 1fr; }
  .service a .service-desc { opacity: 1; margin-top: 6px; font-size: .88rem; }
  .quote { font-size: 1.1rem; }
  .footer { justify-content: center; text-align: center; }
}
@media (hover: none) {
  .service a .service-body { grid-template-rows: auto 1fr; }
  .service a .service-desc { opacity: 1; margin-top: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track, .chips-track, .dot { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .shelf-track, .slide-card, .hero-word, .hero-foot { transition: none !important; }
  .hero-word, .hero-foot { opacity: 1; transform: none; }
}

/* ---------- gold accent layer (structure of the demo, Gustavo's gold) ---------- */
.giant, .ch { background: linear-gradient(180deg, #fdf6e3 0%, #e6cf8a 38%, #c9a84c 68%, #8f6b24 100%); -webkit-background-clip: text; background-clip: text; }
.progress { background: var(--gold); opacity: .9; }
.nav-links a::after { background: var(--gold); }
.section-head .micro, .about-left .micro, .proof .micro, .tools > .micro, .contact-left .pill-status, .info-row .micro, .slide-brand { color: var(--gold); }
.hero-role em { color: var(--gold); }
.hero-tags { color: var(--mute); }
.btn-round:hover, .pill:hover { background: var(--gold); color: var(--cream-ink); border-color: var(--gold); }
.btn-fill { background: var(--gold); color: var(--cream-ink); border-color: var(--gold); }
.btn-fill:hover { background: #e8c96e; border-color: #e8c96e; }
.btn-line:hover { background: var(--gold); color: var(--cream-ink); border-color: var(--gold); }
.slide.is-active .slide-card { border-color: rgba(201,168,76,.55); box-shadow: 0 0 0 1px rgba(201,168,76,.15), 0 24px 60px rgba(0,0,0,.6); }
.shelf-dots button[aria-current="true"]::before { background: var(--gold); }
.shelf-arrow:hover { background: var(--gold); color: var(--cream-ink); border-color: var(--gold); }
.tab[aria-selected="true"] { color: #fff; }
.chips-group span::before { background: var(--gold); opacity: .7; }
.mq-group i { color: var(--gold); }
.service a:hover .service-num, .service a:focus-visible .service-num { color: #7a5f1f; }
.quote { border-left-color: var(--gold); }
.quote cite { color: var(--gold); }
.chips-lg span { border-color: rgba(201,168,76,.35); }
.info-row a:hover { color: #e8c96e; }
.modal-close:hover { background: var(--gold); color: var(--cream-ink); border-color: var(--gold); }
.intro-dot { background: var(--gold); box-shadow: 0 0 24px rgba(201,168,76,.6); }

/* ---------- intro v2: scramble morph + curtain fade ---------- */
.intro { transition: background-color .55s ease; }
.intro.bg-out { background-color: transparent; pointer-events: none; }
.intro-word { display: inline-block; white-space: nowrap; font: inherit; letter-spacing: -.035em; background: linear-gradient(180deg, #fdf6e3 0%, #e6cf8a 38%, #c9a84c 68%, #8f6b24 100%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; will-change: transform, opacity; }
@media (max-width: 720px) { .intro-name { font-size: 15vw; } }

/* ---------- proof v2: generic, no per-client attribution ---------- */
.proof-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(16px, 2.5vw, 28px); align-items: stretch; }
.proof-card { grid-row: span 2; background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px; padding: clamp(24px, 3.5vw, 44px); display: flex; flex-direction: column; gap: 16px; }
.proof-card > p:not(.micro) { color: var(--mute); line-height: 1.6; max-width: 56ch; margin: 0; }
.proof-title { font: 900 clamp(1.6rem, 3.4vw, 2.6rem)/1.05 var(--display); letter-spacing: -.02em; text-transform: uppercase; margin: 0; }
.proof-title em { font: italic 400 1.05em/1 var(--serif-i); text-transform: none; letter-spacing: 0; color: var(--gold); }
.proof-card .chips { margin-top: auto; }
.quote-card { margin: 0; border-left: 0; background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px; padding: clamp(22px, 3vw, 34px); font-size: clamp(1.15rem, 1.7vw, 1.45rem); display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 900px) { .proof-grid { grid-template-columns: 1fr; } .proof-card { grid-row: auto; } }

/* ---------- original copy restored: hero lines + results band ---------- */
.hero-sub { max-width: 46ch; color: var(--mute); margin-top: 10px; font-size: clamp(.95rem, 1.2vw, 1.08rem); line-height: 1.5; }
.hero-stat { color: var(--gold); margin-top: 12px; }
.hero-tags { margin-top: 8px; }
.results-feature { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(16px, 3vw, 44px); align-items: center; padding: clamp(24px, 3vw, 40px); border: 1px solid rgba(201,168,76,.32); border-radius: 18px; background: linear-gradient(135deg, rgba(201,168,76,.10), rgba(201,168,76,0) 60%), var(--bg-2); margin-bottom: 12px; }
.rf-num .stat-num { font: 900 clamp(3rem, 8vw, 6.5rem)/.9 var(--display); letter-spacing: -.04em; background: linear-gradient(180deg, #fdf6e3 0%, #e6cf8a 38%, #c9a84c 68%, #8f6b24 100%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rf-copy strong { display: block; font: 700 clamp(1.1rem, 1.8vw, 1.4rem)/1.2 var(--display); margin-bottom: 6px; }
.rf-copy span { color: var(--mute); }
.results-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: clamp(24px, 4vw, 48px); }
.result-tile { border: 1px solid var(--line); border-radius: 14px; padding: 18px 14px; display: grid; gap: 8px; background: var(--bg-2); }
.result-tile .stat-num { font: 900 clamp(1.5rem, 2.6vw, 2.2rem)/1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.proof-grid.quotes-only { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .results-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .results-feature { grid-template-columns: 1fr; } .proof-grid.quotes-only { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .results-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- iteration 3: any-format blurb, retention pop-up, floating contact ---------- */
.anyformat { margin-top: clamp(36px, 5vw, 64px); padding-top: clamp(28px, 4vw, 48px); border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(20px, 4vw, 56px); align-items: center; }
.anyformat-title { font: 900 clamp(1.6rem, 3.6vw, 2.8rem)/1.05 var(--display); letter-spacing: -.02em; text-transform: uppercase; margin: 10px 0 0; }
.anyformat-title em { font: italic 400 1.05em/1 var(--serif-i); text-transform: none; letter-spacing: 0; color: var(--gold); }
.anyformat-text { color: var(--mute); line-height: 1.6; max-width: 54ch; }
.anyformat-text + .micro { margin-top: 16px; }
@media (max-width: 900px) { .anyformat { grid-template-columns: 1fr; } }

.retention { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); z-index: 1500; width: min(420px, calc(100vw - 32px)); background: #0d0d0e; border: 1px solid rgba(201,168,76,.45); border-radius: 18px; padding: 22px 22px 20px; box-shadow: 0 30px 80px rgba(0,0,0,.7), 0 0 0 1px rgba(201,168,76,.12); transform: translateY(24px); opacity: 0; transition: transform .35s var(--out), opacity .35s; }
.retention.open { transform: none; opacity: 1; }
.retention[hidden] { display: none; }
.retention .micro { color: var(--gold); }
.retention h3 { font: 900 1.35rem/1.1 var(--display); letter-spacing: -.02em; margin: 10px 0 10px; }
.retention p { color: var(--mute); line-height: 1.55; font-size: .95rem; margin: 0 0 16px; }
.retention-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.retention-close { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); cursor: pointer; display: grid; place-items: center; font-size: .9rem; }
.retention-close:hover { background: var(--gold); color: var(--cream-ink); border-color: var(--gold); }
.retention-skip { font: 600 .82rem/1 var(--display); color: var(--mute); cursor: pointer; padding: 10px 4px; }
.retention-skip:hover { color: var(--ink); }
@media (max-width: 720px) { .retention { right: 0; left: 0; bottom: 0; width: auto; border-radius: 18px 18px 0 0; padding: 22px max(18px, env(safe-area-inset-left, 0px)) max(20px, env(safe-area-inset-bottom, 0px)); } }

.fab { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); z-index: 1400; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .3s, transform .3s var(--out); }
.fab.show { opacity: 1; transform: none; pointer-events: auto; }
.fab-btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 20px; border-radius: 999px; background: var(--gold); color: var(--cream-ink); font: 700 .84rem/1 var(--display); letter-spacing: .04em; box-shadow: 0 10px 30px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.08) inset; cursor: pointer; transition: background .25s, transform .25s; }
.fab-btn:hover { background: #e8c96e; transform: translateY(-2px); }
.fab-btn .dot { background: var(--cream-ink); box-shadow: 0 0 0 0 rgba(22,21,15,.5); }
.fab-menu { display: grid; gap: 6px; background: #0d0d0e; border: 1px solid rgba(201,168,76,.35); border-radius: 16px; padding: 8px; box-shadow: 0 24px 60px rgba(0,0,0,.65); transform-origin: bottom right; transform: scale(.92) translateY(8px); opacity: 0; pointer-events: none; transition: transform .25s var(--out), opacity .2s; }
.fab.open .fab-menu { transform: none; opacity: 1; pointer-events: auto; }
.fab-menu a { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 10px; font: 600 .86rem/1 var(--display); white-space: nowrap; }
.fab-menu a:hover { background: rgba(201,168,76,.12); color: #fff; }
.fab-menu a span.micro { color: var(--gold); letter-spacing: .18em; width: 44px; }
body.modal-open .fab, body.retention-open .fab { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .retention, .fab, .fab-menu { transition: none; } }

/* ---------- CLS guards: reserve space for JS-built parts and growing counters ---------- */
.tabs { min-height: 49px; }
.shelf-viewport { min-height: calc(var(--slide-w) * 16 / 9 + 16px); }
.shelf-track { min-height: calc(var(--slide-w) * 16 / 9 + 16px); }
.slide-meta { min-height: 46px; }
.shelf-bar { min-height: 42px; }
.rf-num .stat-num { display: inline-block; min-width: 3.1em; }
.result-tile .stat-num { display: block; min-height: 1em; }

/* ---------- drag cues: animated arrows on the tabs row and over the shelf ---------- */
.tabs-wrap { position: relative; }
.tabs-cue { position: absolute; right: 0; top: 0; bottom: 1px; display: none; align-items: center; gap: 8px; padding: 0 6px 0 56px; background: linear-gradient(90deg, rgba(5,5,5,0), var(--bg) 45%); font: 600 .66rem/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); pointer-events: none; }
.tabs-cue.show { display: flex; }
.tabs-cue.is-hidden { opacity: 0; transition: opacity .4s; }
.cue-arrow { display: inline-block; font-size: 1.25em; line-height: 1; color: var(--gold); }
.cue-right { animation: nudgeRight 1.1s ease-in-out infinite; }
.cue-left { animation: nudgeLeft 1.1s ease-in-out infinite; }
@keyframes nudgeRight { 0%, 100% { transform: translateX(0); opacity: .75; } 50% { transform: translateX(7px); opacity: 1; } }
@keyframes nudgeLeft { 0%, 100% { transform: translateX(0); opacity: .75; } 50% { transform: translateX(-7px); opacity: 1; } }
.drag-cue { position: absolute; left: 50%; top: calc(50% - 34px); transform: translate(-50%, -50%); z-index: 4; display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-radius: 999px; background: rgba(5,5,5,.72); border: 1px solid rgba(201,168,76,.55); box-shadow: 0 10px 30px rgba(0,0,0,.5); font: 700 .72rem/1 var(--display); letter-spacing: .26em; text-transform: uppercase; color: var(--ink); pointer-events: none; opacity: 0; transition: opacity .4s; }
.drag-cue.show { opacity: 1; }
.drag-cue.is-hidden { opacity: 0; }
.drag-cue .cue-arrow { font-size: 1.3rem; }
.shelf-track.peek { animation: shelfPeek 1.3s cubic-bezier(.45,.05,.55,.95) 1; }
@keyframes shelfPeek { 0%, 100% { transform: translate3d(var(--tx, 0px), 0, 0); } 40% { transform: translate3d(calc(var(--tx, 0px) - 44px), 0, 0); } 70% { transform: translate3d(calc(var(--tx, 0px) + 10px), 0, 0); } }
.shelf-hint .gold { display: inline-block; animation: nudgeRight 1.1s ease-in-out infinite; }
@media (max-width: 720px) { .drag-cue { top: calc(50% - 48px); padding: 11px 16px; font-size: .68rem; } }
@media (prefers-reduced-motion: reduce) { .cue-right, .cue-left, .shelf-hint .gold, .shelf-track.peek { animation: none !important; } }

/* ---------- "watch with sound" badge on the active card + modal sound unlock ---------- */
.slide-badge { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: rgba(5,5,5,.78); border: 1px solid rgba(201,168,76,.7); color: var(--ink); font: 700 .66rem/1 var(--display); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; opacity: 0; transition: opacity .35s, transform .35s; pointer-events: none; }
.slide-badge-ico { color: var(--gold); font-size: .75rem; animation: badgePulse 1.6s ease-in-out infinite; }
@keyframes badgePulse { 0%, 100% { transform: scale(1); opacity: .8; } 50% { transform: scale(1.25); opacity: 1; } }
.slide.is-active .slide-badge { opacity: 1; }
.slide.needs-gesture .slide-badge, .slide.poster-only .slide-badge { bottom: 14px; }
.slide-card:hover .slide-badge { background: var(--gold); color: var(--cream-ink); border-color: var(--gold); }
.slide-card:hover .slide-badge-ico { color: var(--cream-ink); }
.modal-unlock { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; display: inline-flex; align-items: center; gap: 12px; padding: 16px 26px; border-radius: 999px; background: var(--gold); color: var(--cream-ink); font: 800 .95rem/1 var(--display); letter-spacing: .06em; cursor: pointer; box-shadow: 0 16px 40px rgba(0,0,0,.6); }
.modal-unlock[hidden] { display: none; }
.modal-unlock span { font-size: 1.1rem; }
@media (prefers-reduced-motion: reduce) { .slide-badge-ico { animation: none; } }

/* ---------- mobile hero ~15% smaller so the portrait is not covered ---------- */
@media (max-width: 720px) {
  .hero { padding-top: calc(var(--nav-h) + 8px); padding-bottom: 22px; }
  .hero-portrait { top: 39%; width: min(66vh, 100vw); }
  .hero-word { font-size: 19.5vw; line-height: .88; }
  .hero-role { font-size: 1.15rem; }
  .hero-sub { font-size: .84rem; line-height: 1.45; margin-top: 8px; max-width: 42ch; }
  .hero-stat, .hero-tags { font-size: .54rem; letter-spacing: .22em; }
  .hero-stat { margin-top: 10px; }
  .hero-tags { margin-top: 6px; }
  .hero-foot { gap: 14px; margin-top: 4px; }
  .btn-round { width: 42px; height: 42px; font-size: 1rem; }
  .hero-actions .pill { padding: 11px 18px; font-size: .76rem; }
}
