/* =========================================================
   Chrysadore — cuốn vở học trò làm từ giấy tái chế
   Bảng màu: mực, giấy, giấy kraft, ô liu, đỏ gạch (lề vở), vàng ép
   ========================================================= */
:root {
  --ink: #1c1a17;
  --ink-2: #2a2620;
  --paper: #f4ede0;
  --paper-2: #e9dfcc;
  --sheet: #fbf7ee;
  --kraft: #c9a87c;
  --kraft-d: #a8865c;
  --olive: #5f6c40;
  --olive-d: #3d4728;
  --rose: #c14756;
  --gold: #b8913f;
  --pencil: #8b857a;
  --line: rgba(64, 104, 158, .17);
  --margin: rgba(193, 71, 86, .55);

  --f-display: "Fraunces", "Times New Roman", serif;
  --f-body: "Be Vietnam Pro", system-ui, sans-serif;
  --f-hand: "Pangolin", "Be Vietnam Pro", cursive;

  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .17 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --fibers: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='2560' height='400'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.0125 .35' numOctaves='2' seed='8' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .25 0 0 0 0 .17 0 0 0 0 .08 0 0 0 .55 -.18'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
  --torn: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='26' preserveAspectRatio='none'%3E%3Cpath d='M0 26V15l9-4 9 3 13-8 11 5 12-8 13 7 13-4 11 7 15-9 12 5 9-6 15 8 12-5 13 7 14-8 12 5 13-6 14 8 20 3V26z'/%3E%3C/svg%3E");

  --wrap: min(1180px, 100% - 48px);
  --ease-pop: cubic-bezier(.175, .885, .32, 2.2);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { width: var(--wrap); margin-inline: auto; position: relative; }
.hand { font-family: var(--f-hand); }
::selection { background: var(--rose); color: #fff; }
:focus-visible { outline: 2px dashed var(--rose); outline-offset: 4px; }

/* ---------- Chất liệu nền ---------- */
.grain {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: var(--noise); opacity: .35; mix-blend-mode: overlay;
}
.ink { background: var(--ink); color: var(--paper); position: relative; }
.kraft {
  position: relative;
  background-color: var(--kraft);
  background-image: var(--fibers), var(--noise);
}
.paper { position: relative; background: var(--paper) var(--noise); }
.dotted {
  position: relative;
  background-color: var(--paper);
  background-image: radial-gradient(rgba(28, 26, 23, .16) 1.2px, transparent 1.6px), var(--noise);
  background-size: 22px 22px, auto;
}
.graph {
  position: relative;
  background-color: #f0eee4;
  background-image:
    linear-gradient(rgba(95, 108, 64, .16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(95, 108, 64, .16) 1px, transparent 1px),
    linear-gradient(rgba(95, 108, 64, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(95, 108, 64, .08) 1px, transparent 1px),
    var(--noise);
  background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px, auto;
}
.notebook, .notebook-bg {
  background-color: var(--sheet);
  background-image:
    linear-gradient(90deg, transparent 64px, var(--margin) 64px 66px, transparent 66px),
    repeating-linear-gradient(to bottom, transparent 0 31px, var(--line) 31px 32px),
    var(--noise);
}
.notebook-bg { position: relative; }
.torn-top {
  position: absolute; left: 0; right: 0; top: -24px; height: 26px; z-index: 2;
  background: inherit;
  -webkit-mask: var(--torn) repeat-x 0 100% / 240px 26px;
  mask: var(--torn) repeat-x 0 100% / 240px 26px;
}

/* băng keo giấy */
.tape {
  position: absolute; z-index: 3; width: 108px; height: 30px;
  top: -14px; left: 50%; transform: translateX(-50%) rotate(-4deg);
  background: rgba(233, 220, 180, .78) var(--noise);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .12);
  clip-path: polygon(0 8%,3% 0,97% 6%,100% 0,98% 50%,100% 100%,96% 92%,4% 100%,0 94%,2% 50%);
}
.tape.t-l { left: 8%; transform: rotate(-32deg); }
.tape.t-r { left: auto; right: 4%; transform: rotate(28deg); }

/* ---------- Thanh tiến độ = đường chỉ khâu ---------- */

/* ---------- Thanh điều hướng kính lỏng ---------- */
.glass-nav { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 50; }
.glass {
  position: relative; display: flex; border-radius: 999px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .18), 0 0 0 1px rgba(255, 255, 255, .35);
  transition: all .5s var(--ease-pop);
}
.glass > span { position: absolute; inset: 0; border-radius: inherit; }
.glass-blur {
  backdrop-filter: blur(16px) saturate(180%); -webkit-backdrop-filter: blur(16px) saturate(180%);
  filter: url(#nav-glass-distortion); isolation: isolate; overflow: hidden;
}
.glass-tint { background: rgba(255, 255, 255, .22); transition: background .5s; }
.glass-rim { box-shadow: inset 2px 2px 1px rgba(255, 255, 255, .55), inset -1px -1px 1px rgba(255, 255, 255, .4); }
.glass-content { position: relative; z-index: 1; display: flex; align-items: center; gap: 4px; padding: 7px; }
.nav-logo { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; overflow: hidden; margin-right: 2px; }
.nav-logo img { width: 28px; height: 28px; border-radius: 6px; }
.nav-btn, .nav-fav {
  display: flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 999px;
  font: 500 14px/1.2 var(--f-body); letter-spacing: 0; text-decoration: none; white-space: nowrap;
  color: var(--ink); transition: all .5s var(--ease-pop);
}
.nav-btn svg, .nav-fav svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.nav-btn:hover { background: rgba(193, 71, 86, .12); }
.nav-btn.on { background: var(--rose); color: #fff; transform: scale(1.04); box-shadow: 0 4px 14px rgba(193, 71, 86, .35); }
.nav-div { width: 1px; height: 24px; margin: 0 4px; background: rgba(193, 71, 86, .25); }
.nav-fav { position: relative; width: 40px; height: 40px; padding: 0; justify-content: center; color: var(--rose); }
.nav-fav:hover { transform: scale(1.1); }
.fav-count {
  position: absolute; top: 1px; right: 0; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
  background: var(--rose); color: #fff; font: 700 10px/17px var(--f-body); text-align: center;
}
.glass-nav.on-dark .glass-tint { background: rgba(28, 26, 23, .28); }
.glass-nav.on-dark .nav-btn:not(.on) { color: var(--paper); }
.glass-nav.on-dark .nav-fav { color: #f2b7be; }
/* nút đổi ngôn ngữ: viên thuốc hai ngăn, ngăn đang chọn là nền đỏ */
.nav-lang {
  position: relative; display: flex; align-items: center; height: 34px; margin-left: 2px; padding: 3px;
  border: 1.5px solid rgba(193, 71, 86, .45); border-radius: 999px; background: none; cursor: pointer;
  font: 700 12px/1 var(--f-body); color: var(--ink);
}
.nav-lang span { position: relative; z-index: 1; display: grid; place-items: center; width: 28px; height: 100%; border-radius: 999px; transition: color .4s var(--ease-pop); }
.nav-lang::before {
  content: ""; position: absolute; top: 3px; bottom: 3px; left: 3px; width: 28px; border-radius: 999px;
  background: var(--rose); transition: transform .5s var(--ease-pop);
}
.nav-lang[data-on="en"]::before { transform: translateX(28px); }
.nav-lang[data-on="vi"] [data-l="vi"], .nav-lang[data-on="en"] [data-l="en"] { color: #fff; }
.nav-lang:hover { border-color: var(--rose); }
.nav-lang:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; }
.glass-nav.on-dark .nav-lang { color: var(--paper); border-color: rgba(242, 183, 190, .5); }
/* đang dựng bản tiếng Anh: giấu trang để khỏi chớp tiếng Việt */
html.en-wait body { visibility: hidden; }

/* ---------- 1. Đầu trang ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden;
  background: radial-gradient(120% 90% at 30% 40%, #2b2721 0%, var(--ink) 60%, #12110f 100%);
  color: var(--paper);
  display: grid; align-items: center;
  padding: 130px 0 150px;
}
.hero .grain { opacity: .5; }
.lace { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.lace-path, .lace-weave { fill: none; stroke-linecap: round; }
.lace-path { stroke: #efe5d0; stroke-width: 10; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .45)); }
.lace-weave { stroke: rgba(80, 64, 40, .35); stroke-width: 10; stroke-dasharray: 2 7; }
.eyelets circle { fill: var(--ink); stroke: var(--gold); stroke-width: 5; }

.hero-shoe {
  position: absolute; z-index: 2; height: auto; pointer-events: none;
  filter: drop-shadow(0 28px 26px rgba(0, 0, 0, .55));
}
.hero-shoe.s1 { width: clamp(190px, 25vw, 420px); left: -3vw; top: 9vh; rotate: -14deg; }
.hero-shoe.s2 { width: clamp(220px, 29vw, 480px); right: -4vw; bottom: 3vh; rotate: 9deg; }
.hero-shoe.s3 { width: clamp(130px, 16vw, 260px); left: 9vw; bottom: 5vh; rotate: -5deg; }
.hero-shoe.s4 { width: clamp(80px, 9vw, 150px); right: 33vw; top: -3vh; rotate: 196deg; }

.hero-card {
  position: absolute; z-index: 2; right: 8vw; top: 16vh; margin: 0;
  width: clamp(170px, 21vw, 310px); rotate: 5deg;
  background: var(--sheet); padding: 12px 12px 44px;
  box-shadow: 0 30px 50px rgba(0, 0, 0, .5);
}
.hero-card img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; filter: saturate(.85) contrast(1.05); }
.hero-card figcaption { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; color: var(--ink); font-size: 18px; }
.torn { clip-path: polygon(0 2%, 7% 0, 18% 1.5%, 31% 0, 44% 1%, 58% 0, 71% 1.8%, 84% .4%, 100% 1.5%, 99% 14%, 100% 29%, 98.6% 46%, 100% 61%, 99% 78%, 100% 98%, 88% 100%, 74% 98.5%, 61% 100%, 47% 98.4%, 33% 100%, 20% 98.6%, 8% 100%, 0 98%, 1% 81%, 0 64%, 1.2% 47%, 0 31%, 1% 15%); }

.hero-copy { position: relative; z-index: 3; width: var(--wrap); margin-inline: auto; }
.hero .eyebrow { font-size: clamp(17px, 1.6vw, 21px); color: var(--kraft); max-width: 34ch; margin-bottom: 18px; }
.hero-title {
  font-family: var(--f-display); font-weight: 300; font-variation-settings: "opsz" 144;
  font-size: clamp(3.5rem, 11.5vw, 11rem); line-height: .84; letter-spacing: -.025em;
  text-shadow: 0 4px 30px rgba(0, 0, 0, .45);
}
.hero-title > * { display: block; }
.hero-title .ht-b { font-style: italic; font-weight: 800; color: var(--kraft); padding-left: 1.1em; }
.hero-title .ht-c { padding-left: .35em; }
.hero-ransom { margin: 34px 0 0 .3em; font-size: clamp(1.3rem, 2.7vw, 2.2rem); max-width: 20em; }

.scraps { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.scrap { position: absolute; top: -8%; left: var(--x); animation: fall var(--d) linear var(--dl) infinite; will-change: transform; }
.scrap i { display: block; animation: sway calc(var(--d) / 3) ease-in-out var(--dl) infinite alternate; }
.scrap .bit { width: var(--w); height: var(--h); background: var(--c) var(--noise); clip-path: var(--cp); opacity: .9; }
.scrap svg { width: var(--w); height: calc(var(--w) * 1.66); fill: var(--c); }
@keyframes fall { from { transform: translate3d(0, -12vh, 0) rotate(0); } to { transform: translate3d(0, 118vh, 0) rotate(var(--rot)); } }
@keyframes sway { from { transform: translateX(calc(var(--sw) * -1)) rotate(-18deg); } to { transform: translateX(var(--sw)) rotate(18deg); } }

.cue {
  position: absolute; z-index: 4; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  text-decoration: none; color: var(--kraft); font-size: 17px;
}
.prints { position: relative; width: 44px; height: 86px; }
.pr { position: absolute; width: 13px; height: 28px; fill: var(--paper); opacity: 0; animation: step 2.8s infinite; }
.pr.l { left: 6px; } .pr.r { right: 6px; }
.pr:nth-child(1) { top: 0; animation-delay: 0s; }
.pr:nth-child(2) { top: 18px; animation-delay: .5s; }
.pr:nth-child(3) { top: 38px; animation-delay: 1s; }
.pr:nth-child(4) { top: 56px; animation-delay: 1.5s; }
.pr.l { rotate: 172deg; } .pr.r { rotate: 188deg; }
@keyframes step { 0%, 100% { opacity: 0; } 12% { opacity: .85; } 55% { opacity: .2; } 70% { opacity: 0; } }

/* ---------- Chữ cắt dán ---------- */
/* mỗi TỪ một mảnh giấy, một kiểu chữ: đọc liền mạch, dấu tiếng Việt không bị cắt rời khỏi chữ */
[data-ransom].rdone { line-height: 1.7; }
.rw { display: inline-block; white-space: nowrap; }
.rl {
  display: inline-block; padding: .14em .28em .08em; margin: .08em 0;
  line-height: 1.15; box-shadow: 1px 2px 0 rgba(0, 0, 0, .28);
  transform: rotate(var(--r)) translateY(var(--y));
}
.rs { display: inline-block; width: .18em; }

/* ---------- Tiêu đề chung ---------- */
section { position: relative; }
.sec-head { max-width: 760px; margin-bottom: 72px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.eyebrow { font-size: 21px; color: var(--rose); margin-bottom: 10px; }
.sec-title {
  font-family: var(--f-display); font-weight: 400; font-variation-settings: "opsz" 120;
  font-size: clamp(2.1rem, 4.6vw, 3.9rem); line-height: 1.04; letter-spacing: -.015em; margin-bottom: 26px;
}
.sec-title em { font-style: italic; color: var(--rose); }
.sec-lede { font-size: 18px; max-width: 62ch; }

/* ---------- 2. Tuyên ngôn ---------- */
.manifesto {
  background: #2a2620 var(--fibers);
  padding: 90px 0;
}
.mf-pin { min-height: 100vh; display: grid; place-items: center; padding: 30px 20px; }
.mf-page {
  position: relative; width: min(840px, 100%);
  padding: 46px 48px 40px 96px; box-shadow: 0 40px 80px rgba(0, 0, 0, .45);
  rotate: -.6deg; background-position: 0 14px;
  line-height: 32px;
}
.mf-tag { position: absolute; top: 14px; right: 30px; margin: 0; color: var(--rose); font-size: 20px; rotate: 4deg; }
.mf-lead {
  font-family: var(--f-display); font-style: italic; font-weight: 500;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 64px; margin-bottom: 18px; letter-spacing: -.01em;
}
.mf-body p { font-size: 17.5px; line-height: 32px; margin: 0 0 32px; }
.mf-body p:last-child { margin-bottom: 18px; }
.mf-sign { margin: 0; font-size: 20px; line-height: 32px; }
.mf-sign .hand { font-size: 26px; color: var(--rose); }
.mf-sign em { font-family: var(--f-display); }
.reveal-words .w { transition: none; }
.mf-doodle { position: absolute; right: 40px; bottom: 26px; width: 160px; }

.doodle path { fill: none; stroke: var(--rose); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; filter: url(#pencil); }

/* ---------- 3. Câu chuyện ---------- */
.story { padding: 150px 0 140px; }
.story .sec-lede { font-size: 19px; }
.act { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 48px; align-items: center; margin: 120px 0; }
.act-text { grid-column: span 5; }
.act-media { grid-column: span 7; }
.act.rev .act-text { order: 2; }
.act-no { font-family: var(--f-hand); font-size: 22px; color: var(--rose); margin-bottom: 4px; }
.act h3 {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(2rem, 3.8vw, 3.3rem); line-height: 1.12; letter-spacing: -.01em;
}
.rule { display: block; width: 48px; height: 3px; background: var(--ink); margin: 22px 0; border-radius: 2px; }
.act-quote { margin: 30px 0 0; font-size: clamp(1.15rem, 2vw, 1.55rem); }
.clip-card {
  position: relative; margin-inline: auto; max-width: 540px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  padding: 26px 24px 18px; background: var(--sheet) var(--noise);
  box-shadow: 0 26px 50px rgba(60, 40, 15, .3), 0 2px 0 rgba(0, 0, 0, .05);
  rotate: var(--tilt, 0deg);
}
.clip-card figure { margin: 0; overflow: hidden; aspect-ratio: 2 / 3; }
.clip-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s cubic-bezier(.4, 0, .2, 1); }
.clip-card figure:hover img { transform: scale(1.05); }
.clip-note { grid-column: 1 / -1; text-align: center; margin: 0; font-size: 20px; color: var(--pencil); }
.story-close {
  max-width: 34ch; margin: 40px auto 0; text-align: center;
  font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.35;
}

/* ---------- 4. Ba lời hứa ---------- */
.promises { padding: 140px 0 0; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; align-items: start; }
.index-card {
  position: relative; padding: 34px 28px 30px; min-height: 100%;
  background-color: #fffdf6;
  background-image:
    linear-gradient(transparent 82px, var(--margin) 82px 84px, transparent 84px),
    repeating-linear-gradient(transparent 0 27px, var(--line) 27px 28px);
  background-position: 0 0, 0 2px;
  box-shadow: 0 18px 34px rgba(40, 30, 10, .18);
  rotate: var(--tilt); transition: rotate .5s var(--ease-pop), translate .5s var(--ease-pop);
}
.index-card:hover { rotate: 0deg; translate: 0 -6px; }
.ic-no { font-family: var(--f-display); font-style: italic; font-size: 26px; color: var(--rose); margin: 0 0 6px; }
.index-card h3 { font-family: var(--f-display); font-weight: 600; font-size: 1.75rem; line-height: 1.1; margin-bottom: 18px; }
.index-card p { line-height: 28px; }
.ic-quote { font-size: 23px; color: var(--olive-d); margin-top: 18px; }
.ic-shoe { width: 82%; margin: 6px auto -10px; rotate: -8deg; filter: drop-shadow(0 16px 14px rgba(0, 0, 0, .25)); }

.checks { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 4px; }
.checks li { position: relative; padding-left: 34px; line-height: 28px; }
.checks li::before {
  content: ""; position: absolute; left: 2px; top: 6px; width: 16px; height: 16px;
  border: 2px solid var(--ink); border-radius: 3px 5px 3px 4px; rotate: -4deg;
}
.checks li::after {
  content: ""; position: absolute; left: 5px; top: 0; width: 20px; height: 20px;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M3 11 C5 12 7 14 8 17 C10 11 13 6 18 2' fill='none' stroke='%23c14756' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
  transform-origin: 20% 80%;
}
.js .checks:not(.in) li::after { transform: scale(0); }
.checks.in li::after { transition: transform .45s var(--ease-pop); transition-delay: calc(var(--i, 0) * 120ms); }

.band { margin-top: 140px; background: var(--ink); color: var(--paper); padding: 0 0 90px; overflow: hidden; position: relative; }
.band-track {
  display: flex; width: max-content; padding: 26px 0; font-size: clamp(1.4rem, 3vw, 2.4rem);
  animation: marquee 38s linear infinite; border-bottom: 2px dashed rgba(244, 237, 224, .25);
}
.band-track > span { padding-right: .8em; }
@keyframes marquee { to { transform: translateX(-50%); } }
.band-copy { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: end; padding-top: 70px; }
.band-title { font-family: var(--f-display); font-style: italic; font-weight: 400; font-size: clamp(2.2rem, 5vw, 4.2rem); line-height: 1; color: var(--kraft); }
.band-copy p { font-size: 19px; margin: 0; color: #e8dfcf; }

/* ---------- 5. Vật liệu tái chế ---------- */
.materials { padding: 150px 0; }
.mat-top { display: grid; grid-template-columns: 7fr 5fr; gap: 64px; align-items: center; }
.big-num { position: relative; }
.bn-value {
  font-family: var(--f-display); font-weight: 800; font-variation-settings: "opsz" 144;
  font-size: clamp(5rem, 15vw, 12.5rem); line-height: .85; letter-spacing: -.045em; color: var(--olive); margin: 0;
}
.bn-value small { font-size: .45em; letter-spacing: 0; margin-left: .05em; }
.bn-stamp {
  position: absolute; left: 44%; top: -24px; z-index: 2;
  padding: 6px 18px 4px; border: 4px double var(--rose); border-radius: 6px;
  font: 700 clamp(1rem, 1.8vw, 1.4rem)/1.25 var(--f-body); letter-spacing: .05em; text-transform: uppercase; color: var(--rose);
  rotate: -11deg; opacity: .88; background: rgba(240, 238, 228, .55);
  -webkit-mask: var(--noise), linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: var(--noise) exclude, linear-gradient(#000 0 0);
}
.bn-label { font-size: 20px; margin: 18px 0 8px; max-width: 26ch; font-weight: 500; }
.bn-note { position: relative; font-size: 21px; color: var(--rose); max-width: 30ch; line-height: 1.3; margin-left: 30px; }
.bn-note .arrow { position: absolute; left: -96px; top: -40px; width: 90px; }

.mat-side { display: grid; gap: 30px; }
.r3 { position: relative; width: 200px; height: 200px; display: grid; place-items: center; }
.r3-ring { position: absolute; inset: 0; animation: spin 26s linear infinite; }
.r3-ring text { font: 600 13.5px var(--f-body); fill: var(--olive-d); }
.r3 b { font-family: var(--f-display); font-weight: 900; font-size: 64px; color: var(--olive); }
.r3::after { content: ""; position: absolute; inset: 42px; border: 2px dashed rgba(95, 108, 64, .5); border-radius: 50%; }
@keyframes spin { to { rotate: 360deg; } }
.r3-text { margin: 0; max-width: 40ch; }
.local { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; padding: 20px 22px; background: var(--sheet); box-shadow: 0 10px 24px rgba(0, 0, 0, .1); rotate: 1deg; }
.local-num { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: 3.4rem; line-height: 1; color: var(--gold); }
.local p:last-child { margin: 0; font-size: 15.5px; }

.patagonia {
  margin: 130px auto 120px; max-width: 30em; text-align: center;
  font-family: var(--f-display); font-weight: 300; font-size: clamp(1.35rem, 2.6vw, 2.1rem); line-height: 1.38;
}
.patagonia mark {
  color: inherit; padding: 0 .15em;
  background: linear-gradient(100deg, transparent .2em, rgba(201, 214, 120, .55) .3em, rgba(201, 214, 120, .38) calc(100% - .4em), transparent calc(100% - .2em));
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

.specimens {
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 46px 34px;
  padding: 70px 56px 56px; background: #d8c5a2 var(--fibers); box-shadow: inset 0 0 0 10px #b99d70, 0 30px 60px rgba(40, 30, 10, .25);
}
.sp-head { position: absolute; top: 22px; left: 56px; margin: 0; font-size: 22px; color: var(--ink); }
.sp { position: relative; margin: 0; padding: 10px 10px 0; background: #fffdf6; box-shadow: 0 12px 20px rgba(40, 30, 10, .25); rotate: var(--r); transition: rotate .5s var(--ease-pop), scale .5s var(--ease-pop); }
.sp:hover { rotate: 0deg; scale: 1.06; z-index: 2; }
.sp::before {
  content: ""; position: absolute; top: -7px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; z-index: 2;
  background: radial-gradient(circle at 35% 35%, #f08a92, var(--rose) 55%, #7d2430);
  box-shadow: 0 3px 4px rgba(0, 0, 0, .35);
}
.sp img { aspect-ratio: 1; object-fit: cover; width: 100%; height: auto; }
.sp figcaption { padding: 10px 2px 12px; font-size: 14px; line-height: 1.35; }
.sp figcaption b { display: block; font-family: var(--f-hand); font-weight: 400; font-size: 19px; color: var(--rose); }
.sp-foot { grid-column: 3; grid-row: 2; align-self: center; margin: 0; padding: 22px 20px; background: #fff7c9; box-shadow: 0 10px 18px rgba(40, 30, 10, .22); rotate: 3deg; font-size: 21px; line-height: 1.35; color: var(--ink); }
.sp-foot::before { content: "ghi chú"; display: block; margin-bottom: 6px; font-size: 16px; color: var(--rose); }
html[lang="en"] .sp-foot::before { content: "note"; }
.sp:nth-of-type(7) { grid-column: 4; }

.loop { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: center; margin-top: 140px; }
.loop-copy h3 { font-family: var(--f-display); font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.05; margin-bottom: 18px; }
.loop-dev { color: var(--pencil); font-size: 20px; }
.loop-svg { width: 100%; max-width: 520px; justify-self: center; overflow: visible; }
.loop-solid, .loop-dash { fill: none; stroke: var(--olive); stroke-width: 3; }
.loop-dash { stroke-dasharray: 8 9; stroke: var(--pencil); }
.loop-dot { fill: var(--rose); }
.loop-node circle { fill: var(--sheet); stroke: var(--ink); stroke-width: 2; }
.loop-node.dev circle { stroke-dasharray: 6 6; stroke: var(--pencil); }
.loop-node text { font: 500 17px var(--f-display); text-anchor: middle; fill: var(--ink); }
.loop-node text.sm { font: 14px var(--f-hand); fill: var(--rose); }

/* ---------- 6. Xưởng ---------- */
.factory { padding: 150px 0 140px; overflow: hidden; }
.factory .wrap { z-index: 1; }
.factory .eyebrow { color: #f2a6ae; }
.factory .sec-title em { color: var(--kraft); }
.factory .sec-lede { color: #ddd3c1; }
.stats { display: grid; grid-template-columns: repeat(5, 1fr); margin: 0 0 100px; border-top: 2px dashed rgba(244, 237, 224, .25); }
.stats div { padding: 26px 18px 0 0; }
.stats dt { font-family: var(--f-display); font-weight: 300; font-size: clamp(2.4rem, 5vw, 4.6rem); line-height: 1; white-space: nowrap; }
.stats dd { margin: 10px 0 0; font-family: var(--f-hand); font-size: 20px; color: var(--kraft); }

.film-pin { position: relative; z-index: 1; }
.film {
  position: relative; background: #0d0c0b; padding: 40px 0;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .5); rotate: -1.2deg; width: 104%; margin-left: -2%;
}
.film::before, .film::after {
  content: ""; position: absolute; left: 0; right: 0; height: 14px;
  background: radial-gradient(closest-side, #e9e1d0 82%, transparent 100%) 0 0 / 30px 14px repeat-x;
  background: repeating-linear-gradient(90deg, transparent 0 9px, rgba(233, 225, 208, .92) 9px 23px, transparent 23px 32px);
  -webkit-mask: linear-gradient(transparent 0 2px, #000 2px 12px, transparent 12px); mask: linear-gradient(transparent 0 2px, #000 2px 12px, transparent 12px);
}
.film::before { top: 12px; }
.film::after { bottom: 12px; }
.film-track { display: flex; gap: 16px; width: max-content; padding: 0 6vw; }
.frame { margin: 0; flex: none; position: relative; }
.frame img { height: clamp(220px, 44vh, 430px); width: auto; filter: sepia(.25) saturate(.8) contrast(1.05); transition: filter .5s; }
.frame:hover img { filter: none; }
.frame figcaption { position: absolute; left: 12px; bottom: 10px; font-family: var(--f-hand); font-size: 18px; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .8); }

.seen { margin: 90px auto 120px; max-width: 32ch; text-align: center; font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.35; color: var(--paper); }
.values-title { font-family: var(--f-display); font-style: italic; font-size: clamp(2rem, 4vw, 3.2rem); text-align: center; margin-bottom: 50px; color: var(--kraft); }
.stamps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 30px; }
.stamp { filter: drop-shadow(0 14px 16px rgba(0, 0, 0, .45)); rotate: var(--r); transition: rotate .5s var(--ease-pop), translate .5s var(--ease-pop); }
.stamp:hover { rotate: 0deg; translate: 0 -8px; }
.stamp-in {
  position: relative; padding: 13px; background: var(--sheet) var(--noise); color: var(--ink);
  -webkit-mask: radial-gradient(circle 5.5px, transparent 96%, #000) -8px -8px / 16px 16px, linear-gradient(#000 0 0) content-box;
  mask: radial-gradient(circle 5.5px, transparent 96%, #000) -8px -8px / 16px 16px, linear-gradient(#000 0 0) content-box;
}
.stamp-in img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; filter: sepia(.35) saturate(.85); outline: 1px solid rgba(0, 0, 0, .15); }
.stamp-in b { display: block; font-family: var(--f-display); font-weight: 600; font-size: 1.35rem; margin: 12px 0 6px; }
.stamp-in p { font-size: 14px; line-height: 1.45; margin: 0 0 8px; }
.stamp-in i { position: absolute; top: 20px; right: 20px; font: italic 700 20px var(--f-display); color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }

/* ---------- 7. Bộ sưu tập ---------- */
.collection { padding: 150px 0 140px; }
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: -30px 0 50px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font: 600 14.5px/1.2 var(--f-body);
  padding: 11px 18px; border-radius: 999px; border: 1.5px solid rgba(28, 26, 23, .3); background: transparent; color: var(--ink);
  cursor: pointer; transition: all .5s var(--ease-pop);
}
.chip svg { width: 14px; height: 14px; fill: currentColor; }
.chip:hover { border-color: var(--rose); color: var(--rose); }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--paper); transform: scale(1.04); }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px dashed rgba(28, 26, 23, .28); border-left: 2px dashed rgba(28, 26, 23, .28); }
.card {
  position: relative; padding: 22px 20px 20px; cursor: pointer; text-align: left; background: none; font: inherit; color: inherit;
  border: 0; border-right: 2px dashed rgba(28, 26, 23, .28); border-bottom: 2px dashed rgba(28, 26, 23, .28);
  display: flex; flex-direction: column; transition: background .3s;
}
.card:hover { background: rgba(201, 168, 124, .14); }
.card[hidden] { display: none; }
.shoe-box { position: relative; aspect-ratio: 1; margin-bottom: 14px; }
.shoe-box img {
  position: absolute; inset: 6%; width: 88%; height: 88%; object-fit: contain;
  filter: drop-shadow(0 18px 14px rgba(40, 30, 10, .28));
  transition: opacity .45s, transform .6s var(--ease-pop);
}
.shoe-box .alt { opacity: 0; transform: scale(.9) rotate(-6deg); }
.card:hover .shoe-box .main, .card.flip .shoe-box .main { opacity: 0; transform: scale(.92) rotate(5deg); }
.card:hover .shoe-box .alt, .card.flip .shoe-box .alt { opacity: 1; transform: none; }
.card .tag { font: 600 13px/1.2 var(--f-body); letter-spacing: .02em; color: var(--olive); margin: 0 0 6px; }
.card h3 { font-family: var(--f-display); font-size: 1.25rem; line-height: 1.15; margin: 0 0 4px; }
.card .no { font-family: var(--f-hand); color: var(--pencil); font-size: 17px; margin: 0; }
.heart {
  position: absolute; top: 14px; right: 14px; z-index: 2; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: rgba(255, 255, 255, .8); border: 1px solid rgba(193, 71, 86, .15); box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
  color: rgba(193, 71, 86, .6); transition: transform .4s var(--ease-pop), color .3s;
}
.heart svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.heart:hover { transform: scale(1.12); color: var(--rose); }
.heart.on { color: var(--rose); }
.heart.on svg { fill: currentColor; }
.heart.pop { animation: pop .5s var(--ease-pop); }
@keyframes pop { 40% { transform: scale(1.35); } }
.card.cta-card { background: var(--ink); color: var(--paper); justify-content: center; text-decoration: none; padding: 30px 26px; }
.card.cta-card:hover { background: var(--ink-2); }
.cta-card .hand { font-size: 22px; color: var(--kraft); }
.cta-card h3 { font-size: 1.8rem; margin-bottom: 14px; }
.cta-card .go { font: 600 15px var(--f-body); color: #f2a6ae; }
.grid-empty { text-align: center; font-size: 21px; margin-top: 30px; }

/* ---------- 8. Sáng lập ---------- */
.founders { padding: 150px 0 150px; }
.founders .sec-title { font-size: clamp(1.7rem, 3.4vw, 2.8rem); }
.polaroids { display: grid; grid-template-columns: 1fr 1fr 1.35fr; gap: 50px; align-items: start; }
.polaroid {
  position: relative; margin: 0; padding: 14px 14px 0; background: #fffdf8;
  box-shadow: 0 24px 40px rgba(40, 25, 5, .35); rotate: var(--r);
  transition: rotate .6s var(--ease-pop), translate .6s var(--ease-pop);
}
.polaroid:hover { rotate: 0deg; translate: 0 -8px; }
.polaroid img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; height: auto; filter: contrast(1.04) saturate(.9); }
.polaroid.wide { margin-top: 70px; }
.polaroid.wide img { aspect-ratio: 3 / 2; }
.polaroid figcaption { padding: 14px 4px 20px; }
.polaroid figcaption b { display: block; font-weight: 400; font-size: 27px; line-height: 1.1; }
.polaroid figcaption span { display: block; font-size: 14px; line-height: 1.45; color: #5b554b; margin-top: 4px; }

/* ---------- 9. Trường học ---------- */
.school { padding: 150px 0 150px; }
.school .wrap { padding-left: 40px; }
.steps { list-style: none; padding: 0; margin: 0 0 110px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 46px; counter-reset: s; }
.steps li { position: relative; }
.st-no {
  display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 18px;
  font-family: var(--f-hand); font-size: 36px; color: var(--rose);
  border: 2.5px solid var(--rose); border-radius: 52% 46% 55% 44% / 48% 55% 45% 52%; rotate: -6deg;
}
.steps h3 { font-family: var(--f-display); font-weight: 600; font-size: 1.45rem; line-height: 1.2; margin-bottom: 10px; }
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 30px; left: 84px; right: -36px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--pencil) 0 8px, transparent 8px 14px);
}
.care { display: grid; grid-template-columns: 7fr 5fr; gap: 40px; margin-bottom: 110px; }
.care-col { padding: 30px 32px; background: rgba(255, 255, 255, .7); box-shadow: 0 14px 30px rgba(0, 0, 0, .08); }
.care-col h3 { font-family: var(--f-display); font-size: 1.7rem; margin-bottom: 8px; }
.care-col.dev { background: transparent; box-shadow: none; border: 2px dashed var(--pencil); }
.todo { list-style: none; padding: 0; margin: 14px 0 0; }
.todo li { position: relative; padding-left: 34px; line-height: 30px; color: #5b554b; }
.todo li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 16px; height: 16px; border: 2px dashed var(--pencil); border-radius: 3px; }
.cta { text-align: center; }
.cta-lead { font-size: clamp(1.4rem, 3.2vw, 2.6rem); margin-bottom: 34px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 16px 30px; border-radius: 999px; border: 0;
  background: var(--rose); color: #fff; text-decoration: none;
  font: 600 15.5px/1.2 var(--f-body);
  box-shadow: 0 10px 24px rgba(193, 71, 86, .35); transition: transform .5s var(--ease-pop), box-shadow .3s;
}
.btn:hover { transform: scale(1.05) rotate(-1.5deg); }
.btn.ghost { background: transparent; color: var(--rose); box-shadow: inset 0 0 0 2px var(--rose); }
.btn.ghost svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.btn.ghost.on svg { fill: currentColor; }
.cta-mail { margin-top: 16px; font-size: 15px; color: var(--pencil); }

/* ---------- 10. Chân trang ---------- */
.foot { padding: 120px 0 50px; overflow: hidden; }
.foot .wrap { z-index: 1; }
.foot-mark { font-size: clamp(2.2rem, 8.5vw, 7.4rem); margin: 0 0 20px; text-align: center; line-height: 1.2; }
.foot-slogan { text-align: center; font-family: var(--f-display); font-size: clamp(1.4rem, 3vw, 2.2rem); margin: 0; }
.foot-vi { text-align: center; font-size: 22px; color: var(--kraft); margin-bottom: 80px; }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding-top: 34px; border-top: 2px dashed rgba(244, 237, 224, .2); }
.foot-cols b { display: block; font-family: var(--f-display); font-weight: 500; font-size: 1.15rem; margin-bottom: 6px; color: var(--kraft); }
.foot-cols p { font-size: 15px; color: #cfc5b3; margin: 0; }
.foot-copy { margin: 60px 0 0; font-size: 13px; color: #8f877a; text-align: center; }

/* ---------- Phiếu sản phẩm ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-bg { position: absolute; inset: 0; background: rgba(18, 16, 13, .62); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.modal-card {
  position: relative; width: min(900px, 100%); max-height: calc(100vh - 40px); overflow: auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 30px 30px 30px 84px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, .5); rotate: -.8deg; background-position: 0 6px; line-height: 32px;
}
.modal-x { position: absolute; top: 8px; right: 14px; width: 40px; height: 40px; border: 0; background: none; font-size: 34px; line-height: 1; cursor: pointer; color: var(--ink); z-index: 4; }
.modal-img { background: var(--kraft) var(--fibers); display: grid; place-items: center; aspect-ratio: 1; padding: 18px; }
.modal-img img { filter: drop-shadow(0 20px 16px rgba(0, 0, 0, .35)); max-height: 100%; object-fit: contain; }
.modal-info { padding: 0 6px 0 22px; }
.modal-info .hand { color: var(--rose); font-size: 20px; margin: 0; }
.modal-info .tag { font: 600 14px/32px var(--f-body); letter-spacing: .02em; color: var(--olive); margin: 0; }
.modal-info h3 { font-family: var(--f-display); font-weight: 600; font-size: 1.9rem; line-height: 32px; margin: 0 0 8px; }
.modal-info p { margin: 0 0 12px; }
.modal-info .checks { margin-bottom: 8px; }
.modal-price { font-size: 19px; color: var(--pencil); }
.modal-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.modal-actions .btn { padding: 13px 20px; font-size: 12.5px; }

/* ---------- Máy bay giấy ---------- */
.planes { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 40; overflow: visible; }
.plane-trail { fill: none; stroke: rgba(110, 104, 94, .55); stroke-width: 1.6; stroke-dasharray: 5 7; stroke-linecap: round; }
.plane path { stroke: rgba(28, 26, 23, .55); stroke-width: 1; stroke-linejoin: round; }
.plane .pf1 { fill: #fbf7ee; } .plane .pf2 { fill: #e3d8c3; }
.plane-spark { fill: var(--gold); }

/* ---------- Thích ứng ---------- */
@media (max-width: 1100px) {
  .stamps { grid-template-columns: repeat(3, 1fr); }
  .specimens { grid-template-columns: repeat(3, 1fr); padding: 70px 36px 46px; }
  .sp:nth-of-type(7) { grid-column: auto; }
  .sp-foot { grid-column: 2 / -1; grid-row: auto; rotate: -1deg; }
  .grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  body { font-size: 16px; }
  .glass-nav { top: 12px; }
  .nav-btn { padding: 10px; }
  .nav-btn span { display: none; }
  .hero { padding: 120px 0 200px; align-items: end; }
  .hero-card { right: 5vw; top: 84px; width: 32vw; padding: 8px 8px 8px; }
  .hero .eyebrow { max-width: 52vw; }
  .hero-card figcaption { position: static; padding-top: 8px; font-size: 15px; line-height: 1.2; }
  .hero-shoe.s1 { top: auto; bottom: 4vh; left: auto; right: -9vw; width: 42vw; rotate: -10deg; }
  .hero-shoe.s2 { width: 40vw; right: auto; left: -8vw; bottom: 3vh; }
  .hero-shoe.s3 { display: none; }
  .hero-shoe.s4 { right: auto; left: 16vw; width: 17vw; top: 66px; }
  .hero-title { font-size: clamp(3.2rem, 17vw, 6rem); }
  .act, .act.rev { grid-template-columns: 1fr; gap: 44px; margin: 90px 0; }
  .act-text, .act-media { grid-column: auto; }
  .act.rev .act-text { order: 0; }
  .cards { grid-template-columns: 1fr; gap: 46px; max-width: 520px; margin-inline: auto; }
  .band-copy { grid-template-columns: 1fr; gap: 20px; }
  .mat-top, .loop { grid-template-columns: 1fr; gap: 56px; }
  .bn-note { margin-left: 0; }
  .bn-note .arrow { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 0 20px; }
  .stats div:last-child { grid-column: span 2; }
  .film { rotate: 0deg; width: 100%; margin: 0; }
  .film-scroll { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .film-scroll .frame { scroll-snap-align: center; }
  .stamps { grid-template-columns: repeat(2, 1fr); }
  .polaroids { grid-template-columns: 1fr 1fr; gap: 34px; }
  .polaroid.wide { grid-column: 1 / -1; margin-top: 0; max-width: 560px; justify-self: center; }
  .school .wrap { padding-left: 34px; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .steps li:not(:last-child)::after { display: none; }
  .care { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: 1fr; text-align: center; }
  .modal-card { grid-template-columns: 1fr; padding: 26px 22px 26px 76px; }
  .modal-info { padding: 0; }
  .mf-page { padding: 40px 24px 34px 80px; }
  .notebook, .notebook-bg { background-image: linear-gradient(90deg, transparent 56px, var(--margin) 56px 58px, transparent 58px), repeating-linear-gradient(to bottom, transparent 0 31px, var(--line) 31px 32px), var(--noise); }
}
@media (max-width: 640px) {
  .sec-head { margin-bottom: 50px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .card { padding: 16px 12px; }
  .card h3 { font-size: 1.05rem; }
  .heart { top: 8px; right: 8px; width: 32px; height: 32px; }
  .specimens { grid-template-columns: repeat(2, 1fr); gap: 34px 20px; padding: 64px 20px 36px; }
  .sp-head { left: 20px; }
  .clip-card { gap: 12px; padding: 20px 14px 14px; }
  .polaroids { grid-template-columns: 1fr; max-width: 340px; margin-inline: auto; }
  .stamps { gap: 20px; }
  .stamp-in p { font-size: 13px; }
  .mf-page { padding: 34px 16px 30px 70px; }
  .mf-body p { font-size: 16px; }
  .school .wrap { padding-left: 30px; }
  .school.notebook-bg { background-image: linear-gradient(90deg, transparent 14px, var(--margin) 14px 16px, transparent 16px), repeating-linear-gradient(to bottom, transparent 0 31px, var(--line) 31px 32px), var(--noise); }
  .r3 { width: 170px; height: 170px; }
}

/* =========================================================
   Chuyển động học từ mẫu "community" (8bsite), giữ bảng màu tái chế
   ========================================================= */

/* bảng tuyên ngôn: nền xanh rêu như bảng lớp học; mái vòm ở cuối hero cùng màu */
/* sợi phấn sáng cho nền tối. Ô rộng 2560px: Chrome ghép ô nhiễu kéo dài vẫn lộ đường nối, nên cho ô rộng hơn màn hình */
:root {
  --chalk: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='2560' height='300'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.0125 .35' numOctaves='2' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .86 0 0 0 0 .83 0 0 0 0 .7 0 0 0 .3 -.1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
}
.manifesto { background: var(--olive-d) var(--chalk); }
.hero-dome {
  position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: var(--olive-d) var(--chalk);
  clip-path: inset(100% 50% 0% 50%);
}
.hero .cue { z-index: 5; }

/* tấm ảnh đầu trang: ảnh trôi chậm trong khung, dừng khi hero khuất */
.hc-img { display: block; overflow: hidden; }
.hc-img img { display: block; animation: hc-pan 9s ease-in-out infinite alternate; }
@keyframes hc-pan {
  from { transform: scale(1.16) translate(-12px, 8px); }
  to { transform: scale(1.16) translate(12px, -8px); }
}
.hero[data-paused] *, .hero[data-paused] *::before, .hero[data-paused] *::after { animation-play-state: paused !important; }

/* thanh điều hướng: cuộn xuống thì lui lên, cuộn lên thì quay lại */
.glass-nav { transition: translate .7s cubic-bezier(.2, .7, .1, 1); }
.glass-nav.nav-away { translate: 0 -160%; }

/* chữ dày dần: tiêu đề nhấn mạnh hơn ở chữ nghiêng */
.sec-title em { font-weight: 560; }
.ew { display: inline-block; }

/* bút dạ quang trên trang tuyên ngôn */
mark.kw {
  color: inherit; padding: 0 .06em; margin: 0 -.06em; border-radius: 2px;
  background: linear-gradient(transparent 48%, rgba(201, 168, 124, .7) 48% 90%, transparent 90%) no-repeat 0 0 / 100% 100%;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* dải "không phân biệt giai cấp": hai nửa trượt lại gần nhau */
.band-title .bt-l, .band-title .bt-r { display: block; }
.band-title .bt-r { padding-left: 1.1em; }

/* cửa xưởng bằng bìa các-tông mở ra trước dải phim */
.frame { overflow: hidden; }
.film-doors { position: absolute; inset: -40px 0; z-index: 3; display: flex; overflow: hidden; pointer-events: none; }
.door {
  flex: 1; position: relative; display: flex; align-items: center;
  background: var(--kraft) var(--fibers);
  box-shadow: inset 0 0 60px rgba(80, 55, 20, .35);
}
.door::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, rgba(60, 40, 15, .07) 0 2px, transparent 2px 10px);
}
.door.l { justify-content: flex-end; border-right: 2px dashed rgba(60, 40, 15, .5); }
.door.r { justify-content: flex-start; border-left: 2px dashed rgba(60, 40, 15, .5); }
.door span {
  position: relative; padding: 0 .45em; white-space: nowrap;
  font: italic 600 clamp(2rem, 6.4vw, 5.6rem)/1 var(--f-display); color: var(--ink); letter-spacing: -.02em;
}
.door.r span { color: var(--olive-d); }

/* nút: lòng nút được tô đầy từ một vòm nhỏ dưới đáy */
.btn, .chip { position: relative; isolation: isolate; overflow: hidden; }
.btn::before, .chip::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--olive-d);
  clip-path: inset(100% 30% 0 30% round 999px 999px 0 0);
  transition: clip-path .55s cubic-bezier(.2, .7, .1, 1);
}
.btn:hover::before, .btn:focus-visible::before,
.chip:hover::before, .chip:focus-visible::before { clip-path: inset(0 0 0 0 round 0 0 0 0); }
.btn { transition: transform .5s var(--ease-pop), box-shadow .3s, color .35s; }
.btn:hover { transform: scale(1.03); }
.btn.ghost::before, .chip::before { background: var(--rose); }
.btn.ghost:hover, .chip:not(.on):hover { color: #fff; border-color: var(--rose); }
.chip.on::before { display: none; }

/* gạch chân mọc ra cho liên kết chữ */
.foot-cols a, .cta-card .go {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1.5px;
  transition: background-size .5s cubic-bezier(.2, .7, .1, 1);
}
.foot-cols a:hover, .foot-cols a:focus-visible, .cta-card:hover .go { background-size: 100% 1.5px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .scraps, .planes { display: none; }
}
