/* Plaster & proportion — Golden Ratio company site */

:root {
  --field: #f2f1ee;
  --field-deep: #e8e6e1;
  --ink: #1a1917;
  --muted: #6e6b66;
  --gold: #c88000;
  --gold-soft: color-mix(in srgb, var(--gold) 55%, white);
  --lapis: #2b3a5c;
  --phi: 1.618;
  --font-display: "Cormorant Garamond", "Palatino Linotype", Palatino, serif;
  --font-ui: "Instrument Sans", "Segoe UI", sans-serif;
  --space-1: 0.5rem;
  --space-2: 0.812rem; /* ~0.5 × φ */
  --space-3: 1.312rem;
  --space-4: 2.125rem;
  --space-5: 3.437rem;
  --space-6: 5.562rem;
  --space-7: 9rem;
  --text-body: clamp(1.0125rem, 0.95rem + 0.25vw, 1.0625rem); /* ~16.2–17px */
  --text-lede: clamp(1.125rem, 1rem + 0.55vw, 1.3125rem);
  --text-h2: clamp(2.125rem, 1.5rem + 2.4vw, 3.437rem);
  --text-h1: clamp(2.75rem, 1.6rem + 4.2vw, 4.55rem);
  --max: 72rem;
  --header-h: 4.5rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.65;
  background:
    radial-gradient(120% 80% at 88% -10%, color-mix(in srgb, var(--gold) 14%, transparent), transparent 55%),
    radial-gradient(90% 60% at -5% 40%, color-mix(in srgb, var(--lapis) 8%, transparent), transparent 50%),
    linear-gradient(180deg, var(--field) 0%, var(--field-deep) 100%);
  background-attachment: fixed;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

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

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

.skip-link {
  position: absolute;
  left: var(--space-3);
  top: -100px;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--field);
  text-decoration: none;
}

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

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  height: var(--header-h);
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  background: color-mix(in srgb, var(--field) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
}

.logo-link {
  display: inline-flex;
  text-decoration: none;
}

.logo-link img {
  width: clamp(9.5rem, 18vw, 13.75rem);
  height: auto;
}

.site-nav {
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.site-nav a:hover {
  color: var(--ink);
}

/* Hero */

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: calc(100svh - var(--header-h));
  padding:
    clamp(3rem, 8vh, 6rem)
    clamp(1.25rem, 4vw, 3rem)
    clamp(3.5rem, 9vh, 7rem);
  overflow: hidden;
}

.hero__plane {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero__spiral {
  position: absolute;
  right: -8%;
  top: 50%;
  width: min(92vw, 52rem);
  height: auto;
  color: var(--gold);
  opacity: 0.22;
  transform: translateY(-48%);
}

.spiral-path {
  stroke-dasharray: 1800;
  stroke-dashoffset: 1800;
}

.spiral-path--inner {
  opacity: 0.65;
}

.hero__wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      105deg,
      color-mix(in srgb, var(--field) 92%, transparent) 0%,
      color-mix(in srgb, var(--field) 55%, transparent) 42%,
      transparent 68%
    ),
    radial-gradient(
      ellipse 70% 55% at 70% 45%,
      color-mix(in srgb, var(--gold) 10%, transparent),
      transparent 70%
    );
}

.hero__content {
  max-width: 36rem;
  width: min(100%, calc(100% / var(--phi) + 4rem));
}

.eyebrow {
  margin: 0 0 var(--space-3);
  color: var(--lapis);
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1,
.section h2,
.face h3,
.service h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.08;
  text-wrap: balance;
}

.hero h1 {
  margin: 0 0 var(--space-4);
  font-size: var(--text-h1);
  font-weight: 500;
}

.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: color-mix(in srgb, var(--ink) 78%, var(--gold));
}

.lede {
  margin: 0 0 var(--space-5);
  max-width: 32rem;
  color: var(--muted);
  font-size: var(--text-lede);
  line-height: 1.55;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.875rem;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-ui);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition:
    background 200ms var(--ease),
    color 200ms var(--ease),
    border-color 200ms var(--ease),
    transform 200ms var(--ease);
}

.btn--primary {
  /* Ink on logo gold ≥ 4.5:1 (WCAG 1.4.3); cream-on-gold failed axe at ~2.4:1. */
  background: var(--gold);
  color: var(--ink);
}

.btn--primary:hover {
  background: color-mix(in srgb, var(--gold) 88%, var(--ink));
  color: var(--ink);
  transform: translateY(-1px);
}

.btn--ghost {
  border-color: color-mix(in srgb, var(--ink) 18%, transparent);
  color: var(--ink);
  background: transparent;
}

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

/* Sections */

.section {
  padding:
    clamp(4rem, 10vh, var(--space-7))
    clamp(1.25rem, 4vw, 3rem);
  max-width: var(--max);
  margin: 0 auto;
}

.section__intro {
  max-width: 36rem;
  margin-bottom: var(--space-6);
}

.section h2 {
  margin: 0 0 var(--space-3);
  font-size: var(--text-h2);
}

.section__lede {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-lede);
  line-height: 1.55;
}

/* Faces — φ split */

.faces__grid {
  display: grid;
  gap: var(--space-5);
  border-top: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
  padding-top: var(--space-5);
}

@media (min-width: 768px) {
  .faces__grid {
    grid-template-columns: minmax(0, 1.618fr) minmax(0, 1fr);
    gap: var(--space-6);
  }
}

.face h3 {
  margin: 0 0 var(--space-3);
  font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.35rem);
}

.face p {
  margin: 0;
  max-width: 28rem;
  color: var(--muted);
}

/* Services — editorial rows, not cards */

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
}

.service {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-5) 0;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
}

@media (min-width: 768px) {
  .service {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.618fr);
    gap: var(--space-5);
    align-items: baseline;
  }
}

.service__meta {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
}

.service__index {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.service h3 {
  margin: 0;
  font-size: clamp(1.65rem, 1.35rem + 1vw, 2.125rem);
}

.service p {
  margin: 0;
  color: var(--muted);
  max-width: 38rem;
}

/* Vision */

.vision {
  max-width: none;
  padding-inline: 0;
}

.vision__frame {
  margin-inline: clamp(1.25rem, 4vw, 3rem);
  padding: clamp(3rem, 8vh, 5.5rem) clamp(1.5rem, 5vw, 4rem);
  aspect-ratio: auto;
  background:
    linear-gradient(
      145deg,
      color-mix(in srgb, var(--ink) 94%, var(--lapis)) 0%,
      color-mix(in srgb, var(--ink) 88%, var(--gold)) 100%
    );
  color: color-mix(in srgb, var(--field) 92%, white);
  border-radius: 0.15rem;
}

@media (min-width: 900px) {
  .vision__frame {
    aspect-ratio: var(--phi) / 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: var(--max);
    margin-inline: auto;
  }
}

.vision .eyebrow {
  color: var(--gold-soft);
}

.vision h2 {
  margin: 0 0 var(--space-4);
  max-width: 18ch;
  color: #f7f4ee;
}

.vision__pull {
  margin: 0 0 var(--space-4);
  max-width: 34rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.1rem + 1.1vw, 1.85rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.35;
  color: color-mix(in srgb, #f7f4ee 88%, var(--gold));
}

.vision__note {
  margin: 0;
  max-width: 36rem;
  color: color-mix(in srgb, var(--field) 70%, transparent);
  font-size: 0.975rem;
}

/* Footer */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-5) clamp(1.25rem, 4vw, 3rem) var(--space-6);
  border-top: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
  margin-top: var(--space-6);
}

.footer-logo {
  width: 8.5rem;
  opacity: 0.9;
}

.footer-legal {
  margin: 0;
  color: var(--muted);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
}

/* Motion */

.hero__content > * {
  opacity: 0;
  transform: translateY(1.1rem);
}

.hero.is-ready .hero__content > * {
  animation: rise 900ms var(--ease) forwards;
}

.hero.is-ready .hero__content > *:nth-child(1) {
  animation-delay: 80ms;
}
.hero.is-ready .hero__content > *:nth-child(2) {
  animation-delay: 180ms;
}
.hero.is-ready .hero__content > *:nth-child(3) {
  animation-delay: 280ms;
}
.hero.is-ready .hero__content > *:nth-child(4) {
  animation-delay: 380ms;
}

.hero.is-ready .spiral-path {
  animation: draw-spiral 2.4s var(--ease) 200ms forwards;
}

.hero.is-ready .hero__spiral {
  animation: breathe 10s ease-in-out 2.4s infinite;
}

.reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition:
    opacity 700ms var(--ease),
    transform 700ms var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes draw-spiral {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes breathe {
  0%,
  100% {
    opacity: 0.2;
  }
  50% {
    opacity: 0.3;
  }
}

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

  .hero__content > *,
  .reveal {
    opacity: 1;
    transform: none;
    animation: none !important;
    transition: none !important;
  }

  .spiral-path {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
  }

  .hero__spiral {
    opacity: 0.22;
    animation: none !important;
  }

  .btn--primary:hover {
    transform: none;
  }
}

@media (max-width: 640px) {
  .site-nav {
    display: none;
  }

  .hero {
    align-items: center;
  }

  .hero__spiral {
    right: -35%;
    top: 18%;
    width: 120vw;
    transform: none;
    opacity: 0.16;
  }
}
