/* ========== THE GEEKS — main stylesheet ========== */
:root {
  --bg: #0a0a0a;
  --bg-2: #141414;
  --line: #262626;
  --text: #f5f5f5;
  --muted: #9a9a9a;
  --accent: #ffffff;
  --radius: 14px;
  --head: "Archivo Black", "Arial Black", Impact, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1240px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: clamp(16px, 4vw, 40px); }

h1, h2, h3 { font-family: var(--head); font-weight: 400; text-transform: uppercase; line-height: 1.02; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 8vw, 6.5rem); }
h2 { font-size: clamp(2rem, 5vw, 3.75rem); }
h3 { font-size: 1.25rem; }
.eyebrow { display: inline-block; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 46ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.6rem; border-radius: 999px;
  font-weight: 600; font-size: .95rem; letter-spacing: .02em;
  background: var(--accent); color: #000;
  transition: transform .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--text); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { background: rgba(10,10,10,.85); backdrop-filter: blur(12px); border-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo img { height: 56px; width: auto; filter: invert(1); mix-blend-mode: screen; }
.nav-links { display: flex; gap: 2.2rem; align-items: center; }
.nav-links a { font-size: .9rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links .btn { color: #000; padding: .7rem 1.2rem; }
.menu-btn { display: none; width: 44px; height: 44px; position: relative; }
.menu-btn span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--text); transition: .3s; }
.menu-btn span:nth-child(1) { top: 16px; }
.menu-btn span:nth-child(2) { top: 26px; }
.menu-open .menu-btn span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

@media (max-width: 820px) {
  .menu-btn { display: block; z-index: 2; }
  .nav-links {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 2rem;
    background: var(--bg); opacity: 0; pointer-events: none; transition: opacity .3s;
  }
  .nav-links a { font-family: var(--head); font-size: 2rem; color: var(--text); }
  .nav-links .btn { font-family: var(--body); font-size: 1rem; }
  .menu-open .nav-links { opacity: 1; pointer-events: auto; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; padding-bottom: clamp(48px, 10vh, 110px); }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,10,.35) 0%, rgba(10,10,10,.2) 40%, var(--bg) 100%); }
.hero-fallback {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 20% 30%, #2a2a2a 0%, transparent 70%),
    radial-gradient(50% 60% at 80% 70%, #1f1f1f 0%, transparent 70%), #0a0a0a;
  animation: drift 14s ease-in-out infinite alternate;
}
.hero-fallback::before {
  content: "GG"; position: absolute; right: -2vw; top: 50%; transform: translateY(-50%);
  font-family: var(--head); font-size: 42vw; line-height: 1; color: rgba(255,255,255,.03); letter-spacing: -.08em;
}
@keyframes drift { to { transform: scale(1.12) translate(-2%, 1%); } }
.outline { color: transparent; -webkit-text-stroke: 1.5px var(--text); }
.hero .lead { margin-top: 1.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }
.scroll-hint { position: absolute; right: clamp(16px, 4vw, 40px); bottom: 40px; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); writing-mode: vertical-rl; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding-top: calc(76px + clamp(60px, 12vh, 140px)); padding-bottom: clamp(40px, 6vh, 70px); }
.page-hero .lead { margin-top: 1.2rem; }

/* ---------- Sections ---------- */
section { padding-block: clamp(70px, 11vh, 130px); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.5rem; margin-bottom: 3rem; }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding-block: 1.4rem; }
.marquee-track { display: flex; gap: 3rem; width: max-content; animation: marquee 30s linear infinite; }
.marquee-track span { font-family: var(--head); font-size: clamp(1.4rem, 3vw, 2.2rem); text-transform: uppercase; white-space: nowrap; }
.marquee-track span:nth-child(even) { color: transparent; -webkit-text-stroke: 1px var(--muted); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2.5rem; }
.filters button {
  padding: .6rem 1.15rem; border: 1px solid var(--line); border-radius: 999px;
  font-size: .85rem; color: var(--muted); transition: .2s;
}
.filters button:hover { color: var(--text); border-color: var(--muted); }
.filters button.active { background: var(--text); color: #000; border-color: var(--text); }

/* ---------- Gallery grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: clamp(16px, 2vw, 28px); }
.card { cursor: pointer; text-align: left; display: block; width: 100%; }
.card-media {
  position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--bg-2);
}
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1), filter .4s; filter: grayscale(.3); }
.card:hover .card-media img { transform: scale(1.06); filter: grayscale(0); }
.card.reveal:not(.in) .card-media img, .card.reveal:not(.in) .placeholder { transform: scale(1.3); }
.placeholder {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(135deg, #1c1c1c, #0f0f0f);
  font-family: var(--head); font-size: 3.5rem; color: rgba(255,255,255,.07); transition: transform 1.2s cubic-bezier(.2,.7,.2,1);
}
.card:hover .placeholder { transform: scale(1.06); }
.play {
  position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; border-radius: 50%;
  background: rgba(255,255,255,.95); color: #000; display: grid; place-items: center;
  transform: translate(-50%, -50%) scale(.7); opacity: 0; transition: .35s;
}
.card:hover .play, .card:focus-visible .play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.card-info { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1rem; }
.card-info h3 { font-size: 1.1rem; }
.card-info p { color: var(--muted); font-size: .88rem; }
.card-tag { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; padding-top: .2rem; }
.empty { color: var(--muted); padding: 3rem 0; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.92); display: grid; place-items: center; padding: clamp(16px, 4vw, 48px); }
.modal-inner { width: 100%; max-width: 1100px; max-height: 100%; overflow: auto; }
.modal-video { aspect-ratio: 16 / 9; background: var(--bg-2); border-radius: var(--radius); overflow: hidden; position: relative; }
.modal-video iframe, .modal-video img { width: 100%; height: 100%; border: 0; object-fit: cover; }
.modal-meta { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; padding-top: 1.6rem; }
.modal-meta p { color: var(--muted); }
.modal-meta dl { display: grid; gap: .8rem; font-size: .9rem; }
.modal-meta dt { color: var(--muted); font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; }
.modal-close { position: fixed; top: calc(16px + env(safe-area-inset-top, 0px)); right: 16px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); font-size: 1.5rem; background: var(--bg); z-index: 101; }
.modal-close:hover { border-color: var(--text); }
@media (max-width: 640px) { .modal-meta { grid-template-columns: 1fr; } }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); border-top: 1px solid var(--line); }
.service { padding: 2rem 1.5rem 2rem 0; border-bottom: 1px solid var(--line); }
.service .num { color: var(--muted); font-size: .8rem; }
.service h3 { margin: .8rem 0 .6rem; }
.service p { color: var(--muted); font-size: .95rem; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 2rem; }
.stat strong { display: block; font-family: var(--head); font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1; }
.stat span { color: var(--muted); font-size: .9rem; }

/* ---------- About ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.split p + p { margin-top: 1.2rem; }
.split .body p { color: var(--muted); font-size: 1.05rem; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.clients { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.clients div { aspect-ratio: 3 / 2; display: grid; place-items: center; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; }

/* ---------- CTA band ---------- */
.cta { text-align: center; border-top: 1px solid var(--line); }
.cta h2 { max-width: 16ch; margin: 0 auto 2rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 6vw, 5rem); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
form { display: grid; gap: 1.2rem; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }
label { display: grid; gap: .45rem; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
input, select, textarea {
  width: 100%; padding: 1rem 1.1rem; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg-2); color: var(--text); font: inherit; font-size: 1rem; letter-spacing: 0; text-transform: none;
  transition: border-color .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--text); }
textarea { min-height: 150px; resize: vertical; }
.form-status { font-size: .95rem; min-height: 1.5em; }
.form-status.ok { color: #7ee2a8; }
.form-status.err { color: #ff8a8a; }
.contact-info { display: grid; gap: 2rem; align-content: start; }
.contact-info .item span { display: block; font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); margin-bottom: .35rem; }
.contact-info .item a { font-size: 1.15rem; border-bottom: 1px solid var(--line); transition: border-color .2s; }
.contact-info .item a:hover { border-color: var(--text); }
.whatsapp { background: #25d366; color: #000; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 3rem calc(2rem + env(safe-area-inset-bottom, 0px)); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; align-items: center; }
.socials { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.socials a { color: var(--muted); font-size: .9rem; text-transform: uppercase; letter-spacing: .1em; }
.socials a:hover { color: var(--text); }
.footer-bottom { margin-top: 2rem; color: var(--muted); font-size: .85rem; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   ANIMATIONS
   ========================================================= */
:root { --ease: cubic-bezier(.2,.7,.2,1); --ease-io: cubic-bezier(.77,0,.18,1); --serif: "Instrument Serif", Georgia, "Times New Roman", serif; }

/* Elegant italic accent words */
h1 em, h2 em, .bt-row em { font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 1.08em; }

/* ---------- Intro loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 200; background: var(--bg);
  display: grid; place-content: center; justify-items: center; gap: 1.6rem;
  transition: transform 1.1s var(--ease-io);
}
.loader img { height: 120px; width: auto; filter: invert(1); mix-blend-mode: screen; animation: loaderIn 1.2s var(--ease) both; }
.loader-bar { width: 140px; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.loader-bar::after { content: ""; position: absolute; inset: 0; background: var(--text); transform-origin: left; animation: bar 1.4s var(--ease-io) both; }
@keyframes loaderIn { from { opacity: 0; transform: scale(.85); filter: invert(1) blur(8px); } }
@keyframes bar { from { transform: scaleX(0); } }
.loaded .loader { transform: translateY(-100%); pointer-events: none; }
.loader.quick { transition: opacity .6s, visibility .6s; }
.loader.quick > * { display: none; }
.loaded .loader.quick { transform: none; opacity: 0; visibility: hidden; }

/* ---------- Page transition curtain ---------- */
.curtain { position: fixed; inset: 0; z-index: 199; background: var(--bg); transform: translateY(100%); transition: transform .6s var(--ease-io); pointer-events: none; }
.leaving .curtain { transform: none; }

/* ---------- Hero headline line-by-line ---------- */
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span { display: inline-block; transform: translateY(110%) rotate(3deg); transform-origin: left top; transition: transform 1.3s var(--ease); transition-delay: calc(var(--i) * .13s + .25s); }
.loaded .hero-title .line > span { transform: none; }
.hero-fade { opacity: 0; transform: translateY(24px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); transition-delay: var(--d, 0s); }
.loaded .hero-fade { opacity: 1; transform: none; }
.hero-content { will-change: transform, opacity; }

/* Hero background slowly breathes + follows the mouse */
.hero-media { transform: scale(1.08); transition: transform 2.4s var(--ease); }
.loaded .hero-media { transform: scale(1); }
.hero-fallback::before { transform: translate(calc(var(--mx, 0) * -40px), calc(-50% + var(--my, 0) * -30px)); transition: transform 1s var(--ease); }
.hero-fallback::after {
  content: ""; position: absolute; inset: -50%; pointer-events: none; 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='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(4) infinite;
}
@keyframes grain { 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-1%, 3%); } }

/* Scroll hint line */
.scroll-hint { padding-bottom: 70px; }
.scroll-hint::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 1px; height: 56px; background: linear-gradient(var(--text), transparent); animation: scrollLine 2s var(--ease-io) infinite; transform-origin: top; }
@keyframes scrollLine { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Word-by-word heading reveal ---------- */
.words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.words .w > * { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 70ms); }
.words.in .w > * { transform: none; }

/* ---------- Scroll progress bar ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; background: var(--text); transform-origin: left; transform: scaleX(0); z-index: 60; pointer-events: none; }

/* ---------- Custom cursor (desktop only) ---------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none;
  width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  background: #fff; mix-blend-mode: difference; display: grid; place-items: center;
  transition: width .4s var(--ease), height .4s var(--ease), margin .4s var(--ease), opacity .3s, background .3s;
}
.cursor span { font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #000; opacity: 0; transition: opacity .2s; }
.cursor.hover { width: 46px; height: 46px; margin: -23px 0 0 -23px; }
.cursor.view { width: 96px; height: 96px; margin: -48px 0 0 -48px; mix-blend-mode: normal; }
.cursor.view span { opacity: 1; }
.cursor.hidden { opacity: 0; }
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor .card { cursor: none; }
.has-cursor input, .has-cursor textarea { cursor: text; }

/* ---------- Gallery cards: curtain reveal + stagger ---------- */
.card.reveal .card-media { clip-path: inset(100% 0 0 0 round var(--radius)); transition: clip-path 1.3s var(--ease-io); }
.card.reveal.in .card-media { clip-path: inset(0 0 0 0 round var(--radius)); }
.grid > .card:nth-child(3n+2), .grid > .card:nth-child(3n+2) .card-media { transition-delay: .12s; }
.grid > .card:nth-child(3n+3), .grid > .card:nth-child(3n+3) .card-media { transition-delay: .24s; }
.card-info h3 { display: inline; background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat; transition: background-size .5s var(--ease); }
.card:hover .card-info h3 { background-size: 100% 1px; }
.card-tag { transition: color .3s; }
.card:hover .card-tag { color: var(--text); }

/* Stagger other groups */
.services > :nth-child(2), .stats > :nth-child(2) { transition-delay: .1s; }
.services > :nth-child(3), .stats > :nth-child(3) { transition-delay: .2s; }
.services > :nth-child(4), .stats > :nth-child(4) { transition-delay: .3s; }

/* Services hover */
.service { position: relative; transition-property: opacity, transform, padding; }
.service::before { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 0; background: var(--text); transition: width .7s var(--ease); }
.service:hover::before { width: 100%; }
.service h3 { transition: transform .5s var(--ease); }
.service:hover h3 { transform: translateX(10px); }

/* Clients hover */
.clients div { transition: background .4s, color .4s; }
.clients div:hover { background: var(--bg-2); color: var(--text); }

/* ---------- Big moving text ---------- */
.big-text { overflow: hidden; padding-block: clamp(40px, 8vh, 90px); }
.bt-row { white-space: nowrap; font-family: var(--head); font-size: clamp(3rem, 11vw, 10rem); text-transform: uppercase; line-height: 1.05; will-change: transform; }
.bt-row.outline-row { color: transparent; -webkit-text-stroke: 1px var(--muted); }
.bt-row.outline-row em { -webkit-text-stroke: 0; color: var(--text); }

/* ---------- Marquee skews with scroll speed ---------- */
.marquee { will-change: transform; }

/* ---------- Modal open animation ---------- */
.modal:not([hidden]) { animation: fadeIn .4s ease both; }
.modal:not([hidden]) .modal-inner { animation: riseIn .7s var(--ease) .05s both; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes riseIn { from { opacity: 0; transform: translateY(40px) scale(.97); } }

/* ---------- Buttons: fill sweep ---------- */
.btn { position: relative; overflow: hidden; isolation: isolate; transition: transform .4s var(--ease), color .4s; }
.btn.ghost::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--text); border-radius: inherit; transform: translateY(101%); transition: transform .5s var(--ease); }
.btn.ghost:hover { color: #000; }
.btn.ghost:hover::before { transform: none; }

/* ---------- Nav links underline ---------- */
.nav-links a:not(.btn) { position: relative; }
.nav-links a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -4px; height: 1px; width: 100%; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav-links a:not(.btn):hover::after, .nav-links a.active::after { transform: scaleX(1); transform-origin: left; }
@media (max-width: 820px) { .nav-links a:not(.btn)::after { display: none; } }

/* =========================================================
   REAL LOGO, PHOTO HERO, GALLERY VIEWER, PHOTO WALL
   ========================================================= */
/* Transparent logo files — no color tricks needed */
.logo img { height: 34px; width: auto; filter: none; mix-blend-mode: normal; }
.site-footer .logo img { height: 44px; }
.loader img { height: auto; width: min(320px, 60vw); filter: none; mix-blend-mode: normal; animation-name: loaderIn2; }
@keyframes loaderIn2 { from { opacity: 0; transform: scale(.9); filter: blur(10px); } }

/* Hero photo slideshow with slow zoom */
.hero-fallback::before { content: none; }
.hero-slides, .hero-slides img, .hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-slides img { opacity: 0; transition: opacity 1.8s ease; }
.hero-slides img.active { opacity: 1; animation: kenburns 8s ease-out both; }
@keyframes kenburns { from { transform: scale(1.14) translate(1%, -1%); } to { transform: scale(1) translate(0, 0); } }
.hero-media::after {
  background:
    linear-gradient(90deg, rgba(10,10,10,.75) 0%, rgba(10,10,10,.25) 60%, rgba(10,10,10,.1) 100%),
    linear-gradient(180deg, rgba(10,10,10,.45) 0%, rgba(10,10,10,.15) 40%, var(--bg) 100%);
}
.hero-mark {
  position: absolute; z-index: 1; right: -6vw; top: 50%; width: min(62vw, 900px); height: auto; opacity: .09; pointer-events: none;
  transform: translate(calc(var(--mx, 0) * -40px), calc(-50% + var(--my, 0) * -30px));
  transition: transform 1s var(--ease);
}
.hero-title { font-size: clamp(2.4rem, 7.2vw, 6.2rem); text-shadow: 0 2px 40px rgba(0,0,0,.25); }
.hero-dots { display: flex; gap: .5rem; margin-top: 2.5rem; }
.hero-dots button { width: 28px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.3); overflow: hidden; position: relative; padding: 0; }
.hero-dots button.active::after { content: ""; position: absolute; inset: 0; background: var(--text); transform-origin: left; animation: dotFill 6s linear both; }
@keyframes dotFill { from { transform: scaleX(0); } }

/* Card: photos cycle on hover */
.card-media .layer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: layerIn .7s ease both; }
@keyframes layerIn { from { opacity: 0; transform: scale(1.05); } }
.card-count { position: absolute; left: 14px; bottom: 12px; z-index: 2; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; padding: .35rem .7rem; border-radius: 999px; background: rgba(0,0,0,.55); backdrop-filter: blur(6px); }

/* Gallery viewer */
.modal-inner { max-width: 1200px; }
.gallery-stage { background: #000; }
.stage-slide { position: absolute; inset: 0; opacity: 0; transform: scale(1.02); transition: opacity .5s ease, transform .8s var(--ease); }
.stage-slide.in { opacity: 1; transform: none; }
.stage-slide img { width: 100%; height: 100%; object-fit: contain !important; }
.stage-slide iframe { width: 100%; height: 100%; border: 0; }
.g-nav {
  position: absolute; top: 50%; z-index: 2; width: 52px; height: 52px; margin-top: -26px; border-radius: 50%;
  background: rgba(10,10,10,.6); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.15); font-size: 1.2rem;
  transition: background .3s, color .3s, transform .3s var(--ease);
}
.g-nav:hover { background: var(--text); color: #000; transform: scale(1.08); }
.g-prev { left: 14px; } .g-next { right: 14px; }
.g-count { position: absolute; right: 16px; bottom: 14px; z-index: 2; font-size: .8rem; letter-spacing: .1em; padding: .3rem .7rem; border-radius: 999px; background: rgba(0,0,0,.6); }
.g-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0 4px; scrollbar-width: thin; }
.g-thumbs button { flex: 0 0 auto; width: 92px; height: 62px; border-radius: 8px; overflow: hidden; opacity: .45; outline: 2px solid transparent; outline-offset: -2px; transition: opacity .3s, outline-color .3s; background: var(--bg-2); }
.g-thumbs button:hover { opacity: .8; }
.g-thumbs button.active { opacity: 1; outline-color: var(--text); }
.g-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.has-cursor .gallery-stage, .has-cursor .g-thumbs { cursor: auto; }
.has-cursor .g-nav, .has-cursor .g-thumbs button { cursor: pointer; }
@media (max-width: 640px) { .g-nav { width: 42px; height: 42px; margin-top: -21px; } .g-thumbs button { width: 70px; height: 48px; } }

/* Moving photo wall */
.photo-wall { overflow: hidden; display: grid; gap: clamp(10px, 1.4vw, 18px); padding-block: clamp(30px, 6vh, 70px); }
.pw-row { display: flex; gap: clamp(10px, 1.4vw, 18px); width: max-content; will-change: transform; }
.pw-row img { height: clamp(150px, 22vw, 320px); width: auto; border-radius: 10px; object-fit: cover; filter: grayscale(.35) brightness(.85); transition: filter .5s; }
.pw-row img:hover { filter: none; }

/* About page image */
.about-image { border-radius: var(--radius); overflow: hidden; aspect-ratio: 21 / 9; }
.about-image img { width: 100%; height: 120%; object-fit: cover; will-change: transform; }
@media (max-width: 640px) { .about-image { aspect-ratio: 4 / 3; } }

/* Footer slogan */
.footer-slogan { font-family: var(--head); text-transform: uppercase; font-size: clamp(1.6rem, 4.5vw, 3.4rem); line-height: 1.05; margin-bottom: 2.5rem; max-width: 18ch; }
.footer-slogan em { font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none; font-size: 1.1em; letter-spacing: 0; }
