@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Manrope:wght@400;500;600;700;800&display=swap');

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

:root {
  --bg:         oklch(8% 0.004 82);
  --surface:    oklch(13% 0.005 82);
  --surface-2:  oklch(18% 0.006 82);
  --border:     oklch(24% 0.007 82);
  --gold:       oklch(79% 0.165 82);
  --gold-dim:   oklch(62% 0.12 82);
  --gold-bg:    oklch(79% 0.165 82);
  --text:       oklch(95% 0.003 82);
  --muted:      oklch(58% 0.008 82);
  --serif:      'Libre Baskerville', Georgia, serif;
  --sans:       'Manrope', system-ui, sans-serif;
  --max:        1200px;
  --r:          6px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── Grain overlay ── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 0;
}

/* ── Layout ── */
.wrap { width: 90%; max-width: var(--max); margin-inline: auto; }

/* ── Nav ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: oklch(8% 0.004 82 / 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-logo img { height: 36px; width: auto; display: block; }
.nav-logo-text {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
}
.nav-logo-text em { font-style: normal; color: var(--gold); }

.nav-links { display: flex; align-items: center; gap: 2.5rem; list-style: none; }
.nav-links a {
  font-size: 0.85rem; font-weight: 600;
  color: var(--muted); letter-spacing: 0.3px;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }

.nav-cta {
  background: var(--gold);
  color: oklch(8% 0.004 82) !important;
  padding: 0.5rem 1.25rem;
  border-radius: var(--r);
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  transition: opacity 0.2s !important;
}
.nav-cta:hover { opacity: 0.88; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; transition: 0.2s; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 2rem; border-radius: var(--r);
  font-family: var(--sans); font-weight: 700; font-size: 0.9rem;
  cursor: pointer; border: none; transition: 0.2s; letter-spacing: 0.2px;
}
.btn-gold { background: var(--gold); color: oklch(8% 0.004 82); }
.btn-gold:hover { opacity: 0.88; }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-dark { background: oklch(8% 0.004 82); color: var(--text); border: 1px solid oklch(8% 0.004 82); }
.btn-dark:hover { border-color: oklch(8% 0.004 82 / 0.7); }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex; align-items: center;
  padding: 7rem 0 5rem;
  overflow: hidden;
}

.hero-bg-mark {
  position: absolute; right: -5%; top: 50%;
  transform: translateY(-50%);
  width: 520px; height: 520px;
  opacity: 0.04;
  pointer-events: none;
}

.hero-eyebrow {
  font-family: var(--sans);
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.75rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.hero-eyebrow::before {
  content: ''; display: block;
  width: 32px; height: 1px; background: var(--gold);
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700; line-height: 1.08;
  letter-spacing: -1.5px; margin-bottom: 0.5rem;
}
.hero h1 em { font-style: italic; color: var(--gold); }

.hero-tagline {
  font-family: var(--sans);
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 3.5px; text-transform: uppercase;
  color: var(--gold-dim); margin-bottom: 1.75rem;
}

.hero-body {
  font-size: 1.1rem; color: var(--muted);
  max-width: 520px; line-height: 1.7;
  margin-bottom: 2.5rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-rule {
  width: 48px; height: 2px; background: var(--border);
  margin: 4rem 0 2rem;
}

.hero-clients {
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1rem;
}
.client-types {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.client-type {
  font-size: 0.8rem; font-weight: 500;
  color: var(--muted); padding: 0.35rem 0.85rem;
  border: 1px solid var(--border); border-radius: 100px;
}

/* ── Section shared ── */
section { padding: 6rem 0; position: relative; }

.kicker {
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold); display: flex; align-items: center; gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.kicker::before {
  content: ''; display: block;
  width: 24px; height: 1px; background: var(--gold);
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700; letter-spacing: -0.75px;
  line-height: 1.15; margin-bottom: 1rem;
}
.section-title em { font-style: italic; color: var(--gold); }

.section-sub {
  font-size: 1rem; color: var(--muted);
  max-width: 520px; line-height: 1.7;
}

/* ── Proof band ── */
.proof-band {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3rem 0;
  background: var(--surface);
}

.proof-inner {
  display: flex; align-items: center;
  justify-content: center; gap: 0;
}

.proof-stat {
  flex: 1; text-align: center; padding: 0 2.5rem;
  display: flex; flex-direction: column; gap: 0.4rem;
}

.proof-num {
  font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700; letter-spacing: -1px; color: var(--gold);
  line-height: 1;
}

.proof-label {
  font-size: 0.8rem; color: var(--muted);
  font-weight: 500; line-height: 1.4;
}

.proof-divider {
  width: 1px; height: 56px; background: var(--border); flex-shrink: 0;
}

@media (max-width: 640px) {
  .proof-inner { flex-direction: column; gap: 2rem; }
  .proof-divider { width: 48px; height: 1px; }
}

/* ── Services (home strip) ── */
.services-strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.services-header {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: end; margin-bottom: 4rem;
}

.services-list { display: flex; flex-direction: column; gap: 0; }

.service-item {
  display: grid; grid-template-columns: 56px 1fr;
  gap: 1.75rem; align-items: start;
  padding: 2.25rem 0; border-bottom: 1px solid var(--border);
  transition: 0.2s;
}
.service-item:first-child { border-top: 1px solid var(--border); }

.service-num {
  font-family: var(--serif); font-size: 0.8rem;
  font-weight: 400; color: var(--gold);
  padding-top: 0.2rem; font-style: italic;
}

.service-content h3 {
  font-family: var(--serif); font-size: 1.2rem;
  font-weight: 700; margin-bottom: 0.5rem; letter-spacing: -0.2px;
}
.service-content p { font-size: 0.9rem; color: var(--muted); line-height: 1.65; }

/* ── Process ── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0; margin-top: 4rem;
  border: 1px solid var(--border); border-radius: var(--r);
  overflow: hidden;
}

.process-step {
  padding: 2.5rem 2rem;
  border-right: 1px solid var(--border);
}
.process-step:last-child { border-right: none; }

.step-num {
  font-family: var(--serif); font-size: 2.5rem;
  font-weight: 700; color: var(--border);
  line-height: 1; margin-bottom: 1.25rem;
  font-style: italic;
}
.process-step h3 {
  font-family: var(--serif); font-size: 1rem;
  font-weight: 700; margin-bottom: 0.5rem;
}
.process-step p { font-size: 0.85rem; color: var(--muted); line-height: 1.6; }

/* ── Work / Client list ── */
.client-list {
  margin-top: 3.5rem;
  border-top: 1px solid var(--border);
}

.client-row {
  display: grid;
  grid-template-columns: 48px 1fr auto auto;
  align-items: center; gap: 2rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
  cursor: pointer;
  border-radius: 0;
}
.client-row:hover { background: var(--surface); padding-left: 1rem; padding-right: 1rem; margin-inline: -1rem; border-radius: var(--r); border-color: transparent; }
.client-row:hover .client-row-arrow { color: var(--gold); transform: translateX(4px); }

.client-row-num {
  font-family: var(--serif); font-style: italic;
  font-size: 0.8rem; color: var(--gold-dim);
}

.client-row-body h3 {
  font-family: var(--serif); font-size: 1.35rem;
  font-weight: 700; letter-spacing: -0.25px; line-height: 1.2;
}
.client-row-url {
  font-size: 0.8rem; color: var(--muted); font-weight: 500;
}

.client-row-tag {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--muted);
}

.client-row-arrow {
  font-size: 1.1rem; color: var(--border);
  transition: color 0.2s, transform 0.2s;
}

@media (max-width: 640px) {
  .client-row { grid-template-columns: 36px 1fr auto; }
  .client-row-tag { display: none; }
}

/* ── CTA Band ── */
.cta-band {
  background: var(--gold-bg);
  padding: 6rem 0;
}

.cta-band-inner {
  display: flex; align-items: center;
  justify-content: space-between; gap: 3rem; flex-wrap: wrap;
}

.cta-band h2 {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700; letter-spacing: -0.75px;
  color: oklch(8% 0.004 82); max-width: 580px;
  line-height: 1.2;
}
.cta-band h2 em { font-style: italic; }

/* ── Page Hero (inner pages) ── */
.page-hero {
  padding: 9rem 0 5rem;
  border-bottom: 1px solid var(--border);
}
.page-hero .kicker { margin-bottom: 1.5rem; }
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  font-weight: 700; letter-spacing: -1.5px; line-height: 1.08;
  margin-bottom: 1.25rem; max-width: 760px;
}
.page-hero h1 em { font-style: italic; color: var(--gold); }
.page-hero p {
  font-size: 1.05rem; color: var(--muted);
  max-width: 520px; line-height: 1.7;
}

/* ── Services page ── */
.service-block {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 6rem; align-items: center; padding: 5rem 0;
  border-bottom: 1px solid var(--border);
}
.service-block:last-of-type { border-bottom: none; }
.service-block.reverse { direction: rtl; }
.service-block.reverse > * { direction: ltr; }

.service-visual {
  aspect-ratio: 4/3;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-style: italic;
  color: var(--border); font-size: 0.9rem;
  position: relative; overflow: hidden;
}
.service-visual::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, oklch(79% 0.165 82 / 0.06) 0%, transparent 60%);
}

.service-detail h2 {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700; letter-spacing: -0.5px;
  margin-bottom: 1rem; line-height: 1.2;
}
.service-detail h2 em { font-style: italic; color: var(--gold); }
.service-detail p {
  color: var(--muted); font-size: 0.95rem;
  line-height: 1.75; margin-bottom: 1.5rem;
}

.feature-list { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 2rem; }
.feature-list li {
  font-size: 0.9rem; display: flex; align-items: center; gap: 0.75rem;
}
.feature-list li::before {
  content: '';
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold); flex-shrink: 0;
}

/* ── Service highlight elements ── */
.service-highlight-label {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold); margin: 1.75rem 0 0.75rem;
}

.review-callout {
  display: flex; gap: 1.25rem; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--r); padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}
.review-callout-icon {
  font-size: 1.25rem; color: var(--gold); flex-shrink: 0;
  margin-top: 0.1rem;
}
.review-callout strong {
  display: block; font-size: 0.95rem;
  font-weight: 700; margin-bottom: 0.4rem;
}
.review-callout p {
  font-size: 0.85rem; color: var(--muted);
  line-height: 1.65; margin-bottom: 0 !important;
}

/* ── About page ── */
.about-story {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 6rem; align-items: center;
}
.about-story p {
  color: var(--muted); font-size: 0.95rem;
  line-height: 1.75; margin-bottom: 1.25rem;
}
.about-story p:last-child { margin-bottom: 0; }

.about-visual {
  aspect-ratio: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}
.about-visual::before {
  content: '';
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 48px, var(--border) 48px, var(--border) 49px),
    repeating-linear-gradient(90deg, transparent, transparent 48px, var(--border) 48px, var(--border) 49px);
  opacity: 0.4;
}
.about-visual-mark {
  position: relative; z-index: 1;
  font-family: var(--serif); font-style: italic;
  font-size: 5rem; font-weight: 700;
  color: var(--gold); opacity: 0.15;
  line-height: 1;
}

.values-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 3rem; margin-top: 4rem;
}
.value-item {}
.value-num {
  font-family: var(--serif); font-style: italic;
  font-size: 0.75rem; color: var(--gold);
  margin-bottom: 1rem; display: block;
}
.value-item h3 {
  font-family: var(--serif); font-size: 1.15rem;
  font-weight: 700; margin-bottom: 0.6rem;
}
.value-item p { font-size: 0.9rem; color: var(--muted); line-height: 1.65; }

.team-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem; margin-top: 3.5rem;
}
.team-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); overflow: hidden;
}
.team-photo {
  aspect-ratio: 1; background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-style: italic;
  color: var(--border); font-size: 0.85rem;
}
.team-info { padding: 1.25rem; }
.team-info h3 { font-family: var(--serif); font-size: 1rem; font-weight: 700; margin-bottom: 0.25rem; }
.team-info p { font-size: 0.8rem; color: var(--gold); font-weight: 600; letter-spacing: 0.5px; }

/* ── Contact page ── */
.contact-layout {
  display: grid; grid-template-columns: 1fr 1.75fr;
  gap: 6rem; margin-top: 5rem;
}

.contact-info h3 {
  font-family: var(--serif); font-size: 1.1rem;
  font-weight: 700; margin-bottom: 0.4rem;
}
.contact-info > p {
  font-size: 0.9rem; color: var(--muted); margin-bottom: 2.5rem; line-height: 1.65;
}

.contact-detail {
  display: flex; gap: 1rem; margin-bottom: 1.25rem; align-items: flex-start;
}
.contact-detail-icon {
  width: 36px; height: 36px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 0.9rem;
}
.contact-detail-body { font-size: 0.85rem; }
.contact-detail-body strong { display: block; font-weight: 700; margin-bottom: 0.15rem; font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; }
.contact-detail-body span { color: var(--text); }

.form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label {
  font-size: 0.75rem; font-weight: 700;
  color: var(--muted); text-transform: uppercase; letter-spacing: 0.75px;
}
.form-group input,
.form-group textarea,
.form-group select {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 0.8rem 1rem;
  color: var(--text);
  font-family: var(--sans); font-size: 0.95rem;
  transition: border-color 0.2s; outline: none;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--gold); }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-group select { cursor: pointer; }
.form-group select option { background: var(--surface); }

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 3.5rem 0;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 2rem;
}
.footer-logo img { height: 28px; }
.footer-logo-text {
  font-family: var(--serif); font-size: 1.1rem; font-weight: 700;
}
.footer-logo-text em { font-style: normal; color: var(--gold); }
.footer-links { display: flex; gap: 2rem; list-style: none; }
.footer-links a { font-size: 0.8rem; color: var(--muted); font-weight: 500; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-tagline {
  font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold-dim); font-weight: 700;
}

/* ── Reveal animations ── */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1), transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

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

/* ── Responsive ── */
@media (max-width: 900px) {
  .services-header { grid-template-columns: 1fr; gap: 2rem; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .process-step { border-right: none; border-bottom: 1px solid var(--border); }
  .process-step:nth-child(odd) { border-right: 1px solid var(--border); }
  .process-step:nth-last-child(-n+2) { border-bottom: none; }
  .work-grid { grid-template-columns: 1fr; }
  .work-card.featured { grid-row: auto; }
  .service-block, .about-story { grid-template-columns: 1fr; gap: 3rem; }
  .service-block.reverse { direction: ltr; }
  .values-row { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-layout { grid-template-columns: 1fr; gap: 3rem; }
  .cta-band-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 1.5rem;
    gap: 0;
  }
  .nav-links.open li { padding: 0.85rem 0; border-bottom: 1px solid var(--border); }
  .nav-links.open li:last-child { border-bottom: none; }
  .nav-toggle { display: flex; flex-direction: column; }
  .hero h1 { letter-spacing: -0.5px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}
