:root {
  --bg: #0e0e0d;
  --bg-2: #161614;
  --line: rgba(237, 235, 230, .12);
  --fg: #edebe6;
  --muted: #9a978f;
  --accent: #ffc400;
  --accent-ink: #141200;
  --done: #4ade80;
  --radius: 18px;
  --pad: clamp(16px, 4vw, 56px);
  --font: "Archivo", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--accent); color: var(--accent-ink); }

.mono { font-family: var(--mono); font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.label { color: var(--accent); margin-bottom: 1rem; }

/* grain overlay */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* custom cursor */
.cursor { position: fixed; top: 0; left: 0; z-index: 200; pointer-events: none; mix-blend-mode: difference; }
.cursor span {
  display: block; width: 14px; height: 14px; border-radius: 50%; background: #fff;
  transform: translate(-50%, -50%); transition: width .25s, height .25s;
}
.cursor.hover span { width: 64px; height: 64px; }
@media (hover: none) { .cursor { display: none; } }

/* NAV */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad);
  transition: background .3s, backdrop-filter .3s;
}
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s;
  background: rgba(14, 14, 13, .72); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
}
.nav.scrolled::before { opacity: 1; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 500; letter-spacing: .08em; }
.logo-emblem { height: 30px; width: auto; }
.logo-text b { font-weight: 900; margin-left: 4px; }
.nav-links { display: flex; gap: 28px; align-items: center; font-size: .92rem; }
.nav-links a { position: relative; }
.nav-links a:not(.btn-sm)::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 1px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .35s;
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.btn-sm { padding: 8px 16px; border: 1px solid var(--accent); color: var(--accent); border-radius: 999px; transition: .25s; }
.btn-sm:hover { background: var(--accent); color: var(--accent-ink); }
.menu-btn { display: none; width: 40px; height: 40px; flex-direction: column; justify-content: center; gap: 6px; align-items: center; }
.menu-btn span { width: 24px; height: 2px; background: var(--fg); transition: .3s; }

/* HERO */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  padding: 120px var(--pad) 80px; overflow: hidden;
}
#blueprint { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse at 70% 40%, transparent 0%, var(--bg) 75%);
}
.hero > *:not(canvas) { position: relative; z-index: 1; }
.hero > .hero-photos {
  position: absolute; z-index: 0; top: 0; right: 0; bottom: 0; width: 62%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%);
          mask-image: linear-gradient(90deg, transparent, #000 45%);
}
.hero-photos img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.08); filter: grayscale(.35) brightness(.55);
  transition: opacity 1.6s ease, transform 7s linear;
}
.hero-photos img.on { opacity: 1; transform: scale(1); }
.hero-meta { position: absolute !important; top: 90px; left: var(--pad); right: var(--pad); display: flex; justify-content: space-between; color: var(--muted); }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--muted); margin-bottom: 28px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.hero-title { font-size: clamp(2.6rem, 8vw, 9rem); line-height: .9; font-weight: 900; letter-spacing: -.04em; text-transform: uppercase; }
.hero-title .line { display: block; overflow: hidden; }
.hero-title .word { display: inline-block; transform: translateY(110%); animation: rise 1s cubic-bezier(.2, .8, .2, 1) forwards; }
.hero-title .line:nth-child(1) .word:nth-child(2) { animation-delay: .1s; }
.hero-title .line:nth-child(2) .word:nth-child(1) { animation-delay: .2s; }
.hero-title .line:nth-child(2) .word:nth-child(2) { animation-delay: .3s; }
.hero-title .outline { color: transparent; -webkit-text-stroke: 2px var(--fg); }
@keyframes rise { to { transform: translateY(0); } }

.hero-sub { max-width: 520px; margin-top: 32px; color: var(--muted); font-size: 1.1rem; opacity: 0; animation: fade 1s .6s forwards; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; opacity: 0; animation: fade 1s .8s forwards; }
@keyframes fade { to { opacity: 1; } }

.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 16px 28px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; transition: transform .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 40px -10px var(--accent); }
.btn .arrow { transition: transform .25s; }
.btn:hover .arrow { transform: translateX(4px); }
.btn.ghost { background: transparent; color: var(--fg); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--fg); box-shadow: none; }

.hero-sectors { position: absolute !important; bottom: 32px; left: var(--pad); display: flex; gap: 32px; color: var(--muted); }
.scroll-hint { position: absolute !important; bottom: 32px; right: var(--pad); display: flex; align-items: center; gap: 10px; color: var(--muted); }
.scroll-hint span { width: 1px; height: 40px; background: linear-gradient(var(--accent), transparent); animation: drip 1.8s infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* MARQUEE */
.marquee { overflow: hidden; background: var(--accent); color: var(--accent-ink); padding: 18px 0; transform: rotate(-1.5deg); margin: 20px -20px; }
.marquee-track { display: flex; gap: 32px; width: max-content; animation: marquee 30s linear infinite; font-weight: 900; font-size: clamp(1.4rem, 3vw, 2.4rem); text-transform: uppercase; letter-spacing: -.02em; align-items: center; }
.marquee i { font-style: normal; font-size: .7em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* SECTIONS */
section { padding: clamp(80px, 12vw, 160px) var(--pad); }
.section-head { margin-bottom: clamp(40px, 6vw, 72px); }
.section-head h2, .contact-title {
  font-size: clamp(2.2rem, 6vw, 5rem); line-height: 1; font-weight: 900; letter-spacing: -.035em; max-width: 14ch;
}
.section-head h2 em { font-style: normal; color: var(--accent); }
.section-head .muted { margin-top: 16px; }

.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s, transform .9s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* FILTERS */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.filter { padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; transition: .25s; }
.filter sup { font-family: var(--mono); font-size: .65rem; color: var(--muted); margin-left: 2px; }
.filter:hover { border-color: var(--fg); }
.filter.active { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.filter.active sup { color: var(--bg); }
.filter-sep { width: 1px; align-self: stretch; margin: 4px 6px; background: var(--line); }
.dot-status { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
.dot-status.terminado, .status-badge.terminado::before { background: var(--done); }
.dot-status.proceso, .status-badge.proceso::before { background: var(--accent); }

/* PROJECT GRID */
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.card {
  position: relative; grid-column: span 4; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden;
  background: var(--bg-2); cursor: pointer; isolation: isolate;
  transition: opacity .4s, transform .4s;
  transform-style: preserve-3d;
}
.card.wide { grid-column: span 8; aspect-ratio: auto; }
.card.wide:last-child { grid-column: span 12; aspect-ratio: 21 / 8; }
.card.hide { display: none; }
.card-media { position: absolute; inset: 0; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card:hover .card-media { transform: scale(1.06); }
.card::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .85));
}
.card-info { position: absolute; left: 24px; right: 24px; bottom: 22px; z-index: 2; }
.card-info .mono { color: var(--accent); }
.card-info h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 900; letter-spacing: -.02em; line-height: 1.05; margin-top: 6px; }
.card-index { position: absolute; top: 20px; left: 24px; z-index: 2; color: rgba(255, 255, 255, .7); }
.card-go {
  position: absolute; top: 18px; right: 18px; z-index: 2; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-weight: 900;
  transform: scale(0) rotate(-45deg); transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.card:hover .card-go { transform: scale(1) rotate(0); }
.status-badge {
  position: absolute; top: 16px; right: 16px; z-index: 2; display: flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px; background: rgba(0, 0, 0, .6); backdrop-filter: blur(8px); color: #fff;
  transition: opacity .25s;
}
.status-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; }
.status-badge.proceso::before { animation: pulse 2s infinite; box-shadow: 0 0 0 0 var(--accent); }
.card:hover .status-badge { opacity: 0; }

/* BEFORE / AFTER */
.ba-tabs { margin-top: 28px; }
.ba-wrap { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; user-select: none; --pos: 50%; background: var(--bg-2); }
.ba-img { position: absolute; inset: 0; }
.ba-img img { width: 100%; height: 100%; object-fit: cover; transition: opacity .4s; }
.ba-wrap.loading .ba-img img { opacity: 0; }
.ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-before img { filter: saturate(.7); }
.ba-caption { margin-top: 16px; color: var(--muted); }
.ba-tag { position: absolute; top: 20px; padding: 6px 12px; border-radius: 999px; background: rgba(0, 0, 0, .6); backdrop-filter: blur(6px); color: #fff; }
.ba-before .ba-tag { left: 20px; }
.ba-after .ba-tag { right: 20px; background: var(--accent); color: var(--accent-ink); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: var(--accent); transform: translateX(-50%); pointer-events: none; }
.ba-handle span {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; font-size: 1.4rem; font-weight: 900; box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
}
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; }

/* SERVICES */
.service-list { border-top: 1px solid var(--line); }
.service {
  display: grid; grid-template-columns: 80px 1.2fr 1.5fr 1fr; gap: 24px; align-items: center;
  padding: 36px 0; border-bottom: 1px solid var(--line); position: relative; transition: padding .35s;
}
.service::before {
  content: ""; position: absolute; inset: 0; background: var(--accent); z-index: -1;
  transform: scaleY(0); transform-origin: bottom; transition: transform .45s cubic-bezier(.2, .8, .2, 1);
}
.service:hover { color: var(--accent-ink); padding-left: 24px; padding-right: 24px; }
.service:hover::before { transform: scaleY(1); }
.service:hover p, .service:hover .num { color: var(--accent-ink); }
.service { isolation: isolate; }
.service h3 { font-size: clamp(1.8rem, 4vw, 3.2rem); font-weight: 900; letter-spacing: -.03em; }
.service p { color: var(--muted); }
.service .num { color: var(--muted); }
.service ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.service li { padding: 5px 10px; border: 1px solid currentColor; border-radius: 999px; opacity: .8; }

/* PROCESS */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li {
  position: relative; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--bg-2), transparent);
}
.steps li::before {
  content: ""; position: absolute; top: 0; left: 28px; right: 28px; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform 1s cubic-bezier(.2, .8, .2, 1);
}
.steps li.in::before { transform: scaleX(1); }
.steps .mono { color: var(--accent); }
.steps h4 { font-size: 1.35rem; margin: 14px 0 8px; letter-spacing: -.01em; }
.steps p { color: var(--muted); font-size: .95rem; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 72px; border-top: 1px solid var(--line); padding-top: 48px; }
.stats b { display: block; font-size: clamp(3rem, 8vw, 7rem); font-weight: 900; line-height: 1; letter-spacing: -.05em; }
.stats .mono { color: var(--muted); }

/* WALKTHROUGH REELS */
.section-head.split { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.section-head.split > .muted { max-width: 340px; margin: 0; }
.reel-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-bottom: 48px; }
.reel {
  position: relative; aspect-ratio: 9 / 16; border-radius: 28px; overflow: hidden; background: var(--bg-2);
  border: 1px solid var(--line); cursor: pointer; transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
.reel:nth-child(even) { transform: translateY(48px); }
.reel:hover { transform: translateY(-8px); }
.reel:nth-child(even):hover { transform: translateY(40px); }
.reel video { width: 100%; height: 100%; object-fit: cover; display: block; filter: brightness(.8); transition: filter .4s; }
.reel.playing video { filter: none; }
.reel::before {
  content: "\25B6"; position: absolute; top: 50%; left: 50%; z-index: 2; transform: translate(-50%, -50%);
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; padding-left: 4px;
  background: rgba(255, 196, 0, .92); color: var(--accent-ink); font-size: 1.3rem; transition: opacity .3s, transform .3s;
}
.reel.playing::before { opacity: 0; transform: translate(-50%, -50%) scale(.6); }
.reel figcaption {
  position: absolute; left: 14px; right: 14px; bottom: 14px; padding: 8px 12px; border-radius: 999px;
  background: rgba(0, 0, 0, .55); backdrop-filter: blur(8px); color: #fff; text-align: center;
}

/* PROFILE */
.profile { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 96px); align-items: center; border-top: 1px solid var(--line); }
.profile-photo { position: relative; }
.frame { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); }
.frame img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .6s; }
.profile-photo:hover .frame img { filter: none; }
.frame .monogram { display: none; }
.frame.empty {
  display: grid; place-items: center;
  background:
    linear-gradient(rgba(237, 235, 230, .06) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(237, 235, 230, .06) 1px, transparent 1px) 0 0 / 24px 24px,
    radial-gradient(circle at 50% 40%, #1d1d1a, var(--bg-2));
}
.frame.empty .monogram {
  position: relative; z-index: 2; display: block; font-weight: 900; font-size: clamp(6rem, 14vw, 11rem); letter-spacing: -.06em;
  color: transparent; -webkit-text-stroke: 2px var(--accent); text-shadow: 0 10px 40px rgba(0, 0, 0, .5);
}
.frame-works { position: absolute; inset: 0; z-index: 0; }
.frame-works img {
  position: absolute; inset: 0; opacity: 0; transform: scale(1.1);
  filter: grayscale(1) brightness(.4) contrast(1.1); transition: opacity 1.2s ease, transform 4.5s linear;
}
.frame-works img.on { opacity: 1; transform: scale(1); }
.profile-photo:hover .frame-works img { filter: grayscale(.2) brightness(.5); }
.frame-works::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(rgba(237, 235, 230, .06) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(237, 235, 230, .06) 1px, transparent 1px) 0 0 / 24px 24px;
}
.frame-caption { position: absolute; left: 50%; bottom: 22px; z-index: 2; transform: translateX(-50%); white-space: nowrap; color: rgba(255, 255, 255, .8); }
.frame:not(.empty) .frame-works, .frame:not(.empty) .frame-caption { display: none; }
.corner { position: absolute; width: 28px; height: 28px; border: 2px solid var(--accent); }
.corner.tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.corner.tr { top: 14px; right: 14px; border-left: 0; border-bottom: 0; }
.corner.bl { bottom: 14px; left: 14px; border-right: 0; border-top: 0; }
.corner.br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }
.stamp {
  position: absolute; right: -14px; bottom: 72px; padding: 10px 16px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); transform: rotate(-6deg); box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
}
.profile-name { font-size: clamp(2.4rem, 5.5vw, 4.8rem); line-height: .95; font-weight: 900; letter-spacing: -.035em; }
.profile-name .outline { color: transparent; -webkit-text-stroke: 1.5px var(--fg); }
.profile-role { color: var(--accent); margin: 20px 0 28px; }
.profile-bio { color: var(--muted); font-size: 1.08rem; max-width: 58ch; margin-bottom: 14px; }
.profile-skills { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 36px; }
.profile-skills li { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; }
.profile-links { display: flex; gap: 14px; flex-wrap: wrap; }

/* CONTACT */
.contact { position: relative; min-height: 90vh; display: flex; flex-direction: column; justify-content: center; border-top: 1px solid var(--line); overflow: hidden; }
.contact > *:not(.contact-logo) { position: relative; z-index: 1; }
.contact-logo { position: absolute; right: -4%; top: 50%; width: min(620px, 55vw); transform: translateY(-50%); opacity: .07; pointer-events: none; }
.contact-title { font-size: clamp(3rem, 11vw, 10rem); max-width: none; text-transform: uppercase; line-height: .88; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 56px; }
.big-link { font-size: clamp(1.4rem, 3vw, 2.4rem); font-weight: 700; border-bottom: 2px solid var(--line); padding-bottom: 6px; transition: border-color .25s, color .25s; }
.big-link span { display: inline-block; transition: transform .25s; color: var(--accent); }
.big-link:hover { border-color: var(--accent); }
.big-link:hover span { transform: translate(4px, -4px); }

.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 28px var(--pad); border-top: 1px solid var(--line); color: var(--muted); }

/* MODAL / GALLERY */
.modal { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 16px; visibility: hidden; }
.modal.open { visibility: visible; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .8); backdrop-filter: blur(8px); opacity: 0; transition: opacity .35s; }
.modal.open .modal-backdrop { opacity: 1; }
.modal-panel {
  position: relative; width: min(1280px, 100%); height: min(780px, 92vh); overflow: hidden;
  display: grid; grid-template-columns: 1.7fr 1fr; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  transform: translateY(40px) scale(.97); opacity: 0; transition: .45s cubic-bezier(.2, .8, .2, 1);
}
.modal.open .modal-panel { transform: none; opacity: 1; }
.modal-media { position: relative; background: #000; min-height: 0; }
.modal-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .25s; }
.modal-media img.fade { opacity: 0; }
.modal-tag { position: absolute; top: 16px; left: 16px; padding: 6px 12px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); }
.modal-tag:empty { display: none; }
.gal-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%;
  background: rgba(0, 0, 0, .55); color: #fff; font-size: 1.2rem; backdrop-filter: blur(6px); transition: background .2s;
}
.gal-nav:hover { background: var(--accent); color: var(--accent-ink); }
.gal-nav.prev { left: 14px; }
.gal-nav.next { right: 14px; }
.gal-count { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); padding: 5px 12px; border-radius: 999px; background: rgba(0, 0, 0, .6); color: #fff; }
.modal-body { padding: 40px 32px; overflow-y: auto; }
.modal-body h3 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); line-height: 1; font-weight: 900; letter-spacing: -.03em; margin-bottom: 18px; }
.modal-body > p:not(.label) { color: var(--muted); }
.modal-specs { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.modal-specs dt { color: var(--muted); }
.gal-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 28px; }
.gal-thumbs button { aspect-ratio: 1; border-radius: 10px; overflow: hidden; opacity: .5; outline: 2px solid transparent; outline-offset: -2px; transition: opacity .2s, outline-color .2s; }
.gal-thumbs button:hover { opacity: .85; }
.gal-thumbs button.active { opacity: 1; outline-color: var(--accent); }
.gal-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 3; width: 42px; height: 42px; border-radius: 50%; background: rgba(0, 0, 0, .6); color: #fff; }
.modal-close:hover { background: var(--accent); color: var(--accent-ink); }

/* RESPONSIVE */
@media (max-width: 1080px) {
  .nav-links {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 28px; font-size: 1.6rem;
    background: var(--bg); transform: translateY(-100%); visibility: hidden;
    transition: transform .5s cubic-bezier(.2, .8, .2, 1), visibility .5s;
  }
  .nav.open .nav-links { transform: none; visibility: visible; }
  .menu-btn { display: flex; z-index: 2; }
  .nav.open .menu-btn span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav.open .menu-btn span:last-child { transform: translateY(-4px) rotate(-45deg); }
}
@media (max-width: 960px) {
  .card, .card.wide { grid-column: span 6; aspect-ratio: 4 / 5; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .service { grid-template-columns: 50px 1fr; }
  .service p, .service ul { grid-column: 2; justify-content: flex-start; }
  .modal-panel { grid-template-columns: 1fr; grid-template-rows: 55% 1fr; }
  .reel-row { grid-template-columns: repeat(2, 1fr); }
  .profile { grid-template-columns: 1fr; }
  .profile-photo { max-width: 420px; }
  .hero > .hero-photos { width: 100%; -webkit-mask-image: linear-gradient(180deg, transparent, #000 60%); mask-image: linear-gradient(180deg, transparent, #000 60%); opacity: .6; }
}
@media (max-width: 720px) {
  .card, .card.wide { grid-column: span 12; aspect-ratio: 4 / 4.4; }
  .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .hero-sectors { display: none; }
  .hero-meta span:first-child { display: none; }
  .ba-wrap { aspect-ratio: 4 / 5; }
  .reel-row { gap: 12px; }
  .reel { border-radius: 18px; }
  .reel:nth-child(even) { transform: translateY(32px); }
  .reel figcaption { font-size: .62rem; left: 8px; right: 8px; bottom: 8px; padding: 6px 8px; }
  .stamp { right: 8px; }
  .gal-thumbs { grid-template-columns: repeat(5, 1fr); }
  .modal { padding: 0; }
  .modal-panel { height: 100svh; border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
.card-count { display: inline-block; margin-top: 10px; color: rgba(255, 255, 255, .7) !important; }
