/* ============================================================
   SERGHEI VETROV — main stylesheet (v2 after review)
   Rules:
   - hero black #000, light sections #fff, footer light #efefef
   - video players live on DARK, long texts on LIGHT
   - header is ALWAYS fixed and visible
   - soft fade-in / fade-out between sections
   ============================================================ */

:root {
  --black: #000000;
  --ink: #000000;              /* texts on light pages */
  --white: #ffffff;
  --foot: #efefef;
  --red: #e01f26;
  --txt-on-dark: rgba(255, 255, 255, 0.7);
  --txt-on-light: rgba(0, 0, 0, 0.7);
  --pad: clamp(20px, 4vw, 60px);
  --content-pad: clamp(40px, 9vw, 150px);   /* generous case margins */
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);   /* strong ease-out for press feedback (Emil) */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Gothic A1", -apple-system, "Helvetica Neue", Arial, sans-serif;
  background: var(--black);
  color: var(--txt-on-dark);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.8s var(--ease), color 0.8s var(--ease);
  overflow-x: hidden;
}

body.light { background: var(--white); color: var(--txt-on-light); }

a { color: inherit; text-decoration: none; }
img, video, iframe { display: block; max-width: 100%; }

::selection { background: var(--red); color: #fff; }


/* ---------------- Stacking order ---------------- */
header.site-header, #menu-pill, #preloader, #intro, nav.primary.open,
.hero, .case-hero, section, footer.site-footer, #mascot { position: relative; z-index: 2; }
header.site-header { z-index: 100; }
#preloader { z-index: 200; }
#intro { z-index: 250; }
#menu-pill { z-index: 130; }
nav.primary.open { z-index: 125; }
#mascot { z-index: 90; }

/* ---------------- Intro — logo reveal (The Mill style) ---------------- */
#intro {
  position: fixed; inset: 0; z-index: 250; pointer-events: none;
  will-change: transform;
}
#intro svg { width: 100%; height: 100%; display: block; }
#intro .intro-bg { fill: #1c1c1c; }
#intro .intro-word {
  font-family: "Gothic A1", -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-weight: 900; font-size: 175px; letter-spacing: 2px;
}
#intro .intro-solid { fill: #fff; opacity: 0; transition: opacity .6s var(--ease); }
#intro.show .intro-solid { opacity: 1; }
#intro.cut .intro-solid { opacity: 0; }      /* letters become windows onto the video */
#intro.done { display: none; }
body.intro-lock { overflow: hidden; }

/* ---------------- Preloader ---------------- */
#preloader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--black);
  display: flex; align-items: flex-end; justify-content: flex-start;
  padding: var(--pad);
  transition: opacity 0.8s var(--ease), visibility 0.8s;
}
#preloader .count {
  font-size: clamp(60px, 12vw, 160px);
  font-weight: 800; color: var(--white); line-height: 1;
  letter-spacing: -0.03em;
}
#preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }

/* ---------------- Header / Nav — always fixed, always visible ---------------- */
header.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 30px var(--pad) 16px;   /* extra air above the logo / nav */
  min-height: 100px;
}
/* two logo files cross-fade: white wordmark for dark bg, black one for light —
   the red breast stays red in both (no filter tricks). */
.logo { position: relative; display: inline-block; line-height: 0; }
.logo img { height: 43px; width: auto; transition: opacity 0.8s var(--ease); }
.logo img.on-light { position: absolute; inset: 0; opacity: 0; }
body.light .logo img.on-dark { opacity: 0; }
body.light .logo img.on-light { opacity: 1; }
body.over-hero .logo img.on-dark { opacity: 1; }
body.over-hero .logo img.on-light { opacity: 0; }

nav.primary { display: flex; gap: 34px; }
nav.primary a {
  font-size: 17px; font-weight: 600; color: #fff;
  position: relative; transition: color 0.8s var(--ease), opacity .3s;
}
body.light nav.primary a { color: var(--ink); }
nav.primary a:hover { opacity: 0.55; }
nav.primary a.active::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 2px; background: currentColor;
}

.burger { display: none; background: none; border: 0; cursor: pointer; z-index: 120; }
.burger span {
  display: block; width: 26px; height: 2px; margin: 6px 0;
  background: var(--white); transition: 0.4s var(--ease);
}
body.light .burger span { background: var(--black); }

/* ---------------- Hero (fullscreen, full-bleed) ---------------- */
.hero, .case-hero {
  position: relative; height: 100vh; height: 100svh;
  background: var(--black); overflow: hidden;
  width: 100%;
}
.hero .video-wrap, .case-hero .video-wrap {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.hero .video-wrap iframe, .case-hero .video-wrap iframe {
  position: absolute; top: 50%; left: 50%;
  width: 177.78vh; min-width: 100%;
  height: 56.25vw; min-height: 100%;
  transform: translate(-50%, -50%);
  border: 0;
}
.hero-fallback {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
}
.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.6); animation: hint 2.4s infinite var(--ease); z-index: 3;
}
@keyframes hint { 0%,100% { transform: translate(-50%,0);} 50% { transform: translate(-50%,8px);} }

/* ---------------- Big statements ---------------- */
.statement { padding: clamp(50px, 6vw, 90px) var(--pad); }
.statement h1, .statement h2 {
  font-size: clamp(30px, 4.6vw, 64px);
  font-weight: 800; line-height: 1.18; letter-spacing: -0.015em;
  max-width: 22ch; color: #fff;
  transition: color 0.8s var(--ease), opacity 0.45s var(--ease), transform 0.4s var(--ease);
}
body.light .statement h1, body.light .statement h2 { color: var(--ink); }
.statement .giant { font-size: clamp(48px, 9vw, 140px); max-width: none; letter-spacing: -0.03em; }
.statement p.sub { margin-top: 28px; font-size: clamp(17px, 1.6vw, 22px); max-width: 52ch; }
.statement .contact-line a { border-bottom: 2px solid currentColor; font-weight: 700; }
.statement .contact-line a:hover { color: var(--red); }

/* ---------------- End-of-page block (reference /info bottom) ----------------
   Right-aligned mission text + light-weight contact line. */
.end-block { padding: clamp(24px, 3vw, 48px) var(--pad) clamp(40px, 5vw, 70px); }
.end-block .mission {
  margin-left: calc(50% + clamp(5px, 0.65vw, 12px)); text-align: left;
  font-size: clamp(22px, 2.4vw, 38px); font-weight: 400; line-height: 1.35;
  color: var(--ink);
}
.end-block .contact-line {
  margin-top: clamp(36px, 4vw, 64px);
  font-size: clamp(24px, 2.6vw, 42px); font-weight: 400; line-height: 1.35;
  max-width: 28ch; color: var(--ink);
}
.end-block .contact-line a { border-bottom: 1px solid currentColor; font-weight: 400; }
.end-block .contact-line a:hover { color: var(--red); }
.end-block .mission-wrap { display: block; }

/* ---------------- Work grid — two interlocking columns (reference rhythm) ----------------
   Left and right are independent columns; the right one starts half a card
   lower, so cards interlock exactly like on the reference. */
.work-grid {
  display: flex;
  gap: clamp(10px, 1.3vw, 24px);
  padding: 0 var(--pad) clamp(40px, 5vw, 70px);
  align-items: flex-start;
}
.work-grid .wcol {
  flex: 1;
  display: flex; flex-direction: column;
  gap: clamp(20px, 2.5vw, 50px);          /* gap between videos inside a column */
}
.work-grid .wcol.right { margin-top: clamp(110px, 14vw, 260px); }  /* ~half a card */

.work-card { position: relative; display: block; }
.work-card .thumb {
  position: relative; overflow: hidden; background: #0c0c0c;
  aspect-ratio: 16 / 9;
}
.work-card.portrait .thumb { aspect-ratio: 4 / 5; }
.work-card .thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.work-card:hover .thumb img { transform: scale(1.04); }

/* caption UNDER the thumbnail */
.work-card .meta { margin-top: 14px; line-height: 1.4; }
.work-card .meta .client { font-weight: 800; font-size: 18px; color: #fff; transition: color .8s var(--ease); display: block; }
body.light .work-card .meta .client { color: var(--ink); }
.work-card .meta .title { font-size: 15px; opacity: .7; }

/* ---------------- Soft fade in / out on scroll ----------------
   Elements rise from below with a tiny zoom and "settle" into place.
   The class toggles both ways, so blocks fade OUT when leaving
   and fade IN again when they come back. */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.45s var(--ease), transform 0.4s var(--ease);
  will-change: opacity, transform;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal.d1, .reveal.d2, .reveal.d3 { transition-delay: 0s; } /* titles + their copy appear together */

/* sections gently fade while entering/leaving the viewport */
.fade-section { transition: opacity 0.9s var(--ease); }
.fade-section.dimmed { opacity: 0.12; }

/* ---------------- Case pages ---------------- */
.case-hero .down {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  color: #fff; font-size: 26px; z-index: 3; animation: hint 2.4s infinite;
}

/* generous side margins for all case content */
.container { max-width: 1500px; margin-inline: auto; padding-inline: var(--content-pad); }

.case-intro { padding-block: clamp(48px, 5vw, 80px); }
.case-intro h1 {
  font-size: clamp(40px, 5.5vw, 88px); font-weight: 800;
  letter-spacing: -0.02em; line-height: 1.05; color: #fff;
  transition: color .8s var(--ease), opacity 0.45s var(--ease), transform 0.4s var(--ease);
}
body.light .case-intro h1 { color: var(--ink); }
.case-intro h2 { font-size: clamp(20px, 2.4vw, 34px); font-weight: 700; margin-top: 10px; opacity: 0.85; }
.case-intro p { margin-top: 30px; font-size: clamp(16px, 1.5vw, 20px); max-width: 62ch; }

.case-section { padding-block: clamp(32px, 3.5vw, 56px); }
.case-section h3 {
  font-size: clamp(24px, 2.6vw, 40px); font-weight: 800; letter-spacing: -0.015em;
  color: #fff; max-width: 24ch; margin-bottom: 26px;
  transition: color .8s var(--ease), opacity 0.45s var(--ease), transform 0.4s var(--ease);
}
body.light .case-section h3 { color: var(--ink); }
.case-section .cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  font-size: clamp(15px, 1.35vw, 19px);
}
.case-section .cols p { max-width: 58ch; }

/* video embeds — always on dark sections */
.embed { position: relative; aspect-ratio: 16/9; background: #0c0c0c; margin: clamp(18px,2.4vw,36px) 0; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed.portrait { aspect-ratio: 9/16; margin: 0; }

/* gallery with air around it */
.gallery {
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: clamp(16px, 2vw, 30px);
  padding-block: clamp(32px, 3.5vw, 56px);
}
.gallery .g-item { overflow: hidden; background: #0c0c0c; }
.gallery .g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.gallery .g-item:hover img { transform: scale(1.03); }
.gallery .w6 { grid-column: span 6; aspect-ratio: 16/10; }
.gallery .w4 { grid-column: span 4; aspect-ratio: 4/5; }
.gallery .w8 { grid-column: span 8; aspect-ratio: 16/9; }
.gallery .w12 { grid-column: span 12; aspect-ratio: 21/9; }

/* vertical video row */
.social-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 30px);
  padding-bottom: clamp(32px, 3.5vw, 56px);
}

/* ---------------- Credits — minimal accordion (The Mill style) ---------------- */
.credits { padding-block: clamp(40px, 4.5vw, 70px); }
.credits h4 {
  font-size: clamp(26px, 3vw, 44px); font-weight: 800;
  margin-bottom: 28px; color: inherit;
}
.acc { border-top: 1px solid rgba(127,127,127,0.35); }
.acc:last-of-type { border-bottom: 1px solid rgba(127,127,127,0.35); }
.acc summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 14px; font-size: clamp(18px, 1.7vw, 24px); font-weight: 600;
  transition: background .35s var(--ease);
}
.acc summary:hover { background: rgba(127,127,127,0.09); }
.acc[open] { background: rgba(127,127,127,0.06); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .plus {
  font-size: 26px; font-weight: 300; line-height: 1;
  transition: transform .35s var(--ease);
}
.acc[open] summary .plus { transform: rotate(45deg); }
/* body is anchored to the right with an inset; longer lines grow toward the center */
.acc .acc-wrap { overflow: hidden; height: 0; transition: height .55s var(--ease); }
.acc .acc-body {
  padding: 4px 0 28px; font-size: 15px; line-height: 2.05; opacity: .85;
  margin-left: auto; width: fit-content; max-width: min(52%, 620px);
  margin-right: clamp(50px, 7vw, 110px); text-align: left;
}
.acc .acc-body b { font-weight: 700; color: inherit; }
@media (max-width: 820px) { .acc .acc-body { margin-left: 0; margin-right: 0; max-width: none; width: auto; padding-inline: 14px; } }

.back-to-all { display: inline-block; margin: 26px 0 0; font-weight: 700; border-bottom: 2px solid currentColor; }
.back-to-all:hover { color: var(--red); }

/* ---------------- More work — three suggested cases before the footer ---------------- */
.more-work { padding-block: clamp(32px, 3.5vw, 56px); }
.more-work h5 {
  font-size: clamp(24px, 2.8vw, 42px); font-weight: 800; margin-bottom: 36px;
  color: inherit;
}
.more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.2vw, 32px); }
.more-grid .work-card .thumb { aspect-ratio: 16/9; }

/* ---------------- Before / After compare slider ---------------- */
.compare {
  position: relative; overflow: hidden; user-select: none;
  aspect-ratio: 16/9; background: #0c0c0c; touch-action: none; cursor: ew-resize;
  margin: clamp(30px, 4vw, 60px) 0;
}
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare .after { clip-path: inset(0 0 0 50%); }
.compare .divider {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 2px;
  background: #fff; transform: translateX(-50%); pointer-events: none;
}
.compare .handle {
  position: absolute; top: 50%; left: 50%; width: 56px; height: 56px;
  border: 2px solid #fff; border-radius: 50%;
  transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 15px; letter-spacing: 2px;
  background: rgba(0,0,0,0.25); pointer-events: none;
}
.compare .tag {
  position: absolute; top: 18px; font-size: 11px; letter-spacing: .22em;
  text-transform: uppercase; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.6);
  pointer-events: none;
}
.compare .tag.before-tag { left: 20px; }
.compare .tag.after-tag { right: 20px; }

/* ---------------- Process stages (per-case sample blocks) ---------------- */
.stages { padding-block: clamp(60px, 8vw, 130px); }
.stage { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 3vw, 50px); align-items: baseline; padding-block: clamp(26px, 3vw, 44px); border-top: 1px solid rgba(127,127,127,0.3); }
.stage:last-child { border-bottom: 1px solid rgba(127,127,127,0.3); }
.stage .num { font-size: clamp(30px, 3.6vw, 56px); font-weight: 800; opacity: .35; }
.stage h6 { font-size: clamp(24px, 3vw, 46px); font-weight: 800; color: inherit; }
.stage p { margin-top: 10px; max-width: 60ch; font-size: clamp(15px, 1.3vw, 18px); }

/* ---------------- Info / Contact page (reference /info style) ---------------- */
.info-hero { width: 100%; }
.info-hero img { width: 100%; height: min(72vh, 760px); object-fit: cover; }
.info-body { padding-block: clamp(50px, 6vw, 90px); }
.info-body h1 {
  font-size: clamp(38px, 5.5vw, 84px); font-weight: 800; letter-spacing: -0.02em;
  color: var(--ink); margin-bottom: 44px;
}
.info-body p { font-size: clamp(17px, 1.6vw, 22px); max-width: 62ch; margin-bottom: 24px; }
.info-block { padding: clamp(30px, 4vw, 60px) 0 0; }
.info-block h2 { font-size: clamp(24px, 2.6vw, 40px); font-weight: 800; color: var(--ink); margin-bottom: 18px; }
.contact-rows { margin-top: 40px; }
.contact-rows .row {
  border-top: 1px solid rgba(0,0,0,0.2); padding: 24px 4px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: clamp(16px, 1.5vw, 21px);
}
.contact-rows .row:last-child { border-bottom: 1px solid rgba(0,0,0,0.2); }
.contact-rows .row a { font-weight: 700; border-bottom: 2px solid currentColor; }
.contact-rows .row a:hover { color: var(--red); }

.office { margin-top: 60px; }
.office h3 { font-size: 22px; font-weight: 800; color: var(--ink); margin-bottom: 12px; }
.office li { list-style: none; margin-bottom: 8px; font-size: 16px; }

/* ---------------- Team (Studio page) ---------------- */
.team { padding-block: clamp(40px, 5vw, 80px); }
.team h3 { font-size: clamp(28px, 3.6vw, 54px); font-weight: 800; color: var(--ink); margin-bottom: 44px; }
body:not(.light) .team h3 { color: #fff; }
.team-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(18px, 2.4vw, 36px);
}
.team-card .photo { aspect-ratio: 3/4; overflow: hidden; background: #0c0c0c; }
.team-card .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); filter: grayscale(20%); }
.team-card:hover .photo img { transform: scale(1.04); filter: grayscale(0%); }
.team-card .name { margin-top: 14px; font-weight: 800; font-size: 17px; color: var(--ink); }
body:not(.light) .team-card .name { color: #fff; }
.team-card .role { font-size: 14px; opacity: .7; }

/* ---------------- Footer — light, reference style ---------------- */
footer.site-footer {
  background: var(--foot); color: rgba(0,0,0,0.75);
  padding: clamp(60px, 8vw, 100px) var(--pad) 30px;
}
footer .foot-cols {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px;
  padding-bottom: clamp(50px, 6vw, 80px);
}
footer .foot-cols h4 { color: var(--ink); font-size: clamp(19px, 1.8vw, 26px); font-weight: 700; margin-bottom: 14px; }
footer .foot-cols .clock { font-size: clamp(17px, 1.6vw, 22px); margin-bottom: 10px; color: var(--ink); font-variant-numeric: tabular-nums; }
footer ul { list-style: none; }
footer li { margin-bottom: 8px; font-size: 15px; }
footer a:hover { color: var(--red); }
footer .foot-social { display: flex; gap: 22px; padding-bottom: 30px; font-weight: 600; }
footer .foot-bottom {
  border-top: 1px solid rgba(0,0,0,0.15); padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  font-size: 13px; opacity: 0.8;
}

/* ---------------- Mascot (placeholder hook for Phase 4 sprite) ---------------- */
#mascot {
  position: fixed; z-index: 90; width: 74px; height: 74px;
  pointer-events: none; opacity: 0;
  transition: opacity .6s var(--ease);
  will-change: transform;
}
#mascot.flying { opacity: 1; }
#mascot svg { width: 100%; height: 100%; }
@media (max-width: 820px) { #mascot { display: none; } }


/* ---------------- Menu morph: links collapse into a pill button on scroll ---------------- */
#menu-pill {
  position: fixed; top: 30px; right: var(--pad); z-index: 130;
  width: 72px; height: 54px; border: 0; border-radius: 14px;
  background: #232323; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; transform: translateX(24px) scale(0.85); pointer-events: none;
  transition: opacity .4s var(--ease-out), transform .4s var(--ease-out), background .16s var(--ease-out);
}
#menu-pill:hover { background: #333; }
/* press feedback only while the pill is actually visible/clickable */
body.menu-collapsed #menu-pill:active,
body.nav-open #menu-pill:active { transform: scale(0.94); transition: transform 120ms var(--ease-out); }
#menu-pill span {
  display: block; width: 22px; height: 2px; background: #fff;
  border-radius: 2px; margin: 3px 0;
  transition: transform .35s var(--ease), opacity .3s;
}
body.menu-collapsed #menu-pill { opacity: 1; transform: none; pointer-events: auto; }
body.nav-open #menu-pill { opacity: 1; transform: none; pointer-events: auto; }
body.nav-open #menu-pill span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
body.nav-open #menu-pill span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

@media (min-width: 821px) {
  nav.primary { transition: opacity .35s var(--ease-out), transform .4s var(--ease-out); }
  /* links glide towards the pill and dissolve */
  body.menu-collapsed nav.primary:not(.open) {
    opacity: 0; transform: translateX(46px) scale(0.82);
    pointer-events: none;
  }
  /* fullscreen overlay menu when the pill is clicked */
  nav.primary.open {
    position: fixed; inset: 0; z-index: 125;
    background: rgba(10, 10, 10, 0.97);
    flex-direction: column; align-items: center; justify-content: center;
    gap: 38px; opacity: 1; transform: none; pointer-events: auto;
  }
  nav.primary.open a { font-size: clamp(30px, 4vw, 48px); color: #fff !important; }
}
@media (max-width: 820px) { #menu-pill { display: none; } }
body.nav-open { overflow: hidden; }

/* ---------------- Mobile ---------------- */
@media (max-width: 820px) {
  nav.primary {
    position: fixed; inset: 0; background: var(--black);
    flex-direction: column; align-items: center; justify-content: center;
    gap: 30px; transform: translateY(-100%); transition: transform .55s var(--ease);
  }
  nav.primary.open { transform: translateY(0); }
  nav.primary a { font-size: 26px; color: #fff !important; }
  .burger { display: block; }
  body.nav-open .burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); background:#fff; }
  body.nav-open .burger span:nth-child(2) { opacity: 0; }
  body.nav-open .burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); background:#fff; }

  .work-grid { flex-direction: column; }
  .work-grid .wcol.right { margin-top: 0; }
  .more-grid { grid-template-columns: 1fr; }
  .end-block .mission { margin-left: 0; }
  .case-section .cols { grid-template-columns: 1fr; }
  .gallery .w4 { grid-column: span 6; }
  .gallery .w6, .gallery .w8 { grid-column: span 12; }
  .social-row { grid-template-columns: 1fr; padding-inline: 12vw; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  footer .foot-cols { grid-template-columns: 1fr 1fr; }
  :root { --content-pad: clamp(20px, 6vw, 50px); }
}

/* ---------------- Header over hero video: always white ---------------- */

body.over-hero nav.primary a { color: #fff !important; }
body.over-hero .burger span { background: #fff !important; }

/* ============================================================
   Polish pass — Emil Kowalski design-eng skill (.claude/skills)
   Press feedback · touch-safe hovers · reduced motion.
   Global --ease (reveal timing) left untouched on purpose.
   ============================================================ */

/* Press feedback: pressable elements should feel the click.
   Subtle scale(0.97) with a strong ease-out (Emil rule). */
.burger, .back-to-all, .acc summary, .case-hero .down,
.work-card, .more-grid a, .compare .handle, #menu-pill {
  -webkit-tap-highlight-color: transparent;
}
.burger:active,
.back-to-all:active,
.acc summary:active,
.case-hero .down:active,
.work-card:active,
.more-grid a:active {
  transform: scale(0.97);
  transition: transform 140ms var(--ease-out);
}

/* Touch devices fire :hover on tap — don't leave a card stuck zoomed. */
@media (hover: none) {
  .work-card:hover .thumb img,
  .gallery .g-item:hover img,
  .team-card:hover .photo img { transform: none; }
}

/* Reduced motion: keep fades that aid comprehension, drop movement. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.15s !important;
    scroll-behavior: auto !important;
  }
  .reveal { transform: none !important; }
  .work-card:active, .more-grid a:active,
  .burger:active, .back-to-all:active,
  .acc summary:active, .case-hero .down:active { transform: none !important; }
}

/* Text wordmark in place of the old bird logo */
.logo.logo-text { font-weight: 800; font-size: 1.15rem; letter-spacing: .02em; line-height: 1; color: #fff; text-decoration: none; transition: color .8s var(--ease); }
body.light .logo.logo-text { color: #111; }
body.over-hero .logo.logo-text { color: #fff; }
