/* Layout concept: a scrollable media kit + portfolio. Solid dark hero,
   two big doors, then proof fast. One hot accent. */
:root {
  /* Dark site (chosen Nov 11). These are the same values Squarespace uses in the guide. */
  --paper:  #0C0A12;
  --ink:    #F1EEF8;
  --muted:  #A49EB6;
  --line:   #2A2636;
  --blaze:  #FF4F8E;
  --nova:   #9C8BFF;
  --tile:   #1B1725;
  --night:  #1A1626;
  --star:   #F1EEF8;
  color-scheme: dark;

  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --body:    "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1240px;
  --logo-invert: invert(1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0C0A12; --ink: #F1EEF8; --muted: #A49EB6; --line: #2A2636;
    --blaze: #FF4F8E; --nova: #9C8BFF; --tile: #1B1725; --night: #1A1626; color-scheme: dark;
    --logo-invert: invert(1);
  }
}
:root[data-theme="dark"] {
  --paper: #0C0A12; --ink: #F1EEF8; --muted: #A49EB6; --line: #2A2636;
  --blaze: #FF4F8E; --nova: #9C8BFF; --tile: #1B1725; --night: #1A1626; color-scheme: dark;
  --logo-invert: invert(1);
}

/* Light pages (project case studies): set `theme: light` at the top of the page file */
html.light:root {
  --paper: #F4F3F8; --ink: #16131D; --muted: #5E5870; --line: #D9D5E4;
  --blaze: #D81E63; --nova: #4A2FD1; --tile: #E7E4F0; --night: #16131D;
  --logo-invert: invert(0); color-scheme: light;
}

* { box-sizing: border-box; }
body {
  background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.55;
  padding-inline: var(--gutter); padding-block: 0 48px;
}
.wrap { max-width: var(--maxw); margin-inline: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--blaze); outline-offset: 3px; }

.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; margin: 0; line-height: .9; }
h2 { font-size: clamp(44px, 7vw, 96px); font-weight: 900; text-transform: uppercase; }
h2 em { font-style: normal; color: var(--blaze); }
.lede { max-width: 60ch; color: var(--muted); font-size: 18px; margin: 0; }
.swap { font-family: var(--mono); font-size: 12px; color: var(--blaze); }

.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px;
  font-family: var(--body); font-weight: 600; font-size: 16px; text-decoration: none;
  border: 2px solid currentColor; border-radius: 999px; cursor: pointer;
  background: transparent; color: inherit; transition: transform .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--blaze); border-color: var(--blaze); color: #fff; }

/* ---------- NAV ---------- */
.topnav {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  flex-wrap: wrap; padding-block: 20px;
}
.brand { text-decoration: none; display: grid; line-height: 1.1; }
.brand b { font-family: var(--display); font-weight: 900; font-size: 26px; text-transform: uppercase; }
.brand span { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.nav-links { display: flex; gap: 20px; flex-wrap: wrap; font-size: 15px; align-items: center; }
.nav-links a { text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--blaze); }
.nav-links .pill { border: 1.5px solid var(--ink); padding: 6px 14px; border-radius: 999px; }
.nav-links .pill:hover { color: var(--paper); background: var(--ink); }

.page-tag { margin: 0 0 10px; }

/* ---------- HERO (solid dark card) ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--night); color: var(--star);
  border-radius: 28px; padding: clamp(28px, 6vw, 80px);
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px);
  align-items: end;
}
.hero.solo { grid-template-columns: minmax(0, 1fr); }
/* One soft glow in the corner for depth. Text never sits on top of busy texture. */
.hero::after { content: ""; position: absolute; z-index: -1; width: 60%; aspect-ratio: 1; right: -18%; bottom: -45%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, #D81E63 32%, transparent), transparent); pointer-events: none; }
.hero .eyebrow { color: color-mix(in srgb, var(--star) 70%, transparent); }
.hero h1 {
  font-size: clamp(60px, 12vw, 176px); font-weight: 900; text-transform: uppercase;
  letter-spacing: -.01em; line-height: .84; margin-block: 18px 24px;
}
.hero.solo h1 { font-size: clamp(52px, 9vw, 132px); }
.hero h1 span { display: block; animation: rise .7s cubic-bezier(.2,.8,.2,1) both; }
.hero h1 span:nth-child(2) { animation-delay: .08s; color: #FF4F8E; }
@keyframes rise { from { transform: translateY(18px); opacity: .2; } to { transform: none; opacity: 1; } }
.hero .lede { color: color-mix(in srgb, var(--star) 78%, transparent); }
.portrait {
  aspect-ratio: 4 / 5; max-width: 100%; border-radius: 18px; overflow: hidden;
  background: radial-gradient(90% 70% at 30% 25%, #D81E63 0%, transparent 60%),
              radial-gradient(80% 60% at 80% 90%, #4A2FD1 0%, transparent 65%), #221C30;
  display: flex; flex-direction: column; justify-content: space-between; padding: 16px;
}
.portrait .tag { align-self: flex-start; font-family: var(--mono); font-size: 11px; background: var(--star); color: #16131D; padding: 4px 10px; border-radius: 999px; }
.portrait p { margin: 0; font-family: var(--mono); font-size: 12px; color: var(--star); }
/* Home hero with a horizontal photo: text on top, photo full width underneath. */
.hero.wide-photo { grid-template-columns: minmax(0, 1fr); align-items: start; }
.portrait.photo { aspect-ratio: 3 / 2; padding: 0; background: #221C30; }
.portrait.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- TWO DOORS ---------- */
.doors { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; }
.door {
  position: relative; overflow: hidden; text-decoration: none;
  border: 2px solid var(--ink); border-radius: 24px; padding: clamp(22px, 3.5vw, 40px);
  display: grid; gap: 14px; align-content: start; transition: transform .2s, background .2s, color .2s;
}
.door:hover { transform: translateY(-3px); background: var(--ink); color: var(--paper); }
.door:hover .eyebrow, .door:hover p { color: color-mix(in srgb, var(--paper) 75%, transparent); }
.door h2 { font-size: clamp(44px, 6vw, 80px); }
.door p { margin: 0; color: var(--muted); max-width: 44ch; }
.door ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-family: var(--mono); font-size: 13px; }
.door ul li::before { content: "✦ "; color: var(--blaze); }
.door .go { font-family: var(--display); font-weight: 800; font-size: 26px; text-transform: uppercase; color: var(--blaze); }
.door.brands { border-color: var(--blaze); }

/* ---------- PROOF STRIP ---------- */
.proof { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); margin-top: 8px; }
.stat { padding: 26px 18px 22px 0; display: grid; gap: 6px; align-content: start; }
.stat + .stat { border-left: 1px solid var(--line); padding-left: 18px; }
.stat b { font-family: var(--display); font-weight: 900; font-size: clamp(44px, 6vw, 72px); line-height: .9; font-variant-numeric: tabular-nums; }
.stat b i { font-style: normal; color: var(--blaze); }
.stat span { font-size: 14px; color: var(--muted); }

/* ---------- SECTIONS ---------- */
section { padding-block: clamp(56px, 9vw, 112px) 0; }
.sec-head { display: grid; gap: 16px; margin-bottom: 36px; }

/* ---------- LOGO WALL ---------- */
.logos { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.logo { position: relative; aspect-ratio: 16 / 9; max-width: 100%; display: grid; place-items: center; padding: 0 12%; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.logo span { font-family: var(--mono); font-size: 12px; color: var(--muted); text-align: center; border: 1px dashed var(--line); border-radius: 8px; padding: 10px 12px; }
/* Every logo sits in the same box, so wide and square logos read at a similar size */
.logo img { position: absolute; top: 24%; left: 20%; width: 60%; height: 52%; object-fit: contain; filter: grayscale(1) var(--logo-invert); opacity: .75; transition: filter .2s, opacity .2s; }
.logo img.pale { filter: grayscale(1) brightness(.55) var(--logo-invert); } /* light logos like Bumble's yellow */
/* Logo files are dark, so on the dark page they're flipped light. On hover, the flip keeps each brand's colors. */
.logo:hover img { filter: invert(1) hue-rotate(180deg); opacity: 1; }
.logos.dense { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.more { margin: 16px 0 0; font-family: var(--mono); font-size: 13px; }
.more a { color: var(--blaze); text-decoration: none; }

/* ---------- SPLIT + LISTS ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); }
.platforms { border-top: 2px solid var(--ink); }
.platform { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: baseline; padding-block: 18px; border-bottom: 1px solid var(--line); }
.platform h3 { font-size: 32px; font-weight: 800; text-transform: uppercase; }
.platform .num { font-family: var(--mono); font-size: 15px; font-variant-numeric: tabular-nums; }
.platform small { grid-column: 1 / -1; color: var(--muted); font-size: 14px; margin-top: -8px; }
.demo { display: grid; gap: 18px; align-content: start; }
/* Audience: both columns hang from the same 2px line, and the bars spread to the list's height */
.audience-split { align-items: stretch; }
.audience-split .demo { border-top: 2px solid var(--ink); padding-top: 18px; align-content: space-between; }
.bar-row { display: grid; gap: 6px; }
.bar-row header { display: flex; justify-content: space-between; font-size: 14px; }
.bar-row header span:last-child { font-family: var(--mono); color: var(--muted); }
.bar { height: 10px; border-radius: 999px; background: var(--tile); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--blaze); border-radius: inherit; }
.bar-row:nth-child(even) .bar i { background: var(--nova); }

/* ---------- PILLARS ---------- */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.pillar { aspect-ratio: 3 / 4; max-width: 100%; border-radius: 16px; padding: 18px; background: var(--tile); position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; text-decoration: none; }
.pillar::before { content: ""; position: absolute; inset: 0; opacity: .55; background: radial-gradient(110% 70% at 25% 15%, var(--glow) 0%, transparent 62%); }
.pillar > * { position: relative; }
.pillar h3 { font-size: 34px; font-weight: 900; text-transform: uppercase; }
.pillar p { margin: 0; font-size: 14px; color: var(--muted); }
.pillar .arrow { position: absolute; top: 16px; right: 16px; font-family: var(--mono); font-size: 13px; transition: transform .2s; }
.pillar:hover .arrow { transform: translate(3px, -3px); color: var(--blaze); }

/* ---------- CASE CARDS (campaigns + creative projects) ---------- */
.cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.case { border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: grid; gap: 14px; align-content: start; text-decoration: none; transition: border-color .2s; }
a.case:hover { border-color: var(--blaze); }
.case .thumb img { position: relative; width: 100%; height: 100%; object-fit: cover; display: block; }
.case .thumb { aspect-ratio: 4 / 3; max-width: 100%; border-radius: 12px; background: var(--tile); position: relative; overflow: hidden; display: grid; place-items: center; }
.case .thumb::before { content: ""; position: absolute; inset: 0; opacity: .6; background: radial-gradient(100% 80% at 30% 20%, var(--glow, var(--nova)) 0%, transparent 65%); }
.case .thumb .thumb-word { font-family: var(--display); font-weight: 900; font-size: clamp(40px, 5vw, 64px); text-transform: uppercase; color: var(--ink); line-height: .9; text-align: center; }
.case .thumb span { position: relative; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.case .brand { font-family: var(--display); font-weight: 900; font-size: 40px; text-transform: uppercase; line-height: .9; }
.case p { margin: 0; color: var(--muted); font-size: 15px; }
.case dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; font-size: 14px; border-top: 1px solid var(--line); padding-top: 14px; }
.case dt { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.case dd { margin: 0; }
.case dd.result { font-family: var(--display); font-weight: 800; font-size: 26px; color: var(--blaze); line-height: 1; }

/* ---------- MENU ROWS (ways to partner, services) ---------- */
.menu { border-top: 2px solid var(--ink); }
.item { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr) auto; gap: 24px; padding-block: 22px; border-bottom: 1px solid var(--line); align-items: baseline; }
.item h3 { font-size: 34px; font-weight: 800; text-transform: uppercase; }
.item p { margin: 0; color: var(--muted); }
.item .go { font-family: var(--mono); font-size: 13px; white-space: nowrap; }
.callout { margin-top: 28px; padding: 20px 22px; border-radius: 16px; background: color-mix(in srgb, var(--blaze) 10%, var(--paper)); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; }
.callout b { font-family: var(--display); font-weight: 900; font-size: 30px; text-transform: uppercase; line-height: .95; color: var(--blaze); }
.callout p { margin: 0; }

/* ---------- PROCESS (real sequence, so numbered) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.step { border-top: 2px solid var(--ink); padding-top: 14px; display: grid; gap: 6px; align-content: start; }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--mono); font-size: 12px; color: var(--blaze); }
.step h3 { font-size: 28px; font-weight: 800; text-transform: uppercase; }
.step p { margin: 0; font-size: 15px; color: var(--muted); }

/* ---------- UGC: 9:16 reel grid + usage rights ---------- */
.reels { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
/* UGC reel: all six in one row. Below 900px the row scrolls sideways instead of wrapping. */
.reels.one-row { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.reels.one-row .hook { font-size: clamp(16px, 1.6vw, 22px); }
.reels.one-row .frame { padding: 10px; }
.reels.one-row .clip-meta { flex-direction: column; gap: 2px; }
@media (max-width: 900px) {
  .reels.one-row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(150px, 40%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .reels.one-row .clip { scroll-snap-align: start; }
  .reels.one-row .hook { font-size: 18px; }
}
.clip { display: grid; gap: 10px; }
.frame { position: relative; aspect-ratio: 9 / 16; max-width: 100%; border-radius: 14px; overflow: hidden; background: var(--tile); display: flex; flex-direction: column; justify-content: space-between; padding: 14px; }
.frame::before { content: ""; position: absolute; inset: 0; opacity: .5; background: radial-gradient(120% 70% at 30% 20%, var(--glow, var(--nova)) 0%, transparent 60%); }
.frame > * { position: relative; }
.frame .tags { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; }
.badge { background: var(--paper); color: var(--ink); padding: 3px 8px; border-radius: 999px; }
.badge.spec { background: var(--blaze); color: #fff; }
.hook { font-family: var(--display); font-weight: 800; font-size: 26px; line-height: .95; text-transform: uppercase; margin: 0; }
.play { width: 46px; height: 46px; border-radius: 50%; background: var(--ink); align-self: center; display: grid; place-items: center; transition: transform .2s; }
.play::after { content: ""; border-left: 14px solid var(--paper); border-block: 9px solid transparent; margin-left: 4px; }
.clip:hover .play { transform: scale(1.12); }
.clip-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.clip-meta span:last-child { font-family: var(--mono); color: var(--muted); font-size: 12px; }
.rights { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.right { padding: 20px; border: 1px solid var(--line); border-radius: 14px; display: grid; gap: 8px; align-content: start; }
.right .eyebrow { color: var(--nova); }
.right h3 { font-size: 30px; font-weight: 800; text-transform: uppercase; }
.right p { margin: 0; color: var(--muted); font-size: 15px; }
.price { font-family: var(--mono); font-size: 14px; white-space: nowrap; }

/* ---------- ABOUT ---------- */
.about-title { font-size: clamp(36px, 4.6vw, 64px); overflow-wrap: anywhere; }
.about-body { display: grid; gap: 18px; align-content: start; }
.about-body p { margin: 0; max-width: 60ch; }
.also { display: grid; border-top: 1px solid var(--line); margin-top: 8px; }
.also a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding-block: 16px; border-bottom: 1px solid var(--line); text-decoration: none; align-items: baseline; }
.also a strong { font-family: var(--display); font-weight: 800; font-size: 26px; text-transform: uppercase; }
.also a span { font-size: 14px; color: var(--muted); }
.also a em { font-style: normal; font-family: var(--mono); font-size: 13px; }
.also a:hover strong { color: var(--blaze); }
.fun { margin: 12px 0 0; display: grid; border-top: 2px solid var(--ink); max-width: 440px; }
.fun div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 16px; align-items: baseline; padding-block: 12px; border-bottom: 1px solid var(--line); }
.fun dt { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.fun dd { margin: 0; font-size: 17px; font-weight: 500; line-height: 1.35; }
.teaser { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; border-top: 2px solid var(--ink); padding-top: 24px; }
.teaser p { margin: 0; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.3; max-width: 34ch; }

/* ---------- CONTACT ---------- */
.contact { margin-top: clamp(56px, 9vw, 112px); background: var(--night); color: var(--star); border-radius: 28px; padding: clamp(24px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; scroll-margin-top: 16px; }
.contact h2 em { color: #FF4F8E; }
.contact .lede { color: color-mix(in srgb, var(--star) 72%, transparent); margin-top: 16px; }
.email-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 20px; }
.email-row code { font-family: var(--mono); font-size: 15px; user-select: all; }
.copy { font-family: var(--mono); font-size: 12px; padding: 6px 12px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--star) 35%, transparent); background: transparent; color: var(--star); cursor: pointer; }
form { display: grid; gap: 14px; }
label { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; display: grid; gap: 6px; }
input, select, textarea { font: inherit; font-family: var(--body); font-size: 16px; text-transform: none; letter-spacing: 0; padding: 12px 14px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--star) 25%, transparent); background: color-mix(in srgb, var(--star) 8%, transparent); color: var(--star); }
select option { color: #16131D; }
.form-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.contact .btn.primary { justify-self: start; }
.sent { font-family: var(--mono); font-size: 13px; color: #FF4F8E; min-height: 1.4em; margin: 0; }

footer { margin-top: 40px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--mono); font-size: 12px; color: var(--muted); }
footer .social { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { text-decoration: none; }
footer a:hover { color: var(--blaze); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .hero, .split, .contact, .doors, .teaser { grid-template-columns: minmax(0, 1fr); }
  .portrait { aspect-ratio: 16 / 10; }
  .cases { grid-template-columns: minmax(0, 1fr); }
  .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .item { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logos.dense { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .form-2, .callout, .steps { grid-template-columns: minmax(0, 1fr); }
  .pillars { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .pillar h3 { font-size: 24px; }
  .pillar p { display: none; }
  .fun div { grid-template-columns: 100px minmax(0, 1fr); }
  .reels { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .hook { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- PROJECT PAGES ---------- */
.crumb { color: inherit; text-decoration: none; border-bottom: 1px solid currentColor; }
.crumb:hover { color: #FF4F8E; }
.project-intro .split { align-items: start; }
.project-intro .fun { margin-top: 0; }
.project-section .eyebrow { margin-bottom: 18px; }
/* Masonry-style gallery: images keep their own shapes, two columns on desktop, one on phones */
.gallery { columns: 2 320px; column-gap: 16px; }
.gallery figure { margin: 0 0 16px; break-inside: avoid; }
/* Logos and icons: smaller grid so they aren't blown up */
.gallery.compact { columns: 4 160px; column-gap: 16px; }
/* A section with a single image (like a website screenshot) gets the full width */
.gallery:has(> figure:only-child) { columns: 1; }
.gallery img { display: block; width: 100%; height: auto; border-radius: 12px; background: var(--tile); }
.project-nav { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: clamp(48px, 7vw, 88px); padding-top: 22px; border-top: 2px solid var(--ink); font-family: var(--display); font-weight: 800; font-size: clamp(22px, 3vw, 32px); text-transform: uppercase; }
.project-nav a { text-decoration: none; }
.project-nav a:hover { color: var(--blaze); }
/* Logo rows: every logo the same height, so square icons match the wordmarks */
.gallery.logo-row { columns: auto; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.gallery.logo-row figure { margin: 0; }
.gallery.logo-row img { height: clamp(64px, 9vw, 100px); width: auto; max-width: 100%; }
/* Cards in a row share rows (subgrid), so image, name, text and the Scope divider line up across the row */
.cases .case { display: grid; grid-template-rows: subgrid; grid-row: span 3; align-content: start; }
.cases:has(.thumb) .case { grid-row: span 4; }
/* Wide card (Art + Illustration) spans the full row under the project grid */
.cases .case.wide { grid-column: 1 / -1; }
.case.wide .thumb { aspect-ratio: 3 / 1; }

/* Creative page: 8 projects, 4 across on laptops, 2 on tablets, 1 on phones (always even rows) */
.cases.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cases.four .case .brand { font-size: clamp(28px, 2.5vw, 36px); }
@media (max-width: 1100px) { .cases.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cases.four { grid-template-columns: minmax(0, 1fr); } }

/* Two mockups side by side (desktop + phones) */
.gallery.pair { columns: auto; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; align-items: center; }
.gallery.pair figure { margin: 0; }
@media (max-width: 700px) { .gallery.pair { grid-template-columns: minmax(0, 1fr); } }

/* Video grid: phone-style frames, click to play with sound */
.video-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); align-items: start; }
.video-grid figure { margin: 0; display: grid; gap: 8px; }
.video-grid video { width: 100%; height: auto; display: block; border: 7px solid #16131D; border-radius: 26px; background: #16131D; }
.video-grid figcaption { font-family: var(--mono); font-size: 12px; color: var(--muted); text-align: center; }
/* Logos with see-through backgrounds sit straight on the page */
.gallery.logo-row img { background: transparent; border-radius: 0; }
/* Lead image spans the full width across the top, the rest flow in columns below */
.gallery.lead > figure:first-child { column-span: all; }
/* Carousel-post videos inside a graphics grid: plain, no phone frame */
.gallery video { display: block; width: 100%; height: auto; border-radius: 12px; background: var(--tile); }
.gallery figure:has(video) { break-inside: avoid; }
/* Lead galleries (FLAVNT Bareskin): full-width image on top, then three across */
.gallery.lead { columns: 3 180px; }
/* A single row of phone videos; below 900px the row scrolls sideways */
.video-grid.one-row { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.video-grid.one-row video { border-width: 5px; border-radius: 20px; }
@media (max-width: 900px) {
  .video-grid.one-row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(150px, 40%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .video-grid.one-row figure { scroll-snap-align: start; }
}
/* Scrolling row of phone videos: six visible on laptops, swipe/scroll for the rest */
.video-grid.scroll-row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: calc((100% - 5 * 12px) / 6); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; }
.video-grid.scroll-row figure { scroll-snap-align: start; }
.video-grid.scroll-row video { border-width: 5px; border-radius: 20px; }
@media (max-width: 900px) { .video-grid.scroll-row { grid-auto-columns: minmax(150px, 40%); } }
/* "(optional)" hint next to a form label */
label .optional { text-transform: none; letter-spacing: 0; opacity: .7; }
