/* MC Bạch Quyên — hệ thống thiết kế
   Nude ấm · đỏ đô. Khung vòm là chi tiết nhận diện. */
:root {
  --ivory: #f4ebe1;       /* nude sáng: nền chính */
  --paper: #faf5ee;
  --sand: #e9d9c9;        /* nude đậm hơn */
  --ink: #2a1a1a;
  --wine: #6b1525;        /* đỏ đô */
  --wine-deep: #4a0e1a;
  --gold: #b08968;        /* nude ánh đồng: nét trang trí */
  --gold-deep: #8a5a44;   /* chữ nhỏ trên nền sáng */
  --gold-light: #e8d0bc;  /* nude trên nền đỏ đô */
  --muted: #6a5650;
  --line: rgba(42, 26, 26, 0.14);
  --line-light: rgba(244, 235, 225, 0.22);

  --display: "Cormorant Garamond", "Times New Roman", serif;
  --body: "Be Vietnam Pro", system-ui, sans-serif;

  --gutter: clamp(20px, 5vw, 72px);
  --section: clamp(88px, 13vw, 184px);
  --ease: cubic-bezier(0.22, 0.8, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  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; padding: 0; cursor: pointer; }
h1, h2, h3, p, figure, ul, ol, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: var(--wine); color: var(--ivory); }
:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 4px; border-radius: 2px; }
.on-dark :focus-visible { outline-color: var(--gold-light); }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--wine); color: var(--ivory); padding: 12px 18px;
}
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }

/* ---------- Chữ ---------- */
.eyebrow {
  font-size: 12px; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold-deep); display: flex; align-items: center; gap: 16px;
}
.eyebrow::before { content: ""; width: 40px; height: 1px; background: currentColor; }
.on-dark .eyebrow { color: var(--gold-light); }

.display {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(40px, 5.6vw, 84px); line-height: 1.12; letter-spacing: -0.01em;
  text-wrap: balance;
}
.display em, .lead em { font-style: italic; color: var(--wine); }
.on-dark .display em { color: var(--gold-light); }
.lead {
  font-family: var(--display); font-size: clamp(24px, 2.5vw, 34px); line-height: 1.4; font-weight: 400;
  text-wrap: pretty;
}
.body { color: var(--muted); max-width: 58ch; }
.body p + p { margin-top: 1.1em; }
.on-dark { color: var(--ivory); }
.on-dark .body { color: rgba(244, 235, 225, 0.74); }

/* ---------- Nút ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 56px; padding: 0 32px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  border: 1px solid var(--ink); border-radius: 999px;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.btn svg { width: 16px; height: 16px; transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translateX(5px); }
.btn--solid { background: var(--wine); border-color: var(--wine); color: var(--ivory); }
.btn--solid:hover { background: var(--wine-deep); border-color: var(--wine-deep); }
.btn--ghost:hover { background: var(--ink); color: var(--ivory); }
.on-dark .btn { border-color: var(--line-light); color: var(--ivory); }
.on-dark .btn--solid { background: var(--gold-light); border-color: var(--gold-light); color: var(--wine-deep); }
.on-dark .btn--solid:hover { background: var(--ivory); border-color: var(--ivory); }
.on-dark .btn--ghost:hover { background: var(--ivory); color: var(--wine-deep); border-color: var(--ivory); }

.link {
  display: inline-flex; align-items: center; gap: 12px; min-height: 44px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 8px) / 100% 1px no-repeat;
}
.link svg { width: 16px; height: 16px; transition: transform 0.35s var(--ease); }
.link:hover svg { transform: translateX(5px); }

/* ---------- Khung vòm ---------- */
.arch { border-radius: 999px 999px 0 0; overflow: hidden; background: var(--sand); }
.arch img, .frame img { width: 100%; height: 100%; object-fit: cover; }
.frame { overflow: hidden; background: var(--sand); }

/* ---------- Thanh điều hướng ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; transition: transform 0.55s var(--ease); }
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.4s var(--ease);
  background: rgba(244, 235, 225, 0.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line);
}
.nav.is-stuck::before { opacity: 1; }
.nav.is-hidden { transform: translateY(-100%); }
.nav__in { display: flex; align-items: center; justify-content: space-between; height: 84px; transition: height 0.4s var(--ease); }
.nav.is-stuck .nav__in { height: 68px; }
.progress { position: fixed; left: 0; top: 0; z-index: 120; width: 100%; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; pointer-events: none; }
.brand { display: flex; align-items: baseline; gap: 10px; font-family: var(--display); font-size: 26px; line-height: 1; min-height: 44px; align-items: center; color: var(--wine); }
.brand small { font-family: var(--body); font-size: 10px; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-deep); }
.nav__links { display: flex; align-items: center; gap: clamp(16px, 1.8vw, 28px); }
.nav__links a, .brand { white-space: nowrap; }
.nav__links a:not(.btn) {
  font-size: 13px; font-weight: 400; letter-spacing: 0.08em; padding: 12px 0; position: relative;
}
.nav__links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: var(--gold-deep);
  transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease);
}
.nav__links a:not(.btn):hover::after, .nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.nav__links .btn { min-height: 44px; padding: 0 22px; font-size: 12px; }
.burger { display: none; width: 48px; height: 48px; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 1px; background: var(--ink); transition: transform 0.35s var(--ease), top 0.35s var(--ease); }
.burger span:first-child { top: 20px; } .burger span:last-child { top: 28px; }
.burger[aria-expanded="true"] span:first-child { top: 24px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 24px; transform: rotate(-45deg); }

@media (max-width: 1020px) {
  .burger { display: block; position: relative; z-index: 2; }
  .brand { position: relative; z-index: 2; transition: color 0.4s; }
  .nav.menu-open::before { opacity: 0; }
  .nav__links {
    position: fixed; inset: 0; height: 100dvh; overflow-y: auto; background: var(--paper); color: var(--ink);
    flex-direction: column; align-items: stretch; justify-content: center; gap: 0; padding: 96px var(--gutter) 36px;
    counter-reset: m; clip-path: inset(0 0 100% 0); visibility: hidden;
    transition: clip-path 0.7s var(--ease), visibility 0.7s;
  }
  .nav__links.is-open { clip-path: inset(0); visibility: visible; }
  .nav__links > * { opacity: 0; transform: translateY(22px); transition: opacity 0.5s var(--ease), transform 0.6s var(--ease); }
  .nav__links.is-open > * { opacity: 1; transform: none; }
  .nav__links.is-open > :nth-child(1) { transition-delay: 0.18s; }
  .nav__links.is-open > :nth-child(2) { transition-delay: 0.24s; }
  .nav__links.is-open > :nth-child(3) { transition-delay: 0.30s; }
  .nav__links.is-open > :nth-child(4) { transition-delay: 0.36s; }
  .nav__links.is-open > :nth-child(5) { transition-delay: 0.42s; }
  .nav__links.is-open > :nth-child(6) { transition-delay: 0.50s; }
  .nav__links.is-open > :nth-child(7) { transition-delay: 0.58s; }
  .nav__links.is-open > :nth-child(8) { transition-delay: 0.64s; }
  .nav__links.is-open > :nth-child(9) { transition-delay: 0.70s; }
  .nav__links a:not(.btn) {
    counter-increment: m; display: flex; align-items: baseline; gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--line);
    font-family: var(--display); font-size: clamp(30px, 8.4vw, 44px); line-height: 1.25; letter-spacing: 0;
  }
  .nav__links a:not(.btn)::before { content: "0" counter(m); font-family: var(--display); font-style: italic; font-size: 15px; color: var(--gold-deep); width: 22px; }
  .nav__links a:not(.btn)::after { display: none; }
  .nav__links a[aria-current="page"] { color: var(--wine); }
  .nav__links .btn { margin-top: 30px; min-height: 56px; }
  .nav__contact { margin-top: 22px; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
  .nav__links .nav__contact a { counter-increment: none; display: inline-flex; color: var(--ink); font-size: 24px; letter-spacing: 0.02em; min-height: 44px; align-items: center; margin-left: 10px; padding: 0; border: 0; text-transform: none; }
  .nav__links .nav__contact a::before { display: none; }
}
@media (min-width: 1021px) { .nav__contact { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: 84px; min-height: min(100svh, 1080px); display: flex; flex-direction: column; }
.hero__grid {
  flex: 1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(24px, 4vw, 72px);
  align-items: center; padding-top: clamp(24px, 4vw, 56px); padding-bottom: clamp(32px, 4vw, 56px);
}
.hero__name {
  font-family: var(--display); font-weight: 400; line-height: 0.98; letter-spacing: -0.02em;
  font-size: clamp(84px, 14.5vw, 248px); margin: clamp(20px, 3vw, 40px) 0 clamp(24px, 3vw, 44px) -0.04em;
}
.hero__name span { display: block; padding-top: 0.12em; }
.hero__name { color: var(--wine); }
.hero__name span + span { padding-left: 0.42em; margin-top: -0.14em; }
.hero__sub { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0 clamp(16px, 2vw, 30px); margin-bottom: clamp(28px, 3.4vw, 48px); }
.hero__sub li { font-family: var(--display); font-size: clamp(19px, 1.7vw, 25px); line-height: 1.3; font-style: italic; padding-left: clamp(16px, 2vw, 30px); border-left: 1px solid var(--line); }
.hero__sub li:first-child { padding-left: 0; border-left: 0; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__visual { position: relative; justify-self: end; width: 100%; max-width: 520px; }
.hero__visual .arch { aspect-ratio: 3 / 4.3; }
.hero__visual .arch img { object-position: 50% 35%; }
.hero__ring { position: absolute; inset: -14px -14px 0; border: 1px solid var(--gold); border-bottom: 0; border-radius: 999px 999px 0 0; opacity: 0.55; pointer-events: none; }
.hero__note {
  position: absolute; left: -15%; bottom: 7%; width: 36%; background: var(--paper); padding: 10px 10px 14px;
  box-shadow: 0 30px 60px -30px rgba(42, 26, 26, 0.45);
}
.hero__note .frame { aspect-ratio: 4 / 5; }
.hero__note figcaption { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 10px; line-height: 1.5; }

.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 18px 0; }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__track span { font-family: var(--display); font-size: 22px; font-style: italic; white-space: nowrap; padding: 0 28px; display: flex; align-items: center; gap: 56px; }
.marquee__track span::after { content: ""; width: 6px; height: 6px; border: 1px solid var(--gold-deep); transform: rotate(45deg); }

/* ---------- Lời hứa ---------- */
.promise { text-align: center; }
.promise .eyebrow { justify-content: center; }
.promise .eyebrow::after { content: ""; width: 40px; height: 1px; background: currentColor; }
.promise blockquote { font-family: var(--display); font-size: clamp(30px, 4.3vw, 64px); line-height: 1.24; max-width: 20em; margin: 36px auto 0; text-wrap: balance; }
.promise blockquote em { color: var(--wine); }

/* ---------- Giới thiệu ---------- */
.about__grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); gap: clamp(32px, 7vw, 120px); align-items: center; }
.about__media { position: relative; }
.about__media .arch { aspect-ratio: 4 / 5; }
.about__media .frame { position: absolute; right: -9%; bottom: -8%; width: 44%; aspect-ratio: 3 / 4; border: 8px solid var(--ivory); }
.about .display { margin: 28px 0 32px; }
.traits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; margin-top: 44px; border-top: 1px solid var(--line); }
.traits li { padding: 22px 0; border-bottom: 1px solid var(--line); }
.traits b { display: block; font-family: var(--display); font-size: 24px; font-weight: 500; line-height: 1.3; }
.traits span { font-size: 15px; color: var(--muted); }

/* ---------- Ba vai trò ---------- */
.roles__head { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; margin-bottom: clamp(40px, 6vw, 88px); }
.roles__head .display { max-width: 12em; margin-top: 24px; }
.roles__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.6vw, 40px); }
.role { display: block; position: relative; }
.role:nth-child(2) { margin-top: clamp(0px, 5vw, 80px); }
.role .arch { aspect-ratio: 3 / 4.2; }
.role__num { font-family: var(--display); font-style: italic; font-size: 20px; color: var(--gold-deep); display: block; margin-top: 24px; }
.role h3 { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 3vw, 44px); line-height: 1.2; margin: 4px 0 10px; }
.role p { color: var(--muted); font-size: 16px; max-width: 34ch; }
.role .link { margin-top: 14px; }

/* ---------- MC Công Giáo (nền tối) ---------- */
.dark { background: var(--wine); position: relative; overflow: hidden; }
.faith__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: clamp(32px, 7vw, 120px); align-items: center; position: relative; }
.faith .display { margin: 28px 0 28px; }
.faith__list { margin: 40px 0 44px; border-top: 1px solid var(--line-light); }
.faith__list li { display: grid; grid-template-columns: 56px 1fr; padding: 20px 0; border-bottom: 1px solid var(--line-light); align-items: baseline; }
.faith__list i { font-family: var(--display); font-size: 20px; color: var(--gold-light); }
.faith__list b { font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 1.35; }
.faith__list span { display: block; font-size: 15px; color: rgba(244, 235, 225, 0.68); }
.faith__media .arch { aspect-ratio: 3 / 4.3; }
.faith__media .arch img { object-position: 60% 30%; }

/* ---------- Khoảnh khắc ---------- */
.moments__head { display: flex; justify-content: space-between; align-items: end; gap: 28px; flex-wrap: wrap; margin-bottom: 44px; }
.moments__head .display { margin-top: 24px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button {
  min-height: 44px; padding: 0 20px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; letter-spacing: 0.06em;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--wine); border-color: var(--wine); color: var(--ivory); }
.gallery {
  --gap: clamp(10px, 1.4vw, 20px); --cols: 3;
  display: grid; grid-template-columns: repeat(var(--cols), 1fr); grid-auto-flow: dense; gap: var(--gap);
  grid-auto-rows: calc((min(100vw, 1440px) - 2 * var(--gutter) - (var(--cols) - 1) * var(--gap)) / var(--cols) * 0.667);
}
.gallery button { display: block; width: 100%; height: 100%; position: relative; overflow: hidden; background: var(--sand); cursor: zoom-in; }
.gallery button.tall { grid-row: span 2; }
.gallery button[hidden] { display: none; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter 0.6s var(--ease); }
.gallery button:hover img { transform: scale(1.04); }
.gallery span {
  position: absolute; inset: auto 0 0 0; padding: 40px 16px 14px; text-align: left; font-size: 13px; color: var(--ivory);
  background: linear-gradient(transparent, rgba(58, 12, 22, 0.78)); opacity: 0; transform: translateY(8px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.gallery button:hover span, .gallery button:focus-visible span { opacity: 1; transform: none; }

.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(36, 8, 14, 0.96); display: grid; place-items: center; padding: 72px 16px; opacity: 0; visibility: hidden; transition: opacity 0.3s var(--ease), visibility 0.3s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: min(1400px, 100%); max-height: calc(100svh - 150px); object-fit: contain; }
.lightbox p { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; color: rgba(244, 235, 225, 0.8); font-size: 14px; padding: 0 70px; }
.lightbox button { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-light); color: var(--ivory); display: grid; place-items: center; transition: background 0.3s; }
.lightbox button:hover { background: rgba(244, 235, 225, 0.12); }
.lightbox button svg { width: 20px; height: 20px; }
.lightbox [data-close] { top: 14px; right: 14px; }
.lightbox [data-prev] { left: 14px; top: 50%; margin-top: -26px; }
.lightbox [data-next] { right: 14px; top: 50%; margin-top: -26px; }

/* ---------- Quy trình ---------- */
.process { background: var(--paper); }
.process__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); gap: clamp(32px, 7vw, 120px); align-items: start; }
.process__media { position: sticky; top: 110px; }
.process__media .frame { aspect-ratio: 4 / 5; }
.process__media figcaption { font-size: 13px; color: var(--muted); margin-top: 14px; font-style: italic; font-family: var(--display); font-size: 19px; }
.process .display { margin: 28px 0 20px; }
.steps { margin-top: 48px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: clamp(64px, 8vw, 112px) 1fr; padding: 32px 0; border-top: 1px solid var(--line); counter-increment: s; }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before { content: "0" counter(s); font-family: var(--display); font-size: clamp(40px, 4.4vw, 64px); line-height: 1; color: var(--gold); font-style: italic; }
.steps h3 { font-family: var(--display); font-weight: 500; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.3; margin-bottom: 8px; }
.steps p { color: var(--muted); max-width: 52ch; font-size: 16px; }

/* ---------- Showreel ---------- */
.reel__frame { position: relative; aspect-ratio: 16 / 9; margin-top: 48px; background: var(--wine-deep); overflow: hidden; }
.reel__frame img, .reel__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.reel__play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(58, 12, 22, 0.35); transition: background 0.4s; }
.reel__play:hover { background: rgba(58, 12, 22, 0.2); }
.reel__play i { width: 104px; height: 104px; border-radius: 50%; border: 1px solid var(--ivory); display: grid; place-items: center; color: var(--ivory); }
.reel__play svg { width: 26px; height: 26px; margin-left: 4px; }

/* ---------- Feedback ---------- */
.voices__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(20px, 3vw, 48px); margin-top: 56px; }
.voice { border-top: 1px solid var(--line); padding-top: 28px; }
.voice blockquote { font-family: var(--display); font-size: clamp(22px, 2vw, 28px); line-height: 1.45; font-style: italic; }
.voice figcaption { margin-top: 20px; font-size: 14px; color: var(--muted); }
.voice figcaption b { display: block; color: var(--ink); font-weight: 500; letter-spacing: 0.04em; }

/* ---------- Góc viết ---------- */
.journal__grid { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr); gap: clamp(32px, 7vw, 120px); }
.journal .display { margin: 28px 0 24px; }
.journal__list li { border-top: 1px solid var(--line); }
.journal__list li:last-child { border-bottom: 1px solid var(--line); }
.journal__list div { display: grid; grid-template-columns: 56px 1fr auto; gap: 16px; align-items: baseline; padding: 26px 0; }
.journal__list i { font-family: var(--display); color: var(--gold-deep); font-size: 20px; }
.journal__list b { font-family: var(--display); font-weight: 400; font-size: clamp(22px, 2.1vw, 30px); line-height: 1.3; }
.journal__list small { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

/* ---------- Dải ảnh ngang ---------- */
.band { position: relative; height: clamp(360px, 62vw, 760px); overflow: hidden; }
.band img { width: 100%; height: 100%; object-fit: cover; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(58, 12, 22, 0.1), rgba(58, 12, 22, 0.55)); }
.band p { position: absolute; z-index: 1; left: var(--gutter); right: var(--gutter); bottom: clamp(28px, 5vw, 72px); color: var(--ivory); font-family: var(--display); font-style: italic; font-size: clamp(26px, 3.6vw, 52px); line-height: 1.3; max-width: 18em; }

/* ---------- Liên hệ ---------- */
.contact__grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); gap: clamp(32px, 7vw, 120px); position: relative; }
.contact .display { margin: 28px 0 28px; }
.channels { margin-top: 40px; border-top: 1px solid var(--line-light); }
.channels a { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 68px; border-bottom: 1px solid var(--line-light); transition: padding 0.35s var(--ease), color 0.35s; }
.channels a:hover { padding-left: 10px; color: var(--gold-light); }
.channels small { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(244, 235, 225, 0.6); }
.channels b { font-family: var(--display); font-weight: 400; font-size: 24px; text-align: right; word-break: break-word; }
.channels__empty { padding: 20px 0; color: rgba(244, 235, 225, 0.7); font-size: 15px; border-bottom: 1px solid var(--line-light); }

.form { background: var(--paper); color: var(--ink); padding: clamp(24px, 4vw, 56px); }
.form h3 { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 2.6vw, 38px); line-height: 1.25; }
.form__body > p, .form__done > p { color: var(--muted); font-size: 15px; margin: 8px 0 28px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.field { margin-bottom: 22px; }
.field label { display: block; font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 0; font: inherit; font-size: 17px; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid rgba(42, 26, 26, 0.35); border-radius: 0; transition: border-color 0.3s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-bottom-color: var(--gold-deep); box-shadow: 0 1px 0 var(--gold-deep); }
.field .err { display: none; color: #a3311f; font-size: 14px; margin-top: 6px; }
.field.is-bad .err { display: block; }
.field.is-bad input { border-bottom-color: #a3311f; }
.form .btn { width: 100%; margin-top: 6px; }
.form__hint { font-size: 14px; color: var(--muted); margin-top: 14px; }
.form__done { display: none; }
.form.is-done .form__body { display: none; }
.form.is-done .form__done { display: block; }
.form__done pre { white-space: pre-wrap; font: inherit; font-size: 15px; background: var(--ivory); padding: 20px; margin: 20px 0; border-left: 2px solid var(--gold); }
.form__send { display: flex; flex-wrap: wrap; gap: 10px; }
.form__send .btn { width: auto; flex: 1 1 180px; min-height: 52px; padding: 0 20px; }

/* ---------- Biểu tượng mạng xã hội ---------- */
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.socials a, .nav .nav__links .socials a {
  width: 48px; height: 48px; min-height: 0; padding: 0; border-radius: 50%; border: 1px solid var(--line-light); color: var(--ivory);
  display: grid; place-items: center; gap: 0; font-family: var(--body);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.socials a:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--wine-deep); padding: 0; }
.socials svg { width: 20px; height: 20px; }
.socials span { font-size: 11px; font-weight: 500; letter-spacing: 0.02em; line-height: 1; }
.nav .nav__links .socials a::before, .nav .nav__links .socials a::after { display: none; }
.nav__links .socials { margin-top: 20px; }
@media (min-width: 1021px) { .nav__links .socials { display: none; } }
.footer .socials { margin-top: 36px; }

/* ---------- Mạng xã hội trên thanh đầu trang ---------- */
.nav__links { margin-left: auto; }
.nav__social { display: flex; align-items: center; margin-left: clamp(8px, 1.4vw, 22px); }
.nav__social a { width: 44px; height: 44px; display: grid; place-items: center; color: var(--wine); border-radius: 50%; transition: background 0.3s var(--ease), color 0.3s var(--ease); }
.nav__social a:hover { background: var(--wine); color: var(--ivory); }
.nav__social svg { width: 19px; height: 19px; }
.nav__social span { font-size: 11px; font-weight: 600; }
.nav__social .is-zalo { display: none; }
@media (min-width: 1021px) and (max-width: 1399px) { .nav__social { display: none; } }
@media (min-width: 1021px) { .nav__links .nav__opt { display: none; } }
@media (min-width: 1021px) and (max-width: 1120px) { .nav__links a:first-child { display: none; } }
@media (min-width: 1021px) and (max-width: 1180px) {
  .nav__links { gap: 16px; }
  .nav__links a:not(.btn) { font-size: 12px; letter-spacing: 0.04em; }
  .nav__links .btn { padding: 0 16px; font-size: 11px; }
}
@media (max-width: 1020px) {
  .nav__links { margin-left: 0; }
  .nav__social { order: 2; margin-left: auto; margin-right: 2px; }
  .nav__social .is-zalo { display: none; }
  .burger { order: 3; }
}

/* ---------- Chân trang ---------- */
.footer { background: var(--sand); color: var(--muted); padding: clamp(56px, 7vw, 96px) 0 32px; }
.footer__name { font-family: var(--display); font-size: clamp(64px, 15vw, 240px); line-height: 1; color: var(--wine); letter-spacing: -0.02em; padding-top: 0.1em; }
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 40px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 14px; }
.footer__row nav { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.footer__row a { display: inline-flex; align-items: center; min-height: 44px; }
.footer__row a:hover { color: var(--wine); }
.footer .socials a, .nav .nav__links .socials a { color: var(--wine); border-color: rgba(107, 21, 37, 0.35); }
.footer .socials a:hover, .nav .nav__links .socials a:hover { background: var(--wine); border-color: var(--wine); color: var(--ivory); }

/* ---------- Nút gọi và Zalo luôn đi theo màn hình ---------- */
.float { position: fixed; right: clamp(14px, 2.4vw, 28px); bottom: clamp(14px, 2.4vw, 28px); z-index: 90; display: flex; flex-direction: column; gap: 10px; transition: opacity 0.3s var(--ease), visibility 0.3s; }
.float a {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: var(--wine); color: var(--ivory); border: 1px solid rgba(244, 235, 225, 0.55);
  box-shadow: 0 12px 28px -10px rgba(42, 26, 26, 0.55); transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.float a:first-child { background: var(--paper); color: var(--wine); border-color: rgba(107, 21, 37, 0.3); }
.float a:hover { transform: translateY(-3px); }
.float svg { width: 22px; height: 22px; }
.float span { font-size: 12px; font-weight: 600; letter-spacing: 0.02em; }
body.is-covered .float { opacity: 0; visibility: hidden; }
.reduce .float a:hover { transform: none; }

/* ---------- Trang MC Công Giáo ---------- */
.page-hero { padding-top: 84px; }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr); gap: clamp(32px, 6vw, 104px); align-items: end; padding-top: clamp(40px, 6vw, 96px); }
.page-hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(52px, 8.4vw, 136px); line-height: 1.04; letter-spacing: -0.02em; margin: 28px 0 32px; text-wrap: balance; }
.page-hero h1 em { color: var(--wine); }
.page-hero .arch { aspect-ratio: 3 / 4; }
.prose { max-width: 720px; margin: 0 auto; }
.prose .lead { margin-bottom: 36px; }
.prose p { color: var(--muted); margin-bottom: 1.2em; }
.prose p:first-of-type::first-letter { font-family: var(--display); font-size: 3.9em; line-height: 0.8; float: left; padding: 6px 10px 0 0; color: var(--wine); }
.care { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(32px, 6vw, 96px); margin-top: 56px; border-top: 1px solid var(--line-light); position: relative; }
.care li { padding: 34px 0; border-bottom: 1px solid var(--line-light); }
.care i { font-family: var(--display); font-size: 20px; color: var(--gold-light); }
.care h3 { font-family: var(--display); font-weight: 400; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.25; margin: 6px 0 10px; }
.care p { color: rgba(244, 235, 225, 0.74); font-size: 16px; }
.trio { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: clamp(10px, 1.6vw, 24px); align-items: end; }
.trio .arch { aspect-ratio: 3 / 4.2; }
.trio figcaption { font-size: 13px; color: var(--muted); margin-top: 12px; }
.cta-center { text-align: center; }
.cta-center .eyebrow { justify-content: center; }
.cta-center .eyebrow::after { content: ""; width: 40px; height: 1px; background: currentColor; }
.cta-center .display { margin: 28px auto 36px; max-width: 14em; }

/* ---------- Chuyển động (nhẹ: chỉ mờ dần và nhích lên một chút) ---------- */
.rv, .clip { opacity: 0; transform: translateY(16px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.rv.is-in, .clip.is-in { opacity: 1; transform: none; }
.role .arch img { transition: transform 1.2s var(--ease); }
.role:hover .arch img { transform: scale(1.04); }

/* đường kẻ trước nhãn tự vẽ ra */
.eyebrow.rv::before, .eyebrow.rv::after { transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease) 0.35s; }
.eyebrow.rv.is-in::before, .eyebrow.rv.is-in::after { transform: scaleX(1); }

/* đường kẻ vàng chạy ngang mỗi bước */
.steps li { position: relative; }
.steps li::after {
  content: ""; position: absolute; left: 0; top: -1px; width: 100%; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease) 0.2s;
}
.steps li.is-in::after { transform: scaleX(1); }

/* Máy bật "giảm chuyển động": chỉ mờ dần, không dịch chuyển */
html.reduce { scroll-behavior: auto; }
.reduce .rv, .reduce .clip { transform: none; transition: opacity 0.9s ease; transition-delay: var(--d, 0s); }
.reduce .role:hover .arch img { transform: none; }
.reduce .eyebrow.rv::before, .reduce .eyebrow.rv::after, .reduce .steps li::after { transform: none; transition: none; }
.reduce .nav, .reduce .nav__links, .reduce .nav__links > * { transition: none; }

/* ---------- Màn hình nhỏ ---------- */
@media (max-width: 1020px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { justify-self: center; max-width: 420px; order: -1; width: 74%; }
  .hero__note { left: auto; right: -16%; width: 42%; }
  .hero__name { font-size: clamp(76px, 23vw, 180px); }
  .about__grid, .faith__grid, .process__grid, .journal__grid, .contact__grid, .page-hero__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 520px; margin-right: 9%; }
  .faith__media { max-width: 440px; order: -1; }
  .process__media { position: static; max-width: 520px; }
  .roles__grid { grid-template-columns: 1fr 1fr; }
  .role:nth-child(2) { margin-top: 0; }
  .gallery { --cols: 2; }
  .page-hero .arch { max-width: 440px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero__sub { grid-template-columns: 1fr; gap: 6px; }
  .hero__sub li { padding-left: 0; border-left: 0; }
  .hero__cta .btn { width: 100%; }
  .roles__grid { grid-template-columns: 1fr; gap: 48px; }
  .traits, .form__row, .care { grid-template-columns: 1fr; }
  .journal__list div { grid-template-columns: 40px 1fr; }
  .journal__list small { grid-column: 2; }
  .trio { grid-template-columns: 1fr 1fr; }
  .trio figure:nth-child(2) { grid-column: 1 / -1; order: -1; }
  .gallery span { display: none; }
  .lightbox [data-prev], .lightbox [data-next] { top: auto; bottom: 64px; }
  .lightbox p { bottom: 16px; padding: 0 16px; }
}
