/* =========================================================
   1. Design tokens — Apple-style typography & color system
   ========================================================= */
:root {
  /* Colors — brand blue dominant, orange as accent only */
  --color-primary: #1b3a56;     /* Brand blue — main headings, brand text, key backgrounds */
  --color-text-primary: #1b3a56; /* Brand blue for body text */
  --color-text-secondary: #5a7a92; /* Lighter brand blue for subtitles, lede */
  --color-text-subtle: #94A3B8; /* Subtle/label text on light backgrounds */
  --color-bg: #FFFFFF;
  --color-bg-soft: #F8FAFC;
  --color-border: #E2E8F0;
  --color-accent: #e36225;      /* Brand orange — small callouts, hover, highlights */
  --color-accent-soft: rgba(227, 98, 37, 0.1);  /* Tinted backgrounds */
  --color-accent-shadow: rgba(227, 98, 37, 0.3); /* Hover glow */
  --color-white: #FFFFFF;

  /* Legacy aliases — kept so component classes don't need to be rewritten. */
  --color-secondary: var(--color-primary);
  --color-text-body: var(--color-text-primary);
  --color-navy: var(--color-primary);
  --color-navy-soft: var(--color-secondary);
  --color-orange: var(--color-accent);
  --color-orange-dark: var(--color-accent);
  --color-text: var(--color-primary);
  --color-text-muted: var(--color-text-secondary);

  /* Typography — Apple SF Pro stack with Inter fallback for non-Apple devices */
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Icons", "Helvetica Neue", "Inter", "Segoe UI", Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Icons", "Helvetica Neue", "Inter", "Segoe UI", Arial, sans-serif;
  --font-heading: var(--font-display); /* legacy alias */

  /* Apple typography hierarchy (font-size) */
  --fs-hero:    clamp(2.75rem, 6vw + 1rem, 5.5rem);    /* 44 - 88px → Super Hero */
  --fs-section: clamp(2rem, 2.5vw + 1.25rem, 3.25rem); /* 32 - 52px → Section title */
  --fs-subhead: clamp(1.375rem, 0.6vw + 1.25rem, 1.875rem); /* 22 - 30px → Subhead */
  --fs-lead:    clamp(1.0625rem, 0.4vw + 1rem, 1.375rem); /* 17 - 22px → Body lead */
  --fs-body:    1.0625rem;                              /* 17px → Standard body */
  --fs-eyebrow: 0.8125rem;                              /* 13px → Eyebrow */
  --fs-caption: 0.75rem;                                /* 12px → Caption/footnote */

  /* Legacy font-size aliases (keep existing references working) */
  --fs-12: var(--fs-caption);
  --fs-13: var(--fs-eyebrow);
  --fs-14: 0.875rem;
  --fs-15: 0.9375rem;
  --fs-16: 1rem;
  --fs-18: 1.125rem;
  --fs-20: 1.25rem;
  --fs-22: 1.375rem;
  --fs-24: 1.5rem;
  --fs-32: 2rem;
  --fs-38: 2.375rem;
  --fs-48: 3rem;
  --fs-58: 3.625rem;
  --fs-64: 4rem;
  --fs-80: 5rem;

  /* Apple line-height */
  --lh-hero: 1.05;     /* Super Hero */
  --lh-section: 1.1;   /* Section title */
  --lh-subhead: 1.18;  /* Subhead */
  --lh-lead: 1.38;     /* Body lead */
  --lh-body: 1.47;     /* Standard body */
  --lh-caption: 1.33;  /* Caption */

  /* Apple letter-spacing (negative for large, zero for body) */
  --ls-hero: -0.025em;
  --ls-section: -0.02em;
  --ls-subhead: -0.012em;
  --ls-lead: -0.005em;
  --ls-body: -0.022em;
  --ls-eyebrow: 0.08em;
  --ls-caption: 0;

  /* Legacy aliases */
  --ls-heading-tight: 0;
  --ls-heading-base: 0;
  --ls-heading-wide: 0;
  --lh-tight: var(--lh-hero);
  --lh-heading: var(--lh-section);
  --lh-snug: var(--lh-lead);
  --lh-normal: var(--lh-body);
  --lh-relaxed: 1.5;

  /* Spacing (4pt / 8pt grid) */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-6: 1.5rem;
  --s-8: 2rem;
  --s-12: 3rem;
  --s-16: 4rem;
  --s-20: 5rem;                /* 80px */
  --s-24: 6rem;                /* 96px */
  --s-32: 8rem;                /* 128px */
  --s-40: 10rem;               /* 160px — Apple-style max section padding */

  /* Apple-style generous section padding */
  --section-padding: clamp(4rem, 8vw, 7.5rem); /* 64px - 120px */

  /* Radius — Apple uses larger, softer corners */
  --r-button: 980px;           /* Pill buttons */
  --r-card: 12px;
  --r-large: 20px;
  --r-full: 9999px;

  /* Layout */
  --container: 1380px;
  --gutter: 24px;
  --nav-height: 64px;

  /* Z-index */
  --z-nav: 100;
  --z-lightbox: 1000;
  --z-floating: 90;
  --z-popup: 200;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 150ms;
  --dur-base: 250ms;
  --dur-slow: 500ms;

  /* Shadow — subtle Apple-style */
  --shadow-sm: 0 1px 2px rgba(27, 58, 86, 0.04), 0 1px 3px rgba(27, 58, 86, 0.06);
  --shadow-md: 0 4px 12px rgba(27, 58, 86, 0.08), 0 2px 4px rgba(27, 58, 86, 0.05);
  --shadow-lg: 0 12px 32px rgba(27, 58, 86, 0.12), 0 4px 8px rgba(27, 58, 86, 0.06);
  --shadow-accent: 0 6px 20px var(--color-accent-shadow);
}

/* =========================================================
   2. Reset
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* Defensive: ensure the [hidden] attribute is always honored, even if a
   component rule sets display: flex / block / grid. Prevents the lightbox
   from covering the whole viewport while "hidden" and blocking clicks. */
[hidden] { display: none !important; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);       /* 17px */
  line-height: var(--lh-body);     /* 1.47 */
  letter-spacing: var(--ls-body);  /* -0.022em */
  color: var(--color-text-primary);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, picture, video, canvas, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
ul, ol { list-style: none; }

/* Headings — Apple style: sentence case, tight tracking, optical sizing */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  text-transform: none;
  font-weight: 600;
  margin: 0;
}

h1 {
  font-size: var(--fs-hero);       /* 44 - 88px */
  line-height: var(--lh-hero);     /* 1.05 */
  letter-spacing: var(--ls-hero);  /* -0.025em */
  font-weight: 600;
}
h2 {
  font-size: var(--fs-section);    /* 32 - 52px */
  line-height: var(--lh-section);  /* 1.1 */
  letter-spacing: var(--ls-section); /* -0.02em */
  font-weight: 600;
}
h3 {
  font-size: var(--fs-subhead);    /* 22 - 30px */
  line-height: var(--lh-subhead);  /* 1.18 */
  letter-spacing: var(--ls-subhead); /* -0.012em */
  font-weight: 600;
}
h4, h5, h6 {
  font-size: var(--fs-lead);
  font-weight: 600;
  line-height: var(--lh-lead);
  letter-spacing: var(--ls-lead);
}

/* =========================================================
   3. Accessibility utilities
   ========================================================= */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 10000;
  padding: 12px 16px;
  background: var(--color-navy);
  color: var(--color-white);
  border-radius: var(--r-button);
  font-weight: 600;
}
.skip-link:focus { top: 16px; }

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================================
   4. Container
   ========================================================= */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Section spacing (default) — Apple-style generous breathing room */
section { padding-block: var(--section-padding); }
section + section { border-top: 1px solid transparent; }

/* Section eyebrow + title pattern */
.section-eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--color-accent);
  text-align: center;
  margin-bottom: var(--s-3);
}
/* Allow eyebrows left-aligned in left-aligned copy blocks */
.about .section-eyebrow,
.coach .section-eyebrow,
.contact .section-eyebrow { text-align: left; }

.section-title {
  font-size: var(--fs-section);
  line-height: var(--lh-section);
  letter-spacing: var(--ls-section);
  font-weight: 600;
  text-align: center;
  margin-bottom: var(--s-4);
}
.section-subtitle {
  font-family: var(--font-body);
  font-size: var(--fs-lead);
  font-weight: 400;
  line-height: var(--lh-lead);
  letter-spacing: var(--ls-lead);
  color: var(--color-text-secondary);
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--s-12);
}

/* =========================================================
   5. Buttons — Apple-style pill, no uppercase
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 1;
  letter-spacing: var(--ls-body);
  text-transform: none;
  border-radius: var(--r-button);
  transition: background-color var(--dur-base) var(--ease),
              color var(--dur-base) var(--ease),
              box-shadow var(--dur-base) var(--ease),
              transform var(--dur-fast) var(--ease);
  cursor: pointer;
  min-height: 44px;
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
}
.btn-primary:hover {
  background: var(--color-accent);
  box-shadow: var(--shadow-accent);
}
.btn-primary:active { transform: translateY(1px); }
.btn-ghost {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}
.btn-ghost:hover { background: var(--color-primary); color: var(--color-white); }

/* Accent / highlight text */
.highlight-text {
  color: var(--color-accent);
}

/* =========================================================
   6. Navigation
   ========================================================= */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: background-color var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}
.site-nav.is-scrolled {
  /* kept for JS compatibility — header is already always white */
  background: var(--color-white);
  border-bottom-color: var(--color-border);
}
.site-nav__inner {
  display: flex;
  align-items: center;
  height: var(--nav-height);
}
.site-nav__logo img {
  height: 40px;
  width: auto;
}
.site-nav__menu {
  margin-left: auto;
}
.site-nav__list {
  display: flex;
  gap: var(--s-8);
}
.site-nav__link {
  position: relative;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  letter-spacing: var(--ls-body);
  color: var(--color-primary);
  padding: var(--s-2) 0;
  transition: color var(--dur-fast) var(--ease);
}
.site-nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--color-accent);
  transition: width var(--dur-base) var(--ease);
}
.site-nav__link:hover::after,
.site-nav__link:focus-visible::after { width: 100%; }

.site-nav__toggle,
.site-nav__toggle-input { display: none; }

/* Push body content below fixed nav */
body { padding-top: var(--nav-height); } /* nav is opaque white, hero starts below it */
main { margin-top: 0; }

/* Hero adjusts to fill the viewport below the nav */
.hero { min-height: calc(100svh - var(--nav-height)); }

/* =========================================================
   7. Hero
   ========================================================= */
.hero {
  position: relative;
  width: 100%;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero__media,
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__media img {
  animation: hero-kenburns 20s linear infinite alternate;
}
@keyframes hero-kenburns {
  from { transform: scale(1); }
  to   { transform: scale(1.05); }
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 34, 53, 0.8) 0%, rgba(15, 34, 53, 0.55) 100%);
}
.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--color-white);
  padding-block: var(--s-16);
}
.hero__eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--s-4);
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-hero);
  line-height: var(--lh-hero);
  color: var(--color-white);
  margin-bottom: var(--s-6);
  letter-spacing: var(--ls-hero);
  text-transform: none;
}
.hero__sub {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
  letter-spacing: var(--ls-lead);
  color: rgba(255, 255, 255, 0.92);
  max-width: 720px;
  margin: 0 auto var(--s-8);
}
.hero__cta { font-size: var(--fs-body); padding: 16px 32px; }

.section-hero { padding-block: 0; }

/* =========================================================
   8. Reveal-on-scroll base (full implementation in Task 12)
   ========================================================= */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* No-JS fallback: keep content visible if JS fails to run */
.no-js .reveal {
  opacity: 1;
  transform: none;
}
.hero__content .reveal:nth-child(1) { transition-delay: 0ms; }
.hero__content .reveal:nth-child(2) { transition-delay: 100ms; }
.hero__content .reveal:nth-child(3) { transition-delay: 200ms; }
.hero__content .reveal:nth-child(4) { transition-delay: 300ms; }

/* =========================================================
   9. About
   ========================================================= */
.section-about { background: var(--color-white); }
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-16);
  align-items: center;
}
.about__media {
  border-radius: var(--r-large);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--color-bg-soft);
  aspect-ratio: 4 / 3;
}
.about__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about__title {
  font-size: var(--fs-section);
  line-height: var(--lh-section);
  letter-spacing: var(--ls-section);
  font-weight: 600;
  margin-bottom: var(--s-6);
}
.about__body {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  color: var(--color-text-secondary);
  margin-bottom: var(--s-4);
}
.about__body:last-of-type { margin-bottom: var(--s-8); }
.about__stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: var(--s-8);
  padding-top: var(--s-6);
  border-top: 1px solid var(--color-border);
}
.about__stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-subhead);
  font-weight: 600;
  color: var(--color-accent);
  line-height: var(--lh-subhead);
  letter-spacing: var(--ls-subhead);
  text-transform: none;
  margin-bottom: var(--s-2);
}
.about__stat-label {
  display: block;
  font-family: var(--font-body);
  font-size: var(--fs-caption);
  font-weight: 500;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

/* Mobile */
@media (max-width: 767px) {
  .site-nav__toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 12px 10px;
    cursor: pointer;
  }
  .site-nav__toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--color-navy);
    border-radius: 1px;
    transition: transform var(--dur-base) var(--ease), opacity var(--dur-fast) var(--ease);
  }
  .site-nav__toggle-input:checked ~ .site-nav__toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .site-nav__toggle-input:checked ~ .site-nav__toggle span:nth-child(2) { opacity: 0; }
  .site-nav__toggle-input:checked ~ .site-nav__toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-nav__menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--color-white);
    border-top: 1px solid var(--color-border);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--dur-slow) var(--ease);
  }
  .site-nav__toggle-input:checked ~ .site-nav__menu { max-height: 480px; }
  .site-nav__list {
    flex-direction: column;
    gap: 0;
    padding: var(--s-4) 0;
  }
  .site-nav__list li { border-bottom: 1px solid var(--color-border); }
  .site-nav__list li:last-child { border-bottom: 0; }
  .site-nav__link {
    display: block;
    padding: var(--s-4) var(--gutter);
    font-size: var(--fs-16);
  }
  .about { grid-template-columns: 1fr; gap: var(--s-8); }
  .about__stats { grid-template-columns: 1fr 1fr; gap: var(--s-4); }
  .about__stat-num { font-size: var(--fs-24); }

  /* Section spacing: tighter on mobile but still generous */
  section { padding-block: var(--s-16); } /* 64px */
}

/* =========================================================
   10. Services
   ========================================================= */
.section-services { background: var(--color-bg-soft); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-6);
}
.service-card {
  background: var(--color-white);
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.service-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-bg-soft);
}
.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}
.service-card:hover .service-card__media img { transform: scale(1.04); }
.service-card__title {
  font-family: var(--font-display);
  font-size: var(--fs-subhead);
  font-weight: 600;
  line-height: var(--lh-subhead);
  letter-spacing: var(--ls-subhead);
  color: var(--color-primary);
  text-transform: none;
  margin: var(--s-6) var(--s-6) var(--s-2);
}
.service-card__desc {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  color: var(--color-text-secondary);
  margin: 0 var(--s-6) var(--s-6);
  flex-grow: 1;
}
.service-card__badge-wrap {
  margin: 0 var(--s-6) var(--s-2);
}
.service-card__badge {
  display: inline-block;
  font-size: var(--fs-caption);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  color: var(--color-accent);
  background: var(--color-accent-soft);
  padding: 4px 10px;
  border-radius: var(--r-full);
}

@media (max-width: 1023px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   11. Coach
   ========================================================= */
.section-coach { padding-block: var(--section-padding); background: var(--color-bg-soft); }
.coach {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: stretch;
  min-height: 500px;
  border-radius: var(--r-large);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(27, 58, 86, 0.14), 0 2px 8px rgba(27, 58, 86, 0.08);
  background: var(--color-white);
}
.coach__media {
  position: relative;
  overflow: hidden;
  background: var(--color-bg-soft);
}
.coach__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.coach__copy {
  display: flex;
  align-items: center;
  background: var(--color-white);
  padding-block: var(--s-12);
  padding-inline: var(--s-12);
}
.coach__copy-inner {
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
}
.coach__title {
  font-size: var(--fs-section);
  line-height: var(--lh-section);
  letter-spacing: var(--ls-section);
  font-weight: 600;
  margin-bottom: var(--s-6);
  text-align: left;
}
.coach__body {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  color: var(--color-text-secondary);
  margin-bottom: var(--s-4);
}
.coach__body:last-of-type { margin-bottom: var(--s-8); }
.coach__stats {
  display: flex;
  gap: var(--s-12);
  padding-top: var(--s-6);
  border-top: 1px solid var(--color-border);
}
.coach__stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-subhead);
  font-weight: 600;
  color: var(--color-accent);
  line-height: var(--lh-subhead);
  letter-spacing: var(--ls-subhead);
  text-transform: none;
  margin-bottom: var(--s-2);
}
.coach__stat-label {
  display: block;
  font-family: var(--font-body);
  font-size: var(--fs-caption);
  font-weight: 500;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

@media (max-width: 1023px) {
  .coach { grid-template-columns: 1fr; min-height: auto; }
  .coach__media { aspect-ratio: 4 / 3; }
  .coach__copy { padding-block: var(--s-12); padding-inline: var(--s-6); }
}

/* =========================================================
   12. Studio (masonry) + Lightbox
   ========================================================= */
.section-studio { background: var(--color-white); }
.studio-grid {
  column-count: 3;
  column-gap: var(--s-4);
}
.studio-grid__item {
  display: inline-block;
  width: 100%;
  break-inside: avoid;
  margin-bottom: var(--s-4);
}
.studio-tile {
  display: block;
  width: 100%;
  padding: 0;
  border-radius: var(--r-card);
  overflow: hidden;
  cursor: zoom-in;
  background: transparent;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  -webkit-mask-image: -webkit-radial-gradient(white, white);
  isolation: isolate;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  position: relative;
}
.studio-tile img,
.studio-tile video {
  width: 100%;
  height: auto;
  display: block;
  -webkit-transform: scale(1) translate3d(0, 0, 0);
  transform: scale(1) translate3d(0, 0, 0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
}
.studio-tile__play-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  transform: translate3d(0, 0, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.15);
  color: var(--color-white);
  transition: background-color var(--dur-fast) var(--ease);
}
.studio-tile:hover .studio-tile__play-overlay {
  background: rgba(0, 0, 0, 0.35);
}
.studio-tile__play-overlay svg {
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
  transition: transform var(--dur-fast) var(--ease);
}
.studio-tile:hover .studio-tile__play-overlay svg {
  transform: scale(1.1);
}

#gallery-videos .studio-tile {
  max-width: 430px;
  margin-inline: auto;
}
#gallery-videos .studio-tile img {
  aspect-ratio: 430 / 245;
  object-fit: cover;
}

@media (max-width: 1023px) {
  .studio-grid { column-count: 2; }
}
@media (max-width: 480px) {
  .studio-grid { column-count: 1; }
}

/* Lightbox — base layout kept; display/opacity only when NOT hidden.
   Using display: flex on the base rule would override the [hidden] attribute's
   user-agent display: none, leaving an invisible-but-click-blocking overlay. */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-lightbox);
  background: rgba(27, 58, 86, 0.92);
  padding: var(--s-6);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease);
}
.lightbox:not([hidden]) {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}
.lightbox__img,
.lightbox__video {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: var(--r-card);
  box-shadow: var(--shadow-lg);
  transform: scale(0.95);
  transition: transform var(--dur-base) var(--ease);
}
.lightbox__video {
  width: 80vw;
  max-width: 960px;
  height: auto;
  max-height: 80vh;
  outline: none;
  object-fit: contain;
}
@media (max-width: 767px) {
  .lightbox__video {
    width: 90vw;
    max-height: 85vh;
  }
}
.lightbox:not([hidden]) .lightbox__img,
.lightbox:not([hidden]) .lightbox__video { transform: scale(1); }
.lightbox__close {
  position: absolute;
  top: var(--s-4);
  right: var(--s-4);
  width: 48px;
  height: 48px;
  font-size: 32px;
  line-height: 1;
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--dur-fast) var(--ease);
}
.lightbox__close:hover { background: rgba(255, 255, 255, 0.2); }

/* =========================================================
   14. Contact — left column is a form, right column is map + details.
   Both grid items stretch to the same height via align-items: stretch,
   keeping the page visually balanced regardless of which side is taller.
   ========================================================= */
.section-contact { background: var(--color-white); }
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-16);
  align-items: stretch;
}
.contact__form-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0; /* allow inputs to shrink inside grid */
}
.contact__title {
  font-size: var(--fs-section);
  line-height: var(--lh-section);
  letter-spacing: var(--ls-section);
  font-weight: 600;
  text-align: left;
  margin-bottom: var(--s-4);
}
.contact__lede {
  font-size: var(--fs-lead);
  font-weight: 400;
  line-height: var(--lh-lead);
  letter-spacing: var(--ls-lead);
  color: var(--color-text-secondary);
  margin-bottom: var(--s-8);
  max-width: 480px;
}

/* Form */
.contact__form {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  flex: 1; /* fill the column height so submit can pin to bottom if needed */
}
.contact__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
  min-width: 0;
}
.contact__field {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  min-width: 0;
}
.contact__field--grow { flex: 1; }
.contact__field-label {
  font-family: var(--font-body);
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--color-text-subtle);
}
.contact__form input,
.contact__form select,
.contact__form textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  color: var(--color-primary);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--r-card);
  transition:
    border-color var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease);
  /* shrink inside flex item */
  min-width: 0;
}
.contact__form select {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%231b3a56' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.contact__form select:invalid {
  color: var(--color-text-subtle);
}
.contact__form input::placeholder,
.contact__form textarea::placeholder {
  color: var(--color-text-subtle);
  opacity: 1;
}
.contact__form input:focus,
.contact__form select:focus,
.contact__form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-soft);
}
.contact__form textarea {
  resize: vertical;
  min-height: 110px;
  font-family: var(--font-body);
  line-height: var(--lh-body);
}
.contact__submit {
  align-self: flex-start;
  margin-top: var(--s-2);
}

/* Right column: map on top, details below */
.contact__aside {
  display: flex;
  flex-direction: column;
  gap: var(--s-6);
  min-width: 0;
}
.contact__map {
  border-radius: var(--r-large);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 16 / 9; /* reduced height — wider/shorter map */
  background: var(--color-bg-soft);
  flex-shrink: 0;
}
.contact__map iframe {
  width: 100%;
  height: 100%;
  display: block;
}

.contact__list {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  flex: 1;
}
.contact__item {
  display: flex;
  align-items: flex-start;
  gap: var(--s-4);
}
.contact__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--r-full);
  background: var(--color-accent-soft);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact__label {
  display: block;
  font-family: var(--font-body);
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--color-text-subtle);
  margin-bottom: var(--s-1);
}
.contact__value {
  display: block;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  color: var(--color-primary);
  line-height: var(--lh-lead);
  letter-spacing: var(--ls-body);
}
.contact__link {
  transition: color var(--dur-fast) var(--ease);
}
.contact__link:hover { color: var(--color-accent); }

@media (max-width: 1023px) {
  .contact { grid-template-columns: 1fr; gap: var(--s-8); }
  .contact__map { aspect-ratio: 4 / 3; }
  .contact__form { flex: 0 0 auto; }
  .contact__list { flex: 0 0 auto; }
  /* On narrow screens, the Name/Phone row stacks so inputs don't get cramped */
  .contact__row { grid-template-columns: 1fr; }
}

/* =========================================================
   13. FAQ (accordion)
   ========================================================= */
/* Narrow container variant for FAQ */
.container--narrow { max-width: 800px; }

.section-faq { background: var(--color-bg-soft); }
.faq {
  margin-top: var(--s-8);
}
.faq__item {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-white);
}
.faq__item:first-child { border-top: 1px solid var(--color-border); }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-6);
  text-align: left;
  font-family: var(--font-display);
  font-size: var(--fs-subhead);
  font-weight: 600;
  line-height: var(--lh-subhead);
  letter-spacing: var(--ls-subhead);
  text-transform: none;
  color: var(--color-primary);
  cursor: pointer;
  min-height: 64px;
  transition: color var(--dur-fast) var(--ease);
}
.faq__q:hover { color: var(--color-accent); }
.faq__chev {
  flex-shrink: 0;
  transition: transform var(--dur-base) var(--ease);
  color: var(--color-accent);
}
.faq__q[aria-expanded="true"] .faq__chev { transform: rotate(180deg); }
.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-slow) var(--ease);
}
/* No-JS fallback: open the first item so content is visible without JS */
.no-js .faq__q[aria-expanded="true"] + .faq__a {
  max-height: 800px;
}
.faq__a > p {
  padding: 0 var(--s-6) var(--s-6);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  color: var(--color-text-secondary);
}

/* =========================================================
   15. Footer
   ========================================================= */
.site-footer {
  background: var(--color-primary);
  color: var(--color-white);
}
.site-footer__top {
  padding-block: var(--s-12) var(--s-8);
}
.site-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center; /* Center logo and tagline horizontally on mobile */
  gap: var(--s-3);
  text-align: center;
}
@media (min-width: 768px) {
  .site-footer__brand {
    display: grid;
    grid-template-columns: 280px 1fr 1fr; /* 3 columns grid */
    align-items: center; /* Vertically center all columns (logo and tagline) */
    width: 100%;
    gap: var(--s-8);
  }
}
.site-footer__logo {
  width: clamp(180px, 60vw, 280px);
  height: auto;
  /* invert for visibility on navy */
  filter: brightness(0) invert(1);
  flex-shrink: 0;
}
.site-footer__tag {
  font-family: var(--font-display);
  font-weight: 800; /* Extra bold tagline */
  line-height: var(--lh-body);
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  white-space: nowrap; /* Forces display in a single line */
  text-align: center;
}
@media (max-width: 767px) {
  /* English mobile tagline font size (matches the logo width) */
  html:lang(en) .site-footer__tag {
    font-size: clamp(12px, 3.9vw, 18px);
  }

  /* Chinese mobile tagline font size (matches the logo width) */
  html:lang(zh-Hans) .site-footer__tag {
    font-size: clamp(22px, 7.2vw, 35px);
    letter-spacing: 0.05em; /* Balanced spacing for Chinese text */
  }
}
@media (min-width: 768px) {
  .site-footer__tag {
    grid-column: 2 / 4; /* Occupies the 2nd and 3rd columns */
    text-align: center; /* Horizontally center text inside the paragraph */
    font-size: clamp(1.5rem, calc(5.5vw - 18px), 3.6rem); /* Fluid font size to occupy as much space as possible without wrapping */
    font-weight: 800; /* Extra bold tagline */
    letter-spacing: -0.03em; /* Sleek tracking for display text */
    color: var(--color-white);
    line-height: 1; /* Tight line height for perfect vertical centering */
    align-self: center; /* Vertically center the tagline inside the grid cell */
    margin: 0;
  }
  html:lang(zh-Hans) .site-footer__tag {
    letter-spacing: 0.1em; /* Elegant letter spacing for Chinese display text */
  }
}
.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: var(--s-2);
}
.site-footer__legal {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.site-footer__copy {
  font-size: var(--fs-12);
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
  text-align: center;
  line-height: var(--lh-caption);
}
.site-footer__copy a {
  color: inherit;
  font-weight: inherit;
  text-decoration: none;
  border-bottom: none;
  transition: color var(--dur-fast) var(--ease);
}
.site-footer__copy a:hover {
  color: var(--color-accent);
}

/* =========================================================
   16. Floating widgets
   ========================================================= */
.floating-wechat {
  position: fixed;
  right: var(--s-6);
  bottom: var(--s-6);
  z-index: var(--z-floating);
}
@media (max-width: 767px) {
  .floating-wechat { right: var(--s-4); bottom: var(--s-4); }
}
.floating-wechat__btn {
  width: 48px;
  height: 48px;
  border-radius: var(--r-full);
  background: var(--color-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(27, 58, 86, 0.25);
  transition: transform var(--dur-base) var(--ease), background-color var(--dur-fast) var(--ease);
}
.floating-wechat__btn:hover {
  background: #12283c;
  transform: scale(1.05);
}

.floating-wechat__popup {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  width: 192px;
  background: var(--color-white);
  border-radius: var(--r-large);
  box-shadow: var(--shadow-lg);
  padding: var(--s-4);
  text-align: center;
  transform: scale(0.95) translateY(8px);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
  pointer-events: none;
  transform-origin: bottom right;
}
.floating-wechat__popup:not([hidden]) {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}
.floating-wechat__title {
  font-size: var(--fs-14);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--s-3);
}
.floating-wechat__qr {
  display: flex;
  justify-content: center;
}
.floating-wechat__qr svg,
.floating-wechat__qr img {
  display: block;
}
.floating-wechat__close {
  position: absolute;
  top: 4px;
  right: 8px;
  width: 28px;
  height: 28px;
  font-size: 22px;
  line-height: 1;
  color: var(--color-text-subtle);
  border-radius: var(--r-full);
}
.floating-wechat__close:hover { color: var(--color-primary); background: var(--color-bg-soft); }

/* =========================================================
   17. Active nav link
   ========================================================= */
.site-nav__link.is-active { color: var(--color-accent); }
.site-nav__link.is-active::after { width: 100%; background: var(--color-accent); }

/* =========================================================
   18. Floating widgets — Apple-style typography
   ========================================================= */
.floating-wechat__title {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  color: var(--color-primary);
  margin-bottom: var(--s-3);
}
.floating-wechat__id {
  font-family: var(--font-body);
  font-size: var(--fs-caption);
  font-weight: 400;
  line-height: var(--lh-caption);
  letter-spacing: var(--ls-caption);
  color: var(--color-text-secondary);
}
.floating-wechat__id strong {
  color: var(--color-primary);
  font-weight: 600;
}

/* =========================================================
   19. Instagram floating widget
   ========================================================= */
.floating-instagram {
  position: fixed;
  right: var(--s-6);
  bottom: calc(var(--s-6) + 48px + 12px);
  z-index: var(--z-floating);
}
@media (max-width: 767px) {
  .floating-instagram {
    right: var(--s-4);
    bottom: calc(var(--s-4) + 48px + 12px);
  }
}
.floating-instagram__btn {
  width: 48px;
  height: 48px;
  border-radius: var(--r-full);
  background: var(--color-accent);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(227, 98, 37, 0.25);
  transition: transform var(--dur-base) var(--ease), background-color var(--dur-fast) var(--ease);
}
.floating-instagram__btn:hover {
  background: #c24d1a;
  transform: scale(1.05);
}
.floating-instagram__popup {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  width: 192px;
  background: var(--color-white);
  border-radius: var(--r-large);
  box-shadow: var(--shadow-lg);
  padding: var(--s-4);
  text-align: center;
  transform: scale(0.95) translateY(8px);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
  pointer-events: none;
  transform-origin: bottom right;
}
.floating-instagram__popup:not([hidden]) {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}
.floating-instagram__title {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  color: var(--color-primary);
  margin-bottom: var(--s-3);
}
.floating-instagram__qr {
  margin-inline: auto;
  width: 160px;
  height: 160px;
  background: var(--color-bg-soft);
  border-radius: var(--r-medium);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.floating-instagram__qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.floating-instagram__close {
  position: absolute;
  top: 4px;
  right: 8px;
  width: 28px;
  height: 28px;
  font-size: 22px;
  line-height: 1;
  color: var(--color-text-subtle);
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.floating-instagram__close:hover {
  color: var(--color-accent);
  background: var(--color-bg-soft);
}
.floating-instagram__id {
  font-family: var(--font-body);
  font-size: var(--fs-caption);
  font-weight: 400;
  line-height: var(--lh-caption);
  letter-spacing: var(--ls-caption);
  color: var(--color-text-secondary);
}
.floating-instagram__id strong {
  color: var(--color-primary);
  font-weight: 600;
}

/* =========================================================
   20. Language Switcher (Segmented Switch)
   ========================================================= */
.lang-switcher {
  display: flex;
  align-items: center;
  margin-left: var(--s-4);
  flex-shrink: 0;
}

.lang-switcher__switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 96px;
  height: 32px;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  padding: 2px;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: border-color var(--dur-fast) var(--ease);
}

.lang-switcher__option {
  position: relative;
  z-index: 2;
  width: 50%;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-text-secondary);
  transition: color var(--dur-base) var(--ease);
  line-height: 26px;
}

.lang-switcher__option.is-active {
  color: var(--color-white);
}

/* Sliding active background indicator */
.lang-switcher__bg {
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 2px;
  width: 44px; /* (96px width - 2px*2 padding - 1px*2 border) / 2 = 44px */
  background: var(--color-accent); /* Brand Orange #e36225 */
  border-radius: 100px;
  box-shadow: 0 2px 4px rgba(227, 98, 37, 0.3);
  transition: transform var(--dur-base) var(--ease);
  z-index: 1;
}

/* English page position */
.lang-switcher__switch--en .lang-switcher__bg {
  transform: translateX(0);
}

/* Chinese page position */
.lang-switcher__switch--zh .lang-switcher__bg {
  transform: translateX(44px);
}

/* Hover styles */
.lang-switcher__switch:hover {
  border-color: var(--color-accent);
}
.lang-switcher__switch:hover .lang-switcher__option:not(.is-active) {
  color: var(--color-primary);
}

@media (max-width: 899px) {
  /*
   * Mobile nav row: [Logo] .............. [EN|中文] [☰]
   * Lang-switcher: margin-left auto creates the gap from logo to right-side group.
   * Toggle label (hamburger): order 1 makes it appear AFTER lang-switcher visually,
   * even though it is earlier in the DOM.
   */
  .site-nav__toggle { order: 1; }
  .lang-switcher { order: 0; margin-left: auto; margin-right: 0; }
}

/* =========================================================
   21. Form Validation & Submission Feedback
   ========================================================= */
.contact__field input.has-error,
.contact__field select.has-error,
.contact__field textarea.has-error {
  border-color: #ef4444 !important;
  outline: none;
  box-shadow: 0 0 0 1px #ef4444 !important;
}
.contact__field-error {
  display: block;
  font-size: var(--fs-caption);
  color: #ef4444;
  margin-top: 4px;
}
.contact__submit.is-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}
.contact__submit.is-loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  border: 3px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: button-loading-spinner 1s ease infinite;
}
@keyframes button-loading-spinner {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Toast Notification */
.toast-notification {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--color-primary);
  color: var(--color-white);
  padding: 12px 24px;
  border-radius: var(--r-medium);
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}
.toast-notification.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.toast-notification--success {
  border-left: 4px solid var(--color-accent);
}
.toast-notification--error {
  border-left: 4px solid #ef4444;
}




