:root {
  --bg: #c8b39c;
  --panel: rgba(242, 233, 219, .86);
  --line: rgba(42, 31, 25, .24);
  --text: #1d130e;
  --muted: #55443a;
  --accent: #a4441a;
  --glow: #ee9355;
  --glow-deep: #e07a3a;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: 88px; overflow-anchor: none; }
body { color: var(--text); font-family: var(--font); line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Sized to the largest viewport (browser toolbar collapsed), so the phone toolbar showing or hiding while
   scrolling doesn't resize, and reallocate, the canvas mid-flick. */
#court { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100lvh; z-index: 0; pointer-events: none; }
main { position: relative; z-index: 1; }
.wrap { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  height: 56px; padding: 0 28px;
  background: rgba(200, 179, 156, .78);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid rgba(42, 31, 25, .18);
  font-size: 14px;
}
.nav a { text-decoration: none; }
.nav-name { font-weight: 600; }
.nav nav { display: flex; gap: 26px; color: var(--muted); }
.nav nav a { transition: color .2s; }
.nav nav a:hover { color: var(--text); }

.kicker { color: var(--accent); font-size: 15px; font-weight: 600; margin-bottom: 12px; }
h1 { font-size: clamp(56px, 10vw, 136px); font-weight: 700; line-height: .98; letter-spacing: -.04em; }
h2 { font-size: clamp(38px, 6vw, 72px); font-weight: 700; line-height: 1.04; letter-spacing: -.03em; }

.hero { position: relative; height: 100svh; min-height: 620px; display: flex; justify-content: center; text-align: center; padding: 11vh 24px 0; }
.hero-copy { max-width: 980px; will-change: transform, opacity; }
.hero-sub { max-width: 640px; margin: 22px auto 0; color: var(--muted); font-size: clamp(18px, 2vw, 23px); line-height: 1.35; }
.hooper, .lakers { text-decoration: underline dotted; text-underline-offset: 3px; cursor: pointer; }

/* Showtime Easter egg: purple and gold accents for the visit (colors only). */
html[data-showtime] { --accent: #552583; --glow: #fdb927; --glow-deep: #e9a713; }
.toast { position: fixed; left: 50%; top: 76px; z-index: 60; transform: translate(-50%, -8px); padding: 9px 18px; border-radius: 999px; background: #552583; color: #fdb927; font: 700 15px var(--font); letter-spacing: .02em; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.off { background: var(--text); color: #f3ede1; }
.hero-aside { margin-top: 10px; font-size: clamp(14px, 1.5vw, 17px); }
.scroll-cue { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: var(--text); font-size: 13px; opacity: .8; }

.statement { height: 240vh; }
.statement-pin { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
.statement p { max-width: 720px; font-size: clamp(32px, 4.6vw, 58px); font-weight: 650; line-height: 1.12; letter-spacing: -.025em; }
.statement .word { opacity: .16; transition: opacity .12s linear; }

.platforms { padding: 40px 0 150px; }
.platform-list { list-style: none; margin-top: 18px; max-width: 620px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; }
.platform-list li { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 18px 24px; }
.platform-list li + li { border-top: 1px solid var(--line); }
.platform-list time { color: var(--accent); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; padding-top: 2px; }
.platform-list b { display: block; font-size: 20px; font-weight: 650; letter-spacing: -.01em; line-height: 1.25; }
.platform-list span { display: block; margin-top: 2px; color: var(--muted); font-size: 15px; line-height: 1.35; }

.work, .experience, .about { padding: 90px 0; }
#work-list { display: grid; gap: 34px; margin-top: 52px; }
.project { overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: 24px; will-change: transform; }   /* no backdrop blur: the canvas behind redraws every frame, so a blur here re-renders constantly */
.project-media { aspect-ratio: 16 / 8; background: #dfd1be; }
.project-media img, .project-media video { display: block; width: 100%; height: 100%; object-fit: cover; }
.project-copy { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px 40px; padding: 32px 34px 36px; }
.project .kicker { grid-column: 1 / -1; margin: 0; font-size: 14px; }
.project h3 { font-size: clamp(27px, 3vw, 38px); line-height: 1.08; letter-spacing: -.02em; }
.project p.body { color: var(--muted); font-size: 17px; }
.project .result { grid-column: 2; font-size: 15px; font-weight: 600; padding-right: 44px; }

/* Click a card to open its details panel. The toggle button covers the whole card; its icon sits in the corner. */
.project { position: relative; }
.project-toggle { position: absolute; inset: 0; z-index: 1; width: 100%; border: 0; border-radius: inherit; background: none; cursor: pointer; }
.project-toggle:focus-visible { outline-offset: -3px; }
.project-toggle .icon { position: absolute; right: 22px; bottom: 22px; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; background: var(--panel); transition: transform .3s ease, background .2s; }
.project-toggle .icon::before, .project-toggle .icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; background: var(--text); }
.project-toggle .icon::after { transform: rotate(90deg); }
.project-toggle:hover .icon { background: rgba(255, 255, 255, .55); }
.project-toggle[aria-expanded="true"] .icon { transform: rotate(45deg); }
.project-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.project-more > div { overflow: hidden; }
.project.open .project-more { grid-template-rows: 1fr; }
.project-more-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px 40px; margin: 0 34px; padding: 26px 0 72px; border-top: 1px solid var(--line); }
.highlights { grid-column: 2; list-style: none; display: grid; gap: 8px; color: var(--muted); font-size: 15px; line-height: 1.4; }
.highlights li { position: relative; padding-left: 18px; }
.highlights li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 1.5px; background: var(--accent); }
.tags { grid-column: 1; grid-row: 1; align-self: start; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 100%; padding: 28px; text-align: center; color: var(--muted); border: 1.5px dashed rgba(164, 68, 26, .6); background: rgba(238, 147, 85, .1); }
.project-media .placeholder { border-width: 0 0 1.5px; }
.placeholder b { color: var(--text); font-size: 17px; font-weight: 600; }
.placeholder small { font-size: 13px; }

.timeline { list-style: none; margin-top: 52px; max-width: 760px; border-left: 1px solid rgba(42, 31, 25, .4); }
.timeline li { position: relative; padding: 0 0 44px 34px; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.timeline time { color: var(--muted); font-size: 14px; }
.timeline h3 { margin-top: 2px; font-size: 25px; line-height: 1.2; letter-spacing: -.015em; }
.timeline h3 span { color: var(--muted); font-weight: 500; }
.timeline p { max-width: 620px; margin-top: 6px; color: var(--muted); font-size: 17px; }
.education { color: var(--muted); font-size: 15px; }

.about-body { max-width: 760px; margin-top: 36px; color: var(--muted); font-size: 18px; line-height: 1.6; }
.about-body p + p { margin-top: 18px; }
.about-body[hidden] { display: none; }
.about-placeholder { min-height: 300px; max-width: 760px; margin-top: 44px; border-radius: 20px; background: var(--panel); }
.about-placeholder ul { list-style: none; font-size: 15px; }

.contact { min-height: 135vh; display: flex; align-items: center; padding: 120px 0; }
.contact-copy { max-width: 540px; }
.button { display: inline-block; margin-top: 28px; padding: 13px 24px; background: var(--text); color: #f3ede1; border-radius: 999px; font-size: 16px; font-weight: 600; text-decoration: none; transition: background .2s; }
.button:hover { background: var(--accent); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.contact-actions .button { margin-top: 0; }
/* Shoot around: hold the button, release while the meter is in the zone. */
.shootaround { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 34px; }
.shootaround[hidden] { display: none; }
.shoot-button { padding: 9px 16px; border: 0; border-radius: 999px; background: var(--glow); color: #1d130e; font: 600 14px var(--font); cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.shoot-button:active, .shoot-button.charging { background: var(--glow-deep); }
.meter { position: relative; width: 150px; height: 10px; border-radius: 999px; background: rgba(42, 31, 25, .14); overflow: hidden; }
.meter-zone { position: absolute; top: 0; bottom: 0; left: 66%; width: 18%; background: rgba(42, 31, 25, .3); }
.meter-fill { position: absolute; top: 0; bottom: 0; left: 0; width: 0; background: var(--accent); }
.shoot-score { flex-basis: 100%; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.button-outline { background: none; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--text); }
.button-outline:hover { background: var(--text); color: #f3ede1; }

/* Keep the right side of the screen open so the play stays visible. */
@media (min-width: 861px) {
  .work h2, .experience h2, .about h2 { max-width: 640px; }
  #work-list { max-width: 640px; gap: 64px; }
  .project-media { aspect-ratio: 16 / 10; }
  .project-copy { grid-template-columns: 1fr; padding: 26px 28px 30px; }
  .project .result { grid-column: 1; }
  .project-more-inner { grid-template-columns: 1fr; margin: 0 28px; }
  .highlights, .tags { grid-column: 1; grid-row: auto; }
  .timeline, .about-placeholder, .about-body { max-width: 640px; }
  .statement p { max-width: 640px; }
}

@media (max-width: 860px) {
  /* Reading aid where the player runs behind the text: a soft, half-strength paper wash with feathered edges
     behind each text block. It softens the animation right behind the words without hiding it (project cards
     already sit on panels). The big intro statement gets a lighter wash since it covers more of the scene. */
  main > section > .kicker, .work h2, .experience h2, .about h2, .contact h2, .timeline li > *, .about-body p, .education {
    background: rgba(200, 179, 156, .45);
    box-shadow: 0 0 18px 12px rgba(200, 179, 156, .45);
    border-radius: 10px;
  }
  .statement-pin p {
    background: rgba(200, 179, 156, .3);
    box-shadow: 0 0 24px 16px rgba(200, 179, 156, .3);
    border-radius: 14px;
  }
  #work-list { gap: 44vh; }
  .project-copy { grid-template-columns: 1fr; padding: 24px 22px 28px; }
  .project .result { grid-column: 1; }
  .project-more-inner { grid-template-columns: 1fr; margin: 0 22px; }
  .highlights, .tags { grid-column: 1; grid-row: auto; }
  .project-media { aspect-ratio: 16 / 10; }
}

@media (max-width: 560px) {
  /* Phones: a solid nav instead of a backdrop blur, which re-renders every frame over the animated canvas. */
  .nav { background: rgba(200, 179, 156, .97); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav { padding: 0 16px; }
  .nav-name { display: none; }
  .nav nav { width: 100%; justify-content: space-between; gap: 12px; }
  .wrap, .statement-pin { width: calc(100% - 32px); }
  .hero { padding-top: 10vh; }
  .platform-list li { grid-template-columns: 52px 1fr; gap: 12px; padding: 16px 18px; }
  .platform-list b { font-size: 18px; }
  .platform-list span { font-size: 14px; }
  .work, .experience, .about { padding: 64px 0; }
  .about-body { font-size: 16px; }
  .timeline li { padding-left: 24px; }
  .contact { min-height: 120vh; align-items: flex-end; padding-bottom: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .statement { height: auto; padding: 100px 0; }
  .statement-pin { position: static; height: auto; }
  .statement .word { opacity: 1; }
}
