/* oliverhappy.com, Signage. Plain CSS, no framework. Tokens first. */
:root {
  --paper: #FFFFFF; --ink: #0B0B0B; --muted: #4B4B49; --rule: #E6E5E1;
  --dark: #0B0B0B; --sun: #F4E24C; --sun-ink: #7A5F00; --fog: #B9BBC2; --grey: #F3F3F1; --line-dark: #3A3A3A;
  --font-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Onest", system-ui, sans-serif;
  --text-body: 18px; --text-body-lh: 28px; --text-label: 14px; --text-label-lh: 20px;
  --gutter: 96px; --page: 1248px; --nav: 56px;
  --bg: transparent; --fg: var(--ink); --fg2: var(--muted); --line: var(--dark); --rule-c: var(--rule);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body { margin: 0; padding-top: var(--nav); background: var(--paper); color: var(--ink); font: 400 var(--text-body)/var(--text-body-lh) var(--font-body); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }
.wrap { max-width: calc(var(--page) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.label { font-size: var(--text-label); line-height: var(--text-label-lh); color: var(--fg2); }
.muted { color: var(--fg2); }
.prose { max-width: 880px; }
.actions { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; min-height: 48px; padding: 12px 20px; border-radius: 8px; background: var(--dark); color: #fff; text-decoration: none; font-weight: 500; }
.button:hover { filter: brightness(1.15); }
.link { color: inherit; }

/* Sticky nav: black bar, yellow text */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 20; height: var(--nav); display: flex; justify-content: space-between; align-items: center; padding: 0 var(--gutter); background: var(--dark); color: var(--sun); }
.wordmark { font-family: var(--font-display); font-weight: 600; font-size: 18px; text-decoration: none; white-space: nowrap; }
.site-nav { display: flex; gap: 32px; font-size: var(--text-label); line-height: var(--text-label-lh); }
.site-nav a { text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; }
.site-nav .nav-resume { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 6px; background: var(--sun); color: var(--dark); font-weight: 500; }
.site-nav .nav-resume:hover { text-decoration: none; filter: brightness(1.05); }

/* Hero: black disc on yellow, name in the disc */
.top { position: relative; overflow: hidden; background: var(--sun); }
.top::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: calc(50% - 720px); background: var(--dark); }
.top .wrap { position: relative; }
.disc { position: absolute; left: max(-560px, calc(50% - 1280px)); top: calc(50% - 560px); width: 1120px; height: 1120px; border-radius: 50%; background: var(--dark); }
.hero-name { grid-column: 1; }
.name { font-family: var(--font-display); font-weight: 600; font-size: 84px; line-height: 84px; letter-spacing: -0.03em; color: var(--sun); }
.hero-sign { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; min-height: calc(100vh - var(--nav)); max-height: 900px; align-items: start; align-content: center; }
.hero-copy { grid-column: 2; display: flex; flex-direction: column; gap: 28px; }
.hero-copy .display { font-family: var(--font-display); font-weight: 600; font-size: 88px; line-height: 90px; letter-spacing: -0.03em; min-height: 180px; white-space: pre-line; }
.js-motion .hero-copy .reveal { --delay: .9s; }
.js-motion .hero-copy .actions.reveal { --delay: 1.05s; }
.hero-copy p { font-size: 20px; line-height: 30px; }

/* Scroll cue: phones only, quiet, fades in after the typed line, taps to the key results. */
.scroll-cue { display: none; }
#results, .proof { scroll-margin-top: calc(var(--nav) + 24px); outline: none; }
@media (max-width: 900px) {
  .scroll-cue { display: flex; position: absolute; left: 50%; bottom: 32px; width: 24px; height: 24px; margin-left: -12px; color: var(--ink); opacity: 0; animation: cue-in 600ms ease 1.4s forwards; }
  .scroll-cue svg { width: 24px; height: 24px; }
  .hero-sign { position: relative; }
}
@keyframes cue-in { to { opacity: 0.6; } }
@media (prefers-reduced-motion: reduce) { .scroll-cue { animation: none; opacity: 0.6; } }

/* Sections and bands. Each section carries data-a (variant 1a) and data-b (variant 1b) tints. */
.band { padding-top: 120px; background: var(--bg); color: var(--fg); }
body:not(.blocked) [data-a="dark"], body.blocked [data-b="dark"] { --bg: var(--dark); --fg: #fff; --fg2: var(--fog); --line: #fff; --rule-c: var(--line-dark); padding-bottom: 120px; margin-top: 120px; }
body:not(.blocked) [data-a="grey"], body.blocked [data-b="grey"] { --bg: var(--grey); padding: 96px 0; margin-top: 120px; }
main > .band:first-child { margin-top: 0; }
[data-a="dark"] .button, body.blocked [data-b="dark"] .button { background: var(--sun); color: var(--dark); }
body.blocked [data-a="dark"]:not([data-b="dark"]) .button { background: var(--dark); color: #fff; }
.section-title { display: flex; align-items: flex-start; gap: 16px; font-family: var(--font-display); font-weight: 700; font-size: 56px; line-height: 60px; letter-spacing: -0.02em; color: var(--fg); padding-bottom: 40px; }
.section-title::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--sun); border: 2px solid var(--dark); box-sizing: border-box; flex-shrink: 0; margin-top: 22px; }

/* Key results */
#results .section-title { display: none; }
body.blocked #results .section-title { display: flex; }
.proofs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 64px; }
.proof { display: flex; flex-direction: column; gap: 12px; padding-top: 24px; border-top: 2px solid var(--line); }
.proof .display { font-family: var(--font-display); font-weight: 600; font-size: 96px; line-height: 96px; letter-spacing: -0.03em; }

/* What I do: copy left, portrait right */
.what { display: flex; gap: 64px; justify-content: space-between; align-items: center; }
.what .section-title { padding-bottom: 16px; }
.what .copy { display: flex; flex-direction: column; gap: 24px; max-width: 824px; }
.pull { font-family: var(--font-display); font-weight: 500; font-size: 32px; line-height: 42px; letter-spacing: -0.01em; }
.portrait { width: 320px; height: 320px; border-radius: 50%; object-fit: cover; flex-shrink: 0; filter: grayscale(1); }

/* What colleagues say */
.peers { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 64px; }
.peers p { display: flex; flex-direction: column; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: 26px; line-height: 34px; letter-spacing: -0.01em; }
.peers .label { font-family: var(--font-body); font-weight: 400; letter-spacing: 0; color: var(--sun); }
body.blocked #say .peers .label { color: var(--sun-ink); }
.peers .label a { color: inherit; }
.testimonials { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 64px; padding-top: 24px; }
.testimonial { display: flex; flex-direction: column; gap: 12px; }
.testimonial blockquote { margin: 0; }
.testimonial .who { display: flex; gap: 8px; align-items: center; }
.testimonial .who a { display: inline-flex; }
.testimonial svg { width: 14px; height: 14px; fill: currentColor; }
details.more summary { cursor: pointer; padding: 24px 0 0; font-size: var(--text-label); color: var(--fg2); list-style: none; }
details.more summary::before { content: "+ "; }
details.more[open] summary::before { content: "\2013  "; }
details.more summary::-webkit-details-marker { display: none; }

/* Experience and advisory: timeline */
.experience { display: flex; flex-direction: column; border-left: 2px solid var(--line); }
.role { position: relative; display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 12px 0 28px 40px; }
.role::before { content: ""; position: absolute; left: -8px; top: 20px; width: 14px; height: 14px; border-radius: 50%; background: var(--sun); border: 2px solid var(--dark); box-sizing: border-box; }
.role .label { line-height: 30px; }
.role p:last-child span { display: block; font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 30px; letter-spacing: -0.01em; padding-bottom: 4px; }
.experience details.more summary { padding: 12px 0 16px 40px; }
.experience details.more { display: contents; }

/* Logo walls */
body.blocked [data-b="grey"] + [data-b="grey"] { margin-top: 0; padding-top: 0; }
.logos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 48px; align-items: center; }
.logos img { width: 100%; max-width: 264px; height: var(--h, 40px); object-fit: contain; object-position: center; filter: grayscale(1); opacity: 0.8; }
.logos .col2 { grid-column: 2; }

/* Podcasts */
.pod { display: flex; gap: 64px; align-items: center; justify-content: space-between; }
.pod .copy { display: flex; flex-direction: column; gap: 24px; width: 592px; flex-shrink: 0; }
.pod .section-title { padding-bottom: 0; }
.clip { position: relative; width: 592px; aspect-ratio: 16 / 9; background: #1E1E1E; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.clip img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.clip button { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: transparent; cursor: pointer; color: #fff; font: inherit; }
.clip button span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 12px 20px; border-radius: 8px; background: var(--sun); color: var(--dark); font-weight: 500; }
.clip iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Podcast list */
.shows .podcast { display: grid; grid-template-columns: 1fr 592px; gap: 64px; align-items: center; padding: 48px 0; border-top: 1px solid var(--rule); }
.shows .podcast:last-child { border-bottom: 1px solid var(--rule); }
.podcast .text { display: flex; flex-direction: column; gap: 12px; }
.podcast .cover { width: 72px; height: 72px; border-radius: 8px; }
.podcast h2 { font-family: var(--font-display); font-weight: 600; font-size: 28px; line-height: 36px; letter-spacing: -0.01em; }
.podcast h2 .label { font-family: var(--font-body); font-weight: 400; letter-spacing: 0; padding-left: 8px; }
.shows .clip { width: 100%; }

/* Contact and footer */
#contact .actions { padding-top: 8px; }
.icon-link { display: inline-flex; width: 28px; height: 28px; color: var(--fg); }
.icon-link svg { width: 28px; height: 28px; fill: currentColor; }
.site-footer { padding: 120px 0 48px; }
.site-footer .row { display: flex; gap: 32px; flex-wrap: wrap; border-top: 1px solid var(--rule); padding-top: 24px; }

/* Role pages */
.fit { width: 100%; border-collapse: collapse; }
.fit th, .fit td { text-align: left; vertical-align: top; padding: 16px 24px 16px 0; border-top: 1px solid var(--rule-c); }
.fit th { font-weight: 400; color: var(--fg2); font-size: var(--text-label); }
.hero-plain { padding: 96px 0 24px; display: flex; flex-direction: column; gap: 24px; }
.hero-plain .display { font-family: var(--font-display); font-weight: 600; font-size: 56px; line-height: 62px; letter-spacing: -0.02em; max-width: 1000px; }

/* Motion. Rules, not effects: one short rise of 12px over about a second, nothing else moves.
   Hidden only once motion.js has marked <html> with .js-motion, so no JavaScript means everything shows.
   Reveals fire where people read (a third of the way up the screen), never at the bottom edge.
   Backgrounds are painted on load; only the content inside a band rises. Proof numbers arrive one after another. Off under reduced motion. */
.js-motion .reveal { opacity: 0; translate: 0 12px; transition: opacity 1s ease, translate 1.2s cubic-bezier(.2,.7,.2,1); transition-delay: var(--delay, 0s); }
.js-motion .reveal.in { opacity: 1; translate: none; }
.js-motion .proof:nth-child(2) { --delay: .12s; }
.js-motion .proof:nth-child(3) { --delay: .24s; }
.typing::after { content: ""; display: inline-block; width: 0.07em; height: 0.85em; margin-left: 0.06em; vertical-align: -0.05em; background: currentColor; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; translate: none; transition: none; } .typing::after { display: none; } }

@media (max-width: 900px) {
  :root { --gutter: 16px; --text-body: 17px; --text-body-lh: 26px; --nav: 48px; }
  .site-nav { gap: 16px; white-space: nowrap; }
  .disc { left: -30vw; top: -111vw; width: 160vw; height: 160vw; }
  .hero-name { height: calc(39vw + 64px); display: flex; justify-content: center; text-align: center; }
  .name { font-size: 48px; line-height: 48px; }
  .hero-sign { grid-template-columns: 1fr; min-height: 0; max-height: none; padding: 13vw 0 92px; gap: 16px; }
  .hero-copy { grid-column: 1; }
  .hero-copy .display { font-size: 44px; line-height: 48px; min-height: 96px; }
  .js-motion .hero-copy .reveal { opacity: 1; translate: none; transition: none; }
  .band { padding-top: 72px; }
  body:not(.blocked) [data-a="dark"], body.blocked [data-b="dark"] { padding-bottom: 72px; margin-top: 72px; }
  body:not(.blocked) [data-a="grey"], body.blocked [data-b="grey"] { padding: 64px 0; margin-top: 72px; }
  .section-title { font-size: 34px; line-height: 38px; padding-bottom: 28px; }
  .section-title::before { margin-top: 11px; }
  .site-nav .nav-resume { display: none; }
  .wordmark { font-size: 16px; }
  .proofs { grid-template-columns: 1fr; gap: 40px; }
  .proof .display { font-size: 56px; line-height: 56px; }
  .what { flex-direction: column-reverse; gap: 32px; }
  .portrait { width: 200px; height: 200px; }
  .pull { font-size: 24px; line-height: 32px; }
  .peers { grid-template-columns: 1fr; gap: 28px; }
  .peers p { font-size: 20px; line-height: 28px; }
  .testimonials { grid-template-columns: 1fr; }
  .role { grid-template-columns: 1fr; gap: 4px; padding-left: 28px; }
  .role .label { line-height: 20px; }
  .role::before { top: 14px; }
  .experience details.more summary { padding-left: 28px; }
  .logos { grid-template-columns: repeat(2, 1fr); gap: 28px 24px; }
  .logos img { max-width: 160px; height: calc(var(--h, 40px) * 0.8); }
  .logos .col2 { grid-column: auto; }
  .pod { flex-direction: column; align-items: stretch; gap: 32px; }
  .shows .podcast { grid-template-columns: 1fr; gap: 24px; padding: 32px 0; }
  .hero-plain { padding: 56px 0 16px; }
  .hero-plain .display { font-size: 36px; line-height: 40px; }
  .pod .copy, .clip { width: 100%; }
  .site-footer { padding-top: 72px; }
}

/* Role pages: smaller proof numbers so they hold one line */
.role-page .proof .display { font-size: 72px; line-height: 76px; }
@media (max-width: 900px) { .role-page .proof .display { font-size: 48px; line-height: 52px; } }
