:root {
  --paper: #F4F1EA;
  --paper-2: #EDE8DD;
  --ink: #14130F;
  --ink-2: #2A2822;
  --muted: #6B6A63;
  --accent: #B4502A;
  --rule: rgba(20, 19, 15, 0.12);
  --radius: 14px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--accent); color: var(--paper); }

.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  opacity: 0.35; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.08 0 0 0 0 0.07 0 0 0 0 0.06 0 0 0 0.22 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 4vw, 44px);
  backdrop-filter: saturate(140%) blur(8px);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  border-bottom: 1px solid var(--rule);
}
.mark { display: inline-flex; align-items: baseline; gap: 12px; }
.mark-glyph {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700; font-size: 22px; letter-spacing: -0.01em;
}
.mark-glyph .amp { color: var(--accent); font-style: italic; padding: 0 2px; }
.mark-word { font-size: 13px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
@media (max-width: 620px) { .mark-word { display: none; } }
.nav nav { display: flex; gap: clamp(14px, 3vw, 28px); }
.nav nav a {
  font-size: 14px; color: var(--ink-2); position: relative; padding: 4px 0;
}
.nav nav a:hover { color: var(--accent); }
.nav nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .35s ease;
}
.nav nav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* Layout */
main { position: relative; z-index: 2; }
.section {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(72px, 10vw, 140px) clamp(20px, 4vw, 44px);
  border-top: 1px solid var(--rule);
}
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 68px); }
.tag {
  display: inline-block; font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 18px;
}
.section-head h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500; font-size: clamp(30px, 4.2vw, 52px);
  line-height: 1.08; letter-spacing: -0.02em; margin: 0;
}

/* Hero */
.hero {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(80px, 12vw, 160px) clamp(20px, 4vw, 44px) clamp(60px, 8vw, 110px);
}
.eyebrow {
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 28px;
}
.display {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500; font-size: clamp(42px, 7vw, 96px);
  line-height: 1.02; letter-spacing: -0.025em; margin: 0 0 32px;
}
.display em { font-style: italic; color: var(--accent); font-weight: 400; }
.lede {
  max-width: 620px; font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.6; color: var(--ink-2); margin: 0 0 36px;
}
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px;
  font-size: 14px; font-weight: 500; letter-spacing: 0.01em;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  border: 1px solid transparent;
}
.btn.primary { background: var(--ink); color: var(--paper); }
.btn.primary:hover { background: var(--accent); transform: translateY(-1px); }
.btn.ghost { border-color: var(--rule); color: var(--ink); }
.btn.ghost:hover { border-color: var(--ink); transform: translateY(-1px); }
.btn.big { padding: 18px 28px; font-size: 16px; }

/* Marquee */
.marquee {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
  background: var(--paper-2);
}
.marquee-track {
  display: flex; gap: 28px;
  padding: 18px 0;
  white-space: nowrap;
  animation: scroll 38s linear infinite;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(18px, 2vw, 24px);
  font-style: italic;
  color: var(--ink-2);
}
.marquee-track span:nth-child(even) { color: var(--accent); font-style: normal; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Work grid */
.work-grid {
  display: grid; gap: clamp(24px, 3vw, 36px);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.card {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .4s ease, box-shadow .4s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -24px rgba(20,19,15,0.35);
}
.cover { aspect-ratio: 4 / 3; width: 100%; }
.cover-a { background:
  radial-gradient(120% 80% at 20% 20%, #E8C3A8 0%, transparent 55%),
  radial-gradient(100% 80% at 80% 70%, #B4502A 0%, transparent 60%),
  linear-gradient(135deg, #3A2A22, #1E1814); }
.cover-b { background:
  linear-gradient(180deg, #D7CFB8 0%, #9A8E6F 100%),
  repeating-linear-gradient(0deg, rgba(0,0,0,0.04) 0 1px, transparent 1px 14px); }
.cover-c { background:
  radial-gradient(80% 60% at 70% 30%, #D8A26A 0%, transparent 60%),
  linear-gradient(160deg, #2E241B, #4A382A); }
.cover-d { background:
  conic-gradient(from 210deg at 60% 40%, #1E1814, #B4502A, #EDE8DD, #1E1814); }
.card-body { padding: 22px 22px 26px; }
.card h3 {
  font-family: "Fraunces", Georgia, serif; font-weight: 500;
  font-size: 24px; letter-spacing: -0.01em; margin: 0 0 6px;
}
.card .meta { color: var(--muted); font-size: 13px; letter-spacing: 0.04em; margin: 0 0 12px; }
.card p:last-child { margin: 0; color: var(--ink-2); }

/* Approach */
.approach .cols {
  display: grid; gap: clamp(28px, 4vw, 56px);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.cols h3 {
  font-family: "Fraunces", Georgia, serif; font-weight: 500;
  font-size: 26px; letter-spacing: -0.01em; margin: 0 0 10px;
  display: flex; align-items: baseline; gap: 12px;
}
.cols .num { color: var(--accent); font-style: italic; font-size: 20px; }
.cols p { margin: 0; color: var(--ink-2); max-width: 44ch; }

/* Clients */
.clients-marquee {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
  margin-top: 20px;
}
.clients-track {
  display: flex; gap: 48px; padding: 26px 0;
  white-space: nowrap;
  animation: scroll 44s linear infinite;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(20px, 2.4vw, 30px);
  color: var(--ink);
}
.clients-track span { opacity: 0.72; }
.clients-track span:hover { opacity: 1; color: var(--accent); }

/* Contact */
.contact { background: var(--ink); color: var(--paper); border-top: none; }
.contact { max-width: none; padding-left: 0; padding-right: 0; }
.contact-inner {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(80px, 10vw, 140px) clamp(20px, 4vw, 44px);
}
.contact .tag { color: rgba(244,241,234,0.6); }
.contact .display {
  color: var(--paper); margin-bottom: 28px;
  font-size: clamp(36px, 5.5vw, 72px);
}
.contact .lede { color: rgba(244,241,234,0.75); }
.contact .btn.primary { background: var(--paper); color: var(--ink); margin: 8px 0 40px; }
.contact .btn.primary:hover { background: var(--accent); color: var(--paper); }
.contact-meta {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 28px;
  color: rgba(244,241,234,0.65); font-size: 14px;
  border-top: 1px solid rgba(244,241,234,0.15); padding-top: 28px;
}

/* Footer */
.foot {
  max-width: var(--max); margin: 0 auto;
  padding: 28px clamp(20px, 4vw, 44px) 44px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: var(--muted);
  position: relative; z-index: 2;
}
.foot a:hover { color: var(--accent); }

/* Reveal */
[data-reveal] {
  opacity: 0; transform: translateY(14px);
  transition: opacity .7s ease, transform .7s ease;
}
[data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
