/* ============================================
   STUDIO DANAMI — Design Tokens & Base Styles
   Source: brand/danami-design-guide.md
   ============================================ */

/* ---- Fonts ---- */
@font-face {
  font-family: 'Clash Display';
  src: url('../fonts/ClashDisplay-Regular.woff2') format('woff2');
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: 'Clash Display';
  src: url('../fonts/ClashDisplay-Medium.woff2') format('woff2');
  font-weight: 500; font-display: swap;
}
@font-face {
  font-family: 'Clash Display';
  src: url('../fonts/ClashDisplay-Semibold.woff2') format('woff2');
  font-weight: 600; font-display: swap;
}
@font-face {
  font-family: 'Clash Display';
  src: url('../fonts/ClashDisplay-Bold.woff2') format('woff2');
  font-weight: 700; font-display: swap;
}
@font-face {
  font-family: 'Clash Display';
  src: url('../fonts/ClashDisplay-Light.woff2') format('woff2');
  font-weight: 300; font-display: swap;
}

/* Gambetta — serif accent (used on drawer menu hover) */
@font-face {
  font-family: 'Gambetta';
  src: url('../fonts/Gambetta-Regular.woff2') format('woff2');
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: 'Gambetta';
  src: url('../fonts/Gambetta-Medium.woff2') format('woff2');
  font-weight: 500; font-display: swap;
}
@font-face {
  font-family: 'Gambetta';
  src: url('../fonts/Gambetta-Semibold.woff2') format('woff2');
  font-weight: 600; font-display: swap;
}
@font-face {
  font-family: 'Gambetta';
  src: url('../fonts/Gambetta-Italic.woff2') format('woff2');
  font-weight: 300 700; font-style: italic; font-display: swap;
}

/* ---- Tokens ---- */
:root {
  --white:       #FCFAF5;
  --black:       #262626;
  --pink:        #EA70A9;
  --sky:         #84BDFF;
  --purple:      #7A7EEC;
  --orange:      #F48126;
  --yellow:      #FDCF07;
  --pale-yellow: #F7EF89;

  --font-display: 'Clash Display', system-ui, sans-serif;
  --font-body: 'Clash Grotesk', 'Clash Display', system-ui, sans-serif;
  --font-serif: 'Gambetta', Georgia, serif;

  --max-w:   1240px;
  --pad-x:   clamp(1.5rem, 5vw, 4.5rem);
  --section: clamp(5rem, 9vw, 8.5rem);
  --ease:    cubic-bezier(0.22, 1, 0.36, 1);

  --radius-card: 16px;
  --radius-pill: 999px;

  --grid-cell: 40px;   /* ← grid cell size. Smaller number = smaller cells. */
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }   /* full-bleed hero must not cause sideways scroll */
body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; font-weight: 700; }
h1 { font-size: clamp(2.6rem, 6.5vw, 5.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 4vw, 3.25rem); letter-spacing: -0.015em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 600; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad-x); }
section { padding: calc(var(--section) / 1.6) 0; }

/* ---- Interactive grid background ---- */
.grid-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  display: grid;
  background-image:
    linear-gradient(to right, rgba(244, 129, 38, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(244, 129, 38, 0.07) 1px, transparent 1px);
  background-size: var(--grid-cell) var(--grid-cell);
}
.grid-bg .cell { transition: background-color 1.5s var(--ease); }   /* longer fade = longer tail */
/* lit instantly on hover, then fades back via the base transition.
   --glow is set by JS based on scroll position (yellow → pink → purple → sky) */
.grid-bg .cell.lit { background-color: var(--glow, rgba(253, 207, 7, 0.2)); transition: background-color 0s; }
/* the cell under the cursor — an extra glow layer makes it darker than the fading trail */
.grid-bg .cell.head { box-shadow: inset 0 0 0 100px var(--glow, rgba(253, 207, 7, 0.2)); }
@media (prefers-reduced-motion: reduce) { .grid-bg { display: none; } }

/* ---- Eyebrow ---- */
.eyebrow {
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--pink); display: block; margin-bottom: 1rem;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block; text-decoration: none;
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  letter-spacing: 0.04em;
  padding: 0.85rem 2rem; border-radius: var(--radius-pill);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
  cursor: pointer; border: 1.5px solid transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--black); color: var(--white); }
.btn-primary:hover { background: var(--pink); }
.btn-accent { background: var(--pink); color: var(--white); }
.btn-accent:hover { background: var(--black); }
.btn-ghost { background: transparent; border-color: var(--black); color: var(--black); }
.btn-ghost:hover { background: var(--black); color: var(--white); }
/* serif pill — Gambetta italic, roomier (used on "More about me") */
.btn-serif {
  font-family: var(--font-serif); font-style: italic; font-weight: 500;
  font-size: 1.05rem; letter-spacing: 0; padding: 0.9rem 2.3rem;
}

/* ---- Nav ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(252, 250, 245, 0.88); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(38, 38, 38, 0.07);
}
.nav-inner {
  max-width: none; margin: 0; padding: 0.7rem clamp(1.25rem, 2.5vw, 2.75rem);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}

/* Logo video — transparent WebM (true alpha) plays the colour reveal on hover.
   MP4 (cream background) is the Safari fallback. */
.nav-logo { display: inline-block; height: 54px; line-height: 0; text-decoration: none; }
.nav-logo .logo-video { height: 54px; width: auto; display: block; opacity: 0.8; }   /* ← slightly lighter than the rest */

.nav-primary { margin-left: auto; }
.nav-links { display: flex; gap: 1.9rem; list-style: none; align-items: center; }
.nav-links a {
  display: inline-grid; place-items: center; text-decoration: none;
  color: var(--black); opacity: 0.8;
  transition: opacity 0.2s var(--ease);
}
/* both labels live in ONE grid cell → the box is always sized to the wider of
   the two fonts, so swapping on hover never reflows the neighbours */
.nav-links a > span {
  grid-area: 1 / 1; font-size: 0.95rem;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), color 0.2s var(--ease);
}
.nav-links a .lbl-sans  { font-weight: 500; }
.nav-links a .lbl-serif { font-family: var(--font-serif); font-style: italic; font-weight: 600; opacity: 0; }
/* hover → Gambetta italic, a touch bigger, per-page colour. scale() is visual only. */
.nav-links a:hover { opacity: 1; }
.nav-links a:hover .lbl-sans  { opacity: 0; }
.nav-links a:hover .lbl-serif { opacity: 1; transform: scale(1.14); }
.nav-links li:nth-child(1) a:hover .lbl-serif { color: var(--orange); }
.nav-links li:nth-child(2) a:hover .lbl-serif { color: var(--sky); }
.nav-links li:nth-child(3) a:hover .lbl-serif { color: var(--purple); }
.nav-links a[aria-current="page"] { opacity: 1; }

.nav-actions { display: flex; align-items: center; gap: 1rem; }
.nav-cta { padding: 0.6rem 1.4rem; font-size: 0.9rem; }

/* Hamburger — bars stagger + go pink on hover */
.nav-toggle {
  display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 5px;
  width: 48px; height: 48px; padding: 0 12px;
  background: var(--black); border: none; border-radius: var(--radius-pill);
  cursor: pointer; transition: background 0.25s var(--ease);
}
.nav-toggle span {
  display: block; height: 2px; width: 100%; background: var(--white);
  border-radius: 2px; transition: width 0.3s var(--ease), background 0.25s var(--ease);
}
.nav-toggle:hover { background: var(--pink); }
.nav-toggle:hover span:nth-child(1) { width: 55%; }
.nav-toggle:hover span:nth-child(2) { width: 100%; }
.nav-toggle:hover span:nth-child(3) { width: 72%; }

@media (max-width: 760px) {
  .nav-primary, .nav-cta { display: none; }   /* collapse links + CTA into the drawer on mobile */
  .nav-toggle { background: var(--black); }
}

/* ---- Side drawer ---- */
/* visibility is delayed on CLOSE so the slide-out can finish before hiding */
.drawer { position: fixed; inset: 0; z-index: 200; visibility: hidden; transition: visibility 0s 0.55s; }
.drawer.open { visibility: visible; transition: visibility 0s 0s; }
.drawer-overlay {
  position: absolute; inset: 0; background: rgba(38, 38, 38, 0.5);
  opacity: 0; transition: opacity 0.55s var(--ease);
}
.drawer.open .drawer-overlay { opacity: 1; }

.drawer-panel {
  position: absolute; top: 0; right: 0; height: 100%;
  width: min(880px, 92vw); display: flex;
  background: var(--black); color: var(--white);
  transform: translateX(100%); transition: transform 0.55s var(--ease);
  box-shadow: -30px 0 80px rgba(0,0,0,0.3);
}
.drawer.open .drawer-panel { transform: translateX(0); }

/* Visual preview column — placeholder gradients, swap for real images later */
.drawer-visual { position: relative; flex: 0 0 42%; overflow: hidden; }
.drawer-img {
  position: absolute; inset: 0; opacity: 0; transform: scale(1.05);
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
  display: flex; align-items: flex-end; padding: 2rem;
}
.drawer-img.is-active { opacity: 1; transform: scale(1); }
.drawer-img span {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.6rem; letter-spacing: -0.01em; color: rgba(255,255,255,0.92);
}
.drawer-img[data-img="home"]     { background: linear-gradient(150deg, var(--pink), var(--purple)); }
.drawer-img[data-img="work"]     { background: linear-gradient(150deg, var(--orange), var(--yellow)); }
.drawer-img[data-img="services"] { background: linear-gradient(150deg, var(--sky), var(--purple)); }
.drawer-img[data-img="about"]    { background: linear-gradient(150deg, var(--purple), var(--pink)); }
.drawer-img[data-img="contact"]  { background: linear-gradient(150deg, var(--black), var(--orange)); }

/* Menu column */
.drawer-menu {
  flex: 1; display: flex; flex-direction: column;
  padding: clamp(2rem, 4vw, 3.5rem); position: relative;
}
/* Close (X) — white circle, clearly visible, rotates on hover */
.drawer-close {
  position: absolute; top: 1.5rem; right: 1.5rem; z-index: 3;
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--white); color: var(--black);
  border: none; font-size: 1.5rem; line-height: 1; cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.35s var(--ease);
}
.drawer-close:hover { background: var(--pink); color: var(--white); transform: rotate(90deg); }

.drawer-menu ul { list-style: none; margin: auto 0; }
.drawer-menu li + li { margin-top: 0.4rem; }
/* menu links — staggered reveal on open */
.drawer-menu li { opacity: 0; transform: translateX(26px); transition: opacity 0.45s var(--ease), transform 0.45s var(--ease); }
.drawer.open .drawer-menu li { opacity: 1; transform: none; }
.drawer.open .drawer-menu li:nth-child(1) { transition-delay: 0.18s; }
.drawer.open .drawer-menu li:nth-child(2) { transition-delay: 0.24s; }
.drawer.open .drawer-menu li:nth-child(3) { transition-delay: 0.30s; }
.drawer.open .drawer-menu li:nth-child(4) { transition-delay: 0.36s; }
.drawer.open .drawer-menu li:nth-child(5) { transition-delay: 0.42s; }

.drawer-menu ul a {
  display: flex; align-items: baseline; gap: 1rem;
  text-decoration: none; color: rgba(255,255,255,0.55);
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.15;
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}
.drawer-menu ul a .idx { font-size: 0.8rem; font-weight: 500; opacity: 0.7; font-family: var(--font-body); }
.drawer-menu ul a .lbl { transition: letter-spacing 0.25s var(--ease); }
.drawer-menu ul a:hover { color: var(--white); transform: translateX(8px); }
/* hover swaps the label to the Gambetta serif + widens it */
.drawer-menu ul a:hover .lbl { font-family: var(--font-serif); font-weight: 500; letter-spacing: 0.02em; }

.drawer-foot { margin-top: 2rem; display: flex; flex-direction: column; gap: 1.25rem; align-items: flex-start; }
.drawer-foot .btn { font-size: 0.95rem; }
.drawer-social { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.soc {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  color: rgba(255,255,255,0.65);
  background: rgba(255,255,255,0.07);
  transition: color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}
.soc svg { width: 20px; height: 20px; fill: currentColor; display: block; }
/* custom DanaMi icons (recoloured from black SVGs via mask, so they take the circle's colour) */
.soc i { width: 21px; height: 21px; display: block; background: currentColor;
  -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
/* hover: the platform's brand colour fills the circle, icon turns cream, slight lift */
.soc:hover { color: var(--white); background: var(--soc); transform: translateY(-3px); }
.soc-ig       { --soc: #DD2A7B; }
.soc-ig:hover { background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF, #515BD4); }
.soc-yt   { --soc: #FF0000; }
.soc-tt   { --soc: #FE2C55; }
.soc-pin  { --soc: #E60023; }
.soc-th   { --soc: #000; }
.soc-th:hover { box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25); }   /* keeps the black circle visible on the black panel */

/* email shown in full below the icons so people can grab it at a glance */
.drawer-email {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: rgba(255,255,255,0.6); text-decoration: none;
  font-size: 0.9rem; letter-spacing: 0.01em;
  transition: color 0.2s var(--ease);
}
.drawer-email svg { width: 16px; height: 16px; fill: currentColor; }
.drawer-email:hover { color: var(--white); }

@media (max-width: 720px) {
  .drawer-visual { display: none; }       /* menu-only on small screens */
  .drawer-panel { width: 100%; }
}

/* ---- Hero ---- */
.hero { position: relative; }
.hero-screen {
  position: relative;
  min-height: 100svh;                              /* first screen = exactly one viewport */
  display: flex; flex-direction: column; justify-content: flex-start;
  padding: clamp(5rem, 7.5vh, 6rem) 0 clamp(4.5rem, 8vh, 6rem);   /* top clears the fixed nav (pulled up a touch) */
}
/* reach + trust block — big Gambetta statement (left) + stacked stats (right) */
.reach-inner {
  display: flex; justify-content: space-between; align-items: center;
  gap: 2.5rem 4rem; flex-wrap: wrap;
}
.reach-text { flex: 1 1 22rem; }
.reach-statement {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(1.9rem, 4.8vw, 3.6rem); line-height: 1.12; letter-spacing: -0.01em;
  color: var(--black); max-width: 16em; text-align: left;
}
.reach-proof {
  margin-top: 1.5rem; font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase; color: rgba(38, 38, 38, 0.7);
}
/* stats stacked vertically, right-aligned — track-record trust signals */
.reach-stats {
  display: flex; flex-direction: column; gap: clamp(0.85rem, 1.6vw, 1.4rem);
  align-items: flex-end; text-align: right; flex: 0 0 auto;
}
.reach-stats .num { line-height: 1; }
.reach-stats .label { margin-top: 0.35rem; }
@media (max-width: 760px) {
  .reach-stats { align-items: flex-start; text-align: left; }   /* drop below, align left on mobile */
}
/* context line + button sitting under the reach statement (left-aligned with it) */
.reach .about-teaser { margin-top: clamp(0.75rem, 2vw, 1.5rem); }
.reach .about-teaser p { max-width: 40em; font-size: clamp(1rem, 1.2vw, 1.1rem); line-height: 1.55; color: rgba(38, 38, 38, 0.8); }

/* ---- Testimonials (stacked card deck) ---- */
/* grid-stack: every card shares one cell, so the deck sizes to the TALLEST card (no overflow) */
.tm-deck { display: grid; max-width: 560px; margin: clamp(2.5rem, 5vw, 4rem) auto 0; }
.tm-card {
  grid-area: 1 / 1; margin: 0;
  background: var(--white); border: 1px solid rgba(38, 38, 38, 0.08);
  border-radius: var(--radius-card); padding: clamp(1.75rem, 3vw, 2.5rem);
  display: flex; flex-direction: column; gap: 1.2rem;
  box-shadow: 0 18px 45px rgba(38, 38, 38, 0.12);
  transition: transform 0.5s var(--ease), opacity 0.4s var(--ease);
}
.tm-card.pos-0 { transform: none; z-index: 3; }
.tm-card.pos-1 { transform: translate(18px, 16px) rotate(3deg); z-index: 2; }
.tm-card.pos-2 { transform: translate(36px, 32px) rotate(6deg); z-index: 1; }
.tm-card:not(.pos-0) { pointer-events: none; }
.tm-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.tm-logo { display: flex; align-items: center; }
.tm-logo img { height: 40px; width: auto; max-width: 100%; object-fit: contain; display: block; }
.tm-logo img.is-chip { height: 46px; width: 46px; border-radius: 9px; }   /* OutSight navy tile reads as a logo chip */
.tm-mark { font-family: var(--font-serif); font-weight: 700; font-size: 3rem; line-height: 0.3; color: var(--pink); }
.tm-card:nth-child(2) .tm-mark { color: var(--sky); }
.tm-card:nth-child(3) .tm-mark { color: var(--orange); }
.tm-quote {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.55; color: var(--black);
}
.tm-meta {
  display: flex; flex-direction: column; gap: 0.15rem; margin-top: auto;
  border-top: 1px solid rgba(38, 38, 38, 0.1); padding-top: 1.1rem;
}
.tm-name { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; }
.tm-role { font-size: 0.8rem; color: rgba(38, 38, 38, 0.6); }
/* nav arrows below the deck */
.tm-nav { display: flex; gap: 0.75rem; justify-content: center; margin-top: clamp(2.75rem, 4vw, 3.75rem); }
.tm-nav button {
  width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  border: 1.5px solid var(--black); background: transparent; color: var(--black);
  font-size: 1.15rem; display: grid; place-items: center;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.tm-nav button:hover { background: var(--black); color: var(--white); transform: translateY(-2px); }

/* ---- Design process — horizontal icon flow ---- */
.process-title { margin-bottom: clamp(3rem, 6vw, 5rem); max-width: 16em; }
.flow {
  --tile: clamp(58px, 6vw, 80px);
  list-style: none; position: relative;
  display: flex; gap: clamp(1rem, 2vw, 2rem);
}
/* connecting line through the tile centres = the "flow" */
.flow::before {
  content: ''; position: absolute; top: calc(var(--tile) / 2); height: 2px;
  left: 12.5%; right: 12.5%; background: rgba(38, 38, 38, 0.16); z-index: 0;
}
.flow-step {
  flex: 1 1 0; min-width: 0; position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.flow-tile {
  width: var(--tile); height: var(--tile); border-radius: 20px;
  display: grid; place-items: center; margin-bottom: 1.35rem;
  transition: transform 0.3s var(--ease);
}
.flow-tile img { width: 68%; height: 68%; object-fit: contain; }
.t-discover { background: var(--pink); }
.t-story    { background: var(--purple); }
.t-build    { background: var(--sky); }
.t-launch   { background: var(--yellow); }
.flow-step:hover .flow-tile { transform: translateY(-6px); }   /* tiles lift on hover */
.flow-label {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1rem, 1.4vw, 1.25rem); letter-spacing: -0.01em; margin-bottom: 0.5rem;
}
.flow-desc {
  font-size: clamp(0.85rem, 1vw, 0.95rem); line-height: 1.5;
  color: rgba(38, 38, 38, 0.7); max-width: 18em;
}
@media (max-width: 760px) {
  .flow { flex-direction: column; gap: 1.75rem; }
  .flow::before { display: none; }            /* drop the line when the flow stacks */
  .flow-step { flex-direction: row; align-items: flex-start; text-align: left; gap: 1.25rem; }
  .flow-tile { margin-bottom: 0; flex: 0 0 auto; }
  .flow-desc { max-width: none; }
}

/* ---- Services — three equal square cards in one row ---- */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.85rem, 1.5vw, 1.25rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.svc-card {
  position: relative; overflow: hidden; border-radius: var(--radius-card);
  aspect-ratio: 1 / 1; min-height: 0;
  padding: clamp(1.4rem, 2vw, 2rem);
  display: flex; flex-direction: column; justify-content: flex-end;
  text-decoration: none; background: var(--black);
  transition: transform 0.4s var(--ease);
}
/* default: full brand colour, white text. --fill = a DARKER shade that rises on hover */
.svc-brand  { background: var(--pink);   --fill: #C53C7E; }
.svc-web    { background: var(--sky);    --fill: #4E8FE8; }
.svc-motion { background: var(--orange); --fill: #D2640F; }
/* hover: a darker shade of the colour fills from the bottom up */
.svc-card::before {
  content: ''; position: absolute; inset: 0; z-index: 0; background: var(--fill);
  transform: scaleY(0); transform-origin: bottom; transition: transform 0.5s var(--ease);
}
.svc-card:hover::before { transform: scaleY(1); }
.svc-card:hover { transform: translateY(-4px); }

.svc-label, .svc-foot { position: relative; z-index: 1; }
.svc-label {
  font-family: var(--font-display); font-weight: 600; line-height: 0.95;
  font-size: clamp(1.8rem, 3.4vw, 2.8rem); letter-spacing: -0.02em; margin-bottom: auto;
  color: var(--white);
}
.svc-foot { max-width: 32em; }
.svc-desc { font-size: clamp(0.85rem, 0.95vw, 0.95rem); line-height: 1.5; color: rgba(252, 250, 245, 0.85); }
.svc-link {
  display: inline-block; margin-top: 1rem; color: var(--white);
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  transition: transform 0.25s var(--ease);
}
.svc-card:hover .svc-link { transform: translateX(5px); }
/* wide Motion card: label left, copy right */
.svc-wide {
  grid-column: 1 / -1; min-height: clamp(14rem, 20vw, 18rem);
  flex-direction: column; align-items: flex-start; justify-content: center; gap: 0.6rem;
}
.svc-wide .svc-label { margin-bottom: 0.4rem; }   /* group label + copy on the left */
.svc-wide .svc-foot { max-width: 34em; }
@media (max-width: 760px) {
  .services-grid { grid-template-columns: 1fr; }
  .svc-card { aspect-ratio: auto; min-height: 14rem; }
  .svc-wide { flex-direction: column; align-items: flex-start; justify-content: flex-end; min-height: 15rem; }
}

/* Hero load-in — staggered rise as the page opens */
@keyframes heroRise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }
.hero-screen .eyebrow,
.hero-screen .hero-decor .hd-line,
.hero-screen .hero-h1,
.hero-screen .sub { animation: heroRise 0.85s var(--ease) both; }
.hero-screen .eyebrow                        { animation-delay: 0.15s; }
.hero-screen .hero-decor .hd-line:nth-child(1) { animation-delay: 0.30s; }
.hero-screen .hero-decor .hd-line:nth-child(2) { animation-delay: 0.42s; }
.hero-screen .hero-decor .hd-line:nth-child(3) { animation-delay: 0.54s; }
.hero-screen .hero-h1                        { animation-delay: 0.68s; }
.hero-screen .sub                            { animation-delay: 0.82s; }
@media (prefers-reduced-motion: reduce) {
  .hero-screen .eyebrow, .hero-screen .hero-decor .hd-line,
  .hero-screen .hero-h1, .hero-screen .sub { animation: none; }
}

/* Hero content — left-aligned, full width (lines up with the logo) */
.hero .container { max-width: none; width: 100%; padding: 0 clamp(1.25rem, 2.5vw, 2.75rem); text-align: left; }
.hero .eyebrow { color: var(--purple); line-height: 1.6; }   /* ← ties to the "Good Design" highlight */
.hero .eyebrow .eb-br { display: none; }     /* desktop: one line with the "·" separator */
.hero .eyebrow .eb-sep { display: inline; }
.hero-ctas { justify-content: flex-start; }

/* Decorative statement (not the heading — purely visual) */
.hero-decor {
  font-family: var(--font-display); text-transform: uppercase;
  line-height: 0.95; letter-spacing: -0.02em;
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.04em;
  margin: clamp(1.5rem, 5vh, 4rem) 0 1.75rem;       /* ← space below the eyebrow */
}
.hero-decor .hd-line { font-size: clamp(1.6rem, 9.6vw, 9rem); white-space: nowrap; }   /* ← big statement size */
.hd-light { font-weight: 400; }   /* "Makes Life More" — regular (try 300–500) */
.hd-med   { font-weight: 500; }   /* "Good Design" */
.hd-bold  { font-weight: 700; }   /* "Enjoyable" */
/* Purple highlight sits snug behind "Good Design".
   Tweak top/bottom below to change its HEIGHT (left/right control width padding). */
.hero-decor .hl { position: relative; z-index: 0; color: var(--black); padding: 0 0.1em; }
.hero-decor .hl::before {
  content: ''; position: absolute; z-index: -1; left: 0; right: 0;
  top: 0.02em; bottom: 0.10em;          /* ← highlight HEIGHT (smaller = more breathing room) */
  background: var(--purple);
  transition: opacity 0.3s var(--ease);
}
/* "Good Design" hover: words part, project image pops up & follows the cursor */
.gd { position: relative; display: inline-block; }
.gd-word { display: inline-block; transition: transform 0.45s var(--ease); }
.gd:hover .gd-good   { transform: translateX(-0.4em); }   /* ← word separation distance */
.gd:hover .gd-design { transform: translateX(0.4em); }
.gd:hover::before { opacity: 0; }                          /* purple fades while image is up */
/* cursor anchor — JS sets its left/top to the pointer; images centre on it */
.gd-img { position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none; will-change: left, top; }
.gd-pic {
  position: absolute; left: 0; top: 0;
  max-width: 240px; max-height: 215px; width: auto; height: auto;   /* ← pop-up image max size */
  border-radius: 12px; box-shadow: 0 24px 60px rgba(38, 38, 38, 0.32);
  opacity: 0; transform: translate(-50%, -50%) scale(0.5) rotate(-4deg);
  transition: opacity 0.2s var(--ease), transform 0.35s var(--ease);
}
/* only the image for the hovered zone is shown */
.gd.show-img .gd-pic.active { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-3deg); }
/* The real H1, now styled as the subtitle */
.hero-h1 {
  font-family: var(--font-body); font-weight: 500;
  font-size: clamp(1rem, 1.55vw, 1.3rem); line-height: 1.4; letter-spacing: 0;   /* ← smaller → clearer hierarchy under the big statement */
  color: var(--black); opacity: 0.85; max-width: 30em;
  margin: clamp(1rem, 2.5vh, 1.75rem) 0 0;
}
.hero-h1-br { display: none; }   /* break after "websites," shows on mobile only */
.hero .sub {                                       /* block pushed right, text left-aligned, grey */
  font-size: clamp(0.88rem, 1vw, 1rem); max-width: 24em;
  margin: clamp(1.25rem, 3vh, 2rem) 0 1.75rem auto; text-align: left;   /* ← moderate air above the bio (desktop) */
  color: rgba(38, 38, 38, 0.72);                   /* greyish (colour, not opacity, so the hover photo stays full) */
  text-wrap: pretty;                               /* avoids a lone word on the last line */
}
/* mobile: centre everything and balance the vertical space */
@media (max-width: 760px) {
  .hero-screen { justify-content: center; padding: clamp(5rem, 12vh, 6.5rem) 0 clamp(3rem, 8vh, 5rem); }
  .hero .container { text-align: center; min-width: 0; }
  .hero-decor { align-items: center; margin: 0.75rem 0 1.25rem; }
  .hero-decor .hd-line { white-space: normal; font-size: clamp(1.7rem, 7.2vw, 3.2rem); }   /* big statement, sized to fit narrow screens */
  .hero-h1-br { display: inline; }   /* force the break after "websites," on mobile */
  .hero-h1 { font-size: clamp(1rem, 4.6vw, 1.2rem); margin: 1.1rem auto 0; max-width: 19rem !important; white-space: normal; }   /* fixed cap breaks the flex shrink-wrap loop so it wraps within the screen */
  .hero .sub { text-align: center; margin: clamp(2.5rem, 7vh, 4rem) auto 0; max-width: 20rem !important; }
  .hero .eyebrow .eb-br { display: inline; }    /* mobile: break to two lines */
  .hero .eyebrow .eb-sep { display: none; }     /* mobile: drop the "·" */
}
/* very narrow phones (≤374px): ease the big statement so it still fits */
@media (max-width: 374px) {
  .hero-decor .hd-line { font-size: clamp(1.4rem, 6.4vw, 2.2rem); }
  .hero-h1 { max-width: 17rem !important; }
  .hero .sub { max-width: 17rem !important; }
}
.hero .sub strong { font-weight: 600; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-meta { margin-top: 3rem; font-size: 0.85rem; opacity: 0.6; }

/* Scroll cue — bobbing arrow + "Scroll", fades out once the page is scrolled */
.scroll-cue {
  position: fixed; left: 50%; bottom: clamp(1.25rem, 3.5vh, 2.25rem); z-index: 50;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  font-family: var(--font-display); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--black); opacity: 0.7;
  pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.scroll-cue-arrow { position: relative; width: 13px; height: 13px; animation: scrollBob 1.5s ease-in-out infinite; }
.scroll-cue-arrow::before {
  content: ''; position: absolute; inset: 0;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}
@keyframes scrollBob {
  0%, 100% { transform: translateY(-2px); opacity: 0.5; }
  50%      { transform: translateY(3px);  opacity: 1; }
}
.scrolled .scroll-cue { opacity: 0; transform: translateX(-50%) translateY(12px); }
@media (prefers-reduced-motion: reduce) { .scroll-cue-arrow { animation: none; } }

/* ---- Ticker ---- */
.ticker {
  overflow: hidden; white-space: nowrap; color: var(--black);
  border-top: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  padding: 0.9rem 0; font-family: var(--font-display); font-weight: 500;
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease);   /* text + lines change together */
}
.ticker-track { display: inline-block; animation: ticker 56s linear infinite; will-change: transform; }
.ticker-track span { margin: 0 1.2rem; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---- Cards / Grids ---- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
@media (max-width: 900px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border-radius: var(--radius-card);
  padding: 2.25rem; border: 1px solid rgba(38,38,38,0.07);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(38,38,38,0.09); }

/* ---- Work cards ---- */
/* Selected Work — full-width, tight grid (Better-style) */
.work .container { max-width: none; padding: 0 clamp(1.25rem, 2.5vw, 2.75rem); }   /* less side margin, near full width */
.work-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem 3rem;
  flex-wrap: wrap; margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.work-head .eyebrow { color: var(--purple); }
/* lighter + smaller than the default h2, per the Selected Work header */
.work-head h2.work-statement { font-weight: 500; font-size: clamp(1.5rem, 3vw, 2.4rem); }
.work-viewall {
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.02em;
  text-decoration: none; color: var(--black); white-space: nowrap;
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}
.work-viewall:hover { color: var(--pink); transform: translateX(4px); }
.work-grid { gap: clamp(0.5rem, 0.8vw, 0.85rem); }   /* ← tiles close together */

.work-card { text-decoration: none; display: block; }
.work-card .thumb { position: relative; aspect-ratio: 4/3; background: var(--pale-yellow); border-radius: 4px 4px 0 0; overflow: hidden; }   /* top rounded, bottom square so tabs aren't clipped */
.work-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.work-card:hover .thumb img { transform: scale(1.04); }
/* caption: name first, then an elegant Gambetta caps tag */
/* hover: folder-tabs slide up from inside the bottom of the image */
.work-tags {
  position: absolute; left: 0.7rem; bottom: 0; z-index: 2;
  display: flex; gap: 0.3rem; align-items: flex-end;
  transform: translateY(100%); transition: transform 0.4s var(--ease);
}
.work-card:hover .work-tags,
.work-card.tags-on .work-tags { transform: translateY(0); }   /* hover (desktop) or centred (mobile) */
.wtag {
  position: relative;
  font-family: var(--font-serif); font-style: italic; font-weight: 700;
  font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--black); background: var(--tab-color); padding: 0.35rem 0.75rem;
  border-radius: 6px 6px 0 0; white-space: nowrap;
  -webkit-text-stroke: 0.4px currentColor;          /* a touch bolder than Gambetta's max weight */
  transition: transform 0.22s var(--ease);
}
/* hidden tail below the tab — when it lifts, this fills the gap with the tab colour (no image showing) */
.wtag::after { content: ''; position: absolute; left: 0; right: 0; top: calc(100% - 1px); height: 16px; background: var(--tab-color); }
.wtag:hover { transform: translateY(-6px); }        /* lift the hovered tag */
.cat-brand    { --tab-color: var(--purple); color: var(--white); }   /* Brand Identity + Rebrand (same family) */
.cat-web      { --tab-color: var(--sky); }
.cat-strategy { --tab-color: var(--pink); }
/* project name below the image */
.work-card .meta { padding: 0.85rem 0.15rem 0; }
.work-card .meta h3 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1rem, 1.2vw, 1.15rem); letter-spacing: -0.01em;
}

/* ---- Stats ---- */
.stats { display: flex; gap: clamp(2rem, 6vw, 5rem); flex-wrap: wrap; }
.stat .num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.5rem, 5vw, 4rem); }
.stat .label { font-size: 0.9rem; opacity: 0.7; max-width: 12em; }

/* ---- Newsletter block ---- */
/* full-bleed pink bar */
.news-bar {
  position: relative; overflow: hidden;
  background: var(--pink); color: var(--white);
  padding: clamp(1.5rem, 2.8vw, 2.25rem) clamp(1.25rem, 5vw, 4rem);
  margin: clamp(3rem, 6vw, 5rem) 0;
}
/* darker-pink full-height ribbon end on the left, pointing into the bar */
.news-bar::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: clamp(44px, 5vw, 74px); pointer-events: none;
  background: #C53C7E;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.news-bar-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.25rem 2.5rem; flex-wrap: wrap;
}
.news-bar-text { max-width: 34em; }
.news-bar-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.2rem, 1.9vw, 1.6rem); line-height: 1.12; }
.news-bar-sub { margin-top: 0.5rem; font-family: var(--font-body); font-size: clamp(0.85rem, 1.05vw, 0.98rem); line-height: 1.45; opacity: 0.92; }
.news-form { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.news-form input {
  padding: 0.8rem 1.3rem; border-radius: 0; border: none;   /* square fields; only the button stays rounded */
  background: var(--white); color: var(--black); min-width: 180px;
  font-family: var(--font-body); font-size: 0.95rem;
}
.news-form input:focus { outline: 2px solid var(--black); outline-offset: 1px; }
.news-bar .news-form .btn { background: var(--black); color: var(--white); }
.news-bar .news-form .btn:hover { background: var(--white); color: var(--black); }
/* inline thank-you (replaces the form once subscribed) */
.news-thanks { display: none; font-family: var(--font-display); font-weight: 500; font-size: clamp(0.95rem, 1.4vw, 1.15rem); }
.news-bar.subscribed .news-form { display: none; }
.news-bar.subscribed .news-thanks { display: block; }

/* ---- Secret drawing-mode sticker ---- */
.draw-sticker {
  position: fixed; left: 1.25rem; bottom: 1.25rem; z-index: 150;
  font-family: var(--font-body); font-size: 0.8rem; font-weight: 500;
  background: var(--black); color: var(--white);
  border: none; border-radius: var(--radius-pill); padding: 0.55rem 1rem;
  cursor: pointer; box-shadow: 0 8px 20px rgba(38, 38, 38, 0.18);
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}
.draw-sticker:hover { transform: translateY(-2px); }
.draw-sticker.on { background: var(--pink); }
.draw-sticker b { font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .draw-sticker { display: none; } }

/* ---- Closing CTA ---- */
.cta-head { font-size: clamp(2.4rem, 6vw, 4.5rem); line-height: 1.04; letter-spacing: -0.02em; }
.cta-btn { font-size: 1.05rem; padding: 1rem 2.4rem; }
.cta-status {
  margin-top: 1.5rem; font-size: 0.85rem; color: rgba(38, 38, 38, 0.7);
  text-align: center;
}
.cta-status .dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--pink);
  display: inline-block; vertical-align: middle; margin-right: 0.5rem;
  box-shadow: 0 0 0 0 rgba(234, 112, 169, 0.5); animation: ctaPulse 2.2s infinite;
}
@keyframes ctaPulse {
  0%   { box-shadow: 0 0 0 0 rgba(234, 112, 169, 0.5); }
  70%  { box-shadow: 0 0 0 9px rgba(234, 112, 169, 0); }
  100% { box-shadow: 0 0 0 0 rgba(234, 112, 169, 0); }
}
@media (prefers-reduced-motion: reduce) { .cta-status .dot { animation: none; } }

/* ---- Footer ---- */
.footer {
  background: var(--black); color: var(--white); overflow: hidden;
  padding: calc(var(--section) / 1.8) 0 0; margin-top: var(--section);
}
.footer .container { max-width: none; padding: 0 clamp(1.5rem, 3vw, 2.75rem); }   /* wider, less side margin */
/* giant brand wordmark, centered and cropped at the bottom edge for contrast */
.footer-bigmark {
  text-align: center; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(5rem, 27vw, 26rem); line-height: 0.8; letter-spacing: -0.03em;
  color: var(--white); white-space: nowrap; user-select: none;
  margin-top: clamp(1.5rem, 3vw, 3rem); margin-bottom: -0.36em;
}
.footer-bigmark em { font-family: var(--font-serif); font-style: italic; }
.footer a { color: var(--white); text-decoration: none; opacity: 0.75; transition: opacity 0.2s; }
.footer a:hover { opacity: 1; }
.footer-top {
  display: flex; justify-content: space-between; gap: 3rem 4rem;
  flex-wrap: wrap; margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.footer-brand { flex: 1 1 20rem; max-width: 30rem; }
.footer-logo { font-family: var(--font-display); font-weight: 600; font-size: 1.8rem; letter-spacing: -0.01em; opacity: 1; }
.footer-logo em { font-family: var(--font-serif); font-style: italic; }
.footer-tagline { opacity: 0.7; max-width: 28em; margin-top: 0.85rem; line-height: 1.5; }
.footer-social { display: flex; gap: 0.6rem; margin-top: 1.5rem; }
.soc-li { --soc: #0A66C2; }
.footer-cols { display: flex; gap: clamp(2.5rem, 6vw, 5rem); flex-wrap: wrap; }
.footer-cols strong { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; }
.footer-cols ul { list-style: none; display: grid; gap: 0.55rem; margin-top: 1rem; }
.footer-cols li { opacity: 0.75; font-size: 0.95rem; }
.footer-cols li a { opacity: 1; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  border-top: 1px solid rgba(252, 250, 245, 0.15); padding-top: 1.5rem;
  font-size: 0.8rem; opacity: 0.7;
}
@media (max-width: 760px) { .footer-top { flex-direction: column; gap: 2.5rem; } }

/* ---- Scroll reveal ---- */
.r    { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.r.on { opacity: 1; transform: none; }
.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; }
.d4 { transition-delay: 0.32s; }

/* line-by-line reveal for big section headers (Selected Work, About, Closing CTA) */
.reveal-lines.r { opacity: 1; transform: none; }     /* container stays put; the lines do the motion */
.reveal-lines .rl { display: block; overflow: hidden; padding-bottom: 0.06em; }
.reveal-lines .rl > span {
  display: block; transform: translateY(110%);
  transition: transform 0.75s var(--ease);
}
.reveal-lines.on .rl > span { transform: translateY(0); }   /* slide up into view when scrolled to */
.reveal-lines .rl:nth-child(2) > span { transition-delay: 0.10s; }   /* stagger line 2 */
.reveal-lines .rl:nth-child(3) > span { transition-delay: 0.20s; }

/* per-character reveal — used only on the reach statement: each letter rises + fades in, staggered */
.reveal-chars.r { opacity: 1; transform: none; }
.reveal-chars .rl { display: block; }
.reveal-chars .ch {
  display: inline-block; opacity: 0; transform: translateY(0.5em);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  transition-delay: var(--d, 0s);                  /* JS sets --d per character */
  will-change: opacity, transform;
}
.reveal-chars.on .ch { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .r { opacity: 1; transform: none; transition: none; }
  .reveal-lines .rl > span { transform: none; transition: none; }
  .reveal-chars .ch { opacity: 1; transform: none; transition: none; }
  .ticker-track { animation: none; }
}

/* ---- 404 page + Snake ---- */
.nav-wordmark { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; letter-spacing: -0.01em; color: var(--black); text-decoration: none; }
.nav-wordmark em { font-family: var(--font-serif); font-style: italic; }
.error-main { min-height: 100svh; display: flex; align-items: center; padding: clamp(7rem, 14vh, 10rem) 0 clamp(3rem, 8vh, 6rem); }
.error-grid { display: flex; align-items: center; justify-content: space-between; gap: clamp(2rem, 5vw, 5rem); flex-wrap: wrap; }
.error-copy { flex: 1 1 22rem; }
.error-head { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.04; letter-spacing: -0.02em; margin: 0.75rem 0 1.25rem; }
.error-sub { max-width: 30em; opacity: 0.8; line-height: 1.55; margin-bottom: 2rem; }
.snake-wrap { flex: 0 0 auto; }
.snake-hud { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 0.6rem; font-size: 0.85rem; }
.snake-hud strong { font-family: var(--font-display); font-size: 1rem; }
.snake-hint { opacity: 0.7; }
#snake { width: min(408px, 84vw); height: auto; aspect-ratio: 1; background: var(--white); border: 1px solid rgba(38, 38, 38, 0.12); border-radius: 12px; display: block; touch-action: none; }
.snake-controls { display: none; }
@media (hover: none) {
  .snake-controls { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; margin-top: 0.85rem; }
  .snake-controls div { display: flex; gap: 0.4rem; }
  .snake-controls button { width: 50px; height: 50px; border-radius: 10px; border: 1.5px solid var(--black); background: var(--white); color: var(--black); font-size: 1.2rem; cursor: pointer; }
}
@media (max-width: 820px) { .error-grid { flex-direction: column; text-align: center; } .error-copy { min-width: 0; } .error-head { font-size: clamp(1.7rem, 7.5vw, 2.6rem); max-width: 18rem; margin-left: auto; margin-right: auto; } .error-sub { font-size: 0.95rem; max-width: 18rem; margin-left: auto; margin-right: auto; } #snake { width: 17rem; } .snake-wrap { width: 17rem; max-width: 100%; } }

/* ---- Work index page ---- */
.work-index-head { padding-top: clamp(4rem, 8vh, 6rem); }
.work-h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1.05; letter-spacing: -0.02em; margin-top: 0.75rem; max-width: 16em; }
.work-intro { max-width: 42em; margin-top: 1.1rem; opacity: 0.8; line-height: 1.55; font-size: clamp(1rem, 1.2vw, 1.1rem); }
.work-filter { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: clamp(2rem, 4vw, 3rem) 0 clamp(1.5rem, 3vw, 2.5rem); }
.wf-btn {
  font-family: var(--font-display); font-weight: 500; font-size: 0.9rem;
  padding: 0.5rem 1.15rem; border-radius: var(--radius-pill);
  border: 1.5px solid rgba(38, 38, 38, 0.2); background: transparent; color: var(--black);
  cursor: pointer; transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.wf-btn:hover { border-color: var(--black); }
.wf-btn.is-active { background: var(--black); color: var(--white); border-color: var(--black); }
.wf-btn:active { transform: scale(0.96); }
.work-card .meta p { font-size: 0.85rem; color: rgba(38, 38, 38, 0.6); margin-top: 0.2rem; line-height: 1.4; }
/* cards fade + rise in when a filter is applied */
@keyframes wfIn { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .work-grid .work-card { animation: none !important; } }

/* ---- Live filter count ---- */
.work-count { font-size: 0.85rem; opacity: 0.7; margin: -0.5rem 0 1.4rem; letter-spacing: 0.01em; }

/* ---- Secret filter pill (reveals the hidden "this site" card) ---- */
.wf-secret { display: inline-flex; align-items: center; }
.wf-secret .secret-dot { display: inline-block; transition: transform 0.5s var(--ease); }
.wf-secret .secret-text {
  display: inline-block; max-width: 0; margin-left: 0; opacity: 0; overflow: hidden;
  white-space: nowrap; vertical-align: bottom;
  transition: max-width 0.45s var(--ease), opacity 0.3s var(--ease), margin 0.45s var(--ease);
}
.wf-secret:hover .secret-text,
.wf-secret.is-active .secret-text { max-width: 22em; margin-left: 0.45rem; opacity: 1; }
.wf-secret:hover .secret-dot,
.wf-secret.is-active .secret-dot { transform: rotate(180deg); }
.wf-secret.is-active { background: var(--pink); border-color: var(--pink); color: var(--white); }

/* ---- Surprise me button ---- */
.wf-surprise {
  margin-left: auto; border: 0; background: none; cursor: pointer;
  font-family: var(--font-body); font-size: 0.9rem; color: var(--pink);
  padding: 0.5rem 0.2rem; display: inline-flex; align-items: center; gap: 0.4rem;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.wf-surprise span { transition: transform 0.5s var(--ease); display: inline-block; }
.wf-surprise:hover { transform: translateY(-1px); }
.wf-surprise:hover span { transform: rotate(180deg) scale(1.15); }
.wf-surprise:active { transform: scale(0.96); }

/* ---- Work index cards: behind-the-work flip on hover + subtle tilt (tab card design) ---- */
.wgi .work-card { transition: transform 0.25s var(--ease); will-change: transform; transform-style: preserve-3d; }
.wgi .thumb-cover, .wgi .thumb-sketch {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.wgi .thumb-sketch { opacity: 0; }
.wgi .work-card:hover .thumb-sketch { opacity: 1; }
.wgi .work-card:hover .thumb-cover { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .wgi .work-card { transform: none !important; }
}
/* touch devices have no hover: never flip to the sketch, always show the cover */
@media (hover: none) {
  .wgi .work-card .thumb-sketch { opacity: 0 !important; }
  .wgi .work-card .thumb-cover { opacity: 1 !important; }
}

/* ============================================================
   CASE STUDY (work/outsight.html etc.)
   ============================================================ */
.cs { overflow: clip; }

/* ---- Hero ---- */
.cs-hero { padding-top: clamp(5rem, 10vh, 8rem); }
.cs-back { display: inline-block; font-size: 0.85rem; color: var(--black); opacity: 0.6; text-decoration: none; margin-bottom: clamp(2rem, 5vw, 3.5rem); transition: opacity 0.2s var(--ease), transform 0.2s var(--ease); }
.cs-back:hover { opacity: 1; transform: translateX(-3px); color: var(--pink); }
.cs-tags { font-family: var(--font-serif); font-style: italic; font-size: clamp(0.82rem, 1vw, 0.95rem); letter-spacing: 0.02em; color: var(--pink); margin-bottom: 1rem; }
.cs-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.8rem, 9vw, 7rem); line-height: 0.98; letter-spacing: -0.03em; }
.cs-lede { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.05rem, 1.6vw, 1.35rem); line-height: 1.4; max-width: 30em; margin-top: 1.5rem; }
.cs-meta { display: flex; flex-wrap: wrap; gap: clamp(2rem, 5vw, 4rem); margin-top: clamp(2.5rem, 5vw, 3.5rem); border-top: 1px solid rgba(38, 38, 38, 0.12); padding-top: 1.5rem; }
.cs-meta dt { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.7; margin-bottom: 0.3rem; }
.cs-meta dd { font-family: var(--font-display); font-weight: 500; font-size: 1rem; }

/* ---- Hero: breadcrumb + title/lede/pills + info card (original layout) ---- */
.cs-crumb { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; font-size: 0.85rem; margin-bottom: clamp(0.5rem, 1.4vw, 0.9rem); }
.cs-crumb a { color: var(--black); text-decoration: none; font-weight: 600; transition: color 0.2s var(--ease); }
.cs-crumb a:hover { color: var(--pink); }
.cs-crumb-sep { opacity: 0.7; }
.cs-crumb-now { color: var(--pink); font-weight: 500; }

.cs-hero-grid { display: grid; grid-template-columns: 1fr clamp(250px, 24vw, 330px); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.cs-pills { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem; padding: 0; margin-top: clamp(1.6rem, 3vw, 2.4rem); }
.cs-pill { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; padding: 0.45rem 0.8rem; border: 1px solid rgba(38, 38, 38, 0.2); border-radius: 7px; }
.cs-pill.is-on { background: rgba(234, 112, 169, 0.14); border-color: var(--pink); color: var(--pink); }

.cs-infocard { border: 1px solid rgba(38, 38, 38, 0.18); border-radius: var(--radius-card); padding: 0 clamp(1.2rem, 2vw, 1.7rem); }
.cs-infocard dl { margin: 0; }
.cs-infocard div { display: flex; gap: 0.45rem; align-items: baseline; flex-wrap: wrap; padding: clamp(1.1rem, 2.4vw, 1.7rem) 0; border-top: 1px solid rgba(38, 38, 38, 0.12); }
.cs-infocard div:first-child { border-top: 0; }
.cs-infocard dt { font-size: 0.85rem; opacity: 0.7; }
.cs-infocard dt::after { content: ':'; }
.cs-infocard dd { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; margin: 0; }

/* ---- Cover (full-bleed) ---- */
.cs-cover { margin-top: clamp(2rem, 4vw, 3.5rem); width: 100%; }
.cs-cover img { width: 100%; height: auto; border-radius: 0; display: block; }

/* ---- Sticky two-column sections ---- */
.cs-section { padding: clamp(3.5rem, 8vw, 7rem) var(--pad-x); }
.cs-sticky { display: grid; grid-template-columns: 0.85fr 1.5fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.cs-sticky-aside { position: sticky; top: 110px; }
.cs-num { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 2.5vw, 2.4rem); color: var(--pink); line-height: 1; margin-bottom: 0.9rem; opacity: 0.7; }
.cs-h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.8rem, 3.5vw, 3rem); line-height: 1.05; letter-spacing: -0.02em; }
.cs-h2-wide { max-width: 12em; }
.cs-sticky-body > p { font-size: clamp(1rem, 1.25vw, 1.15rem); line-height: 1.65; margin-bottom: 1.3rem; max-width: 36em; }
.cs-sticky-body > p strong { font-weight: 600; }

/* ---- Separator section header (full-bleed lines, text aligned to container) ---- */
.cs-div { width: 100vw; margin-left: calc(50% - 50vw); border-top: 1px solid rgba(38, 38, 38, 0.18); border-bottom: 1px solid rgba(38, 38, 38, 0.18); margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.cs-div-inner { max-width: var(--max-w); margin: 0 auto; padding: 0.9rem var(--pad-x); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.cs-div-label { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pink); font-weight: 600; white-space: nowrap; }
.cs-div-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.3rem, 2.6vw, 2.1rem); line-height: 1.1; letter-spacing: -0.02em; text-align: right; flex: 1; min-width: 55%; }
.cs-div-title .hl { color: var(--pink); font-style: normal; }
.cs-aside-fig { margin: 0 0 1rem; }
.cs-aside-fig img { width: 100%; height: auto; display: block; border-radius: var(--radius-card); background: #f5f5f5; }
.cs-aside-fig figcaption { font-size: 0.78rem; opacity: 0.7; margin-top: 0.5rem; line-height: 1.4; }
.cs-twoup { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin: clamp(1.5rem, 3vw, 2.5rem) 0; }

.cs-row { display: grid; grid-template-columns: 0.85fr 1.5fr; gap: clamp(1.5rem, 5vw, 5rem); align-items: start; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.cs-row-aside { position: sticky; top: 110px; }
.cs-sub { font-family: var(--font-serif); font-style: italic; font-size: clamp(1rem, 1.4vw, 1.2rem); opacity: 0.7; display: block; }
.cs-row-body > p { font-size: clamp(1rem, 1.25vw, 1.15rem); line-height: 1.65; margin-bottom: 1.3rem; max-width: 38em; }
.cs-row-body > p strong { font-weight: 600; }

/* full-width figures inside a section */
.cs-wide { margin: clamp(1.5rem, 3vw, 2.5rem) 0; }
.cs-wide img { width: 100%; height: auto; display: block; border-radius: var(--radius-card); }
.cs-frame { background: #f5f5f5; border: 1px solid rgba(38, 38, 38, 0.1); border-radius: var(--radius-card); padding: clamp(1rem, 2.5vw, 2rem); }
.cs-frame img { border-radius: 6px; }

/* ---- Pull quote / callout (filled pink, left bar) ---- */
.cs-quote {
  font-family: var(--font-body); font-style: italic;
  font-size: clamp(1.02rem, 1.6vw, 1.3rem); line-height: 1.45;
  margin: 2rem 0 2.2rem; color: var(--black);
  background: rgba(234, 112, 169, 0.13);
  border-left: 4px solid var(--pink);
  border-radius: 0 10px 10px 0;
  padding: 1.15rem 1.5rem;
}

/* ---- Logo row + figures ---- */
.cs-logo-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 2.2rem auto; max-width: 820px; }
.cs-logo-main, .cs-logo-motion { margin: 0; }
.cs-logo-main img { width: 100%; height: 100%; object-fit: contain; border-radius: var(--radius-card); background: #f5f5f5; display: block; aspect-ratio: 4 / 3; padding: 1.8rem; }
.cs-logo-motion video { width: 100%; height: 100%; object-fit: contain; border-radius: var(--radius-card); background: #f5f5f5; display: block; aspect-ratio: 4 / 3; padding: 1.4rem; }
.cs-figure { margin: 2.2rem 0; }
.cs-figure img { width: 100%; height: auto; border-radius: var(--radius-card); display: block; background: var(--white); }
figcaption, .cs-note { font-size: 0.8rem; opacity: 0.7; margin-top: 0.6rem; line-height: 1.4; }
.cs-note { margin-bottom: 1.6rem; }

/* ---- Color swatches ---- */
.cs-colors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 2rem 0 0.8rem; }
.cs-swatch { display: flex; flex-direction: column; }
.cs-chip { height: 92px; border-radius: 12px; background: var(--p); position: relative; overflow: hidden; }
.cs-chip::after { content: ''; position: absolute; right: 0; bottom: 0; width: 40%; height: 40%; background: var(--s); border-top-left-radius: 12px; }
.cs-cname { font-family: var(--font-display); font-weight: 500; font-size: 0.9rem; margin-top: 0.6rem; }
.cs-chex { font-size: 0.74rem; opacity: 0.7; letter-spacing: 0.04em; }

/* ---- Typography specimen ---- */
.cs-type { border: 1px solid rgba(38, 38, 38, 0.12); border-radius: var(--radius-card); padding: clamp(1.5rem, 3vw, 2.5rem); margin: 2rem 0; }
.cs-type-display { font-family: 'Funnel Display', var(--font-display); font-weight: 800; font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1; letter-spacing: -0.02em; }
.cs-type-body { font-family: 'Outfit', system-ui, sans-serif; font-weight: 400; font-size: 1rem; line-height: 1.6; max-width: 34em; margin-top: 1.2rem; }
.cs-type-label { font-family: 'Outfit', system-ui, sans-serif; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.7; margin-top: 1.2rem; }

/* ---- Persona cards ---- */
.cs-persona { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 2rem 0 0; }
.cs-persona-card { background: var(--pale-yellow); border-radius: var(--radius-card); padding: 1.4rem; }
.cs-persona-tag { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; display: block; margin-bottom: 0.5rem; }
.cs-persona-card p { font-size: 0.9rem; line-height: 1.5; opacity: 0.8; }

/* ---- Values + manifesto ---- */
.cs-values { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.5rem 0 2rem; padding: 0; }
.cs-values li { font-family: var(--font-serif); font-style: italic; font-size: 0.9rem; padding: 0.4rem 1rem; border: 1px solid rgba(38, 38, 38, 0.18); border-radius: var(--radius-pill); }
.cs-manifesto { border-top: 1px solid rgba(38, 38, 38, 0.12); padding-top: 1.5rem; }
.cs-manifesto p { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.3; margin-bottom: 0.6rem; }

/* ---- Applications (side by side) ---- */
.cs-apps { padding-top: clamp(1rem, 3vw, 2rem); padding-bottom: clamp(1rem, 3vw, 2rem); }
.cs-apps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.cs-app { margin: 0; }
.cs-app img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-card); display: block; aspect-ratio: 3 / 2; }
.cs-app-wide { grid-column: 1 / -1; }
.cs-app-wide img { aspect-ratio: 21 / 9; }
@media (max-width: 700px) { .cs-apps-grid { grid-template-columns: 1fr; } .cs-app-wide img { aspect-ratio: 3 / 2; } }

/* ---- What was built (single toggle reveals the full table, black, full width) ---- */
.cs-built { background: var(--black); color: #FCFAF5; padding: clamp(3rem, 6vw, 5rem) 0; }
.cs-built-summary { list-style: none; cursor: pointer; text-align: center; }
.cs-built-summary::-webkit-details-marker { display: none; }
.cs-built-eyebrow { display: block; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--pink); margin-bottom: 0.7rem; }
.cs-built-titlerow { display: inline-flex; align-items: center; gap: 1rem; }
.cs-built-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.8rem, 4vw, 3rem); letter-spacing: -0.02em; }
.cs-built-ico { width: 13px; height: 13px; border-right: 2px solid var(--pink); border-bottom: 2px solid var(--pink); transform: rotate(45deg); transition: transform 0.35s var(--ease); flex: none; margin-top: -6px; }
.cs-built-box[open] .cs-built-ico { transform: rotate(225deg); margin-top: 4px; }
.cs-built-hint { display: block; font-size: 0.8rem; opacity: 0.7; margin-top: 0.9rem; }
.cs-built-box[open] .cs-built-hint { display: none; }
.cs-built-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem 2rem; margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.cs-built-grid article { border-top: 1px solid rgba(252, 250, 245, 0.22); padding-top: 1rem; }
.cs-built-grid .cs-dnum { font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; color: var(--pink); }
.cs-built-grid h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; margin: 0.5rem 0; }
.cs-built-grid p { font-family: var(--font-body); font-size: 0.9rem; line-height: 1.5; opacity: 0.72; }
@media (max-width: 820px) { .cs-built-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .cs-built-grid { grid-template-columns: 1fr; } }

/* ---- Results quote ---- */
.cs-results { background: var(--black); color: var(--white); padding: clamp(4rem, 9vw, 7rem) 0; margin-top: clamp(2rem, 5vw, 4rem); }
.cs-bq-mark { display: block; font-family: var(--font-display); font-weight: 700; font-style: italic; font-size: clamp(3.5rem, 8vw, 6rem); line-height: 0.4; color: var(--purple); margin-bottom: 1.6rem; }
.cs-bigquote { font-family: var(--font-display); font-weight: 600; font-style: italic; font-size: clamp(1.5rem, 3.4vw, 2.8rem); line-height: 1.25; max-width: 22em; }
.cs-bq-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; border-top: 1px solid rgba(252, 250, 245, 0.22); margin-top: clamp(2rem, 4vw, 3rem); padding-top: 1.3rem; }
.cs-bq-cite { font-family: var(--font-body); font-style: normal; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(252, 250, 245, 0.5); }
.cs-bq-outcome { font-family: var(--font-body); font-style: italic; font-size: 0.85rem; color: rgba(252, 250, 245, 0.5); }

/* ---- Next + CTA (two columns) ---- */
.cs-next { padding: clamp(3rem, 6vw, 5rem) var(--pad-x); }
.cs-next-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.cs-cta-eyebrow { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; opacity: 0.7; display: block; margin-bottom: 0.7rem; }
.cs-cta-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem, 4.5vw, 3.6rem); line-height: 1; letter-spacing: -0.02em; }
.cs-cta-title .hl { color: var(--pink); font-style: normal; }
.cs-cta > p { font-size: 1rem; line-height: 1.55; opacity: 0.75; margin: 1.1rem 0 1.8rem; max-width: 26em; }
.cs-cta-btns { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.btn-outline { background: transparent; border-color: rgba(38, 38, 38, 0.3); color: var(--black); }
.btn-outline:hover { border-color: var(--black); background: var(--black); color: var(--white); }

/* vertical project card */
.cs-nextcard { display: block; text-decoration: none; color: var(--black); }
.cs-nextcard-img { margin: 0; border-radius: var(--radius-card) var(--radius-card) 0 0; overflow: hidden; background: var(--pale-yellow); }
.cs-nextcard-img img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 16 / 10; transition: transform 0.6s var(--ease); }
.cs-nextcard:hover .cs-nextcard-img img { transform: scale(1.04); }
.cs-nextcard-body { border: 1px solid rgba(38, 38, 38, 0.14); border-top: 0; border-radius: 0 0 var(--radius-card) var(--radius-card); padding: clamp(1.3rem, 2.5vw, 1.8rem); }
.cs-next-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--pink); display: block; margin-bottom: 0.5rem; }
.cs-nextcard-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1; letter-spacing: -0.02em; transition: color 0.2s var(--ease); }
.cs-nextcard:hover .cs-nextcard-title { color: var(--pink); }
.cs-nextcard-body p { font-size: 0.95rem; line-height: 1.5; opacity: 0.75; margin: 0.7rem 0 1.1rem; }
.cs-next-cta { font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; letter-spacing: 0.02em; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) { .cs-next-grid { grid-template-columns: 1fr; } .cs-twoup { grid-template-columns: 1fr; } }

/* ============ CASE STUDY — Easter eggs ============ */
/* #1 cover: think outside the box */
.cs-cover { position: relative; cursor: pointer; }
.cs-cover-note {
  position: absolute; left: 1rem; bottom: 1rem;
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(38, 38, 38, 0.72); color: #fff;
  font-family: var(--font-body); font-size: 0.72rem; letter-spacing: 0.03em;
  padding: 0.45rem 0.9rem; border-radius: var(--radius-pill);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  pointer-events: none; opacity: 0.9;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.cs-cover-note::before { content: '\2726'; }
.cs-cover:hover .cs-cover-note { opacity: 1; transform: translateY(-2px); }
/* sliding-tile puzzle */
.cs-puzzle { position: absolute; inset: 0; display: none; background: #161616; overflow: hidden; }
.cs-cover.is-puzzle { background: #161616; }
.cs-cover.is-puzzle img { visibility: hidden; }
.cs-cover.is-puzzle .cs-puzzle { display: block; }
.cs-tile { position: absolute; background-repeat: no-repeat; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.22); transition: left 0.18s var(--ease), top 0.18s var(--ease); }
.cs-tile.is-empty { opacity: 0; pointer-events: none; }
.cs-puzzle-exit { position: absolute; top: 0.8rem; right: 0.8rem; z-index: 3; display: none; width: 2rem; height: 2rem; align-items: center; justify-content: center; border: 0; border-radius: var(--radius-pill); background: rgba(38, 38, 38, 0.72); color: #fff; font-size: 1.2rem; line-height: 1; cursor: pointer; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.cs-cover.is-puzzle .cs-puzzle-exit { display: inline-flex; }

/* #2 copy hex (desktop only) */
.cs-palette-wrap { position: relative; display: block; line-height: 0; }
.cs-palette-wrap img { width: 100%; height: auto; display: block; border-radius: 6px; }
.cs-hex { position: absolute; border: 0; background: transparent; padding: 0; cursor: pointer; border-radius: 8px; transition: box-shadow 0.15s var(--ease); }
.cs-hex:hover { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.85), 0 0 0 6px rgba(38, 38, 38, 0.22); }
.cs-hex-note { font-family: var(--font-body); font-size: 0.78rem; opacity: 0.7; margin: 0 0 0.7rem; text-align: right; }
.cs-hex-toast { position: fixed; z-index: 10000; transform: translate(-50%, -100%); background: var(--black); color: #fff; font-family: var(--font-body); font-size: 0.78rem; padding: 0.35rem 0.7rem; border-radius: 6px; pointer-events: none; opacity: 0; transition: opacity 0.18s var(--ease); white-space: nowrap; }
.cs-hex-toast.on { opacity: 1; }
@media (hover: none), (max-width: 820px) { .cs-hex, .cs-hex-note { display: none; } }

/* ============================================================
   SERVICES PAGE
   ============================================================ */
.svc-hero { padding-top: clamp(5rem, 10vh, 8rem); padding-bottom: clamp(1.5rem, 4vw, 3rem); }
.svc-h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem, 5.5vw, 4.2rem); line-height: 1.02; letter-spacing: -0.02em; margin-top: 0.6rem; max-width: 15em; }
.svc-intro { max-width: 40em; margin-top: 1.3rem; font-size: clamp(1rem, 1.3vw, 1.2rem); line-height: 1.6; opacity: 0.8; }
.svc-jump { display: flex; gap: 0.6rem; margin-top: 2rem; flex-wrap: wrap; }
.svc-jump a { font-family: var(--font-display); font-weight: 500; font-size: 0.85rem; padding: 0.5rem 1.1rem; border: 1px solid rgba(38, 38, 38, 0.2); border-radius: var(--radius-pill); text-decoration: none; color: var(--black); transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease); }
.svc-jump a:hover { background: var(--black); color: var(--white); border-color: var(--black); }

.svc-detail { padding: clamp(2.5rem, 6vw, 4.5rem) 0; border-top: 1px solid rgba(38, 38, 38, 0.12); scroll-margin-top: 90px; }
.svc-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.svc-tag { display: inline-block; font-family: var(--font-display); font-weight: 600; font-size: 0.74rem; letter-spacing: 0.09em; text-transform: uppercase; color: #fff; background: var(--c, var(--pink)); padding: 0.35rem 0.9rem; border-radius: var(--radius-pill); margin-bottom: 1.1rem; }
.svc-detail-head h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.08; letter-spacing: -0.02em; }
.svc-detail-head > p { font-size: clamp(1rem, 1.2vw, 1.1rem); line-height: 1.6; opacity: 0.8; margin: 1rem 0; max-width: 30em; }
.svc-price { font-family: var(--font-display); font-size: 1.05rem; opacity: 0.9; }
.svc-price strong { font-weight: 700; }
.svc-detail-head .btn { margin-top: 1.3rem; }
.svc-detail-list h3 { font-family: var(--font-display); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.7; margin-bottom: 1.1rem; }
.svc-incl { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.7rem; }
.svc-incl li { position: relative; padding-left: 1.6rem; font-size: 0.98rem; line-height: 1.45; }
.svc-incl li::before { content: ''; position: absolute; left: 0; top: 0.4em; width: 0.7rem; height: 0.7rem; border-radius: 3px; background: var(--c, var(--pink)); }
.svc-for { margin-top: 1.5rem; font-size: 0.9rem; opacity: 0.7; line-height: 1.5; border-top: 1px solid rgba(38, 38, 38, 0.12); padding-top: 1rem; }

/* FAQ */
.svc-faq { padding: clamp(3rem, 6vw, 5rem) 0; }
.svc-faq h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.8rem, 3.5vw, 2.6rem); letter-spacing: -0.02em; margin: 0.4rem 0 1.6rem; }
.faq-list { border-top: 1px solid rgba(38, 38, 38, 0.14); max-width: 60em; }
.faq-item { border-bottom: 1px solid rgba(38, 38, 38, 0.14); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.2rem 0.2rem; font-family: var(--font-display); font-weight: 500; font-size: clamp(1rem, 1.5vw, 1.2rem); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-ico { flex: none; width: 12px; height: 12px; position: relative; }
.faq-ico::before, .faq-ico::after { content: ''; position: absolute; background: var(--pink); transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
.faq-ico::before { top: 5px; left: 0; width: 12px; height: 2px; }
.faq-ico::after { left: 5px; top: 0; width: 2px; height: 12px; }
.faq-item[open] .faq-ico::after { transform: scaleY(0); opacity: 0; }
.faq-body { padding: 0 0.2rem 1.3rem; font-size: 0.98rem; line-height: 1.6; opacity: 0.8; max-width: 46em; overflow: hidden; }

@media (max-width: 760px) { .svc-detail-grid { grid-template-columns: 1fr; gap: 1.5rem; } }

/* ---- Pricing packages (good/better/best ladder) ---- */
.svc-packages { padding: clamp(2rem, 5vw, 3.5rem) var(--pad-x) clamp(1rem, 3vw, 2rem); scroll-margin-top: 90px; }
.pkg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: start; }
.pkg-card { display: flex; flex-direction: column; height: 100%; background: var(--white); border: 1px solid rgba(38, 38, 38, 0.14); border-radius: var(--radius-card); padding: clamp(1.4rem, 2.5vw, 2rem); position: relative; }
.pkg-card.is-feature { border-color: var(--pink); border-width: 1.5px; box-shadow: 0 14px 44px -20px rgba(234, 112, 169, 0.55); }
.pkg-badge { position: absolute; top: -0.7rem; left: clamp(1.4rem, 2.5vw, 2rem); background: var(--pink); color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.3rem 0.7rem; border-radius: var(--radius-pill); }
.pkg-eyebrow { font-family: var(--font-serif); font-style: italic; font-size: 0.88rem; color: var(--pink); }
.pkg-name { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.12; letter-spacing: -0.01em; margin: 0.3rem 0 0.9rem; }
.pkg-price { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 3.2vw, 2.6rem); letter-spacing: -0.02em; line-height: 1; }
.pkg-meta { font-size: 0.8rem; opacity: 0.7; margin-top: 0.45rem; }
.pkg-for { font-size: 0.92rem; line-height: 1.5; opacity: 0.8; margin: 1rem 0; }
.pkg-plus { font-size: 0.78rem; font-weight: 600; opacity: 0.7; margin: 0.3rem 0 0.6rem; }
.pkg-incl { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; gap: 0.55rem; }
.pkg-incl li { position: relative; padding-left: 1.4rem; font-size: 0.9rem; line-height: 1.4; }
.pkg-incl li::before { content: ''; position: absolute; left: 0; top: 0.42em; width: 0.6rem; height: 0.6rem; border-radius: 3px; background: var(--pink); }
.pkg-cta { margin-top: auto; text-align: center; }
.svc-deep-link { font-size: 0.9rem; opacity: 0.75; }
.svc-deep-link a { color: var(--pink); text-decoration: underline; text-underline-offset: 3px; }

/* ---- Founder engagement (anchor band) ---- */
.founder-band { background: var(--black); color: #FCFAF5; padding: clamp(2.5rem, 5vw, 4rem) 0; margin: clamp(2rem, 4vw, 3rem) 0; scroll-margin-top: 90px; }
.founder-inner { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.founder-eyebrow { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--pink); }
.founder-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 3.5vw, 2.8rem); letter-spacing: -0.02em; margin: 0.4rem 0 0.8rem; }
.founder-inner > div > p { opacity: 0.82; line-height: 1.6; max-width: 38em; font-size: 1rem; }
.founder-side { text-align: right; }
.founder-price { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 2.5vw, 2.2rem); margin-bottom: 1rem; }

/* ---- Website only + Care plan ---- */
.svc-extra { padding: clamp(2rem, 4vw, 3rem) var(--pad-x); }
.extra-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.extra-card { border: 1px solid rgba(38, 38, 38, 0.14); border-radius: var(--radius-card); padding: clamp(1.4rem, 2.5vw, 2rem); scroll-margin-top: 90px; }
.extra-card h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.15; margin: 0.8rem 0 0.6rem; }
.extra-card .pkg-price { font-size: clamp(1.6rem, 2.4vw, 2rem); }
.extra-meta { font-family: var(--font-body); font-size: 0.8rem; font-weight: 400; opacity: 0.7; }
.extra-card .svc-incl { margin: 1rem 0 1.3rem; }
.extra-note { font-size: 0.85rem; opacity: 0.7; line-height: 1.5; border-top: 1px solid rgba(38, 38, 38, 0.12); padding-top: 0.9rem; }

/* ---- Add-ons ---- */
.addons { padding: clamp(2rem, 4vw, 3rem) var(--pad-x) clamp(3rem, 6vw, 4rem); scroll-margin-top: 90px; }
.addons h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 2.5vw, 2rem); margin: 0.3rem 0 1.3rem; }
.addon-list { list-style: none; padding: 0; margin: 0; max-width: 46em; }
.addon-list li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.9rem 0; border-bottom: 1px solid rgba(38, 38, 38, 0.12); font-size: 0.98rem; }
.addon-list li:first-child { border-top: 1px solid rgba(38, 38, 38, 0.12); }
.addon-list li span:last-child { font-family: var(--font-display); font-weight: 600; white-space: nowrap; opacity: 0.85; }

@media (max-width: 860px) {
  .pkg-grid { grid-template-columns: 1fr; }
  .extra-grid { grid-template-columns: 1fr; }
  .founder-inner { grid-template-columns: 1fr; }
  .founder-side { text-align: left; }
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.ct-hero { padding-top: clamp(5rem, 10vh, 8rem); padding-bottom: clamp(1rem, 3vw, 2rem); }
.ct-h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem, 5.5vw, 4.2rem); line-height: 1.02; letter-spacing: -0.02em; margin-top: 0.6rem; max-width: 14em; }
.ct-intro { max-width: 38em; margin-top: 1.3rem; font-size: clamp(1rem, 1.3vw, 1.2rem); line-height: 1.6; opacity: 0.8; }
.ct-main { padding-bottom: clamp(3rem, 7vw, 6rem); }
.ct-grid { display: grid; grid-template-columns: 0.9fr 1.3fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; margin-top: clamp(1.5rem, 4vw, 3rem); }

.ct-aside { display: flex; flex-direction: column; gap: clamp(1.6rem, 3vw, 2.4rem); }
.ct-block-h { font-family: var(--font-display); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.7; margin-bottom: 1rem; }
.ct-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.9rem; }
.ct-steps li { display: flex; gap: 0.8rem; align-items: flex-start; font-size: 0.98rem; line-height: 1.45; }
.ct-step-n { flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--pink); color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; display: flex; align-items: center; justify-content: center; }
.ct-details { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.85rem; }
.ct-details li { display: flex; flex-direction: column; gap: 0.15rem; font-size: 0.98rem; }
.ct-k { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.7; }
.ct-details a { color: var(--black); text-decoration: underline; text-underline-offset: 3px; }
.ct-details a:hover { color: var(--pink); }
.ct-avail { display: inline; }
.ct-dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--pink); display: inline-block; vertical-align: middle; margin-right: 0.5rem; }
.ct-social { display: flex; gap: 0.6rem; }

.ct-formwrap { background: var(--white); border: 1px solid rgba(38, 38, 38, 0.14); border-radius: var(--radius-card); padding: clamp(1.5rem, 3vw, 2.5rem); }
.ct-field { margin-bottom: 1.1rem; }
.ct-field label { display: block; font-family: var(--font-display); font-weight: 500; font-size: 0.9rem; margin-bottom: 0.45rem; }
.ct-opt { font-weight: 400; opacity: 0.7; }
.ct-field input, .ct-field select, .ct-field textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--black);
  background: #faf7f0; border: 1px solid rgba(38, 38, 38, 0.18); border-radius: 10px;
  padding: 0.75rem 0.9rem; transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.ct-field textarea { resize: vertical; min-height: 7rem; }
.ct-field input:focus, .ct-field select:focus, .ct-field textarea:focus {
  outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px rgba(234, 112, 169, 0.18);
}
.ct-submit { width: 100%; margin-top: 0.4rem; }
.ct-fineprint { font-size: 0.8rem; opacity: 0.7; margin-top: 0.9rem; text-align: center; }

.ct-thanks { text-align: center; padding: clamp(2rem, 5vw, 4rem) 1rem; }
.ct-thanks-mark { font-size: 2.5rem; color: var(--pink); display: block; margin-bottom: 0.6rem; line-height: 1; }
.ct-thanks h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.ct-thanks p { max-width: 30em; margin: 0.8rem auto 0; line-height: 1.6; opacity: 0.8; }
.ct-thanks a { color: var(--pink); }

@media (max-width: 820px) { .ct-grid { grid-template-columns: 1fr; } }

/* ============================================================
   DEEP SERVICE PAGE (Brand, Web)
   ============================================================ */
.dp-hero { padding-top: clamp(5rem, 10vh, 8rem); padding-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.dp-h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.03; letter-spacing: -0.02em; margin-top: 0.6rem; max-width: 16em; }
.dp-intro { max-width: 40em; margin: 1.3rem 0 1.8rem; font-size: clamp(1rem, 1.3vw, 1.2rem); line-height: 1.6; opacity: 0.8; }

.dp-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; padding-bottom: clamp(3rem, 7vw, 6rem); }
.dp-content { min-width: 0; }
.dp-section { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.dp-eyebrow { display: block; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pink); font-weight: 600; margin-bottom: 0.7rem; }
.dp-h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 2.8vw, 2.2rem); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 0.9rem; }
.dp-section > p { font-size: clamp(1rem, 1.2vw, 1.1rem); line-height: 1.65; opacity: 0.85; max-width: 36em; }
.dp-incl { margin-top: 0.5rem; }
.dp-note { font-size: 0.9rem; opacity: 0.7; margin-top: 1rem; }
.dp-note a { color: var(--pink); }

.dp-tiers { display: grid; gap: 1rem; margin: 1.5rem 0 0.5rem; }
.dp-tier-meta { font-family: var(--font-body); font-size: 0.85rem; font-weight: 400; opacity: 0.7; }

.dp-steps { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 1rem; }
.dp-steps li { display: flex; gap: 0.9rem; align-items: flex-start; font-size: 1rem; line-height: 1.55; }
.dp-steps li strong { font-weight: 600; }
.dp-step-n { flex: none; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--black); color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; display: flex; align-items: center; justify-content: center; }

.dp-form-col { position: sticky; top: 100px; }
.dp-form-h { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.3rem, 2vw, 1.6rem); letter-spacing: -0.01em; }
.dp-form-sub { font-size: 0.92rem; opacity: 0.7; line-height: 1.5; margin: 0.4rem 0 1.3rem; }

@media (max-width: 900px) {
  .dp-grid { grid-template-columns: 1fr; }
  .dp-form-col { position: static; margin-top: 1.5rem; }
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-hero { padding-top: clamp(5rem, 10vh, 8rem); padding-bottom: clamp(2rem, 5vw, 3.5rem); }
.about-hero-grid { display: grid; grid-template-columns: 1.2fr 0.9fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about-h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.4rem, 5.5vw, 4.4rem); line-height: 1; letter-spacing: -0.03em; margin-top: 0.6rem; }
.about-intro { font-size: clamp(1.05rem, 1.5vw, 1.35rem); line-height: 1.5; opacity: 0.85; margin: 1.4rem 0 1.8rem; max-width: 26em; }
.about-intro em { font-family: var(--font-serif); font-style: italic; }

.about-photo { position: relative; border-radius: var(--radius-card); overflow: hidden; cursor: pointer; background: var(--pale-yellow); }
.about-img { width: 100%; height: auto; display: block; }
.about-img-little { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.6s var(--ease); }
.about-photo.is-little .about-img-little { opacity: 1; }
.about-hint, .about-cap { position: absolute; left: 0.9rem; bottom: 0.9rem; z-index: 2; background: rgba(38, 38, 38, 0.72); color: #fff; font-size: 0.72rem; letter-spacing: 0.03em; padding: 0.4rem 0.85rem; border-radius: var(--radius-pill); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); pointer-events: none; transition: opacity 0.3s var(--ease); }
.about-hint::before { content: '\2726 '; }
.about-cap { opacity: 0; font-family: var(--font-serif); font-style: italic; }
.about-photo.is-little .about-hint { opacity: 0; }
.about-photo.is-little .about-cap { opacity: 1; }

.about-story { padding: clamp(1rem, 3vw, 2.5rem) var(--pad-x); }
.about-story-inner { max-width: 38em; }
.about-story-inner p { font-size: clamp(1.05rem, 1.4vw, 1.3rem); line-height: 1.65; margin-bottom: 1.3rem; }
.about-story-inner strong { font-weight: 600; }

.about-candids { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 1rem; max-width: 680px; margin: clamp(1rem, 3vw, 2rem) auto; align-items: start; }
.about-candid { margin: 0; }
.about-candid img { width: 100%; height: auto; object-fit: cover; border-radius: var(--radius-card); display: block; aspect-ratio: 4 / 5; }
.about-candids .about-candid:first-child img { aspect-ratio: 4 / 3; }
.about-candid-cap { grid-column: 1 / -1; text-align: center; font-family: var(--font-serif); font-style: italic; font-size: 0.85rem; opacity: 0.7; margin-top: 0.2rem; }

.about-beliefs { padding: clamp(2.5rem, 5vw, 4rem) var(--pad-x); }
.about-beliefs-list { list-style: none; padding: 0; margin: 1.2rem 0 0; max-width: 40em; }
.about-beliefs-list li { display: flex; gap: 1rem; align-items: baseline; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.15rem, 2vw, 1.7rem); line-height: 1.25; padding: 1rem 0; border-top: 1px solid rgba(38, 38, 38, 0.12); letter-spacing: -0.01em; }
.ab-n { font-size: 0.8rem; color: var(--pink); flex: none; font-weight: 600; }

.about-littleme { padding: clamp(1rem, 3vw, 2rem) var(--pad-x) clamp(2rem, 4vw, 3rem); }
.about-littleme-inner { max-width: 30em; font-family: var(--font-serif); font-style: italic; font-size: clamp(1.2rem, 2.2vw, 1.7rem); line-height: 1.4; }
.alm-hint { font-family: var(--font-body); font-style: normal; font-size: 0.85rem; opacity: 0.7; display: inline-block; }

@media (max-width: 820px) {
  .about-hero-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 24rem; margin: 0 auto; }
  .about-candids { grid-template-columns: 1fr; max-width: 24rem; }
}

/* ============================================================
   LOADING SCREEN — logo animation + "thanks for waiting" → dissolve (first visit only)
   ============================================================ */
.site-loader { position: fixed; inset: 0; z-index: 10000; background: var(--white); display: flex; align-items: center; justify-content: center; opacity: 1; transition: opacity 0.6s var(--ease); }
html.dm-loaded .site-loader { display: none; }            /* repeat visits in the session: skip */
.site-loader.is-out { opacity: 0; pointer-events: none; }   /* dissolve to reveal the site */
.sl-inner { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.sl-logo { width: clamp(150px, 26vw, 260px); height: auto; display: block; }
.sl-msg { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.05rem, 2vw, 1.35rem); color: var(--black); opacity: 0; transform: translateY(6px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.site-loader.is-text .sl-msg { opacity: 0.85; transform: none; }   /* "thanks for waiting" fades in after the logo */
@media (prefers-reduced-motion: reduce) { .site-loader { display: none !important; } }

/* ---- Responsive ---- */
@media (max-width: 820px) {
  .cs-hero-grid { grid-template-columns: 1fr; }
  .cs-sticky { grid-template-columns: 1fr; gap: 1.5rem; }
  .cs-sticky-aside { position: static; }
  .cs-row { grid-template-columns: 1fr; gap: 0.6rem; }
  .cs-row-aside { position: static; }
  .cs-div-title { text-align: left; min-width: 0; flex-basis: 100%; }
  .cs-logo-row { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .cs-colors { grid-template-columns: 1fr 1fr; }
}


/* ============================================================
   BLOG  (index list + article)
   ============================================================ */
.blog-hero { padding-top: clamp(5rem, 10vh, 8rem); padding-bottom: clamp(1.25rem, 3vw, 2.25rem); }
.blog-hero h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem, 5.5vw, 4.2rem); line-height: 1.02; letter-spacing: -0.02em; margin-top: 0.6rem; max-width: 15em; }
.blog-hero .lede { font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.55; opacity: 0.75; max-width: 42em; margin-top: 1.2rem; }

.blog-list { padding-bottom: clamp(3rem, 7vw, 6rem); }
.post-meta { display: flex; gap: 0.7rem; align-items: center; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; }
.post-cat { color: var(--pink); font-weight: 600; }
.post-date { color: rgba(38, 38, 38, 0.7); }
.post-more { display: inline-block; font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; margin-top: 1rem; transition: color 0.2s var(--ease); }

/* featured (latest) — big long card with a visual slot for a future image */
.blog-featured { display: grid; grid-template-columns: 1fr 1.05fr; border: 1px solid rgba(38,38,38,0.14); border-radius: var(--radius-card); overflow: hidden; text-decoration: none; color: var(--black); background: var(--white); margin-bottom: 1.4rem; transition: border-color 0.2s var(--ease), box-shadow 0.3s var(--ease); }
.blog-featured:hover { border-color: var(--black); box-shadow: 0 16px 40px rgba(38,38,38,0.09); }
.blog-featured:hover .post-more { color: var(--pink); }
.feat-visual { background: linear-gradient(135deg, #F7EF89, #F5CCE0 55%, #CFE3FF); min-height: 260px; }
.feat-body { padding: clamp(1.8rem, 3.5vw, 3rem); display: flex; flex-direction: column; justify-content: center; }
.blog-featured h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.7rem, 3.4vw, 2.7rem); line-height: 1.08; letter-spacing: -0.02em; margin: 0.5rem 0 0; }
.feat-excerpt { font-size: clamp(1rem, 1.3vw, 1.12rem); line-height: 1.6; opacity: 0.75; margin-top: 0.8rem; max-width: 42ch; }

/* older posts — small vertical cards (image slot on top for the future) */
.blog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.blog-card { display: block; border: 1px solid rgba(38,38,38,0.14); border-radius: var(--radius-card); overflow: hidden; text-decoration: none; color: var(--black); background: var(--white); transition: border-color 0.2s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.blog-card:hover { border-color: var(--black); transform: translateY(-3px); box-shadow: 0 14px 34px rgba(38,38,38,0.08); }
.blog-card:hover .post-more { color: var(--pink); }
.card-visual { display: block; aspect-ratio: 16 / 10; }
.card-body { padding: clamp(1.2rem, 2.4vw, 1.7rem); }
.blog-card h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.14; letter-spacing: -0.01em; margin: 0.5rem 0 0; }
.card-excerpt { font-size: 0.94rem; line-height: 1.55; opacity: 0.7; margin-top: 0.5rem; }

/* article */
.post-article { padding-top: clamp(4.5rem, 9vh, 7rem); padding-bottom: clamp(1rem, 2vw, 2rem); }
.post-crumb { font-size: 0.78rem; letter-spacing: 0.04em; opacity: 0.7; margin-bottom: clamp(1.5rem, 3vw, 2.2rem); }
.post-crumb a { color: inherit; text-decoration: none; }
.post-crumb a:hover { color: var(--pink); }
.post-head { max-width: 760px; margin: 0 auto; }
.post-head h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.1rem, 4.8vw, 3.5rem); line-height: 1.06; letter-spacing: -0.02em; margin: 0.8rem 0 0; }
.post-body { max-width: 700px; margin: clamp(1.8rem, 4vw, 2.8rem) auto 0; }
.post-body > p { font-size: clamp(1.05rem, 1.3vw, 1.18rem); line-height: 1.72; margin-bottom: 1.4rem; }
.post-answer { font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.6; font-weight: 500; padding-bottom: 0.6rem; }
.post-answer strong { font-weight: 700; }
.post-body h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 2.6vw, 2.05rem); line-height: 1.18; letter-spacing: -0.01em; margin: clamp(2.2rem, 4vw, 3rem) 0 0.9rem; }
.post-body h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; margin: 1.8rem 0 0.5rem; }
.post-body ul, .post-body ol { margin: 0 0 1.4rem 1.25rem; }
.post-body li { font-size: clamp(1.02rem, 1.25vw, 1.12rem); line-height: 1.65; margin-bottom: 0.55rem; }
.post-body li strong { font-weight: 600; }
.post-body p strong { font-weight: 600; }
.post-body a { color: var(--purple); text-decoration: underline; text-underline-offset: 3px; }
.post-body a:hover { text-decoration-thickness: 2px; }
/* article footer: prev/next issue cards (left) + a subtle CTA card (right) */
.post-foot { max-width: 760px; margin: clamp(2.5rem, 5vw, 4rem) auto clamp(3rem, 7vw, 5rem); display: grid; grid-template-columns: 1.4fr 1fr; gap: 1rem; align-items: stretch; }
.post-issues { display: grid; gap: 0.8rem; align-content: start; }
.issue-card { display: block; border: 1px solid rgba(38,38,38,0.14); border-radius: var(--radius-card); padding: 1rem 1.2rem; text-decoration: none; color: var(--black); background: var(--white); transition: border-color 0.2s var(--ease), transform 0.25s var(--ease); }
.issue-card:hover { border-color: var(--black); transform: translateY(-2px); }
.issue-dir { display: block; font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pink); font-weight: 600; margin-bottom: 0.35rem; }
.issue-card strong { font-family: var(--font-display); font-weight: 600; font-size: 1rem; line-height: 1.15; display: block; }
.issue-card em { font-style: normal; font-size: 0.82rem; opacity: 0.7; display: block; margin-top: 0.25rem; }
.issue-card.next { text-align: right; }
.post-cta { border-radius: var(--radius-card); padding: clamp(1.3rem, 2.6vw, 1.8rem); background: #f1f0fb; display: flex; flex-direction: column; justify-content: center; text-align: left; }
.post-cta strong { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; line-height: 1.2; }
.post-cta p { font-size: 0.85rem; opacity: 0.72; margin: 0.45rem 0 1rem; line-height: 1.45; }
.post-cta-btn { align-self: flex-start; background: var(--purple); color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; padding: 0.6rem 1.15rem; border-radius: var(--radius-pill); text-decoration: none; transition: background 0.2s var(--ease); }
.post-cta-btn:hover { background: var(--black); }
@media (max-width: 760px) {
  .blog-featured { grid-template-columns: 1fr; }
  .feat-visual { min-height: 170px; }
  .blog-grid { grid-template-columns: 1fr; }
  .post-foot { grid-template-columns: 1fr; }
  .issue-card.next { text-align: left; }
}

/* blog post FAQ block */
.post-faq { margin-top: 0.4rem; }
.faq-item { border-top: 1px solid rgba(38,38,38,0.12); padding: 1.15rem 0; }
.faq-item:last-child { border-bottom: 1px solid rgba(38,38,38,0.12); }
.faq-q { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; line-height: 1.28; margin: 0 0 0.4rem; }
.faq-a { font-size: clamp(1rem, 1.2vw, 1.1rem); line-height: 1.65; opacity: 0.82; margin: 0; }
.faq-a a { color: var(--purple); text-decoration: underline; text-underline-offset: 3px; }

/* typographic covers — title set on a soft brand colour; drop an <img> in later */
.feat-cover, .card-cover { display: flex; align-items: flex-end; padding: clamp(1.2rem, 2.2vw, 1.8rem); overflow: hidden; }
.card-cover { aspect-ratio: 16 / 10; }
.feat-cover { min-height: 260px; }
.feat-cover img, .card-cover img { width: 100%; height: 100%; object-fit: cover; }
.cover-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.25rem, 2.3vw, 1.7rem); line-height: 1.08; letter-spacing: -0.01em; color: var(--black); margin: 0; }
.cover-title-lg { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.7rem, 3.1vw, 2.9rem); line-height: 1.04; letter-spacing: -0.02em; color: var(--black); margin: 0; }
.cover-warm { background: linear-gradient(150deg, #FFE3AE, #F7C9E0); }
.cover-sky { background: linear-gradient(150deg, #C9DEFF, #DEDDFB); }
.cover-purple { background: linear-gradient(150deg, #E2E0FB, #F3D7EB); }
.cover-yellow { background: linear-gradient(150deg, #FBEAB2, #FAD3B6); }
.cover-pink { background: linear-gradient(150deg, #FBD2E4, #F3E4CB); }

/* mobile safety: let blog cards/headings shrink so nothing forces horizontal overflow */
@media (max-width: 760px) {
  .blog-card, .feat-cover, .feat-body, .card-body { min-width: 0; }
  .blog-hero h1, .blog-featured h2, .blog-card h3 { overflow-wrap: anywhere; }
}

/* Lenis smooth scroll */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* Keyboard focus — visible ring for keyboard navigation (accessibility) */
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 2px;
}

/* mobile: stack the newsletter so the form fields + button never get clipped */
@media (max-width: 600px) {
  .news-bar-inner { flex-direction: column; align-items: stretch; }
  .news-form { flex-direction: column; align-items: stretch; }
  .news-form input { min-width: 0; width: 100%; }
  .news-bar .news-form .btn { width: 100%; }
}
