/* ============================================================
   AmsoStat portfolio shell: wheel home + one page per section
   Loaded after main.css, which still supplies the shared
   components (cards, forms, modals, testimonials, studio).
   ============================================================ */
:root {
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --home-ink: #EAF2FA;
  --home-muted: #9FB3CA;
  --page: #F4F7FB;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-pop: cubic-bezier(.2, .9, .25, 1.18);
}

html.js { scroll-behavior: auto; }
html.js, html.js body { background: #F6F4EF; }
html.js.in-view, html.js.in-view body { background: var(--page); }
body { overflow-x: hidden; }

/* ------------------------------------------------------------
   HOME (v2): light, editorial, a little off-balance on purpose
   ------------------------------------------------------------ */
:root {
  --paper: #F6F4EF;
  --h-ink: #14263A;
  --h-ink-2: #2B3F52;
  --h-soft: #5E6E7D;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
}

.home {
  position: relative; min-height: 100vh; min-height: 100dvh; isolation: isolate;
  display: flex; flex-direction: column; color: var(--h-ink); background: var(--paper);
}
/* paper grain */
.home::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .08 0 0 0 0 .12 0 0 0 0 .16 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.js .home { position: fixed; inset: 0; z-index: 1; overflow-y: auto; overflow-x: hidden; }
/* display:none, not visibility: children that set visibility:visible (the preview card) would show through */
.js.home-away .home { display: none; }

/* moving art: soft colour washes + one ink line with a heartbeat in it */
/* the moving art belongs to the first screen only; the dashboard below sits on plain paper */
.home-art { position: absolute; inset: 0 0 auto 0; height: 100vh; height: 100dvh; z-index: -2; overflow: hidden; pointer-events: none; }
.washes { position: absolute; inset: -10%;
  transform: translate(calc(var(--px, 0) * -26px), calc(var(--py, 0) * -20px)); transition: transform 1.2s var(--ease-out); }
.wash { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .75; }
.wash--a { width: 46vw; height: 46vw; right: 2%; top: 6%; background: radial-gradient(circle, #CFE9E4 0%, rgba(207, 233, 228, 0) 68%);
  animation: wash-a 26s ease-in-out infinite alternate; }
.wash--b { width: 34vw; height: 34vw; left: 6%; bottom: 0%; background: radial-gradient(circle, #F4DDD2 0%, rgba(244, 221, 210, 0) 68%);
  animation: wash-b 31s ease-in-out infinite alternate; }
.wash--c { width: 28vw; height: 28vw; right: 26%; bottom: 8%; background: radial-gradient(circle, #DCE5F3 0%, rgba(220, 229, 243, 0) 68%);
  animation: wash-c 23s ease-in-out infinite alternate; }
@keyframes wash-a { to { transform: translate(-6vw, 5vh) scale(1.12); } }
@keyframes wash-b { to { transform: translate(8vw, -6vh) scale(.9); } }
@keyframes wash-c { to { transform: translate(-5vw, -8vh) scale(1.18); } }
.inkline { position: absolute; inset: 0; width: 100%; height: 100%; }
.ink { fill: none; stroke: var(--h-ink); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; opacity: .3;
  vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; animation: ink-draw 2.6s cubic-bezier(.6, 0, .2, 1) .3s forwards; }
@keyframes ink-draw { to { stroke-dashoffset: 0; } }
.ink-dot { fill: #0E7F77; opacity: 0; animation: fade-in .6s ease 2.2s forwards; }

/* top bar */
.home-top { display: flex; align-items: center; justify-content: space-between;
  padding: clamp(1rem, 2.4vw, 1.6rem) clamp(1.2rem, 4vw, 3.4rem) 0; }
.home-brand { display: inline-flex; border-radius: 10px; }
.home-brand .brand-mark { width: 34px; height: 34px; border-radius: 9px; transition: transform .5s var(--ease-pop); }
.home-brand:hover .brand-mark { transform: rotate(-8deg) scale(1.05); }
.home-actions { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 1.8rem); }
.home-link { position: relative; color: var(--h-ink-2); text-decoration: none; font-weight: 500; font-size: .94rem; padding: .3rem 0; }
.home-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease-out); }
.home-link:hover::after, .home-link:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.home-link--strong { color: var(--h-ink); font-weight: 600; }
.home-link--strong::after { transform: scaleX(1); opacity: .25; }
.home-link--strong:hover::after { opacity: 1; }

/* composition: big name top-left, wheel pushed right, preview tucked in under the intro */
.home-main { flex: 1; width: 100%; max-width: 1560px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); grid-template-rows: 1fr auto;
  column-gap: clamp(1rem, 3vw, 3rem); padding: 0 clamp(1.2rem, 4vw, 3.4rem); }
.home-intro { grid-column: 1; grid-row: 1; align-self: center; padding-top: clamp(.25rem, 2vh, 1.2rem); }
.home-eyebrow { display: flex; align-items: center; gap: .75rem; font-size: .72rem; font-weight: 600; letter-spacing: .24em;
  text-transform: uppercase; color: var(--h-soft); margin-bottom: 1.2rem; }
.home-eyebrow::before { content: ""; width: 28px; height: 1.5px; background: #0E7F77; }
.home-intro h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(3.4rem, 6.6vw, 6.7rem); line-height: .86;
  letter-spacing: -.02em; color: var(--h-ink); margin-bottom: 1.25rem; }
.home-intro h1 span, .home-intro h1 em { display: block; }
.home-intro h1 em { font-style: italic; color: #0E7F77; padding-left: .78em; }
.home-role { font-size: clamp(1.02rem, 1.25vw, 1.15rem); font-weight: 500; color: var(--h-ink-2); max-width: 30ch;
  line-height: 1.45; margin-bottom: .75rem; }
.home-blurb { font-size: .95rem; color: var(--h-soft); max-width: 42ch; line-height: 1.6; margin-bottom: 1.2rem; }
.home-avail { display: inline-flex; align-items: center; gap: .6rem; font-size: .84rem; font-weight: 500; color: var(--h-ink-2);
  white-space: nowrap; }
.home-avail .pulse { width: 7px; height: 7px; border-radius: 50%; background: #1C978E; animation: pulse 2.4s infinite;
  box-shadow: 0 0 0 0 rgba(28, 151, 142, .55); }

.home-foot { padding: .6rem clamp(1.2rem, 4vw, 3.4rem) 1.1rem; }
.venues { font-size: .8rem; color: var(--h-soft); max-width: 72ch; }
.venues span { font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--h-ink-2); margin-right: .25rem; }

/* ------------------------------------------------------------
   THE WHEEL: petals of different widths and lengths, tilted
   ------------------------------------------------------------ */
.wheel-wrap { grid-column: 2; grid-row: 1 / 3; align-self: center; justify-self: center; position: relative;
  width: min(100%, calc(100dvh - 150px), 640px); aspect-ratio: 1;
  translate: calc(4% + var(--px, 0) * 10px) calc(2% + var(--py, 0) * 8px); transition: translate 1.2s var(--ease-out); }
.wheel { width: 100%; height: 100%; display: block; overflow: visible; animation: sway 16s ease-in-out infinite alternate; }
@keyframes sway { from { transform: rotate(-1.4deg); } to { transform: rotate(1.4deg); } }
.wheel-petals { filter: drop-shadow(0 22px 34px rgba(20, 38, 58, .1)); }

.petal { cursor: pointer; outline: none; transform-box: view-box; transform-origin: 50% 50%;
  transition: transform .55s var(--ease-pop), opacity .35s ease; }
.petal-shape { fill: var(--rest); stroke: var(--rest); stroke-width: 12; stroke-linejoin: round;
  transition: fill .4s ease, stroke .4s ease; }
.petal-edge { fill: none; stroke: none; pointer-events: none; }
.petal-icon { color: var(--h-ink-2); fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round;
  stroke-linejoin: round; pointer-events: none; transition: color .35s ease; }
.petal-label { fill: var(--h-ink-2); font-family: var(--font-body); font-weight: 600; font-size: 11.5px; letter-spacing: .01em;
  text-anchor: middle; pointer-events: none; transition: fill .35s ease; }
.wheel.has-selection .petal:not(.is-active) { opacity: .5; }
.petal.is-active { transform: translate(var(--tx), var(--ty)); }
.petal.is-active .petal-shape { fill: var(--on); stroke: var(--on); }
.petal.is-active .petal-icon { color: #fff; }
.petal.is-active .petal-label { fill: #fff; }
.petal:focus-visible .petal-edge { stroke: var(--h-ink); stroke-width: 2; stroke-dasharray: 5 4; }
.petal.is-sweep { transform: translate(calc(var(--tx) * .45), calc(var(--ty) * .45)); }
.petal.is-sweep .petal-shape { fill: color-mix(in srgb, var(--on) 30%, var(--rest)); stroke: color-mix(in srgb, var(--on) 30%, var(--rest)); }

.wheel-hub { cursor: pointer; }
.hub-ring { fill: #fff; stroke: rgba(20, 38, 58, .08); stroke-width: 1; }
.hub-pulse { fill: none; stroke: #1C978E; stroke-width: 1.2; opacity: 0; transform-box: view-box; transform-origin: 50% 50%;
  animation: heartbeat 2.6s ease-out infinite 2.4s; }
@keyframes heartbeat { 0% { opacity: .55; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.15); } }
.wheel-hub image { transition: transform .5s var(--ease-out); transform-box: view-box; transform-origin: 50% 50%; }
.wheel-hub:hover image { transform: scale(1.04); }

/* bloom in from the centre, one petal after another */
.wheel.is-intro .petal { animation: petal-in 1s var(--ease-out) both; animation-delay: calc(var(--i) * 80ms + 250ms); }
.wheel.is-intro .wheel-hub { animation: fade-in .8s ease both .1s; }
@keyframes petal-in { from { opacity: 0; transform: scale(.5) rotate(-14deg); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ------------------------------------------------------------
   PREVIEW CARD
   ------------------------------------------------------------ */
.preview { grid-column: 1; grid-row: 2; display: grid; justify-self: start; width: min(400px, 100%);
  margin: 0 0 clamp(.6rem, 2vh, 1.6rem) clamp(0rem, 7vw, 8rem); }
.pv-item { grid-area: 1 / 1; align-self: end; display: flex; flex-direction: column; gap: .55rem;
  padding: 1.15rem 1.3rem 1.2rem; border-radius: 24px; background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid rgba(20, 38, 58, .07); box-shadow: 0 26px 50px rgba(20, 38, 58, .09);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .35s ease, transform .5s var(--ease-out), visibility 0s linear .35s; }
.pv-item.is-shown { opacity: 1; visibility: visible; transform: none;
  transition: opacity .35s ease, transform .5s var(--ease-out), visibility 0s; }
.pv-kicker { font-size: .7rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--h-soft); }
.pv-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px;
  background: var(--t); color: var(--c); }
.pv-title { font-family: var(--serif); font-weight: 400; font-size: 1.62rem; line-height: 1.04; letter-spacing: -.01em; color: var(--h-ink); }
.pv-desc { font-size: .88rem; color: var(--h-soft); line-height: 1.5; }
.pv-note { font-size: .82rem; color: var(--h-ink-2); padding-top: .7rem; border-top: 1px solid rgba(20, 38, 58, .08); }
.pv-chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.pv-chips li { font-size: .74rem; font-weight: 600; color: var(--h-ink-2); border: 1px solid rgba(20, 38, 58, .12);
  border-radius: var(--pill); padding: .2rem .65rem; }
.pv-open { align-self: flex-start; display: inline-flex; align-items: center; gap: .45rem; margin-top: .15rem;
  font-weight: 600; font-size: .92rem; color: var(--c); text-decoration: none; padding-bottom: .15rem;
  border-bottom: 1.5px solid currentColor; transition: gap .25s ease; }
.pv-open:hover { gap: .75rem; }
.hint-touch { display: none; }
@media (hover: none) { .hint-hover { display: none; } .hint-touch { display: inline; } }

/* ------------------------------------------------------------
   HOME: responsive
   ------------------------------------------------------------ */
@media (max-height: 820px) and (min-width: 900px) {
  .home-blurb { display: none; }
  .home-intro h1 { font-size: clamp(3.4rem, 6.4vw, 6rem); margin-bottom: 1.1rem; }
  .pv-item { padding: 1.1rem 1.2rem 1.15rem; gap: .55rem; }
  .pv-title { font-size: 1.55rem; }
  .preview { margin-bottom: .5rem; }
}
@media (max-width: 1099px) and (min-width: 900px) {
  .home-main { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .preview { margin-left: 0; }
  .home-intro h1 em { padding-left: .5em; }
}
@media (max-width: 899px) {
  .home-main { grid-template-columns: 1fr; grid-template-rows: none; row-gap: 1.2rem; padding-bottom: 1rem; }
  .home-intro, .wheel-wrap, .preview { grid-column: auto; grid-row: auto; }
  .home-intro { padding-top: 1.4rem; }
  .wheel-wrap { width: min(100%, 520px); translate: 2% 0; }
  .preview { width: min(100%, 520px); margin: 0 auto; justify-self: center; }
  .pv-item { align-self: start; }
}
@media (max-width: 560px) {
  .home-intro h1 { font-size: 3.5rem; margin-bottom: 1rem; }
  .home-blurb { display: none; }
  .home-role { font-size: 1rem; }
  .home-avail { font-size: .78rem; }
  .petal-label { font-size: 17px; }
  .wheel-wrap { width: calc(100% + 1.4rem); margin-inline: -.7rem; translate: 0 0; }
  .venues { font-size: .74rem; }
}
@media (prefers-reduced-motion: reduce) {
  .wash, .wheel, .hub-pulse, .home-avail .pulse, .wheel.is-intro .petal, .wheel.is-intro .wheel-hub { animation: none !important; }
  .ink { animation: none; stroke-dashoffset: 0; }
  .ink-dot { display: none; }
  .washes, .wheel-wrap, .petal, .pv-item { transition: none; }
}


/* ------------------------------------------------------------
   SECTION VIEWS
   ------------------------------------------------------------ */
.views { position: relative; z-index: 2; }
.js .views { display: none; }
.js.in-view .views { display: block; }
.js .view { display: none; }
.js .view.is-active { display: block; }
.view { background: var(--page); color: var(--text); position: relative; }
.view::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 520px; pointer-events: none;
  background: radial-gradient(700px 380px at 92% -10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%); }
.views-stage { background: var(--page); }

/* transitions */
.views { background: var(--page); }
.views.is-revealing { animation: view-reveal .75s cubic-bezier(.65, 0, .25, 1) both; }
@keyframes view-reveal {
  from { clip-path: circle(0 at var(--ox, 50%) var(--oy, 50%)); }
  to   { clip-path: circle(150vmax at var(--ox, 50%) var(--oy, 50%)); }
}
.view.is-entering-next { animation: slide-in-r .5s var(--ease-out) both; }
.view.is-entering-prev { animation: slide-in-l .5s var(--ease-out) both; }
@keyframes slide-in-r { from { opacity: 0; transform: translateX(36px); } to { opacity: 1; transform: none; } }
@keyframes slide-in-l { from { opacity: 0; transform: translateX(-36px); } to { opacity: 1; transform: none; } }
.views.is-leaving { animation: fade-out .3s ease both; }
@keyframes fade-out { to { opacity: 0; } }
.view.is-active .vhead { animation: rise .7s var(--ease-out) both .08s; }
.view.is-active .vbody { animation: rise .7s var(--ease-out) both .18s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* top bar */
.vbar { position: sticky; top: 0; z-index: 60; height: 64px; display: flex; align-items: center; gap: 1rem;
  padding: 0 clamp(.8rem, 2.5vw, 2rem); background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border); }
.vbar-home { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--navy);
  font-family: var(--font-display); font-weight: 600; font-size: .98rem; flex: none; border-radius: 10px; }
.mini-wheel { width: 38px; height: 38px; display: block; transition: transform .5s var(--ease-pop); }
.vbar-home:hover .mini-wheel { transform: rotate(-45deg) scale(1.08); }
.mw-petal { opacity: .22; transition: opacity .3s ease; }
.mw-petal.is-current { opacity: 1; }
.mw-hub { fill: var(--navy); }
.vbar-index { flex: 1; display: flex; justify-content: center; min-width: 0; }
.vbar-index ol { display: flex; gap: .15rem; list-style: none; padding: .25rem; margin: 0;
  background: var(--alt); border: 1px solid var(--border); border-radius: var(--pill); }
.vi { display: inline-flex; align-items: center; gap: 0; padding: .42rem .62rem; border-radius: var(--pill);
  text-decoration: none; color: var(--muted); font-size: .84rem; font-weight: 600; white-space: nowrap;
  transition: background .25s ease, color .25s ease, gap .3s ease; }
.vi-n { display: grid; place-items: center; }
.vi-icon { display: block; }
.vi-l { max-width: 0; overflow: hidden; opacity: 0; transition: max-width .35s var(--ease-out), opacity .25s ease; }
.vi:hover, .vi:focus-visible { color: var(--navy); background: #fff; gap: .4rem; }
.vi:hover .vi-l, .vi:focus-visible .vi-l { max-width: 9rem; opacity: 1; }
.vi.is-current { background: var(--navy); color: #fff; gap: .45rem; }
.vi.is-current .vi-l { max-width: 9rem; opacity: 1; }
.vi.is-current .vi-n { color: #7FE0D6; }
.vbar-current { display: none; margin: 0; font-weight: 600; color: var(--navy); font-size: .95rem; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vbar-current { align-items: center; gap: .5rem; }
.vbar-cn { display: inline-grid; place-items: center; color: var(--accent, var(--teal-600)); }
.vbar-cn svg { width: 18px; height: 18px; }
.vbar-step { display: flex; gap: .4rem; flex: none; }
.vstep { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--navy);
  border: 1px solid var(--border-2); background: #fff; transition: background .2s, color .2s, border-color .2s; }
.vstep:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* view layout */
.vwrap { max-width: 1180px; margin: 0 auto; padding: clamp(2rem, 5vw, 3.6rem) clamp(1rem, 3vw, 2rem) clamp(2rem, 4vw, 3rem);
  position: relative; }
.vhead { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: .2rem clamp(1rem, 3vw, 2.4rem);
  margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }
.vnum { display: grid; place-items: center; width: clamp(5.2rem, 9vw, 7.2rem); aspect-ratio: 1; border-radius: 30%;
  color: var(--accent); background: color-mix(in srgb, var(--accent-2) 70%, #fff);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent); user-select: none; }
.vnum-icon { width: 54%; height: 54%; }
.view.is-active .vnum-icon { animation: icon-draw 1.1s var(--ease-out) both .15s; }
@keyframes icon-draw { from { opacity: 0; transform: scale(.8) rotate(-8deg); } to { opacity: 1; transform: none; } }
.vkicker { font-family: var(--mono); font-size: .76rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--accent-ink); margin-bottom: .7rem; display: flex; align-items: center; gap: .7rem; }
.vkicker::after { content: ""; flex: 0 0 34px; height: 1.5px; background: var(--accent); }
.vhead h2 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); line-height: 1.04; letter-spacing: -.03em; margin-bottom: .75rem;
  outline: none; }
.vlead { color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.1rem); max-width: 68ch; }
.vlead strong { color: var(--navy); }
.vnote { color: var(--muted); font-size: .88rem; margin-top: 1.4rem; max-width: 80ch; }
.panel-hint { color: var(--muted); font-size: .92rem; margin-bottom: 1.1rem; }

/* pager + footer */
.vpager { max-width: 1180px; margin: 0 auto; padding: 0 clamp(1rem, 3vw, 2rem) 1.5rem;
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: center; }
.vpg { display: flex; flex-direction: column; gap: .2rem; padding: 1rem 1.2rem; border-radius: 16px; text-decoration: none;
  background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.vpg:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--accent, var(--teal)); }
.vpg--next { text-align: right; align-items: flex-end; }
.vpg-k { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--mono); font-size: .72rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.vpg-t { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; color: var(--navy); }
.vpg-home { font-weight: 600; font-size: .88rem; color: var(--muted); text-decoration: none; padding: .5rem .9rem;
  border-radius: var(--pill); border: 1px dashed var(--border-2); white-space: nowrap; }
.vpg-home:hover { color: var(--navy); border-color: var(--navy); }
.vfoot { max-width: 1180px; margin: 0 auto; padding: 1.2rem clamp(1rem, 3vw, 2rem) 2rem; display: flex; flex-wrap: wrap;
  justify-content: space-between; gap: .5rem; border-top: 1px solid var(--border); }
.vfoot p { font-size: .8rem; color: var(--muted-light); color: #7F93AB; }

/* tabs */
.tablist { display: inline-flex; flex-wrap: wrap; gap: .25rem; padding: .3rem; margin-bottom: 1.5rem;
  background: #fff; border: 1px solid var(--border); border-radius: var(--pill); box-shadow: var(--shadow-sm); }
.tab { display: inline-flex; align-items: center; gap: .45rem; padding: .58rem 1.15rem; border: 0; background: none;
  border-radius: var(--pill); cursor: pointer; font-family: var(--font-body); font-weight: 600; font-size: .92rem;
  color: var(--muted); transition: background .2s ease, color .2s ease; }
.tab:hover { color: var(--navy); background: var(--alt); }
.tab[aria-selected="true"] { background: var(--navy); color: #fff; }
.tab-n { font-family: var(--mono); font-size: .7rem; padding: .05rem .42rem; border-radius: var(--pill);
  background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent-ink); }
.tab[aria-selected="true"] .tab-n { background: rgba(255, 255, 255, .15); color: #fff; }
.tabpanel { outline: none; }
.tabpanel:not([hidden]) { animation: rise .45s var(--ease-out) both; }
.tabpanel:focus-visible, .role-panel:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; border-radius: 12px; }

/* ---------- 01 about ---------- */
.about2 { display: grid; grid-template-columns: minmax(220px, 320px) 1fr; gap: clamp(1.8rem, 4vw, 3.4rem); align-items: start; }
.about2-photo { margin: 0; position: relative; }
.about2-photo::before { content: ""; position: absolute; inset: 14px -14px -14px 14px; border-radius: 26px;
  border: 1.5px solid var(--accent); opacity: .7; }
.about2-photo img { position: relative; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 24px;
  box-shadow: var(--shadow-md); }
.about2-copy p { color: var(--muted); margin-bottom: 1rem; max-width: 64ch; }
.about2-copy .about2-lede { font-family: var(--font-display); font-size: clamp(1.12rem, 1.6vw, 1.3rem); line-height: 1.5;
  color: var(--navy); font-weight: 500; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin: 1.6rem 0 1.6rem; }
.facts div { padding: 1rem 1.1rem; background: #fff; border: 1px solid var(--border); border-radius: 16px;
  box-shadow: var(--shadow-sm); }
.facts dt { font-family: var(--mono); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-ink);
  margin-bottom: .35rem; }
.facts dd strong { display: block; font-family: var(--font-display); color: var(--navy); font-size: 1.02rem; line-height: 1.3; }
.facts dd span { display: block; color: var(--muted); font-size: .84rem; margin-top: .15rem; }
.about2-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.about2-actions .btn svg { flex: none; }
.view .about-more { margin-top: 2.4rem; }

/* ---------- 02 experience ---------- */
.roles { display: grid; grid-template-columns: minmax(250px, 320px) 1fr; gap: 1.4rem; align-items: start; }
.role-list { display: grid; gap: .55rem; }
.role-tab { display: grid; gap: .1rem; text-align: left; padding: .95rem 1.05rem; border-radius: 16px; cursor: pointer;
  background: transparent; border: 1px solid var(--border); font-family: var(--font-body);
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease; position: relative; }
.role-tab:hover { background: #fff; border-color: var(--border-2); }
.role-tab[aria-selected="true"] { background: #fff; border-color: var(--accent); box-shadow: var(--shadow-md); }
.role-tab[aria-selected="true"]::before { content: ""; position: absolute; left: -1px; top: 14px; bottom: 14px; width: 3px;
  border-radius: 3px; background: var(--accent); }
.role-tab:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.rt-role { font-family: var(--font-display); font-weight: 600; color: var(--navy); font-size: 1rem; }
.rt-org { font-size: .86rem; color: var(--accent-ink); font-weight: 600; }
.rt-date { font-family: var(--mono); font-size: .72rem; color: var(--muted); letter-spacing: .04em; margin-top: .15rem; }
.role-panel { background: #fff; border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow-sm);
  padding: clamp(1.3rem, 3vw, 2rem); outline: none; }
.role-panel:not([hidden]) { animation: rise .45s var(--ease-out) both; }
.rp-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 1.2rem; align-items: flex-start;
  padding-bottom: 1rem; margin-bottom: 1.1rem; border-bottom: 1px solid var(--border); }
.rp-head h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.2; margin-bottom: .3rem; }
.rp-where { color: var(--muted); font-size: .9rem; }
.rp-date { font-family: var(--mono); font-size: .8rem; color: var(--navy); display: flex; flex-direction: column;
  align-items: flex-end; gap: .45rem; white-space: nowrap; }
.rp-tag { font-family: var(--font-body); font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-ink); background: color-mix(in srgb, var(--accent) 14%, #fff); padding: .2rem .6rem; border-radius: var(--pill); }
.rp-points { display: grid; gap: .7rem; }
.rp-points li { position: relative; padding-left: 1.4rem; color: var(--muted); font-size: .97rem; }
.rp-points li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 2px;
  transform: rotate(45deg); background: var(--accent); }
.rp-points li b { color: var(--text); font-weight: 600; }
.skills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.skill { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 1.25rem 1.3rem;
  box-shadow: var(--shadow-sm); border-top: 3px solid var(--accent); }
.skill h3 { font-size: 1.05rem; margin-bottom: .45rem; }
.skill p { color: var(--muted); font-size: .9rem; line-height: 1.55; }
.edu { margin-top: 1rem; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .4rem 1.6rem;
  padding: 1.2rem 1.4rem; border-radius: 18px; color: #C3D2E4;
  background: linear-gradient(150deg, #0B2540, #08203A); }
.edu-k { font-family: var(--mono); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--teal); }
.edu h3 { color: #fff; font-size: 1.1rem; }
.edu-deg { font-size: .9rem; grid-column: 2; }
.edu-list { display: flex; flex-wrap: wrap; gap: .4rem; grid-column: 3; grid-row: 1 / 3; justify-content: flex-end; }
.edu-list li { font-size: .78rem; font-weight: 600; color: #DDF5F3; background: rgba(15, 181, 174, .14);
  border: 1px solid rgba(15, 181, 174, .35); border-radius: var(--pill); padding: .25rem .7rem; }

/* ---------- 03 research ---------- */
.research2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.4rem, 3vw, 2.6rem); align-items: start; }
.research2-fig { margin: 0 0 1.2rem; background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: .9rem;
  box-shadow: var(--shadow-sm); }
.research2-fig img { width: 100%; height: auto; display: block; }
.research2-story h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.research2-story p { color: var(--muted); margin-bottom: 1.2rem; }
.stats2 { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.stats2 li { padding: .95rem 1rem; border-radius: 14px; background: #fff; border: 1px solid var(--border); }
.stats2 strong { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--navy); line-height: 1.05; }
.stats2 span { font-size: .8rem; color: var(--muted); }
.research2-hint { font-family: var(--mono); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent-ink); margin-bottom: .7rem; }
.tabs--metric .tablist { display: grid; grid-template-columns: repeat(3, 1fr); border-radius: 18px; width: 100%; }
.tabs--metric .tab { flex-direction: column; gap: .05rem; border-radius: 14px; padding: .6rem .5rem; }
.mt-short { font-family: var(--font-display); font-size: 1.1rem; }
.mt-tag { font-family: var(--mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; opacity: .75; font-weight: 500; }
.metric2 { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 1.2rem; box-shadow: var(--shadow-sm); }
.metric2-fig { background: linear-gradient(180deg, #FBFDFE, #F1F7FC); border: 1px solid var(--border); border-radius: 14px;
  padding: .7rem; margin-bottom: 1rem; }
.metric2-fig img { width: 100%; height: auto; display: block; }
.metric2 h3 { font-size: 1.2rem; margin-bottom: .45rem; }
.metric2 p { color: var(--muted); font-size: .95rem; margin-bottom: .6rem; }
.view .cite { margin-top: 2rem; }

/* ---------- 04 publications ---------- */
.pub-counts { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; margin-bottom: 1.5rem; }
.pub-counts li { padding: 1rem 1.1rem; border-radius: 16px; background: #fff; border: 1px solid var(--border); }
.pub-counts strong { display: block; font-family: var(--font-display); font-size: 2rem; line-height: 1; color: var(--navy); }
.pub-counts span { font-size: .82rem; color: var(--muted); }
.pub-counts li:first-child { background: var(--navy); border-color: var(--navy); }
.pub-counts li:first-child strong { color: #fff; }
.pub-counts li:first-child span { color: #A8BDD5; }
.pub-filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.2rem;
  margin-bottom: .8rem; }
.fchips { display: flex; flex-wrap: wrap; gap: .4rem; }
.fchip { display: inline-flex; align-items: center; gap: .4rem; padding: .48rem .9rem; border-radius: var(--pill); cursor: pointer;
  background: #fff; border: 1px solid var(--border-2); font-family: var(--font-body); font-weight: 600; font-size: .86rem;
  color: var(--muted); transition: background .2s, color .2s, border-color .2s; }
.fchip span { font-family: var(--mono); font-size: .72rem; opacity: .7; }
.fchip:hover { color: var(--navy); border-color: var(--navy); }
.fchip[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.onc-toggle { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .88rem; color: var(--navy);
  cursor: pointer; user-select: none; }
.onc-toggle input { width: 18px; height: 18px; accent-color: var(--teal-600); }
.pub-showing { font-size: .82rem; color: var(--muted); margin-bottom: .8rem; font-family: var(--mono); letter-spacing: .04em; }
.pub2-list { display: grid; gap: .6rem; list-style: none; padding: 0; }
.pub2 details { background: #fff; border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-sm);
  transition: border-color .2s ease, box-shadow .2s ease; }
.pub2 details[open] { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); box-shadow: var(--shadow-md); }
.pub2 summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 56px 1fr auto 18px;
  align-items: center; gap: 1rem; padding: 1rem 1.2rem; }
.pub2 summary::-webkit-details-marker { display: none; }
.pub2 summary:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 16px; }
.pub2-year { font-family: var(--mono); font-size: .86rem; color: var(--accent-ink); font-weight: 500; }
.pub2-main { display: grid; gap: .2rem; min-width: 0; }
.pub2-title { font-family: var(--font-display); font-weight: 600; color: var(--navy); font-size: 1.02rem; line-height: 1.3; }
.pub2-src { font-size: .82rem; color: var(--muted); }
.pub2-tags { display: flex; flex-direction: column; align-items: flex-end; gap: .3rem; }
.pub2 .pub-badge { margin: 0; white-space: nowrap; }
.onc-tag { font-size: .64rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap;
  color: #9A3A5B; background: #FCEBF1; padding: .2rem .55rem; border-radius: var(--pill); }
.pub2 summary .chev { width: 16px; height: 16px; color: var(--muted); transition: transform .25s ease; }
.pub2 details[open] summary .chev { transform: rotate(180deg); }
.pub2-more { padding: 0 1.2rem 1.2rem calc(56px + 2.2rem); }
.pub2-more .pub-impact { margin: .5rem 0 .7rem; }
.pub2.is-hidden { display: none; }

/* ---------- 05 analyses ---------- */
.work2 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.work2 .work-card { padding: .8rem .8rem 1.1rem; }
.work2 .work-card p { font-size: .88rem; }
.proj2 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.proj2 .custom-bar { margin-top: 0; flex-direction: column; align-items: flex-start; height: 100%; padding: 1.3rem; gap: .8rem; }
.proj2 .custom-bar-arrow { margin-left: 0; margin-top: auto; }
.proj2 .custom-bar-text span { display: block; }
.studio-panel { border-radius: 26px; padding: clamp(1.4rem, 4vw, 2.8rem); overflow: hidden; }
.studio-panel .studio-h { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: .8rem; }
.studio-panel .studio-h span { color: var(--teal); }
.studio-panel .eyebrow { font-family: var(--mono); font-weight: 500; letter-spacing: .24em; }

/* ---------- 06 testimonials ---------- */
.view .testi-card { border-top-color: var(--accent); }
.view .testi-cta { background: #fff; }

/* ---------- 07 next ---------- */
.focus2-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.focus2 { position: relative; background: #fff; border: 1px solid var(--border); border-radius: 20px;
  padding: 1.4rem 1.5rem 1.5rem; box-shadow: var(--shadow-sm); overflow: hidden; }
.focus2-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; margin-bottom: .9rem;
  color: var(--accent); background: color-mix(in srgb, var(--accent-2) 70%, #fff); }
.focus2 h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.focus2 p { color: var(--muted); font-size: .93rem; }
.faq2 { margin-top: 2.6rem; display: grid; grid-template-columns: 240px 1fr; gap: 1.5rem; align-items: start; }
.faq2-h { font-size: 1.45rem; position: sticky; top: 90px; }
.faq2 .faq-list { max-width: none; }

/* ---------- 08 contact ---------- */
.view .contact-grid { gap: 1.2rem; }
.view .form-card, .view .contact-direct { border-radius: 22px; }

/* ------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------ */

@media (max-width: 1060px) {
  .vbar-index { display: none; }
  .vbar-current { display: flex; flex: 1; }
  .work2, .proj2 { grid-template-columns: 1fr 1fr; }
  .skills { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 899px) {
  .about2 { grid-template-columns: 1fr; }
  .about2-photo { max-width: 260px; }
  .roles { grid-template-columns: 1fr; }
  .role-list { grid-template-columns: repeat(2, 1fr); }
  .research2 { grid-template-columns: 1fr; }
  .faq2 { grid-template-columns: 1fr; }
  .faq2-h { position: static; }
  .edu { grid-template-columns: 1fr; }
  .edu-deg, .edu-list { grid-column: auto; grid-row: auto; justify-content: flex-start; }
}
@media (max-width: 760px) {
  .vhead { grid-template-columns: 1fr; }
  .vnum { width: 4.4rem; margin-bottom: .6rem; }
  .pub-counts { grid-template-columns: 1fr 1fr; }
  .pub2 summary { grid-template-columns: 1fr 18px; gap: .5rem .8rem; }
  .pub2-year { grid-column: 1; }
  .pub2-main { grid-column: 1; }
  .pub2-tags { grid-column: 1; flex-direction: row; align-items: center; flex-wrap: wrap; }
  .pub2 summary .chev { grid-column: 2; grid-row: 1 / 4; }
  .pub2-more { padding: 0 1.2rem 1.2rem; }
  .focus2-grid { grid-template-columns: 1fr; }
  .vpager { grid-template-columns: 1fr 1fr; }
  .vpg-home { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
  .vbar-name { display: none; }
}
@media (max-width: 560px) {
  .work2, .proj2, .skills, .facts, .stats2 { grid-template-columns: 1fr; }
  /* roles become a swipeable row so the selected role's details stay in view */
  .role-list { display: flex; overflow-x: auto; gap: .55rem; scroll-snap-type: x mandatory; scrollbar-width: none;
    scroll-padding-inline: clamp(1rem, 3vw, 2rem);
    margin: 0 calc(-1 * clamp(1rem, 3vw, 2rem)); padding: .2rem clamp(1rem, 3vw, 2rem) .5rem; }
  .role-list::-webkit-scrollbar { display: none; }
  .role-tab { flex: 0 0 74%; scroll-snap-align: start; }
  .rp-date { align-items: flex-start; flex-direction: row; flex-wrap: wrap; gap: .5rem .8rem; }
  .role-tab[aria-selected="true"]::before { top: auto; bottom: -1px; left: 14px; right: 14px; width: auto; height: 3px; }
  .tablist { display: flex; width: 100%; }
  .tablist .tab { flex: 1; justify-content: center; padding: .55rem .6rem; }
}


/* ------------------------------------------------------------
   MOTION PREFERENCES
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .views.is-revealing, .view.is-entering-next, .view.is-entering-prev, .views.is-leaving,
  .view.is-active .vhead, .view.is-active .vbody, .tabpanel:not([hidden]), .role-panel:not([hidden]) { animation: none !important; }
  .mini-wheel, .vi-l { transition: none; }
}

/* ============================================================
   BEYOND THE WORK (child page of About) + its teaser card
   ============================================================ */
:root { --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif; }

/* teaser on About: a fanned stack of three photos */
.beyond-teaser { display: grid; grid-template-columns: 250px 1fr; align-items: center; gap: clamp(1.2rem, 3vw, 2.4rem);
  margin-top: 2.6rem; padding: 1.4rem clamp(1.2rem, 3vw, 2rem); border-radius: 26px; text-decoration: none; color: inherit;
  background: linear-gradient(118deg, #FBF7F0 0%, #F2F5F1 55%, #E9F4F2 100%); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); transition: transform .35s var(--ease-out), box-shadow .35s ease, border-color .35s ease; }
.beyond-teaser:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.beyond-teaser:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.bt-fan { position: relative; height: 188px; }
.bt-fan img { position: absolute; object-fit: cover; border-radius: 12px; border: 4px solid #fff;
  box-shadow: 0 12px 26px rgba(20, 38, 58, .16); transition: transform .55s var(--ease-pop); }
.bt-fan img:nth-child(1) { width: 100px; height: 150px; left: 6px; top: 22px; transform: rotate(-8deg); }
.bt-fan img:nth-child(2) { width: 108px; height: 144px; left: 76px; top: 4px; transform: rotate(2deg); z-index: 2; }
.bt-fan img:nth-child(3) { width: 104px; height: 104px; left: 142px; top: 70px; transform: rotate(9deg); z-index: 3; }
.beyond-teaser:hover .bt-fan img:nth-child(1) { transform: rotate(-13deg) translate(-8px, 2px); }
.beyond-teaser:hover .bt-fan img:nth-child(2) { transform: rotate(0deg) translateY(-6px); }
.beyond-teaser:hover .bt-fan img:nth-child(3) { transform: rotate(14deg) translate(8px, 2px); }
.bt-copy { display: grid; gap: .45rem; }
.bt-kicker { font-family: var(--mono); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--accent-ink); }
.bt-title { font-family: var(--serif); font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.05; color: var(--navy); }
.bt-desc { color: var(--muted); font-size: .95rem; max-width: 52ch; }
.bt-cta { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; color: var(--accent-ink); margin-top: .2rem;
  transition: gap .25s ease; }
.beyond-teaser:hover .bt-cta { gap: .75rem; }

/* page chrome */
.vkicker-parent { color: inherit; text-decoration: none; border-bottom: 1px solid currentColor; }
.vkicker-parent:hover { color: var(--navy); }
.view--beyond .vhead h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 5vw, 3.8rem); letter-spacing: -.01em; }

/* ---------- music ---------- */
.spot-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: clamp(1.4rem, 3.2vw, 2.8rem);
  align-items: start; margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }
.spot { margin: 0; }
.spot-frame { position: relative; aspect-ratio: 4 / 3; max-width: 640px; border-radius: 22px; overflow: hidden; background: #0E1A26;
  box-shadow: 0 30px 60px rgba(20, 38, 58, .18); }
.spot-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.spot-tag { position: absolute; top: 14px; left: 14px; font-size: .66rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: #fff; background: rgba(10, 20, 30, .38); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  padding: .38rem .75rem; border-radius: var(--pill); pointer-events: none; }
.spot-sound { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: .5rem; padding: .62rem 1.05rem;
  border: 0; border-radius: var(--pill); background: rgba(255, 255, 255, .94); color: var(--navy); cursor: pointer;
  font-family: var(--font-body); font-weight: 600; font-size: .88rem; box-shadow: 0 10px 24px rgba(0, 0, 0, .22);
  transition: transform .25s var(--ease-pop), background .2s ease; }
.spot-sound:hover { transform: scale(1.05); background: #fff; }
.spot-sound[hidden] { display: none; }
.spot-cap { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .35rem 1rem; margin-top: .85rem;
  max-width: 640px; font-size: .88rem; color: var(--muted); }
.spot-cap em { font-family: var(--serif); font-size: 1.2rem; color: var(--navy); }
.spot-cap a { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; color: var(--accent-ink); text-decoration: none;
  border-bottom: 1.5px solid currentColor; padding-bottom: .1rem; }
.band-logo { width: 150px; height: auto; margin-bottom: .5rem; }
.band-name { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 3.2vw, 2.6rem); line-height: 1; }
.band-role { font-family: var(--mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink);
  margin: .4rem 0 1rem; }
.band > p:not([class]) { color: var(--muted); margin-bottom: .75rem; }
.band-quote { margin: 1.1rem 0 1.2rem; padding-left: 1rem; border-left: 2px solid var(--accent); font-family: var(--serif);
  font-style: italic; font-size: clamp(1.2rem, 1.8vw, 1.45rem); line-height: 1.3; color: var(--navy); }
.band-block { margin-bottom: 1rem; }
.band-k { font-size: .68rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: .45rem; }
.route { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 0; list-style: none; padding: 0; }
.route li { display: inline-flex; align-items: center; font-weight: 600; font-size: .9rem; color: var(--navy); }
.route li + li::before { content: ""; width: 22px; margin: 0 .55rem; border-top: 1.5px dashed color-mix(in srgb, var(--accent) 60%, transparent); }
.route li:first-child::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: .5rem; }
.route .route-more { font-weight: 500; font-style: italic; color: var(--muted); }
.artist-list { display: flex; flex-wrap: wrap; gap: .4rem; }
.artist-list li { font-size: .82rem; font-weight: 600; color: var(--navy); background: #fff; border: 1px solid var(--border);
  border-radius: var(--pill); padding: .28rem .75rem; }
.streams { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.3rem 0 1rem; }
.stream { display: inline-flex; align-items: center; gap: .45rem; padding: .52rem .95rem; border-radius: var(--pill);
  border: 1px solid var(--border-2); background: #fff; color: var(--navy); text-decoration: none; font-weight: 600; font-size: .86rem;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease; }
.stream:hover { background: var(--navy); color: #fff; border-color: var(--navy); transform: translateY(-1px); }
.band-now { font-size: .88rem; color: var(--muted); font-style: italic; }

/* ---------- mosaics: every photo keeps its real aspect ratio ---------- */
.mosaic { display: grid; gap: 12px; }
/* each row is a grid whose column widths are the photos' own aspect ratios (set inline), so every
   item in a row comes out exactly the same height; min-height: 0 keeps content from stretching one */
.m-row { display: grid; gap: 12px; align-items: start; }
/* grid items with an aspect ratio shrink to their content unless told to stretch across the column */
.m-row > * { justify-self: stretch; width: 100%; min-width: 0; min-height: 0; aspect-ratio: var(--r); }
.m-col { display: flex; flex-direction: column; gap: 12px; }
.m-col > .m-tile { flex: 1 1 0; min-height: 0; aspect-ratio: auto; }
.m-tile { position: relative; margin: 0; border-radius: 16px; overflow: hidden; background: #E9E5DD; }
.m-tile button { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.m-tile button:focus-visible { outline: 3px solid var(--teal); outline-offset: -3px; border-radius: 16px; }
.m-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .9s var(--ease-out); }
.m-tile::after { content: ""; position: absolute; inset: 45% 0 0 0; pointer-events: none; opacity: 0; transition: opacity .4s ease;
  background: linear-gradient(180deg, rgba(10, 18, 26, 0), rgba(10, 18, 26, .62)); }
.m-tile figcaption { position: absolute; left: .85rem; right: .85rem; bottom: .7rem; z-index: 1; pointer-events: none;
  font-family: var(--serif); font-style: italic; font-size: 1.05rem; line-height: 1.2; color: #fff;
  opacity: 0; transform: translateY(8px); transition: opacity .35s ease, transform .45s var(--ease-out); }
.m-tile:hover img, .m-tile:focus-within img { transform: scale(1.045); }
.m-tile:hover::after, .m-tile:focus-within::after, .m-tile:hover figcaption, .m-tile:focus-within figcaption { opacity: 1; transform: none; }
@media (hover: none) { .m-tile::after, .m-tile figcaption { opacity: 1; transform: none; } }
.m-text { display: grid; align-content: center; padding: clamp(1rem, 2.2vw, 1.8rem); border-radius: 16px; overflow: hidden; }
.m-text--quote { background: linear-gradient(160deg, #E9F4F2, #F7EFE6); }
.m-quote { font-family: var(--serif); font-style: italic; font-size: clamp(1.1rem, 1.7vw, 1.55rem); line-height: 1.25; color: var(--navy); }
.tabpanel:not([hidden]) .m-tile, .tabpanel:not([hidden]) .m-text { animation: tile-in .85s var(--ease-out) both;
  animation-delay: calc(var(--k, 2) * 70ms + 120ms); }
@keyframes tile-in { from { opacity: 0; transform: translateY(16px) scale(.985); } to { opacity: 1; transform: none; } }

/* ---------- travel ---------- */
.travel-intro { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(1.4rem, 3.2vw, 2.8rem);
  align-items: start; margin-bottom: clamp(1.5rem, 3vw, 2.2rem); }
.travel-lede { font-family: var(--serif); font-size: clamp(1.35rem, 2.2vw, 1.8rem); line-height: 1.3; color: var(--navy); margin-bottom: 1rem; }
.travel-story p:not(.travel-lede) { color: var(--muted); max-width: 60ch; }
.passport { background: #fff; border: 1px solid var(--border); border-radius: 22px; padding: 1.3rem 1.5rem 1.4rem; box-shadow: var(--shadow-sm); }
.passport-count { display: flex; align-items: baseline; gap: .7rem; margin-bottom: 1.1rem; }
.passport-count strong { font-family: var(--serif); font-weight: 400; font-size: 3.8rem; line-height: .8; color: var(--accent); }
.passport-count span { color: var(--muted); font-size: .9rem; }
.passport-region { margin-bottom: .8rem; }
.passport-region:last-child { margin-bottom: 0; }
.passport-region ul { display: flex; flex-wrap: wrap; gap: .3rem .4rem; }
.passport-region li { font-size: .84rem; font-weight: 500; color: var(--navy); padding: .18rem .6rem; border-radius: var(--pill);
  background: color-mix(in srgb, var(--accent-2) 55%, #fff); }

/* ---------- everyday ---------- */
.every-lede { font-family: var(--serif); font-size: clamp(1.35rem, 2.2vw, 1.8rem); line-height: 1.3; color: var(--navy);
  margin-bottom: 1.3rem; max-width: 36ch; }
.every-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.every { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 1.3rem 1.4rem; box-shadow: var(--shadow-sm); }
.every:nth-child(2) { transform: translateY(18px); }
.every:nth-child(4) { transform: translateY(18px); }
.every-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; margin-bottom: .85rem;
  color: var(--accent); background: color-mix(in srgb, var(--accent-2) 70%, #fff); }
.every h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.every p { color: var(--muted); font-size: .93rem; }

/* ---------- photo viewer ---------- */
.lightbox { position: fixed; inset: 0; z-index: 400; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center;
  gap: clamp(.4rem, 2vw, 1.2rem); padding: clamp(.8rem, 4vw, 3rem); background: rgba(12, 20, 28, .9);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s ease; }
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lb-figure { margin: 0; display: grid; justify-items: center; gap: .85rem; min-width: 0; }
.lb-img { max-width: 100%; max-height: calc(100dvh - 9rem); width: auto; height: auto; object-fit: contain; border-radius: 12px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .45); }
.lightbox.is-swapping .lb-img { animation: lb-in .45s var(--ease-out); }
@keyframes lb-in { from { opacity: 0; transform: scale(.975); } to { opacity: 1; transform: none; } }
.lb-cap { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: #F2EEE7; text-align: center; }
.lb-nav, .lb-close { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; color: #fff;
  border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .06); transition: background .2s ease; }
.lb-nav:hover, .lb-close:hover { background: rgba(255, 255, 255, .18); }
.lb-close { position: absolute; top: clamp(.6rem, 2vw, 1.2rem); right: clamp(.6rem, 2vw, 1.2rem); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .spot-grid, .travel-intro { grid-template-columns: 1fr; }
  .spot-frame, .spot-cap { max-width: none; }
}
@media (max-width: 640px) {
  .beyond-teaser { grid-template-columns: 1fr; }
  .bt-fan { height: 176px; width: 250px; }
  /* phones: the two mosaics become a two-column masonry, still at true aspect ratios */
  .mosaic { display: block; columns: 2; column-gap: 8px; }
  .m-row, .m-col { display: contents; }
  .m-tile, .m-text { display: block; width: 100%; aspect-ratio: var(--r) !important; margin: 0 0 8px; break-inside: avoid; border-radius: 12px; }
  .m-text { display: grid; aspect-ratio: auto !important; }
  .m-tile figcaption { font-size: .92rem; }
  .every-grid { grid-template-columns: 1fr; }
  .every:nth-child(2), .every:nth-child(4) { transform: none; }
  .lb-nav { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .tabpanel:not([hidden]) .m-tile, .tabpanel:not([hidden]) .m-text, .lightbox.is-swapping .lb-img { animation: none; }
  .m-tile img, .bt-fan img, .beyond-teaser { transition: none; }
}

/* ============================================================
   OCTOBER UPDATE: sample dashboard, How I work, branded links,
   paper figures, analyses filters
   ============================================================ */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- home: first screen + scroll cue ---------- */
.home { display: block; }
.js .home { scroll-behavior: smooth; }
.home-screen { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.home-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: .8rem 2rem; flex-wrap: wrap; }
.scroll-cue { order: 2; display: inline-flex; align-items: center; gap: .75rem; margin-left: auto; text-decoration: none;
  font-size: .82rem; font-weight: 600; color: var(--h-ink-2); }
.scroll-cue:hover { color: #0E7F77; }
.scroll-cue-line { position: relative; width: 1.5px; height: 34px; overflow: hidden; border-radius: 2px; background: rgba(20, 38, 58, .14); }
.scroll-cue-line::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; border-radius: 2px;
  background: #0E7F77; animation: cue-drop 1.9s cubic-bezier(.6, 0, .3, 1) infinite; }
@keyframes cue-drop { to { top: 105%; } }

/* ---------- home: sample dashboard ---------- */
.home-dash { position: relative; max-width: 1260px; margin: 0 auto; padding: clamp(3.5rem, 9vh, 6.5rem) clamp(1.2rem, 4vw, 3.4rem) clamp(3rem, 7vh, 5rem); }
.dash-head { max-width: 660px; margin: 0 0 clamp(1.4rem, 3vw, 2.2rem) clamp(0rem, 7vw, 8rem); }
.dash-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.3rem, 4.8vw, 3.8rem); line-height: .98; letter-spacing: -.015em;
  color: var(--h-ink); margin-bottom: .9rem; }
.dash-head h2 em { font-style: italic; color: #0E7F77; }
.dash-sub { color: var(--h-soft); max-width: 60ch; }
.dash { display: block; position: relative; text-decoration: none; color: inherit; background: #fff; border-radius: 26px; overflow: hidden;
  border: 1px solid rgba(20, 38, 58, .08); box-shadow: 0 40px 80px rgba(20, 38, 58, .1);
  transition: transform .5s var(--ease-out), box-shadow .5s ease; }
.dash:hover { transform: translateY(-4px); box-shadow: 0 54px 96px rgba(20, 38, 58, .15); }
.dash:focus-visible { outline: 3px solid #0E7F77; outline-offset: 4px; }
.dash-bar { display: flex; align-items: center; gap: .9rem; padding: .8rem 1.2rem; font-size: .85rem; color: var(--h-ink);
  background: #FBFAF7; border-bottom: 1px solid #EEF1F5; }
.dash-dots { display: inline-flex; gap: 5px; }
.dash-dots i { width: 9px; height: 9px; border-radius: 50%; background: #E3DED4; }
.dash-bar strong { font-weight: 600; }
.dash-meta { color: var(--h-soft); }
.dash-badge { margin-left: auto; font-size: .64rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #A64A36;
  background: #F7E6DF; padding: .3rem .65rem; border-radius: var(--pill); }
.dash-body { display: grid; gap: 1rem; padding: 1.1rem; background: linear-gradient(180deg, #fff, #FAFBFC); }
.dash-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .7rem; }
.dash-kpis li { display: grid; gap: .15rem; padding: .85rem 1rem; border: 1px solid #EEF1F5; border-radius: 14px; background: #fff; }
.dash-kpis span { font-size: .66rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #8A97A6; }
.dash-kpis strong { font-size: 1.75rem; font-weight: 600; line-height: 1.1; color: var(--h-ink); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.dash-kpis strong small { font-size: .9rem; font-weight: 500; color: var(--h-soft); margin-left: .1rem; }
.dash-kpis em { font-style: normal; font-size: .74rem; color: var(--h-soft); line-height: 1.35; }
.dash-kpis li:nth-child(4) { background: linear-gradient(160deg, #EAF6F4, #fff); border-color: #D3EBE7; }
.dash-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1rem; }
.dcard { margin: 0; min-width: 0; display: flex; flex-direction: column; padding: .9rem 1rem .75rem; background: #fff;
  border: 1px solid #EEF1F5; border-radius: 16px; }
.dcard--km { grid-column: span 8; } .dcard--roc { grid-column: span 4; }
.dcard--pr, .dcard--traj, .dcard--table { grid-column: span 4; }
.dcard figcaption, .dcard-title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .3rem .7rem;
  margin-bottom: .45rem; font-size: .86rem; color: var(--h-ink); }
.dcard figcaption strong, .dcard-title strong { font-weight: 600; }
.dcard-title span { font-size: .72rem; color: #8A97A6; }
.dlegend { display: flex; flex-wrap: wrap; gap: .25rem .75rem; font-size: .7rem; color: var(--h-soft); }
.dlegend i, .dtip i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: .3rem; vertical-align: 0; }
.dchart { position: relative; flex: 1; }
.dchart svg { display: block; width: 100%; height: auto; overflow: visible; }
.dchart--pair { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.dfoot { font-size: .7rem; color: #8A97A6; margin-top: .35rem; }
.dgrid line { stroke: #EEF1F5; stroke-width: 1; }
.dgrid .daxis { stroke: #CBD3DD; }
.dtick { font-family: var(--font-body); font-size: 10px; fill: #8A97A6; }
.dmini { font-family: var(--font-body); font-size: 10px; font-weight: 600; fill: #5E6E7D; }
.dline { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.7s cubic-bezier(.6, 0, .2, 1); }
.dash.is-drawn .dline { stroke-dashoffset: 0; }
.dline--dash { stroke-dasharray: .018 .022; stroke-dashoffset: 0; opacity: 0; transition: opacity .8s ease; }
.dash.is-drawn .dline--dash { opacity: 1; }
.ddot { opacity: 0; transition: opacity .5s ease 1.2s; }
.dash.is-drawn .ddot { opacity: 1; }
.dcross { stroke: #9AA7B8; stroke-width: 1; stroke-dasharray: 3 3; opacity: 0; pointer-events: none; }
.dmark { opacity: 0; pointer-events: none; stroke: #fff; stroke-width: 1.5; }
.dchart.is-hover .dcross, .dchart.is-hover .dmark { opacity: 1; }
.dtip { position: absolute; top: 4px; left: 0; z-index: 2; display: grid; gap: .12rem; min-width: 140px; padding: .45rem .65rem;
  border-radius: 10px; background: rgba(20, 38, 58, .92); color: #fff; font-size: .7rem; pointer-events: none; opacity: 0; transition: opacity .15s ease; }
.dchart.is-hover .dtip { opacity: 1; }
.dcard--table { overflow-x: auto; }
.dtable { width: 100%; border-collapse: collapse; font-size: .74rem; }
.dtable th { text-align: left; padding: .35rem .3rem; font-size: .62rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: #8A97A6; border-bottom: 1px solid #EEF1F5; }
.dtable td { padding: .48rem .3rem; color: var(--h-ink); border-bottom: 1px solid #F3F5F8; white-space: nowrap; }
.dtable tr:last-child td { border-bottom: 0; }
.dtable .num { text-align: right; font-variant-numeric: tabular-nums; }
.dtable .mono { font-family: var(--mono); font-size: .7rem; color: var(--h-ink-2); }
.riskbar { display: inline-block; width: 26px; height: 5px; margin-right: .35rem; border-radius: 3px; vertical-align: middle;
  background: linear-gradient(90deg, #C9604A calc(var(--v) * 100%), #F1E4DF 0); }
.pill { display: inline-block; padding: .14rem .5rem; border-radius: var(--pill); font-size: .64rem; font-weight: 700; }
.pill--review { background: #F7E6DF; color: #A64A36; }
.pill--monitor { background: #E3EEF7; color: #245885; }
.dash-cta { display: flex; justify-content: flex-end; align-items: center; gap: .5rem; padding: .85rem 1.4rem; font-weight: 600; font-size: .92rem;
  color: #0E7F77; border-top: 1px solid #EEF1F5; background: #FBFAF7; transition: gap .25s ease; }
.dash:hover .dash-cta { gap: .85rem; }
.dash-note { margin: .9rem 0 0 clamp(0rem, 7vw, 8rem); font-size: .78rem; color: var(--h-soft); max-width: 70ch; }
@media (max-width: 1100px) {
  /* five tiles: three across, then two that share the row evenly */
  .dash-kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .dash-kpis li { grid-column: span 2; }
  .dash-kpis li:nth-child(n+4) { grid-column: span 3; }
  .dcard--km { grid-column: span 12; }
  .dcard--roc, .dcard--pr, .dcard--traj, .dcard--table { grid-column: span 6; }
}
@media (max-width: 700px) {
  .dash-head, .dash-note { margin-left: 0; }
  .dash-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-kpis li, .dash-kpis li:nth-child(n+4) { grid-column: auto; }
  .dash-kpis li:last-child { grid-column: 1 / -1; }
  .dcard--roc, .dcard--pr, .dcard--traj, .dcard--table { grid-column: span 12; }
  .dash-bar .dash-meta { display: none; }
  .scroll-cue { order: 0; margin: 0 auto 0 0; }
}

/* ---------- experience: How I work ---------- */
.how { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(1.2rem, 3vw, 2.2rem); align-items: start; }
.how-h { font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 2.6vw, 2.2rem); line-height: 1; margin-bottom: .35rem; }
.how-intro { color: var(--muted); font-size: .92rem; margin-bottom: 1rem; }
.strengths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; }
.strengths li { display: grid; gap: .25rem; padding: .95rem 1rem; background: #fff; border: 1px solid var(--border); border-radius: 16px;
  box-shadow: var(--shadow-sm); }
.strengths strong { color: var(--navy); font-size: .96rem; }
.strengths span { color: var(--muted); font-size: .86rem; line-height: 1.45; }
.how-col--growth { padding: 1.3rem 1.4rem .6rem; border-radius: 22px; border: 1px solid var(--border);
  background: linear-gradient(160deg, #FBF7F0, #F1F6F4); }
.growth { list-style: none; padding: 0; }
.growth li { padding: .9rem 0; border-top: 1px dashed var(--border-2); }
.growth strong { display: block; color: var(--navy); font-size: 1rem; margin-bottom: .2rem; }
.growth p { color: var(--muted); font-size: .9rem; }
.growth .growth-fix { margin-top: .4rem; color: var(--text); }
.growth-fix span { display: block; font-size: .64rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink);
  margin-bottom: .15rem; }
@media (max-width: 1000px) { .how { grid-template-columns: 1fr; } .strengths { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .strengths { grid-template-columns: 1fr; } }

/* ---------- beyond: real brand colours for the four platforms ---------- */
.stream[class*="stream--"] { border-color: transparent; color: #fff; }
.stream.stream--spotify { background: #1DB954; color: #06200F; }   /* dark text: white on Spotify green fails contrast */
.stream--apple { background: linear-gradient(135deg, #F2304D, #D3173F); }
.stream--youtube { background: #E62117; }
.stream--instagram { background: linear-gradient(45deg, #F58529 0%, #DD2A7B 45%, #8134AF 78%, #515BD4 100%); }
.stream.stream--spotify:hover { background: #1ED760; color: #06200F; }
.stream--apple:hover { background: linear-gradient(135deg, #F84862, #E0204A); color: #fff; }
.stream--youtube:hover { background: #F2271C; color: #fff; }
.stream--instagram:hover { background: linear-gradient(45deg, #F79A45 0%, #E43C89 45%, #9046BD 78%, #6670DD 100%); color: #fff; }
.stream[class*="stream--"]:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(20, 38, 58, .18); }

/* artists: plain text links with a Spotify mark, deliberately not chips */
.artist-links { display: flex; flex-wrap: wrap; gap: .45rem 1.3rem; list-style: none; padding: 0; }
.artist-links a { display: inline-flex; align-items: center; gap: .4rem; padding: .1rem 0; font-weight: 600; font-size: .92rem; color: var(--navy);
  text-decoration: none; border-bottom: 1.5px solid transparent; transition: border-color .2s ease, color .2s ease; }
.artist-links a > svg:first-child { color: #1DB954; }
.artist-links a > svg:last-child { opacity: .45; transition: transform .2s ease, opacity .2s ease; }
.artist-links a:hover { border-bottom-color: #1DB954; }
.artist-links a:hover > svg:last-child { opacity: 1; transform: translate(2px, -2px); }
.band-genre { font-family: var(--serif); font-style: italic; font-size: 1.2rem; line-height: 1.2; color: var(--accent-ink); margin: -.55rem 0 .8rem; }
.band-about { margin-bottom: 1rem; padding: .95rem 1.05rem; border-radius: 14px; font-size: .95rem; color: var(--text);
  background: linear-gradient(160deg, #EEF6F3, #FBF5EC); }

/* ---------- publications: figures from the papers ---------- */
.pub-counts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pubfigs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.pubfig { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--border); border-radius: 18px;
  box-shadow: var(--shadow-sm); transition: transform .3s var(--ease-out), box-shadow .3s ease; }
.pubfig:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
/* overflow:hidden + min-height:0 keep every preview at 4:3; otherwise a tall figure stretches its box */
.pubfig-view { position: relative; display: block; aspect-ratio: 4 / 3; min-height: 0; overflow: hidden; padding: .8rem; border: 0; cursor: zoom-in;
  background: #F6F8FA; border-bottom: 1px solid var(--border); }
.pubfig-view img { display: block; width: 100%; height: 100%; object-fit: contain; }
.pubfig-view:focus-visible { outline: 3px solid var(--teal); outline-offset: -3px; }
.pubfig-zoom { position: absolute; top: .6rem; right: .6rem; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  color: var(--navy); background: rgba(255, 255, 255, .94); box-shadow: var(--shadow-sm); opacity: 0; transform: scale(.85);
  transition: opacity .2s ease, transform .2s ease; }
.pubfig-view:hover .pubfig-zoom, .pubfig-view:focus-visible .pubfig-zoom { opacity: 1; transform: none; }
.pubfig-body { display: flex; flex-direction: column; gap: .35rem; flex: 1; padding: 1rem 1.1rem 1.1rem; }
.pubfig-k { font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; color: var(--accent-ink); }
.pubfig-body h3 { font-size: 1rem; line-height: 1.32; }
.pubfig-paper { color: var(--muted); font-size: .84rem; }
.pubfig-link { align-self: flex-start; display: inline-flex; align-items: center; gap: .35rem; margin-top: auto; padding-top: .4rem;
  font-weight: 600; font-size: .88rem; color: var(--accent-ink); text-decoration: none; border-bottom: 1.5px solid currentColor; }
.lightbox.lb--doc .lb-img { background: #fff; padding: clamp(.6rem, 2vw, 1.2rem); }
@media (max-width: 980px) { .pubfigs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pubfigs { grid-template-columns: 1fr; } }

/* ---------- analyses: filters + nothing cut off on phones ---------- */
.an-filters { margin-bottom: 1.1rem; }
.work2 .work-card[hidden] { display: none; }
@media (max-width: 560px) { .custom-bar-text span { display: block; } }

@media (prefers-reduced-motion: reduce) {
  .scroll-cue-line::after { animation: none; top: 30%; }
  .dline, .dline--dash, .ddot { transition: none; }
  .dash, .pubfig { transition: none; }
  .js .home { scroll-behavior: auto; }
}

/* ============================================================
   NOVEMBER UPDATE: Beyond > Games tab (Masry Road)
   ============================================================ */
.spot-frame--game { aspect-ratio: 16 / 10; background: #1A1424; }
.spot-shot { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.spot-shot img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.spot-shot:hover img, .spot-shot:focus-visible img { transform: scale(1.03); }
.spot-shot:focus-visible { outline: 3px solid var(--teal); outline-offset: -3px; border-radius: 22px; }
/* the app icon is pixel art: keep its edges hard when the browser scales it */
.game-icon { display: block; width: 84px; height: 84px; border-radius: 22.5%; margin-bottom: .9rem; image-rendering: pixelated;
  box-shadow: 0 12px 26px rgba(20, 51, 110, .28); }
.game-links { list-style: none; padding: 0; display: grid; gap: .45rem; }
.game-links li { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .55rem; font-size: .9rem; color: var(--muted); }
.game-links a { display: inline-flex; align-items: center; gap: .3rem; font-weight: 600; font-size: .92rem; color: var(--navy);
  text-decoration: none; border-bottom: 1.5px solid transparent; transition: border-color .2s ease; }
.game-links a svg { opacity: .45; transition: transform .2s ease, opacity .2s ease; }
.game-links a:hover { border-bottom-color: #F2C230; }
.game-links a:hover svg { opacity: 1; transform: translate(2px, -2px); }
/* App Store blue, deepened so white text passes contrast; masryroad.com in the game's own night + gold */
.stream.stream--appstore { background: linear-gradient(135deg, #1C6EF2, #0A58D0); color: #fff; }
.stream.stream--appstore:hover { background: linear-gradient(135deg, #2C7AF6, #0D62DE); color: #fff; }
.stream.stream--masry { background: #1A1424; color: #F2C230; }
.stream.stream--masry:hover { background: #2A2140; color: #F2C230; }
/* not a link yet: Google Play is still in testing */
.stream.stream--soon { cursor: default; background: transparent; color: var(--muted); border: 1.5px dashed var(--border-2); }
.stream.stream--soon:hover { background: transparent; color: var(--muted); border-color: var(--border-2); transform: none; box-shadow: none; }
.stream--soon small { font-size: .6rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink);
  background: color-mix(in srgb, var(--accent-2) 70%, #fff); padding: .14rem .45rem; border-radius: var(--pill); }
@media (max-width: 640px) {
  /* three wide screenshots: two side by side, the third full width underneath */
  .mosaic--games .m-tile:last-child { column-span: all; }
}
@media (prefers-reduced-motion: reduce) { .spot-shot img { transition: none; } }
