:root {
  --bg: #07080a;
  --bg-raise: #0d0e11;
  --bg-card: #111318;
  --line: rgba(242, 241, 237, 0.1);
  --line-strong: rgba(242, 241, 237, 0.18);
  --text: #f2f1ed;
  --muted: #9a9b96;
  --faint: #5e5f5b;
  --accent: #c8b89a;
  --accent-dim: rgba(200, 184, 154, 0.12);
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  --sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 70rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 0.85rem;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.02rem;
  line-height: 1.6;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(242, 241, 237, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 241, 237, 0.035) 1px, transparent 1px);
  background-size: 4.5rem 4.5rem;
  mask-image: radial-gradient(ellipse 90% 70% at 50% -10%, #000 20%, transparent 72%);
}

a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { color: var(--text); }

:focus-visible {
  outline: 1.5px solid var(--accent);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 80;
  padding: 0.45rem 0.7rem;
  background: var(--bg-card);
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--line-strong);
}
.skip:focus { top: 1rem; }

.wrap {
  width: min(var(--wrap), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}

.site-header .bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 560;
  letter-spacing: -0.03em;
  font-size: 0.98rem;
  white-space: nowrap;
}

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

.mark {
  width: 1.35rem;
  height: 1.35rem;
  flex: 0 0 auto;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  border-radius: 0.4rem;
  cursor: pointer;
}

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

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1rem;
  height: 1.5px;
  background: currentColor;
  position: relative;
  margin-inline: auto;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after { top: 5px; }

#site-nav {
  display: flex;
  gap: 0.15rem 1.6rem;
  margin-left: auto;
}

#site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#site-nav a:hover,
#site-nav a[aria-current="page"] { color: var(--text); }

/* —— Hero —— */
.hero {
  position: relative;
  z-index: 1;
  padding: clamp(4rem, 12vw, 8.5rem) 0 clamp(4.5rem, 10vw, 7.5rem);
}

.hero-glow {
  position: absolute;
  left: 50%;
  top: -4rem;
  width: min(52rem, 90vw);
  height: 22rem;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(200, 184, 154, 0.14), transparent 68%);
  pointer-events: none;
}

.kicker {
  margin: 0 0 1.1rem;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(2.6rem, 8.4vw, 5.6rem);
  font-weight: 520;
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.hero .subhead {
  margin: 0 0 1.6rem;
  max-width: 28rem;
  color: var(--muted);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  font-weight: 400;
  line-height: 1.35;
}

.hero .lede {
  margin: 0;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.08rem;
}

/* —— Sections —— */
.section {
  position: relative;
  z-index: 1;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 4.5rem;
}

.section-head {
  display: grid;
  gap: 0.75rem 3rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

@media (min-width: 720px) {
  .section-head {
    grid-template-columns: minmax(10rem, 16rem) 1fr;
    align-items: end;
  }
}

.section h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  font-weight: 520;
  letter-spacing: -0.04em;
}

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

/* —— Cards —— */
.cards {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}

.card {
  padding: 1.45rem 1.4rem 1.55rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: border-color 0.2s ease;
}

.card:hover { border-color: var(--line-strong); }

.card-index {
  margin: 0 0 1.35rem;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
}

.card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.12rem;
  font-weight: 560;
  letter-spacing: -0.025em;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* —— Process —— */
.steps {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-raise);
}

@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
}

.step {
  padding: 1.45rem 1.3rem 1.55rem;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 720px) {
  .step {
    border-bottom: 1px solid var(--line);
    border-right: 1px solid var(--line);
  }
  .step:nth-child(2n) { border-right: 0; }
  .step:nth-last-child(-n + 2) { border-bottom: 0; }
}

@media (min-width: 960px) {
  .step {
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }
  .step:nth-child(2n) { border-right: 1px solid var(--line); }
  .step:nth-last-child(-n + 2) { border-bottom: 0; }
  .step:last-child { border-right: 0; }
}

.step-index {
  margin: 0 0 1.1rem;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
}

.step h3 {
  margin: 0 0 0.45rem;
  font-size: 1.02rem;
  font-weight: 560;
  letter-spacing: -0.02em;
}

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

/* —— Contact —— */
.contact-panel {
  display: grid;
  gap: 1.6rem;
  padding: clamp(1.6rem, 4vw, 2.4rem);
  background:
    linear-gradient(180deg, var(--accent-dim), transparent 42%),
    var(--bg-card);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 0.15rem);
}

@media (min-width: 800px) {
  .contact-panel {
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 3rem;
  }
}

.contact-panel p {
  margin: 0.7rem 0 0;
  max-width: 36rem;
  color: var(--muted);
}

.email-link {
  display: inline-block;
  margin-top: 1.2rem;
  color: var(--text);
  font-size: clamp(1.05rem, 2.4vw, 1.55rem);
  font-weight: 520;
  letter-spacing: -0.03em;
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  overflow-wrap: anywhere;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  background: var(--text);
  color: #111;
  font-size: 0.88rem;
  font-weight: 560;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover { background: var(--accent); color: #111; }

/* —— Legal page —— */
.legal {
  position: relative;
  z-index: 1;
  padding: clamp(3rem, 8vw, 5.5rem) 0 5rem;
}

.legal h1 {
  margin: 0 0 0.7rem;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 520;
  letter-spacing: -0.04em;
}

.legal .intro {
  margin: 0 0 2.4rem;
  max-width: 38rem;
  color: var(--muted);
}

.legal h2 {
  margin: 2rem 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 560;
  letter-spacing: -0.02em;
}

.legal p,
.legal li {
  color: var(--muted);
  max-width: 42rem;
}

.legal ul { padding-left: 1.15rem; }

/* —— Footer —— */
.site-footer {
  position: relative;
  z-index: 1;
  padding: 1.4rem 0 1.7rem;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.82rem;
}

.site-footer .bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.4rem;
}

.site-footer nav {
  display: flex;
  gap: 1.1rem;
  margin-left: auto;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover { color: var(--text); }

@media (max-width: 640px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }

  #site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin: 0;
    padding: 0.6rem var(--gutter) 1rem;
    background: color-mix(in srgb, var(--bg) 94%, transparent);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0.15rem;
  }

  .site-header.is-open #site-nav { display: flex; }

  #site-nav a { padding: 0.7rem 0; }

  .site-footer .bar { flex-direction: column; align-items: flex-start; }
  .site-footer nav { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
