/* Pablo Rodriguez theme: D3.1 design (white Swiss index, canary yellow + atlantic blue) */

@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('fonts/geist-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('fonts/geist-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #FFFFFF;
  --ink: #111111;
  --muted: #6B6B6B;
  --line: #E6E6E6;
  --yellow: #FFD23F;
  --blue: #0768A9;
  --max: 1240px;
  --gutter: 40px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
:where(h1, h2, h3, p, ul, figure) { margin: 0; }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 10; }
.skip-link:focus { left: 8px; color: #fff; }

.site { position: relative; overflow: hidden; min-height: 100vh; }
.flag { position: absolute; top: 0; width: 10px; pointer-events: none; }
.flag--blue { right: 64px; height: 420px; background: var(--blue); }
.flag--yellow { right: 54px; height: 300px; background: var(--yellow); }

.wrap { position: relative; max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* Header */
.site-header { padding-top: 32px; padding-bottom: 32px; display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; align-items: center; }
.wordmark { font-weight: 500; font-size: 20px; letter-spacing: -0.01em; line-height: 1; }
.wordmark:hover { color: var(--ink); }
.wordmark .o { color: var(--blue); }
.wordmark .i {
  display: inline-block;
  line-height: 1;
  background-image: linear-gradient(180deg, var(--yellow) 0%, var(--yellow) 29%, var(--blue) 29%, var(--blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav { display: flex; flex-wrap: wrap; gap: 8px 28px; color: var(--muted); padding-right: 48px; }
.nav a { padding: 4px 0; }
.nav .is-accent { color: var(--blue); }

/* Hero */
.hero { padding-top: 160px; padding-bottom: 72px; }
.hero__line { max-width: 860px; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.25; font-weight: 300; letter-spacing: -0.01em; }
.mark { background: linear-gradient(180deg, transparent 0, transparent 55%, var(--yellow) 55%, var(--yellow) 92%, transparent 92%); padding: 0 2px; }
.hero-photo img { width: 100%; height: 640px; object-fit: cover; }

/* Index sections */
.section { padding-top: 96px; display: flex; flex-wrap: wrap; gap: 16px 40px; }
.section--first { padding-top: 120px; }
.section__label { flex: 0 0 200px; font-size: 16px; font-weight: 400; color: var(--muted); }
.section__body { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; }
.more { color: var(--blue); }
.more:hover { color: var(--ink); }

.about { max-width: 640px; gap: 16px; }

/* Watch accordion */
.v-row { border-top: 1px solid var(--line); }
.v-toggle {
  width: 100%; min-height: 60px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px;
  padding: 14px 0; background: none; border: 0; font: inherit; color: var(--ink); text-align: left; cursor: pointer;
}
.v-toggle:hover .v-title { color: var(--blue); }
.dot { flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%; background: var(--yellow); display: flex; align-items: center; justify-content: center; }
.dot .ic-minus { display: none; }
.v-row.is-open .dot .ic-play { display: none; }
.v-row.is-open .dot .ic-minus { display: block; }
.v-title { flex: 1 1 280px; }
.v-sub { color: var(--muted); }
.v-panel { padding: 2px 0 28px; }
.v-panel[hidden] { display: none; }
.v-player { position: relative; aspect-ratio: 16 / 9; background: var(--ink); overflow: hidden; }
.v-player img { width: 100%; height: 100%; object-fit: cover; }
.v-player [hidden] { display: none; }
.v-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.v-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 76px; height: 76px; border-radius: 50%; background: var(--yellow); border: 0; padding: 0;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: transform .15s ease;
}
.v-play:hover { transform: translate(-50%, -50%) scale(1.06); }
.more-yt { padding-top: 14px; border-top: 1px solid var(--line); }

/* Recordings */
.records { gap: 20px; }
.rec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 28px 20px; }
.rec { display: flex; flex-direction: column; gap: 6px; }
.rec img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.rec__meta { font-size: 14px; line-height: 1.35; }
.rec__meta span { color: var(--muted); }

/* Projects */
.projects { flex-direction: row; flex-wrap: wrap; gap: 8px 32px; }
.projects .arrow { color: var(--blue); }

/* Agenda */
.g-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 4px 24px; padding: 12px 0; border-top: 1px solid var(--line); }
.g-row:last-of-type { border-bottom: 1px solid var(--line); }
.pill { justify-self: start; white-space: nowrap; background: var(--yellow); padding: 2px 10px; font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; }
.g-where { color: var(--muted); }
.g-where a:hover { color: var(--blue); }
.empty { color: var(--muted); padding: 12px 0; border-top: 1px solid var(--line); }
.agenda .more { padding-top: 14px; }

/* Footer */
.site-footer { padding-top: 160px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 96px; }
.contact { display: flex; flex-direction: column; gap: 12px; }
.contact__label { color: var(--muted); }
.email { align-self: flex-start; max-width: 100%; overflow-wrap: anywhere; font-size: clamp(22px, 3.4vw, 46px); font-weight: 300; letter-spacing: -0.01em; background: linear-gradient(var(--yellow), var(--yellow)) no-repeat 0 88% / 100% 37%; padding: 0 2px; transition: background-size .9s cubic-bezier(.2,.7,.2,1); }
.email:hover { color: var(--ink); background-size: 100% 55%; transition-duration: .3s; }
.js-motion .email:not(.is-drawn) { background-size: 0% 37%; }
.foot { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center; color: var(--muted); font-size: 14px; border-top: 2px solid var(--blue); padding-top: 20px; }
.foot__links { display: flex; gap: 24px; }

/* Subpages */
.hero--page { padding-top: 120px; padding-bottom: 24px; }
.section--flush { padding-top: 56px; }
.prose { max-width: 640px; gap: 0; }
.prose p { margin: 0 0 1em; }
.prose p:last-child { margin-bottom: 0; }
.press-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 28px 20px; }
.press { display: flex; flex-direction: column; gap: 8px; }
.press img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.press__meta { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); }
.disc { list-style: none; padding: 0; border-bottom: 1px solid var(--line); }
.disc__row { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); }
.disc__cover { width: 96px; height: 96px; object-fit: cover; background: var(--line); display: block; }
.disc__text { display: flex; flex-direction: column; }
.disc__by, .disc__role { color: var(--muted); }
.disc__side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; color: var(--muted); text-align: right; font-size: 14px; }
.g-list .g-row:last-of-type, .g-list .g-row:not([hidden]):has(+ .g-row[hidden]) { border-bottom: 1px solid var(--line); }
.g-row[hidden] { display: none; }
.more-btn { align-self: flex-start; min-height: 44px; padding: 12px 0 0; background: none; border: 0; font: inherit; color: var(--blue); cursor: pointer; }
.more-btn:hover { color: var(--ink); }
.pill--past { background: #F1F1F1; color: var(--muted); }

/* Generic pages (privacy, older pages) */
.page-body { padding-top: 72px; padding-bottom: 72px; max-width: 760px; }
.page-body h1 { font-size: clamp(30px, 3.4vw, 46px); font-weight: 300; letter-spacing: -0.01em; line-height: 1.2; margin-bottom: 32px; }
.page-body p { margin-bottom: 1em; }

/* Phone */
@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .flag { width: 6px; }
  .flag--blue { right: 30px; height: 260px; }
  .flag--yellow { right: 24px; height: 180px; }
  .site-header { padding-top: 24px; padding-bottom: 24px; }
  .nav { gap: 4px 20px; padding-right: 28px; }
  .hero { padding-top: 88px; padding-bottom: 40px; }
  .hero-photo img { height: clamp(300px, 100vw, 520px); }
  .section { padding-top: 64px; gap: 12px; }
  .section--first { padding-top: 72px; }
  .section__label { flex-basis: 100%; }
  .v-play { width: 60px; height: 60px; }
  .rec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .g-row { grid-template-columns: 88px minmax(0, 1fr); gap: 2px 16px; align-items: start; }
  .pill { margin-top: 1px; }
  .g-where { grid-column: 2; font-size: 14px; }
  .site-footer { padding-top: 104px; gap: 64px; }
  .hero--page { padding-top: 72px; padding-bottom: 8px; }
  .section--flush { padding-top: 40px; }
  .disc__row { grid-template-columns: 72px minmax(0, 1fr); gap: 4px 16px; }
  .disc__cover { width: 72px; height: 72px; grid-row: span 2; }
  .disc__side { grid-column: 2; align-items: flex-start; text-align: left; }
}

/* Motion A + scroll: stripes drop in, marker draws, stripes follow the scroll. */
:root { --flag-p: 0; }
.flag { position: fixed; z-index: 0; }
.site > :not(.flag) { position: relative; z-index: 1; }
.flag--blue { height: calc(420px - 260px * var(--flag-p)); animation: pr-drop 1s cubic-bezier(.2,.7,.2,1) backwards; }
.flag--yellow { height: calc(300px + 180px * var(--flag-p)); animation: pr-drop 1s cubic-bezier(.2,.7,.2,1) .2s backwards; }
.mark { background: linear-gradient(var(--yellow), var(--yellow)) no-repeat 0 88% / 100% 37%; animation: pr-draw .9s cubic-bezier(.2,.7,.2,1) .35s backwards; }
@keyframes pr-drop { from { height: 0; } }
@keyframes pr-draw { from { background-size: 0% 37%; } }
@media (max-width: 640px) {
  .flag--blue { height: calc(260px - 160px * var(--flag-p)); }
  .flag--yellow { height: calc(180px + 110px * var(--flag-p)); }
}
@media (prefers-reduced-motion: reduce) { .flag, .mark { animation: none; } }
/* Keep a lane on the right for the fixed stripes so content never runs under them in narrow windows. */
:root { --lane: 104px; }
.wrap { padding-right: max(var(--gutter), calc(var(--lane) - max(0px, (100vw - var(--max)) / 2))); }
@media (max-width: 640px) {
  :root { --gutter: 24px; --lane: 24px; }
  .flag { width: 4px; }
  .flag--blue { right: 12px; }
  .flag--yellow { right: 8px; }
  .nav { padding-right: 0; gap: 4px 14px; font-size: 15px; }
  .hero { padding-top: 64px; }
}
/* Hero marker: same hover as the footer email (band thickens, text stays black). */
.mark { transition: background-size .3s ease; }
.mark:hover { background-size: 100% 55%; }



/* Easter egg: hovering "Improviser." or the footer email turns the page canary yellow with vibrating strings (each with its own amplitude and speed) and minimal sound ripples spreading from the hovered word. */
@property --o{syntax:'<length>';inherits:false;initial-value:0px}
.trip{--rx:50vw;--ry:30vh;position:fixed;inset:0;z-index:0;overflow:hidden;pointer-events:none;background:#FFD23F;opacity:0;visibility:hidden;transition:opacity .5s ease,visibility 0s linear .5s}
.site > .trip{position:fixed;z-index:0}
.trip,.trip *{animation-play-state:paused}
body:has(.mark:hover) .trip,body:has(.email:hover) .trip{opacity:1;visibility:visible;transition:opacity .5s ease}
body:has(.mark:hover) .trip,body:has(.mark:hover) .trip *,body:has(.email:hover) .trip,body:has(.email:hover) .trip *{animation-play-state:running}
.trip__ln{position:absolute;left:-10%;width:140%;height:120px;margin-top:-60px}
.trip__ln svg{display:block;width:100%;height:100%;overflow:visible;animation:pr-wave var(--dur) linear infinite var(--dir),pr-amp var(--ad) ease-in-out infinite alternate}
.trip__ln path{fill:none;vector-effect:non-scaling-stroke;stroke-linecap:round}
@keyframes pr-wave{to{transform:translateX(-16.6667%)}}
@keyframes pr-amp{0%{scale:1 var(--a0)}100%{scale:1 var(--a1)}}
.trip__rip{position:absolute;width:300vmax;height:300vmax;left:calc(var(--rx) - 150vmax);top:calc(var(--ry) - 150vmax);--o:0px;background:repeating-radial-gradient(circle at 50% 50%,#111111 calc(var(--o) - 70px),#111111 calc(var(--o) - 68.5px),transparent calc(var(--o) - 68.5px),transparent var(--o));-webkit-mask-image:radial-gradient(circle at 50% 50%,#000 0,transparent 32vmax);mask-image:radial-gradient(circle at 50% 50%,#000 0,transparent 32vmax);animation:pr-rip 2.8s linear infinite}
@keyframes pr-rip{to{--o:70px}}
@media (prefers-reduced-motion: reduce){.trip{display:none}}

/* Subpages: tagline under the name. */
.site-header.has-tagline { align-items: baseline; }
.brand { display: flex; flex-direction: column; gap: 10px; }
.tagline { margin: 0; font-size: 15px; line-height: 1.4; color: var(--muted); }
.tagline .mark { color: var(--ink); }

/* Watch: diamond (rotated square) buttons instead of circles. */
.dot { flex: 0 0 22px; width: 22px; height: 22px; margin: 5px; border-radius: 0; transform: rotate(45deg); transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.dot svg { transform: rotate(-45deg); transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.v-row.is-open .dot { transform: rotate(135deg); }
.v-row.is-open .dot svg { transform: rotate(-135deg); }
.v-play { width: 56px; height: 56px; border-radius: 0; transform: translate(-50%, -50%) rotate(45deg); transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.v-play svg { transform: rotate(-45deg); transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.v-play:hover { transform: translate(-50%, -50%) rotate(135deg) scale(1.06); }
.v-play:hover svg { transform: rotate(-135deg); }
@media (max-width: 640px) { .v-play { width: 44px; height: 44px; } }
@media (prefers-reduced-motion: reduce) { .dot, .dot svg, .v-play, .v-play svg { transition: none; } }
/* Wordmark: all black. */
.wordmark .o { color: inherit; }
.wordmark .i { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: inherit; }
