:root {
  --story-green: #123f2b;
  --story-green-deep: #071f17;
  --story-leaf: #2f7244;
  --story-gold: #f2aa2e;
  --story-red: #a9362b;
  --story-paper: #fff7e8;
  --story-cream: #fffdf6;
  --story-ink: #24160d;
  --story-muted: #756252;
  --story-line: rgba(36, 22, 13, .13);
  --story-radius: 8px;
  --story-container: min(1160px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 118px;
}

body.nxt-story-body {
  margin: 0;
  color: var(--story-ink);
  background: var(--story-paper);
  font-family: "Be Vietnam Pro", Arial, sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

.nxt-story-body a {
  color: inherit;
  text-decoration: none;
}

.nxt-story-body img {
  display: block;
  max-width: 100%;
}

.story-spark-canvas {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: .42;
}

.story-topbar {
  position: relative;
  z-index: 20;
  display: grid;
  min-height: 36px;
  place-items: center;
  padding: 8px 16px;
  background: var(--story-gold);
  color: #1f1309;
  text-align: center;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 900;
}

.story-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(18, 63, 43, .96);
  border-bottom: 1px solid rgba(255, 255, 255, .13);
  backdrop-filter: blur(16px);
}

.admin-bar .story-header {
  top: 32px;
}

.story-nav {
  width: var(--story-container);
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.story-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 245px;
}

.story-brand img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .18));
}

.story-brand span {
  display: grid;
  line-height: 1;
}

.story-brand small {
  color: var(--story-gold);
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 900;
}

.story-brand strong,
.story-footer strong,
.story-hero h1,
.section-heading h2,
.ritual-copy h2,
.oath-card h2,
.timeline-item h3,
.flavor-card h3 {
  font-family: "Noto Serif", "Lora", serif;
  font-weight: 900;
  letter-spacing: 0;
}

.story-brand strong {
  color: var(--story-cream);
  font-size: clamp(24px, 3vw, 34px);
}

.story-menu {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.story-menu a {
  color: rgba(255, 253, 246, .84);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 900;
}

.story-menu a:hover {
  color: var(--story-gold);
}

.story-brand:focus-visible,
.story-menu a:focus-visible,
.story-call:focus-visible,
.story-btn:focus-visible,
.story-footer a:focus-visible {
  outline: 3px solid rgba(242, 170, 46, .72);
  outline-offset: 4px;
}

.story-call,
.story-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: var(--story-radius);
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.story-call,
.story-btn-primary {
  color: #211407;
  background: var(--story-gold);
  box-shadow: 0 14px 28px rgba(242, 170, 46, .24);
}

.story-call:active,
.story-btn:active {
  transform: translateY(1px);
}

.story-btn-ghost {
  color: var(--story-cream);
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .08);
}

.story-main {
  position: relative;
  z-index: 3;
}

.story-hero {
  position: relative;
  min-height: calc(100dvh - 114px);
  overflow: hidden;
  color: var(--story-cream);
  background:
    linear-gradient(120deg, rgba(7, 31, 23, .98), rgba(18, 63, 43, .9) 54%, rgba(126, 43, 31, .78)),
    url("nem-xu-thanh-assets/hero-nem-table.jpg") center / cover;
}

.hero-scenery {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: .95;
  pointer-events: none;
}

.mountain {
  position: absolute;
  bottom: -1px;
  width: 54vw;
  height: 34vh;
  background: rgba(7, 31, 23, .56);
  clip-path: polygon(0 100%, 22% 38%, 38% 76%, 55% 22%, 77% 70%, 100% 35%, 100% 100%);
}

.mountain-one {
  left: -8vw;
}

.mountain-two {
  right: -10vw;
  height: 28vh;
  opacity: .68;
  transform: scaleX(-1);
}

.river-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 13vh;
  height: 90px;
  background: linear-gradient(90deg, transparent, rgba(242, 170, 46, .2), transparent);
  clip-path: polygon(0 42%, 14% 58%, 28% 45%, 44% 64%, 60% 48%, 78% 62%, 100% 44%, 100% 76%, 0 76%);
  animation: riverFloat 7s ease-in-out infinite;
}

.dong-son-ring {
  position: absolute;
  right: 8vw;
  top: 10vh;
  width: min(340px, 42vw);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid rgba(242, 170, 46, .26);
  background:
    repeating-conic-gradient(from 0deg, rgba(242, 170, 46, .25) 0 8deg, transparent 8deg 18deg);
  -webkit-mask: radial-gradient(circle, transparent 0 54%, #000 55% 100%);
  mask: radial-gradient(circle, transparent 0 54%, #000 55% 100%);
  animation: slowSpin 28s linear infinite;
}

.story-hero-inner,
.story-container {
  width: var(--story-container);
  margin: 0 auto;
}

.story-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr);
  gap: 42px;
  align-items: center;
  min-height: calc(100dvh - 114px);
  padding: 44px 0 60px;
}

.story-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--story-gold);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 900;
}

.story-eyebrow::before {
  content: "";
  width: 30px;
  height: 2px;
  background: currentColor;
}

.story-hero h1 {
  max-width: 820px;
  margin: 14px 0 20px;
  color: var(--story-cream);
  font-size: clamp(46px, 6.4vw, 84px);
  line-height: .97;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .28);
}

.hero-lead {
  max-width: 670px;
  margin: 0;
  color: rgba(255, 253, 246, .88);
  font-family: "Lora", serif;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-stage {
  position: relative;
  min-height: 480px;
  display: grid;
  place-items: center;
  perspective: 900px;
  transform-style: preserve-3d;
}

.hero-stage::before {
  content: "";
  position: absolute;
  width: min(430px, 78vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(242, 170, 46, .88);
  box-shadow: inset 0 0 0 26px rgba(255, 253, 246, .1), 0 44px 80px rgba(0, 0, 0, .22);
  transform: translateZ(-60px);
}

.hero-dish {
  position: relative;
  z-index: 2;
  width: min(560px, 86vw);
  filter: drop-shadow(0 36px 42px rgba(0, 0, 0, .34));
  animation: dishFloat 5s ease-in-out infinite;
}

.flavor-note {
  position: absolute;
  z-index: 3;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: var(--story-radius);
  padding: 10px 12px;
  background: rgba(7, 31, 23, .72);
  color: var(--story-cream);
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 18px 34px rgba(0, 0, 0, .2);
}

.note-one {
  left: 4%;
  top: 22%;
}

.note-two {
  right: 2%;
  top: 42%;
}

.note-three {
  left: 14%;
  bottom: 18%;
}

.story-section {
  position: relative;
  padding: 86px 0;
  scroll-margin-top: 118px;
}

.intro-band {
  background:
    linear-gradient(rgba(18, 63, 43, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 63, 43, .04) 1px, transparent 1px),
    var(--story-paper);
  background-size: 18px 18px;
}

.intro-grid {
  display: grid;
  grid-template-columns: .86fr 1.14fr;
  gap: 34px;
  align-items: start;
}

.intro-kicker {
  border-left: 5px solid var(--story-gold);
  padding-left: 20px;
}

.intro-kicker span {
  display: block;
  margin-bottom: 8px;
  color: var(--story-red);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 900;
}

.intro-kicker strong {
  display: block;
  color: var(--story-green-deep);
  font-family: "Noto Serif", serif;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.06;
}

.intro-grid p,
.section-heading p,
.timeline-item p,
.flavor-card p,
.ritual-copy p,
.ritual-steps span,
.oath-card p,
.story-footer p {
  color: var(--story-muted);
  font-size: 15px;
  line-height: 1.78;
}

.journey-section {
  background: var(--story-cream);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 40px;
}

.section-heading h2,
.ritual-copy h2,
.oath-card h2 {
  margin: 10px 0 14px;
  color: var(--story-green-deep);
  font-size: clamp(36px, 5vw, 64px);
  line-height: .99;
}

.section-heading > h2:first-child,
.ritual-copy > h2:first-child {
  margin-top: 0;
}

.timeline {
  position: relative;
  display: grid;
  gap: 18px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 41px;
  top: 14px;
  bottom: 14px;
  width: 2px;
  background: linear-gradient(var(--story-gold), rgba(18, 63, 43, .22));
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  column-gap: 22px;
  row-gap: 6px;
  align-items: start;
  padding: 24px;
  border: 1px solid var(--story-line);
  border-radius: var(--story-radius);
  background: rgba(255, 247, 232, .72);
  box-shadow: 0 16px 42px rgba(53, 35, 18, .08);
}

.timeline-no {
  grid-row: 1 / span 2;
}

.timeline-item h3,
.timeline-item p {
  grid-column: 2;
}

.timeline-no {
  position: relative;
  z-index: 2;
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border-radius: 50%;
  background: var(--story-green);
  color: var(--story-gold);
  font-family: "Noto Serif", serif;
  font-size: 25px;
  font-weight: 900;
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, .08);
}

.timeline-item h3 {
  margin: 2px 0 8px;
  color: var(--story-green-deep);
  font-size: clamp(24px, 3vw, 34px);
}

.timeline-item p {
  margin: 0;
}

.flavor-section {
  color: var(--story-cream);
  background:
    linear-gradient(135deg, rgba(7, 31, 23, .98), rgba(18, 63, 43, .96) 52%, rgba(107, 33, 28, .9)),
    url("nem-xu-thanh-assets/hero-nem-leaves.jpg") center / cover;
}

.flavor-section .section-heading h2,
.flavor-section .section-heading p {
  color: var(--story-cream);
}

.flavor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.flavor-grid .section-heading {
  grid-column: 1 / -1;
}

.flavor-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  min-height: 240px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: var(--story-radius);
  padding: 14px;
  background: rgba(255, 253, 246, .09);
  box-shadow: 0 24px 52px rgba(0, 0, 0, .22);
  transform-style: preserve-3d;
  transition: transform .22s ease, box-shadow .22s ease;
}

.flavor-card img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
  border-radius: var(--story-radius);
}

.flavor-card div {
  padding: 12px 6px 8px 0;
}

.flavor-card span {
  color: var(--story-gold);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 900;
}

.flavor-card h3 {
  margin: 8px 0 10px;
  color: var(--story-cream);
  font-size: clamp(25px, 3vw, 38px);
}

.flavor-card p {
  margin: 0;
  color: rgba(255, 253, 246, .78);
}

.ritual-section {
  background:
    linear-gradient(rgba(18, 63, 43, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 63, 43, .04) 1px, transparent 1px),
    var(--story-paper);
  background-size: 20px 20px;
}

.ritual-grid {
  display: grid;
  grid-template-columns: minmax(300px, .92fr) minmax(0, 1.08fr);
  gap: 42px;
  align-items: center;
}

.ritual-media {
  margin: 0;
  border-radius: var(--story-radius);
  overflow: hidden;
  border: 1px solid var(--story-line);
  box-shadow: 0 28px 70px rgba(48, 29, 12, .16);
  transform-style: preserve-3d;
}

.ritual-media img {
  width: 100%;
  aspect-ratio: 1 / 1.06;
  object-fit: cover;
}

.ritual-copy p {
  margin: 0 0 20px;
}

.ritual-steps {
  display: grid;
  gap: 12px;
}

.ritual-steps div {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border: 1px solid var(--story-line);
  border-radius: var(--story-radius);
  padding: 14px;
  background: rgba(255, 255, 255, .66);
}

.ritual-steps strong {
  display: grid;
  height: 54px;
  place-items: center;
  border-radius: 50%;
  background: var(--story-gold);
  color: #221408;
  font-family: "Noto Serif", serif;
  font-size: 21px;
}

.ritual-steps span {
  color: #564335;
}

.oath-section {
  background: var(--story-green-deep);
}

.oath-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--story-radius);
  padding: clamp(28px, 5vw, 62px);
  background:
    linear-gradient(120deg, rgba(255, 253, 246, .1), rgba(255, 253, 246, .03)),
    url("nem-xu-thanh-assets/gallery-nem-sam-son.jpg") center / cover;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .24);
}

.oath-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 31, 23, .96), rgba(7, 31, 23, .76));
}

.oath-card > * {
  position: relative;
  z-index: 2;
  max-width: 880px;
}

.oath-card h2 {
  color: var(--story-cream);
}

.oath-card p {
  color: rgba(255, 253, 246, .8);
  max-width: 760px;
}

.oath-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* Footer dong bo voi trang chu (.site-footer trong nem-xu-thanh-exact.css) */
.site-footer {
  position: relative;
  z-index: 5;
  background:
    radial-gradient(circle at 12% 8%, rgba(246, 166, 35, .18), transparent 34%),
    linear-gradient(135deg, #1d120c 0%, #10281d 100%);
  color: rgba(255, 253, 248, .82);
  padding: 56px 0 22px;
  font-family: "Be Vietnam Pro", Arial, sans-serif;
}

.site-footer .footer-grid {
  width: var(--story-container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 1.35fr) repeat(3, minmax(170px, .75fr));
  gap: 32px;
  align-items: start;
}

.site-footer .footer-brand {
  display: grid;
  gap: 14px;
  max-width: 620px;
}

.site-footer .footer-brand-head {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: nowrap;
}

.site-footer .footer-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .22));
}

.site-footer .footer-brand strong {
  color: var(--story-gold);
  font-family: "Noto Serif", serif;
  font-size: clamp(30px, 2.65vw, 40px);
  line-height: .95;
  white-space: nowrap;
}

.site-footer .footer-brand p,
.site-footer .footer-note,
.site-footer .footer-bottom {
  margin: 0;
  line-height: 1.75;
  font-size: 13px;
  color: rgba(255, 253, 248, .82);
}

.site-footer .footer-hotline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.site-footer .footer-hotline a,
.site-footer .footer-pill {
  border-radius: var(--story-radius);
  border: 1px solid rgba(255, 255, 255, .16);
  padding: 10px 12px;
  font-weight: 900;
  font-size: 12px;
  text-transform: uppercase;
}

.site-footer .footer-hotline a {
  background: var(--story-gold);
  color: #1f140c;
  border-color: transparent;
}

.site-footer .footer-col {
  display: grid;
  gap: 12px;
}

.site-footer .footer-col h3 {
  margin: 0;
  color: var(--story-cream);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.site-footer .footer-links {
  display: grid;
  gap: 9px;
}

.site-footer .footer-links a,
.site-footer .footer-links span {
  color: rgba(255, 253, 248, .76);
  font-size: 13px;
  line-height: 1.45;
}

.site-footer .footer-links a:hover {
  color: var(--story-gold);
}

.site-footer .footer-bottom {
  width: var(--story-container);
  margin: 36px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  color: rgba(255, 253, 248, .62);
}

@media (max-width: 1020px) {
  .site-footer .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .site-footer .footer-brand {
    grid-column: 1 / -1;
    max-width: none;
  }
}

@media (max-width: 720px) {
  .site-footer .footer-grid {
    grid-template-columns: 1fr;
  }

  .site-footer .footer-bottom {
    flex-direction: column;
  }

  .site-footer .footer-hotline {
    align-items: stretch;
  }

  .site-footer .footer-hotline a,
  .site-footer .footer-pill {
    width: fit-content;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .75s ease, transform .75s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes dishFloat {
  0%, 100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-14px) rotate(1deg);
  }
}

@keyframes slowSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes riverFloat {
  0%, 100% {
    transform: translateX(-2%);
  }
  50% {
    transform: translateX(2%);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }

  .story-spark-canvas {
    display: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .story-header {
    background: var(--story-green);
    backdrop-filter: none;
  }
}

@media (max-width: 1100px) {
  .story-menu {
    display: none;
  }

  .story-nav {
    justify-content: space-between;
  }

  .story-hero-inner,
  .intro-grid,
  .ritual-grid {
    grid-template-columns: 1fr;
  }

  .story-hero-inner {
    padding-top: 42px;
  }

  .hero-stage {
    min-height: 390px;
  }

  .flavor-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  :root {
    --story-container: min(100% - 28px, 1160px);
  }

  .story-topbar {
    font-size: 10px;
    line-height: 1.4;
  }

  .story-nav {
    min-height: 68px;
    gap: 12px;
  }

  html {
    scroll-padding-top: 96px;
  }

  .story-section {
    scroll-margin-top: 96px;
  }

  .story-brand {
    min-width: 0;
  }

  .story-brand img {
    width: 46px;
    height: 46px;
  }

  .story-brand small {
    font-size: 9px;
  }

  .story-brand strong {
    font-size: 21px;
  }

  .story-call {
    padding: 10px;
    font-size: 12px;
  }

  .story-hero {
    min-height: auto;
  }

  .story-hero-inner {
    min-height: auto;
    padding-bottom: 54px;
  }

  .story-hero h1 {
    font-size: clamp(42px, 13vw, 60px);
  }

  .hero-actions .story-btn {
    flex: 1 1 100%;
  }

  .hero-stage {
    min-height: 320px;
  }

  .flavor-note {
    font-size: 11px;
    padding: 8px 10px;
  }

  .story-section {
    padding: 64px 0;
  }

  .timeline::before {
    left: 27px;
  }

  .timeline-item {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 14px;
    padding: 16px;
  }

  .timeline-no {
    width: 54px;
    height: 54px;
    font-size: 18px;
  }

  .flavor-card {
    grid-template-columns: 1fr;
  }

  .flavor-card img {
    min-height: 230px;
  }

  .ritual-steps div {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .ritual-steps strong {
    height: 44px;
    font-size: 17px;
  }

  .story-footer-inner {
    display: grid;
  }

  .story-footer nav {
    justify-content: flex-start;
  }
}
