/* Inter, served from this site (no Google Fonts request → better privacy and speed). Variable font: one file covers 100–900. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/assets/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --black: #000;
  --ink: #f5f5f7;
  --ink-2: #a1a1a6;
  --ink-3: #6e6e73;
  --paper: #f5f5f7;
  --paper-ink: #1d1d1f;
  --tile: #161617;
  --line: rgba(255, 255, 255, 0.12);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", system-ui, sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--black);
  color: var(--ink);
  font: 400 17px/1.47 var(--font);
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; letter-spacing: inherit; }
img, video { display: block; max-width: 100%; }
::selection { background: #fff; color: #000; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.kicker { font-size: clamp(17px, 1.6vw, 21px); font-weight: 600; color: var(--ink-2); letter-spacing: -0.01em; margin-bottom: 10px; }
.kicker.dark { color: var(--ink-3); }

/* ================= Nav ================= */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background 0.4s, color 0.4s; }
.nav-inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); height: 52px; display: flex; align-items: center; justify-content: space-between; }
.nav.solid { background: rgba(0, 0, 0, 0.72); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); }
.nav.on-light { background: rgba(245, 245, 247, 0.8); color: var(--paper-ink); }
.brand { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 13px; }
.nav-links a { opacity: 0.8; transition: opacity 0.2s; }
.nav-links a:hover { opacity: 1; }
.nav-cta { opacity: 1 !important; background: #fff; color: #000; padding: 5px 13px; border-radius: 999px; font-weight: 500; }
.nav.on-light .nav-cta { background: var(--paper-ink); color: #fff; }

/* ================= Hero ================= */
.hero { height: 260vh; position: relative; }
.hero-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.hero-title { position: absolute; top: clamp(90px, 15vh, 150px); left: 0; right: 0; text-align: center; padding: 0 var(--gutter); will-change: transform, opacity; }
.hero h1 { font-size: clamp(44px, 8vw, 104px); line-height: 1.02; font-weight: 700; letter-spacing: -0.045em; }
.hero-frame {
  position: relative; overflow: hidden; background: #111; will-change: width, height, transform;
  box-shadow: 0 40px 120px -40px rgba(255, 255, 255, 0.08);
}
.hero-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.frame-fallback, .panel-media {
  background:
    radial-gradient(40% 60% at 20% 30%, hsl(var(--h, 220) 70% 45% / 0.55), transparent 70%),
    radial-gradient(45% 55% at 80% 70%, hsl(calc(var(--h, 220) + 60) 70% 40% / 0.5), transparent 70%),
    radial-gradient(30% 40% at 60% 20%, hsl(calc(var(--h, 220) + 140) 60% 50% / 0.35), transparent 70%),
    #0a0a0b;
  background-size: 160% 160%;
  animation: drift 18s ease-in-out infinite alternate;
}
.frame-fallback { position: absolute; inset: 0; --h: 15; }
@keyframes drift { 0% { background-position: 0% 0%; } 100% { background-position: 100% 100%; } }
.hero-frame-ui { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; opacity: 0; background: linear-gradient(to top, rgba(0,0,0,0.35), transparent 50%); }
.scroll-hint { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); font-size: 12px; color: var(--ink-3); letter-spacing: 0.02em; }
.scroll-hint::after { content: ""; display: block; width: 1px; height: 28px; margin: 8px auto 0; background: linear-gradient(var(--ink-3), transparent); animation: hint 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes hint { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

.play-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px 14px 20px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.16); color: #fff; font-size: 17px; font-weight: 500;
  backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
  transition: transform 0.3s cubic-bezier(.2,.8,.2,1), background 0.3s;
}
.play-pill:hover { transform: scale(1.04); background: rgba(255, 255, 255, 0.26); }
.play-pill.light { background: #fff; color: #000; }
.play-pill.light:hover { background: #e8e8ed; }
.play-icon { width: 0; height: 0; border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }

/* ================= Statement ================= */
.statement { height: 220vh; }
.statement-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; place-items: center; padding: 0 var(--gutter); }
.statement-text { max-width: 980px; font-size: clamp(32px, 5.4vw, 72px); line-height: 1.1; font-weight: 700; letter-spacing: -0.035em; }
.statement-text .w { color: rgb(245 245 247 / calc(0.16 + var(--o, 0) * 0.84)); transition: color 0.15s linear; }

/* ================= Works stack ================= */
.works-intro { max-width: var(--max); margin: 0 auto; padding: 18vh var(--gutter) 10vh; }
.works-intro h2, .index h2, .about h2, .services-title, .contact h2 { font-size: clamp(40px, 6.4vw, 80px); line-height: 1.04; font-weight: 700; letter-spacing: -0.04em; }
.panel { position: sticky; top: 0; height: 100vh; height: 100svh; }
.panel-inner { position: relative; height: 100%; overflow: hidden; transform-origin: 50% 0%; will-change: transform; background: #000; }
.panel-media { position: absolute; inset: 0; }
.panel-media img, .panel-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.panel-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.15) 45%, transparent 70%); }
.panel-copy { position: absolute; left: 0; right: 0; bottom: 0; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) clamp(40px, 9vh, 88px); }
.panel-meta { display: flex; gap: 18px; font-size: 14px; color: rgba(255,255,255,0.7); margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.panel h3 { font-size: clamp(48px, 9vw, 128px); line-height: 0.98; font-weight: 700; letter-spacing: -0.05em; }
.panel-sub { font-size: clamp(17px, 1.6vw, 21px); color: rgba(255,255,255,0.75); margin: 14px 0 28px; }

/* ================= Index ================= */
.index { padding: clamp(110px, 16vh, 180px) 0 clamp(80px, 12vh, 140px); background: var(--black); position: relative; z-index: 1; }
.index-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font-size: 14px; padding: 8px 16px; border-radius: 999px; background: var(--tile); color: var(--ink-2); transition: background 0.2s, color 0.2s; }
.chip:hover { color: var(--ink); }
.chip.on { background: var(--ink); color: #000; }
.index-list { list-style: none; border-top: 1px solid var(--line); }
.index-list li { border-bottom: 1px solid var(--line); }
.row {
  width: 100%; text-align: left; display: grid; align-items: center; gap: 24px;
  grid-template-columns: 112px 2fr 1.4fr 1fr 60px 24px; padding: 18px 0;
  transition: padding 0.4s cubic-bezier(.2,.8,.2,1);
}
.row-thumb { aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; position: relative;
  background: radial-gradient(60% 80% at 30% 30%, hsl(var(--h) 60% 40%), transparent), radial-gradient(60% 80% at 80% 80%, hsl(calc(var(--h) + 60) 60% 30%), transparent), #111; }
.row-thumb img { width: 100%; height: 100%; object-fit: cover; }
.row-title { font-size: clamp(19px, 1.8vw, 24px); font-weight: 600; letter-spacing: -0.02em; }
.row-client, .row-cat, .row-fmt { color: var(--ink-2); font-size: 15px; }
.row-fmt { font-variant-numeric: tabular-nums; }
.row-arrow { width: 10px; height: 10px; border-top: 1.5px solid var(--ink-2); border-right: 1.5px solid var(--ink-2); transform: rotate(45deg); transition: transform 0.3s, border-color 0.3s; }
.row:hover { padding-left: 12px; }
.row:hover .row-arrow { transform: translateX(6px) rotate(45deg); border-color: var(--ink); }
.row:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 8px; }

/* ================= About (light) ================= */
.about { background: var(--paper); color: var(--paper-ink); padding: clamp(100px, 16vh, 180px) 0; position: relative; z-index: 1; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.about-photo { aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden; background: #e8e8ed; position: relative; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-photo.empty img { display: none; }
.about-photo.empty::after { content: "Portre fotoğrafın buraya"; position: absolute; inset: 0; display: grid; place-items: center; color: #86868b; font-size: 15px; }
.about h2 { margin-bottom: 28px; }
.about .lead { font-size: clamp(21px, 2vw, 28px); line-height: 1.3; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 18px; }
.about-text p { color: #424245; }
.about .lead { color: var(--paper-ink); }
.facts { display: flex; gap: clamp(28px, 5vw, 64px); margin-top: 40px; }
.facts div { display: flex; flex-direction: column; }
.facts dd { font-size: clamp(40px, 4.4vw, 56px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.facts dt { color: #6e6e73; font-size: 15px; margin-top: 6px; order: 2; }

/* ================= Services ================= */
.services { padding: clamp(110px, 16vh, 180px) 0; background: var(--black); position: relative; z-index: 1; }
.services-title { margin-bottom: 56px; }
.dim { color: var(--ink-3); }
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile { background: var(--tile); border-radius: 28px; padding: 36px; min-height: 260px; display: flex; flex-direction: column; justify-content: space-between; transition: transform 0.5s cubic-bezier(.2,.8,.2,1); }
.tile:hover { transform: scale(1.015); }
.tile-lg { grid-row: span 2; background: linear-gradient(160deg, #1e1e20, #0d0d0e); }
.tile-lg h3 { font-size: clamp(32px, 3.6vw, 48px) !important; }
.tile-wide { grid-column: span 2; }
.tile-k { color: var(--ink-2); font-size: 15px; font-weight: 600; }
.tile h3 { font-size: clamp(24px, 2.2vw, 30px); line-height: 1.12; font-weight: 700; letter-spacing: -0.03em; }

/* ================= Contact ================= */
.contact { padding: clamp(120px, 20vh, 220px) 0; text-align: center; background: var(--black); position: relative; z-index: 1; }
.contact h2 { font-size: clamp(44px, 8vw, 104px); margin-bottom: 44px; }
.grad { background: linear-gradient(90deg, #f5f5f7, #8e8e93 60%, #f5f5f7); -webkit-background-clip: text; background-clip: text; color: transparent; }
.contact-btn { display: inline-block; background: #fff; color: #000; font-size: clamp(16px, 1.6vw, 19px); font-weight: 500; padding: 16px 30px; border-radius: 999px; transition: transform 0.3s, background 0.3s; overflow-wrap: anywhere; }
.contact-btn:hover { transform: scale(1.04); background: #e8e8ed; }
.socials { list-style: none; display: flex; justify-content: center; gap: 28px; margin-top: 32px; font-size: 15px; }
.socials a { color: var(--ink-2); transition: color 0.2s; }
.socials a:hover { color: var(--ink); }

.footer { border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); position: relative; z-index: 1; background: var(--black); }
.footer-inner { display: flex; justify-content: space-between; padding-block: 22px; }

/* ================= Modal ================= */
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, 0.92); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); display: grid; place-items: center; padding: var(--gutter); opacity: 0; transition: opacity 0.3s; }
.modal.open { opacity: 1; }
.modal[hidden] { display: none; }
.modal-inner { width: min(1280px, 100%); transform: scale(0.96); transition: transform 0.4s cubic-bezier(.2,.8,.2,1); }
.modal.open .modal-inner { transform: none; }
.player { aspect-ratio: 16 / 9; background: #0a0a0b; border-radius: 18px; overflow: hidden; }
.player iframe { width: 100%; height: 100%; border: 0; }
.player-empty { height: 100%; display: grid; place-content: center; text-align: center; gap: 8px; padding: 24px; color: var(--ink-2); }
.pe-t { color: var(--ink); font-size: 24px; font-weight: 600; }
.modal-meta { margin-top: 20px; }
.modal-meta h3 { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.modal-meta p { color: var(--ink-2); font-size: 15px; }
.modal-close { position: absolute; top: 20px; right: 20px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.12); transition: background 0.2s; }
.modal-close::before, .modal-close::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; background: #fff; }
.modal-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.modal-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.modal-close:hover { background: rgba(255,255,255,0.22); }

/* ================= Reveal ================= */
.rv { opacity: 0; transform: translateY(40px); transition: opacity 1s cubic-bezier(.2,.8,.2,1), transform 1s cubic-bezier(.2,.8,.2,1); }
.rv.in { opacity: 1; transform: none; }
.bento .tile.rv:nth-child(2), .about-text > .rv:nth-child(2) { transition-delay: 0.06s; }
.bento .tile.rv:nth-child(3), .about-text > .rv:nth-child(3) { transition-delay: 0.12s; }
.bento .tile.rv:nth-child(4), .about-text > .rv:nth-child(4) { transition-delay: 0.18s; }
.bento .tile.rv:nth-child(5), .about-text > .rv:nth-child(5) { transition-delay: 0.24s; }
.bento .tile.rv:nth-child(6) { transition-delay: 0.3s; }

/* ================= Responsive ================= */
@media (max-width: 900px) {
  .row { grid-template-columns: 96px 1fr 60px 20px; gap: 16px; }
  .row-client, .row-cat { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 460px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile-lg { grid-row: auto; grid-column: span 2; }
}
@media (max-width: 600px) {
  .nav-links { gap: 18px; }
  .nav-links a[href="#about"] { display: none; }
  .row { grid-template-columns: 80px 1fr 20px; padding: 14px 0; }
  .row-fmt { display: none; }
  .bento { grid-template-columns: 1fr; }
  .tile-lg, .tile-wide { grid-column: auto; }
  .tile { min-height: 180px; padding: 28px; border-radius: 22px; }
  .panel-meta { gap: 12px; font-size: 13px; }
  .facts { gap: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
}

/* ================= Vertical rail ================= */
.reels { position: relative; }
.reels-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: clamp(20px, 4vh, 44px); }
.reels-head { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.reels-head h2 { font-size: clamp(36px, 5.4vw, 72px); line-height: 1.04; font-weight: 700; letter-spacing: -0.04em; }
.reels-count { text-align: right; color: var(--ink-2); font-size: 15px; line-height: 1.5; white-space: nowrap; }
.reels-count b { color: var(--ink); font-weight: 600; }
.reels-count a { color: var(--ink); border-bottom: 1px solid var(--ink-3); }
.rail {
  display: flex; gap: clamp(14px, 2vw, 28px); width: max-content; will-change: transform;
  padding: 0 max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
}
.reel { --d: 0; width: clamp(200px, min(22vw, 34vh), 340px); text-align: left; display: flex; flex-direction: column; gap: 4px; flex: none;
  transform: scale(calc(1 - var(--d) * 0.1)); opacity: calc(1 - var(--d) * 0.45); transition: transform 0.15s linear, opacity 0.15s linear; }
.reel-media { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: clamp(18px, 2vw, 28px); overflow: hidden; margin-bottom: 12px; }
.reel-media img, .reel-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel-play { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; display: grid; place-items: center; padding-left: 3px;
  background: rgba(255,255,255,0.18); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); color: #fff; opacity: 0; transform: scale(0.85); transition: all 0.3s cubic-bezier(.2,.8,.2,1); }
.reel:hover .reel-play, .reel:focus-visible .reel-play { opacity: 1; transform: none; }
.reel:focus-visible { outline: none; }
.reel:focus-visible .reel-media { outline: 2px solid #fff; outline-offset: 4px; }
.reel-client { font-size: 13px; color: var(--ink-2); font-weight: 500; }
.reel-title { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.rail-progress { width: min(200px, 40vw); height: 2px; background: var(--line); margin: 0 auto; border-radius: 2px; overflow: hidden; }
.rail-progress span { display: block; height: 100%; background: var(--ink); transform-origin: left; transform: scaleX(0); }

.more-btn { display: block; margin: 32px auto 0; font-size: 15px; font-weight: 500; padding: 12px 24px; border-radius: 999px; background: var(--tile); color: var(--ink); transition: background 0.2s; }
.more-btn:hover { background: #232325; }
.more-btn[hidden] { display: none; }

/* Vertical player */
.modal.vertical .modal-inner { width: auto; display: flex; flex-direction: column; align-items: center; }
.modal.vertical .player { height: min(82vh, 860px); width: auto; aspect-ratio: 9 / 16; max-width: calc(100vw - 2 * var(--gutter)); }
.modal.vertical .modal-meta { text-align: center; }

@media (max-width: 600px) {
  .reels-head h2 { font-size: 34px; }
  .reel { width: 62vw; }
  .reels-count { font-size: 13px; }
  .modal.vertical .player { height: auto; width: 100%; }
}
@media (max-height: 640px) and (min-width: 601px) {
  .reels-head h2 { font-size: 36px; }
}

/* ================= Portrait ================= */
.about-photo img { object-position: 50% 30%; }

/* ================= Gear ================= */
.gear { margin-top: clamp(80px, 12vh, 140px); }
.gear-title { font-size: clamp(28px, 3vw, 40px); font-weight: 700; letter-spacing: -0.03em; margin-bottom: 28px; }
.gear-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #d2d2d7; }
.gear-grid div { padding: 24px 24px 28px 0; border-bottom: 1px solid #d2d2d7; }
.gear-grid dt { font-size: 13px; font-weight: 600; color: #6e6e73; margin-bottom: 8px; }
.gear-grid dd { font-size: 17px; line-height: 1.5; color: var(--paper-ink); font-weight: 500; }

/* ================= Brands marquee ================= */
.brands { padding: clamp(90px, 14vh, 150px) 0; background: var(--black); position: relative; z-index: 1; overflow: hidden; }
.brands-k { text-align: center; color: var(--ink-2); font-size: 15px; font-weight: 600; margin-bottom: 40px; }
.marquee { display: flex; width: max-content; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { list-style: none; display: flex; flex: none; animation: marquee 50s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track li { font-size: clamp(28px, 4vw, 52px); font-weight: 700; letter-spacing: -0.04em; color: #3a3a3c; padding: 0 clamp(20px, 3vw, 44px); white-space: nowrap; transition: color 0.3s; }
.marquee-track li:hover { color: var(--ink); }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ================= Contact actions ================= */
.contact-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.contact-btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.3); }
.contact-btn.ghost:hover { background: rgba(255,255,255,0.08); }

@media (max-width: 900px) { .gear-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) {
  .gear-grid { grid-template-columns: 1fr; }
  .facts { flex-wrap: wrap; }
  .contact-actions { flex-direction: column; align-items: stretch; }
}

.about-text p:not(.kicker):not(.lead) + p { margin-top: 14px; }

/* Reel cards: size by whichever is tighter, width or height, so the header and titles always fit */
.reel { width: clamp(150px, min(22vw, calc((100vh - 330px) * 0.5625)), 340px); }
@media (max-width: 600px) {
  .reel { width: clamp(150px, min(62vw, calc((100vh - 300px) * 0.5625)), 340px); }
}
.reels-sticky { padding-top: 52px; }

/* Logos in the brands strip: same visual weight as the text names */
.marquee-track li { color: rgba(255,255,255,0.42); display: flex; align-items: center; }
.marquee-track li.logo img { height: calc(clamp(28px, 4vw, 52px) * var(--lh, 1)); width: auto; opacity: 0.42; transition: opacity 0.3s; }
.marquee-track li.logo img.mono { filter: brightness(0) invert(1); }
.marquee-track li:hover, .marquee-track li.logo:hover img { color: var(--ink); opacity: 1; }

/* ================= Project request form ================= */
.contact h2 { margin-bottom: 20px; }
.contact-sub { color: var(--ink-2); font-size: clamp(17px, 1.6vw, 21px); margin-bottom: 48px; }
.brief { max-width: 760px; margin: 0 auto; text-align: left; background: var(--tile); border-radius: 28px; padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; gap: 20px; }
.brief-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.field { display: flex; flex-direction: column; gap: 8px; border: 0; min-width: 0; }
.field > span, .field > legend { font-size: 13px; font-weight: 600; color: var(--ink-2); padding: 0; margin-bottom: 0; }
.field > legend { margin-bottom: 10px; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink); background: #0d0d0e; border: 1px solid #2c2c2e; border-radius: 12px; padding: 13px 14px; width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s; -webkit-appearance: none; appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.field textarea::placeholder { color: #5a5a5e; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: #8e8e93; box-shadow: 0 0 0 4px rgba(255,255,255,0.08); }
.field.invalid input, .field.invalid textarea { border-color: #ff453a; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; font-size: 14px; padding: 9px 15px; border-radius: 999px; border: 1px solid #2c2c2e; color: var(--ink-2); transition: all 0.2s; user-select: none; }
.chips label:hover span { color: var(--ink); border-color: #48484a; }
.chips input:checked + span { background: var(--ink); color: #000; border-color: var(--ink); }
.chips input:focus-visible + span { box-shadow: 0 0 0 3px rgba(255,255,255,0.35); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink-2); line-height: 1.45; cursor: pointer; }
.consent input { width: 20px; height: 20px; flex: none; margin-top: 1px; accent-color: #f5f5f7; }
.consent a { color: var(--ink); border-bottom: 1px solid var(--ink-3); }
.consent.invalid span { color: #ff6961; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.brief-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.brief-actions .contact-btn { border: 0; cursor: pointer; }
.brief-actions .contact-btn:disabled { opacity: 0.6; cursor: default; transform: none; }
.brief-status { font-size: 15px; min-height: 1.4em; }
.brief-status.ok { color: #30d158; }
.brief-status.err { color: #ff6961; }
.linkish { color: var(--ink); text-decoration: underline; font-size: inherit; }
.direct-k { color: var(--ink-3); font-size: 14px; margin: 56px 0 18px; }

/* ================= Floating WhatsApp ================= */
.wa-float {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 60;
  display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 20px 0 16px; border-radius: 999px;
  background: rgba(28, 28, 30, 0.78); color: #fff; font-size: 15px; font-weight: 600;
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 10px 30px -8px rgba(0,0,0,0.6), inset 0 0 0 1px rgba(255,255,255,0.1);
  opacity: 0; transform: translateY(16px) scale(0.96); pointer-events: none;
  transition: opacity 0.35s, transform 0.35s cubic-bezier(.2,.8,.2,1), background 0.2s;
}
.wa-float.show { opacity: 1; transform: none; pointer-events: auto; }
.wa-float:hover { background: rgba(44, 44, 46, 0.9); }
.wa-float svg { width: 24px; height: 24px; color: #30d158; }

@media (max-width: 600px) {
  .brief-grid { grid-template-columns: 1fr; }
  .brief { border-radius: 22px; }
  .brief-actions { flex-direction: column; }
  .brief-actions .contact-btn { width: 100%; text-align: center; }
  .wa-float { width: 56px; height: 56px; padding: 0; justify-content: center; }
  .wa-float span { display: none; }
  .wa-float svg { width: 28px; height: 28px; }
}

/* ================= Hero reel ================= */
.hero-reel { position: absolute; inset: 0; z-index: 1; }
.hero-reel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.9s ease; }
.hero-reel video.on { opacity: 1; }
.hero-reel-cap { position: absolute; left: 20px; bottom: 16px; z-index: 2; font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.75); letter-spacing: 0; opacity: 0; transition: opacity 0.4s; pointer-events: none; text-shadow: 0 1px 8px rgba(0,0,0,0.6); }
.hero-frame-ui { z-index: 3; }

/* Headline also scales with window height, so short screens keep room for the video frame */
.hero h1 { font-size: clamp(40px, min(8vw, 11vh), 104px); }
.hero-title { top: clamp(72px, 13vh, 150px); }

/* ================= WhatsApp chat card ================= */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wa { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; pointer-events: none; }
.wa .wa-float { position: static; pointer-events: none; }
.wa .wa-float.show { pointer-events: auto; }
.wa.is-open .wa-float { background: rgba(44, 44, 46, 0.95); }
.wa-card {
  pointer-events: auto; width: 340px; max-width: calc(100vw - 32px);
  background: rgba(22, 22, 23, 0.92); color: var(--ink); border-radius: 22px; overflow: hidden;
  backdrop-filter: saturate(180%) blur(24px); -webkit-backdrop-filter: saturate(180%) blur(24px);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.75), inset 0 0 0 1px rgba(255,255,255,0.1);
  transform-origin: bottom right; opacity: 0; transform: translateY(12px) scale(0.96);
  transition: opacity 0.25s ease, transform 0.3s cubic-bezier(.2,.8,.2,1);
}
.wa-card.open { opacity: 1; transform: none; }
.wa-card[hidden] { display: none; }
.wa-head { display: flex; align-items: center; gap: 12px; padding: 16px 16px 14px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.wa-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: 50% 28%; flex: none; }
.wa-name { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.wa-status { font-size: 13px; color: var(--ink-2); display: flex; align-items: center; gap: 6px; margin-top: 1px; }
.wa-dot { width: 8px; height: 8px; border-radius: 50%; background: #30d158; box-shadow: 0 0 0 3px rgba(48,209,88,0.18); }
.wa-x { margin-left: auto; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,0.08); position: relative; flex: none; transition: background 0.2s; }
.wa-x:hover { background: rgba(255,255,255,0.16); }
.wa-x::before, .wa-x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: #fff; }
.wa-x::before { transform: translate(-50%, -50%) rotate(45deg); } .wa-x::after { transform: translate(-50%, -50%) rotate(-45deg); }
.wa-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.wa-bubble { align-self: flex-start; max-width: 88%; background: #2c2c2e; padding: 11px 14px; border-radius: 18px 18px 18px 6px; font-size: 15px; line-height: 1.4; }
.wa-quick { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.wa-quick button { font-size: 14px; font-weight: 500; padding: 9px 14px; border-radius: 999px; color: #30d158; box-shadow: inset 0 0 0 1px rgba(48,209,88,0.45); transition: background 0.2s, color 0.2s; text-align: right; }
.wa-quick button:hover { background: #30d158; color: #000; }
.wa-compose { display: flex; align-items: flex-end; gap: 8px; padding: 0 12px 10px 16px; }
.wa-compose textarea { flex: 1; font: inherit; font-size: 15px; color: var(--ink); background: #0d0d0e; border: 1px solid #2c2c2e; border-radius: 20px; padding: 10px 14px; resize: none; line-height: 1.35; max-height: 120px; }
.wa-compose textarea:focus { outline: none; border-color: #48484a; }
.wa-send { width: 40px; height: 40px; border-radius: 50%; background: #30d158; color: #000; display: grid; place-items: center; flex: none; transition: transform 0.2s; }
.wa-send:hover { transform: scale(1.06); }
.wa-send svg { width: 18px; height: 18px; margin-left: 2px; }
.wa-foot { font-size: 11px; color: var(--ink-3); text-align: center; padding: 0 16px 12px; }
@media (max-width: 600px) {
  .wa-card { width: calc(100vw - 32px); }
}

/* Hidden chip checkboxes must not inherit the 100%-wide field input style (it pushed the page wider than the screen) */
.chips label { position: relative; }
.chips input { width: 1px !important; height: 1px !important; padding: 0 !important; border: 0 !important; left: 0; top: 0; }
.brief { position: relative; }

/* ================= Short screens (phones held sideways, small laptop windows) ================= */
/* Video player: never taller than the screen */
.modal-inner { width: min(1280px, 100%, calc((100vh - 150px) * 16 / 9)); }
.modal.vertical .modal-inner { width: auto; }
.modal.vertical .player { height: min(calc(100vh - 150px), 860px); width: auto; max-width: 100%; }
@supports (height: 100svh) {
  .modal-inner { width: min(1280px, 100%, calc((100svh - 150px) * 16 / 9)); }
  .modal.vertical .player { height: min(calc(100svh - 150px), 860px); }
}
@media (max-width: 600px) { .modal.vertical .player { width: auto; } }

/* WhatsApp card scrolls inside itself instead of running off the top */
.wa-card { max-height: calc(100vh - 100px); overflow-y: auto; overscroll-behavior: contain; }
@supports (height: 100svh) { .wa-card { max-height: calc(100svh - 100px); } }

@media (max-height: 520px) {
  .reels-sticky { gap: 10px; padding-top: 56px; }
  .reels-head .kicker { display: none; }
  .reels-head h2 { font-size: 26px !important; }
  .reels-head h2 br { display: none; }
  .reels-count { font-size: 12px; }
  .reel { width: clamp(84px, calc((100vh - 190px) * 0.5625), 200px) !important; }
  .reel-media { margin-bottom: 6px; border-radius: 14px; }
  .reel-client { display: none; }
  .reel-title { font-size: 13px; }
  .wa-quick button { padding: 7px 12px; font-size: 13px; }
  .wa-body { padding: 12px 16px; gap: 8px; }
  .modal-close { top: 10px; right: 10px; }
  .modal-meta { margin-top: 10px; }
  .modal-meta h3 { font-size: 18px; }
}
/* vertical player: limited by height AND by screen width (narrow tall phones) */
.modal.vertical .player { height: min(calc(100vh - 150px), 860px, calc((100vw - 2 * var(--gutter)) * 16 / 9)); }
@supports (height: 100svh) {
  .modal.vertical .player { height: min(calc(100svh - 150px), 860px, calc((100vw - 2 * var(--gutter)) * 16 / 9)); }
}
/* Reel cards: leave enough height for header, titles and progress bar on every screen */
.reel { width: clamp(150px, min(22vw, calc((100vh - 420px) * 0.5625)), 340px); }
@supports (height: 100svh) { .reel { width: clamp(150px, min(22vw, calc((100svh - 420px) * 0.5625)), 340px); } }
@media (max-width: 600px) {
  .reel { width: clamp(150px, min(62vw, calc((100vh - 330px) * 0.5625)), 340px); }
  @supports (height: 100svh) { .reel { width: clamp(150px, min(62vw, calc((100svh - 330px) * 0.5625)), 340px); } }
}

/* ================= Behind the scenes gallery (inside the light About section) ================= */
.bts { margin-top: clamp(90px, 13vh, 150px); }
.bts-head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 36px; }
.bts-title { font-size: clamp(32px, 4.4vw, 56px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.05; color: var(--paper-ink); }
.bts-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(14px, 2vw, 24px); align-items: stretch; }
.bts-item { margin: 0; display: flex; flex-direction: column; gap: 12px; cursor: pointer; outline: none; }
.bts-wide { grid-column: span 12; }
.bts-tall { grid-column: span 5; }
.bts-land { grid-column: span 7; }
.bts-half { grid-column: span 6; }
.bts-img { position: relative; overflow: hidden; border-radius: clamp(14px, 1.6vw, 22px); background: #1d1d1f; }
.bts-wide .bts-img { aspect-ratio: 2.39 / 1; }
.bts-tall .bts-img, .bts-half .bts-img { aspect-ratio: 4 / 5; }
.bts-land .bts-img { flex: 1; min-height: 0; aspect-ratio: 3 / 2; }
@supports (display: grid) { .bts-land .bts-img { aspect-ratio: auto; } }
.bts-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.001); transition: opacity 0.9s ease, transform 1.4s cubic-bezier(.2,.8,.2,1); }
.bts-color { opacity: 0; }
.bts-item:hover .bts-color, .bts-item.on .bts-color, .bts-item:focus-visible .bts-color { opacity: 1; }
.bts-item:hover .bts-img img, .bts-item.on .bts-img img { transform: scale(1.035); }
.bts-item:focus-visible .bts-img { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--paper-ink); }
/* viewfinder corners appear on hover */
.bts-corners { position: absolute; inset: 14px; pointer-events: none; opacity: 0; transition: opacity 0.5s; z-index: 2;
  background:
    linear-gradient(#fff, #fff) top left / 20px 1.5px no-repeat, linear-gradient(#fff, #fff) top left / 1.5px 20px no-repeat,
    linear-gradient(#fff, #fff) top right / 20px 1.5px no-repeat, linear-gradient(#fff, #fff) top right / 1.5px 20px no-repeat,
    linear-gradient(#fff, #fff) bottom left / 20px 1.5px no-repeat, linear-gradient(#fff, #fff) bottom left / 1.5px 20px no-repeat,
    linear-gradient(#fff, #fff) bottom right / 20px 1.5px no-repeat, linear-gradient(#fff, #fff) bottom right / 1.5px 20px no-repeat; }
.bts-item:hover .bts-corners, .bts-item.on .bts-corners { opacity: 0.85; }
.bts-item figcaption { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; font-size: 14px; color: #6e6e73; }
.bts-slate { font: 600 11px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.14em; color: var(--paper-ink); padding: 4px 7px; border: 1px solid #d2d2d7; border-radius: 6px; }
.bts-cap b { color: var(--paper-ink); font-weight: 600; }

@media (max-width: 760px) {
  .bts-grid { grid-template-columns: 1fr; }
  .bts-wide, .bts-tall, .bts-land, .bts-half { grid-column: auto; }
  .bts-wide .bts-img { aspect-ratio: 16 / 10; }
  .bts-land .bts-img { aspect-ratio: 3 / 2; flex: none; }
  .bts-tall .bts-img, .bts-half .bts-img { aspect-ratio: 4 / 5; }
}
