/* fonts, self-hosted and subset (tools: see README): Manrope 500-600 for headings, DM Sans 300-500 for text */
@font-face { font-family: "Manrope"; src: url("fonts/manrope-v1.woff2") format("woff2"); font-weight: 500 600; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("fonts/dmsans-v1.woff2") format("woff2"); font-weight: 300 500; font-style: normal; font-display: swap; }

/* Kaushik Das: off-white page on a 1200px frame, long top bar, centred
   sections, grey rounded rows and pill buttons. No guide lines. The recitals
   band keeps its own look. */

:root {
  --bg: #fafafa;
  --g100: #f2f2f2;
  --g200: #ebebeb;
  --ink: #171717;
  --ink-2: #5c5c5c;
  --ink-3: #7d7d7d;
  --muted: #6e6e6e;
  --line: rgba(0, 0, 0, .13);
  --line-dark: rgba(255, 255, 255, .14);
  --accent: #8a2c22;
  --night: #121010;
  --night-2: #1c1917;
  --display: "Manrope", system-ui, sans-serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --wrap: 1240px;
  --gut: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; scrollbar-color: #8a2c22 #f1ece6; }
/* the page scrollbar in the site's colours: oxblood on warm paper (Safari and older Chrome read these) */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: #f1ece6; }
::-webkit-scrollbar-thumb { background: #8a2c22; border: 3px solid #f1ece6; border-radius: 12px; }
::-webkit-scrollbar-thumb:hover { background: #a3392d; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 300 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- shared (also used by the recitals band) ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.section { padding: clamp(80px, 11vw, 150px) 0; }
.eyebrow {
  font: 500 12px/1 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}
.display, .title {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -.035em;
  margin: 0;
  text-wrap: balance;
}
.display em, .title em { font-style: normal; color: var(--accent); }
.title { font-size: clamp(32px, 3.9vw, 54px); line-height: 1.08; margin-bottom: 28px; max-width: 19ch; }
.head { margin-bottom: 56px; }
.head--split { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.head--split .title { margin-bottom: 0; }
.head__note { max-width: 24em; color: var(--muted); font-size: 15px; margin: 0; }
.link-arrow { font-weight: 500; font-size: 15px; display: inline-flex; gap: 8px; align-items: center; }
.link-arrow span { transition: transform .4s var(--ease); }
.link-arrow:hover span, a:hover .link-arrow span { transform: translateX(4px); }

/* centred section head */
.head--center { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 24px; margin-bottom: 64px; }
.head--center .title { margin-bottom: 0; max-width: 16ch; }
.head__sub { margin: 20px 0 0; max-width: 34em; color: var(--ink-2); font-size: 16px; }

/* ---------- frame ---------- */
.frame { position: relative; width: calc(100% - 24px); max-width: 1200px; margin: 0 auto; }
@media (min-width: 640px) { .frame { width: calc(100% - 64px); } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: 999px; border: 0; cursor: pointer; white-space: nowrap;
  font: 500 14px/1 var(--sans);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.btn .chev { width: 9px; height: 9px; flex: none; transition: transform .2s var(--ease); }
.btn:hover .chev { transform: translateX(2px); }
.btn--sm { height: 36px; padding: 0 16px; }
.btn--lg { height: 48px; padding: 0 24px; font-size: 15px; }
.btn--dark { background: var(--ink); color: #fafafa; }
.btn--dark:hover { background: #000; }
.btn--grey { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .16), 0 8px 20px -14px rgba(0, 0, 0, .35); }
.btn--grey:hover { background: var(--g100); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .24), 0 8px 20px -14px rgba(0, 0, 0, .35); }
.btn--white { background: #f5f2ec; color: var(--ink); }
.btn--white:hover { background: #fff; }
.btn--full { width: 100%; }

/* ---------- brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.brand__name { font: 600 20px/1 var(--display); letter-spacing: -.03em; }
.brand__mark { display: inline-flex; gap: 2px; height: 22px; align-items: flex-start; }
.brand__mark i { width: 7px; height: 22px; border: 1px solid currentColor; border-radius: 0 0 2px 2px; position: relative; }
.brand__mark i:nth-child(odd)::after { content: ""; position: absolute; right: -5px; top: -1px; width: 6px; height: 13px; background: currentColor; border-radius: 0 0 1px 1px; z-index: 1; }
.brand__mark i:last-child::after { display: none; }

/* ---------- top bar (the long one) ---------- */
.topbar { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .35s var(--ease), box-shadow .35s var(--ease); }
.topbar.is-solid { background: rgba(250, 250, 250, .86); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 1px 0 var(--line); }
.topbar.is-solid.on-dark { background: rgba(18, 16, 16, .82); color: #f1ebe0; box-shadow: 0 1px 0 rgba(255, 255, 255, .08); }
.topbar.on-dark .brand { color: #f1ebe0; }
.topbar.on-dark .topnav__cta { background: #f5f2ec; color: var(--ink); }
.topbar.on-dark .topnav__cta:hover { background: #fff; }
.topnav { position: relative; display: flex; align-items: center; justify-content: space-between; height: 112px; padding: 0 32px; transition: height .35s var(--ease); }
.topbar.is-solid .topnav { height: 72px; }
.topnav__links { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 32px; font: 500 14px/1 var(--sans); }
.topnav__links a { transition: opacity .15s; }
.topnav__links a:hover { opacity: .6; }
.burger { display: none; position: relative; width: 44px; height: 44px; margin-right: -10px; align-items: center; justify-content: center; border: 0; background: none; cursor: pointer; border-radius: 999px; }
.burger i { position: absolute; width: 16px; height: 1.5px; background: currentColor; }
.burger i:first-child { transform: translateY(-3px); }
.burger i:last-child { transform: translateY(3px); }

/* full-screen menu (phones and tablets) */
.menu { position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; padding: 14px 24px 32px; background: var(--night); color: #f1ebe0; opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), visibility .25s; }
.menu.open { opacity: 1; visibility: visible; }
.menu .brand { color: #f1ebe0; }
.menu__top { display: flex; align-items: center; justify-content: space-between; height: 44px; }
.menu__close { width: 44px; height: 44px; margin-right: -10px; display: flex; align-items: center; justify-content: center; background: none; border: 0; cursor: pointer; }
.menu__close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.menu nav { display: flex; flex-direction: column; margin-top: 40px; }
.menu nav a { font: 500 30px/1.25 var(--display); letter-spacing: -.03em; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.menu > .btn { margin-top: auto; }

/* ---------- hero: title over one big photo ---------- */
.hero { --h1fs: min(clamp(42px, 5.6vw, 82px), 8.2vh); }
.hero .frame { padding: 136px 0 0; }
.hero__in { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 16px; }
.hero__title { font-size: var(--h1fs); line-height: 1.04; }
.hero__title em { display: block; }
.hero__sub { margin: 20px 0 0; font: 400 18px/27px var(--sans); color: var(--ink-2); text-wrap: balance; }
/* the photo's width comes from the height left under the text, so it fits the first screen */
.hero__img {
  position: relative; margin: 36px auto 0; overflow: hidden; border-radius: 16px; aspect-ratio: 16 / 9; background: var(--g100);
  width: min(1120px, calc(100% - 32px), max(640px, calc((100svh - 136px - var(--h1fs) * 2.08 - 47px - 36px - 28px) * 16 / 9)));
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 40px 80px -36px rgba(0, 0, 0, .45);
}
.hero__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--op, 50% 8%); opacity: 0; transition: opacity 1.4s var(--ease), transform 7s linear; }
/* slideshow: the next photo fades in on top, and the showing one drifts in very slowly */
.hero__img img.is-on { opacity: 1; transform: scale(1.035); }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 32px; padding: 0 16px; }
.hero__title, .hero__sub, .hero__img, .hero__cta { animation: rise .9s var(--ease) both; }
.hero__sub { animation-delay: .08s; }
.hero__img { animation-delay: .16s; }
.hero__cta { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* floating 3D notes behind the hero (rendered once with three.js: tools/notes3d) */
.hero { position: relative; --img-w: min(1120px, calc(100vw - 96px), max(640px, calc((100svh - 136px - var(--h1fs) * 2.08 - 47px - 36px - 28px) * 16 / 9))); }
.hero .frame { z-index: 1; }
.hero__notes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; animation: hn-in 1.6s .15s var(--ease) both; }
.hn { position: absolute; left: var(--x); top: var(--y); width: clamp(18px, calc(var(--w) * .62vw), 92px);
  transform: translate(-50%, -50%) translate3d(calc(var(--px, 0) * var(--k) * 1px), calc((var(--py, 0) * var(--k) - var(--sy, 0) * var(--k) * .02) * 1px), 0);
  transition: transform .9s cubic-bezier(.2, .7, .2, 1); will-change: transform; }
.hn--side { left: calc(50% + var(--edge) * (var(--img-w) / 2 + var(--off))); }
.hn img { display: block; width: 100%; height: auto; transform: rotate(var(--r)); animation: hn-float var(--t, 10s) ease-in-out var(--dl, 0s) infinite; }
.hn--near { filter: drop-shadow(0 16px 22px rgba(70, 45, 20, .13)); }
.hn--mid { opacity: .92; filter: drop-shadow(0 10px 14px rgba(70, 45, 20, .1)) blur(.5px); }
.hn--far { opacity: .72; filter: blur(1.8px); }
.hero__notes.is-resting .hn img { animation-play-state: paused; }   /* off screen: no work */
@keyframes hn-float { 0%, 100% { transform: translateY(0) rotate(var(--r)); } 50% { transform: translateY(-16px) rotate(calc(var(--r) + 5deg)); } }
@keyframes hn-in { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) {
  .hero__notes { animation: none; }
  .hn { transition: none; }
  .hn img { animation: none; }
}

/* ---------- section dividers: two short hairlines with a small note between ---------- */
.creds, .about, .piano3d, .lessons, .recitals, .gallery, .watch, .faqs { position: relative; }
.creds { --pt: 120px; }
.about, .piano3d, .lessons, .recitals, .gallery, .watch, .faqs { --pt: 160px; }
.creds::before, .about::before, .piano3d::before, .lessons::before, .recitals::before, .gallery::before, .watch::before, .faqs::before {
  content: ""; position: absolute; left: 50%; top: calc(var(--pt) / 2); width: 300px; height: 1px; transform: translate(-50%, -50%); pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .18) 30%, rgba(0, 0, 0, .18) 42%, rgba(0, 0, 0, 0) 42%, rgba(0, 0, 0, 0) 58%, rgba(0, 0, 0, .18) 58%, rgba(0, 0, 0, .18) 70%, rgba(0, 0, 0, 0)); }
.creds::after, .about::after, .piano3d::after, .lessons::after, .recitals::after, .gallery::after, .watch::after, .faqs::after {
  content: ""; position: absolute; left: 50%; top: calc(var(--pt) / 2); width: 18px; height: 18px; transform: translate(-50%, -55%); pointer-events: none; opacity: .85;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='%238a2c22'%3E%3Cellipse cx='9' cy='18' rx='3.6' ry='2.6' transform='rotate(-20 9 18)'/%3E%3Crect x='11.6' y='4' width='1.5' height='14.2'/%3E%3Cpath d='M13 4c.5 2.8 4.6 3.6 4.6 7.2 0 1.2-.4 2.2-1 3 .3-.8.5-1.5.5-2.2 0-2.3-2.6-3.3-4.1-4.4z'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; }

/* ---------- credentials: three names in a row ---------- */
.creds .frame { padding: 120px 0 0; }
.creds__label { margin: 0; padding: 0 24px 32px; text-align: center; font: 500 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.creds__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; max-width: 980px; margin: 0 auto; padding: 0 24px; list-style: none; text-align: center; }
.creds__list li { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.creds__list b { font: 600 18px/1.25 var(--display); letter-spacing: -.02em; color: var(--ink); }
.creds__list span { font: 400 13.5px/1.4 var(--sans); color: var(--ink-3); }

/* ---------- 3D piano ---------- */
.piano3d .frame { padding: 160px 0 0; }
.piano3d .head--center { margin-bottom: 24px; }
.piano3d__stage { position: relative; width: min(1120px, calc(100% - 32px)); aspect-ratio: 16 / 10; margin: 0 auto; background: radial-gradient(56% 62% at 50% 58%, #ffffff 0%, rgba(250, 250, 250, 0) 72%); }
.piano3d__stage canvas { display: block; width: 100%; height: 100%; cursor: grab; opacity: 0; transition: opacity .8s var(--ease); }
.piano3d__stage.is-ready canvas { opacity: 1; }
.piano3d__stage canvas:active { cursor: grabbing; }
.piano3d__stage canvas.on-key { cursor: pointer; }
.piano3d__stage.is-fallback { background: center / cover no-repeat url("media/photos/kd-hands.jpg"); border-radius: 16px; }
.piano3d__bar { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 8px; }
.piano3d__play svg { width: 14px; height: 14px; fill: currentColor; }
.piano3d__play .i-stop, .piano3d__play .t-stop { display: none; }
.piano3d__play.is-playing .i-stop, .piano3d__play.is-playing .t-stop { display: inline; }
.piano3d__play.is-playing .i-play, .piano3d__play.is-playing .t-play { display: none; }
.piano3d__hint { margin: 0; font-size: 13px; color: var(--ink-3); }
@media (pointer: coarse) { .piano3d__hint { display: none; } }

/* ---------- lessons: one photo, three tabs ---------- */
.lessons .frame { padding: 160px 0 0; }
.lessons .head--center { margin-bottom: 40px; }
.lessons__tabs { display: flex; justify-content: center; gap: 4px; width: max-content; max-width: calc(100% - 32px); margin: 0 auto; padding: 4px; border-radius: 999px; background: var(--g100); }
.ltab { position: relative; overflow: hidden; height: 42px; padding: 0 22px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font: 500 14px/1 var(--sans); cursor: pointer; transition: background .3s var(--ease), color .3s var(--ease); }
.ltab:hover { color: var(--ink); }
.ltab.is-on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 4px 14px -6px rgba(0, 0, 0, .18); }
.ltab span { position: relative; z-index: 1; }
/* time left before the next tab, drawn along the bottom of the active pill */
.ltab i { position: absolute; left: 18px; right: 18px; bottom: 7px; height: 1.5px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; opacity: 0; }
.lessons.is-auto .ltab.is-on i { opacity: .55; animation: ltab-run var(--ldur, 6s) linear forwards; }
@keyframes ltab-run { to { transform: scaleX(1); } }
.lessons__stage { width: min(1040px, calc(100% - 32px)); margin: 32px auto 0; }
.lessons__media { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 16px; background: #0b0a09; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 40px 80px -40px rgba(0, 0, 0, .4); }
.lmedia { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity .9s var(--ease), transform 1.6s var(--ease); }
.lmedia.is-on { opacity: 1; transform: none; }
.lmedia--exams { object-position: 50% 18%; }
.lmedia--stage { object-position: 50% 40%; }
.lessons__copy { display: grid; margin-top: 36px; text-align: center; }
.lcopy { grid-area: 1 / 1; display: flex; flex-direction: column; align-items: center; padding: 0 16px; opacity: 0; transform: translateY(10px); visibility: hidden; transition: opacity .6s var(--ease), transform .6s var(--ease), visibility .6s; }
.lcopy.is-on { opacity: 1; transform: none; visibility: visible; }
.lcopy h3 { margin: 0; font: 500 clamp(24px, 2.4vw, 32px)/1.15 var(--display); letter-spacing: -.03em; color: var(--ink); }
.lcopy p { margin: 12px 0 0; max-width: 34em; font-size: 17px; color: var(--ink-2); text-wrap: pretty; }
.lcopy .lcopy__meta { margin-top: 16px; font: 500 13px/1.6 var(--sans); color: var(--ink-3); }
.lcopy__meta b { margin: 0 8px; font-weight: 500; color: var(--accent); }
@media (prefers-reduced-motion: reduce) {
  .lmedia, .lcopy { transition: none; }
  .lessons.is-auto .ltab.is-on i { animation: none; opacity: 0; }
}

/* ---------- recitals: the clip player on the light page ---------- */
.recitals .frame { padding: 160px 0 0; }
.player { display: grid; grid-template-columns: 1fr 272px; gap: 12px; padding: 0 8px; }
.player__main { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 16px; background: #000; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 40px 80px -40px rgba(0, 0, 0, .4); }
.player__main video { width: 100%; height: 100%; object-fit: cover; }
.player__play { position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); color: var(--ink); cursor: pointer; box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .35); transition: transform .4s var(--ease), opacity .4s; }
.player__play svg { width: 28px; height: 28px; fill: currentColor; margin: auto; display: block; transform: translateX(2px); }
.player__play:hover { transform: scale(1.06); }
.player.is-playing .player__play { opacity: 0; pointer-events: none; }
.player__list { display: grid; grid-template-rows: repeat(4, 1fr); gap: 8px; }
/* one recital clip after the On stage photos */
.watch .frame { padding: 160px 0 0; }
.player--solo { grid-template-columns: minmax(0, 980px); justify-content: center; }
.clip { display: grid; grid-template-columns: 108px 1fr; gap: 14px; align-items: center; min-height: 0; padding: 8px; border: 0; border-radius: 14px; background: var(--g100); color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: background .25s, box-shadow .25s; }
.clip img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; }
.clip span { font: 500 15px/1.3 var(--sans); }
.clip small { display: block; margin-top: 3px; font: 400 12px/1 var(--sans); color: var(--ink-3); }
.clip:hover { background: var(--g200); }
.clip.is-active { background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 10px 24px -14px rgba(0, 0, 0, .35); }
/* blog cards: a rounded photo with the words underneath, no box */
.story { display: flex; flex-direction: column; color: var(--ink); }
.story img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 16px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .05); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.story:hover img { transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(0, 0, 0, .05), 0 28px 50px -28px rgba(0, 0, 0, .45); }
.story > div { padding: 22px 4px 0; }
.story .story__meta { margin: 0 0 10px; font: 500 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.story h3 { margin: 0 0 10px; font: 500 24px/1.25 var(--display); letter-spacing: -.025em; color: var(--ink); text-wrap: balance; transition: color .2s; }
.story:hover h3 { color: var(--accent); }
.story p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }
.story .link-arrow { margin-top: 16px; color: var(--ink); }

/* ---------- about ---------- */
.about .frame { padding: 160px 0 0; }
.about__in { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 24px; }
.about__avatar { width: 88px; height: 88px; margin-bottom: 28px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--line); }
.about__in .title { max-width: 16ch; }
.about__p { max-width: 36em; margin: 0 0 16px; font-size: 17px; color: var(--ink-2); text-wrap: pretty; }
.about__quote { margin: 40px 0 0; padding: 0; max-width: 30em; }
.about__quote p { margin: 0 0 14px; font: 500 clamp(21px, 2.2vw, 28px)/1.35 var(--display); letter-spacing: -.025em; color: var(--ink); text-wrap: balance; }
.about__quote cite { font: 500 12px/1 var(--sans); font-style: normal; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }

/* ---------- gallery ---------- */
.gallery .frame { padding: 160px 0 0; }
/* photos as prints on a table: tilted, staggered, straightening on hover */
.prints { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; padding: 24px 8px 40px;
  margin-inline: min(0px, 50% - min(50vw - 36px, 780px)); /* wider than the text column, so the prints can be bigger */ }
.print { position: relative; flex: none; width: calc((100% + 100px) / 5.24); margin: 0 -10px; padding: 12px 12px 0; background: #fff; border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 24px 44px -24px rgba(0, 0, 0, .4);
  transform: translateY(var(--ty, 0px)) rotate(var(--rot, 0deg)); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
/* home: two rows of five, the tenth card is "See more" (gallery.html); an <i class="prints__br"> ends a row */
.prints--home .print:nth-of-type(1) { --rot: -6deg; --ty: 14px; }
.prints--home .print:nth-of-type(2) { --rot: 3deg; --ty: -16px; z-index: 2; }
.prints--home .print:nth-of-type(3) { --rot: -2deg; --ty: 8px; z-index: 3; width: calc((100% + 100px) / 5.24 * 1.12); }
.prints--home .print:nth-of-type(4) { --rot: 5deg; --ty: -14px; z-index: 2; }
.prints--home .print:nth-of-type(5) { --rot: -4deg; --ty: 16px; }
.prints--home .print:nth-of-type(6) { --rot: 4deg; --ty: -8px; }
.prints--home .print:nth-of-type(7) { --rot: -3deg; --ty: 12px; z-index: 2; }
.prints--home .print:nth-of-type(8) { --rot: 2deg; --ty: -6px; z-index: 3; width: calc((100% + 100px) / 5.24 * 1.12); }
.prints--home .print:nth-of-type(9) { --rot: -5deg; --ty: 10px; z-index: 2; }
.prints--home .print:nth-of-type(10) { --rot: 3deg; --ty: -12px; }
/* gallery page: rows of five and four, a nine-print pattern */
.prints--all .print:nth-of-type(9n + 1) { --rot: -6deg; --ty: 14px; }
.prints--all .print:nth-of-type(9n + 2) { --rot: 3deg; --ty: -16px; z-index: 2; }
.prints--all .print:nth-of-type(9n + 3) { --rot: -2deg; --ty: 8px; z-index: 3; width: calc((100% + 100px) / 5.24 * 1.12); }
.prints--all .print:nth-of-type(9n + 4) { --rot: 5deg; --ty: -14px; z-index: 2; }
.prints--all .print:nth-of-type(9n + 5) { --rot: -4deg; --ty: 16px; }
.prints--all .print:nth-of-type(9n + 6) { --rot: 4deg; --ty: -6px; }
.prints--all .print:nth-of-type(9n + 7) { --rot: -3deg; --ty: 12px; z-index: 2; }
.prints--all .print:nth-of-type(9n + 8) { --rot: 2deg; --ty: -10px; z-index: 2; }
.prints--all .print:nth-of-type(9n + 9) { --rot: -5deg; --ty: 8px; }
.prints__br { flex: 0 0 100%; height: 26px; }
.print:hover { z-index: 5; transform: translateY(calc(var(--ty, 0px) - 10px)) rotate(0deg) scale(1.04); box-shadow: 0 2px 4px rgba(0, 0, 0, .08), 0 36px 60px -28px rgba(0, 0, 0, .5); }
.print img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3.3; object-fit: cover; border-radius: 3px; }
.print > a { display: block; cursor: zoom-in; }
.print > a::after { content: ""; position: absolute; inset: 0; z-index: 1; }   /* the whole print opens the photo */
.print > a:focus-visible { outline: none; }
.print:has(> a:focus-visible) { outline: 2px solid var(--accent); outline-offset: 4px; }
/* the See more card: three small prints fanned on a light card */
.print--more > a { position: relative; aspect-ratio: 4 / 3.3; overflow: hidden; border-radius: 3px; background: var(--g100); cursor: pointer; }
.print .print__stack img { position: absolute; top: 50%; left: 50%; width: 50%; aspect-ratio: 4 / 3.3; border: 4px solid #fff; border-radius: 2px; box-shadow: 0 10px 20px -10px rgba(0, 0, 0, .5); }
.print__stack img:nth-child(1) { transform: translate(-92%, -62%) rotate(-9deg); }
.print__stack img:nth-child(2) { transform: translate(-8%, -58%) rotate(7deg); }
.print__stack img:nth-child(3) { transform: translate(-50%, -36%) rotate(-2deg); }
.print--more figcaption { font-weight: 500; color: var(--ink); }
.print--more figcaption span { color: var(--accent); }
.print figcaption { padding: 13px 20px 15px; font: 400 14px/1.35 var(--sans); color: var(--ink-2); text-align: center; text-wrap: balance; }
@media (max-width: 1100px) {
  .prints { gap: 22px 0; }
  .prints .print:nth-of-type(n) { width: calc(33.333% - 14px); margin: 0 5px; }
  .prints__br { display: none; }
  .prints--home .print:nth-of-type(9):not(.print--more) { display: none; }   /* tablets: eight photos and See more, 3 x 3 */
}
@media (max-width: 767px) {
  .prints { gap: 16px 0; padding: 8px 4px 20px; }
  .prints .print:nth-of-type(n) { width: calc(50% - 10px); margin: 0 3px; padding: 7px 7px 0; }
  .prints .print:nth-of-type(odd) { --rot: -3deg; --ty: 0px; }
  .prints .print:nth-of-type(even) { --rot: 3deg; --ty: 10px; }
  .prints--home .print:nth-of-type(n + 4):not(.print--more) { display: none; }   /* phones: three photos and See more, a neat 2 x 2 */
  .print .print__stack img { border-width: 3px; }
  .prints--all .print:first-of-type:nth-last-of-type(odd) { width: calc(100% - 10px); --rot: -1.5deg; }   /* an odd count: the first spans the row, so no print sits alone at the end */
  .print figcaption { padding: 9px 2px 10px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .print { transition: none; } }

/* lightbox for the prints */
html:has(.lightbox[open]) { overflow: hidden; }
.lightbox { max-width: calc(100vw - 32px); max-height: calc(100dvh - 32px); padding: 10px 10px 0; border: 0; border-radius: 8px; background: #fff; color: var(--ink); overflow: visible; box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .7); }
.lightbox::backdrop { background: rgba(18, 14, 12, .84); }
.lightbox figure { margin: 0; }
.lightbox img { display: block; width: auto; height: auto; max-width: min(1200px, calc(100vw - 52px)); max-height: calc(100dvh - 120px); margin: 0 auto; border-radius: 4px; }
.lightbox figcaption { max-width: 60ch; margin: 0 auto; padding: 12px 8px 14px; font: 400 15px/1.4 var(--sans); color: var(--ink-2); text-align: center; text-wrap: balance; }
.lightbox__close { position: absolute; top: -16px; right: -16px; width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); }
.lightbox__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
@media (max-width: 767px) {
  .lightbox { padding: 6px 6px 0; }
  .lightbox img { max-width: calc(100vw - 44px); }
  .lightbox__close { top: -52px; right: 0; }
}

/* ---------- FAQs (the ScaleVirtual rows) ---------- */
.faqs .frame { padding: 160px 0 160px; display: flex; justify-content: center; }
.faq-in { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 620px; padding: 0 12px; }
.faq-in .head--center { margin-bottom: 48px; }
.faq-list { display: flex; flex-direction: column; gap: 4px; width: 100%; }
.faq { overflow: hidden; border-radius: 12px; background: var(--g100); transition: background-color .15s cubic-bezier(.4, 0, .2, 1); }
.faq:hover { background: #ececec; }
.faq-q { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 16px; padding: 18px; background: none; border: 0; text-align: left; cursor: pointer; user-select: none; }
.faq-q:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--ink); border-radius: 12px; }
.faq-q > span:first-child { flex: 1; font: 500 15px/1.4 var(--sans); color: var(--ink); }
/* round plus that turns into a minus */
.faq-ic { position: relative; width: 28px; height: 28px; flex: none; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .07); transition: background .3s var(--ease); }
.faq-ic::before, .faq-ic::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; border-radius: 1px; background: var(--ink); transform: translate(-50%, -50%); transition: transform .4s cubic-bezier(.22, 1, .36, 1), background .3s; }
.faq-ic::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq:hover .faq-ic { background: #fafafa; }
.faq.open .faq-ic { background: var(--ink); }
.faq.open .faq-ic::before, .faq.open .faq-ic::after { background: #fafafa; }
.faq.open .faq-ic::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-a { height: 0; overflow: hidden; opacity: 0; filter: blur(8px); transform: scale(.98); transform-origin: top; transition: height .3s cubic-bezier(.22, 1, .36, 1), opacity .3s cubic-bezier(.22, 1, .36, 1), filter .3s cubic-bezier(.22, 1, .36, 1), transform .3s cubic-bezier(.22, 1, .36, 1); }
.faq.open .faq-a { opacity: 1; filter: blur(0); transform: none; }
.faq-a > div { padding: 0 18px 18px; font: 400 15px/1.6 var(--sans); color: var(--ink-2); }
.faq-a > div p { margin: 0 0 10px; }
.faq-a > div p:last-child { margin: 0; }
.faq-in > .btn { margin-top: 48px; }

/* ---------- contact (dark) ---------- */
.contact { background: var(--night); color: #f1ebe0; }
.contact .frame { padding: 140px 0 120px; }
.contact__in { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 24px; }
.contact .eyebrow { color: #d9a48f; }
.contact .title { max-width: 16ch; }
.contact .title em { color: #d9a48f; }
.contact__p { max-width: 34em; margin: 0; font-size: 16px; color: rgba(241, 235, 224, .66); text-wrap: pretty; }
.venues { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; width: 100%; max-width: 760px; margin: 40px 0 0; padding: 0; list-style: none; }
.venues li { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.venues b { font: 600 16px/1.3 var(--display); letter-spacing: -.01em; color: #f1ebe0; }
.venues span { font: 400 13.5px/1.4 var(--sans); color: rgba(241, 235, 224, .56); }
.form { position: relative; width: 100%; max-width: 560px; margin-top: 48px; padding: 32px; text-align: left; border-radius: 20px; background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .02)); border: 1px solid rgba(255, 255, 255, .09); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6); }
.form::before { content: ""; position: absolute; left: 28px; right: 28px; top: -1px; height: 1px; background: linear-gradient(90deg, rgba(217, 164, 143, 0), rgba(217, 164, 143, .7), rgba(217, 164, 143, 0)); }
.form__fields { display: grid; gap: 14px; }
.form__fields[hidden] { display: none; }
/* fields with the label inside, floating up while typing */
.fld { position: relative; display: block; }
.fld input, .fld textarea { display: block; width: 100%; padding: 25px 16px 9px; font: 400 16px/1.4 var(--sans); color: #f1ebe0; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; outline: none; transition: border-color .2s, background .2s, box-shadow .2s; }
.fld textarea { min-height: 112px; resize: vertical; }
.fld > span { position: absolute; left: 17px; top: 18px; max-width: calc(100% - 34px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font: 400 15px/1.2 var(--sans); color: rgba(241, 235, 224, .5); pointer-events: none; transform-origin: left top; transition: transform .2s var(--ease), color .2s; }
.fld input:focus + span, .fld input:not(:placeholder-shown) + span,
.fld textarea:focus + span, .fld textarea:not(:placeholder-shown) + span { transform: translateY(-10px) scale(.78); color: #d9a48f; }
.fld input:focus, .fld textarea:focus { border-color: rgba(217, 164, 143, .8); background: rgba(255, 255, 255, .07); box-shadow: 0 0 0 4px rgba(217, 164, 143, .12); }
/* country code and phone number side by side */
.fld-row { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 10px; }
.fld--code .dd__list { right: auto; min-width: 230px; }
.fld.is-error input { border-color: #e2836f; box-shadow: 0 0 0 4px rgba(226, 131, 111, .12); }
.fld.is-error > span { color: #e2836f; }
/* who is learning: a dropdown that matches the fields */
.fld select { display: block; width: 100%; padding: 25px 44px 9px 16px; font: 400 16px/1.4 var(--sans); color: #f1ebe0; border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; outline: none; cursor: pointer; appearance: none; -webkit-appearance: none;
  background: rgba(255, 255, 255, .05) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='%23f1ebe0' d='M1.2 4.2a.75.75 0 0 1 1.06 0L6 7.94l3.74-3.74a.75.75 0 1 1 1.06 1.06L6.53 9.53a.75.75 0 0 1-1.06 0L1.2 5.26a.75.75 0 0 1 0-1.06z'/%3E%3C/svg%3E") no-repeat right 18px center / 11px;
  transition: border-color .2s, background-color .2s, box-shadow .2s; }
.fld select option { color: var(--ink); }
.fld select:focus { border-color: rgba(217, 164, 143, .8); background-color: rgba(255, 255, 255, .07); box-shadow: 0 0 0 4px rgba(217, 164, 143, .12); }
.fld--select > span { transform: translateY(-10px) scale(.78); }
.fld--select:has(select:focus) > span { color: #d9a48f; }
/* our own dropdown, drawn over the hidden native select */
.fld--select > span { z-index: 1; }
.fld--select.is-enhanced select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.dd__btn { position: relative; display: block; width: 100%; padding: 25px 44px 9px 16px; text-align: left; font: 400 16px/1.4 var(--sans); color: #f1ebe0; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; cursor: pointer; transition: border-color .2s, background-color .2s, box-shadow .2s; }
.dd__btn::after { content: ""; position: absolute; right: 18px; top: 50%; width: 11px; height: 11px; transform: translateY(-50%); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='%23f1ebe0' d='M1.2 4.2a.75.75 0 0 1 1.06 0L6 7.94l3.74-3.74a.75.75 0 1 1 1.06 1.06L6.53 9.53a.75.75 0 0 1-1.06 0L1.2 5.26a.75.75 0 0 1 0-1.06z'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .25s var(--ease); }
.dd__btn:hover { border-color: rgba(255, 255, 255, .2); }
.dd__btn:focus-visible, .fld--select.is-open .dd__btn { outline: none; border-color: rgba(217, 164, 143, .8); background-color: rgba(255, 255, 255, .07); box-shadow: 0 0 0 4px rgba(217, 164, 143, .12); }
.fld--select.is-open .dd__btn::after { transform: translateY(-50%) rotate(180deg); }
.fld--select.is-open > span { color: #d9a48f; }
.dd__list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 8px); max-height: 320px; overflow: auto; margin: 0; padding: 6px; list-style: none; background: #211d1b; border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; box-shadow: 0 28px 56px -18px rgba(0, 0, 0, .75); outline: none; animation: dd-in .18s var(--ease); }
.dd__list[hidden] { display: none; }
@keyframes dd-in { from { opacity: 0; transform: translateY(-6px); } }
.dd__list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; border-radius: 9px; font: 400 15px/1.3 var(--sans); color: rgba(241, 235, 224, .8); cursor: pointer; transition: background-color .12s, color .12s; }
.dd__list li.is-active { background: rgba(255, 255, 255, .07); color: #fff; }
.dd__list li[aria-selected="true"] { color: #f5f2ec; }
.dd__list li svg { width: 16px; height: 16px; flex: none; fill: none; stroke: #d9a48f; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.dd__list li[aria-selected="true"] svg { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .dd__list { animation: none; } }
.form .btn { margin-top: 6px; }
.form__msg { margin: 0; min-height: 0; font-size: 14px; text-align: center; color: #e2836f; }
.form__msg:empty { display: none; }
.form__fine { margin: 0; text-align: center; font-size: 12.5px; color: rgba(241, 235, 224, .42); }
/* after sending */
.form__done { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 28px 8px 20px; text-align: center; }
.form__done[hidden] { display: none; }
.form__tick { display: flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 50%; background: rgba(217, 164, 143, .14); color: #d9a48f; }
.form__tick svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.form__done h3 { margin: 8px 0 0; font: 500 26px/1.2 var(--display); letter-spacing: -.02em; color: #f1ebe0; }
.form__done p { margin: 0; max-width: 28em; color: rgba(241, 235, 224, .66); }
.form__again { margin-top: 10px; padding: 6px 4px; border: 0; background: none; font: 500 14px/1 var(--sans); color: #d9a48f; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- footer: full width, links, a big wordmark, a bottom bar ---------- */
.foot { background: var(--night); color: rgba(241, 235, 224, .62); border-top: 1px solid rgba(255, 255, 255, .08); }
.foot__pad { padding-left: clamp(20px, 4vw, 64px); padding-right: clamp(20px, 4vw, 64px); }
.foot__top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; padding-top: 88px; padding-bottom: 88px; }
.foot .brand { color: #f1ebe0; }
.foot__brand p { margin: 20px 0 0; max-width: 24em; font-size: 15px; line-height: 1.6; }
.foot__brand .foot__place { margin-top: 10px; font-size: 13px; color: rgba(241, 235, 224, .42); }
.foot__col { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.foot__col h3 { margin: 4px 0 6px; font: 500 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #d9a48f; }
.foot__col a { font-size: 15px; color: rgba(241, 235, 224, .78); transition: color .15s; }
.foot__col a:hover { color: #fff; }
.foot__bot { border-top: 1px solid rgba(255, 255, 255, .08); }
.foot__botin { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 30px; font-size: 13px; }
.foot__bot a { color: rgba(241, 235, 224, .78); white-space: nowrap; transition: color .15s; }
.foot__bot a:hover { color: #fff; }

/* ---------- blog ---------- */
.blogpage .frame { padding: 168px 0 160px; }
.blogpage .title { font-size: clamp(38px, 5vw, 68px); line-height: 1.04; }
.blogpage .head__sub { margin-top: 24px; }
.posts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 36px; padding: 0 8px; }
/* one article: cover, title, date, paragraphs */
.article .frame { padding: 136px 0 150px; }
.article__in { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.article__cover { margin: 0; overflow: hidden; border-radius: 16px; aspect-ratio: 16 / 9; background: var(--g100); box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 40px 80px -40px rgba(0, 0, 0, .4); }
.article__cover img { width: 100%; height: 100%; object-fit: cover; }
.article__title { margin: 48px 0 0; text-align: center; font: 500 clamp(32px, 4.2vw, 54px)/1.08 var(--display); letter-spacing: -.035em; text-wrap: balance; }
.article__date { margin: 18px 0 0; text-align: center; font: 500 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.article__body { margin-top: 56px; }
.article__body h2 { margin: 52px 0 16px; font: 500 clamp(23px, 2.2vw, 28px)/1.2 var(--display); letter-spacing: -.03em; color: var(--ink); }
.article__body h2:first-child { margin-top: 0; }
.article__body p { margin: 0 0 22px; font-size: 18px; line-height: 1.75; color: var(--ink-2); }
.article__body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
/* press clipping: the newspaper's masthead and article top, linking to the full article */
.press { margin: 0; }
.press > a { display: block; overflow: hidden; border-radius: 10px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08), 0 30px 60px -36px rgba(0, 0, 0, .35); }
.press img { display: block; width: 100%; height: auto; }
.press figcaption { margin-top: 14px; font: 400 15px/1.5 var(--sans); color: var(--ink-3); text-align: center; }
.more { margin-top: 110px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.more .title { font-size: clamp(28px, 3vw, 40px); max-width: none; margin-bottom: 40px; }
.more .posts { grid-template-columns: minmax(0, 560px); padding: 0; text-align: left; }

/* ---------- FAQ page ---------- */
.faqpage .frame { padding: 168px 0 160px; display: flex; justify-content: center; }
.faqpage .title { font-size: clamp(38px, 5vw, 68px); line-height: 1.04; }
.faqpage .head__sub { margin-top: 24px; }
.gallerypage .frame { padding: 168px 0 120px; }
.gallerypage .title { font-size: clamp(38px, 5vw, 68px); line-height: 1.04; }
.gallerypage .head__sub { margin-top: 24px; }

/* ---------- phone bar ---------- */
.mbar { display: none; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__title, .hero__sub, .hero__img, .hero__cta { animation: none; }
  .hero__img img { transition: none; }
  .hero__img img.is-on { transform: none; }
  .faq-a, .faq-ic, .faq-ic::before, .faq-ic::after { transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 1023px) {
  .topnav { height: 72px; padding: 0 16px; }
  .topbar.is-solid .topnav { height: 64px; }
  .topnav__links, .topnav__cta { display: none; }
  .burger { display: flex; }
  .hero .frame { padding-top: 112px; }
}
@media (max-width: 1023px) {
  .hn--side { display: none; }
}
@media (max-width: 1020px) {
  .player { grid-template-columns: 1fr; }
  .player__list { grid-template-columns: repeat(4, 1fr); grid-template-rows: none; }
  .clip { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .topbar.is-solid { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(250, 250, 250, .97); }
  .topbar.is-solid.on-dark { background: rgba(18, 16, 16, .97); }
  body { font-size: 16px; }
  .hero .frame { padding-top: 104px; }
  .hn--wide { display: none; }
  .hn { left: var(--mx, var(--x)); top: var(--my, var(--y)); width: calc(var(--mw, var(--w)) * .66vw); }
  .hero__sub { font-size: 16px; line-height: 24px; }
  .hero__img { width: calc(100% - 16px); aspect-ratio: 4 / 3; margin-top: 28px; border-radius: 12px; }
  .hero__img img { object-position: var(--opm, 40% 40%); }
  .lessons .frame, .about .frame, .gallery .frame { padding-top: 104px; }
  .piano3d .frame { padding-top: 104px; }
  .piano3d__stage { width: calc(100% - 8px); aspect-ratio: 1 / 1; }
  .creds .frame { padding-top: 88px; }
  .creds { --pt: 88px; }
  .about, .piano3d, .lessons, .recitals, .gallery, .watch, .faqs { --pt: 104px; }
  .creds__list { grid-template-columns: 1fr; gap: 22px; }
  .recitals .frame, .watch .frame { padding-top: 104px; }
  .player { padding: 0; }
  .faqs .frame { padding: 104px 0 112px; }
  .contact .frame { padding: 96px 0 88px; }
  .head--center { margin-bottom: 44px; }
  .lessons__tabs { width: calc(100% - 16px); }
  .ltab { flex: 1; padding: 0 10px; }
  .lessons__stage { width: calc(100% - 16px); margin-top: 20px; }
  .lessons__media { aspect-ratio: 4 / 3; border-radius: 12px; }
  .lessons__copy { margin-top: 26px; }
  .contact__in { padding: 0 8px; }
  .venues { grid-template-columns: 1fr; gap: 16px; margin-top: 32px; }
  .form { padding: 20px 14px; }
  .fld-row { grid-template-columns: 92px minmax(0, 1fr); gap: 8px; }
  .fld--code .dd__btn { padding-left: 14px; padding-right: 30px; }
  .fld--code .dd__btn::after { right: 12px; }
  .fld--code > span { left: 15px; }
  .faqpage .frame { padding: 120px 0 112px; }
  .gallerypage .frame { padding: 120px 0 88px; }
  .blogpage .frame { padding: 120px 0 112px; }
  .posts { grid-template-columns: 1fr; padding: 0; }
  .article .frame { padding: 100px 0 112px; }
  .article__in { padding: 0 16px; }
  .article__cover { border-radius: 12px; }
  .article__body p { font-size: 17px; }
  .more { margin-top: 80px; }
  .foot { padding-bottom: 76px; }
  .foot__top { grid-template-columns: 1fr 1fr; gap: 40px 24px; padding-top: 64px; padding-bottom: 56px; }
  .foot__brand { grid-column: 1 / -1; }
  .foot__botin { flex-direction: column; align-items: flex-start; gap: 10px; padding-top: 18px; padding-bottom: 24px; }
  .mbar { display: flex; position: fixed; left: 16px; right: 16px; bottom: 14px; z-index: 60; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .4); transform: translateY(140%); transition: transform .5s var(--ease); }
  .mbar.show { transform: none; }
}
@media (max-width: 680px) {
  .player__list { grid-template-columns: repeat(2, 1fr); }
  .clip { grid-template-columns: 64px 1fr; gap: 10px; }
}

/* ---------- pull tab: a small envelope on the right edge; the Malta letter opens in the centre ---------- */
.pulltab { position: fixed; right: 0; top: 56%; z-index: 70; width: 48px; padding: 9px 4px 8px 8px; display: flex; flex-direction: column; align-items: center; gap: 4px;
  border: 0; border-radius: 16px 0 0 16px; background: var(--accent); color: #f6efe6; cursor: pointer;
  box-shadow: -6px 10px 22px -10px rgba(70, 25, 15, .6); transition: transform .45s cubic-bezier(.34, 1.56, .64, 1); }
.pulltab:hover, .pulltab:focus-visible { transform: translateX(-6px); }   /* it never tucks under the scrollbar */
.pulltab:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.pulltab__env { width: 28px; height: 24px; overflow: visible; }
.env-back { fill: #e9dccb; }
.env-paper rect { fill: #fff; }
.env-paper path { fill: none; stroke: #c9b8a6; stroke-width: 1.2; stroke-linecap: round; }
.env-paper { transform: translateY(5px); transition: transform .45s cubic-bezier(.34, 1.56, .64, 1); }
.pulltab:hover .env-paper, .pulltab:focus-visible .env-paper { transform: translateY(-3px); }   /* the letter peeks out */
.env-front { fill: #f6efe6; }
.env-seal { fill: var(--accent); stroke: #f6efe6; stroke-width: 1; }
.pulltab__label { font: 500 9px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.pulltab__tip { position: absolute; right: calc(100% + 10px); top: 50%; padding: 8px 13px; border-radius: 999px; background: #fff; color: var(--ink);
  font: 500 12.5px/1 var(--sans); white-space: nowrap; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .35);
  opacity: 0; transform: translate(6px, -50%); pointer-events: none; transition: opacity .25s, transform .25s; }
.pulltab:hover .pulltab__tip { opacity: 1; transform: translate(0, -50%); }
.pulltab.is-hello { animation: tab-hello 1.1s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes tab-hello { 0%, 100% { transform: none; } 35% { transform: translateX(-8px) rotate(-5deg); } 65% { transform: translateX(-2px) rotate(3deg); } }
.letterbox[open]::backdrop { animation: letter-fade .35s ease; }
@keyframes letter-fade { from { opacity: 0; } }
@media (hover: none) { .pulltab__tip { display: none; } }
@media (max-width: 767px) {
  .pulltab { top: 62%; width: 40px; padding: 7px 3px 6px 7px; gap: 3px; border-radius: 13px 0 0 13px; }
  .pulltab__env { width: 22px; height: 19px; }
  .pulltab__label { font-size: 7.5px; letter-spacing: .08em; }
}
@media (prefers-reduced-motion: reduce) { .pulltab, .env-paper { transition: none; } .pulltab.is-hello { animation: none; } }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }   /* left empty by people, filled by bots */
