:root {
  --paper: #f4efe6;
  --paper-2: #ebe3d5;
  --ink: #14322b;
  --ink-soft: #3d5a52;
  --accent: #ff6b3d;
  --accent-soft: #ffd9c9;
  --line: rgba(20, 50, 43, .16);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --gutter: clamp(16px, 5vw, 72px);
  --radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* grain */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 100;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.05; margin: 0; letter-spacing: -.02em; }
em { font-style: italic; color: var(--accent); font-variation-settings: "opsz" 144; }
::selection { background: var(--accent); color: var(--paper); }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 18px;
  display: flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 16px var(--gutter);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { font-family: var(--serif); font-size: 26px; text-decoration: none; display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.nav .btn-small { white-space: nowrap; }
.brand-dot { color: var(--accent); }
.brand-mark {
  width: 22px; height: 22px; background: var(--ink);
  clip-path: polygon(0 0, 100% 0, 64% 50%, 64% 100%, 36% 85%, 36% 50%);
}
.nav-links { display: flex; gap: 32px; }
.nav-links a { text-decoration: none; font-size: 15px; font-weight: 500; position: relative; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 1.5px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.nav-links a:hover::after { transform: scaleX(1); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 26px;
  background: var(--ink); color: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-weight: 600; font-size: 16px; text-decoration: none;
  transition: transform .2s, background .2s, color .2s, box-shadow .2s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); transform: translateY(-2px); box-shadow: 0 10px 0 -4px var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-small { padding: 10px 18px; font-size: 14px; }
.btn-big { padding: 20px 32px; font-size: 18px; }

/* ---------- HERO ---------- */
.hero {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 6vw, 96px);
  align-items: center;
  padding: clamp(48px, 9vw, 120px) var(--gutter) clamp(56px, 8vw, 100px);
  max-width: 1440px; margin: 0 auto;
}
.hero h1 { font-size: clamp(42px, 6vw, 88px); font-weight: 350; }
.hero h1 em { font-weight: 300; }
.underline { position: relative; white-space: nowrap; }
.underline::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: .06em; height: .2em;
  background: var(--accent-soft); z-index: -1;
  transform: scaleX(0); transform-origin: left;
  animation: draw 1s .9s cubic-bezier(.7, 0, .2, 1) forwards;
}
@keyframes draw { to { transform: scaleX(1); } }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-soft); max-width: 36ch; margin: 28px 0 36px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-photo { margin: 0; position: relative; justify-self: center; width: 100%; max-width: 440px; }
.hero-photo::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px; z-index: -1;
  border: 1.5px solid var(--accent); border-radius: 240px 240px var(--radius) var(--radius);
}
.hero-photo img {
  width: 100%; height: auto; aspect-ratio: 1367 / 2048; object-fit: cover; display: block;
  border-radius: 240px 240px var(--radius) var(--radius); background: var(--paper-2);
}
.hero-badge {
  position: absolute; left: -28px; bottom: 48px; max-width: 190px;
  background: var(--ink); color: var(--paper); border-radius: var(--radius);
  padding: 16px 20px; box-shadow: 0 18px 40px -18px rgba(20, 50, 43, .55);
  display: flex; flex-direction: column; gap: 2px;
  animation: float 5s ease-in-out infinite;
}
.hero-badge strong { font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1; color: var(--accent); }
.hero-badge span { font-size: 13px; line-height: 1.35; }
@keyframes float { 50% { transform: translateY(-8px); } }

/* ---------- TICKER ---------- */
.ticker { background: var(--ink); color: var(--paper); overflow: hidden; padding: 18px 0; transform: rotate(-1.2deg); margin: 0 -10px; }
.ticker-track { display: flex; gap: 36px; width: max-content; animation: marquee 32s linear infinite; font-family: var(--serif); font-style: italic; font-size: 26px; white-space: nowrap; }
.ticker-track span:nth-child(even) { color: var(--accent); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- SECTIONS ---------- */
section { padding-inline: var(--gutter); }
.section-head { max-width: 1440px; margin: 0 auto 56px; }
.section-head h2, .about h2, .cta h2 { font-size: clamp(38px, 5.4vw, 76px); font-weight: 350; }

.pain { max-width: 1440px; margin: 0 auto; padding-block: clamp(80px, 10vw, 140px); }
.pain-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.pain-list li {
  font-family: var(--serif); font-size: clamp(22px, 2.3vw, 32px); line-height: 1.25;
  padding: 36px 36px 36px 0; border-bottom: 1px solid var(--line);
}
.pain-list li:nth-child(odd) { border-right: 1px solid var(--line); }
.pain-list li:nth-child(even) { padding-left: 36px; }
.pain-answer { font-size: clamp(22px, 2.2vw, 30px); margin: 48px 0 0; }
.pain-answer strong { background: var(--accent); padding: 0 .25em; font-weight: 600; }

/* services */
.services { padding-block: 40px clamp(80px, 10vw, 140px); }
.service-grid { max-width: 1440px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.service {
  position: relative; padding: clamp(28px, 3.5vw, 48px);
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), background .35s, color .35s;
  overflow: hidden;
}
.service::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 160px; height: 160px;
  border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
.service:hover { transform: translateY(-6px) rotate(-.4deg); background: var(--ink); color: var(--paper); }
.service:hover::after { transform: scale(1); }
.service:hover p, .service:hover li { color: color-mix(in srgb, var(--paper) 80%, transparent); }
.num { font-family: var(--mono); font-size: 13px; color: var(--accent); position: relative; z-index: 1; }
.service h3 { font-size: clamp(30px, 3vw, 42px); margin: 18px 0 14px; position: relative; z-index: 1; }
.service p { color: var(--ink-soft); margin: 0 0 20px; max-width: 46ch; transition: color .35s; }
.service ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.service li { font-size: 15px; color: var(--ink-soft); padding-left: 22px; position: relative; transition: color .35s; }
.service li::before { content: "↳"; position: absolute; left: 0; color: var(--accent); }

/* method */
.method { background: var(--ink); color: var(--paper); padding-block: clamp(80px, 10vw, 140px); border-radius: 36px 36px 0 0; }
.section-head.light .eyebrow { color: color-mix(in srgb, var(--paper) 70%, transparent); }
.steps { list-style: none; padding: 0; margin: 0 auto; max-width: 1440px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; }
.step { padding: 32px 28px 0 0; border-top: 1px solid rgba(244, 239, 230, .25); position: relative; }
.step::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.step-n { font-family: var(--serif); font-style: italic; font-size: 76px; line-height: 1; color: var(--accent); display: block; margin-bottom: 16px; }
.step h3 { font-size: 30px; margin-bottom: 12px; }
.step p { color: color-mix(in srgb, var(--paper) 72%, transparent); font-size: 16px; margin: 0; }

/* stats */
.stats {
  background: var(--accent); display: grid; grid-template-columns: repeat(4, 1fr);
  padding-block: clamp(48px, 6vw, 80px); gap: 24px;
}
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat-n { font-family: var(--serif); font-size: clamp(48px, 6vw, 88px); line-height: 1; font-weight: 350; }
.stat-l { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }

/* cases */
.cases { padding-block: clamp(80px, 10vw, 140px) 0; }
.case-list { list-style: none; padding: 0; margin: 0 auto; max-width: 1440px; border-top: 1px solid var(--line); }
.case {
  display: grid; grid-template-columns: minmax(220px, .8fr) 2fr; gap: clamp(20px, 4vw, 64px);
  padding: 36px 0; border-bottom: 1px solid var(--line);
  transition: padding .35s cubic-bezier(.2, .8, .2, 1), background .35s;
}
.case:hover { background: var(--paper-2); padding-inline: 20px; }
.case-meta { display: flex; flex-direction: column; gap: 4px; }
.case-years { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--accent); }
.case-org { font-family: var(--serif); font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; }
.case-role { font-size: 14px; color: var(--ink-soft); }
.case-highlight { font-family: var(--serif); font-style: italic; font-size: clamp(26px, 3vw, 40px); line-height: 1.1; margin: 0 0 12px; }
.case-body p:last-child { color: var(--ink-soft); margin: 0; max-width: 62ch; }

/* about */
.about {
  max-width: 1440px; margin: 0 auto; padding-block: clamp(80px, 10vw, 140px);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center;
}
.about-photo { position: relative; }
.photo-placeholder, .about-photo img {
  width: 100%; aspect-ratio: 4 / 5; border-radius: 200px 200px var(--radius) var(--radius);
  object-fit: cover; display: block;
}
.about-photo img { height: auto; aspect-ratio: 1367 / 2048; background: var(--paper-2); }
.photo-placeholder {
  background: repeating-linear-gradient(135deg, var(--paper-2) 0 14px, #e3d9c8 14px 28px);
  border: 1px solid var(--line);
  display: grid; place-items: center;
}
.photo-placeholder span { font-family: var(--serif); font-style: italic; font-size: 200px; color: var(--ink); opacity: .85; }
.photo-stamp {
  position: absolute; right: -18px; bottom: 40px;
  width: 130px; height: 130px; border-radius: 50%;
  background: var(--accent); display: grid; place-items: center; text-align: center;
  font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; line-height: 1.4;
  transform: rotate(12deg);
  animation: spin 18s linear infinite;
}
@keyframes spin { to { transform: rotate(372deg); } }
.about-copy p { color: var(--ink-soft); max-width: 52ch; }
.about-copy h2 { margin-bottom: 28px; }
.signature { font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--ink) !important; line-height: 1.3; margin-top: 32px; padding-left: 20px; border-left: 3px solid var(--accent); }

/* faq */
.faq { padding-block: 0 clamp(80px, 10vw, 140px); }
.faq-list { max-width: 1440px; margin: 0 auto; border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary {
  list-style: none; cursor: pointer; padding: 28px 0;
  font-family: var(--serif); font-size: clamp(22px, 2.2vw, 30px);
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--sans); font-weight: 300; font-size: 36px; color: var(--accent); transition: transform .3s; flex-shrink: 0; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0 0 28px; color: var(--ink-soft); max-width: 70ch; }

/* cta */
.cta {
  background: var(--ink); color: var(--paper); text-align: center;
  padding-block: clamp(90px, 12vw, 170px);
  position: relative; overflow: hidden;
}
.cta::before {
  content: ""; position: absolute; left: 50%; top: 100%; width: 900px; height: 900px; translate: -50% -40%;
  background: radial-gradient(circle, rgba(255, 107, 61, .35), transparent 60%);
  pointer-events: none;
}
.cta .eyebrow { justify-content: center; color: color-mix(in srgb, var(--paper) 70%, transparent); }
.cta h2 { max-width: 16ch; margin: 0 auto; position: relative; }
.cta .lead { margin: 28px auto 44px; color: color-mix(in srgb, var(--paper) 75%, transparent); position: relative; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; position: relative; }
.cta .btn { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.cta .btn:hover { background: var(--paper); border-color: var(--paper); box-shadow: 0 10px 0 -4px var(--accent); }
.cta .btn-ghost { background: transparent; color: var(--paper); border-color: rgba(244, 239, 230, .4); }

.footer {
  background: var(--ink); color: color-mix(in srgb, var(--paper) 60%, transparent);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  padding: 28px var(--gutter); font-size: 14px; border-top: 1px solid rgba(244, 239, 230, .12);
}
.footer-links { display: flex; gap: 24px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--accent); }

/* ---------- REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2, .8, .2, 1), transform .8s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  .hero, .about { grid-template-columns: 1fr; }
  .hero-photo { max-width: 400px; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .about-photo { max-width: 420px; }
}
@media (max-width: 720px) {
  body { font-size: 17px; }
  .nav-links { display: none; }
  .brand { font-size: 21px; gap: 8px; }
  .nav .btn-small { padding: 9px 14px; font-size: 13px; }
  .pain-list, .service-grid { grid-template-columns: 1fr; }
  .pain-list li, .pain-list li:nth-child(even) { padding: 28px 0; border-right: 0; }
  .steps { grid-template-columns: 1fr; }
  .case { grid-template-columns: 1fr; gap: 14px; }
  .case:hover { padding-inline: 0; background: none; }
  .photo-stamp { right: 0; width: 104px; height: 104px; font-size: 10px; }
  .btn-big { width: 100%; justify-content: center; }
  .ticker-track { font-size: 20px; }
  .hero-badge { left: -8px; bottom: 28px; padding: 12px 16px; }
  .hero-badge strong { font-size: 32px; }
  .hero-photo::before { inset: 12px -10px -12px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .underline::after { transform: none; }
}
