/* ============================================================
   Silver Gen Yoyo — stylesheet
   Base font size is deliberately large (18px) for legibility.
   ============================================================ */

:root {
  /* Colour — red & white
     Contrast checked against WCAG AA:
       --ink on white ......... 15.9:1
       --ink-soft on white .....  7.3:1
       --red-700 on white ......  7.4:1   (links)
       --red-500 on white ......  5.0:1   (eyebrows, small accents)
       white on --red-500 ......  5.0:1   (accent buttons)
       white on --red-900 ..... 10.9:1   (dark sections)
       --rose on --red-900 .....  6.4:1   (accents on dark) */
  --white:      #FFFFFF;
  --off-white:  #FBF3F3;
  --ink:        #1E1214;
  --ink-soft:   #5C4A4C;
  --red-900:    #7A121A;
  --red-700:    #A81B25;
  --red-500:    #E01020;   /* sampled from the logo — brand red */
  --red-dark:   #B00C19;
  --red-50:     #FCE9E9;
  --rose:       #FFB3B3;
  --silver:     #7A6E70;   /* 4.9:1 on white — safe for text, not just borders */
  --line:       #F0DFDF;

  /* Type */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Space */
  --wrap: 1160px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 9vw, 7.5rem);
  --radius: 18px;
  --radius-lg: 28px;

  --shadow-sm: 0 2px 8px rgba(122, 18, 26, .07);
  --shadow-md: 0 12px 32px -12px rgba(122, 18, 26, .22);
  --shadow-lg: 0 28px 64px -24px rgba(122, 18, 26, .32);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--red-700); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--red-500); }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; padding: 0; }

:focus-visible {
  outline: 3px solid var(--red-500);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 50%; top: -100px; transform: translateX(-50%);
  z-index: 200; background: var(--red-900); color: #fff;
  padding: .75rem 1.5rem; border-radius: 0 0 12px 12px;
  text-decoration: none; font-weight: 600; transition: top .2s;
}
.skip-link:focus { top: 0; color: #fff; }

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section-tint { background: var(--off-white); }
.section-dark { background: var(--red-900); color: var(--white); }

.grid-2 {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  grid-template-columns: 1fr;
}
@media (min-width: 860px) {
  .grid-2 { grid-template-columns: 0.85fr 1fr; align-items: start; }
  .grid-2-form { grid-template-columns: 1fr 1.05fr; align-items: start; }
}

/* ---------- Type ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.02em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.75rem, 7vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
h3 { font-size: 1.25rem; line-height: 1.25; letter-spacing: -.01em; }

.eyebrow {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red-500);
  margin-bottom: .9rem;
}
/* Any dark-red panel needs the light accent, not the brand red */
.section-dark .eyebrow,
.page-hero .eyebrow,
.strip .eyebrow { color: var(--rose); }

.lead {
  font-size: clamp(1.06rem, 1.6vw, 1.22rem);
  color: var(--ink-soft);
  max-width: 56ch;
}
.section-dark .lead { color: rgba(255, 255, 255, .78); }

.section-head { margin-bottom: 3rem; }
.section-head.center { text-align: center; margin-inline: auto; max-width: 44rem; }
.section-head.center .lead { margin-inline: auto; }
.section-head h2 + .lead { margin-top: 1.1rem; }

.prose p + p { margin-top: 1.15rem; }
.prose { color: var(--ink-soft); font-size: 1.06rem; max-width: 60ch; }
.prose strong { color: var(--ink); }

.hl {
  position: relative;
  color: var(--red-500);
  white-space: nowrap;
}
.hl::after {
  content: '';
  position: absolute;
  left: -.04em; right: -.04em; bottom: .06em;
  height: .18em;
  background: var(--rose);
  opacity: .75;
  border-radius: 999px;
  z-index: -1;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .95rem 1.75rem;
  min-height: 52px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1.02rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--red-900); color: var(--white); box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--red-700); color: var(--white); }

.btn-accent { background: var(--red-500); color: #fff; box-shadow: var(--shadow-md); }
.btn-accent:hover { background: var(--red-dark); color: #fff; }

.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--red-700); color: var(--red-700); background: rgba(214,40,40,.06); }
.section-dark .btn-ghost { border-color: rgba(255,255,255,.32); color: var(--white); }
.section-dark .btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.1); color: var(--white); }

.btn-sm { padding: .65rem 1.3rem; min-height: 44px; font-size: .95rem; }
.btn-block { width: 100%; }

.cta-row {
  display: flex; flex-wrap: wrap; gap: 1rem;
  margin-top: 3rem; justify-content: center;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px -10px rgba(122,18,26,.2);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 76px;
}

.brand {
  display: inline-flex; align-items: center;
  text-decoration: none; flex-shrink: 0;
  padding: .35rem 0;
}
.brand img {
  height: 48px; width: auto;
  transition: transform .3s cubic-bezier(.34,1.4,.64,1);
}
.brand:hover img { transform: scale(1.04); }
@media (max-width: 480px) { .brand img { height: 38px; } }

.primary-nav { display: flex; align-items: center; gap: .35rem; }
/* :not(.btn) so the CTA keeps its own colour and padding —
   a bare `.primary-nav a` outranks `.btn-primary` on specificity. */
.primary-nav a:not(.btn) {
  padding: .55rem .85rem; border-radius: 999px;
  text-decoration: none; color: var(--ink); font-weight: 500;
  font-size: .98rem; transition: background .18s, color .18s;
}
.primary-nav a:not(.btn):hover { background: var(--red-50); color: var(--red-900); }
.primary-nav .btn { margin-left: .5rem; }

.nav-toggle {
  display: none; width: 48px; height: 48px;
  border: 1px solid var(--line); border-radius: 12px;
  background: transparent; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 20px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform .25s, opacity .2s;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ''; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after  { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 1rem var(--gutter) 1.75rem;
    gap: .25rem;
    box-shadow: var(--shadow-md);
    transform-origin: top;
    display: none;
  }
  .primary-nav.is-open { display: flex; animation: dropIn .22s ease; }
  .primary-nav a:not(.btn) { padding: .85rem 1rem; font-size: 1.06rem; }
  .primary-nav .btn { margin: .6rem 0 0; }
  @keyframes dropIn { from { opacity: 0; transform: translateY(-8px); } }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding-block: clamp(3rem, 7vw, 6rem) clamp(4rem, 8vw, 7rem);
  overflow: hidden;
}
.hero-blob {
  position: absolute;
  top: -22%; right: -12%;
  width: min(62vw, 780px); aspect-ratio: 1;
  background: radial-gradient(circle at 35% 35%, var(--red-50), transparent 62%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  text-align: center;
}
.hero-copy { max-width: 48rem; margin-inline: auto; }

.hero h1 { margin-bottom: 1.4rem; }
.hero .lead { margin-bottom: 2.25rem; margin-inline: auto; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

.hero-stats {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: 2.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.hero-stats li { align-items: center; }
.hero-stats li { display: flex; flex-direction: column; gap: .2rem; }
.hero-stats strong {
  font-family: var(--font-display);
  font-size: 2.35rem; font-weight: 700; line-height: 1;
  color: var(--red-900);
}
.hero-stats .unit { font-size: 1.05rem; margin-left: .1em; color: var(--red-500); }
.hero-stats span {
  font-size: .86rem; font-weight: 500;
  letter-spacing: .04em; color: var(--ink-soft);
}

/* Hero photo — wide, sits under the copy */
.hero-media { position: relative; margin-top: clamp(2.5rem, 5vw, 3.75rem); }
.hero-photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--red-50);
  box-shadow: var(--shadow-lg);
}
.hero-photo img { width: 100%; height: auto; display: block; }
.photo-fallback { display: none; }
.hero-photo.is-empty img { display: none; }
.hero-photo.is-empty { aspect-ratio: 16 / 9; }
.hero-photo.is-empty .photo-fallback {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.25rem; height: 100%; padding: 2rem;
  text-align: center; font-size: .92rem; color: var(--red-700);
  background: repeating-linear-gradient(45deg, var(--red-50) 0 14px, #FBDFDF 14px 28px);
}
.photo-fallback code {
  font-size: .82rem; background: rgba(255,255,255,.75);
  padding: .2rem .5rem; border-radius: 6px;
}

.yoyo-spin {
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--red-700);
  box-shadow: inset 0 0 0 9px var(--red-500), inset 0 0 0 12px var(--white);
  animation: spin 2.4s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   TRUST STRIP
   ============================================================ */
.strip {
  background: var(--red-900); color: var(--white);
  padding-block: 1.75rem;
}
.strip-inner {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 1rem clamp(1.5rem, 4vw, 3rem);
  justify-content: center;
}
.strip-label {
  font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--rose);
}
.strip-logos {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 1rem clamp(1.25rem, 3vw, 2.5rem);
}
.strip-logos li {
  font-weight: 600; font-size: .95rem;
  color: rgba(255,255,255,.72);
}

/* ============================================================
   CARDS
   ============================================================ */
.cards {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--red-500);
}
.card-icon {
  display: grid; place-items: center;
  width: 56px; height: 56px; margin-bottom: 1.25rem;
  border-radius: 16px; background: var(--red-50);
  font-size: 1.6rem; line-height: 1;
}
.card h3 { margin-bottom: .6rem; color: var(--red-900); }
.card p { color: var(--ink-soft); font-size: .98rem; }

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline {
  display: grid; gap: 0;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  counter-reset: step;
}
.timeline li {
  position: relative;
  padding: 2.5rem 1.5rem 2rem 0;
  counter-increment: step;
}
.timeline li::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 44px; height: 44px; margin-bottom: 1.1rem;
  border-radius: 50%;
  background: var(--red-900); color: var(--white);
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
}
.timeline li::after {
  content: '';
  position: absolute; left: 22px; top: 2.5rem;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--line) 60%, transparent);
}
.timeline li:last-child::after { display: none; }
@media (max-width: 700px) {
  .timeline li::after { display: none; }
  .timeline li { padding-bottom: 1.25rem; }
}
.timeline-time {
  display: inline-block; margin-bottom: .5rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--red-500);
}
.timeline h3 { margin-bottom: .45rem; color: var(--red-900); }
.timeline p { color: var(--ink-soft); font-size: .96rem; }

/* ============================================================
   PHOTO BAND — full-width marquee under the hero
   ============================================================ */
.photo-band-wrap {
  overflow: hidden;
  background: var(--off-white);
  border-block: 1px solid var(--line);
  padding-block: .9rem;
}
.photo-band {
  display: flex; gap: .9rem;
  width: max-content;
  animation: bandScroll 70s linear infinite;
}
.photo-band-wrap:hover .photo-band { animation-play-state: paused; }
.photo-band.is-static { animation: none; overflow-x: auto; width: 100%; }
@keyframes bandScroll { to { transform: translateX(-50%); } }

.band-item {
  flex: 0 0 auto;
  width: clamp(150px, 20vw, 230px);
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  background: var(--red-50);
}
.band-item img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid; gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr; align-items: center;
}
@media (min-width: 860px) {
  .about-grid { grid-template-columns: 0.85fr 1fr; }
}
.about-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  rotate: -1.2deg;
}
.about-photo img { width: 100%; height: auto; display: block; }

/* ============================================================
   GALLERY — masonry columns so mixed portrait/landscape sit well
   ============================================================ */
.gallery {
  column-count: 2;
  column-gap: 1rem;
}
@media (min-width: 700px)  { .gallery { column-count: 3; } }
@media (min-width: 1040px) { .gallery { column-count: 4; } }

.gallery-item {
  position: relative;
  display: block; width: 100%;
  border: 0; padding: 0;
  margin: 0 0 1rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--red-50);
  cursor: zoom-in;
  box-shadow: var(--shadow-sm);
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
}
.gallery-item img {
  width: 100%; height: auto; display: block;
  transition: transform .5s cubic-bezier(.2,.8,.3,1);
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 2.5rem .9rem .85rem;
  background: linear-gradient(transparent, rgba(122,18,26,.85));
  color: #fff; font-size: .88rem; font-weight: 500;
  text-align: left;
  opacity: 0; transform: translateY(6px);
  transition: opacity .25s, transform .25s;
}
.gallery-item:hover figcaption,
.gallery-item:focus-visible figcaption { opacity: 1; transform: none; }

.gallery-empty {
  text-align: center; color: var(--ink-soft);
  padding: 3.5rem 1rem;
  border: 2px dashed var(--line); border-radius: var(--radius);
}

/* ============================================================
   VIDEO
   ============================================================ */
.video-grid {
  display: grid; gap: 1rem;
  /* two up on a phone, four-ish on desktop */
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
@media (min-width: 640px) {
  .video-grid { grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); }
}
.video-item {
  position: relative;
  border: 0; padding: 0; margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--red-900);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease;
}
.video-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.video-item video {
  width: 100%; height: 100%; object-fit: cover;
  pointer-events: none;   /* clicks belong to the button */
}
.video-badge {
  position: absolute; top: .7rem; right: .7rem;
  display: grid; place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(30, 10, 12, .62);
  color: #fff;
  backdrop-filter: blur(4px);
}
.video-badge svg { margin-left: 2px; }

/* Featured film */
.film-frame {
  max-width: 62rem; margin-inline: auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, .16);
}
.film-frame video { width: 100%; height: auto; display: block; aspect-ratio: 16 / 9; color: var(--white); }
/* Only ever seen if the browser can't play video at all */
.film-frame video a { color: var(--rose); }
.film-credit {
  margin-top: 1.1rem; text-align: center;
  font-size: .86rem; color: rgba(255, 255, 255, .78);
}
.film-credit a { color: var(--rose); }
.film-credit a:hover { color: var(--white); }

/* ---------- YouTube facade ---------- */
.yt-facade {
  position: relative; display: block;
  width: 100%; padding: 0; border: 0; margin: 0;
  aspect-ratio: 16 / 9;
  background: #000; cursor: pointer;
  overflow: hidden;
}
.yt-facade img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s cubic-bezier(.2,.8,.3,1), opacity .3s;
}
.yt-facade:hover img { transform: scale(1.03); opacity: .82; }
.yt-play {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  pointer-events: none;
}
.yt-play svg {
  width: clamp(58px, 9vw, 84px); height: auto;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,.45));
  opacity: .92; transition: opacity .2s, transform .2s;
}
.yt-facade:hover .yt-play svg { opacity: 1; transform: scale(1.07); }
.yt-frame {
  display: block; width: 100%; aspect-ratio: 16 / 9; border: 0;
}

/* Secondary film below the main one */
.film-second { margin-top: clamp(3rem, 6vw, 4.5rem); }
.film-sub {
  text-align: center; margin-bottom: 1.5rem;
  font-size: 1.2rem; color: var(--rose);
}
.film-frame-sm { max-width: 44rem; }
.gallery-empty code {
  background: var(--white); padding: .15rem .45rem;
  border-radius: 5px; font-size: .9em;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  background: rgba(30, 10, 12, .94);
  backdrop-filter: blur(6px);
  padding: clamp(1rem, 4vw, 3rem);
  animation: fadeIn .2s ease;
}
.lightbox[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } }
.lightbox-figure {
  max-width: 100%; max-height: 100%;
  display: flex; flex-direction: column; gap: .9rem; align-items: center;
}
.lightbox-figure img,
.lightbox-figure video {
  max-width: 100%; max-height: 78vh;
  border-radius: 12px; object-fit: contain;
}
.lightbox-figure video { background: #000; }
.lightbox-figure [hidden] { display: none; }
.lightbox-figure figcaption {
  color: rgba(255,255,255,.82); font-size: .95rem; text-align: center;
}
.lightbox-close, .lightbox-nav {
  position: absolute;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.22);
  color: #fff; cursor: pointer;
  border-radius: 50%;
  display: grid; place-items: center;
  transition: background .18s, transform .18s;
}
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255,255,255,.25); }
.lightbox-close {
  top: 1.25rem; right: 1.25rem;
  width: 48px; height: 48px; font-size: 1.9rem; line-height: 1;
}
.lightbox-nav {
  top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; font-size: 2.4rem; line-height: 1; padding-bottom: 6px;
}
.lightbox-nav:hover { transform: translateY(-50%) scale(1.08); }
.lightbox-prev { left: 1.25rem; }
.lightbox-next { right: 1.25rem; }
@media (max-width: 620px) {
  .lightbox-nav { width: 44px; height: 44px; font-size: 2rem; }
  .lightbox-prev { left: .5rem; } .lightbox-next { right: .5rem; }
}

/* ============================================================
   PRESS
   ============================================================ */
.press-list {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
}
.press-item {
  display: flex; flex-direction: column;
  padding: 1.75rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--red-500);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease;
}
.press-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.press-outlet {
  font-size: .76rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--red-500); margin-bottom: .7rem;
}
.press-headline {
  font-size: 1.14rem; line-height: 1.3;
  color: var(--red-900); margin-bottom: .6rem;
}
.press-headline[lang="zh-SG"] {
  font-family: var(--font-body); font-weight: 700;
  letter-spacing: 0; font-size: 1.08rem;
}
.press-meta {
  font-size: .86rem; color: var(--ink-soft);
  margin-bottom: .9rem;
}
.press-note {
  font-size: .94rem; color: var(--ink-soft);
  margin-top: auto;
}

.press-quote {
  max-width: 46rem; margin: 3.5rem auto 0;
  padding: 2.25rem 2rem; text-align: center;
  background: var(--red-50); border-radius: var(--radius-lg);
}
.press-quote blockquote p {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  line-height: 1.3; font-weight: 700;
  color: var(--red-900); text-wrap: balance;
}
.press-quote figcaption {
  margin-top: 1.15rem;
  font-size: .92rem; font-weight: 600; color: var(--ink-soft);
}
.press-quote figcaption span {
  display: block; font-weight: 400;
  color: var(--ink-soft); font-size: .86rem; margin-top: .2rem;
}

/* ============================================================
   INSTAGRAM
   ============================================================ */
.ig-handle {
  display: inline-flex; align-items: center; gap: .45rem;
  margin-top: 1.25rem; padding: .55rem 1.15rem;
  background: var(--red-50); border-radius: 999px;
  font-weight: 600; text-decoration: none; color: var(--red-900);
  transition: background .18s, transform .18s;
}
.ig-handle:hover { background: var(--red-500); color: #fff; transform: translateY(-2px); }

.ig-feed { min-height: 120px; }
.ig-placeholder {
  text-align: center;
  border: 2px dashed var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.5rem);
  color: var(--ink-soft);
}
.ig-placeholder p + p { margin-top: .35rem; }
.ig-placeholder .btn { margin-top: 1.75rem; }
.ig-placeholder-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: .6rem; max-width: 340px; margin: 0 auto 1.75rem;
}
.ig-placeholder-grid span {
  aspect-ratio: 1; border-radius: 10px;
  background: linear-gradient(110deg, var(--off-white) 30%, var(--red-50) 50%, var(--off-white) 70%);
  background-size: 220% 100%;
  animation: shimmer 2.2s infinite;
}
.ig-placeholder-grid span:nth-child(2) { animation-delay: .12s; }
.ig-placeholder-grid span:nth-child(3) { animation-delay: .24s; }
.ig-placeholder-grid span:nth-child(4) { animation-delay: .36s; }
.ig-placeholder-grid span:nth-child(5) { animation-delay: .48s; }
.ig-placeholder-grid span:nth-child(6) { animation-delay: .60s; }
@keyframes shimmer { to { background-position: -220% 0; } }

/* Instagram grid — rendered from the JSON feed, styled like the rest of
   the site rather than using a third-party widget's own CSS. */
.ig-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
@media (min-width: 640px) {
  .ig-grid { grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); }
}
.ig-tile {
  position: relative; display: block;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--red-50);
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease;
}
.ig-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.ig-tile img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s cubic-bezier(.2,.8,.3,1);
}
.ig-tile:hover img { transform: scale(1.05); }
.ig-badge {
  position: absolute; top: .6rem; right: .6rem;
  display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(30, 10, 12, .6); color: #fff;
  backdrop-filter: blur(4px);
}

/* ============================================================
   FORM
   ============================================================ */
.form {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
.field { margin-bottom: 1.15rem; }
.field-row { display: grid; gap: 1.15rem; grid-template-columns: 1fr; }
@media (min-width: 520px) { .field-row { grid-template-columns: 1fr 1fr; } }

.field label {
  display: block; margin-bottom: .45rem;
  font-size: .92rem; font-weight: 600;
  color: rgba(255, 255, 255, .9);
}
.req { color: var(--rose); }

.field input, .field select, .field textarea {
  width: 100%;
  padding: .85rem 1rem;
  min-height: 52px;
  background: rgba(255, 255, 255, .96);
  border: 2px solid transparent;
  border-radius: 12px;
  color: var(--ink);
  transition: border-color .18s, background .18s;
}
.field textarea { min-height: auto; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--silver); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--red-500); background: #fff;
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235C4A4C' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px;
  padding-right: 2.5rem;
}

.form button { margin-top: .6rem; }
.form-note {
  margin-top: .9rem; font-size: .84rem;
  color: rgba(255, 255, 255, .74); text-align: center;
}
.hp { position: absolute; left: -9999px; }

.contact-list { margin-top: 2rem; display: grid; gap: .75rem; }
.contact-list li { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.contact-list .sep { color: rgba(255, 255, 255, .62); margin-inline: -.15rem; }
/* Keep the number pair together so it wraps as a unit rather than
   stranding the "/" at the end of a line on narrow screens. */
.contact-list .nums { display: inline-flex; align-items: center; gap: .45rem; }
.contact-list a { color: var(--white); text-decoration-color: rgba(255,255,255,.4); }
.contact-list a:hover { color: var(--rose); }

.form-success {
  text-align: center; padding: 3rem 1.5rem;
}
.form-success h3 { color: var(--rose); margin-bottom: .6rem; font-size: 1.6rem; }
.form-success p { color: rgba(255,255,255,.86); }
.form-success a { color: var(--rose); }
.form-success a:hover { color: var(--white); }
.form-success.is-error h3 { color: var(--white); }

.form-error {
  margin-top: .9rem; padding: .8rem 1rem;
  background: rgba(255, 255, 255, .12);
  border: 1px solid var(--rose);
  border-radius: 12px;
  font-size: .92rem; color: var(--white);
}
.form-error a { color: var(--rose); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--red-900);
  color: rgba(255, 255, 255, .72);
  padding-block: 3.5rem 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.section-dark + .site-footer { border-top-color: rgba(255,255,255,.12); }
.footer-inner {
  display: grid; gap: 1.75rem;
  justify-items: center; text-align: center;
}
.footer-brand {
  display: flex; align-items: center; gap: 1rem;
  flex-wrap: wrap; justify-content: center;
}
/* The logo is red-on-transparent, so on the deep red footer it sits in a
   white badge rather than disappearing. */
.footer-mark {
  display: grid; place-items: center;
  width: 72px; height: 72px; flex-shrink: 0;
  background: var(--white);
  border-radius: 50%;
  padding: 6px;
}
.footer-mark img { width: 100%; height: 100%; object-fit: contain; }
.footer-brand p { max-width: 40ch; font-size: .95rem; text-align: left; }
@media (max-width: 560px) { .footer-brand p { text-align: center; } }
.footer-nav { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: center; }
.footer-nav a { color: var(--white); text-decoration: none; font-weight: 500; font-size: .95rem; }
.footer-nav a:hover { color: var(--rose); }
.copyright { font-size: .84rem; color: rgba(255, 255, 255, .62); }

/* ============================================================
   PROGRAMME PAGE
   ============================================================ */
.page-hero {
  background: var(--red-900); color: var(--white);
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
  text-align: center;
}
.page-hero .lead { margin-inline: auto; color: rgba(255,255,255,.8); }
.page-hero h1 { font-size: clamp(2.4rem, 5.5vw, 3.8rem); margin-bottom: 1.1rem; }

.meta-bar {
  display: grid; gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 4rem;
}
.meta-bar div { background: var(--white); padding: 1.5rem 1.25rem; text-align: center; }
.meta-bar dt {
  font-size: .76rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--red-500); margin-bottom: .4rem;
}
.meta-bar dd {
  margin: 0; font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 700; color: var(--red-900);
}

.sessions { display: grid; gap: 1.25rem; }
.session {
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 5px solid var(--red-500);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: border-left-color .2s, box-shadow .2s;
}
.session:hover { border-left-color: var(--red-900); box-shadow: var(--shadow-md); }
@media (min-width: 760px) {
  .session { grid-template-columns: 168px 1fr; gap: 2rem; align-items: start; }
}
.session-no {
  font-family: var(--font-display); font-weight: 700;
  color: var(--red-500); font-size: .82rem;
  letter-spacing: .12em; text-transform: uppercase;
}
.session-title { margin: .3rem 0 .75rem; color: var(--red-900); }
.session-body p { color: var(--ink-soft); font-size: .99rem; }
.session-body ul {
  margin-top: .9rem; display: grid; gap: .45rem;
}
.session-body ul li {
  position: relative; padding-left: 1.5rem;
  color: var(--ink-soft); font-size: .96rem;
}
.session-body ul li::before {
  content: ''; position: absolute; left: 0; top: .55em;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red-500);
}
.tag {
  display: inline-block; margin-top: .75rem;
  padding: .25rem .7rem; border-radius: 999px;
  background: var(--red-50); color: var(--red-900);
  font-size: .78rem; font-weight: 700; letter-spacing: .04em;
}
.tag-alt { background: var(--off-white); color: var(--ink-soft); border: 1px solid var(--line); }

/* Level objective — the "why" line under each level title */
.session-body .objective {
  color: var(--ink); font-weight: 500;
  font-size: 1.02rem; line-height: 1.5;
}

/* Small heading above each list within a level card */
.sub-label {
  margin-top: 1.5rem;
  font-family: var(--font-body);
  font-size: .76rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--red-500);
}
.sub-label + ul { margin-top: .6rem; }

/* Learning domains read as a tag cloud rather than a bullet list */
.session-body ul.domains {
  display: flex; flex-wrap: wrap; gap: .45rem;
}
.session-body ul.domains li {
  padding: .3rem .75rem; border-radius: 999px;
  background: var(--off-white); border: 1px solid var(--line);
  font-size: .88rem; color: var(--ink-soft);
}
.session-body ul.domains li::before { display: none; }

.session-note {
  margin-top: 1.25rem; padding: .75rem 1rem;
  background: var(--red-50); border-radius: 12px;
  font-size: .92rem !important; color: var(--red-900) !important;
}
.session-optional { border-left-style: dashed; border-left-color: var(--silver); }

/* ---------- Curriculum table ---------- */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.trick-table {
  width: 100%; min-width: 480px;
  border-collapse: collapse;
  font-size: .98rem;
}
.trick-table thead th {
  background: var(--red-900); color: var(--white);
  text-align: left; padding: .9rem 1.25rem;
  font-size: .76rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
}
.trick-table td, .trick-table tbody th {
  padding: .85rem 1.25rem;
  border-top: 1px solid var(--line);
  text-align: left; vertical-align: middle;
}
.trick-table tbody tr:hover td { background: var(--off-white); }
.stage-cell {
  background: var(--red-50); color: var(--red-900);
  font-family: var(--font-display); font-weight: 700;
  font-size: .95rem; white-space: nowrap;
  border-right: 1px solid var(--line);
}
.trick-table .num {
  font-family: var(--font-display); font-weight: 700;
  color: var(--red-500); width: 4.5rem;
}
.trick-table .break-row td {
  background: var(--off-white); color: var(--ink-soft);
  text-align: center; font-size: .78rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  padding: .5rem;
}
.trick-table .break-row:hover td { background: var(--off-white); }

/* ---------- Time slots ---------- */
.slots {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  max-width: 56rem; margin-inline: auto;
}
.slots li {
  display: flex; flex-direction: column; gap: .35rem;
  padding: 1.75rem 1.5rem; text-align: center;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.slot-name {
  font-size: .76rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--red-500);
}
.slot-time {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.35rem; color: var(--red-900);
}

.faq { display: grid; gap: .75rem; max-width: 48rem; margin-inline: auto; }
.faq details {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.faq summary {
  padding: 1.25rem 1.5rem; cursor: pointer;
  font-weight: 600; font-size: 1.04rem; color: var(--red-900);
  list-style: none; display: flex; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; font-size: 1.5rem; line-height: 1;
  color: var(--red-500); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > p { padding: 0 1.5rem 1.35rem; color: var(--ink-soft); font-size: .99rem; }

