:root {
  --bg: #09090a;
  --bg-elevated: rgba(18, 18, 20, 0.9);
  --text: #f3eee6;
  --text-soft: #c8c0b6;
  --text-muted: #9b948b;
  --text-faint: #767068;
  --line: rgba(243, 238, 230, 0.1);
  --line-strong: rgba(243, 238, 230, 0.18);
  --accent-strong: #8d2a46;
  --accent-soft: rgba(141, 42, 70, 0.22);
  --shadow: rgba(0, 0, 0, 0.28);
  --container: 68rem;
  --content: 50rem;
  --header-height: 4rem;
  --radius: 0.35rem;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Bahnschrift", "Arial Narrow", "Aptos Narrow", "Segoe UI Variable Display", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  scroll-padding-top: 5rem;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 20rem;
  overflow-x: clip;
  background-color: var(--bg);
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 24%),
    linear-gradient(180deg, #09090a 0%, #0b0b0d 100%);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.02) 0,
    rgba(255, 255, 255, 0.02) 1px,
    transparent 1px,
    transparent 3px
  );
  opacity: 0.12;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: var(--accent-soft);
  color: var(--text);
}

:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 0.18rem;
  box-shadow: 0 0 0 0.22rem rgba(141, 42, 70, 0.14);
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.section {
  padding: clamp(4rem, 7vw, 6.5rem) 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(9, 9, 10, 0.78);
  border-bottom: 1px solid rgba(243, 238, 230, 0.07);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-height);
}

.brand,
.site-nav a,
.button,
.service-item a {
  text-decoration: none;
}

.brand {
  position: relative;
  z-index: 2;
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.brand:hover {
  color: var(--text);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.site-nav a {
  position: relative;
  color: var(--text-faint);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 160ms ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.35rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  opacity: 0.65;
  transition: transform 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current],
.site-nav a[aria-current="true"] {
  color: var(--text-soft);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a[aria-current]::after,
.site-nav a[aria-current="true"]::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease;
}

.nav-toggle:hover {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

.nav-toggle span {
  display: block;
  width: 1rem;
  height: 1px;
  background: currentColor;
  transition: transform 180ms ease;
}

.nav-open .nav-toggle span:first-child {
  transform: translateY(0.16rem) rotate(45deg);
}

.nav-open .nav-toggle span:last-child {
  transform: translateY(-0.16rem) rotate(-45deg);
}

.hero {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  padding-top: clamp(5rem, 10vw, 8.5rem);
}

.page-hero {
  min-height: calc(100vh - var(--header-height) - 8rem);
}

.not-found .page-hero {
  min-height: calc(100vh - var(--header-height) - 10rem);
}

.page-hero .hero-inner {
  width: min(100%, 44rem);
}

.hero::before {
  content: "";
  position: absolute;
  top: -8rem;
  left: 50%;
  width: min(88rem, 100%);
  height: min(46rem, 74vh);
  z-index: -1;
  pointer-events: none;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 50% 22%, rgba(107, 32, 53, 0.16), transparent 34%),
    radial-gradient(circle at 50% 30%, rgba(107, 32, 53, 0.08), transparent 48%);
}

.page-hero::before {
  height: min(38rem, 62vh);
  background:
    radial-gradient(circle at 50% 20%, rgba(107, 32, 53, 0.12), transparent 33%),
    radial-gradient(circle at 50% 30%, rgba(107, 32, 53, 0.06), transparent 46%);
}

.hero-inner,
.section-inner,
.footer-inner {
  width: min(100%, var(--content));
}

.page-prose {
  max-width: 34rem;
  margin-top: 1.25rem;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--text-faint);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.92;
}

h1 {
  max-width: 9ch;
  font-size: clamp(4.25rem, 11vw, 8.4rem);
  text-wrap: balance;
}

.page-hero h1 {
  max-width: 11ch;
  font-size: clamp(3.2rem, 8vw, 5.6rem);
  letter-spacing: -0.04em;
}

h2 {
  max-width: 14ch;
  font-size: clamp(2.15rem, 5vw, 3.7rem);
}

h3 {
  color: var(--text);
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
}

.hero-subheading {
  max-width: 32rem;
  margin: 1.15rem 0 0;
  color: var(--text-soft);
  font-size: clamp(1.06rem, 2.3vw, 1.36rem);
  line-height: 1.35;
}

.page-hero .hero-subheading {
  max-width: 28rem;
  margin-top: 1rem;
  font-size: clamp(1rem, 1.9vw, 1.16rem);
}

.hero-copy,
.prose p,
.footer-copy {
  max-width: 39rem;
  margin: 1rem 0 0;
  color: var(--text-muted);
  font-size: 1rem;
}

.page-hero .prose p {
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.page-actions {
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.78rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 0.7rem 1.6rem rgba(0, 0, 0, 0.16);
}

.button-primary {
  background: var(--text);
  color: var(--bg);
}

.button-primary:hover {
  background: #ffffff;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-soft);
}

.button-secondary:hover {
  border-color: rgba(243, 238, 230, 0.28);
  background: rgba(255, 255, 255, 0.04);
}

.hero-note {
  max-width: 32rem;
  margin: 1.2rem 0 0;
  padding-top: 0.95rem;
  border-top: 1px solid var(--line);
  color: #878078;
  font-size: 0.88rem;
}

.section-heading {
  margin-bottom: 1.85rem;
}

.service-list {
  border-top: 1px solid var(--line);
}

.service-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem 2rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
  align-items: end;
}

.service-item h3 {
  transition: color 160ms ease;
}

.service-item p {
  margin: 0.45rem 0 0;
  color: var(--text-muted);
}

.service-item a {
  color: var(--text-faint);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 160ms ease, transform 160ms ease;
}

.service-item:hover h3,
.service-item:focus-within h3,
.service-item:hover a {
  color: var(--text-soft);
}

.service-item:focus-within a {
  color: var(--text-soft);
}

.service-item a:hover {
  transform: translateX(0.12rem);
}

.split-layout {
  display: grid;
  gap: 1.75rem 3.5rem;
  grid-template-columns: minmax(0, 16rem) minmax(0, 1fr);
  align-items: start;
}

.prose p:first-child,
.footer-copy {
  margin-top: 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding-top: 2rem;
}

.footer-inner {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}

.copyright {
  margin: 0;
  color: var(--text-faint);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (max-width: 48rem) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.65rem);
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.95rem 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-elevated);
    box-shadow: 0 1rem 2.5rem var(--shadow);
  }

  .nav-open .site-nav {
    display: flex;
  }

  .service-item,
  .split-layout,
  .footer-inner {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .service-item a,
  .copyright {
    white-space: normal;
  }

  .page-hero {
    min-height: auto;
  }
}

@media (max-width: 32rem) {
  .container {
    width: min(calc(100% - 1.25rem), var(--container));
  }

  .section {
    padding: 3.6rem 0;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before {
    opacity: 0.06;
  }

  .hero::before {
    opacity: 0.85;
  }

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}