/* WhyWorks studio site. Values come from the Claude Design handoff (design_handoff_whyworks_site). */

:root {
  --charcoal: #17191C;
  --ivory: #F3F0E9;
  --paper: #FBFAF6;
  --amber: #D4A66A;
  --amber-deep: #B07A35;
  --stone: #C9C5BB;
  --muted: #9A9890;
  --line-1: #6E6C66;
  --line-2: #45474B;
  --line-3: #2A2D31;
  --body-light: #2A2D31;
  --pad-x: clamp(20px, 5vw, 80px);
  --pad-y: clamp(72px, 10vw, 140px);
}

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--charcoal);
  color: var(--ivory);
  font-family: 'Geist', sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--amber); transition: color .18s, background-color .18s, border-color .18s; }
a:hover { color: var(--ivory); }
svg { display: block; }

@keyframes ww-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes ww-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.wrap { max-width: 1280px; margin: 0 auto; padding-inline: var(--pad-x); }
.section { padding-block: var(--pad-y); }
.center { display: flex; justify-content: center; }
.amber { color: var(--amber); }
.muted { color: var(--muted); }
.mono {
  font-family: 'Geist Mono', monospace;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.eyebrow {
  font-family: 'Geist Mono', monospace;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
}
.light, .paper, .amber-bg { color: var(--charcoal); }
.light { background: var(--ivory); }
.paper { background: var(--paper); }
.amber-bg { background: var(--amber); }
.paper .eyebrow { color: var(--amber-deep); }
.eyebrow.muted { color: var(--muted); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: #17191CEE;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.nav {
  padding-block: 16px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 32px;
}
.lockup { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.lockup svg { flex: none; }
.lockup:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }
.wordmark {
  font-size: 26px; font-weight: 700; letter-spacing: -0.05em; line-height: 1;
  display: flex;
}
.lockup.small .wordmark { font-size: 22px; }
.wordmark .why { color: var(--amber); }
.wordmark .works { color: var(--ivory); }
.wordmark sup {
  font-size: 0.38em; font-weight: 500; letter-spacing: 0; line-height: 1;
  margin-left: 0.12em; align-self: flex-start; color: var(--stone);
}
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.nav-link { color: var(--stone); text-decoration: none; font-size: 16px; padding: 6px 0; }
.nav-link:hover { color: var(--amber); }
.nav-link:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }
.nav-pill {
  color: var(--ivory); text-decoration: none; font-size: 16px;
  padding: 9px 18px; border: 1px solid var(--line-1); border-radius: 999px;
}
.nav-pill:hover { background: var(--amber); color: var(--charcoal); border-color: var(--amber); }
.nav-pill:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

/* Hero */
.hero-grid {
  padding-top: clamp(48px, 9vw, 120px);
  padding-bottom: clamp(64px, 10vw, 140px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 56px; align-items: center;
}
.hero-text { display: flex; flex-direction: column; gap: 36px; animation: ww-rise 0.9s ease both; }
.hero h1 {
  margin: 0; font-size: clamp(46px, 7.4vw, 108px); font-weight: 700;
  letter-spacing: -0.05em; line-height: 0.98;
}
.hero h1 .nowrap { display: block; white-space: nowrap; }
.hero h1 .block { display: block; }
.hero-body {
  margin: 0; max-width: 560px; font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.55; color: var(--stone); text-wrap: pretty;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.cta {
  background: var(--amber); color: var(--charcoal); text-decoration: none;
  font-weight: 600; font-size: 17px; padding: 16px 28px; border-radius: 999px;
}
.cta:hover { background: var(--ivory); color: var(--charcoal); }
.cta:focus-visible { outline: 2px solid var(--ivory); outline-offset: 3px; }
.hero-mark { width: 100%; max-width: 520px; height: auto; overflow: visible; }
.draw-w { animation: ww-draw 2.4s cubic-bezier(.6, .05, .2, 1) 0.2s both; }
.draw-curl { animation: ww-draw 1.2s ease-out 2.2s both; }

/* Shared headings */
.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 48px 80px; align-items: start;
}
.two-col.center-y { align-items: center; }
.stack { display: flex; flex-direction: column; gap: clamp(48px, 7vw, 96px); }
.heading-group { display: flex; flex-direction: column; gap: 20px; }
.heading-group.narrow { max-width: 900px; }
.serif-h {
  margin: 0; font-family: 'Newsreader', serif; font-weight: 300;
  font-size: clamp(38px, 5vw, 72px); line-height: 1.04; letter-spacing: -0.02em;
  text-wrap: balance;
}
.serif-h em { color: var(--amber-deep); }
.sans-h {
  margin: 0; font-size: clamp(38px, 5.6vw, 80px); font-weight: 700;
  letter-spacing: -0.045em; line-height: 1; text-wrap: balance;
}

/* About */
.about-body {
  margin: 0; font-size: clamp(18px, 1.7vw, 24px); line-height: 1.6;
  color: var(--body-light); text-wrap: pretty; max-width: 620px;
}

/* Philosophy */
.principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 48px 40px;
}
.principle {
  border-top: 1px solid var(--line-1); padding-top: 28px;
  display: flex; flex-direction: column; gap: 20px;
}
.principle .num {
  font-family: 'Newsreader', serif; font-style: italic; font-weight: 300;
  font-size: 72px; line-height: 1; color: var(--amber);
}
.principle h3 { margin: 0; font-size: 28px; font-weight: 600; letter-spacing: -0.03em; }
.principle p { margin: 0; font-size: 18px; line-height: 1.6; color: var(--stone); text-wrap: pretty; }

/* Approach timeline */
.timeline {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 40px 32px;
}
.timeline li { display: flex; flex-direction: column; gap: 24px; }
.tl { display: flex; align-items: center; }
.tl .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--amber-deep); flex: none; }
.tl .line { height: 2px; background: var(--stone); flex: 1; margin-right: -32px; }
.timeline li:last-child .line { margin-right: 0; }
.tl-label { font-size: 24px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.2; }

/* In the works */
.shape-text { display: flex; flex-direction: column; gap: 32px; }
.shape-text p {
  margin: 0; max-width: 560px; font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.6; text-wrap: pretty;
}
.curl { width: 100%; max-width: 240px; height: auto; }

/* Contact */
.contact { display: flex; flex-direction: column; gap: 40px; }
.contact h2 {
  margin: 0; max-width: 960px; font-size: clamp(38px, 6vw, 88px); font-weight: 700;
  letter-spacing: -0.05em; line-height: 1; text-wrap: balance;
}
.contact-sub {
  margin: 0; font-family: 'Newsreader', serif; font-weight: 300; font-style: italic;
  font-size: clamp(26px, 3vw, 40px); color: var(--amber);
}
.email-block {
  display: flex; flex-direction: column; gap: 12px;
  border-top: 1px solid var(--line-2); padding-top: 28px; max-width: 560px;
}
.email-link {
  font-size: clamp(20px, 2.4vw, 28px); color: var(--ivory); text-decoration: none;
  border-bottom: 1px solid var(--amber); align-self: flex-start;
}
.email-link:hover { color: var(--amber); }
.email-link:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line-3); }
.footer {
  padding-block: 40px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 20px 40px;
}
.tagline { font-size: 16px; color: var(--stone); }
.legal { font-size: 14px; color: var(--muted); }
