/* TAILY 2.0 — futuristic editorial. Colors/fonts below are overridden at runtime by the studio panel (Diseño). */
:root {
  --bg: #0a0a0a; --ink: #f5f5f2; --accent: #a9c8e8; --metal: #a7a9ae;
  --line: color-mix(in srgb, var(--ink) 13%, transparent);
  --muted: color-mix(in srgb, var(--ink) 62%, transparent);
  --soft: color-mix(in srgb, var(--ink) 6%, transparent);
  --display: 'Clash Display', 'Arial', sans-serif;
  --body: 'Satoshi', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --hero-size: 128px; --mobile-hero-size: 60px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
body.menu-open, body.modal-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: -.02em; line-height: .9; white-space: pre-line; text-wrap: balance; }
p { margin: 0; }
.micro, .section-label, .eyebrow, .hero-roles, .hero-coordinate, .portfolio-index, .filter, .nav-meta, .depth__index, dt { font: 500 11px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 10001; padding: 10px 16px; background: var(--ink); color: var(--bg); font-weight: 700; }
.skip-link:focus { top: 16px; }
.scroll-progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 950; background: linear-gradient(90deg, var(--metal), var(--accent)); transform-origin: 0 50%; transform: scaleX(0); }
.empty-copy { color: var(--muted); padding: 24px var(--gutter); }

/* ---------- Intro (UI only — the logo reveal itself happens in the hero canvas) ---------- */
.brand-intro { position: fixed; inset: 0; z-index: 1000; pointer-events: none; display: grid; align-content: end; padding: var(--gutter); gap: 14px; }
.brand-intro__kicker { display: flex; justify-content: space-between; font: 500 11px var(--mono); letter-spacing: .3em; color: var(--muted); }
.brand-intro__kicker span { animation: introText 1.2s .2s var(--ease) both; }
.brand-intro__kicker span + span { animation-delay: .45s; }
.brand-intro__bar { height: 1px; background: var(--line); overflow: hidden; }
.brand-intro__bar i { display: block; height: 100%; background: var(--ink); transform-origin: 0 50%; animation: introBar 2.4s var(--ease-io) both; }
.brand-intro__skip { pointer-events: auto; justify-self: end; padding: 10px 0; font: 500 11px var(--mono); letter-spacing: .2em; color: var(--muted); transition: color .3s; }
.brand-intro__skip:hover { color: var(--ink); }
.brand-intro.is-leaving { opacity: 0; transition: opacity .6s var(--ease); }
@keyframes introText { from { opacity: 0; transform: translateY(12px); } }
@keyframes introBar { from { transform: scaleX(0); } }

/* ---------- Navigation ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 900; display: flex; align-items: center; gap: 20px; padding: 18px var(--gutter); transition: background .5s, backdrop-filter .5s, opacity .8s .2s var(--ease), transform .8s .2s var(--ease); }
body.scrolled .nav { background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
/* backdrop-filter would make the fixed menu relative to the bar; drop it while the menu is open */
body.menu-open .nav { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.wordmark { display: inline-flex; align-items: baseline; gap: 6px; line-height: 1; }
.wordmark__name { font: 700 22px/1 var(--display); letter-spacing: -.02em; background: linear-gradient(100deg, var(--ink) 35%, var(--metal) 55%, var(--ink) 75%) 0 0 / 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; transition: background-position .9s var(--ease); }
.wordmark:hover .wordmark__name { background-position: -100% 0; }
.wordmark__sub { font: 500 10px var(--mono); letter-spacing: .24em; color: var(--accent); }
.nav-meta { display: flex; align-items: center; gap: 8px; color: var(--muted); margin-right: auto; }
.nav-meta i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.nav-connect, .menu-toggle { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; font: 500 12px var(--body); letter-spacing: .12em; transition: background .3s, color .3s, border-color .3s, translate .4s var(--ease); }
.nav-connect:hover, .menu-toggle:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.menu-toggle { position: relative; z-index: 2; }
.menu-toggle__icon { display: grid; gap: 4px; width: 16px; }
.menu-toggle__icon i { display: block; height: 1.5px; background: currentColor; transition: transform .45s var(--ease); }
body.menu-open .menu-toggle__icon i:first-child { transform: translateY(2.75px) rotate(45deg); }
body.menu-open .menu-toggle__icon i:last-child { transform: translateY(-2.75px) rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 1; display: grid; align-content: center; padding: 100px var(--gutter) 40px; background: var(--bg); visibility: hidden; clip-path: circle(0 at calc(100% - 60px) 40px); transition: clip-path .9s var(--ease-io), visibility 0s .9s; }
.menu.is-open { visibility: visible; clip-path: circle(150% at calc(100% - 60px) 40px); transition: clip-path .9s var(--ease-io); }
.menu__inner { display: grid; }
.menu__inner a { display: flex; align-items: baseline; gap: clamp(12px, 3vw, 40px); padding: 6px 0; border-bottom: 1px solid var(--line); font: 600 clamp(40px, 8.5vw, 120px)/1 var(--display); text-transform: uppercase; letter-spacing: -.02em; opacity: 0; transform: translateY(40px); transition: opacity .5s, transform .8s var(--ease), color .3s; }
.menu.is-open .menu__inner a { opacity: 1; transform: none; }
.menu.is-open .menu__inner a:nth-child(2) { transition-delay: .05s, .05s, 0s; } .menu.is-open .menu__inner a:nth-child(3) { transition-delay: .1s, .1s, 0s; }
.menu.is-open .menu__inner a:nth-child(4) { transition-delay: .15s, .15s, 0s; } .menu.is-open .menu__inner a:nth-child(5) { transition-delay: .2s, .2s, 0s; }
.menu.is-open .menu__inner a:nth-child(6) { transition-delay: .25s, .25s, 0s; }
.menu__inner a small { font: 500 12px var(--mono); color: var(--muted); letter-spacing: .1em; }
.menu__inner a:hover, .menu__inner a:focus-visible { color: var(--accent); }
.menu__inner a:hover span { font-style: italic; }
.menu__foot { margin-top: 32px; font: 500 11px var(--mono); letter-spacing: .14em; color: var(--muted); }

/* ---------- Hero: sticky stage, scroll drives camera through the logo ---------- */
.hero { --p: 0; position: relative; height: 210vh; }
.hero__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.hero__portrait { position: absolute; inset: 0; z-index: 0; opacity: clamp(0, calc(var(--p) * 1.9 - .55), .9); }
.hero__portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 25%; filter: grayscale(1) contrast(1.08) brightness(.62); transform: scale(calc(1.32 - var(--p) * .32)); }
.hero__portrait::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg) 0%, transparent 30%, transparent 55%, var(--bg) 100%), linear-gradient(90deg, var(--bg), transparent 60%); }
.hero__grain { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: radial-gradient(120% 80% at 50% 120%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 60%); }
.hero__logo-fallback { display: none; position: absolute; inset: 0 0 28%; z-index: 1; place-items: center; opacity: calc(1 - var(--p) * 2); transform: scale(calc(1 + var(--p) * 2.4)); }
.hero__logo-fallback::before { content: "TAILY"; font: 700 min(26vw, 340px)/1 var(--display); letter-spacing: -.03em; background: linear-gradient(115deg, #3b3d42 10%, #f4f3f0 30%, #8a8d93 42%, #fff 50%, #6c6f75 60%, var(--accent) 80%, #2b2c30 95%) 0 0 / 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: chrome 6s linear infinite; }
@keyframes chrome { to { background-position: -300% 0; } }
body.no-webgl .hero__canvas { display: none; }
body.no-webgl .hero__logo-fallback { display: grid; }
.hero-content { position: absolute; z-index: 3; left: var(--gutter); right: var(--gutter); bottom: calc(var(--gutter) + 76px); display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr); align-items: end; gap: 32px; pointer-events: none; }
.hero-content > * { pointer-events: auto; }
.hero-name { transform: translate3d(0, calc(var(--p) * -14vh), 0); }
.eyebrow { color: var(--accent); margin-bottom: 18px; opacity: calc(1 - var(--p) * 3); }
#hero-title { font-size: clamp(44px, 7vw, var(--hero-size)); line-height: .86; text-wrap: wrap; letter-spacing: calc(-.025em + var(--p) * .06em); }
.hero-side { display: grid; gap: 18px; max-width: 420px; justify-self: end; opacity: calc(1 - var(--p) * 2.2); transform: translate3d(calc(var(--p) * 10vw), 0, 0); }
.hero-description { font-size: clamp(16px, 1.35vw, 19px); line-height: 1.45; color: color-mix(in srgb, var(--ink) 84%, transparent); }
.hero-roles { color: var(--muted); }
.hero-footer { position: absolute; z-index: 3; left: var(--gutter); right: var(--gutter); bottom: var(--gutter); display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 18px; border-top: 1px solid var(--line); opacity: calc(1 - var(--p) * 2.5); }
.hero-coordinate { color: var(--muted); }
.explore { display: inline-flex; align-items: center; gap: 12px; font: 500 12px var(--body); letter-spacing: .14em; }
.circle-arrow { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; animation: nudge 2.4s var(--ease) infinite; }
@keyframes nudge { 50% { transform: translateY(5px); } }
body.hero-free .hero-content { display: block; inset: 0; }
body.hero-free .hero-name { position: absolute; left: var(--hero-title-x, 6%); top: var(--hero-title-y, 35%); }
body.hero-free .hero-side { position: absolute; left: var(--hero-tagline-x, 60%); top: var(--hero-tagline-y, 70%); }
/* intro choreography */
body.intro-run .nav, body.intro-run .hero-content, body.intro-run .hero-footer { opacity: 0; transform: translateY(24px); }
body.intro-done .hero-name, body.intro-done .hero-side, body.intro-done .hero-footer { animation: rise 1.2s var(--ease) both; }
body.intro-done .hero-side { animation-delay: .15s; } body.intro-done .hero-footer { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; translate: 0 30px; } }

/* ---------- Section system ---------- */
.section-shell { position: relative; padding: clamp(96px, 13vw, 200px) var(--gutter); }
.section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); align-items: end; gap: 20px 40px; margin-bottom: clamp(36px, 6vw, 72px); }
.section-heading .section-label { grid-column: 1 / -1; }
.section-heading h2 { font-size: clamp(44px, 8vw, 128px); }
.section-heading > p:not(.section-label) { color: var(--muted); font-size: clamp(15px, 1.2vw, 17px); }
.section-label { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.section-label::before { content: ''; width: 28px; height: 1px; background: currentColor; transform-origin: 0 50%; transition: transform 1s .2s var(--ease); }
.js .section-label:not(.is-visible)::before { transform: scaleX(0); }
.text-button { display: inline-flex; align-items: center; gap: 12px; margin-top: 40px; padding: 16px 26px; border: 1px solid var(--line); border-radius: 999px; font: 500 12px var(--body); letter-spacing: .14em; transition: background .3s, color .3s, translate .4s var(--ease); }
.text-button:hover { background: var(--ink); color: var(--bg); }
.magnetic { translate: var(--mx, 0) var(--my, 0); }
/* reveals (only when JS runs and motion is allowed) */
.js .title-reveal { clip-path: inset(0 0 100% 0); transform: translateY(18%); transition: clip-path 1.2s var(--ease), transform 1.2s var(--ease); }
.js .title-reveal.is-visible { clip-path: inset(-10% -5% -15% -5%); transform: none; }
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-mask { clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--ease-io); }
.js .reveal-mask img { transform: scale(1.25); transition: transform 1.8s var(--ease); }
.js .reveal-mask.is-visible { clip-path: inset(0); }
.js .reveal-mask.is-visible img { transform: none; }

/* ---------- Work: filters + depth gallery ---------- */
.portfolio { padding-bottom: clamp(60px, 8vw, 120px); }
.portfolio-controls { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; padding: 18px 0; border-block: 1px solid var(--line); }
.portfolio-index { display: flex; gap: 18px; color: var(--muted); }
.portfolio-index strong { color: var(--ink); font-weight: 500; }
.portfolio-index b { color: var(--accent); font-weight: 500; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); transition: background .3s, color .3s, border-color .3s; }
.filter:hover { color: var(--ink); border-color: var(--ink); }
.filter.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
/* flat grid: no JS, reduced motion, studio */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 200px), 1fr)); gap: clamp(12px, 2vw, 24px); margin-top: 32px; }
.depth__hud, .depth__rail { display: none; }
.cover-card { position: relative; display: block; outline-offset: 6px; }
.cover-art { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: 3px; background: var(--soft); box-shadow: 0 0 0 1px var(--line), 0 30px 60px -24px rgba(0, 0, 0, .85); transform: perspective(900px) rotateX(var(--ty, 0deg)) rotateY(var(--tx, 0deg)); transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.cover-art img { width: 100%; height: 100%; object-fit: cover; }
.cover-shine { position: absolute; inset: 0; z-index: 1; aspect-ratio: 1; border-radius: 3px; pointer-events: none; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .22) 48%, transparent 60%) var(--sx, -60%) 0 / 260% 100% no-repeat; opacity: 0; mix-blend-mode: screen; transition: opacity .4s; }
.cover-card:hover .cover-shine { opacity: 1; }
.cover-caption { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding-top: 12px; }
.cover-caption strong { font: 600 16px/1.1 var(--display); text-transform: uppercase; }
.cover-caption small { grid-row: 2; color: var(--muted); font-size: 13px; }
.cover-caption i { grid-row: 1 / 3; grid-column: 2; align-self: center; font-style: normal; color: var(--muted); transition: transform .4s var(--ease), color .3s; }
.cover-card:hover .cover-caption i { transform: translate(3px, -3px); color: var(--accent); }
/* 3D depth mode */
.depth.is-3d { position: relative; height: var(--depth-h, 600vh); margin-inline: calc(var(--gutter) * -1); }
.depth.is-3d .depth__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; perspective: 1000px; perspective-origin: 50% 46%; }
.depth.is-3d .depth__sticky::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 50% at 50% 46%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%); }
.depth.is-3d .gallery { display: block; position: absolute; inset: 0; margin: 0; }
.depth.is-3d .cover-card { position: absolute; left: 50%; top: 46%; width: min(44vh, 30vw); will-change: transform, opacity; }
.depth.is-3d .cover-caption { display: none; }
.depth.is-3d .cover-card:not(.is-front) .cover-art { filter: brightness(.55) saturate(.8); }
.depth.is-3d .cover-art { transition: transform .6s var(--ease), filter .6s var(--ease), box-shadow .6s; }
.depth.is-3d .cover-card.is-front .cover-art { box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 30%, transparent), 0 50px 120px -30px rgba(0, 0, 0, .95), 0 0 90px -30px var(--accent); }
.depth.is-3d .depth__hud { display: grid; position: absolute; z-index: 3000; left: var(--gutter); bottom: var(--gutter); gap: 6px; max-width: min(70vw, 900px); pointer-events: none; mix-blend-mode: difference; }
.depth__index { color: var(--muted); }
.depth__index b { color: var(--ink); font-weight: 500; }
.depth__title { font: 600 clamp(34px, 6.4vw, 104px)/.9 var(--display); text-transform: uppercase; letter-spacing: -.02em; }
.depth__title.is-in { animation: hudIn .7s var(--ease); }
@keyframes hudIn { from { clip-path: inset(0 0 100% 0); transform: translateY(20%); } }
.depth__artist { color: var(--muted); font-size: 14px; }
.depth.is-3d .depth__rail { display: block; position: absolute; z-index: 3000; right: var(--gutter); top: 50%; width: 1px; height: 28vh; translate: 0 -50%; background: var(--line); }
.depth__rail i { display: block; height: 100%; background: var(--ink); transform-origin: 50% 0; transform: scaleY(0); }
.portfolio > .text-button { margin-top: 48px; }

/* ---------- Motion / videos ---------- */
.video-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 24px; }
.video-card { border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--soft); }
.video-card-media { aspect-ratio: 16 / 9; background: #000; }
.video-card-media iframe, .video-card-media video { width: 100%; height: 100%; border: 0; display: block; }
.video-card-copy { display: grid; gap: 6px; padding: 18px 20px 22px; }
.video-card-copy h3 { font-size: 22px; }
.video-card-copy small { color: var(--accent); }
.video-card-copy p { color: var(--muted); }
.motion-empty { display: flex; align-items: center; gap: 24px; padding: 40px; border: 1px dashed var(--line); }
.motion-symbol { font: 600 48px var(--display); color: var(--accent); }

/* ---------- Vision / about ---------- */
.vision { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.vision-image { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 3px; }
.vision-image img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35); }
.vision-copy { display: grid; gap: 24px; }
.vision-copy h2 { font-size: clamp(36px, 5.4vw, 84px); }
.vision-copy > p:not(.section-label) { color: var(--muted); font-size: 18px; max-width: 52ch; }
.custom-section { display: grid; gap: 32px; }
.custom-section h2 { font-size: clamp(36px, 6vw, 96px); }
.custom-section p { color: var(--muted); max-width: 60ch; margin-top: 16px; }
.custom-section img { border-radius: 3px; }

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: grid; grid-template-columns: 56px 1fr 32px; align-items: center; gap: 12px; padding: 26px 0; cursor: pointer; list-style: none; font: 500 clamp(18px, 2vw, 26px)/1.25 var(--display); transition: color .3s, padding .4s var(--ease); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); padding-left: 8px; }
.faq-number { font: 500 12px var(--mono); color: var(--muted); }
.faq-plus { justify-self: end; font: 300 28px/1 var(--body); transition: transform .5s var(--ease); }
.faq-item[open] .faq-plus { transform: rotate(45deg); }
.faq-answer { padding: 0 44px 28px 68px; max-width: 80ch; color: var(--muted); font-size: 17px; }
.faq-item[open] .faq-answer { animation: rise .7s var(--ease); }

/* ---------- Contact ---------- */
.contact { overflow: hidden; }
.contact-marquee { position: absolute; inset: 40px 0 auto; z-index: -1; overflow: hidden; pointer-events: none; opacity: .07; }
.contact-marquee div { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.contact-marquee span { padding-right: 6vw; font: 700 22vw/1 var(--display); color: transparent; -webkit-text-stroke: 1px var(--ink); }
@keyframes marquee { to { transform: translateX(-50%); } }
#contact-title { margin: 24px 0 clamp(48px, 7vw, 96px); font-size: clamp(52px, 11vw, 190px); line-height: .84; background: linear-gradient(100deg, var(--ink) 30%, var(--metal) 55%, var(--ink) 75%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact-info { display: grid; gap: 36px; }
#contact-copy { font-size: clamp(18px, 1.7vw, 24px); line-height: 1.4; max-width: 34ch; }
.services { display: grid; gap: 12px; }
.micro { color: var(--muted); }
.services ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.services li { display: flex; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font: 500 clamp(18px, 1.8vw, 24px) var(--display); text-transform: uppercase; }
.services li small { font: 500 11px var(--mono); color: var(--accent); }
.contact-links { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-links a { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border: 1px solid var(--line); border-radius: 999px; font: 500 12px var(--body); letter-spacing: .14em; transition: background .3s, color .3s, border-color .3s, translate .4s var(--ease); }
.contact-links a:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.brief-form { display: grid; gap: 22px; padding: clamp(24px, 3vw, 40px); border: 1px solid var(--line); border-radius: 6px; background: linear-gradient(160deg, var(--soft), transparent 60%); }
.brief-form label { display: grid; gap: 8px; }
.brief-form label span { font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.brief-form input, .brief-form select, .brief-form textarea { width: 100%; min-height: 48px; padding: 10px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; font-size: 17px; transition: border-color .3s; }
.brief-form select { appearance: none; background: transparent; cursor: pointer; }
.brief-form select option { background: var(--bg); color: var(--ink); }
.brief-form textarea { resize: vertical; min-height: 110px; }
.brief-form input:focus, .brief-form select:focus, .brief-form textarea:focus { outline: 0; border-color: var(--accent); }
.brief-submit { display: flex; justify-content: space-between; align-items: center; min-height: 56px; padding: 0 24px; border-radius: 999px; background: var(--ink); color: var(--bg); font: 600 13px var(--body); letter-spacing: .14em; transition: background .3s, translate .4s var(--ease); }
.brief-submit:hover { background: var(--accent); }
.brief-message { min-height: 1.5em; font-size: 14px; color: var(--accent); }
.brief-message.is-error { color: #ff9a8a; }

/* ---------- Giveaway (keeps panel behaviour) ---------- */
.giveaway-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.giveaway-live { display: inline-flex; align-items: center; gap: 8px; font: 500 11px var(--mono); letter-spacing: .14em; }
.giveaway-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 1.6s infinite; }
.giveaway.is-closed .giveaway-live i { background: var(--muted); animation: none; }
.giveaway-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.giveaway-prize { color: var(--accent); font: 500 12px var(--mono); letter-spacing: .14em; }
.giveaway-copy h2 { font-size: clamp(40px, 6vw, 96px); margin: 16px 0; }
.giveaway-copy p { color: var(--muted); }
.giveaway-card { display: grid; gap: 20px; padding: 32px; border: 1px solid var(--line); border-radius: 6px; }
.giveaway-score { display: flex; justify-content: space-between; font: 500 12px var(--mono); }
.giveaway-progress { height: 4px; background: var(--soft); border-radius: 4px; overflow: hidden; }
.giveaway-progress i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .8s var(--ease); }
.giveaway-form { display: grid; gap: 12px; }
.giveaway-input { display: flex; align-items: center; gap: 6px; border-bottom: 1px solid var(--line); }
.giveaway-input input { flex: 1; min-height: 48px; border: 0; background: transparent; }
.giveaway-honeypot { position: absolute; left: -9999px; }
#giveaway-submit { display: flex; justify-content: space-between; min-height: 52px; align-items: center; padding: 0 22px; border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: 600; letter-spacing: .1em; }
#giveaway-submit:disabled { opacity: .4; cursor: not-allowed; }
#giveaway-help { font-size: 13px; color: var(--muted); }
.giveaway-message.is-error { color: #ff9a8a; } .giveaway-message.is-success { color: var(--accent); }

/* ---------- Footer ---------- */
.footer { padding: 0 var(--gutter) calc(var(--gutter) + 72px); overflow: hidden; }
.footer__brand { font: 700 clamp(90px, 27vw, 460px)/.8 var(--display); letter-spacing: -.04em; text-align: center; background: linear-gradient(180deg, var(--ink), color-mix(in srgb, var(--metal) 40%, transparent) 70%, transparent); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; }
.js .footer__brand { transform: translateY(30%); opacity: 0; transition: transform 1.6s var(--ease), opacity 1.2s; }
.js .footer__brand.is-visible { transform: none; opacity: 1; }
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; padding-top: 24px; border-top: 1px solid var(--line); font: 500 11px var(--mono); letter-spacing: .14em; color: var(--muted); }
.footer__row a:hover { color: var(--ink); }
.visitor-section { display: inline-flex; gap: 10px; }
.visitor-section strong { color: var(--ink); font-weight: 500; }

/* ---------- Project dialog (ficha) ---------- */
.project-dialog { width: min(1200px, calc(100vw - 32px)); max-height: calc(100vh - 32px); max-height: calc(100svh - 32px); padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); overflow: auto; }
.project-dialog[open] { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.project-dialog::backdrop { background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.close-dialog { position: absolute; top: 14px; right: 14px; z-index: 2; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--bg); font-size: 22px; transition: transform .4s var(--ease); }
.close-dialog:hover { transform: rotate(90deg); }
.dialog-art { background: #000; }
.dialog-art img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; }
.dialog-info { display: grid; align-content: center; gap: 22px; padding: clamp(28px, 4vw, 56px); }
.dialog-info h2 { font-size: clamp(36px, 4.6vw, 72px); }
.dialog-info dl { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0; padding: 18px 0; border-block: 1px solid var(--line); }
.dialog-info dt { color: var(--muted); margin-bottom: 4px; }
.dialog-info dd { margin: 0; font-weight: 500; }
#dialog-text { color: var(--muted); font-size: 17px; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.dialog-link, .listen-project { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; font: 600 12px var(--body); letter-spacing: .12em; }
.dialog-link { background: var(--ink); color: var(--bg); }
.dialog-link:hover { background: var(--accent); }
.listen-project { border: 1px solid var(--line); }
.dialog-nav { display: flex; align-items: center; gap: 16px; font: 500 12px var(--mono); color: var(--muted); }
.dialog-nav button { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; transition: background .3s, color .3s; }
.dialog-nav button:hover { background: var(--ink); color: var(--bg); }
::view-transition-group(cover-focus) { animation-duration: .7s; animation-timing-function: cubic-bezier(.22, 1, .36, 1); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .4s; }

/* ---------- Music player ---------- */
.music-player { position: fixed; right: 16px; bottom: 16px; z-index: 800; display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 32px); padding: 8px 10px 8px 8px; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.music-player, .player-restore { transition: opacity .5s, translate .6s var(--ease); }
body:not(.scrolled) .music-player, body:not(.scrolled) .player-restore, body.intro-run .music-player { opacity: 0; translate: 0 24px; pointer-events: none; }
.player-art-button img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.player-copy { display: grid; min-width: 0; max-width: 150px; line-height: 1.2; }
.player-copy span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 600 13px var(--display); text-transform: uppercase; }
.player-copy small { color: var(--muted); font-size: 11px; }
.player-controls { display: flex; gap: 2px; }
.player-controls button, .player-mute, .player-close { width: 36px; height: 36px; border-radius: 50%; transition: background .3s; }
.player-controls button:hover, .player-mute:hover, .player-close:hover { background: var(--soft); }
.player-play { background: var(--ink) !important; color: var(--bg); }
.player-volume { display: flex; align-items: center; }
.player-volume input { width: 70px; accent-color: var(--accent); }
.player-list { position: absolute; right: 0; bottom: calc(100% + 10px); width: min(320px, calc(100vw - 32px)); max-height: 50vh; overflow: auto; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.player-track { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 10px; width: 100%; padding: 8px; border-radius: 8px; text-align: left; }
.player-track:hover, .player-track.is-current { background: var(--soft); }
.player-track img { width: 42px; height: 42px; border-radius: 4px; object-fit: cover; }
.player-track div { display: grid; } .player-track small { color: var(--muted); }
.player-restore { position: fixed; right: 16px; bottom: 16px; z-index: 800; min-height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); font: 500 12px var(--body); letter-spacing: .12em; }

/* ---------- Cursor ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 9999; pointer-events: none; opacity: 0; transition: opacity .3s; }
.cursor.is-on { opacity: 1; }
.cursor__ring { position: absolute; left: -18px; top: -18px; width: 36px; height: 36px; border: 1px solid color-mix(in srgb, var(--ink) 60%, transparent); border-radius: 50%; transition: transform .45s var(--ease), background .3s, border-color .3s; }
.cursor__label { position: absolute; left: -40px; top: -40px; width: 80px; height: 80px; display: grid; place-items: center; font: 600 11px var(--mono); letter-spacing: .16em; color: var(--bg); opacity: 0; transform: scale(.4); transition: opacity .3s, transform .45s var(--ease); }
.cursor.is-link .cursor__ring { transform: scale(1.6); background: color-mix(in srgb, var(--ink) 10%, transparent); }
.cursor.is-view .cursor__ring { transform: scale(2.3); background: var(--ink); border-color: var(--ink); }
.cursor.is-view .cursor__label { opacity: 1; transform: none; }
.cursor.is-text .cursor__ring { transform: scale(.4); }
.cursor.is-down .cursor__ring { transform: scale(.8); }

/* ---------- Studio preview (admin iframe): everything visible, no scroll theatre ---------- */
.studio-preview .hero { height: 100vh; }
.studio-preview .title-reveal, .studio-preview .reveal, .studio-preview .reveal-mask, .studio-preview .reveal-mask img, .studio-preview .footer__brand { clip-path: none !important; opacity: 1 !important; transform: none !important; }
.studio-preview [contenteditable] { outline: 1px dashed color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 4px; }
.studio-preview .studio-selected { outline: 2px solid var(--accent); outline-offset: -2px; }

/* ---------- Inner pages: case studies, archive, flyers, about ---------- */
.inner-shell { padding: clamp(110px, 14vw, 170px) var(--gutter) clamp(60px, 8vw, 120px); }
.menu__inner a[aria-current="page"] { color: var(--accent); }
.case-back { display: inline-flex; gap: 10px; margin-bottom: clamp(32px, 5vw, 64px); font: 500 11px var(--mono); letter-spacing: .14em; color: var(--muted); transition: color .3s, translate .4s var(--ease); }
.case-back:hover { color: var(--ink); }
.case-head { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: end; gap: 24px 48px; margin-bottom: clamp(40px, 6vw, 80px); }
.case-head .section-label { grid-column: 1 / -1; }
.case-head h1 { font-size: clamp(34px, 10vw, 168px); line-height: .88; overflow-wrap: anywhere; }
.case-head--index, .case-head--solo { grid-template-columns: 1fr; }
.case-head--solo { min-height: 60vh; align-content: center; }
.case-head--solo .text-button { justify-self: start; }
.case-intro { color: var(--muted); font-size: clamp(16px, 1.4vw, 19px); }
.case-intro b { color: var(--accent); font: 500 13px var(--mono); letter-spacing: .1em; }
.case-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; margin: 0; padding-top: 18px; border-top: 1px solid var(--line); }
.case-meta dt { color: var(--muted); margin-bottom: 4px; }
.case-meta dd { margin: 0; font-weight: 500; }
.case-hero { position: relative; display: grid; place-items: center; padding: clamp(24px, 6vw, 96px) 0; margin-inline: calc(var(--gutter) * -1); overflow: hidden; isolation: isolate; }
.case-ambient { position: absolute; inset: -20%; z-index: -1; width: 140%; height: 140%; object-fit: cover; filter: blur(80px) saturate(1.4) brightness(.45); opacity: .7; }
.case-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--bg), transparent 25%, transparent 75%, var(--bg)); }
.case-cover { width: min(880px, calc(100% - var(--gutter) * 2)); border-radius: 4px; box-shadow: 0 60px 140px -40px rgba(0, 0, 0, .95), 0 0 0 1px var(--line); overflow: hidden; }
.case-cover img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.case-hero--portrait .case-cover { width: min(620px, calc(100% - var(--gutter) * 2)); }
.case-hero--portrait .case-cover img { aspect-ratio: 4 / 5; }
.case-block { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 20px 48px; padding: clamp(40px, 6vw, 80px) 0; border-bottom: 1px solid var(--line); }
.case-lead { font: 500 clamp(22px, 2.6vw, 38px)/1.25 var(--display); letter-spacing: -.01em; text-wrap: pretty; }
.about-hero h1 em, .about-closing h2 em { font-style: normal; color: var(--accent); }
.case-text { color: var(--muted); font-size: 18px; white-space: pre-line; }
.case-audio { width: 100%; max-width: 520px; accent-color: var(--accent); }
.case-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(16px, 2vw, 28px); padding: clamp(40px, 6vw, 80px) 0; }
.case-gallery figure { margin: 0; border-radius: 4px; overflow: hidden; }
.case-gallery img { width: 100%; height: auto; }
.case-gallery figcaption { padding: 10px 0; font: 500 11px var(--mono); letter-spacing: .12em; color: var(--muted); }
.case-video video { width: 100%; border-radius: 4px; background: #000; }
.case-next { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px 32px; margin-top: clamp(48px, 8vw, 120px); padding: clamp(28px, 4vw, 48px) 0; border-block: 1px solid var(--line); overflow: hidden; }
.case-next .section-label { grid-column: 1 / -1; }
.case-next strong { font: 600 clamp(40px, 8vw, 128px)/.9 var(--display); text-transform: uppercase; letter-spacing: -.02em; transition: color .4s, transform .6s var(--ease); }
.case-next img { grid-row: 2; grid-column: 2; width: clamp(80px, 12vw, 180px); aspect-ratio: 1; object-fit: cover; border-radius: 4px; transform: rotate(-6deg) scale(.9); opacity: .65; transition: transform .6s var(--ease), opacity .4s; }
.case-next i { position: absolute; right: 0; top: clamp(28px, 4vw, 48px); font-style: normal; color: var(--muted); }
.case-next:hover strong { color: var(--accent); transform: translateX(12px); }
.case-next:hover img { transform: rotate(0) scale(1); opacity: 1; }
.inner .gallery { margin-top: 0; }
.gallery--flyers { grid-template-columns: repeat(auto-fill, minmax(min(46%, 240px), 1fr)); }
.cover-card--flyer .cover-art, .cover-card--flyer .cover-shine { aspect-ratio: 4 / 5; }
.empty-state { grid-column: 1 / -1; display: grid; justify-items: center; gap: 18px; padding: clamp(60px, 10vw, 140px) 24px; border: 1px dashed var(--line); border-radius: 8px; text-align: center; }
.empty-state span { font-size: 32px; color: var(--accent); }
.empty-state h2 { font-size: clamp(36px, 6vw, 88px); }
.empty-state p { max-width: 42ch; color: var(--muted); }
/* about */
.about-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 6vw, 96px); min-height: calc(100svh - 200px); }
.about-hero__copy { display: grid; gap: 28px; justify-items: start; }
.about-hero h1 { font-size: clamp(52px, 8.4vw, 140px); line-height: .94; }
.about-story .case-lead { font: 400 clamp(19px, 1.8vw, 26px)/1.5 var(--body); color: color-mix(in srgb, var(--ink) 86%, transparent); max-width: 60ch; }
.about-hero .text-button { margin-top: 8px; }
.about-hero__photo { margin: 0; }
.about-hero__photo .reveal-mask { aspect-ratio: 4 / 5; border-radius: 4px; overflow: hidden; }
.about-hero__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.2) contrast(1.05); }
.about-hero__photo figcaption { display: flex; justify-content: space-between; padding-top: 12px; font: 500 11px var(--mono); letter-spacing: .14em; color: var(--muted); }
.about-kicker { margin-bottom: 24px; font: 600 clamp(36px, 5vw, 80px)/.9 var(--display); text-transform: uppercase; letter-spacing: -.02em; white-space: pre-line; }
.about-impact { display: grid; justify-items: center; gap: 18px; padding: clamp(80px, 12vw, 180px) 0; text-align: center; }
.about-impact__number { font: 700 clamp(96px, 22vw, 340px)/.8 var(--display); letter-spacing: -.05em; background: linear-gradient(180deg, var(--ink) 20%, var(--metal) 60%, color-mix(in srgb, var(--accent) 60%, var(--bg))); -webkit-background-clip: text; background-clip: text; color: transparent; }
.about-impact h2 { font-size: clamp(32px, 5vw, 72px); }
.about-impact > p:not(.section-label) { max-width: 46ch; color: var(--muted); font-size: 18px; }
.about-impact small { max-width: 60ch; color: color-mix(in srgb, var(--ink) 40%, transparent); font-size: 12px; }
.about-services { padding: clamp(60px, 8vw, 120px) 0; }
.about-services__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); border-top: 1px solid var(--line); }
.about-services__grid article { display: grid; align-content: start; gap: 14px; padding: 28px 24px 36px 0; border-bottom: 1px solid var(--line); }
.about-services__grid span { font: 500 11px var(--mono); color: var(--accent); }
.about-services__grid h3 { font-size: clamp(22px, 2vw, 30px); line-height: 1; }
.about-services__grid p { color: var(--muted); }
.about-artists__list { font: 500 clamp(26px, 3.6vw, 56px)/1.15 var(--display); text-transform: uppercase; letter-spacing: -.01em; text-wrap: balance; }
.companies { padding: clamp(80px, 10vw, 160px) 0; }
.companies .section-heading { grid-template-columns: minmax(0, 1fr) auto; }
.companies .section-heading h2 { font-size: clamp(36px, 6vw, 96px); }
#logo-pause { align-self: end; }
.logo-window { overflow: hidden; margin-inline: calc(var(--gutter) * -1); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.logo-track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.logo-track.paused, .logo-window:hover .logo-track { animation-play-state: paused; }
.logo-set { display: flex; gap: 14px; padding-right: 14px; }
.logo-card { display: grid; place-items: center; gap: 10px; width: 180px; height: 130px; padding: 16px; border: 1px solid var(--line); border-radius: 6px; background: var(--soft); }
.logo-card img { max-width: 110px; max-height: 56px; object-fit: contain; filter: grayscale(1) brightness(2.2); opacity: .85; }
.logo-card span { font: 500 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-align: center; }
.about-closing { display: grid; justify-items: start; gap: 28px; padding: clamp(80px, 10vw, 160px) 0 0; }
.about-closing h2 { font-size: clamp(56px, 11vw, 190px); line-height: .84; }
.about-closing .brief-submit { min-width: min(100%, 420px); gap: 24px; }

/* ---------- Tablet & mobile: composed, not shrunk ---------- */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; gap: 22px; }
  .hero-side { justify-self: start; }
  .contact-grid, .giveaway-grid, .vision { grid-template-columns: 1fr; }
  .project-dialog[open] { grid-template-columns: 1fr; }
  .dialog-art img { max-height: 60svh; }
}
@media (max-width: 760px) {
  body { font-size: 15px; }
  .nav { gap: 10px; padding-block: 12px; }
  .nav-meta, .nav-connect { display: none; }
  .menu-toggle { margin-left: auto; }
  .wordmark__name { font-size: 20px; }
  .hero { height: 190vh; }
  .hero-content { bottom: calc(var(--gutter) + 70px); }
  #hero-title { font-size: min(var(--mobile-hero-size), 13.5vw); }
  .hero-description { font-size: 15px; }
  .hero-roles { display: none; }
  .hero-coordinate { max-width: 60%; font-size: 10px; }
  .section-heading { grid-template-columns: 1fr; }
  .section-heading h2 { font-size: min(15vw, 72px); }
  .portfolio-controls { flex-direction: column; align-items: flex-start; }
  .filter-row { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; padding-bottom: 2px; }
  .filter { flex: none; }
  .depth.is-3d .cover-card { width: min(66vw, 40vh); top: 42%; }
  .depth.is-3d .depth__sticky { perspective-origin: 50% 42%; }
  .depth.is-3d .depth__rail { display: none; }
  .depth.is-3d .depth__hud { bottom: calc(var(--gutter) + 84px); }
  .faq-item summary { grid-template-columns: 36px 1fr 24px; padding: 20px 0; }
  .faq-answer { padding: 0 0 22px 48px; font-size: 15px; }
  #contact-title { font-size: min(17vw, 96px); }
  .dialog-info dl { grid-template-columns: 1fr; }
  .player-volume, .player-copy small { display: none; }
  .player-copy { max-width: 110px; }
  .footer { padding-bottom: calc(var(--gutter) + 80px); }
  .footer__row { flex-direction: column; align-items: flex-start; }
  .case-head, .case-block, .about-hero, .companies .section-heading { grid-template-columns: 1fr; }
  .case-next img { display: none; }
  .about-hero { min-height: 0; }
  .logo-card { width: 150px; height: 112px; }
}

/* ---------- Reduced motion: same content and layout, no movement ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .hero { height: 100vh; height: 100svh; }
  .hero__portrait { opacity: .35; }
  .js .title-reveal, .js .reveal, .js .reveal-mask, .js .reveal-mask img, .js .footer__brand { clip-path: none; opacity: 1; transform: none; }
  .js .section-label:not(.is-visible)::before { transform: none; }
}
