/* ==========================================================================
   청주커피바리스타학원 — Stylesheet
   --------------------------------------------------------------------------
   컨셉: 로고의 노랑을 밝게 펼친 배경 + 커피색 요소(글자·버튼·아이콘·장식)
   01 Tokens         02 Base            03 Layout & type    04 Buttons & tags
   05 Header & nav   06 Home hero       07 Marquee          08 About
   09 Courses (home) 10 Guide           11 CTA band         12 Course page
   13 Footer & dock  14 Motion          15 Responsive       16 Reduced motion
   ========================================================================== */

/* 01 · Tokens ------------------------------------------------------------ */
:root {
  /* backgrounds: yellow, kept light and bright */
  --sun: #ffd43b;
  --sun-bright: #ffe27a;
  --sun-deep: #ffc933;
  --butter: #ffeea8;
  --cream: #fff6cf;
  --paper: #fffbea;
  --card: #fffdf4;

  /* elements: coffee */
  --coffee: #4e2d1a;
  --coffee-deep: #3a200f;
  --coffee-mid: #7b4a28;
  --coffee-soft: #6b4a34;

  --line: rgba(78, 45, 26, .18);
  --line-soft: rgba(78, 45, 26, .1);

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

  --shadow-s: 0 1px 2px rgba(78, 45, 26, .08), 0 4px 12px rgba(78, 45, 26, .07);
  --shadow-m: 0 2px 6px rgba(78, 45, 26, .08), 0 18px 40px -12px rgba(78, 45, 26, .28);
  --shadow-l: 0 40px 80px -30px rgba(78, 45, 26, .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(--sun);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.72;
  color: var(--coffee-deep);
  background: var(--cream);
  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; }

/* subtle paper grain */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

img, svg { display: block; max-width: 100%; }
.art { aspect-ratio: 1; height: auto; }
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: var(--sun); }

.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: var(--sun); 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: var(--sun); }
.btn-primary:hover, .btn-dark:hover { background: var(--coffee-deep); box-shadow: 0 12px 28px -10px rgba(58, 32, 15, .55); }
/* outlined buttons */
.btn-ghost, .btn-outline, .btn-outline-dark { border: 1.5px solid rgba(78, 45, 26, .5); color: var(--coffee-deep); }
.btn-ghost:hover, .btn-outline:hover { background: rgba(78, 45, 26, .09); border-color: var(--coffee); }
.btn-outline-dark:hover { background: var(--coffee); color: var(--sun); 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: var(--coffee); color: var(--sun);
}
.tag-sig { background: var(--coffee-mid); color: var(--paper); }

.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='%23ffd43b' 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(255, 238, 168, .9);
  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: rgba(255, 212, 59, .38); }
.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(78, 45, 26, .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) calc(24px + env(safe-area-inset-bottom));
  background: var(--sun-bright); 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 { display: grid; }

/* 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(--sun-bright);
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(46% 56% at 74% 42%, rgba(255, 253, 240, .78), transparent 72%),
    radial-gradient(40% 50% at 4% 100%, rgba(255, 201, 51, .75), transparent 70%),
    linear-gradient(165deg, #ffea8f 0%, #ffd94f 55%, #ffd43b 100%);
}
.hero-bg::before {
  content: ""; position: absolute; right: -14%; top: 50%; translate: 0 -50%;
  width: min(120vh, 960px); aspect-ratio: 1; border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 70px, rgba(78, 45, 26, .07) 70px 71px);
  mask-image: radial-gradient(circle, #000 30%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle, #000 30%, transparent 72%);
}

.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.7rem, 1.4rem + 5.4vw, 5.7rem);
  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-mid); position: relative; white-space: nowrap; }
.hero h1 em::after {
  content: ""; position: absolute; left: 2%; right: 0; bottom: .02em; height: .09em;
  background: var(--coffee-mid); opacity: .6; border-radius: 99px;
  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; }

.hero-art { position: relative; width: min(100%, 620px); aspect-ratio: 1; margin-inline: auto; }
.hero-scene { width: 100%; height: 100%; filter: drop-shadow(0 36px 44px rgba(78, 45, 26, .3)); overflow: visible; }

.parallax {
  translate: calc(var(--mx, 0) * var(--depth, 10) * 1px) calc(var(--my, 0) * var(--depth, 10) * 1px);
  transition: translate .6s var(--ease);
}

.float-bean { position: absolute; width: var(--s, 40px); aspect-ratio: 40 / 56; height: auto; animation: floaty 7s ease-in-out infinite; }
.fb-1 { --s: 46px; --r: 24deg; top: -1%; right: 20%; }
.fb-2 { --s: 32px; --r: -30deg; left: -3%; top: 40%; animation-delay: -2s; animation-duration: 8s; }
.fb-3 { --s: 50px; --r: 50deg; right: -4%; top: 44%; animation-delay: -4s; animation-duration: 9s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50% { transform: translateY(-14px) rotate(calc(var(--r, 0deg) + 8deg)); }
}

.chip {
  position: absolute; z-index: 2; display: inline-flex;
  color: var(--coffee-deep); background: rgba(255, 251, 234, .88);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 18px 36px -16px rgba(78, 45, 26, .45);
}
.chip-status { left: 2%; top: 8%; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px; font-size: .9rem; font-weight: 700; }
.chip-status .icon { width: 18px; height: 18px; color: var(--coffee-mid); }
.chip-brew { right: -1%; bottom: 12%; 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); }

.badge { position: absolute; left: -2%; bottom: 8%; width: clamp(92px, 17%, 124px); aspect-ratio: 1; filter: drop-shadow(0 12px 18px rgba(78, 45, 26, .35)); }
.badge svg { width: 100%; height: 100%; animation: spin 24s linear infinite; }
.badge-text { font: 700 10.4px var(--font-sans); letter-spacing: .1em; fill: var(--sun); }
@keyframes spin { to { transform: rotate(360deg); } }

.stream { animation: flow .7s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -20; } }
.steam { transform-box: fill-box; animation: steam 3.4s ease-in-out infinite; opacity: 0; }
.steam.s2 { animation-delay: 1s; }
.steam.s3 { animation-delay: 2s; }
@keyframes steam {
  0% { opacity: 0; transform: translateY(10px); }
  30% { opacity: .9; }
  100% { opacity: 0; transform: translateY(-16px); }
}
.drop { transform-box: fill-box; animation: dropFall 1.5s ease-in infinite; opacity: 0; }
.drop.d2 { animation-delay: .75s; }
@keyframes dropFall {
  0% { opacity: 0; transform: translateY(0); }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { opacity: 0; transform: translateY(26px); }
}
.bloom { transform-box: fill-box; transform-origin: center; animation: bloom 3.2s ease-in-out infinite; }
@keyframes bloom { 50% { transform: scale(1.03, 1.5); } }

.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%); } }

/* 07 · Marquee ----------------------------------------------------------- */
.marquee { background: var(--sun-deep); color: var(--coffee-deep); overflow: hidden; position: relative; z-index: 1; border-block: 1.5px solid rgba(78, 45, 26, .35); }
.marquee-track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; gap: 30px; padding: 16px 15px; flex: none; }
.marquee-group span { font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 1.7rem; line-height: 1; white-space: nowrap; }
.marquee-group .icon { width: 22px; height: 22px; stroke-width: 1.8; opacity: .85; }
@keyframes marquee { to { transform: translateX(-50%); } }

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

.collage { position: relative; aspect-ratio: 1 / 1.08; }
.tile { position: absolute; display: grid; place-items: center; overflow: hidden; box-shadow: var(--shadow-m); }
.tile-arch { border-radius: 999px 999px 28px 28px; }
.tile-circle { border-radius: 50%; }
.tile-1 { left: 0; top: 7%; width: 58%; height: 80%; background: linear-gradient(170deg, #ffe98f, #ffcf3a); }
.tile-1 .art { width: 104%; max-width: none; margin-top: 16%; }
.tile-2 { right: 0; top: 0; width: 36%; height: 46%; background: var(--coffee-mid); }
.tile-2 .bean-pattern { width: 100%; height: 100%; }
.tile-3 { right: 3%; bottom: 0; width: 50%; aspect-ratio: 1; background: var(--coffee); border: 8px solid var(--cream); box-sizing: content-box; translate: 8px 8px; }
.tile-3 .art { width: 106%; max-width: none; }

.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(--coffee); color: var(--sun);
}
.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(--paper); 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: 26px;
  background: var(--butter); 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) * 220px);
}
.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(58, 32, 15, .74));
}
.photo-wide { flex: none; }
.photo-wide img { aspect-ratio: 16 / 7; object-position: 50% 82%; }
.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(58, 32, 15, .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: 18px; background: var(--butter); 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: var(--sun); 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(--butter); }

.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; display: grid; place-items: center; min-height: 100%; background: linear-gradient(160deg, var(--tile), var(--tile2)); overflow: hidden; }
.cc-art .art { width: 76%; transition: transform .7s var(--ease); }
.course-card:hover .cc-art .art { transform: scale(1.08) rotate(-3deg); }
.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(78, 45, 26, .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: rgba(255, 212, 59, .3); }
.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(--sun); 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(--sun-bright); }
.guide::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(50% 60% at 88% 0%, rgba(255, 253, 240, .75), transparent 70%); }
.guide .container { position: relative; }

.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(--card); 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(--sun); color: var(--coffee-deep); padding-block: clamp(72px, 9vw, 120px); }
.cta h2 { margin: 18px 0 18px; }
.cta .lead { color: var(--coffee-soft); 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-bean { position: absolute; aspect-ratio: 40 / 56; height: auto; opacity: .1; }
.cb-1 { width: 220px; left: -40px; top: -60px; rotate: -24deg; }
.cb-2 { width: 160px; right: 8%; bottom: 8%; rotate: 32deg; }
.cb-3 { width: 100px; right: 32%; top: 10%; rotate: 70deg; }

/* 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(--sun-bright); }
.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: rgba(255, 251, 234, .6); 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(78, 45, 26, .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-art { position: relative; width: min(100%, 420px); aspect-ratio: 1; margin-inline: auto; }
.c-plate {
  position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%;
  background: linear-gradient(160deg, var(--tile), var(--tile2)); box-shadow: 0 34px 50px -22px rgba(78, 45, 26, .45);
}
.c-plate::after { content: ""; position: absolute; inset: 14px; border-radius: 50%; border: 1.5px dotted rgba(78, 45, 26, .4); }
.c-plate .art { width: 74%; }
.c-art .fb-1 { top: 2%; right: 8%; z-index: 1; }
.c-art .fb-2 { left: 0; top: 56%; z-index: 1; }

.subnav { position: sticky; top: var(--header-h); z-index: 40; background: rgba(255, 246, 207, .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(78, 45, 26, .08); }
.subnav ul a.is-active { background: var(--coffee); color: var(--sun); font-weight: 700; }

.overview { background: var(--cream); }
.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(--card); 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(--coffee); color: var(--sun); }
.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(--sun-bright); }
.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(--butter); }
.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(--cream); }
.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(--card); 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: rgba(255, 212, 59, .5); 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-bright); 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); }
.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); }

/* 13 · Footer & dock ----------------------------------------------------- */
.site-footer { position: relative; overflow: hidden; background: var(--sun-deep); color: var(--coffee-deep); 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: var(--coffee-soft); font-size: .94rem; line-height: 1.8; }
.site-footer h2 { font-family: var(--font-sans); font-size: .82rem; font-weight: 700; letter-spacing: .08em; color: var(--coffee-mid); margin-bottom: 16px; }
.footer-nav ul { display: grid; gap: 8px; }
.footer-nav a, .footer-contact a { color: var(--coffee-soft); transition: color .2s; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--coffee-deep); text-decoration: underline; text-underline-offset: 4px; }
.footer-contact ul { display: grid; gap: 8px; color: var(--coffee-soft); font-size: .94rem; }
.footer-legal { display: grid; gap: 4px; padding-block: 22px; border-top: 1.5px solid var(--line); font-size: .8rem; color: var(--coffee-soft); }
.footer-mark {
  margin-top: -.12em; text-align: center; white-space: nowrap; user-select: none; pointer-events: none;
  font-family: var(--font-display); font-style: italic; font-weight: 700; line-height: .9;
  font-size: clamp(4rem, 15vw, 15rem); letter-spacing: -.02em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(78, 45, 26, .2);
}

.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(78, 45, 26, .96); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 40px -10px rgba(58, 32, 15, .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: scale(.9) rotate(-4deg); } 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 .collage[data-reveal] { transform: translateY(40px) scale(.97); }
.reveal-ready .collage[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-art { width: min(100%, 520px); }
  .c-art { width: min(100%, 340px); }
  .scroll-cue { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .collage { 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: 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: 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-status { left: 0; top: 2%; font-size: .8rem; padding: 8px 14px; }
  .chip-brew { right: 0; bottom: 6%; min-width: 0; padding: 11px 14px; }
  .chip-brew strong { font-size: .9rem; }
  .chip-brew span { display: none; }
  .badge { left: 0; bottom: 2%; }
  .marquee-group span { font-size: 1.35rem; }
  .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-art .art { width: auto; height: 80%; }
  .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%; }

  .c-hero { padding-top: calc(var(--header-h) + 28px); }
  .c-hero .hero-actions { flex-wrap: wrap; }
  .c-hero .hero-actions .btn { flex: 1 1 100%; }
  .c-art { width: min(100%, 260px); }
  .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: rgba(255, 212, 59, .35); }
  .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: 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;
  }
  .marquee-track, .badge svg, .float-bean { animation: none !important; }
  .steam, .drop { opacity: 0 !important; }
}
