/* 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);
  --hot: #FF4F8E;       /* accent on always-dark surfaces (hero, contact card, lightbox) */
  --hot-deep: #D81E63;  /* glow behind hero cards */
  --serif: var(--body); /* the creative site swaps in a serif for body text */
}
@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.47;
  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: 31px; text-transform: uppercase; }
.brand span { font-family: var(--mono); font-size: 12.5px; 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(24px, 4.2vw, 56px) clamp(24px, 5vw, 64px);
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px);
  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, var(--hot-deep) 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: 12px 18px;
}
.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: var(--hot); }
@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%, var(--hot-deep) 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: 20px; font-weight: 500; color: var(--blaze); 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: center; }
.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; color: var(--blaze); text-decoration: none; }
.item .go:hover { text-decoration: underline; }
.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: 18px; align-items: center; }
.callout b { font-family: var(--display); font-weight: 900; font-size: 30px; text-transform: uppercase; line-height: .95; color: var(--blaze); white-space: nowrap; }
.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: var(--hot); }
.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: var(--hot); 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: var(--blaze); }
.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; }

/* ---------- Audience: women/men split bar, countries, cities ---------- */
.split-bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; gap: 2px; }
.split-bar i { display: block; height: 100%; }
.split-bar i:first-child { background: var(--blaze); }
.split-bar i:last-child { background: var(--nova); }
.split-legend { display: flex; justify-content: space-between; font-size: 14px; }
.split-legend span { display: inline-flex; align-items: center; gap: 8px; }
.split-legend span::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--blaze); }
.split-legend span:last-child::before { background: var(--nova); }
.split-legend b { font-family: var(--mono); font-weight: 400; color: var(--muted); }
.place-list { display: grid; gap: 6px; }
.place-list h4 { margin: 0; font-size: 14px; font-weight: 400; }
.place-list ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.place-list ol b { font-weight: 400; color: var(--ink); }

/* ---------- Social content: three across, images keep their shape ---------- */
.gallery.social { columns: 3 220px; column-gap: 16px; }

/* ---------- Justified rows: every image in a row shares one height ---------- */
.jrows { display: grid; gap: 16px; }
.jrow { display: flex; gap: 16px; align-items: flex-start; }
.jrow figure { margin: 0; flex: var(--r) 1 0; min-width: 0; }
.jrow img { width: 100%; height: auto; display: block; border-radius: 12px; }
@media (max-width: 700px) { .jrow { flex-wrap: wrap; } .jrow figure { flex-basis: 100%; } }

/* ---------- Web page carousel: tall pages shown from the top, click to open the full page ---------- */
.web-row { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
.web-row figure { margin: 0; flex: 0 0 auto; scroll-snap-align: start; }
.web-row a { display: block; width: clamp(240px, 26vw, 320px); height: clamp(360px, 38vw, 480px); border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--tile); }
.web-row figure.wide a { width: clamp(400px, 52vw, 680px); }
.web-row img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transition: transform .3s; }
.web-row a:hover img { transform: scale(1.02); }
.scroll-hint { font-family: var(--mono); font-size: 12px; color: var(--muted); margin: 10px 0 0; }

/* ---------- Photo slideshow (UGC) ---------- */
.slideshow { position: relative; }
.slides { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slides::-webkit-scrollbar { display: none; }
.slides figure { margin: 0; flex: 0 0 auto; scroll-snap-align: start; height: clamp(320px, 42vw, 560px); }
.slides img { height: 100%; width: auto; display: block; border-radius: 14px; }
.slide-btns { display: flex; gap: 8px; margin-top: 14px; }
.slide-btns button { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font-size: 18px; cursor: pointer; }
.slide-btns button:hover { background: var(--ink); color: var(--paper); }

/* ---------- Lightbox (project images) ---------- */
.lightbox { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; background: rgba(12, 10, 18, .94); color: #F1EEF8; }
.lightbox[open] { display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; align-items: center; }
.lightbox::backdrop { background: transparent; }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 10px; padding-block: 24px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 90px); width: auto; height: auto; border-radius: 8px; cursor: default; }
.lightbox figcaption { font-family: var(--mono); font-size: 12px; color: #A49EB6; }
.lightbox button { background: none; border: 0; color: #F1EEF8; font-size: 28px; cursor: pointer; width: 64px; height: 64px; }
.lightbox button:hover { color: var(--hot); }
.lightbox .lb-close { position: absolute; top: 8px; right: 8px; font-size: 36px; }
@media (max-width: 600px) { .lightbox[open] { grid-template-columns: 40px minmax(0, 1fr) 40px; } .lightbox button { width: 40px; } }
.lightbox.tall { overflow-y: auto; }
.lightbox.tall[open] { align-items: start; }
.lightbox.tall img { max-height: none; }

/* Logo grid (Assorted): each logo sits in the same-sized box, so wide and tall logos balance */
.gallery.logo-grid { columns: auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 40px; align-items: center; }
.gallery.logo-grid figure { margin: 0; height: clamp(80px, 9vw, 130px); display: grid; place-items: center; }
.gallery.logo-grid img { max-width: 100%; max-height: clamp(70px, 8vw, 115px); width: auto; height: auto; background: transparent; border-radius: 0; }
@media (max-width: 600px) { .gallery.logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Text-only heroes: the headline's own margins set the spacing */
.hero.solo { row-gap: 0; }
.lightbox .lb-prev, .lightbox .lb-next { position: fixed; top: 50%; transform: translateY(-50%); z-index: 1; }
.lightbox .lb-prev { left: 8px; }
.lightbox .lb-next { right: 8px; }
.lightbox .lb-close { position: fixed; z-index: 1; }
.lightbox { background: rgba(12, 10, 18, .96); }

/* Receipt cards link to the post */
.case .watch { font-family: var(--mono); font-size: 12px; color: var(--blaze); }
.cases:has(.watch) .case { grid-row: span 4; }

/* Audience: a thin line between the age bars and the gender split, dots between countries and cities */
.gender-row { border-top: 1px solid var(--line); padding-top: 18px; }
.place-list ol { gap: 4px 0; }
.place-list li:not(:last-child)::after { content: "·"; margin-inline: 10px; color: var(--blaze); }
/* The arrows are pinned to the screen, so the image always takes the middle column */
.lightbox figure { grid-column: 2; }

/* About: 2x2 grid. Row 1 = title + photo | story, row 2 = facts | links (tops line up) */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(24px, 5vw, 72px); row-gap: 28px; }
.about-lead { display: flex; flex-direction: column; gap: 20px; }
.about-lead .portrait { flex: 1 1 0; aspect-ratio: auto; min-height: 340px; max-width: 460px; width: 100%; }
.about-lead .portrait img { object-position: center 30%; }
.about-grid .fun { margin-top: 0; align-self: start; }
.about-grid .also { margin-top: 0; align-self: start; }
@media (max-width: 900px) {
  .about-grid { grid-template-columns: minmax(0, 1fr); }
  .about-lead .portrait { flex: none; aspect-ratio: 4 / 5; min-height: 0; max-width: 420px; }
}

/* Home hero on desktop: headline left, photo right (photo stretches to the text's height).
   At 900px and below it stacks: text, then the wide photo underneath, as before. */
@media (min-width: 901px) {
  .hero.wide-photo { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: stretch; }
  .hero.wide-photo h1 { font-size: clamp(64px, 8.6vw, 140px); }
  .hero.wide-photo .portrait.photo { aspect-ratio: auto; min-height: 300px; height: 100%; }
  /* A little more air between the lines so the text block spans the photo, top to bottom */
  .hero.wide-photo > div:first-child { display: flex; flex-direction: column; justify-content: space-between; }
  .hero.wide-photo h1 { line-height: .93; margin-block: 20px 26px; }
  .hero.wide-photo .lede { line-height: 1.62; }
  .hero.wide-photo .portrait.photo img { object-position: 50% 40%; }
}

/* Who's watching: platform names link to Chris's profiles (white, pink on hover) */
.platform h3 a { color: inherit; text-decoration: none; transition: color .15s; }
.platform h3 a:hover, .platform h3 a:focus-visible { color: var(--blaze); }

/* Home: one even rhythm between the stats, the logo wall, the "Trans creator" line and the contact card */
main[data-page="home"] section { padding-top: clamp(48px, 6vw, 80px); }
main[data-page="home"] .sec-head { margin-bottom: 24px; }
main[data-page="home"] .more { margin-top: 18px; }
main[data-page="home"] + .contact { margin-top: clamp(48px, 6vw, 80px); }
/* Home: a little more room between the header card, the two boxes, and the stats strip */
main[data-page="home"] .doors { margin-top: 24px; gap: 24px; }
main[data-page="home"] .proof { margin-top: 40px; border-top: 1px solid var(--line); }

/* ================= CREATIVE SITE (chrisrhodescreative.com) =================
   Same layout as the creator site, with an orange accent and a serif for body text.
   (Selectors include :root so they beat the dark/light color blocks at the top.) */
html.creative:root { --hot: #FF7A2E; --hot-deep: #E2571C; --blaze: #FF7A2E; --serif: "Newsreader", Georgia, "Times New Roman", serif; }
html.creative.light:root { --blaze: #C2500A; }
html.creative :is(.lede, .about-body p, .case p, .item p, .door p, .teaser p) { font-family: var(--serif); }
html.creative .lede { font-size: 20px; line-height: 1.5; }
html.creative :is(.about-body p, .item p, .teaser p) { font-size: 18.5px; }
html.creative .case p { font-size: 16.5px; }
.nav-links .ext { color: var(--muted); }
.nav-links .ext:hover { color: var(--blaze); }

/* Creative home: the work as small previews (thumbnail + name + one line), three across */
.cases.mini { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cases.mini .case { display: grid; grid-template-columns: 96px minmax(0, 1fr); grid-template-rows: auto auto; grid-row: auto; column-gap: 14px; row-gap: 4px; padding: 12px; border-radius: 14px; align-items: center; }
.cases.mini .case .thumb { grid-row: 1 / span 2; aspect-ratio: 1; border-radius: 10px; }
.cases.mini .case .brand { font-size: 24px; align-self: end; }
.cases.mini .case p { font-size: 14px !important; line-height: 1.35; align-self: start; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cases.mini .case dl { display: none; }
@media (max-width: 1000px) { .cases.mini { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cases.mini { grid-template-columns: minmax(0, 1fr); } }
