/* Self-hosted fonts (latin subset), see /fonts. Inter for text, Bricolage Grotesque for headlines and numbers, Instrument Sans italic for accent words. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 300 600; font-display: swap; src: url("fonts/inter-latin.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: italic; font-weight: 400 600; font-display: swap; src: url("fonts/instrument-sans-italic-latin.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 300 600; font-display: swap; src: url("fonts/bricolage-latin.woff2") format("woff2"); }
/* Fallbacks sized to match the web fonts (measured), so text doesn't jump when they load */
@font-face { font-family: "Inter Fallback"; src: local("Arial"), local("ArialMT"); size-adjust: 106.48%; ascent-override: 91%; descent-override: 22.63%; line-gap-override: 0%; }
@font-face { font-family: "Italic Fallback"; font-style: italic; src: local("Arial Italic"), local("Arial-ItalicMT"); size-adjust: 102.98%; ascent-override: 94.19%; descent-override: 24.28%; line-gap-override: 0%; }
@font-face { font-family: "Bricolage Fallback"; src: local("Arial"), local("ArialMT"); size-adjust: 96.49%; ascent-override: 96.38%; descent-override: 27.98%; line-gap-override: 0%; }

/* ---------- Palette (from michaelpumo.com theme tokens) ---------- */
:root {
  --white: #fff;
  --offwhite: #f6f6f6;
  --black: #000;
  --offblack: #111;
  --grey: #808080;
  --peach: #fb8989;
  --pink: #ffa4d2;
  --purple: #f1a3ff;
  --blue: #0c8ce9;
  --green: #c1ffa5;

  /* Dark (default) */
  --bg: var(--black);
  --surface: var(--offblack);
  --text: var(--white);
  --muted: var(--grey);
  --accent: var(--peach);
  --on-accent: var(--black);
  --ink: var(--accent);   /* accent used as text */
  --line: rgb(255 255 255 / 0.1);

  --font: "Inter", "Inter Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --italic: "Instrument Sans", "Italic Fallback", ui-sans-serif, system-ui, sans-serif;
  --display: "Bricolage Grotesque", "Bricolage Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --max: 72rem;
}

html.theme-light {
  --bg: var(--white);
  --surface: var(--offwhite);
  --text: var(--black);
  --accent: var(--blue);
  --on-accent: var(--white);
  --ink: #0568b8;         /* AA on white/offwhite */
  --muted: #666;
  --line: rgb(0 0 0 / 0.1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; color-scheme: dark; }
html.theme-light { color-scheme: light; }
main { overflow-x: clip; }  /* slide-ins never cause sideways scroll */
section[id] { scroll-margin-top: 4.5rem; }  /* anchors clear the sticky header */
a, button { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  transition: background-color .25s, color .25s;
}
a { color: inherit; text-decoration: none; }
@media (hover: hover) { a:hover { color: var(--ink); } }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--black); }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.narrow .prose { max-width: 46rem; }
.muted { color: var(--muted); }
.accent { color: var(--ink); }

.skip { position: absolute; left: -999px; top: 0; padding: .5rem 1rem; background: var(--accent); color: var(--black); z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 1.5rem; height: 4rem; }
.logo { font-weight: 600; letter-spacing: .02em; display: inline-grid; place-items: center; min-width: 2.75rem; min-height: 2.75rem; margin-left: -.6rem; }
.site-header nav { display: flex; gap: .5rem; margin-left: auto; font-size: .9rem; }
.site-header nav a { color: var(--muted); padding: .7rem .5rem; white-space: nowrap; }
.site-header nav a.active { color: var(--text); }
@media (hover: hover) { .site-header nav a:hover { color: var(--text); } }
.theme-toggle {
  width: 2.75rem; height: 2.75rem; border-radius: 50%; flex: none;
  border: 1px solid var(--line); background: var(--surface);
  display: grid; place-items: center; cursor: pointer;
}
.theme-toggle .dot {
  width: .9rem; height: .9rem; border-radius: 50%;
  background: linear-gradient(90deg, var(--text) 50%, transparent 50%);
  border: 1.5px solid var(--text);
}
@media (max-width: 760px) {
  .header-row { flex-wrap: wrap; height: auto; gap: 0; padding-top: .35rem; }
  .theme-toggle { margin-left: auto; }
  .site-header nav {
    order: 3; width: calc(100% + 2 * var(--gutter)); margin: 0 calc(-1 * var(--gutter));
    padding-inline: calc(var(--gutter) - .5rem); overflow-x: auto; scrollbar-width: none;
    -webkit-mask: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
            mask: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
  }
  .site-header nav::-webkit-scrollbar { display: none; }
  section[id] { scroll-margin-top: 7.25rem; }
}

/* ---------- Type ---------- */
.display {
  font-family: var(--display);
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.display.small { font-size: clamp(2.25rem, 5.5vw, 4.25rem); }
.h2 { font-family: var(--display); font-size: clamp(1.75rem, 3.5vw, 2.75rem); font-weight: 350; letter-spacing: -0.025em; line-height: 1.1; margin-bottom: 1.4rem; }
.h3 { font-size: 1.125rem; font-weight: 500; margin-bottom: .75rem; }
.h3.spaced { margin-top: 2.25rem; margin-bottom: 1rem; }
.eyebrow { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink); margin-bottom: .75rem; }
.lede { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 300; max-width: 38ch; margin-top: 1.25rem; }
.meta { color: var(--muted); font-size: .95rem; margin-top: 1rem; }
.body { color: color-mix(in srgb, var(--text) 78%, transparent); }
.small { font-size: .95rem; }

/* ---------- Hero ---------- */
.hero { min-height: calc(100svh - 4rem); display: flex; align-items: center; padding-block: 4rem; }
.pill {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .35rem .9rem .35rem .7rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: .8rem; margin-bottom: 2rem;
}
.status { width: .4rem; height: .4rem; border-radius: 50%; background: var(--green); opacity: .7; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgb(193 255 165 / .6); } 70%, 100% { box-shadow: 0 0 0 .5rem rgb(193 255 165 / 0); } }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.btn {
  display: inline-flex; align-items: center; padding: .8rem 1.4rem; border-radius: 999px;
  font-size: .95rem; font-weight: 500; transition: transform .15s, background-color .15s, color .15s;
}
@media (hover: hover) { .btn:hover { transform: translateY(-1px); } }
.btn-accent { background: var(--accent); color: var(--on-accent); }
@media (hover: hover) { .btn-accent:hover { color: var(--on-accent); } }
.btn-ghost { border: 1px solid var(--line); transition: transform .15s, background-color .2s, border-color .2s, color .2s; }
@media (hover: hover) { .btn-ghost:hover { border-color: var(--accent); } }
/* Contact row: outline buttons fill with the accent on hover, back to plain when the pointer leaves */
@media (hover: hover) { .cta .btn-ghost:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); } }
.cta .btn-ghost:focus-visible { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* ---------- Hero cards ---------- */
:root { --spring: cubic-bezier(.34, 1.56, .64, 1); --ease-out: cubic-bezier(.2, .8, .2, 1); }
/* Cards are laid out as a loose, overlapping pile (desktop) or a zig-zag cascade (smaller screens) */
.hero-cards { position: relative; margin-top: 3.5rem; perspective: 1000px; }
@media (min-width: 940px) {
  .hero-cards { height: 18rem; }
  .hero-cards .hcard { position: absolute; width: 23rem; margin-left: -11.5rem; }
  .hero-cards .hcard:nth-child(1) { left: 21.5%; top: 3.75rem; --rot: -5deg; z-index: 1; }
  .hero-cards .hcard:nth-child(2) { left: 50%; top: 0;      --rot: 2deg;  z-index: 2; }
  .hero-cards .hcard:nth-child(3) { left: 78.5%; top: 4.25rem; --rot: 6deg;  z-index: 1; }
}
@media (min-width: 640px) and (max-width: 939.98px) {
  .hero-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; padding-bottom: 1.5rem; }
  .hero-cards .hcard:nth-child(1) { --rot: -3deg; }
  .hero-cards .hcard:nth-child(2) { --rot: 2deg; margin-top: 1.5rem; }
  .hero-cards .hcard:nth-child(3) { --rot: -1.5deg; margin-top: .5rem; }
}
/* Phones: three hero buttons would wrap and push the cards down; scrolling replaces "See my work".
   Only applies once the résumé button is shown (it is commented out in index.html until the PDF exists). */
@media (max-width: 639.98px) { .hero .actions:has(.btn-resume) .btn-work { display: none; } }
@media (max-width: 639.98px) {
  /* swipeable row that bleeds to the screen edges; the peeking card hints there is more */
  .hero-cards {
    display: flex; gap: .9rem; margin: 2.5rem calc(-1 * var(--gutter)) 0;
    padding: 1rem var(--gutter) 1.75rem; scroll-padding-inline: var(--gutter);
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
  }
  .hero-cards::-webkit-scrollbar { display: none; }
  .hero-cards .hcard:nth-child(n) { flex: 0 0 min(16.5rem, 80%); scroll-snap-align: start; min-height: 10.5rem; }
  .hero-cards .hcard:nth-child(odd) { --rot: -1.5deg; }
  .hero-cards .hcard:nth-child(even) { --rot: 1.5deg; }
}

.hcard {
  --rx: 0deg; --ry: 0deg; --lift: 0px;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; gap: 1rem;
  min-height: 11rem; padding: 1.1rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 1rem;
  transform: translateY(var(--lift)) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  rotate: var(--rot, 0deg);
  box-shadow: 0 1.25rem 2.5rem -1rem rgb(0 0 0 / .45);
  transition: transform .5s var(--ease-out), rotate .5s var(--spring), border-color .3s, box-shadow .3s;
  /* entrance (uses individual props so it doesn't fight the hover transform) */
  animation: card-in .9s var(--ease-out) backwards;
}
.hero-cards .hcard:nth-child(1) { animation-delay: .35s; }
.hero-cards .hcard:nth-child(2) { animation-delay: .5s; }
.hero-cards .hcard:nth-child(3) { animation-delay: .65s; }
/* "from" only, so each card lands on its own resting tilt (--rot) */
@keyframes card-in {
  from { opacity: 0; translate: 0 3rem; rotate: calc(var(--rot, 0deg) * 2.5); }
}
@media (hover: hover) { .hcard:hover {
  --lift: -6px; rotate: 0deg; z-index: 5 !important;
  border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); color: inherit;
  box-shadow: 0 2rem 3.5rem -1rem rgb(0 0 0 / .55);
  transition: transform .15s linear, rotate .5s var(--spring), border-color .3s, box-shadow .3s;
} }
html.theme-light .hcard { box-shadow: 0 1.25rem 2.5rem -1.25rem rgb(0 0 0 / .18); }
@media (hover: hover) { html.theme-light .hcard:hover { box-shadow: 0 2rem 3rem -1.25rem rgb(0 0 0 / .25); } }

/* soft spotlight that follows the cursor */
.hcard::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(18rem circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%);
  transition: opacity .3s;
}
@media (hover: hover) { .hcard:hover::before { opacity: 1; } }

.hcard-foot { display: flex; justify-content: space-between; align-items: center; }
/* label roll-up */
.hcard-label { font-weight: 500; position: relative; overflow: hidden; display: inline-block; line-height: 1.5; height: 1.5em; }
.hcard-label > span { display: block; transition: transform .45s var(--ease-out); }
.hcard-label > span::after { content: attr(data-t); position: absolute; left: 0; top: 100%; color: var(--ink); }
@media (hover: hover) { .hcard:hover .hcard-label > span { transform: translateY(-100%); } }
.hcard-arrow {
  width: 1.9rem; height: 1.9rem; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--muted);
  transition: transform .45s var(--spring), background-color .3s, color .3s, border-color .3s;
}
@media (hover: hover) { .hcard:hover .hcard-arrow { transform: rotate(-45deg); background: var(--accent); border-color: var(--accent); color: var(--black); } }
.hcard-visual { flex: 1; display: flex; align-items: center; }

/* chips: idle drift, hover scatter */
.chips { flex-wrap: wrap; gap: .4rem; align-content: center; }
.chips span {
  font-size: .78rem; padding: .3rem .65rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg); color: var(--muted);
  animation: bob 4s ease-in-out infinite;
  transition: rotate .5s var(--spring), scale .5s var(--spring), border-color .3s, color .3s, background-color .3s;
}
.chips span:nth-child(2) { animation-delay: -.8s; }
.chips span:nth-child(3) { animation-delay: -1.6s; }
.chips span:nth-child(4) { animation-delay: -2.4s; }
.chips span:nth-child(5) { animation-delay: -3.2s; }
/* chips grouped under small category labels (Product / PMM) */
.chips:has(.chip-group) { flex-direction: column; align-items: stretch; justify-content: center; gap: .55rem; }
.chip-group { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; }
.chip-group b {
  flex-basis: 100%; font-size: .62rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); line-height: 1.2; margin-bottom: .05rem;
}
.chip-group span { font-size: .74rem; line-height: 1.3; padding: .2rem .48rem; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -3px; } }

/* path: still until hovered, then the line fills node by node and the last node pulses */
.path { gap: 0; padding-inline: .25rem; position: relative; }
.path .node { width: .7rem; height: .7rem; border-radius: 50%; border: 1.5px solid var(--muted); flex: none; transition: scale .4s var(--spring), border-color .3s, background-color .3s; }
.path .node.now { background: var(--accent); border-color: var(--accent); }
@keyframes ring { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 50%, transparent); } 100% { box-shadow: 0 0 0 .7rem transparent; } }
.path .seg { flex: 1; height: 1.5px; background: var(--line); position: relative; overflow: hidden; }
.path .seg::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s linear; }
@media (hover: hover) { .hcard:hover .path .node.now { animation: ring 2.4s ease-out 1.05s infinite; } }
@media (hover: hover) { .hcard:hover .path .seg::after { transform: scaleX(1); } }
@media (hover: hover) { .hcard:hover .path .node { border-color: var(--accent); } }
@media (hover: hover) { .hcard:hover .path .node:nth-of-type(1) { scale: 1.3; transition-delay: 0s; } }
@media (hover: hover) { .hcard:hover .path .seg:nth-of-type(2)::after { transition-delay: .05s; } }
@media (hover: hover) { .hcard:hover .path .node:nth-of-type(3) { scale: 1.3; transition-delay: .35s; } }
@media (hover: hover) { .hcard:hover .path .seg:nth-of-type(4)::after { transition-delay: .4s; } }
@media (hover: hover) { .hcard:hover .path .node:nth-of-type(5) { scale: 1.3; transition-delay: .7s; } }
@media (hover: hover) { .hcard:hover .path .seg:nth-of-type(6)::after { transition-delay: .75s; } }
@media (hover: hover) { .hcard:hover .path .node.now { scale: 1.5; transition-delay: 1.05s; } }

/* photo stack: idle sway, hover fan-out */
.photos { justify-content: center; position: relative; }
.photos .ph {
  width: 4.5rem; height: 5.5rem; border-radius: .6rem; border: 3px solid var(--bg);
  box-shadow: 0 6px 18px rgb(0 0 0 / .25);
  transition: rotate .6s var(--spring), translate .6s var(--spring), scale .6s var(--spring);
  animation: sway 5s ease-in-out infinite;
}
.p1 { background: linear-gradient(135deg, var(--peach), var(--pink)); }
.p2 { background: linear-gradient(135deg, var(--purple), var(--blue)); }
.p3 { background: linear-gradient(135deg, var(--green), var(--blue)); }
.photos .p1 { rotate: -8deg; translate: 1.2rem 0; --sway: -2deg; }
.photos .p2 { rotate: 2deg; z-index: 1; --sway: 2deg; animation-delay: -1.6s; }
.photos .p3 { rotate: 9deg; translate: -1.2rem 0; --sway: 3deg; animation-delay: -3.2s; }
@keyframes sway { 0%, 100% { transform: rotate(0deg) translateY(0); } 50% { transform: rotate(var(--sway)) translateY(-3px); } }
@media (hover: hover) { .hcard:hover .photos .ph { animation-play-state: paused; } }
@media (hover: hover) { .hcard:hover .photos .p1 { rotate: -18deg; translate: -.3rem .4rem; } }
@media (hover: hover) { .hcard:hover .photos .p2 { rotate: 0deg; translate: 0 -.5rem; scale: 1.08; } }
@media (hover: hover) { .hcard:hover .photos .p3 { rotate: 18deg; translate: .3rem .4rem; } }

@media (prefers-reduced-motion: reduce) {
  .hcard { transform: none !important; rotate: var(--rot, 0deg) !important; }
}

/* ---------- Life off-screen ---------- */
.offscreen-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr)); }
.ofs { display: flex; flex-direction: column; gap: .9rem; }
.ofs-img { aspect-ratio: 4 / 5; border-radius: 1rem; opacity: .85; }
img.ofs-img { display: block; width: 100%; height: auto; object-fit: cover; opacity: 1; }
.ofs figcaption { display: flex; flex-direction: column; font-size: .95rem; }
.ofs figcaption strong { font-weight: 500; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--line); }
.section.alt { background: var(--surface); }

.stats {
  list-style: none; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 1rem; overflow: hidden;
  margin-bottom: 2.25rem;
}
.stats li { background: var(--bg); padding: 1.5rem 1.5rem; display: flex; flex-direction: column; gap: .4rem; }
.stat-num { font-family: var(--display); font-size: clamp(2.75rem, 5vw, 4rem); font-weight: 350; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-label { color: var(--muted); font-size: .9rem; }

.grid-2 { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr)); }
.steps { padding-left: 1.2rem; display: grid; gap: .6rem; color: color-mix(in srgb, var(--text) 78%, transparent); }
.steps strong { color: var(--text); font-weight: 500; }
.steps li::marker { color: var(--ink); }

.timeline { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.timeline > li { display: grid; grid-template-columns: 10rem 1fr; gap: 1.5rem; padding-block: 1.1rem; border-bottom: 1px solid var(--line); }
.t-date { color: var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums; padding-top: .1rem; }
.t-role { font-weight: 500; margin-bottom: .25rem; }
@media (max-width: 560px) { .timeline > li { grid-template-columns: 1fr; gap: .35rem; } }

/* Company / school logos: one muted tone (filter keeps knocked-out lettering, e.g. the white text in the Salesforce cloud), real colors on a white chip when hovered */
.logos { list-style: none; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .5rem; margin-top: 1.75rem; margin-inline: -.7rem; }
.logos li { display: inline-flex; align-items: center; gap: .45rem; height: 3.25rem; padding: 0 .7rem; border-radius: .75rem; transition: background-color .3s; }
.logos img { display: block; height: var(--h, 1.5rem); width: auto; filter: grayscale(1) invert(1) brightness(2) contrast(3); opacity: .5; transition: filter .3s, opacity .3s; }
.logos span { font-weight: 600; font-size: 1.05rem; letter-spacing: -.01em; color: rgb(255 255 255 / .5); transition: color .3s; }
html.theme-light .logos img { filter: grayscale(1) brightness(.67) contrast(3); opacity: .5; }
html.theme-light .logos span { color: rgb(0 0 0 / .45); }
@media (hover: hover) {
  .logos li:hover { background: #fff; }
  html.theme-light .logos li:hover { background: var(--offwhite); }
  .logos li:hover img, html.theme-light .logos li:hover img { filter: none; opacity: 1; }
  .logos li:hover span, html.theme-light .logos li:hover span { color: #00a0df; }
}
.logo-sf { --h: 2.4rem; } .logo-mule { --h: 1.5rem; } .logo-att { --h: 1.6rem; } .logo-dtv { --h: 1.3rem; }
.logo-dow { --h: 1.4rem; }
@media (max-width: 639.98px) { .logos li { height: 2.75rem; } } .logo-ucla { --h: 1.7rem; } .logo-osu { --h: 1.55rem; }

.quotes { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr)); }
.quote {
  background: var(--bg); border: 1px solid var(--line); border-radius: 1rem;
  padding: 1.5rem; display: flex; flex-direction: column; justify-content: space-between; gap: 1.25rem;
  transition: border-color .2s;
}
@media (hover: hover) { .quote:hover { border-color: var(--accent); } }
.quote blockquote { font-family: var(--display); font-weight: 300; font-size: clamp(1.3rem, 2vw, 1.5rem); line-height: 1.3; }
.quote figcaption { display: flex; flex-direction: column; font-size: .9rem; }
.quote figcaption strong { font-weight: 500; }

.prose { display: grid; gap: 1.1rem; font-size: clamp(1.1rem, 1.6vw, 1.3rem); font-weight: 300; line-height: 1.6; }
.prose p:first-child::first-letter { color: var(--ink); }

.cta { text-align: left; }

/* ---------- Vibe coded apps ---------- */
.apps-intro { max-width: 40rem; margin: -.75rem 0 1.5rem; }
.apps { list-style: none; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(19rem, 100%), 1fr)); }
.app {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--bg); border: 1px solid var(--line); border-radius: 1rem;
  transition: border-color .3s, translate .4s var(--ease-out);
}
.app-shot { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.app-shot.a1 { background: linear-gradient(135deg, var(--peach), var(--purple)); }
.app-shot.a2 { background: linear-gradient(135deg, var(--blue), var(--green)); }
.app-shot.a3 { background: linear-gradient(135deg, var(--pink), var(--peach) 60%, var(--green)); }
/* mock app window; swap for <img src="app.jpg" alt=""> inside .app-shot */
.app-shot::after {
  content: ""; position: absolute; inset: 16% 9% -12%; border-radius: .6rem .6rem 0 0;
  background:
    radial-gradient(circle at .9rem .8rem, rgb(0 0 0 / .25) .22rem, transparent .25rem),
    radial-gradient(circle at 1.7rem .8rem, rgb(0 0 0 / .25) .22rem, transparent .25rem),
    radial-gradient(circle at 2.5rem .8rem, rgb(0 0 0 / .25) .22rem, transparent .25rem),
    linear-gradient(rgb(0 0 0 / .06) 1.6rem, transparent 1.6rem),
    rgb(255 255 255 / .82);
  box-shadow: 0 1rem 2rem -.75rem rgb(0 0 0 / .35);
  transition: translate .6s var(--spring);
}
.app-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.app-body { padding: 1.25rem 1.4rem 1rem; display: grid; gap: .55rem; flex: 1; align-content: start; }
.app-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.app-name { font-size: 1.15rem; font-weight: 500; }
.app-status { font-size: .75rem; color: var(--muted); display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; }
.app-status::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: var(--muted); }
.app-status.live::before { background: var(--green); }
.app-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .35rem; }
.app-tags span { font-size: .75rem; padding: .2rem .6rem; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.app-links { display: flex; gap: 1.25rem; padding: 0 1.4rem .4rem; }
.app-links a { padding-block: .75rem; font-size: .9rem; font-weight: 500; }
@media (hover: hover) {
  .app:hover { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); translate: 0 -4px; }
  .app:hover .app-shot::after { translate: 0 -6%; }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 1.25rem; font-size: .9rem; }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.footer-row a { padding-block: .75rem; }
.site-footer { padding-bottom: max(1.25rem, env(safe-area-inset-bottom)); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* =====================================================================
   Hero: two columns with photo
   ===================================================================== */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 939.98px) { .hero-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
@media (max-width: 639.98px) { .hero-grid { grid-template-columns: 1fr; } }

.hero-photo {
  --rx: 0deg; --ry: 0deg;
  position: relative; width: 100%; max-width: 24rem; justify-self: end;
  aspect-ratio: 4 / 5; rotate: 3deg;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .5s var(--ease-out), rotate .6s var(--spring);
  animation: photo-in 1.1s var(--ease-out) .2s backwards;
}
@media (max-width: 939.98px) { .hero-photo { max-width: 14rem; } }
@media (max-width: 639.98px) {
  .hero { min-height: 0; padding-block: 2.5rem 1rem; }
  .pill { margin-bottom: 1.5rem; }
  .hero-photo { justify-self: start; margin-left: .5rem; max-width: 11rem; }
}
@media (hover: hover) { .hero-photo:hover { rotate: 0deg; transition: transform .15s linear, rotate .6s var(--spring); } }
/* hover: chips brighten together, the category labels pick up the accent (no fills, no rotation) */
@media (hover: hover) {
  .hcard:hover .chips span { color: var(--text); border-color: rgb(255 255 255 / .22); }
  html.theme-light .hcard:hover .chips span { border-color: rgb(0 0 0 / .2); }
  .hcard:hover .chip-group b { color: var(--ink); }
}
.chips span { transition: border-color .3s, color .3s; }
.chip-group b { transition: color .3s; }

@keyframes photo-in { from { opacity: 0; scale: .9; rotate: 10deg; translate: 0 2rem; } }

.photo-placeholder, .hero-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  border-radius: 1.5rem; overflow: hidden;
  box-shadow: 0 2rem 4rem -1.5rem rgb(0 0 0 / .5);
}
.photo-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  background:
    radial-gradient(120% 80% at 20% 10%, color-mix(in srgb, var(--peach) 55%, transparent), transparent 60%),
    radial-gradient(100% 80% at 90% 90%, color-mix(in srgb, var(--purple) 50%, transparent), transparent 60%),
    var(--surface);
  border: 1px solid var(--line);
}
.photo-placeholder svg { width: 70%; fill: color-mix(in srgb, var(--text) 18%, transparent); }
.photo-placeholder span {
  position: absolute; top: 1rem; left: 1rem; font-size: .8rem;
  padding: .3rem .7rem; border-radius: 999px; background: var(--bg); color: var(--muted);
}


/* =====================================================================
   1. Headline word-by-word reveal
   ===================================================================== */
.split .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span { display: inline-block; animation: word-up .9s var(--ease-out) backwards; animation-delay: calc(.1s + var(--i) * .08s); }
@keyframes word-up { from { translate: 0 110%; rotate: 4deg; } }

/* =====================================================================
   6. Timeline draw-in
   ===================================================================== */
.timeline { position: relative; padding-left: 2rem; border-top: 0; --p: 0; }
.timeline::before, .timeline::after {
  content: ""; position: absolute; left: .35rem; top: .5rem; bottom: .5rem; width: 1.5px; background: var(--line);
}
.timeline::after { background: var(--accent); transform: scaleY(var(--p)); transform-origin: top; }
.timeline > li { position: relative; opacity: 0; translate: 1.5rem 0; transition: opacity .7s var(--ease-out), translate .7s var(--ease-out); }
.timeline > li.in { opacity: 1; translate: 0 0; }
.timeline > li::before {
  content: ""; position: absolute; left: calc(-2rem + .35rem - .3rem); top: 1.75rem;
  width: .6rem; height: .6rem; border-radius: 50%; z-index: 1;
  background: var(--bg); border: 1.5px solid var(--muted);
  transition: background-color .4s, border-color .4s, box-shadow .4s;
}
.timeline > li.lit::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 .3rem color-mix(in srgb, var(--accent) 25%, transparent); }

/* =====================================================================
   10. Scroll-lit story text
   ===================================================================== */
.scroll-lit .lw { opacity: .18; transition: opacity .35s ease; }
.scroll-lit .lw.on { opacity: 1; }

/* =====================================================================
   13. Scroll progress bar
   ===================================================================== */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 50; pointer-events: none;
  background: linear-gradient(90deg, var(--peach), var(--pink), var(--purple));
  transform: scaleX(var(--scroll, 0)); transform-origin: left;
}
html.theme-light .progress { background: linear-gradient(90deg, var(--blue), var(--purple)); }

/* =====================================================================
   15. Theme switch wipe (View Transitions)
   ===================================================================== */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { z-index: 9999; }

/* Reduced motion: show final states */
@media (prefers-reduced-motion: reduce) {
  .timeline > li { opacity: 1; translate: none; }
  .timeline::after { transform: none; }
  .scroll-lit .lw { opacity: 1; }
  .hero-photo { transform: none !important; }
}

.title-line { display: block; }
/* Accents: forward-leaning Instrument Sans italic (sharp, not cursive) */
.title-line, .h2 em, .display .accent { font-family: var(--italic); font-style: italic; font-weight: 400; letter-spacing: -0.02em; }
.h2 em { color: var(--ink); }
.title-line { margin-top: .08em; }

/* Pause decorative loops while the hero is scrolled away */
.hero.paused *, .hero.paused *::before, .hero.paused *::after { animation-play-state: paused !important; }

@media (prefers-reduced-motion: reduce) { .app, .app-shot::after { translate: none !important; } }

/* ---------- Talks ---------- */
.talks { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.talk {
  position: relative; display: grid; grid-template-columns: 7.5rem minmax(0, 1fr) auto auto;
  align-items: center; gap: .5rem 2rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line);
}
.talk::before { /* accent bar that grows in on hover */
  content: ""; position: absolute; left: 0; top: 1.25rem; bottom: 1.25rem; width: 2px;
  background: var(--accent); transform: scaleY(0); transition: transform .35s var(--ease-out);
}
.talk-date { color: var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums; transition: translate .35s var(--ease-out); }
.talk-main { transition: translate .35s var(--ease-out); }
.talk-title { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 400; letter-spacing: -0.01em; line-height: 1.25; }
.talk-event { color: var(--muted); font-size: .9rem; margin-top: .2rem; }
.talk-kind { font-size: .75rem; padding: .25rem .7rem; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; justify-self: start; }
.talk-links { display: flex; gap: 1.25rem; }
.talk-links a { padding-block: .75rem; font-size: .9rem; font-weight: 500; white-space: nowrap; }
@media (hover: hover) {
  .talk:hover::before { transform: scaleY(1); }
  .talk:hover .talk-date, .talk:hover .talk-main { translate: .9rem 0; }
  .talk:hover .talk-kind { border-color: var(--accent); color: var(--text); }
}
@media (max-width: 760px) {
  .talk { grid-template-columns: minmax(0, 1fr) auto; gap: .35rem 1rem; padding-block: 1.35rem .6rem; }
  .talk-date { grid-column: 1; grid-row: 1; }
  .talk-kind { grid-column: 2; grid-row: 1; justify-self: end; }
  .talk-main { grid-column: 1 / -1; }
  .talk-links { grid-column: 1 / -1; }
}

/* Talks: inline YouTube player (created by script.js on click) */
.yt-link .yt-icon { font-size: .7em; margin-right: .15rem; color: var(--ink); }
.yt-time { color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 400; }
.talk-player { grid-column: 1 / -1; width: 100%; max-width: 54rem; margin: .5rem 0 .25rem; animation: player-in .5s var(--ease-out) backwards; }
@media (min-width: 761px) { .talk-player { margin-left: 9.5rem; width: calc(100% - 9.5rem); } }
.talk-player iframe {
  display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: .75rem;
  background: var(--surface); box-shadow: 0 1.5rem 3rem -1.5rem rgb(0 0 0 / .5);
}
.talk-player-ext { display: inline-block; padding-block: .75rem; font-size: .85rem; color: var(--muted); }
@keyframes player-in { from { opacity: 0; translate: 0 .75rem; } }

/* =====================================================================
   Desktop hero fits the first screen: type, photo and card pile scale
   with the window height so the three cards are never cut off.
   ===================================================================== */
@media (min-width: 940px) {
  .hero { padding-block: clamp(1rem, 4.5svh, 4rem) clamp(1rem, 2.5svh, 2rem); }
  .hero .pill { margin-bottom: clamp(.85rem, 2.6svh, 2rem); }
  .hero .display { font-size: clamp(2.75rem, min(7vw, 8svh), 5.5rem); }
  .hero .lede { max-width: 46ch; margin-top: clamp(.8rem, 2.2svh, 1.75rem); font-size: clamp(1.05rem, min(2vw, 2.7svh), 1.4rem); }
  .hero .meta { margin-top: clamp(.5rem, 1.4svh, 1rem); }
  .hero .actions { margin-top: clamp(1rem, 3svh, 2.5rem); }
  .hero-photo { max-width: clamp(11rem, calc((100svh - 25rem) * .62), 18rem); }
  .hero-cards { margin-top: clamp(.75rem, 2.5svh, 2.5rem); height: calc(var(--card-h) + clamp(1rem, 4svh, 3rem) + 1rem); }
  .hero-cards { --card-h: clamp(10rem, 22svh, 12.5rem); }
  .hero-cards .hcard { min-height: var(--card-h); }
  .hero-cards .hcard:nth-child(1) { top: clamp(.85rem, 3.5svh, 2.75rem); }
  .hero-cards .hcard:nth-child(3) { top: clamp(1rem, 4svh, 3rem); }
}

/* =====================================================================
   Experience: each role's work links, stacked under it
   ===================================================================== */
.t-links { list-style: none; padding: 0; margin-top: .6rem; }
.t-links li { border-bottom: 1px solid var(--line); }
.t-links li:first-child { border-top: 1px solid var(--line); }
/* links cascade in just after their role slides in */
html.js .t-links li { opacity: 0; translate: 0 -.4rem; transition: opacity .4s var(--ease-out), translate .5s var(--ease-out); }
html.js .timeline > li.in .t-links li { opacity: 1; translate: 0 0; transition-delay: calc(.35s + var(--i, 0) * .08s); }
.t-links li.extra[hidden] { display: none; }
.t-more {
  display: inline-flex; align-items: center; min-height: 2.75rem; margin-top: .35rem; padding: .4rem .2rem;
  background: none; border: 0; color: var(--muted); font: inherit; font-size: .85rem; font-weight: 500; cursor: pointer;
  transition: color .3s, translate .45s var(--spring);
}
@media (hover: hover) { .t-more:hover { color: var(--ink); translate: .25rem 0; } }

.t-link {
  position: relative; isolation: isolate; display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) auto; align-items: center; gap: 1rem;
  min-height: 3rem; padding: .6rem .75rem; overflow: hidden;
}
/* hover: a tinted wash sweeps in from the left, an accent bar grows, text nudges, arrow lifts */
.t-link::before { content: ""; position: absolute; inset: 0; z-index: -1; background: color-mix(in srgb, var(--accent) 9%, transparent); scale: 0 1; transform-origin: left; transition: scale .5s var(--ease-out); }
.t-link::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--accent); scale: 1 0; transition: scale .35s var(--ease-out); }
.t-kind { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); transition: color .3s, translate .45s var(--spring); }
.t-name { font-size: .95rem; transition: translate .45s var(--spring); overflow-wrap: anywhere; }
.t-arrow { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; border: 1px solid var(--line); color: var(--muted); font-size: .85rem; transition: translate .45s var(--spring), rotate .45s var(--spring), background-color .3s, border-color .3s, color .3s; }
@media (hover: hover) { .t-link:hover::before { scale: 1 1; } }
@media (hover: hover) { .t-link:hover::after { scale: 1 1; } }
@media (hover: hover) { .t-link:hover .t-kind { color: var(--ink); translate: .35rem 0; } }
@media (hover: hover) { .t-link:hover .t-name { translate: .5rem 0; } }
@media (hover: hover) { .t-link:hover .t-arrow { translate: .15rem -.15rem; scale: 1.08; background: var(--accent); border-color: var(--accent); color: var(--black); } }
.t-link:focus-visible::after { scale: 1 1; }

@media (max-width: 560px) {
  .t-link { grid-template-columns: minmax(0, 1fr) auto; row-gap: .15rem; padding-inline: .6rem; }
  .t-kind { grid-column: 1; }
  .t-name { grid-column: 1; grid-row: 2; }
  .t-arrow { grid-column: 2; grid-row: 1 / span 2; }
}
.t-links li.extra:not([hidden]) { animation: link-in .45s var(--ease-out) backwards; animation-delay: calc(var(--j, 0) * .07s); }
@keyframes link-in { from { opacity: 0; translate: 0 -.4rem; } }
/* contact buttons: address fades in when revealed */
.btn.revealed { animation: reveal-in .4s var(--ease-out); font-variant-numeric: tabular-nums; }
@keyframes reveal-in { from { opacity: .3; translate: 0 .15rem; } }
