/* Nutcracker — prototype stylesheet. Mobile-first: base rules target small screens, media queries layer on enhancements for tablet/desktop. */

:root{
  --bg:#0b0b0c;
  --bg-raised:#161616;
  --line:#2a2a2a;
  --text:#f5f4f0;
  --text-dim:#a8a6a0;
  --accent:#ff5a2e;
  --font-display:'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
  --font-body:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;
  --maxw:1440px;
  /* One gutter value drives every left/right edge on the page. Change it here
     and text, media, laptop frames and headings all move together — this is
     what keeps alignment consistent instead of each block having its own padding. */
  --gutter:24px;
  --gap:20px;
  /* Vertical rhythm. Three steps, used everywhere, so the gap between any two
     things on the page is one of three values rather than whatever the sum of
     two components' paddings happened to be. */
  --space-section:clamp(72px,8vw,112px);  /* between major sections */
  --space-block:clamp(40px,4.5vw,64px);   /* between blocks inside a section */
  --space-tight:28px;                     /* between a text block and its own media */
  --gap-col:clamp(40px,5vw,88px);         /* between side-by-side text and media */
}
@media(min-width:640px){ :root{ --gutter:40px } }
@media(min-width:1100px){ :root{ --gutter:56px; --gap:24px } }

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-body);
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
img,video{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
ul{list-style:none}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 var(--gutter)}

/* ---------- header ---------- */
.site-header{
  position:sticky;top:0;z-index:50;
  display:flex;align-items:center;justify-content:space-between;
  /* Bar stays full-bleed, but its contents line up with the same left/right
     edge as the page container on wide screens. */
  padding:16px max(var(--gutter), calc((100vw - var(--maxw)) / 2));
  background:rgba(11,11,12,0.88);
  backdrop-filter:blur(8px);
  border-bottom:1px solid var(--line);
}
.logo{font-family:var(--font-display);font-size:22px;letter-spacing:2px}
.header-right{display:flex;align-items:center;gap:14px}
/* Sunny Advertising — legacy sub-brand mark. Kept on a fixed white plaque since the
   artwork is a full-color logo on a white ground; this reads as a heritage stamp
   rather than a regular nav item, on both the dark and light versions of the site. */
.brand-slot{
  display:flex;align-items:center;justify-content:center;
  height:40px;padding:6px 14px;
  background:#fff;border-radius:6px;
  font-family:var(--font-display);font-size:11px;letter-spacing:1px;
  color:#222;white-space:nowrap;
}
.brand-slot:hover{opacity:.88}
.brand-logo{height:26px;width:auto;display:block}
.nav-toggle{
  background:none;border:1px solid var(--line);color:var(--text);
  width:40px;height:40px;border-radius:6px;font-size:18px;
  display:flex;align-items:center;justify-content:center;
}
.site-nav{
  position:fixed;inset:0 0 0 auto;width:78%;max-width:320px;height:100vh;
  background:var(--bg-raised);border-left:1px solid var(--line);
  padding:90px 28px 28px;
  transform:translateX(100%);transition:transform .3s ease;
  z-index:40;
}
.site-nav.open{transform:translateX(0)}
.site-nav a{display:block;font-size:20px;padding:14px 0;border-bottom:1px solid var(--line)}
.nav-scrim{position:fixed;inset:0;background:rgba(0,0,0,.5);opacity:0;pointer-events:none;transition:opacity .3s;z-index:35}
.nav-scrim.open{opacity:1;pointer-events:auto}

@media(min-width:900px){
  .nav-toggle,.nav-scrim{display:none}
  .site-nav{
    position:static;width:auto;height:auto;background:none;border:none;
    transform:none;padding:0;display:flex;gap:32px;align-items:center;
  }
  .site-nav a{border:none;padding:0;font-size:15px;letter-spacing:.5px}
}

/* ---------- hero ---------- */
.hero{
  position:relative;min-height:88vh;display:flex;align-items:flex-end;
  background:#000;overflow:hidden;
}
/* Footage plays at full brightness. Legibility comes from a gradient that only
   darkens the bottom third where the copy sits, instead of dimming the whole
   frame — so the video actually reads as video, not a tinted texture. */
.hero-media{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:1}
.hero-scrim{
  position:absolute;inset:0;
  background:linear-gradient(180deg,
    rgba(0,0,0,.42) 0%,
    rgba(0,0,0,.10) 28%,
    rgba(0,0,0,.24) 55%,
    rgba(0,0,0,.78) 85%,
    rgba(0,0,0,.92) 100%);
}
.hero-content{position:relative;padding:0 var(--gutter) var(--space-block);max-width:var(--maxw);margin:0 auto;width:100%}
.hero h1{
  font-family:var(--font-display);
  font-size:clamp(42px,11vw,110px);
  line-height:.92;letter-spacing:1px;
  max-width:16ch;
}
.hero p{margin-top:18px;max-width:44ch;color:var(--text-dim);font-size:16px}
.hero-cta{
  display:inline-flex;align-items:center;gap:10px;margin-top:28px;
  padding:14px 22px;border:1px solid var(--text);border-radius:999px;font-size:14px;letter-spacing:.5px;
}
.hero-cta:active{background:var(--text);color:var(--bg)}

/* ---------- section headings ---------- */
.section{padding:calc(var(--space-section) / 2) 0}
.section-head{display:flex;flex-direction:column;gap:8px;margin-bottom:var(--space-tight)}
.eyebrow{color:var(--accent);font-size:12px;letter-spacing:2px;text-transform:uppercase;font-weight:600}
.section-head h2{font-family:var(--font-display);font-size:clamp(32px,6vw,52px);letter-spacing:.5px}

/* ---------- filter chips ---------- */
.filters{display:flex;gap:10px;overflow-x:auto;padding-bottom:8px;margin-bottom:28px;-webkit-overflow-scrolling:touch}
.filters::-webkit-scrollbar{display:none}
.chip{
  flex:0 0 auto;padding:9px 16px;border:1px solid var(--line);border-radius:999px;
  font-size:13px;color:var(--text-dim);background:transparent;
}
.chip.active{background:var(--text);color:var(--bg);border-color:var(--text)}

/* ---------- work grid ---------- */
.work-grid{display:grid;grid-template-columns:1fr;gap:20px}
.work-card{position:relative;display:block;border-radius:10px;overflow:hidden;background:var(--bg-raised)}
.work-card .thumb{aspect-ratio:4/5;width:100%;overflow:hidden}
.work-card img{width:100%;height:100%;object-fit:cover;transition:transform .5s ease}
.work-card:hover img{transform:scale(1.05)}
.work-card .meta{position:absolute;left:0;right:0;bottom:0;padding:18px;background:linear-gradient(180deg,transparent,rgba(0,0,0,.88))}
.work-card .tag{font-size:11px;letter-spacing:1.5px;text-transform:uppercase;color:var(--accent);font-weight:600}
.work-card h3{font-family:var(--font-display);font-size:26px;letter-spacing:.5px;margin-top:4px}
.work-card .client{font-size:13px;color:var(--text-dim);margin-top:2px}

@media(min-width:640px){ .work-grid{grid-template-columns:1fr 1fr} }
@media(min-width:1100px){ .work-grid{grid-template-columns:repeat(3,1fr)} }

.view-all{margin-top:32px;text-align:center}
.btn-outline{
  display:inline-block;padding:14px 28px;border:1px solid var(--line);border-radius:999px;font-size:14px;
}

/* ---------- services strip ---------- */
.services-strip{border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.services-list{display:flex;flex-wrap:wrap;gap:0}
.services-list li{
  width:50%;padding:20px 0;font-family:var(--font-display);font-size:22px;letter-spacing:.5px;color:var(--text-dim);
  border-bottom:1px solid var(--line);
}
@media(min-width:640px){ .services-list li{width:25%} }

/* ---------- clients marquee ---------- */
.clients{overflow:hidden;border-bottom:1px solid var(--line)}
.clients-track{display:flex;gap:56px;padding:28px 0;white-space:nowrap;animation:scroll 26s linear infinite}
.clients-track span{font-family:var(--font-display);font-size:22px;color:var(--text-dim);letter-spacing:1px}
@keyframes scroll{from{transform:translateX(0)}to{transform:translateX(-50%)}}

/* ---------- CTA band ---------- */
.cta-band{padding:var(--space-section) 0;text-align:center}
.cta-band h2{font-family:var(--font-display);font-size:clamp(34px,8vw,72px);max-width:14ch;margin:0 auto}
.cta-band .btn-outline{margin-top:28px}

/* ---------- footer ---------- */
footer{border-top:1px solid var(--line);padding:48px 0 28px;color:var(--text-dim);font-size:14px}
.footer-grid{display:grid;gap:28px}
.footer-grid h4{font-family:var(--font-display);color:var(--text);font-size:18px;letter-spacing:.5px;margin-bottom:10px}
.social-row{display:flex;gap:14px;margin-top:16px}
.social-row a{width:36px;height:36px;border:1px solid var(--line);border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:13px}
.copyright{margin-top:36px;padding-top:20px;border-top:1px solid var(--line);font-size:12px}
@media(min-width:768px){ .footer-grid{grid-template-columns:2fr 1fr 1fr} }

/* ---------- reveal-on-scroll (progressive enhancement only, never hides content by default) ---------- */
.reveal{opacity:1;transform:none}
@media(prefers-reduced-motion:no-preference){
  .js .reveal{opacity:0;transform:translateY(18px);transition:opacity .6s ease,transform .6s ease}
  .js .reveal.in{opacity:1;transform:none}
}

/* ---------- case study page ---------- */
.cs-hero{position:relative;min-height:70vh;display:flex;align-items:flex-end}
.cs-tags{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}
.cs-tags span{font-size:11px;letter-spacing:1px;text-transform:uppercase;border:1px solid var(--line);border-radius:999px;padding:6px 12px;color:var(--text-dim)}
.cs-intro{display:grid;gap:28px;padding:var(--space-block) 0}
.cs-intro .label{color:var(--accent);font-size:12px;letter-spacing:2px;text-transform:uppercase;font-weight:600;margin-bottom:10px}
.cs-intro p{color:var(--text-dim);font-size:16px}
@media(min-width:800px){ .cs-intro{grid-template-columns:1fr 1fr} }

.cs-gallery{display:grid;grid-template-columns:1fr;gap:16px;padding-bottom:56px}
.cs-gallery img{border-radius:10px;width:100%}
@media(min-width:700px){ .cs-gallery{grid-template-columns:1fr 1fr} .cs-gallery .wide{grid-column:1/-1} }

.cs-stats{display:grid;grid-template-columns:1fr 1fr;gap:20px;padding:48px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.cs-stats .num{font-family:var(--font-display);font-size:clamp(32px,7vw,56px);color:var(--accent)}
.cs-stats .lbl{color:var(--text-dim);font-size:13px;margin-top:4px}
@media(min-width:700px){ .cs-stats{grid-template-columns:repeat(4,1fr)} }

.cs-quote{padding:var(--space-block) 0;text-align:center}
.cs-quote blockquote{font-family:var(--font-display);font-size:clamp(24px,5vw,40px);max-width:20ch;margin:0 auto;line-height:1.15}
.cs-quote cite{display:block;margin-top:18px;font-style:normal;color:var(--text-dim);font-size:14px}

.next-project{
  display:flex;align-items:center;justify-content:space-between;
  /* Gutter must be restated: this shorthand lands after .wrap's in the sheet, so
     `padding:40px 0` would zero the horizontal gutter and push this row out to
     the screen edges while every other block stays at var(--gutter). */
  padding:40px var(--gutter);border-top:1px solid var(--line);
}
.next-project .lbl{font-size:12px;letter-spacing:2px;text-transform:uppercase;color:var(--text-dim)}
.next-project h3{font-family:var(--font-display);font-size:clamp(24px,5vw,40px);margin-top:6px}

/* Variant with a creative alongside the link, so the page ends on an image
   rather than a bare text row. */
.next-project.has-thumb{
  display:grid;grid-template-columns:1fr;gap:24px;align-items:center;
  padding:var(--space-block) var(--gutter) var(--space-section);
}
@media(min-width:800px){
  .next-project.has-thumb{grid-template-columns:1fr minmax(0,460px);gap:48px}
}
.next-project.has-thumb h3{font-size:clamp(32px,6vw,64px);line-height:1}
.next-project .np-arrow{display:inline-block;margin-left:12px;transition:transform .3s ease}
.next-project.has-thumb:hover .np-arrow{transform:translateX(10px)}
.next-project .np-thumb{aspect-ratio:16/9;border-radius:10px;overflow:hidden;background:#000}
.next-project .np-thumb img{width:100%;height:100%;object-fit:cover;transition:transform .6s ease}
.next-project.has-thumb:hover .np-thumb img{transform:scale(1.06)}

.placeholder-note{
  background:var(--bg-raised);border:1px dashed var(--line);border-radius:8px;
  padding:14px 16px;font-size:13px;color:var(--text-dim);margin:20px 0;
}

/* ---------- Sunny Advertising legacy page — deliberately its own cream/light
   identity, distinct from the rest of the (dark) site, since it's a separate
   heritage brand under Nutcracker rather than a regular service page. ---------- */
.legacy-hero{background:#fdfbf6;color:#15150f;padding:var(--space-section) var(--gutter) var(--space-block);text-align:center}
.legacy-hero img{max-width:220px;margin:0 auto 26px}
.legacy-hero h1{font-family:var(--font-display);font-size:clamp(28px,6vw,46px);letter-spacing:.5px}
.legacy-hero .est{margin-top:10px;font-size:13px;letter-spacing:1.5px;text-transform:uppercase;color:var(--accent);font-weight:600}
.legacy-hero p{color:#68675f;max-width:46ch;margin:16px auto 0;font-size:16px}
.legacy-section{background:#fdfbf6;color:#15150f;padding:8px var(--gutter) var(--space-block)}
.legacy-section .inner{max-width:720px;margin:0 auto;text-align:center}
.legacy-section .label{color:var(--accent);font-size:12px;letter-spacing:2px;text-transform:uppercase;font-weight:600;margin-bottom:14px}
.legacy-section p{color:#4a4a43;font-size:16px;line-height:1.75;margin-bottom:14px}
.legacy-gallery{display:grid;grid-template-columns:1fr;gap:16px;max-width:var(--maxw);margin:0 auto;padding:0 var(--gutter) var(--space-section);background:#fdfbf6}
.legacy-gallery .ph{
  aspect-ratio:4/3;border:1px dashed #d8d6cd;border-radius:10px;
  display:flex;align-items:center;justify-content:center;
  color:#9a988e;font-size:13px;text-align:center;padding:12px;
}
@media(min-width:700px){ .legacy-gallery{grid-template-columns:repeat(3,1fr)} }
.legacy-back{background:#fdfbf6;padding:0 var(--gutter) 80px;text-align:center}

/* Full-bleed cream ground for the whole legacy page. The individual .legacy-*
   blocks cap themselves at var(--maxw), so painting the background on them
   alone left dark bands down both sides above 1440px. */
.legacy-page{background:#fdfbf6;color:#15150f}
.legacy-inner{max-width:var(--maxw);margin:0 auto;padding:0 var(--gutter)}
.legacy-banner{padding-bottom:40px}
.legacy-banner img{width:100%;border-radius:10px;display:block}
.legacy-figure{padding-bottom:48px}
.legacy-figure img{width:100%;max-width:760px;margin:0 auto;border-radius:10px;display:block}
.legacy-figure.portrait img{max-width:380px}

/* WORK gallery — the source pieces are all different shapes (press ads, standee
   mockups, posters), so each keeps its own. */
.legacy-work{padding-bottom:56px;column-count:1;column-gap:20px}
.legacy-work img{width:100%;border-radius:10px;display:block;margin-bottom:20px;break-inside:avoid}
@media(min-width:700px){ .legacy-work{column-count:2} }
@media(min-width:1100px){ .legacy-work{column-count:3} }

/* BRANDS WE SERVE — 28 logo plaques. The artwork already carries its own white
   card, so the tile just needs a hairline to sit on cream. */
.legacy-brands{padding-bottom:88px}
.legacy-brands h2{
  font-family:var(--font-display);font-size:clamp(22px,3vw,32px);letter-spacing:1.5px;
  text-align:center;margin-bottom:28px;color:#15150f;
}
.brand-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
.brand-grid img{width:100%;border-radius:8px;display:block;border:1px solid #eceae1;background:#fff}
@media(min-width:640px){ .brand-grid{grid-template-columns:repeat(4,1fr)} }
@media(min-width:1100px){ .brand-grid{grid-template-columns:repeat(7,1fr)} }

/* ---------- About page ---------- */
.about-intro{padding:var(--space-section) 0 var(--space-tight);text-align:center}
.about-intro h1{font-family:var(--font-display);font-size:clamp(34px,8vw,64px);letter-spacing:.5px}
.about-intro p{color:var(--text-dim);max-width:52ch;margin:16px auto 0;font-size:16px}

/* three sliding logo rows — alternating direction, placeholder tiles until real
   client logo files are dropped in */
.logo-rows{padding:40px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.logo-row{overflow:hidden;margin:6px 0}
.logo-track{display:flex;gap:18px;width:max-content;animation:scroll 30s linear infinite}
.logo-row.reverse .logo-track{animation-direction:reverse;animation-duration:36s}
.logo-row:nth-child(3) .logo-track{animation-duration:24s}
.logo-tile{
  flex:0 0 auto;width:150px;height:78px;border:1px dashed var(--line);border-radius:8px;
  display:flex;align-items:center;justify-content:center;text-align:center;
  color:var(--text-dim);font-size:12px;padding:8px;background:var(--bg-raised);
}
/* A tile holding real artwork becomes a solid white plaque — the logo files carry
   no alpha channel, so they need white behind them to read on the dark page. */
.logo-tile.has-logo{border-style:solid;background:#fff;padding:0;overflow:hidden}
.logo-tile img{width:100%;height:100%;object-fit:contain;display:block}

/* team grid — 18 slots, placeholder caricature avatars with a hover animation ready
   to receive real illustrated artwork later */
/* Same trap as .next-project: this shorthand lands after .wrap, so `padding:64px 0`
   would zero the horizontal gutter on <section class="team wrap">. */
.team{padding:64px var(--gutter)}
.team-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:28px 16px}
.team-card{text-align:center}
.avatar{
  width:96px;height:96px;margin:0 auto 12px;border-radius:50%;
  border:1px dashed var(--line);background:var(--bg-raised);
  display:flex;align-items:center;justify-content:center;
  font-family:var(--font-display);font-size:22px;color:var(--text-dim);
  transition:transform .3s ease;
}
.team-card:hover .avatar{transform:translateY(-6px) rotate(-4deg)}
.avatar.pending{border-style:dashed;font-size:10px;letter-spacing:.5px;padding:6px;line-height:1.3}
.team-card h4{font-family:var(--font-display);font-size:17px;letter-spacing:.3px}
.team-card .role{color:var(--text-dim);font-size:12px;margin-top:2px}
@media(min-width:640px){ .team-grid{grid-template-columns:repeat(3,1fr)} }
@media(min-width:1000px){ .team-grid{grid-template-columns:repeat(6,1fr)} }

/* ---------- laptop frame — for website / screen-recording footage ---------- */
.laptop-frame{max-width:var(--maxw);margin:0 auto;padding:0 var(--gutter)}
.laptop-bezel{background:#1a1a1a;border:1px solid #2c2c2c;border-radius:14px 14px 5px 5px;padding:14px 14px 9px}
.laptop-cam{width:6px;height:6px;border-radius:50%;background:#3d3d3d;margin:0 auto 10px}
/* Screen matches the 16:9 recording exactly, and contain (not cover) guarantees
   no edge of the website capture gets cut off. */
.laptop-screen{border-radius:5px;overflow:hidden;aspect-ratio:16/9;background:#000}
.laptop-screen video,.laptop-screen img{width:100%;height:100%;object-fit:contain;display:block}
.laptop-base{height:13px;background:linear-gradient(180deg,#242424,#121212);border-radius:0 0 9px 9px;margin:0 7%;position:relative}
.laptop-base::after{content:'';position:absolute;left:50%;top:0;transform:translateX(-50%);width:56px;height:5px;background:#0a0a0a;border-radius:0 0 6px 6px}

/* ---------- media gallery — click-to-play videos (preload=none), used across
   all case study pages so nothing downloads until the visitor actually plays it ---------- */
.media-grid{
  display:grid;grid-template-columns:1fr;gap:var(--gap);
  padding:0 var(--gutter) var(--space-block);max-width:var(--maxw);margin:0 auto;
}
.media-grid img,.media-grid video{
  width:100%;border-radius:10px;display:block;background:#000;object-fit:cover;
  aspect-ratio:4/3;
}
.media-grid .wide{grid-column:1/-1}
.media-grid .wide img,.media-grid .wide video{aspect-ratio:16/9}
@media(min-width:700px){ .media-grid{grid-template-columns:repeat(2,1fr)} }
@media(min-width:1100px){ .media-grid{grid-template-columns:repeat(3,1fr)} }

/* Aspect-locked variants. The window matches the source footage's own shape so
   nothing is cropped: reels stay reels, portrait socials stay portrait.
   Column counts are tuned per shape so each row fills the full container width. */
.media-grid.reels{grid-template-columns:repeat(2,1fr)}
.media-grid.reels img,.media-grid.reels video{aspect-ratio:9/16}
@media(min-width:700px){ .media-grid.reels{grid-template-columns:repeat(3,1fr)} }
@media(min-width:1100px){ .media-grid.reels{grid-template-columns:repeat(4,1fr)} }

.media-grid.portrait{grid-template-columns:repeat(2,1fr)}
.media-grid.portrait img,.media-grid.portrait video{aspect-ratio:4/5}
@media(min-width:900px){ .media-grid.portrait{grid-template-columns:repeat(3,1fr)} }

.media-grid.landscape{grid-template-columns:1fr}
.media-grid.landscape img,.media-grid.landscape video{aspect-ratio:16/9}
@media(min-width:700px){ .media-grid.landscape{grid-template-columns:repeat(2,1fr)} }
@media(min-width:1100px){ .media-grid.landscape{grid-template-columns:repeat(3,1fr)} }

/* Reserved slots for media not yet supplied. They inherit the row's aspect
   ratio, so the page already sits at its true final height — drop the images in
   later and nothing below shifts. */
.media-grid .ph{
  border:1px dashed var(--line);border-radius:10px;background:var(--bg-raised);
  display:flex;align-items:center;justify-content:center;text-align:center;padding:12px;
  color:var(--text-dim);font-size:12px;letter-spacing:1.5px;text-transform:uppercase;
  aspect-ratio:4/3;
}
.media-grid.landscape .ph{aspect-ratio:16/9}
.media-grid.portrait .ph{aspect-ratio:4/5}
.media-grid.reels .ph{aspect-ratio:9/16}

/* Rows with only two items shouldn't leave a third of the row empty. */
.media-grid.two{grid-template-columns:repeat(2,1fr)}
@media(max-width:699px){ .media-grid.two{grid-template-columns:1fr} }

/* One item per row at full container width — for detail-dense pieces like
   website screen mosaics, which are unreadable at half width. */
.media-grid.stack,
.media-grid.landscape.stack,
.media-grid.portrait.stack{grid-template-columns:1fr}
.media-grid.stack{gap:calc(var(--gap) * 1.5)}

/* Mixed-shape sets that must not be cropped — full-page website captures
   (1520x4482, roughly 1:3), A4 posters, mailers and campaign creatives that all
   arrive at different aspect ratios. No fixed aspect window can hold these, so
   the shape comes from the file itself. Laid out in columns rather than grid
   tracks: heights differ wildly, and grid rows would size to the tallest and
   leave the rest floating in whitespace. Padding and max-width still come from
   .media-grid, so the block keeps the page's single left and right edge. */
.media-grid.natural{display:block;column-count:2;column-gap:var(--gap)}
.media-grid.natural img{
  aspect-ratio:auto;object-fit:contain;background:transparent;
  margin-bottom:var(--gap);break-inside:avoid;
}
@media(min-width:700px){ .media-grid.natural{column-count:3} }
@media(min-width:1100px){ .media-grid.natural{column-count:4} }

/* A single reel shouldn't stretch across the page — cap it at one column width
   so it reads at the same scale as reels in a full row. */
.media-single{max-width:var(--maxw);margin:0 auto;padding:0 var(--gutter) var(--space-block)}
.media-single video,.media-single img{width:100%;border-radius:10px;display:block;background:#000;object-fit:cover}
.media-single.reel video,.media-single.reel img{aspect-ratio:9/16;max-width:300px}

/* Portrait reel paired with a landscape piece — each keeps its own true shape,
   top-aligned, and together they fill the full container width. */
.media-split{
  display:grid;gap:var(--gap);align-items:start;
  max-width:var(--maxw);margin:0 auto;padding:0 var(--gutter) var(--space-block);
  grid-template-columns:1fr;
}
/* Column ratio 81:256 is deliberate, not arbitrary. For a 9:16 item and a 16:9
   item to render at exactly the same height, their widths must sit in a
   (9/16) : (16/9) ratio — i.e. 81:256. Because fr units split the space left
   after the gap, this holds at every viewport width, so the reel lines up flush
   top and bottom with the piece beside it. */
.media-split video,.media-split img{width:100%;border-radius:10px;display:block;background:#000;object-fit:cover}
.media-split .reel-item{aspect-ratio:9/16}
.media-split .wide-item{aspect-ratio:16/9}
@media(max-width:899px){ .media-split .reel-item{max-width:300px} }

@media(min-width:900px){
  .media-split{grid-template-columns:81fr 256fr;gap:var(--gap);align-items:stretch}
  /* Grid items default to min-width:auto, and a replaced element's automatic
     minimum size is its intrinsic width — which can quietly stop the reel column
     from reaching its computed track size. min-width:0 releases that floor. */
  .media-split>*{min-width:0}
  /* The landscape piece sets the row height via its own aspect ratio; the reel
     then stretches to fill that exact height, so the two are flush by
     construction rather than by arithmetic that rounding could break. */
  .media-split .reel-item{aspect-ratio:auto;height:100%;align-self:stretch}
}

/* ---------- story text — narrative paragraphs interspersed between media
   clusters on case study pages, so copy has a real home once it's written
   rather than the whole page being one media dump ---------- */
.story-block{max-width:var(--maxw);margin:0 auto;padding:var(--space-block) var(--gutter) var(--space-tight)}
.story-block .story-text{display:grid;gap:12px;max-width:760px}
.story-text .label{
  color:var(--accent);
  font-family:var(--font-display);
  font-size:clamp(20px,2.4vw,30px);
  letter-spacing:1.5px;text-transform:uppercase;font-weight:600;line-height:1.1;
}
.story-text h2,.story-text h3{font-family:var(--font-display);font-size:clamp(26px,3.4vw,42px);letter-spacing:.3px;line-height:1.05}
.story-text p{color:var(--text);font-size:16px;line-height:1.75}

/* Two-column editorial split: section label + heading hold the left column,
   body copy sits in the right. Uses the full container width instead of
   leaving a dead margin, while keeping the same left edge as every media row. */
@media(min-width:900px){
  .story-block .story-text{
    grid-template-columns:minmax(260px,360px) minmax(0,1fr);
    gap:14px var(--gap-col);max-width:none;align-items:start;
  }
  .story-text .label{grid-column:1;grid-row:1}
  .story-text h2,.story-text h3{grid-column:1;grid-row:2}
  .story-text p{grid-column:2;grid-row:1/span 2;max-width:68ch;font-size:17px}
}

/* Opening statement — single left-aligned column, larger type, no two-column
   split (the split would squeeze a long paragraph into the narrow label column). */
.story-block.lede{padding-top:72px}
@media(min-width:900px){
  .story-block.lede .story-text{grid-template-columns:1fr;max-width:900px}
  .story-block.lede .story-text p{grid-column:1;grid-row:auto}
}
.story-block.lede .story-text p{
  color:var(--text);font-size:clamp(19px,2.1vw,26px);line-height:1.5;max-width:none;
}

/* ---------- branding / logo-forward layout — for projects where the product
   photography and identity itself is the story, not a narrative case study ---------- */
.brand-hero{position:relative;min-height:60vh;display:flex;align-items:center;justify-content:center;background:#000;overflow:hidden}
.brand-hero img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.5}
.brand-hero .brand-hero-inner{position:relative;text-align:center;padding:24px}
.brand-hero h1{font-family:var(--font-display);font-size:clamp(36px,9vw,88px);letter-spacing:1px}
.brand-mosaic{columns:2 220px;column-gap:16px;padding:56px var(--gutter);max-width:var(--maxw);margin:0 auto}
.brand-mosaic img{width:100%;border-radius:10px;margin-bottom:16px;display:block;break-inside:avoid}
@media(min-width:900px){ .brand-mosaic{columns:3 240px} }

/* ==========================================================================
   FEATURE ROW — text on one side, media on the other.
   The backbone of the case study pages: no section is media alone, and the
   side alternates down the page so the eye zig-zags instead of scanning a
   single column. Stacks to text-above-media on mobile, which is the same
   relationship, just rotated.
   ========================================================================== */
.feature{
  display:grid;gap:28px;align-items:center;
  max-width:var(--maxw);margin:0 auto;padding:0 var(--gutter) var(--space-block);
  grid-template-columns:1fr;
}
@media(min-width:900px){
  /* Order matters: a `gap` shorthand after `column-gap` silently zeroes it.
     This rule previously ended `column-gap:72px;gap:0`, which is why the copy
     sat flush against the image. Set both in one shorthand: row then column. */
  .feature{grid-template-columns:1fr 1fr;gap:0 var(--gap-col)}
  /* Give the media the larger share when it carries the detail. */
  .feature.media-major{grid-template-columns:5fr 7fr}
  .feature.text-major{grid-template-columns:7fr 5fr}
  /* Media first, text second — set on alternating rows for rhythm. */
  .feature.reverse .feature-text{order:2}
  .feature.reverse .feature-media{order:1}
  /* Long-form copy reads better top-aligned against a tall portrait piece. */
  .feature.top{align-items:start}
}
.feature-text{display:grid;gap:14px;align-content:center;min-width:0}
.feature-text .label{
  color:var(--accent);font-family:var(--font-display);
  font-size:clamp(20px,2.4vw,30px);letter-spacing:1.5px;text-transform:uppercase;
  font-weight:600;line-height:1.1;
}
.feature-text h2,.feature-text h3{font-family:var(--font-display);font-size:clamp(26px,3.2vw,40px);letter-spacing:.3px;line-height:1.05}
.feature-text p{color:var(--text);font-size:16px;line-height:1.75;max-width:52ch}
@media(min-width:900px){ .feature-text p{font-size:17px} }

.feature-media{min-width:0}
.feature-media img,.feature-media video{
  width:100%;display:block;border-radius:10px;background:#000;object-fit:cover;
}
.feature-media.reel img,.feature-media.reel video{aspect-ratio:9/16;max-width:340px}
.feature-media.portrait img,.feature-media.portrait video{aspect-ratio:4/5}
.feature-media.landscape img,.feature-media.landscape video{aspect-ratio:16/9}
.feature-media.square img,.feature-media.square video{aspect-ratio:1/1}
/* No aspect lock — the file keeps its own shape. For full-page website
   captures and posters, where any fixed window would crop. */
.feature-media.natural img,.feature-media.natural video{aspect-ratio:auto;height:auto}

/* Two small pieces stacked beside a block of copy. */
.feature-media.pair{display:grid;gap:var(--gap);grid-template-columns:1fr 1fr}
.feature-media.pair.stackpair{grid-template-columns:1fr}

/* ==========================================================================
   PULL QUOTE / STATEMENT — breaks up long pages with a line of voice.
   ========================================================================== */
.statement{max-width:var(--maxw);margin:0 auto;padding:var(--space-tight) var(--gutter) var(--space-block)}
.statement p{
  font-family:var(--font-display);
  font-size:clamp(28px,4.6vw,60px);line-height:1.08;letter-spacing:.4px;
  max-width:18ch;color:var(--text);
}
.statement .accent{color:var(--accent)}

/* ==========================================================================
   DELIVERABLES LIST — what we actually made, as a scannable index.
   ========================================================================== */
.deliverables{max-width:var(--maxw);margin:0 auto;padding:0 var(--gutter) var(--space-block)}
.deliverables .label{
  color:var(--accent);font-family:var(--font-display);
  font-size:clamp(20px,2.4vw,30px);letter-spacing:1.5px;text-transform:uppercase;margin-bottom:18px;
}
.deliverables ul{display:grid;gap:0;grid-template-columns:1fr;border-top:1px solid var(--line)}
@media(min-width:700px){ .deliverables ul{grid-template-columns:1fr 1fr;column-gap:56px} }
.deliverables li{
  padding:15px 0;border-bottom:1px solid var(--line);
  font-size:15px;color:var(--text);display:flex;gap:14px;align-items:baseline;
}
.deliverables li::before{content:'';width:14px;height:1px;background:var(--accent);flex:0 0 auto;margin-top:.7em}

/* Video-only banner. No copy over the footage, so the scrim only needs to
   darken the top strip enough to keep the sticky header legible — the rest of
   the frame plays clean. */
.hero.bare .hero-scrim{
  background:linear-gradient(180deg,rgba(0,0,0,.50) 0%,rgba(0,0,0,.12) 18%,rgba(0,0,0,0) 34%);
}
.hero.bare .hero-media{opacity:1}

/* Available to assistive tech and search engines, invisible on screen. */
.visually-hidden{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;
}

/* ==========================================================================
   HOMEPAGE — intro band, centred section heads
   ========================================================================== */
.intro-band{padding:var(--space-section) 0 0}
.intro-band .feature{padding-bottom:0}
/* The opening line runs larger than body copy and in the display face — it is a
   statement, not a paragraph, even though it sits in a <p>. */
.intro-band .intro-line{
  font-family:var(--font-display);
  font-size:clamp(30px,4vw,54px);line-height:1.04;letter-spacing:.4px;
  color:var(--text);max-width:16ch;
}
.intro-band .feature-text p + p{color:var(--text-dim);font-size:16px;line-height:1.75}
@media(min-width:900px){ .intro-band .feature-text p + p{font-size:17px} }
.intro-band .eyebrow{display:block}

.section-head.center{align-items:center;text-align:center}
.filters.center{justify-content:center;flex-wrap:wrap;overflow:visible}
@media(max-width:699px){ .filters.center{flex-wrap:nowrap;overflow-x:auto;justify-content:flex-start} }

/* ==========================================================================
   WORK GRID — three rows, then Show more.
   Row count differs by breakpoint because the column count does, so the cut-off
   is redefined at each one rather than being a fixed number of cards.
   ========================================================================== */
.work-grid.collapsed .work-card:nth-child(n+4){display:none}
@media(min-width:640px){
  .work-grid.collapsed .work-card:nth-child(n+4){display:block}
  .work-grid.collapsed .work-card:nth-child(n+7){display:none}
}
@media(min-width:1100px){
  .work-grid.collapsed .work-card:nth-child(n+7){display:block}
  .work-grid.collapsed .work-card:nth-child(n+10){display:none}
}
.show-more-wrap{text-align:center;margin-top:40px}
.show-more{
  display:inline-flex;align-items:center;gap:10px;
  padding:15px 30px;border:1px solid var(--line);border-radius:999px;
  background:transparent;color:var(--text);font-size:14px;letter-spacing:.5px;
  font-family:var(--font-body);cursor:pointer;transition:background .25s,color .25s,border-color .25s;
}
.show-more:hover{background:var(--text);color:var(--bg);border-color:var(--text)}
.show-more .chev{transition:transform .3s ease}
.show-more[aria-expanded="true"] .chev{transform:rotate(180deg)}

/* ==========================================================================
   AI STUDIO — a strip of identical 9:16 panels.
   Every item is the same width and the same aspect ratio, so the row reads as
   one object. The source files are all true 9:16 (two were centre-cropped in
   ffmpeg rather than cover-cropped by the browser), so nothing is trimmed.
   ========================================================================== */
.ai-strip{
  display:flex;gap:var(--gap);overflow-x:auto;scroll-snap-type:x mandatory;
  padding:0 var(--gutter);margin:0 auto;max-width:var(--maxw);
  -webkit-overflow-scrolling:touch;scrollbar-width:none;
}
.ai-strip::-webkit-scrollbar{display:none}
.ai-item{flex:0 0 clamp(190px,44vw,258px);scroll-snap-align:start}
.ai-item video,.ai-item img{
  width:100%;aspect-ratio:9/16;object-fit:cover;
  border-radius:var(--radius-md);display:block;background:#000;
}

/* ==========================================================================
   CAROUSEL ARROWS — shared by the AI strip and the testimonials.
   ========================================================================== */
.car-nav{display:flex;gap:12px;justify-content:center;margin-top:var(--space-tight)}
.car-nav button{
  width:48px;height:48px;border-radius:999px;border:1px solid var(--line);
  background:transparent;color:var(--text);font-size:17px;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  transition:background .25s,color .25s,border-color .25s;
}
.car-nav button:hover:not([disabled]){background:var(--text);color:var(--bg);border-color:var(--text)}
.car-nav button[disabled]{opacity:.32;cursor:default}
.band-light .car-nav button{border-color:var(--line);color:var(--text)}
.band-light .car-nav button:hover:not([disabled]){background:var(--text);color:#fff}

/* ==========================================================================
   INSTAGRAM GRID
   ========================================================================== */
.ig-grid{
  display:grid;grid-template-columns:repeat(2,1fr);gap:var(--gap);
  max-width:var(--maxw);margin:0 auto;padding:0 var(--gutter);
}
@media(min-width:640px){ .ig-grid{grid-template-columns:repeat(3,1fr)} }
@media(min-width:1000px){ .ig-grid{grid-template-columns:repeat(6,1fr)} }
.ig-tile{display:block;border-radius:var(--radius-md);overflow:hidden;background:#000;position:relative}
.ig-tile img{
  width:100%;aspect-ratio:1/1;object-fit:cover;display:block;
  transition:transform .5s ease,opacity .3s ease;
}
.ig-tile:hover img{transform:scale(1.05);opacity:.86}
.ig-cta{text-align:center;margin-top:var(--space-block)}

/* ==========================================================================
   CLIENT LOGO WALL
   ========================================================================== */
.logo-wall{max-width:var(--maxw);margin:0 auto;padding:0 var(--gutter)}
.logo-wall ul{
  display:grid;grid-template-columns:repeat(2,1fr);gap:1px;
  background:var(--line);border:1px solid var(--line);border-radius:10px;overflow:hidden;
}
@media(min-width:640px){ .logo-wall ul{grid-template-columns:repeat(3,1fr)} }
@media(min-width:1000px){ .logo-wall ul{grid-template-columns:repeat(5,1fr)} }
.logo-wall li{
  background:var(--bg);display:flex;align-items:center;justify-content:center;
  padding:30px 22px;min-height:112px;
}
.logo-wall img{
  max-width:118px;max-height:46px;width:auto;height:auto;object-fit:contain;
  /* Logos arrive in assorted colours on white. Knocking them back to a single
     tone keeps the wall calm; colour returns on hover. */
  filter:grayscale(1) brightness(0) invert(1);opacity:.62;
  transition:opacity .25s ease,filter .25s ease;
}
.logo-wall li:hover img{opacity:1;filter:none}
.logo-wall .name{
  font-family:var(--font-display);font-size:17px;letter-spacing:1px;
  color:var(--text-dim);text-transform:uppercase;transition:color .25s ease;text-align:center;
}
.logo-wall li:hover .name{color:var(--text)}

/* ==========================================================================
   TESTIMONIALS — three visible, scroll-snap carousel
   ========================================================================== */
.testimonials{max-width:var(--maxw);margin:0 auto;padding:0 var(--gutter)}
.tm-track{
  display:flex;gap:var(--gap);overflow-x:auto;scroll-snap-type:x mandatory;
  padding-bottom:10px;-webkit-overflow-scrolling:touch;scrollbar-width:none;
}
.tm-track::-webkit-scrollbar{display:none}
.tm-card{
  flex:0 0 100%;scroll-snap-align:start;
  background:var(--bg-raised);border:1px solid var(--line);border-radius:12px;
  padding:34px 30px;display:flex;flex-direction:column;gap:20px;
}
@media(min-width:700px){ .tm-card{flex-basis:calc((100% - var(--gap)) / 2)} }
/* Three across on desktop, as asked — the fourth peeks to signal it scrolls. */
@media(min-width:1000px){ .tm-card{flex-basis:calc((100% - (2 * var(--gap))) / 3)} }
.tm-card .quote-mark{font-family:var(--font-display);font-size:52px;line-height:.6;color:var(--accent)}
.tm-card blockquote{font-size:16px;line-height:1.7;color:var(--text);flex:1}
.tm-card .who{display:flex;flex-direction:column;gap:3px;border-top:1px solid var(--line);padding-top:18px}
.tm-card .who .n{font-family:var(--font-display);font-size:19px;letter-spacing:.5px}
.tm-card .who .r{font-size:13px;color:var(--text-dim)}
.tm-card.is-placeholder{border-style:dashed}
.tm-card.is-placeholder blockquote{color:var(--text-dim);font-style:italic}

.tm-nav{display:flex;gap:10px;justify-content:center;margin-top:26px}
.tm-nav button{
  width:46px;height:46px;border-radius:50%;border:1px solid var(--line);
  background:transparent;color:var(--text);font-size:17px;cursor:pointer;
  display:flex;align-items:center;justify-content:center;transition:background .25s,color .25s;
}
.tm-nav button:hover{background:var(--text);color:var(--bg)}
.tm-nav button[disabled]{opacity:.3;cursor:default}
.tm-nav button[disabled]:hover{background:transparent;color:var(--text)}

/* A block that ends a section already has the section's bottom padding beneath
   it; its own bottom step would double up. */
.section > .feature:last-child,
.section > .media-grid:last-child,
.section > .deliverables:last-child,
.section > .media-split:last-child{padding-bottom:0}

/* ==========================================================================
   LIGHT BANDS — for the mixed theme.
   Every component already draws its colours from --bg / --text / --line etc,
   so re-declaring those variables on a section re-themes everything inside it.
   No component needs to know the theme exists, and there is no third
   stylesheet to keep in sync.
   ========================================================================== */
.band-light{
  --bg:#f7f6f2;
  --bg-raised:#ffffff;
  --line:#e1dfd6;
  --text:#14140f;
  --text-dim:#5d5c54;
  background:var(--bg);
  color:var(--text);
}
.band-light .chip{border-color:var(--line);color:var(--text-dim)}
.band-light .chip.active{background:var(--text);color:#fff;border-color:var(--text)}
.band-light .show-more{border-color:var(--line);color:var(--text)}
.band-light .show-more:hover{background:var(--text);color:#fff;border-color:var(--text)}
.band-light .btn-outline{border-color:var(--line);color:var(--text)}
.band-light .tm-nav button{border-color:var(--line);color:var(--text)}
.band-light .tm-nav button:hover{background:var(--text);color:#fff}
/* Logos are inverted to white for the dark theme; on a light band they need to
   go the other way. */
.band-light .logo-wall img{filter:grayscale(1) opacity(.72)}
.band-light .logo-wall li:hover img{filter:none;opacity:1}
/* A band sits edge to edge, so it supplies its own vertical breathing room
   rather than relying on the neighbouring section's padding. */
.band-light.section{padding:var(--space-section) 0}

/* ==========================================================================
   REFINEMENT PASS — radius, texture, and a real typographic rhythm.
   Appended deliberately so it overrides the values above and can be reviewed
   as one block.
   ========================================================================== */

:root{
  /* Corner radius scale. Three steps so a 1400px panel and a 40px chip don't
     share a radius — the same absolute curve reads very differently at
     different sizes. */
  --radius-lg:clamp(16px,2vw,28px);   /* banded sections, laptop frame */
  --radius-md:14px;                   /* media, cards, panels */
  --radius-sm:10px;                   /* small tiles, inputs */
  /* How far a banded section pulls in from the viewport edge so its corners
     are actually visible. */
  --band-inset:clamp(12px,1.6vw,22px);
}

/* ------------------------------------------------------------------ texture
   A fixed grain layer over the whole page. Generated with SVG turbulence, so
   it costs no request and no file. Very low opacity — it should read as the
   surface having a tooth, never as visible noise. */
body::before{
  content:'';
  position:fixed;inset:0;z-index:2;pointer-events:none;
  opacity:.038;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='260' height='260' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* And a very soft light-fall so the flat field has some depth to it. */
body{
  background-image:
    radial-gradient(120% 80% at 50% 0%, rgba(255,255,255,.045) 0%, rgba(255,255,255,0) 60%),
    radial-gradient(90% 60% at 10% 100%, rgba(255,255,255,.028) 0%, rgba(255,255,255,0) 55%);
  background-attachment:fixed;
}
.site-header{z-index:60}

/* ------------------------------------------------------- rounded everything */
.media-grid img,.media-grid video,
.media-split img,.media-split video,
.media-single img,.media-single video,
.feature-media img,.feature-media video,
.ai-strip img,.ai-strip video,
.brand-mosaic img,
.next-project .np-thumb,
.media-grid .ph{border-radius:var(--radius-md)}

.work-card{border-radius:var(--radius-md);overflow:hidden}
.work-card .thumb{border-radius:0}
.tm-card{border-radius:var(--radius-md)}
.logo-wall ul{border-radius:var(--radius-lg)}
.laptop-bezel{border-radius:var(--radius-lg) var(--radius-lg) 6px 6px}
.hero{border-radius:0}

/* ------------------------------------------------------------ banded panels
   A band needs to LOOK inset so its rounded corners show, without BEING inset
   in layout — the moment the band's own box narrows, every container inside it
   centres from a different origin than containers outside it, and the two stop
   lining up. (Insetting with margin held alignment below 1440px and drifted
   ~22px above it, with a mismatched window in between.)

   So the section box stays full-bleed and the visible panel is painted by an
   inset pseudo-element. Content inside a band is then laid out by exactly the
   same rules as content outside one, at every viewport width, with no
   compensation and no arithmetic to get wrong. */
.band-light,
.band-dark{position:relative;background:transparent}
.band-light::before,
.band-dark::before{
  content:'';position:absolute;
  inset:0 var(--band-inset);
  background:var(--bg);
  border-radius:var(--radius-lg);
}
/* Positioned pseudo-elements paint above ordinary in-flow content, so the
   content needs lifting back over the panel. */
.band-light > *,
.band-dark > *{position:relative;z-index:1}

/* A band supplies its own vertical room rather than borrowing a neighbour's. */
.band-light.section,
.band-light.intro-band{padding-block:var(--space-section)}

/* ------------------------------------------------------- typographic rhythm
   Text blocks previously used one flat `gap` between every child, so a label
   sat as far from its heading as a paragraph sat from the next paragraph.
   These are different relationships and need different space. */
.feature-text,
.story-text{display:grid;gap:0;align-content:center;min-width:0}

.feature-text .label,
.story-text .label{margin:0 0 12px}
.feature-text h3,
.story-text h2,.story-text h3{margin:0 0 20px}
.feature-text p,
.story-text p{margin:0}
.feature-text p + p,
.story-text p + p{margin-top:18px}

/* Measure: long lines are the most common cause of copy "feeling" wrong.
   66 characters is the readable ceiling. */
.feature-text p,
.story-text p{max-width:62ch}

/* Headings at display sizes need a touch more tracking to stop the condensed
   face from closing up, and tighter leading so they read as one object. */
.feature-text h3,
.story-text h2,.story-text h3{line-height:1.02;letter-spacing:.6px}
.section-head h2{line-height:1.02;letter-spacing:.6px}
.intro-band .intro-line{line-height:1.02;letter-spacing:.6px;margin:0 0 22px}

/* Eyebrow / label sits closer to what it introduces than to what precedes it. */
.section-head{gap:0}
.section-head .eyebrow{margin:0 0 12px}
.section-head h2{margin:0}
.section-head p{margin-top:18px}

/* ------------------------------------------------------------- card interiors
   Padding inside a card is its own rhythm and was inconsistent across the
   three card types. */
.work-card .meta{padding:20px}
.tm-card{padding:32px 30px;gap:0}
.tm-card .quote-mark{margin-bottom:14px}
.tm-card blockquote{margin:0 0 24px}
.tm-card .who{padding-top:20px}
.logo-wall li{padding:32px 24px}
.deliverables li{padding:16px 0}

/* -------------------------------------------------------------- controls */
.chip{border-radius:999px;padding:10px 18px}
.filters{gap:12px}
.show-more{border-radius:999px}
.btn-outline{border-radius:999px;padding:14px 28px}
.cs-tags span{border-radius:999px}

/* ==========================================================================
   MOTION & DECORATION
   Everything here is presentational polish. All of it is wrapped in
   prefers-reduced-motion guards, and none of it is required for content to be
   readable — the page still works with JS off and animation disabled.
   ========================================================================== */

/* ------------------------------------------------- scroll progress indicator */
.scroll-progress{
  position:fixed;top:0;left:0;height:2px;width:100%;transform-origin:0 50%;
  transform:scaleX(0);background:var(--accent);z-index:70;pointer-events:none;
}

/* ------------------------------------------------------------- watermark type
   Oversized outlined wordmark sitting behind a hero. Stroke-only so it reads as
   a texture rather than as a second headline competing with the real one. */
.watermark{
  position:absolute;left:0;right:0;bottom:-2%;
  font-family:var(--font-display);
  font-size:clamp(90px,19vw,300px);line-height:.78;letter-spacing:2px;
  text-transform:uppercase;white-space:nowrap;
  color:transparent;-webkit-text-stroke:1px rgba(255,255,255,.13);
  pointer-events:none;user-select:none;z-index:1;
  padding-inline:var(--gutter);
}
.band-light .watermark{-webkit-text-stroke-color:rgba(0,0,0,.10)}

/* ------------------------------------------------------------ marquee divider
   A slow-moving rule between chapters. Duplicated content is required for a
   seamless loop: the track translates exactly -50%, so the second copy lands
   where the first began. */
.marquee{
  overflow:hidden;border-top:1px solid var(--line);border-bottom:1px solid var(--line);
  padding:18px 0;margin-block:var(--space-block);
  -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{
  display:flex;gap:44px;width:max-content;
  animation:marquee 38s linear infinite;
}
.marquee span{
  font-family:var(--font-display);font-size:clamp(15px,1.6vw,21px);
  letter-spacing:2.5px;text-transform:uppercase;color:var(--text-dim);
  display:flex;align-items:center;gap:44px;white-space:nowrap;
}
.marquee span::after{content:'';width:6px;height:6px;border-radius:50%;background:var(--accent);flex:0 0 auto}
@keyframes marquee{from{transform:translateX(0)}to{transform:translateX(-50%)}}
.marquee:hover .marquee-track{animation-play-state:paused}

/* ------------------------------------------------------------ chapter numbers */
.chapter-no{
  font-family:var(--font-display);font-size:13px;letter-spacing:3px;
  color:var(--text-dim);display:block;margin-bottom:10px;
}
.chapter-no::before{content:'';display:inline-block;width:26px;height:1px;
  background:var(--accent);vertical-align:middle;margin-right:12px}

/* --------------------------------------------------------------- media polish */
.feature-media,
.media-grid > *,
.ig-tile,
.ai-item{overflow:hidden;border-radius:var(--radius-md)}
.feature-media img,.feature-media video,
.media-grid img,.media-grid video{transition:transform .8s cubic-bezier(.2,.7,.2,1)}
@media(hover:hover){
  .feature-media:hover img,
  .feature-media:hover video,
  .media-grid > *:hover img,
  .media-grid > *:hover video{transform:scale(1.035)}
}

/* work cards lift slightly and lighten their border on hover */
.work-card{transition:transform .45s cubic-bezier(.2,.7,.2,1),box-shadow .45s ease}
@media(hover:hover){
  .work-card:hover{transform:translateY(-6px);box-shadow:0 18px 44px rgba(0,0,0,.34)}
}

/* ------------------------------------------------------------------- reveals
   Staggered: each child is given an index by JS and delays off it, so a grid
   assembles rather than appearing all at once. */
@media(prefers-reduced-motion:no-preference){
  .js .reveal{opacity:0;transform:translateY(20px);transition:opacity .7s cubic-bezier(.2,.7,.2,1),transform .7s cubic-bezier(.2,.7,.2,1)}
  .js .reveal.in{opacity:1;transform:none}
  .js .stagger > *{opacity:0;transform:translateY(22px)}
  .js .stagger.in > *{
    opacity:1;transform:none;
    transition:opacity .7s cubic-bezier(.2,.7,.2,1),transform .7s cubic-bezier(.2,.7,.2,1);
    transition-delay:calc(var(--i,0) * 70ms);
  }
  /* Hero copy rises once on load. */
  .js .hero-content > *{animation:riseIn .9s cubic-bezier(.2,.7,.2,1) both}
  .js .hero-content > *:nth-child(2){animation-delay:.08s}
  .js .hero-content > *:nth-child(3){animation-delay:.16s}
  @keyframes riseIn{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:none}}
}

/* Everything above is opt-out in one place. */
@media(prefers-reduced-motion:reduce){
  .marquee-track{animation:none}
  .js .reveal,.js .stagger > *{opacity:1;transform:none}
  *{scroll-behavior:auto !important}
}

/* --------------------------------------------------------------- link polish */
.site-nav a{position:relative}
.site-nav a::after{
  content:'';position:absolute;left:0;right:0;bottom:-6px;height:1px;
  background:currentColor;transform:scaleX(0);transform-origin:100% 50%;
  transition:transform .4s cubic-bezier(.2,.7,.2,1);
}
@media(min-width:900px){
  .site-nav a:hover::after{transform:scaleX(1);transform-origin:0 50%}
}

/* Case study chapter wrapper — the banded panel unit on work pages. */
.cs-section{position:relative}
.cs-section.band-light{padding-block:var(--space-section)}

/* ==========================================================================
   FEATURE ROW — fill the column, size the row to the content.
   The previous rule split the row 50/50 regardless of the media's shape, then
   capped the media's width and centred it. A portrait image in a half-width
   column left dead space on both sides of it, and dead space to the right of
   the copy. Nothing filled anything.

   Now: the media column is sized to the media's shape and the image fills it
   edge to edge; the text column takes whatever is left. Landscape media gets
   the bigger share; portrait and reel media get a narrower column so the row
   doesn't become a tower.
   ========================================================================== */
@media(min-width:900px){
  .feature{grid-template-columns:7fr 5fr;align-items:center}
  .feature.text-major{grid-template-columns:minmax(300px,36%) 1fr}
  .feature.media-major{grid-template-columns:8fr 4fr}
  /* Natural (uncropped tall captures) keep the top-aligned treatment. */
  .feature.top{align-items:start}
}

/* Media fills its column. No width caps, no centring. */
.feature-media{width:100%;max-width:none;margin:0}
.feature-media img,.feature-media video{
  width:100%;height:auto;max-width:none;display:block;object-fit:cover;
}
.feature-media.reel img,.feature-media.reel video{aspect-ratio:9/16;max-width:none}
.feature-media.portrait img,.feature-media.portrait video{aspect-ratio:4/5}
.feature-media.square img,.feature-media.square video{aspect-ratio:1/1}
.feature-media.landscape img,.feature-media.landscape video{aspect-ratio:16/9}

/* Copy fills its column too — the readable-measure cap stays, but the column
   is now narrow enough that it rarely bites. */
.feature-text{max-width:none}
.feature-text p{max-width:60ch}

/* A banded feature row no longer stacks the band's section padding on top of
   the feature's own vertical padding. */
.cs-section.band-light .feature{padding-top:0;padding-bottom:0}
.cs-section.band-light .story-block{padding-top:0}
/* 9:16 reels get a narrower column still — at 36% a reel runs 850px tall and
   leaves the copy floating in the middle of a very tall row. */
@media(min-width:900px){
  .feature.reel-row{grid-template-columns:minmax(250px,29%) 1fr}
}

/* ==========================================================================
   WHO WE ARE — split panel. Copy on the left at the page gutter; image on the
   right running edge to edge and top to bottom of the painted band, so it
   covers exactly half the panel instead of floating inside it.
   ========================================================================== */
.intro-band,
.intro-band.band-light{padding-block:0}
.intro-band .feature.intro-feature{
  max-width:none;padding:0;gap:0;align-items:stretch;
  grid-template-columns:1fr;
  min-height:clamp(440px,58vh,680px);
}
@media(min-width:900px){
  .intro-band .feature.intro-feature{grid-template-columns:1fr 1fr}
}
.intro-feature .feature-text{
  align-content:center;
  padding:var(--space-section) var(--gap-col) var(--space-section)
          max(var(--gutter), calc((100vw - var(--maxw)) / 2));
}
/* The image column is positioned, and the picture fills it absolutely so it
   takes the row's full height regardless of its own aspect ratio. It stops at
   the painted panel's edge (--band-inset), with the panel's own corner radius
   on the two outer corners so the bleed reads as part of the panel. */
.intro-feature .feature-media{
  position:relative;min-height:320px;
  margin-right:var(--band-inset);
  border-radius:0 var(--radius-lg) var(--radius-lg) 0;overflow:hidden;
}
@media(max-width:899px){
  .intro-feature .feature-media{margin-inline:var(--band-inset);border-radius:0 0 var(--radius-lg) var(--radius-lg)}
}
.intro-feature .feature-media img{
  position:absolute;inset:0;width:100%;height:100%;
  object-fit:cover;aspect-ratio:auto;border-radius:0;
}
/* The band's inset panel starts --band-inset in from the left, and the copy
   starts at the page gutter — both already agree, so nothing to compensate. */

/* ==========================================================================
   REEL STAGE — a vertical reel presented on a 16:9 panel.
   The reel plays centred at full height; a blurred, darkened copy of its own
   poster fills the rest of the panel. The media block becomes landscape, so a
   reel beside copy fills the column instead of standing as a 700px tower with
   dead space on either side. Same treatment Instagram and YouTube use for
   vertical video in a wide player.
   ========================================================================== */
.stage{
  position:relative;aspect-ratio:16/9;width:100%;
  border-radius:var(--radius-md);overflow:hidden;background:#000;
  display:flex;align-items:center;justify-content:center;
}
.stage::before{
  content:'';position:absolute;inset:-6%;
  background:var(--poster) center/cover no-repeat;
  filter:blur(26px) brightness(.45) saturate(1.15);
}
.stage video,.stage img{
  position:relative;height:100%;width:auto;max-width:100%;
  aspect-ratio:9/16;object-fit:cover;border-radius:0;
  box-shadow:0 10px 40px rgba(0,0,0,.45);
}
/* A reel on a stage is landscape media now — give it the landscape column share. */
@media(min-width:900px){
  .feature.reel-row{grid-template-columns:7fr 5fr}
}

/* ==========================================================================
   GRID COLUMN COUNTS — chosen by the generator to avoid orphans.
   ========================================================================== */
@media(min-width:700px){
  .media-grid.cols-2{grid-template-columns:repeat(2,1fr)}
  .media-grid.cols-3{grid-template-columns:repeat(3,1fr)}
}
@media(min-width:1000px){
  .media-grid.cols-4{grid-template-columns:repeat(4,1fr)}
  .media-grid.cols-5{grid-template-columns:repeat(5,1fr)}
  .media-grid.cols-6{grid-template-columns:repeat(6,1fr)}
}

/* ==========================================================================
   SKIP LINK — invisible until focused, then a solid pill at the top-left.
   ========================================================================== */
.skip-link{
  position:absolute;left:var(--gutter);top:-60px;z-index:100;
  padding:12px 18px;border-radius:999px;background:var(--accent);color:#fff;
  font-size:14px;letter-spacing:.4px;transition:top .2s;
}
.skip-link:focus{top:14px;outline:2px solid #fff;outline-offset:2px}

/* ==========================================================================
   TYPE SCALE — one set of sizes for the whole site.
   Before this block the stylesheet used 32 distinct font sizes and 15
   line-heights, accumulated one component at a time. That is what "the fonts
   look mismatched" means in practice. Everything below maps every text role
   onto eight sizes, four leadings and three trackings. Appended last so it
   overrides the per-component values above.
   ========================================================================== */
:root{
  --fs-xs:12px;                          /* tags, captions, copyright */
  --fs-sm:14px;                          /* chips, buttons, nav, meta */
  --fs-base:16px;                        /* body */
  --fs-md:17px;                          /* body in wide columns */
  --fs-lg:clamp(18px,1.9vw,23px);        /* labels, card titles, small display */
  --fs-xl:clamp(26px,3.2vw,40px);        /* chapter headings */
  --fs-2xl:clamp(32px,5vw,56px);         /* section heads, statements */
  --fs-3xl:clamp(42px,9vw,96px);         /* page titles */

  --lh-display:1.0;
  --lh-tight:1.12;
  --lh-intro:1.45;
  --lh-body:1.7;

  --ls-display:.5px;
  --ls-caps:2px;
  --ls-wide:3px;
}

/* ---- page titles ---- */
.hero h1,.cs-hero h1,.brand-hero h1,.legacy-hero h1{
  font-size:var(--fs-3xl);line-height:var(--lh-display);letter-spacing:var(--ls-display);
}

/* ---- section heads, statements, big moments ---- */
.section-head h2,
.intro-band .intro-line,
.statement p,
.next-project.has-thumb h3,
.cs-quote blockquote{
  font-size:var(--fs-2xl);line-height:var(--lh-display);letter-spacing:var(--ls-display);
}
.cta-band h2{font-size:var(--fs-3xl);line-height:var(--lh-display);letter-spacing:var(--ls-display)}

/* ---- chapter headings inside text blocks ---- */
.feature-text h2,.feature-text h3,
.story-text h2,.story-text h3{
  font-size:var(--fs-xl);line-height:var(--lh-tight);letter-spacing:var(--ls-display);
}

/* ---- eyebrows and labels: ONE treatment everywhere.
   Previously the section-head eyebrow was 12px sans and the chapter label was
   a 20-30px display face — two different voices for the same job. ---- */
.eyebrow,
.feature-text .label,.story-text .label,.deliverables .label,
.cs-intro .label,.legacy-section .label{
  font-family:var(--font-display);font-size:var(--fs-lg);
  letter-spacing:var(--ls-caps);text-transform:uppercase;font-weight:400;
  line-height:var(--lh-tight);color:var(--accent);
}
.chapter-no{font-size:var(--fs-xs);letter-spacing:var(--ls-wide);line-height:1}
.work-card .tag,.cs-tags span,.next-project .lbl{
  font-size:var(--fs-xs);letter-spacing:var(--ls-caps);line-height:1.3;
}

/* ---- body ---- */
body{font-size:var(--fs-base);line-height:var(--lh-body)}
.feature-text p,.story-text p,.hero p,.legacy-section p,.legacy-hero p,
.tm-card blockquote,.section-head p,.deliverables li,
.intro-band .feature-text p + p{font-size:var(--fs-base);line-height:var(--lh-body)}
@media(min-width:900px){
  .feature-text p,.story-text p,.story-text .label + h2 + p,
  .intro-band .feature-text p + p{font-size:var(--fs-md)}
}
.story-block.lede .story-text p{font-size:var(--fs-lg);line-height:var(--lh-intro);font-family:var(--font-body);letter-spacing:0;text-transform:none;color:var(--text)}

/* ---- small display: card titles, names, logo wordmarks ---- */
.work-card h3,.tm-card .who .n,.logo-wall .name,.footer-grid h4,.legacy-hero .est{
  font-family:var(--font-display);font-size:var(--fs-lg);
  letter-spacing:var(--ls-display);line-height:var(--lh-tight);
}
.logo-wall .name{letter-spacing:var(--ls-caps);text-transform:uppercase}

/* ---- controls and meta ---- */
.chip,.show-more,.btn-outline,.hero-cta,.site-nav a,footer,.tm-card .who .r,
.work-card .client,.marquee span{font-size:var(--fs-sm);letter-spacing:.3px;line-height:1.3}
.marquee span{font-family:var(--font-display);letter-spacing:var(--ls-caps);text-transform:uppercase}
.copyright,.media-grid .ph,.placeholder-note{font-size:var(--fs-xs)}
.tm-card .quote-mark{font-size:48px;line-height:.6}

/* Watermark is decorative and intentionally off-scale. Leave it. */

.feature-cta{margin-top:10px}
.feature-cta .btn-outline{display:inline-block}

/* ==========================================================================
   COMPONENT SPACING SCALE
   Section rhythm already runs on three tokens. Inside components — card
   padding, chip gaps, button sizes, footer — there were 58 distinct values.
   Everything below snaps those to a six-step scale so the same relationship
   gets the same distance everywhere.
   ========================================================================== */
:root{
  --sp-1:6px;   /* title to its subline */
  --sp-2:12px;  /* icon gaps, label to heading, chip gap */
  --sp-3:18px;  /* paragraph gap, card interior rows */
  --sp-4:24px;  /* card padding, list rows */
  --sp-5:32px;  /* control to the content it follows */
  --sp-6:48px;  /* footer and block interiors */
}

/* header */
.header-right{gap:var(--sp-3)}
.site-nav{gap:var(--sp-5)}
.brand-slot{padding:var(--sp-1) var(--sp-3)}

/* hero */
.hero p{margin-top:var(--sp-3)}
.hero-cta{margin-top:var(--sp-5);padding:var(--sp-2) var(--sp-4)}
.cs-tags{margin-top:var(--sp-3);gap:var(--sp-2)}
.cs-tags span{padding:var(--sp-1) var(--sp-2)}

/* section heads and filters */
.section-head{gap:0}
.section-head .eyebrow{margin:0 0 var(--sp-2)}
.section-head p{margin-top:var(--sp-3)}
.filters{gap:var(--sp-2);padding-bottom:var(--sp-1);margin-bottom:var(--sp-5)}
.chip{padding:10px var(--sp-3)}
.show-more-wrap{margin-top:var(--sp-6)}
.show-more,.btn-outline{padding:var(--sp-2) var(--sp-4)}
.cta-band .btn-outline{margin-top:var(--sp-5)}

/* cards */
.work-grid{gap:var(--gap)}
.work-card .meta{padding:var(--sp-4)}
.work-card h3{margin-top:var(--sp-1)}
.work-card .client{margin-top:var(--sp-1)}
.tm-card{padding:var(--sp-5) var(--sp-4)}
.tm-card .quote-mark{margin-bottom:var(--sp-2)}
.tm-card blockquote{margin:0 0 var(--sp-4)}
.tm-card .who{padding-top:var(--sp-3);gap:var(--sp-1)}
.logo-wall li{padding:var(--sp-5) var(--sp-4)}
.deliverables .label{margin-bottom:var(--sp-3)}
.deliverables li{padding:var(--sp-3) 0;gap:var(--sp-2)}
.team-card .role{margin-top:var(--sp-1)}

/* text blocks */
.feature-text .label,.story-text .label{margin:0 0 var(--sp-2)}
.feature-text h2,.feature-text h3,.story-text h2,.story-text h3{margin:0 0 var(--sp-3)}
.feature-text p + p,.story-text p + p{margin-top:var(--sp-3)}
.chapter-no{margin-bottom:var(--sp-2)}
.next-project.has-thumb{gap:var(--sp-6)}
.next-project h3{margin-top:var(--sp-1)}
.next-project .np-arrow{margin-left:var(--sp-2)}
.car-nav{gap:var(--sp-2);margin-top:var(--sp-5)}
.ig-cta{margin-top:var(--sp-6)}

/* footer */
footer{padding:var(--sp-6) 0 var(--sp-4)}
.footer-grid{gap:var(--sp-5)}
.footer-grid h4{margin-bottom:var(--sp-2)}
.social-row{gap:var(--sp-2);margin-top:var(--sp-3)}
.copyright{margin-top:var(--sp-5);padding-top:var(--sp-3)}

/* legacy + about */
.legacy-hero p,.about-intro p{margin:var(--sp-3) auto 0}
.legacy-section .label{margin-bottom:var(--sp-2)}
.legacy-section p{margin-bottom:var(--sp-3)}
.placeholder-note{margin:var(--sp-4) 0}

.cs-hero.short{min-height:56vh}
.notfound{min-height:62vh;display:flex;align-items:center}
.notfound h1{font-family:var(--font-display);font-size:var(--fs-2xl);letter-spacing:var(--ls-display);line-height:var(--lh-display)}
.notfound p{color:var(--text-dim);max-width:52ch;margin-top:var(--sp-3)}
.logo-rows-head{padding-bottom:var(--sp-2)}

/* ==========================================================================
   CHAPTER SECTIONS — every one gets the same vertical room, banded or not.
   Previously only .band-light carried padding, so a dark chapter following a
   light one started flush against the panel's edge. Interior blocks drop
   their own outer padding so it doesn't stack with the section's.
   ========================================================================== */
.cs-section{padding-block:var(--space-section)}
.cs-section > *:first-child{padding-top:0}
.cs-section > *:last-child{padding-bottom:0}
.cs-section > .story-block:first-child{padding-top:0}
.cs-section .media-grid:last-child,
.cs-section .laptop-frame:last-child,
.cs-section .deliverables:last-child,
.cs-section .statement:last-child{padding-bottom:0}
/* Two unbanded chapters in a row would otherwise double up. */
.cs-section:not(.band-light) + .cs-section:not(.band-light){padding-top:0}
.cs-section.band-light{padding-block:var(--space-section)}

/* Client logos in colour, Aman's call. The wall sits on a light band, so
   full-colour marks read correctly without a plaque. Slight lift on hover. */
.logo-wall li{background:#fff}
/* White behind the grid too, so the empty cells of a short last row do not
   show as grey tiles. Hairlines come from the tiles themselves. */
.logo-wall ul{background:#fff;border-color:#e6e4de;gap:0}
.logo-wall li{box-shadow:inset 0 0 0 .5px #e6e4de}
.logo-wall img,.band-light .logo-wall img{filter:none;opacity:1;transition:transform .3s ease}
.logo-wall li:hover img,.band-light .logo-wall li:hover img{filter:none;opacity:1;transform:scale(1.06)}
.logo-wall img{max-width:132px;max-height:52px}
.logo-wall .name,.logo-wall li:hover .name{color:#1a1a1a}

/* Team portraits: illustrated, cropped to a circle. The dashed ring was for the
   placeholder slots; real artwork gets a hairline ring and the same hover lift. */
img.avatar{display:block;object-fit:cover;border:1px solid var(--line);padding:0;background:none;width:120px;height:120px}
.team-card .role.pending{opacity:.55;font-style:italic}

/* Header logo artwork (white on transparent). Height-locked so the bar does not grow. */
.logo img{height:20px;width:auto;display:block}
@media(min-width:900px){ .logo img{height:24px} }
.logo-tile.has-logo img{padding:12px 18px;box-sizing:border-box}

/* ------------------------------------------------------------ About page
   Banner -> centred intro -> founder (photo left, copy right) -> services grid
   -> team -> client wall. Spacing comes from the section tokens only. */
.about-intro{padding:var(--space-section) var(--gutter) calc(var(--space-section) / 2);text-align:center}
.about-intro .eyebrow{display:block;margin-bottom:var(--sp-2)}
.about-intro p{color:var(--text);max-width:62ch;margin:0 auto;font-size:clamp(17px,1.6vw,21px);line-height:1.65}
.founder .role-line{color:var(--accent);font-size:13px;letter-spacing:2px;text-transform:uppercase;font-weight:600;margin-top:-8px}
.founder .feature-text h2{font-family:var(--font-display);font-size:clamp(32px,5vw,48px);letter-spacing:.5px}
.services-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr;gap:16px}
@media(min-width:640px){ .services-grid{grid-template-columns:repeat(2,1fr)} }
@media(min-width:1000px){ .services-grid{grid-template-columns:repeat(3,1fr)} }
.service-card{background:var(--bg-raised);border:1px solid var(--line);border-radius:var(--radius-md);padding:var(--sp-5);display:flex;flex-direction:column;gap:var(--sp-2);transition:transform .3s ease,border-color .3s ease}
.service-card:hover{transform:translateY(-6px);border-color:var(--accent)}
.service-card .service-num{color:var(--accent);font-size:12px;letter-spacing:2px;font-weight:600}
.service-card h3{font-family:var(--font-display);font-size:24px;letter-spacing:.5px}
.service-card p{color:var(--text-dim);font-size:15px;line-height:1.6}

/* About banner: a mosaic of six cinematic stills behind the headline, with a slow
   drift on each tile. Mobile gets 2x3, desktop 3x2. */
.hero-mosaic{position:absolute;inset:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));gap:3px;background:var(--bg);overflow:hidden}
@media(min-width:760px){ .hero-mosaic{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr))} }
.hero-mosaic img{width:100%;height:100%;min-height:0;object-fit:cover;display:block;filter:saturate(.9) brightness(.8);transform:scale(1.08)}
@media(prefers-reduced-motion:no-preference){
  .hero-mosaic img{animation:mosaic-drift 14s ease-in-out infinite alternate}
  .hero-mosaic img:nth-child(2n){animation-duration:17s;animation-delay:-5s}
  .hero-mosaic img:nth-child(3n){animation-duration:20s;animation-delay:-9s}
  @keyframes mosaic-drift{from{transform:scale(1.08) translate(-1.5%,-1%)}to{transform:scale(1.14) translate(1.5%,1%)}}
}
.cs-hero .hero-mosaic + .hero-scrim{background:linear-gradient(180deg,rgba(11,11,12,.35) 0%,rgba(11,11,12,.55) 55%,rgba(11,11,12,.92) 100%)}

/* About banner: a portrait frame on a wide window, so the crop is pinned on the rider. */
.about-hero{min-height:72vh}
.about-hero .hero-media{object-position:50% 58%}

/* Founder row: the portrait sits in a narrow square window (face kept at the top of
   the crop) so the photo and the two paragraphs come out about the same height,
   instead of a tall 4:5 frame with the copy floating in the middle. */
.founder .feature-media img{object-position:50% 12%}
@media(min-width:900px){ .founder .feature{grid-template-columns:minmax(220px,26%) 1fr;gap:0 var(--space-block)} }
/* The row is short, so the band takes the block step rather than the section step. */
.founder.section{padding-block:var(--space-tight)}
@media(min-width:900px){ .founder.section{padding-block:var(--sp-6)} }

/* ==========================================================================
   Chapter text block alignment (Aman, BGM review). The right-hand paragraph
   used to span both rows and so started level with the small label; it now
   starts level with the heading. Label and chapter number take their own rows.
   ========================================================================== */
@media(min-width:900px){
  .story-block:not(.lede) .story-text{grid-template-rows:auto auto auto;row-gap:0}
  .story-block:not(.lede) .story-text .label{grid-column:1;grid-row:1}
  .story-block:not(.lede) .story-text h2,
  .story-block:not(.lede) .story-text h3{grid-column:1;grid-row:2;align-self:start}
  .story-block:not(.lede) .story-text p{grid-column:2;grid-row:2;align-self:start;margin-top:.35em}
  .story-block:not(.lede) .story-text p + p{grid-row:3;margin-top:var(--sp-3)}
  .story-block:not(.lede) .story-text .chapter-no{grid-column:1;grid-row:3;align-self:start;margin:0}
}
/* An unbanded chapter straight after a band carried a full section step on top
   of the panel's own bottom padding: two gaps where one was meant. */
.cs-section.band-light + .cs-section:not(.band-light){padding-top:var(--space-block)}

/* Two reels together share one 16:9 stage, the same treatment as a lone reel,
   instead of two half-width columns that ran over 1000px tall. */
.stage.stage-duo{gap:clamp(12px,2vw,28px)}
.stage.stage-duo video,.stage.stage-duo img{height:88%}
.cs-section .media-single:last-child{padding-bottom:0}

/* ==========================================================================
   Case study intro ("The brief"): prose with an accent rule, fact table beside
   it. Replaces the bare opening paragraph. Chosen by Aman from three options.
   ========================================================================== */
.story-block.lede{padding:var(--space-block) var(--gutter) var(--space-tight)}
.lede-eyebrow{font-family:var(--font-display);font-size:var(--fs-lg);letter-spacing:var(--ls-caps);text-transform:uppercase;color:var(--accent);display:flex;align-items:center;gap:12px;margin-bottom:var(--sp-4)}
.lede-eyebrow::before{content:'';width:28px;height:1px;background:var(--accent)}
.lede-grid{display:grid;gap:var(--space-tight);align-items:start}
.lede-body{font-size:clamp(18px,1.6vw,21px);line-height:1.55;color:var(--text);padding-left:22px;border-left:2px solid var(--accent);margin:0;max-width:none}
.facts{display:grid;border-top:1px solid var(--line);margin:0}
.facts div{display:grid;grid-template-columns:96px 1fr;gap:16px;padding:14px 0;border-bottom:1px solid var(--line);font-size:14px;line-height:1.5}
.facts dt{color:var(--text-dim);letter-spacing:1.5px;text-transform:uppercase;font-size:11px;padding-top:3px}
.facts dd{margin:0;color:var(--text)}
@media(min-width:900px){
  .lede-grid{grid-template-columns:minmax(0,7fr) minmax(300px,5fr);gap:0 var(--space-block)}
  .lede-grid .facts{margin-top:4px}
}

/* Natural grids with two or three pieces keep that many columns at every width
   above mobile, instead of spreading two items across a four-column layout. */
@media(min-width:700px){
  .media-grid.natural.two{column-count:2}
  .media-grid.natural.three{column-count:3}
}

/* "Fit" grid: every window is 4:3 and the piece sits inside it uncropped on a
   raised panel. Used on the More work page so brochures, squares, hoardings and
   films share one size instead of each dictating its own. */
.media-grid.fit{grid-template-columns:repeat(2,1fr)}
@media(min-width:900px){ .media-grid.fit{grid-template-columns:repeat(3,1fr)} .media-grid.fit.two{grid-template-columns:repeat(2,1fr)} }
@media(max-width:599px){ .media-grid.fit{grid-template-columns:1fr} }
.media-grid.fit img,.media-grid.fit video{aspect-ratio:4/3;object-fit:contain;background:var(--bg-raised);border:1px solid var(--line);padding:4%;box-sizing:border-box}
.band-light .media-grid.fit img,.band-light .media-grid.fit video{background:#fff}
.media-grid.fit video{padding:0;object-fit:contain}

/* Contact band: email, WhatsApp and phone side by side. */
.cta-actions{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;margin-top:28px}
.cta-band .cta-actions .btn-outline{margin-top:0}
.btn-outline.btn-wa{border-color:#25d366;color:#25d366}
.btn-outline.btn-wa:hover{background:#25d366;color:#0b0b0c}
/* Floating WhatsApp button, every page. Sits above the scroll progress bar's layer. */
.wa-float{position:fixed;right:20px;bottom:20px;z-index:70;width:52px;height:52px;border-radius:50%;
  background:#25d366;color:#fff;display:flex;align-items:center;justify-content:center;
  box-shadow:0 8px 24px rgba(0,0,0,.35);transition:transform .25s ease}
.wa-float:hover{transform:translateY(-3px)}
@media(min-width:900px){ .wa-float{right:28px;bottom:28px} }

/* AI Studio: process steps. Same card language as the services grid, numbered. */
.steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr;gap:16px;counter-reset:none}
@media(min-width:640px){ .steps{grid-template-columns:repeat(2,1fr)} }
@media(min-width:1000px){ .steps{grid-template-columns:repeat(4,1fr)} }
.step{border-top:1px solid var(--line);padding:var(--sp-4) 0 0;display:flex;flex-direction:column;gap:var(--sp-2)}
.step .step-num{font-family:var(--font-display);font-size:var(--fs-xl);color:var(--accent);line-height:1}
.step h3{font-family:var(--font-display);font-size:22px;letter-spacing:.5px}
.step p{color:var(--text-dim);font-size:15px;line-height:1.6}
.media-grid.reels .stagger video{aspect-ratio:9/16}

/* Homepage work grid: the first twelve only; the rest live on work.html. */
.work-grid.top12 .work-card:nth-child(n+13){display:none}
a.show-more{display:inline-flex;align-items:center;gap:10px;text-decoration:none}
a.show-more:hover .chev{transform:translateX(4px)}
.work-index{padding-top:var(--space-section)}
.work-index h1{font-family:var(--font-display);font-size:var(--fs-2xl);letter-spacing:.5px;line-height:1.05}

/* Contact form. Composes an email or WhatsApp message on the visitor's own
   device; nothing is sent to or stored by the site. */
.contact-form{max-width:720px;margin:var(--space-block) auto 0;text-align:left;display:grid;gap:14px}
.contact-form .row{display:grid;gap:14px}
@media(min-width:640px){ .contact-form .row{grid-template-columns:1fr 1fr} }
.contact-form label{display:grid;gap:6px;font-size:12px;letter-spacing:1.5px;text-transform:uppercase;color:var(--text-dim)}
.contact-form input,.contact-form select,.contact-form textarea{
  font:inherit;font-size:16px;letter-spacing:0;text-transform:none;color:var(--text);
  background:var(--bg-raised);border:1px solid var(--line);border-radius:var(--radius-sm);padding:12px 14px;width:100%}
.contact-form textarea{min-height:120px;resize:vertical}
.contact-form input:focus,.contact-form select:focus,.contact-form textarea:focus{outline:2px solid var(--accent);outline-offset:1px}
.contact-form .send{display:flex;flex-wrap:wrap;gap:12px;margin-top:6px}
.contact-form .send .btn-outline{margin-top:0;cursor:pointer;background:none;font:inherit}
.contact-form .note{font-size:13px;color:var(--text-dim);margin:0}
.cta-or{color:var(--text-dim);font-size:13px;letter-spacing:2px;text-transform:uppercase;margin-top:var(--space-block)}

/* FAQ: native details/summary, no script. */
.faq-list{max-width:860px;margin:0 auto;border-top:1px solid var(--line)}
.faq-item{border-bottom:1px solid var(--line)}
.faq-item summary{cursor:pointer;list-style:none;padding:18px 36px 18px 0;position:relative;font-family:var(--font-display);font-size:22px;letter-spacing:.4px;color:var(--text)}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary::after{content:'+';position:absolute;right:4px;top:14px;color:var(--accent);font-size:26px;line-height:1}
.faq-item[open] summary::after{content:'\2212'}
.faq-item p{margin:0 0 20px;color:var(--text);max-width:70ch;line-height:1.65}

/* Plain text pages (privacy). */
.prose{max-width:760px;margin:0 auto;padding:var(--space-section) var(--gutter)}
.prose h1{font-family:var(--font-display);font-size:var(--fs-2xl);letter-spacing:.5px;margin-bottom:var(--sp-4)}
.prose h2{font-family:var(--font-display);font-size:26px;letter-spacing:.4px;margin:var(--sp-6) 0 var(--sp-2)}
.prose p,.prose li{line-height:1.7;color:var(--text)}
.prose p + p{margin-top:var(--sp-3)}
.prose ul{padding-left:20px;margin-top:var(--sp-2)}
.prose a{color:var(--accent)}
.copyright a{color:inherit;text-decoration:underline}

/* Mobile: the off-canvas nav is position:fixed inside a header that has
   backdrop-filter, which makes the header its containing block. Parked off to the
   right it widened the page by ~300px, so phones could scroll sideways into blank
   space. Clip horizontal overflow at the root (clip, not hidden, so the sticky
   header keeps working) and keep the closed drawer out of the tab order. */
html,body{overflow-x:hidden}
@supports(overflow:clip){ html,body{overflow-x:clip} }
@media(max-width:899px){ .site-nav:not(.open){visibility:hidden} .site-nav{transition:transform .3s ease,visibility .3s} }

/* Sunny Advertising now uses the same components as the rest of the site. */
.sunny-brands .logo-wall img{max-width:150px;max-height:70px}
.sunny-brands .logo-wall li{padding:18px 14px}

/* Portrait / square image beside copy: image in a narrow left column (30%), so
   its height stays close to the text block instead of towering over it. */
@media(min-width:900px){
  .feature.reverse.text-major:not(.reel-row){grid-template-columns:minmax(240px,30%) 1fr;gap:0 var(--space-block)}
  .feature.reverse.text-major:not(.reel-row) .feature-text p{max-width:68ch}
}

/* Desktop nav: the mobile drawer's max-width:320px was still applying, so with
   five items "AI Studio" wrapped onto two lines and "Contact" slid under the
   Sunny plaque. Let the row size to its content and never wrap. */
@media(min-width:900px){
  .site-nav{max-width:none;height:auto;flex-wrap:nowrap}
  .site-nav a{white-space:nowrap}
  .header-right{gap:var(--sp-5)}
}

/* ==========================================================================
   HEIGHT CAP (Aman): nothing should be taller than a 13-inch laptop screen
   unless it has to be. Target: no single piece over ~640px tall on desktop.
   Done by limiting track width per shape (so nothing is cropped) and centring
   the row, never by squeezing or cropping the media itself.
     9:16 reel   -> max 360px wide  (640 tall)
     4:5 portrait-> max 480px wide  (600 tall)
     16:9 single -> max 1100px wide (619 tall)
   Exempt: .media-grid.natural (full-page website captures are meant to be long).
   ========================================================================== */
@media(min-width:900px){
  .media-grid.reels,.media-grid.portrait{justify-content:center}
  .media-grid.reels{grid-template-columns:repeat(4,minmax(0,360px))}
  .media-grid.reels.two,.media-grid.reels.cols-2{grid-template-columns:repeat(2,minmax(0,360px))}
  .media-grid.reels.cols-3{grid-template-columns:repeat(3,minmax(0,360px))}
  .media-grid.reels.cols-5{grid-template-columns:repeat(5,minmax(0,360px))}
  .media-grid.reels.cols-6{grid-template-columns:repeat(6,minmax(0,360px))}
  .media-grid.reels.stack{grid-template-columns:minmax(0,360px)}
  .media-grid.portrait{grid-template-columns:repeat(3,minmax(0,480px))}
  .media-grid.portrait.two,.media-grid.portrait.cols-2{grid-template-columns:repeat(2,minmax(0,480px))}
  .media-grid.portrait.cols-4{grid-template-columns:repeat(4,minmax(0,480px))}
  .media-grid.portrait.cols-5{grid-template-columns:repeat(5,minmax(0,480px))}
  .media-grid.portrait.stack{grid-template-columns:minmax(0,480px)}
  .media-grid.landscape.stack > *{max-width:1100px;margin-inline:auto}
  .media-grid.landscape.two{grid-template-columns:repeat(2,minmax(0,1fr))}
  .media-single > .stage{max-width:1100px;margin-inline:auto}
  .laptop-frame .laptop-bezel{max-width:1040px;margin-inline:auto}
  .laptop-frame .laptop-base{max-width:894px;margin-inline:auto}
  .media-grid.fit.two{grid-template-columns:repeat(2,minmax(0,560px));justify-content:center}
  /* Feature rows: belt and braces on top of the narrow column. */
  .feature-media.portrait img,.feature-media.square img,
  .feature-media.portrait video,.feature-media.square video{max-height:640px;width:auto;max-width:100%;margin-inline:auto}
  .feature-media.landscape img,.feature-media.landscape video,.feature-media .stage{max-height:640px}
}

/* Two reels side by side: no backdrop panel, the reels themselves carry the row. */
.stage.stage-duo{aspect-ratio:auto;background:none;overflow:visible;border-radius:0}
.stage.stage-duo::before{display:none}
.stage.stage-duo video,.stage.stage-duo img{height:auto;width:calc(50% - 14px);max-width:360px;border-radius:var(--radius-md);box-shadow:none}
@media(min-width:900px){.stage.stage-duo video,.stage.stage-duo img{max-width:372px}}

/* Reel pair beside its copy. Desktop: copy one side, two reels the other, sized so
   the pair stays inside a 13in screen. Mobile: copy, then the reels side by side. */
.feature.duo-row .feature-media.pair{grid-template-columns:1fr 1fr;gap:var(--gap)}
.feature.duo-row .feature-media.pair video,.feature.duo-row .feature-media.pair img{aspect-ratio:9/16;width:100%;max-width:none;height:auto;object-fit:cover}
@media(min-width:900px){
  .feature.duo-row{grid-template-columns:minmax(0,1fr) minmax(0,700px);align-items:center}
  .feature.duo-row.reverse{grid-template-columns:minmax(0,700px) minmax(0,1fr)}
}

/* Justified media rows: pieces keep their own shape, share one height per row,
   and each row is capped (inline max-width) so it fits a 13in screen. */
.media-grid.justified{display:flex;flex-direction:column;align-items:center;gap:var(--gap)}
.media-grid.justified .jrow{display:flex;gap:var(--gap);width:100%;align-items:flex-start;justify-content:center}
.media-grid.justified .jrow img,.media-grid.justified .jrow video{min-width:0;width:auto;height:auto;object-fit:cover}
@media(max-width:699px){
  .media-grid.justified .jrow{flex-wrap:wrap;max-width:none!important}
  .media-grid.justified .jrow > *{flex:0 0 100%!important;width:100%}
  .media-grid.justified .jrow > .tall{flex:0 0 calc(50% - var(--gap)/2)!important;width:calc(50% - var(--gap)/2)}
  .media-grid.justified .jrow > .tall:only-child{flex:0 0 72%!important;width:72%}
}

/* A chapter and the deliverables / statement that close it share one panel. */
.cs-section > * + .deliverables,.cs-section > * + .statement{margin-top:var(--space-block)}

/* Feature rows on case studies. Landscape media takes the larger column on either
   side; a lone reel stands on its own at 360px with no backdrop panel. */
.feature.reel-solo .feature-media video,.feature.reel-solo .feature-media img{aspect-ratio:9/16;width:100%;max-width:360px;margin-inline:auto}
@media(min-width:900px){
  .cs-section > .feature:not(.reverse):not(.text-major):not(.duo-row):not(.reel-solo):not(.top){grid-template-columns:5fr 7fr}
  .feature.reel-solo{grid-template-columns:minmax(0,1fr) 360px}
  .feature.reel-solo.reverse{grid-template-columns:360px minmax(0,1fr)}
  .feature.reel-solo .feature-text p{max-width:64ch}
}

/* Contact form buttons: <button> does not inherit text colour by default. */
.contact-form .send .btn-outline{color:var(--text)}
.contact-form .send .btn-outline.btn-wa{color:#25d366}

/* Lone reel: reel in the left column (as lone portraits are), copy beside it,
   and the closing list tucked under the copy when it is the last chapter. */
.feature-text .deliverables.in-col{padding:0;margin:var(--space-block) 0 0;max-width:none;width:100%}
@media(min-width:900px){
  .feature.reel-solo,.feature.reel-solo.reverse{grid-template-columns:360px minmax(0,1fr);align-items:center}
  .feature.reel-solo .feature-text h2{font-size:clamp(32px,3.6vw,52px)}
  .feature.reel-solo .feature-text p{font-size:18px;max-width:62ch}
}
