/* ==========================================================================
   청주커피바리스타학원 — Stylesheet
   --------------------------------------------------------------------------
   컨셉: 실제 학원 사진(흰 벽 · 밝은 오크 바닥 · 스테인리스 머신)에서 뽑은 웜화이트 / 아이보리 바탕
         + 에스프레소색 글자. 노랑은 건물 간판의 색으로, 어두운 바탕 위 작은 포인트에만 사용합니다.
   01 Tokens         02 Base            03 Layout & type    04 Buttons & tags
   05 Header & nav   06 Home hero       08 About & photos   09 Courses (home)
   10 Guide          11 CTA band        12 Course page      13 Footer & dock
   14 Motion         15 Responsive      16 Reduced motion
   ========================================================================== */

/* 01 · Tokens ------------------------------------------------------------ */
:root {
  /* surfaces: warm white / ivory / pale oak -- the colours of the studio photos */
  --white: #ffffff;
  --paper: #fbfaf7;   /* page */
  --ivory: #f3efe8;   /* alternating sections */
  --sand: #e6dfd2;    /* photo placeholder, soft fills */
  --card: #ffffff;
  --night: #241a14;   /* dark bands (CTA) */

  /* accent: the yellow of the facade sign. small touches on dark surfaces only */
  --sun: #f5c518;
  --sun-hover: #ffd43b;

  /* ink: espresso */
  --coffee: #2d211a;
  --coffee-deep: #1f1611;
  --coffee-mid: #7a5733;   /* oak */
  --coffee-soft: #5b4a3e;

  --line: rgba(35, 26, 20, .18);
  --line-soft: rgba(35, 26, 20, .1);

  --r-m: 20px;
  --r-l: 32px;

  --shadow-s: 0 1px 2px rgba(35, 26, 20, .08), 0 4px 12px rgba(35, 26, 20, .07);
  --shadow-m: 0 2px 6px rgba(35, 26, 20, .08), 0 18px 40px -12px rgba(35, 26, 20, .28);
  --shadow-l: 0 40px 80px -30px rgba(35, 26, 20, .45);

  --font-sans: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --font-serif: "Noto Serif KR", "Nanum Myeongjo", "Batang", serif;
  --font-display: "Cormorant Garamond", "Noto Serif KR", Georgia, serif;

  --container: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* 02 · Base -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  background: var(--paper);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.72;
  color: var(--coffee-deep);
  background: var(--paper);
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}
body.nav-open { overflow: hidden; }


img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-serif); font-weight: 700; line-height: 1.22; letter-spacing: -.02em; }
p, dl, dd, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
table { border-collapse: collapse; }

:focus-visible { outline: 3px solid var(--coffee-mid); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--coffee); color: #fff; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: -64px; z-index: 200;
  padding: 12px 20px; border-radius: 999px;
  background: var(--coffee); color: #fff; font-weight: 700;
  transition: top .25s var(--ease);
}
.skip-link:focus { top: 16px; }

.icon {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}

/* 03 · Layout & type ----------------------------------------------------- */
.container { width: min(var(--container), 100% - var(--gutter) * 2); margin-inline: auto; }

.section { position: relative; padding-block: clamp(72px, 10vw, 136px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .78rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--coffee-mid);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; flex: none; }

.eyebrow-sm {
  font-family: var(--font-display); font-style: italic; font-weight: 600;
  font-size: 1.15rem; color: var(--coffee-mid);
}

h2 { font-size: clamp(2rem, 1.2rem + 3vw, 3.4rem); line-height: 1.18; }

.lead { font-size: clamp(1rem, .95rem + .3vw, 1.125rem); color: var(--coffee-soft); line-height: 1.85; }

.section-head {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: end; gap: 20px 64px;
  margin-bottom: clamp(32px, 5vw, 60px);
}
.section-head h2 { margin-top: 16px; }
.section-head.compact { grid-template-columns: minmax(0, 1fr) auto; }

.round-top {
  margin-top: calc(-1 * clamp(24px, 4vw, 56px));
  border-radius: clamp(24px, 4vw, 56px) clamp(24px, 4vw, 56px) 0 0;
  z-index: 2;
}

.muted { color: var(--coffee-soft); opacity: .85; }

/* 04 · Buttons & tags ---------------------------------------------------- */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 28px; border-radius: 999px;
  font-size: 1rem; font-weight: 700; letter-spacing: -.01em; white-space: nowrap;
  transition: transform .3s var(--ease), background-color .25s, color .25s, border-color .25s, box-shadow .3s;
}
.btn .icon { width: 20px; height: 20px; }
.btn .icon:last-child:not(:first-child) { transition: transform .3s var(--ease); }
.btn:hover .icon:last-child:not(:first-child) { transform: translateX(3px); }
.btn:active { transform: scale(.97); }
.btn-sm { --h: 42px; padding: 0 20px; font-size: .92rem; }
.btn-lg { --h: 58px; padding: 0 34px; font-size: 1.05rem; }

/* coffee-filled buttons */
.btn-primary, .btn-dark { background: var(--coffee); color: #fff; }
.btn-primary:hover, .btn-dark:hover { background: var(--coffee-deep); box-shadow: 0 12px 28px -10px rgba(24, 17, 12, .55); }
/* outlined buttons */
.btn-ghost, .btn-outline, .btn-outline-dark { border: 1.5px solid rgba(35, 26, 20, .5); color: var(--coffee-deep); }
.btn-ghost:hover, .btn-outline:hover { background: rgba(35, 26, 20, .09); border-color: var(--coffee); }
.btn-outline-dark:hover { background: var(--coffee); color: #fff; border-color: var(--coffee); }

.tag {
  display: inline-block; padding: 3px 11px; border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em; line-height: 1.6;
  background: rgba(255, 255, 255, .94); color: var(--coffee-deep);
}
.tag-sig { background: var(--coffee); color: #fff; }

.check-list { display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 32px; line-height: 1.6; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .12em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--coffee) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 12.5 4 4 8-9'/></svg>") center / 12px no-repeat;
}

/* 05 · Header & navigation ----------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--header-h);
  color: var(--coffee-deep);
  transition: background-color .35s, box-shadow .35s, backdrop-filter .35s;
}
.site-header.is-scrolled {
  background: rgba(251, 250, 247, .92);
  backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { display: block; width: auto; height: 46px; aspect-ratio: 488 / 540; flex: none; transition: transform .5s var(--ease); }
.brand:hover .brand-mark { transform: scale(1.07) rotate(-4deg); }
.brand-text { display: grid; line-height: 1.15; }
.brand-text strong { font-family: var(--font-serif); font-size: 1.08rem; font-weight: 700; letter-spacing: -.02em; }
.brand-text small {
  font-family: var(--font-sans); font-size: .6rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--coffee-soft);
}

.primary-nav > ul { display: flex; gap: 2px; align-items: center; }
.primary-nav > ul > li > a, .menu-trigger {
  position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px;
  font-size: .96rem; font-weight: 500; color: var(--coffee-soft);
  transition: color .2s;
}
.menu-trigger .icon { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.has-menu.is-open .menu-trigger .icon { transform: rotate(180deg); }
.primary-nav > ul > li > a::after, .menu-trigger::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 2px; border-radius: 2px;
  background: var(--coffee); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.primary-nav > ul > li > a:hover, .primary-nav a.is-active,
.menu-trigger:hover, .menu-trigger.is-active, .menu-trigger.is-current, .has-menu.is-open .menu-trigger { color: var(--coffee-deep); font-weight: 700; }
.primary-nav > ul > li > a:hover::after, .primary-nav a.is-active::after,
.menu-trigger:hover::after, .menu-trigger.is-active::after, .menu-trigger.is-current::after { transform: scaleX(1); }

.has-menu { position: relative; }
.mega {
  position: absolute; top: calc(100% + 12px); left: 50%; translate: -50% 8px;
  width: min(780px, calc(100vw - 48px)); padding: 24px; border-radius: 26px;
  background: var(--paper); border: 1px solid var(--line); color: var(--coffee-deep);
  box-shadow: var(--shadow-l);
  opacity: 0; visibility: hidden;
  transition: opacity .25s, translate .4s var(--ease), visibility 0s .4s;
}
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.has-menu.is-open .mega,
html:not(.js) .has-menu:hover .mega, html:not(.js) .has-menu:focus-within .mega {
  opacity: 1; visibility: visible; translate: -50% 0; transition-delay: 0s;
}
.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.mega-title { font-size: .78rem; font-weight: 700; letter-spacing: .06em; color: var(--coffee-mid); padding: 0 12px 8px; }
.mega-link { display: flex; align-items: center; gap: 14px; padding: 11px 12px; border-radius: 14px; transition: background-color .25s; }
.mega-link:hover, .mega-link[aria-current="page"] { background: var(--ivory); }
.mega-no { font-family: var(--font-display); font-style: italic; font-size: 1.25rem; font-weight: 600; color: var(--coffee-mid); min-width: 1.5em; }
.mega-text { display: grid; line-height: 1.35; }
.mega-text strong { font-size: .95rem; font-weight: 700; }
.mega-text small { font-size: .8rem; color: var(--coffee-soft); }
.mega-all {
  display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding: 16px 12px 0;
  border-top: 1px solid var(--line); font-size: .92rem; font-weight: 700; color: var(--coffee);
}
.mega-all .icon { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.mega-all:hover .icon { transform: translateX(4px); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none; position: relative; width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid rgba(35, 26, 20, .45);
}
.nav-toggle span {
  position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--coffee);
  transition: transform .4s var(--ease), top .4s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 17.5px; }
.nav-toggle span:nth-child(2) { top: 24.5px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

.scroll-progress {
  position: absolute; left: 0; bottom: 0; width: 100%; height: 3px;
  background: var(--coffee);
  transform-origin: left; transform: scaleX(var(--progress, 0));
}

.mobile-nav {
  position: fixed; inset: 0; z-index: 55;
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  padding: calc(var(--header-h) + 20px) var(--gutter) 0;
  background: var(--paper); color: var(--coffee-deep); overflow-y: auto;
  visibility: hidden; opacity: 0; transform: translateY(-12px);
  transition: opacity .35s var(--ease), transform .45s var(--ease), visibility 0s .45s;
}
.mobile-nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.mobile-list { border-top: 1px solid var(--line); }
.mobile-list > li { border-bottom: 1px solid var(--line); }
.mobile-top {
  display: flex; align-items: baseline; gap: 16px; padding: 16px 4px;
  font-family: var(--font-serif); font-size: clamp(1.45rem, 6vw, 1.9rem); font-weight: 700;
}
.mobile-top span { font-family: var(--font-display); font-style: italic; font-size: 1.05rem; font-weight: 600; color: var(--coffee-mid); min-width: 1.6em; }
.mobile-group .mobile-top { padding-bottom: 8px; }
.mobile-cat { padding: 0 4px 14px 52px; }
.mobile-cat > p { font-size: .76rem; font-weight: 700; letter-spacing: .06em; color: var(--coffee-mid); margin: 8px 0 4px; }
.mobile-cat li a { display: flex; align-items: baseline; gap: 10px; padding: 9px 0; font-size: 1rem; color: var(--coffee-deep); }
.mobile-cat li i { font-family: var(--font-display); font-style: italic; font-size: 1rem; color: var(--coffee-mid); min-width: 1.4em; }
.mobile-cat li b { font-weight: 500; flex: 1; }
.mobile-cat li small { font-size: .8rem; color: var(--coffee-soft); }
.mobile-nav-foot {
  position: sticky; bottom: 0; z-index: 1; display: grid; gap: 12px;
  margin-inline: calc(var(--gutter) * -1); margin-top: auto;
  padding: 14px var(--gutter) calc(14px + env(safe-area-inset-bottom));
  background: var(--paper); border-top: 1.5px solid var(--line);
  box-shadow: 0 -14px 18px -10px rgba(251, 250, 247, 1);
}
.mobile-info { display: grid; gap: 4px; font-size: .82rem; color: var(--coffee-soft); }
.mobile-info li { display: flex; gap: 12px; align-items: baseline; line-height: 1.55; }
.mobile-info span { flex: none; min-width: 6.4em; font-size: .76rem; font-weight: 700; letter-spacing: .04em; color: var(--coffee-mid); }

/* 06 · Home hero --------------------------------------------------------- */
.hero {
  position: relative; isolation: isolate; overflow: clip;
  min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--header-h) + 32px) 0 clamp(72px, 9vw, 110px);
  background: var(--paper);
}

.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  align-items: center; gap: clamp(24px, 4vw, 64px);
}
.hero h1 {
  margin: 24px 0 26px;
  font-size: clamp(2.3rem, 1.1rem + 3.6vw, 4.2rem);
  line-height: 1.1; letter-spacing: -.035em; font-weight: 700; color: var(--coffee-deep);
}
.hero h1 .line { display: block; overflow: hidden; padding-block: .08em; margin-block: -.08em; }
.hero h1 .line > span { display: block; }
.hero h1 em { font-style: normal; color: var(--coffee-deep); position: relative; white-space: nowrap; }
.hero h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .16em; z-index: -1;
  background: var(--sun); border-radius: 2px;
  transform-origin: left; animation: underline 1.1s var(--ease) 1s both;
}
@keyframes underline { from { transform: scaleX(0); } }

.hero .lead { max-width: 32em; color: var(--coffee-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line); }
.hero-facts li { display: inline-flex; align-items: center; gap: 9px; font-size: .92rem; font-weight: 500; color: var(--coffee-soft); }
.hero-facts .icon { color: var(--coffee-mid); width: 18px; height: 18px; }

/* real photos: one tall + two wide */
.hero-photos {
  position: relative; width: min(100%, 600px); margin-inline: auto; aspect-ratio: 1 / 1.04;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 14px;
}
.hp { margin: 0; overflow: hidden; border-radius: 22px; background: var(--sand); box-shadow: var(--shadow-m); }
.hp img { width: 100%; height: 100%; object-fit: cover; }
.hp-1 { grid-row: 1 / span 2; }
.hp-1 img { object-position: 50% 35%; }

.chip {
  position: absolute; z-index: 2; display: inline-flex;
  color: var(--coffee-deep); background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line-soft); border-radius: 16px;
  box-shadow: 0 18px 36px -16px rgba(35, 26, 20, .45);
}
.chip-brew { left: -22px; bottom: 30px; flex-direction: column; gap: 2px; padding: 14px 18px; min-width: 190px; }
.chip-brew small { font-family: var(--font-display); font-style: italic; font-size: .98rem; color: var(--coffee-mid); font-weight: 600; }
.chip-brew strong { font-family: var(--font-serif); font-size: 1.02rem; line-height: 1.35; }
.chip-brew span { font-size: .8rem; color: var(--coffee-soft); }

.scroll-cue {
  position: absolute; left: var(--gutter); bottom: 32px;
  display: inline-flex; align-items: center; gap: 14px;
  font-size: .7rem; font-weight: 700; letter-spacing: .26em; text-transform: uppercase;
  color: var(--coffee-soft);
}
.scroll-cue i { position: relative; width: 1px; height: 54px; background: var(--line); overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; inset: 0; background: var(--coffee); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* 08 · About ------------------------------------------------------------- */
.about { background: var(--white); }
.about-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(40px, 7vw, 110px); align-items: center; }

.about-photos { position: relative; aspect-ratio: 1 / 1.1; }
.ap { position: absolute; margin: 0; overflow: hidden; background: var(--sand); box-shadow: var(--shadow-m); }
.ap img { width: 100%; height: 100%; object-fit: cover; }
.ap-1 { left: 0; top: 0; width: 74%; height: 90%; border-radius: 26px; }
.ap-2 { right: 0; bottom: 0; width: 56%; aspect-ratio: 4 / 3; border-radius: 22px; border: 8px solid var(--white); }

.about-copy h2 { margin: 18px 0 24px; }
.about-text { display: grid; gap: 14px; color: var(--coffee-soft); font-size: 1.04rem; line-height: 1.9; }

.features { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; margin: 36px 0; padding-top: 32px; border-top: 1px solid var(--line); }
.features li { display: flex; gap: 14px; align-items: center; }
.features p { font-weight: 700; line-height: 1.55; }
.pillar-icon {
  flex: none; width: 48px; height: 48px; display: grid; place-items: center;
  border-radius: 50%; background: var(--ivory); color: var(--coffee-mid); border: 1px solid var(--line-soft);
}
.pillar-icon .icon { width: 21px; height: 21px; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.stats > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding: 24px 0 0; }
.stats > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.stats dd { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.8rem, 2rem + 2.4vw, 4.2rem); line-height: 1; color: var(--coffee-mid); }
.stats dt { font-size: .86rem; font-weight: 700; color: var(--coffee-soft); margin-top: 8px; }

/* 08b · Studio (photos) -------------------------------------------------- */
.studio { background: var(--ivory); padding-bottom: calc(clamp(72px, 10vw, 136px) + clamp(24px, 4vw, 56px)); }
.studio-course { padding-bottom: clamp(72px, 10vw, 136px); }
.photo-rows { display: grid; gap: 16px; margin-top: 16px; }
.photo-row { display: flex; flex-wrap: wrap; gap: 16px; }
.photo {
  position: relative; margin: 0; min-width: 0; overflow: hidden; border-radius: 20px;
  background: var(--sand); box-shadow: var(--shadow-m);
  /* widths proportional to aspect ratio -> every photo in a row gets the same height */
  flex: var(--r) 1 calc(var(--r) * 180px);
}
.row-eq { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); }
.row-eq .photo { flex: none; }
.photo-btn { display: block; width: 100%; padding: 0; line-height: 0; cursor: zoom-in; }
.photo-btn:focus-visible { outline-offset: -5px; }
.photo img { width: 100%; height: auto; aspect-ratio: var(--r); object-fit: cover; transition: transform .9s var(--ease); }
.photo:hover img { transform: scale(1.045); }
.photo figcaption {
  position: absolute; inset: auto 0 0 0; padding: 38px 18px 14px; pointer-events: none;
  font-size: .88rem; font-weight: 700; line-height: 1.4; color: var(--paper);
  background: linear-gradient(transparent, rgba(24, 17, 12, .74));
}
.photo-wide { flex: none; }
.photo-wide img { aspect-ratio: 16 / 7; object-position: 50% 82%; }
/* space & location */
.space { background: var(--ivory); padding-bottom: calc(clamp(72px, 10vw, 136px) + clamp(24px, 4vw, 56px)); }
.space-group + .space-group, .location + .space-group { margin-top: clamp(48px, 6vw, 80px); }
.space-sub { font-size: clamp(1.25rem, 1.05rem + .8vw, 1.6rem); margin-bottom: 20px; display: flex; align-items: center; gap: 14px; }
.space-sub::after { content: ""; flex: 1; height: 1.5px; background: var(--line); }
.location {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px;
  margin-top: clamp(32px, 4vw, 48px); padding: clamp(24px, 3vw, 36px) clamp(24px, 3.4vw, 44px);
  border-radius: var(--r-l); background: var(--white); border: 1px solid var(--line-soft); box-shadow: var(--shadow-m);
}
.loc-info h3 { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; margin-bottom: 14px; }
.loc-info h3 .icon { width: 24px; height: 24px; color: var(--coffee-mid); }
.loc-info dl { display: grid; gap: 8px; }
.loc-info dl > div { display: flex; gap: 16px; align-items: baseline; }
.loc-info dt { flex: none; min-width: 3.2em; font-size: .8rem; font-weight: 700; letter-spacing: .04em; color: var(--coffee-mid); }
.loc-info dd { font-weight: 500; }
.loc-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.studio-note { margin-top: 22px; font-size: .88rem; color: var(--coffee-soft); }

.lightbox { width: min(1100px, 94vw); max-width: none; max-height: 92vh; padding: 0; border: 0; background: transparent; overflow: visible; color: var(--paper); }
.lightbox::backdrop { background: rgba(24, 17, 12, .86); backdrop-filter: blur(6px); }
.lightbox figure { margin: 0; display: grid; gap: 14px; justify-items: center; }
.lightbox img { width: auto; height: auto; max-width: 100%; max-height: 78vh; border-radius: 16px; background: var(--sand); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6); }
.lightbox figcaption { font-size: .98rem; font-weight: 700; text-align: center; }
.lb-btn {
  position: absolute; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%;
  background: #fff; color: var(--coffee-deep); box-shadow: var(--shadow-m); transition: transform .25s var(--ease);
}
.lb-btn:hover { transform: scale(1.08); }
.lb-btn .icon { width: 22px; height: 22px; }
.lb-close { top: -14px; right: -14px; }
.lb-prev { left: -14px; top: 50%; translate: 0 -50%; }
.lb-next { right: -14px; top: 50%; translate: 0 -50%; }
.lb-btn[hidden] { display: none; }
body.lb-open { overflow: hidden; }

/* 09 · Courses (home) ---------------------------------------------------- */
.courses { background: var(--paper); }

.course-group + .course-group { margin-top: clamp(56px, 7vw, 92px); }
.group-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 40px; margin-bottom: 28px; padding-bottom: 22px; border-bottom: 1.5px solid var(--line); }
.group-no { font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 1.15rem; color: var(--coffee-mid); }
.group-head h3 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); margin-top: 2px; }
.group-head > p { max-width: 24em; color: var(--coffee-soft); text-align: right; }

.course-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.course-card {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); height: 100%;
  border-radius: 28px; overflow: hidden; background: var(--card); border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-s);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-m); }
.cc-art { position: relative; min-height: 220px; background: var(--sand); overflow: hidden; }
.cc-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.course-card:hover .cc-art img { transform: scale(1.05); }
.cc-art .tag { position: absolute; left: 14px; top: 14px; }
.cc-body { display: flex; flex-direction: column; padding: 26px 26px 22px; }
.cc-no { font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 1.05rem; color: var(--coffee-mid); }
.cc-title { font-size: 1.32rem; margin: 2px 0 12px; }
.cc-target { font-size: .92rem; line-height: 1.6; color: var(--coffee-soft); }
.cc-target span { display: block; font-size: .74rem; font-weight: 700; letter-spacing: .04em; color: var(--coffee-mid); margin-bottom: 2px; }
.cc-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 16px 0 20px; font-size: .84rem; color: var(--coffee-soft); }
.cc-meta li { display: inline-flex; align-items: center; gap: 6px; }
.cc-meta .icon { width: 15px; height: 15px; color: var(--coffee-mid); }
.cc-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 16px; border-top: 1px dashed rgba(35, 26, 20, .3); }
.cc-dots { display: flex; gap: 4px; }
.cc-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--coffee-mid); opacity: .85; }
.cc-more { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; font-weight: 700; white-space: nowrap; }
.cc-more .icon { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.course-card:hover .cc-more .icon { transform: translateX(4px); }

.compare { margin-top: clamp(56px, 7vw, 92px); }
.compare > h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.8rem); margin-bottom: 22px; }
.table-wrap { border-radius: var(--r-l); background: var(--card); border: 1px solid var(--line-soft); box-shadow: var(--shadow-s); overflow-x: auto; }
.cmp-table { width: 100%; min-width: 860px; font-size: .94rem; }
.cmp-table th, .cmp-table td { padding: 16px 20px; text-align: left; vertical-align: middle; line-height: 1.55; }
.cmp-table thead th { font-size: .78rem; font-weight: 700; letter-spacing: .04em; color: var(--coffee-soft); background: var(--ivory); }
.cmp-table tbody tr + tr th, .cmp-table tbody tr + tr td { border-top: 1px solid var(--line-soft); }
.cmp-group th { background: var(--coffee); color: var(--paper); font-size: .82rem !important; font-weight: 700; letter-spacing: .06em; padding: 10px 20px !important; }
.cmp-table tbody th[scope="row"] { font-family: var(--font-serif); font-weight: 700; white-space: nowrap; }
.cmp-table tbody th a { display: inline-flex; align-items: baseline; gap: 10px; transition: color .2s; }
.cmp-table tbody th a:hover { color: var(--coffee-mid); text-decoration: underline; text-underline-offset: 4px; }
.cmp-no { font-family: var(--font-display); font-style: italic; color: var(--coffee-mid); }
.cmp-table td:nth-child(3), .cmp-table td:nth-child(4) { white-space: nowrap; }

/* 10 · Guide ------------------------------------------------------------- */
.guide { background: var(--white); }

.highlights { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1.5px solid var(--line); margin-bottom: 32px; }
.highlights li { display: flex; flex-direction: column; padding: clamp(24px, 3.4vw, 44px) 0 clamp(24px, 3.4vw, 44px) clamp(16px, 3vw, 40px); }
.highlights li:first-child { padding-left: 0; }
.highlights li + li { border-left: 1.5px solid var(--line); }
.highlights strong { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.8rem, 1.6rem + 4vw, 5.2rem); line-height: 1.05; color: var(--coffee); }
.highlights span { margin-top: 6px; color: var(--coffee-soft); font-size: .96rem; font-weight: 500; }

.guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.guide-card { padding: clamp(26px, 3vw, 40px); border-radius: var(--r-l); border: 1px solid var(--line-soft); background: var(--paper); box-shadow: var(--shadow-s); }
.guide-card h3 { display: flex; align-items: center; gap: 12px; font-size: 1.3rem; margin-bottom: 22px; }
.guide-card h3 .icon { color: var(--coffee-mid); width: 24px; height: 24px; }
.guide-note { margin-top: 28px; font-size: .88rem; color: var(--coffee-soft); }

/* 11 · CTA band ---------------------------------------------------------- */
.cta { position: relative; overflow: hidden; background: var(--night); color: var(--paper); padding-block: clamp(72px, 9vw, 120px); }
.cta-photo { position: absolute; inset: 0 0 0 auto; width: min(54%, 760px); }
.cta-photo img { width: 100%; height: 100%; object-fit: cover; opacity: .62; }
.cta-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--night) 0%, rgba(36, 26, 20, .5) 42%, rgba(36, 26, 20, .1) 100%); }
.cta h2 { margin: 18px 0 18px; color: #fff; }
.cta .eyebrow { color: var(--sun); }
.cta .lead { color: rgba(251, 250, 247, .8); max-width: 34em; }
.cta-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 40px 64px; flex-wrap: wrap; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.cta .btn-dark { background: var(--sun); color: var(--coffee-deep); }
.cta .btn-dark:hover { background: var(--sun-hover); box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .6); }
.cta .btn-outline-dark { border-color: rgba(255, 255, 255, .55); color: #fff; }
.cta .btn-outline-dark:hover { background: #fff; color: var(--coffee-deep); border-color: #fff; }

/* 12 · Course page ------------------------------------------------------- */
/* html already adds scroll-padding-top (header); this only clears the sticky sub-nav */
.course-page section[id] { scroll-margin-top: 64px; }

.c-hero { position: relative; isolation: isolate; overflow: clip; padding: calc(var(--header-h) + 40px) 0 clamp(56px, 7vw, 96px); background: var(--paper); }
.c-hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-bottom: 30px; font-size: .86rem; color: var(--coffee-soft); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.breadcrumb a { transition: color .2s; }
.breadcrumb a:hover { color: var(--coffee-deep); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb [aria-current="page"] { color: var(--coffee-deep); font-weight: 700; }

.c-hero h1 { font-size: clamp(2.2rem, 1.2rem + 3.8vw, 4rem); line-height: 1.15; letter-spacing: -.03em; margin: 20px 0 14px; color: var(--coffee-deep); }
.c-sub { font-family: var(--font-serif); font-size: 1.12rem; font-weight: 600; color: var(--coffee-mid); margin-bottom: 4px; }
.c-goal { margin: 26px 0; padding: 18px 24px; border-left: 4px solid var(--coffee); border-radius: 0 18px 18px 0; background: var(--ivory); max-width: 36em; }
.c-goal span { display: block; margin-bottom: 4px; font-size: .78rem; font-weight: 700; letter-spacing: .06em; color: var(--coffee-mid); }
.c-goal p { font-size: 1.04rem; line-height: 1.8; color: var(--coffee-deep); }
.c-facts { display: flex; flex-wrap: wrap; gap: 10px; }
.c-facts li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid rgba(35, 26, 20, .4); font-size: .9rem; font-weight: 500; color: var(--coffee-deep); }
.c-facts .icon { width: 17px; height: 17px; color: var(--coffee-mid); }
.c-hero .hero-actions { margin-top: 30px; }

.c-photo { margin: 0; width: min(100%, 520px); margin-inline: auto; aspect-ratio: 4 / 3.4; overflow: hidden; border-radius: 26px; background: var(--sand); box-shadow: var(--shadow-l); }
.c-photo img { width: 100%; height: 100%; object-fit: cover; }

.subnav { position: sticky; top: var(--header-h); z-index: 40; background: rgba(255, 254, 251, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.subnav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 58px; }
.subnav ul { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin-inline: -6px; padding-inline: 6px; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav ul a { display: block; padding: 8px 16px; border-radius: 999px; font-size: .92rem; font-weight: 500; white-space: nowrap; color: var(--coffee-soft); transition: background-color .25s, color .25s; }
.subnav ul a:hover { color: var(--coffee-deep); background: rgba(35, 26, 20, .08); }
.subnav ul a.is-active { background: var(--coffee); color: #fff; font-weight: 700; }

.overview { background: var(--white); }
.facts-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.fact { display: flex; flex-direction: column; gap: 18px; padding: 26px; border-radius: 24px; background: var(--paper); border: 1px solid var(--line-soft); box-shadow: var(--shadow-s); }
.fact-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--ivory); color: var(--coffee-mid); border: 1px solid var(--line-soft); }
.fact-icon .icon { width: 21px; height: 21px; }
.fact-label { font-size: .8rem; font-weight: 700; letter-spacing: .04em; color: var(--coffee-mid); }
.fact-value { margin-top: 4px; font-family: var(--font-serif); font-weight: 700; font-size: 1.06rem; line-height: 1.55; }
.fact-value.big { font-size: 1.7rem; line-height: 1.25; }
.fact-sub { margin-top: 2px; font-size: .9rem; color: var(--coffee-soft); }

.goal { background: var(--white); }
.goal-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.goal h2 { margin: 16px 0 20px; }
.goal-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.goal-list li { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: 22px; border: 1px solid var(--line-soft); background: var(--card); box-shadow: var(--shadow-s); transition: transform .4s var(--ease), box-shadow .4s; }
.goal-list li:hover { transform: translateY(-3px); box-shadow: var(--shadow-m); }
.goal-no { font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 1.5rem; line-height: 1.2; color: var(--coffee-mid); min-width: 1.5em; }
.goal-list p { line-height: 1.65; font-weight: 500; }

.curriculum-section { background: var(--ivory); }
.curriculum { margin-top: -10px; }
.ctable { width: 100%; border-collapse: separate; border-spacing: 0 10px; table-layout: fixed; }
.ctable thead th { padding: 0 28px 4px; text-align: left; font-size: .8rem; font-weight: 700; letter-spacing: .04em; color: var(--coffee-soft); }
.ctable thead th:first-child { width: 132px; }
.ctable thead th:nth-child(2) { width: 30%; }
.ctable tbody th, .ctable tbody td { padding: 22px 28px; vertical-align: middle; background: var(--card); border-block: 1px solid var(--line-soft); transition: background-color .3s; }
.ctable tbody th { text-align: left; white-space: nowrap; border-left: 1px solid var(--line-soft); border-radius: 20px 0 0 20px; }
.ctable tbody td:last-child { border-right: 1px solid var(--line-soft); border-radius: 0 20px 20px 0; }
.ctable tbody tr:hover th, .ctable tbody tr:hover td { background: #fff; }
.ctable .no { font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 2.1rem; line-height: 1; color: var(--coffee-mid); margin-right: 4px; }
.ctable .unit { font-size: .84rem; font-weight: 700; color: var(--coffee-soft); }
.ctable .topic { font-family: var(--font-serif); font-weight: 700; font-size: 1.08rem; line-height: 1.5; }
.ctable .detail { color: var(--coffee-soft); line-height: 1.7; }

.enroll { background: var(--white); }
.enroll-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.enroll-card { display: flex; flex-direction: column; align-items: flex-start; padding: 30px; border-radius: 28px; background: var(--paper); border: 1px solid var(--line-soft); box-shadow: var(--shadow-s); }
.enroll-card h3 { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; margin-bottom: 20px; }
.enroll-card h3 .icon { width: 22px; height: 22px; color: var(--coffee-mid); }
.enroll-strong { margin-bottom: 14px; padding: 12px 16px; border-radius: 14px; background: var(--ivory); font-weight: 700; }
.enroll-fee { background: var(--coffee); color: var(--paper); border-color: transparent; }
.enroll-fee h3 .icon { color: var(--sun); }
.fee-value { font-family: var(--font-serif); font-weight: 700; font-size: 2rem; line-height: 1.2; color: var(--sun); }
.fee-value.is-empty { font-size: 1.7rem; color: var(--paper); }
.fee-note { margin: 12px 0 24px; font-size: .92rem; color: rgba(255, 251, 234, .8); flex: 1; }
.enroll-fee .btn-primary { background: var(--sun); color: var(--coffee-deep); }
.enroll-fee .btn-primary:hover { background: var(--sun-hover); box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .5); }
.notes-list { display: grid; gap: 8px; margin-top: 32px; font-size: .88rem; color: var(--coffee-soft); }
.notes-list li { position: relative; padding-left: 20px; line-height: 1.65; }
.notes-list li::before { content: "※"; position: absolute; left: 0; }

.others { background: var(--paper); border-top: 1px solid var(--line-soft); }
/* no "goal" section: keep neighbouring sections from sharing one tone */
.studio-course + .curriculum-section { background: var(--white); }
.studio-course + .curriculum-section + .enroll { background: var(--ivory); }
.mini-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.mini-card { display: flex; align-items: center; gap: 16px; height: 100%; padding: 20px 22px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s; }
.mini-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); border-color: var(--coffee-mid); }
.mini-no { font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 1.8rem; line-height: 1; color: var(--coffee-mid); min-width: 1.5em; }
.mini-text { display: grid; flex: 1; min-width: 0; line-height: 1.4; }
.mini-text small { font-size: .74rem; font-weight: 700; color: var(--coffee-mid); }
.mini-text strong { font-family: var(--font-serif); font-size: 1.02rem; }
.mini-text em { font-style: normal; font-size: .84rem; color: var(--coffee-soft); }
.mini-card > .icon { width: 20px; height: 20px; color: var(--coffee-mid); transition: transform .35s var(--ease); }
.mini-card:hover > .icon { transform: translateX(4px); }

/* 12b · Gallery page (all class photos) --------------------------------- */
.g-hero { padding: calc(var(--header-h) + 40px) 0 clamp(36px, 5vw, 64px); background: var(--paper); }
.g-hero h1 { font-size: clamp(2.2rem, 1.2rem + 3.8vw, 4rem); line-height: 1.15; letter-spacing: -.03em; margin: 20px 0 14px; color: var(--coffee-deep); }
.g-hero .lead { max-width: 36em; }
.g-count { margin-top: 18px; font-size: .9rem; font-weight: 700; color: var(--coffee-mid); }
.album { background: var(--white); padding-block: clamp(48px, 7vw, 88px); }
.album-alt { background: var(--ivory); }
.album .photo-rows { margin-top: 0; }
.album-note { padding-block: 28px; font-size: .88rem; color: var(--coffee-soft); }
.studio-more { display: flex; justify-content: center; margin-top: 32px; }

/* 13 · Footer & dock ----------------------------------------------------- */
.site-footer { position: relative; overflow: hidden; background: #181210; color: #efe9df; padding-top: clamp(56px, 7vw, 88px); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1.2fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand p { margin-top: 20px; max-width: 26em; color: rgba(239, 233, 223, .72); font-size: .94rem; line-height: 1.8; }
.site-footer .brand-text small { color: rgba(239, 233, 223, .6); }
.site-footer h2 { font-family: var(--font-sans); font-size: .82rem; font-weight: 700; letter-spacing: .08em; color: rgba(239, 233, 223, .55); margin-bottom: 16px; }
.footer-nav ul { display: grid; gap: 8px; }
.footer-nav a, .footer-contact a { color: rgba(239, 233, 223, .82); transition: color .2s; }
.footer-nav a:hover, .footer-contact a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer-contact ul { display: grid; gap: 8px; color: rgba(239, 233, 223, .82); font-size: .94rem; }
.legal-line { color: #efe9df; font-weight: 500; }
.legal-line i { margin-inline: .7em; font-style: normal; opacity: .55; }
.legal-line span { font-weight: 700; color: rgba(239, 233, 223, .6); }
.footer-legal { display: grid; gap: 4px; padding-block: 24px 36px; border-top: 1px solid rgba(239, 233, 223, .16); font-size: .8rem; color: rgba(239, 233, 223, .6); }

.dock {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 58;
  display: none; gap: 6px; padding: 6px; border-radius: 22px;
  background: rgba(35, 26, 20, .96); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 40px -10px rgba(24, 17, 12, .6);
  transition: transform .45s var(--ease), opacity .3s;
}
.dock a { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 48px; border-radius: 16px; font-size: .9rem; font-weight: 700; color: var(--paper); }
.dock a .icon { width: 18px; height: 18px; }
.dock .dock-primary { flex: 1.3; background: var(--sun); color: var(--coffee-deep); }
body.nav-open .dock { transform: translateY(140%); opacity: 0; }

/* 14 · Motion ------------------------------------------------------------ */
.rise { opacity: 0; animation: rise 1s var(--ease) both; animation-delay: calc(var(--i, 0) * 110ms + 120ms); }
.hero h1 .line > .rise { opacity: 1; animation-name: riseLine; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes riseLine { from { transform: translateY(112%); } to { transform: none; } }
.rise-art { animation: artIn 1.5s var(--ease) .25s both; }
@keyframes artIn { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }

.reveal-ready [data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.reveal-ready [data-reveal].is-visible { opacity: 1; transform: none; }
.reveal-ready .about-photos[data-reveal] { transform: translateY(40px) scale(.98); }
.reveal-ready .about-photos[data-reveal].is-visible { transform: none; }
/* hover transforms must win over the reveal transition once visible */
.reveal-ready .course-grid > li[data-reveal].is-visible,
.reveal-ready .mini-grid > li[data-reveal].is-visible { transition-delay: 0s; }

/* 15 · Responsive -------------------------------------------------------- */
@media (max-width: 1100px) {
  .primary-nav, .header-cta { display: none; }
  .nav-toggle { display: block; }
  .facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .enroll-grid { grid-template-columns: 1fr 1fr; }
  .enroll-fee { grid-column: 1 / -1; }
  .mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .goal-grid { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
  .section-head, .section-head.compact { grid-template-columns: 1fr; gap: 18px; }
  .section-head.compact { align-items: start; }
  .section-head .btn { justify-self: start; }
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 36px); }
  .hero-grid, .c-hero-grid { grid-template-columns: 1fr; gap: 52px; }
  .hero-photos { width: min(100%, 520px); }
  .chip-brew { left: 12px; bottom: 12px; }
  .c-photo { width: min(100%, 520px); aspect-ratio: 4 / 3; }
  .scroll-cue { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photos { width: min(100%, 520px); margin-inline: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .group-head { flex-direction: column; align-items: flex-start; }
  .group-head > p { text-align: left; }
}

@media (max-width: 900px) {
  .row-eq[data-cols="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .dock { display: flex; }
  .site-footer { padding-bottom: 84px; }
  .course-grid { grid-template-columns: 1fr; }
  .guide-grid { grid-template-columns: 1fr; }
  .goal-list { grid-template-columns: 1fr; }
  .enroll-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .row-eq[data-cols="3"][data-orient="land"] { grid-template-columns: 1fr; }
  .loc-actions, .loc-actions .btn { width: 100%; }
}
@media (max-width: 560px) {
  .row-eq[data-cols="4"][data-orient="land"] { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root { --header-h: 64px; }
  .brand-mark { height: 42px; }
  .brand-text small { display: none; }
  .hero h1 { margin-top: 20px; }
  .hero-actions { flex-wrap: nowrap; gap: 10px; margin-top: 30px; }
  .hero-actions .btn { flex: 1 1 0; padding: 0 12px; }
  .hero-facts { gap: 8px 18px; margin-top: 34px; }
  .chip-brew { left: 8px; bottom: 8px; min-width: 0; padding: 10px 14px; }
  .chip-brew strong { font-size: .9rem; }
  .chip-brew span { display: none; }
  .photo { border-radius: 20px; }
  .photo figcaption { padding: 30px 14px 11px; font-size: .8rem; }
  .photo-wide img { aspect-ratio: 4 / 3; object-position: 50% 85%; }
  .lb-close { top: -58px; right: 0; }
  .lb-prev { left: 6px; }
  .lb-next { right: 6px; }
  .features { grid-template-columns: 1fr; }
  .stats > div + div { padding-left: 14px; }
  .stats dt { font-size: .8rem; }

  .course-card { grid-template-columns: 1fr; }
  .cc-art { min-height: 0; aspect-ratio: 16 / 9; }
  .cc-body { padding: 22px 22px 20px; }
  .highlights { grid-template-columns: 1fr; }
  .highlights li, .highlights li:first-child { flex-direction: row; align-items: baseline; gap: 16px; padding: 18px 0; }
  .highlights li + li { border-left: 0; border-top: 1.5px solid var(--line); }
  .highlights strong { font-size: 2.6rem; min-width: 2.4em; }
  .highlights span { margin: 0; }
  .cta-actions, .cta-actions .btn { width: 100%; }
  .cta-photo { width: 100%; }
  .cta-photo img { opacity: .34; }
  .cta-photo::after { background: rgba(36, 26, 20, .55); }

  .c-hero, .g-hero { padding-top: calc(var(--header-h) + 28px); }
  .c-hero .hero-actions { flex-wrap: wrap; }
  .c-hero .hero-actions .btn { flex: 1 1 100%; }
  .facts-grid { gap: 12px; }
  .fact { padding: 20px; gap: 14px; }
  .fact-wide { grid-column: 1 / -1; flex-direction: row; align-items: flex-start; }
  .fact-value.big { font-size: 1.4rem; }
  .mini-grid { grid-template-columns: 1fr; }

  /* comparison table -> stacked cards */
  .table-wrap { background: none; border: 0; box-shadow: none; overflow: visible; }
  .cmp-table, .cmp-table tbody { display: block; min-width: 0; }
  .cmp-table thead { display: none; }
  .cmp-table tr { display: block; }
  .cmp-table .cmp-group { margin: 18px 0 10px; }
  .cmp-table .cmp-group th { display: block; border-radius: 14px; }
  .cmp-table tbody tr:not(.cmp-group) { margin-bottom: 12px; border-radius: 20px; background: var(--card); border: 1px solid var(--line-soft); box-shadow: var(--shadow-s); overflow: hidden; }
  .cmp-table tbody tr + tr th, .cmp-table tbody tr + tr td { border-top: 0; }
  .cmp-table tbody th[scope="row"] { display: block; padding: 16px 18px 12px; white-space: normal; font-size: 1.05rem; background: var(--ivory); }
  .cmp-table td { display: grid; grid-template-columns: 82px 1fr; gap: 12px; padding: 10px 18px; font-size: .92rem; }
  .cmp-table td::before { content: attr(data-label); font-size: .78rem; font-weight: 700; color: var(--coffee-mid); padding-top: 2px; }
  .cmp-table td:nth-child(3), .cmp-table td:nth-child(4) { white-space: normal; }
  .cmp-table td:last-child { padding-bottom: 16px; }

  /* curriculum table -> numbered cards */
  .curriculum { margin-top: 0; }
  .ctable, .ctable tbody { display: block; }
  .ctable thead { display: none; }
  .ctable tbody tr { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 14px; row-gap: 4px; align-items: start; margin-bottom: 12px; padding: 18px 18px 18px 16px; border-radius: 22px; background: var(--card); border: 1px solid var(--line-soft); box-shadow: var(--shadow-s); }
  .ctable tbody th, .ctable tbody td { display: block; padding: 0; border: 0; border-radius: 0; background: none; }
  .ctable tbody tr:hover th, .ctable tbody tr:hover td { background: none; }
  .ctable tbody td:last-child { border: 0; border-radius: 0; }
  .ctable tbody th { grid-row: 1 / span 2; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0; border-radius: 16px; background: var(--coffee); }
  .ctable .no { font-size: 1.7rem; color: var(--sun); margin: 0; }
  .ctable .unit { font-size: .7rem; color: rgba(255, 251, 234, .75); }
  .ctable .topic { font-size: 1.04rem; align-self: end; }
  .ctable .detail { font-size: .92rem; }
  .subnav-inner .btn { display: none; }
}

@media (max-width: 340px) {
  .hero h1 { font-size: 1.95rem; }
}

@media (max-width: 420px) {
  .btn-lg { padding: 0 24px; }
  .hero-actions .btn-lg { font-size: .98rem; }
  .cc-meta { gap: 6px 12px; }
}

/* 16 · Reduced motion ---------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    animation-delay: 0s !important; transition-duration: .001ms !important; transition-delay: 0s !important;
  }
}
