/* ==========================================================================
   TuyDuc.com — Highland Tubers
   Vibe: Khoai lang tiến vua + Mắc ca + Thác nước Tây Nguyên + Biên giới Bu Prăng
   Palette: warm dark plum-brown + cream + sweet potato pink + macadamia + pine + bazan + waterfall + mua purple
   Fonts: Petrona + Sora + Spline Sans Mono
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Petrona:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500;1,600;1,700&family=Sora:wght@300;400;500;600;700;800&family=Spline+Sans+Mono:wght@400;500;600;700&display=swap');

:root {
  --ink: #2e1a20;
  --ink-2: #422833;
  --ink-soft: #5e4250;
  --paper: #f0e6d2;
  --paper-2: #e6dabb;
  --paper-3: #d6c89e;
  --potato: #c46a82;
  --potato-deep: #8a3a52;
  --potato-soft: #d99eaf;
  --macadamia: #b88a4a;
  --macadamia-deep: #7a5a26;
  --macadamia-soft: #d6b078;
  --pine: #3d6a4a;
  --pine-deep: #284a30;
  --pine-soft: #6a8c70;
  --bazan: #a0563d;
  --bazan-deep: #6e3a25;
  --bazan-soft: #c47e62;
  --waterfall: #5a8ca0;
  --waterfall-deep: #36647a;
  --waterfall-pale: #a8c4d0;
  --ochre: #cc7e3a;
  --ochre-deep: #8a521e;
  --mua-purple: #9b6cb0;
  --line: rgba(46, 26, 32, 0.13);
  --line-strong: rgba(46, 26, 32, 0.28);

  --f-serif: 'Petrona', Georgia, serif;
  --f-sans: 'Sora', system-ui, -apple-system, sans-serif;
  --f-mono: 'Spline Sans Mono', 'IBM Plex Mono', Consolas, monospace;

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
  --shadow-sm: 0 1px 2px rgba(46, 26, 32, 0.08);
  --shadow-md: 0 4px 18px rgba(46, 26, 32, 0.14);
  --shadow-lg: 0 14px 40px rgba(46, 26, 32, 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: 700; line-height: 1.15; letter-spacing: -0.005em; }

.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(--potato-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 ===== */
.postmark { background: var(--ink); color: var(--paper); font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.13em; text-transform: uppercase; padding: 10px 0; position: relative; font-weight: 500; }
.postmark::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, var(--potato) 0%, var(--potato) 25%, var(--macadamia) 25%, var(--macadamia) 50%, var(--pine) 50%, var(--pine) 75%, var(--bazan) 75%, var(--bazan) 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(--potato-soft); }
.postmark__item:nth-child(2)::before { background: var(--macadamia-soft); }
.postmark__item:nth-child(3)::before { background: var(--waterfall-pale); }

/* ===== 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: 26px; font-weight: 700; letter-spacing: -0.01em; line-height: 1; }
.brand__sub { font-family: var(--f-mono); font-size: 11px; font-weight: 500; color: var(--bazan-deep); letter-spacing: 0.13em; 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(--potato-deep); }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px; background: var(--potato); 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 #1a0d12; }
.cta-btn:hover { background: var(--ink-2); transform: translateY(-1px); box-shadow: 0 4px 0 #1a0d12; }
.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(46, 26, 32, 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: 700; border-bottom: 1px solid var(--line); }
.drawer a:hover { color: var(--potato-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.65) saturate(1.15); }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(46,26,32,0.32) 0%, rgba(46,26,32,0.18) 30%, rgba(46,26,32,0.92) 100%), linear-gradient(90deg, rgba(46,26,32,0.55) 0%, rgba(46,26,32,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(--potato-soft); margin-bottom: 22px; align-self: flex-start; }
.hero__chapter::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--potato); }
.hero__chapter::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--macadamia); }

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

.hero__sub { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.hero__sub-line { width: 50px; height: 2px; background: var(--potato); flex: none; }
.hero__sub-text { font-family: var(--f-mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.13em; text-transform: uppercase; color: rgba(240, 230, 210, 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(240, 230, 210, 0.92); margin: 0 0 32px; }
.hero__lede strong { color: var(--paper); font-weight: 700; }
.hero__lede em { color: var(--potato-soft); font-style: italic; }

.hero__atlas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid rgba(240, 230, 210, 0.22); border-radius: 6px; overflow: hidden; max-width: 760px; background: rgba(46, 26, 32, 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(--potato) 0%, var(--potato) 25%, var(--macadamia) 25%, var(--macadamia) 50%, var(--pine) 50%, var(--pine) 75%, var(--bazan) 75%, var(--bazan) 100%); }
.hero__cell { padding: 20px 22px; border-right: 1px dashed rgba(240, 230, 210, 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: 700; line-height: 1; color: var(--potato-soft); margin-bottom: 6px; }
.hero__cell .lbl { font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(240, 230, 210, 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(240, 230, 210, 0.22); }
}

/* ===== TICKER ===== */
.ticker { background: var(--bazan); color: var(--paper); 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(--paper); }
.ticker__item span:nth-child(even) { font-family: var(--f-mono); font-size: 11.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--potato-soft); font-style: normal; opacity: 0.95; }

/* ===== 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: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bazan-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(--bazan-deep); }
.section--ink .chapter-label, .section--pine .chapter-label { color: var(--potato-soft); }
.section--ink .chapter-label::before, .section--ink .chapter-label::after, .section--pine .chapter-label::before, .section--pine .chapter-label::after { background: var(--potato-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: 700; line-height: 1.05; letter-spacing: -0.018em; margin: 0 0 18px; }
.section__title em { font-style: italic; font-weight: 400; color: var(--bazan-deep); }
.section--ink .section__title em, .section--pine .section__title em { color: var(--potato-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(240, 230, 210, 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(--bazan-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(--potato-deep); font-weight: 700; }
.intro__copy em { color: var(--bazan-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(--bazan-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(--potato); }
.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: 400; 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(--bazan-deep); font-weight: 700; }
@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(240, 230, 210, 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(240, 230, 210, 0.16); border-bottom: 1px solid rgba(240, 230, 210, 0.16); background: rgba(240, 230, 210, 0.02); transition: background 0.3s var(--ease); }
.thesis-card:hover { background: rgba(240, 230, 210, 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(240, 230, 210, 0.16); } .thesis__grid > .thesis-card:nth-child(2n) { border-right: 0; } .thesis__grid > .thesis-card:nth-child(3n) { border-right: 1px solid rgba(240, 230, 210, 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: 400; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(240, 230, 210, 0.6); }
.thesis-card__num strong { color: var(--potato-soft); font-weight: 600; margin-right: 8px; }
.thesis-card__chip { font-family: var(--f-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); background: var(--potato); padding: 4px 10px; border-radius: 4px; }
.thesis-card__chip--macadamia { background: var(--macadamia); color: var(--paper); }
.thesis-card__chip--waterfall { background: var(--waterfall); color: var(--paper); }
.thesis-card__chip--bazan { background: var(--bazan); color: var(--paper); }
.thesis-card__chip--ochre { background: var(--ochre); color: var(--paper); }
.thesis-card__chip--mua { background: var(--mua-purple); color: var(--paper); }
.thesis-card__title { font-family: var(--f-serif); font-size: clamp(1.3rem, 2vw, 1.55rem); font-weight: 700; line-height: 1.2; margin-bottom: 14px; color: var(--paper); }
.thesis-card__title em { font-style: italic; font-weight: 400; color: var(--potato-soft); }
.thesis-card p { font-size: 15px; line-height: 1.7; color: rgba(240, 230, 210, 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(46, 26, 32, 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: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--potato-soft); display: block; margin-bottom: 4px; }
.album__caption .name { font-family: var(--f-serif); font-size: 17.5px; font-weight: 700; line-height: 1.2; }

/* 13 tile layout */
.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 4; aspect-ratio: 4/3; }
.tile-10 { grid-column: span 4; aspect-ratio: 4/3; }
.tile-11 { grid-column: span 6; aspect-ratio: 16/10; }
.tile-12 { grid-column: span 6; aspect-ratio: 16/10; }
.tile-13 { grid-column: span 12; aspect-ratio: 21/9; }

@media (max-width: 900px) {
  .tile-1, .tile-2 { 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, .tile-11, .tile-12 { grid-column: span 12; aspect-ratio: 16/10; }
  .tile-8, .tile-9, .tile-10 { grid-column: span 6; aspect-ratio: 4/3; }
  .tile-13 { grid-column: span 12; aspect-ratio: 16/9; }
}
@media (max-width: 600px) {
  .tile-3, .tile-4, .tile-5,
  .tile-8, .tile-9, .tile-10 { 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(196, 106, 130, 0.18), 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(184, 138, 74, 0.18), 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: 700; 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(--potato-soft); }
.model__copy p { font-size: 16.5px; line-height: 1.75; color: rgba(240, 230, 210, 0.9); margin: 0 0 1em; font-family: var(--f-serif); }
.model__copy p strong { color: var(--macadamia-soft); font-weight: 700; }
.model__copy p em { color: var(--potato-soft); font-style: italic; font-weight: 500; }

.model__factsheet { background: rgba(240, 230, 210, 0.04); border: 1px solid rgba(240, 230, 210, 0.16); border-radius: 8px; padding: 26px; position: relative; }
.model__factsheet::before { content: ""; position: absolute; inset: 6px; border: 1px dashed rgba(240, 230, 210, 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(--potato-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(--macadamia); }
.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(240, 230, 210, 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: 400; color: rgba(240, 230, 210, 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(--potato-soft); font-style: italic; }
.model__factsheet dd strong { color: var(--macadamia-soft); 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(240, 230, 210, 0.03); border: 1px solid rgba(240, 230, 210, 0.14); border-radius: 8px; }
.pillar__num { font-family: var(--f-serif); font-size: 50px; font-weight: 700; font-style: italic; color: var(--potato-soft); line-height: 1; margin-bottom: 8px; }
.pillar h3 { font-family: var(--f-serif); font-size: 21px; font-weight: 700; margin: 0 0 10px; color: var(--paper); }
.pillar p { font-size: 15px; line-height: 1.7; color: rgba(240, 230, 210, 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: 700; 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(--bazan-deep); color: var(--paper); }
.faq__q:hover { color: var(--bazan-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(--potato-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(196, 106, 130, 0.18), transparent 50%), radial-gradient(circle at 80% 70%, rgba(184, 138, 74, 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: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--potato-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(--macadamia); }
.cta-panel__title { font-family: var(--f-serif); font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 700; 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(--potato-soft); }
.cta-panel p { font-family: var(--f-serif); font-size: 17.5px; line-height: 1.65; color: rgba(240, 230, 210, 0.88); margin: 0 0 1em; }
.cta-panel p:last-of-type { margin-bottom: 32px; }
.cta-panel p strong { color: var(--potato-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(240, 230, 210, 0.4); box-shadow: none; }
.cta-panel .cta-btn--ghost:hover { background: rgba(240, 230, 210, 0.08); border-color: rgba(240, 230, 210, 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: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--potato-soft); border: 2px solid var(--potato-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(240, 230, 210, 0.7); padding: clamp(50px, 6vw, 70px) 0 30px; border-top: 4px double var(--potato); position: relative; }
.footer::after { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 4px; background: linear-gradient(90deg, var(--potato) 0%, var(--potato) 25%, var(--macadamia) 25%, var(--macadamia) 50%, var(--pine) 50%, var(--pine) 75%, var(--bazan) 75%, var(--bazan) 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(--potato-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(--potato-soft); }
.footer__bottom { border-top: 1px solid rgba(240, 230, 210, 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: 400; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(240, 230, 210, 0.5); }
.footer__bottom a:hover { color: var(--potato-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(--potato-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; } }
