@font-face { font-family: "Instrument Fallback"; src: local("Arial"), local("Helvetica"), local("Liberation Sans"); size-adjust: 97%; ascent-override: 94%; descent-override: 24%; line-gap-override: 0%; }
@font-face { font-family: "Bricolage Fallback"; src: local("Arial"), local("Helvetica"), local("Liberation Sans"); size-adjust: 104%; ascent-override: 90%; descent-override: 26%; line-gap-override: 0%; }
:root {
  --paper: #FFFFFF;
  --mist: #F4F3F1;
  --line: #E2E0DC;
  --ink: #1B1B1E;
  --soft: #55535A;
  --night: #141416;
  --garnet: #9B1B30;
  --garnet-deep: #7A1426;
  --gold: #F8C23A;
  --gold-soft: #F8C23A;
  --ember: #E0662F;
  --grad: linear-gradient(100deg, var(--garnet) 0%, var(--ember) 55%, var(--gold) 100%);
  --display: "Bricolage Grotesque", "Bricolage Fallback", system-ui, sans-serif;
  --body: "Instrument Sans", "Instrument Fallback", system-ui, sans-serif;
  --wrap: 1140px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 20px;
  --surface: #FFFFFF;
  --accent: #9B1B30;
  --on-light: #1B1B1E;
  --cream: var(--cream);
  --rose: var(--rose);
  --head-bg: rgba(255, 255, 255, 0.92);
  --chip: #1B1B1E;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.1875rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}
a:hover { color: var(--garnet-deep); text-decoration-thickness: 3px; }

:focus-visible { outline: 3px solid var(--garnet); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--chip); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 200; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* Header */
.site-head {
  position: sticky; top: 0; z-index: 60;
  background: var(--head-bg);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.mark { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em; }
.mark:hover { color: var(--ink); text-decoration: none; }
.mark svg { width: 34px; height: 34px; flex: none; }
.nav { display: flex; gap: 2px; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; font-size: 1.05rem; font-weight: 600; padding: 10px 12px; border-radius: 10px; }
.nav a:hover { background: var(--mist); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--gold-soft); color: var(--on-light); }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 24px; border-radius: 999px;
  font-family: var(--body); font-weight: 600; font-size: 1.05rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: box-shadow 0.25s, transform 0.25s, background 0.2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--garnet); color: #fff; }
.btn-primary:hover { background: var(--garnet-deep); color: #fff; box-shadow: 0 10px 28px -10px rgba(155, 27, 48, 0.6); }
.btn-gold { background: var(--gold); color: var(--on-light); }
.btn-gold:hover { color: var(--on-light); box-shadow: 0 10px 28px -10px rgba(224, 102, 47, 0.7); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--chip); color: #fff; }

/* Hero */
.hero { position: relative; overflow: hidden; isolation: isolate; padding: clamp(40px, 7vw, 88px) 0 0; --mx: 72%; --my: 45%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(28% 40% at var(--mx) var(--my), rgba(248, 194, 58, 0.45), transparent 70%),
    radial-gradient(34% 46% at calc(var(--mx) + 6%) calc(var(--my) + 18%), rgba(155, 27, 48, 0.22), transparent 72%);
  filter: blur(20px);
}
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: end; gap: 24px; }
.hero-copy { padding-bottom: clamp(40px, 6vw, 88px); }
.hero h1 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2.9rem, 7.5vw, 6rem); line-height: 0.95; letter-spacing: -0.04em;
  margin: 0 0 22px;
}
.hero h1 .fill {
  background: linear-gradient(100deg, var(--ink) 0%, var(--ink) 42%, var(--garnet) 55%, var(--ember) 64%, var(--gold) 72%, var(--ink) 88%);
  background-size: 260% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sweep 2.6s cubic-bezier(.2,.7,.2,1) 0.3s both;
}
@keyframes sweep { from { background-position: 100% 0; } to { background-position: 0% 0; } }
.lede { font-family: var(--display); font-weight: 600; font-size: clamp(1.4rem, 2.6vw, 1.85rem); line-height: 1.28; letter-spacing: -0.015em; margin: 0 0 18px; max-width: 28ch; }
.hero .intro { color: var(--soft); max-width: 52ch; margin: 0 0 30px; }
.hero-photo { position: relative; justify-self: center; width: min(100%, 440px); }
.hero-photo img { width: 100%; }
.hero-photo .tag-dog {
  position: absolute; right: -6px; bottom: 22%;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; font-size: 0.95rem; font-weight: 600; box-shadow: 0 6px 20px -8px rgba(0,0,0,0.25);
}

/* Sections */
section { padding: clamp(56px, 8vw, 96px) 0; }
.band-mist { background: var(--mist); }
h2 { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.02; letter-spacing: -0.03em; margin: 0; }
.section-head { margin-bottom: 32px; max-width: 60ch; }
.section-head p { color: var(--soft); margin: 12px 0 0; }

/* Role grid */
.roles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.role.all { background: var(--night); border-color: var(--night); color: #fff; justify-content: space-between; }
.role.all:hover { color: #fff; border-color: var(--gold); }
.role.all h3 { color: #fff; font-size: 1.7rem; }
.role.all p { color: #C9C6C0; margin: 0 0 18px; }
.role.all .more { color: var(--gold); }
@media (max-width: 1100px) and (min-width: 701px) { .roles { grid-template-columns: repeat(2, 1fr); } }
.role {
  position: relative; display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px 22px; color: var(--ink); text-decoration: none;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.role:hover { color: var(--ink); border-color: var(--garnet); box-shadow: 0 16px 40px -24px rgba(155, 27, 48, 0.55); transform: translateY(-2px); text-decoration: none; }
.role .org { color: var(--soft); font-size: 1rem; margin: 0 0 6px; }
.role h3 { font-family: var(--display); font-weight: 700; font-size: 1.4rem; line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 16px; }
.role .stat { font-family: var(--display); font-weight: 800; font-size: 2.4rem; line-height: 1; letter-spacing: -0.03em; color: var(--accent); margin: auto 0 8px; }
.role .blurb { color: var(--soft); font-size: 1.02rem; margin: 0 0 18px; }
.role .more { font-weight: 700; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.swipe-status { display: none; }

/* Feature cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.card {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px;
}
.card h3 { font-family: var(--display); font-size: 1.55rem; letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 10px; }
.card p { color: var(--soft); margin: 0 0 20px; }
.card a.go { margin-top: auto; font-weight: 700; }
.pill { align-self: flex-start; font-size: 0.9rem; font-weight: 600; background: var(--gold-soft); color: var(--on-light); border-radius: 999px; padding: 4px 12px; margin-bottom: 14px; }
.card.dark { background: var(--night); color: #fff; border-color: var(--night); }
.card.dark p { color: #C9C6C0; }
.card.dark a { color: var(--gold); }
.card.dark .pill { background: rgba(248, 194, 58, 0.18); color: var(--gold); }
.card .peek { position: absolute; right: -10px; bottom: -14px; width: 120px; opacity: 1; pointer-events: none; }
.card.has-peek { padding-right: 120px; }

/* Crew */
.crew { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 8px; }
.pup { text-align: center; text-decoration: none; color: var(--ink); }
.pup:hover { color: var(--ink); text-decoration: none; }
.pup .ring { width: min(100%, 190px); aspect-ratio: 1; margin: 0 auto 14px; border-radius: 50%; background: var(--gold-soft); padding: 8px; transition: transform 0.3s, background 0.3s; }
.pup:hover .ring { transform: rotate(-4deg) scale(1.04); background: var(--garnet); }
.pup .ring img { width: 100%; height: 100%; border-radius: 50%; }
.pup b { display: block; font-family: var(--display); font-size: 1.5rem; letter-spacing: -0.01em; }
.pup span { color: var(--soft); font-size: 1rem; }

/* Contact strip */
.cta { background: var(--night); color: #fff; border-radius: 28px; padding: clamp(32px, 5vw, 56px); position: relative; overflow: hidden; isolation: isolate; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 90% at 100% 0%, rgba(248, 194, 58, 0.25), transparent 60%), radial-gradient(60% 90% at 0% 100%, rgba(155, 27, 48, 0.55), transparent 60%); }
.cta h2 { color: #fff; max-width: 16ch; margin-bottom: 14px; }
.cta p { color: #D7D4CE; max-width: 46ch; margin: 0 0 26px; }
.cta .btn-ghost { color: #fff; border-color: #fff; }
.cta .btn-ghost:hover { background: #fff; color: var(--on-light); }
.cta .peek { position: absolute; right: 0; bottom: 0; height: 100%; width: auto; }

/* Floating button */
.say-hi {
  position: fixed; right: 18px; bottom: 18px; z-index: 70;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--chip); color: #fff; text-decoration: none; font-weight: 600; font-size: 1rem;
  padding: 6px 18px 6px 6px; border-radius: 999px;
  box-shadow: 0 12px 30px -10px rgba(0,0,0,0.45);
  transition: transform 0.25s, background 0.2s;
}
.say-hi img { width: 44px; height: 44px; border-radius: 50%; background: var(--gold); }
.say-hi:hover { color: #fff; background: var(--garnet); transform: translateY(-2px); text-decoration: none; }

/* Interior */
.page-head { padding: clamp(48px, 7vw, 88px) 0 clamp(24px, 4vw, 40px); position: relative; }
.crumb { color: var(--soft); font-size: 1rem; margin: 0 0 12px; }
.page-head h1 { font-family: var(--display); font-weight: 800; font-size: clamp(2.5rem, 6vw, 4.4rem); line-height: 1; letter-spacing: -0.035em; margin: 0 0 14px; max-width: 18ch; }
.page-head .meta { color: var(--soft); margin: 0; font-size: 1.1rem; }
.page-head .lede { margin-top: 18px; }
.head-split { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; }
.head-split img { width: 200px; }

.prose { max-width: 68ch; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.05rem); margin: 44px 0 14px; }
.prose p { margin: 0 0 18px; }
.prose ul { padding-left: 1.2em; margin: 0 0 22px; }
.prose li { margin-bottom: 10px; }
.prose li::marker { color: var(--accent); }
.note { background: var(--gold-soft); border-radius: 14px; padding: 16px 20px; margin: 22px 0; }

.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin: 8px 0 40px; }
.figures div { background: var(--mist); border-radius: 16px; padding: 22px 20px; }
.figures b { display: block; font-family: var(--display); font-size: 2.1rem; line-height: 1; letter-spacing: -0.03em; color: var(--accent); margin-bottom: 8px; }
.figures span { color: var(--soft); font-size: 1rem; }

/* Resume */
.resume-grid { display: grid; grid-template-columns: 240px 1fr; gap: 48px; }
.resume-side { position: sticky; top: 100px; align-self: start; font-size: 1rem; }
.resume-side .face { width: 132px; border-radius: 50%; margin-bottom: 20px; background: var(--gold-soft); }
.resume-side h2 { font-size: 1.15rem; letter-spacing: -0.01em; margin: 0 0 10px; }
.resume-side ul { list-style: none; padding: 0; margin: 0 0 28px; color: var(--soft); }
.resume-side li { margin-bottom: 8px; }
.job { padding-bottom: 34px; margin-bottom: 34px; border-bottom: 1px solid var(--line); }
.job:last-child { border-bottom: 0; }
.job header { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 16px; flex-wrap: wrap; }
.job h3 { font-family: var(--display); font-size: 1.45rem; letter-spacing: -0.015em; margin: 0; line-height: 1.2; }
.job .when { color: var(--soft); font-size: 1rem; }
.job .where { color: var(--soft); margin: 2px 0 14px; }
.job ul { padding-left: 1.2em; margin: 0 0 14px; }
.job li { margin-bottom: 8px; }
.job li::marker { color: var(--accent); }
.job .deeper { font-weight: 700; }

/* Empty states */
.empty { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; background: var(--mist); border-radius: 24px; padding: 28px 32px; max-width: 760px; }
.empty img { width: 170px; }
.empty h2 { font-size: 1.7rem; margin: 0 0 8px; }
.empty p { color: var(--soft); margin: 0; }

/* Dogs page */
.banner { width: 100%; border-radius: 28px; overflow: hidden; margin-bottom: 8px; }
.banner img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; object-position: 50% 62%; }
.caption { color: var(--soft); font-size: 1rem; margin: 10px 0 0; }
.dog-block { display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px; align-items: center; padding: 40px 0; border-top: 1px solid var(--line); }
.dog-block h2 { margin-bottom: 10px; }
.dog-block p { color: var(--soft); margin: 0; }
.gallery { display: flex; gap: 14px; align-items: flex-end; justify-content: center; flex-wrap: wrap; background: var(--mist); border-radius: 24px; padding: 24px 16px 0; overflow: hidden; }
.gallery img { height: 230px; width: auto; }


/* Photo header */
.photo-head { border-radius: 28px; overflow: hidden; }
.photo-head img { width: 100%; aspect-ratio: 16 / 6; object-fit: cover; object-position: 50% 30%; }

/* 404 */
.lost { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; padding: 40px 0; }
.lost img { width: 220px; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 8px; }
  .hero-photo { width: min(78%, 360px); }
  .resume-grid { grid-template-columns: 1fr; gap: 24px; }
  .resume-side { position: static; }
  .dog-block { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  body { font-size: 1.125rem; }
  .site-head .wrap { flex-direction: column; align-items: flex-start; gap: 2px; padding-top: 10px; padding-bottom: 6px; }
  .nav { margin-left: -12px; }
  .nav a { padding: 8px 10px; font-size: 1rem; }
  .roles {
    display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 86%;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 12px; scroll-padding-left: var(--gutter);
  }
  .roles::-webkit-scrollbar { display: none; }
  .role { scroll-snap-align: start; }
  .swipe-status { display: flex; align-items: center; gap: 12px; margin-top: 10px; color: var(--soft); font-size: 1rem; }
  .dots { display: flex; gap: 6px; }
  .dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
  .dots i.on { background: var(--garnet); width: 22px; border-radius: 6px; }
  .crew { gap: 10px; }
  .pup b { font-size: 1.2rem; }
  .pup span { font-size: 0.9rem; }
  .empty, .lost { grid-template-columns: 1fr; text-align: left; }
  .empty img { width: 130px; }
  .head-split { grid-template-columns: 1fr; }
  .head-split img { width: 140px; }
  .cta .peek { height: 140px; right: 0; }
  .cta { padding-bottom: 160px; }
  .card.has-peek { padding-right: 96px; }
  .card .peek { width: 84px; }
  .site-head { position: relative; }
  .nav { flex-wrap: wrap; row-gap: 0; }
  .nav a { white-space: nowrap; }
  .say-hi span { display: none; }
  .say-hi { padding: 6px; }
  .gallery img { height: 160px; }
  .photo-head img { aspect-ratio: 4 / 3; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .hero h1 .fill { background: none; color: var(--ink); }
}

/* ===== Shared page hero (V3) ===== */
.hx { --mx: 0; --my: 0; --band: 480px; position: relative; margin-top: 44px; }
.hx.home { --band: 620px; margin-top: 56px; }
.hx-band {
  position: relative; min-height: var(--band); isolation: isolate;
  background: linear-gradient(118deg, #5E0F1E 0%, var(--garnet) 38%, #C2402B 64%, var(--ember) 82%, var(--gold) 120%);
}
.hx-fx { position: absolute; inset: 0; overflow: hidden; z-index: -1; }
.hx-blob { position: absolute; border-radius: 50%; filter: blur(60px); transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.hx-b1 { width: 520px; height: 520px; right: 6%; top: -160px; background: var(--gold); opacity: .5; transform: translate3d(calc(var(--mx) * -30px), calc(var(--my) * -20px), 0); }
.hx-b2 { width: 620px; height: 620px; left: -160px; bottom: -340px; background: #3B0711; opacity: .75; transform: translate3d(calc(var(--mx) * -20px), calc(var(--my) * -14px), 0); }
.hx-b3 { width: 360px; height: 360px; left: 44%; bottom: -200px; background: var(--ember); opacity: .55; transform: translate3d(calc(var(--mx) * -40px), 0, 0); }
.hx-grain { position: absolute; inset: 0; opacity: .22; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hx-copy { position: relative; z-index: 2; max-width: var(--wrap); margin: 0 auto; padding: 72px var(--gutter) 80px; color: #fff;
  transform: translate3d(calc(var(--mx) * 6px), calc(var(--my) * 4px), 0); transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.hx-copy > * { max-width: min(540px, 48%); }
.hx.home .hx-copy > * { max-width: min(640px, 50%); }
.hx-crumb { font-size: 1rem; margin: 0 0 14px; color: #FBE9DD; }
.hx-crumb a { color: #fff; }
.hx h1 { font-family: var(--display); font-weight: 800; font-size: clamp(2.4rem, 4.1vw, 3.9rem); line-height: 1; letter-spacing: -0.03em; margin: 0 0 18px; text-wrap: balance; }
.hx.home h1 { font-size: clamp(2.7rem, 5.4vw, 5rem); line-height: .98; }
.hx h1 span { display: block; overflow: hidden; padding-bottom: .06em; }
.hx h1 span i { display: block; font-style: normal; }
.hx-meta { font-size: 1.05rem; color: #FBE9DD; margin: 0 0 10px; }
.hx-sub { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.5; color: #FBE9DD; margin: 0 0 28px; }
.hx .btn-primary { background: #fff; color: var(--on-light); box-shadow: 0 12px 30px -12px rgba(0,0,0,.5); }
.hx .btn-primary:hover { background: #fff; color: var(--on-light); }
.hx .btn-ghost { color: #fff; border-color: rgba(255,255,255,.85); }
.hx .btn-ghost:hover { background: #fff; color: var(--on-light); }
.hx-me { position: absolute; z-index: 3; right: max(4%, calc(50vw - 600px)); bottom: 0; pointer-events: none;
  height: calc(var(--band) * var(--scale, 1.08)); aspect-ratio: var(--ar); max-width: var(--maxw, min(42vw, 600px));
  clip-path: inset(-400px -400px 0 -400px);
  transform: translate3d(calc(var(--mx) * 14px), calc(var(--my) * 6px), 0); transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.hx-me img { width: 100%; height: 100%; object-fit: contain; object-position: bottom right; filter: drop-shadow(0 20px 28px rgba(40,0,10,.4)); }
.hx-chip { position: absolute; z-index: 4; white-space: nowrap;
  background: rgba(48,6,18,.55); border: 1px solid rgba(255,255,255,.35); color: #fff;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: .95rem;
  transform: translate3d(calc(var(--mx) * var(--d) * 1px), calc(var(--my) * var(--d) * .6px), 0); transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.hx-chip b { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin-right: 8px; vertical-align: 1px; }
.hx-chip .f { display: inline-block; animation: hxfloat 6s ease-in-out infinite; }
@keyframes hxfloat { 50% { transform: translateY(-7px); } }
.hx-mchips { display: none; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.hx-mchips .hx-chip { position: static; transform: none; font-size: .85rem; padding: 6px 12px; }
.hx.home .hx-me { right: -2%; }
.hx.home .hx-chip[style*="right:"] { right: 9% !important; }

/* Load sequence */
.js .hx h1 span i, .js .hx-sub, .js .hx .actions, .js .hx-meta, .js .hx-crumb { transform: translateY(105%); opacity: 0; }
.js .hx-me { opacity: 0; translate: 0 40px; }
.js .hx-chip { opacity: 0; scale: .6; }
.ready .hx h1 span i { transform: none; opacity: 1; transition: transform .9s cubic-bezier(.2,.8,.2,1), opacity .5s; }
.ready .hx h1 span:nth-child(2) i { transition-delay: .08s; }
.ready .hx h1 span:nth-child(3) i { transition-delay: .16s; }
.ready .hx-crumb, .ready .hx-meta { transform: none; opacity: 1; transition: all .7s cubic-bezier(.2,.8,.2,1); }
.ready .hx-sub { transform: none; opacity: 1; transition: all .8s cubic-bezier(.2,.8,.2,1) .25s; }
.ready .hx .actions { transform: none; opacity: 1; transition: all .8s cubic-bezier(.2,.8,.2,1) .35s; }
.ready .hx-me { opacity: 1; translate: 0 0; transition: opacity .7s ease .3s, translate 1.1s cubic-bezier(.2,1.25,.4,1) .3s, transform .9s cubic-bezier(.2,.7,.2,1); }
.ready .hx-chip { opacity: 1; scale: 1; transition: opacity .4s ease var(--t), scale .6s cubic-bezier(.3,1.6,.5,1) var(--t), transform .8s cubic-bezier(.2,.7,.2,1); }

.page-body { padding-top: clamp(48px, 7vw, 80px); }
.form-embed { width: 100%; max-width: 760px; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--surface); }
.form-embed iframe { display: block; width: 100%; height: 760px; border: 0; }
.say-hi { transition: transform .25s, background .2s, opacity .3s; }
.say-hi.tucked { opacity: 0; pointer-events: none; transform: translateY(12px); }

@media (max-width: 900px) and (min-width: 761px) {
  .hx-copy > *, .hx.home .hx-copy > * { max-width: 56%; }
}
@media (max-width: 760px) {
  .hx, .hx.home { margin-top: 20px; }
  .hx-band { min-height: 0; background: linear-gradient(180deg, #5E0F1E 0%, var(--garnet) 45%, #C2402B 75%, var(--ember) 100%); }
  .hx-b1 { right: -200px; top: auto; bottom: -120px; }
  .hx-copy { padding: 36px 20px 0; }
  .hx-copy > *, .hx.home .hx-copy > * { max-width: none; }
  .hx h1, .hx.home h1 { font-size: 2.6rem; line-height: 1.04; }
  .hx-sub { font-size: 1.05rem; margin-bottom: 22px; }
  .hx-me { position: relative; right: auto !important; display: block; margin: 22px 0 0 auto; height: 300px; max-width: 92%; clip-path: none; }
  .hx.home .hx-me { height: auto; width: 108%; max-width: none; aspect-ratio: var(--ar); margin: 22px 0 0 -4%; }
  .hx-me .hx-chip { display: none; }
  .hx-mchips { display: flex; }
}
@media (prefers-reduced-motion: reduce) {
  .js .hx h1 span i, .js .hx-sub, .js .hx .actions, .js .hx-meta, .js .hx-crumb, .js .hx-me, .js .hx-chip { transform: none !important; opacity: 1 !important; translate: none !important; scale: 1 !important; }
  .hx-chip .f { animation: none; }
}

/* Home button */
.mark { gap: 10px; padding: 4px 16px 4px 4px; border-radius: 999px; background: var(--mist); border: 1px solid var(--line); transition: background .2s, border-color .2s; }
.mark img { width: 40px; height: 40px; border-radius: 50%; background: var(--gold); }
.mark:hover { background: var(--gold); border-color: var(--gold); }

/* Resume */
.toc { position: sticky; top: 73px; z-index: 20; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 12px var(--gutter); margin: 0 calc(var(--gutter) * -1) 8px; background: var(--surface); border-bottom: 1px solid var(--line); }
.toc::-webkit-scrollbar { display: none; }
.toc a { flex: none; display: flex; flex-direction: column; gap: 2px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; line-height: 1.2; transition: background .2s, border-color .2s, color .2s; }
.toc a b { font-size: 1rem; }
.toc a small { font-size: .85rem; color: var(--soft); }
.toc a:hover { border-color: var(--garnet); color: var(--ink); }
.toc a.on { background: var(--garnet); border-color: var(--garnet); color: #fff; }
.toc a.on small { color: #F3D6DB; }
.rs { padding: 40px 0 8px; scroll-margin-top: 150px; }
.rs-head { margin-bottom: 22px; max-width: 70ch; }
.rs-head h2 { margin-bottom: 8px; }
.rs-head p { color: var(--soft); margin: 0; }
.tl { position: relative; display: grid; gap: 18px; }
.tl-item { display: grid; grid-template-columns: 210px 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; transition: border-color .25s, box-shadow .25s; }
.tl-item:hover { border-color: var(--garnet); box-shadow: 0 16px 40px -26px rgba(155, 27, 48, .55); }
.tl-stat { background: linear-gradient(150deg, #5E0F1E, var(--garnet) 60%, #C2402B); color: #fff; padding: 24px 22px; display: flex; flex-direction: column; justify-content: center; }
.tl-stat b { font-family: var(--display); font-size: 2.3rem; line-height: 1; letter-spacing: -0.03em; color: var(--gold); margin-bottom: 8px; }
.tl-stat span { font-size: .95rem; color: #F6E3E6; line-height: 1.35; }
.tl-body { padding: 22px 26px; }
.tl-body header { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 16px; flex-wrap: wrap; margin-bottom: 10px; }
.tl-body h3 { font-family: var(--display); font-size: 1.35rem; letter-spacing: -0.015em; line-height: 1.2; margin: 0; }
.tl-body .when { color: var(--soft); font-size: .98rem; }
.tl-body ul { padding-left: 1.2em; margin: 0 0 12px; }
.tl-body li { margin-bottom: 6px; }
.tl-body li::marker { color: var(--accent); }
.tl-body .deeper { font-weight: 700; }
.edu { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.edu > div { background: var(--mist); border-radius: 18px; padding: 22px; }
.edu h3 { font-family: var(--display); font-size: 1.2rem; margin: 0 0 6px; }
.edu p { margin: 0; color: var(--soft); }
.edu-more { margin-top: 18px; }
.skills { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.skills li { background: var(--mist); border-radius: 12px; padding: 10px 16px; font-weight: 600; }

/* About */
.about { display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: start; }
.about .prose h2:first-child { margin-top: 0; }
.about-side { position: sticky; top: 100px; display: grid; gap: 14px; }
.about-card { display: block; padding: 20px 22px; border: 1px solid var(--line); border-radius: 18px; color: var(--ink); text-decoration: none; transition: border-color .2s, transform .2s; }
.about-card:hover { border-color: var(--garnet); color: var(--ink); transform: translateY(-2px); }
.about-card b { display: block; font-family: var(--display); font-size: 1.2rem; margin-bottom: 4px; }
.about-card span { color: var(--soft); font-size: 1rem; }

/* Dogs */
.dog { display: grid; grid-template-columns: 420px 1fr; gap: 48px; align-items: center; padding: 28px 0; scroll-margin-top: 100px; }
.dog.flip { grid-template-columns: 1fr 420px; }
.dog.flip .dog-pic { order: 2; }
#drey .dog-pic { justify-content: flex-end; }
#drey .dog-pic img { max-width: 100%; max-height: 88%; }
.dog-pic { aspect-ratio: 1; border-radius: 28px; overflow: hidden; display: flex; align-items: flex-end; justify-content: center;
  background: radial-gradient(80% 70% at 50% 100%, var(--gold) 0%, #F2A93B 40%, var(--ember) 100%); }
.dog-pic img { max-height: 92%; max-width: 92%; object-fit: contain; filter: drop-shadow(0 18px 24px rgba(60, 20, 0, .35)); }
#luna .dog-pic img { max-height: 100%; }
.dog-copy h2 { margin-bottom: 16px; }
.dog-copy dl { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0 0 18px; }
.dog-copy dt { font-size: .9rem; color: var(--soft); }
.dog-copy dd { margin: 0; font-weight: 700; }
.dog-copy p { margin: 0; max-width: 56ch; }

@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
  .about-side { position: static; }
  .dog { grid-template-columns: 1fr; gap: 20px; }
  .dog.flip { grid-template-columns: 1fr; }
  .dog.flip .dog-pic { order: 0; }
  .dog-pic { max-width: 420px; }
}
@media (max-width: 700px) {
  .mark { padding-right: 12px; }
  .mark img { width: 34px; height: 34px; }
  .toc { top: 0; }
  .tl-item { grid-template-columns: 1fr; }
  .tl-stat { padding: 18px 20px; }
  .tl-stat b { font-size: 2rem; }
  .tl-body { padding: 18px 20px; }
}

.year { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; margin: 40px 0 8px; padding: 26px 30px; border-radius: 24px; color: #fff;
  background: linear-gradient(118deg, #5E0F1E 0%, var(--garnet) 45%, #C2402B 80%, var(--ember) 110%); }
.year b { font-family: var(--display); font-size: clamp(3rem, 6vw, 4.5rem); line-height: 1; letter-spacing: -0.04em; color: var(--gold); }
.year p { margin: 0; font-size: 1.15rem; color: #FBE9DD; }
.duo { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: center; margin: 44px 0 8px; }
.duo h2 { margin-top: 0 !important; }
.about-photo { margin: 0; border-radius: 24px; overflow: hidden; }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (max-width: 700px) { .year { grid-template-columns: 1fr; gap: 8px; } .duo { grid-template-columns: 1fr; } .about-photo { max-width: 340px; } }

/* ===== V7 ===== */
.btn-small { min-height: 44px; padding: 8px 18px; font-size: .98rem; background: var(--garnet); color: #fff; }
.btn-small:hover { background: var(--garnet-deep); color: #fff; }
.btn-ghost-dark { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn-ghost-dark:hover { background: var(--chip); color: #fff; }
.hx .btn-gold { background: var(--gold); color: var(--on-light); }
.hx .btn-gold:hover { background: #ffd35c; color: var(--on-light); box-shadow: 0 12px 30px -12px rgba(0,0,0,.5); }
.hx-meta a { color: #fff; }
.hx.compact { --band: 340px; }
.hx.compact .hx-copy { padding: 52px var(--gutter) 56px; }

/* Scroll tracking highlight */
.progress { position: sticky; top: 73px; z-index: 30; height: 4px; background: transparent; }
.progress span { display: block; height: 100%; width: 0; background: var(--grad); transition: width .1s linear; }
[data-track] { transition: border-color .35s, box-shadow .35s, transform .35s; }
[data-track].lit { border-color: var(--garnet) !important; box-shadow: 0 0 0 1px var(--garnet), 0 18px 40px -26px rgba(155,27,48,.6); }
.role.all.lit { border-color: var(--gold) !important; box-shadow: 0 0 0 1px var(--gold); }
.pup.lit .ring { background: var(--garnet); transform: scale(1.05); }
a.card { color: var(--ink); text-decoration: none; }
a.card.dark { color: #fff; }
a.card .go { margin-top: auto; font-weight: 700; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
a.card.dark .go { color: var(--gold); }
a.card:hover { border-color: var(--garnet); }

/* Reveal on scroll */
.js [data-reveal] { opacity: 0; transform: translateY(26px) scale(.98); transition: opacity .7s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.js [data-reveal].shown { opacity: 1; transform: none; }

/* Quote cards */
.qc { margin: 0; padding: 26px 26px 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); position: relative; }
.qc::before { content: "\201C"; position: absolute; top: -18px; left: 18px; font-family: var(--display); font-size: 5rem; line-height: 1; color: var(--accent); }
.qc blockquote { margin: 6px 0 16px; font-family: var(--display); font-weight: 600; font-size: 1.2rem; line-height: 1.38; letter-spacing: -0.01em; }
.qc figcaption b { display: block; }
.qc figcaption span { color: var(--soft); font-size: .95rem; }
.qc.inline { margin: 30px 0 34px; background: linear-gradient(135deg, #5E0F1E, var(--garnet) 60%, #C2402B); color: #fff; border: 0; }
.qc.inline::before { color: var(--gold); }
.qc.inline figcaption span { color: #F3D6DB; }
.q-rail { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; padding-top: 14px; }
.kind-strip { background: var(--surface); }

/* Classroom rotator and letters */
.rotator { position: relative; margin: 8px 0 40px; border-radius: 28px; padding: clamp(28px, 5vw, 56px); color: #fff; overflow: hidden; isolation: isolate;
  background: radial-gradient(70% 90% at 100% 0%, rgba(248,194,58,.35), transparent 60%), linear-gradient(118deg, #5E0F1E, var(--garnet) 55%, #C2402B); }
.rot-stage { position: relative; min-height: 220px; }
.rotator .qc { position: absolute; inset: 0; background: transparent; border: 0; padding: 0 0 0 4px; opacity: 0; transform: translateX(40px); transition: opacity .6s, transform .7s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
.rotator .qc.on { opacity: 1; transform: none; pointer-events: auto; }
.rotator .qc::before { position: static; display: block; color: var(--gold); height: 44px; }
.rotator .qc blockquote { font-size: clamp(1.4rem, 2.8vw, 2.1rem); line-height: 1.22; max-width: 30ch; }
.rotator .qc figcaption span { color: #F3D6DB; }
.rot-dots { display: flex; gap: 8px; margin-top: 18px; }
.rot-dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 6px; background: rgba(255,255,255,.4); cursor: pointer; transition: width .3s, background .3s; }
.rot-dots button.on { width: 28px; background: var(--gold); }
.letters-h { margin: 8px 0 6px; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.letters-p { color: var(--soft); margin: 0 0 18px; }
.letters { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 44px; }
.letter { display: flex; flex-direction: column; gap: 4px; padding: 20px 22px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color .2s, transform .2s, box-shadow .2s; }
.letter:hover { border-color: var(--garnet); transform: translateY(-3px); color: var(--ink); box-shadow: 0 16px 34px -24px rgba(155,27,48,.6); }
.letter span { color: var(--soft); font-size: .95rem; }
.letter em { font-style: normal; font-weight: 700; color: var(--accent); margin-top: 8px; }

/* Resume cards: clickable stat panel and title */
.tl-stat { text-decoration: none; transition: filter .25s; }
.tl-stat:hover { filter: brightness(1.12); }
.tl-body h3 a { color: var(--ink); text-decoration: none; }
.tl-body h3 a:hover { color: var(--accent); text-decoration: underline; }
.tl-body .btn-small { margin-top: 4px; }
.rs-head h2 a { color: var(--ink); text-decoration: none; }
.rs-head h2 a::after { content: " \2197"; font-size: .6em; color: var(--accent); vertical-align: .35em; }
.rs-head h2 a:hover { color: var(--accent); }
.toc a.toc-pdf { background: var(--gold); border-color: var(--gold); }

/* About story */
.story .chap { scroll-margin-top: 100px; }
.ph { margin: 22px 0 8px; border-radius: 22px; overflow: hidden; max-width: 420px; }
.ph.wide { max-width: none; }
.ph img { width: 100%; height: auto; display: block; }
.ph.wide img { aspect-ratio: 16 / 9; object-fit: cover; }
.about { grid-template-columns: 1fr 340px; }
.about-side { top: 96px; }
.map-card { border: 1px solid var(--line); border-radius: 22px; padding: 14px 14px 10px; background: var(--surface); }
.trip { width: 100%; height: auto; display: block; }
.m-land { fill: var(--mist); }
.m-borders { fill: none; stroke: #fff; stroke-width: 1.2; }
.m-route { fill: none; stroke: var(--garnet); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: var(--draw, 1); transition: stroke-dashoffset .5s linear; }
.m-stop circle { fill: #fff; stroke: var(--line); stroke-width: 3; transition: fill .3s, stroke .3s; }
.m-stop.hit circle { fill: var(--garnet); stroke: #fff; }
.m-stop.now circle { fill: var(--gold); stroke: var(--garnet); }
.m-stop .m-pulse { fill: none !important; stroke: var(--gold) !important; opacity: 0; }
.m-stop.now .m-pulse { animation: mpulse 1.6s ease-out infinite; }
@keyframes mpulse { from { opacity: .9; r: 9; } to { opacity: 0; r: 30; } }
.m-label rect { fill: var(--ink); }
.m-label text { fill: #fff; font: 700 20px var(--body); }
.m-label { transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.map-cap { margin: 4px 6px 0; font-weight: 700; font-size: .98rem; }
.out-west { position: relative; }
.tumble { position: absolute; top: -10px; left: 0; width: 78px; height: 78px; pointer-events: none; opacity: 0; }
.tumble.go { animation: tumble 4.2s cubic-bezier(.4,.1,.3,1) forwards; }
.tumble svg { width: 100%; height: 100%; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes tumble { 0% { opacity: 0; left: -10%; transform: translateY(0); } 8% { opacity: 1; } 25% { transform: translateY(-30px); } 40% { transform: translateY(0); } 60% { transform: translateY(-18px); } 75% { transform: translateY(0); } 92% { opacity: 1; } 100% { opacity: 0; left: 100%; transform: translateY(0); } }

/* Listening */
.pods { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.pod { position: relative; padding: 20px 22px; border-radius: 18px; background: var(--mist); }
.pod b { display: block; font-family: var(--display); font-size: 1.2rem; letter-spacing: -0.01em; }
.pod span { color: var(--soft); font-size: .95rem; }
.pod.fav { background: #1E1E22; color: #fff; }
.pod.fav span { color: #C9C6C0; }
.pod em { position: absolute; top: 14px; right: 14px; font-style: normal; font-size: .8rem; font-weight: 700; background: var(--gold); color: var(--on-light); padding: 3px 10px; border-radius: 999px; }

/* Kind words */
.kw-h { margin: 36px 0 18px; }
.kw-h:first-child { margin-top: 0; }
.kw-grid { columns: 3 300px; column-gap: 18px; }
.kw-grid .qc { break-inside: avoid; margin: 0 0 30px; }
.kw-src { color: var(--soft); font-size: .95rem; }

/* Blog */
:root { --c-tech: #2563A8; --c-podcasts: #3A3A40; --c-music: #8E3BA8; --c-movies: #9B1B30; --c-dogs: #B7791F; --c-history: #2F7A55; }
.cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.cat { border: 2px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 16px; font: 600 1rem var(--body); cursor: pointer; color: var(--ink); }
.cat.on { background: var(--chip); border-color: var(--chip); color: #fff; }
.cat.c-tech { border-color: var(--c-tech); } .cat.c-podcasts { border-color: var(--c-podcasts); } .cat.c-music { border-color: var(--c-music); }
.cat.c-movies { border-color: var(--c-movies); } .cat.c-dogs { border-color: var(--c-dogs); } .cat.c-history { border-color: var(--c-history); }
.cat.on.c-tech { background: var(--c-tech); } .cat.on.c-podcasts { background: var(--c-podcasts); } .cat.on.c-music { background: var(--c-music); }
.cat.on.c-movies { background: var(--c-movies); } .cat.on.c-dogs { background: var(--c-dogs); } .cat.on.c-history { background: var(--c-history); }
.lanes { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.lane { border-radius: 20px; padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-top: 6px solid var(--lc); }
.lane h3, .lane h2 { font-family: var(--display); font-size: 1.35rem; margin: 0 0 6px; color: var(--lc); }
.lane p { color: var(--soft); margin: 0 0 14px; }
.lane-empty { font-size: .9rem; font-weight: 600; color: var(--soft); background: var(--mist); border-radius: 999px; padding: 4px 12px; }
.lane.c-tech, .post.c-tech { --lc: var(--c-tech); } .lane.c-podcasts, .post.c-podcasts { --lc: var(--c-podcasts); } .lane.c-music, .post.c-music { --lc: var(--c-music); }
.lane.c-movies, .post.c-movies { --lc: var(--c-movies); } .lane.c-dogs, .post.c-dogs { --lc: var(--c-dogs); } .lane.c-history, .post.c-history { --lc: var(--c-history); }
.lane.hide { display: none; }
.posts { display: grid; gap: 16px; margin-bottom: 18px; }
.post { border-left: 6px solid var(--lc); background: var(--surface); border-radius: 16px; padding: 20px 24px; box-shadow: 0 1px 0 var(--line); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 330px 1fr; gap: 32px; align-items: start; }
.contact-side { display: grid; gap: 16px; position: sticky; top: 96px; }
.cs-card { border-radius: 22px; padding: 22px 24px; background: var(--mist); }
.cs-card h2 { font-size: 1.25rem; margin: 0 0 12px; letter-spacing: -0.01em; }
.cs-reply { background: var(--chip); color: #fff; }
.cs-head { display: flex; gap: 14px; align-items: center; }
.cs-head img { width: 56px; height: 56px; border-radius: 50%; background: var(--gold); flex: none; }
.cs-head b { display: block; }
.cs-head span { color: #C9C6C0; font-size: .95rem; }
.cs-list { margin: 0; padding-left: 1.1em; }
.cs-list li { margin-bottom: 6px; }
.cs-list li::marker { color: var(--accent); }
.form-wrap { min-width: 0; }
.form-embed { max-width: none; border-radius: 24px; box-shadow: 0 30px 60px -40px rgba(60,20,30,.45); }
.form-embed iframe { height: 620px; min-height: 540px; }
.form-alt { color: var(--soft); font-size: .95rem; margin-top: 14px; }

/* Footer V7 */
.site-foot { position: relative; overflow: hidden; isolation: isolate; background: #0E0E10; color: #C9C6C0; margin-top: 80px; padding: 0; --fx: 50%; --fy: 50%; }
.foot-glow { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(420px 300px at var(--fx) var(--fy), rgba(248,194,58,.22), transparent 70%),
  radial-gradient(600px 400px at calc(var(--fx) - 20%) calc(var(--fy) + 30%), rgba(155,27,48,.35), transparent 70%); transition: background-position .2s; }
.site-foot::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--garnet), var(--ember), var(--gold), var(--ember), var(--garnet)); background-size: 200% 100%; animation: flow 6s linear infinite; }
@keyframes flow { to { background-position: 200% 0; } }
.foot-top { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; padding-top: 64px; padding-bottom: 20px; }
.foot-kicker { margin: 0 0 6px; color: var(--gold); font-weight: 700; font-size: .95rem; }
.foot-clock { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(3rem, 7vw, 5rem); line-height: 1; letter-spacing: -0.04em; color: #fff; font-variant-numeric: tabular-nums; }
.foot-status { margin: 10px 0 0; font-size: 1.1rem; color: #E6E3DE; min-height: 1.6em; }
.foot-nav { display: grid; grid-template-columns: repeat(3, auto); gap: 10px 26px; align-content: start; justify-content: end; }
.foot-nav a { color: #F1EFEA; text-decoration: none; font-weight: 600; padding: 4px 0; border-bottom: 2px solid transparent; transition: border-color .2s, color .2s; }
.foot-nav a:hover { color: var(--gold); border-color: var(--gold); }
.foot-word { padding: 8px 0 0; white-space: nowrap; overflow: hidden; text-align: center; }
.foot-word span { display: inline-block; font-family: var(--display); font-weight: 800; font-size: clamp(3.4rem, 13.5vw, 13rem); line-height: .9; letter-spacing: -0.05em;
  background: radial-gradient(260px 200px at var(--wx, -999px) var(--wy, 50%), var(--gold), var(--ember) 35%, rgba(255,255,255,.08) 70%);
  -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .12em; }
.foot-base { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 28px; border-top: 1px solid #26262B; }
.foot-base p { margin: 0; font-size: .95rem; }
.foot-top-btn { background: transparent; color: #fff; border: 2px solid #3A3A40; border-radius: 999px; padding: 10px 18px; font: 600 .95rem var(--body); cursor: pointer; transition: border-color .2s, color .2s, transform .2s; }
.foot-top-btn:hover { border-color: var(--gold); color: var(--gold); }

@media (max-width: 1100px) { .about { grid-template-columns: 1fr 280px; } }
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
  .about-side { position: static; order: -1; }
  .map-card { position: sticky; top: 0; z-index: 25; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-side { position: static; order: 2; }
  .foot-top { grid-template-columns: 1fr; }
  .foot-nav { grid-template-columns: repeat(2, auto); justify-content: start; }
}
@media (max-width: 700px) {
  .hx.compact .hx-me { height: 220px; }
  .progress { top: 0; }
  .about-side .about-card { display: none; }
  .map-card { padding: 8px 8px 4px; border-radius: 16px; box-shadow: 0 10px 24px -18px rgba(0,0,0,.4); }
  .map-cap { font-size: .9rem; }
  .rot-stage { min-height: 300px; }
  .kw-grid { columns: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; }
  .tumble { display: none; }
  .site-foot::before { animation: none; }
}

.story .chap { margin-bottom: 40px; }
.story .chap h2 { margin-top: 8px; }

.tw-host { position: relative; }
.tw-host .tumble { top: auto; bottom: 10px; z-index: 2; width: 64px; height: 64px; filter: drop-shadow(0 6px 6px rgba(0,0,0,.35)); }
@media (hover: none) { .foot-word span { background: linear-gradient(100deg, rgba(255,255,255,.08) 30%, var(--ember) 45%, var(--gold) 50%, var(--ember) 55%, rgba(255,255,255,.08) 70%); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; animation: wsweep 7s linear infinite; } }
@keyframes wsweep { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (max-width: 900px) { .map-card { position: static; } }

/* ===== V8 ===== */
/* Dog photos: fixed frame so Safari can't overflow it */
.dog-pic { position: relative; display: block; }
.dog-pic img { position: absolute; left: 4%; right: 4%; bottom: 0; top: 6%; width: 92%; height: 94%; max-width: none; max-height: none; object-fit: contain; object-position: center bottom; }
#luna .dog-pic img { top: 2%; height: 98%; }
#drey .dog-pic img { left: 0; width: 100%; top: 12%; height: 88%; object-position: right bottom; }

/* More dropdown */
.nav { align-items: center; }
.more { position: relative; }
.more summary { list-style: none; cursor: pointer; font-weight: 600; font-size: 1.05rem; padding: 10px 12px; border-radius: 10px; }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform .2s; }
.more[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.more summary:hover, .more.on summary { background: var(--gold); }
.more-menu { position: absolute; top: calc(100% + 8px); right: 0; min-width: 230px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 8px; box-shadow: 0 24px 50px -20px rgba(0,0,0,.35); display: grid; z-index: 80; }
.more-menu a { padding: 10px 14px !important; border-radius: 10px; }
.more[open] .more-menu { animation: drop .2s ease-out; }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }

/* Rachel featured recommendation */
.rec { position: relative; border-radius: 28px; padding: clamp(28px, 5vw, 52px); margin-bottom: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 30px 60px -45px rgba(60,20,30,.5); }
.rec::before { content: "\201C"; position: absolute; top: -30px; left: 26px; font-family: var(--display); font-size: 8rem; line-height: 1; color: var(--accent); }
.rec-who { margin-bottom: 18px; }
.rec-who b { display: block; font-family: var(--display); font-size: 1.4rem; }
.rec-who span { display: block; color: var(--soft); }
.rec-who .rec-src { font-size: .9rem; }
.rec-body { font-size: 1.2rem; line-height: 1.75; margin: 0 0 22px; max-width: 70ch; }
.rec-body mark { background: linear-gradient(transparent 55%, rgba(248,194,58,.65) 55%); color: inherit; font-weight: 600; padding: 0 2px; background-size: 0% 100%; background-repeat: no-repeat; transition: background-size 1.1s cubic-bezier(.2,.8,.2,1); }
.rec.shown mark { background-size: 100% 100%; }
.rec.shown mark:nth-of-type(2) { transition-delay: .4s; } .rec.shown mark:nth-of-type(3) { transition-delay: .8s; } .rec.shown mark:nth-of-type(4) { transition-delay: 1.2s; }

/* Map: scaled markers */
.m-route, .m-borders { vector-effect: non-scaling-stroke; }
.m-stop circle { stroke-width: 2px; }

/* View transitions between pages */
@view-transition { navigation: auto; }
.site-head { view-transition-name: site-head; }
.hx-band { view-transition-name: hero-band; }
.hx-me { view-transition-name: hero-me; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }
::view-transition-group(hero-me) { animation-duration: .55s; animation-timing-function: cubic-bezier(.2,.8,.2,1); }

@media (max-width: 900px) {
  .about-side .map-card { position: fixed; left: 12px; bottom: 12px; top: auto; right: auto; height: auto; width: 190px; z-index: 75; padding: 6px 6px 4px; box-shadow: 0 18px 40px -16px rgba(0,0,0,.45); opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .35s, transform .35s; }
  .about-side .map-card.live { opacity: 1; transform: none; }
  .about-side .map-cap { font-size: .8rem; margin: 2px 4px 0; }
  .about-side { display: none; }
  .about-side.has-map { display: block; height: 0; }
}
@media (max-width: 700px) {
  .more-menu { right: auto; left: 0; }
  .more summary { padding: 8px 10px; font-size: 1rem; }
  .rec-body { font-size: 1.08rem; }
}
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .rec-body mark { background-size: 100% 100%; transition: none; }
}

.rot-rachel { margin-top: 26px; }
.rot-who { margin: 0 0 14px; color: #F3D6DB; font-weight: 600; font-size: .98rem; }
.rot-more { display: inline-block; margin-top: 14px; color: #fff; font-weight: 700; }
.rot-more:hover { color: var(--gold); }
.rot-rachel .rot-stage { min-height: 160px; }
.rot-rachel .qc blockquote { font-size: clamp(1.25rem, 2.4vw, 1.75rem); max-width: 38ch; }

.rot-dots { gap: 2px; }
.rot-dots button { position: relative; width: 24px; height: 24px; background: transparent !important; }
.rot-dots button::after { content: ""; position: absolute; left: 7px; top: 7px; width: 10px; height: 10px; border-radius: 6px; background: rgba(255,255,255,.4); transition: width .3s, background .3s; }
.rot-dots button.on { width: 40px; }
.rot-dots button.on::after { width: 26px; background: var(--gold); }
.sr{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* ===== V9 ===== */
/* Quote cards link to the full letter or recommendation */
.qc-link { display: inline-block; margin-top: 10px; font-weight: 700; font-size: .95rem; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.qc-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.qc.has-link { transition: transform .3s, box-shadow .3s, border-color .3s; }
.qc.has-link:hover { transform: translateY(-3px); border-color: var(--garnet); box-shadow: 0 18px 40px -26px rgba(155,27,48,.6); }
.qc.has-link:hover .qc-link { color: var(--garnet-deep); }
.qc.inline .qc-link, .rotator .qc-link { color: var(--gold); }
.qc.inline.has-link:hover { box-shadow: 0 22px 44px -24px rgba(94,15,30,.8); }
.rotator .qc.has-link:hover { transform: none; box-shadow: none; }
.rotator .qc:not(.on) .qc-link::after { display: none; }
.rec { scroll-margin-top: 110px; }

/* Blog: General category */
:root { --c-general: #E0662F; }
.cat.c-general { border-color: var(--c-general); } .cat.on.c-general { background: var(--c-general); }
.lane.c-general, .post.c-general { --lc: var(--c-general); }

/* Footer weather */
.foot-wx { margin: 2px 0 6px; color: #C9C6C0; font-size: .95rem; min-height: 1.4em; }

/* About map: auto-playing trip */
.m-route { display: none; }
.m-leg { fill: none; stroke: var(--garnet); stroke-width: 4; stroke-linecap: round; vector-effect: none; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.3s cubic-bezier(.65,0,.35,1), stroke .6s, opacity .6s; }
.m-leg.on { stroke-dashoffset: 0; }
.m-leg.old { stroke: #E3A82B; stroke-dashoffset: 0; }
.trip.resetting .m-leg, .trip.resetting .m-stop { opacity: 0; }
.m-stop { opacity: 0; transition: opacity .5s; }
.m-stop.seen, .m-stop.now { opacity: 1; }
.m-stop .m-dot { fill: #E3A82B; stroke: #fff; stroke-width: 2px; transition: fill .5s; }
.m-stop.now .m-dot { fill: var(--garnet); }
.m-stop.hit circle, .m-stop.now circle { stroke: #fff; }
.m-stop .m-pulse { fill: none !important; stroke: var(--garnet) !important; stroke-width: 2px; opacity: 0; }
.m-stop.now .m-pulse { animation: mpulse 1.6s ease-out infinite; }
.m-label { transition: opacity .4s; }
.m-label.off { opacity: 0; }
.map-cap { transition: opacity .35s; }
.map-cap.swap { opacity: 0; }

/* Listening page */
.ls-toc { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 30px; }
.ls-sec { scroll-margin-top: 100px; margin-bottom: 44px; }
.ls-sec h2 { margin: 0 0 6px; }
.ls-note { color: var(--soft); margin: 0 0 20px; }
.pod { display: flex; flex-direction: column; padding: 20px 22px 16px; border: 1px solid transparent; transition: transform .3s, box-shadow .3s, border-color .3s, opacity .3s; }
.pod em { position: static; align-self: flex-start; margin-bottom: 10px; }
.pod-main { color: inherit; text-decoration: none; flex: 1; }
.pod-main::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.pod-main:hover { color: inherit; text-decoration: none; }
.pod-main b { display: block; font-family: var(--display); font-size: 1.2rem; letter-spacing: -0.01em; line-height: 1.25; margin-bottom: 4px; }
.pod-links { position: relative; z-index: 1; margin: 14px 0 0; font-size: .88rem; color: var(--soft); display: flex; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.pod-links a { font-weight: 700; color: var(--accent); }
.pod.fav .pod-links, .pod.fav .pod-main span { color: #C9C6C0; }
.pod.fav .pod-links a { color: var(--gold); }
.pod:hover, .pod.lit { transform: translateY(-3px); border-color: var(--garnet) !important; box-shadow: 0 18px 40px -26px rgba(155,27,48,.6); }
.pod.fav:hover, .pod.fav.lit { border-color: var(--gold) !important; box-shadow: 0 0 0 1px var(--gold), 0 18px 40px -24px rgba(0,0,0,.6); }
.music-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; list-style: none; padding: 0; margin: 0; }
.qc figcaption .qc-link { display: block; width: fit-content; margin-top: 12px; }
.foot-base { padding-right: 150px; }
@media (max-width: 700px) { .foot-base { padding-right: 0; padding-bottom: 70px; } }
.ls-toc { border-bottom: 0; padding-bottom: 0; }

/* ===== V10 ===== */
.map-year { margin: 2px 6px 6px; height: 1.5em; overflow: hidden; font-family: var(--display); font-weight: 700; font-size: 1.05rem; color: var(--accent); letter-spacing: -0.01em; }
.map-year span { display: inline-block; transition: transform .3s cubic-bezier(.4,0,.2,1), opacity .3s; }
.map-year span.out { transform: translateY(-100%); opacity: 0; }
.map-year span.in { transform: translateY(100%); opacity: 0; transition: none; }
@media (max-width: 900px) { .about-side .map-year { font-size: .85rem; margin: 0 4px 2px; } }
.mus-h { margin: 26px 0 12px; font-size: 1.15rem; }
.music-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.mus a { display: block; padding: 10px 10px 14px; border-radius: 18px; background: var(--mist); color: var(--ink); text-decoration: none; border: 1px solid transparent; height: 100%; transition: transform .3s, box-shadow .3s, border-color .3s; }
.mus img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 12px; margin-bottom: 10px; background: #e7e3dc; }
.mus b { display: block; font-family: var(--display); font-size: 1rem; line-height: 1.25; }
.mus span { color: var(--soft); font-size: .88rem; }
.mus a:hover, .mus.lit a { transform: translateY(-3px); border-color: var(--garnet); box-shadow: 0 18px 40px -26px rgba(155,27,48,.6); color: var(--ink); }
.mus.lit { border: 0 !important; box-shadow: none !important; }

/* ===== V11 ===== */
.m-stop.minor .m-dot { transform: scale(.65); }
.m-stop.minor .m-pulse { display: none; }
.ls-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.ls-head h2 { margin: 0; }
.btn.spot { background: #1DB954; color: #0b2b16; }
.btn.spot:hover { background: #1ed760; color: #0b2b16; }
.music-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.mus a { padding: 10px 10px 12px; }
.mus img { border-radius: 50%; }
.mus b { text-align: center; }
.songs { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; counter-reset: none; }
.songs a { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 16px; background: var(--mist); color: var(--ink); text-decoration: none; border: 1px solid transparent; transition: transform .3s, box-shadow .3s, border-color .3s; }
.songs a:hover { transform: translateY(-2px); border-color: var(--garnet); box-shadow: 0 16px 34px -26px rgba(155,27,48,.6); color: var(--ink); }
.songs .sn { flex: none; width: 28px; font-family: var(--display); font-weight: 800; font-size: 1.15rem; color: var(--accent); }
.songs .st { min-width: 0; }
.songs b { display: block; font-family: var(--display); font-size: 1rem; line-height: 1.25; }
.songs .st span { color: var(--soft); font-size: .88rem; }
.ls-sec + .ls-sec { margin-top: 56px; }
html, body { overflow-x: clip; }
@media (max-width: 900px) { .hx.home .hx-me { width: 100%; margin: 22px 0 0 0; } }
.more-menu { max-width: calc(100vw - 24px); }

/* ===== V12 ===== */
.ico { width: 1em; height: 1em; display: inline-block; vertical-align: -0.15em; flex: none; stroke-width: 2; }

/* Home: roles carousel, 3 up on desktop, 2 on tablet, 1 on phones */
.carousel { position: relative; }
.roles { display: grid !important; grid-auto-flow: column; grid-template-columns: none !important; grid-auto-columns: calc((100% - 36px) / 3);
  gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 6px 2px 14px; outline: none; }
.roles::-webkit-scrollbar { display: none; }
.role { scroll-snap-align: start; }
.role-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--gold-soft); color: var(--accent); font-size: 1.35rem; margin-bottom: 16px; transition: background .25s, color .25s; }
.role:hover .role-ico, .role.lit .role-ico { background: var(--garnet); color: #fff; }
.role.all { background: var(--surface) !important; color: var(--ink) !important; border: 2px solid var(--gold) !important; }
.role.all h3 { color: var(--ink) !important; }
.role.all p { color: var(--soft) !important; }
.role.all .more { color: var(--accent) !important; }
.role.all .role-ico { background: var(--gold); color: var(--on-light); }
.role.all:hover { border-color: var(--garnet) !important; }
.car-btn { position: absolute; top: 50%; translate: 0 -60%; z-index: 4; width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: grid; place-items: center; font-size: 1.4rem; cursor: pointer; box-shadow: 0 10px 26px -12px rgba(0,0,0,.35); transition: opacity .25s, background .2s, color .2s; }
.car-btn:hover { background: var(--garnet); color: #fff; border-color: var(--garnet); }
.car-btn.prev { left: -22px; } .car-btn.next { right: -22px; }
.car-btn[disabled] { opacity: 0; pointer-events: none; }
.swipe-status { display: flex !important; align-items: center; justify-content: center; gap: 12px; margin-top: 12px; color: var(--soft); font-size: 1rem; }
.swipe-status .dots { display: flex; gap: 6px; }
.swipe-status .dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: width .25s, background .25s; }
.swipe-status .dots i.on { background: var(--garnet); width: 22px; border-radius: 6px; }
@media (max-width: 1100px) { .roles { grid-auto-columns: calc((100% - 18px) / 2); } }
@media (max-width: 1240px) { .car-btn.prev { left: -8px; } .car-btn.next { right: -8px; } }
@media (max-width: 700px) {
  .roles { grid-auto-columns: 86%; margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 12px; scroll-padding-left: var(--gutter); }
  .car-btn { display: none; }
  .swipe-status { justify-content: flex-start; }
}

/* Home: kind words, one at a time */
.kq-flow { display: grid; gap: 26px; margin-top: 10px; }
.kq { position: relative; width: min(720px, 100%); display: grid; grid-template-columns: auto 1fr; gap: 6px 22px; align-items: start;
  padding: 30px 32px 28px; border-radius: 26px; text-decoration: none; color: #fff;
  background: linear-gradient(135deg, #5E0F1E, var(--garnet) 62%, #B8322B); box-shadow: 0 26px 50px -30px rgba(94,15,30,.75);
  transition: transform .35s, box-shadow .35s; }
.kq.left { justify-self: start; } .kq.right { justify-self: end; }
.kq:hover { color: #fff; transform: translateY(-4px); box-shadow: 0 32px 60px -28px rgba(94,15,30,.85); text-decoration: none; }
.kq-ico { grid-row: span 2; width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: var(--gold); color: #5E0F1E; font-size: 1.6rem; }
.kq blockquote { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.3; letter-spacing: -0.01em; color: #fff; }
.kq blockquote::before { content: "\201C"; color: var(--gold); margin-right: 2px; }
.kq blockquote::after { content: "\201D"; color: var(--gold); margin-left: 2px; }
.kq-who { grid-column: 2; margin-top: 14px; }
.kq-who b { display: block; color: var(--gold); font-size: 1.05rem; }
.kq-who span { color: #F6DCE1; font-size: .95rem; }
.js .kq.left[data-reveal] { transform: translateX(-48px); }
.js .kq.right[data-reveal] { transform: translateX(48px); }
.js .kq[data-reveal].shown { transform: none; }
.kq-all { margin-top: 30px; text-align: center; }
@media (max-width: 700px) {
  .kq { grid-template-columns: 1fr; padding: 24px 22px; }
  .kq-ico { grid-row: auto; width: 48px; height: 48px; font-size: 1.35rem; margin-bottom: 10px; }
  .kq-who { grid-column: 1; }
  .js .kq.left[data-reveal], .js .kq.right[data-reveal] { transform: translateY(26px); }
}

/* Home: built cards and team */
.card-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--gold-soft); color: var(--accent); font-size: 1.35rem; margin-bottom: 16px; }
.card.dark .card-ico { background: rgba(248,194,58,.16); color: var(--gold); }
.crew { grid-template-columns: repeat(4, 1fr) !important; }
.pup.lit { border-color: transparent !important; box-shadow: none !important; }
@media (max-width: 700px) { .crew { grid-template-columns: repeat(2, 1fr) !important; row-gap: 22px; } }

/* Resume icons */
.toc a .ico { font-size: 1.15rem; color: var(--accent); margin-bottom: 4px; }
.toc a.toc-pdf .ico { color: inherit; }
.rs-head { position: relative; }
.rs-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--garnet); color: #fff; font-size: 1.5rem; margin-bottom: 14px; }
.tl-body header { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tl-ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--gold-soft); color: var(--accent); font-size: 1.15rem; flex: none; }
.tl-item:hover .tl-ico, .tl-item.lit .tl-ico { background: var(--garnet); color: #fff; }
.edu .edu-ico { font-size: 1.6rem; color: var(--accent); margin-bottom: 8px; display: block; }

/* Team page */
.roster { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 0 0 36px; }
.roster a { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 16px 10px; border-radius: 20px; background: var(--mist); color: var(--ink); text-decoration: none; border: 1px solid transparent; transition: transform .25s, border-color .25s, box-shadow .25s; }
.roster a:hover { transform: translateY(-3px); border-color: var(--garnet); box-shadow: 0 16px 34px -26px rgba(155,27,48,.6); color: var(--ink); }
.rs-av { width: 76px; height: 76px; border-radius: 50%; overflow: hidden; background: var(--gold-soft); padding: 4px; margin-bottom: 6px; transition: background .25s; }
.roster a:hover .rs-av { background: var(--garnet); }
.rs-av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.roster b { font-family: var(--display); font-size: 1.15rem; }
.roster small { color: var(--soft); font-size: .88rem; }
@media (max-width: 700px) { .roster { grid-template-columns: repeat(2, 1fr); } .rs-av { width: 64px; height: 64px; } }
.dog-pic.photo { background: var(--mist); }
.dog-pic.photo img { inset: 0 !important; width: 100% !important; height: 100% !important; object-fit: cover !important; object-position: center 35% !important; filter: none !important; }

/* Listening */
.songs .sn { color: var(--accent); font-size: 1.2rem; width: auto; }

/* About map: soft slate states with white borders */
.m-land { fill: #D3DCE6; }
.m-borders { stroke: #fff; stroke-width: 1.4; }
.car-ctrl { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 8px; }
.car-ctrl .car-btn { position: static; translate: none; width: 44px; height: 44px; font-size: 1.2rem; }
.car-ctrl .car-btn[disabled] { opacity: .35; pointer-events: none; }
.car-ctrl .swipe-status { margin-top: 0; }
.roles { padding-bottom: 26px; }
@media (min-width: 701px) {
  .roles .role.lit { border-color: var(--line) !important; box-shadow: none !important; }
  .roles .role.all.lit { border-color: var(--gold) !important; }
  .roles .role.lit:not(:hover) .role-ico { background: var(--gold-soft); color: var(--accent); }
  .roles .role.all.lit:not(:hover) .role-ico { background: var(--gold); color: var(--on-light); }
}
@media (max-width: 700px) { .car-ctrl .car-btn { display: none; } .car-ctrl { justify-content: flex-start; } }
.tl-body header h3 { flex: 1 1 auto; text-align: left; margin: 0; min-width: 0; }
.tl-body header .when { margin-left: auto; }
/* Links on dark or garnet backgrounds keep their contrast on hover */
.qc.inline a:hover, .rotator a:hover, .rot-more:hover, .rec a:not(.btn):hover, .hx a:not(.btn):hover, .card.dark a:hover, .cta a:not(.btn):hover { color: #fff; }
.tl-stat, .tl-stat:hover { color: #fff; text-decoration: none; }

/* ===== Weather clock ===== */
.foot-clock { position: relative; display: inline-block; isolation: isolate; }
.foot-clock [data-clock] { position: relative; z-index: 2; }
.wx-canvas { position: absolute; z-index: 3; pointer-events: none; left: -40px; top: -60px; width: calc(100% + 80px); height: calc(100% + 90px); }
.wx-orb { position: absolute; z-index: 1; pointer-events: none; border-radius: 50%; opacity: 0; transition: opacity 1s; }
.wx-sun .wx-orb { opacity: 1; width: 170px; height: 170px; right: -40px; top: -55px;
  background: radial-gradient(circle, rgba(255,214,102,.95) 0 22%, rgba(248,194,58,.45) 36%, rgba(224,102,47,.12) 58%, transparent 70%);
  animation: sunpulse 5s ease-in-out infinite; }
.wx-sun .wx-orb::after { content: ""; position: absolute; inset: -30px; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(255,214,102,.22) 0 6deg, transparent 6deg 18deg);
  mask: radial-gradient(circle, transparent 30%, #000 38%, transparent 70%); -webkit-mask: radial-gradient(circle, transparent 30%, #000 38%, transparent 70%);
  animation: sunspin 40s linear infinite; }
.wx-moon .wx-orb { opacity: 1; width: 64px; height: 64px; right: -18px; top: -38px; background: radial-gradient(circle at 35% 35%, #FFF6DA, #E9DDB4 60%, #CFC193); box-shadow: 0 0 40px 8px rgba(255,240,200,.18); }
.wx-moon .wx-orb::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset -14px -6px 0 0 rgba(17,17,20,.88); }
.wx-sun [data-clock] { background: linear-gradient(100deg, #fff 0 40%, #FFE8A3 47%, #fff 52%, #fff 100%); background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: glint 4.5s ease-in-out infinite; }
.wx-wind [data-clock] { display: inline-block; animation: sway 3.2s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes sunpulse { 50% { transform: scale(1.08); filter: brightness(1.1); } }
@keyframes sunspin { to { transform: rotate(360deg); } }
@keyframes glint { 0%, 30% { background-position: 120% 0; } 70%, 100% { background-position: -20% 0; } }
@keyframes sway { 50% { transform: skewX(-3deg) translateX(2px); } }
@media (prefers-reduced-motion: reduce) { .wx-orb, .wx-orb::after, .wx-sun [data-clock], .wx-wind [data-clock] { animation: none !important; } .wx-canvas { display: none; } }
.qc.inline.has-link:hover .qc-link, .rotator .qc.has-link:hover .qc-link { color: #fff; }
.pup .ring { height: auto !important; aspect-ratio: 1 / 1 !important; overflow: hidden; }
.pup .ring img { object-fit: cover; display: block; }
@media (max-width: 700px) { .pup .ring { width: 136px !important; } }

/* ===== V13 ===== */
/* Nav: My work with a Resume sub-item */
.navdd { position: relative; display: inline-flex; align-items: center; }
.navdd > a { padding-right: 4px !important; }
.navdd .dd-tog { border: 0; background: none; color: inherit; cursor: pointer; padding: 6px 6px 6px 0; display: grid; place-items: center; font-size: .95rem; }
.navdd .dd-tog .ico { transition: transform .2s; }
.navdd:hover .dd-tog .ico, .navdd.open .dd-tog .ico { transform: rotate(180deg); }
.navdd.on > a { background: var(--gold); border-radius: 10px; }
.dd-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 190px; padding-top: 10px; z-index: 80; }
.dd-menu::before { content: ""; position: absolute; inset: 10px 0 0 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 50px -20px rgba(0,0,0,.35); z-index: -1; }
.dd-menu a { display: block; margin: 8px; padding: 10px 14px !important; border-radius: 10px; }
.navdd:hover .dd-menu, .navdd:focus-within .dd-menu, .navdd.open .dd-menu { display: block; animation: drop .2s ease-out; }
@media (hover: none) { .navdd:hover .dd-menu { display: none; } .navdd.open .dd-menu { display: block; } }

/* Role cards: logo, centered stat, button */
.role-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.role-top .role-ico { margin-bottom: 0; }
.role-logo { width: 40px; height: 40px; object-fit: contain; }
.role h3 { min-height: 2.3em; }
.role-stat { text-align: center; margin: 6px 0 14px; padding: 16px 10px; border-radius: 16px; background: var(--mist); }
.role .role-stat .stat { font-size: clamp(2.4rem, 3.4vw, 3rem); margin: 0; text-align: center; }
.role-stat .stat-label { margin: 6px 0 0; color: var(--soft); font-size: .95rem; line-height: 1.35; }
.role .blurb { flex: 1; }
.role-btn { align-self: flex-start; margin-top: auto; pointer-events: none; }
.role:hover .role-btn { background: var(--garnet-deep); }
.role .more { display: none; }
.role.all .role-btn { background: var(--gold); color: var(--on-light); }

/* Logos */
.logo-ico { background: #fff !important; border: 1px solid var(--line); padding: 6px; }
.logo-ico .logo { width: 100%; height: 100%; object-fit: contain; }
.toc-logo { width: 22px; height: 22px; object-fit: contain; margin-bottom: 4px; }
.edu-logo { width: 40px; height: 40px; object-fit: contain; display: block; margin-bottom: 8px; }
.kq-ico.has-logo { background: #fff; padding: 8px; }
.kq-ico .logo { width: 100%; height: 100%; object-fit: contain; }

/* Weather clock: soft edges, clear label */
.wx-canvas { -webkit-mask-image: radial-gradient(closest-side at 50% 55%, #000 55%, transparent 100%); mask-image: radial-gradient(closest-side at 50% 55%, #000 55%, transparent 100%); }
.foot-wx { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 9px; border-radius: 999px; background: rgba(255,255,255,.08); color: #E9E6E0; font-size: .95rem; margin: 6px 0 10px; }
.foot-wx:empty { display: none; }
.foot-wx .ico { color: var(--gold); font-size: 1.1rem; }

/* Hero spotlight: a warm pool of light behind the cutout and a soft halo on its edges,
   so small cutout imperfections melt into the glow */
.hx-me::before { content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: -18%; right: -18%; top: -6%; bottom: -4%;
  background:
    radial-gradient(ellipse 52% 46% at calc(50% + var(--mx, 0) * 30px) 46%, rgba(255,236,190,.55) 0%, rgba(248,194,58,.28) 38%, rgba(224,102,47,0) 72%),
    radial-gradient(ellipse 70% 30% at 50% 100%, rgba(255,214,140,.35), transparent 70%);
  filter: blur(6px); }
.hx-me::after { content: ""; position: absolute; inset: -30% -10% 40% -10%; z-index: -1; pointer-events: none;
  background: conic-gradient(from 180deg at 50% 0%, transparent 160deg, rgba(255,240,205,.16) 175deg, rgba(255,240,205,.22) 180deg, rgba(255,240,205,.16) 185deg, transparent 200deg);
  filter: blur(10px); opacity: .9; }
.hx-me img { filter: drop-shadow(0 0 1.5px rgba(255,236,200,.75)) drop-shadow(0 0 10px rgba(255,214,140,.35)) drop-shadow(0 20px 28px rgba(40,0,10,.38)) !important; }
.navdd .dd-tog { min-width: 30px; min-height: 36px; padding: 0 4px; margin-left: 2px; }
.navdd.on { background: var(--gold); border-radius: 10px; }
.navdd.on > a { background: none !important; }

/* ===== V14 ===== */
/* Text-style calls to action become real buttons */
.card .go, .letter em, .qc-link, .rot-more {
  display: inline-flex !important; align-items: center; gap: 6px; width: fit-content; margin-top: auto;
  padding: 9px 16px; border-radius: 999px; font-weight: 700; font-size: .95rem; font-style: normal;
  text-decoration: none !important; background: var(--garnet); color: #fff !important; transition: background .2s, transform .2s; }
.card .go::after, .letter em::after, .qc-link::before, .rot-more::after { content: "\2192"; }
.qc-link::before { order: 2; }
.card:hover .go, .letter:hover em, .qc.has-link:hover .qc-link, .rot-more:hover { background: var(--garnet-deep); transform: translateX(2px); }
.card.dark .go { background: var(--gold); color: var(--on-light) !important; }
.card.dark:hover .go { background: #ffd35c; }
.qc.inline .qc-link, .rotator .qc-link, .rot-more { background: var(--gold); color: var(--on-light) !important; }
.qc.inline.has-link:hover .qc-link, .rotator .qc.has-link:hover .qc-link, .rot-more:hover { background: #ffd35c; color: var(--on-light) !important; }
.qc figcaption .qc-link { margin-top: 14px; }
.letter em { margin-top: 12px; }

/* Org logos on the resume timeline and role pages */
.tl-stat { position: relative; }
.tl-logo { width: 46px; height: 46px; border-radius: 14px; background: #fff; padding: 6px; display: grid; place-items: center; margin-bottom: 14px; box-shadow: 0 8px 20px -10px rgba(0,0,0,.45); }
.tl-logo .logo { width: 100%; height: 100%; object-fit: contain; }
.meta-logo { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #fff; padding: 4px; margin-right: 10px; vertical-align: middle; box-shadow: 0 6px 16px -8px rgba(0,0,0,.5); }
.meta-logo .logo { width: 100%; height: 100%; object-fit: contain; }
.hx-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 0 4px; }

/* Home: where I've worked and learned */
.logo-strip { padding: 34px 0 6px; background: var(--surface); }
.logo-strip .ls-k { text-align: center; color: var(--soft); font-size: .95rem; margin: 0 0 16px; letter-spacing: .02em; }
.logo-strip ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 14px 34px; }
.logo-strip a { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-weight: 700; padding: 8px 14px 8px 8px; border-radius: 16px; transition: background .25s, transform .25s; }
.logo-strip a:hover { background: var(--mist); transform: translateY(-2px); color: var(--ink); }
.logo-strip .logo { width: 48px; height: 48px; object-fit: contain; filter: grayscale(1) contrast(.9); opacity: .75; transition: filter .3s, opacity .3s; }
.logo-strip a:hover .logo { filter: none; opacity: 1; }
@media (max-width: 700px) { .logo-strip ul { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; } .logo-strip a { font-size: .9rem; gap: 8px; } .logo-strip .logo { width: 38px; height: 38px; filter: none; opacity: 1; } }

/* Polish */
::selection { background: var(--gold); color: var(--on-light); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
[id] { scroll-margin-top: 96px; }
.qc figcaption .qc-link { display: flex !important; width: fit-content; }
.qc figcaption span { display: block; }
.logo-strip ul { gap: 10px 16px; flex-wrap: nowrap; }
@media (max-width: 1000px) { .logo-strip ul { flex-wrap: wrap; } }
.pod-links a { padding: 4px 11px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-size: .85rem; transition: background .2s, color .2s, border-color .2s; }
.pod-links a:hover { background: var(--garnet); color: #fff; border-color: var(--garnet); }
.pod.fav .pod-links a { background: rgba(255,255,255,.08); border-color: rgba(248,194,58,.5); color: var(--gold); }
.pod.fav .pod-links a:hover { background: var(--gold); color: var(--on-light); }
.pod-links { align-items: center; }
.logo-strip a span { white-space: nowrap; }
.logo-strip .logo { filter: none; opacity: 1; }
.logo-strip ul { gap: 8px 10px; }
@media (max-width: 1240px) { .logo-strip ul { flex-wrap: wrap; } }
@media (max-width: 700px) { .logo-strip a span { white-space: normal; } }

/* ===== V15 ===== */
.role-photos { margin: 8px 0 38px; display: grid; gap: 16px; }
.role-photos.rp-grid { grid-template-columns: 2fr 1fr; grid-template-rows: auto auto; }
.role-photos.rp-grid figure:first-child { grid-row: span 2; }
.role-photos figure { margin: 0; position: relative; border-radius: 22px; overflow: hidden; background: var(--mist); box-shadow: 0 22px 44px -30px rgba(0,0,0,.45); }
.role-photos img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.role-photos.rp-one img { aspect-ratio: 16 / 9; }
.role-photos.rp-grid figure:first-child img { aspect-ratio: auto; min-height: 100%; }
.role-photos figure:hover img { transform: scale(1.04); }
.role-photos figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 18px 14px; color: #fff; font-size: .95rem; font-weight: 600; background: linear-gradient(transparent, rgba(20,6,10,.78)); }
@media (max-width: 700px) { .role-photos.rp-grid { grid-template-columns: 1fr; } .role-photos.rp-grid figure:first-child { grid-row: auto; } .role-photos.rp-grid figure:first-child img { aspect-ratio: 4 / 3; } }
.dog-pic.wide-photo img { object-position: center 30% !important; }

/* Team page: Drey chases the cursor like a laser pointer */
.laser { position: fixed; z-index: 95; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; pointer-events: none; background: #ff2b2b; box-shadow: 0 0 6px 2px rgba(255,43,43,.9), 0 0 18px 6px rgba(255,43,43,.45); opacity: 0; transition: opacity .3s; }
.chaser { position: fixed; z-index: 94; width: 64px; height: 64px; margin: -32px 0 0 -32px; pointer-events: none; opacity: 0; transition: opacity .4s; will-change: transform; }
.chaser img { width: 100%; height: 100%; border-radius: 50%; border: 3px solid var(--gold); box-shadow: 0 10px 22px -8px rgba(0,0,0,.5); background: var(--gold); }
.chase-on .laser, .chase-on .chaser { opacity: 1; }
.chase-on { cursor: none; }
.chase-on a, .chase-on button { cursor: none; }
.chase-tip { position: fixed; z-index: 96; right: 18px; bottom: 90px; background: var(--chip); color: #fff; font-size: .9rem; padding: 8px 14px; border-radius: 999px; box-shadow: 0 12px 26px -12px rgba(0,0,0,.5); opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s; pointer-events: auto; cursor: pointer; border: 0; }
.chase-tip.show { opacity: 1; transform: none; }
/* Tennis ball instead of a laser */
.laser { width: 22px; height: 22px; margin: -11px 0 0 -11px;
  background: radial-gradient(circle at 35% 30%, #F4FF8A 0%, #D7EE2E 45%, #B5CC12 100%);
  box-shadow: 0 4px 8px -2px rgba(0,0,0,.35), inset -2px -3px 4px rgba(0,0,0,.15); overflow: hidden; }
.laser::before, .laser::after { content: ""; position: absolute; width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(255,255,255,.95); }
.laser::before { left: -13px; top: 0; }
.laser::after { right: -13px; top: 0; }
.role-photos figure.pano img { aspect-ratio: auto; height: auto; }

/* ===== V17 ===== */
/* Resume timeline: role photo on the right */
.tl-item { grid-template-columns: 210px 1fr 190px; }
.tl-pic { position: relative; display: block; overflow: hidden; background: radial-gradient(ellipse at 50% 85%, #F8C23A 0%, #E0662F 55%, #9B1B30 100%); }
.tl-pic img { position: absolute; left: 6%; right: 6%; bottom: 0; width: 88%; height: 92%; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 10px 14px rgba(40,0,10,.35)); transition: transform .5s cubic-bezier(.2,.8,.2,1); transform-origin: 50% 100%; }
.tl-item:hover .tl-pic img { transform: scale(1.06); }
@media (max-width: 900px) { .tl-item { grid-template-columns: 1fr; } .tl-pic { display: none; } }

/* Rotating home hero: tall photos sit smaller on phones */
@media (max-width: 900px) { .hx.home .hx-me.tall { width: auto !important; height: 360px !important; margin: 22px 0 0 auto !important; } }

/* Dog avatar reactions on hover */
@keyframes tilt { 0%,100% { transform: rotate(0); } 40% { transform: rotate(-14deg); } 70% { transform: rotate(-10deg); } }
@keyframes wag { 0%,100% { transform: rotate(0); } 20% { transform: rotate(8deg); } 40% { transform: rotate(-8deg); } 60% { transform: rotate(6deg); } 80% { transform: rotate(-4deg); } }
@keyframes hop { 0%,100% { transform: translateY(0) scale(1,1); } 30% { transform: translateY(-14px) scale(.96,1.04); } 55% { transform: translateY(0) scale(1.06,.94); } 75% { transform: translateY(-5px); } }
@keyframes nod { 0%,100% { transform: translateY(0); } 35% { transform: translateY(4px) rotate(2deg); } 65% { transform: translateY(-2px); } }
a[href$="#drey"]:hover img { animation: tilt .9s ease; }
a[href$="#luna"]:hover img { animation: wag .8s ease; }
a[href$="#rashida"]:hover img { animation: hop .8s ease; }
a[href$="#grant"]:hover .ring img, a[href$="#grant"]:hover .rs-av img { animation: nod .8s ease; }
@media (prefers-reduced-motion: reduce) { a[href^="/team/#"]:hover img, a[href^="#"]:hover img { animation: none !important; } }

/* Say hi chat bubble */
.say-hi { cursor: pointer; border: 0; font: inherit; }
.chat-pop { position: fixed; right: 18px; bottom: 84px; z-index: 72; width: min(340px, calc(100vw - 36px)); background: var(--surface); border-radius: 22px 22px 6px 22px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.45); padding: 18px 18px 16px; opacity: 0; transform: translateY(14px) scale(.96); transform-origin: 100% 100%; pointer-events: none; transition: opacity .25s, transform .3s cubic-bezier(.2,1.2,.4,1); }
.chat-pop.open { opacity: 1; transform: none; pointer-events: auto; }
.chat-pop .cp-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.chat-pop .cp-head img { width: 46px; height: 46px; border-radius: 50%; background: var(--gold); }
.chat-pop .cp-head b { display: block; font-family: var(--display); font-size: 1.1rem; }
.chat-pop .cp-head small { color: var(--soft); }
.chat-pop .cp-msg { background: var(--mist); border-radius: 4px 16px 16px 16px; padding: 12px 14px; margin: 0 0 14px; line-height: 1.45; }
.chat-pop .cp-actions { display: grid; gap: 8px; }
.chat-pop .cp-actions a { display: flex; align-items: center; justify-content: space-between; padding: 11px 14px; border-radius: 14px; background: var(--garnet); color: #fff; font-weight: 700; text-decoration: none; }
.chat-pop .cp-actions a.alt { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.chat-pop .cp-actions a:hover { background: var(--garnet-deep); color: #fff; }
.chat-pop .cp-actions a.alt:hover { background: var(--mist); color: var(--ink); }
.chat-pop .cp-x { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--mist); cursor: pointer; font-size: 1.1rem; line-height: 1; }
.chat-pop iframe { width: 100%; height: 420px; border: 0; border-radius: 14px; }

/* Birthday and gotcha day extras */
.bday-bar { position: relative; z-index: 5; background: linear-gradient(90deg, var(--gold), #FFD97A, var(--gold)); color: var(--on-light); text-align: center; font-weight: 700; padding: 10px 46px; font-size: 1rem; }
.bday-bar button { position: absolute; right: 12px; top: 50%; translate: 0 -50%; border: 0; background: rgba(0,0,0,.08); width: 30px; height: 30px; border-radius: 50%; cursor: pointer; }
.party { position: relative; }
.party::before { content: ""; position: absolute; z-index: 3; left: 50%; top: -14%; width: 34%; aspect-ratio: .8; translate: -50% 0; rotate: -12deg;
  background: repeating-linear-gradient(135deg, var(--garnet) 0 6px, var(--gold) 6px 12px); clip-path: polygon(50% 0, 100% 100%, 0 100%); pointer-events: none; }
.confetti { position: fixed; inset: 0; z-index: 99; pointer-events: none; }
/* Resume: section headers with a photo of the place */
.rs-head.has-ph { position: relative; overflow: hidden; border-radius: 24px; padding: 110px 28px 24px; margin-bottom: 22px; color: #fff; isolation: isolate;
  background: var(--ph) var(--pp, center) / cover no-repeat, var(--night); }
.rs-head.has-ph::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,6,10,.05) 0%, rgba(20,6,10,.35) 40%, rgba(40,6,14,.88) 100%); }
.rs-head.has-ph h2, .rs-head.has-ph h2 a { color: #fff; }
.rs-head.has-ph h2 a:hover { color: var(--gold); }
.rs-head.has-ph p { color: #F2E6E0; max-width: 70ch; }
.rs-head.has-ph .rs-ico { position: absolute; top: 20px; left: 24px; margin: 0; }
@media (max-width: 700px) { .rs-head.has-ph { padding: 96px 18px 18px; } }
.rs-head.has-ph a::after { color: var(--gold) !important; }

/* ===== Blog posts ===== */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin-bottom: 30px; }
.post { display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-top: 5px solid var(--lc, var(--garnet)); color: var(--ink); text-decoration: none; transition: transform .3s, box-shadow .3s; }
.post:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -26px rgba(155,27,48,.6); color: var(--ink); }
.post img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.post-in { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.post-cat { font-size: .85rem; font-weight: 700; color: var(--lc, var(--garnet)); }
.post h3 { margin: 6px 0 4px; font-family: var(--display); font-size: 1.35rem; line-height: 1.2; }
.post .post-date { color: var(--soft); font-size: .9rem; margin: 0 0 10px; }
.post p { margin: 0 0 16px; }
.post .go { margin-top: auto; }
.post.featured { grid-column: span 2; }
@media (max-width: 700px) { .post.featured { grid-column: auto; } }
.lanes.has-posts .lane-empty { display: none; }
.post-page { max-width: 760px; margin: 0 auto; }
.post-crumb { color: var(--soft); margin: 0 0 12px; }
.post-crumb .post-cat { font-weight: 700; }
.post-title { font-family: var(--display); font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 8px; }
.post-page > div > .post-date, .post-page .post-date { color: var(--soft); margin: 0 0 24px; }
.post-cover { margin: 0 0 26px; border-radius: 22px; overflow: hidden; }
.post-cover img { width: 100%; display: block; }
.post-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin: 0 0 28px; padding: 16px; border-radius: 18px; background: var(--mist); border-left: 5px solid var(--lc, var(--garnet)); }
.post-facts dt { font-size: .82rem; color: var(--soft); }
.post-facts dd { margin: 2px 0 0; font-weight: 700; }
.post-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin-top: 26px; }
.post-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; display: block; }
.post-note { color: var(--soft); font-size: .95rem; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.post-tags span { padding: 5px 12px; border-radius: 999px; background: var(--mist); font-size: .88rem; }
.post-facts.c-general, .post-crumb .c-general { --lc: var(--c-general); } .post-facts.c-tech, .post-crumb .c-tech { --lc: var(--c-tech); }
.post-facts.c-podcasts, .post-crumb .c-podcasts { --lc: var(--c-podcasts); } .post-facts.c-music, .post-crumb .c-music { --lc: var(--c-music); }
.post-facts.c-movies, .post-crumb .c-movies { --lc: var(--c-movies); } .post-facts.c-dogs, .post-crumb .c-dogs { --lc: var(--c-dogs); }
.post-facts.c-history, .post-crumb .c-history { --lc: var(--c-history); }
.post-crumb .post-cat { color: var(--lc, var(--garnet)); }
.post .go { display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 9px 16px; border-radius: 999px; background: var(--garnet); color: #fff; font-weight: 700; font-size: .95rem; }
.post .go::after { content: "\2192"; }
.post:hover .go { background: var(--garnet-deep); }
.post img[src=""] { display: none; }

/* ===== V19 ===== */
/* Home: stories strip */
.stories { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 28px 0 8px; }
.stories-k { grid-column: 1 / -1; margin: 0; font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.story-card { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.story-card:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -18px rgba(0,0,0,.35); color: var(--ink); text-decoration: none; }
.story-card > svg { flex: none; width: 34px; height: 34px; padding: 8px; box-sizing: content-box; border-radius: 14px; background: var(--mist); color: var(--accent); }
.story-card > span:not(.btn) { flex: 1; min-width: 0; }
.story-card b { display: block; font-family: var(--display); font-size: 1.08rem; line-height: 1.25; }
.story-card small { display: block; color: var(--soft); margin-top: 4px; }
.story-card .btn { flex: none; }
@media (max-width: 860px) { .stories { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .story-card { flex-wrap: wrap; } .story-card .btn { margin-left: 58px; } }

/* Case studies */
.case-body h2 { margin-top: 1.6em; }
.case-body ul { padding-left: 1.2em; }
.case-body li { margin-bottom: .5em; }

/* Ask Drey page */
.drey-tabs { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--mist); margin-bottom: 18px; }
.drey-tabs button { border: 0; font: inherit; font-weight: 700; padding: 10px 26px; min-height: 44px; border-radius: 999px; background: transparent; color: var(--ink); cursor: pointer; }
.drey-tabs button[aria-selected="true"] { background: var(--garnet); color: #fff; }
.drey-panel iframe { display: block; width: 100%; max-width: 100%; height: 688px; border: 0; border-radius: 20px; background: var(--mist); }
.drey-panel[hidden] { display: none; }

/* Contact: Ask Drey card */
.cs-drey { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--ink); text-decoration: none; background: var(--cream); }
.cs-drey:hover { color: var(--ink); text-decoration: none; box-shadow: 0 16px 30px -18px rgba(0,0,0,.35); }
.cs-drey img { width: 56px; height: 56px; border-radius: 50%; background: var(--gold); flex: none; }
.cs-drey > div { flex: 1; min-width: 180px; }
.cs-drey b { display: block; font-family: var(--display); font-size: 1.2rem; }
.cs-drey span:not(.btn) { color: var(--soft); font-size: .95rem; line-height: 1.45; }

/* Team: full names */
.fullname { display: block; margin-top: 4px; font-family: var(--body, inherit); font-size: 1rem; font-weight: 500; letter-spacing: 0; color: var(--soft); }

/* Home CTA: keep text clear of the peeking Drey */
.cta h2, .cta p, .cta .actions { position: relative; z-index: 1; }
.cta h2, .cta p { max-width: min(46ch, 55%); }
.cta h2 { max-width: min(16ch, 55%); overflow-wrap: break-word; }
.cta .peek { max-width: 44%; object-fit: contain; object-position: right bottom; }
@media (max-width: 700px) {
  .cta h2, .cta p { max-width: 100%; }
  .cta .peek { max-width: none; }
  .cta .peek { height: 150px; }
  .cta { padding-bottom: 170px; }
}

/* Team: full-body Drey chases the ball */
.chaser { width: 84px; height: 87px; margin: -80px 0 0 -42px; }
.chaser img { border: 0; border-radius: 0; background: none; box-shadow: none; object-fit: contain; filter: drop-shadow(0 8px 6px rgba(0,0,0,.25)); }

/* Chat bubble */
.chat-pop { width: min(380px, calc(100vw - 36px)); }
.chat-pop .cp-body { min-height: 60px; }
.chat-pop iframe { height: min(460px, calc(100vh - 300px)); min-height: 280px; background: var(--mist); }
.chat-pop .cp-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chat-pop .cp-actions .btn { flex: 1; justify-content: center; }
.chat-pop .cp-actions .btn { display: inline-flex; padding: 8px 14px; border-radius: 999px; font-weight: 700; }
.chat-pop .cp-actions .btn-primary { background: var(--garnet); color: #fff; border: 2px solid var(--garnet); }
.chat-pop .cp-actions .btn-primary:hover { background: var(--garnet-deep); border-color: var(--garnet-deep); color: #fff; }
.chat-pop .cp-actions .btn-ghost-dark { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.chat-pop .cp-actions .btn-ghost-dark:hover { background: var(--chip); color: #fff; }

/* ===== V20 ===== */
/* Ask Drey: round portrait floats inside the band instead of sitting on its edge */
.hx-me:has(img[src*="h-askdrey"]) { bottom: 11%; }
@media (max-width: 700px) { .hx-me:has(img[src*="h-askdrey"]) { bottom: 6%; } }
/* Chat bubble: once the agent loads, its own header replaces ours */
.chat-pop.agent { padding: 10px 10px 12px; }
.chat-pop.agent .cp-head { display: none; }
.chat-pop.agent iframe { height: min(540px, calc(100vh - 220px)); }
.chat-pop.agent .cp-x { top: 16px; right: 16px; z-index: 2; background: rgba(255,255,255,.9); }
.chat-pop.agent .cp-actions { margin-top: 10px; }
.chat-pop { z-index: 78; }
/* Contact: dog photo in the sidebar */
.cs-photo { margin: 0; border-radius: 22px; overflow: hidden; background: var(--mist); }
.cs-photo img { display: block; width: 100%; height: auto; aspect-ratio: 6 / 5; object-fit: cover; }
.cs-photo figcaption { padding: 10px 16px 12px; font-size: .92rem; color: var(--soft); }

/* ===== Fetch game ===== */
.fetch { max-width: 860px; margin: 0 auto; }
.fx-head h2 { margin: 0 0 6px; }
.fx-head p { margin: 0 0 18px; color: var(--soft); }
.fx-hud { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.fx-hud span { background: var(--mist); border-radius: 999px; padding: 6px 14px; font-size: .95rem; }
.fx-hud b { font-family: var(--display); font-size: 1.1rem; margin-left: 4px; }
.fx-stage { position: relative; border-radius: 22px; overflow: hidden; background: #2B2B2E; box-shadow: 0 24px 50px -28px rgba(0,0,0,.5); }
.fx-stage canvas { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; touch-action: none; cursor: crosshair; outline: none; }
.fx-stage canvas:focus-visible { box-shadow: inset 0 0 0 4px var(--gold); }
.fx-over { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; color: #fff;
  background: radial-gradient(70% 80% at 50% 40%, rgba(155,27,48,.55), rgba(20,20,22,.92)); }
.fx-over[hidden] { display: none; }
.fx-over h3 { font-family: var(--display); font-size: clamp(1.4rem, 3.4vw, 2rem); margin: 0 0 16px; color: #fff; }
.fx-over p { color: #E7E2DA; margin: 14px 0 0; }
.fx-over .btn-ghost { color: #fff; border-color: #fff; }
.fx-opts { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.fx-hint { min-height: 1.6em; margin: 14px 2px; font-weight: 600; }
.fx-bet[hidden] { display: none; }
.fx-dogs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.fx-dogs button { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 8px 12px; border-radius: 16px; border: 2px solid var(--line); background: var(--surface); font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; }
.fx-dogs button img { width: 38px; height: 38px; border-radius: 50%; background: var(--gold); }
.fx-dogs button[aria-pressed="true"] { border-color: var(--garnet); background: var(--rose); box-shadow: 0 0 0 2px var(--garnet) inset; }
.fx-calls { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fx-calls .btn { flex-direction: column; gap: 2px; line-height: 1.2; padding: 10px 12px; }
.fx-calls .btn small { font-weight: 500; font-size: .85rem; opacity: .85; }
.fx-calls .btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
@media (max-width: 560px) {
  .fx-dogs button { flex-direction: column; gap: 4px; font-size: .9rem; }
  .fx-calls .btn { font-size: .95rem; }
}
.fetch { max-width: 1060px; }
.fx-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 20px; align-items: start; }
.fx-side .fx-hint { margin-top: 0; min-height: 4.8em; }
.fx-side .fx-dogs { grid-template-columns: 1fr; }
.fx-side .fx-calls { grid-template-columns: 1fr; }
.fx-dogs button:disabled { cursor: default; }
.fx-dogs button:disabled:not([aria-pressed="true"]) { opacity: .55; }
@media (max-width: 860px) {
  .fx-wrap { grid-template-columns: 1fr; gap: 0; }
  .fx-side .fx-hint { min-height: 3.2em; margin-top: 12px; }
  .fx-side .fx-dogs { grid-template-columns: repeat(3, 1fr); }
  .fx-side .fx-calls { grid-template-columns: 1fr 1fr; }
}
/* Team page: real tennis ball sprite */
.laser { width: 26px; height: 26px; margin: -13px 0 0 -13px; background: url(/assets/img/tennis-ball.webp) center / contain no-repeat; box-shadow: none; overflow: visible; filter: drop-shadow(0 4px 4px rgba(0,0,0,.3)); }
.laser::before, .laser::after { content: none; }
/* Fetch v2 */
.fx-hud .fx-lvl { background: var(--garnet); color: #fff; font-weight: 700; }
.fx-hud [data-score-pill].up { animation: fxUp .7s ease; }
.fx-hud [data-score-pill].down { animation: fxDown .7s ease; }
@keyframes fxUp { 0% { transform: scale(1); } 30% { transform: scale(1.25); background: var(--gold); } 100% { transform: scale(1); } }
@keyframes fxDown { 0% { transform: scale(1); } 30% { transform: scale(1.2); background: var(--garnet); color: #fff; } 100% { transform: scale(1); } }
.fx-stage.shake { animation: fxShake .45s ease; }
@keyframes fxShake { 0%, 100% { transform: none; } 20% { transform: translateX(-10px); } 40% { transform: translateX(9px); } 60% { transform: translateX(-6px); } 80% { transform: translateX(4px); } }
.fx-rules { text-align: left; max-width: 480px; margin: 0 0 18px; padding-left: 1.2em; color: #E7E2DA; line-height: 1.45; }
.fx-rules li { margin-bottom: 6px; }
.fx-over > p b { color: var(--gold); }
.fx-shop { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: min(620px, 100%); margin: 14px 0 18px; }
.fx-shop button { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; text-align: left; padding: 12px 14px; border-radius: 16px; border: 2px solid rgba(255,255,255,.35); background: rgba(255,255,255,.08); color: #fff; font: inherit; cursor: pointer; }
.fx-shop button span { font-size: .88rem; color: #E7E2DA; }
.fx-shop button em { font-style: normal; font-weight: 700; color: var(--gold); margin-top: auto; }
.fx-shop button:hover:not(:disabled) { border-color: var(--gold); background: rgba(248,194,58,.12); }
.fx-shop button:disabled { opacity: .5; cursor: default; }
.fx-rank { font-weight: 700; color: var(--gold) !important; }
.fx-dn { background: var(--cream); border-radius: 16px; padding: 14px; margin-bottom: 12px; }
.fx-dn p { margin: 0 0 12px; }
.fx-dn[hidden] { display: none; }
.fx-board { margin-top: 18px; background: var(--mist); border-radius: 16px; padding: 14px 16px; }
.fx-board h3 { font-size: 1.05rem; margin: 0 0 8px; }
.fx-board ol { margin: 0 0 8px; padding-left: 1.4em; }
.fx-board li { display: flex; justify-content: space-between; gap: 10px; }
.fx-board li span { color: var(--soft); font-size: .9rem; }
.fx-board p { margin: 0; font-size: .9rem; color: var(--soft); }
.fx-board .fx-fine { margin-top: 6px; font-size: .8rem; }
@media (max-width: 560px) {
  .fx-shop { grid-template-columns: 1fr; }
  .fx-shop button span { display: none; }
  .fx-rules { font-size: .82rem; margin-bottom: 10px; }
  .fx-over h3 { margin-bottom: 8px; }
  .fx-over { padding: 14px; overflow: auto; justify-content: flex-start; }
}
@media (max-width: 560px) {
  /* Menus sit in the page on phones instead of squeezing over a small field */
  .fetch[data-mode="setup"] .fx-stage canvas, .fetch[data-mode="shop"] .fx-stage canvas, .fetch[data-mode="over"] .fx-stage canvas { display: none; }
  .fx-over { position: relative; inset: auto; padding: 22px 16px; }
  .fx-over[hidden] { display: none; }
}

/* ===== Dark mode ===== */
:root[data-theme="dark"] {
  --paper: #121214;
  --surface: #1C1C20;
  --mist: #24242A;
  --line: #3A3A43;
  --ink: #EEEBE6;
  --soft: #B9B4AD;
  --night: #0A0A0B;
  --accent: #F49AAA;
  --cream: #2E2716;
  --rose: #3B1C24;
  --head-bg: rgba(18, 18, 20, 0.9);
  --chip: #34343C;
  color-scheme: dark;
}
.theme-toggle { flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; padding: 0; }
.theme-toggle:hover { background: var(--mist); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
.site-head .wrap .theme-toggle { margin-left: 4px; }
/* Dark mode details */
:root[data-theme="dark"] img.logo, :root[data-theme="dark"] .logo-strip img { background: #fff; border-radius: 10px; padding: 6px; }
:root[data-theme="dark"] .cs-drey img, :root[data-theme="dark"] .fx-dogs button img { background: var(--gold); }
:root[data-theme="dark"] .btn-ghost-dark { color: var(--ink); border-color: var(--ink); }
:root[data-theme="dark"] .btn-ghost-dark:hover { background: var(--ink); color: var(--on-light); }
:root[data-theme="dark"] .fx-dogs button[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset; }
:root[data-theme="dark"] .chat-pop { box-shadow: 0 30px 60px -20px rgba(0,0,0,.8), 0 0 0 1px var(--line); }
:root[data-theme="dark"] .site-foot { border-top: 1px solid var(--line); }

/* Text that sits on gold stays dark in both themes */
.more summary:hover, .more.on summary, .navdd.on > a, .note, .note a, .toc a.toc-pdf, .toc a.toc-pdf b, .toc a.toc-pdf small { color: var(--on-light); }
.note a { text-decoration: underline; }
.card h2 { font-family: var(--display); font-size: 1.55rem; letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 10px; }
:root[data-theme="dark"] .say-hi, :root[data-theme="dark"] .chase-tip { box-shadow: 0 0 0 1px #4A4A54, 0 14px 30px -12px rgba(0,0,0,.7); }
:root[data-theme="dark"] .lane h2, :root[data-theme="dark"] .lane h3 { color: var(--ink); }
@media (max-width: 760px) {
  .site-head .wrap { position: relative; }
  .site-head .wrap .theme-toggle { position: absolute; top: 14px; right: var(--gutter); width: 40px; height: 40px; margin: 0; }
}
