/* =============================================================
   KYO — public site styles (mobile-first)

   Colour system
   - Base: warm light paper. Sections alternate paper / paper-2 (tone-base / tone-alt).
   - Charcoal: text, primary buttons, footer, photo viewer (controlled accent).
   - Champagne gold: thin dividers, small labels, focus ring, "popular" marker only.

   Contrast (WCAG AA) checked:
     charcoal #0E0E10 on paper #FAF7F2 ........ 18.1:1   on paper-2 #F3EDE3 ... 16.6:1
     muted    #57534C on paper ................. 7.2:1    on paper-2 ........... 6.6:1
     gold-deep #7A6033 on paper ................ 5.5:1    on paper-2 ........... 5.0:1
     ivory on charcoal (buttons, footer) ....... 18.1:1
     gold #C9A96E on charcoal (footer labels) .. 8.6:1
     gold #C9A96E is only 2.1:1 on paper → used for lines/decoration, never for text there.

   Spacing & width
   - One container width, one text measure, one spacing scale (below).
   ============================================================= */

:root {
  --ink: #0E0E10;
  --ink-2: #2A2A2F;
  --paper: #FAF7F2;
  --paper-2: #F3EDE3;
  --card: #FFFDF9;
  --muted: #57534C;
  --gold: #C9A96E;
  --gold-deep: #7A6033;
  --ivory: #FAF7F2;
  --muted-on-ink: #B9B3A8;
  --line: rgba(14, 14, 16, 0.12);
  --line-strong: rgba(14, 14, 16, 0.22);
  --line-gold: rgba(122, 96, 51, 0.35);
  --error: #A3271C;
  --focus: var(--gold-deep);

  --serif: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* type scale — kept modest so Vietnamese headlines wrap into whole phrases */
  --fs-h1: clamp(2.125rem, 1.6rem + 2.6vw, 3.5rem);
  --fs-h2: clamp(1.75rem, 1.35rem + 1.6vw, 2.5rem);
  --fs-h3: clamp(1.3rem, 1.2rem + 0.4vw, 1.5rem);
  --fs-body: 1rem;
  --fs-lead: clamp(1.02rem, 0.98rem + 0.25vw, 1.125rem);
  --fs-small: 0.875rem;
  --fs-label: 0.75rem;

  /* spacing scale */
  --sp-1: 0.5rem;
  --sp-2: 0.75rem;
  --sp-3: 1rem;
  --sp-4: 1.5rem;
  --sp-5: 2rem;
  --sp-6: 3rem;
  --section-y: clamp(3.5rem, 2.5rem + 5vw, 6.5rem);
  --head-gap: clamp(2rem, 1.5rem + 2vw, 3rem);
  --grid-gap: clamp(1.25rem, 1rem + 1.2vw, 2rem);

  /* widths */
  --container: 1120px;
  --gutter: clamp(1.25rem, 0.8rem + 2.4vw, 2.5rem);
  --measure: 40rem;

  --header-h: 64px;
  --radius: 2px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Section tones (alternated by site.js across visible sections) */
.tone-base { background: var(--paper); }
.tone-alt { background: var(--paper-2); }

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--paper); }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
html.is-locked, html.is-locked body { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: calc(var(--header-h) + 8px); }
main:focus, section:focus, form:focus, .form-success:focus { outline: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: var(--radius); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--ivory);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: none; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Typography ---------- */
.label {
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.label--small { font-size: 0.6875rem; letter-spacing: 0.18em; }

.hero__title, .section__title, .contact__title {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.005em;
  text-wrap: balance;
  hyphens: none;
  overflow-wrap: normal;
}
.hero__title { font-size: var(--fs-h1); line-height: 1.08; max-width: 20ch; }
.section__title, .contact__title { font-size: var(--fs-h2); line-height: 1.12; max-width: 28ch; margin-top: var(--sp-2); }

.section { padding-block: var(--section-y); }
.section__head { max-width: var(--measure); margin-bottom: var(--head-gap); }
.section__intro { margin-top: var(--sp-3); color: var(--muted); font-size: var(--fs-lead); max-width: var(--measure); text-wrap: pretty; }
.divider { display: block; width: 48px; height: 1px; margin-top: var(--sp-4); background: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }
.btn--primary { background: var(--ink); color: var(--ivory); }
.btn--primary:hover { background: var(--ink-2); border-color: var(--ink-2); }
.btn--outline:hover { background: var(--ink); color: var(--ivory); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 0.72rem; }
.btn--block { width: 100%; }
.btn .icon { flex: none; }
.btn__spinner {
  display: none;
  width: 16px; height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.btn.is-loading .btn__spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 48px; height: 48px;
  padding: 0;
  border: 1px solid rgba(250, 247, 242, 0.25);
  border-radius: 50%;
  background: rgba(14, 14, 16, 0.6);
  color: var(--ivory);
  transition: border-color 0.25s, background-color 0.25s;
}
.icon-btn:hover { border-color: var(--gold); }

/* ---------- Empty photo slot ("Cần thay ảnh trước khi đăng") ---------- */
.photo-slot {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: var(--sp-2);
  width: 100%;
  aspect-ratio: var(--ratio, 4 / 5);
  padding: var(--sp-4);
  border: 1px dashed var(--line-strong);
  background: var(--card);
  color: var(--muted);
  text-align: center;
}
.photo-slot .icon { color: var(--gold-deep); }
.photo-slot__label { font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; max-width: 22ch; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(250, 247, 242, 0.92);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; color: var(--ink); }
.brand__mark {
  display: inline-grid;
  place-items: center;
  width: 34px; height: 34px;
  flex: none;
  border: 1px solid var(--gold-deep);
  color: var(--gold-deep);
  font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
  font-size: 1.1rem;
  line-height: 1;
}
.brand__name { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.1em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.nav__toggle {
  display: inline-grid;
  place-content: center;
  gap: 7px;
  width: 48px; height: 48px;
  margin-right: -12px;
  padding: 0;
  border: 0;
  background: none;
}
.nav__toggle-bar { display: block; width: 22px; height: 1.5px; background: var(--ink); transition: transform 0.35s var(--ease); }
.nav.is-open .nav__toggle-bar:first-child { transform: translateY(4.25px) rotate(45deg); }
.nav.is-open .nav__toggle-bar:last-child { transform: translateY(-4.25px) rotate(-45deg); }

.nav__menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--sp-5);
  padding: var(--sp-5) var(--gutter) calc(var(--sp-5) + env(safe-area-inset-bottom));
  background: var(--paper);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0s linear 0.3s;
}
.nav.is-open .nav__menu { opacity: 1; visibility: visible; transition: opacity 0.3s var(--ease), visibility 0s; }
.nav__links { display: grid; }
.nav__links a {
  display: block;
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}
.nav__links a.is-active { color: var(--gold-deep); }
.nav__cta { min-height: 52px; }

@media (min-width: 960px) {
  :root { --header-h: 72px; }
  .nav__toggle { display: none; }
  .nav__menu {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: var(--sp-5);
    padding: 0;
    background: none;
    opacity: 1;
    visibility: visible;
    overflow: visible;
  }
  .nav__links { display: flex; gap: var(--sp-4); }
  .nav__links a {
    position: relative;
    padding: 6px 0;
    border: 0;
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }
  .nav__links a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease);
  }
  .nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
  .nav__links a.is-active { color: var(--ink); }
  .nav__cta { min-height: 42px; }
}

/* ---------- Hero ---------- */
.hero { padding-block: var(--sp-5) var(--section-y); }
.hero__grid { display: grid; gap: var(--sp-5); align-items: center; }
.hero__title { margin-top: var(--sp-2); }
.hero__sub { margin-top: var(--sp-3); max-width: 34rem; color: var(--muted); font-size: var(--fs-lead); text-wrap: pretty; }
.hero__ctas { display: grid; gap: var(--sp-2); margin-top: var(--sp-4); }
.hero__facts { display: flex; flex-wrap: wrap; gap: var(--sp-1); margin-top: var(--sp-4); }
.hero__facts li { padding: 6px 12px; border: 1px solid var(--line-gold); border-radius: 999px; font-size: var(--fs-small); }
.hero__visual { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--sp-2); }
.hero__frame { grid-column: 1 / -1; overflow: hidden; background: var(--card); }
.hero__frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.hero__visual--pair .hero__frame--main { grid-column: 1 / span 4; }
.hero__visual--pair .hero__frame--sub { grid-column: 5 / span 2; align-self: end; }
.hero__visual--pair .hero__frame--sub img { aspect-ratio: 3 / 4; }

@media (min-width: 560px) {
  .hero__ctas { display: flex; flex-wrap: wrap; }
}
@media (min-width: 960px) {
  .hero { padding-top: var(--sp-6); }
  .hero__grid { grid-template-columns: 1fr 1fr; gap: var(--sp-6); }
  .hero__visual { width: 100%; max-width: 30rem; justify-self: end; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__text > *, .hero__visual { animation: rise 0.8s var(--ease) both; }
  .hero__text > *:nth-child(2) { animation-delay: 0.06s; }
  .hero__text > *:nth-child(3) { animation-delay: 0.12s; }
  .hero__text > *:nth-child(4) { animation-delay: 0.18s; }
  .hero__text > *:nth-child(5) { animation-delay: 0.24s; }
  .hero__visual { animation-delay: 0.15s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Scroll reveal ---------- */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- Skeletons ---------- */
.is-skeleton { position: relative; overflow: hidden; background: rgba(14, 14, 16, 0.05); pointer-events: none; }
.is-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.55) 50%, transparent 80%);
  transform: translateX(-100%);
  animation: shimmer 1.6s infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }

/* ---------- Works ---------- */
.filters {
  display: flex;
  gap: var(--sp-1);
  margin: 0 calc(var(--gutter) * -1) var(--sp-5);
  padding: 2px var(--gutter);
  overflow-x: auto;
  scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }
.chip-btn {
  flex: none;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  font-size: var(--fs-small);
  font-weight: 500;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.chip-btn:hover { border-color: var(--ink); }
.chip-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--ivory); }

.works-grid { display: grid; gap: var(--grid-gap); }
.work-card { min-width: 0; }
.work-card.is-skeleton { aspect-ratio: 4 / 5; }
.work-card__btn { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; color: inherit; }
.work-card__media { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--card); }
.work-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.work-card__btn:hover .work-card__media img, .work-card__btn:focus-visible .work-card__media img { transform: scale(1.04); }
.work-card__play {
  position: absolute;
  left: var(--sp-2); top: var(--sp-2);
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px 6px 8px;
  border-radius: 999px;
  background: rgba(14, 14, 16, 0.78);
  color: var(--ivory);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.work-card__count {
  position: absolute;
  right: var(--sp-2); bottom: var(--sp-2);
  z-index: 1;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(250, 247, 242, 0.92);
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.work-card__meta { padding-top: var(--sp-2); }
.work-card__title { margin-top: 4px; font-family: var(--serif); font-size: var(--fs-h3); font-weight: 600; line-height: 1.2; text-wrap: balance; }
.work-card__excerpt {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-wrap: pretty;
}
.work-card__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--sp-2);
  padding-bottom: 2px;
  border-bottom: 1px solid var(--line-gold);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.work-card__more .icon { transition: transform 0.3s var(--ease); }
.work-card__btn:hover .work-card__more, .work-card__btn:focus-visible .work-card__more { border-bottom-color: var(--ink); }
.work-card__btn:hover .work-card__more .icon, .work-card__btn:focus-visible .work-card__more .icon { transform: translateX(3px); }
.works-empty { padding: var(--sp-5) 0; color: var(--muted); }
/* No photos yet: compact grid of empty frames (2 columns even on phones) */
.works-grid--empty { grid-template-columns: repeat(2, 1fr); }
.works-grid--empty .photo-slot { padding: var(--sp-2); }
.works-grid--empty .work-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.works-grid--empty .work-card:last-child:nth-child(odd) .photo-slot { aspect-ratio: 16 / 10; }
@media (min-width: 640px) {
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .filters { flex-wrap: wrap; margin-inline: 0; padding-inline: 0; overflow: visible; }
}
@media (min-width: 640px) {
  .works-grid--empty { grid-template-columns: repeat(3, 1fr); }
  .works-grid--empty .work-card:last-child:nth-child(odd) { grid-column: auto; }
  .works-grid--empty .work-card:last-child:nth-child(odd) .photo-slot { aspect-ratio: 4 / 5; }
}
@media (min-width: 1024px) { .works-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Lightbox (charcoal: best for judging photos) ---------- */
.lightbox {
  width: 100%; height: 100%;
  max-width: 100%; max-height: 100%;
  margin: 0; padding: 0; border: 0;
  background: rgba(10, 10, 12, 0.97);
  color: var(--ivory);
  --focus: var(--gold);
}
.lightbox::backdrop { background: rgba(10, 10, 12, 0.9); }
.lightbox[open] { display: block; }
@media (prefers-reduced-motion: no-preference) { .lightbox[open] { animation: fade 0.3s var(--ease); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.lightbox__inner {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100%;
  padding: max(12px, env(safe-area-inset-top)) var(--gutter) max(20px, env(safe-area-inset-bottom));
}
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; min-height: 56px; }
.lightbox__counter { font-size: 0.78rem; letter-spacing: 0.16em; color: var(--muted-on-ink); }
.lightbox__stage { display: grid; place-items: center; min-height: 0; touch-action: pan-y; user-select: none; }
.lightbox__stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lightbox__video { position: relative; width: min(100%, 1100px); aspect-ratio: 16 / 9; max-height: 100%; background: #000; }
.lightbox__video--vertical { width: auto; height: 100%; aspect-ratio: 9 / 16; max-width: 100%; }
.lightbox__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lightbox__info { max-width: 40rem; margin: 0 auto; padding-top: var(--sp-3); text-align: center; }
.lightbox__info .label { color: var(--gold); }
.lightbox__title { margin-top: 4px; font-family: var(--serif); font-size: var(--fs-h3); font-weight: 600; line-height: 1.2; }
.lightbox__desc { margin-top: 6px; color: var(--muted-on-ink); font-size: var(--fs-small); }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: max(8px, calc(var(--gutter) / 3)); }
.lightbox__nav--next { right: max(8px, calc(var(--gutter) / 3)); }
@media (max-width: 639px) {
  .lightbox__nav { top: auto; bottom: max(20px, env(safe-area-inset-bottom)); transform: none; width: 44px; height: 44px; }
  .lightbox__info { padding-inline: 52px; }
}

/* ---------- Story page (one photo set, its own feelings) ---------- */
.story {
  width: 100%; height: 100%;
  max-width: 100%; max-height: 100%;
  margin: 0; padding: 0; border: 0;
  background: var(--paper);
  color: var(--ink);
}
.story::backdrop { background: rgba(14, 14, 16, 0.55); }
.story[open] { display: flex; flex-direction: column; }
@media (prefers-reduced-motion: no-preference) { .story[open] { animation: story-in 0.4s var(--ease); } }
@keyframes story-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.story__bar {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  min-height: calc(60px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) max(8px, calc(var(--gutter) - 12px)) 0 var(--gutter);
  border-bottom: 1px solid var(--line);
  background: rgba(250, 247, 242, 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.story__counter { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-deep); }
.story__tools { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.story__tool {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.story__tool:hover { border-color: var(--ink); }
.story__close { display: inline-grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: none; }
.story__close:hover { background: var(--paper-2); }
.story__scroll { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.story__article {
  --story-measure: 38rem;
  display: grid;
  gap: var(--sp-6);
  width: 100%;
  max-width: calc(68rem + var(--gutter) * 2);
  margin-inline: auto;
  padding: var(--sp-5) var(--gutter) calc(var(--sp-6) + env(safe-area-inset-bottom));
}
.story__article > :not(.story__cover):not(.story__gallery-wrap) { width: 100%; max-width: var(--story-measure); margin-inline: auto; }
.story__head { text-align: center; }
.story__title {
  margin-top: var(--sp-2);
  font-family: var(--serif);
  font-size: var(--fs-h1);
  font-weight: 600;
  line-height: 1.08;
  text-wrap: balance;
}
.story__title:focus { outline: none; }
.story__details { margin-top: var(--sp-3); color: var(--muted); font-size: var(--fs-small); letter-spacing: 0.04em; }
.story__cover { margin-top: calc(var(--sp-5) * -1); }
.story__cover-btn { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--card); cursor: zoom-in; }
.story__cover-btn img { width: 100%; max-height: 82vh; object-fit: cover; }
.story__play {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px 0 18px;
  border-radius: 999px;
  background: rgba(14, 14, 16, 0.82);
  color: var(--ivory);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.story__feel { position: relative; display: grid; gap: var(--sp-3); }
.story__feel::before { content: ""; display: block; width: 48px; height: 1px; margin-bottom: var(--sp-1); background: var(--gold); }
.story__lead {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 1.2rem + 0.9vw, 1.85rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.4;
  text-wrap: pretty;
}
.story__para { color: var(--ink-2); font-size: var(--fs-lead); line-height: 1.75; text-wrap: pretty; }
.story__sign { margin-top: var(--sp-1); font-family: var(--serif); font-size: 1.25rem; font-style: italic; color: var(--gold-deep); }
.story__gallery-wrap { display: grid; gap: var(--sp-3); }
.story__gallery-wrap > .label { width: 100%; max-width: var(--story-measure); margin-inline: auto; }
.story__gallery { columns: 2; column-gap: 10px; }
.story__gallery li { break-inside: avoid; margin-bottom: 10px; }
.story__photo { display: block; width: 100%; padding: 0; border: 0; background: var(--card); cursor: zoom-in; overflow: hidden; }
.story__photo img { width: 100%; transition: transform 0.8s var(--ease), opacity 0.3s; }
.story__photo:hover img { transform: scale(1.03); }
@media (min-width: 900px) { .story__gallery { columns: 3; column-gap: 14px; } .story__gallery li { margin-bottom: 14px; } }
.story__edit { display: grid; gap: var(--sp-2); padding: var(--sp-4); border: 1px solid var(--line); background: var(--card); }
.story__edit p:not(.label) { color: var(--ink-2); }
.story__client { display: grid; gap: var(--sp-3); padding-left: var(--sp-4); border-left: 1px solid var(--gold); }
.story__client blockquote { margin: 0; font-family: var(--serif); font-size: 1.35rem; font-style: italic; line-height: 1.45; }
.story__client figcaption { font-size: var(--fs-small); font-weight: 600; }
.story__cta { display: grid; justify-items: center; gap: var(--sp-3); padding: var(--sp-5) var(--sp-4); border-block: 1px solid var(--line-gold); text-align: center; }
.story__cta-title { font-family: var(--serif); font-size: var(--fs-h3); font-weight: 600; line-height: 1.25; }
.story__nav { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); }
.story__nav-btn {
  display: grid;
  align-content: start;
  gap: 6px;
  min-height: 84px;
  padding: var(--sp-3);
  border: 1px solid var(--line);
  background: var(--card);
  text-align: left;
  transition: border-color 0.2s;
}
.story__nav-btn:hover { border-color: var(--ink); }
.story__nav-btn--next { text-align: right; justify-items: end; }
.story__nav-dir { display: inline-flex; align-items: center; gap: 6px; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-deep); }
.story__nav-title { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; line-height: 1.25; }
@media (max-width: 479px) { .story__tool span { display: none; } .story__tool { width: 44px; padding: 0; justify-content: center; } }
@media (min-width: 960px) { .story__cover { margin-top: calc(var(--sp-4) * -1); } }

/* ---------- Before / After ---------- */
.ba-list { display: grid; gap: var(--grid-gap); }
.ba-list > .is-skeleton { aspect-ratio: 16 / 10; max-width: 44rem; }
.ba-list .photo-slot { max-width: 44rem; }
@media (min-width: 960px) { .ba-list--multi { grid-template-columns: repeat(2, 1fr); } }
.compare__stage {
  --pos: 50%;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--card);
  cursor: ew-resize;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.compare__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 44px; margin-left: -22px; display: grid; place-items: center; outline: none; }
.compare__handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1.5px; margin-left: -0.75px; background: var(--ivory); box-shadow: 0 0 10px rgba(0, 0, 0, 0.35); }
.compare__knob {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--ivory);
  color: var(--ink);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}
.compare__knob .icon { margin: 0 -3px; }
.compare__handle:focus-visible .compare__knob { outline: 2px solid var(--gold); outline-offset: 4px; }
.compare__tag {
  position: absolute;
  top: var(--sp-2);
  padding: 5px 10px;
  background: rgba(14, 14, 16, 0.75);
  color: var(--ivory);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  pointer-events: none;
}
.compare__tag--before { left: var(--sp-2); }
.compare__tag--after { right: var(--sp-2); }
.compare__caption { display: grid; gap: 4px; margin-top: var(--sp-2); color: var(--muted); font-size: var(--fs-small); }
.compare__title { color: var(--ink); font-weight: 500; }
.compare__note { max-width: var(--measure); line-height: 1.6; }
.compare__note-label { color: var(--gold-deep); font-weight: 600; }
.ba-hint { margin-top: var(--sp-4); color: var(--muted); font-size: var(--fs-small); }

/* ---------- About ---------- */
.about { display: grid; gap: var(--sp-5); align-items: start; }
.about__portrait { width: 100%; max-width: 28rem; }
.about__portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--card); }
.about__body { display: grid; gap: var(--sp-3); margin-top: var(--sp-4); color: var(--muted); font-size: var(--fs-lead); max-width: var(--measure); }
.about__gear { margin-top: var(--sp-5); }
.about__cta { margin-top: var(--sp-5); }
.chips { display: flex; flex-wrap: wrap; gap: var(--sp-1); margin-top: var(--sp-2); }
.chips li { padding: 6px 14px; border: 1px solid var(--line-gold); border-radius: 999px; font-size: var(--fs-small); }
@media (min-width: 900px) {
  .about { grid-template-columns: 5fr 7fr; gap: var(--sp-6); align-items: center; }
}

/* ---------- Services ---------- */
.services-grid { display: grid; gap: var(--grid-gap); }
.service-card { padding-top: var(--sp-4); border-top: 1px solid var(--line-gold); }
.service-card.is-skeleton { min-height: 180px; border-top-color: transparent; }
.service-card__num { font-family: var(--serif); font-size: 1rem; font-style: italic; color: var(--gold-deep); }
.service-card__title { margin-top: var(--sp-2); font-family: var(--serif); font-size: var(--fs-h3); font-weight: 600; line-height: 1.2; text-wrap: balance; }
.service-card__desc { margin-top: var(--sp-1); color: var(--muted); }
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Process ---------- */
.process-list { display: grid; gap: var(--grid-gap); }
.process-step { padding-top: var(--sp-4); border-top: 1px solid var(--line-gold); }
.process-step.is-skeleton { min-height: 160px; border-top-color: transparent; }
.process-step__num { font-family: var(--serif); font-size: 2rem; font-weight: 600; line-height: 1; color: var(--gold-deep); }
.process-step__title { margin-top: var(--sp-2); font-family: var(--serif); font-size: var(--fs-h3); font-weight: 600; line-height: 1.2; }
.process-step__desc { margin-top: var(--sp-1); color: var(--muted); }
@media (min-width: 640px) { .process-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .process-list { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Testimonials ---------- */
.testimonials-grid { display: grid; gap: var(--grid-gap); }
.testimonial { display: flex; flex-direction: column; justify-content: space-between; gap: var(--sp-4); padding: var(--sp-4); border: 1px solid var(--line); background: var(--card); }
.testimonial__quote { font-family: var(--serif); font-size: 1.25rem; font-style: italic; line-height: 1.45; }
.testimonial__name { font-weight: 600; font-size: var(--fs-small); }
.testimonial__role { color: var(--muted); font-size: var(--fs-small); }
@media (min-width: 900px) { .testimonials-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); } }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; gap: var(--grid-gap); }
.price-card { position: relative; display: flex; flex-direction: column; padding: var(--sp-5) var(--sp-4); border: 1px solid var(--line); background: var(--card); }
.price-card.is-skeleton { min-height: 360px; }
.price-card--popular { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.price-card__badge {
  position: absolute;
  top: 0; left: var(--sp-4);
  transform: translateY(-50%);
  padding: 5px 12px;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.price-card__name { font-family: var(--serif); font-size: var(--fs-h3); font-weight: 600; line-height: 1.2; }
.price-card__note { margin-top: 4px; color: var(--muted); font-size: var(--fs-small); }
.price-card__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin-top: var(--sp-4); padding-bottom: var(--sp-4); border-bottom: 1px solid var(--line); }
.price-card__amount { font-family: var(--serif); font-size: 2rem; font-weight: 600; line-height: 1; }
.price-card__unit { color: var(--muted); font-size: var(--fs-small); }
.price-card__features { display: grid; gap: var(--sp-1); margin: var(--sp-4) 0 var(--sp-5); flex: 1; }
.price-card__features li { position: relative; padding-left: 24px; font-size: 0.95rem; }
.price-card__features li::before {
  content: "";
  position: absolute;
  left: 2px; top: 0.5em;
  width: 11px; height: 6px;
  border-left: 1.5px solid var(--gold-deep);
  border-bottom: 1.5px solid var(--gold-deep);
  transform: rotate(-45deg);
}
.pricing-note { margin-top: var(--sp-4); max-width: var(--measure); color: var(--muted); font-size: var(--fs-small); }
.pricing-empty { max-width: var(--measure); padding: var(--sp-5) var(--sp-4); border: 1px solid var(--line); background: var(--card); }
.pricing-empty p { color: var(--muted); }
.pricing-empty .btn { margin-top: var(--sp-4); }
@media (min-width: 900px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- FAQ ---------- */
.faq { max-width: 48rem; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { margin: 0; font: inherit; }
.faq__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  width: 100%;
  min-height: 64px;
  padding: var(--sp-3) 0;
  border: 0;
  background: none;
  text-align: left;
  font-family: var(--serif);
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.3;
}
.faq__icon { position: relative; flex: none; width: 16px; height: 16px; }
.faq__icon::before, .faq__icon::after {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 100%; height: 1.5px;
  background: var(--gold-deep);
  transition: transform 0.35s var(--ease);
}
.faq__icon::after { transform: rotate(90deg); }
.faq__btn[aria-expanded="true"] .faq__icon::after { transform: rotate(0deg); }
.faq__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s var(--ease); }
.faq__panel.is-open { grid-template-rows: 1fr; }
.faq__panel-inner { overflow: hidden; visibility: hidden; transition: visibility 0s linear 0.4s; }
.faq__panel.is-open .faq__panel-inner { visibility: visible; transition: visibility 0s; }
.faq__answer { padding-bottom: var(--sp-4); color: var(--muted); max-width: var(--measure); }

/* ---------- Contact ---------- */
.contact__grid { display: grid; gap: var(--sp-5); align-items: start; }
.contact__intro { margin-top: var(--sp-3); max-width: 34rem; color: var(--muted); font-size: var(--fs-lead); }
.contact__zalo { margin-top: var(--sp-4); }
.contact__list { display: grid; gap: var(--sp-2); margin-top: var(--sp-5); }
.contact__item { display: flex; align-items: center; gap: var(--sp-2); }
.contact__item .icon { flex: none; color: var(--gold-deep); }
.contact__item a { text-decoration: none; border-bottom: 1px solid var(--line-gold); word-break: break-all; }
.contact__item a:hover { border-bottom-color: var(--ink); }
@media (min-width: 1024px) {
  .contact__grid { grid-template-columns: 5fr 6fr; gap: var(--sp-6); }
  .contact__info { position: sticky; top: calc(var(--header-h) + var(--sp-5)); }
}

.form, .form-success { padding: var(--sp-4); border: 1px solid var(--line); background: var(--card); }
@media (min-width: 640px) { .form, .form-success { padding: var(--sp-5); } }
.form { display: grid; gap: var(--sp-4); }
.form__title { font-family: var(--serif); font-size: var(--fs-h3); font-weight: 600; line-height: 1.2; }
.form__note { margin-top: calc(var(--sp-3) * -1); color: var(--muted); font-size: 0.8rem; }
.field { display: grid; gap: 6px; min-width: 0; }
.field-row { display: grid; gap: var(--sp-4); }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field__label { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.req { color: var(--gold-deep); }
.field__input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font-size: 1rem; /* ≥16px: no iOS zoom */
  line-height: 1.4;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field__input::placeholder { color: var(--muted); opacity: 0.8; }
.field__input:focus { outline: none; border-color: var(--gold-deep); box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.3); }
.field__input[aria-invalid="true"] { border-color: var(--error); }
.field__textarea { min-height: 128px; resize: vertical; }
.field__select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%237A6033' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.field__meta { display: flex; justify-content: space-between; gap: var(--sp-2); }
.field__error { color: var(--error); font-size: var(--fs-small); }
.field__count { margin-left: auto; color: var(--muted); font-size: 0.78rem; font-variant-numeric: tabular-nums; }
.form__error { color: var(--error); font-size: 0.92rem; }
.form__error:empty { display: none; }
.form__privacy { color: var(--muted); font-size: 0.8rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-success { display: grid; justify-items: start; gap: var(--sp-3); }
.form-success__icon { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid var(--gold-deep); border-radius: 50%; color: var(--gold-deep); }
.form-success__text { font-family: var(--serif); font-size: var(--fs-h3); font-weight: 600; line-height: 1.3; }

/* ---------- Footer (charcoal accent) ---------- */
.site-footer {
  --focus: var(--gold);
  padding: var(--sp-6) 0 calc(var(--sp-4) + env(safe-area-inset-bottom));
  background: var(--ink);
  color: var(--ivory);
}
.footer__grid { display: grid; gap: var(--sp-5); }
.site-footer .brand { color: var(--ivory); }
.site-footer .brand__mark { border-color: var(--gold); color: var(--gold); }
.footer__tagline { margin-top: var(--sp-3); max-width: 32ch; color: var(--muted-on-ink); font-size: var(--fs-small); }
.footer__title { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.footer__list { display: grid; gap: var(--sp-1); margin-top: var(--sp-3); color: var(--muted-on-ink); font-size: var(--fs-small); }
.footer__list a { text-decoration: none; word-break: break-all; }
.footer__list a:hover { color: var(--ivory); }
.footer__social { display: flex; flex-wrap: wrap; gap: var(--sp-1); margin-top: var(--sp-3); }
.footer__social a { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(250, 247, 242, 0.18); border-radius: 50%; color: var(--ivory); }
.footer__social a:hover { border-color: var(--gold); color: var(--gold); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-2);
  position: relative;
  margin-top: var(--sp-6);
  padding-top: var(--sp-4);
  color: var(--muted-on-ink);
  font-size: 0.8rem;
}
.footer__bottom::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid rgba(250, 247, 242, 0.12); }
.footer__bottom a:hover { color: var(--ivory); }
@media (min-width: 720px) {
  .footer__grid { grid-template-columns: 2fr 1fr 1fr; }
  .footer__grid:has(#footer-social-col:not([hidden])) { grid-template-columns: 2fr 1.2fr 1.2fr 1fr; }
}

/* ---------- Floating Zalo (mobile) ---------- */
.float-zalo {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 18px 0 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--ivory);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  box-shadow: 0 12px 28px -10px rgba(14, 14, 16, 0.5);
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease), visibility 0s;
  --focus: var(--gold);
}
.float-zalo.is-hidden { opacity: 0; visibility: hidden; transform: translateY(14px); transition: transform 0.35s var(--ease), opacity 0.35s var(--ease), visibility 0s linear 0.35s; }
@media (min-width: 960px) { .float-zalo { display: none; } }

.noscript { padding: var(--sp-3); background: var(--ink); color: var(--ivory); text-align: center; }

@media print {
  .site-header, .float-zalo, .lightbox, .story, .form { display: none !important; }
  .js-reveal .reveal { opacity: 1; transform: none; }
}
