/* Tomde Studio — shared styles.
   Palette comes straight from the marks: logo black, off-white, and the
   cyan → magenta → yellow ring. Display type is heavy italic to echo the wordmark. */

:root {
  --ink: #1a1718;
  --ink-2: #231f20;          /* the logo's black */
  --ink-3: #2f2a2b;
  --line: rgba(241, 241, 241, 0.12);
  --bone: #f1f1f1;           /* the logo's white */
  --fg: #f1f1f1;
  --fg-2: rgba(241, 241, 241, 0.74);
  --fg-3: rgba(241, 241, 241, 0.52);
  --paper: #f4f2ef;
  --paper-ink: #231f20;
  --paper-2: #5a5455;

  --cyan: #00aeef;
  --blue: #3b82d6;
  --violet: #8e44b5;
  --magenta: #ec008c;
  --orange: #f7941d;
  --yellow: #fff200;
  --rainbow: linear-gradient(90deg, #00aeef 0%, #5b6bcf 20%, #9b3fb4 40%, #ec008c 58%, #f7941d 78%, #fff200 100%);
  --rainbow-v: linear-gradient(180deg, #00aeef 0%, #8e44b5 35%, #ec008c 55%, #f7941d 78%, #fff200 100%);

  --display: "Archivo", "Arial Black", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --radius: 18px;
  --radius-sm: 10px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
picture { display: block; }
a { color: inherit; }
::selection { background: var(--magenta); color: #fff; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

/* ---------- type ---------- */
h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-stretch: 112%;
  font-variation-settings: "wdth" 112;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.95;
  margin: 0 0 0.4em;
  overflow-wrap: break-word;
  hyphens: auto;
}
h1 { font-size: clamp(44px, 8.4vw, 116px); }
h2 { font-size: clamp(34px, 5.4vw, 72px); }
h3 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.05; }
h4 { font: 700 18px/1.3 var(--body); margin: 0 0 0.4em; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(18px, 1.6vw, 22px); color: var(--fg-2); max-width: 46ch; }
.muted { color: var(--fg-2); }
.small { font-size: 14px; color: var(--fg-3); }
.eyebrow {
  font: 500 12px/1.4 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-3);
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 18px;
}
.eyebrow::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: var(--rainbow); flex: none;
}
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { color: var(--fg); }
.rainbow-text {
  background: var(--rainbow);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  padding-right: 0.08em; /* italic overhang */
}

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 9vw, 128px) 0; position: relative; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.section--paper { background: var(--paper); color: var(--paper-ink); }
.section--paper .muted, .section--paper .lede { color: var(--paper-2); }
.section--paper .eyebrow { color: var(--paper-2); }
.section--line { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 8px; margin-bottom: clamp(32px, 4vw, 56px); max-width: 860px; }
.section-head--split { max-width: none; grid-template-columns: 1fr; align-items: end; }
@media (min-width: 900px) { .section-head--split { grid-template-columns: 1.3fr 1fr; gap: 48px; } }
.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.split { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split--wide-left { grid-template-columns: 1.25fr 1fr; } }
.prose { max-width: 68ch; }
.prose p, .prose li { color: var(--fg-2); }
.section--paper .prose p, .section--paper .prose li { color: var(--paper-2); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }

/* ---------- buttons ---------- */
.btn {
  --b: var(--bone);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border-radius: 999px;
  font: 700 15px/1 var(--body);
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--bone); color: var(--ink-2); position: relative; isolation: isolate; }
.btn-primary::before {
  content: ""; position: absolute; inset: -3px; border-radius: inherit;
  background: var(--rainbow); z-index: -1; opacity: 0; transition: opacity 0.2s ease;
}
.btn-primary:hover::before { opacity: 1; }
.btn-ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--bone); }
.section--paper .btn-primary { background: var(--ink-2); color: var(--bone); }
.section--paper .btn-ghost { color: var(--paper-ink); box-shadow: inset 0 0 0 1.5px rgba(35,31,32,0.25); }
.section--paper .btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--paper-ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn .arrow { transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.textlink { color: var(--fg); text-decoration: none; font-weight: 600; border-bottom: 2px solid; border-image: var(--rainbow) 1; padding-bottom: 2px; }
.section--paper .textlink { color: var(--paper-ink); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(26, 23, 24, 0.86);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--rainbow); opacity: 0.85;
}
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 44px; width: auto; }
.nav { margin-left: auto; display: none; align-items: center; gap: 4px; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.nav li { position: relative; }
.nav a, .nav button.nav-top {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 12px; border-radius: 999px;
  font: 600 14.5px/1 var(--body); color: var(--fg-2); text-decoration: none;
  background: none; border: 0; cursor: pointer;
}
.nav a:hover, .nav button.nav-top:hover, .nav a[aria-current="page"], .nav .is-current > .nav-top { color: var(--fg); background: rgba(241,241,241,0.06); }
.nav .caret { width: 10px; height: 10px; opacity: 0.6; }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: -8px; min-width: 260px;
  list-style: none; margin: 0; padding: 8px;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
.dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.nav li:hover > .dropdown, .nav li:focus-within > .dropdown, .nav li.open > .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: flex; width: 100%; padding: 10px 12px; border-radius: 8px; font-weight: 500; }
.dropdown a small { display: block; color: var(--fg-3); font-weight: 400; font-size: 12.5px; margin-top: 3px; }
.dropdown a span { display: block; }
.dropdown .dd-all { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
.header-cta { display: none; }
.menu-toggle {
  margin-left: auto; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(241,241,241,0.06); border: 1px solid var(--line); color: var(--fg);
  display: grid; place-items: center; cursor: pointer;
}
.menu-toggle svg { width: 20px; height: 20px; }
@media (min-width: 1120px) {
  .nav { display: flex; }
  .header-cta { display: inline-flex; min-height: 44px; padding: 0 20px; font-size: 14px; margin-left: 8px; }
  .menu-toggle { display: none; }
}

/* mobile drawer */
.drawer {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
  background: var(--ink); overflow-y: auto;
  padding: 16px var(--gutter) 120px;
  transform: translateX(100%); transition: transform 0.25s ease;
  visibility: hidden;
}
.drawer.open { transform: none; visibility: visible; }
.drawer details { border-bottom: 1px solid var(--line); }
.drawer summary, .drawer > a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 0; list-style: none; cursor: pointer;
  font: 900 italic 24px/1 var(--display); font-variation-settings: "wdth" 112; text-transform: uppercase;
  color: var(--fg); text-decoration: none;
}
.drawer > a { border-bottom: 1px solid var(--line); }
.drawer summary::-webkit-details-marker { display: none; }
.drawer summary::after { content: "+"; font-style: normal; color: var(--fg-3); }
.drawer details[open] summary::after { content: "–"; }
.drawer details a { display: block; padding: 10px 0 10px 14px; color: var(--fg-2); text-decoration: none; border-left: 2px solid var(--line); }
.drawer details a:last-child { margin-bottom: 18px; }
.drawer .btn { width: 100%; margin-top: 24px; }
body.menu-open { overflow: hidden; }

/* mobile action bar */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: 1fr 1fr 1.6fr; gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(26,23,24,0.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.action-bar a {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 46px; border-radius: 999px; text-decoration: none;
  font: 700 14px/1 var(--body); color: var(--fg); box-shadow: inset 0 0 0 1.5px var(--line);
}
.action-bar a.go { background: var(--bone); color: var(--ink-2); box-shadow: none; }
.action-bar svg { width: 16px; height: 16px; }
@media (min-width: 900px) { .action-bar { display: none; } }
@media (max-width: 899px) { body { padding-bottom: 76px; } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 120px) 0 clamp(56px, 8vw, 104px); isolation: isolate; }
.hero-pattern {
  position: absolute; inset: 0; z-index: -2;
  background-image: url("assets/brand/pattern-smiley.svg");
  background-size: 120px 120px;
  opacity: 0.07;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 20%, transparent 75%);
}
.hero-glow {
  position: absolute; z-index: -1; width: 900px; height: 900px; right: -320px; top: -360px;
  background: conic-gradient(from 200deg, #00aeef, #8e44b5, #ec008c, #f7941d, #fff200, #00aeef);
  filter: blur(140px); opacity: 0.22; border-radius: 50%;
}
.hero h1 { max-width: 13ch; }
.hero .lede { margin-bottom: 32px; }
.hero-home { min-height: calc(100svh - var(--header-h)); display: flex; align-items: center; }
.hero-home .wrap { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1000px) { .hero-home .wrap { grid-template-columns: 1.4fr 1fr; } }
.hero-mark { width: min(180px, 44vw); justify-self: start; }
@media (min-width: 1000px) { .hero-mark { width: min(340px, 26vw); justify-self: center; } }
.hero-mark { animation: float 7s ease-in-out infinite; filter: drop-shadow(0 30px 60px rgba(0,0,0,0.5)); }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-14px) rotate(2deg); } }
@media (prefers-reduced-motion: reduce) { .hero-mark { animation: none; } html { scroll-behavior: auto; } }
.hero-sub { padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 6vw, 72px); }
.hero-sub h1 { font-size: clamp(40px, 7vw, 96px); max-width: 16ch; }
.crumbs { font: 500 12px/1.4 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 20px; }
.crumbs a { color: var(--fg-3); text-decoration: none; }
.crumbs a:hover { color: var(--fg); }
.crumbs span { margin: 0 8px; opacity: 0.5; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.hero-facts div { font: 500 13px/1.4 var(--mono); letter-spacing: 0.06em; color: var(--fg-3); text-transform: uppercase; }
.hero-facts b { display: block; font: 700 16px/1.3 var(--body); color: var(--fg); letter-spacing: 0; text-transform: none; }

/* ---------- logo strip ---------- */
.logos { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 28px 0; overflow: hidden; }
.logos-label { text-align: center; margin-bottom: 18px; }
.marquee { display: flex; width: max-content; animation: marquee 50s linear infinite; }
.marquee:hover { animation-play-state: paused; }
.marquee ul { display: flex; align-items: center; gap: clamp(36px, 5vw, 72px); list-style: none; margin: 0; padding: 0 clamp(18px, 2.5vw, 36px); }
.marquee img { max-width: none; object-fit: contain; filter: brightness(0) invert(1); opacity: 0.6; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } .marquee ul[aria-hidden] { display: none; } .marquee ul { flex-wrap: wrap; justify-content: center; row-gap: 24px; } }
.logo-wall { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 640px) { .logo-wall { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .logo-wall { grid-template-columns: repeat(5, 1fr); } }
.logo-wall div { background: var(--ink); display: grid; place-items: center; padding: 28px 22px; min-height: 120px; }
.logo-wall img { max-width: 100%; object-fit: contain; filter: brightness(0) invert(1); opacity: 0.7; transition: opacity 0.2s; }
.logo-wall div:hover img { opacity: 1; }

/* ---------- cards ---------- */
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 2.4vw, 32px); text-decoration: none; color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
}
a.card:hover { transform: translateY(-4px); border-color: rgba(241,241,241,0.28); }
a.card::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--rainbow);
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease;
}
a.card:hover::after { transform: scaleX(1); }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--fg-2); font-size: 16px; }
.card .card-num { font: 500 12px/1 var(--mono); letter-spacing: 0.14em; color: var(--fg-3); margin-bottom: 28px; }
.card .card-foot { margin-top: auto; padding-top: 18px; font: 600 14px/1 var(--body); color: var(--fg); display: flex; align-items: center; gap: 8px; }
.card ul.ticks { margin-top: 4px; }
.card-media { margin: calc(-1 * clamp(22px, 2.4vw, 32px)); margin-bottom: 22px; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink-3); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
a.card:hover .card-media img { transform: scale(1.04); }
.section--paper .card { background: #fff; border-color: rgba(35,31,32,0.1); }
.section--paper .card p { color: var(--paper-2); }
.section--paper .card .card-num, .section--paper .card .small { color: var(--paper-2); }
.section--paper a.card:hover { border-color: rgba(35,31,32,0.3); }
.section--paper .card .card-foot { color: var(--paper-ink); }

ul.ticks { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; }
ul.ticks li { position: relative; padding-left: 28px; color: var(--fg-2); font-size: 16px; line-height: 1.45; }
ul.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.35em; width: 14px; height: 14px; border-radius: 50%;
  background: var(--rainbow);
  -webkit-mask: radial-gradient(circle, transparent 3px, #000 3.5px); mask: radial-gradient(circle, transparent 3px, #000 3.5px);
}
.section--paper ul.ticks li { color: var(--paper-2); }

/* ---------- services index ---------- */
.svc-list { border-top: 1px solid var(--line); }
.svc-row {
  display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; align-items: center;
  padding: 26px 0; border-bottom: 1px solid var(--line);
  text-decoration: none; color: inherit; transition: padding 0.2s ease;
}
.svc-row h3 { margin: 0; font-size: clamp(26px, 3.6vw, 48px); transition: color 0.2s; }
.svc-row p { grid-column: 1 / -1; margin: 0; color: var(--fg-2); max-width: 60ch; font-size: 16px; }
.svc-row .go { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--line); transition: background 0.2s, color 0.2s; }
.svc-row:hover { padding-left: 10px; }
.svc-row:hover h3 { background: var(--rainbow); -webkit-background-clip: text; background-clip: text; color: transparent; }
.svc-row:hover .go { background: var(--bone); color: var(--ink-2); }
@media (min-width: 900px) { .svc-row { grid-template-columns: 1.1fr 1.4fr auto; } .svc-row p { grid-column: auto; } }

/* ---------- work grid ---------- */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-flow: dense; gap: 10px; }
@media (min-width: 900px) { .work-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; } }
.work-grid figure { margin: 0; position: relative; overflow: hidden; border-radius: 12px; background: var(--ink-3); aspect-ratio: 1; }
.work-grid figure.tall { grid-row: span 2; aspect-ratio: auto; }
.work-grid figure.wide { grid-column: span 2; aspect-ratio: 2 / 1; }
.work-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.work-grid button { all: unset; display: block; width: 100%; height: 100%; cursor: zoom-in; }
.work-grid button:focus-visible { outline: 3px solid var(--cyan); outline-offset: -3px; }
.work-grid figure:hover img { transform: scale(1.04); }
.work-grid figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,0.78));
  font: 600 13px/1.3 var(--body); color: #fff; pointer-events: none;
}
.work-grid figcaption small { display: block; font: 500 10.5px/1.3 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.75; margin-bottom: 3px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: 999px;
  background: transparent; color: var(--fg-2); border: 1.5px solid var(--line);
  font: 600 14px/1 var(--body); cursor: pointer; text-decoration: none; transition: all 0.15s ease;
}
.chip:hover { color: var(--fg); border-color: rgba(241,241,241,0.4); }
.chip[aria-pressed="true"], .chip.is-on { background: var(--bone); color: var(--ink-2); border-color: var(--bone); }
.work-grid figure[hidden] { display: none; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(10,9,9,0.94); display: none; align-items: center; justify-content: center; padding: 56px 16px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 100%; max-width: 100%; width: auto; border-radius: 8px; object-fit: contain; }
.lightbox p { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; color: var(--fg-2); font-size: 14px; margin: 0; padding: 0 60px; }
.lightbox button { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--ink-2); color: var(--fg); font-size: 22px; cursor: pointer; display: grid; place-items: center; }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }

/* ---------- process ---------- */
.steps { counter-reset: step; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { padding: 28px 24px; border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font: 900 italic 44px/1 var(--display); font-variation-settings: "wdth" 112;
  background: var(--rainbow); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 18px; width: max-content; padding-right: 4px;
}
.step h4 { font-size: 19px; }
.step p { color: var(--fg-2); font-size: 15.5px; margin: 0; }
.section--paper .step { background: #fff; border-color: rgba(35,31,32,0.1); }
.section--paper .step p { color: var(--paper-2); }

/* ---------- pricing ---------- */
.plans { display: grid; gap: 18px; grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { display: flex; flex-direction: column; padding: 32px 28px; border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line); position: relative; }
.plan.featured { border: 0; }
.plan.featured::before { content: ""; position: absolute; inset: 0; padding: 2px; border-radius: inherit; background: var(--rainbow); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.plan .tag { position: absolute; top: -12px; left: 28px; background: var(--bone); color: var(--ink-2); font: 700 11px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; }
.plan h3 { font-size: 30px; margin-bottom: 8px; }
.plan .price { font: 900 italic 52px/1 var(--display); font-variation-settings: "wdth" 108; margin: 16px 0 4px; }
.plan .price small { font: 500 15px/1 var(--body); font-style: normal; color: var(--fg-3); margin-left: 6px; }
.plan .terms { font: 500 12px/1.4 var(--mono); color: var(--fg-3); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 18px; }
.plan > p { color: var(--fg-2); font-size: 15.5px; }
.plan ul.ticks { margin: 8px 0 24px; }
.plan .btn { margin-top: auto; width: 100%; }
.addons { margin-top: 28px; padding: 24px 28px; border-radius: var(--radius); border: 1px dashed rgba(241,241,241,0.22); color: var(--fg-2); font-size: 15.5px; }
.addons h4 { color: var(--fg); }
.addons ul { margin: 0; padding-left: 1.1em; columns: 2 220px; column-gap: 32px; }
.addons li { margin-bottom: 6px; break-inside: avoid; }

/* ---------- feature list ---------- */
.feature { display: grid; gap: 6px; padding: 24px 0; border-top: 1px solid var(--line); }
.feature h4 { font-size: 19px; }
.feature p { color: var(--fg-2); margin: 0; font-size: 16px; }
.section--paper .feature { border-color: rgba(35,31,32,0.12); }
.section--paper .feature p { color: var(--paper-2); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); max-width: 900px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 44px 22px 0; position: relative; font: 700 18px/1.4 var(--body); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 400 28px/1 var(--body); color: var(--fg-3); transition: transform 0.2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .ans { padding: 0 0 22px; color: var(--fg-2); max-width: 70ch; }
.faq .ans p:last-child { margin: 0; }
.section--paper .faq, .section--paper .faq details { border-color: rgba(35,31,32,0.14); }
.section--paper .faq .ans { color: var(--paper-2); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: clamp(20px, 3vw, 32px); padding: clamp(40px, 6vw, 80px); background: var(--ink-2); isolation: isolate; }
.cta-band::before { content: ""; position: absolute; inset: 0; padding: 2px; border-radius: inherit; background: var(--rainbow); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.cta-band::after { content: ""; position: absolute; z-index: -1; width: 600px; height: 600px; right: -200px; bottom: -300px; background: conic-gradient(#00aeef, #ec008c, #fff200, #00aeef); filter: blur(120px); opacity: 0.2; }
.cta-band h2 { max-width: 14ch; }
.cta-band .lede { margin-bottom: 28px; }
.cta-band .contact-lines { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 26px; font: 500 14px/1.4 var(--mono); color: var(--fg-3); }
.cta-band .contact-lines a { color: var(--fg); text-decoration: none; }

/* ---------- forms ---------- */
.form-card { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 40px); }
.section--paper .form-card { background: #fff; border-color: rgba(35,31,32,0.1); }
.fields { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .fields { grid-template-columns: 1fr 1fr; } .fields .full { grid-column: 1 / -1; } }
.field { display: grid; gap: 7px; }
.field label, .field .label, fieldset legend { font: 600 14px/1.3 var(--body); color: var(--fg); }
.field label .opt, legend .opt { color: var(--fg-3); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  background: var(--ink); color: var(--fg);
  border: 1.5px solid rgba(241,241,241,0.16); border-radius: var(--radius-sm);
  font: 400 16px/1.4 var(--body);
  transition: border-color 0.15s ease;
}
.field textarea { min-height: 130px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--fg-3) 50%), linear-gradient(135deg, var(--fg-3) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan); }
.field input::placeholder, .field textarea::placeholder { color: rgba(241,241,241,0.32); }
.section--paper .field label, .section--paper fieldset legend { color: var(--paper-ink); }
.section--paper .field input, .section--paper .field select, .section--paper .field textarea { background: var(--paper); color: var(--paper-ink); border-color: rgba(35,31,32,0.18); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset legend { margin-bottom: 10px; padding: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices label { position: relative; cursor: pointer; }
.choices input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choices span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1.5px solid rgba(241,241,241,0.18); color: var(--fg-2); font: 600 14.5px/1 var(--body);
  transition: all 0.15s ease;
}
.choices label:hover span { border-color: rgba(241,241,241,0.45); color: var(--fg); }
.choices input:checked + span { background: var(--bone); color: var(--ink-2); border-color: var(--bone); }
.choices input:focus-visible + span { outline: 3px solid var(--cyan); outline-offset: 2px; }
.section--paper .choices span { border-color: rgba(35,31,32,0.2); color: var(--paper-2); }
.section--paper .choices input:checked + span { background: var(--ink-2); color: var(--bone); border-color: var(--ink-2); }
.choices--cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.choices--cards span { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; min-height: 76px; padding: 14px 18px; border-radius: 14px; width: 100%; line-height: 1.2; }
.choices--cards span small { font-weight: 400; font-size: 13px; opacity: 0.75; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 24px; }
.form-note { font-size: 14.5px; color: var(--fg-3); margin: 0; }
.form-note a { color: var(--fg); }
.form-note--ok { color: #6ee7a8; }
.form-note--err { color: #ff8fa3; }
.section--paper .form-note--err { color: #b4002d; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* multi-step funnel */
.funnel-progress { display: flex; gap: 6px; margin-bottom: 28px; }
.funnel-progress span { flex: 1; height: 4px; border-radius: 4px; background: rgba(241,241,241,0.12); overflow: hidden; position: relative; }
.funnel-progress span.done::after { content: ""; position: absolute; inset: 0; background: var(--rainbow); }
.funnel-step[hidden] { display: none; }
.funnel-step > h3 { font-size: clamp(26px, 3vw, 36px); }
.funnel-step .step-count { font: 500 12px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 12px; }
.funnel-error { color: #ff8fa3; font-size: 14.5px; margin: 14px 0 0; min-height: 1.4em; }

/* contact aside */
.contact-aside { display: grid; gap: 20px; align-content: start; }
.contact-aside .card h4 { margin-bottom: 6px; }
.contact-aside a { color: var(--fg); }
.contact-line { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.contact-line svg { width: 22px; height: 22px; flex: none; margin-top: 2px; color: var(--fg-3); }
.contact-line b { display: block; font-size: 17px; }
.contact-line span { color: var(--fg-3); font-size: 14px; }

/* ---------- blog ---------- */
.post-list { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .post-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .post-list { grid-template-columns: repeat(3, 1fr); } }
.post-card .meta { font: 500 12px/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 10px; }
.post-card h3 { font-size: 22px; line-height: 1.1; }
.article { max-width: 760px; margin: 0 auto; }
.article-head { padding: clamp(48px, 7vw, 96px) 0 32px; }
.article-head h1 { font-size: clamp(34px, 5.4vw, 64px); line-height: 1; max-width: none; }
.article-meta { font: 500 13px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-3); }
.article-body { font-size: 18.5px; line-height: 1.75; color: rgba(241,241,241,0.86); padding-bottom: 64px; }
.article-body h2, .article-body h3 { margin: 1.6em 0 0.5em; }
.article-body h2 { font-size: clamp(28px, 3.4vw, 40px); }
.article-body h3 { font-size: clamp(22px, 2.6vw, 30px); }
.article-body h4 { margin: 1.4em 0 0.4em; font-size: 20px; }
.article-body img { border-radius: 12px; margin: 28px 0; }
.article-body a { color: var(--fg); text-decoration-color: var(--magenta); text-underline-offset: 3px; }
.article-body ul, .article-body ol { padding-left: 1.3em; }
.article-body li { margin-bottom: 0.4em; }
.article-body blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid; border-image: var(--rainbow-v) 1; color: var(--fg); font-style: italic; }
.article-body figure { margin: 0; }
.table-wrap { overflow-x: auto; margin: 24px 0; border: 1px solid var(--line); border-radius: 12px; }
.article-body table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; min-width: 560px; }
.article-body th, .article-body td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.article-body tr:first-child td, .article-body th { font-weight: 700; color: var(--fg); background: rgba(241,241,241,0.04); }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 28px 0; }
.gallery img { margin: 0; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.author-box { display: flex; gap: 18px; align-items: center; padding: 24px; border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line); margin-bottom: 64px; }
.author-box img { width: 64px; height: 64px; border-radius: 50%; flex: none; }
.author-box p { margin: 0; color: var(--fg-2); font-size: 15.5px; }

/* ---------- media blocks ---------- */
.media-frame { border-radius: var(--radius); overflow: hidden; background: var(--ink-3); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.media-stack .media-frame:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.media-stack .media-frame { aspect-ratio: 1; }
.stat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
@media (min-width: 900px) { .stat-row { grid-template-columns: repeat(4, 1fr); } }
.stat-row div { background: var(--ink); padding: 28px 24px; }
.stat-row b { display: block; font: 900 italic clamp(30px, 3.4vw, 44px)/1 var(--display); font-variation-settings: "wdth" 110; margin-bottom: 8px; }
.stat-row span { color: var(--fg-2); font-size: 15px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: clamp(56px, 7vw, 96px) 0 32px; position: relative; }
.site-footer::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 2px; background: var(--rainbow); }
.footer-grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-brand img { width: 200px; height: auto; margin-bottom: 18px; }
.footer-brand p { color: var(--fg-2); font-size: 15.5px; max-width: 34ch; }
.site-footer h4 { font: 500 12px/1.4 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer ul a { color: var(--fg-2); text-decoration: none; font-size: 15px; }
.site-footer ul a:hover { color: var(--fg); }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--fg-2); transition: all 0.15s ease; }
.socials a:hover { color: var(--ink-2); background: var(--bone); box-shadow: none; }
.socials svg { width: 18px; height: 18px; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--fg-3); }
.footer-base a { color: var(--fg-3); }
.footer-tag { font: 900 italic clamp(20px, 2.6vw, 32px)/1 var(--display); font-variation-settings: "wdth" 112; text-transform: uppercase; margin: 48px 0 0; width: max-content; max-width: 100%; background: var(--rainbow); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: 0.9; padding-right: 0.1em; }

/* ---------- misc ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font: 600 12.5px/1 var(--body); background: rgba(241,241,241,0.08); color: var(--fg-2); }
.notice { padding: 18px 22px; border-radius: 14px; background: rgba(241,241,241,0.05); border: 1px solid var(--line); color: var(--fg-2); font-size: 15.5px; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-l { margin-top: clamp(32px, 4vw, 56px); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.err-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.err-page img { width: 160px; margin: 0 auto 28px; }

@media print {
  .site-header, .action-bar, .site-footer, .cta-band, form { display: none !important; }
  body { background: #fff; color: #000; }
}

/* pictures fill their frames */
.work-grid picture, .media-frame picture, .card-media picture { width: 100%; height: 100%; }

/* dark-on-paper fixes for components that default to the dark theme */
.section--paper .opt, .section--paper .form-note, .section--paper .small { color: var(--paper-2); }
.section--paper .form-note a { color: var(--paper-ink); }
.section--paper .contact-line { color: var(--paper-ink); border-color: rgba(35,31,32,0.12); }
.section--paper .contact-line span, .section--paper .contact-line svg { color: var(--paper-2); }
.section--paper .field input::placeholder, .section--paper .field textarea::placeholder { color: rgba(35,31,32,0.35); }
.section--paper .field select { background-image: linear-gradient(45deg, transparent 50%, var(--paper-2) 50%), linear-gradient(135deg, var(--paper-2) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.section--paper .textlink, .section--paper .contact-aside a { color: var(--paper-ink); }
.section--paper .funnel-progress span { background: rgba(35,31,32,0.12); }

/* full-color logos that can't be flattened to a white silhouette */
.marquee img.keep, .logo-wall img.keep { filter: grayscale(1) contrast(1.1); opacity: 0.85; }

/* CardHouse cross-link note on service pages */
.ch-note { display: grid; gap: 20px; align-items: center; padding: clamp(24px, 3vw, 36px); border-radius: var(--radius); border: 1px dashed rgba(241,241,241,0.22); background: rgba(241,241,241,0.03); }
.ch-note h3 { margin-bottom: 8px; }
.ch-note p:not(.eyebrow) { color: var(--fg-2); margin: 0; max-width: 62ch; }
.ch-note .btn { justify-self: start; }
@media (min-width: 800px) { .ch-note { grid-template-columns: 1fr auto; gap: 40px; } .ch-note .btn { justify-self: end; } }
