@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Inter:wght@400;500;600&display=swap');

:root {
  /* Palette */
  --ink: #171717;
  --charcoal: #1B1B1B;
  --cream: #F6F1E8;
  --white: #FFFFFF;
  --sand: #E3DDD2;
  --warm-grey: #D8D2C6;
  --muted-ink: #5F5A52;
  --brass: #B58B4A;
  --deep-brass: #8A6A3B;
  --overlay-dark: rgba(0, 0, 0, 0.88);
  --overlay-mid: rgba(0, 0, 0, 0.5);
  --hairline: rgba(0, 0, 0, 0.08);
  --subtle-wash: rgba(0, 0, 0, 0.04);
  --dark-wash: rgba(255, 255, 255, 0.04);

  /* Type */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Spacing — 8pt scale */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;
  --space-7: 6rem;
  --space-8: 8rem;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.05), 0 10px 15px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.08), 0 20px 40px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.1), 0 30px 60px rgba(0, 0, 0, 0.15);

  /* Motion */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --header-height: 80px;
  --container-max: 1280px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--muted-ink);
  background-color: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button {
  font: inherit;
}

ul {
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
}

p {
  margin: 0;
}

::selection {
  background: var(--brass);
  color: var(--ink);
}

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

/* Grain texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

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

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-2);
  z-index: 10000;
  padding: var(--space-2) var(--space-3);
  background: var(--ink);
  color: var(--white);
  font-weight: 600;
  border-radius: 2px;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-2);
}

/* Shell */
.shell {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

@media (min-width: 768px) {
  .shell {
    padding: 0 var(--space-5);
  }
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: transparent;
  color: var(--white);
  transition: background var(--transition-base), color var(--transition-base), box-shadow var(--transition-base), backdrop-filter var(--transition-base);
}

.site-header.is-scrolled {
  background: var(--charcoal);
  color: var(--cream);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  flex-shrink: 0;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border: 1px solid currentColor;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.brand-dot {
  width: 8px;
  height: 8px;
  background: var(--brass);
  border-radius: 50%;
}

.brand-word {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
}

/* Navigation */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: inherit;
}

.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.primary-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: inherit;
  position: relative;
  padding: var(--space-1) 0;
  transition: color var(--transition-fast);
}

.nav-list a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-base);
}

.nav-list a:hover::after,
.nav-list a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-list a.is-active {
  color: var(--brass);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  padding: 0.875rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--brass);
  color: var(--ink);
  border-color: var(--brass);
}

.btn-primary:hover {
  background: var(--deep-brass);
  border-color: var(--deep-brass);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

.nav-cta {
  padding: 0.625rem 1.25rem;
  font-size: 0.8125rem;
  background: var(--brass);
  color: var(--ink);
  border-color: var(--brass);
}

.nav-cta:hover {
  background: var(--deep-brass);
  border-color: var(--deep-brass);
  color: var(--white);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  max-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--ink);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.35) 45%, rgba(0, 0, 0, 0.88) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: var(--header-height);
  padding-bottom: var(--space-7);
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 680px;
  color: var(--white);
}

.overline {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: var(--space-2);
}

.on-dark {
  color: var(--white);
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2.625rem, 6vw, 5.5rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: var(--space-3);
}

.lede {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
  max-width: 560px;
  margin-bottom: var(--space-5);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.hero-foot {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--white);
}

.hero-foot-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-foot-num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.1;
  color: var(--white);
}

.hero-foot-label {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.hero-foot-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
}

/* Stats */
.stats {
  background: var(--cream);
  padding: var(--space-7) 0;
  border-bottom: 1px solid var(--sand);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

.stat {
  border-top: 1px solid var(--sand);
  padding-top: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 500;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.stat-label {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-ink);
  min-height: 2.5em;
  line-height: 1.4;
}

/* Services intro */
.services-intro {
  padding: var(--space-8) 0 var(--space-6);
  background: var(--cream);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: start;
}

.intro-lead {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.intro-body {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--muted-ink);
  padding-top: var(--space-2);
}

/* Feature flagship */
.feature {
  padding: var(--space-6) 0 var(--space-8);
  background: var(--cream);
}

.feature-flagship {
  padding-top: var(--space-4);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: center;
}

.feature-media {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: var(--shadow-lg);
  clip-path: polygon(0 0, 100% 2%, 98% 100%, 2% 98%);
}

.feature-media-tall {
  aspect-ratio: 3 / 4;
}

.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.feature-media:hover img {
  transform: scale(1.04);
}

.media-caption {
  position: absolute;
  bottom: var(--space-3);
  left: var(--space-3);
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.5rem 0.75rem;
  border-radius: 2px;
}

.feature-copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.feature-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.feature-text {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--muted-ink);
}

.feature-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--sand);
}

.fact-key {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--deep-brass);
  display: block;
  margin-bottom: var(--space-1);
}

.fact-val {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--deep-brass);
  text-decoration: none;
  transition: color var(--transition-fast), gap var(--transition-fast);
  margin-top: var(--space-2);
}

.link-arrow::after {
  content: "→";
  font-size: 1.1em;
  transition: transform var(--transition-fast);
}

.link-arrow:hover {
  color: var(--brass);
  gap: var(--space-2);
}

.link-arrow:hover::after {
  transform: translateX(2px);
}

/* Service rows */
.service-rows {
  padding: var(--space-6) 0 var(--space-8);
  background: var(--cream);
}

.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: center;
  margin-bottom: var(--space-8);
}

.service-row:last-child {
  margin-bottom: 0;
}

.service-row-reverse .service-media {
  order: 2;
}

.service-row-reverse .service-body {
  order: 1;
}

.service-media {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: var(--shadow-md);
  aspect-ratio: 16 / 10;
}

.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.service-media:hover img {
  transform: scale(1.04);
}

.service-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.service-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.service-text {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--muted-ink);
}

/* Credibility */
.credibility {
  background: var(--charcoal);
  color: var(--white);
  padding: var(--space-8) 0;
}

.credibility-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-6);
  align-items: center;
}

.credibility-copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.credibility-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--white);
}

.credibility-text {
  font-size: 1.125rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
  max-width: 520px;
}

.credibility-figure {
  display: flex;
  align-items: center;
  justify-content: center;
}

.credibility-ring {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 1px solid rgba(181, 139, 74, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.credibility-ring::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  border: 1px solid rgba(181, 139, 74, 0.2);
}

.credibility-num {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 500;
  line-height: 1;
  color: var(--brass);
  letter-spacing: -0.02em;
}

.credibility-cap {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-top: var(--space-1);
}

/* Trusted */
.trusted {
  background: var(--charcoal);
  padding: var(--space-7) 0 var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.trusted-overline {
  display: block;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: var(--space-5);
}

.logo-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-5) var(--space-6);
  list-style: none;
  margin: 0;
  padding: 0;
}

.logo-item {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.7);
  filter: grayscale(1);
  transition: opacity var(--transition-fast), color var(--transition-fast);
  opacity: 0.7;
}

.logo-item:hover {
  opacity: 1;
  color: var(--white);
}

/* Craft */
.craft {
  padding: var(--space-8) 0;
  background: var(--cream);
}

.craft-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: center;
}

.craft-copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.craft-text {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--muted-ink);
}

.craft-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
  margin-top: var(--space-3);
  padding-left: 0;
}

.craft-list li {
  position: relative;
  padding-left: var(--space-3);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.5;
}

.craft-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brass);
  font-weight: 700;
  font-size: 0.875rem;
}

.craft-media {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
}

.craft-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.craft-media:hover img {
  transform: scale(1.03);
}

/* Reveal animation */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .stat,
  .feature,
  .service-row,
  .credibility-copy,
  .credibility-figure,
  .logo-item,
  .craft-copy,
  .craft-media {
    animation: fadeUp both;
    animation-timeline: view();
    animation-range: entry 0% entry 50%;
  }
}

/* Responsive */
@media (max-width: 1023px) {
  .nav-toggle {
    display: flex;
  }

  .primary-nav {
    position: fixed;
    inset: var(--header-height) 0 0 0;
    background: var(--charcoal);
    padding: var(--space-5) var(--space-4);
    flex-direction: column;
    align-items: flex-start;
    transform: translateX(100%);
    transition: transform var(--transition-base);
    overflow-y: auto;
  }

  .primary-nav.is-open {
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
    width: 100%;
  }

  .nav-list a {
    font-size: 1.125rem;
  }

  .nav-cta {
    margin-top: var(--space-4);
    width: 100%;
    text-align: center;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .hero {
    max-height: 100svh;
  }

  .hero-foot {
    display: none;
  }

  .hero-inner {
    padding-top: calc(var(--header-height) + var(--space-4));
  }

  .intro-grid,
  .feature-grid,
  .service-row,
  .service-row-reverse,
  .credibility-grid,
  .craft-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .feature-media-tall {
    aspect-ratio: 4 / 3;
  }

  .service-row,
  .service-row-reverse {
    margin-bottom: var(--space-6);
  }

  .service-row-reverse .service-media,
  .service-row-reverse .service-body {
    order: unset;
  }

  .service-media {
    aspect-ratio: 4 / 3;
  }

  .credibility-figure {
    order: -1;
  }

  .credibility-ring {
    width: 200px;
    height: 200px;
  }

  .logo-cloud {
    gap: var(--space-4) var(--space-4);
  }

  .logo-item {
    font-size: 1.125rem;
  }

  .craft-media {
    aspect-ratio: 4 / 3;
  }

  .craft-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 479px) {
  .stats {
    padding: var(--space-6) 0;
  }

  .stat-label {
    min-height: auto;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}