/* Tunes — component stylesheet. Loaded after tokens.css.
   Every value here is a token or a documented motion constant. */

:root {
  --tn-ease: cubic-bezier(.2, .7, .3, 1);
  --tn-dur: 220ms;
  --tn-dur-in: 700ms;
  --tn-dur-curtain: 900ms;

  --tn-ground: var(--surface);
  --tn-brand: var(--brand-east);
  --tn-on-brand: var(--on-deep-teal);
  --tn-cta: var(--mustard-yellow);
  --tn-on-cta: var(--on-mustard-yellow);
  --tn-gutter: var(--space-4);
}

[data-track="west"] {
  --tn-ground: var(--surface-west);
  --tn-brand: var(--brand-west);
  --tn-on-brand: var(--on-indigo-navy);
  --tn-cta: var(--indigo-navy);
  --tn-on-cta: var(--on-indigo-navy);
}

@media (min-width: 768px) { :root { --tn-gutter: var(--space-8); } }

html.tn-locked { overflow: hidden; }

.tn-empty {
  font-family: var(--font-sans); font-size: 16px; line-height: 27px;
  color: var(--ink-muted); padding: var(--space-8) 0;
}

/* Every focusable thing gets a ring. The halo version is for the components
   that can land on a brand fill; the outline below catches everything else,
   including links the system does not style itself. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}
:where(.tn-btn, .tn-card, .tn-nav__tab, .tn-strip, .tn-curtain__enter, .tn-curtain__skip,
  .tn-nav__sound, .tn-nav__burger, .tn-contact__maplink):focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--focus-ring-offset), 0 0 0 4px var(--focus-ring);
  border-radius: var(--radius-xs);
}

/* ---------- LogoMark ---------- */

.tn-logo { display: inline-grid; justify-items: center; gap: var(--space-2); color: var(--ink); line-height: 1; }
.tn-logo__art { display: block; width: auto; height: 2.2em; }
.tn-logo__mask {
  background: currentColor;
  -webkit-mask-repeat: no-repeat; -webkit-mask-position: center; -webkit-mask-size: contain;
  mask-repeat: no-repeat; mask-position: center; mask-size: contain;
}
.tn-logo--full .tn-logo__mask { aspect-ratio: 2084 / 1250; }
.tn-logo--mark .tn-logo__mask { aspect-ratio: 1321 / 2566; }
.tn-logo--mark .tn-logo__art { height: 5.4em; }
.tn-logo--sm .tn-logo__art { height: 40px; }
.tn-logo--md .tn-logo__art { height: 56px; }
.tn-logo--xl .tn-logo__art { height: 92px; }
.tn-logo--sm.tn-logo--mark .tn-logo__art { height: 40px; }
.tn-logo--md.tn-logo--mark .tn-logo__art { height: 96px; }
.tn-logo--xl.tn-logo--mark .tn-logo__art { height: 180px; }
@media (min-width: 768px) {
  .tn-logo--xl .tn-logo__art { height: 140px; }
  .tn-logo--xl.tn-logo--mark .tn-logo__art { height: 260px; }
}
.tn-logo__word {
  font-family: var(--font-display); font-weight: 400; letter-spacing: -0.01em;
  font-size: 2.6em; line-height: .96;
}
.tn-logo__tag {
  font-family: var(--font-sans); font-size: .72em; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase; color: var(--ink-muted);
}
.tn-logo--sm { font-size: 11px; }
.tn-logo--md { font-size: 16px; }
.tn-logo--xl { font-size: 26px; }
@media (min-width: 768px) { .tn-logo--xl { font-size: 40px; } }

/* ---------- Curtain ---------- */
/* A dark stage, the monogram alone, and light moving through it. The mark is
   the artwork used as a MASK over a travelling gradient — the only way to play
   light through a shape. Every colour in that gradient is sampled from the
   logo file itself (mark-flame, mark-ink, mark-ember); nothing is invented. */

.tn-curtain { position: fixed; inset: 0; z-index: var(--layer-curtain); background: #140c08; }
.tn-curtain.is-opening { background: transparent; }

.tn-curtain__stage { position: absolute; inset: 0; perspective: 1500px; perspective-origin: 50% 46%; }

.tn-curtain__door {
  position: absolute; top: 0; bottom: 0;
  width: calc(50% + 1px);          /* the 1px kills the seam between them */
  overflow: hidden;
  background: #140c08;
  backface-visibility: hidden;
  will-change: transform;
}
.tn-curtain__door--l { left: 0; transform-origin: left center; }
.tn-curtain__door--r { right: 0; transform-origin: right center; }

/* Each panel is a full viewport wide, so the two halves line up as one image. */
.tn-curtain__panel { position: absolute; top: 0; height: 100%; width: 200%; }
.tn-curtain__door--l .tn-curtain__panel { left: 0; }
.tn-curtain__door--r .tn-curtain__panel { right: 0; }

.tn-curtain__art {
  position: absolute; inset: 0;
  display: grid; place-content: center; justify-items: center;
  gap: var(--space-5);
  padding: var(--tn-gutter) var(--tn-gutter) clamp(150px, 23vh, 230px);
  text-align: center;
  /* a warm pool of light behind the figure so it is not floating on flat black */
  background:
    radial-gradient(60% 46% at 50% 44%, rgba(239, 77, 35, .16) 0%, rgba(239, 77, 35, 0) 68%),
    radial-gradient(120% 90% at 50% 40%, #2a1710 0%, #140c08 72%);
}

.tn-curtain__shade {
  position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, .68));
}
.tn-curtain__door--r .tn-curtain__shade {
  background: linear-gradient(to left, rgba(0, 0, 0, 0), rgba(0, 0, 0, .68));
}

/* ---------- the mark ---------- */

.tn-curtain__mark {
  position: relative; display: block; line-height: 0;
  height: min(58vh, 620px); aspect-ratio: 1321 / 2566;
}
.tn-curtain__glyph { position: absolute; inset: 0; display: block; }
.tn-curtain__mark .tn-logo,
.tn-curtain__mark .tn-logo.tn-logo--xl .tn-logo__art { display: block; width: 100%; height: 100%; }

/* The mask carries no colour of its own; the gradient behind it does. */
.tn-curtain__mark .tn-logo__mask { background: none; }

/* Base state: the figure banked down, as if the lamp is not up yet. */
.tn-curtain__glyph--dim .tn-logo__mask {
  background-image: linear-gradient(176deg, #8f3a22 0%, #5c1c13 52%, #33100c 100%);
  opacity: .62;
}

/* Lit state: the logo's own ramp, fixed, so the figure always reads
   flame-at-the-head to ember-at-the-foot exactly as the artwork does. ONE
   background layer, and it never animates. */
.tn-curtain__glyph--lit .tn-logo__mask {
  background-image: linear-gradient(176deg,
    #ff6a38 0%, #ef4d23 14%, #dc4522 32%, #bb3620 52%,
    #99271b 70%, #7a1816 86%, #620c0e 100%);
  filter: drop-shadow(0 0 clamp(20px, 4.5vh, 52px) rgba(239, 77, 35, .42));
}
/* The travelling light is a THIRD copy of the mask laid over the lit one,
   carrying only the highlight. It used to be a second background layer on
   the lit glyph, animated as a comma-separated background-position pair —
   which Chrome interpolates and Safari silently does not, so on an iPhone
   the light simply never moved. One element, one layer, one value. */
.tn-curtain__glyph--sheen .tn-logo__mask {
  background-image: linear-gradient(176deg,
    rgba(255, 214, 170, 0) 26%, rgba(255, 214, 170, .55) 40%,
    rgba(255, 236, 210, .92) 48%, rgba(255, 214, 170, .55) 56%,
    rgba(255, 214, 170, 0) 70%);
  background-size: 100% 300%;
  background-position: 0% 132%;
  background-repeat: no-repeat;
}
.tn-curtain.is-nomask .tn-curtain__glyph--sheen { display: none; }
/* A blur filter over a masked element is the most expensive thing on this
   screen and the one iOS is most likely to drop a frame on — or skip. The
   radial pool behind the figure in `.tn-curtain__art` already does the work
   on a small screen, so the filter comes off there. */
@media (max-width: 767px) {
  .tn-curtain__glyph--lit .tn-logo__mask { filter: none; }
}

/* No-mask fallback: the colour artwork as an image. The dim copy is simply
   dimmer, the lit copy is the artwork as drawn, and the clip reveal below
   still works on an <img>. */
.tn-curtain.is-nomask .tn-curtain__glyph--dim .tn-logo__art { opacity: .55; filter: brightness(.6); }
.tn-curtain.is-nomask .tn-curtain__glyph--lit .tn-logo__art { opacity: 1; }
.tn-curtain.is-nomask .tn-curtain__mark .tn-logo__art { object-fit: contain; }

.tn-curtain__fill {
  position: absolute; inset: 0;
  -webkit-clip-path: inset(100% 0 0 0);
  clip-path: inset(100% 0 0 0);
}

.tn-curtain__rule {
  display: block; width: min(38vw, 280px); height: 1px;
  background: linear-gradient(to right, rgba(184, 138, 59, 0), #b88a3b, rgba(184, 138, 59, 0));
  transform-origin: center;
}
.tn-curtain__motto {
  margin: 0; font-family: var(--font-display);
  font-size: clamp(17px, 2.3vw, 26px); line-height: 1.3; color: #c6a98d;
}

/* ---------- controls ---------- */

/* Centred with left/right, NOT translateX(-50%). The entrance animation
   (tn-rise) ends on `transform: none` and runs `forwards`, so it wins over any
   transform declared here and the controls used to end up hard against the
   right edge on a phone. Nothing that animates transform may also rely on
   transform for its position. */
.tn-curtain__controls {
  position: absolute; left: 0; right: 0; bottom: clamp(32px, 7vh, 88px);
  display: grid; justify-items: center; gap: var(--space-2);
  padding-inline: var(--tn-gutter);
}
.tn-curtain__controls.is-gone {
  animation: none !important; opacity: 0; pointer-events: none;
  transition: opacity 280ms var(--tn-ease);
}
.tn-curtain__enter {
  display: inline-flex; align-items: center; gap: var(--space-3);
  padding: var(--space-3) var(--space-6); min-height: 48px; border: 0; cursor: pointer;
  border-radius: var(--radius-md);
  background: var(--mustard-yellow); color: var(--on-mustard-yellow);
  box-shadow: 0 10px 40px rgba(239, 77, 35, .28);
  font-family: var(--font-sans); font-size: 13px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  transition: transform var(--tn-dur) var(--tn-ease);
}
.tn-curtain__enter:hover { transform: translateY(-2px); }
.tn-curtain__note svg { display: block; width: 20px; height: 20px; }
.tn-curtain__skip {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: var(--space-2) var(--space-4);
  border: 0; background: none; cursor: pointer;
  font-family: var(--font-sans); font-size: 14px; color: #a98d74;
  text-decoration: underline; text-underline-offset: 4px;
}
.tn-curtain__enter:focus-visible, .tn-curtain__skip:focus-visible {
  outline: none; box-shadow: 0 0 0 2px #140c08, 0 0 0 4px var(--mustard-yellow);
}

/* ---------- motion ---------- */
/* Motion is the default and reduced motion SUBTRACTS from it (see the block
   at the end). The earlier arrangement — everything inside
   `prefers-reduced-motion: no-preference`, with a separate calm path that
   had no light and no doors — meant a phone with Reduce Motion on showed a
   figure that brightened and a screen that faded, and nothing else. That is
   the sequence Sachin reported as "not working". */

.tn-curtain__mark, .tn-curtain__rule, .tn-curtain__motto, .tn-curtain__controls {
  opacity: 0; animation: tn-rise var(--tn-dur-in) var(--tn-ease) forwards;
}
.tn-curtain__mark { animation-delay: 140ms; animation-duration: 1100ms; }
.tn-curtain__rule { animation-delay: 420ms; }
.tn-curtain__motto { animation-delay: 540ms; }
.tn-curtain__controls { animation-delay: 680ms; }

/* The light never stops moving — slow while waiting, quicker once lit. */
.tn-curtain__glyph--sheen .tn-logo__mask { animation: tn-sheen 7s linear infinite; }
.tn-curtain.is-filling .tn-curtain__glyph--sheen .tn-logo__mask { animation-duration: 3.2s; }

.tn-curtain.is-filling .tn-curtain__fill {
  animation: tn-fill 1800ms cubic-bezier(.35, .1, .25, 1) 80ms forwards;
}
.tn-curtain.is-filling .tn-curtain__glyph--dim {
  animation: tn-dim-out 1800ms var(--tn-ease) 80ms forwards;
}
.tn-curtain.is-filling .tn-curtain__rule {
  animation: tn-rule-out 1800ms var(--tn-ease) 80ms forwards;
}
/* The bloom replaces the entrance animation, so it must restate the opacity
   the entrance was holding with `forwards` — otherwise the mark drops back
   to its static opacity: 0 and the whole figure vanishes on the first note. */
.tn-curtain__mark.is-struck { opacity: 1; animation: tn-strike 300ms var(--tn-ease); }

.tn-curtain.is-instant .tn-curtain__fill { animation-duration: 220ms; animation-delay: 0ms; }
.tn-curtain.is-instant .tn-curtain__glyph--dim { animation: none; opacity: 0; }

.tn-curtain.is-opening .tn-curtain__door--l { animation: tn-door-l 1250ms cubic-bezier(.62, 0, .3, 1) forwards; }
.tn-curtain.is-opening .tn-curtain__door--r { animation: tn-door-r 1250ms cubic-bezier(.62, 0, .3, 1) forwards; }
.tn-curtain.is-opening .tn-curtain__shade { animation: tn-shade 1250ms cubic-bezier(.62, 0, .3, 1) forwards; }
.tn-curtain.is-opening .tn-curtain__motto,
.tn-curtain.is-opening .tn-curtain__rule { animation: tn-fade-out 420ms var(--tn-ease) forwards; }

@keyframes tn-sheen {
  from { background-position: 0% 132%; }
  to   { background-position: 0% -32%; }
}
@keyframes tn-fill {
  from { -webkit-clip-path: inset(100% 0 0 0); clip-path: inset(100% 0 0 0); }
  to   { -webkit-clip-path: inset(0 0 0 0);    clip-path: inset(0 0 0 0); }
}
@keyframes tn-dim-out { from { opacity: .5; } to { opacity: 0; } }
@keyframes tn-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes tn-rule-out { from { opacity: 1; transform: scaleX(.18); } to { opacity: 1; transform: scaleX(1); } }
@keyframes tn-fade-out { to { opacity: 0; } }
@keyframes tn-strike {
  0% { opacity: 1; transform: scale(1); }
  32% { opacity: 1; transform: scale(1.02); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes tn-door-l { from { transform: rotateY(0deg); } to { transform: rotateY(-112deg); } }
@keyframes tn-door-r { from { transform: rotateY(0deg); } to { transform: rotateY(112deg); } }
@keyframes tn-shade { from { opacity: 0; } to { opacity: 1; } }
@keyframes tn-door-slide-l { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@keyframes tn-door-slide-r { from { transform: translateX(0); } to { transform: translateX(100%); } }

/* Phones: the doors SLIDE apart rather than swinging. A perspective swing on
   a panel under 200px wide reads as a flicker, and 3D compositing is where
   mobile Safari is least dependable; a plain translate composites the same
   way everywhere. Kept after the keyframes so it wins on order. */
@media (max-width: 767px) {
  .tn-curtain__stage { perspective: none; }
  .tn-curtain__door { backface-visibility: visible; }
  .tn-curtain.is-opening .tn-curtain__door--l { animation: tn-door-slide-l 900ms cubic-bezier(.7, 0, .3, 1) forwards; }
  .tn-curtain.is-opening .tn-curtain__door--r { animation: tn-door-slide-r 900ms cubic-bezier(.7, 0, .3, 1) forwards; }
  .tn-curtain.is-opening .tn-curtain__shade { animation: none; }
}

/* Reduced motion subtracts, it does not replace. What goes: the entrance
   rises, the 3D swing (doors slide instead, at every width), the hinge shade,
   and the per-note bloom — the parts that spin, flash or parallax. What
   stays: the figure filling with light from the foot, the light travelling
   through it, and the two halves parting. All of that is a tap-triggered
   reveal with no rotation, no zoom and no strobe, and it is the whole point
   of the screen. */
@media (prefers-reduced-motion: reduce) {
  .tn-curtain__mark, .tn-curtain__rule, .tn-curtain__motto, .tn-curtain__controls {
    animation: none; opacity: 1;
  }
  .tn-curtain__stage { perspective: none; }
  .tn-curtain__door { backface-visibility: visible; }
  .tn-curtain.is-opening .tn-curtain__door--l { animation: tn-door-slide-l 900ms cubic-bezier(.7, 0, .3, 1) forwards; }
  .tn-curtain.is-opening .tn-curtain__door--r { animation: tn-door-slide-r 900ms cubic-bezier(.7, 0, .3, 1) forwards; }
  .tn-curtain.is-opening .tn-curtain__shade { animation: none; }
  .tn-curtain__mark.is-struck { animation: none; }
  .tn-curtain__glyph--lit .tn-logo__mask { filter: none; }
}

/* Short screens — a phone in landscape — drop the words so the figure and the
   button still fit. */
@media (max-height: 640px) { .tn-curtain__mark { height: min(50vh, 420px); } }
@media (max-height: 430px) {
  .tn-curtain__motto, .tn-curtain__rule { display: none; }
  .tn-curtain__mark { height: min(56vh, 250px); }
  .tn-curtain__art { padding-bottom: clamp(96px, 30vh, 150px); }
  .tn-curtain__controls { bottom: clamp(16px, 5vh, 32px); }
}

/* ---------- SiteNav ---------- */

.tn-nav {
  position: sticky; top: 0; z-index: var(--layer-sticky);
  display: flex; align-items: center; gap: var(--space-5);
  padding: var(--space-4) var(--tn-gutter);
  background: var(--tn-ground); border-bottom: 1px solid var(--line-hairline);
  transition: background var(--tn-dur) var(--tn-ease), box-shadow var(--tn-dur) var(--tn-ease);
}
.tn-nav--overlay { background: transparent; border-bottom-color: transparent; }
.tn-nav--overlay.is-stuck { background: var(--surface-raised); box-shadow: var(--shadow-sm); border-bottom-color: var(--line-hairline); }
.tn-nav--overlay:not(.is-stuck) .tn-nav__social-link { color: var(--ink); }
.tn-nav__brand { text-decoration: none; margin-inline-end: auto; }
/* The bar holds the tabs and the social row; on a phone it becomes the sheet
   and the same two children stack, so nothing is rendered twice. */
.tn-nav__bar { display: flex; align-items: center; gap: var(--space-6); }
.tn-nav__list { display: flex; gap: var(--space-5); list-style: none; margin: 0; padding: 0; }
.tn-nav__social { display: flex; gap: var(--space-1); list-style: none; margin: 0; padding: 0; }
.tn-nav__social-link {
  display: grid; place-items: center; width: 44px; height: 44px;
  color: var(--ink-muted); border-radius: var(--radius-round);
  transition: color var(--tn-dur) var(--tn-ease), background var(--tn-dur) var(--tn-ease);
}
.tn-nav__social-link svg { width: 20px; height: 20px; display: block; }
.tn-nav__social-link:hover { color: var(--tn-brand); background: var(--surface-raised); }
.tn-nav__tab {
  display: flex; align-items: center; min-height: 44px;
  padding: var(--space-2) 0; text-decoration: none; color: var(--ink);
  font-family: var(--font-sans); font-size: 14px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  border-bottom: 2px solid transparent; transition: border-color var(--tn-dur) var(--tn-ease);
}
.tn-nav__tab:hover { border-bottom-color: var(--line-gold); }
.tn-nav__tab.is-current { border-bottom-color: var(--tn-brand); }
.tn-nav__sound, .tn-nav__burger {
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--line-hairline); background: none; cursor: pointer;
  color: var(--ink); border-radius: var(--radius-round); padding: 0;
}
.tn-nav__sound svg { width: 20px; height: 20px; }
.tn-nav.is-muted .tn-nav__sound { color: var(--ink-muted); }
.tn-nav.is-muted .tn-nav__sound [data-tn-waves] { opacity: .25; }
.tn-nav__burger { display: none; border-radius: var(--radius-xs); gap: 4px; }
.tn-nav__burger span { display: block; width: 18px; height: 1.5px; background: currentColor; }

/* Tablet: brand + seven tabs + three icons + the sound toggle is a tight row
   at 768–1023px, so the spacing closes up rather than pushing a control off
   the edge. The 44px targets themselves never shrink. */
@media (min-width: 768px) and (max-width: 1023px) {
  .tn-nav { gap: var(--space-3); }
  .tn-nav__bar { gap: var(--space-4); }
  .tn-nav__list { gap: var(--space-4); }
  .tn-nav__tab { font-size: 12px; letter-spacing: .04em; white-space: nowrap; }
  .tn-nav__sound { flex: 0 0 auto; }
}

@media (max-width: 767px) {
  .tn-nav__burger { display: grid; }
  /* Anchored to the bar itself, not to a hard-coded 64px. The bar is 77px
     tall once the logo is in it, so the fixed offset slid the sheet under the
     nav by 13px. `.tn-nav` is sticky, which makes it the containing block. */
  .tn-nav__bar {
    position: absolute; top: 100%; left: 0; right: 0; z-index: var(--layer-overlay);
    background: var(--surface-raised); border-bottom: 1px solid var(--line-hairline);
    padding: var(--space-5) var(--tn-gutter); display: none;
  }
  .tn-nav.is-open .tn-nav__bar { display: flex; flex-direction: column; align-items: stretch; gap: var(--space-4); }
  .tn-nav__social {
    justify-content: center; gap: var(--space-2);
    padding-top: var(--space-4); border-top: 1px solid var(--line-hairline);
  }
  .tn-nav__list { flex-direction: column; gap: var(--space-2); }
  /* In the sheet these are the primary navigation, so they take a full
     thumb-sized target rather than the desktop row's tight underline. */
  .tn-nav__tab {
    display: flex; align-items: center; min-height: 44px;
    border-bottom: 0; border-inline-start: 2px solid transparent;
    padding: var(--space-2) var(--space-4);
  }
  .tn-nav__tab:hover { border-bottom: 0; border-inline-start-color: var(--line-gold); }
  .tn-nav__tab.is-current { border-bottom: 0; border-inline-start-color: var(--tn-brand); }
}

/* ---------- SectionHead ---------- */

.tn-head { display: grid; gap: var(--space-2); margin-block-end: var(--space-8); }
.tn-head--center { justify-items: center; text-align: center; }
.tn-head__eyebrow {
  margin: 0; font-family: var(--font-sans); font-size: 12px; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase; color: var(--ink-muted);
}
.tn-head__rule { display: block; width: 48px; height: 1px; background: var(--line-gold); }
.tn-head__title { margin: var(--space-2) 0 0; font-family: var(--font-display); font-weight: 400; font-size: 27px; line-height: 1.2; color: var(--ink); }
.tn-head__blurb { margin: 0; max-width: 58ch; font-family: var(--font-sans); font-size: 16px; line-height: 27px; color: var(--ink-muted); }

/* ---------- Button ---------- */

.tn-btn {
  display: inline-flex; align-items: center; gap: var(--space-3);
  padding: var(--space-3) var(--space-5); min-height: 44px; box-sizing: border-box;
  border: 1px solid transparent; border-radius: var(--radius-sm); cursor: pointer;
  text-decoration: none; font-family: var(--font-sans); font-size: 13px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  transition: transform var(--tn-dur) var(--tn-ease), background var(--tn-dur) var(--tn-ease);
}
.tn-btn:hover { transform: translateY(-2px); }
.tn-btn--block { display: flex; width: 100%; justify-content: space-between; }
.tn-btn .tn-arrow { width: 18px; height: 18px; flex: none; }
.tn-btn--primary { background: var(--tn-cta); color: var(--tn-on-cta); }
.tn-btn--secondary { background: var(--slate-blue); color: var(--on-slate-blue); }
.tn-btn--ghost { background: none; color: var(--ink); border-color: var(--ink-muted); }
.tn-btn--ghost:hover { background: var(--surface-raised); }
.tn-btn--on-deep-teal { background: var(--deep-teal); color: var(--on-deep-teal); }
.tn-btn--on-mustard-yellow { background: var(--mustard-yellow); color: var(--on-mustard-yellow); }
.tn-btn--on-rust-brown { background: var(--rust-brown); color: var(--on-rust-brown); }
.tn-btn--on-indigo-navy { background: var(--indigo-navy); color: var(--on-indigo-navy); }
.tn-btn--on-slate-blue { background: var(--slate-blue); color: var(--on-slate-blue); }
.tn-btn--on-wood-brown { background: var(--wood-brown); color: var(--on-wood-brown); }

/* ---------- PhotoScroller ---------- */

.tn-strip { display: block; overflow: hidden; background: var(--surface-raised); }
.tn-strip__rail { display: flex; height: 100%; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; }
.tn-strip__rail::-webkit-scrollbar { display: none; }
.tn-strip__track { display: flex; height: 100%; gap: var(--space-4); list-style: none; margin: 0; padding: 0 var(--space-2) 0 0; flex: none; }
.tn-strip__item { flex: none; height: 100%; }
.tn-strip__item img { display: block; height: 100%; width: auto; max-width: none; object-fit: cover; border-radius: var(--radius-none); }
.tn-strip--sm { height: 220px; }
.tn-strip--md { height: 340px; }
.tn-strip--lg { height: 68vh; min-height: 380px; }
.tn-strip--empty { display: grid; place-items: center; height: 220px; color: var(--ink-muted); font-family: var(--font-sans); font-size: 14px; }
.tn-strip--empty, .tn-strip--static .tn-strip__rail, .tn-strip.is-static .tn-strip__rail { overflow-x: auto; }

@media (prefers-reduced-motion: no-preference) {
  .tn-strip:not(.is-static):not(.tn-strip--static) .tn-strip__rail { overflow: hidden; }
  .tn-strip:not(.is-static):not(.tn-strip--static) [data-tn-run] {
    animation: tn-drift 46s linear infinite;
  }
  .tn-strip.is-paused [data-tn-run] { animation-play-state: paused; }
}
@keyframes tn-drift { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* ---------- TrackSplit ---------- */

/* Two columns at every width. The split IS the landing page's navigation, and
   a visitor has to be able to see both traditions at once to choose between
   them — stacking them made the phone scroll past one to reach the other. */
.tn-split { display: grid; grid-template-columns: 1fr 1fr; }
.tn-split__panel {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 60vh; display: flex; align-items: flex-end;
  padding: var(--space-8);
}
@media (min-width: 900px) { .tn-split__panel { padding: var(--space-10); min-height: 74vh; } }
.tn-split__panel--east { background: var(--deep-teal); }
.tn-split__panel--west { background: var(--indigo-navy); }
.tn-split__img {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%;
  object-fit: cover; transition: transform var(--tn-dur-in) var(--tn-ease);
}
.tn-split__panel:hover .tn-split__img { transform: scale(1.03); }
.tn-split__panel::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  /* Two layers, not one. The headline always sits bottom-LEFT, so a purely
     vertical scrim has to be heavy enough to cover the brightest pixel
     anywhere along the bottom — which flattens the whole photograph. Weighting
     it to the left instead protects the text where the text actually is and
     leaves the right-hand two-thirds of the picture alone. */
  background:
    linear-gradient(to right, rgba(36, 24, 19, .74) 0%, rgba(36, 24, 19, .36) 44%, rgba(36, 24, 19, 0) 74%),
    linear-gradient(to top, rgba(36, 24, 19, .70), rgba(36, 24, 19, .08) 64%);
}
/* Over a photograph the type is ivory in every theme: the picture is the
   ground, and it does not change with the page's theme. */
.tn-split__body { display: grid; gap: var(--space-3); max-width: 30ch; color: var(--warm-ivory); }
.tn-split__eyebrow { margin: 0; font-family: var(--font-sans); font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.tn-split__rule { display: block; width: 48px; height: 1px; background: var(--line-gold); }
.tn-split__title {
  margin: var(--space-2) 0 0; font-family: var(--font-display); font-weight: 400;
  font-size: clamp(30px, 8.4vw, 44px); line-height: 1.0;
}
@media (min-width: 900px) { .tn-split__title { font-size: 64px; } }
/* Each course name is nowrap so the line breaks BETWEEN names. Without it a
   phone splits "Carnatic / Vocal" across two lines and the list reads as two
   different courses. */
.tn-split__list { margin: 0 0 var(--space-4); font-family: var(--font-sans); font-size: 16px; line-height: 27px; }
.tn-split__name { white-space: nowrap; }
/* No padding: TrackSplit joins the names with literal spaces (they are the
   only places a phone may break the line), so padding here would double the
   gap. */
.tn-split__sep { color: var(--line-gold); }
.tn-split__body .tn-btn { justify-self: start; }

/* Phones. The panel is the full width of the screen here, so the subject of
   the photograph sits dead centre — exactly where the headline lands. Three
   things fix it together: a taller frame, the picture pushed up inside it so
   the face clears the type, and a heavy bottom band in place of the desktop's
   left-weighted scrim. This block must stay AFTER `.tn-split__panel::after`
   above: it has the same specificity, so order is what decides it. */
/* Below 900px the panels are still two columns but each is only half a screen
   wide, so the photograph's subject and the scrim both need re-aiming. This
   block is kept AFTER `.tn-split__panel::after` above — same specificity, so
   source order is what decides it. */
@media (max-width: 899px) {
  /* vh first, svh over it: a Safari older than 15.4 keeps the vh line. */
  .tn-split { min-height: calc(100vh - var(--tn-nav-h, 77px)); min-height: calc(100svh - var(--tn-nav-h, 77px)); }
  .tn-split__panel { min-height: 0; }
  .tn-split__img { object-position: var(--tn-img-phone, 50% 20%); }
  .tn-split__panel::after {
    background: linear-gradient(to top,
      rgba(22, 13, 10, .96) 0%, rgba(22, 13, 10, .90) 40%,
      rgba(22, 13, 10, .62) 58%, rgba(22, 13, 10, .24) 76%, rgba(22, 13, 10, 0) 94%);
  }
  /* min-width: 0 matters — the body is a flex item, and without it a long
     headline makes the item wider than the panel instead of wrapping in it. */
  .tn-split__body { max-width: 100%; width: 100%; min-width: 0; }
}

/* Phones only. At this width a panel is about 190px across, so everything in
   it has to earn its place. A tablet at 810px gets two 405px panels and keeps
   the full treatment — it does not need any of this. */
@media (max-width: 699px) {
  .tn-split__panel { padding: var(--space-5) var(--space-3) var(--space-6); }
  .tn-split__body { gap: var(--space-2); }
  .tn-split__eyebrow { font-size: 10px; letter-spacing: .14em; }
  .tn-split__title { font-size: clamp(21px, 6.2vw, 30px); line-height: 1.06; }
  .tn-split__rule { width: 28px; }
  /* The five course names cannot be read in a half-phone column, and they are
     already a row of cards a screen further down. */
  .tn-split__list { display: none; }
  .tn-split__body .tn-btn {
    /* "Explore Western Arts" is the longer of the two labels and it is what
       the size is set by — if one wraps and the other does not, the pair reads
       as a mistake. */
    letter-spacing: 0; font-size: 10px; line-height: 1.3;
    padding: var(--space-3) var(--space-1); width: 100%; justify-content: center;
    text-align: center;
  }
  .tn-split__body .tn-btn .tn-arrow { display: none; }
}

@media (max-width: 359px) {
  .tn-split__title { font-size: 19px; }
  .tn-split__body .tn-btn { font-size: 9px; padding: var(--space-2); }
}

/* ---------- CourseCard ---------- */

.tn-grid { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
@media (min-width: 600px) { .tn-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .tn-grid { grid-template-columns: repeat(4, 1fr); } }

/* align-content: start matters. A card is a grid item, so when its row is
   taller than it is, the default `stretch` pushes the slack BETWEEN the frame
   and the bar and the label floats away from its picture. */
.tn-card {
  display: grid; align-content: start;
  text-decoration: none; background: var(--surface-raised);
  transition: transform var(--tn-dur) var(--tn-ease), box-shadow var(--tn-dur) var(--tn-ease);
}
.tn-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tn-card__frame { display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--line-hairline); }
.tn-card__img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform var(--tn-dur-in) var(--tn-ease); }
.tn-card:hover .tn-card__img { transform: scale(1.04); }
.tn-card__bar {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  padding: var(--space-3) var(--space-4); min-height: 44px; box-sizing: border-box;
}
.tn-card__name { font-family: var(--font-sans); font-weight: 600; font-size: 21px; line-height: 1.3; }
.tn-card__bar .tn-arrow { width: 18px; height: 18px; flex: none; }
.tn-card--deep-teal .tn-card__bar { background: var(--deep-teal); color: var(--on-deep-teal); }
.tn-card--mustard-yellow .tn-card__bar { background: var(--mustard-yellow); color: var(--on-mustard-yellow); }
.tn-card--rust-brown .tn-card__bar { background: var(--rust-brown); color: var(--on-rust-brown); }
.tn-card--indigo-navy .tn-card__bar { background: var(--indigo-navy); color: var(--on-indigo-navy); }
.tn-card--slate-blue .tn-card__bar { background: var(--slate-blue); color: var(--on-slate-blue); }
.tn-card--wood-brown .tn-card__bar { background: var(--wood-brown); color: var(--on-wood-brown); }

/* ---------- CourseHero ---------- */

.tn-hero { position: relative; isolation: isolate; padding: var(--space-12) var(--tn-gutter); background: var(--tn-ground); }
.tn-hero--image { min-height: 62vh; display: flex; align-items: flex-end; color: var(--warm-ivory); }
/* imagePos is the wide-screen crop: the banner is very wide, so a portrait
   photograph loses most of its height and the default centre can land on a
   torso. The phone crop below is its own value. */
.tn-hero__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: var(--tn-img, 50% 50%); }
.tn-hero--image::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  /* Two layers, not one. The headline always sits bottom-LEFT, so a purely
     vertical scrim has to be heavy enough to cover the brightest pixel
     anywhere along the bottom — which flattens the whole photograph. Weighting
     it to the left instead protects the text where the text actually is and
     leaves the right-hand two-thirds of the picture alone. */
  background:
    linear-gradient(to right, rgba(36, 24, 19, .74) 0%, rgba(36, 24, 19, .36) 44%, rgba(36, 24, 19, 0) 74%),
    linear-gradient(to top, rgba(36, 24, 19, .70), rgba(36, 24, 19, .08) 64%);
}
/* The hero's content sits on the same 1240px measure as the rest of the page,
   so a hero without a photograph lines up with the sections beneath it. */
.tn-hero__body { display: grid; gap: var(--space-3); max-width: 1240px; margin-inline: auto; width: 100%; }
.tn-hero__title { max-width: 18ch; }
.tn-hero__eyebrow { margin: 0; font-family: var(--font-sans); font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.tn-hero__rule { display: block; width: 48px; height: 1px; background: var(--line-gold); }
.tn-hero__title {
  margin: var(--space-2) 0 0; font-family: var(--font-display); font-weight: 400;
  font-size: clamp(30px, 8.4vw, 44px); line-height: 1.04;
}
@media (min-width: 768px) { .tn-hero__title { font-size: 64px; } }
.tn-hero__lede { margin: 0; max-width: 58ch; font-family: var(--font-sans); font-weight: 300; font-size: 19px; line-height: 32px; }
.tn-hero:not(.tn-hero--image) .tn-hero__title { color: var(--ink); }
.tn-hero:not(.tn-hero--image) .tn-hero__lede,
.tn-hero:not(.tn-hero--image) .tn-hero__eyebrow { color: var(--ink-muted); }
.tn-hero__facts { display: flex; flex-wrap: wrap; gap: var(--space-6); margin: var(--space-4) 0 0; }

/* Phones — same problem and same fix as TrackSplit, and likewise kept after
   `.tn-hero--image::after` so it wins on order. */
@media (max-width: 899px) {
  .tn-hero--image { min-height: 70vh; }
  .tn-hero__img { object-position: var(--tn-img-phone, 50% 12%); }
  .tn-hero--image::after {
    background: linear-gradient(to top,
      rgba(22, 13, 10, .97) 0%, rgba(22, 13, 10, .95) 34%,
      rgba(22, 13, 10, .74) 52%, rgba(22, 13, 10, .30) 70%, rgba(22, 13, 10, 0) 92%);
  }
  .tn-hero__body { min-width: 0; }
  .tn-hero__title { max-width: none; }
}
.tn-hero__fact dt { font-family: var(--font-sans); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; opacity: .8; }
.tn-hero__fact dd { margin: var(--space-1) 0 0; font-family: var(--font-display); font-size: 21px; font-weight: 600; }
.tn-hero--deep-teal .tn-hero__rule { background: var(--deep-teal); }
.tn-hero--mustard-yellow .tn-hero__rule { background: var(--mustard-yellow); }
.tn-hero--rust-brown .tn-hero__rule { background: var(--rust-brown); }
.tn-hero--indigo-navy .tn-hero__rule { background: var(--indigo-navy); }
.tn-hero--slate-blue .tn-hero__rule { background: var(--slate-blue); }
.tn-hero--wood-brown .tn-hero__rule { background: var(--wood-brown); }

/* ---------- EventCard ---------- */

.tn-events { display: grid; gap: var(--space-6); }
.tn-event {
  display: grid; gap: var(--space-5); grid-template-columns: 1fr;
  background: var(--surface-raised); padding: var(--space-6);
  border-bottom: 1px solid var(--line-hairline);
}
@media (min-width: 720px) { .tn-event { grid-template-columns: 240px 1fr; align-items: start; } }
.tn-event.is-past { opacity: .62; }
.tn-event__frame { overflow: hidden; aspect-ratio: 4 / 3; background: var(--line-hairline); }
.tn-event__frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tn-event__frame--date {
  display: grid; place-content: center; text-align: center;
  background: var(--tn-brand); color: var(--tn-on-brand);
}
.tn-event__day { font-family: var(--font-display); font-size: 64px; line-height: .96; font-weight: 500; }
.tn-event__mon { font-family: var(--font-sans); font-size: 12px; letter-spacing: .2em; }
.tn-event__body { display: grid; gap: var(--space-2); justify-items: start; }
.tn-event__when { margin: 0; font-family: var(--font-sans); font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-muted); }
.tn-event__title { margin: 0; font-family: var(--font-display); font-size: 27px; line-height: 1.22; font-weight: 400; color: var(--ink); }
.tn-event__venue { margin: 0; font-family: var(--font-sans); font-size: 14px; line-height: 22px; color: var(--ink-muted); }
.tn-event__blurb { margin: var(--space-2) 0 var(--space-3); max-width: 58ch; font-family: var(--font-sans); font-size: 16px; line-height: 27px; color: var(--ink); }

/* ---------- ContactPanel ---------- */

.tn-contact { display: grid; gap: var(--space-8); grid-template-columns: 1fr; }
@media (min-width: 900px) { .tn-contact { grid-template-columns: 1fr 1.2fr; gap: var(--space-10); } }
.tn-contact__col { display: grid; gap: var(--space-2); align-content: start; }
.tn-contact__eyebrow { margin: var(--space-5) 0 0; font-family: var(--font-sans); font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-muted); }
.tn-contact__col > .tn-contact__eyebrow:first-child { margin-top: 0; }
.tn-contact__rule { display: block; width: 48px; height: 1px; background: var(--line-gold); margin-block-end: var(--space-2); }
.tn-contact__list { margin: 0; display: grid; gap: var(--space-2); }
.tn-contact__row { display: flex; flex-wrap: wrap; gap: 0 var(--space-4); align-items: center; min-height: 44px; }
.tn-contact__row dt { flex: 0 1 96px; font-family: var(--font-sans); font-size: 14px; color: var(--ink-muted); }
.tn-contact__row dd {
  margin: 0; min-width: 0; overflow-wrap: anywhere;
  font-family: var(--font-sans); font-size: 16px; line-height: 27px; color: var(--ink);
}
@media (max-width: 420px) { .tn-contact__row dt { flex-basis: 100%; } }
.tn-contact__row a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--ink); text-decoration-color: var(--line-gold); text-underline-offset: 4px;
}
.tn-contact__address { font-style: normal; font-family: var(--font-sans); font-size: 16px; line-height: 27px; color: var(--ink); }
.tn-contact__map { display: grid; gap: var(--space-3); }
.tn-contact__map iframe { width: 100%; min-height: 340px; border: 1px solid var(--line-hairline); }
.tn-contact__mapfallback { display: grid; place-items: center; min-height: 340px; background: var(--surface-raised); border: 1px solid var(--line-hairline); color: var(--ink-muted); font-family: var(--font-sans); font-size: 14px; }
.tn-contact__maplink { display: inline-flex; align-items: center; min-height: 44px; gap: var(--space-2); justify-self: start; color: var(--ink); font-family: var(--font-sans); font-size: 14px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.tn-contact__maplink .tn-arrow { width: 16px; height: 16px; }
.tn-contact__maplink:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Kolam ---------- */

.tn-kolam { display: block; color: var(--line-gold); }
.tn-kolam svg { display: block; width: 100%; height: 100%; overflow: visible; }
.tn-kolam__dot { fill: currentColor; stroke: none; }

.tn-kolam--rule {
  height: 40px; width: 100%;
  background-repeat: repeat-x; background-position: center; background-size: auto 40px;
}
.tn-kolam--rule.is-vertical {
  width: 40px; height: 100%;
  background-repeat: repeat-y; background-size: 40px auto;
}

.tn-kolam--corner { width: 56px; height: 56px; }
.tn-kolam--medallion { width: 120px; height: 120px; margin-inline: auto; }
.tn-kolam--drops { width: 196px; height: 28px; margin-inline: auto; }

.tn-kolam-frame { position: relative; padding: var(--space-8); }
.tn-kolam-frame > .tn-kolam--corner { position: absolute; }
.tn-kolam-frame > .tn-kolam--top-left { top: 0; left: 0; }
.tn-kolam-frame > .tn-kolam--top-right { top: 0; right: 0; transform: rotate(90deg); }
.tn-kolam-frame > .tn-kolam--bottom-right { bottom: 0; right: 0; transform: rotate(180deg); }
.tn-kolam-frame > .tn-kolam--bottom-left { bottom: 0; left: 0; transform: rotate(270deg); }
.tn-kolam-frame__body { position: relative; }

/* The pairing the motif comes from: ivory line on a rust ground. */
.tn-kolam-frame--festival { background: var(--rust-brown); color: var(--warm-ivory); }
.tn-kolam-frame--festival .tn-kolam,
.tn-kolam-frame--festival .tn-kolam-frame__body { color: var(--warm-ivory); }
.tn-kolam-frame--quiet { background: var(--surface-raised); color: var(--ink); }
.tn-kolam-frame--quiet .tn-kolam { color: var(--line-gold); }

@media (max-width: 599px) {
  .tn-kolam--corner { width: 40px; height: 40px; }
  .tn-kolam--medallion { width: 88px; height: 88px; }
}

/* ---------- VisionBand ---------- */
/* Three columns on a wide screen: the Eastern ground, an ivory centre, the
   Western ground. The flanks are ornament, so below 900px they are removed
   from the flow entirely rather than squeezed — a 40px strip of teal beside
   the quote reads as a rendering fault, not a frame. */

.tn-vision {
  display: grid; grid-template-columns: 1fr;
  background: var(--surface-raised); isolation: isolate;
}
@media (min-width: 900px) {
  .tn-vision { grid-template-columns: minmax(180px, 1fr) minmax(0, 2.2fr) minmax(180px, 1fr); }
}
.tn-vision__flank {
  display: none; position: relative; overflow: hidden;
  place-items: center; min-height: 260px;
}
@media (min-width: 900px) { .tn-vision__flank { display: grid; } }
.tn-vision__flank--east { background: var(--deep-teal); color: var(--line-gold); }
.tn-vision__flank--west { background: var(--indigo-navy); color: var(--line-gold); }
/* The ornament is oversized and bled off its outer edge so the band reads as
   a window onto something larger, the way the corner of a kolam does. */
.tn-vision__art {
  width: clamp(150px, 15vw, 230px); height: auto; opacity: .55;
}
.tn-vision__flank--east .tn-vision__art { transform: translateX(-18%) rotate(-8deg); }
.tn-vision__flank--west .tn-vision__art { transform: translateX(18%) rotate(8deg); }

.tn-vision__centre {
  display: grid; justify-items: center; gap: var(--space-5);
  padding: var(--space-12) var(--tn-gutter); text-align: center;
}
.tn-vision__quote {
  margin: 0; max-width: 24ch;
  font-family: var(--font-display); font-weight: 400;
  font-size: 32px; line-height: 1.24; color: var(--ink);
}
@media (min-width: 768px) { .tn-vision__quote { font-size: 44px; line-height: 1.12; } }
.tn-vision__meta {
  margin: 0; font-family: var(--font-sans); font-size: 12px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--ink-muted);
}
.tn-vision__dot { padding: 0 var(--space-3); color: var(--line-gold); }

/* ---------- course rows on the landing page ---------- */
/* Each track's own courses under its own heading, so the landing page answers
   "what can I learn here" without a click. Each row is given its own column
   count rather than a shared auto-fit: the five Eastern courses sit flush
   across the page, and the three Western ones are drawn at that same card
   width so the two rows read as one set. */

.tn-courserows { padding-block: var(--space-12); }
.tn-courserow + .tn-courserow { margin-block-start: var(--space-10); }
.tn-courserow__head {
  display: flex; align-items: center; gap: var(--space-4);
  margin-block-end: var(--space-5);
}
.tn-courserow__label {
  margin: 0; font-family: var(--font-sans); font-size: 12px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--ink); white-space: nowrap;
}
.tn-courserow__rule { flex: 1 1 auto; height: 1px; background: var(--line-gold); }
.tn-courserow--east .tn-courserow__rule { background: var(--deep-teal); opacity: .45; }
.tn-courserow--west .tn-courserow__rule { background: var(--indigo-navy); opacity: .45; }

/* Smaller than a track page's cards, and the bar is a fixed height so a
   two-word name wrapping never drops one card's label below its neighbours'. */
.tn-courserow .tn-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--space-4); }
@media (min-width: 760px) {
  .tn-courserow--east .tn-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  /* Three Western courses, drawn at the same width as the five Eastern
     cards above them so the two rows read as one set. */
  .tn-courserow--west .tn-grid { grid-template-columns: repeat(3, minmax(0, calc((100% - 4 * var(--space-4)) / 5))); }
}
.tn-courserow .tn-card__frame { aspect-ratio: 4 / 5; }
.tn-courserow .tn-card__bar { min-height: 56px; padding: var(--space-2) var(--space-3); }
/* No arrow on these. The card is small enough that the glyph costs roughly a
   third of the label's width, and "Bharatanatyam" broken across two lines
   mid-word is a worse signal of clickability than the coloured bar already is. */
.tn-courserow .tn-card .tn-arrow { display: none; }
.tn-courserow .tn-card__name {
  font-size: clamp(12.5px, 1.05vw, 15px); line-height: 1.24; overflow-wrap: break-word;
}

/* ---------- photo strip: tap to enlarge ---------- */
.tn-strip__zoom { display: block; height: 100%; padding: 0; margin: 0; border: 0; background: none; cursor: zoom-in; font: inherit; color: inherit; }
.tn-strip__zoom img { pointer-events: none; }
.tn-strip__zoom:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: -2px; }

/* ---------- Lightbox ---------- */
.tn-lightbox {
  position: fixed; inset: 0; z-index: var(--layer-curtain);
  display: grid; place-items: center; padding: var(--space-6);
  background: rgba(20, 12, 8, .92); color: var(--warm-ivory);
}
.tn-lightbox__fig { margin: 0; max-width: 100%; max-height: 100%; display: grid; gap: var(--space-3); justify-items: center; }
.tn-lightbox__img { display: block; max-width: min(100%, 1400px); max-height: calc(100vh - 120px); max-height: calc(100svh - 120px); object-fit: contain; box-shadow: var(--shadow-lift); }
.tn-lightbox__cap { margin: 0; font-family: var(--font-sans); font-size: 14px; color: var(--warm-ivory); opacity: .8; text-align: center; max-width: 60ch; }
.tn-lightbox__close, .tn-lightbox__nav {
  position: absolute; display: grid; place-items: center; width: 48px; height: 48px;
  border: 1px solid rgba(255, 255, 255, .35); border-radius: var(--radius-round);
  background: rgba(20, 12, 8, .6); color: var(--warm-ivory); font: 32px/1 var(--font-display); cursor: pointer;
}
.tn-lightbox__close { top: var(--space-4); right: var(--space-4); }
.tn-lightbox__nav { top: 50%; transform: translateY(-50%); }
.tn-lightbox__nav--prev { left: var(--space-4); }
.tn-lightbox__nav--next { right: var(--space-4); }
.tn-lightbox__close:hover, .tn-lightbox__nav:hover { background: rgba(255, 255, 255, .14); }
.tn-lightbox__close:focus-visible, .tn-lightbox__nav:focus-visible { outline: 2px solid var(--warm-ivory); outline-offset: 2px; }
@media (max-width: 599px) {
  .tn-lightbox { padding: var(--space-2); }
  .tn-lightbox__nav { top: auto; bottom: var(--space-4); transform: none; }
}

/* ---------- WhatsAppFab ---------- */
/* Bottom-right, clear of the phone's home indicator, and it never sits on
   the curtain or the lightbox (both are a layer above). */
.tn-fab {
  position: fixed; right: var(--space-4); bottom: calc(var(--space-4) + env(safe-area-inset-bottom, 0px));
  z-index: var(--layer-sticky);
  display: inline-flex; align-items: center; gap: var(--space-2);
  min-height: 52px; padding: 0 var(--space-4) 0 var(--space-3);
  border-radius: var(--radius-round); background: var(--deep-teal); color: var(--on-deep-teal);
  font-family: var(--font-sans); font-size: 14px; font-weight: 600; letter-spacing: .04em; text-decoration: none;
  box-shadow: var(--shadow-lift);
}
.tn-fab svg { width: 26px; height: 26px; display: block; }
.tn-fab:hover { background: var(--indigo-navy); color: var(--on-indigo-navy); }
.tn-fab:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; }
html.tn-locked .tn-fab { display: none; }
@media (max-width: 599px) {
  .tn-fab { padding: 0; width: 56px; height: 56px; min-height: 0; justify-content: center; }
  .tn-fab__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* ---------- Timetable ---------- */
.tn-timetable { display: grid; gap: var(--space-2); max-width: 640px; }
.tn-timetable__eyebrow { margin: 0; font-family: var(--font-sans); font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-muted); }
.tn-timetable__rule { display: block; width: 48px; height: 1px; background: var(--line-gold); margin-block-end: var(--space-2); }
.tn-timetable__table { width: 100%; border-collapse: collapse; font-family: var(--font-sans); font-size: 15px; }
.tn-timetable__table th, .tn-timetable__table td { text-align: left; padding: var(--space-3) var(--space-3) var(--space-3) 0; border-bottom: 1px solid var(--line-hairline); vertical-align: top; }
.tn-timetable__table thead th { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); padding-top: 0; }
.tn-timetable__table tbody th { font-weight: 600; color: var(--ink); white-space: nowrap; }
.tn-timetable__table td:last-child { color: var(--ink-muted); }
.tn-timetable__fee { margin: var(--space-2) 0 0; font-family: var(--font-sans); font-size: 16px; color: var(--ink); display: flex; gap: var(--space-4); }
.tn-timetable__fee span { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); line-height: 27px; }
.tn-timetable__note { margin: 0; font-family: var(--font-sans); font-size: 14px; color: var(--ink-muted); }
@media (max-width: 480px) {
  .tn-timetable__table thead { display: none; }
  .tn-timetable__table tr { display: grid; grid-template-columns: 1fr; padding-block: var(--space-3); border-bottom: 1px solid var(--line-hairline); }
  .tn-timetable__table th, .tn-timetable__table td { padding: 0; border: 0; }
}

/* ---------- TeacherCard ---------- */
.tn-teachers { display: grid; gap: var(--space-6); grid-template-columns: 1fr; }
@media (min-width: 600px) { .tn-teachers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .tn-teachers { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tn-teacher { display: grid; grid-template-columns: 96px 1fr; gap: var(--space-4); align-items: start; }
.tn-teacher__frame { width: 96px; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius-round); background: var(--tn-brand, var(--deep-teal)); color: var(--tn-on-brand, var(--on-deep-teal)); display: grid; place-items: center; }
.tn-teacher__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tn-teacher__initials { font-family: var(--font-display); font-size: 32px; line-height: 1; }
.tn-teacher__body { display: grid; gap: var(--space-1); min-width: 0; }
.tn-teacher__name { margin: 0; font-family: var(--font-display); font-size: 22px; line-height: 1.2; font-weight: 400; color: var(--ink); }
.tn-teacher__role { margin: 0; font-family: var(--font-sans); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); }
.tn-teacher__bio { margin: var(--space-1) 0 0; font-family: var(--font-sans); font-size: 15px; line-height: 1.6; color: var(--ink); }

/* ---------- Faq ---------- */
.tn-faq { display: grid; max-width: 720px; border-top: 1px solid var(--line-hairline); }
.tn-faq__item { border-bottom: 1px solid var(--line-hairline); }
.tn-faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: var(--space-4) 0; min-height: 44px; cursor: pointer; list-style: none;
  font-family: var(--font-sans); font-size: 17px; font-weight: 600; color: var(--ink);
}
.tn-faq__q::-webkit-details-marker { display: none; }
.tn-faq__q:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.tn-faq__mark { position: relative; flex: none; width: 20px; height: 20px; }
.tn-faq__mark::before, .tn-faq__mark::after { content: ""; position: absolute; inset: 0; margin: auto; background: var(--line-gold); }
.tn-faq__mark::before { width: 16px; height: 1.5px; }
.tn-faq__mark::after { width: 1.5px; height: 16px; transition: transform .2s ease; }
.tn-faq__item[open] .tn-faq__mark::after { transform: rotate(90deg); }
.tn-faq__a { padding: 0 0 var(--space-5); max-width: 62ch; }
.tn-faq__a p { margin: 0 0 var(--space-3); font-family: var(--font-sans); font-size: 16px; line-height: 1.65; color: var(--ink); }
.tn-faq__a p:last-child { margin-bottom: 0; }

/* ---------- VisitStrip ---------- */
.tn-visit { display: grid; gap: var(--space-8); grid-template-columns: 1fr; }
@media (min-width: 900px) { .tn-visit { grid-template-columns: 1.15fr 1fr; gap: var(--space-10); align-items: start; } }
.tn-visit__col { display: grid; gap: var(--space-3); align-content: start; }
.tn-visit__eyebrow { margin: 0; font-family: var(--font-sans); font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-muted); }
.tn-visit__rule { display: block; width: 48px; height: 1px; background: var(--line-gold); }
.tn-visit__title { margin: var(--space-2) 0 0; font-family: var(--font-display); font-size: clamp(26px, 3vw, 34px); line-height: 1.15; font-weight: 400; color: var(--ink); }
.tn-visit__lede { margin: 0; font-family: var(--font-sans); font-size: 17px; line-height: 1.6; color: var(--ink-muted); max-width: 44ch; }
.tn-visit__hours { margin: var(--space-2) 0 0; display: grid; gap: var(--space-1); }
.tn-visit__row { display: flex; gap: var(--space-4); font-family: var(--font-sans); font-size: 15px; }
.tn-visit__row dt { flex: 0 0 96px; color: var(--ink-muted); }
.tn-visit__row dd { margin: 0; color: var(--ink); }
.tn-visit__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-3); }
.tn-visit__empty { margin: 0; font-family: var(--font-sans); font-size: 16px; color: var(--ink-muted); }
.tn-visit__empty a { color: var(--ink); text-decoration-color: var(--line-gold); text-underline-offset: 4px; }
.tn-visit__more { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; font-family: var(--font-sans); font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); text-decoration: none; }
.tn-visit__more .tn-arrow { width: 18px; height: 18px; }
.tn-visit__more:hover { text-decoration: underline; text-decoration-color: var(--line-gold); text-underline-offset: 4px; }
.tn-visit .tn-event { border-bottom: 0; }

/* ---------- EventCard: actions ---------- */
.tn-event__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-5); margin-top: var(--space-2); }
.tn-event__link { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--font-sans); font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-gold); text-underline-offset: 4px; }
.tn-event__link:hover { text-decoration-color: var(--ink); }
