/* =========================================================
   Jakub Zajíček — styles
   Edit colours / fonts in :root.
   ========================================================= */
:root {
  --bg: #0a0a09;
  --bg-2: #111110;
  --card: #171715;
  --line: rgba(243, 236, 210, 0.1);
  --text: #f3ecd2;
  --muted: rgba(243, 236, 210, 0.6);
  --accent: #d9b56a;

  --paper: #f3eee3;        /* light sections */
  --ink: #161513;
  --ink-muted: rgba(22, 21, 19, 0.6);
  --ink-line: rgba(22, 21, 19, 0.12);

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
  --radius: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --chev: clamp(40px, 7vw, 110px);   /* depth of the V-shaped edges */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 17px; line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
::selection { background: var(--accent); color: var(--bg); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.label {
  font-size: 12px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 18px;
}

/* ---------- Pills (buttons) ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 26px; border-radius: 999px;
  font-size: 15px; font-weight: 500; letter-spacing: -0.01em;
  transition: transform .5s var(--ease), background .3s, color .3s, border-color .3s;
}
.pill:hover { transform: scale(1.04); }
.pill:active { transform: scale(.98); }
.pill--light { background: var(--text); color: var(--bg); }
.pill--light:hover { background: #fff; }
.pill--ghost { border: 1px solid rgba(243,236,210,.4); background: rgba(10,10,9,.15); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.pill--ghost:hover { border-color: var(--text); background: rgba(243,236,210,.08); }
.pill--play { border: 1px solid rgba(243,236,210,.45); background: rgba(10,10,9,.25); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding-left: 8px; }
.pill--play.pill--light { background: var(--text); color: var(--bg); border-color: transparent; }
.pill__icon { width: 32px; height: 32px; border-radius: 50%; background: var(--text); display: grid; place-items: center; }
.pill__icon::before { content: ""; margin-left: 3px; border-left: 9px solid var(--bg); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.pill--light .pill__icon { background: var(--bg); }
.pill--light .pill__icon::before { border-left-color: var(--text); }
.pill--block { width: 100%; height: 54px; }

/* ---------- Nav (frosted, Apple-like) ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; padding: 14px var(--gutter); pointer-events: none; }
.nav__bar {
  pointer-events: auto;
  max-width: var(--max); margin: 0 auto; height: 58px; padding: 0 10px 0 22px;
  display: flex; align-items: center; justify-content: space-between;
  border-radius: 999px; border: 1px solid transparent;
  transition: background .5s var(--ease), border-color .5s, box-shadow .5s;
}
.nav.is-scrolled .nav__bar {
  background: rgba(18,18,16,.62);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-color: var(--line);
  box-shadow: 0 10px 40px -10px rgba(0,0,0,.5);
}
.nav__logo { font-family: var(--serif); font-size: 28px; line-height: 1; }
.nav__logo span { color: var(--accent); }
.nav__links { display: flex; gap: 32px; }
.nav__links a {
  position: relative; font-size: 13px; font-weight: 400; letter-spacing: -0.005em;
  color: var(--muted); padding: 6px 0; transition: color .3s;
}
.nav__links a:hover, .nav__links a.is-active { color: var(--text); }
.nav__links a.is-active { font-weight: 500; }
.nav__social { display: flex; gap: 2px; }
.nav__social a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; transition: background .3s; }
.nav__social a:hover { background: rgba(243,236,210,.08); }
.nav__social svg { width: 17px; height: 17px; fill: none; stroke: var(--text); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.nav__social svg .fill { fill: var(--text); stroke: none; }
.nav__burger { display: none; width: 44px; height: 44px; position: relative; }
.nav__burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--text); transition: transform .45s var(--ease), top .45s var(--ease); }
.nav__burger span:first-child { top: 18px; }
.nav__burger span:last-child { top: 25px; }

/* ---------- V-shaped section edges (Endeavor-style) ---------- */
.chevron-bottom { clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--chev)), 50% 100%, 0 calc(100% - var(--chev))); }
.chevron-top { clip-path: polygon(0 0, 50% var(--chev), 100% 0, 100% 100%, 0 100%); margin-top: calc(var(--chev) * -1); padding-top: calc(var(--chev) + clamp(80px, 10vw, 140px)) !important; }
.chevron-top.chevron-bottom { clip-path: polygon(0 0, 50% var(--chev), 100% 0, 100% calc(100% - var(--chev)), 50% 100%, 0 calc(100% - var(--chev))); padding-bottom: calc(var(--chev) + clamp(80px, 10vw, 140px)) !important; }

/* ---------- Hero (Apple-style) ---------- */
.hero {
  position: relative; height: 100svh; min-height: 640px;
  display: grid; place-items: center; text-align: center; overflow: hidden;
}
/* Scroll effects use transform/opacity only (GPU-composited = smooth) */
.hero__stage {
  position: absolute; inset: 0; overflow: hidden; transform-origin: 50% 0%;
  will-change: transform; backface-visibility: hidden; transform: translateZ(0);
}
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); will-change: transform; }
.hero__shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 48%, rgba(10,10,9,.55), rgba(10,10,9,.15) 70%),
    linear-gradient(180deg, rgba(10,10,9,.35) 0%, transparent 25%, transparent 55%, var(--bg) 100%);
}
.hero__content { position: relative; z-index: 1; padding: 0 var(--gutter); max-width: 1000px; will-change: transform, opacity; }
.hero__eyebrow { font-size: clamp(19px, 1.8vw, 24px); font-weight: 600; letter-spacing: -0.01em; margin: 0 0 14px; color: var(--text); }
.hero__title {
  font-size: clamp(46px, 8.4vw, 120px); line-height: 1.02; font-weight: 700; letter-spacing: -0.045em;
  margin: 0 0 26px;
}
.gradient {
  background: linear-gradient(100deg, #f8eccb 0%, #e3bf74 45%, #b98d43 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .04em;
}
.hero__sub { font-size: clamp(17px, 1.65vw, 22px); line-height: 1.45; color: rgba(243,236,210,.72); margin: 0 auto 38px; font-weight: 400; letter-spacing: -0.01em; max-width: 680px; }
.hero__actions { display: flex; align-items: center; justify-content: center; gap: 30px; flex-wrap: wrap; }
.hero .pill { height: 50px; padding: 0 28px; font-size: 17px; }

.textlink { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 500; color: var(--accent); transition: color .3s; }
.textlink:hover { color: #f0cf8a; }
.textlink__icon { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center; transition: transform .5s var(--ease); }
.textlink__icon::before { content: ""; margin-left: 2px; border-left: 7px solid currentColor; border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; }
.textlink:hover .textlink__icon { transform: scale(1.12); }
.br-desk { display: inline; }
@media (max-width: 760px) { .br-desk { display: none; } .hero__actions { flex-direction: column; gap: 22px; } }

/* ---------- Statement (word-by-word light up) ---------- */
.statement { padding: clamp(70px, 9vw, 130px) 0 clamp(60px, 8vw, 100px); }
.statement .wrap { max-width: 1040px; }
.statement__text {
  font-size: clamp(30px, 4.6vw, 62px); line-height: 1.15; font-weight: 600; letter-spacing: -0.025em; margin: 0;
}
.statement__text .w { color: rgba(243,236,210,.16); transition: color .35s linear; }
.statement__text .w.on { color: var(--text); }
.statement__text em .w.on { color: var(--accent); }

/* ---------- Bento ---------- */
.creds { padding-bottom: clamp(60px, 8vw, 100px); overflow: hidden; }
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.bento__card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 3vw, 38px); min-height: 210px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  transition: transform .6s var(--ease), border-color .4s;
}
.bento__card:hover { transform: translateY(-4px); border-color: rgba(243,236,210,.2); }
.bento__card--wide { grid-column: span 2; }
.bento__card--full { grid-column: 1 / -1; min-height: 0; flex-direction: row; align-items: center; flex-wrap: wrap; }
.bento__card--gold { background: linear-gradient(135deg, #2a2316, #17140e); border-color: rgba(217,181,106,.25); }
.bento__num { font-size: clamp(40px, 5vw, 68px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.bento__card--gold .bento__num { color: var(--accent); }
.bento__card--full .bento__num { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.bento__card p { margin: 0; color: var(--muted); font-size: 15px; }
.bento__card--full p { flex: 1; min-width: 240px; }
.bento__card p strong { display: block; color: var(--text); font-size: 20px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 2px; }
.bento__link { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }

.marquee { margin-top: clamp(50px, 6vw, 80px); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; gap: 70px; width: max-content; animation: marquee 45s linear infinite; }
.marquee__track img { height: 60px; width: auto; opacity: .55; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Zoom-on-scroll video (Apple-style, transform only) ---------- */
.zoom { height: 300vh; position: relative; }
.zoom__sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.zoom__frame {
  position: absolute; inset: 0; overflow: hidden;
  transform: translate3d(0, 6vh, 0) scale(.56); border-radius: 60px;
  will-change: transform, border-radius; backface-visibility: hidden;
  box-shadow: 0 60px 120px -40px rgba(0,0,0,.8);
}
.zoom__frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); will-change: transform; }
.zoom__dim { position: absolute; inset: 0; background: #0a0a09; opacity: .45; pointer-events: none; will-change: opacity; }
.zoom__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(10,10,9,.7)); pointer-events: none; }
.zoom__intro {
  position: absolute; z-index: 2; left: 0; right: 0; top: 9vh; text-align: center; padding: 0 var(--gutter);
  will-change: transform, opacity;
}
.zoom__intro h2 { font-size: clamp(30px, 4.6vw, 64px); line-height: 1.05; font-weight: 700; letter-spacing: -0.04em; margin: 0; }
.zoom__caption {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 10vh; text-align: center; padding: 0 var(--gutter);
  opacity: 0; will-change: transform, opacity;
}
.zoom__kicker { font-size: clamp(26px, 3vw, 40px); font-weight: 700; letter-spacing: -0.03em; margin: 0 0 6px; color: var(--text); }
.zoom__meta { font-size: clamp(14px, 1.3vw, 17px); color: rgba(243,236,210,.75); margin: 0 0 22px; }

/* ---------- Section heads ---------- */
.section { padding: clamp(100px, 13vw, 170px) 0; }
.section--tight { padding-top: 0; }
.head { text-align: center; max-width: 760px; margin: 0 auto clamp(40px, 5vw, 64px); }
.head__title {
  font-size: clamp(44px, 7vw, 96px); line-height: 1; font-weight: 600; letter-spacing: -0.035em; margin: 0;
}
.head__title--sm { font-size: clamp(32px, 4.5vw, 56px); }
.head__title--left { text-align: left; font-size: clamp(38px, 5vw, 68px); margin-bottom: 30px; }
.head__title em { color: var(--accent); }
.head__lead { color: var(--muted); font-size: clamp(17px, 1.5vw, 20px); margin: 22px auto 0; max-width: 620px; }

/* ---------- Tabs ---------- */
.tabs { display: flex; justify-content: center; gap: 34px; border-bottom: 1px solid var(--line); margin-bottom: 44px; }
.tab {
  position: relative; padding: 0 0 16px; font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
  transition: color .3s;
}
.tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform .5s var(--ease); }
.tab:hover { color: var(--text); }
.tab.is-active { color: var(--text); }
.tab.is-active::after { transform: scaleX(1); }

/* ---------- Rails (horizontal carousels) ---------- */
.rail-wrap { position: relative; }
.rail {
  display: none; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 6px max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))) 20px;
  scroll-padding: 0 max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.rail::-webkit-scrollbar { display: none; }
.rail.is-active { display: flex; animation: railIn .7s var(--ease); }
@keyframes railIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }

.clip {
  position: relative; flex: 0 0 auto; scroll-snap-align: start;
  border-radius: 18px; overflow: hidden; background: var(--card); cursor: pointer;
  transition: transform .6s var(--ease);
}
.rail--reels .clip { width: clamp(220px, 22vw, 290px); aspect-ratio: 9/16; }
.rail--wide .clip { width: clamp(300px, 62vw, 780px); aspect-ratio: 16/9; }
.clip img, .clip video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), opacity .5s; }
.clip video { opacity: 0; }
.clip.is-playing video { opacity: 1; }
.clip:hover img, .clip:hover video { transform: scale(1.04); }
.clip::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(10,10,9,.7)); pointer-events: none; }
.clip__play {
  position: absolute; z-index: 2; left: 16px; bottom: 16px; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(243,236,210,.18); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  display: grid; place-items: center; transition: transform .5s var(--ease), background .3s;
}
.clip__play::before { content: ""; margin-left: 3px; border-left: 11px solid var(--text); border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.clip:hover .clip__play { transform: scale(1.12); background: var(--accent); }
.clip:hover .clip__play::before { border-left-color: var(--bg); }

.rail-nav { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }
.arrow {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); font-size: 22px; line-height: 1;
  display: grid; place-items: center; padding-bottom: 3px; transition: background .3s, border-color .3s, opacity .3s;
}
.arrow:hover { background: rgba(243,236,210,.08); border-color: rgba(243,236,210,.3); }
.arrow:disabled { opacity: .3; cursor: default; }

/* ---------- Photos ---------- */
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.photo { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 4/5; cursor: zoom-in; background: var(--card); }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.photo:hover img { transform: scale(1.05); }

/* ---------- Light section ---------- */
.light { background: var(--paper); color: var(--ink); position: relative; z-index: 1; }
.light .label { color: #9a7a3a; }
.light .head__lead { color: var(--ink-muted); }
.light .head__title em { color: #9a7a3a; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step {
  background: #fff; border-radius: var(--radius); padding: 32px 30px 36px;
  box-shadow: 0 1px 0 rgba(22,21,19,.04), 0 20px 50px -30px rgba(22,21,19,.25);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.step:hover { transform: translateY(-6px); box-shadow: 0 1px 0 rgba(22,21,19,.04), 0 30px 60px -30px rgba(22,21,19,.35); }
.step__n { font-size: 13px; font-weight: 700; letter-spacing: .1em; color: #9a7a3a; }
.step h3 { font-size: 23px; font-weight: 600; letter-spacing: -0.02em; margin: 40px 0 10px; line-height: 1.2; }
.step p { margin: 0; color: var(--ink-muted); font-size: 15.5px; }

.hub {
  margin-top: clamp(70px, 9vw, 120px); display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(30px, 5vw, 70px); align-items: center;
  background: var(--ink); color: var(--text); border-radius: 28px; padding: clamp(28px, 5vw, 60px); overflow: hidden;
}
.hub .label { color: var(--accent); }
.hub h3 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.05; font-weight: 600; letter-spacing: -0.03em; margin: 0 0 16px; }
.hub p:not(.label) { color: var(--muted); margin: 0; }
.hub__img { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 60px -20px rgba(0,0,0,.7); }

.clients-block { margin-top: clamp(90px, 11vw, 150px); scroll-margin-top: 100px; }
.logos { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.logos__track { display: flex; align-items: center; gap: clamp(50px, 6vw, 90px); width: max-content; animation: marquee 38s linear infinite; }
.logos:hover .logos__track { animation-play-state: paused; }
.logos__track a { flex: 0 0 auto; }
.logos__track img { height: 48px; width: auto; max-width: 190px; object-fit: contain; filter: brightness(0); opacity: .55; transition: opacity .3s; }
.logos__track a:hover img { opacity: 1; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.about__media { position: sticky; top: 110px; border-radius: 28px; overflow: hidden; aspect-ratio: 4/5; }
.about__media img { width: 100%; height: 100%; object-fit: cover; }
.about__text { padding-top: 20px; }
.about__text p:not(.label) { color: var(--muted); margin: 0 0 20px; font-size: 18px; }
.about__quote { margin: 40px 0 0; padding: 28px 30px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.35; color: var(--text); }

/* ---------- Contact ---------- */
.contact { background: var(--bg-2); padding-bottom: clamp(100px, 12vw, 160px); position: relative; }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.contact__title { font-size: clamp(44px, 6.5vw, 92px); line-height: .98; font-weight: 600; letter-spacing: -0.035em; margin: 0 0 24px; }
.contact__title em { color: var(--accent); }
.contact__lead { color: var(--muted); margin: 0 0 32px; font-size: 18px; max-width: 420px; }
.contact__quick { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.contact__mail { color: var(--muted); border-bottom: 1px solid var(--line); transition: color .3s, border-color .3s; word-break: break-all; }
.contact__mail:hover { color: var(--text); border-color: var(--text); }

.form { background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: clamp(24px, 3.5vw, 40px); display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; }
.field span { font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; background: rgba(243,236,210,.04); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; font-size: 16px; outline: none; transition: border-color .3s, background .3s; resize: vertical;
}
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 17px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.field select option { background: var(--card); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); background-color: rgba(243,236,210,.07); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 26px 0; font-size: 13px; color: var(--muted); background: var(--bg-2); }
.footer__inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer__links { display: flex; gap: 22px; }
.footer__links a:hover { color: var(--text); }

/* ---------- Lightbox ---------- */
.lightbox { border: 0; padding: 0; background: transparent; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; margin: 0; }
.lightbox::backdrop { background: rgba(5,5,5,.9); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.lightbox[open] { display: grid; place-items: center; animation: lbIn .5s var(--ease); }
.lightbox__stage { width: min(92vw, 1280px); height: 86vh; display: grid; place-items: center; }
.lightbox__stage video, .lightbox__stage img { max-width: 100%; max-height: 86vh; border-radius: 16px; }
.lightbox__close { position: fixed; top: 20px; right: 20px; width: 46px; height: 46px; border-radius: 50%; background: rgba(243,236,210,.12); backdrop-filter: blur(10px); font-size: 15px; transition: background .3s; }
.lightbox__close:hover { background: rgba(243,236,210,.22); }
@keyframes lbIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }

/* ---------- Reveal (blur + rise, Apple-ish) ---------- */
.js .reveal { opacity: 0; transform: translateY(30px); filter: blur(8px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease), filter 1.1s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; filter: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .nav__links { gap: 20px; }
  .nav__social { display: none; }
}
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .bento__card--wide { grid-column: span 2; }
  .steps { grid-template-columns: 1fr 1fr; }
  .hub, .about, .contact__grid { grid-template-columns: 1fr; }
  .about__media { position: relative; top: 0; max-width: 520px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav { padding: 10px 12px; }
  .nav__bar { height: 54px; padding: 0 6px 0 18px; }
  .nav__burger { display: block; z-index: 2; }
  .nav__links {
    position: fixed; inset: 0; z-index: 1; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
    background: var(--bg); opacity: 0; pointer-events: none; transition: opacity .45s var(--ease);
  }
  .nav__links a { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
  .nav.menu-open .nav__bar { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav.menu-open .nav__links { opacity: 1; pointer-events: auto; }
  .nav.menu-open .nav__burger span:first-child { top: 21px; transform: rotate(45deg); }
  .nav.menu-open .nav__burger span:last-child { top: 21px; transform: rotate(-45deg); }
  .nav__logo { position: relative; z-index: 2; }

  .bento { grid-template-columns: 1fr; }
  .bento__card, .bento__card--wide { grid-column: auto; min-height: 160px; }
  .zoom { height: 240vh; }
  .zoom__intro { top: 12vh; }
  .tabs { gap: 20px; }
  .tab { font-size: 11px; letter-spacing: .12em; }
  .rail { gap: 12px; }
  .rail--reels .clip { width: 62vw; }
  .rail--wide .clip { width: 86vw; }
  .photos { grid-template-columns: 1fr 1fr; gap: 10px; }
  .photo { border-radius: 14px; }
  .steps { grid-template-columns: 1fr; }
  .step h3 { margin-top: 24px; }
  .form__row { grid-template-columns: 1fr; }
  .marquee__track img { height: 44px; }
  .logos__track img { height: 36px; max-width: 140px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; filter: none; }
  .statement__text .w { color: var(--text); }
}

/* ---------- Instagram items ---------- */
.clip__tag {
  position: absolute; z-index: 2; right: 14px; bottom: 22px; max-width: calc(100% - 80px);
  font-size: 12px; font-weight: 500; color: rgba(243,236,210,.9);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: right;
}
.photo .clip__tag { left: 14px; right: auto; bottom: 14px; padding: 5px 10px; border-radius: 999px; background: rgba(10,10,9,.45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.lightbox__stage:has(.ig-frame) { flex-direction: column; display: flex; align-items: center; justify-content: center; gap: 14px; }
.ig-frame { width: min(420px, 92vw); height: min(780px, 80vh); border-radius: 16px; overflow: hidden; background: #000; }
.ig-frame--p { width: min(520px, 92vw); }
.ig-frame iframe { width: 100%; height: 100%; border: 0; display: block; background: #fff; }
.ig-open { font-size: 14px; color: var(--muted); transition: color .3s; }
.ig-open:hover { color: var(--text); }
.logos__track .logo-raw { filter: grayscale(1) contrast(12) invert(1); mix-blend-mode: multiply; opacity: .6; height: 64px; }
.logo-word { display: block; font-size: 34px; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); opacity: .55; white-space: nowrap; transition: opacity .3s; }
.logo-word--serif { font-family: var(--serif); font-weight: 400; font-style: italic; font-size: 34px; letter-spacing: 0; }
.logos__track a:hover .logo-word { opacity: 1; }
@media (max-width: 760px) { .logo-word { font-size: 22px; } .logo-word--serif { font-size: 26px; } .logos__track .logo-raw { height: 44px; } }
.logos__track .logo-lg { height: 60px; max-width: 160px; }
.logos__track .logo-xl { height: 76px; max-width: 120px; }
@media (max-width: 760px) { .logos__track .logo-lg { height: 44px; } .logos__track .logo-xl { height: 56px; } }
.logo-word--caps { text-transform: uppercase; letter-spacing: .08em; font-weight: 600; font-size: 28px; }

/* ---------- Clients: Apple-style tile grid (overrides marquee) ---------- */
.logos { overflow: visible; mask-image: none; -webkit-mask-image: none; }
.logos__track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; width: auto; animation: none; max-width: 980px; margin: 0 auto; }
.logos__track a {
  display: grid; place-items: center; height: 170px; padding: 30px;
  background: #fff; border-radius: 24px;
  box-shadow: 0 1px 0 rgba(22,21,19,.04), 0 20px 50px -30px rgba(22,21,19,.25);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.logos__track a:hover { transform: translateY(-6px) scale(1.01); box-shadow: 0 1px 0 rgba(22,21,19,.04), 0 34px 70px -30px rgba(22,21,19,.4); }
.logos__track img, .logos__track .logo-lg, .logos__track .logo-xl { height: auto; width: auto; max-height: 72px; max-width: 72%; opacity: .9; filter: brightness(0); }
.logos__track .logo-xl { max-height: 100px; }
.logos__track a:hover img { opacity: 1; }
.logo-word { font-size: 40px; opacity: .9; }
.logo-word--serif { font-size: 44px; }
.logo-word--caps { font-size: 32px; }
@media (max-width: 760px) {
  .logos__track { grid-template-columns: 1fr 1fr; gap: 10px; }
  .logos__track a { height: 120px; padding: 20px; border-radius: 18px; }
  .logos__track img { max-height: 50px; } .logos__track .logo-xl { max-height: 70px; }
  .logo-word { font-size: 26px; } .logo-word--serif { font-size: 30px; } .logo-word--caps { font-size: 22px; }
}
