/* ==========================================================================
   LamVienDaLat.com — Highland Mist Postcard
   Vibe: Đà Lạt sương mù + thông xanh + lavender + vàng nắng
   Palette: ink purple-slate + cream + pine + lavender + gold + berry
   Fonts: Spectral + Manrope + Fira Code
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Spectral:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600&family=Manrope:wght@300;400;500;600;700;800&family=Fira+Code:wght@400;500;700&display=swap');

:root {
  --ink: #2a2438;
  --ink-2: #3d3450;
  --ink-soft: #5a4f72;
  --paper: #f5efe0;          /* cream sương sớm */
  --paper-2: #ebe3cc;
  --paper-3: #ddd2b3;
  --pine: #3d5a4a;            /* xanh thông sâu */
  --pine-deep: #2a3d33;
  --pine-pale: #b8cdb8;
  --lavender: #8b7ba8;
  --lavender-deep: #5d4d7a;
  --lavender-soft: #c9bce0;
  --lavender-mist: #e0d5ec;
  --gold: #c9a458;            /* vàng đèn đêm + nắng + atisô */
  --gold-soft: #e0c08a;
  --gold-deep: #9a7a32;
  --berry: #a8324a;           /* đỏ rượu — hoa quỳ */
  --berry-deep: #7a2030;
  --rose: #d68fa8;            /* hồng đào — hoa */
  --line: rgba(42, 36, 56, 0.13);
  --line-strong: rgba(42, 36, 56, 0.28);

  --f-serif: 'Spectral', Georgia, serif;
  --f-sans: 'Manrope', system-ui, -apple-system, sans-serif;
  --f-mono: 'Fira Code', 'IBM Plex Mono', Consolas, monospace;

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
  --shadow-sm: 0 1px 2px rgba(42, 36, 56, 0.08);
  --shadow-md: 0 4px 18px rgba(42, 36, 56, 0.14);
  --shadow-lg: 0 14px 40px rgba(42, 36, 56, 0.22);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--f-sans); font-size: 16px; line-height: 1.65;
  color: var(--ink); background: var(--paper);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: 0; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-serif); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }

.skip-link { position: absolute; top: -100px; left: 12px; background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 8px; z-index: 100; font-weight: 600; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.icon { width: 1em; height: 1em; vertical-align: -0.125em; fill: currentColor; flex: none; }

/* ===== POSTMARK — dark slate-purple with rainbow gradient bottom ===== */
.postmark {
  background: var(--ink); color: var(--paper);
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.14em;
  text-transform: uppercase; padding: 10px 0; position: relative;
}
.postmark::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold) 25%, var(--lavender) 25%, var(--lavender) 50%, var(--pine) 50%, var(--pine) 75%, var(--berry) 75%, var(--berry) 100%);
}
.postmark__inner { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: clamp(14px, 3vw, 36px); flex-wrap: wrap; }
.postmark__item { display: inline-flex; align-items: center; gap: 9px; opacity: 0.92; white-space: nowrap; }
.postmark__item::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-soft); }
.postmark__item:nth-child(2)::before { background: var(--lavender-soft); }
.postmark__item:nth-child(3)::before { background: var(--berry); }

/* ===== MASTHEAD ===== */
.masthead { background: var(--paper); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); transition: box-shadow 0.3s var(--ease); }
.masthead.is-scrolled { box-shadow: var(--shadow-sm); }
.masthead__inner { max-width: var(--container); margin: 0 auto; padding: 14px var(--gutter); display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__icon { width: 44px; height: 44px; border-radius: 11px; flex: none; }
.brand__name { font-family: var(--f-serif); font-size: 24px; font-weight: 600; letter-spacing: -0.01em; line-height: 1; }
.brand__sub { font-family: var(--f-mono); font-size: 10.5px; font-weight: 600; color: var(--lavender-deep); letter-spacing: 0.14em; text-transform: uppercase; display: block; margin-top: 5px; }

.nav { display: flex; gap: clamp(16px, 2.5vw, 32px); margin-left: auto; }
.nav a { font-size: 15px; font-weight: 500; padding: 6px 0; position: relative; transition: color 0.2s var(--ease); }
.nav a:hover { color: var(--lavender-deep); }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px; background: var(--lavender); transition: right 0.3s var(--ease); }
.nav a:hover::after { right: 0; }

.cta-btn { background: var(--ink); color: var(--paper); font-family: var(--f-sans); font-size: 14px; font-weight: 600; padding: 12px 22px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; transition: all 0.25s var(--ease); box-shadow: 0 2px 0 #1a1428; }
.cta-btn:hover { background: var(--ink-2); transform: translateY(-1px); box-shadow: 0 4px 0 #1a1428; }
.cta-btn .icon { font-size: 16px; }

.hamburger { width: 44px; height: 44px; border-radius: 11px; background: var(--ink); color: var(--paper); display: none; align-items: center; justify-content: center; margin-left: auto; }
.hamburger svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; }
@media (max-width: 900px) { .nav, .masthead .cta-btn { display: none; } .hamburger { display: inline-flex; } }

/* ===== DRAWER ===== */
.drawer { position: fixed; inset: 0; z-index: 80; background: rgba(42, 36, 56, 0.55); backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transition: opacity 0.3s var(--ease), visibility 0.3s; }
.drawer.is-open { opacity: 1; visibility: visible; }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(360px, 88vw); background: var(--paper); padding: 28px 24px; display: flex; flex-direction: column; gap: 18px; transform: translateX(100%); transition: transform 0.4s var(--ease-out); overflow-y: auto; }
.drawer.is-open .drawer__panel { transform: translateX(0); }
.drawer__close { align-self: flex-end; width: 38px; height: 38px; border-radius: 50%; background: var(--paper-2); display: inline-flex; align-items: center; justify-content: center; }
.drawer a { display: block; padding: 14px 0; font-family: var(--f-serif); font-size: 22px; font-weight: 600; border-bottom: 1px solid var(--line); }
.drawer a:hover { color: var(--lavender-deep); }
.drawer .cta-btn { margin-top: 20px; justify-content: center; }

/* ===== HERO ===== */
.hero { position: relative; background: var(--ink); color: var(--paper); overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 50%; filter: brightness(0.7) saturate(1.08); }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(42,36,56,0.35) 0%, rgba(42,36,56,0.18) 30%, rgba(42,36,56,0.92) 100%),
    linear-gradient(90deg, rgba(42,36,56,0.55) 0%, rgba(42,36,56,0.05) 60%);
}
.hero__content { max-width: var(--container); margin: 0 auto; padding: clamp(80px, 14vh, 160px) var(--gutter) clamp(60px, 10vh, 110px); position: relative; min-height: clamp(560px, 82vh, 780px); display: flex; flex-direction: column; justify-content: flex-end; }

.hero__chapter {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--f-mono); font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--lavender-soft); margin-bottom: 22px; align-self: flex-start;
}
.hero__chapter::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.hero__chapter::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--berry); }

.hero__title { font-family: var(--f-serif); font-size: clamp(2.8rem, 7.5vw, 5.6rem); font-weight: 600; line-height: 0.96; letter-spacing: -0.022em; margin: 0 0 18px; color: var(--paper); max-width: 14ch; }
.hero__title em { font-style: italic; font-weight: 400; color: var(--gold-soft); display: block; }

.hero__sub { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.hero__sub-line { width: 50px; height: 2px; background: var(--gold); flex: none; }
.hero__sub-text { font-family: var(--f-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; color: rgba(245, 239, 224, 0.85); }

.hero__lede { font-family: var(--f-serif); font-size: clamp(1.05rem, 1.55vw, 1.25rem); line-height: 1.55; font-weight: 400; max-width: 60ch; color: rgba(245, 239, 224, 0.92); margin: 0 0 32px; }
.hero__lede strong { color: var(--paper); font-weight: 600; }
.hero__lede em { color: var(--gold-soft); font-style: italic; }

.hero__atlas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid rgba(245, 239, 224, 0.22); border-radius: 6px; overflow: hidden; max-width: 760px; background: rgba(42, 36, 56, 0.55); backdrop-filter: blur(8px); position: relative; }
.hero__atlas::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--gold) 0%, var(--gold) 25%, var(--lavender) 25%, var(--lavender) 50%, var(--pine) 50%, var(--pine) 75%, var(--berry) 75%, var(--berry) 100%); }
.hero__cell { padding: 20px 22px; border-right: 1px dashed rgba(245, 239, 224, 0.22); }
.hero__cell:last-child { border-right: 0; }
.hero__cell .num { font-family: var(--f-serif); font-size: clamp(1.4rem, 2.4vw, 1.95rem); font-weight: 600; line-height: 1; color: var(--gold-soft); margin-bottom: 6px; }
.hero__cell .lbl { font-family: var(--f-mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(245, 239, 224, 0.78); display: block; }
@media (max-width: 700px) {
  .hero__atlas { grid-template-columns: repeat(2, 1fr); }
  .hero__cell:nth-child(2) { border-right: 0; }
  .hero__cell:nth-child(1), .hero__cell:nth-child(2) { border-bottom: 1px dashed rgba(245, 239, 224, 0.22); }
}

/* ===== TICKER ===== */
.ticker { background: var(--lavender); color: var(--ink); overflow: hidden; }
.ticker__track { display: flex; animation: ticker 42s linear infinite; padding: 14px 0; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker__item { display: inline-flex; align-items: center; gap: 28px; padding: 0 24px; white-space: nowrap; font-family: var(--f-serif); font-size: 19px; font-weight: 500; font-style: italic; color: var(--ink); }
.ticker__item span:nth-child(even) { font-family: var(--f-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); font-style: normal; opacity: 0.78; }

/* ===== SECTION ===== */
.section { padding: clamp(60px, 9vw, 120px) 0; position: relative; }
.section--paper { background: var(--paper); }
.section--paper-2 { background: var(--paper-2); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--ink h2, .section--ink h3 { color: var(--paper); }
.section--pine { background: var(--pine-deep); color: var(--paper); }
.section--pine h2, .section--pine h3 { color: var(--paper); }

.chapter-label { font-family: var(--f-mono); font-size: 11.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--lavender-deep); display: inline-flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.chapter-label::before, .chapter-label::after { content: ""; width: 28px; height: 1.5px; background: var(--lavender-deep); }
.section--ink .chapter-label, .section--pine .chapter-label { color: var(--gold-soft); }
.section--ink .chapter-label::before, .section--ink .chapter-label::after, .section--pine .chapter-label::before, .section--pine .chapter-label::after { background: var(--gold-soft); }

.section__head { max-width: 800px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.section__head--left { margin-left: 0; margin-right: auto; text-align: left; }
.section__head--left .chapter-label::before { display: none; }
.section__title { font-family: var(--f-serif); font-size: clamp(2rem, 4.5vw, 3.5rem); font-weight: 600; line-height: 1.05; letter-spacing: -0.018em; margin: 0 0 18px; }
.section__title em { font-style: italic; font-weight: 400; color: var(--lavender-deep); }
.section--ink .section__title em, .section--pine .section__title em { color: var(--gold-soft); }
.section__lede { font-size: 17.5px; color: var(--ink-soft); line-height: 1.6; margin: 0; font-family: var(--f-serif); font-style: italic; }
.section--ink .section__lede, .section--pine .section__lede { color: rgba(245, 239, 224, 0.78); }

/* ===== INTRO ===== */
.intro__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(40px, 5vw, 80px); align-items: start; }
.intro__copy { font-family: var(--f-serif); font-size: 18px; line-height: 1.7; color: var(--ink); font-weight: 400; }
.intro__copy p:first-child { font-size: 19.5px; }
.intro__copy p:first-child::first-letter { font-family: var(--f-serif); font-size: 4.6em; font-weight: 700; font-style: normal; color: var(--lavender-deep); float: left; line-height: 0.9; padding: 6px 14px 0 0; margin-top: 4px; }
.intro__copy p { margin: 0 0 1.2em; }
.intro__copy strong { color: var(--berry-deep); font-weight: 700; }
.intro__copy em { color: var(--lavender-deep); font-style: italic; }

.factsheet { background: var(--paper-2); border: 1px solid var(--line-strong); border-radius: 6px; padding: 28px 26px; position: relative; }
.factsheet::before { content: ""; position: absolute; inset: 6px; border: 1px dashed var(--line-strong); border-radius: 4px; pointer-events: none; }
.factsheet__inner { position: relative; z-index: 1; }
.factsheet__title { font-family: var(--f-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--lavender-deep); margin: 0 0 18px; display: inline-flex; align-items: center; gap: 8px; }
.factsheet__title::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }
.factsheet dl { margin: 0; display: flex; flex-direction: column; }
.factsheet .row { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0; border-bottom: 1px dotted var(--line); gap: 16px; }
.factsheet .row:last-child { border-bottom: 0; }
.factsheet dt { font-family: var(--f-mono); font-size: 11px; font-weight: 500; color: var(--ink-soft); letter-spacing: 0.05em; text-transform: uppercase; flex: none; }
.factsheet dd { font-family: var(--f-serif); font-size: 16px; font-weight: 500; color: var(--ink); margin: 0; text-align: right; }
.factsheet dd em { font-style: italic; color: var(--lavender-deep); font-weight: 600; }
@media (max-width: 900px) { .intro__grid { grid-template-columns: 1fr; } }

/* ===== THESIS — on dark pine ===== */
.thesis__grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid rgba(245, 239, 224, 0.16); border-radius: 8px; overflow: hidden; }
@media (max-width: 980px) { .thesis__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .thesis__grid { grid-template-columns: 1fr; } }

.thesis-card { padding: 32px 28px; border-right: 1px solid rgba(245, 239, 224, 0.16); border-bottom: 1px solid rgba(245, 239, 224, 0.16); background: rgba(245, 239, 224, 0.02); transition: background 0.3s var(--ease); }
.thesis-card:hover { background: rgba(245, 239, 224, 0.06); }
.thesis__grid > .thesis-card:nth-child(3n) { border-right: 0; }
@media (max-width: 980px) {
  .thesis__grid > .thesis-card { border-right: 1px solid rgba(245, 239, 224, 0.16); }
  .thesis__grid > .thesis-card:nth-child(2n) { border-right: 0; }
  .thesis__grid > .thesis-card:nth-child(3n) { border-right: 1px solid rgba(245, 239, 224, 0.16); }
}
@media (max-width: 640px) { .thesis__grid > .thesis-card { border-right: 0 !important; } }

.thesis-card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.thesis-card__num { font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(245, 239, 224, 0.6); }
.thesis-card__num strong { color: var(--gold-soft); font-weight: 700; margin-right: 8px; }
.thesis-card__chip { font-family: var(--f-mono); font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); background: var(--gold-soft); padding: 4px 10px; border-radius: 4px; }
.thesis-card__chip--berry { background: var(--berry); color: var(--paper); }
.thesis-card__chip--lavender { background: var(--lavender); color: var(--paper); }
.thesis-card__chip--rose { background: var(--rose); color: var(--ink); }
.thesis-card__chip--pine { background: var(--pine-pale); color: var(--ink); }

.thesis-card__title { font-family: var(--f-serif); font-size: clamp(1.3rem, 2vw, 1.55rem); font-weight: 600; line-height: 1.2; margin-bottom: 14px; color: var(--paper); }
.thesis-card__title em { font-style: italic; font-weight: 400; color: var(--gold-soft); }
.thesis-card p { font-size: 15px; line-height: 1.7; color: rgba(245, 239, 224, 0.85); margin: 0; }

/* ===== ALBUM ===== */
.album__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.album__tile { position: relative; border-radius: 8px; overflow: hidden; aspect-ratio: 4/3; background: var(--ink); isolation: isolate; transition: transform 0.3s var(--ease); display: block; }
.album__tile:hover { transform: translateY(-3px); }
.album__tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.album__tile:hover img { transform: scale(1.04); }
.album__tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(42, 36, 56, 0.85) 100%); }
.album__caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 20px; z-index: 2; color: var(--paper); }
.album__caption .num { font-family: var(--f-mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-soft); display: block; margin-bottom: 4px; }
.album__caption .name { font-family: var(--f-serif); font-size: 17.5px; font-weight: 600; line-height: 1.2; }

.tile-1 { grid-column: span 8; aspect-ratio: 16/9; }
.tile-2 { grid-column: span 4; aspect-ratio: 3/4; }
.tile-3 { grid-column: span 4; aspect-ratio: 4/5; }
.tile-4 { grid-column: span 4; aspect-ratio: 4/5; }
.tile-5 { grid-column: span 4; aspect-ratio: 4/5; }
.tile-6 { grid-column: span 6; aspect-ratio: 16/10; }
.tile-7 { grid-column: span 6; aspect-ratio: 16/10; }
.tile-8 { grid-column: span 4; aspect-ratio: 4/3; }
.tile-9 { grid-column: span 8; aspect-ratio: 16/9; }
@media (max-width: 900px) {
  .tile-1, .tile-2, .tile-9 { grid-column: span 12; aspect-ratio: 16/9; }
  .tile-3, .tile-4, .tile-5 { grid-column: span 6; aspect-ratio: 4/5; }
  .tile-6, .tile-7 { grid-column: span 12; aspect-ratio: 16/10; }
  .tile-8 { grid-column: span 6; aspect-ratio: 4/3; }
}
@media (max-width: 600px) { .tile-3, .tile-4, .tile-5, .tile-8 { grid-column: span 12; aspect-ratio: 16/10; } }

/* ===== MODEL ===== */
.model { background: var(--ink); color: var(--paper); position: relative; overflow: hidden; }
.model::before { content: ""; position: absolute; top: -120px; right: -120px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(201, 164, 88, 0.16), transparent 65%); filter: blur(20px); pointer-events: none; }
.model::after { content: ""; position: absolute; bottom: -120px; left: -120px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(139, 123, 168, 0.16), transparent 65%); filter: blur(20px); pointer-events: none; }
.model__intro { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(36px, 5vw, 64px); margin-bottom: clamp(40px, 6vw, 60px); position: relative; z-index: 1; }
@media (max-width: 900px) { .model__intro { grid-template-columns: 1fr; } }
.model__copy h3 { font-family: var(--f-serif); font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 600; line-height: 1.15; letter-spacing: -0.012em; margin: 0 0 18px; color: var(--paper); }
.model__copy h3 em { font-style: italic; font-weight: 400; color: var(--gold-soft); }
.model__copy p { font-size: 16.5px; line-height: 1.75; color: rgba(245, 239, 224, 0.9); margin: 0 0 1em; font-family: var(--f-serif); }
.model__copy p strong { color: var(--rose); font-weight: 700; }
.model__copy p em { color: var(--gold-soft); font-style: italic; font-weight: 500; }

.model__factsheet { background: rgba(245, 239, 224, 0.04); border: 1px solid rgba(245, 239, 224, 0.16); border-radius: 8px; padding: 26px; position: relative; }
.model__factsheet::before { content: ""; position: absolute; inset: 6px; border: 1px dashed rgba(245, 239, 224, 0.16); border-radius: 6px; pointer-events: none; }
.model__factsheet h3 { font-family: var(--f-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-soft); margin: 0 0 18px; display: inline-flex; align-items: center; gap: 8px; position: relative; z-index: 1; }
.model__factsheet h3::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--rose); }
.model__factsheet dl { margin: 0; display: flex; flex-direction: column; position: relative; z-index: 1; }
.model__factsheet .row { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0; border-bottom: 1px dotted rgba(245, 239, 224, 0.18); gap: 14px; }
.model__factsheet .row:last-child { border-bottom: 0; }
.model__factsheet dt { font-family: var(--f-mono); font-size: 11px; font-weight: 500; color: rgba(245, 239, 224, 0.6); letter-spacing: 0.06em; text-transform: uppercase; flex: none; }
.model__factsheet dd { font-family: var(--f-serif); font-size: 15px; font-weight: 500; color: var(--paper); margin: 0; text-align: right; }
.model__factsheet dd em { color: var(--gold-soft); font-style: italic; }
.model__factsheet dd strong { color: var(--rose); font-weight: 700; }

.model__pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; position: relative; z-index: 1; }
@media (max-width: 800px) { .model__pillars { grid-template-columns: 1fr; } }
.pillar { padding: 28px 26px; background: rgba(245, 239, 224, 0.03); border: 1px solid rgba(245, 239, 224, 0.14); border-radius: 8px; }
.pillar__num { font-family: var(--f-serif); font-size: 50px; font-weight: 600; font-style: italic; color: var(--gold-soft); line-height: 1; margin-bottom: 8px; }
.pillar h3 { font-family: var(--f-serif); font-size: 21px; font-weight: 600; margin: 0 0 10px; color: var(--paper); }
.pillar p { font-size: 15px; line-height: 1.7; color: rgba(245, 239, 224, 0.86); margin: 0; }

/* ===== FAQ ===== */
.faq__list { max-width: 880px; margin: 0 auto; }
.faq__item { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq__item[open] { background: var(--paper); }
.faq__q { font-family: var(--f-serif); font-size: clamp(1.1rem, 1.8vw, 1.25rem); font-weight: 600; line-height: 1.4; padding: 22px 56px 22px 0; cursor: pointer; position: relative; list-style: none; color: var(--ink); transition: color 0.2s var(--ease); }
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after { content: "+"; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; background: var(--paper); display: inline-flex; align-items: center; justify-content: center; font-family: var(--f-mono); font-size: 18px; font-weight: 700; color: var(--ink); transition: background 0.2s; }
.faq__item[open] .faq__q::after { content: "−"; background: var(--lavender-deep); color: var(--paper); }
.faq__q:hover { color: var(--lavender-deep); }
.faq__a { padding: 0 0 22px; font-family: var(--f-serif); font-size: 16px; line-height: 1.7; color: var(--ink-soft); }
.faq__a p { margin: 0 0 0.8em; }
.faq__a p:last-child { margin: 0; }
.faq__a strong { color: var(--berry-deep); font-weight: 700; }

/* ===== CTA PANEL ===== */
.cta-panel { background: var(--ink); color: var(--paper); border-radius: clamp(8px, 1.5vw, 14px); padding: clamp(50px, 7vw, 90px) clamp(32px, 5vw, 64px); position: relative; overflow: hidden; isolation: isolate; }
.cta-panel::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 20% 30%, rgba(201, 164, 88, 0.18), transparent 50%), radial-gradient(circle at 80% 70%, rgba(139, 123, 168, 0.18), transparent 50%); }
.cta-panel__content { max-width: 720px; position: relative; z-index: 1; }
.cta-panel__chapter { font-family: var(--f-mono); font-size: 11.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-soft); display: inline-flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.cta-panel__chapter::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--rose); }
.cta-panel__title { font-family: var(--f-serif); font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 600; line-height: 1.08; letter-spacing: -0.018em; margin: 0 0 22px; color: var(--paper); }
.cta-panel__title em { font-style: italic; font-weight: 400; color: var(--gold-soft); }
.cta-panel p { font-family: var(--f-serif); font-size: 17.5px; line-height: 1.65; color: rgba(245, 239, 224, 0.88); margin: 0 0 1em; }
.cta-panel p:last-of-type { margin-bottom: 32px; }
.cta-panel p strong { color: var(--gold-soft); font-weight: 700; }
.cta-panel__buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.cta-panel .cta-btn { font-size: 16px; padding: 15px 28px; }
.cta-panel .cta-btn--ghost { background: transparent; color: var(--paper); border: 1px solid rgba(245, 239, 224, 0.4); box-shadow: none; }
.cta-panel .cta-btn--ghost:hover { background: rgba(245, 239, 224, 0.08); border-color: rgba(245, 239, 224, 0.6); box-shadow: none; }
.cta-panel__stamp { position: absolute; top: 32px; right: -60px; transform: rotate(15deg); font-family: var(--f-mono); font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-soft); border: 2px solid var(--gold-soft); padding: 12px 70px; opacity: 0.85; pointer-events: none; }
@media (max-width: 700px) { .cta-panel__stamp { display: none; } }

/* ===== FOOTER ===== */
.footer { background: var(--ink); color: rgba(245, 239, 224, 0.7); padding: clamp(50px, 6vw, 70px) 0 30px; border-top: 4px double var(--gold); position: relative; }
.footer::after { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 4px; background: linear-gradient(90deg, var(--gold) 0%, var(--gold) 25%, var(--lavender) 25%, var(--lavender) 50%, var(--pine) 50%, var(--pine) 75%, var(--berry) 75%, var(--berry) 100%); opacity: 0.18; }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; margin-bottom: 40px; }
@media (max-width: 800px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__brand { font-family: var(--f-serif); font-size: 28px; font-weight: 700; color: var(--paper); margin-bottom: 12px; }
.footer__about { font-family: var(--f-serif); font-size: 15px; line-height: 1.65; }
.footer__col h4 { font-family: var(--f-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-soft); margin: 0 0 14px; }
.footer__col ul { list-style: none; padding: 0; margin: 0; }
.footer__col li { padding: 5px 0; }
.footer__col a { font-size: 14.5px; transition: color 0.2s; }
.footer__col a:hover { color: var(--gold-soft); }
.footer__bottom { border-top: 1px solid rgba(245, 239, 224, 0.1); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(245, 239, 224, 0.5); }
.footer__bottom a:hover { color: var(--gold-soft); }

/* ===== BOTTOM-NAV mobile ===== */
.bottom-nav { display: none; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 70; background: var(--paper); border: 1px solid var(--line-strong); border-radius: 999px; padding: 8px; box-shadow: var(--shadow-md); }
.bottom-nav__inner { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 4px; font-family: var(--f-mono); font-size: 9.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft); border-radius: 999px; transition: all 0.2s var(--ease); position: relative; }
.bottom-nav a svg { width: 18px; height: 18px; }
.bottom-nav a.is-active { background: var(--ink); color: var(--paper); }
.bottom-nav a.is-active::after { content: ""; position: absolute; top: 5px; right: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-soft); }
@media (max-width: 700px) { .bottom-nav { display: block; } body { padding-bottom: 84px; } }

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