/* ==========================================================
   alexcerrato.com V3 — editorial cinematográfico
   ========================================================== */
@font-face { font-family: "Anton"; src: url("/static/fonts/anton.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("/static/fonts/intertight.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "JB Mono"; src: url("/static/fonts/jbmono.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --grad: linear-gradient(90deg, #e11d48 0%, #f97316 100%);
  --red: #e11d48;
  --orange: #f97316;
  --bar: #000;
  --display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JB Mono", ui-monospace, Consolas, monospace;
  --pad: clamp(20px, 5vw, 72px);
  --max: 1320px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}
html[data-theme="dark"] {
  --bg: #0f0d0c;
  --bg-2: #181513;
  --bg-3: #221e1b;
  --line: #2c2723;
  --text: #ece6dd;
  --muted: #a39a8f;
  --logo-filter: brightness(0) invert(1);
  color-scheme: dark;
}
html[data-theme="light"] {
  --bg: #e6e4e0;
  --bg-2: #f3f2ef;
  --bg-3: #dad7d1;
  --line: #c9c4bc;
  --text: #171412;
  --muted: #5b544c;
  --logo-filter: brightness(0);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  transition: background-color .35s, color .35s;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--text); color: var(--bg); padding: 8px 14px; z-index: 200; }
.skip:focus { left: 8px; }

.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
html[data-theme="dark"] .ic-moon, html[data-theme="light"] .ic-sun { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-weight: 600; font-size: 15px; line-height: 1;
  text-decoration: none; cursor: pointer;
  transition: transform .18s var(--ease), background-color .2s, border-color .2s, box-shadow .2s;
}
.btn:active { transform: scale(.97); }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn-solid { background: var(--text); color: var(--bg); }
.btn-solid:hover { background: var(--orange); color: #fff; }
.btn-ghost { border-color: var(--line); background: transparent; }
.btn-ghost:hover { border-color: var(--text); }
.btn-cv { background: var(--grad); color: #fff; box-shadow: 0 6px 22px rgba(225, 29, 72, .32); }
.btn-cv:hover { box-shadow: 0 8px 30px rgba(249, 115, 22, .45); transform: translateY(-1px); }

/* ---------- Top bar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; gap: 24px;
  height: 68px; padding: 0 var(--pad);
  color: #f3eee7;
  transition: background-color .3s, color .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.topbar.solid {
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  color: var(--text);
  border-bottom-color: var(--line);
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; margin-right: auto; }
.brand-logo { width: 34px; height: 34px; object-fit: contain; }
.brand-logo-light { display: none; }
html[data-theme="light"] .topbar.solid .brand-logo-dark { display: none; }
html[data-theme="light"] .topbar.solid .brand-logo-light { display: block; }
.brand-name { font-family: var(--display); font-size: 21px; letter-spacing: .02em; text-transform: uppercase; }
.nav { display: flex; gap: 26px; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 500; opacity: .82; transition: opacity .2s; }
.nav a:hover { opacity: 1; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.topbar:not(.solid) .btn-solid { background: #f3eee7; color: #0f0d0c; }
.theme-toggle {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1.5px solid currentColor; border-color: color-mix(in srgb, currentColor 35%, transparent);
  background: transparent; cursor: pointer;
  transition: border-color .2s, transform .2s var(--ease);
}
.theme-toggle:hover { border-color: currentColor; transform: rotate(18deg); }
.burger { display: none; width: 40px; height: 40px; border: 0; background: transparent; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 9px; right: 9px; height: 1.75px; background: currentColor; transition: transform .25s var(--ease), top .25s var(--ease); }
.burger span:first-child { top: 15px; }
.burger span:last-child { top: 23px; }
.burger[aria-expanded="true"] span:first-child { top: 19px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 19px; transform: rotate(-45deg); }

.drawer {
  position: fixed; inset: 68px 0 0 0; z-index: 55;
  background: var(--bg);
  padding: 28px var(--pad) 40px;
  display: flex; flex-direction: column; gap: 32px;
  overflow-y: auto;
}
.drawer[hidden] { display: none; }
.drawer nav { display: flex; flex-direction: column; }
.drawer nav a { font-family: var(--display); font-size: 40px; line-height: 1.25; text-transform: uppercase; text-decoration: none; padding: 4px 0; border-bottom: 1px solid var(--line); }
.drawer-actions { display: grid; gap: 12px; }
.drawer-actions .btn { justify-content: center; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--bar); color: #f3eee7; min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; }
.letterbox {
  display: flex; align-items: center; gap: 22px;
  padding: 0 var(--pad);
  font-family: var(--mono); font-size: 12.5px; color: #b9b1a6;
}
.letterbox-top { height: max(68px, 9vh); padding-top: 68px; height: auto; min-height: calc(68px + 4vh); }
.letterbox-bottom { min-height: 11vh; justify-content: space-between; }
.rec { display: inline-flex; align-items: center; gap: 7px; color: #fff; letter-spacing: .08em; }
.rec-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(225, 29, 72, .22); animation: blink 1.4s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
.tc { color: #fff; font-variant-numeric: tabular-nums; }
.loc { margin-left: auto; font-family: var(--sans); font-size: 13.5px; }

.frame { position: relative; overflow: hidden; background: #000; min-height: 62vh; }
.reel { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.frame-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.45) 45%, rgba(0,0,0,.05) 100%), linear-gradient(0deg, rgba(0,0,0,.55), transparent 45%); }
.title-card {
  position: relative; z-index: 2;
  max-width: var(--max); margin: 0 auto;
  min-height: 62vh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 7vh var(--pad);
}
.kicker { margin: 0 0 14px; font-size: 16px; font-weight: 500; color: #ddd4c8; }
.name {
  margin: 0;
  font-family: var(--display); font-weight: 400;
  font-size: clamp(72px, min(13vw, 21vh), 210px);
  line-height: .84; letter-spacing: -.005em;
  text-transform: uppercase;
}
.name span { display: block; width: fit-content; }
.name span:last-child {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { max-width: 56ch; margin: 22px 0 28px; color: #d8d0c5; font-size: 17.5px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn-solid { background: #f3eee7; color: #0f0d0c; }
.hero .btn-solid:hover { background: var(--orange); color: #fff; }
.sound {
  position: absolute; z-index: 3; right: var(--pad); bottom: 7vh;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.4); background: rgba(0,0,0,.35); color: #fff;
  display: grid; place-items: center; cursor: pointer;
}
.sound:hover { border-color: #fff; }
.sound .ic-sound { display: none; }
.sound[aria-pressed="true"] .ic-sound { display: block; }
.sound[aria-pressed="true"] .ic-muted { display: none; }

.track { display: flex; align-items: center; gap: 12px; flex: 1; max-width: 520px; }
.track-label { color: #8a8278; }
.track-lane { flex: 1; display: flex; gap: 3px; height: 12px; }
.track-lane i { width: var(--w); background: #3a332e; border-radius: 2px; }
.track-lane i:nth-child(3) { background: var(--grad); }
.scroll-cue { font-family: var(--sans); font-size: 13.5px; text-decoration: none; color: #b9b1a6; }
.scroll-cue:hover { color: #fff; }

/* ---------- Sections ---------- */
section:not(.hero) { padding: clamp(80px, 11vw, 150px) var(--pad); }
section:not(.hero) > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.section-title {
  margin: 0;
  font-family: var(--display); font-weight: 400;
  font-size: clamp(44px, 6.4vw, 92px);
  line-height: .95; text-transform: uppercase;
}

/* Clients — muro de logos a color (fondo claro en ambos temas para respetar los colores de marca) */
.clients { background: #f4f3f0; color: #171412; padding-top: clamp(48px, 5vw, 72px) !important; padding-bottom: clamp(48px, 5vw, 72px) !important; }
.clients-title { text-align: center; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(24px, 2.4vw, 32px); line-height: 1; color: #171412; margin: 0 auto clamp(28px, 3vw, 40px); }
.logos { list-style: none; padding: 0; margin: 0 auto; display: flex; flex-wrap: nowrap; justify-content: space-between; align-items: center; gap: clamp(14px, 2vw, 32px); }
.logos li { display: grid; place-items: center; flex: 0 1 auto; min-width: 0; }
.logos img { height: clamp(18px, 1.9vw, 28px); width: auto; max-width: 100%; object-fit: contain; transition: transform .35s var(--ease); }
.logos img.tall { height: clamp(32px, 3.2vw, 46px); }
.logos img.wide { height: clamp(22px, 2.3vw, 32px); }
.logos li:hover img { transform: scale(1.08); }
@keyframes logos-mq { to { transform: translateX(-50%); } }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.about-photo { margin: 0; position: relative; }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(.15) contrast(1.04); }
.about-photo::after { content: ""; position: absolute; left: 0; bottom: -10px; width: 42%; height: 4px; background: var(--grad); }
.about-role { margin: 22px 0 26px; font-size: 19px; font-weight: 600; color: var(--muted); max-width: 46ch; }
.about-bio p { margin: 0 0 18px; max-width: 64ch; }
.about-bio strong { font-weight: 600; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 36px 0 24px; border-top: 1px solid var(--line); }
.facts div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts div:nth-child(odd) { padding-right: 20px; }
.facts dt { font-size: 13.5px; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 600; }
.facts a { text-decoration-color: var(--orange); text-underline-offset: 4px; }

/* Work — lista de créditos */
.work { position: relative; }
.work-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button {
  border: 1.5px solid var(--line); background: transparent; border-radius: 999px;
  padding: 8px 15px; font-size: 14px; cursor: pointer; color: var(--muted);
}
.filters button[aria-selected="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.credits { list-style: none; margin: 0 auto; padding: 0; border-top: 1px solid var(--line); }
.credit { position: relative; border-bottom: 1px solid var(--line); }
.credit-btn {
  width: 100%; text-align: left; background: transparent; border: 0; cursor: pointer;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 32px; align-items: baseline;
  padding: 26px 0;
}
.credit-client { grid-column: 1; font-size: 14.5px; color: var(--muted); }
.credit-title {
  grid-column: 1;
  font-family: var(--display); font-size: clamp(26px, 3.3vw, 46px); line-height: 1.04; text-transform: uppercase;
  transition: transform .35s var(--ease), color .2s;
}
.credit-cat { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 14px; color: var(--muted); text-align: right; max-width: 230px; }
.credit-btn:hover .credit-title, .credit-btn:focus-visible .credit-title { transform: translateX(14px); color: var(--orange); }
.credit-thumb { display: none; }
.credit .edit-btn { position: absolute; right: 0; top: 10px; }
.cursor-preview {
  position: fixed; left: 0; top: 0; z-index: 40; pointer-events: none;
  width: 340px; aspect-ratio: 16 / 9; overflow: hidden;
  opacity: 0; transform: translate3d(-50%, -50%, 0) scale(.9);
  transition: opacity .2s, transform .25s var(--ease);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
}
.cursor-preview.on { opacity: 1; }
.cursor-preview img { width: 100%; height: 100%; object-fit: cover; }
.work-admin { margin-top: 24px; }

/* Work — mosaico tipo storyboard */
.mosaic {
  list-style: none; margin: 0 auto; padding: 0;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: clamp(170px, 17vw, 250px);
  grid-auto-flow: dense;
  gap: clamp(10px, 1.2vw, 16px);
}
.tile { position: relative; min-width: 0; transition-delay: var(--d, 0ms); }
.tile-xl { grid-column: span 7; grid-row: span 2; }
.tile-md { grid-column: span 5; }
.tile-sm { grid-column: span 4; }
.tile-btn {
  --mx: 0; --my: 0;
  position: relative; display: block; width: 100%; height: 100%;
  padding: 0; border: 0; cursor: pointer; overflow: hidden;
  background: var(--bg-3); color: #f3eee7; text-align: left;
  border-radius: 6px;
  isolation: isolate;
}
.tile-img {
  position: absolute; inset: -4%; width: 108%; height: 108%; max-width: none; object-fit: cover;
  transform: translate3d(calc(var(--mx) * -14px), calc(var(--my) * -14px), 0) scale(1);
  transition: transform .9s var(--ease), filter .5s;
  filter: saturate(.85) brightness(.92);
}
.tile-btn:hover .tile-img, .tile-btn:focus-visible .tile-img {
  transform: translate3d(calc(var(--mx) * -14px), calc(var(--my) * -14px), 0) scale(1.06);
  filter: saturate(1.05) brightness(1);
}
.tile-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.86) 0%, rgba(0,0,0,.25) 48%, rgba(0,0,0,0) 72%); transition: opacity .4s; }
/* Esquinas de visor de cámara */
.tile-btn::before, .tile-btn::after {
  content: ""; position: absolute; z-index: 2; width: 22px; height: 22px;
  border: 0 solid #fff; opacity: 0; transition: opacity .3s, transform .4s var(--ease);
}
.tile-btn::before { top: 14px; left: 14px; border-top-width: 2px; border-left-width: 2px; transform: translate(6px, 6px); }
.tile-btn::after { bottom: 14px; right: 14px; border-bottom-width: 2px; border-right-width: 2px; transform: translate(-6px, -6px); }
.tile-btn:hover::before, .tile-btn:hover::after, .tile-btn:focus-visible::before, .tile-btn:focus-visible::after { opacity: .9; transform: none; }
.tile-tc {
  position: absolute; z-index: 2; top: 14px; right: 14px;
  font-size: 12.5px; font-weight: 600; padding: 5px 10px; border-radius: 999px;
  background: rgba(0,0,0,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  max-width: calc(100% - 28px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tile-info { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: clamp(14px, 1.6vw, 24px); display: grid; gap: 4px; }
.tile-client { font-size: 13.5px; color: #d4cbbf; transform: translateY(8px); opacity: .85; transition: transform .45s var(--ease), opacity .3s; }
.tile-title {
  font-family: var(--display); text-transform: uppercase; line-height: 1.02;
  font-size: clamp(20px, 1.9vw, 28px);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.tile-xl .tile-title { font-size: clamp(30px, 3.4vw, 54px); max-width: 16ch; }
.tile-btn:hover .tile-client, .tile-btn:focus-visible .tile-client { transform: none; opacity: 1; }
.tile-play {
  position: absolute; z-index: 2; left: 50%; top: 50%;
  width: 62px; height: 62px; margin: -31px 0 0 -31px; border-radius: 50%;
  display: grid; place-items: center; background: var(--grad); color: #fff;
  opacity: 0; transform: scale(.7); transition: opacity .3s, transform .4s var(--ease);
  box-shadow: 0 10px 30px rgba(225, 29, 72, .45);
}
.tile-play .ic { width: 24px; height: 24px; fill: currentColor; stroke: none; margin-left: 3px; }
.tile-btn:hover .tile-play, .tile-btn:focus-visible .tile-play { opacity: 1; transform: none; }
.tile .edit-btn { position: absolute; left: 12px; top: 12px; }

/* Scout */
.scout { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 90px); align-items: center; background: var(--bg-2); }
.scout > * { margin: 0; }
.scout { max-width: none; }
.scout-copy p { margin: 26px 0; max-width: 58ch; color: var(--muted); font-size: 18px; }
.scout-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.scout-points li { padding: 13px 0 13px 28px; border-bottom: 1px solid var(--line); position: relative; font-weight: 500; }
.scout-points li::before { content: ""; position: absolute; left: 0; top: 50%; width: 14px; height: 2px; background: var(--grad); }
.scout-shot { margin: 0; }
.scout-shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* Career */
.career-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 48px; }
.roles { list-style: none; margin: 0 auto; padding: 0; counter-reset: role; }
.roles li { counter-increment: role; display: grid; grid-template-columns: 90px minmax(0, 1fr); column-gap: 24px; padding: 26px 0; border-top: 1px solid var(--line); }
.roles li::before { content: counter(role, decimal-leading-zero); grid-row: 1 / span 2; font-family: var(--mono); font-size: 13px; color: var(--muted); padding-top: 6px; }
.roles h3 { margin: 0 0 6px; font-size: 21px; font-weight: 600; line-height: 1.3; }
.roles p { margin: 0; color: var(--muted); max-width: 70ch; }
.tools { margin-top: 56px; }
.tools h3 { margin: 0 0 16px; font-size: 16px; font-weight: 600; color: var(--muted); }
.tools ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tools li { border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 15px; }

/* Blog */
.blog { border-top: 1px solid var(--line); }
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.post { cursor: pointer; text-align: left; background: transparent; border: 0; padding: 0; }
.post-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-3); }
.post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post:hover .post-img img { transform: scale(1.04); }
.post-meta { display: block; margin: 16px 0 6px; font-size: 13.5px; color: var(--muted); }
.post-title { margin: 0; font-size: 21px; font-weight: 600; line-height: 1.3; }
.post-wrap { position: relative; }
.post-wrap .edit-btn { position: absolute; top: 10px; right: 10px; }

/* Transfer band */
.transfer-band {
  display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap;
  background: var(--bar); color: #f3eee7;
  padding-top: 64px !important; padding-bottom: 64px !important;
}
.transfer-band > div { margin: 0; }
.transfer-band h2 { margin: 0 0 8px; font-family: var(--display); font-weight: 400; font-size: clamp(32px, 4vw, 52px); text-transform: uppercase; line-height: 1; }
.transfer-band p { margin: 0; color: #b9b1a6; max-width: 56ch; }
.transfer-band .btn-solid { background: #f3eee7; color: #0f0d0c; margin: 0; }
.transfer-band .btn-solid:hover { background: var(--orange); color: #fff; }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 90px); align-items: start; }
.contact > * { margin: 0; }
.contact-copy p { color: var(--muted); max-width: 46ch; margin: 24px 0; font-size: 18px; }
.mail { font-weight: 600; font-size: 19px; text-decoration-color: var(--orange); text-underline-offset: 5px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 7px; font-size: 14px; color: var(--muted); }
.form .full { grid-column: 1 / -1; }
.form input, .form textarea {
  font: inherit; color: var(--text);
  background: var(--bg-2); border: 1.5px solid var(--line); border-radius: 12px;
  padding: 13px 15px; transition: border-color .2s;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--orange); }
.form textarea { resize: vertical; }
.form-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-status { margin: 0; font-size: 14.5px; color: var(--muted); }
.form-status.ok { color: #22c55e; }
.form-status.err { color: var(--red); }

/* Footer */
.footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 30px var(--pad); border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.admin-link { display: inline-flex; align-items: center; gap: 6px; background: transparent; border: 0; color: var(--muted); cursor: pointer; font-size: 13px; opacity: .55; }
.admin-link:hover { opacity: 1; }
.admin-link .ic { width: 14px; height: 14px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Modal ---------- */
.modal { border: 0; padding: 0; background: transparent; color: var(--text); width: min(1040px, 94vw); max-height: 92vh; }
.modal::backdrop { background: rgba(0, 0, 0, .78); backdrop-filter: blur(4px); }
.modal-inner { position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: clamp(22px, 4vw, 44px); max-height: 92vh; overflow-y: auto; }
.modal-close { position: sticky; top: 0; float: right; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--bg); display: grid; place-items: center; cursor: pointer; z-index: 2; }
.modal-close:hover { border-color: var(--text); }
.m-client { color: var(--muted); font-size: 15px; margin: 0 0 6px; }
.m-title { font-family: var(--display); font-weight: 400; font-size: clamp(32px, 4.4vw, 58px); line-height: 1; text-transform: uppercase; margin: 0 0 22px; max-width: 22ch; }
.m-hero { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--bg-3); }
.m-strip { display: flex; gap: 10px; margin-top: 10px; overflow-x: auto; }
.m-strip button { flex: 0 0 120px; aspect-ratio: 16 / 9; border: 2px solid transparent; padding: 0; cursor: pointer; background: none; }
.m-strip button[aria-current="true"] { border-color: var(--orange); }
.m-strip img { width: 100%; height: 100%; object-fit: cover; }
.m-body { margin-top: 26px; max-width: 70ch; }
.m-body p { margin: 0 0 14px; }
.m-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 20px 0 0; }
.m-tags li { font-size: 13.5px; border: 1.5px solid var(--line); border-radius: 999px; padding: 5px 12px; color: var(--muted); }
.yt { position: relative; aspect-ratio: 16 / 9; margin-top: 16px; background: #000; cursor: pointer; border: 0; padding: 0; width: 100%; display: block; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .82; }
.yt span { position: absolute; inset: 0; display: grid; place-items: center; }
.yt span i { width: 70px; height: 70px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: #fff; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Admin ---------- */
body:not(.is-admin) .admin-only { display: none !important; }
.chip-btn { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; border: 0; background: rgba(0,0,0,.72); color: #fff; font-size: 13.5px; cursor: pointer; }
.edit-btn { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--line); background: var(--bg); color: var(--text); border-radius: 999px; padding: 6px 12px; font-size: 13px; cursor: pointer; z-index: 3; }
.edit-btn .ic { width: 14px; height: 14px; }
.dock {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 70;
  display: flex; gap: 4px; padding: 6px; border-radius: 999px;
  background: var(--text); color: var(--bg); box-shadow: 0 16px 40px rgba(0,0,0,.4);
  max-width: calc(100vw - 24px); overflow-x: auto;
}
.dock button { border: 0; background: transparent; color: inherit; padding: 9px 14px; border-radius: 999px; cursor: pointer; font-size: 13.5px; white-space: nowrap; }
.dock button:hover { background: color-mix(in srgb, var(--bg) 16%, transparent); }
.dock .dock-out { color: var(--red); }
.af { display: grid; gap: 16px; }
.af h2 { font-family: var(--display); font-weight: 400; font-size: 40px; text-transform: uppercase; margin: 0 0 4px; line-height: 1; }
.af label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.af input, .af textarea, .af select { font: inherit; color: var(--text); background: var(--bg-2); border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 13px; }
.af textarea { resize: vertical; min-height: 90px; }
.af .row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.af .hint { font-size: 13px; color: var(--muted); margin: 0; }
.af .err { color: var(--red); font-size: 14px; margin: 0; }
.gal-edit { display: flex; flex-wrap: wrap; gap: 10px; }
.gal-edit figure { margin: 0; position: relative; width: 132px; aspect-ratio: 16 / 9; }
.gal-edit img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.gal-edit button { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0,0,0,.75); color: #fff; display: grid; place-items: center; cursor: pointer; }
.gal-edit button .ic { width: 13px; height: 13px; }
.btn-danger { border-color: color-mix(in srgb, var(--red) 50%, transparent); color: var(--red); background: transparent; }
.toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 11px 18px; border-radius: 999px; font-size: 14px; z-index: 300; }

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
  .nav, .hide-mobile { display: none; }
  .burger { display: block; }
}
@media (max-width: 900px) {
  .about, .scout, .contact { grid-template-columns: 1fr; }
  .posts { grid-template-columns: 1fr; gap: 40px; }
  .cursor-preview { display: none; }
  .credit-btn { grid-template-columns: 1fr; padding: 22px 0; }
  .credit-thumb { display: block; grid-column: 1; aspect-ratio: 16 / 9; overflow: hidden; margin-bottom: 14px; background: var(--bg-3); }
  .credit-thumb img { width: 100%; height: 100%; object-fit: cover; }
  .credit-cat { grid-column: 1; grid-row: auto; text-align: left; max-width: none; }
  .credit-btn:hover .credit-title { transform: none; }
  .about-photo { max-width: 520px; }
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 34vw, 240px); }
  .tile-xl { grid-column: span 2; grid-row: span 2; }
  .tile-md { grid-column: span 2; }
  .tile-sm { grid-column: span 1; }
  .tile-sm .tile-title { font-size: 18px; -webkit-line-clamp: 2; }
  .tile-sm .tile-tc, .tile-sm .tile-client { display: none; }
  .tile-client { transform: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .topbar { gap: 10px; height: 64px; }
  .drawer { inset: 64px 0 0 0; }
  .brand-name { font-size: 18px; }
  .theme-toggle { width: 36px; height: 36px; }
  .topbar-actions { gap: 6px; }
  .topbar-actions .btn-sm { padding: 9px 13px; font-size: 13.5px; }
  .loc { display: none; }
  .letterbox-top { font-size: 12px; }
  .frame, .title-card { min-height: 70vh; }
  .frame-shade { background: linear-gradient(0deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,.55) 55%, rgba(0,0,0,.2) 100%); }
  .lede { font-size: 16px; }
  .sound { top: 16px; bottom: auto; width: 40px; height: 40px; }
  .track { display: none; }
  .letterbox-bottom { min-height: 54px; justify-content: center; }
  .form { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .facts div:nth-child(odd) { padding-right: 0; }
  .roles li { grid-template-columns: 1fr; }
  .roles li::before { grid-row: auto; padding: 0 0 6px; }
  .logos { justify-content: flex-start; gap: 34px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 6px; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .logos::-webkit-scrollbar { display: none; }
  .logos li { flex: 0 0 auto; scroll-snap-align: start; }
  .logos img { height: 24px; max-width: none; }
  .logos img.tall { height: 40px; }
  .logos img.wide { height: 28px; }
  .clients { overflow: hidden; }
  .logos.marquee { width: max-content; max-width: none; margin: 0; overflow: visible; -webkit-mask-image: none; mask-image: none; animation: logos-mq 34s linear infinite; padding-right: 34px; }
  .dock { bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
