/* ========= TOKENS ========= */
:root {
  --teal: #1e3a4a;
  --teal-deep: #142835;
  --teal-mid: #2a506a;
  --cream: #f1ebe0;
  --cream-warm: #ebe3d5;
  --tan: #d4a574;
  --tan-deep: #b8895a;
  --ink: #1a1612;
  --ink-mute: #5a5247;
  --line: rgba(26, 22, 18, 0.12);
  --line-warm: rgba(212, 165, 116, 0.3);

  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;
}

/* alt palette: bolder — saffron + indigo */
body[data-palette="saffron"] {
  --teal: #2d2a5a;
  --teal-deep: #1e1c42;
  --teal-mid: #46428c;
  --cream: #f4ede0;
  --cream-warm: #ece1c9;
  --tan: #e07a3c;
  --tan-deep: #b85a22;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--cream); color: var(--ink); font-family: var(--sans); }
body { overflow-x: hidden; }

img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }

/* ========= TYPOGRAPHY ========= */
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.italic { font-style: italic; color: var(--tan); }
.mono { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.14em; font-size: 11px; }
.kicker { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.18em; font-size: 11px; color: var(--tan); display: inline-flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 28px; height: 1px; background: var(--tan); }

/* ========= LAYOUT ========= */
.container { max-width: 1280px; margin: 0 auto; padding: 0 48px; }
.section { padding: 120px 0; position: relative; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 56px; gap: 40px; flex-wrap: wrap; }
.section-head h2 { font-family: var(--serif); font-size: 72px; font-weight: 400; line-height: 1; letter-spacing: -0.02em; color: var(--teal); }
.section-head h2 em { font-style: italic; color: var(--tan); }
.section-head p { font-size: 15px; line-height: 1.55; color: var(--ink-mute); max-width: 360px; margin-top: 16px; }
.section-head .right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.section-head .view-all { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--tan); display: inline-flex; align-items: center; gap: 10px; }
.section-head .view-all:hover { color: var(--tan-deep); }

/* ========= NAV ========= */
.nav {
  position: absolute; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px 48px; color: #fff;
}
.nav .logo { display: flex; align-items: baseline; gap: 8px; }
.nav .logo .howto { font-family: var(--serif); font-style: italic; font-size: 14px; opacity: 0.9; }
.nav .logo .edition { font-family: var(--serif); font-size: 22px; color: var(--tan); letter-spacing: -0.01em; }
.nav ul { display: flex; gap: 36px; list-style: none; }
.nav ul a { font-size: 14px; opacity: 0.9; transition: opacity 0.2s, color 0.2s; position: relative; }
.nav ul a:hover { opacity: 1; }
.nav ul a.active { opacity: 1; color: var(--tan); }
.nav ul a.active::after {
  content: ""; position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px; background: var(--tan);
}
.nav .right { display: flex; align-items: center; gap: 20px; font-size: 13px; }
.nav .lang { display: flex; align-items: center; gap: 6px; opacity: 0.9; }
.nav .sign-in { padding: 8px 18px; border: 1px solid rgba(255,255,255,0.4); border-radius: 999px; font-size: 13px; transition: background 0.2s; }
.nav .sign-in:hover { background: rgba(255,255,255,0.1); }
body.book-page .nav ul a.active { color: var(--book-gold); }
body.book-page .nav ul a.active::after { background: var(--book-gold); }

/* ========= HERO ========= */
.hero {
  position: relative; height: 100vh; min-height: 680px; max-height: 900px;
  overflow: hidden; color: #fff;
}
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 2s ease-in-out;
  transform: scale(1.05);
  animation: kenburns 20s ease-in-out infinite alternate;
}
.hero-slide.active { opacity: 1; }
@keyframes kenburns {
  0%   { transform: scale(1.0) translate(0, 0); }
  100% { transform: scale(1.12) translate(-2%, -1%); }
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,40,53,0.4) 0%, rgba(20,40,53,0.15) 30%, rgba(20,40,53,0.5) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  height: 100%; display: flex; flex-direction: column; justify-content: center;
  padding: 0 48px; max-width: 1280px; margin: 0 auto;
}
.hero h1 {
  font-family: var(--serif); font-size: clamp(68px, 8vw, 130px); font-weight: 400;
  line-height: 0.95; letter-spacing: -0.03em; max-width: 900px;
  text-shadow: 0 2px 40px rgba(0,0,0,0.3);
}
.hero h1 em { font-style: italic; display: block; }
.hero .sub { font-size: 16px; opacity: 0.92; margin-top: 24px; max-width: 420px; text-shadow: 0 1px 10px rgba(0,0,0,0.4); }

.hero-search {
  margin-top: 36px; max-width: 720px;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(12px);
  border-radius: 999px; padding: 10px 10px 10px 24px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}
.hero-search svg { color: var(--ink-mute); flex-shrink: 0; }
.hero-search input { flex: 1; border: none; background: none; outline: none; font-family: var(--sans); font-size: 16px; color: var(--ink); padding: 12px 0; }
.hero-search input::placeholder { color: #9a8f82; font-style: italic; }
.hero-search button {
  background: var(--tan); color: #fff; font-family: var(--sans); font-weight: 500;
  padding: 14px 32px; border-radius: 999px; font-size: 14px;
  transition: background 0.2s;
}
.hero-search button:hover { background: var(--tan-deep); }

.hero-trending { margin-top: 20px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-size: 13px; }
.hero-trending .label { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.18em; font-size: 10px; opacity: 0.85; }
.hero-trending a { opacity: 0.85; transition: opacity 0.2s; border-bottom: 1px solid transparent; padding-bottom: 2px; }
.hero-trending a:hover { opacity: 1; border-bottom-color: rgba(255,255,255,0.6); }

.hero-meta {
  position: absolute; left: 48px; bottom: 32px; z-index: 2;
  display: flex; flex-direction: column; gap: 6px; font-size: 12px;
}
.hero-meta .loc { font-family: var(--serif); font-style: italic; font-size: 18px; }
.hero-meta .coord { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.15em; opacity: 0.8; font-size: 10px; }

.hero-dots { position: absolute; right: 48px; bottom: 32px; z-index: 2; display: flex; gap: 8px; }
.hero-dots button { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.4); transition: all 0.3s; }
.hero-dots button.active { background: #fff; width: 24px; border-radius: 4px; }

/* ========= SPLIT FLAP ========= */
.splitflap-band {
  background: var(--teal-deep); color: var(--cream);
  padding: 24px 0; border-top: 1px solid rgba(255,255,255,0.08); border-bottom: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
}
.splitflap-inner { display: flex; align-items: center; gap: 48px; padding: 0 48px; max-width: 1280px; margin: 0 auto; }
.splitflap-label {
  font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.22em; font-size: 11px;
  color: var(--tan); flex-shrink: 0; display: flex; align-items: center; gap: 10px;
}
.splitflap-label .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--tan); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
.splitflap-row { display: flex; gap: 40px; flex: 1; justify-content: space-around; }
.splitflap-cell { display: flex; flex-direction: column; gap: 6px; min-width: 120px; }
.splitflap-cell .time { font-family: var(--mono); font-size: 10px; opacity: 0.5; letter-spacing: 0.15em; }
.splitflap-chars { display: flex; gap: 2px; }
.splitflap-char {
  display: inline-block; width: 18px; height: 26px; line-height: 26px; text-align: center;
  background: #0a1419; color: var(--tan); font-family: var(--mono); font-weight: 500; font-size: 14px;
  border-radius: 2px; position: relative; overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 1px 2px rgba(0,0,0,0.3);
}
.splitflap-char::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0,0,0,0.4); }

/* ========= TRENDING ========= */
.trending { background: var(--cream); }

/* editorial */
.trending-editorial { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
.trending-editorial .feature { position: relative; }
.trending-editorial .feature .img {
  aspect-ratio: 4/5; background-size: cover; background-position: center;
  border-radius: 2px; box-shadow: 0 30px 60px rgba(20,40,53,0.15);
}
.trending-editorial .feature .meta { position: absolute; top: 24px; left: 24px; display: flex; flex-direction: column; gap: 8px; color: #fff; }
.trending-editorial .feature .issue { font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em; opacity: 0.85; }
.trending-editorial .feature .tag { display: inline-block; background: var(--cream); color: var(--teal); padding: 6px 14px; border-radius: 999px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; width: fit-content; }
.trending-editorial .feature .cap { padding: 20px 0; }
.trending-editorial .feature h3 { font-family: var(--serif); font-size: 44px; font-weight: 400; line-height: 1.05; color: var(--teal); letter-spacing: -0.01em; max-width: 520px; }
.trending-editorial .feature h3 em { font-style: italic; color: var(--tan); }
.trending-editorial .feature .byline { margin-top: 12px; font-size: 13px; color: var(--ink-mute); display: flex; gap: 12px; align-items: center; }
.trending-editorial .feature .byline .dot { width: 3px; height: 3px; background: var(--ink-mute); border-radius: 50%; }

.trending-editorial .side { display: flex; flex-direction: column; gap: 32px; border-left: 1px solid var(--line); padding-left: 48px; }
.trending-editorial .side .item { display: grid; grid-template-columns: 140px 1fr; gap: 20px; align-items: start; }
.trending-editorial .side .item .img { aspect-ratio: 1/1; background-size: cover; background-position: center; border-radius: 2px; }
.trending-editorial .side .item .tag { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; color: var(--tan); text-transform: uppercase; }
.trending-editorial .side .item h4 { font-family: var(--serif); font-size: 22px; font-weight: 400; line-height: 1.15; color: var(--teal); margin: 8px 0; }
.trending-editorial .side .item .by { font-size: 12px; color: var(--ink-mute); }
.trending-editorial .side .item .num { font-family: var(--serif); font-size: 56px; color: var(--tan); opacity: 0.4; line-height: 0.8; font-style: italic; }
.trending-editorial .side .divider { height: 1px; background: var(--line); }

/* cinematic carousel */
.trending-cinematic { position: relative; }
.tc-viewport { overflow: hidden; border-radius: 4px; }
.tc-track { display: flex; gap: 24px; transition: transform 0.7s cubic-bezier(0.2, 0.9, 0.2, 1); }
.tc-card {
  flex: 0 0 calc((100% - 48px) / 3);
  position: relative; aspect-ratio: 3/4;
  background-size: cover; background-position: center;
  border-radius: 4px; overflow: hidden; cursor: pointer;
  transition: transform 0.4s ease;
}
.tc-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,40,53,0) 40%, rgba(20,40,53,0.85) 100%); }
.tc-card:hover { transform: translateY(-4px); }
.tc-card .body { position: absolute; bottom: 0; left: 0; right: 0; padding: 28px; color: #fff; z-index: 2; }
.tc-card .tag { display: inline-block; background: rgba(255,255,255,0.15); backdrop-filter: blur(8px); padding: 5px 12px; border-radius: 999px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; margin-bottom: 14px; }
.tc-card h4 { font-family: var(--serif); font-size: 28px; font-weight: 400; line-height: 1.1; }
.tc-card h4 em { font-style: italic; color: var(--tan); }
.tc-card .by { margin-top: 8px; font-size: 12px; opacity: 0.85; font-style: italic; }
.tc-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 32px; }
.tc-pagination { display: flex; gap: 6px; }
.tc-pagination span { width: 24px; height: 2px; background: var(--line); transition: background 0.3s; }
.tc-pagination span.active { background: var(--tan); }
.tc-arrows { display: flex; gap: 12px; }
.tc-arrows button { width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--teal); transition: all 0.2s; }
.tc-arrows button:hover { background: var(--teal); color: var(--cream); border-color: var(--teal); }

/* postcard carousel */
.trending-postcard { position: relative; padding: 20px 0 40px; }
.tp-stage { position: relative; height: 540px; display: flex; align-items: center; justify-content: center; }
.tp-card {
  position: absolute; width: 360px; aspect-ratio: 3/4; background: #fff;
  padding: 14px 14px 22px; border-radius: 2px;
  box-shadow: 0 20px 50px rgba(20,40,53,0.18), 0 2px 4px rgba(20,40,53,0.1);
  transition: all 0.7s cubic-bezier(0.2, 0.9, 0.2, 1);
  cursor: pointer;
}
.tp-card .img { width: 100%; aspect-ratio: 1/1; background-size: cover; background-position: center; border-radius: 1px; }
.tp-card h4 { font-family: var(--serif); font-size: 20px; margin-top: 14px; color: var(--teal); font-weight: 400; line-height: 1.2; }
.tp-card h4 em { font-style: italic; color: var(--tan); }
.tp-card .meta { display: flex; justify-content: space-between; margin-top: 10px; font-family: var(--mono); font-size: 10px; color: var(--ink-mute); letter-spacing: 0.14em; }
.tp-card .stamp {
  position: absolute; top: 20px; right: 20px; width: 48px; height: 58px;
  background: var(--tan); color: #fff; border: 2px dashed rgba(255,255,255,0.6);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--serif); font-style: italic; font-size: 11px; text-align: center; line-height: 1;
  transform: rotate(8deg);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
.tp-card .stamp .n { font-size: 18px; font-style: normal; font-weight: 600; }
.tp-controls { display: flex; gap: 12px; justify-content: center; margin-top: 24px; }
.tp-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: all 0.3s; cursor: pointer; border: none; }
.tp-dot.active { background: var(--tan); width: 24px; border-radius: 4px; }

/* ========= EXPLORE REGION ========= */
.region { background: var(--cream-warm); }

/* map variant */
.region-map { display: grid; grid-template-columns: 1.6fr 1fr; gap: 56px; align-items: center; }
.region-map-stage {
  position: relative; background: var(--teal-deep); border-radius: 4px;
  aspect-ratio: 2/1.2; overflow: hidden;
  box-shadow: 0 30px 60px rgba(20,40,53,0.25);
}
.region-map svg { width: 100%; height: 100%; display: block; }
.region-map .region-shape { fill: rgba(212, 165, 116, 0.25); stroke: rgba(212, 165, 116, 0.5); stroke-width: 0.8; transition: all 0.3s; cursor: pointer; }
.region-map .region-shape:hover, .region-map .region-shape.active { fill: rgba(212, 165, 116, 0.7); stroke: var(--tan); }
.region-map .pin { fill: var(--tan); stroke: #fff; stroke-width: 1.5; opacity: 0; transition: opacity 0.4s; }
.region-map .pin.visible { opacity: 1; animation: pinDrop 0.4s ease; }
@keyframes pinDrop { 0% { transform: translateY(-20px); opacity: 0; } 100% { transform: translateY(0); opacity: 1; } }
.region-map-caption {
  position: absolute; bottom: 20px; left: 20px; color: var(--cream);
  display: flex; gap: 10px; align-items: center;
}
.region-map-caption .mono { color: var(--tan); font-size: 10px; }
.region-list { display: flex; flex-direction: column; }
.region-list .row {
  display: grid; grid-template-columns: 40px 1fr auto; gap: 20px; align-items: center;
  padding: 22px 0; border-bottom: 1px solid var(--line); cursor: pointer;
  transition: all 0.3s;
}
.region-list .row:hover, .region-list .row.active { padding-left: 12px; }
.region-list .row:hover .name, .region-list .row.active .name { color: var(--tan); font-style: italic; }
.region-list .num { font-family: var(--mono); font-size: 11px; color: var(--tan); letter-spacing: 0.16em; }
.region-list .name { font-family: var(--serif); font-size: 32px; font-weight: 400; color: var(--teal); transition: all 0.3s; }
.region-list .count { font-family: var(--mono); font-size: 11px; color: var(--ink-mute); letter-spacing: 0.12em; }
.region-featured {
  margin-top: 20px; padding: 20px; background: rgba(255,255,255,0.5); border-radius: 4px;
  display: grid; grid-template-columns: 80px 1fr; gap: 16px; align-items: center;
}
.region-featured .img { width: 80px; aspect-ratio: 1; background-size: cover; background-position: center; border-radius: 2px; }
.region-featured .lbl { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; color: var(--tan); }
.region-featured .title { font-family: var(--serif); font-size: 20px; color: var(--teal); margin-top: 4px; }

/* bento variant */
.region-bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: 260px 260px 260px; gap: 16px; }
.region-bento .tile {
  position: relative; background-size: cover; background-position: center;
  border-radius: 4px; overflow: hidden; cursor: pointer; color: #fff;
}
.region-bento .tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,40,53,0) 40%, rgba(20,40,53,0.85) 100%); }
.region-bento .tile .body { position: absolute; bottom: 0; left: 0; right: 0; padding: 24px; z-index: 2; }
.region-bento .tile .lbl { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; opacity: 0.85; }
.region-bento .tile h4 { font-family: var(--serif); font-size: 28px; font-weight: 400; margin-top: 4px; }
.region-bento .tile h4 em { font-style: italic; color: var(--tan); }
.region-bento .tile.feature { grid-column: span 2; grid-row: span 2; }
.region-bento .tile.feature h4 { font-size: 56px; }
.region-bento .tile.wide { grid-column: span 2; }
.region-bento .tile:hover { transform: translateY(-2px); }
.region-bento .tile { transition: transform 0.3s; }

/* chapter variant */
.region-chapter { display: flex; flex-direction: column; gap: 0; }
.chapter {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  padding: 80px 0; border-bottom: 1px solid var(--line); align-items: center;
  min-height: 560px;
}
.chapter:nth-child(even) .chapter-media { order: 2; }
.chapter-media {
  position: relative; aspect-ratio: 4/5; background-size: cover; background-position: center;
  border-radius: 2px;
}
.chapter-media .chip { position: absolute; top: 20px; left: 20px; background: var(--cream); color: var(--teal); padding: 6px 14px; border-radius: 999px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; }
.chapter-content { padding: 0 64px; }
.chapter-content .ch-num { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; color: var(--tan); }
.chapter-content h3 { font-family: var(--serif); font-size: 96px; font-weight: 400; line-height: 0.95; color: var(--teal); margin: 16px 0 24px; letter-spacing: -0.02em; }
.chapter-content h3 em { font-style: italic; color: var(--tan); display: block; }
.chapter-content p { font-size: 15px; line-height: 1.7; color: var(--ink-mute); margin-bottom: 28px; max-width: 420px; }
.chapter-content .guides { display: flex; gap: 32px; margin-top: 32px; }
.chapter-content .guide .n { font-family: var(--serif); font-size: 36px; color: var(--teal); }
.chapter-content .guide .l { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; color: var(--ink-mute); }

/* ========= ZOE ========= */
.zoe { background: var(--teal); color: var(--cream); padding: 140px 0; position: relative; overflow: hidden; }
.zoe-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; max-width: 1280px; margin: 0 auto; padding: 0 48px; }
.zoe-img { aspect-ratio: 4/5; background-size: cover; background-position: center; border-radius: 4px; position: relative; box-shadow: 0 40px 80px rgba(0,0,0,0.3); }
.zoe .kicker { color: var(--tan); }
.zoe h2 { font-family: var(--serif); font-size: 88px; font-weight: 400; line-height: 0.98; letter-spacing: -0.02em; margin: 20px 0 20px; }
.zoe h2 em { font-style: italic; color: var(--tan); }
.zoe .lede { font-size: 17px; line-height: 1.6; opacity: 0.85; margin-bottom: 28px; max-width: 440px; }
.zoe .quote { font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.5; padding-left: 24px; border-left: 2px solid var(--tan); margin: 32px 0; max-width: 420px; }
.zoe .cta-row { display: flex; gap: 16px; margin-top: 32px; align-items: center; }
.zoe .btn { background: var(--tan); color: var(--teal-deep); padding: 14px 28px; border-radius: 999px; font-weight: 500; font-size: 14px; }
.zoe .btn:hover { background: #e6b889; }
.zoe .link { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; color: var(--tan); }

/* ========= COMMUNITY ========= */
.community { background: var(--cream); padding: 120px 0 140px; }

/* scrapbook variant */
.scrapbook-stage { position: relative; height: 720px; max-width: 1180px; margin: 0 auto; }
.polaroid {
  position: absolute; background: #fff; padding: 12px 12px 44px;
  box-shadow: 0 12px 30px rgba(20,40,53,0.2), 0 2px 4px rgba(20,40,53,0.12);
  transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.2, 1), z-index 0s 0.1s;
  cursor: pointer;
}
.polaroid:hover { transform: scale(1.05) rotate(0deg) !important; z-index: 20; transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.2, 1), z-index 0s; }
.polaroid .img { width: 100%; aspect-ratio: 1/1; background-size: cover; background-position: center; }
.polaroid .cap { position: absolute; bottom: 10px; left: 12px; right: 12px; font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--teal); text-align: center; }
.polaroid .cap .by { display: block; font-family: var(--mono); font-style: normal; font-size: 9px; letter-spacing: 0.16em; color: var(--ink-mute); margin-top: 2px; }
.polaroid .tape {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  width: 80px; height: 24px; background: rgba(212, 165, 116, 0.4);
  border-left: 1px dashed rgba(212, 165, 116, 0.5); border-right: 1px dashed rgba(212, 165, 116, 0.5);
}

/* marquee variant */
.marquee-outer { overflow: hidden; margin: 0 -48px; padding: 20px 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 28px; animation: marquee 60s linear infinite; width: max-content; }
.marquee-outer:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-card {
  width: 280px; flex-shrink: 0;
  background: #fff; border-radius: 4px; overflow: hidden;
  box-shadow: 0 8px 24px rgba(20,40,53,0.1);
}
.marquee-card .img { aspect-ratio: 1; background-size: cover; background-position: center; }
.marquee-card .body { padding: 18px; }
.marquee-card .user { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; color: var(--ink-mute); }
.marquee-card .user .loc { color: var(--tan); }
.marquee-card .cap { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--teal); margin-top: 10px; line-height: 1.4; }

/* wall variant */
.wall-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.wall-grid .cell {
  position: relative; background-size: cover; background-position: center;
  border-radius: 4px; overflow: hidden; aspect-ratio: 1;
  cursor: pointer; transition: all 0.3s;
}
.wall-grid .cell.tall { aspect-ratio: 3/5; grid-row: span 2; }
.wall-grid .cell.wide { grid-column: span 2; aspect-ratio: 2/1; }
.wall-grid .cell::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(20,40,53,0.8) 100%); opacity: 0.8; transition: opacity 0.3s; }
.wall-grid .cell:hover::after { opacity: 1; }
.wall-grid .cell .cap {
  position: absolute; bottom: 14px; left: 16px; right: 16px; color: #fff; z-index: 2;
  display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
}
.wall-grid .cell .cap .loc::before { content: "◉ "; color: var(--tan); }

/* ========= CTA ========= */
.cta-band { position: relative; overflow: hidden; }

/* cinematic */
.cta-cinematic { height: 640px; position: relative; color: #fff; }
.cta-cinematic .bg { position: absolute; inset: 0; background-size: cover; background-position: center; animation: kenburns 25s ease-in-out infinite alternate; }
.cta-cinematic .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,40,53,0.55), rgba(20,40,53,0.75)); }
.cta-cinematic .inner { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 0 48px; }
.cta-cinematic .kicker { color: var(--tan); }
.cta-cinematic h2 { font-family: var(--serif); font-size: clamp(68px, 8vw, 130px); font-weight: 400; line-height: 0.95; letter-spacing: -0.02em; margin: 24px 0; text-shadow: 0 4px 30px rgba(0,0,0,0.3); }
.cta-cinematic h2 em { font-style: italic; color: var(--tan); display: block; }
.cta-cinematic .sub { font-size: 16px; opacity: 0.9; max-width: 520px; margin: 0 auto 36px; line-height: 1.6; }
.cta-cinematic .btn { background: var(--tan); color: var(--teal-deep); padding: 18px 42px; border-radius: 999px; font-weight: 500; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; transition: all 0.2s; }
.cta-cinematic .btn:hover { background: #e6b889; transform: translateY(-1px); }
.cta-cinematic .coord { position: absolute; bottom: 24px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; opacity: 0.7; }
.cta-cinematic .coord.left { left: 48px; bottom: 24px; }
.cta-cinematic .coord.right { right: 48px; bottom: 24px; }

/* typographic */
.cta-typo { background: var(--teal-deep); color: var(--cream); padding: 160px 48px; text-align: center; }
.cta-typo h2 { font-family: var(--serif); font-size: clamp(80px, 12vw, 200px); font-weight: 400; line-height: 0.9; letter-spacing: -0.03em; }
.cta-typo h2 em { font-style: italic; color: var(--tan); display: block; }
.cta-typo .sub { font-size: 16px; opacity: 0.7; max-width: 480px; margin: 36px auto; line-height: 1.6; }
.cta-typo .btn-group { display: inline-flex; gap: 16px; }
.cta-typo .btn { background: var(--tan); color: var(--teal-deep); padding: 16px 32px; border-radius: 999px; font-weight: 500; font-size: 14px; }
.cta-typo .btn.ghost { background: transparent; color: var(--cream); border: 1px solid rgba(241,235,224,0.3); }

/* boarding pass */
.cta-ticket { background: var(--teal-deep); padding: 120px 48px; }
.ticket {
  max-width: 1040px; margin: 0 auto; background: var(--cream);
  display: grid; grid-template-columns: 2fr 1fr; position: relative;
  border-radius: 4px; overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.4);
}
.ticket::before { content: ""; position: absolute; top: 0; bottom: 0; left: 66.66%; width: 1px; border-right: 2px dashed var(--line); }
.ticket::after { content: ""; position: absolute; top: -12px; left: 66.66%; width: 24px; height: 24px; background: var(--teal-deep); border-radius: 50%; transform: translateX(-50%); }
.ticket-main { padding: 48px 56px; }
.ticket-header { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.ticket-header .logo { font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--tan); }
.ticket-header .code { font-family: var(--mono); font-size: 11px; color: var(--ink-mute); letter-spacing: 0.18em; }
.ticket-body { display: flex; align-items: center; gap: 32px; margin-top: 32px; }
.ticket-body .airport .code { font-family: var(--serif); font-size: 64px; color: var(--teal); line-height: 1; }
.ticket-body .airport .name { font-family: var(--mono); font-size: 11px; color: var(--ink-mute); letter-spacing: 0.14em; margin-top: 6px; }
.ticket-body .arrow { flex: 1; position: relative; height: 2px; background: var(--line); }
.ticket-body .arrow::after { content: "✈"; position: absolute; top: -12px; right: 0; color: var(--tan); font-size: 18px; }
.ticket-cta { padding: 48px 32px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.ticket-cta .title { font-family: var(--serif); font-size: 32px; color: var(--teal); line-height: 1.1; }
.ticket-cta .title em { font-style: italic; color: var(--tan); display: block; }
.ticket-cta .btn { background: var(--tan); color: #fff; padding: 14px 20px; border-radius: 999px; font-weight: 500; font-size: 13px; text-align: center; }
.ticket-footer { margin-top: 32px; display: flex; justify-content: space-between; }
.ticket-footer .datum .l { font-family: var(--mono); font-size: 9px; letter-spacing: 0.16em; color: var(--ink-mute); }
.ticket-footer .datum .v { font-family: var(--serif); font-size: 18px; color: var(--teal); margin-top: 4px; }

/* ========= FOOTER ========= */
.footer { background: var(--teal-deep); color: var(--cream); padding: 120px 0 48px; position: relative; overflow: hidden; }
.footer-top { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; padding-bottom: 80px; border-bottom: 1px solid rgba(241,235,224,0.1); }
.footer-masthead h3 { font-family: var(--serif); font-size: 88px; font-weight: 400; line-height: 0.95; letter-spacing: -0.02em; }
.footer-masthead h3 em { font-style: italic; color: var(--tan); display: block; }
.footer-masthead .issue { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; color: var(--tan); margin-bottom: 20px; }
.footer-masthead .tagline { margin-top: 28px; font-size: 15px; opacity: 0.7; max-width: 380px; line-height: 1.6; }
.footer-signup { background: rgba(241,235,224,0.04); border: 1px solid rgba(241,235,224,0.1); border-radius: 4px; padding: 36px; }
.footer-signup h4 { font-family: var(--serif); font-size: 28px; font-weight: 400; letter-spacing: -0.01em; }
.footer-signup h4 em { font-style: italic; color: var(--tan); }
.footer-signup p { font-size: 14px; opacity: 0.7; margin-top: 10px; line-height: 1.5; }
.footer-signup .form { display: flex; gap: 8px; margin-top: 20px; }
.footer-signup input { flex: 1; background: rgba(241,235,224,0.08); border: 1px solid rgba(241,235,224,0.15); border-radius: 999px; padding: 12px 20px; color: var(--cream); font-family: var(--sans); font-size: 14px; outline: none; }
.footer-signup input::placeholder { color: rgba(241,235,224,0.5); font-style: italic; }
.footer-signup input:focus { border-color: var(--tan); }
.footer-signup .btn { background: var(--tan); color: var(--teal-deep); padding: 12px 24px; border-radius: 999px; font-weight: 500; font-size: 13px; }

.footer-colophon { padding: 64px 0; display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); gap: 48px; }
.footer-col h5 { font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; color: var(--tan); text-transform: uppercase; margin-bottom: 20px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col ul a { font-size: 14px; opacity: 0.8; }
.footer-col ul a:hover { opacity: 1; color: var(--tan); }
.footer-col .about { font-size: 13px; opacity: 0.65; line-height: 1.7; margin-top: 12px; max-width: 280px; }

.footer-bottom { padding-top: 32px; display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; opacity: 0.5; border-top: 1px solid rgba(241,235,224,0.08); }
.footer-bottom .socials { display: flex; gap: 20px; }

.footer-stamp {
  position: absolute; bottom: 80px; right: -80px;
  width: 360px; height: 360px; border: 1px solid rgba(212, 165, 116, 0.2); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(212, 165, 116, 0.25); font-family: var(--serif); font-style: italic; font-size: 120px;
  pointer-events: none;
}

/* ========= TWEAKS PANEL ========= */
.tweaks {
  position: fixed; right: 24px; bottom: 24px; z-index: 100;
  background: #fff; border-radius: 12px; padding: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
  width: 300px; font-family: var(--sans); font-size: 13px;
  max-height: 80vh; overflow-y: auto;
}
.tweaks h6 { font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; color: var(--tan); text-transform: uppercase; margin-bottom: 16px; display: flex; justify-content: space-between; align-items: center; }
.tweaks h6 .close { cursor: pointer; opacity: 0.6; }
.tweaks .group { margin-bottom: 16px; }
.tweaks label { display: block; font-family: var(--mono); font-size: 9px; letter-spacing: 0.16em; color: var(--ink-mute); text-transform: uppercase; margin-bottom: 8px; }
.tweaks .segs { display: flex; gap: 4px; background: var(--cream-warm); padding: 3px; border-radius: 6px; }
.tweaks .segs button { flex: 1; padding: 6px 8px; border-radius: 4px; font-size: 11px; color: var(--ink-mute); transition: all 0.2s; text-transform: capitalize; }
.tweaks .segs button.active { background: var(--teal); color: var(--cream); }
.tweaks .toggle { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; }
.tweaks .toggle .t { font-size: 12px; color: var(--teal); }
.tweaks .toggle .sw { width: 36px; height: 20px; background: var(--line); border-radius: 999px; position: relative; cursor: pointer; transition: background 0.2s; }
.tweaks .toggle .sw.on { background: var(--tan); }
.tweaks .toggle .sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left 0.2s; }
.tweaks .toggle .sw.on::after { left: 18px; }

/* ========= RESPONSIVE guards ========= */
@media (max-width: 980px) {
  .section { padding: 80px 0; }
  .container { padding: 0 24px; }
  .nav { padding: 20px 24px; }
  .nav ul { display: none; }
  .section-head h2 { font-size: 44px; }
  .trending-editorial, .region-map, .zoe-inner, .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .region-bento { grid-template-columns: repeat(2, 1fr); }
  .wall-grid { grid-template-columns: repeat(2, 1fr); }
  .chapter { grid-template-columns: 1fr; }
  .chapter-content { padding: 32px 0; }
  .chapter:nth-child(even) .chapter-media { order: 0; }
  .footer-colophon { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero-search { flex-wrap: wrap; }
}
