:root {
  --carbon: #000;
  --paper: #fff;
  --sky: #dceeff;
  --blue: #4da2ff;
  --mint: #55db9c;
  --lavender: #e9ccff;
  --ember: #fb4903;
  --sun: #ffd731;
  --violet: #5c4ade;
  --display: "Bowlby One SC", "Arial Black", sans-serif;
  --body: "DM Sans", Inter, Arial, sans-serif;
  --line: 1px solid var(--carbon);
  --radius: clamp(22px, 2.25vw, 36px);
  --pad: clamp(1.25rem, 3.2vw, 3.5rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body { margin: 0; overflow-x: hidden; background: var(--sky); color: var(--carbon); font-family: var(--body); font-weight: 500; line-height: 1.45; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }
button { color: inherit; font: inherit; }
h1, h2, h3, p, figure, blockquote, ol { margin: 0; }
ol { padding: 0; }

.skip-link { position: fixed; z-index: 999; top: .75rem; left: .75rem; padding: .7rem 1rem; border: var(--line); border-radius: 999px; background: var(--sun); font-weight: 700; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.progress { position: fixed; z-index: 500; inset: 0 0 auto; height: 4px; pointer-events: none; }
.progress span { display: block; width: 100%; height: 100%; background: var(--ember); transform: scaleX(0); transform-origin: left; }

.marquee { overflow: hidden; border-bottom: var(--line); background: var(--carbon); color: var(--paper); }
.marquee-track { display: flex; width: max-content; animation: marquee 24s linear infinite; }
.marquee-track span { padding: .48rem 0; font-size: .72rem; font-weight: 700; letter-spacing: .035em; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

.topbar { position: sticky; z-index: 300; top: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 78px; padding: .75rem var(--pad); border-bottom: var(--line); background: rgba(220, 238, 255, .94); backdrop-filter: blur(10px); transition: transform 240ms ease; }
body.nav-hidden .topbar { transform: translateY(-110%); }
.brand { justify-self: start; width: 46px; height: 46px; padding: 0; font-size: .9rem; }
.nav-pills { display: flex; gap: .3rem; }
.topbar > .primary-pill { justify-self: end; }
.pill, .primary-pill, .hero-chips span { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; padding: .65rem 1rem; border: var(--line); border-radius: 999px; font-size: .8rem; font-weight: 700; letter-spacing: .03em; line-height: 1; text-transform: uppercase; transition: transform 180ms ease, background-color 180ms ease, color 180ms ease; }
.pill { background: var(--paper); }
.primary-pill { background: var(--carbon); color: var(--paper); }
.pill:hover, .pill:focus-visible { background: var(--sun); transform: translateY(-2px); }
.primary-pill:hover, .primary-pill:focus-visible { background: var(--violet); transform: translateY(-2px); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--ember); outline-offset: 3px; }
.eyebrow { font-size: .76rem; font-weight: 700; letter-spacing: .04em; line-height: 1.2; text-transform: uppercase; }

.hero, .story, .numbers, .principles, .looking, footer { position: relative; isolation: isolate; }
.hero { display: grid; min-height: calc(100svh - 104px); grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); align-items: center; gap: clamp(1.5rem, 4vw, 5rem); overflow: hidden; padding: clamp(3rem, 6vw, 6rem) var(--pad); background: var(--sky); }
.hero-ribbon { position: absolute; z-index: -1; top: 50%; left: 43%; width: min(900px, 62vw); transform: translate(-50%, -50%) rotate(-11deg); pointer-events: none; }
.hero-copy { z-index: 2; }
.hero-kicker { display: inline-flex; padding: .62rem .85rem; border: var(--line); border-radius: 999px; background: var(--paper); }
.hero h1, .story h2, .numbers h2, .principles h2, .looking h2, footer h2 { font-family: var(--display); font-weight: 400; letter-spacing: -.045em; line-height: .82; text-transform: uppercase; }
.hero h1 { margin-top: clamp(1.5rem, 3vw, 2.6rem); font-size: clamp(4.6rem, 9.4vw, 10.5rem); }
.hero h1 span { color: var(--paper); -webkit-text-stroke: 2px var(--carbon); }
.hero-chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 2rem; }
.hero-chips span { min-height: 36px; padding: .55rem .8rem; background: var(--sun); font-size: .7rem; }
.hero-chips span:nth-child(2) { background: var(--mint); }
.hero-chips span:nth-child(3) { background: var(--lavender); }
.portrait-wrap { position: relative; width: min(100%, 520px); justify-self: center; padding: clamp(1rem, 2vw, 2rem); }
.portrait-card { overflow: hidden; border: var(--line); border-radius: var(--radius); background: var(--sun); box-shadow: 13px 14px 0 var(--carbon); transform: rotate(2.2deg); }
.portrait-card img { aspect-ratio: 1; object-fit: cover; filter: saturate(.94) contrast(1.02); }
.portrait-card figcaption { padding: .85rem 1rem; border-top: var(--line); font-size: .72rem; font-weight: 700; letter-spacing: .035em; text-transform: uppercase; }
.available-sticker, .cat-sticker { position: absolute; z-index: 3; display: grid; place-items: center; border: var(--line); font-size: .68rem; font-weight: 700; letter-spacing: .035em; line-height: 1.18; text-align: center; text-transform: uppercase; }
.available-sticker { top: -1rem; right: -1rem; width: 112px; height: 112px; border-radius: 50%; background: var(--mint); transform: rotate(8deg); }
.cat-sticker { bottom: -1.1rem; left: -.5rem; width: 136px; padding: 1rem; border-radius: 18px; background: var(--lavender); transform: rotate(-6deg); }

.story { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr); gap: clamp(2.5rem, 6vw, 8rem); padding: clamp(5rem, 9vw, 9rem) var(--pad); background: var(--carbon); color: var(--paper); }
.story-heading { align-self: start; }
.story h2 { margin-top: 1.5rem; font-size: clamp(3.7rem, 7.1vw, 8rem); }
.story h2 span { color: var(--sun); }
.story-copy { display: grid; gap: 1.4rem; align-content: start; max-width: 700px; padding-top: 2rem; font-size: clamp(1.12rem, 1.45vw, 1.45rem); line-height: 1.48; }
.question-card { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(130px, .25fr) 1fr; align-items: start; gap: 2rem; margin-top: clamp(2rem, 5vw, 5rem); padding: clamp(1.5rem, 4vw, 3.5rem); border: var(--line); border-color: var(--paper); border-radius: var(--radius); background: var(--sun); color: var(--carbon); transform: rotate(-1deg); }
.question-card span { font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.question-card p { font-family: var(--display); font-size: clamp(2.5rem, 5.5vw, 6.5rem); letter-spacing: -.04em; line-height: .88; }

.numbers { padding: clamp(4.5rem, 8vw, 8rem) var(--pad); background: var(--paper); }
.numbers-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.numbers h2 { font-size: clamp(3.3rem, 6vw, 6.7rem); }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.stat { display: flex; min-height: 310px; flex-direction: column; padding: clamp(1.25rem, 2.4vw, 2.3rem); border: var(--line); border-radius: var(--radius); }
.stat:nth-child(even) { transform: translateY(1.2rem); }
.stat strong { display: block; font-family: var(--display); font-size: clamp(4.4rem, 6.6vw, 7.5rem); font-weight: 400; letter-spacing: -.04em; line-height: .88; }
.stat h3 { margin: 1rem 0 auto; font-family: var(--display); font-size: clamp(1.3rem, 2vw, 2.1rem); font-weight: 400; }
.stat p { margin-top: 3rem; font-size: .95rem; font-weight: 700; }
.stat-yellow { background: var(--sun); }
.stat-mint { background: var(--mint); }
.stat-lavender { background: var(--lavender); }
.stat-sky { background: var(--sky); }

.principles { display: grid; grid-template-columns: minmax(260px, .65fr) minmax(0, 1.35fr); gap: clamp(2rem, 5vw, 6rem); padding: clamp(5rem, 9vw, 9rem) var(--pad); background: var(--violet); color: var(--paper); }
.principles-intro { position: sticky; top: 7rem; align-self: start; }
.principles h2 { margin-top: 1.4rem; font-size: clamp(3.5rem, 6vw, 6.8rem); }
.principles-note { max-width: 410px; margin-top: 2rem; font-size: 1.05rem; }
.principle-list { display: grid; gap: .9rem; list-style: none; counter-reset: principle; }
.principle-list li { display: grid; min-height: 235px; grid-template-columns: 70px 1fr; align-items: start; gap: clamp(1rem, 3vw, 3rem); padding: clamp(1.3rem, 3vw, 2.7rem); border: var(--line); border-color: var(--carbon); border-radius: var(--radius); color: var(--carbon); }
.principle-list li:nth-child(1) { background: var(--sun); transform: rotate(-1deg); }
.principle-list li:nth-child(2) { background: var(--mint); transform: rotate(1deg); }
.principle-list li:nth-child(3) { background: var(--lavender); transform: rotate(-.8deg); }
.principle-list li > span { display: grid; width: 52px; height: 52px; place-items: center; border: var(--line); border-radius: 50%; background: var(--paper); font-size: .78rem; font-weight: 700; }
.principle-list h3 { font-family: var(--display); font-size: clamp(1.8rem, 3.2vw, 3.8rem); font-weight: 400; letter-spacing: -.035em; line-height: .95; }
.principle-list p { margin-top: 1.25rem; font-size: 1.05rem; font-weight: 700; }

.looking { display: grid; min-height: 560px; grid-template-columns: .35fr 1.65fr; align-items: center; gap: clamp(1.5rem, 4vw, 5rem); padding: clamp(4.5rem, 8vw, 8rem) var(--pad); background: var(--mint); }
.looking-label { display: grid; aspect-ratio: 1; place-items: center; border: var(--line); border-radius: 50%; background: var(--paper); transform: rotate(-9deg); }
.looking-label span { font-family: var(--display); font-size: clamp(1.2rem, 2vw, 2.2rem); text-align: center; }
.looking-copy .eyebrow { margin-bottom: 1.5rem; }
.looking h2 { max-width: 1250px; font-size: clamp(2.8rem, 5.7vw, 6.7rem); }

footer { overflow: hidden; padding: clamp(5rem, 9vw, 9rem) var(--pad) 2rem; background: var(--ember); }
.footer-copy { max-width: 1300px; }
footer h2 { margin-top: 1.5rem; font-size: clamp(4rem, 8.4vw, 9.5rem); }
footer h2 span { color: var(--paper); -webkit-text-stroke: 2px var(--carbon); }
.footer-copy > p:not(.eyebrow) { max-width: 690px; margin: 2rem 0; font-size: clamp(1rem, 1.5vw, 1.35rem); font-weight: 700; }
.email-link { display: inline-block; border-bottom: 2px solid; font-size: clamp(1rem, 2vw, 2rem); font-weight: 700; }
.footer-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; margin-top: clamp(3rem, 7vw, 7rem); }
.footer-meta div { display: grid; gap: .45rem; padding: 1.2rem; border: var(--line); border-radius: 18px; background: var(--paper); }
.footer-meta span, .footer-bottom { font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.footer-meta strong { font-size: .9rem; }
.footer-bottom { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; margin-top: 2rem; padding-top: 1.5rem; border-top: var(--line); }
.footer-bottom nav { display: flex; gap: 1rem; }
.footer-bottom > a { justify-self: end; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 650ms ease, transform 650ms cubic-bezier(.2, .65, .2, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .hero { min-height: auto; grid-template-columns: 1fr; padding-block: 4rem 5.5rem; }
  .hero-ribbon { top: 26%; left: 50%; width: 96vw; }
  .portrait-wrap { width: min(82vw, 520px); margin-top: 1rem; }
  .story, .principles { grid-template-columns: 1fr; }
  .principles-intro { position: static; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(even) { transform: none; }
  .looking { grid-template-columns: 190px 1fr; }
}

@media (max-width: 700px) {
  .topbar { grid-template-columns: auto 1fr auto; min-height: 70px; padding-inline: 1rem; }
  .resume-link { display: none; }
  .nav-pills { justify-self: center; }
  .topbar .pill, .topbar .primary-pill { min-height: 38px; padding: .58rem .72rem; font-size: .66rem; }
  .brand { width: 40px; height: 40px; }
  .hero h1 { font-size: clamp(3.65rem, 17vw, 6rem); }
  .portrait-wrap { width: 92vw; padding: 1rem; }
  .available-sticker { right: -.2rem; width: 92px; height: 92px; font-size: .58rem; }
  .cat-sticker { left: .1rem; width: 116px; font-size: .58rem; }
  .story { gap: 1.5rem; }
  .story h2, .numbers h2, .principles h2 { font-size: clamp(3rem, 14vw, 4.9rem); }
  .question-card { grid-template-columns: 1fr; }
  .question-card p { font-size: clamp(2.3rem, 11vw, 4rem); }
  .numbers-heading { display: grid; }
  .stat-grid { grid-template-columns: 1fr; }
  .stat { min-height: 250px; }
  .principle-list li { min-height: 0; grid-template-columns: 48px 1fr; gap: .9rem; }
  .principle-list li > span { width: 42px; height: 42px; }
  .principle-list h3 { font-size: clamp(1.55rem, 8vw, 2.6rem); }
  .looking { min-height: 0; grid-template-columns: 1fr; }
  .looking-label { width: 130px; }
  .looking h2 { font-size: clamp(2.45rem, 11vw, 4rem); }
  footer h2 { font-size: clamp(3.1rem, 14vw, 5.4rem); }
  .footer-meta { grid-template-columns: 1fr; }
  .footer-bottom { grid-template-columns: 1fr; }
  .footer-bottom nav { flex-wrap: wrap; }
  .footer-bottom > a { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
