/* ---------- Tokens ---------- */
:root {
  --bg: #f6f2ea;
  --bg-tint: #efe9dd;
  --surface: #fffdf8;
  --ink: #16202e;
  --ink-soft: #4a5463;
  --muted: #6b7280;
  --line: #ddd5c6;
  --accent: #9a6b3c;
  --accent-soft: #e9dcc8;
  --contrast-bg: #16202e;
  --contrast-ink: #f6f2ea;
  --contrast-muted: #b9c0cb;
  --ok: #3f8f5a;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 14px;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --shadow: 0 1px 2px rgba(22, 32, 46, .04), 0 12px 32px -16px rgba(22, 32, 46, .18);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #11161f;
    --bg-tint: #161c27;
    --surface: #1a2130;
    --ink: #ece6da;
    --ink-soft: #c2c7d0;
    --muted: #949cab;
    --line: #2a3242;
    --accent: #d4a574;
    --accent-soft: #3a2f24;
    --contrast-bg: #0b0f15;
    --contrast-ink: #f3ede2;
    --contrast-muted: #a3abb8;
    --ok: #6cc28a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -16px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #11161f;
  --bg-tint: #161c27;
  --surface: #1a2130;
  --ink: #ece6da;
  --ink-soft: #c2c7d0;
  --muted: #949cab;
  --line: #2a3242;
  --accent: #d4a574;
  --accent-soft: #3a2f24;
  --contrast-bg: #0b0f15;
  --contrast-ink: #f3ede2;
  --contrast-muted: #a3abb8;
  --ok: #6cc28a;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -16px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(30px, 4.2vw, 46px); }
h3 { font-size: 22px; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
a { color: inherit; }
em { font-style: italic; color: var(--accent); }
strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.eyebrow {
  font: 600 12px/1 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.eyebrow--center { text-align: center; }
.eyebrow--light { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px;
  border-radius: 999px; border: 1px solid var(--ink);
  background: var(--ink); color: var(--bg);
  font: 500 15px/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.btn--small { min-height: 38px; padding: 0 18px; font-size: 14px; }
.btn--light { background: var(--contrast-ink); color: var(--contrast-bg); border-color: var(--contrast-ink); }
.btn--outline-light { background: transparent; color: var(--contrast-ink); border-color: rgba(243, 237, 226, .35); }
.btn--outline-light:hover { border-color: var(--contrast-ink); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--ink); font: 500 13px/1 var(--serif); letter-spacing: .04em;
}
.brand__name { font: 500 15px/1 var(--sans); }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a:not(.btn) {
  font-size: 14px; text-decoration: none; color: var(--ink-soft);
  position: relative; padding: 6px 0;
}
.nav__links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: var(--accent); transition: right .25s ease;
}
.nav__links a:not(.btn):hover, .nav__links a.is-active { color: var(--ink); }
.nav__links a:not(.btn):hover::after, .nav__links a.is-active::after { right: 0; }
.nav__toggle { display: none; }

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 10vw, 120px) 0 clamp(56px, 9vw, 112px); }
.hero__grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.hero__grid > *, .wins > *, .help > *, .quotes > * { min-width: 0; }
.hero__title { font-size: clamp(40px, 5vw, 62px); font-weight: 300; letter-spacing: -.025em; line-height: 1.04; }
.hero__lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-soft); max-width: 32em; margin-top: 28px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* Portrait */
.portrait { margin: 0; }
.portrait__frame {
  position: relative; aspect-ratio: 4 / 5; border-radius: 200px 200px var(--radius) var(--radius);
  overflow: hidden; background: linear-gradient(160deg, var(--accent-soft), var(--bg-tint));
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.portrait__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portrait__fallback {
  position: absolute; inset: 0; display: grid; place-items: center;
  font: 300 clamp(72px, 10vw, 120px)/1 var(--serif); color: var(--accent); letter-spacing: .04em;
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--compact { padding: clamp(48px, 6vw, 80px) 0; }
.section--tint { background: var(--bg-tint); }
.section__title { margin-bottom: clamp(32px, 4vw, 48px); }

/* Results */
.wins { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.win {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(28px, 4vw, 40px);
}
.win__num { font: 300 clamp(36px, 4.4vw, 52px)/1 var(--serif); letter-spacing: -.02em; color: var(--accent); font-variant-numeric: tabular-nums; }
.win__label { font: 600 15px/1.4 var(--sans); letter-spacing: 0; margin: 12px 0 14px; }
.win__text { color: var(--ink-soft); }
.win__client { margin-top: auto; padding-top: 20px; font-size: 13px; font-weight: 500; color: var(--muted); }

/* How I help */
.help { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); }
.help__item { padding-top: 24px; border-top: 2px solid var(--accent); }
.help__item h3 { margin-bottom: 12px; }
.help__item p { color: var(--ink-soft); font-size: 18px; }
.help__note { margin-top: clamp(36px, 5vw, 56px); color: var(--ink-soft); max-width: 46em; }
.help__note strong { color: var(--ink); }
.skills { margin-top: clamp(36px, 5vw, 56px); padding-top: 28px; border-top: 1px solid var(--line); }
.skills__title { font: 600 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { font-size: 14px; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-soft); }

/* Career */
.career { list-style: none; border-top: 1px solid var(--line); }
.career li {
  display: grid; grid-template-columns: 140px 1fr 1fr; gap: 8px 24px; align-items: baseline;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.career__dates { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.career__role { font: 400 20px/1.3 var(--serif); }
.career__org { color: var(--ink-soft); }
.brands { margin-top: clamp(48px, 6vw, 72px); text-align: center; }
.brands__list {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center;
  gap: 16px clamp(28px, 4vw, 52px); margin-top: 24px;
}
.brands__list li { font: 400 clamp(19px, 2.2vw, 26px)/1.2 var(--serif); color: var(--ink-soft); letter-spacing: .01em; }

/* Kind words */
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); }
.quote { margin: 0; }
.quote blockquote { margin: 0; font: 300 clamp(21px, 2.2vw, 26px)/1.4 var(--serif); font-style: italic; }
.quote figcaption { margin-top: 16px; font-size: 14px; font-weight: 500; color: var(--muted); }
.quote figcaption::before { content: "— "; color: var(--accent); }

/* Contact */
.contact { background: var(--contrast-bg); color: var(--contrast-ink); padding: clamp(80px, 12vw, 136px) 0; }
.contact__inner { text-align: center; }
.contact__title { font-size: clamp(48px, 7vw, 84px); font-weight: 300; letter-spacing: -.02em; line-height: 1.05; }
.contact__lede { color: var(--contrast-muted); max-width: 32em; margin: 24px auto 0; font-size: 18px; }
.contact__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }
.contact__email { margin-top: 28px; font-size: 16px; color: var(--contrast-ink); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 12px; }
.contact__copy {
  background: none; border: 0; padding: 4px 0; cursor: pointer;
  font: 500 14px/1 var(--sans); color: var(--accent); text-decoration: underline; text-underline-offset: 3px;
}
.contact__copy:hover { color: var(--contrast-ink); }
.contact__loc { margin-top: 20px; font-size: 14px; color: var(--contrast-muted); }

/* Footer */
.footer { background: var(--contrast-bg); color: var(--contrast-muted); border-top: 1px solid rgba(243, 237, 226, .1); font-size: 14px; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; height: 72px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--contrast-ink); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .portrait { max-width: 320px; width: 100%; margin: 0 auto; }
  .career li { grid-template-columns: 120px 1fr; }
  .career__org { grid-column: 2; }
}

@media (max-width: 760px) {
  .nav__toggle {
    display: grid; gap: 6px; place-content: center;
    width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; color: var(--ink);
  }
  .nav__toggle span { display: block; width: 22px; height: 1.5px; background: currentColor; transition: transform .25s ease; }
  .nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .nav__links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a:not(.btn) { padding: 14px 0; font-size: 16px; border-bottom: 1px solid var(--line); }
  .nav__links a:not(.btn)::after { display: none; }
  .nav__links .btn { margin-top: 16px; min-height: 48px; }

  .wins, .help, .quotes { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .career li { grid-template-columns: 1fr; gap: 4px; }
  .career__org { grid-column: auto; }
  .hero__cta .btn, .contact__actions .btn { width: 100%; }
  .brand__name { display: none; }
}
