/* The wordmark and heading face, self-hosted: same look everywhere, nothing sent to a font service */
@font-face {
  font-family: "Unbounded"; font-weight: 700; font-display: swap;
  src: url("fonts/unbounded-latin-700.woff2") format("woff2");
}

/* Each color is light-dark(light, dark): it follows the system until the header switch pins a theme */
/* Light values first: browsers without light-dark() stay readable, in the light theme */
:root {
  color-scheme: light dark;
  /* Light: white cards float on a soft grey page; dark: grey cards on black */
  --bg: #f5f5f7;
  --surface: #fff;
  --card-shadow: rgba(0, 0, 0, 0.06);
  --card-edge: rgba(0, 0, 0, 0.07);
  /* Project preview panel: a cool tint so it never reads as white on white */
  --preview-bg: #e6ebf3;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --accent: #0066cc;
  /* Solid brand blue for small accents (skip link, preview line) */
  --accent-fill: #0071e3;
  --accent-ink: #fff;
  /* Tinted fills: translucent blue with deeper blue text, softer than solid but still AA readable */
  --tint: color-mix(in srgb, var(--accent-fill) 15%, transparent);
  --tint-strong: color-mix(in srgb, var(--accent-fill) 24%, transparent);
  --accent-strong: #0058b0;
  --nav-bg: rgba(255, 255, 255, 0.72);
  --avatar-bg: #1d1d1f;
  --danger: #e30000;
  --success: #1a8e3c;
  --radius: 22px;
  --gutter: clamp(16px, 5vw, 40px);
  --max: 1080px;
  --spring: cubic-bezier(0.2, 0.8, 0.2, 1);
  --display: "Unbounded", -apple-system, "Segoe UI", system-ui, sans-serif;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
}
@supports (color: light-dark(#000, #fff)) {
  :root {
    --bg: light-dark(#f5f5f7, #000);
    --surface: light-dark(#fff, #1c1c1e);
    --card-shadow: light-dark(rgba(0, 0, 0, 0.06), transparent);
    --card-edge: light-dark(rgba(0, 0, 0, 0.07), transparent);
    --preview-bg: light-dark(#e6ebf3, #2c2c2e);
    --ink: light-dark(#1d1d1f, #f5f5f7);
    --ink-2: light-dark(#6e6e73, #a1a1a6);
    --accent: light-dark(#0066cc, #2997ff);
    --tint: light-dark(color-mix(in srgb, var(--accent-fill) 15%, transparent), color-mix(in srgb, var(--accent-fill) 30%, transparent));
    --tint-strong: light-dark(color-mix(in srgb, var(--accent-fill) 24%, transparent), color-mix(in srgb, var(--accent-fill) 42%, transparent));
    --accent-strong: light-dark(#0058b0, #64b5ff);
    --nav-bg: light-dark(rgba(255, 255, 255, 0.72), rgba(0, 0, 0, 0.7));
    --avatar-bg: light-dark(#1d1d1f, #3a3a3c);
    --danger: light-dark(#e30000, #ff6961);
    --success: light-dark(#1a8e3c, #30d158);
  }
}

:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

/* Theme change: the new palette grows out of the switch as a circle (driven from script.js) */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 64px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 1.0625rem/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.skip {
  position: absolute; left: var(--gutter); top: -60px;
  background: var(--accent-fill); color: var(--accent-ink);
  padding: 8px 14px; border-radius: 10px; z-index: 20;
}
.skip:focus { top: 8px; }

/* Navigation: translucent layer, content scrolls underneath */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  transition: box-shadow 0.3s ease;
}
.nav.is-scrolled { box-shadow: 0 1px 0 rgba(128, 128, 128, 0.25); }

.nav__inner {
  max-width: var(--max); margin: 0 auto; height: 56px;
  padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
}
.nav__brand { display: flex; align-items: center; gap: 10px; }
/* Wordmark: wide display face */
.nav__brand span {
  font-family: var(--display);
  font-weight: 700; font-size: 1.1875rem; letter-spacing: -0.02em;
}
.nav__logo {
  width: 28px; height: 26px;
  fill: none; stroke: currentColor; stroke-width: 4.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.nav__links { display: flex; align-items: center; gap: clamp(14px, 3vw, 28px); font-size: 0.875rem; }
.nav__links a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--ink-2); transition: color 0.2s ease;
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--ink); }
.nav__links .nav__cta {
  position: relative; min-height: 32px;
  color: var(--accent-strong); background: var(--tint);
  padding: 0 14px; border-radius: 980px;
}
/* Invisible extension so the pill is a 44px tap target */
.nav__cta::before { content: ""; position: absolute; inset: -6px 0; }

.nav__toggle {
  display: none; width: 44px; height: 44px; margin-right: -10px;
  place-items: center; padding: 0; border: 0; background: none;
  color: var(--ink); cursor: pointer; touch-action: manipulation;
}
.nav__toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.nav__toggle path { transition: d 0.25s var(--spring); }
.nav.is-open .nav__toggle path { d: path("M6 6l12 12M6 18L18 6"); }
.nav__links .nav__cta:hover { color: var(--accent-strong); background: var(--tint-strong); }

/* Theme switch: the sun's rays fold away while a shadow slides across to carve a moon */
.nav__bar { display: flex; align-items: center; gap: 10px; }
.nav__theme {
  display: grid; place-items: center; width: 44px; height: 44px; margin-right: -10px;
  padding: 0; border: 0; border-radius: 50%; background: none;
  color: var(--ink-2); cursor: pointer; touch-action: manipulation;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.1s ease-out;
}
@media (hover: hover) { .nav__theme:hover { color: var(--ink); background: rgba(128, 128, 128, 0.14); } }
.nav__theme:active { transform: scale(0.9); }
/* Without script the switch can't work, so it stays out of sight */
:root:not([data-theme]) .nav__theme { display: none; }
.nav__theme svg { width: 20px; height: 20px; overflow: visible; }
.theme-icon__core {
  fill: currentColor; transform-box: fill-box; transform-origin: center;
  transition: transform 0.6s var(--spring);
}
.theme-icon__shade { transition: transform 0.6s var(--spring); }
.theme-icon__rays {
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round;
  transform-origin: 12px 12px;
  transition: transform 0.6s var(--spring), opacity 0.3s ease;
}
[data-theme="dark"] .theme-icon__core { transform: scale(1.75); }
[data-theme="dark"] .theme-icon__shade { transform: translate(-8.5px, 9.5px); }
[data-theme="dark"] .theme-icon__rays { transform: rotate(-90deg) scale(0.4); opacity: 0; }

/* Hero */
.hero {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(56px, 9vw, 104px) var(--gutter) clamp(32px, 5vw, 56px);
}
.hero__title {
  max-width: 22ch;
  font-family: var(--display);
  font-size: clamp(2rem, 5.6vw, 3.75rem);
  line-height: 1.08; letter-spacing: -0.035em; font-weight: 700;
  text-wrap: balance;
}
.hero__lead {
  max-width: 34rem; margin: 24px 0 0;
  font-size: clamp(1.125rem, 2.4vw, 1.375rem); line-height: 1.4;
  color: var(--ink-2); text-wrap: pretty;
}
.hero__actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }

/* Buttons: feedback on press, instantly */
.btn {
  display: inline-block; padding: 12px 24px; border-radius: 980px;
  font-size: 1.0625rem; font-weight: 500;
  transition: transform 0.1s ease-out, background-color 0.2s ease;
}
.btn:active, .nav__cta:active { transform: scale(0.97); }
.btn--primary { background: var(--accent-fill); color: var(--accent-ink); }
.btn--primary:hover { background: color-mix(in srgb, var(--accent-fill) 85%, #000); }
.btn--ghost { color: var(--accent); box-shadow: inset 0 0 0 1px rgba(128, 128, 128, 0.35); }
.btn--ghost:hover { background: var(--surface); }

/* VG buttons: an arrow that nudges on hover */
.btn--vg { display: inline-flex; align-items: center; gap: 8px; }
.btn__arrow {
  width: 16px; height: 16px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.4s var(--spring);
}
.btn--vg:hover .btn__arrow--down { transform: translateY(3px); }
.btn--vg:hover .btn__arrow--right { transform: translateX(4px); }

/* Sections */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(36px, 6vw, 64px) var(--gutter); }
.section__title {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3.4vw, 2.25rem);
  line-height: 1.15; letter-spacing: -0.03em; font-weight: 700;
}
.section__lead { margin-top: 12px; max-width: 34rem; color: var(--ink-2); }

/* Project grid */
.grid {
  margin-top: 32px;
  display: grid; gap: 16px;
  grid-template-columns: repeat(2, 1fr);
}
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 0 0 1px var(--card-edge), 0 4px 20px var(--card-shadow);
}
.card--wide { grid-column: span 2; }
/* A slim band with the name and type; the whole band is the name's link */
.card__band {
  position: relative; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 16px;
  padding: 18px 24px 16px; background: var(--preview-bg); border-bottom: 3px solid var(--accent-fill);
}
.card__name { font-family: var(--display); font-size: 1.25rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.03em; }
.card__name a::after { content: ""; position: absolute; inset: 0; }
.card__name a:hover { color: var(--accent-strong); }
.card__name a:focus-visible { outline: none; }
.card__band:has(a:focus-visible) { outline: 3px solid var(--accent); outline-offset: -3px; }
.card__kind { color: var(--ink); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }
.card__links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: auto; }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 20px 24px 24px; }
.card__link { display: inline-block; margin-top: 12px; color: var(--accent); font-weight: 500; font-size: 1rem; }
.card__link::after { content: " ›"; }
.card__note { display: inline-block; margin-top: 12px; color: var(--ink-2); font-size: 1rem; font-weight: 500; }
.card__body p { color: var(--ink-2); font-size: 1rem; }

.work__next { margin-top: 24px; color: var(--ink-2); }
.work__next .card__link { margin: 0 0 0 4px; }

/* Services */
.services { margin-top: 32px; display: grid; gap: 28px; grid-template-columns: repeat(3, 1fr); }
.services li { padding-top: 18px; border-top: 1px solid rgba(128, 128, 128, 0.3); }
.services h3 { font-size: 1.25rem; letter-spacing: -0.01em; font-weight: 600; }
.services p { margin-top: 8px; color: var(--ink-2); font-size: 1rem; }

/* How we work: four numbered steps, reusing the contact page's number style */
.how { margin-top: 32px; display: grid; gap: 28px; grid-template-columns: repeat(4, 1fr); padding: 0; list-style: none; }
.how h3 { margin-top: 12px; font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; }
.how p { margin-top: 6px; color: var(--ink-2); font-size: 1rem; }
@media (max-width: 860px) { .how { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .how { grid-template-columns: 1fr; } }

/* Case studies */
.case { max-width: 46rem; margin: 0 auto; padding: clamp(32px, 6vw, 64px) var(--gutter) clamp(48px, 9vw, 96px); }
.case__back { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 12px; color: var(--accent); font-weight: 500; }
.case .hero__lead { margin: 16px 0 0; max-width: none; }
.case__facts { margin-top: 28px; display: grid; gap: 20px 40px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 480px) { .case__facts { grid-template-columns: minmax(0, 1fr); } }
.case__facts dt { color: var(--ink-2); font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; }
.case__facts dd { margin: 4px 0 0; font-size: 1rem; font-weight: 500; }
.case__shot { display: block; width: 100%; height: auto; margin-top: 32px; border-radius: var(--radius); box-shadow: 0 0 0 1px var(--card-edge), 0 4px 20px var(--card-shadow); }
.case section { margin-top: 40px; }
.case h2 { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.015em; }
.case h3 { margin-top: 20px; font-size: 1.0625rem; font-weight: 600; }
.case section p, .case section ul { margin-top: 8px; color: var(--ink-2); }
.case section ul { padding-left: 1.2em; list-style: disc; }
.case section li + li { margin-top: 6px; }
.case__links { margin-top: 44px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.case__links .card__note { margin: 0; }
.case__next { display: inline-flex; align-items: center; min-height: 44px; margin-top: 28px; color: var(--accent); font-weight: 500; }

/* Questions */
.faq-section { display: grid; gap: 24px 40px; }
@media (min-width: 760px) { .faq-section { grid-template-columns: 1fr 2fr; align-items: start; } }
.faq { border-top: 1px solid rgba(128, 128, 128, 0.3); }
.faq details { border-bottom: 1px solid rgba(128, 128, 128, 0.3); }
.faq summary { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--ink-2); font-size: 1.375rem; font-weight: 400; line-height: 1; transition: transform 0.3s var(--spring); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 18px; color: var(--ink-2); }

/* Skills page: group name on the left, its skills on the right, all readable at once */
.skills-page { padding-top: 0; }
.skills-group { display: grid; gap: 12px 40px; padding: 28px 0; border-top: 1px solid rgba(128, 128, 128, 0.3); }
.skills-group h2 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; }
.skills-group dl { margin: 0; display: grid; gap: 20px; }
.skills-group dt { font-weight: 600; }
.skills-group dd { margin: 2px 0 0; color: var(--ink-2); }
.skills-group .card__link { margin: 0 0 0 4px; white-space: nowrap; }
.skills-page__next { margin-top: 12px; }
@media (min-width: 760px) { .skills-group { grid-template-columns: 1fr 3fr; } }

/* Team */
.team { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 28px 40px; }
.person__avatar {
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1.5rem; font-weight: 600; color: #fff;
  background: var(--avatar-bg);
  padding: 0; border: 0; font-family: inherit;
}
#georgii { cursor: pointer; }
.person h3 { margin-top: 12px; font-size: 1.125rem; font-weight: 600; }
.person p { color: var(--ink-2); font-size: 1rem; }

/* Easter egg: a cat pops up in the corner after clicking Georgii */
.cat-egg {
  position: fixed; right: 16px; bottom: 0; z-index: 50;
  width: clamp(140px, 22vw, 260px); height: auto;
  cursor: pointer;
  animation: cat-in 0.5s var(--spring);
}
.cat-egg[hidden] { display: none; }
@keyframes cat-in { from { transform: translateY(100%); } }
@media (prefers-reduced-motion: reduce) { .cat-egg { animation: none; } }

/* Contact */
.contact .section__lead { margin: 12px 0 24px; }

/* Project request page */
.rise { animation: rise 0.8s var(--spring) both; animation-delay: calc(var(--d, 0) * 70ms); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } }

.request-hero {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(48px, 8vw, 88px) var(--gutter) clamp(28px, 4vw, 44px);
}
.eyebrow { color: var(--accent); font-weight: 600; font-size: 1rem; }
.request-hero__title {
  margin-top: 8px; max-width: 22ch;
  font-family: var(--display);
  font-size: clamp(1.875rem, 4.6vw, 3rem);
  line-height: 1.1; letter-spacing: -0.035em; font-weight: 700;
  text-wrap: balance;
}
.request-hero .hero__lead { margin: 20px 0 0; }

.request {
  max-width: var(--max); margin: 0 auto;
  padding: 0 var(--gutter) clamp(64px, 10vw, 112px);
  display: grid; gap: 24px; align-items: start;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
}
.request__form {
  display: grid; gap: 22px;
  background: var(--surface); border-radius: var(--radius);
  box-shadow: 0 0 0 1px var(--card-edge), 0 4px 20px var(--card-shadow);
  padding: clamp(22px, 4vw, 40px);
}
.field-row { display: grid; gap: 22px; grid-template-columns: 1fr 1fr; }
.field { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field label, .field legend { padding: 0; font-size: 0.9375rem; font-weight: 600; }
.field legend { margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px;
  padding: 12px 14px; border-radius: 12px;
  border: 1px solid rgba(128, 128, 128, 0.28);
  background: var(--bg); color: var(--ink);
  font: inherit; font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.25s var(--spring);
}
.field textarea { resize: vertical; min-height: 140px; }
.field select {
  appearance: none; cursor: pointer; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2386868b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 12px;
}
.field ::placeholder { color: var(--ink-2); opacity: 0.8; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent);
}
.field__error { display: none; color: var(--danger); font-size: 0.875rem; }
.field.is-invalid .field__error { display: block; animation: rise 0.35s var(--spring); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--danger); }

/* Project type: pill radios that spring when picked */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border-radius: 980px; border: 1px solid rgba(128, 128, 128, 0.28);
  background: var(--bg); font-size: 0.9375rem; font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.35s var(--spring);
}
.chip:hover span { border-color: var(--ink-2); }
.chip:active span { transform: scale(0.95); }
.chip input:checked + span {
  background: var(--tint); border-color: color-mix(in srgb, var(--accent-fill) 45%, transparent); color: var(--accent-strong);
  animation: pop 0.4s var(--spring);
}
.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 3px; }
@keyframes pop { 40% { transform: scale(1.06); } }

.request__submit { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.btn--send {
  display: inline-flex; align-items: center; gap: 8px;
  border: 0; cursor: pointer; font-family: inherit;
}
.request__note { color: var(--ink-2); font-size: 0.9375rem; }

.request__form.is-shaking { animation: shake 0.4s ease; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

.request__aside { display: grid; gap: 24px; position: sticky; top: 80px; }
.mail-card {
  background: var(--surface); border-radius: var(--radius);
  box-shadow: 0 0 0 1px var(--card-edge), 0 4px 20px var(--card-shadow);
  padding: 24px 28px;
}
.mail-card__label { color: var(--ink-2); font-size: 0.9375rem; }
.mail-card__address {
  display: block; margin-top: 4px;
  font-size: clamp(1.125rem, 2.2vw, 1.375rem); font-weight: 600; letter-spacing: -0.01em;
  color: var(--accent); overflow-wrap: anywhere;
}
.mail-card__address:hover { text-decoration: underline; text-underline-offset: 3px; }
.mail-card__copy {
  margin-top: 14px; min-height: 36px; padding: 0 14px;
  border: 1px solid rgba(128, 128, 128, 0.28); border-radius: 980px;
  background: none; color: var(--ink); font: inherit; font-size: 0.875rem; font-weight: 500;
  cursor: pointer; transition: background-color 0.2s ease, transform 0.1s ease-out;
}
.mail-card__copy:hover { background: var(--bg); }
.mail-card__copy:active { transform: scale(0.96); }
.mail-card__copy.is-done { color: var(--success); border-color: currentColor; }

.steps { display: grid; gap: 20px; padding: 4px 8px; }
.steps li { display: flex; gap: 16px; }
.steps__n {
  flex: none; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(128, 128, 128, 0.35);
  font-size: 0.875rem; font-weight: 600; color: var(--ink-2);
}
.steps h2 { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.01em; }
.steps p { color: var(--ink-2); font-size: 0.9375rem; }

@media (max-width: 860px) {
  .request { grid-template-columns: 1fr; }
  .request__aside { position: static; }
}
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .rise, .chip input:checked + span, .request__form.is-shaking, .field.is-invalid .field__error { animation: none; }
}

.footer {
  max-width: var(--max); margin: 0 auto;
  padding: 32px var(--gutter) 48px;
  color: var(--ink-2); font-size: 0.875rem;
  border-top: 1px solid rgba(128, 128, 128, 0.25);
}
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 64px; margin-bottom: 20px; }
.footer__links a { display: inline-flex; align-items: center; min-height: 32px; color: var(--ink-2); }
.footer__links a:hover { color: var(--ink); }

/* Responsive */
@media (max-width: 760px) {
  .grid, .services { grid-template-columns: 1fr; }
  .card--wide { grid-column: auto; }

  /* Phone menu: links drop down under the bar */
  .nav__toggle { display: grid; }
  .nav__bar { gap: 2px; }
  .nav__theme { order: -1; margin-right: 0; }
  .nav__links {
    display: none; position: absolute; top: 56px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--bg); font-size: 1.0625rem;
    box-shadow: 0 1px 0 rgba(128, 128, 128, 0.25);
  }
  .nav.is-open .nav__links { display: flex; }
  .nav__links a { display: flex; min-height: 48px; color: var(--ink); }
  .nav__links .nav__cta { justify-content: center; min-height: 48px; margin-top: 8px; }
  .nav__cta::before { content: none; }
}

/* Accessibility preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nav__toggle path, .theme-icon__core, .theme-icon__shade, .theme-icon__rays { transition: none; }
  .btn { transition: opacity 0.2s ease; }
  .btn:active, .nav__cta:active { transform: none; opacity: 0.8; }
  .btn__arrow { transition: none; }
  .btn--vg:hover .btn__arrow { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --ink-2: var(--ink); }
  .card { outline: 1px solid var(--ink); }
}
