/* ---------- Tokens ---------- */
:root {
  --cream: #f4efe4;
  --cream-dim: #ece4d3;
  --navy: #0f2340;
  --navy-deep: #0a1a30;
  --navy-soft: #1c3559;
  --gold: #a8823c;
  --gold-bright: #c39b4f;
  --ink: #14212f;
  --ink-soft: rgba(15, 35, 64, 0.65);
  --cream-soft: rgba(244, 239, 228, 0.72);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--navy);
  margin: 0;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 18px;
}

/* subtle paper grain, old-money texture */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(244, 239, 228, 0.86);
  backdrop-filter: blur(10px) saturate(120%);
  border-bottom: 1px solid rgba(15, 35, 64, 0.1);
}

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

.wordmark {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--navy);
}
.wordmark span { color: var(--gold); font-style: italic; }
.wordmark.small { font-size: 17px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
}
.site-nav a:hover { color: var(--gold); }
.nav-cta {
  border: 1px solid var(--navy);
  border-radius: 3px;
  padding: 9px 18px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.nav-cta:hover {
  background: var(--navy);
  color: var(--cream);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 200px 0 120px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(168, 130, 60, 0.14) 0%, rgba(168, 130, 60, 0) 70%);
  pointer-events: none;
}

.hero-inner { max-width: 780px; }

.hero h1 {
  font-size: clamp(40px, 5.6vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
}

.hero-sub {
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 560px;
  margin-bottom: 44px;
}

.hero-actions { display: flex; gap: 18px; align-items: center; }

.hero-line {
  margin-top: 100px;
  height: 1px;
  background: linear-gradient(90deg, rgba(15,35,64,0.18), rgba(15,35,64,0));
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 600;
  padding: 15px 30px;
  border-radius: 3px;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: var(--navy);
  color: var(--cream);
  box-shadow: 0 8px 24px rgba(15, 35, 64, 0.22);
}
.btn-primary:hover {
  background: var(--navy-soft);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(15, 35, 64, 0.28);
}

.btn-ghost {
  color: var(--navy);
  border: 1px solid rgba(15, 35, 64, 0.3);
}
.btn-ghost:hover {
  border-color: var(--navy);
  background: rgba(15, 35, 64, 0.04);
}

/* ---------- Thesis band ---------- */
.thesis {
  background: var(--navy);
  padding: 110px 0;
  position: relative;
}
.thesis::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 30%, rgba(195, 155, 79, 0.08), transparent 55%);
  pointer-events: none;
}
.thesis-text {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.5;
  color: var(--cream);
  max-width: 840px;
  margin: 0 auto;
  text-align: center;
  font-weight: 400;
}
.thesis-text em {
  color: var(--gold-bright);
  font-style: italic;
}

/* ---------- Approach ---------- */
.approach { padding: 130px 0; }
.approach h2 {
  font-size: clamp(30px, 4vw, 42px);
  margin-bottom: 64px;
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.approach-item {
  border-top: 1px solid rgba(15, 35, 64, 0.18);
  padding-top: 28px;
}

.approach-num {
  font-family: var(--serif);
  font-size: 15px;
  font-style: italic;
  color: var(--gold);
  display: block;
  margin-bottom: 14px;
}

.approach-item h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.approach-item p {
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.65;
  margin: 0;
}

/* ---------- Work ---------- */
.work {
  background: var(--cream-dim);
  padding: 130px 0;
  border-top: 1px solid rgba(15, 35, 64, 0.1);
  border-bottom: 1px solid rgba(15, 35, 64, 0.1);
}

.work-inner { max-width: 760px; }

.work h2 {
  font-size: clamp(30px, 4vw, 42px);
  margin-bottom: 20px;
}

.work-sub {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.65;
  margin-bottom: 52px;
  max-width: 620px;
}

.work-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.work-list li {
  padding: 24px 0;
  border-bottom: 1px solid rgba(15, 35, 64, 0.14);
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.work-list li:first-child { border-top: 1px solid rgba(15, 35, 64, 0.14); }

.work-list span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  color: var(--navy);
  margin-right: 8px;
}

/* ---------- Contact ---------- */
.contact {
  padding: 150px 0 160px;
  text-align: center;
}

.contact-inner { max-width: 620px; margin: 0 auto; }

.contact h2 {
  font-size: clamp(32px, 4.4vw, 48px);
  margin-bottom: 18px;
}

.contact-sub {
  color: var(--ink-soft);
  font-size: 17px;
  margin-bottom: 40px;
}

.contact .btn-primary {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  padding: 18px 38px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  padding: 36px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-inner .wordmark { color: var(--cream-soft); }
.footer-inner .wordmark span { color: var(--gold-bright); }
.footer-copy {
  font-size: 13px;
  color: rgba(244, 239, 228, 0.45);
}

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .approach-grid { grid-template-columns: 1fr; gap: 40px; }
  .site-nav { gap: 20px; }
  .site-nav a:not(.nav-cta) { display: none; }
  .hero { padding: 150px 0 90px; }
  .thesis, .approach, .work { padding: 90px 0; }
  .contact { padding: 110px 0 120px; }
  .footer-inner { flex-direction: column; gap: 10px; text-align: center; }
}

@media (max-width: 520px) {
  .container { padding: 0 22px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
}
