/* ─── Tokens ─────────────────────────────────────────── */
:root {
  --ink:      #0f1012;
  --paper:    #faf9f5;
  --mid:      #8a857a;
  --rule:     #ded9cb;
  --accent:   #c98a12;
  --accent-gold: #f2b430;
  --accent-light: #eee8d9;

  --display: 'Archivo', sans-serif;
  --body:    'Space Grotesk', sans-serif;

  --max: 1120px;
  --pad: clamp(24px, 5vw, 72px);
  --gap: clamp(48px, 8vw, 120px);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ─── Nav ────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px var(--pad);
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
nav.scrolled { border-color: var(--rule); }

.nav-logo {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}
.nav-logo img {
  display: block;
  height: 46px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 22px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
nav.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
nav.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
nav.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-links a {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }

/* ─── Hero ───────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 120px var(--pad) var(--gap);
  position: relative;
  overflow: hidden;
}

/* Signature element: a large ghosted letter in background */
.hero::before {
  content: "A";
  position: absolute;
  top: -0.15em;
  right: -0.05em;
  font-family: var(--display);
  font-size: clamp(280px, 38vw, 580px);
  font-weight: 300;
  color: transparent;
  -webkit-text-stroke: 1px var(--rule);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.hero-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 28px;
}

.hero-headline {
  font-family: var(--display);
  font-size: clamp(3rem, 7.5vw, 7rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.01em;
  max-width: 820px;
  margin-bottom: 40px;
}

.hero-headline em {
  font-style: italic;
  font-weight: 300;
}

.hero-sub {
  font-size: 1rem;
  font-weight: 300;
  color: var(--mid);
  max-width: 480px;
  margin-bottom: 52px;
  line-height: 1.75;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 32px;
  transition: background 0.2s, color 0.2s;
}
.btn:hover { background: var(--accent-gold); color: var(--ink); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule);
}
.btn-ghost:hover { background: var(--accent-light); color: var(--ink); }

.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

/* ─── Stats bar ──────────────────────────────────────── */
.stats {
  border-top: 1px solid var(--rule);
  padding: 48px var(--pad);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
}
.stat-item {
  background: var(--paper);
  padding: 32px 40px;
}
.stat-num {
  font-family: var(--display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid);
}

/* ─── Sections shared ────────────────────────────────── */
section {
  padding: var(--gap) var(--pad);
}

.section-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.section-eyebrow::after {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--accent);
}

.section-title {
  font-family: var(--display);
  font-size: clamp(2rem, 4.5vw, 4rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}

/* ─── About ──────────────────────────────────────────── */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
  max-width: var(--max);
  margin: 0 auto;
}

.about-left {}
.about-right {
  padding-top: 64px;
}

.about-body {
  font-size: 1.05rem;
  color: var(--mid);
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-pull {
  border-left: 2px solid var(--accent);
  padding-left: 28px;
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.4;
  color: var(--ink);
  margin: 48px 0;
}

/* ─── Services ───────────────────────────────────────── */
.services-section { background: var(--ink); color: var(--paper); }

.services-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.services-section .section-eyebrow { color: rgba(248,247,244,0.45); }
.services-section .section-eyebrow::after { background: var(--accent-gold); }
.services-section .section-title { color: var(--paper); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.1);
  margin-top: 56px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.service-card {
  background: var(--ink);
  padding: 48px 36px;
  transition: background 0.25s;
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: attr(data-num);
  position: absolute;
  bottom: -0.2em;
  right: -0.05em;
  font-family: var(--display);
  font-size: 6rem;
  font-weight: 300;
  color: rgba(255,255,255,0.04);
  line-height: 1;
  pointer-events: none;
}
.service-card:hover { background: #252525; }

.service-icon {
  width: 36px;
  height: 1px;
  background: rgba(248,247,244,0.35);
  margin-bottom: 36px;
}

.service-name {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--paper);
  margin-bottom: 16px;
  line-height: 1.2;
}

.service-desc {
  font-size: 0.9rem;
  color: rgba(248,247,244,0.55);
  line-height: 1.75;
}

/* ─── Process ────────────────────────────────────────── */
.process-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.process-steps {
  margin-top: 60px;
  border-top: 1px solid var(--rule);
}

.process-step {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  gap: 40px;
  align-items: start;
  padding: 40px 0;
  border-bottom: 1px solid var(--rule);
  transition: background 0.2s;
}

.step-num {
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  padding-top: 4px;
}

.step-title {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 300;
  line-height: 1.2;
}

.step-body {
  font-size: 0.9rem;
  color: var(--mid);
  line-height: 1.8;
}

/* ─── Team ───────────────────────────────────────────── */
.team-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.team-single {
  display: flex;
  justify-content: center;
  margin-top: 56px;
}
.team-single .team-card { max-width: 340px; }

.team-card { text-align: center; }

.team-avatar {
  width: clamp(170px, 20vw, 220px);
  aspect-ratio: 1/1;
  border-radius: 50%;
  background: var(--accent-light);
  margin: 0 auto 28px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--rule);
}
.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-avatar-initials {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 300;
  color: var(--mid);
}

.team-name {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 4px;
}
.team-role {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 14px;
}
.team-bio {
  font-size: 0.88rem;
  color: var(--mid);
  line-height: 1.75;
}

/* ─── Contact ────────────────────────────────────────── */
.contact-section {
  background: var(--paper);
  border-top: 1px solid var(--rule);
}

.contact-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}

.contact-heading {
  font-family: var(--display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}
.contact-subtext {
  font-size: 0.95rem;
  color: var(--mid);
  line-height: 1.8;
  margin-bottom: 40px;
}

.contact-details { margin-bottom: 40px; }
.contact-detail {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.88rem;
}
.contact-detail-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid);
  min-width: 80px;
  padding-top: 2px;
}
.contact-detail-value { color: var(--ink); }

.contact-form { display: flex; flex-direction: column; gap: 20px; }

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  display: none;
  font-size: 0.85rem;
  line-height: 1.6;
}
.form-status.visible { display: block; }
.form-status.is-error { color: #a13d2c; }
.form-status.is-success { color: #4a7c59; }

.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid);
}
.form-field input,
.form-field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rule);
  padding: 10px 0;
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
  appearance: none;
}
.form-field input:focus,
.form-field textarea:focus { border-color: var(--accent); }
.form-field textarea { resize: vertical; min-height: 100px; }

/* ─── Custom select ──────────────────────────────────── */
.select {
  position: relative;
}
.select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rule);
  padding: 10px 0;
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--ink);
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
  width: 100%;
  text-align: left;
}
.select-trigger::after {
  content: '';
  flex: none;
  width: 8px;
  height: 8px;
  border-right: 1px solid var(--mid);
  border-bottom: 1px solid var(--mid);
  transform: rotate(45deg);
  margin-top: -4px;
  transition: transform 0.2s;
}
.select.open .select-trigger::after { transform: rotate(-135deg); margin-top: 4px; }
.select.open .select-trigger,
.select-trigger:focus-visible { border-color: var(--accent); }
.select.error .select-trigger { border-color: #a13d2c; }

.select-value.is-placeholder { color: var(--mid); }

.select-options {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 20;
  list-style: none;
  background: var(--paper);
  border: 1px solid var(--rule);
  box-shadow: 0 16px 40px rgba(15, 16, 18, 0.12);
  max-height: 280px;
  overflow-y: auto;
  padding: 6px 0;
  display: none;
}
.select.open .select-options { display: block; }

.select-options li {
  padding: 11px 18px;
  font-family: var(--body);
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.select-options li.active { background: var(--accent-light); }
.select-options li[aria-selected="true"] {
  color: var(--accent);
  font-weight: 500;
}

/* ─── Footer ─────────────────────────────────────────── */
footer {
  padding: 40px var(--pad);
  background: var(--ink);
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
}
.footer-logo img {
  display: block;
  height: 40px;
  width: auto;
}

.footer-copy {
  font-size: 0.78rem;
  color: #b8b3a8;
}

.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.footer-links a {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #b8b3a8;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent-gold); }

/* ─── Responsive ─────────────────────────────────────── */
@media (max-width: 900px) {
  .stats { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .about-right { padding-top: 0; }
  .services-grid { grid-template-columns: 1fr; }
  .process-step { grid-template-columns: 48px 1fr; }
  .process-step .step-body { grid-column: 2; }
  .contact-inner { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    padding: 0 var(--pad) 8px;
  }
  nav.nav-open .nav-links { display: flex; }
  .nav-links li { border-top: 1px solid var(--rule); }
  .nav-links a { display: block; padding: 18px 0; }
  .hero-ctas { flex-direction: column; }
}

/* ─── Legal pages ────────────────────────────────────── */
.legal-hero {
  padding: 160px var(--pad) 64px;
  border-bottom: 1px solid var(--rule);
}
.legal-hero .section-title { margin-bottom: 16px; }
.legal-updated {
  font-size: 0.85rem;
  color: var(--mid);
}

.legal-body-section { padding: var(--gap) var(--pad); }

.legal-wrap {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 100px;
}
.legal-toc ol {
  list-style: none;
  counter-reset: toc;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.legal-toc li { counter-increment: toc; }
.legal-toc a {
  display: flex;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--mid);
  text-decoration: none;
  transition: color 0.2s;
}
.legal-toc a::before {
  content: counter(toc);
  color: var(--accent);
  font-family: var(--display);
  font-size: 0.8rem;
  flex: none;
}
.legal-toc a:hover { color: var(--ink); }

.legal-content { max-width: 720px; }
.legal-content article + article { margin-top: 48px; }
.legal-content h2 {
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  font-weight: 400;
  margin-bottom: 16px;
  scroll-margin-top: 100px;
}
.legal-content p {
  font-size: 0.98rem;
  color: var(--mid);
  line-height: 1.85;
  margin-bottom: 16px;
}
.legal-content ul {
  margin: 0 0 16px;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.legal-content li {
  font-size: 0.98rem;
  color: var(--mid);
  line-height: 1.75;
}
.legal-content strong { color: var(--ink); font-weight: 500; }

@media (max-width: 900px) {
  .legal-wrap { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
}

/* ─── Scroll reveal ──────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
