/* ==========================================================================
   Bdot Software Engineering — main stylesheet
   Plain CSS3, no build step. Sections are themed with .theme-dark /
   .theme-light / .theme-white, which only swap the custom properties below.
   ========================================================================== */

/* 1. Tokens
   ========================================================================== */
:root {
  --black: #060607;
  --ink: #0b0b0d;
  --ink-2: #111114;
  --paper: #f4f2ec;
  --white: #ffffff;

  --gold: #c9a55c;
  --gold-light: #e3c88f;
  --gold-ink: #86661c; /* gold that passes AA as text on light surfaces */
  --gold-sheen: linear-gradient(135deg, #ecd6a4 0%, #c9a55c 46%, #a9843a 100%);
  --hive: url("../img/honeycomb.svg") 0 0 / 62px 108px; /* one lattice tile */
  --hive-dim: 0.12; /* how strongly the lattice shows on dark surfaces … */
  --hive-lit: 0.18; /* … and while the pointer is over them */

  --font-display: "Sora", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --fs-hero: clamp(2.5rem, 1.55rem + 4.3vw, 4.75rem);
  --fs-h1: clamp(2.125rem, 1.5rem + 2.8vw, 3.5rem);
  --fs-h2: clamp(1.75rem, 1.3rem + 1.9vw, 2.75rem);
  --fs-lead: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);

  --container: 77.5rem;
  --gutter: clamp(1.25rem, 0.6rem + 2.8vw, 2.5rem);
  --section-y: clamp(4.5rem, 2.8rem + 6.5vw, 8.5rem);
  --header-h: 4.75rem;
  --radius: 3px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

.theme-dark {
  --bg: var(--ink);
  --fg: #f4f2ec;
  --muted: #aba89f;
  --line: rgba(255, 255, 255, 0.12);
  --surface: var(--ink-2);
  --surface-line: rgba(255, 255, 255, 0.1);
  --accent: var(--gold);
  --chip-bg: rgba(255, 255, 255, 0.04);
}

.theme-light {
  --bg: var(--paper);
  --fg: #111113;
  --muted: #55524a;
  --line: #d9d5c9;
  --surface: var(--white);
  --surface-line: #e2ded3;
  --accent: var(--gold-ink);
  --chip-bg: var(--white);
}

.theme-white {
  --bg: var(--white);
  --fg: #111113;
  --muted: #55524a;
  --line: #e2ded3;
  --surface: var(--paper);
  --surface-line: #e2ded3;
  --accent: var(--gold-ink);
  --chip-bg: var(--paper);
}

.theme-dark,
.theme-light,
.theme-white {
  color: var(--fg);
  background-color: var(--bg);
}

/* 2. Base
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.25rem);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: #f4f2ec;
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

img {
  height: auto;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.028em;
  text-wrap: balance;
  overflow-wrap: break-word;
}

p {
  margin: 0;
  text-wrap: pretty;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

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

address {
  font-style: normal;
}

strong,
b {
  font-weight: 600;
}

::selection {
  color: #0b0b0d;
  background: var(--gold-light);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.visually-hidden {
  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: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  padding: 0.75rem 1rem;
  font: 600 0.875rem/1 var(--font-display);
  color: #0b0b0d;
  background: var(--gold);
  border-radius: var(--radius);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* 3. Layout primitives
   ========================================================================== */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: var(--section-y);
}

.section--tight {
  padding-block: calc(var(--section-y) * 0.62);
}

.section--flush-top {
  padding-top: 0;
}

/* Dark sections: a warm gradient; the honeycomb over it is the .hive element */
.section.theme-dark {
  background:
    radial-gradient(56rem 28rem at 100% 0%, rgba(201, 165, 92, 0.1), transparent 62%),
    radial-gradient(40rem 22rem at 0% 100%, rgba(201, 165, 92, 0.05), transparent 60%),
    linear-gradient(180deg, #0f0e0b 0%, #09090a 100%);
  isolation: isolate;
}

/* Light sections carry the faintest gold tint in a corner */
.section.theme-light {
  background-image: radial-gradient(52rem 26rem at 100% 0%, rgba(201, 165, 92, 0.11), transparent 64%);
}

.section.theme-white {
  background-image: radial-gradient(52rem 26rem at 0% 0%, rgba(201, 165, 92, 0.07), transparent 64%);
}

/* a section that continues the previous one must not start a second glow */
.section.section--flush-top {
  background-image: none;
}

/* Honeycomb backdrop: every dark surface (hero, proof strip, dark section,
   call-to-action band and its box, footer, dark cards) starts with a .hive
   element: an even lattice over the whole surface that shows a little more
   strongly while the pointer is over the surface. The lattice is never
   still: it glides slowly upwards and sways across that path, so it floats
   rather than scrolls. The surface has to be positioned and form a stacking
   context. Only transform, translate and opacity ever change. */
.hive {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}

.hive::before {
  content: "";
  position: absolute;
  inset: -108px -62px; /* one tile of slack for the glide and the sway */
  background: var(--hive);
  opacity: var(--hive-dim);
  transition: opacity 0.4s var(--ease);
}

@media (hover: hover) {
  :hover > .hive::before {
    opacity: var(--hive-lit);
  }
}

@media (prefers-reduced-motion: no-preference) {
  /* the glide runs along a lattice vector, (31px, -54px), so its loop has no
     seam; the sway swings across it and back on a clock of its own */
  .hive::before {
    animation: hive-drift 24s linear infinite, hive-sway 9s ease-in-out infinite alternate;
  }
}

@keyframes hive-drift {
  to {
    transform: translate3d(31px, -54px, 0);
  }
}

@keyframes hive-sway {
  from {
    translate: -11px -6px;
  }

  to {
    translate: 11px 6px;
  }
}

.section__head {
  max-width: 46rem;
  margin-bottom: clamp(2.5rem, 1.8rem + 2.6vw, 4.25rem);
}

.section__head h2 {
  font-size: var(--fs-h2);
}

.section__head h2 + p {
  margin-top: 1.25rem;
  font-size: var(--fs-lead);
  color: var(--muted);
}

.section__foot {
  margin-top: clamp(2.25rem, 1.6rem + 2vw, 3.5rem);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  font: 600 0.75rem/1.4 var(--font-display);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 2rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, currentColor);
}

.dot {
  color: var(--gold);
  text-shadow: 0 0 1.1em rgba(201, 165, 92, 0.65);
}

.lead {
  font-size: var(--fs-lead);
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

.label {
  margin-bottom: 1rem;
  font: 600 0.6875rem/1.4 var(--font-display);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.stack > * + * {
  margin-top: 1.15rem;
}

.split {
  display: grid;
  gap: clamp(2.5rem, 1.5rem + 4vw, 5.5rem);
  align-items: start;
}

.split--center {
  align-items: center;
}

@media (min-width: 60rem) {
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .split--wide-right {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  }

  .split__sticky {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
  }
}

.split h2 {
  font-size: var(--fs-h2);
}

/* Gold corner brackets — the "frame" motif used around visuals */
.corners {
  position: relative;
}

.corners::before,
.corners::after {
  content: "";
  position: absolute;
  z-index: 1;
  width: 1.75rem;
  height: 1.75rem;
  border: 1px solid var(--gold);
  pointer-events: none;
}

.corners::before {
  top: -0.6rem;
  left: -0.6rem;
  border-right: 0;
  border-bottom: 0;
}

.corners::after {
  right: -0.6rem;
  bottom: -0.6rem;
  border-top: 0;
  border-left: 0;
}

/* 4. Buttons & links
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 3.25rem;
  padding: 0.85rem 1.6rem;
  font: 600 0.9375rem/1.2 var(--font-display);
  letter-spacing: 0.005em;
  text-align: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.btn .icon {
  width: 1.05rem;
  height: 1.05rem;
  transition: transform 0.25s var(--ease);
}

.btn:hover .icon {
  transform: translateX(4px);
}

.btn--gold {
  position: relative;
  overflow: hidden;
  color: #0b0b0d;
  background: var(--gold-sheen) border-box;
  border-color: transparent;
  box-shadow: 0 12px 28px -16px rgba(201, 165, 92, 0.8);
}

/* a band of light that crosses the button on hover */
.btn--gold::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 36%, rgba(255, 255, 255, 0.55) 50%, transparent 64%);
  transform: translateX(-130%);
  transition: transform 0.75s var(--ease);
  pointer-events: none;
}

.btn--gold:hover,
.btn--gold:focus-visible {
  box-shadow: 0 16px 34px -14px rgba(201, 165, 92, 0.95);
}

.btn--gold:hover::after,
.btn--gold:focus-visible::after {
  transform: translateX(130%);
}

.btn--ghost {
  color: var(--fg);
  border-color: var(--line);
}

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

.btn--dark {
  color: #f4f2ec;
  background: #0b0b0d;
  border-color: #0b0b0d;
}

.btn--dark:hover {
  color: var(--gold-light);
  border-color: var(--gold);
}

.btn--sm {
  min-height: 2.75rem;
  padding: 0.6rem 1.15rem;
  font-size: 0.875rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding-bottom: 0.2rem;
  font: 600 0.9375rem/1.3 var(--font-display);
  color: var(--fg);
  border-bottom: 1px solid var(--accent);
  transition: color 0.2s var(--ease), gap 0.2s var(--ease);
}

.link-arrow .icon {
  width: 1rem;
  height: 1rem;
  color: var(--accent);
}

.link-arrow:hover {
  gap: 0.85rem;
  color: var(--accent);
}

.text-link {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color 0.2s var(--ease);
}

.text-link:hover {
  color: var(--accent);
}

.icon {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 5. Header & navigation
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  color: #f4f2ec;
  background: none;
}

/* The backdrop is a pseudo-element on purpose: backdrop-filter on the header
   itself would turn it into the containing block of the fixed mobile menu. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(9, 9, 11, 0.9);
  border-bottom: 1px solid rgba(201, 165, 92, 0.24);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  backdrop-filter: saturate(150%) blur(14px);
  transition: opacity 0.3s var(--ease);
}

/* Transparent over the dark hero until the page scrolls (needs JS; the
   solid default above is what no-JS visitors get). */
.js .site-header:not(.is-scrolled)::before {
  opacity: 0;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 100%;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  flex: none;
  gap: 0.34rem;
  color: #fff;
}

.brand__row {
  display: flex;
  align-items: center;
  gap: 0.22rem;
}

.brand__name {
  font: 700 2.125rem/0.9 var(--font-display);
  letter-spacing: -0.045em;
}

.brand__mark {
  width: 1.7rem;
  height: 1.95rem;
  margin-top: 0.06rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 3.6;
}

.brand__tag {
  font: 600 0.4375rem/1 var(--font-display);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #d6d3ca;
  white-space: nowrap;
}

.nav-toggle {
  position: relative;
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  margin-right: -0.5rem;
  border-radius: var(--radius);
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  position: absolute;
  left: 50%;
  width: 1.375rem;
  height: 1.5px;
  margin-left: -0.6875rem;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle__bars {
  top: 50%;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
}

.nav-toggle__bars::before {
  top: -0.4375rem;
}

.nav-toggle__bars::after {
  top: 0.4375rem;
}

.nav-open .nav-toggle__bars {
  background: transparent;
}

.nav-open .nav-toggle__bars::before {
  transform: translateY(0.4375rem) rotate(45deg);
}

.nav-open .nav-toggle__bars::after {
  transform: translateY(-0.4375rem) rotate(-45deg);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 0.2rem + 1.8vw, 2.5rem);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 0.1rem + 1.6vw, 2.1rem);
}

.nav__item {
  position: relative;
  display: flex;
  align-items: center;
}

.nav__link {
  position: relative;
  padding: 0.5rem 0;
  font: 500 0.9375rem/1.2 var(--font-display);
  color: #e9e6de;
  transition: color 0.2s var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav__link:hover,
.nav__link[aria-current="page"],
.nav__item.is-current > .nav__link {
  color: #fff;
}

.nav__link:hover::after,
.nav__link[aria-current="page"]::after,
.nav__item.is-current > .nav__link::after {
  transform: scaleX(1);
}

.nav__caret {
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.75rem;
  margin-left: 0.1rem;
  color: #aba89f;
}

.nav__caret .icon {
  width: 0.85rem;
  height: 0.85rem;
  stroke-width: 2;
  transition: transform 0.25s var(--ease);
}

.nav__sub {
  position: absolute;
  top: 100%;
  left: -1.5rem;
  z-index: 10;
  min-width: 15rem;
  padding: 0.75rem;
  background: #0f0f12;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 1px solid var(--gold);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 28px 60px -20px rgba(0, 0, 0, 0.8);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}

/* invisible bridge so the pointer can travel from the link to the panel */
.nav__sub::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 100%;
  left: 0;
  height: 1.5rem;
}

.nav__sub--wide {
  width: 37rem;
}

.nav__sub--wide ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.nav__sub a:not(.link-arrow) {
  display: block;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius);
  transition: background-color 0.2s var(--ease);
}

.nav__sub a:not(.link-arrow):hover,
.nav__sub a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.05);
}

.nav__sub strong {
  display: block;
  font: 600 0.9375rem/1.3 var(--font-display);
  color: #fff;
}

.nav__sub a[aria-current="page"] strong {
  color: var(--gold-light);
}

.nav__sub span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #aba89f;
}

.nav__sub-foot {
  margin-top: 0.5rem;
  padding: 0.9rem 0.85rem 0.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.nav__sub-foot .link-arrow {
  --fg: #f4f2ec;
  --accent: var(--gold);
  font-size: 0.875rem;
}

.nav__aside {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.lang {
  display: flex;
  align-items: center;
  font: 600 0.75rem/1 var(--font-display);
  letter-spacing: 0.12em;
}

.lang a {
  padding: 0.5rem 0.45rem;
  color: #8f8c84;
  transition: color 0.2s var(--ease);
}

.lang a + a {
  position: relative;
  margin-left: 0.5rem;
}

.lang a + a::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -0.3rem;
  width: 1px;
  height: 0.8rem;
  margin-top: -0.4rem;
  background: rgba(255, 255, 255, 0.22);
}

.lang a:hover {
  color: #fff;
}

.lang a[aria-current="true"] {
  color: var(--gold);
}

@media (min-width: 64rem) {
  .has-sub:hover > .nav__sub,
  .has-sub:focus-within > .nav__sub,
  .has-sub.is-open > .nav__sub {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .has-sub:hover > .nav__caret .icon,
  .has-sub.is-open > .nav__caret .icon {
    transform: rotate(180deg);
  }
}

@media (max-width: 63.98rem) {
  :root {
    --header-h: 4.25rem;
  }

  .nav-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 0;
    z-index: 99;
    display: block;
    padding: 1.25rem var(--gutter) 3rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #09090b;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.75rem);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }

  .nav-open .nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-open {
    overflow: hidden;
  }

  .nav-open .site-header::before,
  .js.nav-open .site-header:not(.is-scrolled)::before {
    background: #09090b;
    opacity: 1;
  }

  .nav__list {
    display: block;
  }

  .nav__item {
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav__link {
    display: block;
    padding: 1.1rem 0;
    font-size: 1.375rem;
    font-weight: 600;
    letter-spacing: -0.02em;
  }

  .nav__link::after,
  .nav__caret {
    display: none;
  }

  .nav__sub,
  .nav__sub--wide {
    position: static;
    width: auto;
    min-width: 0;
    padding: 0 0 1rem;
    background: none;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: inherit;
    transform: none;
    transition: none;
  }

  .nav__sub::before {
    display: none;
  }

  .nav__sub--wide ul {
    grid-template-columns: 1fr;
  }

  .nav__sub a:not(.link-arrow) {
    padding: 0.5rem 0 0.5rem 1rem;
    border-left: 1px solid rgba(201, 165, 92, 0.45);
    border-radius: 0;
  }

  .nav__sub strong {
    font-weight: 500;
    color: #d6d3ca;
  }

  .nav__sub span,
  .nav__sub-foot {
    display: none;
  }

  .nav__aside {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
    margin-top: 2rem;
  }

  .nav__aside .btn {
    min-height: 3.25rem;
    font-size: 1rem;
  }

  .lang {
    font-size: 0.875rem;
  }
}

/* 6. Hero (home)
   ========================================================================== */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(3rem, 1.5rem + 6vw, 7rem));
  padding-bottom: clamp(4rem, 2.5rem + 6vw, 7.5rem);
  overflow: hidden;
  background: linear-gradient(165deg, #14110b 0%, #09090a 44%, #060607 100%);
  isolation: isolate;
}

/* two warm glows behind dark heroes; the honeycomb itself is the .hive element */
.hero::before,
.subhero::before,
.hero::after,
.subhero::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.hero::before,
.subhero::before {
  bottom: -28rem;
  left: -18rem;
  width: 48rem;
  height: 48rem;
  background: radial-gradient(closest-side, rgba(201, 165, 92, 0.09), transparent);
}

.hero::after,
.subhero::after {
  top: -22rem;
  right: -14rem;
  width: 54rem;
  height: 54rem;
  background: radial-gradient(closest-side, rgba(201, 165, 92, 0.2), transparent);
}

.hero__grid {
  display: grid;
  gap: clamp(3rem, 2rem + 4vw, 5rem);
  align-items: center;
}

@media (min-width: 64rem) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  }
}

.hero h1 {
  font-size: var(--fs-hero);
  line-height: 1.03;
  letter-spacing: -0.04em;
}

.hero .lead {
  max-width: 36rem;
  margin-top: 1.75rem;
}

.hero .btn-row {
  margin-top: 2.5rem;
}

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2.25rem;
  margin-top: 3.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted);
}

.hero__proof li {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.hero__proof li::before {
  content: "";
  flex: none;
  width: 0.35rem;
  height: 0.35rem;
  background: var(--gold);
  border-radius: 50%;
  transform: translateY(-0.15rem);
}

.hero__proof strong {
  font-weight: 600;
  color: var(--fg);
}

.hero__visual {
  width: 100%;
  max-width: 37.5rem;
  margin-inline: auto;
}

.blueprint {
  width: 100%;
  height: auto;
  overflow: visible;
}

.blueprint text {
  font: 600 9px var(--font-display);
  letter-spacing: 0.22em;
  fill: #8f8c84;
}

.blueprint .bp-flow {
  stroke-dasharray: 3 6;
}

@media (prefers-reduced-motion: no-preference) {
  .blueprint .bp-flow {
    animation: bp-flow 1.6s linear infinite;
  }

  .blueprint .bp-node {
    animation: bp-pulse 3.2s ease-in-out infinite;
  }

  .blueprint .bp-node:nth-of-type(2n) {
    animation-delay: 1.1s;
  }

  .hero .eyebrow,
  .hero .lead,
  .hero .btn-row,
  .hero__proof,
  .hero__visual {
    animation: rise 0.9s var(--ease) both;
  }

  .hero .lead {
    animation-delay: 0.08s;
  }

  .hero .btn-row {
    animation-delay: 0.16s;
  }

  .hero__proof {
    animation-delay: 0.26s;
  }

  /* the diagram rises in, then floats */
  .hero__visual {
    animation: rise 0.9s var(--ease) 0.2s both, float 7s ease-in-out 1.3s infinite alternate;
  }

  /* the gold point travels round the ring of sub-page heroes */
  .subhero__ring {
    animation: orbit 90s linear infinite;
  }

  .subhero .breadcrumb,
  .subhero .eyebrow,
  .subhero .lead,
  .subhero .btn-row {
    animation: rise 0.8s var(--ease) both;
  }
}

@keyframes bp-flow {
  to {
    stroke-dashoffset: -18;
  }
}

@keyframes bp-pulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.35;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

@keyframes float {
  to {
    transform: translateY(-10px);
  }
}

@keyframes orbit {
  to {
    transform: rotate(360deg);
  }
}

/* 7. Sub-page hero
   ========================================================================== */
.subhero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(2.75rem, 1.6rem + 4.6vw, 5.5rem));
  padding-bottom: clamp(3.25rem, 2rem + 5vw, 6rem);
  overflow: hidden;
  background: linear-gradient(165deg, #14110b 0%, #09090a 44%, #060607 100%);
  isolation: isolate;
}

.subhero__inner {
  max-width: 52rem;
}

.subhero h1 {
  font-size: var(--fs-h1);
  letter-spacing: -0.035em;
}

.subhero .lead {
  max-width: 44rem;
  margin-top: 1.5rem;
}

.subhero .btn-row {
  margin-top: 2.25rem;
}

/* the "dot": a thin gold ring cropped by the edge of sub-page heroes */
.subhero__ring {
  position: absolute;
  top: 50%;
  right: -9rem;
  z-index: -1;
  width: 30rem;
  height: 30rem;
  margin-top: -13rem;
  border: 1px solid rgba(201, 165, 92, 0.42);
  border-radius: 50%;
}

.subhero__ring::before {
  content: "";
  position: absolute;
  inset: 3.25rem;
  border: 1px solid rgba(201, 165, 92, 0.16);
  border-radius: 50%;
}

.subhero__ring::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -0.3rem;
  width: 0.6rem;
  height: 0.6rem;
  margin-top: -0.3rem;
  background: var(--gold);
  border-radius: 50%;
}

@media (max-width: 59.98rem) {
  .subhero__ring {
    right: -17rem;
    opacity: 0.6;
  }
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.6rem;
  margin-bottom: 2.25rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.breadcrumb li + li::before {
  content: "/";
  color: rgba(255, 255, 255, 0.28);
}

.breadcrumb a {
  transition: color 0.2s var(--ease);
}

.breadcrumb a:hover {
  color: var(--gold-light);
}

.breadcrumb [aria-current] {
  color: var(--fg);
}

/* 8. Proof strip
   ========================================================================== */
.strip {
  position: relative;
  background:
    linear-gradient(90deg, rgba(201, 165, 92, 0.09), rgba(201, 165, 92, 0) 30%, rgba(201, 165, 92, 0) 70%, rgba(201, 165, 92, 0.09)),
    var(--black);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  isolation: isolate;
}

.strip::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 165, 92, 0.85) 18%, rgba(201, 165, 92, 0.85) 82%, transparent);
}

.strip__list {
  display: grid;
}

.strip__list li {
  padding: 1.6rem 0;
}

.strip__list li + li {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.strip__label {
  display: block;
  margin-bottom: 0.4rem;
  font: 600 0.6875rem/1.4 var(--font-display);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.strip__value {
  font: 500 1.0625rem/1.4 var(--font-display);
  letter-spacing: -0.01em;
  color: var(--fg);
}

.strip__value span {
  color: var(--muted);
}

@media (min-width: 48rem) {
  .strip__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .strip__list li {
    padding: 2rem 2rem 2rem 0;
  }

  .strip__list li + li {
    padding-left: 2rem;
    border-top: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
  }
}

/* 9. Cards
   ========================================================================== */
.grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 40rem) {
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 62rem) {
  .grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 75rem) {
  .grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 1.25rem + 1vw, 2.125rem);
  background: var(--surface);
  border: 1px solid var(--surface-line);
  border-radius: var(--radius);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.4s var(--ease);
}

.card--link:hover {
  border-color: rgba(201, 165, 92, 0.55);
  box-shadow: 0 22px 44px -30px rgba(20, 16, 4, 0.5);
  transform: translateY(-3px);
}

.card--link:hover::before {
  width: calc(100% + 2px);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.5rem;
  color: var(--accent);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: color 0.3s var(--ease), background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.card--link:hover .card__icon {
  color: #0b0b0d;
  background-color: var(--gold);
  border-color: var(--gold);
}

.card h3 {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.card p {
  margin-top: 0.7rem;
  font-size: 0.96875rem;
  line-height: 1.65;
  color: var(--muted);
}

.card__more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1.5rem;
  font: 600 0.875rem/1 var(--font-display);
  color: var(--accent);
}

.card__more .icon {
  width: 0.95rem;
  height: 0.95rem;
  transition: transform 0.25s var(--ease);
}

.card--link:hover .card__more .icon {
  transform: translateX(4px);
}

/* phones: a tighter card keeps long card lists short */
@media (max-width: 39.98rem) {
  .card__icon {
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 1.1rem;
  }

  .card__more {
    padding-top: 1.1rem;
  }
}

/* stretch the title link over the whole card */
.card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.card--cta {
  justify-content: center;
  color: #f4f2ec;
  background:
    radial-gradient(22rem 14rem at 100% 0%, rgba(201, 165, 92, 0.22), transparent 70%),
    linear-gradient(160deg, #17140e 0%, #0a0a0b 62%);
  border-color: rgba(201, 165, 92, 0.4);
  isolation: isolate;
}

.card--cta::before {
  width: calc(100% + 2px);
}

.card--cta p {
  color: #aba89f;
}

.card--cta .btn {
  align-self: flex-start;
  margin-top: 1.5rem;
}

/* numbered feature list (used on service pages) */
.feature {
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.feature__num {
  display: block;
  margin-bottom: 0.9rem;
  font: 600 0.75rem/1 var(--font-display);
  letter-spacing: 0.18em;
  color: var(--accent);
}

.feature h3 {
  font-size: 1.1875rem;
  letter-spacing: -0.02em;
}

.feature p {
  margin-top: 0.6rem;
  font-size: 0.96875rem;
  line-height: 1.65;
  color: var(--muted);
}

/* 10. Lists, chips, facts
   ========================================================================== */
.checklist li {
  position: relative;
  padding: 0.85rem 0 0.85rem 2rem;
  border-top: 1px solid var(--line);
}

.checklist li:last-child {
  border-bottom: 1px solid var(--line);
}

.checklist li::before {
  content: "";
  position: absolute;
  top: 1.45rem;
  left: 0.15rem;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--gold);
  border-radius: 50%;
}

.checklist strong {
  display: block;
  font: 600 1.0625rem/1.4 var(--font-display);
  letter-spacing: -0.015em;
}

.checklist span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.96875rem;
  color: var(--muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chips li {
  padding: 0.5rem 0.85rem;
  font: 500 0.8125rem/1.2 var(--font-display);
  color: var(--fg);
  background: var(--chip-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.chip-groups {
  display: grid;
  gap: 1.75rem;
}

.chip-groups h4 {
  margin-bottom: 0.85rem;
  font: 600 0.6875rem/1.4 var(--font-display);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.facts {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.facts > div {
  padding: 1.75rem 1.5rem;
  background: var(--bg);
}

.facts dt {
  font: 600 clamp(1.5rem, 1.25rem + 1vw, 2rem) / 1.15 var(--font-display);
  letter-spacing: -0.03em;
  color: var(--fg);
}

.facts dd {
  margin: 0.55rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--muted);
}

@media (min-width: 40rem) {
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .facts--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* 11. Process steps
   ========================================================================== */
.steps {
  display: grid;
  gap: 2.5rem 1.75rem;
  counter-reset: step;
}

@media (min-width: 40rem) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .steps--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

.step {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  counter-increment: step;
}

.step::before {
  content: "";
  position: absolute;
  top: -0.25rem;
  left: 0;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--gold);
  border-radius: 50%;
}

.step::after {
  content: counter(step, decimal-leading-zero);
  display: block;
  order: -1;
  margin-bottom: 1rem;
  font: 300 2.75rem/1 var(--font-display);
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold);
  transition: color 0.35s var(--ease);
}

.step:hover::after {
  color: var(--gold);
}

.step h3 {
  font-size: 1.1875rem;
  letter-spacing: -0.02em;
}

.step p {
  margin-top: 0.6rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--muted);
}

/* 12. Work / case studies
   ========================================================================== */
.browser {
  margin: 0;
  background: #101114;
  border: 1px solid rgba(17, 17, 19, 0.16);
  border-radius: 8px;
  box-shadow: 0 40px 70px -40px rgba(20, 16, 4, 0.55);
}

.theme-dark .browser {
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9);
}

.browser__bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  height: 2.25rem;
  padding: 0 0.9rem;
  background: #17181c;
  border-radius: 7px 7px 0 0;
}

.browser__bar i {
  width: 0.55rem;
  height: 0.55rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

.browser__bar span {
  margin-left: 0.75rem;
  font: 500 0.6875rem/1 var(--font-display);
  letter-spacing: 0.08em;
  color: #8f8c84;
}

.browser img {
  width: 100%;
  border-radius: 0 0 7px 7px;
}

.shot {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--surface-line);
  border-radius: 6px;
}

.shot img {
  width: 100%;
  border-radius: 5px 5px 0 0;
}

.shot figcaption {
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #55524a;
  background: #fff;
  border-top: 1px solid #e2ded3;
  border-radius: 0 0 5px 5px;
}

.shot figcaption strong {
  display: block;
  font: 600 0.9375rem/1.4 var(--font-display);
  color: #111113;
}

.work {
  display: grid;
  gap: clamp(2rem, 1.2rem + 3.5vw, 4.5rem);
  align-items: center;
}

@media (min-width: 60rem) {
  .work {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }

  .work--flip > :first-child {
    order: 2;
  }
}

.work + .work {
  margin-top: clamp(3.5rem, 2.5rem + 4vw, 6.5rem);
  padding-top: clamp(3.5rem, 2.5rem + 4vw, 6.5rem);
  border-top: 1px solid var(--line);
}

.work h2,
.work h3 {
  font-size: clamp(1.625rem, 1.3rem + 1.4vw, 2.25rem);
  letter-spacing: -0.03em;
}

.work p {
  margin-top: 1.1rem;
  color: var(--muted);
}

.work .chips {
  margin-top: 1.5rem;
}

.work .link-arrow {
  margin-top: 2rem;
}

.tag {
  display: inline-block;
  margin-bottom: 1.1rem;
  padding: 0.4rem 0.7rem;
  font: 600 0.6875rem/1.2 var(--font-display);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid currentColor;
  border-radius: var(--radius);
}

/* text-only "plate" used where a project has no screenshot to show */
.plate {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 3rem;
  min-height: 21rem;
  padding: clamp(1.75rem, 1.25rem + 2vw, 3rem);
  position: relative;
  overflow: hidden;
  color: #f4f2ec;
  background:
    radial-gradient(34rem 20rem at 100% 0%, rgba(201, 165, 92, 0.22), transparent 70%),
    linear-gradient(160deg, #17140e 0%, #0a0a0b 62%);
  border: 1px solid rgba(201, 165, 92, 0.3);
  border-radius: var(--radius);
  isolation: isolate;
}

/* the plate sits inside .work, whose paragraph rule must not reach in here */
.plate p {
  margin-top: 0;
}

.plate .plate__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font: 600 0.6875rem/1.4 var(--font-display);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.plate .plate__names {
  color: #f4f2ec;
  font: 600 clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem) / 1.1 var(--font-display);
  letter-spacing: -0.035em;
}

.plate .plate__names span {
  display: block;
  color: #8f8c84;
}

.plate .plate__names em {
  font-style: normal;
  color: var(--gold);
}

.plate .plate__foot {
  font-size: 0.875rem;
  color: #aba89f;
}

.meta {
  display: grid;
  gap: 1px;
  margin-top: 3rem;
  background: var(--line);
  border: 1px solid var(--line);
}

.meta > div {
  padding: 1.25rem 1.4rem;
  background: var(--black);
}

.meta dt {
  font: 600 0.6875rem/1.4 var(--font-display);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.meta dd {
  margin: 0.45rem 0 0;
  font: 500 0.96875rem/1.45 var(--font-display);
  color: var(--fg);
}

@media (min-width: 40rem) {
  .meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .meta {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.gallery {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 48rem) {
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 13. Team
   ========================================================================== */
.team {
  display: grid;
  gap: 2.5rem 1.5rem;
}

@media (min-width: 36rem) {
  .team {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* the four-up teaser stays two across on phones, so it still reads as a team */
.team--4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 1rem;
}

@media (min-width: 36rem) {
  .team--4 {
    gap: 2.5rem 1.5rem;
  }
}

@media (min-width: 48rem) {
  .team--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* portraits are 2:3 studio shots on a light backdrop, in a thin gold frame
   that sits on the edge of the box and never over the photograph */
.member__photo {
  position: relative;
  aspect-ratio: 2 / 3;
  margin-bottom: 1.35rem;
  overflow: hidden;
  background: #efeeeb;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
}

@supports not (aspect-ratio: 1) {
  .member__photo {
    padding-top: 150%;
  }
}

.member__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
  transition: transform 0.7s var(--ease);
}

.member:hover .member__photo img {
  transform: scale(1.035);
}

.member h2,
.member h3 {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.member__role {
  margin-top: 0.4rem;
  font: 600 0.6875rem/1.5 var(--font-display);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

/* narrow columns (phones two across, tablets four across) take smaller labels */
@media (max-width: 63.98rem) {
  .team--4 .member h3 {
    font-size: 1.0625rem;
  }

  .team--4 .member__role {
    font-size: 0.625rem;
    letter-spacing: 0.12em;
  }
}

.member__bio {
  margin-top: 1rem;
  font-size: 0.96875rem;
  line-height: 1.7;
  color: var(--muted);
}

.member__bio + .member__bio {
  margin-top: 0.75rem;
}

.member__links {
  display: flex;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.member__links a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font: 600 0.8125rem/1 var(--font-display);
  color: var(--fg);
  transition: color 0.2s var(--ease);
}

.member__links a:hover {
  color: var(--accent);
}

.member__links .icon {
  width: 1.05rem;
  height: 1.05rem;
  color: var(--accent);
}

/* wide variant on the team page: portrait beside the bio */
.team--profiles {
  gap: clamp(3rem, 2rem + 4vw, 5rem) clamp(2rem, 1rem + 4vw, 4.5rem);
}

@media (max-width: 74.98rem) {
  .team--profiles {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (min-width: 30rem) {
  .member--profile {
    display: grid;
    grid-template-columns: minmax(0, 12.5rem) minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
  }

  .member--profile .member__photo {
    margin-bottom: 0;
  }
}

@media (max-width: 29.98rem) {
  .member--profile .member__photo {
    max-width: 15rem;
  }
}

.member--profile .member__body {
  max-width: 40rem;
}

.member--profile h2,
.member--profile h3 {
  font-size: 1.5rem;
}

/* 14. FAQ
   ========================================================================== */
.faq {
  border-top: 1px solid var(--line);
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__item summary {
  position: relative;
  display: block;
  padding: 1.4rem 3rem 1.4rem 0;
  font: 600 1.125rem/1.4 var(--font-display);
  letter-spacing: -0.015em;
  cursor: pointer;
  list-style: none;
  transition: color 0.2s var(--ease);
}

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

.faq__item summary:hover {
  color: var(--accent);
}

.faq__item summary::before,
.faq__item summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0.35rem;
  width: 0.9rem;
  height: 1px;
  background: var(--accent);
  transition: transform 0.3s var(--ease);
}

.faq__item summary::after {
  transform: rotate(90deg);
}

.faq__item[open] summary::after {
  transform: rotate(0deg);
}

.faq__answer {
  max-width: 44rem;
  padding: 0 0 1.6rem;
  color: var(--muted);
}

/* 15. Prose (long-form text, legal pages)
   ========================================================================== */
.prose {
  max-width: 46rem;
}

.prose > * + * {
  margin-top: 1.25rem;
}

.prose h2 {
  margin-top: 3rem;
  font-size: clamp(1.5rem, 1.3rem + 0.9vw, 1.875rem);
}

.prose h3 {
  margin-top: 2.25rem;
  font-size: 1.25rem;
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose strong {
  font-weight: 600;
  color: var(--fg);
}

.prose ul {
  padding-left: 0;
}

.prose ul li {
  position: relative;
  padding-left: 1.5rem;
}

.prose ul li + li {
  margin-top: 0.5rem;
}

.prose ul li::before {
  content: "";
  position: absolute;
  top: 0.75em;
  left: 0.15rem;
  width: 0.35rem;
  height: 0.35rem;
  background: var(--gold);
  border-radius: 50%;
}

.prose a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 0.22em;
}

.prose a:hover {
  color: var(--accent);
}

.prose__meta {
  font-size: 0.875rem;
  color: var(--muted);
}

.quote {
  color: var(--fg);
  padding-left: clamp(1.25rem, 0.8rem + 2vw, 2.25rem);
  font: 500 clamp(1.375rem, 1.1rem + 1.2vw, 2rem) / 1.35 var(--font-display);
  letter-spacing: -0.025em;
  border-left: 1px solid var(--gold);
}

/* 16. CTA band
   ========================================================================== */
.cta {
  overflow: hidden;
}

.section.cta {
  background:
    radial-gradient(48rem 24rem at 50% 120%, rgba(201, 165, 92, 0.22), transparent 70%),
    linear-gradient(180deg, #0c0b09 0%, #060607 100%);
}

/* three background layers: a gold wash and a near-opaque fill inside the
   padding box, and the gradient that shows only as the 1px border. The fill
   hides the band's honeycomb, so the box has a .hive of its own. */
.cta__box {
  position: relative;
  display: grid;
  gap: 2rem;
  align-items: end;
  padding: clamp(2rem, 1.2rem + 3.6vw, 4.5rem);
  background:
    linear-gradient(135deg, rgba(201, 165, 92, 0.13), rgba(201, 165, 92, 0) 46%) padding-box,
    linear-gradient(rgba(10, 10, 11, 0.88), rgba(10, 10, 11, 0.88)) padding-box,
    linear-gradient(135deg, #ecd6a4, rgba(201, 165, 92, 0.2) 42%, rgba(201, 165, 92, 0.65)) border-box;
  border: 1px solid transparent;
  border-radius: var(--radius);
  box-shadow: 0 44px 90px -56px rgba(201, 165, 92, 0.5);
  isolation: isolate;
}

@media (min-width: 60rem) {
  .cta__box {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

.cta h2 {
  max-width: 34rem;
  font-size: var(--fs-h2);
}

.cta p {
  max-width: 34rem;
  margin-top: 1.1rem;
  font-size: var(--fs-lead);
  color: var(--muted);
}

/* 17. Contact & forms
   ========================================================================== */
.contact-list > li {
  display: flex;
  gap: 1.1rem;
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
}

.contact-list > li:last-child {
  border-bottom: 1px solid var(--line);
}

.contact-list .icon {
  margin-top: 0.15rem;
  color: var(--accent);
}

.contact-list h3 {
  font: 600 0.6875rem/1.4 var(--font-display);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-list p,
.contact-list address,
.contact-list a {
  display: block;
  margin-top: 0.3rem;
  font: 500 1.0625rem/1.45 var(--font-display);
  letter-spacing: -0.01em;
}

.contact-list a {
  transition: color 0.2s var(--ease);
}

.contact-list a:hover {
  color: var(--accent);
}

.form {
  padding: clamp(1.5rem, 1.1rem + 2vw, 2.75rem);
  background: var(--surface);
  border: 1px solid var(--surface-line);
  border-radius: var(--radius);
}

.form__grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 40rem) {
  .form__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form__full {
    grid-column: 1 / -1;
  }
}

.field label {
  display: block;
  margin-bottom: 0.5rem;
  font: 600 0.8125rem/1.3 var(--font-display);
  color: var(--fg);
}

.field label span {
  color: var(--accent);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
  color: #111113;
  background: #fff;
  border: 1px solid #cfcabd;
  border-radius: var(--radius);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.field textarea {
  min-height: 9.5rem;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--gold-ink);
  box-shadow: 0 0 0 3px rgba(201, 165, 92, 0.28);
  outline: none;
}

.field [aria-invalid="true"] {
  border-color: #b3261e;
}

.field__error {
  display: block;
  min-height: 1.25rem;
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  color: #b3261e;
}

/* honeypot: hidden from people, visible to form-filling bots */
.field--trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 0.5rem;
}

.form__note {
  flex: 1 1 16rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--muted);
}

.form__status {
  margin-top: 1.25rem;
  padding: 0.9rem 1.1rem;
  font-size: 0.9375rem;
  color: #111113;
  background: #f4ecd9;
  border-left: 2px solid var(--gold-ink);
}

.form__status--error {
  background: #f9e6e3;
  border-left-color: #b3261e;
}

.form__status[hidden] {
  display: none;
}

/* while the message is on its way */
.form [type="submit"][disabled] {
  opacity: 0.6;
  cursor: progress;
}

/* 18. Footer
   ========================================================================== */
.site-footer {
  --bg: var(--black);
  position: relative;
  padding-top: clamp(3.5rem, 2.5rem + 4vw, 6rem);
  font-size: 0.9375rem;
  background:
    radial-gradient(54rem 26rem at 100% 100%, rgba(201, 165, 92, 0.11), transparent 66%),
    linear-gradient(180deg, #0b0a09 0%, #050506 100%);
  isolation: isolate;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 165, 92, 0.75) 20%, rgba(201, 165, 92, 0.75) 80%, transparent);
}

.site-footer__top {
  display: grid;
  gap: 2.75rem 2rem;
}

@media (min-width: 40rem) {
  .site-footer__top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .site-footer__top {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr) minmax(0, 0.8fr) minmax(0, 1.1fr);
    gap: 3rem;
  }
}

.site-footer__about p {
  max-width: 21rem;
  margin-top: 1.5rem;
  color: var(--muted);
}

.footer-title {
  margin-bottom: 1.25rem;
  font: 600 0.6875rem/1.4 var(--font-display);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-links li + li {
  margin-top: 0.65rem;
}

.footer-links a {
  color: #cfccc3;
  transition: color 0.2s var(--ease);
}

.footer-links a:hover {
  color: var(--gold-light);
}

.footer-links span {
  display: block;
  color: var(--muted);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-top: clamp(3rem, 2rem + 3vw, 4.5rem);
  padding-block: 1.75rem;
  font-size: 0.8125rem;
  color: #8f8c84;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer__bottom ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.site-footer__bottom a {
  transition: color 0.2s var(--ease);
}

.site-footer__bottom a:hover {
  color: var(--gold-light);
}

/* 19. Error page
   ========================================================================== */
.error-code {
  margin-bottom: 1.5rem;
  font: 300 clamp(5rem, 3rem + 12vw, 11rem) / 0.9 var(--font-display);
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold);
}

.error-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2.5rem;
}

.error-links a {
  padding: 0.6rem 1rem;
  font: 500 0.875rem/1.2 var(--font-display);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.error-links a:hover {
  color: var(--gold-light);
  border-color: var(--gold);
}

/* 20. Scroll reveal (applied by main.js only to elements below the fold)
   ========================================================================== */
.reveal-ready {
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal-ready.is-hidden {
  opacity: 0;
  transform: translateY(22px);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .nav,
  .cta,
  .site-footer__top,
  .hive {
    display: none;
  }

  body,
  .theme-dark,
  .hero,
  .subhero {
    color: #000;
    background: #fff;
  }
}
