/* Gamut Studio
   Palette taken from New Orleans house paint: French Quarter shutter green,
   Marigny pink, Bywater blue, Creole mustard, lavender and cypress. */

:root {
  --paper: #f5f6f3;
  --paper-2: #eceee9;
  --ink: #17212b;
  --muted: #56616b;
  --line: #d5dad3;

  --shutter: #1f4d40;
  --marigny: #e6a598;
  --bywater: #6f9dc0;
  --mustard: #d8a73b;
  --lavender: #b3a3cc;
  --cypress: #7aa894;
  --iron: #2b353d;

  --font: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* type scale: ~1.25 on mobile, opening up on wide screens */
  --t-sm: 0.875rem;
  --t-base: 1.0625rem;
  --t-md: clamp(1.1875rem, 1.1rem + 0.35vw, 1.375rem);
  --t-lg: clamp(1.5rem, 1.3rem + 0.9vw, 2rem);
  --t-xl: clamp(2rem, 1.6rem + 2vw, 3.25rem);
  --t-xxl: clamp(2.5rem, 1.7rem + 4vw, 5.25rem);

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(4rem, 9vw, 8rem);
  --max: 78rem;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--t-base);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
p, ul, ol, dl, dd { margin: 0; }
p { text-wrap: pretty; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--bywater); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: #fff; padding: 0.6rem 1rem; border-radius: var(--radius); }
.skip:focus { top: 1rem; }
.prose p + p { margin-top: 1em; }
.prose { max-width: 38rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0.75rem 1.4rem;
  background: var(--shutter); color: #fff;
  font: 600 1rem/1 var(--font); text-decoration: none;
  border: 2px solid var(--shutter); border-radius: var(--radius);
  cursor: pointer; transition: background-color .15s, color .15s;
}
.btn:hover { background: #163a30; border-color: #163a30; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--light { background: var(--paper); color: var(--shutter); border-color: var(--paper); }
.btn--light:hover { background: #fff; border-color: #fff; }
.btn--block { width: 100%; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; font-weight: 800; font-size: 1.125rem; letter-spacing: -0.02em; }
.logo__mark { display: inline-grid; grid-template-columns: repeat(4, 5px); gap: 2px; height: 22px; align-items: end; }
.logo__mark i { display: block; background: var(--c); height: 100%; clip-path: polygon(0 18%, 50% 0, 100% 18%, 100% 100%, 0 100%); }
.logo__mark i:nth-child(1) { --c: var(--shutter); }
.logo__mark i:nth-child(2) { --c: var(--marigny); height: 82%; }
.logo__mark i:nth-child(3) { --c: var(--bywater); height: 92%; }
.logo__mark i:nth-child(4) { --c: var(--mustard); height: 76%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 4.25rem; gap: 1rem; }

.nav-toggle {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: none; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.55rem 0.85rem; font: 600 0.9375rem/1 var(--font); color: var(--ink); cursor: pointer;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 16px; height: 2px; background: currentColor; position: relative; transition: transform .2s, background-color .2s;
}
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -5px; }
.nav-toggle__bars::after { top: 5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-5px) rotate(-45deg); }

.site-nav {
  position: absolute; inset: 100% 0 auto 0;
  display: none; flex-direction: column;
  background: var(--paper); border-bottom: 1px solid var(--line);
  padding: 0.5rem var(--gutter) 1.5rem;
}
.site-nav.is-open { display: flex; }
.site-nav a { padding: 0.9rem 0; text-decoration: none; font-weight: 600; font-size: 1.125rem; border-bottom: 1px solid var(--line); }
.site-nav a[aria-current="page"]:not(.site-nav__cta) { color: var(--shutter); }
.site-nav .site-nav__cta { margin-top: 1rem; border: 0; background: var(--shutter); color: #fff; text-align: center; border-radius: var(--radius); }

@media (min-width: 52rem) {
  .nav-toggle { display: none; }
  .site-nav { position: static; display: flex; flex-direction: row; align-items: center; gap: 2rem; padding: 0; background: none; border: 0; }
  .site-nav a { padding: 0.25rem 0; border: 0; font-size: 0.9875rem; }
  .site-nav a:hover { text-decoration: underline; }
  .site-nav .site-nav__cta { margin: 0; padding: 0.65rem 1.1rem; }
  .site-nav .site-nav__cta:hover { text-decoration: none; background: #163a30; }
}

/* ---------- Referral band ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ref-band {
  position: relative; display: block; overflow: hidden;
  height: 2.25rem; text-decoration: none; color: var(--ink);
  background: linear-gradient(90deg, var(--marigny), var(--mustard), var(--cypress), var(--bywater), var(--lavender), var(--marigny));
  background-size: 300% 100%;
  box-shadow: 0 0 14px 2px color-mix(in srgb, var(--mustard) 55%, transparent), 0 0 34px 6px color-mix(in srgb, var(--marigny) 35%, transparent);
  font-size: 0.875rem; line-height: 2.25rem;
}
.ref-band::after { /* soft sheen that sweeps across */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgb(255 255 255 / .45) 50%, transparent 70%);
  transform: translateX(-100%);
  pointer-events: none;
}
.ref-band__track { display: flex; width: max-content; }
.ref-band__group { display: flex; align-items: center; flex: none; }
.ref-band__item { padding-inline: 1.25rem; white-space: nowrap; }
.ref-band__item strong { font-weight: 800; }
.ref-band__sep { flex: none; width: 0.55rem; height: 0.7rem; background: var(--ink); clip-path: polygon(0 30%, 50% 0, 100% 30%, 100% 100%, 0 100%); opacity: .7; }
.ref-band:hover .ref-band__item, .ref-band:focus-visible .ref-band__item { text-decoration: underline; text-underline-offset: 0.2em; }
.ref-band:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; }
.page-referrals .ref-band { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .ref-band { animation: band-hue 12s linear infinite, band-glow 2.4s ease-in-out infinite; }
  .ref-band::after { animation: band-sheen 4.5s ease-in-out infinite; }
  .ref-band__track { animation: band-scroll 38s linear infinite; }
  .ref-band:hover .ref-band__track, .ref-band:focus-visible .ref-band__track { animation-play-state: paused; }
  @keyframes band-scroll { to { transform: translateX(-50%); } }
  @keyframes band-hue { to { background-position: 300% 0; } }
  @keyframes band-sheen { 0%, 55% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
  @keyframes band-glow {
    0%, 100% { box-shadow: 0 0 12px 1px color-mix(in srgb, var(--mustard) 45%, transparent), 0 0 28px 4px color-mix(in srgb, var(--marigny) 28%, transparent); }
    50% { box-shadow: 0 0 20px 4px color-mix(in srgb, var(--mustard) 75%, transparent), 0 0 46px 10px color-mix(in srgb, var(--marigny) 45%, transparent); }
  }
}

/* ---------- Referrals page ---------- */
.ref-hero { padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(2.5rem, 6vw, 4rem); }
.ref-hero__grid { display: grid; gap: 2.5rem; align-items: end; }
.ref-hero h1 { font-size: var(--t-xxl); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; max-width: 13ch; }
.ref-hero__lede { margin-top: 1.5rem; font-size: var(--t-md); color: var(--muted); max-width: 36rem; line-height: 1.55; }
.ref-amount {
  justify-self: start; display: grid; place-items: center; text-align: center;
  width: clamp(11rem, 30vw, 15rem); aspect-ratio: 4 / 5; padding: 1.5rem 1rem 1rem;
  background: var(--mustard); color: var(--ink);
  clip-path: polygon(0 16%, 50% 0, 100% 16%, 100% 100%, 0 100%);
}
.ref-amount strong { display: block; font-size: clamp(2.5rem, 6vw, 3.5rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.ref-amount em { display: block; margin: 0.4rem auto 0; max-width: 11ch; font-style: normal; font-weight: 600; font-size: 0.9375rem; line-height: 1.3; }
@media (min-width: 52rem) { .ref-hero__grid { grid-template-columns: 1fr auto; } .ref-amount { justify-self: end; } }
.meme-wrap { padding-block: var(--section) 0; }
.meme-wrap__grid { display: grid; gap: 2rem; }
.meme-wrap__note { margin-top: 1rem; color: var(--muted); font-size: var(--t-md); }
.meme { margin: 0; display: grid; gap: 4px; max-width: 40rem; background: var(--ink); border: 4px solid var(--ink); border-radius: var(--radius); overflow: hidden; }
.meme__row { display: grid; grid-template-columns: 1fr 7.5rem; gap: 4px; }
.meme__caption { background: #fff; display: flex; align-items: center; padding: 1rem 1.1rem; font-weight: 700; font-size: clamp(0.9375rem, 0.85rem + 0.4vw, 1.125rem); line-height: 1.25; }
.meme__art { display: grid; place-items: center; padding: 0.5rem; }
.meme__art svg { width: 100%; max-width: 6.5rem; height: auto; overflow: visible; }
.meme__art--1 { background: #3a4248; }
.meme__art--2 { background: linear-gradient(135deg, #5a4a7a, #2f3f6e); }
.meme__art--3 { background: radial-gradient(circle, #8fd3ff 0%, #4361c9 75%); }
.meme__art--4 { background: radial-gradient(circle, #fff7c2 0%, #ffb347 40%, #e0569b 75%, #5b2a86 100%); }
@media (min-width: 40rem) { .meme__row { grid-template-columns: 1fr 10rem; } .meme__caption { padding: 1.25rem 1.5rem; } }
@media (min-width: 52rem) { .meme-wrap__grid { grid-template-columns: 5fr 7fr; column-gap: 4rem; } }
@media (prefers-reduced-motion: no-preference) {
  .meme__art--4 svg { animation: meme-pulse 2.2s ease-in-out infinite; }
  @keyframes meme-pulse { 50% { transform: scale(1.06); filter: drop-shadow(0 0 10px #fff3b0); } }
}
.ref-steps { padding-block: var(--section); background: var(--paper-2); border-block: 1px solid var(--line); }
@media (min-width: 64rem) { .ref-steps .steps { grid-template-columns: repeat(3, 1fr); } .ref-steps .steps::before { right: 33%; } }
.ref-fit { padding-block: var(--section); }
.ref-fit__grid { display: grid; gap: 2rem; }
.ref-fit ul { padding-left: 1.1rem; display: grid; gap: 0.6rem; font-size: var(--t-md); max-width: 38rem; }
@media (min-width: 52rem) { .ref-fit__grid { grid-template-columns: 5fr 7fr; column-gap: 4rem; } }
.ref-terms { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: var(--t-sm); color: var(--muted); }
.ref-terms h2 { font-size: 0.9375rem; color: var(--ink); margin-bottom: 0.6rem; letter-spacing: 0; }
.ref-terms ul { padding-left: 1.1rem; display: grid; gap: 0.35rem; }
.form__section { font-size: 1rem; font-weight: 700; letter-spacing: 0; padding-top: 0.5rem; }
.form__section:not(:first-of-type) { margin-top: 0.75rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(2.5rem, 7vw, 6rem); }
.hero__copy { max-width: var(--max); }
.hero h1 { font-size: var(--t-xxl); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; max-width: 15ch; }
.hero__lede { margin-top: 1.5rem; font-size: var(--t-md); color: var(--muted); max-width: 40rem; line-height: 1.55; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* The memorable part: a block of shotgun-house facades, one per service. */
.facades {
  list-style: none; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem;
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  align-items: end;
}
.facade { --h: clamp(9rem, 34vw, 13rem); }
.facade a {
  position: relative; display: flex; align-items: flex-end;
  height: var(--h); padding: 0.85rem;
  background: var(--c); color: var(--ink); text-decoration: none;
  clip-path: polygon(0 12%, 50% 0, 100% 12%, 100% 100%, 0 100%);
  transform-origin: bottom;
  transition: transform .25s cubic-bezier(.2,.7,.2,1);
}
.facade a::before { /* door with transom */
  content: ""; position: absolute; right: 10%; bottom: 0;
  width: 20%; height: 44%; display: none;
  border: 1.5px solid color-mix(in srgb, var(--ink) 22%, transparent); border-bottom: 0;
  border-radius: 2px 2px 0 0;
}
.facade a::after { /* shutter window */
  content: ""; position: absolute; left: 16%; top: 30%;
  width: 26%; height: 28%;
  background: repeating-linear-gradient(0deg, color-mix(in srgb, var(--ink) 16%, transparent) 0 1.5px, transparent 1.5px 6px);
}
.facade span { position: relative; z-index: 1; font-weight: 700; font-size: 0.875rem; line-height: 1.2; }
.facade:nth-child(1) a, .facade--dark a { color: #fff; }
.facade:nth-child(1) a::before, .facade:nth-child(1) a::after, .facade--dark a::before, .facade--dark a::after { border-color: rgb(255 255 255 / .3); }
.facade:nth-child(1) a::after, .facade--dark a::after { background: repeating-linear-gradient(0deg, rgb(255 255 255 / .22) 0 1.5px, transparent 1.5px 6px); }
.facade:nth-child(2) { --h: clamp(8.25rem, 31vw, 12rem); }
.facade:nth-child(4) { --h: clamp(8.5rem, 32vw, 12.5rem); }
.facade:nth-child(6) { --h: clamp(8.75rem, 33vw, 12.75rem); }
.facade a:hover { transform: translateY(-6px); }

@media (min-width: 52rem) {
  .facades { grid-template-columns: repeat(6, 1fr); gap: 0.625rem; }
  .facade { --h: clamp(16rem, 30vw, 26rem); }
  .facade:nth-child(2) { --h: clamp(14.5rem, 27vw, 23.5rem); }
  .facade:nth-child(3) { --h: clamp(15.5rem, 29vw, 25rem); }
  .facade:nth-child(4) { --h: clamp(14rem, 26vw, 22.5rem); }
  .facade:nth-child(5) { --h: clamp(15rem, 28.5vw, 24.5rem); }
  .facade:nth-child(6) { --h: clamp(14.75rem, 27.5vw, 24rem); }
  .facade a { padding: 0.9rem; }
  .facade span { font-size: clamp(0.8125rem, 0.55rem + 0.45vw, 0.9375rem); }
}

@media (prefers-reduced-motion: no-preference) {
  .js .facade a { animation: rise .9s cubic-bezier(.2,.75,.15,1) both; animation-delay: calc(var(--i) * 70ms + 120ms); }
  @keyframes rise { from { transform: scaleY(0.06); } to { transform: scaleY(1); } }
}

/* ---------- Section scaffolding ---------- */
.section-head { display: grid; gap: 0.9rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); max-width: 44rem; }
.section-head h2 { font-size: var(--t-xl); letter-spacing: -0.03em; }
.section-head p { color: var(--muted); font-size: var(--t-md); line-height: 1.5; }

/* ---------- Intro ---------- */
.intro { padding-block: var(--section); }
.intro__grid { display: grid; gap: 2rem; }
.intro__title { font-size: var(--t-xl); letter-spacing: -0.03em; max-width: 14ch; }
.intro__body { font-size: var(--t-md); line-height: 1.6; }
.facts { display: grid; gap: 1.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.facts dt { font-weight: 700; }
.facts dd { color: var(--muted); margin-top: 0.25rem; }
@media (min-width: 52rem) {
  .intro__grid { grid-template-columns: 5fr 7fr; column-gap: 4rem; row-gap: 3.5rem; }
  .facts { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); gap: 3rem; }
}

/* ---------- Services ---------- */
.services { padding-block: var(--section); background: #fff; border-block: 1px solid var(--line); }
.svc-list { display: grid; }
.svc { display: grid; gap: 1.25rem; padding-block: 2.25rem; border-top: 1px solid var(--line); scroll-margin-top: 5rem; }
.svc:last-child { border-bottom: 1px solid var(--line); }
.svc__head h3 { display: flex; align-items: center; gap: 0.75rem; font-size: var(--t-lg); letter-spacing: -0.025em; }
.svc__head h3::before {
  content: ""; flex: none; width: 0.85rem; height: 1.15rem; background: var(--c);
  clip-path: polygon(0 22%, 50% 0, 100% 22%, 100% 100%, 0 100%);
}
.svc__head p { margin-top: 0.75rem; font-size: var(--t-md); line-height: 1.5; max-width: 30rem; }
.svc__body .svc__subhead { margin-top: 1.25rem; }
.svc__body h4 { font-size: var(--t-sm); font-weight: 700; color: var(--muted); margin-bottom: 0.6rem; letter-spacing: 0; }
.svc__body ul { padding-left: 1.1rem; display: grid; gap: 0.35rem; }
.svc__body li::marker { color: var(--muted); }
.svc__meta { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px dashed var(--line); color: var(--muted); font-size: 0.9625rem; }
.svc__meta strong { color: var(--ink); font-weight: 600; }
@media (min-width: 52rem) {
  .svc { grid-template-columns: 5fr 7fr; column-gap: 4rem; padding-block: 3rem; }
  .svc:target { background: linear-gradient(90deg, color-mix(in srgb, var(--c) 14%, transparent), transparent 60%); }
}

/* ---------- Local ---------- */
.local { padding-block: var(--section); background: var(--shutter); color: #eef3ef; }
.local__grid { display: grid; gap: 2.5rem; }
.local h2 { font-size: var(--t-xl); letter-spacing: -0.03em; color: #fff; max-width: 13ch; }
.local__lede { margin-top: 1rem; font-size: var(--t-md); color: #c5d6ce; max-width: 28rem; line-height: 1.5; }
.local__list { list-style: none; padding: 0; display: grid; gap: 2rem; }
.local__list li { padding-top: 1.25rem; border-top: 1px solid rgb(255 255 255 / .2); }
.local__list h3 { font-size: var(--t-md); color: #fff; }
.local__list p { margin-top: 0.5rem; color: #c5d6ce; }
@media (min-width: 52rem) {
  .local__grid { grid-template-columns: 5fr 7fr; column-gap: 4rem; }
  .local__list { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; row-gap: 2.5rem; }
}

/* ---------- Who ---------- */
.who { padding-block: var(--section); }
.who__grid { display: grid; gap: 0; border-top: 1px solid var(--line); }
.who__item { padding-block: 1.75rem; border-bottom: 1px solid var(--line); }
.who__item h3 { font-size: var(--t-md); }
.who__item p { margin-top: 0.5rem; color: var(--muted); max-width: 34rem; }
@media (min-width: 40rem) {
  .who__grid { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; }
}
@media (min-width: 64rem) {
  .who__grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Process ---------- */
.process { padding-block: var(--section); background: var(--paper-2); border-block: 1px solid var(--line); }
.steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: 1.75rem; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.5rem 1fr; column-gap: 1rem; }
.steps li::before {
  content: counter(step); grid-row: span 2;
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem;
  border-radius: 50%; border: 1.5px solid var(--ink); font-weight: 700;
}
.steps h3 { font-size: var(--t-md); align-self: center; }
.steps p { color: var(--muted); margin-top: 0.35rem; }
@media (min-width: 64rem) {
  .steps { grid-template-columns: repeat(5, 1fr); gap: 2rem; position: relative; }
  .steps::before { content: ""; position: absolute; left: 1.25rem; right: 10%; top: 1.25rem; height: 1.5px; background: var(--ink); opacity: .25; }
  .steps li { grid-template-columns: 1fr; row-gap: 1rem; position: relative; }
  .steps li::before { grid-row: auto; background: var(--paper-2); }
  .steps p { margin-top: -0.5rem; }
}

/* ---------- Work ---------- */
.work { padding-block: var(--section); }
.work__list { display: grid; gap: 1.5rem; }
.case-card {
  display: grid; text-decoration: none; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: border-color .2s;
}
.case-card:hover { border-color: var(--ink); text-decoration: none; }
.case-card__art {
  position: relative; background: var(--c); min-height: 11rem;
  display: flex; align-items: flex-end; padding: 1.25rem 1.5rem;
}
.case-card__art::after { /* small row of facades in the corner */
  content: ""; position: absolute; right: 1.5rem; bottom: 0; width: 5rem; height: 4rem;
  background:
    linear-gradient(var(--ink), var(--ink)) 0 100% / 22% 80% no-repeat,
    linear-gradient(var(--ink), var(--ink)) 39% 100% / 22% 100% no-repeat,
    linear-gradient(var(--ink), var(--ink)) 78% 100% / 22% 70% no-repeat;
  opacity: .14;
}
.case-card__art span { font-size: clamp(2.5rem, 7vw, 3.75rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.case-card__body { padding: 1.5rem; display: grid; gap: 0.6rem; align-content: start; }
.case-card__client { color: var(--muted); font-size: var(--t-sm); font-weight: 600; }
.case-card h3 { font-size: var(--t-lg); letter-spacing: -0.025em; }
.case-card__body > p:not(.case-card__client) { color: var(--muted); }
.case-card__link { margin-top: 0.5rem; font-weight: 700; color: var(--shutter); text-decoration: underline; text-underline-offset: 0.2em; }
@media (min-width: 52rem) {
  .work__list { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .case-card__art { min-height: 15rem; }
  .case-card__body { padding: 2rem; }
}

/* ---------- FAQ ---------- */
.faq { padding-block: 0 var(--section); }
.faq__grid { display: grid; gap: 2rem; }
.faq h2 { font-size: var(--t-xl); letter-spacing: -0.03em; }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.25rem 2.5rem 1.25rem 0; position: relative;
  font-weight: 600; font-size: var(--t-md);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 0.25rem; top: 50%; width: 0.7rem; height: 0.7rem;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-70%) rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-20%) rotate(-135deg); }
.faq details p { padding-bottom: 1.5rem; color: var(--muted); max-width: 40rem; }
@media (min-width: 52rem) { .faq__grid { grid-template-columns: 5fr 7fr; column-gap: 4rem; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: #fff; padding-block: clamp(3.5rem, 8vw, 6rem); }
.cta-band__inner { display: grid; gap: 2rem; }
.cta-band h2 { font-size: var(--t-xl); letter-spacing: -0.03em; max-width: 18ch; }
.cta-band__side { display: grid; gap: 1.5rem; align-content: end; justify-items: start; }
.cta-band__side p { color: #b9c2ca; font-size: var(--t-md); line-height: 1.5; max-width: 30rem; }
@media (min-width: 52rem) { .cta-band__inner { grid-template-columns: 7fr 5fr; column-gap: 4rem; align-items: end; } }

/* ---------- Footer ---------- */
.site-footer { padding-top: 3.5rem; font-size: 0.9625rem; }
.site-footer__grid { display: grid; gap: 2rem; padding-bottom: 2.5rem; }
.site-footer__lead p { margin-top: 0.75rem; color: var(--muted); max-width: 22rem; }
.site-footer__head { font-size: 0.9375rem; font-weight: 700; margin-bottom: 0.5rem; letter-spacing: 0; }
.site-footer p, .site-footer li { color: var(--muted); }
.site-footer a { color: var(--ink); }
.site-footer__links { list-style: none; padding: 0; display: grid; gap: 0.3rem; }
.site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.5rem 2rem; border-top: 1px solid var(--line); font-size: var(--t-sm); }
.swatch-key { display: flex; gap: 3px; }
.swatch-key i { width: 14px; height: 14px; background: var(--c); border-radius: 2px; }
@media (min-width: 40rem) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64rem) { .site-footer__grid { grid-template-columns: 2fr 1.2fr 1.4fr 1.2fr; gap: 3rem; } }

/* ---------- Case study pages ---------- */
.case-hero { padding-block: clamp(2rem, 6vw, 4.5rem) clamp(2.5rem, 6vw, 4rem); position: relative; }
.case-hero::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--c); }
.back { display: inline-block; font-weight: 600; font-size: var(--t-sm); color: var(--muted); margin-bottom: 2rem; }
.back::before { content: "‹ "; }
.case-hero__client { font-weight: 600; color: var(--muted); }
.case-hero h1 { margin-top: 0.75rem; font-size: var(--t-xxl); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; max-width: 16ch; }
.case-hero__lede { margin-top: 1.5rem; font-size: var(--t-md); line-height: 1.55; max-width: 42rem; color: var(--muted); }
.case-meta { display: grid; gap: 1.25rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.case-meta dt { font-size: var(--t-sm); color: var(--muted); font-weight: 600; }
.case-meta dd { margin-top: 0.2rem; font-weight: 600; }
@media (min-width: 52rem) { .case-meta { grid-template-columns: 2fr 1fr 2fr; gap: 3rem; } }

.results { background: var(--c); padding-block: clamp(2.5rem, 6vw, 4rem); }
.results__grid { display: grid; gap: 2rem; }
.results__grid > div { padding-top: 1rem; border-top: 2px solid color-mix(in srgb, var(--ink) 40%, transparent); }
.results__num { font-size: var(--t-xxl); font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin-bottom: 0.6rem; }
.results__grid p:not(.results__num):not(.results__head) { max-width: 22rem; }
.results__head { font-size: var(--t-lg); font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; margin-bottom: 0.5rem; }
.case-note { margin-top: 1.5rem; padding: 0.75rem 1rem; max-width: 42rem; font-size: var(--t-sm); color: var(--muted); background: var(--paper-2); border-left: 3px solid var(--c); border-radius: 0 var(--radius) var(--radius) 0; }
.results__note { margin-top: 2rem; font-size: var(--t-sm); color: color-mix(in srgb, var(--ink) 75%, transparent); }
@media (min-width: 52rem) { .results__grid { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }

.case-body { padding-block: var(--section); display: grid; gap: clamp(3rem, 7vw, 5rem); }
.case-section { display: grid; gap: 1.5rem; }
.case-section h2 { font-size: var(--t-lg); letter-spacing: -0.025em; }
.case-section .prose { font-size: 1.125rem; line-height: 1.65; }
@media (min-width: 52rem) {
  .case-section { grid-template-columns: 4fr 8fr; column-gap: 4rem; }
  .case-section h2 { position: sticky; top: 6rem; align-self: start; }
}
.phases { list-style: none; padding: 0; counter-reset: phase; display: grid; gap: 2rem; max-width: 40rem; }
.phases li { counter-increment: phase; position: relative; padding-left: 3.25rem; }
.phases li::before {
  content: counter(phase); position: absolute; left: 0; top: -0.1rem;
  width: 2.1rem; height: 2.1rem; display: grid; place-items: center;
  background: var(--c); border-radius: 50%; font-weight: 700; font-size: 0.9375rem;
}
.phases li:not(:last-child)::after {
  content: ""; position: absolute; left: 1.03rem; top: 2.4rem; bottom: -1.7rem; width: 1.5px; background: var(--line);
}
.phases h3 { font-size: var(--t-md); }
.phases p { margin-top: 0.4rem; color: var(--muted); }

.case-next { border-top: 1px solid var(--line); }
.case-next a { display: grid; gap: 0.4rem; padding-block: clamp(2.5rem, 6vw, 4rem); text-decoration: none; }
.case-next__label { font-weight: 600; color: var(--muted); font-size: var(--t-sm); }
.case-next__title { font-size: var(--t-xl); font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; max-width: 22ch; }
.case-next a:hover .case-next__title { text-decoration: underline; text-decoration-color: var(--c); text-decoration-thickness: 4px; text-underline-offset: 0.12em; }

.did-list { list-style: none; padding: 0; margin-top: 1.5rem; display: grid; gap: 1.25rem 2.5rem; max-width: 46rem; }
.did-list li { padding-top: 1rem; border-top: 2px solid var(--c); }
.did-list h3 { font-size: var(--t-md); }
.did-list p { margin-top: 0.35rem; color: var(--muted); }
@media (min-width: 40rem) { .did-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 52rem) { .case-section .prose + .did-list { grid-column: 2; } }

/* ---------- Contact ---------- */
.contact { padding-block: clamp(2.5rem, 7vw, 5.5rem) var(--section); }
.contact__grid { display: grid; gap: 3rem; }
.contact h1 { font-size: var(--t-xl); font-weight: 800; letter-spacing: -0.035em; max-width: 12ch; }
.contact__lede { margin-top: 1.25rem; font-size: var(--t-md); color: var(--muted); max-width: 30rem; line-height: 1.5; }
.contact__sub { font-size: 1rem; margin-top: 2.5rem; margin-bottom: 1rem; letter-spacing: 0; }
.mini-steps { padding-left: 1.25rem; display: grid; gap: 0.5rem; color: var(--muted); max-width: 28rem; }
.mini-steps li::marker { font-weight: 700; color: var(--ink); }
.contact__direct { display: grid; gap: 1rem; }
.contact__direct dt { font-size: var(--t-sm); color: var(--muted); font-weight: 600; }
.contact__direct dd { font-weight: 600; }
.contact__form-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 4vw, 2.5rem); align-self: start; }
.contact__intro { grid-area: intro; }
.contact__details { grid-area: details; }
.contact__form-wrap { grid-area: form; }
.contact__grid { grid-template-areas: "intro" "form" "details"; }
.contact__sub--first { margin-top: 0; }
@media (min-width: 64rem) {
  .contact__grid { grid-template-columns: 5fr 7fr; grid-template-rows: auto 1fr; grid-template-areas: "intro form" "details form"; column-gap: 5rem; row-gap: 0; }
  .contact__sub--first { margin-top: 2.5rem; }
}

.form { display: grid; gap: 1.25rem; }
.field-row { display: grid; gap: 1.25rem; }
@media (min-width: 40rem) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.4rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: 0.9625rem; padding: 0; }
.field legend { margin-bottom: 0.6rem; }
.optional { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 0.75rem 0.85rem; min-height: 3rem;
  transition: border-color .15s, background-color .15s;
}
.field textarea { resize: vertical; min-height: 9rem; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 1.15rem) 50%, calc(100% - 0.8rem) 50%; background-size: 0.35rem 0.35rem; background-repeat: no-repeat; padding-right: 2.25rem; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #b7bfb5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--shutter); background: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--shutter) 18%, transparent); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #b3261e; }
.hint { font-size: var(--t-sm); color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-block; padding: 0.55rem 0.9rem; border: 1.5px solid var(--line); border-radius: 999px;
  font-weight: 500; font-size: 0.9375rem; background: var(--paper); transition: background-color .15s, border-color .15s, color .15s;
}
.chip input:hover + span { border-color: #b7bfb5; }
.chip input:checked + span { background: var(--shutter); border-color: var(--shutter); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--bywater); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__error { color: #b3261e; font-weight: 600; }
.toast {
  position: fixed; z-index: 60; left: 1rem; right: 1rem; bottom: 1rem;
  display: grid; grid-template-columns: auto 1fr auto; gap: 0.9rem; align-items: start;
  max-width: 26rem; margin-inline: auto; padding: 1rem 1rem 1rem 1.1rem;
  background: var(--ink); color: #fff; border-radius: var(--radius);
  box-shadow: 0 12px 32px rgb(23 33 43 / .28);
  opacity: 0; transform: translateY(12px); transition: opacity .25s, transform .25s;
}
.toast.is-visible { opacity: 1; transform: none; }
.toast__icon { width: 1.1rem; height: 1.4rem; margin-top: 0.1rem; background: var(--cypress); clip-path: polygon(0 22%, 50% 0, 100% 22%, 100% 100%, 0 100%); }
.toast__title { font-weight: 700; }
.toast__body { color: #c3ccd3; font-size: 0.9375rem; margin-top: 0.15rem; }
.toast__close { background: none; border: 0; color: #c3ccd3; font-size: 1.5rem; line-height: 1; padding: 0 0.25rem; cursor: pointer; min-width: 2rem; min-height: 2rem; }
.toast__close:hover { color: #fff; }
@media (min-width: 40rem) { .toast { left: auto; right: 1.5rem; bottom: 1.5rem; margin: 0; } }

/* ---------- 404 ---------- */
.notfound { padding-block: var(--section); }
.notfound h1 { font-size: var(--t-xl); font-weight: 800; }
.notfound p { margin-top: 1rem; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
