/* =========================================================
   FEIN ACADEMY — Landing page
   Editorial / minimal / warm espresso palette
   ========================================================= */

:root {
  --paper: #F2EDE4;
  --paper-2: #E9E1D4;
  --paper-3: #DDD2C1;
  --ink: #16120E;
  --ink-2: #221C16;
  --ink-3: #2E261E;
  --muted: #6B6056;
  --muted-light: #A99C8C;
  --accent: #A9532B;       /* roasted copper */
  --accent-dark: #8C4220;
  --crema: #D3AE82;
  --line: rgba(22, 18, 14, .14);
  --line-light: rgba(242, 237, 228, .16);

  --serif: "Fraunces", "Times New Roman", Georgia, serif;
  --sans: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1360px;
  --gutter: clamp(16px, 4vw, 56px);
  --section-y: clamp(88px, 12vw, 176px);
  --radius: 2px;
  --ease: cubic-bezier(.22, .8, .2, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
em { font-style: italic; }
::selection { background: var(--accent); color: var(--paper); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  background: var(--ink); color: var(--paper); padding: 10px 16px;
  transform: translateY(-200%); transition: transform .3s var(--ease);
}
.skip-link:focus { transform: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.placeholder { color: var(--muted); font-style: italic; }            /* 5.25:1 on paper */
.dark .placeholder, .site-footer .placeholder { color: var(--muted-light); } /* 6.9:1 on ink */

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow .idx {
  font-family: var(--serif); font-style: italic; font-size: 15px; letter-spacing: 0;
  text-transform: none; color: var(--accent);
}
.eyebrow .idx::after {
  content: ""; display: inline-block; width: 36px; height: 1px; background: currentColor;
  opacity: .5; vertical-align: middle; margin-left: 14px;
}
.eyebrow-light { color: var(--muted-light); }

.section-title {
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(40px, 6vw, 88px);
  line-height: 1.02;
  letter-spacing: -.025em;
  margin-top: 22px;
  font-variation-settings: "opsz" 144;
}
.section-title em, .statement em, .cta-title em, .hero-title em {
  font-style: italic; font-weight: 300; color: var(--accent);
}
.dark .section-title em { color: var(--crema); }
.section-lead { color: var(--muted); max-width: 42ch; font-size: 17px; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--paper); --fill: var(--accent);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 54px; padding: 0 28px;
  font-size: 14px; font-weight: 500; letter-spacing: .04em;
  background: var(--bg); color: var(--fg);
  border: 1px solid var(--bg); border-radius: 100px;
  transition: color .45s var(--ease), border-color .45s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--fill);
  transform: translateY(101%); border-radius: 50% 50% 0 0;
  transition: transform .55s var(--ease), border-radius .55s var(--ease);
}
.btn:hover::before { transform: translateY(0); border-radius: 0; }
.btn .arrow { display: inline-block; transition: transform .45s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }
.btn-sm { min-height: 42px; padding: 0 20px; font-size: 13px; }
.btn-block { width: 100%; }

.btn-accent { --bg: var(--accent); --fg: #fff; --fill: var(--ink); }
.btn-light { --bg: var(--paper); --fg: var(--ink); --fill: var(--accent); }
.btn-light:hover { color: #fff; border-color: var(--accent); }
.btn-ghost-light {
  --bg: transparent; --fg: var(--paper); --fill: var(--paper);
  border-color: var(--line-light);
}
.btn-ghost-light:hover { color: var(--ink); border-color: var(--paper); }

.link-cta {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 500; letter-spacing: .03em;
  padding-bottom: 4px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size .5s var(--ease);
}
.link-cta .arrow { transition: transform .45s var(--ease); }
.link-cta { position: relative; }
.link-cta::after { content: ""; position: absolute; inset: -9px -6px -7px; } /* ~44px tap area */
.link-cta:hover, .service-link:hover .link-cta { background-size: 0 1px; background-position: 100% 100%; }
.link-cta:hover .arrow, .service-link:hover .link-cta .arrow { transform: translateX(6px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  color: var(--paper);
  transition: background-color .5s var(--ease), color .5s var(--ease), transform .5s var(--ease), box-shadow .5s;
}
.site-header.is-scrolled {
  background: rgba(242, 237, 228, .9);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 40px; }

.logo { display: inline-flex; align-items: baseline; gap: 10px; line-height: 1; }
.logo-mark {
  font-family: var(--serif); font-weight: 500; font-size: 26px; letter-spacing: .08em;
}
.logo-sub {
  font-size: 10px; font-weight: 500; letter-spacing: .38em; text-transform: uppercase; opacity: .75;
}

.nav { margin-left: auto; }
.nav-list { display: flex; gap: 34px; }
.nav-list a {
  position: relative; font-size: 13.5px; font-weight: 400; letter-spacing: .02em; padding: 6px 0;
  opacity: .85; transition: opacity .3s;
}
.nav-list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.nav-list a:hover, .nav-list a.is-active { opacity: 1; }
.nav-list a:hover::after, .nav-list a.is-active::after { transform: scaleX(1); transform-origin: left; }

.site-header.is-scrolled .header-cta { --bg: var(--ink); --fg: var(--paper); }

.menu-toggle {
  display: none; width: 44px; height: 44px; margin-left: auto; position: relative; z-index: 120;
}
.menu-toggle span {
  position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor;
  transition: transform .45s var(--ease), top .45s var(--ease);
}
.menu-toggle span:nth-child(1) { top: 17px; }
.menu-toggle span:nth-child(2) { top: 26px; }
body.menu-open .menu-toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
body.menu-open .menu-toggle span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--ink); color: var(--paper);
  padding: calc(var(--header-h) + 32px) var(--gutter) 32px;
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .7s var(--ease-in-out);
  visibility: hidden;
}
body.menu-open .mobile-menu { clip-path: inset(0 0 0 0); visibility: visible; }
body.menu-open .site-header { color: var(--paper); background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.mobile-menu ol li { border-bottom: 1px solid var(--line-light); overflow: hidden; }
.mobile-menu ol a {
  display: flex; align-items: baseline; gap: 16px; padding: 16px 0;
  font-family: var(--serif); font-size: clamp(30px, 8vw, 44px); font-weight: 350; line-height: 1.1;
  transform: translateY(100%); transition: transform .7s var(--ease);
}
.mobile-menu ol a i { font-family: var(--sans); font-style: normal; font-size: 12px; color: var(--crema); letter-spacing: .1em; }
body.menu-open .mobile-menu ol a { transform: none; }
body.menu-open .mobile-menu ol li:nth-child(2) a { transition-delay: .05s; }
body.menu-open .mobile-menu ol li:nth-child(3) a { transition-delay: .1s; }
body.menu-open .mobile-menu ol li:nth-child(4) a { transition-delay: .15s; }
body.menu-open .mobile-menu ol li:nth-child(5) a { transition-delay: .2s; }
body.menu-open .mobile-menu ol li:nth-child(6) a { transition-delay: .25s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--ink); color: var(--paper);
  min-height: 100vh; min-height: 100svh;
  padding: calc(var(--header-h) + clamp(32px, 6vw, 72px)) 0 clamp(64px, 8vw, 104px);
  overflow: hidden;
}
.hero::after { /* subtle grain */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-grid {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: end;
  min-height: calc(100svh - var(--header-h) - 140px);
}
.hero-copy { grid-column: 1 / span 7; position: relative; z-index: 2; padding-bottom: clamp(0px, 3vw, 40px); }
.hero-title {
  font-family: var(--serif); font-weight: 330;
  font-size: clamp(46px, 7vw, 124px);
  line-height: .96; letter-spacing: -.035em;
  text-transform: uppercase;
  margin: 28px 0 36px;
  font-variation-settings: "opsz" 144;
}
.hero-title .line { display: block; overflow: hidden; white-space: nowrap; padding: .1em 0 .02em; margin-top: -.06em; }
.hero-title .line > span { display: inline-block; }
.js .hero-title .line > span { transform: translateY(110%); transition: transform 1.2s var(--ease); }
.hero-title .line:nth-child(2) > span { transition-delay: .12s; padding-left: .9em; }
.hero-title .line:nth-child(3) > span { transition-delay: .24s; }
.is-loaded .hero-title .line > span { transform: none; }
.hero-title em { text-transform: none; font-size: 1.04em; color: var(--crema); }

.hero-sub {
  font-size: clamp(16px, 1.4vw, 19px); font-weight: 300; color: #D9CFC2; max-width: 40ch; margin-bottom: 40px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-visual { grid-column: 8 / span 5; position: relative; align-self: stretch; min-height: 520px; }
.hero-img-main {
  position: absolute; inset: 0 0 60px 0; overflow: hidden; border-radius: var(--radius);
  background: var(--ink-3);
}
.hero-img-main img { width: 100%; height: 115%; object-fit: cover; filter: saturate(.85) contrast(1.05); }
.hero-img-inset {
  position: absolute; left: -22%; bottom: 0; width: 46%; aspect-ratio: 4 / 5; overflow: hidden;
  border: 8px solid var(--ink); background: var(--ink-3); z-index: 3;
}
.hero-img-inset img { width: 100%; height: 100%; object-fit: cover; }
.hero-caption {
  position: absolute; right: 0; bottom: 18px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted-light);
}
.hero-caption span { font-family: var(--serif); font-style: italic; letter-spacing: 0; color: var(--crema); margin-right: 8px; text-transform: none; font-size: 14px; }

.scroll-cue {
  position: absolute; left: var(--gutter); bottom: 28px; z-index: 3;
  display: none; align-items: center; gap: 12px;
  font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted-light);
}
.scroll-cue i { display: block; width: 48px; height: 1px; background: var(--line-light); position: relative; overflow: hidden; }
.scroll-cue i::after {
  content: ""; position: absolute; inset: 0; background: var(--crema);
  animation: cue 2.4s var(--ease-in-out) infinite;
}
@keyframes cue { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }

/* ---------- Marquee ---------- */
.marquee {
  background: var(--accent); color: #FBF3EA; overflow: hidden; white-space: nowrap;
  border-top: 1px solid rgba(0,0,0,.1);
}
.marquee-track {
  display: inline-flex; align-items: center; gap: 36px; padding: 20px 0;
  animation: marquee 38s linear infinite;
  font-family: var(--serif); font-size: clamp(20px, 2.4vw, 30px); font-weight: 350; font-style: italic;
}
.marquee-track b { font-style: normal; font-size: .55em; opacity: .7; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: var(--section-y) 0; position: relative; }
.section-head { margin-bottom: clamp(48px, 7vw, 96px); }
.section-head.split {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: end;
}
.section-head.split .section-lead { justify-self: end; }
.dark { background: var(--ink); color: var(--paper); }
.dark .section-lead { color: var(--muted-light); }

/* ---------- About ---------- */
.about-grid {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 48px;
}
.statement {
  grid-column: 1 / span 8;
  font-family: var(--serif); font-weight: 330;
  font-size: clamp(30px, 3.9vw, 58px); line-height: 1.12; letter-spacing: -.02em;
  font-variation-settings: "opsz" 144;
}
.about-body { grid-column: 8 / span 5; grid-row: 2; color: var(--ink-3); font-size: 17px; }
.about-body > p + p { margin-top: 18px; }
.pillars { margin-top: 48px; border-top: 1px solid var(--line); }
.pillars li {
  display: grid; grid-template-columns: 48px 1fr; column-gap: 12px;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.pillar-n { grid-row: span 2; font-family: var(--serif); font-style: italic; color: var(--accent); font-size: 18px; line-height: 1.4; }
.pillars h3 { font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.3; }
.pillars p { color: var(--muted); font-size: 15px; }

.about-grid > .ag-1 { grid-column: 1 / span 6; grid-row: 2; align-self: start; }
.ag-1 img { aspect-ratio: 4 / 5; }
.ag-2 { margin-top: 56px; width: 72%; margin-left: auto; }
.ag-2 img { aspect-ratio: 3 / 4; }
.about-grid figure img { width: 100%; object-fit: cover; }
.about-grid figure { overflow: hidden; }
.about-grid figcaption {
  margin-top: 14px; font-size: 13px; color: var(--muted); letter-spacing: .02em;
  display: flex; gap: 10px; align-items: center;
}
.about-grid figcaption::before { content: ""; width: 24px; height: 1px; background: var(--accent); }

/* ---------- Services ---------- */
.services-grid {
  display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(24px, 5vw, 96px); row-gap: clamp(56px, 7vw, 120px);
}
.service-card:nth-child(even) { margin-top: clamp(0px, 10vw, 180px); }
.service-link { display: block; }
.service-media {
  position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--paper-3);
}
.service-media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.02); transition: transform 1.4s var(--ease), filter .8s var(--ease);
  filter: saturate(.9);
}
.service-link:hover .service-media img { transform: scale(1.08); filter: saturate(1.05); }
.service-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(22,18,14,.45));
  opacity: .8; transition: opacity .6s;
}
.service-num {
  position: absolute; left: 22px; bottom: 16px; z-index: 2; color: var(--paper);
  font-family: var(--serif); font-weight: 300; font-size: clamp(54px, 6vw, 96px); line-height: 1; letter-spacing: -.04em;
  transition: transform .8s var(--ease);
}
.service-link:hover .service-num { transform: translateY(-8px); }
.service-body { padding-top: 28px; display: grid; gap: 12px; max-width: 520px; }
.service-en { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); font-weight: 500; }
.service-body h3 {
  font-family: var(--serif); font-weight: 380; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.12; letter-spacing: -.015em;
}
.service-body p:not(.service-en) { color: var(--muted); }
.service-body .link-cta { justify-self: start; margin-top: 8px; }

/* ---------- Programs ---------- */
.programs-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.programs-visual { position: sticky; top: calc(var(--header-h) + 32px); }
.pv-frame { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--ink-3); }
.pv-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.06); clip-path: inset(0 0 0 100%);
  transition: opacity .9s var(--ease), transform 1.4s var(--ease), clip-path 1s var(--ease-in-out);
}
.pv-img.is-active { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }
.pv-count {
  position: absolute; right: 16px; bottom: 14px; z-index: 2; font-size: 12px; letter-spacing: .14em; color: var(--paper);
  background: rgba(22,18,14,.55); padding: 6px 12px; border-radius: 100px; backdrop-filter: blur(6px);
}
.pv-count b { font-weight: 500; }

.programs-list { border-top: 1px solid var(--line-light); }
.program { border-bottom: 1px solid var(--line-light); }
.program-head {
  width: 100%; display: grid; grid-template-columns: 56px 1fr auto 28px; align-items: center; gap: 16px;
  padding: 30px 0; text-align: left;
}
.program-n { font-family: var(--serif); font-style: italic; color: var(--crema); font-size: 18px; }
.program-title {
  font-family: var(--serif); font-weight: 350; font-size: clamp(22px, 2.6vw, 38px); line-height: 1.15; letter-spacing: -.015em;
  transition: transform .6s var(--ease), color .4s;
}
.program-head:hover .program-title { transform: translateX(8px); }
.program:not(.is-open) .program-title { color: #CFC5B8; }
.program:not(.is-open) .program-head:hover .program-title { color: var(--paper); }
.program-tag {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-light);
  border: 1px solid var(--line-light); border-radius: 100px; padding: 5px 12px; white-space: nowrap;
}
.program-icon { position: relative; width: 20px; height: 20px; justify-self: end; }
.program-icon::before, .program-icon::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: var(--paper);
  transition: transform .5s var(--ease);
}
.program-icon::after { transform: rotate(90deg); }
.program.is-open .program-icon::after { transform: rotate(0); }

.program-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--ease); }
.program.is-open .program-panel { grid-template-rows: 1fr; }
.program-inner { overflow: hidden; padding-left: 72px; }
.program-inner > p { color: #D3C9BC; max-width: 56ch; font-size: 16.5px; }
.program-meta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; margin: 28px 0 28px; max-width: 640px;
}
.program-meta > div { padding: 14px 0; border-top: 1px solid var(--line-light); }
.program-meta dt { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-light); margin-bottom: 4px; }
.program-meta dd { font-size: 15px; }
.program-inner .link-cta { margin-bottom: 34px; color: var(--crema); }

/* ---------- Work / Gallery ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.filter {
  font-size: 13px; padding: 9px 18px; border: 1px solid var(--line); border-radius: 100px;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s;
}
.filter:hover { border-color: var(--ink); }
.filter.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.gallery {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(180px, 20vw, 290px);
  grid-auto-flow: dense; gap: clamp(10px, 1.4vw, 20px);
}
.g-item { position: relative; overflow: hidden; background: var(--paper-3); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.g-item.g-tall { grid-row: span 2; }
.g-item.g-wide { grid-column: span 2; }
.g-item.is-hidden { display: none; }
.g-item.is-entering { animation: gIn .7s var(--ease) both; }
@keyframes gIn { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.g-btn { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; }
.g-item:hover img { transform: scale(1.06); }
.g-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 18px 16px; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(22,18,14,.75));
  color: var(--paper); font-family: var(--serif); font-size: 18px; line-height: 1.2;
  transform: translateY(12px); opacity: 0; transition: transform .6s var(--ease), opacity .5s var(--ease);
}
.g-item figcaption span {
  display: block; font-family: var(--sans); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--crema); margin-bottom: 6px;
}
.g-item:hover figcaption, .g-item:focus-within figcaption { transform: none; opacity: 1; }
.gallery-note { margin-top: 24px; font-size: 13px; color: var(--muted); font-style: italic; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 300; background: rgba(16,13,10,.96);
  display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; padding: 64px 16px 32px;
  opacity: 0; transition: opacity .4s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox figure { display: grid; justify-items: center; gap: 14px; max-height: 100%; }
.lightbox img { max-height: calc(100vh - 160px); width: auto; max-width: 100%; object-fit: contain; }
.lightbox figcaption { color: var(--paper-2); font-family: var(--serif); font-size: 18px; text-align: center; }
.lightbox figcaption span { display: block; font-family: var(--sans); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--crema); }
.lb-close { position: absolute; top: 20px; right: 24px; color: var(--paper); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; padding: 8px; }
.lb-nav {
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-light); color: var(--paper); font-size: 18px;
  transition: background-color .3s, color .3s; justify-self: center;
}
.lb-nav:hover { background: var(--paper); color: var(--ink); }

/* ---------- Why ---------- */
.why { background: var(--paper-2); }
.why-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 7vw, 120px); align-items: start; }
.why-aside { position: sticky; top: calc(var(--header-h) + 32px); }
.why-img { margin-top: 48px; overflow: hidden; aspect-ratio: 1 / 1; max-width: 420px; }
.why-img img { width: 100%; height: 115%; object-fit: cover; }
.why-list { counter-reset: why; }
.why-item {
  display: grid; grid-template-columns: clamp(80px, 9vw, 140px) 1fr; gap: 16px;
  padding: clamp(32px, 4vw, 52px) 0; border-top: 1px solid var(--line);
}
.why-item:last-child { border-bottom: 1px solid var(--line); }
.why-n {
  font-family: var(--serif); font-weight: 300; font-size: clamp(48px, 6vw, 88px); line-height: .9; letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1px var(--accent);
  transition: color .6s var(--ease);
}
.why-item:hover .why-n { color: var(--accent); }
.why-item h3 { font-family: var(--serif); font-weight: 380; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.15; letter-spacing: -.015em; margin-bottom: 12px; }
.why-item p { color: var(--muted); max-width: 52ch; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; color: var(--paper); background: var(--ink); padding: clamp(110px, 14vw, 200px) 0; }
.cta-bg { position: absolute; inset: 0; }
.cta-bg img { width: 100%; height: 125%; object-fit: cover; opacity: .38; filter: saturate(.7); }
.cta-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(22,18,14,.85), rgba(22,18,14,.35)); }
.cta-inner { position: relative; z-index: 2; }
.cta-title {
  font-family: var(--serif); font-weight: 330; font-size: clamp(38px, 6.4vw, 96px); line-height: 1.02; letter-spacing: -.03em;
  margin: 24px 0 44px; max-width: 16ch; font-variation-settings: "opsz" 144;
}
.cta-title em { color: var(--crema); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.contact-info .section-lead { margin-top: 28px; }
.contact-list { margin-top: 48px; border-top: 1px solid var(--line); }
.contact-list li {
  display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: baseline;
}
.cl-label { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.cl-value { font-family: var(--serif); font-size: 20px; }
a.cl-value { transition: color .3s; }
a.cl-value:hover { color: var(--accent); }

.contact-form {
  background: var(--ink); color: var(--paper); padding: clamp(28px, 4.5vw, 64px);
  display: grid; gap: 28px; position: relative;
}
.form-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.form-row.three { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; } /* 3 selects: 2 + 1, labels never truncated */
.field.select select { text-overflow: ellipsis; padding-right: 22px; }
.field { position: relative; }
.field input, .field textarea, .field select {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line-light);
  color: var(--paper); font: inherit; font-size: 16px; padding: 26px 0 12px; border-radius: 0;
  transition: border-color .4s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 96px; }
.field label {
  position: absolute; left: 0; top: 26px; font-size: 15px; color: var(--muted-light); pointer-events: none;
  transform-origin: left top; transition: transform .4s var(--ease), color .4s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--crema); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label {
  transform: translateY(-22px) scale(.78); color: var(--crema);
}
.field::after { /* animated underline */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--crema);
  transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease);
}
.field:focus-within::after { transform: scaleX(1); }
.field.select select { cursor: pointer; color: var(--paper); }
.field.select select option { color: var(--ink); }
.field.select::before {
  content: ""; position: absolute; right: 4px; top: 34px; width: 8px; height: 8px;
  border-right: 1.5px solid var(--muted-light); border-bottom: 1.5px solid var(--muted-light); transform: rotate(45deg); pointer-events: none;
}
.field.has-error input { border-color: #E0866A; }
.field-error { display: block; font-size: 12.5px; color: #F0A58C; margin-top: 6px; min-height: 0; }

.chips { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips legend { font-size: 13px; color: var(--muted-light); margin-bottom: 14px; padding: 0; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block; font-size: 13.5px; padding: 9px 16px; border: 1px solid var(--line-light); border-radius: 100px;
  transition: background-color .3s var(--ease), color .3s, border-color .3s;
}
.chip:hover span { border-color: var(--paper); }
.chip input:checked + span { background: var(--crema); color: var(--ink); border-color: var(--crema); }
.chip input:focus-visible + span { outline: 2px solid var(--crema); outline-offset: 2px; }

.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; margin-top: 8px; }
.form-hint { font-size: 13px; color: var(--muted-light); }
.btn-submit.is-loading { pointer-events: none; opacity: .7; }
.form-error { font-size: 14px; color: #F0A58C; border-left: 2px solid #E0866A; padding: 4px 0 4px 12px; }
.form-error[hidden] { display: none; }
.form-success:focus { outline: none; }
.fs-again { justify-self: start; align-self: flex-start; margin-top: 12px; color: var(--crema); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-success {
  position: absolute; inset: 0; background: var(--ink); padding: clamp(28px, 4.5vw, 64px);
  display: flex; flex-direction: column; justify-content: center; gap: 12px;
  animation: gIn .7s var(--ease) both;
}
.form-success[hidden] { display: none; }
.fs-title { font-family: var(--serif); font-size: clamp(40px, 5vw, 64px); font-weight: 330; color: var(--crema); line-height: 1; }
.form-success p:not(.fs-title) { color: #D3C9BC; max-width: 42ch; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding: clamp(72px, 9vw, 120px) 0 32px; overflow: hidden; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: end; padding-bottom: 56px; border-bottom: 1px solid var(--line-light); }
.footer-word {
  font-family: var(--serif); font-weight: 300; font-size: clamp(88px, 17vw, 260px); line-height: .8; letter-spacing: -.02em;
  display: flex; align-items: flex-end; gap: 16px;
}
.footer-word span {
  font-family: var(--sans); font-size: clamp(11px, 1vw, 14px); font-weight: 500; letter-spacing: .4em; text-transform: uppercase;
  color: var(--crema); padding-bottom: .9em;
}
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.f-label { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-light); margin-bottom: 16px; }
.footer-cols li { font-size: 14.5px; padding: 4px 0; color: #D3C9BC; }
.footer-cols a { transition: color .3s; }
.footer-cols a:hover { color: var(--crema); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; font-size: 13px; color: var(--muted-light); }
.to-top:hover { color: var(--paper); }

/* Mobile sticky CTA */
.mobile-cta { display: none; }

/* ---------- Zalo floating button ---------- */
.zalo-fab {
  --zalo: #0068FF;
  position: fixed; right: 24px; bottom: 24px; z-index: 85;
  display: block; border-radius: 50%;
  transition: bottom .5s var(--ease), transform .4s var(--ease);
}
.zalo-fab-icon {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--zalo); color: #fff;
  font-family: var(--sans); font-weight: 600; font-size: 14.5px; letter-spacing: -.01em;
  box-shadow: 0 10px 24px -8px rgba(0, 72, 180, .55), 0 2px 6px rgba(22, 18, 14, .18);
  border: 2px solid rgba(255, 255, 255, .9);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.zalo-fab-label {
  font-size: 13px; font-weight: 500; letter-spacing: .02em; white-space: nowrap;
  background: var(--ink); color: var(--paper);
  padding: 9px 14px; border-radius: 100px;
  box-shadow: 0 6px 18px -6px rgba(22, 18, 14, .4);
  position: absolute; right: calc(100% + 10px); top: 50%;
  opacity: 0; transform: translate(8px, -50%); pointer-events: none;
  transition: opacity .35s var(--ease), transform .45s var(--ease);
}
.zalo-fab:hover .zalo-fab-icon, .zalo-fab:focus-visible .zalo-fab-icon {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px -10px rgba(0, 72, 180, .6), 0 3px 8px rgba(22, 18, 14, .2);
}
.zalo-fab:hover .zalo-fab-label, .zalo-fab:focus-visible .zalo-fab-label { opacity: 1; transform: translate(0, -50%); }
.zalo-fab:focus-visible { outline: none; }
.zalo-fab:focus-visible .zalo-fab-icon { outline: 2px solid var(--accent); outline-offset: 3px; }
body.menu-open .zalo-fab { opacity: 0; pointer-events: none; }

@media (max-width: 680px) {
  .zalo-fab { right: 14px; bottom: calc(16px + env(safe-area-inset-bottom)); }
  .zalo-fab-icon { width: 52px; height: 52px; font-size: 13.5px; }
  .zalo-fab-label { display: none; }
  /* sit above the sticky "Gọi ngay / Đăng ký" bar while it is showing */
  .mobile-cta.is-visible ~ .zalo-fab { bottom: calc(80px + env(safe-area-inset-bottom)); }
}

/* ---------- Reveal animations ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
/* clip lives on the <img> so the observed figure keeps its real box */
.js .img-reveal img { clip-path: inset(100% 0 0 0); transform: scale(1.18); transition: clip-path 1.3s var(--ease-in-out), transform 1.8s var(--ease); }
.js .img-reveal.is-in img { clip-path: inset(0 0 0 0); transform: scale(1); }
.js .img-reveal figcaption { opacity: 0; transition: opacity 1s var(--ease) .6s; }
.js .img-reveal.is-in figcaption { opacity: 1; }
img[data-parallax] { position: relative; top: -10%; height: 120% !important; }
.js img[data-parallax].px-ready { transform: translate3d(0, var(--py, 0px), 0) !important; transition: none !important; will-change: transform; }
[data-delay="1"] { transition-delay: .1s !important; }
[data-delay="2"] { transition-delay: .2s !important; }
[data-delay="3"] { transition-delay: .35s !important; }
[data-delay="4"] { transition-delay: .5s !important; }
.js .img-reveal[data-delay="3"] img, .js .img-reveal[data-delay="2"] img { transition-delay: .25s; }

/* ---------- Responsive ---------- */
@media (min-width: 1100px) {
  .scroll-cue { display: inline-flex; }
}

@media (max-width: 1100px) {
  .nav-list { gap: 22px; }
  .hero-img-inset { left: -14%; width: 44%; }
}

@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .nav, .header-cta { display: none; }
  .menu-toggle { display: block; }

  .hero-grid { display: flex; flex-direction: column; align-items: stretch; min-height: 0; }
  .hero-title { font-size: clamp(46px, 10.5vw, 96px); }
  .hero-copy { order: 1; padding-bottom: 0; }
  .hero-visual { order: 2; min-height: 0; aspect-ratio: 4 / 3.6; margin-top: 56px; }
  .hero-img-main { inset: 0 0 0 18%; }
  .hero-img-inset { left: 0; bottom: -24px; width: 38%; }
  .hero-caption { display: none; }

  .section-head.split { grid-template-columns: 1fr; gap: 24px; }
  .section-head.split .section-lead { justify-self: start; }
  .filters { justify-content: flex-start; }

  .statement { grid-column: 1 / -1; }
  .about-body { grid-column: 1 / -1; grid-row: auto; }
  .about-grid > .ag-1 { grid-column: 1 / -1; grid-row: auto; order: 3; }
  .ag-2 { width: 60%; }

  .programs-grid { grid-template-columns: 1fr; }
  .programs-visual { display: none; }

  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 42vw; }

  .why-grid { grid-template-columns: 1fr; }
  .why-aside { position: static; }
  .why-img { display: none; }

  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  body { font-size: 15.5px; }
  .hero { padding-bottom: 72px; }
  .hero-title { margin: 22px 0 26px; }
  .hero-title .line:nth-child(2) > span { padding-left: .4em; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-visual { aspect-ratio: 1 / 1.05; margin-top: 44px; }
  .hero-img-main { inset: 0 0 0 12%; }

  .ag-2 { width: 70%; }

  .services-grid { grid-template-columns: 1fr; row-gap: 64px; }
  .service-card:nth-child(n) { margin-top: 0; }
  .service-media { aspect-ratio: 5 / 4; }

  .program-head { grid-template-columns: 36px 1fr 24px; padding: 24px 0; }
  .program-tag { display: none; }
  .program-inner { padding-left: 0; }
  .program-meta { grid-template-columns: 1fr; }

  .filters {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 4px;
  }
  .filters::-webkit-scrollbar { display: none; }
  .filter { white-space: nowrap; flex: none; }
  .gallery { grid-auto-rows: 56vw; gap: 8px; }
  .g-item.g-wide { grid-column: span 2; }
  .g-item figcaption { opacity: 1; transform: none; font-size: 15px; padding: 36px 12px 10px; }
  .g-item figcaption span { font-size: 9.5px; }

  .why-item { grid-template-columns: 1fr; gap: 8px; }

  .form-row.two, .form-row.three { grid-template-columns: 1fr; }
  .form-foot .btn { width: 100%; }
  .contact-list li { grid-template-columns: 1fr; gap: 2px; }

  .footer-cols { grid-template-columns: 1fr; }
  .footer-cols li { padding: 0; }
  .footer-cols a { display: inline-block; padding: 10px 0; }
  .to-top { display: inline-block; padding: 10px 0; margin: -10px 0; }
  a.cl-value { display: inline-block; padding: 5px 0; margin: -5px 0; }
  .logo { padding: 9px 0; }
  .lightbox { grid-template-columns: 1fr; padding: 60px 12px 24px; }
  .lb-nav { display: none; }

  .mobile-cta {
    display: grid; grid-template-columns: 1fr 2fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(242,237,228,.94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    transform: translateY(110%); transition: transform .5s var(--ease);
  }
  .mobile-cta.is-visible { transform: none; }
  .mobile-cta a {
    display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 100px;
    font-size: 14px; font-weight: 500;
  }
  .mc-call { border: 1px solid var(--ink); }
  .mc-main { background: var(--accent); color: #fff; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .img-reveal img { transform: none; clip-path: none; }
  .js .img-reveal figcaption { opacity: 1; }
  .hero-title .line > span { transform: none; }
  .marquee-track { animation: none; }
}
