@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

/* Brand colors come from the logo files: orange #F6921E, gray #929497.
   Light is the base; dark applies when the device prefers it or the visitor picks it.
   --accent-text is orange darkened in light mode, because #F6921E on a light
   background fails text contrast. Fills and buttons keep the true brand orange. */
:root {
  --bg: #f1f1f0;
  --bg-raised: #fafafa;
  --bg-deep: #e6e6e5;
  --line: #d3d4d5;
  --text: #1a1b1d;
  --text-muted: #55575b;
  --soft: #6a6c70;
  --nav-bg: rgb(241 241 240 / .86);
  --accent-text: #9a5200;
  --brand-gray: #929497;
  --orange: #f6921e;
  --orange-hover: #ffa53f;
  --on-orange: #17181a;
  --radius: 4px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(40px, 5vw, 64px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17181a;
    --bg-raised: #202124;
    --bg-deep: #0f1011;
    --line: #303236;
    --text: #ececec;
    --text-muted: #a9abae;
    --soft: #929497;
    --nav-bg: rgb(23 24 26 / .84);
    --accent-text: #f6921e;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #17181a;
  --bg-raised: #202124;
  --bg-deep: #0f1011;
  --line: #303236;
  --text: #ececec;
  --text-muted: #a9abae;
  --soft: #929497;
  --nav-bg: rgb(23 24 26 / .84);
  --accent-text: #f6921e;
  color-scheme: dark;
}

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

html { scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
img, svg { display: block; }
a { color: inherit; }

a:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--orange);
  color: var(--on-orange);
  padding: 8px 14px;
  z-index: 20;
}
.skip:focus { left: 8px; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Headings use the wide end of Archivo's width axis to echo the logo lettering. */
h1, h2, .score-number, .turnkey-quote, .town-list {
  font-stretch: 118%;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.08;
}

h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }

.section-lede {
  color: var(--text-muted);
  max-width: 52ch;
  margin-top: 16px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, transform .1s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: var(--on-orange); }
.btn-primary:hover { background: var(--orange-hover); }
.btn-ghost { border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--brand-gray); }

.text-link {
  display: inline-block;
  margin-top: 20px;
  color: var(--accent-text);
  font-weight: 600;
  text-underline-offset: 4px;
}
.text-link:hover { text-decoration-thickness: 2px; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(8px)) {
  .nav { background: var(--nav-bg); backdrop-filter: blur(8px); }
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-right: auto;
}
.wordmark { display: flex; flex-direction: column; line-height: 1; }
.wordmark-name {
  font-stretch: 125%;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: .16em;
}
.wordmark-sub {
  font-stretch: 125%;
  font-weight: 500;
  font-size: .56rem;
  letter-spacing: .29em;
  color: var(--text-muted);
  margin-top: 5px;
}
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
}
.nav-links a:hover { color: var(--text); }
/* The current page: full-strength text with an orange rule under it. */
.nav-links a[aria-current="page"] {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}
.nav-phone { min-height: 42px; padding: 0 16px; }

/* Hero */
.hero { border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  align-items: center;
  gap: 40px;
  padding-top: var(--section);
  padding-bottom: var(--section);
}
.hero h1 {
  font-size: clamp(2.4rem, 4.6vw, 4.4rem);
  max-width: 20ch;
}
.lede {
  margin-top: 24px;
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 40ch;
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero-mark { justify-self: end; width: min(100%, 330px); margin-right: 60px; }
.mark { width: 100%; height: auto; overflow: visible; }
.mark-bezel path, .mark-k { fill: var(--orange); }
.mark-arc { fill: var(--brand-gray); }

/* The one load moment: the outer ring swings and settles like a compass finding north. */
.mark-bezel, .mark-arc {
  transform-box: view-box;
  transform-origin: 125px 124px;
}
@media (prefers-reduced-motion: no-preference) {
  .mark-bezel { animation: settle 1.8s cubic-bezier(.22, 1.2, .36, 1) .2s both; }
  .mark-arc { animation: arc-in .9s ease-out 1s both; }
}
@keyframes settle {
  0% { transform: rotate(-70deg); opacity: 0; }
  25% { opacity: 1; }
  60% { transform: rotate(8deg); }
  80% { transform: rotate(-3deg); }
  100% { transform: rotate(0); }
}
@keyframes arc-in {
  from { opacity: 0; transform: rotate(-20deg); }
  to { opacity: 1; transform: rotate(0); }
}

/* Reviews */
.reviews { background: var(--bg-deep); }
.reviews-grid {
  display: grid;
  grid-template-columns: 4fr 7fr;
  gap: 48px;
  padding-top: var(--section);
  padding-bottom: var(--section);
}
.score-number {
  font-size: clamp(4.5rem, 10vw, 7.5rem);
  color: var(--accent-text);
  line-height: .9;
}
.score-label { margin-top: 16px; font-weight: 600; font-size: 1.15rem; }
.score-alt { margin-top: 6px; color: var(--text-muted); }
.quotes { display: grid; gap: 24px; align-content: center; }
.quotes li { border-left: 2px solid var(--orange); padding-left: 24px; }
.quotes blockquote {
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  line-height: 1.45;
  max-width: 46ch;
}
.quote-src { margin-top: 8px; color: var(--text-muted); font-size: .95rem; }

/* About and services share one layout: a photo beside a block of copy. */
.about, .services { padding: var(--section) 0; }
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.split-copy .section-lede { max-width: 48ch; }

/* Where a job photo goes. Until Serge sends photos, it shows a labeled empty frame. */
.photo-slot {
  margin: 0;
  aspect-ratio: 3 / 2;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgb(146 148 151 / .08) 14px 15px),
    var(--bg-deep);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--soft);
  font-size: .95rem;
}
.photo-slot .icon { width: 32px; height: 32px; }
.photo-slot img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }

.checklist { display: grid; gap: 12px; margin-top: 28px; }
.checklist li { display: flex; align-items: flex-start; gap: 12px; font-weight: 500; }
.checklist .icon { width: 22px; height: 22px; margin-top: 2px; color: var(--accent-text); }
.checklist-wide li { font-size: clamp(1.1rem, 1.8vw, 1.3rem); }

.service-rows { display: grid; gap: clamp(40px, 6vw, 80px); margin-top: 40px; }
/* Every second row puts the photo on the right. */
.service:nth-child(even) .photo-slot { order: 2; }
.service h3 {
  font-stretch: 112%;
  font-weight: 700;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.15;
}
.service p { margin-top: 14px; color: var(--text-muted); max-width: 46ch; }

/* Turnkey statement */
.turnkey {
  background: var(--bg-raised);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: var(--section) 0;
}
.turnkey-quote {
  font-size: clamp(2rem, 4.8vw, 3.9rem);
  max-width: 20ch;
}
.turnkey-body {
  margin-top: 24px;
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 54ch;
}
.turnkey-src { margin-top: 20px; color: var(--accent-text); font-weight: 600; }

/* Work */
.work { padding: var(--section) 0; }
.work-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}
.work-link {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 160px;
  padding: 24px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color .15s ease;
}
.work-link:hover { border-color: var(--orange); }
.work-platform {
  font-stretch: 118%;
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}
.work-handle { margin-top: 6px; color: var(--text-muted); }

/* Areas */
.areas {
  background: var(--bg-deep);
  padding: var(--section) 0;
}
.town-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 36px;
  margin-top: 24px;
  font-size: clamp(1.6rem, 4vw, 3rem);
  color: var(--soft);
}
.town-list li:first-child { color: var(--text); }

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 48px;
  align-items: start;
}
.contact-rows li {
  display: grid;
  grid-template-columns: 88px 1fr;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.contact-rows li:first-child { border-top: 1px solid var(--line); }
.contact-kind { color: var(--text-muted); }
.contact-rows a {
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.contact-rows a:hover { color: var(--accent-text); }

.contact-hero .contact-grid {
  padding-top: var(--section);
  padding-bottom: var(--section);
  align-items: center;
}
.send { padding: var(--section) 0; }


/* Footer */
.footer { border-top: 1px solid var(--line); background: var(--bg-deep); padding: 40px 0; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-name { font-weight: 600; }
.footer-meta { color: var(--text-muted); font-size: .9rem; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--text); }

/* Tablet and down */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 32px;
    gap: 24px;
  }
  .hero-mark { justify-self: center; width: min(60vw, 240px); }
  .reviews-grid, .contact-grid, .split { grid-template-columns: 1fr; gap: 32px; }
  .split-copy, .service .photo-slot { order: 0; }
  .service:nth-child(even) .photo-slot { order: 0; }
}

@media (max-width: 640px) {
  .nav-inner { height: 64px; gap: 12px; }
  html { scroll-padding-top: 76px; }
  .brand img { width: 30px; height: 30px; }
  .wordmark-name { font-size: 1rem; }
  .nav-phone { padding: 0 12px; font-size: .9rem; }
  .work-links { grid-template-columns: 1fr; }
  .work-link { min-height: 140px; }
  .nav-links { gap: 18px; }
  .nav-links a { display: inline-flex; align-items: center; min-height: 44px; }
  .turnkey, .reviews-grid { padding-top: var(--section); padding-bottom: var(--section); }
  .contact-rows li { grid-template-columns: 64px 1fr; }
}
@media (max-width: 400px) {
  .wordmark-sub { display: none; }
}

/* Icons: Phosphor (regular), served from assets/icons.svg. */
.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: currentColor;
}
.btn .icon { margin-right: 8px; }

/* Theme toggle. The icon names the theme in force; the title says where a click goes. */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}
.theme-toggle .icon { width: 20px; height: 20px; }
.theme-toggle:hover { color: var(--text); border-color: var(--brand-gray); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; }

.contact-kind { display: inline-flex; align-items: center; gap: 8px; }
.contact-kind .icon { width: 20px; height: 20px; color: var(--accent-text); }

.work-icon { width: 32px; height: 32px; margin-bottom: auto; color: var(--accent-text); }

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}

/* Phone-only bottom bar with the two main actions in thumb reach. */
.action-bar { display: none; }

@media (max-width: 640px) {
  .nav-phone { display: none; }
  .contact-rows a[href^="mailto"] { font-size: 1rem; }
  .contact-rows li { grid-template-columns: 88px 1fr; }

  .action-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: var(--nav-bg);
    border-top: 1px solid var(--line);
  }
  @supports (backdrop-filter: blur(8px)) {
    .action-bar { backdrop-filter: blur(8px); }
  }
  .action-bar .btn { min-height: 48px; }
  .action-bar .btn-ghost { background: var(--bg); }
  /* Keep the footer clear of the fixed bar. */
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
}

/* Tap targets at least 44px tall. */
.brand { min-height: 44px; }
.text-link { padding: 10px 0; margin-top: 10px; }
.contact-rows a { display: inline-flex; align-items: center; min-height: 44px; }

@media (max-width: 640px) {
  .actions { margin-top: 24px; }
  .lede { margin-top: 16px; font-size: 1.1rem; }
}
@media (max-width: 640px) {
  .contact-rows li { grid-template-columns: 1fr; gap: 0; padding: 8px 0; }
  .contact-rows a { overflow-wrap: normal; }
  .work-link { min-height: 0; padding: 16px 24px; }
  .work-icon { width: 24px; height: 24px; margin-bottom: 8px; }
}

/* Phone and tablet hero: headline and compass share one row; text below spans full width.
   .hero-copy becomes display: contents so its children join the hero grid directly. */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr auto;
    column-gap: 24px;
    row-gap: 0;
    align-items: center;
    padding-top: 32px;
    padding-bottom: 32px;
  }
  .hero-copy { display: contents; }
  .hero h1 { grid-column: 1; grid-row: 1; font-size: 40px; line-height: 44px; }
  .hero-mark { grid-column: 2; grid-row: 1; width: 96px; justify-self: end; }
  .lede, .actions { grid-column: 1 / -1; }
  .lede { margin-top: 16px; }
}
@media (max-width: 640px) {
  .hero-grid { column-gap: 12px; padding-top: 24px; padding-bottom: 24px; }
  .hero h1 { font-size: 32px; line-height: 36px; }
  .hero-mark { width: clamp(92px, 28vw, 116px); }
  .lede { font-size: 18px; line-height: 27px; }
  .actions { margin-top: 24px; }
}
@media (max-width: 900px) { .hero h1 { text-wrap: balance; } }
@media (min-width: 641px) and (max-width: 900px) {
  .hero-mark { width: 132px; }
}

/* ---- Brand moment: the turnkey statement on a full-width orange band.
   Same orange in both themes; text is near-black on orange (about 8:1). ---- */
.turnkey {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--orange);
  color: var(--on-orange);
  border: 0;
}
.turnkey-body { color: rgb(23 24 26 / .78); }
.turnkey-src { color: var(--on-orange); }
.btn-dark { margin-top: 28px; background: var(--on-orange); color: var(--orange); }
.btn-dark:hover { background: #000; }
.turnkey .btn-dark:focus-visible { outline-color: var(--on-orange); }
.turnkey-ring {
  position: absolute;
  z-index: -1;
  right: -120px;
  top: 50%;
  width: 520px;
  height: 520px;
  margin-top: -260px;
  fill: rgb(23 24 26 / .10);
  pointer-events: none;
}
.turnkey-ring g { transform-box: view-box; transform-origin: 125px 124px; }
/* The ring turns as the band scrolls past, where the browser supports scroll-driven animation. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .turnkey-ring g {
      animation: ring-turn linear both;
      animation-timeline: view();
    }
  }
}
@keyframes ring-turn {
  from { transform: rotate(-60deg); }
  to { transform: rotate(60deg); }
}
@media (max-width: 640px) {
  .turnkey-ring { width: 320px; height: 320px; margin-top: -160px; right: -110px; }
}

/* ---- Stars beside the rating ---- */
.score-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.stars { display: inline-flex; gap: 4px; color: var(--orange); }
.stars .icon { width: 26px; height: 26px; }

/* ---- Hero load sequence (from yazyk.ai): headline wipes up, then lede and buttons rise in. ---- */
@keyframes rise-in {
  from { opacity: 0; transform: translateY(1.1rem); }
  to { opacity: 1; transform: none; }
}
@keyframes wipe-up {
  from { opacity: 0; clip-path: inset(100% 0 0); transform: translateY(.9rem); }
  to { opacity: 1; clip-path: inset(-25% -10% -25%); transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero h1 { animation: wipe-up .78s cubic-bezier(.22, .68, .3, 1) .07s backwards; }
  .hero .lede { animation: rise-in .62s cubic-bezier(.22, .68, .3, 1) .17s backwards; }
  .hero .actions { animation: rise-in .62s cubic-bezier(.22, .68, .3, 1) .26s backwards; }
}

/* ---- Sections fade up on first view. .js-reveal is only set when this can run. ---- */
.js-reveal main > section:not(.hero) {
  opacity: 0;
  transform: translateY(1.4rem);
  transition: opacity .6s ease-out, transform .6s ease-out;
}
.js-reveal main > section.is-visible { opacity: 1; transform: none; }

/* Phones: the nav keeps the name, both page links and the theme switch on one row. */
.nav-links a, .footer-links a { white-space: nowrap; }
.footer-links { flex-wrap: wrap; gap: 8px 24px; }
@media (max-width: 420px) {
  .nav-links { gap: 14px; }
  .wordmark-name { letter-spacing: .1em; }
}

/* Job photos. A before/after pair splits the same 3:2 frame into two portrait halves. */
.photo { margin: 0; }
.photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--bg-deep);
}
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pair-cell { position: relative; }
.photo-pair img { aspect-ratio: 3 / 4; }
.pair-tag {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 4px 10px;
  border-radius: var(--radius);
  background: var(--on-orange);
  color: #fff;
  font-size: .85rem;
  font-weight: 600;
}
.pair-cell:last-child .pair-tag { background: var(--orange); color: var(--on-orange); }
.service:nth-child(even) .photo { order: 2; }
@media (max-width: 900px) {
  .service:nth-child(even) .photo { order: 0; }
}

/* Wide screens: the faint compass mark (same look and size as on phones) sits beside the quote,
   lined up with the content's right edge. */
.turnkey-k { fill: rgb(23 24 26 / .10); }
.turnkey-arc { fill: rgb(23 24 26 / .10); }
@media (min-width: 1000px) {
  .turnkey-ring {
    z-index: -1;
    right: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter)));
    width: 320px;
    height: auto;
    aspect-ratio: 1;
    margin-top: 0;
    transform: translateY(-50%);
  }
  /* Keep the quote clear of the mark. */
  .turnkey-quote {
    font-size: clamp(2rem, 3.2vw, 2.9rem);
    max-width: min(26ch, calc(100% - 320px - 48px));
  }
}

/* Bigger brand lockup in the nav. Phones keep the smaller size so the nav stays on one row. */
@media (min-width: 760px) {
  .nav-inner { height: 84px; gap: 20px; }
  html { scroll-padding-top: 100px; }
  .brand { gap: 12px; }
  .brand img { width: 38px; height: 38px; }
  .wordmark-name { font-size: 1.3rem; }
  .wordmark-sub { font-size: .62rem; margin-top: 6px; }
}
@media (min-width: 1000px) {
  .nav-inner { gap: 32px; }
  .brand { gap: 14px; }
  .brand img { width: 46px; height: 46px; }
  .wordmark-name { font-size: 1.6rem; }
  .wordmark-sub { font-size: .76rem; margin-top: 7px; }
}

/* The nav mark (assets/mark.svg) is cropped to its artwork, so its height matches the two-line wordmark. */
@media (min-width: 641px) and (max-width: 759px) {
  .brand img { width: 30px; height: 30px; }
  /* Narrow tablets: the phone button shows only its icon so the nav fits on one row. */
  .nav-phone { font-size: 0; gap: 0; padding: 0 12px; }
  .nav-phone .icon { width: 20px; height: 20px; margin-right: 0; }
}

/* Phones: the theme switch stays in the nav at a slightly smaller size, and the wordmark
   tightens a little, so "About us", "Contact" and the switch all fit on one row. */
@media (max-width: 640px) {
  .nav-inner { gap: 10px; }
  .nav-links { gap: 16px; }
  .nav .theme-toggle { width: 40px; height: 40px; flex: none; }
}
@media (max-width: 400px) {
  .wordmark-name { font-size: .95rem; letter-spacing: .08em; }
  .brand { gap: 8px; }
  .nav .theme-toggle { width: 36px; height: 36px; }
}
@media (max-width: 380px) {
  .nav-inner { gap: 8px; }
  .nav-links { gap: 12px; }
  .nav-links a { font-size: .95rem; }
  .brand img { width: 26px; height: 26px; }
}
/* The smallest phones show the compass mark alone; the full name is in the footer. */
@media (max-width: 359px) {
  .wordmark { display: none; }
}
/* A touch more space between "About" and "us" so the two words don't run together. */
.nav-links a { word-spacing: .12em; }
