/* ============================================================
   NATHAN ZIEMANSKI — PORTFOLIO
   Design system: dark charcoal / off-white, grotesque display
   type + mono labels, hairline rules, 4px radii.
   ============================================================ */

:root {
  /* color (space-separated RGB so we can alpha with rgb(x / a)) */
  --black: 0 0 0;
  --white: 255 255 255;
  --offBlack: 10 10 10;
  --dark: 26 28 28;
  --red: 231 93 96;
  --green: 208 255 126;
  --pink: 255 198 218;
  --blue: 220 242 244;
  --offWhite: 249 244 235;

  --bgPrimary: var(--dark);
  --textPrimary: var(--offWhite);
  --hairline: rgb(var(--offWhite) / 0.14);

  /* layout */
  --margin: 2.5rem;
  --gutter: 1.5rem;

  /* fluid spacing scale */
  --spacing-xs: max(0.5rem, calc(12 / 1440 * 100vw));
  --spacing-sm: max(0.75rem, calc(16 / 1440 * 100vw));
  --spacing-md: max(1rem, calc(24 / 1440 * 100vw));
  --spacing-lg: max(1.5rem, calc(32 / 1440 * 100vw));
  --spacing-xl: max(2rem, calc(48 / 1440 * 100vw));
  --spacing-2xl: max(3rem, calc(64 / 1440 * 100vw));

  --section-sm: max(2.5rem, calc(80 / 1440 * 100vw));
  --section-md: max(3.75rem, calc(120 / 1440 * 100vw));
  --section-lg: max(5rem, calc(160 / 1440 * 100vw));
  --section-xl: max(6.25rem, calc(200 / 1440 * 100vw));
  --section-4xl: max(10rem, calc(320 / 1440 * 100vw));

  --font-sans: "Archivo", Helvetica, Arial, sans-serif;
  --font-mono: "Sometype Mono", "SF Mono", Menlo, monospace;

  --radius: 4px;
  --nav-h: 64px;
}

/* light theme (footer toggle; default on case-study pages) */
html.theme-light {
  --bgPrimary: var(--offWhite);
  --textPrimary: var(--dark);
  --hairline: rgb(var(--dark) / 0.16);
  --navBg: var(--offWhite);
  --navText: var(--offBlack);
}
:root {
  --navBg: var(--offBlack);
  --navText: var(--offWhite);
}

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

/* the hidden attribute always wins, even over display rules */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

/* hard guard against horizontal pan — `clip` also works on iOS
   Safari, where overflow-x:hidden on body alone is ignored */
html, body { overflow-x: hidden; overflow-x: clip; }

body {
  background: rgb(var(--bgPrimary));
  color: rgb(var(--textPrimary));
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.5s ease, color 0.5s ease;
  overflow-x: hidden;
}

::selection { background: rgb(var(--red)); color: rgb(var(--offWhite)); }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }

/* ---------- type ---------- */

.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 500;
}

.display {
  font-family: var(--font-sans);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.92;
}

.display--xl { font-size: clamp(3rem, 7.5vw, 8rem); }
.display--lg { font-size: clamp(2.5rem, 5.6vw, 6rem); }

.body-lg {
  font-size: clamp(1.25rem, 1.9vw, 1.75rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: 400;
}

.body-md { font-size: clamp(1rem, 1.2vw, 1.185rem); line-height: 1.45; }

.dim { opacity: 0.65; }

/* ---------- shell ---------- */

.shell { padding: 0 var(--margin); }
@media (max-width: 767px) { :root { --margin: 1rem; } }

main { position: relative; z-index: 1; }

/* ============================================================
   PRELOADER
   ============================================================ */

.preloader {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 200;
  background: rgb(var(--offBlack));
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader .mono { color: rgb(var(--offWhite)); font-size: 13px; }

/* ============================================================
   NAVBAR — floating pill, top center
   ============================================================ */

.navbar {
  position: fixed;
  top: 16px; left: 50%;
  transform: translateX(-50%);
  width: min(546px, calc(100vw - 2rem));
  z-index: 100;
  background: rgb(var(--navBg));
  color: rgb(var(--navText));
  border-radius: var(--radius);
  transition: box-shadow 0.3s ease, background-color 0.5s ease, color 0.5s ease;
}
html.theme-light .navbar { box-shadow: 0 4px 24px rgb(var(--offBlack) / 0.08); }
.navbar__bar {
  position: relative;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px 0 16px;
}

/* pixel logo — 4x4 grid, patterns swapped by JS */
.pixlogo {
  display: grid;
  grid-template-columns: repeat(4, 7px);
  grid-template-rows: repeat(4, 7px);
  gap: 1px;
}
.pixlogo i {
  background: rgb(var(--navText));
  opacity: 0;
  transition: opacity 0.18s ease;
}
.pixlogo i.on { opacity: 1; }

.navbar__label {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.nav-open .navbar__label { opacity: 0; }

.menu-toggle {
  width: 40px; height: 40px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 5px;
}
.menu-toggle span {
  display: block; width: 20px; height: 2px;
  background: rgb(var(--navText));
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-open .menu-toggle span:nth-child(1) { transform: translateY(3.5px); }
.nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
.nav-open .menu-toggle span:nth-child(3) { transform: translateY(-3.5px); }

/* dropdown menu — expands from the pill */
.navbar__menu {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s cubic-bezier(0.65, 0, 0.35, 1);
}
.nav-open .navbar__menu { grid-template-rows: 1fr; }
.navbar__menu > div { overflow: hidden; }

.navbar__links { border-top: 1px solid rgb(var(--navText) / 0.12); }
.navbar__links a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 16px;
  font-size: 22px;
  letter-spacing: -0.01em;
  border-bottom: 1px solid rgb(var(--navText) / 0.12);
  transition: padding-left 0.25s ease, background 0.25s ease;
}
.navbar__links a:hover { padding-left: 26px; background: rgb(var(--navText) / 0.05); }
.navbar__links a .mono { opacity: 0.5; }

.navbar__ctas { padding: 16px; display: grid; gap: 8px; }
.btn-outline {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid rgb(var(--navText) / 0.3);
  border-radius: var(--radius);
  padding: 16px;
  transition: background 0.25s, color 0.25s;
}
.btn-outline:hover { background: rgb(var(--navText) / 0.08); }
.navbar__ctas-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.btn-solid {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: rgb(var(--navText));
  color: rgb(var(--navBg));
  border-radius: var(--radius);
  padding: 18px 16px;
  transition: opacity 0.25s;
}
.btn-solid:hover { opacity: 0.85; }

/* page blur when menu open */
.backdrop {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 90;
  background: rgb(var(--offBlack) / 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s ease;
}
.nav-open .backdrop { opacity: 1; pointer-events: auto; }

/* ============================================================
   SIDE CARD STACK — top right
   ============================================================ */

.stack {
  position: fixed;
  top: 16px; right: 16px;
  z-index: 80;
  width: 200px;
  display: flex; flex-direction: column; gap: 2px;
}
@media (max-width: 1023px) { .stack { display: none; } }

.stack__card {
  border-radius: var(--radius);
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.stack__card.is-in { opacity: 1; transform: none; }

.stack__cta {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  background: #b3aea6;
  color: rgb(var(--offBlack));
  padding: 17px 12px;
}
.stack__cta .avatar {
  width: 34px; height: 34px;
  border-radius: 2px;
  background: linear-gradient(135deg, #7a7a72, #4a4a44);
  flex-shrink: 0;
}
.stack__cta:hover { background: #c4bfb6; }

.stack__item {
  background: rgb(var(--offBlack));
  color: rgb(var(--offWhite));
  width: 100%;
}
.stack__item-head {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 12px;
}
.stack__item-body {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}
.stack__item.is-open .stack__item-body { grid-template-rows: 1fr; }
.stack__item-body > div { overflow: hidden; }
.stack__media {
  margin: 0 8px 8px;
  height: 200px;
  border-radius: 2px;
  background:
    repeating-linear-gradient(45deg, rgb(var(--offWhite) / 0.05) 0 8px, transparent 8px 16px),
    #202222;
  display: flex; align-items: center; justify-content: center;
}
.stack__media span { opacity: 0.45; }

/* ============================================================
   INFO BAR — fixed bottom
   ============================================================ */

.infobar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 70;
  padding: 0 var(--margin);
  background: linear-gradient(to top, rgb(var(--bgPrimary)) 60%, rgb(var(--bgPrimary) / 0));
}
.infobar__inner {
  border-top: 1px solid var(--hairline);
  height: 56px;
  display: grid;
  grid-template-columns: 1.6fr 1.6fr 1.6fr 1fr 1fr 1fr auto;
  align-items: center;
  gap: var(--gutter);
}
.infobar .mono { white-space: nowrap; }
.infobar__clock .dot {
  display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: rgb(var(--red));
  margin: 0 2px 1px;
  animation: blink 1.2s steps(2, start) infinite;
}
@keyframes blink { 50% { opacity: 0.15; } }

.infobar a.mono:hover { opacity: 0.6; }

.theme-toggle {
  width: 26px; height: 14px;
  border-radius: 999px;
  background: rgb(var(--textPrimary) / 0.25);
  position: relative;
  justify-self: end;
}
.theme-toggle::after {
  content: "";
  position: absolute; top: 2px; left: 2px;
  width: 10px; height: 10px; border-radius: 50%;
  background: rgb(var(--bgPrimary));
  transition: transform 0.25s ease;
}
html.theme-light .theme-toggle::after { transform: translateX(12px); }

@media (max-width: 900px) {
  .infobar__inner { grid-template-columns: 1fr 1fr auto; }
  .infobar .hide-sm { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-bottom: calc(56px + var(--spacing-2xl));
  position: relative;
}
.hero__tag { margin-bottom: var(--spacing-lg); display: block; }
.hero__row {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
  gap: var(--gutter);
  align-items: end;
}
.hero__intro { max-width: 26em; }
@media (max-width: 900px) {
  .hero__row { grid-template-columns: 1fr; }
}

/* ============================================================
   WORK LIST
   ============================================================ */

.work { padding-top: var(--section-4xl); }
.work__tag { display: block; margin-bottom: var(--spacing-lg); }

.case {
  border-top: 1px solid var(--hairline);
  position: relative;
}
.case:last-child { border-bottom: 1px solid var(--hairline); }

.case__row {
  display: grid;
  grid-template-columns: minmax(180px, 2fr) minmax(0, 3fr) auto minmax(0, 4fr);
  align-items: center;
  gap: var(--gutter);
  padding: var(--spacing-xl) 0;
  width: 100%;
  text-align: left;
}
.case__name {
  font-size: clamp(1.25rem, 1.8vw, 1.65rem);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.case__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 6px 9px;
  border: 1px solid var(--hairline);
  border-radius: 2px;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.case:hover .chip,
.case.is-open .chip {
  background: rgb(var(--textPrimary));
  color: rgb(var(--bgPrimary));
  border-color: rgb(var(--textPrimary));
}
.case__plus { justify-self: start; transition: opacity 0.2s; }
.case__row:hover .case__plus { opacity: 0.6; }

.case__thumbs {
  display: flex; gap: 8px;
  justify-content: flex-end;
  overflow: hidden;
}
.thumb {
  position: relative;
  overflow: hidden;
  width: 96px; height: 118px;
  flex-shrink: 0;
  border-radius: 3px;
  background:
    repeating-linear-gradient(45deg, rgb(var(--textPrimary) / 0.06) 0 10px, transparent 10px 20px),
    rgb(var(--textPrimary) / 0.07);
  display: flex; align-items: flex-end; justify-content: flex-start;
  padding: 6px;
}
.thumb img {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.thumb .mono { font-size: 9px; opacity: 0.4; }
.thumb:nth-child(2n) { background:
    repeating-linear-gradient(-45deg, rgb(var(--textPrimary) / 0.05) 0 10px, transparent 10px 20px),
    rgb(var(--textPrimary) / 0.1); }

.case__detail {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s cubic-bezier(0.65, 0, 0.35, 1);
}
.case.is-open .case__detail { grid-template-rows: 1fr; }
.case__detail > div { overflow: hidden; }
.case__detail-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 4fr);
  gap: var(--gutter);
  padding-bottom: var(--spacing-xl);
}
.case__detail p { max-width: 34em; }
.case__links { display: flex; gap: 8px; align-items: flex-start; justify-content: flex-end; }
.case__links .chip:hover { background: rgb(var(--textPrimary)); color: rgb(var(--bgPrimary)); }

@media (max-width: 900px) {
  .case__row { grid-template-columns: 1fr auto; }
  .case__thumbs { display: none; }
  .case__detail-inner { grid-template-columns: 1fr; }
}

/* ============================================================
   SERVICES — dotted backdrop
   ============================================================ */

.services {
  margin-top: var(--section-4xl);
  padding-top: var(--section-lg);
  padding-bottom: var(--section-lg);
  background-image: radial-gradient(rgb(var(--textPrimary) / 0.14) 1px, transparent 1.4px);
  background-size: 14px 14px;
}
.services h2 { margin-bottom: var(--spacing-2xl); }

.services__chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: var(--spacing-xl); }
.chip-lg {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid rgb(var(--textPrimary) / 0.35);
  background: rgb(var(--bgPrimary));
  border-radius: var(--radius);
  padding: 14px 18px;
  transition: background 0.25s, color 0.25s;
}
.chip-lg:hover { background: rgb(var(--textPrimary)); color: rgb(var(--bgPrimary)); }

.services__lede { max-width: 30em; margin-bottom: var(--spacing-2xl); }

.services__contact {
  display: flex; align-items: center; gap: var(--spacing-lg);
  border-top: 1px solid var(--hairline);
  padding-top: var(--spacing-lg);
  margin-bottom: var(--section-md);
  flex-wrap: wrap;
}
.pill-contact {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgb(var(--offBlack));
  color: rgb(var(--offWhite));
  border-radius: var(--radius);
  padding: 15px 18px;
  white-space: nowrap;
}
.pill-contact .mono { line-height: 1; }
.pill-contact .avatar {
  width: 32px; height: 32px; border-radius: 2px;
  background: linear-gradient(135deg, #7a7a72, #4a4a44);
}
.pill-contact .icon-mail {
  display: block;
  width: 17px; height: 17px;
  flex-shrink: 0;
}
.pill-contact:hover { opacity: 0.85; }

.services__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gutter);
}
.services__col .mono { display: block; margin-bottom: var(--spacing-md); opacity: 0.6; }
.services__col li { padding: 7px 0; font-size: clamp(1rem, 1.15vw, 1.125rem); }
@media (max-width: 900px) { .services__cols { grid-template-columns: 1fr; gap: var(--spacing-xl); } }

/* ============================================================
   CLIENTS
   ============================================================ */

.clients { padding-top: var(--section-lg); }
.clients__tag { display: block; margin-bottom: var(--spacing-lg); }
.clients__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-left: 1px solid var(--hairline);
  border-top: 1px solid var(--hairline);
}
.clients__cell {
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  aspect-ratio: 2.4 / 1;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: clamp(0.9rem, 1.3vw, 1.25rem);
  opacity: 0.75;
  transition: opacity 0.25s, background 0.25s;
}
.clients__cell:hover { opacity: 1; background: rgb(var(--textPrimary) / 0.04); }
.clients__cell img {
  /* fixed px caps: iOS Safari ignores %-height inside aspect-ratio cells */
  max-height: 44px;
  max-width: 58%;
  object-fit: contain;
  /* render any logo as an off-white silhouette on the dark theme */
  filter: brightness(0) invert(0.96) sepia(0.06);
}
html.theme-light .clients__cell img {
  /* and as near-black ink on the light theme */
  filter: brightness(0) opacity(0.85);
}
/* if the logo image is present, hide the text name; the img's
   onerror handler removes it so the name shows for missing files */
.clients__cell:has(img) .clients__name { display: none; }

/* logos that keep their own artwork but desaturated to 0%
   (skip the monochrome silhouette filter) */
.clients__cell img.logo-color { filter: saturate(0); max-height: 60px; }
@media (max-width: 900px) {
  .clients__grid { grid-template-columns: repeat(2, 1fr); }
  .clients__cell img { max-height: 36px; }
  .clients__cell img.logo-color { max-height: 48px; }
}
@media (max-width: 480px) {
  .clients__cell img { max-height: 28px; }
  .clients__cell img.logo-color { max-height: 38px; }
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */

.testimonials { padding-top: var(--section-4xl); }
.testimonials__tag { display: block; margin-bottom: var(--spacing-lg); }
.testimonials h2 { margin-bottom: var(--spacing-2xl); max-width: 10em; }

.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gutter);
}
.quote-card {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: var(--spacing-lg);
  display: flex; flex-direction: column;
  gap: var(--spacing-lg);
  transition: background 0.25s ease;
}
.quote-card:hover { background: rgb(var(--textPrimary) / 0.04); }
.quote-card blockquote {
  margin: 0;
  font-size: clamp(1rem, 1.2vw, 1.185rem);
  line-height: 1.45;
  flex: 1;
}
.quote-card blockquote::before { content: "\201C"; display: block; font-family: var(--font-sans); font-weight: 700; font-size: 2rem; line-height: 1; margin-bottom: 8px; opacity: 0.35; }
.quote-card figcaption {
  display: flex; align-items: center; gap: 10px;
  border-top: 1px solid var(--hairline);
  padding-top: var(--spacing-md);
}
.quote-card .avatar {
  width: 34px; height: 34px; border-radius: 2px; flex-shrink: 0;
  background: linear-gradient(135deg, #9a958c, #6a655c);
}
.quote-card .who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.quote-card .who .mono { opacity: 0.55; }
@media (max-width: 1100px) { .quote-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .quote-grid { grid-template-columns: 1fr; } }

/* ============================================================
   ABOUT / CULTURE
   ============================================================ */

.about { padding-top: var(--section-4xl); }
.about__tag { display: block; max-width: 16em; margin-bottom: var(--spacing-xl); }
.about__media {
  position: relative;
  overflow: hidden;
  height: min(70vh, 640px);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(45deg, rgb(var(--textPrimary) / 0.05) 0 14px, transparent 14px 28px),
    rgb(var(--textPrimary) / 0.06);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--spacing-2xl);
}
.about__media img {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

/* handwritten aside (e.g. the About headline's wedding line) */
.handwritten {
  display: inline-block;
  font-family: "Caveat", cursive;
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.1;
  margin-top: 0.4em;
  color: rgb(var(--pink));
  transform: rotate(-2deg);
}
.about__media span { opacity: 0.45; }
.about__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--gutter);
  align-items: start;
}
.about__row p { max-width: 24em; }
@media (max-width: 900px) { .about__row { grid-template-columns: 1fr; gap: var(--spacing-xl); } }

/* ============================================================
   CONTACT
   ============================================================ */

.contact {
  padding-top: var(--section-4xl);
  padding-bottom: calc(56px + var(--section-lg));
}
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--gutter);
  align-items: start;
}
.contact h2 { margin-bottom: var(--spacing-2xl); }
.contact__right .mono { display: block; margin-bottom: var(--spacing-xl); }
.contact__right p { margin-bottom: var(--spacing-2xl); max-width: 22em; }
.contact__btns { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } }

/* ============================================================
   AMBIENT BACKDROP — heavily blurred active-case imagery
   behind the whole page, crossfading as the deck advances
   ============================================================ */

.ambient {
  position: fixed;
  top: -8%; right: -8%; bottom: -8%; left: -8%;
  z-index: 0;
  pointer-events: none;
}
.ambient img {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.12);
  filter: blur(72px) saturate(1.35) brightness(0.32);
  opacity: 0;
  transition: opacity 1.4s ease;
}
.ambient img.is-on { opacity: 0.55; }
html.theme-light .ambient img { filter: blur(72px) saturate(1.1) brightness(1.08); }
html.theme-light .ambient img.is-on { opacity: 0.28; }
@media (prefers-reduced-motion: reduce) {
  .ambient img { transition: opacity 0.2s ease; }
}

/* ============================================================
   WORK DECK — stacked-card project showcase (pages/work.html)
   ============================================================ */

.deck {
  position: relative;
  padding-top: 56px;
  max-width: min(1000px, 100%);
  margin: 0 auto;
}
.deck__stage, .deck__card, .deck__card img { max-width: 100%; }
.deck__stage {
  position: relative;
  aspect-ratio: 1.9 / 1;
  min-height: 240px;
  touch-action: pan-y;
  /* clip exiting cards at the stage's bottom edge so they tuck
     away instead of sliding over the meta row; negative top keeps
     the peeking cards visible */
  clip-path: inset(-56px 0 0 0);
}
.deck__card img { pointer-events: none; }
.deck__card {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgb(var(--textPrimary) / 0.06);
  cursor: pointer;
  transform-origin: top center;
  transition:
    transform 0.65s cubic-bezier(0.65, 0, 0.13, 1),
    opacity 0.65s cubic-bezier(0.65, 0, 0.13, 1),
    filter 0.65s ease;
}
.deck__card img {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.deck__card .deck__badge {
  position: absolute; top: 14px; left: 14px;
  background: rgb(var(--offBlack) / 0.75);
  color: rgb(var(--offWhite));
  padding: 7px 10px;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.02em; text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.4s ease 0.3s;
}
/* depth stack: active card front, next two peeking above */
.deck__card[data-depth="0"] { transform: none; z-index: 4; opacity: 1; }
.deck__card[data-depth="0"] .deck__badge { opacity: 1; }
.deck__card[data-depth="1"] { transform: translateY(-18px) scaleX(0.955); z-index: 3; filter: brightness(0.45) saturate(0.6); }
.deck__card[data-depth="2"] { transform: translateY(-34px) scaleX(0.91); z-index: 2; filter: brightness(0.22) saturate(0.4); }
.deck__card[data-depth="deep"] { transform: translateY(-46px) scaleX(0.87); z-index: 1; opacity: 0; pointer-events: none; }
.deck__card.is-exiting { transform: translateY(7vh) scale(0.985); opacity: 0; z-index: 5; pointer-events: none; }
.deck__card.is-entering { transform: translateY(7vh) scale(0.985); opacity: 0; z-index: 5; transition: none; }

/* meta row under the stage */
.deck__meta {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) auto;
  gap: var(--gutter);
  align-items: start;
  padding-top: var(--spacing-lg);
}
.deck__counter { display: block; margin-bottom: 10px; opacity: 0.5; }
.deck__name {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 4.4vw, 4rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.95;
}
.deck__desc { max-width: 34em; margin-bottom: var(--spacing-md); }
.deck__links { display: flex; gap: 6px; flex-wrap: wrap; }
.deck__next { align-self: start; }
/* text swap animation */
.deck__swap { transition: opacity 0.22s ease, transform 0.22s ease; }
.deck__meta.is-swapping .deck__swap { opacity: 0; transform: translateY(14px); }

@media (max-width: 900px) {
  .deck__meta { grid-template-columns: 1fr; }
  .deck__next { order: -1; justify-self: end; }
}
@media (prefers-reduced-motion: reduce) {
  .deck__card, .deck__swap { transition: none; }
}

/* collapsible full index below the deck */
.deck-index { padding-top: var(--section-sm); }
.deck-index__toggle { display: flex; justify-content: center; }
.deck-index__body {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s cubic-bezier(0.65, 0, 0.35, 1);
}
.deck-index.is-open .deck-index__body { grid-template-rows: 1fr; }
.deck-index__body > div { overflow: hidden; }
.deck-index__grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 var(--gutter);
  padding-top: var(--spacing-lg);
}
.deck-index__grid a {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 12px 4px;
  border-bottom: 1px solid var(--hairline);
  transition: padding-left 0.2s ease;
}
.deck-index__grid a:hover { padding-left: 12px; }
@media (max-width: 700px) { .deck-index__grid { grid-template-columns: 1fr; } }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ============================================================
   SUBPAGES
   ============================================================ */

.page-head {
  padding-top: calc(var(--nav-h) + var(--section-xl));
  padding-bottom: var(--section-md);
}
.page-head > .mono { display: block; margin-bottom: var(--spacing-lg); }
.pill-contact .mono { margin: 0; }

.form { display: grid; gap: 20px; max-width: 560px; }
.form label { display: grid; gap: 8px; }
.form input, .form textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  color: inherit;
  font: inherit;
  padding: 10px 0;
  outline: none;
}
.form input:focus, .form textarea:focus { border-color: rgb(var(--textPrimary)); }
.form textarea { min-height: 120px; resize: vertical; }

/* ============================================================
   MOBILE REFINEMENTS
   ============================================================ */

/* Calendly's default 320px min-width overflows the smallest phones */
.cal-embed .calendly-inline-widget { min-width: 0 !important; }

@media (max-width: 640px) {
  /* display type: scale with viewport so the longest words
     ("CONNOISSEUR.", "MANAGEMENT.") never overflow */
  .display--xl { font-size: clamp(2.1rem, 11vw, 3rem); }
  .display--lg { font-size: clamp(1.8rem, 9.5vw, 2.5rem); }

  /* slimmer fixed bottom bar */
  .infobar__inner {
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    height: 48px;
  }
  .infobar .mono { font-size: 10px; }
  .infobar__clock { justify-self: center; }
}

@media (max-width: 480px) {
  .infobar .hide-xs { display: none; }
}

@media (max-width: 768px) {
  /* lighter ambient blur for mobile GPUs */
  .ambient img { filter: blur(44px) saturate(1.3) brightness(0.32); }
  html.theme-light .ambient img { filter: blur(44px) saturate(1.1) brightness(1.08); }
}

.cal-embed {
  margin-top: var(--spacing-md);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
}

/* contact page-head CTA row */
.page-head__ctas {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: var(--spacing-lg);
}
.page-head__ctas .btn-outline { display: inline-flex; }

/* ============================================================
   LOCATION CARD — glass map panel (reusable; see js/location-card.js)
   ============================================================ */

.loc-card {
  position: relative;
  height: 300px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  transition: border-color 0.3s ease;
}
.loc-card:hover { border-color: rgb(var(--green) / 0.4); }

.loc-card__map-wrap { position: absolute; top: 0; right: 0; bottom: 0; left: 0; isolation: isolate; }
.loc-card__map {
  height: 100%; width: 100%;
  background: #141616;
  filter: brightness(0.92) saturate(0.85);
}

.loc-card__scrim {
  pointer-events: none;
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 10;
  background:
    linear-gradient(to top, rgba(20, 22, 22, 0.88), transparent 34%),
    linear-gradient(rgba(20, 22, 22, 0.55), transparent 26%);
}

.loc-card__top {
  pointer-events: none;
  position: absolute; top: 0; right: 0; bottom: auto; left: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px;
}
.loc-card__badge {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.02em;
}
.loc-card__clock {
  font-family: var(--font-mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: rgb(var(--offWhite) / 0.75);
}
.loc-card__clock .dot {
  display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: rgb(var(--red));
  margin: 0 2px 1px;
  animation: blink 1.2s steps(2, start) infinite;
}
.loc-card__clock .tz { color: rgb(var(--offWhite) / 0.4); }

.loc-card__bottom {
  pointer-events: none;
  position: absolute; top: auto; right: 0; bottom: 0; left: 0; z-index: 20;
  padding: 16px;
}
.loc-card__city {
  font-family: var(--font-sans);
  font-size: clamp(1.4rem, 1.8vw, 1.65rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
  color: rgb(var(--offWhite));
}
.loc-card__meta {
  margin-top: 6px;
  display: flex; flex-wrap: wrap; align-items: baseline;
  justify-content: space-between; gap: 8px;
}
.loc-card__country {
  font-family: var(--font-mono);
  font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.02em; color: rgb(var(--offWhite) / 0.55);
}
.loc-card__coords {
  font-family: var(--font-mono);
  font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.02em; color: rgb(var(--offWhite) / 0.4);
}
.loc-card__attrib {
  pointer-events: none;
  position: absolute; right: 12px; top: 44px; z-index: 20;
  font-family: var(--font-mono);
  font-size: 8px; color: rgb(var(--offWhite) / 0.25);
}

.loc-marker { position: relative; width: 14px; height: 14px; }
.loc-marker .core {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; border-radius: 9999px;
  background: var(--loc-c);
  box-shadow: 0 0 14px var(--loc-c);
}
.loc-marker .ring {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; border-radius: 9999px;
  border: 1px solid var(--loc-c);
  animation: locPing 2.2s ease-out infinite;
}
@keyframes locPing {
  0% { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(3.6); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .loc-marker .ring { animation: none; opacity: 0; }
}

/* ============================================================
   CASE STUDY TEMPLATE (light-mode default pages)
   ============================================================ */

.case-hero {
  padding-top: calc(var(--nav-h) + var(--section-md));
  padding-bottom: var(--section-sm);
  text-align: center;
}
.case-hero .mono { display: block; margin-bottom: var(--spacing-lg); }
.case-hero h1 { margin: 0 auto var(--spacing-xl); max-width: 11em; }
.case-hero__chips { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.case-hero__chips .chip {
  background: rgb(var(--textPrimary));
  color: rgb(var(--bgPrimary));
  border-color: rgb(var(--textPrimary));
}

.rule { border: 0; border-top: 1px solid var(--hairline); margin: var(--section-xs) 0; }

/* full-bleed media band */
.media-band {
  position: relative;
  overflow: hidden;
  margin: 0 var(--margin);
  height: min(78vh, 700px);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  background:
    repeating-linear-gradient(45deg, rgb(var(--offBlack) / 0.16) 0 16px, transparent 16px 32px),
    rgb(var(--offBlack) / 0.12);
}
.media-band .media-band__img {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.media-band--green { background:
    repeating-linear-gradient(45deg, rgb(var(--offBlack) / 0.14) 0 16px, transparent 16px 32px),
    rgb(var(--green)); }
.media-band--pink { background:
    repeating-linear-gradient(45deg, rgb(var(--offBlack) / 0.1) 0 16px, transparent 16px 32px),
    rgb(var(--pink)); }
.media-band--blue { background:
    repeating-linear-gradient(45deg, rgb(var(--offBlack) / 0.1) 0 16px, transparent 16px 32px),
    rgb(var(--blue)); }
.media-band span { color: rgb(var(--offBlack) / 0.55); font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; }

/* big lede */
.case-lede { padding-top: var(--section-md); }
.case-lede__main {
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-weight: 500;
  max-width: 24em;
  margin-bottom: var(--spacing-xl);
}
.case-lede__sub { max-width: 38em; margin-bottom: var(--spacing-xl); }

/* role card */
.role-card {
  display: inline-flex; align-items: center; gap: 12px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 10px 16px 10px 10px;
}
.role-card .avatar {
  width: 36px; height: 36px; border-radius: 2px;
  background: linear-gradient(135deg, #9a958c, #6a655c);
}

/* stats */
.stats { padding-top: var(--section-md); }
.stats__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: var(--gutter);
  border-top: 1px solid var(--hairline);
  padding: var(--spacing-lg) 0;
}
.stats__row:last-child { border-bottom: 1px solid var(--hairline); }
.stats__value {
  font-family: var(--font-sans);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: clamp(2rem, 4.5vw, 4.5rem);
  line-height: 1;
}

/* photo cards */
.photo-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gutter);
  padding-top: var(--section-md);
}
.photo-cards figure { margin: 0; }
.photo-cards .ph {
  position: relative;
  overflow: hidden;
  height: min(52vh, 460px);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(-45deg, rgb(var(--textPrimary) / 0.08) 0 12px, transparent 12px 24px),
    rgb(var(--textPrimary) / 0.07);
  display: flex; align-items: center; justify-content: center;
}
.photo-cards .ph img {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.photo-cards .ph span { opacity: 0.5; }
.photo-cards figcaption { padding-top: 10px; }
.photo-cards figure:only-child { grid-column: 1 / -1; }
@media (max-width: 900px) { .photo-cards { grid-template-columns: 1fr; } }

/* numbered process rows */
.process { padding-top: var(--section-lg); }
.process__intro { max-width: 34em; margin-bottom: var(--section-xs); }
.step { border-top: 1px solid var(--hairline); }
.step:last-child { border-bottom: 1px solid var(--hairline); }
.step__head {
  width: 100%;
  display: flex; align-items: baseline; justify-content: space-between;
  gap: var(--gutter);
  padding: var(--spacing-xl) 0 var(--spacing-md);
  text-align: left;
}
.step__title {
  font-family: var(--font-sans);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: clamp(1.8rem, 3.8vw, 3.4rem);
  line-height: 1;
}
.step__title .num { margin-right: 0.35em; }
.step__tag { display: block; padding-bottom: var(--spacing-md); }
.step__body {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s cubic-bezier(0.65, 0, 0.35, 1);
}
.step.is-open .step__body { grid-template-rows: 1fr; }
.step__body > div { overflow: hidden; }
.step__inner {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: var(--gutter);
  padding-bottom: var(--spacing-xl);
}
.step__inner ul li { padding: 4px 0; font-size: clamp(1rem, 1.2vw, 1.2rem); }
.step__inner p { max-width: 30em; }
@media (max-width: 900px) { .step__inner { grid-template-columns: 1fr; gap: var(--spacing-lg); } }

/* closing statement */
.statement { padding-top: var(--section-lg); }
.statement h2 { max-width: 14em; margin-bottom: var(--spacing-lg); }
.statement p { max-width: 34em; margin-bottom: var(--spacing-xl); }

/* related work */
.related { padding-top: var(--section-lg); }
.related__tag { display: block; margin-bottom: var(--spacing-lg); }
.view-all { display: flex; justify-content: center; padding: var(--spacing-2xl) 0 0; }

/* ============================================================
   WORK WITH ME — services landing page
   ============================================================ */

/* visible focus for keyboard users (site-wide win, required here) */
a:focus-visible, button:focus-visible {
  outline: 2px solid rgb(var(--red));
  outline-offset: 2px;
  border-radius: var(--radius);
}

/* hero CTAs — bigger siblings of btn-solid/btn-outline */
.cta-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: var(--spacing-xl);
}
.cta-lg {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgb(var(--textPrimary));
  color: rgb(var(--bgPrimary));
  border-radius: var(--radius);
  padding: 19px 26px;
  transition: opacity 0.25s;
}
.cta-lg:hover { opacity: 0.85; }
.cta-lg .mono { font-size: 13px; }
.cta-lg--ghost {
  background: transparent;
  color: rgb(var(--textPrimary));
  border: 1px solid rgb(var(--textPrimary) / 0.35);
  transition: background 0.25s, color 0.25s;
}
.cta-lg--ghost:hover { opacity: 1; background: rgb(var(--textPrimary)); color: rgb(var(--bgPrimary)); }
.wwm-trust { display: block; margin-top: var(--spacing-lg); opacity: 0.55; max-width: 46em; }

/* generic bordered card — services, pricing */
.wwm-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gutter);
}
.wwm-card {
  position: relative;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: var(--spacing-lg);
  display: flex; flex-direction: column; gap: var(--spacing-md);
  transition: background 0.25s ease;
}
.wwm-card:hover { background: rgb(var(--textPrimary) / 0.04); }
.wwm-card > .mono { opacity: 0.55; }
.wwm-card h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: clamp(1.3rem, 1.8vw, 1.8rem);
  line-height: 1;
}
.wwm-card ul { display: grid; gap: 2px; }
.wwm-card ul li {
  padding: 5px 0 5px 1.1em;
  position: relative;
  font-size: clamp(0.95rem, 1.1vw, 1.1rem);
}
.wwm-card ul li::before {
  content: "+";
  position: absolute; left: 0;
  font-family: var(--font-mono);
  opacity: 0.5;
}
.wwm-card__meta { border-top: 1px solid var(--hairline); padding-top: var(--spacing-md); opacity: 0.65; }
.wwm-card__cta { margin-top: auto; }
.wwm-card__cta .btn-outline,
.wwm-card__cta .btn-solid { display: flex; }
.wwm-badge {
  position: absolute; top: 14px; right: 14px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgb(var(--offBlack));
  background: rgb(var(--green));
  border-radius: 2px;
  padding: 5px 8px;
}
.wwm-price {
  font-family: var(--font-sans);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: 1;
}
.wwm-price .mono { opacity: 0.5; }

/* problem → fix + after-launch choice strips */
.wwm-choice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gutter);
  margin-top: var(--spacing-2xl);
}
.wwm-choice > div {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: var(--spacing-lg);
}
.wwm-choice .mono { display: block; margin-bottom: var(--spacing-sm); }
.wwm-choice > div:first-child .mono { color: rgb(var(--green)); }
.wwm-choice > div:last-child .mono { color: rgb(var(--pink)); }
html.theme-light .wwm-choice > div:first-child .mono { color: rgb(var(--dark)); }
html.theme-light .wwm-choice > div:last-child .mono { color: rgb(var(--dark)); }
.wwm-choice p { max-width: 30em; }

/* showcase — the proof engine */
.wwm-show {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: calc(var(--gutter) * 2) var(--gutter);
  padding-top: var(--spacing-2xl);
}
.wwm-show__card { display: block; }
.wwm-show__card--wide { grid-column: 1 / -1; }
.wwm-show__media {
  position: relative;
  overflow: hidden;
  height: min(44vh, 400px);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(-45deg, rgb(var(--textPrimary) / 0.08) 0 12px, transparent 12px 24px),
    rgb(var(--textPrimary) / 0.07);
}
.wwm-show__card--wide .wwm-show__media { height: min(58vh, 540px); }
.wwm-show__media img {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.wwm-show__card:hover .wwm-show__media img { transform: scale(1.03); }
.wwm-show__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--gutter);
  padding-top: var(--spacing-md);
}
.wwm-show__head h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: clamp(1.2rem, 1.7vw, 1.7rem);
  line-height: 1;
}
.wwm-show__card p { margin-top: 6px; max-width: 36em; }
.wwm-show__outcome { display: block; margin-top: 10px; opacity: 0.55; }

/* process — numbered rows, no toggle */
.wwm-step {
  border-top: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--gutter);
  align-items: baseline;
  padding: var(--spacing-xl) 0;
}
.wwm-step:last-of-type { border-bottom: 1px solid var(--hairline); }
.wwm-step h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: clamp(1.5rem, 2.8vw, 2.6rem);
  line-height: 1;
}
.wwm-step h3 .num { margin-right: 0.35em; }
.wwm-step p { max-width: 30em; }

/* featured pull-quote */
.wwm-quote blockquote {
  margin: 0;
  font-size: clamp(1.3rem, 2.1vw, 2rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 500;
  max-width: 30em;
}
.wwm-quote figcaption {
  display: flex; align-items: center; gap: 10px;
  margin-top: var(--spacing-lg);
}
.wwm-quote .who { display: flex; flex-direction: column; gap: 2px; }
.wwm-quote .who .mono { opacity: 0.55; }

/* FAQ — reuses .step accordion, quieter titles */
.wwm-faq .step__title {
  font-size: clamp(1.05rem, 1.5vw, 1.4rem);
  text-transform: none;
  letter-spacing: -0.01em;
  font-weight: 600;
}
.wwm-faq .step__head { padding: var(--spacing-lg) 0; }
.wwm-faq .step__head > .mono { white-space: nowrap; }
.wwm-faq .step__inner { grid-template-columns: 1fr; padding-bottom: var(--spacing-lg); }
.wwm-faq .step__inner p { max-width: 44em; }

@media (max-width: 900px) {
  .wwm-cards { grid-template-columns: 1fr; }
  .wwm-show { grid-template-columns: 1fr; }
  .wwm-show__card--wide { grid-column: auto; }
  .wwm-show__media, .wwm-show__card--wide .wwm-show__media { height: min(38vh, 320px); }
  .wwm-step { grid-template-columns: 1fr; gap: var(--spacing-sm); }
}
@media (max-width: 700px) {
  .wwm-choice { grid-template-columns: 1fr; }
  .cta-row .cta-lg { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .wwm-show__media img { transition: none; }
  .wwm-show__card:hover .wwm-show__media img { transform: none; }
}

/* light band — flips the palette tokens locally so every component
   inside restyles itself; gives the long page an alternating rhythm */
.band-light {
  --bgPrimary: var(--offWhite);
  --textPrimary: var(--dark);
  --hairline: rgb(var(--dark) / 0.16);
  background: rgb(var(--bgPrimary));
  color: rgb(var(--textPrimary));
  padding-top: var(--section-lg);
  padding-bottom: var(--section-lg);
}
.band-light .cta-lg { background: rgb(var(--dark)); color: rgb(var(--offWhite)); }

/* self-initiated demo-build placeholder cards in the showcase */
.wwm-demo .wwm-show__media {
  display: flex; align-items: center; justify-content: center;
}
.wwm-demo .wwm-show__media span { opacity: 0.5; }

/* sticky side nav — dot rail with labels on hover/active.
   fixed colors (not tokens) so it stays legible over light bands */
.wwm-sidenav {
  position: fixed;
  right: 18px; top: 50%;
  transform: translateY(-50%);
  z-index: 60;
  display: flex; flex-direction: column; gap: 14px;
  align-items: flex-end;
}
.wwm-sidenav a { display: flex; align-items: center; gap: 8px; }
.wwm-sidenav a span {
  font-size: 10px;
  color: rgb(var(--offWhite));
  background: rgb(var(--offBlack) / 0.85);
  padding: 4px 7px;
  border-radius: 2px;
  opacity: 0;
  transform: translateX(4px);
  transition: opacity 0.25s, transform 0.25s;
}
.wwm-sidenav a i {
  width: 6px; height: 6px; border-radius: 50%;
  background: #8a8a85;
  flex-shrink: 0;
  transition: background 0.25s, transform 0.25s;
}
.wwm-sidenav a:hover span, .wwm-sidenav a.is-active span { opacity: 1; transform: none; }
.wwm-sidenav a.is-active i { background: rgb(var(--red)); transform: scale(1.5); }
@media (max-width: 1200px) { .wwm-sidenav { display: none; } }

/* sticky quick CTAs — book a call / ask a question */
.wwm-quicknav {
  position: fixed;
  right: var(--margin); bottom: 76px;
  z-index: 65;
  display: flex; flex-direction: column; gap: 8px;
  align-items: flex-end;
  opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.wwm-quicknav.is-on { opacity: 1; transform: none; pointer-events: auto; }
.wwm-quicknav a {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.02em; text-transform: uppercase; font-weight: 500;
  border-radius: var(--radius);
  padding: 12px 16px;
  transition: opacity 0.25s;
}
.wwm-quicknav a:hover { opacity: 0.85; }
.wwm-quicknav a:first-child { background: rgb(var(--green)); color: rgb(var(--offBlack)); }
.wwm-quicknav a:last-child {
  background: rgb(var(--offBlack) / 0.9);
  color: rgb(var(--offWhite));
  border: 1px solid rgb(var(--offWhite) / 0.2);
}
@media (max-width: 640px) {
  .wwm-quicknav { right: 12px; bottom: 60px; }
  .wwm-quicknav a { padding: 10px 13px; font-size: 10px; }
}

/* 2-up quote grid — keeps an even count balanced on the landing page.
   declares its own collapse, since it follows .quote-grid's queries */
.quote-grid--2up { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 700px) { .quote-grid--2up { grid-template-columns: 1fr; } }

/* centered ask-a-question section */
.wwm-ask { max-width: 640px; margin: 0 auto; text-align: center; }
.wwm-ask h2 { margin-bottom: var(--spacing-md); }
.wwm-ask > p { margin: 0 auto var(--spacing-xl); max-width: 30em; }
.wwm-ask .form { text-align: left; max-width: 560px; margin: 0 auto; }
.wwm-ask #form-success { text-align: center; max-width: 560px; margin: 0 auto; }

/* meet-the-person strip */
.wwm-person {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--gutter);
  align-items: center;
}
.wwm-person__media {
  position: relative;
  overflow: hidden;
  height: min(56vh, 520px);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(45deg, rgb(var(--textPrimary) / 0.05) 0 14px, transparent 14px 28px),
    rgb(var(--textPrimary) / 0.06);
  display: flex; align-items: center; justify-content: center;
}
.wwm-person__media img {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.wwm-person__media span { opacity: 0.45; }
.wwm-person__copy p { max-width: 26em; }
@media (max-width: 900px) {
  .wwm-person { grid-template-columns: 1fr; }
  .wwm-person__media { height: min(44vh, 380px); }
}
