/* ==========================================================================
   MỘT KÝ — Homepage
   Brand: porcelain blue-and-white (men lam) + a squeeze of lime.
   Type:  Cactus Classical Serif (primary) · Livvic (secondary)
   ========================================================================== */

:root {
  /* Colour */
  --ink: #1B2659;          /* xanh mực — deep navy, primary */
  --cobalt: #2E4CA8;       /* men lam — porcelain glaze blue, illustration */
  --paper: #F4F1EA;        /* sứ trắng — porcelain white, base */
  --bone: #E9E3D6;         /* rice-paper, secondary surface */
  --white: #FFFFFF;
  --lime: #E2F06E;         /* chanh — accent, use sparingly */
  --red: #DC0100;          /* logo red — the running "1" */
  --ink-70: rgba(27, 38, 89, .72);
  --ink-50: rgba(27, 38, 89, .5);
  --line: rgba(27, 38, 89, .16);
  --line-light: rgba(255, 255, 255, .2);

  /* Type */
  --serif: "Cactus Classical Serif", "Noto Serif", Georgia, serif;
  --sans: "Livvic", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --gutter: clamp(16px, 4vw, 56px);
  --header-h: 84px;
  --radius: 16px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; border-radius: 4px; }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; color: var(--cobalt); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: var(--paper); padding: .6rem 1rem; border-radius: 8px; }
.skip:focus { top: 16px; }

/* SplitText line masks — padded so Vietnamese diacritics never get clipped */
.ln-mask { padding-block: .16em; margin-block: -.16em; }

/* ---------- Shared type ---------- */
.eyebrow {
  font-family: var(--sans);
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cobalt);
}
.eyebrow--light { color: var(--lime); }

.h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 4.8vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -.02em;
  color: var(--ink);
}

.link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding-bottom: .3rem;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1.5px no-repeat;
  transition: background-size .5s var(--ease);
}
.link svg { width: 16px; height: 16px; transition: transform .4s var(--ease); }
.link:hover { background-size: 0 1.5px; background-position: right bottom; }
.link:hover svg { transform: translateX(4px); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: 1rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color .3s, color .3s, transform .4s var(--ease), box-shadow .3s;
}
.btn svg { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: scale(.97); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--cobalt); }
.btn--paper { background: var(--paper); color: var(--ink); }
.btn--paper:hover { background: var(--lime); }
.btn--lime { background: var(--lime); color: var(--ink); }
.btn--lime:hover { background: var(--paper); }
.btn--ghost { box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--ghost:hover { background: var(--ink); color: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink); }

.tag {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .68rem;
  line-height: 1;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .45rem .75rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
}
.tag--lime { background: var(--lime); color: var(--ink); }

/* Line-illustration helpers (shared by doodles + mascot) */
.fill-dots { fill: url(#dots); }
.fill-paper { fill: var(--paper); }
.fill-white { fill: var(--white); }
.fill-ink { fill: var(--ink); }
.fill-cobalt { fill: var(--cobalt); stroke: none; }

/* ==========================================================================
   LOADER
   ========================================================================== */
.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--paper);
  /* Safety net if JS never runs */
  animation: loader-out .6s ease 4s forwards;
}
.loader__stage { display: flex; flex-direction: column; align-items: center; }
.loader__logo { width: 150px; aspect-ratio: 251 / 220; color: var(--red); overflow: visible; }
.loader__plate { width: 240px; height: 5px; margin-top: 4px; border-radius: 3px; background: var(--ink); transform-origin: center; }
.loader__word { margin-top: 1.1rem; font-family: var(--serif); font-size: 1.35rem; color: var(--ink); }
@keyframes loader-out { to { opacity: 0; visibility: hidden; } }
body.is-loading { overflow: hidden; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0 var(--gutter);
  color: var(--ink);
  transition: background-color .4s, color .4s, height .4s var(--ease), transform .5s var(--ease), border-color .4s;
  border-bottom: 1px solid transparent;
}
.header.is-over-hero { color: var(--white); }
.header.is-solid {
  height: 68px;
  background: rgba(244, 241, 234, .86);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
}
.header.is-hidden { transform: translateY(-100%); }
body.menu-open .header { color: var(--paper); background: transparent; border-bottom-color: transparent; transform: none; -webkit-backdrop-filter: none; backdrop-filter: none; }

.brand { display: flex; align-items: center; margin-right: auto; }
.brand__logo {
  width: 60px;
  aspect-ratio: 251 / 220;
  overflow: visible;
  color: var(--red);
  transition: width .4s var(--ease);
}
.header.is-solid .brand__logo { width: 52px; }

.utility { display: flex; align-items: center; gap: 1.75rem; font-size: .76rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.utility a { display: flex; align-items: center; gap: .5rem; opacity: .92; transition: opacity .3s; }
.utility a:hover { opacity: 1; }
.utility a span { background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat; transition: background-size .4s var(--ease); }
.utility a:hover span { background-size: 100% 1px; }
.utility svg { width: 18px; height: 18px; }
.lang { display: flex; align-items: center; gap: .35rem; }
.lang button { letter-spacing: inherit; font-size: inherit; text-transform: uppercase; opacity: .55; }
.lang button.is-active { opacity: 1; }

.menu-btn {
  position: relative;
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px currentColor;
  display: grid;
  place-items: center;
  transition: background-color .3s, color .3s;
}
.menu-btn:hover { background: var(--lime); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--lime); }
.menu-btn__lines { display: grid; gap: 4px; width: 20px; }
.menu-btn__lines i { display: block; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .45s var(--ease), opacity .3s; }
.menu-btn[aria-expanded="true"] .menu-btn__lines i:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__lines i:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .menu-btn__lines i:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ==========================================================================
   FULLSCREEN MENU
   ========================================================================== */
.menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: var(--ink);
  color: var(--paper);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  overflow-y: auto;
}
.menu__inner {
  min-height: 100%;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  align-items: end;
  padding: calc(var(--header-h) + 4vh) var(--gutter) 6vh;
}
.menu__nav { display: flex; flex-direction: column; }
.menu__nav a {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  padding: .35rem 0;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 6.2vw, 5.6rem);
  line-height: 1.05;
  letter-spacing: -.02em;
  border-bottom: 1px solid var(--line-light);
  transition: color .3s, padding-left .5s var(--ease);
}
.menu__nav a:hover { color: var(--lime); padding-left: .6rem; }
.menu__nav small { font-family: var(--sans); font-size: .75rem; letter-spacing: .14em; opacity: .55; min-width: 2ch; }
.menu__nav em { margin-left: auto; font-family: var(--sans); font-style: normal; font-size: .72rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; opacity: .55; }
.menu__aside { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; padding-bottom: .5rem; }
.menu__lead { font-family: var(--serif); font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.25; }
.menu__meta { display: grid; gap: .4rem; font-size: .9rem; opacity: .8; }
.menu__meta a { border-bottom: 1px solid var(--line-light); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}
.hero__media, .hero__slide { position: absolute; inset: 0; }
.hero__slide { opacity: 0; overflow: hidden; }
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transform-origin: 60% 50%; }
.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 18, 44, .5) 0%, rgba(12, 18, 44, 0) 26%),
    linear-gradient(0deg, rgba(12, 18, 44, .78) 0%, rgba(12, 18, 44, .2) 46%, rgba(12, 18, 44, 0) 70%);
}
.hero__content {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(40px, 7vh, 88px);
  max-width: 980px;
}
.hero__eyebrow {
  display: flex;
  gap: .6rem;
  margin-bottom: 1.4rem;
  font-weight: 600;
  font-size: .74rem;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.hero__eyebrow span { color: var(--lime); }
.hero__list li { overflow: clip; padding-block: .1em; margin-block: -.1em; }
.hero__list button {
  display: flex;
  align-items: baseline;
  gap: 1.1rem;
  font-family: var(--serif);
  font-size: clamp(2.9rem, 8.4vw, 8rem);
  line-height: 1;
  letter-spacing: -.025em;
  text-align: left;
  color: rgba(255, 255, 255, .34);
  transition: color .8s var(--ease);
}
.hero__list button:hover { color: rgba(255, 255, 255, .7); }
.hero__list .is-active button { color: var(--white); }
.hero__list button span {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity .6s, transform .6s var(--ease);
}
.hero__list .is-active button span { opacity: .9; transform: none; }

.hero__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .14); }
.hero__progress i { display: block; height: 100%; background: var(--lime); transform-origin: left; transform: scaleX(0); }

/* Tally — the live "kilos weighed" counter (4P's WOW counter analogue) */
.tally {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(40px, 7vh, 88px);
  width: min(360px, 38vw);
  padding: 1.1rem 1.1rem 1.2rem;
  border-radius: 14px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .5);
}
.tally__head { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: .9rem; }
.tally__title { flex: none; font-family: var(--serif); font-size: 1.6rem; line-height: 1; color: var(--lime); }
.tally__text { font-size: .74rem; line-height: 1.45; opacity: .8; }
.tally__digits { display: flex; gap: 4px; font-family: var(--serif); font-size: 1.7rem; line-height: 1; }
.tally__digits .d {
  position: relative;
  flex: 1;
  display: grid;
  place-items: center;
  height: 2.6rem;
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
}
.tally__digits .d b { font-weight: 400; display: block; }
.tally__digits .sep { align-self: flex-end; padding-bottom: .2rem; opacity: .7; }

/* ==========================================================================
   STATEMENT
   ========================================================================== */
.statement {
  position: relative;
  padding: clamp(140px, 18vw, 260px) var(--gutter);
  text-align: center;
  background: var(--paper);
  overflow: hidden;
}
.statement__inner { position: relative; z-index: 1; max-width: 840px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.statement__title {
  margin: 1.5rem 0 1rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.4rem, 9.5vw, 9rem);
  line-height: .98;
  letter-spacing: -.03em;
  color: var(--ink);
}
.statement__en { font-style: italic; font-size: 1.15rem; color: var(--cobalt); }
.statement__body { max-width: 620px; margin: 2.25rem auto 2.5rem; font-size: clamp(1.05rem, 1.35vw, 1.22rem); line-height: 1.75; color: var(--ink-70); }
.statement__body em { font-family: var(--serif); font-style: normal; color: var(--ink); font-size: 1.1em; }

.doodles { position: absolute; inset: 0; pointer-events: none; }
.doodle {
  position: absolute;
  overflow: visible;
  color: var(--cobalt);
  fill: none;
  stroke: var(--cobalt);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.doodle--bowl  { top: 11%; left: 5%;  width: clamp(110px, 14vw, 210px); }
.doodle--fish  { top: 17%; right: 4%; width: clamp(130px, 16vw, 240px); transform: rotate(-8deg); }
.doodle--herb  { bottom: 7%; left: 13%; width: clamp(56px, 7vw, 108px); }
.doodle--chili { top: 54%; left: 3%; width: clamp(48px, 5vw, 80px); }
.doodle--hat   { bottom: 9%; right: 7%; width: clamp(120px, 15vw, 220px); }

/* ==========================================================================
   JOURNAL — KÝ SỰ
   ========================================================================== */
.journal {
  position: relative;
  padding: clamp(110px, 12vw, 180px) var(--gutter);
  background: var(--paper);
  border-top: 1px solid var(--line);
  overflow: hidden;
}
/* Porcelain plate (đĩa men lam) the magazine rests on */
.journal__plate {
  position: absolute;
  left: 50%;
  top: 50%;
  --size: min(620px, 116vw);
  width: var(--size);
  margin: calc(var(--size) / -2) 0 0 calc(var(--size) / -2);
  fill: none;
  stroke: var(--cobalt);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--cobalt);
  opacity: .5;
  pointer-events: none;
}
.journal__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 430px) 1fr;
  gap: clamp(28px, 5vw, 88px);
  align-items: center;
}
.journal__copy { display: flex; flex-direction: column; gap: 1.25rem; }
.journal__aside { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; color: var(--ink-70); font-size: 1.05rem; line-height: 1.7; }
.journal__aside em { font-family: var(--serif); font-style: normal; color: var(--ink); }

.journal__book-wrap { perspective: 1200px; display: flex; flex-direction: column; align-items: center; }
.journal__book {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  padding: 20px 22px;
  border-radius: 3px 8px 8px 3px;
  background: var(--cobalt);
  color: var(--white);
  text-align: left;
  overflow: hidden;
  box-shadow:
    inset 6px 0 0 rgba(0, 0, 0, .12),
    0 40px 70px -28px rgba(27, 38, 89, .55),
    0 12px 24px -12px rgba(27, 38, 89, .35);
  transform-style: preserve-3d;
  will-change: transform;
}
.journal__masthead {
  position: relative;
  z-index: 2;
  display: block;
  font-family: var(--serif);
  font-size: clamp(4.4rem, 8.6vw, 7.6rem);
  line-height: .86;
  letter-spacing: -.04em;
}
.journal__issue {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  margin-top: .7rem;
  padding: .4rem 0;
  border-block: 1px solid rgba(255, 255, 255, .45);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.journal__photo { position: absolute; left: 22px; right: 22px; top: 39%; bottom: 20px; background: var(--cobalt); overflow: hidden; }
.journal__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.2) brightness(1.08); mix-blend-mode: multiply; }
.journal__cover-line {
  position: absolute;
  z-index: 2;
  left: 34px;
  bottom: 78px;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 3.6vw, 3.3rem);
  line-height: .95;
  letter-spacing: -.02em;
  text-shadow: 0 2px 20px rgba(14, 22, 60, .4);
}
.journal__sub { position: absolute; z-index: 2; left: 34px; right: 34px; bottom: 34px; font-size: .74rem; line-height: 1.4; opacity: .92; }
.journal__bar {
  display: inline-flex;
  align-items: center;
  gap: 1.1rem;
  margin-top: 1.6rem;
  padding: .55rem 1.1rem;
  border-radius: 999px;
  background: var(--bone);
  font-size: .78rem;
  font-weight: 600;
  color: var(--ink-70);
}
.journal__bar .sep { width: 1px; height: 14px; background: var(--line); }

/* ==========================================================================
   SPLIT — LOCATION / MENU
   ========================================================================== */
.split { display: grid; grid-template-columns: 1fr 1fr; }
.split__panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.75rem;
  padding: clamp(90px, 9vw, 140px) clamp(24px, 6vw, 96px);
}
.split__panel--ink { background: var(--ink); color: var(--paper); }
.split__panel--bone { background: var(--bone); color: var(--ink); }
.split__title { font-family: var(--serif); font-weight: 400; font-size: clamp(2.8rem, 5vw, 4.6rem); line-height: 1; letter-spacing: -.02em; text-align: center; }

.branches { width: 100%; max-width: 540px; border-top: 1px solid var(--line-light); }
.branches a {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .2rem 1rem;
  padding: 1.3rem 0 1.3rem 0;
  border-bottom: 1px solid var(--line-light);
  transition: padding-left .5s var(--ease);
}
.branches a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2.05rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  transform: scale(0);
  transition: transform .4s var(--ease);
}
.branches a:hover { padding-left: 1.4rem; }
.branches a:hover::before { transform: scale(1); }
.branches__name { font-family: var(--serif); font-size: clamp(1.6rem, 2.3vw, 2.1rem); line-height: 1.1; }
.branches__addr { grid-column: 1; font-size: .88rem; opacity: .68; }
.branches__hours { grid-column: 2; grid-row: 1; align-self: center; font-size: .78rem; font-weight: 600; letter-spacing: .1em; opacity: .8; }
.branches__go { grid-column: 2; grid-row: 2; justify-self: end; width: 20px; height: 20px; opacity: .6; transition: transform .4s var(--ease), opacity .3s; }
.branches a:hover .branches__go { transform: translateX(4px); opacity: 1; color: var(--lime); }

.split__img { position: relative; width: 100%; max-width: 540px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; }
.split__img--tall { aspect-ratio: 4 / 4.6; }
.split__img img { width: 100%; height: 100%; object-fit: cover; }
.split__img figcaption {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .45rem .9rem .45rem .45rem;
  border-radius: 999px;
  background: rgba(244, 241, 234, .92);
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--ink);
}
.split__img figcaption .tag { background: var(--lime); color: var(--ink); }
.split__text { max-width: 480px; text-align: center; font-size: 1.05rem; line-height: 1.7; color: var(--ink-70); }
.split__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }

/* ==========================================================================
   BY THE KILO — horizontal showcase
   ========================================================================== */
.kilo { position: relative; background: var(--paper); overflow: hidden; }
.kilo__pin { height: 100vh; display: flex; align-items: center; }
.kilo__track {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.6vw, 44px);
  width: max-content;
  padding: var(--header-h) var(--gutter) 0;
  will-change: transform;
}
.kilo__intro { width: clamp(300px, 30vw, 460px); flex: none; display: flex; flex-direction: column; gap: 1.4rem; padding-right: 3vw; color: var(--ink-70); font-size: 1.05rem; line-height: 1.7; }
.kilo__title { font-family: var(--serif); font-weight: 400; font-size: clamp(3.2rem, 6.4vw, 6.4rem); line-height: .96; letter-spacing: -.03em; color: var(--ink); }
.kilo__scale {
  width: clamp(130px, 11vw, 168px);
  margin: .25rem 0 -.25rem;
  overflow: visible;
  fill: none;
  stroke: var(--cobalt);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--cobalt);
}
.kilo__hint { display: inline-flex; align-items: center; gap: .5rem; font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--cobalt); }
.kilo__hint svg { width: 16px; height: 16px; }

.dish { position: relative; width: clamp(260px, 23vw, 340px); flex: none; display: flex; flex-direction: column; gap: .5rem; }
.dish:nth-of-type(even) { transform: translateY(7vh); }
.dish figure { aspect-ratio: 4 / 5; margin-bottom: .75rem; overflow: hidden; border-radius: 4px; background: var(--bone); }
.dish figure img { width: 100%; height: 100%; object-fit: cover; scale: 1.14; transition: scale 1.2s var(--ease); }
.dish:hover figure img { scale: 1.2; }
.dish .tag { position: absolute; top: 14px; left: 14px; }
.dish h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.45rem, 1.9vw, 1.85rem); line-height: 1.12; color: var(--ink); }
.dish__en { font-size: .86rem; font-style: italic; color: var(--ink-50); }
.dish__meta { display: flex; justify-content: space-between; margin-top: .35rem; padding-top: .75rem; border-top: 1px solid var(--line); font-size: .82rem; font-weight: 600; letter-spacing: .06em; }

.kilo__end {
  flex: none;
  width: clamp(200px, 18vw, 260px);
  aspect-ratio: 1;
  margin-left: 2vw;
  margin-right: 4vw;
  border-radius: 50%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: .8rem;
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 1.7vw, 1.7rem);
  line-height: 1.15;
  transition: background-color .4s, color .4s, transform .6s var(--ease);
}
.kilo__end svg { width: 26px; height: 26px; transition: transform .4s var(--ease); }
.kilo__end:hover { background: var(--lime); color: var(--ink); transform: rotate(-6deg) scale(1.04); }
.kilo__end:hover svg { transform: translateX(5px); }

/* ==========================================================================
   EARTH TO PEOPLE
   ========================================================================== */
.earth { position: relative; min-height: 115vh; display: grid; place-items: center; overflow: hidden; color: var(--white); text-align: center; }
.earth__media { position: absolute; inset: 0; }
.earth__media img { width: 100%; height: 100%; object-fit: cover; }
.earth__media::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(12, 18, 44, .45), rgba(12, 18, 44, .2) 70%); }
.earth__content { position: relative; z-index: 1; max-width: 1100px; padding: 0 var(--gutter); display: flex; flex-direction: column; align-items: center; gap: 1.6rem; font-size: 1.1rem; line-height: 1.7; }
.earth__content > p { max-width: 600px; }
.earth__title { font-family: var(--serif); font-weight: 400; font-size: clamp(3.6rem, 10.5vw, 10rem); line-height: .94; letter-spacing: -.035em; text-shadow: 0 4px 40px rgba(12, 18, 44, .35); }

/* ==========================================================================
   STORIES — NHẬT KÝ
   ========================================================================== */
.stories { padding: clamp(100px, 11vw, 160px) 0; background: var(--bone); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; padding: 0 var(--gutter); margin-bottom: clamp(36px, 4vw, 56px); }
.section-head__meta { display: flex; align-items: center; gap: 1.5rem; font-weight: 600; font-size: .9rem; color: var(--ink-70); }
.stories__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.8vw, 28px); padding: 0 var(--gutter); }

.story {
  position: relative;
  aspect-ratio: 9 / 15;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  color: var(--white);
  box-shadow: 0 30px 50px -30px rgba(27, 38, 89, .4);
  transition: translate .7s var(--ease), rotate .7s var(--ease);
}
.story:hover { translate: 0 -8px; rotate: -.6deg; }
.story--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: scale 1.2s var(--ease); }
.story--photo:hover img { scale: 1.06; }
.story--photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(12, 18, 44, .55), rgba(12, 18, 44, 0) 55%); }
.story__top { position: absolute; z-index: 2; top: 14px; left: 14px; display: flex; align-items: center; gap: .5rem; font-size: .72rem; font-weight: 600; }
.story__avatar { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--red); }
.story__avatar svg { width: 19px; aspect-ratio: 251 / 220; color: var(--white); }
.story--white .story__top { color: var(--ink); }
.story__title {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 9%;
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.2vw, 3.1rem);
  line-height: .98;
  letter-spacing: -.02em;
}
.story__title--ink { top: 13%; bottom: auto; color: var(--cobalt); }
.story--brand { background: var(--paper); color: var(--ink); display: grid; place-items: center; }
.story--brand .story__top { color: var(--ink); }
.story__logo { width: 70%; aspect-ratio: 251 / 220; margin-bottom: 12%; overflow: visible; color: var(--red); transition: transform .8s var(--ease); }
.story--brand:hover .story__logo { transform: translateX(6%) rotate(-6deg); }
.story__caption { position: absolute; bottom: 9%; left: 0; right: 0; text-align: center; font-family: var(--serif); font-size: 1.4rem; line-height: 1.1; }
.story__caption span { font-family: var(--sans); font-size: .66rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; opacity: .6; }

/* ==========================================================================
   MASCOT — BAO
   ========================================================================== */
.bao {
  overflow: visible;
  fill: none;
  stroke: var(--ink);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--ink);
}
.bao .fill-ink { stroke-width: 3; }
.bao__pupil { fill: var(--ink); stroke: none; }
.bao__cheek { fill: url(#dots); stroke: none; }
.bao__shadow { fill: rgba(27, 38, 89, .16); stroke: none; }
.bao--story { position: absolute; left: 14%; bottom: 8%; width: 72%; }

/* ==========================================================================
   LIBRARY
   ========================================================================== */
.library {
  display: grid;
  grid-template-columns: minmax(220px, 22%) 1fr;
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(100px, 10vw, 160px) var(--gutter);
  background: var(--paper);
}
.library__head { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 2rem; padding-right: clamp(16px, 2vw, 32px); border-right: 1px solid var(--line); }
.library__rail { display: flex; gap: 12px; height: clamp(440px, 62vh, 620px); }
.lib {
  position: relative;
  flex: 1 1 0;
  min-width: 64px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--ink);
  color: var(--white);
  transition: flex-grow .9s var(--ease);
}
.lib.is-active { flex-grow: 5.2; }
.lib img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .42; filter: grayscale(.85); transition: opacity .7s, filter .7s, scale 1.4s var(--ease); scale: 1.06; }
.lib.is-active img { opacity: 1; filter: none; scale: 1; }
.lib::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(12, 18, 44, .7), rgba(12, 18, 44, 0) 55%); opacity: 0; transition: opacity .6s; }
.lib.is-active::after { opacity: 1; }
.lib__tab {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 24px;
  writing-mode: vertical-rl;
  transform: translateX(-50%) rotate(180deg);
  white-space: nowrap;
  font-family: var(--serif);
  font-size: 1.2rem;
  transition: opacity .4s;
}
.lib.is-active .lib__tab { opacity: 0; }
.lib__body {
  position: absolute;
  z-index: 2;
  left: 28px;
  right: 28px;
  bottom: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .8rem;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .3s, transform .5s var(--ease);
  pointer-events: none;
}
.lib.is-active .lib__body { opacity: 1; transform: none; transition-delay: .35s; }
.lib__body .tag { background: var(--lime); color: var(--ink); }
.lib__title { max-width: 16ch; font-family: var(--serif); font-size: clamp(1.8rem, 2.7vw, 2.8rem); line-height: 1.04; letter-spacing: -.015em; }
.lib__date { font-size: .78rem; font-weight: 600; letter-spacing: .12em; opacity: .8; }

/* ==========================================================================
   HELLO — ĂN CƠM CHƯA
   ========================================================================== */
.hello {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 4vw;
  padding: clamp(100px, 10vw, 160px) var(--gutter);
  background: var(--lime);
  color: var(--ink);
  overflow: hidden;
}
.hello__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 2rem; max-width: 640px; font-size: 1.1rem; line-height: 1.7; }
.hello__title { font-family: var(--serif); font-weight: 400; font-size: clamp(4.2rem, 12.5vw, 11.5rem); line-height: .88; letter-spacing: -.04em; }
.hello__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hello__stage { position: relative; display: grid; place-items: center; padding-top: 3rem; }
.bao--big { width: min(420px, 78vw); cursor: pointer; }
.bubble {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 4%;
  padding: .8rem 1.3rem;
  border-radius: 999px;
  background: var(--white);
  box-shadow: inset 0 0 0 2px var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  white-space: nowrap;
  rotate: 5deg;
}
.bubble::after {
  content: "";
  position: absolute;
  left: 22%;
  bottom: -9px;
  width: 18px;
  height: 18px;
  background: var(--white);
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg) skew(10deg, 10deg);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { background: var(--ink); color: var(--paper); padding-bottom: 32px; }
.marquee { overflow: hidden; padding: clamp(30px, 4vw, 52px) 0; border-bottom: 1px solid var(--line-light); }
.marquee__track { display: flex; align-items: center; gap: clamp(1.5rem, 3vw, 3rem); width: max-content; padding-right: clamp(1.5rem, 3vw, 3rem); font-family: var(--serif); font-size: clamp(3rem, 8vw, 7.4rem); line-height: 1.1; white-space: nowrap; }
.marquee__track svg { width: .95em; aspect-ratio: 251 / 220; flex: none; overflow: visible; color: var(--red); }

.footer__grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 3rem; padding: clamp(56px, 6vw, 88px) var(--gutter); }
.footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.footer__logo { width: 128px; aspect-ratio: 251 / 220; margin-bottom: 1.75rem; overflow: visible; color: var(--red); }
.news { width: 100%; max-width: 380px; display: grid; gap: .8rem; }
.news label { font-size: .9rem; opacity: .85; }
.news label em { font-family: var(--serif); font-style: normal; font-size: 1.1em; }
.news__row { display: flex; align-items: center; gap: .5rem; border-bottom: 1px solid rgba(255, 255, 255, .35); padding-bottom: .5rem; }
.news input { flex: 1; min-width: 0; padding: .6rem 0; border: 0; background: transparent; color: var(--paper); font: inherit; font-size: 1rem; outline: none; }
.news input::placeholder { color: rgba(244, 241, 234, .5); }
.news button { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: var(--ink); transition: transform .4s var(--ease); }
.news button:hover { transform: rotate(-45deg); }
.news button svg { width: 18px; height: 18px; }
.footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; font-size: .95rem; }
.footer__col .eyebrow { margin-bottom: .5rem; }
.footer__col a { opacity: .85; background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat; transition: opacity .3s, background-size .4s var(--ease); }
.footer__col a:hover { opacity: 1; background-size: 100% 1px; }
.footer__col p { opacity: .7; line-height: 1.6; }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin: 0 var(--gutter); padding-top: 24px; border-top: 1px solid var(--line-light); font-size: .8rem; opacity: .65; }
.footer__base p { display: flex; flex-wrap: wrap; gap: 1.5rem; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .utility a span { display: none; }
  .utility { gap: 1.25rem; }
  .stories__row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .utility { display: none; }
  .header.is-solid { height: 64px; }

  .menu__inner { grid-template-columns: 1fr; gap: 3rem; align-items: start; }
  .menu__nav em { display: none; }

  .hero__content { bottom: 150px; }
  .hero__list button { gap: .8rem; }
  .tally { left: var(--gutter); right: var(--gutter); bottom: 24px; width: auto; display: flex; align-items: center; gap: 1rem; padding: .8rem; }
  .tally__head { margin: 0; }
  .tally__text { display: none; }
  .tally__title { font-size: 1.25rem; }
  .tally__digits { flex: 1; font-size: 1.25rem; }
  .tally__digits .d { height: 2.1rem; border-radius: 5px; }

  .doodle--herb, .doodle--chili { display: none; }
  .doodle--bowl { top: 5%; left: 4%; }
  .doodle--fish { top: 6%; right: 2%; }
  .doodle--hat { bottom: 4%; right: 4%; }

  .journal__grid { grid-template-columns: 1fr; text-align: center; }
  .journal__copy, .journal__aside { align-items: center; max-width: 560px; margin: 0 auto; }
  .journal__book-wrap { width: min(400px, 86vw); margin: 0 auto; }
  .journal__plate { opacity: .4; }

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

  /* Horizontal showcase becomes a native swipe row */
  .kilo__pin { height: auto; display: block; padding: 96px 0 80px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .kilo__pin::-webkit-scrollbar { display: none; }
  .kilo__track { padding: 0 var(--gutter); align-items: flex-start; }
  .kilo__intro { width: min(320px, 80vw); scroll-snap-align: start; }
  .kilo__scale {
  width: clamp(130px, 11vw, 168px);
  margin: .25rem 0 -.25rem;
  overflow: visible;
  fill: none;
  stroke: var(--cobalt);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--cobalt);
}
.kilo__hint { display: inline-flex; }
  .dish { width: min(280px, 72vw); scroll-snap-align: start; }
  .dish:nth-of-type(even) { transform: none; }
  .kilo__end { align-self: center; }

  .earth { min-height: 100svh; }

  .stories__row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 24px; }
  .stories__row::-webkit-scrollbar { display: none; }
  .story { flex: none; width: min(260px, 66vw); scroll-snap-align: center; }

  .library { grid-template-columns: 1fr; }
  .library__head { flex-direction: row; align-items: flex-end; border-right: 0; padding-right: 0; }
  .library__rail { flex-direction: column; height: auto; }
  .lib { flex: none; height: 76px; transition: height .8s var(--ease); }
  .lib.is-active { height: 380px; }
  .lib__tab { writing-mode: horizontal-tb; transform: translateY(-50%); left: 20px; top: 50%; bottom: auto; font-size: 1.15rem; }

  .hello { grid-template-columns: 1fr; text-align: left; }
  .hello__stage { padding-top: 4rem; }

  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .brand__logo { width: 52px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .footer__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer__base { flex-direction: column; }
  .hero__eyebrow { font-size: .66rem; letter-spacing: .18em; }
}

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