/* ==========================================================================
   Showcase Hub — neutral frame so the 15 concepts carry the colour.

   The frame takes its colours from the Dea brand art (Banner/, Icon/):
   cream and charcoal for ground and type, brown and warm grey for the
   quieter parts, and the art's purple as the one accent.
     --accent       purple, for fills: buttons, badges, cursor, progress.
                    Cream sits on it at 4.9:1.
     --accent-ink   purple as text and outlines. Pure purple on cream is
                    4.9:1; on charcoal it drops to 3:1, so dark mode lifts it
                    a quarter of the way to cream (4.6:1).
   ========================================================================== */

:root {
  --dea-charcoal: #1c1a1c;
  --dea-cream: #f3efea;
  --dea-purple: #7d3de8;
  --dea-brown: #463229;
  --dea-warm-grey: #a99f96;

  --bg: var(--dea-cream);
  --surface: #fbf9f6;
  --text: var(--dea-charcoal);
  --muted: var(--dea-brown);
  --border: var(--dea-warm-grey);
  --accent: var(--dea-purple);
  --accent-ink: var(--dea-purple);
  --on-accent: var(--dea-cream);
  --glass: rgb(243 239 234 / 0.86);
  --shadow: 0 1px 2px rgb(28 26 28 / 0.05), 0 12px 32px -12px rgb(28 26 28 / 0.22);

  --f-display: "Instrument Serif", Georgia, serif;
  --f-head: "Inter Tight", "Inter", system-ui, sans-serif;
  --f-body: "Inter", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --header-h: 72px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: var(--dea-charcoal);
    --surface: #282628;
    --text: var(--dea-cream);
    --muted: var(--dea-warm-grey);
    --border: var(--dea-brown);
    --accent-ink: #9a6ae8;
    --glass: rgb(28 26 28 / 0.86);
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 16px 40px -16px rgb(0 0 0 / 0.7);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: var(--dea-charcoal);
  --surface: #282628;
  --text: var(--dea-cream);
  --muted: var(--dea-warm-grey);
  --border: var(--dea-brown);
  --accent-ink: #9a6ae8;
  --glass: rgb(28 26 28 / 0.86);
  --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 16px 40px -16px rgb(0 0 0 / 0.7);
  color-scheme: dark;
}

@view-transition {
  navigation: auto;
}

/* ---------- base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 var(--fs-base) / var(--lh-body) var(--f-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color var(--dur-base), color var(--dur-base);
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}

:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.nowrap {
  white-space: nowrap;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: var(--r-md);
  background: var(--text);
  color: var(--bg);
  transition: top var(--dur-fast);
}

.skip-link:focus {
  top: 1rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font: 500 var(--fs-xs) / 1 var(--f-mono);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 1px;
  background: currentColor;
}

.section {
  padding-block: var(--space-section);
}

.section-head {
  display: grid;
  gap: var(--space-4);
  margin-bottom: clamp(2rem, 5vw, 4rem);
  max-width: 52rem;
}

.section-title {
  margin: 0;
  font: 600 var(--fs-2xl) / 1.02 var(--f-head);
  letter-spacing: -0.035em;
}

.section-title em {
  font: italic 400 1.08em / 1 var(--f-display);
  letter-spacing: -0.01em;
}

/* ---------- buttons ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.8rem 1.4rem;
  border-radius: var(--r-pill);
  font: 500 var(--fs-sm) / 1 var(--f-body);
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: color var(--dur-base) var(--ease-out-expo), transform var(--dur-base) var(--ease-out-expo);
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--fill, var(--accent));
  transform: translateY(101%);
  transition: transform var(--dur-slow) var(--ease-out-expo);
  border-radius: inherit;
}

.btn:hover::before {
  transform: translateY(0);
}

.btn--primary {
  background: var(--text);
  color: var(--bg);
}

.btn--primary:hover {
  color: var(--on-accent);
}

.btn--ghost {
  box-shadow: inset 0 0 0 1px var(--border);
  --fill: var(--text);
}

.btn--ghost:hover {
  color: var(--bg);
}

.btn .arrow {
  transition: transform var(--dur-base) var(--ease-out-expo);
}

.btn:hover .arrow {
  transform: translateX(3px);
}

.pulse-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  flex: none;
}

.pulse-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
  animation: ping 2s var(--ease-out-expo) infinite;
}

@keyframes ping {
  to {
    transform: scale(2.8);
    opacity: 0;
  }
}

/* ---------- header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition:
    transform var(--dur-slow) var(--ease-out-expo),
    background-color var(--dur-base),
    border-color var(--dur-base),
    height var(--dur-base) var(--ease-out-expo);
}

.site-header.is-scrolled {
  --header-h: 60px;
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom-color: var(--border);
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font: 600 1.05rem / 1 var(--f-head);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

/* The avatar from Icon/, big enough that the face still reads. */
.logo-mark {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--dea-charcoal) url("../img/_brand/icon-96.png") center / cover;
  box-shadow: 0 0 0 1px var(--border);
}

.nav {
  display: flex;
  gap: var(--space-1);
  margin-inline: auto;
  position: relative;
}

.nav a {
  position: relative;
  padding: 0.5rem 0.9rem;
  font-size: var(--fs-sm);
  color: var(--muted);
  transition: color var(--dur-fast);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.25rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-base) var(--ease-out-expo);
}

.nav a:hover,
.nav a.is-active {
  color: var(--text);
}

.nav a:hover::after,
.nav a.is-active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transition: background-color var(--dur-fast);
}

.icon-btn:hover {
  background: color-mix(in srgb, var(--text) 7%, transparent);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

.theme-toggle .i-sun {
  display: none;
}

:root[data-theme-effective="dark"] .theme-toggle .i-sun {
  display: block;
}

:root[data-theme-effective="dark"] .theme-toggle .i-moon {
  display: none;
}

.menu-btn {
  display: none;
  min-height: 44px;
  padding: 0 0.9rem;
  border-radius: var(--r-pill);
  box-shadow: inset 0 0 0 1px var(--border);
  font-size: var(--fs-sm);
  font-weight: 500;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h) + 1rem) var(--gutter) 2rem;
  background: var(--bg);
  visibility: hidden;
  clip-path: inset(0 0 100% 0);
  transition: clip-path var(--dur-slow) var(--ease-out-expo), visibility 0s var(--dur-slow);
}

.mobile-menu.is-open {
  visibility: visible;
  clip-path: inset(0 0 0 0);
  transition: clip-path var(--dur-slow) var(--ease-out-expo);
}

.mobile-menu__close {
  position: absolute;
  top: 14px;
  right: var(--gutter);
}

.mobile-menu nav {
  display: grid;
  gap: 0.25rem;
}

.mobile-menu nav a {
  font: 600 clamp(2.5rem, 12vw, 4rem) / 1.1 var(--f-head);
  letter-spacing: -0.04em;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-base), transform var(--dur-slow) var(--ease-out-expo);
}

.mobile-menu.is-open nav a {
  opacity: 1;
  transform: none;
}

.mobile-menu.is-open nav a:nth-child(2) { transition-delay: 60ms; }
.mobile-menu.is-open nav a:nth-child(3) { transition-delay: 120ms; }
.mobile-menu.is-open nav a:nth-child(4) { transition-delay: 180ms; }
.mobile-menu.is-open nav a:nth-child(5) { transition-delay: 240ms; }

.mobile-menu__foot {
  margin-top: auto;
  display: grid;
  gap: 0.5rem;
  color: var(--muted);
  font-size: var(--fs-sm);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding: calc(var(--header-h) + 4rem) 0 clamp(2rem, 5vw, 4rem);
  overflow: hidden;
}

.hero-marquee {
  position: absolute;
  inset: -10% -20%;
  display: grid;
  align-content: center;
  gap: 20px;
  transform: rotate(-6deg);
  opacity: 0.32;
  pointer-events: none;
}

.hero-marquee__row {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: marquee 80s linear infinite;
}

.hero-marquee__row:nth-child(2) {
  animation-direction: reverse;
  animation-duration: 95s;
}

.hero-marquee__row:nth-child(3) {
  animation-duration: 70s;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

.mini {
  position: relative;
  flex: none;
  width: clamp(220px, 22vw, 340px);
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--bg) 18%, color-mix(in srgb, var(--bg) 70%, transparent) 50%, color-mix(in srgb, var(--bg) 40%, transparent)),
    radial-gradient(ellipse at 20% 80%, var(--bg), transparent 60%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  display: grid;
  gap: var(--space-8);
}

.hero-title {
  margin: 0;
  font: 600 clamp(3rem, 1.4rem + 7.2vw, 9.5rem) / 0.92 var(--f-head);
  letter-spacing: var(--tracking-hero);
  max-width: 14ch;
}

.hero-title em {
  font: italic 400 1.08em / 1 var(--f-display);
  letter-spacing: -0.02em;
}

/* The accent words keep the text colour and get a purple brush-stroke,
   the way the banner writes "Dea" in cream over a purple stroke. Painted
   behind the glyphs so the descenders cross it. */
.hero-title em,
.cta h2 em {
  position: relative;
  z-index: 0;
}

.hero-title em::after,
.cta h2 em::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -0.02em;
  right: 0.04em;
  bottom: 0.14em;
  height: 0.24em;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 24' preserveAspectRatio='none'%3E%3Cpath d='M1 17C60 11 140 4 199 1c1 4-1 8-6 9C130 14 60 19 6 23c-4 0-6-4-5-6z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 24' preserveAspectRatio='none'%3E%3Cpath d='M1 17C60 11 140 4 199 1c1 4-1 8-6 9C130 14 60 19 6 23c-4 0-6-4-5-6z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

.hero-title em::after {
  animation: brush var(--dur-reveal) var(--ease-out-expo) 650ms both;
}

@keyframes brush {
  from {
    clip-path: inset(0 100% 0 0);
  }
}

.line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
}

.line__inner {
  display: block;
  transform: translateY(110%);
  animation: line-up var(--dur-reveal) var(--ease-out-expo) forwards;
}

.line:nth-child(2) .line__inner { animation-delay: 90ms; }
.line:nth-child(3) .line__inner { animation-delay: 180ms; }

@keyframes line-up {
  to {
    transform: translateY(0);
  }
}

.hero-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-6);
}

.hero-sub {
  margin: 0;
  max-width: 34rem;
  font-size: var(--fs-lg);
  line-height: 1.4;
  color: var(--muted);
  opacity: 0;
  animation: fade-up var(--dur-slow) var(--ease-out-expo) 400ms forwards;
}

.hero-sub strong {
  color: var(--text);
  font-weight: 500;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  opacity: 0;
  animation: fade-up var(--dur-slow) var(--ease-out-expo) 520ms forwards;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font: 500 var(--fs-xs) / 1 var(--f-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- brand banner ----------
   The wide banner from Banner/, straight after the hero: who is behind the
   work, before the work itself. Phones get a 16:9 window onto it, weighted
   left so the wordmark and the face both stay in frame. */

.brand {
  padding-bottom: clamp(2rem, 5vw, 4rem);
}

.brand-banner {
  margin: 0;
  aspect-ratio: 5 / 2;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--dea-charcoal);
  outline: 1px solid var(--border);
  outline-offset: -1px;
}

.brand-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% 50%;
}

/* ---------- stats ---------- */

.stats {
  border-block: 1px solid var(--border);
}

.stats .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  display: grid;
  gap: 0.35rem;
  padding: clamp(1.25rem, 3vw, 2.25rem) 0;
  padding-inline: clamp(0.75rem, 2vw, 1.5rem);
  border-left: 1px solid var(--border);
}

.stat:first-child {
  border-left: 0;
  padding-left: 0;
}

.stat b {
  font: 600 var(--fs-xl) / 1 var(--f-head);
  letter-spacing: -0.03em;
}

.stat span {
  font-size: var(--fs-sm);
  color: var(--muted);
}

/* ---------- filters ---------- */

.work {
  padding-top: clamp(3rem, 7vw, 6rem);
}

.work-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.filters {
  position: sticky;
  top: calc(var(--header-h) - 1px);
  z-index: 40;
  margin-bottom: var(--space-8);
  padding-block: 0.75rem;
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-block: 1px solid var(--border);
  transition: top var(--dur-slow) var(--ease-out-expo);
}

body.header-hidden .filters {
  top: -1px;
}

.filters .container {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.chips {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
  min-width: 0;
  mask-image: linear-gradient(to right, #000 calc(100% - 2rem), transparent);
  padding: 2px;
}

.chips::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 40px;
  padding: 0 1rem;
  border-radius: var(--r-pill);
  box-shadow: inset 0 0 0 1px var(--border);
  font-size: var(--fs-sm);
  white-space: nowrap;
  transition: background-color var(--dur-fast), color var(--dur-fast), box-shadow var(--dur-fast);
}

.chip:hover {
  box-shadow: inset 0 0 0 1px var(--text);
}

.chip[aria-pressed="true"] {
  background: var(--text);
  color: var(--bg);
  box-shadow: none;
}

.chip .count {
  font: 500 0.72rem / 1 var(--f-mono);
  opacity: 0.75;
}

.chip:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.filter-tools {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: none;
}

.dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 5;
  width: 260px;
  padding: 0.5rem;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow), inset 0 0 0 1px var(--border);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top right;
  transition: opacity var(--dur-fast), transform var(--dur-base) var(--ease-out-expo), visibility 0s var(--dur-base);
}

.dropdown.is-open .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity var(--dur-fast), transform var(--dur-base) var(--ease-out-expo);
}

.dropdown-panel label {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 40px;
  padding: 0 0.7rem;
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  cursor: pointer;
}

.dropdown-panel label:hover {
  background: color-mix(in srgb, var(--text) 6%, transparent);
}

.dropdown-panel input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.dropdown-panel .count {
  margin-left: auto;
  font: 500 0.72rem var(--f-mono);
  color: var(--muted);
}

.dropdown-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.25rem;
  padding: 0.6rem 0.7rem 0.3rem;
  border-top: 1px solid var(--border);
  font-size: var(--fs-xs);
  color: var(--muted);
}

.dropdown-foot button {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--text);
}

.badge {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--on-accent);
  font: 600 0.7rem / 1 var(--f-mono);
}

.badge[hidden] {
  display: none;
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 40px;
  padding: 0 0.9rem 0 0.6rem;
  border-radius: var(--r-pill);
  box-shadow: inset 0 0 0 1px var(--border);
  font-size: var(--fs-sm);
  white-space: nowrap;
}

.switch__track {
  position: relative;
  width: 32px;
  height: 18px;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--text) 18%, transparent);
  transition: background-color var(--dur-base);
}

.switch__track::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.3);
  transition: transform var(--dur-base) var(--ease-out-expo);
}

.switch[aria-checked="true"] .switch__track {
  background: var(--accent);
}

.switch[aria-checked="true"] .switch__track::after {
  transform: translateX(14px);
}

.segmented {
  display: inline-flex;
  padding: 3px;
  border-radius: var(--r-pill);
  box-shadow: inset 0 0 0 1px var(--border);
}

.segmented button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 34px;
  border-radius: var(--r-pill);
  color: var(--muted);
}

.segmented button[aria-pressed="true"] {
  background: var(--text);
  color: var(--bg);
}

.segmented svg {
  width: 16px;
  height: 16px;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 40px;
  padding: 0 0.9rem;
  border-radius: var(--r-pill);
  box-shadow: inset 0 0 0 1px var(--border);
  font-size: var(--fs-sm);
  white-space: nowrap;
}

.filter-btn svg {
  width: 16px;
  height: 16px;
}

.result-line {
  font: 500 var(--fs-xs) / 1 var(--f-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- grid ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
  row-gap: clamp(32px, 4vw, 56px);
}

.grid[hidden],
.list[hidden] {
  display: none;
}

.card {
  grid-column: span var(--span, 4);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.card[hidden] {
  display: none;
}

.card__link {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-radius: var(--r-lg);
}

.card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border);
  transform: translateZ(0);
  transition: transform var(--dur-slow) var(--ease-out-expo), box-shadow var(--dur-slow) var(--ease-out-expo);
}

.card--lead .card__media {
  aspect-ratio: 16 / 10.5;
}

.card--side .card__media {
  flex: 1;
  aspect-ratio: auto;
  min-height: 260px;
}

.card--solo .card__media {
  aspect-ratio: 21 / 9;
}

.card__media .cover {
  transition: transform var(--dur-slow) var(--ease-out-expo);
}

.card__link:hover .card__media,
.card__link:focus-visible .card__media {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.card__link:hover .cover {
  transform: scale(1.04);
}

.card__link:focus-visible {
  outline-offset: 6px;
}

.swatches {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  display: flex;
  gap: 4px;
  padding: 5px;
  border-radius: var(--r-pill);
  background: rgb(255 255 255 / 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgb(0 0 0 / 0.12);
}

.sw {
  display: inline-flex;
  align-items: center;
  height: 16px;
  min-width: 16px;
  border-radius: var(--r-pill);
  background: var(--sw);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.12);
  overflow: hidden;
  transition: padding var(--dur-base) var(--ease-out-expo);
}

.sw span {
  max-width: 0;
  overflow: hidden;
  font: 600 9px / 1 var(--f-mono);
  color: var(--sw-ink);
  white-space: nowrap;
  transition: max-width var(--dur-slow) var(--ease-out-expo);
}

.card__link:hover .sw {
  padding: 0 6px;
}

.card__link:hover .sw span {
  max-width: 60px;
}

.feat {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 4;
  padding: 5px 9px;
  border-radius: var(--r-pill);
  background: var(--text);
  color: var(--bg);
  font: 500 10px / 1 var(--f-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card__meta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  column-gap: 0.75rem;
  row-gap: 0.2rem;
  padding-inline: 2px;
}

.card__num {
  font: 500 var(--fs-xs) / 1 var(--f-mono);
  color: var(--muted);
}

.card__name {
  margin: 0;
  font: 600 var(--fs-lg) / 1.15 var(--f-head);
  letter-spacing: -0.02em;
}

.card__arrow {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--border);
  align-self: center;
  transition: transform var(--dur-base) var(--ease-out-expo), background-color var(--dur-base), color var(--dur-base);
}

.card__arrow svg {
  width: 14px;
  height: 14px;
}

.card__link:hover .card__arrow {
  transform: rotate(45deg);
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: none;
}

.card__tags {
  grid-column: 2 / -1;
  font-size: var(--fs-sm);
  color: var(--muted);
}

.card.is-entering {
  animation: card-in var(--dur-slow) var(--ease-out-expo) both;
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }
}

/* ---------- list view ---------- */

.list {
  border-top: 1px solid var(--border);
}

.row {
  display: grid;
  grid-template-columns: 3rem minmax(0, 2fr) minmax(0, 1.4fr) minmax(0, 1.6fr) 4rem 2rem;
  align-items: center;
  gap: 1rem;
  min-height: 76px;
  padding-block: 1rem;
  border-bottom: 1px solid var(--border);
  transition: padding var(--dur-base) var(--ease-out-expo), color var(--dur-base);
}

.row[hidden] {
  display: none;
}

.row__num,
.row__year {
  font: 500 var(--fs-xs) / 1 var(--f-mono);
  color: var(--muted);
}

.row__name {
  font: 600 var(--fs-xl) / 1.1 var(--f-head);
  letter-spacing: -0.03em;
  transition: transform var(--dur-base) var(--ease-out-expo);
}

.row__niche,
.row__styles {
  font-size: var(--fs-sm);
  color: var(--muted);
}

.row__dots {
  display: inline-flex;
  gap: 3px;
  margin-right: 0.5rem;
  vertical-align: middle;
}

.row__dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.12);
}

.row__arrow {
  justify-self: end;
  transition: transform var(--dur-base) var(--ease-out-expo), color var(--dur-base);
}

.row:hover .row__name,
.row:focus-visible .row__name {
  transform: translateX(16px);
}

.row:hover .row__arrow {
  transform: rotate(45deg);
  color: var(--accent-ink);
}

.list-preview {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 45;
  width: 340px;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  overflow: hidden;
  pointer-events: none;
  box-shadow: 0 30px 60px -20px rgb(0 0 0 / 0.45);
  opacity: 0;
  scale: 0.85;
  transition: opacity var(--dur-base), scale var(--dur-slow) var(--ease-out-expo);
}

.list-preview.is-visible {
  opacity: 1;
  scale: 1;
}

.empty {
  display: grid;
  justify-items: center;
  gap: 1rem;
  padding: 5rem 1rem;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: var(--r-xl);
}

.empty[hidden] {
  display: none;
}

.empty p {
  margin: 0;
  max-width: 28rem;
  font: 600 var(--fs-xl) / 1.2 var(--f-head);
  letter-spacing: -0.02em;
}

/* ---------- services ---------- */

.services {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(12px, 1.5vw, 20px);
}

/* Five cards: 5 across on wide screens, then 3 + 2. */
@media (max-width: 1279.98px) {
  .services {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.service {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: clamp(1.25rem, 2vw, 2rem);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border);
  transition: transform var(--dur-slow) var(--ease-out-expo), box-shadow var(--dur-slow) var(--ease-out-expo);
}

.service:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow), inset 0 0 0 1px var(--border);
}

.service h3 {
  margin: 0;
  font: 600 var(--fs-lg) / 1.2 var(--f-head);
  letter-spacing: -0.02em;
}

.service__price {
  font: italic 400 var(--fs-2xl) / 1 var(--f-display);
}

.service__time {
  font: 500 var(--fs-xs) / 1 var(--f-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.service ul {
  margin: 0;
  padding: 1.25rem 0 0;
  list-style: none;
  display: grid;
  gap: 0.6rem;
  border-top: 1px solid var(--border);
  font-size: var(--fs-sm);
  color: var(--muted);
}

.service li {
  display: flex;
  gap: 0.6rem;
}

.service li::before {
  content: "✓";
  color: var(--accent-ink);
  font-weight: 600;
}

.service__calc {
  margin-top: auto;
  align-self: flex-start;
  min-height: 44px;
}

/* ---------- price calculator ----------
   The calculator's own styles are in calculator.css, loaded with it.
   Only what has to be there before it loads lives here. */

.calc-section {
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.section-lede {
  margin: 0;
  max-width: 40rem;
  color: var(--muted);
}

/* Holds roughly the calculator's height until it loads, so the sections
   below don't jump when it appears. */
.calc-mount[aria-busy="true"] {
  min-height: 3400px;
}

@media (min-width: 1024px) {
  .calc-mount[aria-busy="true"] {
    min-height: 2300px;
  }
}

/* ---------- process ---------- */

.process {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 3vw, 3rem);
  counter-reset: step;
}

.process__line {
  position: absolute;
  left: 0;
  right: 0;
  top: 22px;
  height: 1px;
  background: var(--border);
}

.process__line i {
  display: block;
  height: 100%;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(var(--progress, 0));
}

.step {
  position: relative;
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

.step__dot {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--border);
  font: 500 var(--fs-xs) / 1 var(--f-mono);
  transition: background-color var(--dur-base), color var(--dur-base), box-shadow var(--dur-base);
}

.step.is-lit .step__dot {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: none;
}

.step h3 {
  margin: 0.5rem 0 0;
  font: 600 var(--fs-lg) / 1.2 var(--f-head);
  letter-spacing: -0.02em;
}

.step p {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--muted);
}

/* ---------- about ---------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}

/* The tall banner from Banner/, shown whole: 2:3 is its native shape. */
.portrait {
  margin: 0;
  aspect-ratio: 2 / 3;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--dea-charcoal);
  outline: 1px solid var(--border);
  outline-offset: -1px;
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__text p {
  margin: 0 0 1.25rem;
  font-size: var(--fs-lg);
  line-height: 1.5;
  color: var(--muted);
  max-width: 40rem;
}

.about__text p strong {
  color: var(--text);
  font-weight: 500;
}

.tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}

.tools span {
  padding: 0.5rem 0.9rem;
  border-radius: var(--r-pill);
  box-shadow: inset 0 0 0 1px var(--border);
  font-size: var(--fs-sm);
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 56rem;
  border-top: 1px solid var(--border);
}

.faq details {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 72px;
  cursor: pointer;
  list-style: none;
  font: 600 var(--fs-lg) / 1.3 var(--f-head);
  letter-spacing: -0.015em;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--border);
  font: 400 1.2rem / 1 var(--f-body);
  transition: transform var(--dur-base) var(--ease-out-expo);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  margin: 0;
  padding: 0 3rem 1.5rem 0;
  color: var(--muted);
  max-width: 44rem;
}

/* ---------- CTA ---------- */

.cta {
  position: relative;
  padding-block: clamp(6rem, 16vw, 14rem);
  overflow: hidden;
  text-align: center;
  border-top: 1px solid var(--border);
}

.cta::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 60%;
  width: 90vw;
  height: 60vw;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 22%, transparent), transparent);
  pointer-events: none;
}

.cta .container {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 2rem;
}

.cta h2 {
  margin: 0;
  font: 600 var(--fs-hero) / 0.9 var(--f-head);
  letter-spacing: var(--tracking-hero);
}

.cta h2 em {
  font: italic 400 1.05em / 1 var(--f-display);
}

.cta p {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-lg);
}

/* ---------- footer ---------- */

.site-footer {
  padding: clamp(3rem, 6vw, 5rem) 0 2rem;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: clamp(2rem, 5vw, 4rem);
}

.footer-grid h3 {
  margin: 0 0 1rem;
  font: 500 var(--fs-xs) / 1 var(--f-mono);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--muted);
}

.footer-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.footer-grid a,
.copy-email {
  transition: color var(--dur-fast);
}

.footer-grid a:hover,
.copy-email:hover {
  color: var(--accent-ink);
}

.copy-email {
  font: 600 var(--fs-xl) / 1.1 var(--f-head);
  letter-spacing: -0.02em;
  text-align: left;
  word-break: break-all;
}

.local-time {
  font-family: var(--f-mono);
  font-size: var(--fs-sm);
}

.wordmark {
  font: 600 clamp(3rem, 15.5vw, 16rem) / 0.8 var(--f-head);
  letter-spacing: -0.06em;
  white-space: nowrap;
  color: color-mix(in srgb, var(--text) 8%, transparent);
  user-select: none;
  overflow: hidden;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: var(--fs-xs);
  color: var(--muted);
}

.footer-bottom nav {
  display: flex;
  gap: 1.25rem;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 90;
  padding: 0.7rem 1.1rem;
  border-radius: var(--r-pill);
  background: var(--text);
  color: var(--bg);
  font-size: var(--fs-sm);
  transform: translate(-50%, calc(100% + 40px));
  visibility: hidden;
  transition: transform var(--dur-slow) var(--ease-out-expo), visibility 0s var(--dur-slow);
}

.toast.is-visible {
  transform: translate(-50%, 0);
  visibility: visible;
  transition: transform var(--dur-slow) var(--ease-out-expo);
}

/* ---------- cursor ---------- */

.cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  margin: -44px 0 0 -44px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font: 600 12px / 1 var(--f-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  pointer-events: none;
  scale: 0;
  transition: scale var(--dur-base) var(--ease-out-expo);
}

.cursor.is-visible {
  scale: 1;
}

.has-cursor .card__link {
  cursor: none;
}

/* ---------- scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-slow) var(--ease-out-expo), transform var(--dur-reveal) var(--ease-out-expo);
  transition-delay: var(--delay, 0ms);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
  .services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .row {
    grid-template-columns: 2.5rem minmax(0, 2fr) minmax(0, 1.4fr) 2rem;
  }

  .row__styles,
  .row__year {
    display: none;
  }
}

@media (max-width: 900px) {
  .nav,
  .header-cta {
    display: none;
  }

  .menu-btn {
    display: inline-flex;
    align-items: center;
  }

  .header-actions {
    margin-left: auto;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card {
    grid-column: span 1;
  }

  .card--lead,
  .card--solo {
    grid-column: 1 / -1;
  }

  .card--side .card__media,
  .card--solo .card__media {
    flex: none;
    aspect-ratio: 4 / 3;
    min-height: 0;
  }

  .card--lead .card__media {
    aspect-ratio: 16 / 10;
  }

  .stats .container {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }

  .stat:nth-child(n + 3) {
    border-top: 1px solid var(--border);
  }

  .process {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 2.5rem;
  }

  .process__line {
    display: none;
  }

  .about {
    grid-template-columns: 1fr;
  }

  .portrait {
    max-width: 360px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }

  .list-preview {
    display: none;
  }
}

@media (max-width: 640px) {
  .grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .brand-banner {
    aspect-ratio: 16 / 9;
    border-radius: var(--r-lg);
  }

  .card,
  .card--lead,
  .card--solo {
    grid-column: 1 / -1;
  }

  .card--lead .card__media {
    aspect-ratio: 4 / 3;
  }

  .services {
    grid-template-columns: minmax(0, 1fr);
  }

  .process {
    grid-template-columns: minmax(0, 1fr);
  }

  .filters .container {
    flex-wrap: wrap;
  }

  .chips {
    flex-basis: 100%;
    order: 2;
  }

  .filter-tools {
    width: 100%;
    justify-content: space-between;
  }

  .switch__label-long {
    display: none;
  }

  .row {
    grid-template-columns: 2rem minmax(0, 1fr) 1.5rem;
  }

  .row__niche {
    display: none;
  }

  .row__name {
    font-size: var(--fs-lg);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-ctas .btn {
    flex: 1;
    justify-content: center;
  }
}

@media (max-width: 400px) {
  .site-header .container {
    gap: var(--space-2);
  }

  .logo {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .logo > span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .header-actions {
    gap: 0;
  }

  .hero-ctas .btn {
    flex-basis: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-marquee__row,
  .m-kin__band div {
    animation: none;
  }

  .line__inner,
  .hero-sub,
  .hero-ctas {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .hero-title em::after {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- language toggle ----------
   Shows the language you are currently reading, the way a passport stamp
   does — not the one you'd switch to. The aria-label carries the action. */

.lang-toggle {
  font: 600 0.72rem/1 var(--f-mono);
  letter-spacing: 0.06em;
  color: var(--muted);
  position: relative;
}

.lang-toggle:hover {
  color: var(--text);
}

.lang-toggle__cur {
  display: block;
  padding-bottom: 1px;
  border-bottom: 1.5px solid currentColor;
}

@media (max-width: 720px) {
  .lang-toggle {
    width: 38px;
    height: 38px;
  }
}

/* A live project says so, in the brand's own accent rather than the
   neutral "Featured" chip. */
.feat--live {
  background: #22c55e;
  color: #04210f;
}

/* Work in progress: amber, so it reads as "not shipped yet" next to the
   green Live chip. */
.feat--wip {
  background: #f59e0b;
  color: #2a1a00;
}

/* Concepts with a clickable, animated build in hub/demo/. */
.feat--demo {
  background: #c9a7ff;
  color: #1a1024;
}
