/* June / June Ko Studio — airy OMI-inspired layout, June brand only */
:root {
  --cream: #f6efe5;
  --cream-light: #fffaf3;
  --oat: #e9d8c8;
  --peach: #e8c9b5;
  --sage: #b7c2ae;
  --forest: #3a4a42;
  --coral: #9a5b45;
  --coral-deep: #7a4534;
  --ink: #2a241f;
  --ink-soft: #645a51;
  --line: rgba(42, 36, 31, 0.14);
  --white: #fffcf7;
  --shadow: 0 18px 50px rgba(42, 36, 31, 0.07);
  --shadow-sm: 0 6px 20px rgba(42, 36, 31, 0.05);
  --max: 1120px;
  --max-wide: 1240px;
  --nav-h: 72px;
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Noto Sans TC", Inter, "Avenir Next", "Helvetica Neue", system-ui, sans-serif;
  --radius: 18px;
  --radius-sm: 12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  background: var(--cream);
}

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

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

.skip-link {
  position: fixed; top: 1rem; left: 1rem; z-index: 300;
  background: var(--cream-light); border-radius: 999px;
  padding: 0.7rem 1rem; transform: translateY(-180%);
  transition: transform 0.18s; font-weight: 600; font-size: 0.88rem;
}
.skip-link:focus { transform: translateY(0); outline: 3px solid #f1bf79; outline-offset: 4px; }

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}
.container-wide {
  width: min(100% - 2.5rem, var(--max-wide));
  margin-inline: auto;
}

.eyebrow {
  letter-spacing: 0.19em;
  text-transform: uppercase;
  margin: 0 0 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--coral);
}

h1, h2, h3, .serif {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.05;
}

h1 {
  font-size: clamp(2.75rem, 7vw, 4.6rem);
  letter-spacing: -0.045em;
  line-height: 0.98;
  margin-bottom: 1.25rem;
}

h2 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  letter-spacing: -0.04em;
  margin-bottom: 1.1rem;
  line-height: 1.02;
}

h3 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); letter-spacing: -0.02em; }

.lead {
  font-size: clamp(1.02rem, 1.5vw, 1.15rem);
  color: var(--ink-soft);
  max-width: 38rem;
  line-height: 1.7;
}

.section { padding: 5.5rem 0; }
.section-alt { background: var(--cream-light); }
.section-head { margin-bottom: 2.75rem; max-width: 40rem; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head.center .lead { margin-inline: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.45rem; border-radius: 999px; font-weight: 600; font-size: 0.92rem;
  transition: transform 0.15s, background 0.15s, color 0.15s, box-shadow 0.15s;
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--coral); color: #fffaf5;
  box-shadow: 0 10px 28px rgba(154, 91, 69, 0.28);
}
.btn-primary:hover { background: var(--coral-deep); }
.btn-ghost {
  background: transparent; border-color: var(--line); color: var(--ink);
}
.btn-ghost:hover { background: var(--white); }
.btn-wa {
  background: #25d366; color: #fff; font-weight: 700;
}
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.text-link {
  color: var(--coral); font-weight: 600; font-size: 0.92rem;
  border-bottom: 1px solid transparent;
}
.text-link:hover { border-bottom-color: var(--coral); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246, 239, 229, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  height: var(--nav-h);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-h); gap: 1rem;
}
.nav-logo img { width: 76px; height: auto; }
.nav-links {
  display: none; gap: 1.15rem; align-items: center;
  font-size: 0.86rem; font-weight: 600; color: var(--ink-soft);
}
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 0.65rem; }
.lang-toggle {
  display: inline-flex; border: 1px solid var(--line); border-radius: 999px;
  overflow: hidden; background: var(--white);
}
.lang-toggle button {
  padding: 0.4rem 0.7rem; font-size: 0.78rem; font-weight: 700;
  color: var(--ink-soft);
}
.lang-toggle button[aria-pressed="true"] {
  background: var(--ink); color: var(--cream-light);
}
.nav-cta { padding: 0.55rem 1rem; font-size: 0.82rem; }
.menu-btn {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line); display: grid; place-items: center;
  background: var(--white);
}
.menu-btn span,
.menu-btn span::before,
.menu-btn span::after {
  display: block; width: 16px; height: 1.5px; background: var(--ink);
  position: relative; transition: 0.2s;
}
.menu-btn span::before,
.menu-btn span::after {
  content: ""; position: absolute; left: 0;
}
.menu-btn span::before { top: -5px; }
.menu-btn span::after { top: 5px; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 99;
  background: var(--cream-light); border-bottom: 1px solid var(--line);
  padding: 1.25rem 1.5rem 1.75rem; display: grid; gap: 0.85rem;
  box-shadow: var(--shadow);
}
.mobile-menu[hidden] { display: none !important; }
.mobile-menu a { font-weight: 600; font-size: 1.05rem; padding: 0.35rem 0; }

/* Mobile / tablet: sticky logo row + horizontal scrollable nav bar */
@media (max-width: 979px) {
  :root { --nav-h: 110px; }

  .nav {
    height: auto;
  }
  .nav-inner {
    height: auto;
    min-height: 64px;
    flex-wrap: wrap;
    row-gap: 0;
    align-items: center;
    padding-top: 0.35rem;
  }
  .nav-actions {
    margin-left: auto;
  }
  .nav-links {
    display: flex;
    order: 3;
    flex: 1 0 100%;
    width: 100%;
    gap: 1.05rem;
    align-items: center;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    font-size: 0.82rem;
    white-space: nowrap;
    padding: 0.45rem 0 0.75rem;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a {
    flex-shrink: 0;
    padding: 0.2rem 0;
  }
  /* Links always visible — hide hamburger / overlay entirely */
  .menu-btn { display: none !important; }
  .mobile-menu { display: none !important; }
}

@media (min-width: 980px) {
  .nav-links { display: flex; }
  .menu-btn { display: none !important; }
  .mobile-menu { display: none !important; }
}

/* Hero with 4-image masonry */
.hero { padding: 3.5rem 0 4rem; }
.hero-grid {
  display: grid; gap: 2.5rem; align-items: center;
}
.hero-loc {
  letter-spacing: 0.16em; text-transform: uppercase;
  font-size: 0.72rem; font-weight: 700; color: var(--coral); margin-bottom: 1rem;
}
.hero-sub { margin-top: 0.85rem; color: var(--ink-soft); font-size: 0.95rem; }
/* Mobile-only typography images; desktop keeps live .hero-copy-text */
.hero-copy-img {
  display: none;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
}
.hero-gallery {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  grid-template-rows: auto auto;
  gap: 0.65rem;
  min-height: 0;
}
.hero-gallery figure {
  margin: 0; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); background: var(--oat);
  position: relative;
  aspect-ratio: 3 / 4;
  min-height: 160px;
}
.hero-gallery figure:first-child {
  grid-row: 1 / span 2;
  aspect-ratio: auto;
  height: 100%;
  min-height: 280px;
}
.hero-gallery figure.hero-wide {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
  min-height: 180px;
}
.hero-gallery img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  max-width: none;
  object-fit: cover;
  display: block;
}
.hero-badge {
  position: absolute; left: 1rem; bottom: 1rem; z-index: 2;
  background: rgba(255, 252, 247, 0.92); backdrop-filter: blur(8px);
  border-radius: 14px; padding: 0.75rem 1rem; box-shadow: var(--shadow-sm);
}
.hero-badge strong { display: block; font-family: var(--serif); font-size: 1.15rem; }
.hero-badge span { font-size: 0.78rem; color: var(--ink-soft); }

/* Desktop / tablet ≥769: live HTML hero text; hide typography images */
@media (min-width: 769px) {
  .hero-copy-img { display: none !important; }
  .hero-copy-text { display: block; }
}

/* Wider phones / landscape: same layover as desktop (copy | masonry) */
@media (min-width: 640px) {
  .hero-grid {
    grid-template-columns: 0.92fr 1.08fr;
    gap: 1.75rem;
    align-items: center;
  }
  .hero-gallery figure:first-child { min-height: 320px; }
  .hero-copy h1 { font-size: clamp(2.1rem, 4.8vw, 3.1rem); }
  .hero-copy .lead { font-size: 0.98rem; }
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 0.95fr 1.05fr; gap: 3rem;
  }
  .hero-gallery figure:first-child { min-height: 480px; }
  .hero-copy h1 { font-size: clamp(2.8rem, 5vw, 4.2rem); }
  .hero-copy .lead { font-size: 1.12rem; }
}

/* Short landscape: keep two-column layover compact so masonry stays in view */
@media (min-width: 640px) and (max-height: 520px) and (orientation: landscape) {
  .hero { padding: 1.25rem 0 1.75rem; }
  .hero-grid { gap: 1.25rem; align-items: start; }
  .hero-gallery figure { min-height: 110px; }
  .hero-gallery figure:first-child { min-height: 200px; }
  .hero-gallery figure.hero-wide { min-height: 100px; aspect-ratio: 21 / 9; }
  .hero-badge { left: 0.55rem; bottom: 0.55rem; padding: 0.45rem 0.7rem; }
  .hero-badge strong { font-size: 0.95rem; }
  .hero-copy .btn-row { margin-top: 1rem; }
}

.banner {
  background: linear-gradient(120deg, #efe0d2, #f3e7db 40%, #e8d5c6);
  border-block: 1px solid var(--line);
  padding: 1.35rem 0;
}
.banner-inner {
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
}
.banner p { max-width: 46rem; color: var(--ink-soft); font-size: 0.95rem; }
.banner strong { display: block; color: var(--ink); margin-bottom: 0.25rem; font-size: 1rem; }

/* Paths / cards */
.paths-grid, .ttc-hub-grid, .payment-grid, .fact-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.path-card, .ttc-hub-card, .fact-card, .payment-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s, box-shadow 0.18s;
}
.path-card:hover, .ttc-hub-card:hover {
  transform: translateY(-3px); box-shadow: var(--shadow);
}
.path-card .eyebrow, .ttc-hub-card .eyebrow { margin-bottom: 0.65rem; }
.path-card p, .ttc-hub-card p, .fact-card p { color: var(--ink-soft); margin-top: 0.55rem; font-size: 0.94rem; }

.ttc-hub-card {
  display: flex; flex-direction: column; overflow: hidden; padding: 0;
}
.ttc-hub-card img {
  aspect-ratio: 4/3; object-fit: cover;
  width: 100%; height: auto;
  display: block;
}
.ttc-hub-card .ttc-hub-body { padding: 1.35rem 1.35rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.ttc-hub-card .text-link { margin-top: auto; padding-top: 1rem; }

/* Steps */
.steps {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.step {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem 1.25rem;
}
.step-num {
  font-family: var(--serif); font-size: 2rem; color: var(--coral);
  letter-spacing: -0.04em; margin-bottom: 0.65rem; line-height: 1;
}
.step p { color: var(--ink-soft); margin-top: 0.45rem; font-size: 0.94rem; }

/* About */
.about-layout {
  display: grid; gap: 2rem;
}
@media (min-width: 900px) {
  .about-layout { grid-template-columns: 1.05fr 0.95fr; align-items: start; }
}
.about-gallery {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 0.65rem;
  grid-template-rows: auto auto;
}
.about-gallery figure {
  margin: 0; border-radius: var(--radius); overflow: hidden;
  background: var(--oat); box-shadow: var(--shadow-sm);
  position: relative;
  aspect-ratio: 3 / 4;
  min-height: 140px;
}
.about-gallery figure:first-child {
  grid-row: span 2;
  aspect-ratio: auto;
  height: 100%;
  min-height: 260px;
}
.about-gallery img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  max-width: none;
  object-fit: cover;
  display: block;
}
.about-copy .lead { margin-bottom: 1.25rem; }
.cred-list { margin: 1.25rem 0; display: grid; gap: 0.45rem; }
.cred-list li {
  display: flex; gap: 0.55rem; align-items: flex-start;
  color: var(--ink-soft); font-size: 0.94rem;
}
.cred-list li::before {
  content: "•"; color: var(--coral); font-weight: 700; line-height: 1.4;
}
.cred-badge {
  display: inline-flex; align-items: center; gap: 0.75rem;
  margin: 1rem 0 1.5rem; padding: 0.65rem 0.85rem;
  background: var(--white); border: 1px solid var(--line); border-radius: 14px;
}
.cred-badge img { width: 48px; height: 48px; object-fit: contain; }
.payment-card .pay-num {
  font-family: var(--serif); font-size: 1.8rem; color: var(--coral); line-height: 1;
  margin-bottom: 0.4rem;
}
.payment-card h4 { font-family: var(--serif); font-size: 1.25rem; margin-bottom: 0.35rem; }
.payment-card p { color: var(--ink-soft); font-size: 0.9rem; margin: 0; }

/* Studios */
.studios-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.studio-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
}
.studio-card > img {
  width: 100%; height: auto;
  aspect-ratio: 16/11; object-fit: cover;
  display: block;
}
.studio-body { padding: 1.35rem 1.35rem 1.5rem; }
.studio-tag {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--coral);
  margin-bottom: 0.55rem;
}
.studio-tag.new { color: var(--forest); }
.studio-addr { color: var(--ink-soft); margin: 0.55rem 0 1rem; font-size: 0.94rem; }
.room-list { display: grid; gap: 0.4rem; margin-bottom: 1rem; }
.room-list li {
  display: flex; justify-content: space-between; gap: 1rem;
  font-size: 0.9rem; padding: 0.45rem 0; border-bottom: 1px solid var(--line);
}
.room { font-weight: 700; color: var(--ink); }
.studio-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Classes */
.classes-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
@media (min-width: 700px) {
  .classes-grid { grid-template-columns: repeat(3, 1fr); }
}
.class-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.class-card img {
  width: 100%; height: auto;
  aspect-ratio: 3/4; object-fit: cover;
  display: block;
}
.class-meta { padding: 1rem 1.05rem 1.2rem; }
.class-meta h3 { font-size: 1.2rem; margin-bottom: 0.35rem; }
.class-meta p { color: var(--ink-soft); font-size: 0.88rem; }

/* Training detail blocks */
.train-block {
  margin-top: 3.5rem; padding-top: 3rem;
  border-top: 1px solid var(--line);
}
.train-hero {
  display: grid; gap: 1.75rem; margin-bottom: 2rem;
}
@media (min-width: 860px) {
  .train-hero { grid-template-columns: 1.05fr 0.95fr; align-items: center; }
}
.train-hero-media {
  display: grid; gap: 0.65rem;
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-rows: auto auto;
}
.train-hero-media figure {
  margin: 0; border-radius: var(--radius); overflow: hidden;
  background: var(--oat); box-shadow: var(--shadow-sm);
  position: relative;
  aspect-ratio: 3 / 4;
  min-height: 120px;
}
.train-hero-media figure:first-child {
  grid-row: span 2;
  aspect-ratio: auto;
  height: 100%;
  min-height: 240px;
}
.train-hero-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  max-width: none;
  object-fit: cover;
  display: block;
}
.train-hero-copy .lead { margin-bottom: 1rem; }

.syllabus-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: 1.5rem 0 2rem;
}
.syllabus-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.25rem 1.2rem;
}
.syllabus-card .part {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--coral); margin-bottom: 0.5rem;
}
.syllabus-card ul { margin-top: 0.75rem; display: grid; gap: 0.35rem; }
.syllabus-card li {
  font-size: 0.9rem; color: var(--ink-soft);
  padding-left: 0.85rem; position: relative;
}
.syllabus-card li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--peach);
}

.grad-row {
  display: grid; gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin: 1.5rem 0;
}
.grad-row figure {
  margin: 0; border-radius: var(--radius-sm); overflow: hidden;
  background: var(--oat); box-shadow: var(--shadow-sm);
}
.grad-row img {
  width: 100%; height: auto;
  aspect-ratio: 1; object-fit: cover;
  display: block;
}

.review-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin: 1.5rem 0;
}
.review-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.35rem 1.25rem;
  box-shadow: var(--shadow-sm);
}
.review-card blockquote {
  font-family: var(--serif); font-size: 1.15rem; line-height: 1.45;
  color: var(--ink); margin-bottom: 0.85rem;
}
.review-card .review-meta { font-size: 0.85rem; color: var(--ink-soft); }

.mini-faq { margin: 1.5rem 0 0; display: grid; gap: 0.65rem; }


/* Contained photos (about aerial, hero banner) */
.media-frame {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--oat);
  position: relative;
}
.media-frame img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
.hero-banner {
  margin-top: 1rem;
}
.hero-banner .media-frame {
  max-height: none;
  aspect-ratio: 21 / 9;
  min-height: 160px;
}
.hero-banner .media-frame img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 30%;
}
.about-copy .media-frame {
  margin-top: 1.25rem;
  border-radius: 14px;
}
.about-copy .media-frame img {
  width: 100%; height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}

/* Workshops */
.workshop-grid {
  display: grid; gap: 1.15rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.workshop-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
}
.workshop-card img {
  width: 100%; height: auto;
  aspect-ratio: 1; object-fit: cover;
  display: block;
}
.workshop-card figcaption,
.workshop-caption {
  display: block;
  padding: 0.95rem 1.05rem 1.15rem;
  font-family: var(--serif); font-size: 1.15rem; line-height: 1.25;
  visibility: visible; opacity: 1;
}
.workshop-caption small {
  display: block; font-family: var(--sans); font-size: 0.78rem;
  color: var(--ink-soft); margin-top: 0.35rem; font-weight: 500;
}

/* Pricing */
.pack-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin-bottom: 2rem;
}
.pack-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem 1.1rem; text-align: center;
  box-shadow: var(--shadow-sm);
}
.pack-card.featured {
  background: var(--ink); color: var(--cream-light);
  border-color: var(--ink);
}
.pack-credits {
  font-family: var(--serif); font-size: 2.8rem; line-height: 1; letter-spacing: -0.04em;
}
.pack-label { font-size: 0.8rem; opacity: 0.75; margin: 0.25rem 0 0.75rem; }
.pack-price { font-weight: 700; font-size: 1.15rem; }
.pack-valid { font-size: 0.82rem; opacity: 0.7; margin-top: 0.35rem; }

.pricing-tabs {
  display: inline-flex; border: 1px solid var(--line); border-radius: 999px;
  overflow: hidden; margin-bottom: 1.25rem; background: var(--white);
}
.pricing-tabs button {
  padding: 0.65rem 1.15rem; font-size: 0.88rem; font-weight: 600;
  color: var(--ink-soft);
}
.pricing-tabs button[aria-selected="true"] {
  background: var(--coral); color: #fffaf5;
}
.table-wrap {
  overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); margin-bottom: 1.5rem;
}
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
th { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
tr:last-child td { border-bottom: 0; }

.credits-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-bottom: 1.25rem;
}
.credits-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.25rem;
}
.credits-card h4 { font-family: var(--serif); font-size: 1.25rem; margin-bottom: 0.85rem; }
.credits-card li {
  display: flex; justify-content: space-between; padding: 0.45rem 0;
  border-bottom: 1px solid var(--line); font-size: 0.92rem;
}
.credits-card li:last-child { border-bottom: 0; }
.credit { font-weight: 700; color: var(--coral); }
.note { color: var(--ink-soft); font-size: 0.88rem; margin: 1rem 0 1.5rem; }
.pricing-imgs {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.pricing-imgs figure {
  margin: 0; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--white);
}
.pricing-imgs img {
  width: 100%;
  height: auto;
  max-height: min(70vh, 560px);
  object-fit: contain;
  object-position: center top;
  display: block;
  background: var(--cream-light);
}
.pricing-imgs figcaption {
  padding: 0.75rem 1rem; font-size: 0.85rem; color: var(--ink-soft);
}

.pricing-zoom {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: var(--cream-light);
  cursor: zoom-in;
  position: relative;
  text-align: left;
  font: inherit;
  color: inherit;
}
.pricing-zoom img {
  width: 100%;
  height: auto;
  max-height: min(70vh, 560px);
  object-fit: contain;
  object-position: center top;
  display: block;
  pointer-events: none;
}
.pricing-zoom-hint {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(46, 36, 28, 0.78);
  color: #fff;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  pointer-events: none;
  opacity: 0.95;
}
.pricing-zoom:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}
.pricing-zoom:hover .pricing-zoom-hint,
.pricing-zoom:focus-visible .pricing-zoom-hint {
  background: rgba(46, 36, 28, 0.92);
}

body.lightbox-open { overflow: hidden; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.lightbox[hidden] { display: none !important; }
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(20, 14, 10, 0.82);
  cursor: pointer;
}
.lightbox-panel {
  position: relative;
  z-index: 1;
  max-width: min(96vw, 720px);
  max-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-img {
  max-width: 100%;
  max-height: 92vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
  background: var(--cream-light);
}
.lightbox-close {
  position: absolute;
  top: -0.35rem;
  right: -0.35rem;
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 0;
  background: #fff;
  color: #2e241c;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}
.lightbox-close:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}

/* Instructors */
.instructors-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}
@media (min-width: 900px) {
  .instructors-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1100px) {
  .instructors-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.instructor-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
}
.instructor-card img {
  width: 100%; height: auto;
  /* Match designed 9:16 portrait cards so overlays are not cropped */
  aspect-ratio: 9 / 16; object-fit: cover; object-position: center top;
  display: block;
}
.instructor-body { padding: 1rem 1.05rem 1.2rem; }
.instructor-role { font-size: 0.78rem; font-weight: 700; color: var(--coral); margin: 0.2rem 0 0.45rem; }
.instructor-skills { font-size: 0.82rem; color: var(--ink-soft); line-height: 1.45; }

/* FAQ */
.faq-list { max-width: 760px; margin-inline: auto; display: grid; gap: 0.65rem; }
.faq-item {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-sm); overflow: hidden;
}
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center;
  justify-content: space-between; gap: 1rem; padding: 1.05rem 1.15rem;
  font-weight: 600;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q { display: flex; gap: 0.75rem; align-items: baseline; }
.faq-num {
  font-family: var(--serif); color: var(--coral); font-size: 1.1rem; flex-shrink: 0;
}
.faq-icon { font-size: 1.25rem; color: var(--ink-soft); transition: transform 0.2s; }
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-a {
  padding: 0 1.15rem 1.15rem 1.15rem; color: var(--ink-soft);
  font-size: 0.95rem; line-height: 1.65;
}

/* Book CTA */
.book-cta {
  text-align: center; padding: 3.5rem 1.5rem;
  background: linear-gradient(160deg, #efe2d4, #f7efe5 45%, #e8d8c8);
  border-radius: var(--radius); border: 1px solid var(--line);
}
.book-cta .lead { margin-inline: auto; }

/* Footer */
.footer {
  padding: 3.5rem 0 2rem; border-top: 1px solid var(--line);
  background: var(--cream-light); color: var(--ink-soft); font-size: 0.9rem;
}
.footer-grid {
  display: grid; gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: 2.5rem;
}
.footer h4 {
  font-family: var(--serif); font-size: 1.2rem; color: var(--ink); margin-bottom: 0.85rem;
}
.footer a:hover { color: var(--ink); }
.footer-brand img { width: 88px; margin-bottom: 0.85rem; }
.footer-copy {
  padding-top: 1.5rem; border-top: 1px solid var(--line);
  font-size: 0.82rem; display: flex; flex-wrap: wrap; gap: 0.75rem;
  justify-content: space-between;
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  .container,
  .container-wide {
    width: min(100% - 1.75rem, var(--max));
  }

  .section { padding: 4.25rem 0; }
  .section-head { margin-bottom: 2.25rem; }
  .hero { padding: 2.5rem 0 3.25rem; }

  h1 { font-size: clamp(2.35rem, 9vw, 3.4rem); margin-bottom: 1rem; }
  h2 { font-size: clamp(2rem, 7vw, 2.85rem); }
  h3 { font-size: clamp(1.25rem, 4.5vw, 1.55rem); }
  .lead { font-size: 1.02rem; max-width: none; }

  /* Nav: two-row sticky — logo/actions + scrollable links */
  :root { --nav-h: 104px; }
  .nav-logo img { width: 68px; }
  .nav-cta { padding: 0.5rem 0.85rem; font-size: 0.78rem; }
  .lang-toggle button { padding: 0.35rem 0.55rem; font-size: 0.72rem; }
  .nav-links { gap: 0.95rem; font-size: 0.8rem; padding: 0.4rem 0 0.7rem; }
  .menu-btn { display: none !important; }
  .mobile-menu { display: none !important; }

  .btn { padding: 0.8rem 1.3rem; }
  .btn-row { gap: 0.65rem; margin-top: 1.5rem; }

  .banner { padding: 1.2rem 0; }
  .banner-inner { gap: 0.85rem; align-items: flex-start; }
  .banner .btn { width: 100%; }

  /* ---- Hero: desktop-intent masonry, all 4 photos ---- */
  /* Swap live hero copy for lang-specific typography image on mobile */
  .hero-copy-text { display: none; }
  .hero-copy-img { display: none; }
  html[data-lang="zh"] .hero-copy-img--zh,
  html[lang="zh-Hant"] .hero-copy-img--zh { display: block; }
  html[data-lang="en"] .hero-copy-img--en,
  html:not([data-lang="zh"]):not([lang="zh-Hant"]) .hero-copy-img--en { display: block; }
  /* Full-bleed to viewport; image itself carries ~5–8% side padding */
  .hero-copy-img--zh,
  .hero-copy-img--en {
    width: calc(100% + 1.75rem);
    max-width: none;
    margin-left: -0.875rem;
    margin-right: -0.875rem;
  }
  .hero-copy .btn-row { margin-top: 1.15rem; }
  .hero-grid { gap: 2rem; }
  .hero-gallery {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    grid-template-rows: auto auto auto;
    gap: 0.55rem;
    min-height: 0;
  }
  .hero-gallery figure {
    margin: 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: var(--oat);
    position: relative;
    aspect-ratio: 4 / 5;
    min-height: 150px;
    height: auto;
    grid-row: auto;
    grid-column: auto;
  }
  .hero-gallery figure:first-child {
    grid-row: 1 / span 2;
    grid-column: 1;
    aspect-ratio: auto;
    height: 100%;
    min-height: 280px;
    align-self: stretch;
  }
  .hero-gallery figure.hero-wide {
    grid-column: 1 / -1;
    grid-row: auto;
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 150px;
  }
  .hero-badge {
    left: 0.75rem; bottom: 0.75rem;
    padding: 0.65rem 0.85rem;
    border-radius: 12px;
  }
  .hero-badge strong { font-size: 1.05rem; }

  /* About gallery — same masonry idea */
  .about-layout { gap: 1.75rem; }
  .about-gallery {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    grid-template-rows: auto auto;
    gap: 0.55rem;
    min-height: 0;
  }
  .about-gallery figure {
    aspect-ratio: 4 / 5;
    min-height: 140px;
    height: auto;
    grid-row: auto;
    grid-column: auto;
  }
  .about-gallery figure:first-child {
    grid-row: 1 / span 2;
    grid-column: 1;
    aspect-ratio: auto;
    height: 100%;
    min-height: 260px;
    align-self: stretch;
  }

  /* Training media galleries */
  .train-block { margin-top: 2.75rem; padding-top: 2.5rem; }
  .train-hero { gap: 1.5rem; margin-bottom: 1.75rem; }
  .train-hero-media {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    grid-template-rows: auto auto;
    gap: 0.55rem;
    min-height: 0;
  }
  .train-hero-media figure {
    aspect-ratio: 4 / 5;
    min-height: 120px;
    height: auto;
    grid-row: auto;
    grid-column: auto;
  }
  .train-hero-media figure:first-child {
    grid-row: 1 / span 2;
    grid-column: 1;
    aspect-ratio: auto;
    height: 100%;
    min-height: 220px;
    align-self: stretch;
  }

  .hero-banner .media-frame {
    aspect-ratio: 16 / 9;
    min-height: 150px;
  }

  /* Stack text/card grids cleanly — image presence preserved */
  .paths-grid,
  .steps,
  .ttc-hub-grid,
  .payment-grid,
  .fact-grid,
  .studios-grid,
  .syllabus-grid,
  .review-grid,
  .credits-grid {
    grid-template-columns: 1fr;
  }

  .pack-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .pack-credits { font-size: 2.35rem; }

  .classes-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .class-card img {
    aspect-ratio: 3 / 4;
    width: 100%;
    height: auto;
    object-fit: cover;
  }
  .class-meta { padding: 0.9rem 0.9rem 1.05rem; }
  .class-meta h3 { font-size: 1.12rem; }
  .class-meta p { font-size: 0.84rem; }

  .workshop-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .workshop-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
  }
  .workshop-caption,
  .workshop-card figcaption {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 0.8rem 0.85rem 1rem;
    font-size: 1.05rem;
  }

  .instructors-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .instructor-card img {
    aspect-ratio: 9 / 16;
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center top;
  }

  .grad-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }
  .grad-row figure:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
  .grad-row img {
    aspect-ratio: 1;
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  .pricing-imgs {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .pricing-imgs img,
  .pricing-zoom img {
    width: 100%;
    height: auto;
    max-height: min(65vh, 480px);
    min-height: 200px;
    object-fit: contain;
  }

  .ttc-hub-card img {
    aspect-ratio: 4 / 3;
    width: 100%;
    height: auto;
    object-fit: cover;
  }
  .studio-card > img {
    aspect-ratio: 16 / 11;
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  .table-wrap { margin-bottom: 1.25rem; font-size: 0.85rem; }
  th, td { padding: 0.7rem 0.75rem; }

  .book-cta { padding: 2.75rem 1.25rem; }
  .footer { padding: 2.75rem 0 1.75rem; }
  .footer-grid { gap: 1.5rem; margin-bottom: 2rem; }
}

@media (max-width: 480px) {
  .container,
  .container-wide {
    width: min(100% - 1.35rem, var(--max));
  }

  .section { padding: 3.5rem 0; }
  .section-head { margin-bottom: 1.85rem; }
  .hero { padding: 1.6rem 0 2.25rem; }

  h1 { font-size: clamp(2.05rem, 9.5vw, 2.65rem); letter-spacing: -0.04em; }
  .hero-copy .lead { margin-bottom: 0; }
  .hero-sub { margin-top: 0.65rem; font-size: 0.9rem; }
  .hero-copy .btn-row { margin-top: 1.15rem; }
  .hero-copy-img--zh,
  .hero-copy-img--en {
    width: calc(100% + 1.35rem);
    margin-left: -0.675rem;
    margin-right: -0.675rem;
  }
  h2 { font-size: clamp(1.85rem, 8vw, 2.35rem); }
  .lead { font-size: 0.98rem; line-height: 1.65; }

  /* Slightly denser nav on small phones */
  :root { --nav-h: 98px; }
  .nav-cta { display: none; }
  .nav-logo img { width: 62px; }
  .nav-inner { min-height: 58px; }
  .nav-links { gap: 0.85rem; font-size: 0.78rem; padding: 0.35rem 0 0.65rem; }

  /* Narrow: stacked copy then desktop-identical masonry (tall+2+wide+badge) */
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .hero-gallery {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    grid-template-rows: auto auto auto;
    gap: 0.45rem;
  }
  .hero-gallery figure { min-height: 130px; border-radius: 14px; }
  .hero-gallery figure:first-child {
    grid-row: 1 / span 2;
    grid-column: 1;
    aspect-ratio: auto;
    height: 100%;
    min-height: 260px;
    align-self: stretch;
  }
  .hero-gallery figure.hero-wide {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
    min-height: 130px;
  }
  .hero-badge { display: block; }

  .about-gallery,
  .train-hero-media {
    gap: 0.45rem;
  }
  .about-gallery figure,
  .train-hero-media figure {
    min-height: 120px;
    border-radius: 14px;
  }
  .about-gallery figure:first-child { min-height: 240px; }
  .train-hero-media figure:first-child { min-height: 220px; }

  /* Airy single-column for text-heavy class cards */
  .classes-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .class-card img { aspect-ratio: 16 / 11; object-position: center 30%; }
  .class-meta h3 { font-size: 1.25rem; }
  .class-meta p { font-size: 0.9rem; }

  /* Workshops: keep 2-up image grid like desktop density */
  .workshop-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }
  .workshop-caption,
  .workshop-card figcaption {
    padding: 0.7rem 0.75rem 0.9rem;
    font-size: 0.98rem;
    line-height: 1.3;
  }
  .workshop-caption small { font-size: 0.72rem; }

  .pack-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pack-card { padding: 1.25rem 0.85rem; }
  .pack-credits { font-size: 2.1rem; }

  .instructors-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }
  .instructor-body { padding: 0.85rem 0.85rem 1rem; }
  .instructor-skills { font-size: 0.78rem; }

  .grad-row { grid-template-columns: repeat(2, 1fr); }

  .pricing-imgs img,
  .pricing-zoom img {
    min-height: 200px;
    max-height: min(60vh, 420px);
  }

  .path-card,
  .step,
  .fact-card,
  .payment-card,
  .syllabus-card {
    padding: 1.25rem 1.15rem;
  }

  .faq-item summary { padding: 0.95rem 1rem; }
  .faq-a { padding: 0 1rem 1rem; font-size: 0.92rem; }

  .btn-row .btn { flex: 1 1 auto; min-width: min(100%, 10rem); }
}
