:root {
  color-scheme: dark;
  --ink: #17100c;
  --ink-soft: #231611;
  --ink-raised: #2e1b14;
  --cacao: #6f2d20;
  --cacao-bright: #a85034;
  --terracotta: #c8784b;
  --amber: #d9aa68;
  --gold: #e5c28d;
  --cream: #f1e8db;
  --cream-2: #e6d8c7;
  --paper: #f7f1e9;
  --moss: #5f7255;
  --sage: #8a9a7a;
  --wine: #7b2834;
  --muted: #b6a696;
  --line: rgba(239, 220, 194, 0.16);
  --line-dark: rgba(31, 18, 12, 0.15);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
  --shadow-soft: 0 18px 50px rgba(27, 13, 8, 0.15);
  --serif: "Iowan Old Style", "Palatino Linotype", "Noto Serif TC", "Songti TC", Georgia, serif;
  --sans: Inter, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  --header-height: 78px;
  --max: 1380px;
  --gutter: clamp(22px, 4vw, 68px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 80% -20%, rgba(151, 66, 43, 0.22), transparent 38rem),
    linear-gradient(180deg, #120c09 0, #18100c 42rem, #0e0a08 100%);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.modal-open,
body.menu-open {
  overflow: hidden;
}

::selection {
  background: var(--amber);
  color: var(--ink);
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

button:not(:disabled),
a {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

h1 {
  font-size: clamp(3.6rem, 8vw, 8.8rem);
}

h2 {
  font-size: clamp(2.6rem, 5vw, 5.4rem);
}

h3 {
  font-size: clamp(1.55rem, 2.5vw, 2.45rem);
}

h4 {
  font-size: 1.3rem;
}

a {
  color: inherit;
  text-decoration: none;
}

small {
  font-size: 0.78rem;
}

[hidden] {
  display: none !important;
}

.site-shell {
  position: relative;
  min-height: 100vh;
  overflow: clip;
}

.main-content {
  min-height: 70vh;
}

.container {
  width: min(var(--max), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.container-narrow {
  width: min(920px, calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 9999;
  transform: translateY(-150%);
  padding: 10px 14px;
  border-radius: 100px;
  background: var(--paper);
  color: var(--ink);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.announcement {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 6px var(--gutter);
  background: #7a3525;
  color: #f8e8d4;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  text-align: center;
}

.announcement a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  white-space: nowrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  background: linear-gradient(180deg, rgba(15, 10, 8, 0.96), rgba(15, 10, 8, 0.78));
  backdrop-filter: blur(22px) saturate(130%);
  transition: transform 0.45s cubic-bezier(0.2, 0.75, 0.2, 1), border-color 0.25s, background 0.25s;
}

body.is-scrolled .site-header {
  border-bottom-color: var(--line);
  background: rgba(15, 10, 8, 0.9);
}

.site-header.header-hidden {
  transform: translateY(-105%);
}

.header-inner {
  width: min(calc(var(--max) + 80px), calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand img {
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.24));
}

.brand-copy {
  display: grid;
  line-height: 1.1;
}

.brand-copy strong {
  font-family: var(--serif);
  font-size: 1.03rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 clamp(7px, 0.85vw, 14px);
  color: #cfc0b2;
  font-size: clamp(0.71rem, 0.78vw, 0.82rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 5px;
  height: 1px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.28s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--cream);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.icon-button {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.035);
  color: var(--cream);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.icon-button:hover {
  border-color: rgba(229, 194, 141, 0.5);
  background: rgba(229, 194, 141, 0.1);
  transform: translateY(-1px);
}

.icon-button.small {
  width: 34px;
  height: 34px;
}

.studio-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 15px;
  border: 1px solid rgba(229, 194, 141, 0.34);
  border-radius: 999px;
  color: var(--gold);
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}

.studio-link:hover {
  background: var(--gold);
  color: var(--ink);
}

.mobile-menu-button {
  display: none;
}

.mobile-nav {
  display: none;
}

.button,
.text-link,
.pill-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
}

.button {
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.24);
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--cream);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

.button-accent {
  background: var(--terracotta);
  color: #160c08;
}

.button-danger {
  background: #7a2b2e;
  color: #fff1e8;
}

.button-small {
  min-height: 39px;
  padding: 0 15px;
  font-size: 0.72rem;
}

.text-link {
  padding: 5px 0;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.text-link .icon {
  transition: transform 0.2s;
}

.text-link:hover .icon {
  transform: translateX(4px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
}

.eyebrow-dark {
  color: var(--cacao);
}

.hero {
  position: relative;
  min-height: min(920px, calc(100vh - 34px));
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: heroDrift 24s ease-in-out infinite alternate;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 7, 5, 0.92) 0%, rgba(11, 7, 5, 0.64) 43%, rgba(11, 7, 5, 0.16) 80%),
    linear-gradient(0deg, #120c09 0%, rgba(18, 12, 9, 0.2) 42%, rgba(18, 12, 9, 0.22) 100%);
}

@keyframes heroDrift {
  from { transform: scale(1.01) translate3d(0, 0, 0); }
  to { transform: scale(1.06) translate3d(-0.7%, -0.7%, 0); }
}

.hero-inner {
  width: min(var(--max), calc(100% - var(--gutter) * 2));
  margin: 0 auto;
  padding: clamp(120px, 18vh, 210px) 0 clamp(72px, 10vh, 110px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.48fr);
  gap: 60px;
  align-items: end;
}

.hero-copy h1 {
  max-width: 1050px;
  margin: 22px 0 20px;
  font-size: clamp(4.1rem, 8.8vw, 9.8rem);
  letter-spacing: -0.065em;
}

.hero-copy h1 em {
  display: block;
  color: var(--gold);
  font-style: italic;
  font-weight: 400;
}

.hero-copy > p {
  max-width: 680px;
  color: #d8cabc;
  font-size: clamp(1rem, 1.4vw, 1.24rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-aside {
  justify-self: end;
  max-width: 360px;
  padding: 24px;
  border: 1px solid rgba(239, 220, 194, 0.22);
  border-radius: 26px;
  background: rgba(28, 17, 12, 0.6);
  backdrop-filter: blur(16px);
}

.hero-aside small {
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0.18em;
}

.hero-aside strong {
  display: block;
  margin: 8px 0 12px;
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.2;
}

.hero-aside p {
  margin: 0;
  color: #cab9aa;
  font-size: 0.9rem;
}

.scroll-cue {
  position: absolute;
  right: var(--gutter);
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  writing-mode: vertical-rl;
}

.scroll-cue::after {
  content: "";
  width: 1px;
  height: 64px;
  background: linear-gradient(var(--gold), transparent);
  animation: scrollPulse 2.4s ease-in-out infinite;
}

@keyframes scrollPulse {
  50% { transform: scaleY(0.55); opacity: 0.45; }
}

.page-hero {
  position: relative;
  min-height: 470px;
  display: grid;
  align-items: end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 18%, rgba(183, 103, 59, 0.24), transparent 28rem),
    linear-gradient(135deg, rgba(108, 46, 31, 0.18), transparent 55%);
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  width: min(var(--max), calc(100% - var(--gutter) * 2));
  margin: 0 auto;
  padding: clamp(90px, 14vw, 150px) 0 64px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(250px, 0.45fr);
  align-items: end;
  gap: 60px;
}

.page-hero h1 {
  margin: 17px 0 0;
  font-size: clamp(3.6rem, 7vw, 7.6rem);
}

.page-hero h1 span {
  display: block;
  color: var(--gold);
  font-style: italic;
}

.page-hero-note {
  color: #c8b8aa;
  font-size: 0.98rem;
}

.page-hero-note strong {
  display: block;
  margin-bottom: 10px;
  color: var(--cream);
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
}

.section {
  position: relative;
  padding: clamp(76px, 10vw, 150px) 0;
}

.section-compact {
  padding: clamp(52px, 7vw, 90px) 0;
}

.section-paper {
  background: var(--paper);
  color: var(--ink);
}

.section-cream {
  background: var(--cream);
  color: var(--ink);
}

.section-ink {
  background: #100b08;
  color: var(--cream);
}

.section-wine {
  background: linear-gradient(135deg, #4d1d1f, #24100f);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(260px, 0.38fr);
  gap: 50px;
  align-items: end;
  margin-bottom: clamp(38px, 6vw, 72px);
}

.section-heading h2 {
  margin: 14px 0 0;
}

.section-heading p {
  margin: 0;
  color: inherit;
  opacity: 0.68;
}

.section-heading-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

.manifesto-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(50px, 8vw, 130px);
  align-items: center;
}

.manifesto-copy h2 {
  margin: 16px 0 30px;
}

.manifesto-copy p {
  max-width: 620px;
  color: #5f5046;
  font-size: 1.06rem;
}

.manifesto-visual {
  position: relative;
  min-height: 520px;
  border-radius: 46% 54% 48% 52% / 60% 42% 58% 40%;
  background:
    radial-gradient(circle at 62% 26%, rgba(235, 194, 132, 0.9) 0 7%, transparent 7.3%),
    radial-gradient(ellipse at 50% 50%, #a44a2f, #4a2018 54%, #1c100c 75%);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.manifesto-visual::before,
.manifesto-visual::after {
  content: "";
  position: absolute;
  inset: 12% 42%;
  border-left: 1px solid rgba(245, 216, 172, 0.5);
  border-right: 1px solid rgba(245, 216, 172, 0.28);
  border-radius: 50%;
}

.manifesto-visual::after {
  inset: 21% 23%;
  border: 1px solid rgba(245, 216, 172, 0.28);
  transform: rotate(90deg);
}

.manifesto-stat {
  position: absolute;
  min-width: 150px;
  padding: 18px;
  border: 1px solid rgba(245, 216, 172, 0.25);
  border-radius: 18px;
  background: rgba(17, 10, 7, 0.72);
  color: var(--cream);
  backdrop-filter: blur(15px);
}

.manifesto-stat strong {
  display: block;
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 500;
}

.manifesto-stat span {
  color: #c9b6a5;
  font-size: 0.73rem;
  letter-spacing: 0.1em;
}

.manifesto-stat:nth-child(1) { top: 10%; left: -7%; }
.manifesto-stat:nth-child(2) { right: -7%; top: 42%; }
.manifesto-stat:nth-child(3) { left: 5%; bottom: 6%; }

.featured-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(340px, 0.74fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: stretch;
}

.featured-media {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border-radius: 34px;
}

.featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.2, 0.75, 0.2, 1);
}

.featured-media:hover img {
  transform: scale(1.035);
}

.featured-index {
  position: absolute;
  top: 24px;
  left: 24px;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(16, 10, 7, 0.45);
  font-family: var(--serif);
  font-size: 1.3rem;
  backdrop-filter: blur(12px);
}

.featured-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(10px, 3vw, 38px) 0;
}

.featured-copy h3 {
  margin: 18px 0 14px;
  font-size: clamp(2.5rem, 4.5vw, 5.2rem);
}

.featured-origin {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.featured-copy > p {
  color: #c9b9ab;
}

.sensory-rows {
  margin: 28px 0;
  border-top: 1px solid var(--line);
}

.sensory-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.sensory-row small {
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sensory-row span {
  color: #e5d9cc;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.card-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cacao-card,
.variety-card,
.pairing-card,
.post-card,
.inventory-card,
.explore-result-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 25px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.035);
  transition: transform 0.32s ease, border-color 0.32s ease, background 0.32s ease, box-shadow 0.32s ease;
}

.cacao-card:hover,
.variety-card:hover,
.pairing-card:hover,
.inventory-card:hover,
.explore-result-card:hover {
  transform: translateY(-7px);
  border-color: rgba(229, 194, 141, 0.36);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: var(--shadow);
}

.cacao-card-media {
  position: relative;
  aspect-ratio: 1.24;
  overflow: hidden;
}

.cacao-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.cacao-card:hover .cacao-card-media img {
  transform: scale(1.05);
}

.cacao-percent {
  position: absolute;
  top: 16px;
  right: 16px;
  min-width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(15, 9, 7, 0.58);
  color: var(--cream);
  font-family: var(--serif);
  font-size: 1rem;
  backdrop-filter: blur(10px);
}

.cacao-card-body {
  padding: 22px;
}

.card-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.cacao-card h3,
.inventory-card h3,
.explore-result-card h3 {
  margin: 12px 0 10px;
  font-size: clamp(1.65rem, 2vw, 2.15rem);
}

.card-meta {
  color: var(--muted);
  font-size: 0.83rem;
}

.card-story {
  display: -webkit-box;
  margin: 14px 0 0;
  overflow: hidden;
  color: #cbbbac;
  font-size: 0.88rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  padding: 4px 10px;
  border: 1px solid rgba(229, 194, 141, 0.2);
  border-radius: 999px;
  background: rgba(229, 194, 141, 0.05);
  color: #ddc9ad;
  font-size: 0.72rem;
}

.section-paper .tag,
.section-cream .tag,
.modal-light .tag,
.studio-shell .tag {
  border-color: rgba(75, 38, 24, 0.16);
  background: rgba(98, 48, 29, 0.06);
  color: #6b402d;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 19px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.status-available {
  background: rgba(103, 137, 86, 0.15);
  color: #bed3ad;
}

.status-low {
  background: rgba(214, 159, 76, 0.16);
  color: #e5c080;
}

.status-finished {
  background: rgba(155, 143, 132, 0.12);
  color: #a99d92;
}

.status-wishlist {
  background: rgba(151, 76, 67, 0.16);
  color: #df9c8d;
}

.section-paper .status-available,
.section-cream .status-available,
.modal-light .status-available { color: #49653f; }
.section-paper .status-low,
.section-cream .status-low,
.modal-light .status-low { color: #8e5b16; }
.section-paper .status-finished,
.section-cream .status-finished,
.modal-light .status-finished { color: #70645b; }
.section-paper .status-wishlist,
.section-cream .status-wishlist,
.modal-light .status-wishlist { color: #8f4339; }

.filters-shell {
  position: sticky;
  top: calc(var(--header-height) + 18px);
  z-index: 30;
  width: min(var(--max), calc(100% - var(--gutter) * 2));
  margin: 0 auto 38px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(21, 13, 10, 0.88);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(24px);
}

.filter-row {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(150px, 0.5fr)) auto;
  gap: 10px;
}

.search-field,
.select-field,
.input-field {
  position: relative;
}

.search-field .icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}

.search-field input,
.select-field select,
.input-field input,
.input-field textarea,
.form-control {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--cream);
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.search-field input {
  padding: 0 16px 0 44px;
}

.select-field select,
.input-field input,
.form-control {
  padding: 0 14px;
}

.input-field textarea,
textarea.form-control {
  min-height: 125px;
  padding: 13px 14px;
  resize: vertical;
}

.search-field input:focus,
.select-field select:focus,
.input-field input:focus,
.input-field textarea:focus,
.form-control:focus {
  border-color: rgba(229, 194, 141, 0.55);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 3px rgba(229, 194, 141, 0.1);
}

.select-field select {
  appearance: none;
  padding-right: 38px;
}

.select-field::after {
  content: "⌄";
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-56%);
  color: var(--muted);
  pointer-events: none;
}

.filter-count {
  min-width: 95px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
  font-size: 0.78rem;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.filter-chip,
.pill-button {
  min-height: 35px;
  padding: 5px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.75rem;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.filter-chip:hover,
.filter-chip.is-active,
.pill-button:hover,
.pill-button.is-active {
  border-color: var(--amber);
  background: var(--amber);
  color: var(--ink);
}

.empty-state {
  min-height: 340px;
  display: grid;
  place-items: center;
  padding: 50px;
  border: 1px dashed var(--line);
  border-radius: 28px;
  text-align: center;
}

.empty-state span {
  display: block;
  margin-bottom: 10px;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 4rem;
}

.empty-state p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
}

.map-section {
  background: #0d0a08;
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr);
  min-height: 720px;
  border: 1px solid var(--line);
  border-radius: 30px;
  overflow: hidden;
  background: #13100d;
}

.map-canvas {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(94, 59, 38, 0.18), transparent 36rem),
    linear-gradient(180deg, #15110e, #0d0b09);
}

.world-map {
  width: 100%;
  height: 100%;
  min-height: 650px;
}

.world-map .country {
  fill: #2b2a24;
  stroke: rgba(215, 197, 171, 0.13);
  stroke-width: 0.7;
  vector-effect: non-scaling-stroke;
  transition: fill 0.2s, stroke 0.2s;
}

.world-map .country:hover {
  fill: #34352d;
  stroke: rgba(229, 194, 141, 0.25);
}

.world-map .map-grid-line {
  fill: none;
  stroke: rgba(215, 197, 171, 0.05);
  stroke-width: 0.7;
  vector-effect: non-scaling-stroke;
}

.map-point {
  cursor: pointer;
  outline: none;
}

.map-point .pulse {
  fill: rgba(211, 119, 72, 0.16);
  transform-box: fill-box;
  transform-origin: center;
  animation: pointPulse 2.6s ease-out infinite;
}

.map-point .core {
  fill: var(--terracotta);
  stroke: #f4dbb7;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  transition: r 0.2s, fill 0.2s;
}

.map-point:hover .core,
.map-point:focus .core,
.map-point.is-active .core {
  fill: var(--gold);
  r: 7;
}

@keyframes pointPulse {
  0% { transform: scale(0.35); opacity: 0.8; }
  75%, 100% { transform: scale(1.5); opacity: 0; }
}

.map-caption {
  position: absolute;
  left: 22px;
  bottom: 20px;
  max-width: 420px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(13, 10, 8, 0.76);
  color: var(--muted);
  font-size: 0.7rem;
  backdrop-filter: blur(12px);
}

.map-sidebar {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.map-sidebar-head {
  padding: 25px;
  border-bottom: 1px solid var(--line);
}

.map-sidebar-head h2 {
  margin: 9px 0 5px;
  font-size: 2.1rem;
}

.map-sidebar-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.map-list {
  flex: 1;
  max-height: 610px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(229, 194, 141, 0.25) transparent;
}

.map-list-item {
  width: 100%;
  display: grid;
  grid-template-columns: 55px 1fr auto;
  gap: 13px;
  align-items: center;
  padding: 15px 20px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  transition: background 0.2s;
}

.map-list-item:hover,
.map-list-item.is-active {
  background: rgba(229, 194, 141, 0.07);
}

.map-list-item img {
  width: 55px;
  height: 55px;
  border-radius: 15px;
  object-fit: cover;
}

.map-list-item strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.03rem;
  font-weight: 500;
}

.map-list-item small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.map-list-item .count {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1.15rem;
}

.map-tooltip {
  position: absolute;
  z-index: 5;
  min-width: 180px;
  padding: 12px 14px;
  border: 1px solid rgba(229, 194, 141, 0.28);
  border-radius: 13px;
  background: rgba(20, 12, 9, 0.92);
  box-shadow: var(--shadow-soft);
  pointer-events: none;
  transform: translate(14px, -50%);
  opacity: 0;
  transition: opacity 0.15s;
}

.map-tooltip.is-visible {
  opacity: 1;
}

.map-tooltip strong,
.map-tooltip small {
  display: block;
}

.map-tooltip small {
  margin-top: 4px;
  color: var(--muted);
}

.radar-wrap {
  position: relative;
  width: min(100%, 410px);
  aspect-ratio: 1;
  margin: 0 auto;
}

.radar-chart {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.radar-grid {
  fill: rgba(169, 116, 77, 0.025);
  stroke: rgba(117, 75, 50, 0.22);
  stroke-width: 1;
}

.radar-axis {
  stroke: rgba(117, 75, 50, 0.22);
  stroke-width: 1;
}

.radar-area {
  fill: rgba(157, 67, 43, 0.2);
  stroke: #9d432b;
  stroke-width: 2;
}

.radar-dot {
  fill: #8f3824;
  stroke: var(--paper);
  stroke-width: 1.5;
}

.radar-label {
  fill: #665247;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  text-anchor: middle;
}

.sensory-bars {
  display: grid;
  gap: 11px;
}

.sensory-bar-row {
  display: grid;
  grid-template-columns: minmax(80px, 120px) 1fr 42px;
  gap: 12px;
  align-items: center;
  font-size: 0.82rem;
}

.sensory-bar-row strong {
  font-weight: 600;
}

.sensory-bar-track {
  height: 7px;
  border-radius: 999px;
  background: rgba(92, 54, 35, 0.1);
  overflow: hidden;
}

.sensory-bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7c3021, #d79b56);
}

.sensory-bar-row span:last-child {
  color: #79665b;
  text-align: right;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  min-height: 540px;
}

.detail-image {
  min-height: 500px;
  overflow: hidden;
}

.detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 5vw, 72px);
  background: var(--paper);
  color: var(--ink);
}

.detail-copy h2 {
  margin: 12px 0 14px;
  font-size: clamp(2.7rem, 5vw, 5rem);
}

.detail-subtitle {
  color: #7b6559;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.detail-body {
  padding: clamp(35px, 5vw, 70px);
  background: var(--paper);
  color: var(--ink);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.65fr);
  gap: clamp(40px, 6vw, 85px);
}

.detail-section + .detail-section {
  margin-top: 50px;
  padding-top: 40px;
  border-top: 1px solid var(--line-dark);
}

.detail-section h3 {
  margin-bottom: 20px;
}

.detail-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line-dark);
  background: var(--line-dark);
  border-radius: 18px;
  overflow: hidden;
}

.detail-fact {
  min-height: 88px;
  padding: 16px;
  background: var(--paper);
}

.detail-fact small {
  display: block;
  color: #8d786b;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-fact strong {
  display: block;
  margin-top: 5px;
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 500;
}

.detail-pairing-list {
  display: grid;
  gap: 10px;
}

.detail-pairing {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px;
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  transition: background 0.2s;
}

.detail-pairing:hover {
  background: rgba(105, 50, 29, 0.06);
}

.variety-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.variety-card {
  min-height: 570px;
  display: grid;
  grid-template-rows: 230px 1fr;
}

.variety-card-media {
  overflow: hidden;
}

.variety-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.variety-card-body {
  display: flex;
  flex-direction: column;
  padding: 28px;
}

.variety-card h2 {
  margin: 8px 0 5px;
  font-size: clamp(2.3rem, 4vw, 4.2rem);
}

.variety-card h2 small {
  display: block;
  margin-top: 8px;
  color: var(--gold);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.variety-facts {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.variety-fact {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.variety-fact small {
  color: var(--gold);
  font-weight: 700;
}

.variety-fact span {
  color: #c9b8a9;
  font-size: 0.88rem;
}

.explore-panel {
  display: grid;
  grid-template-columns: minmax(300px, 0.45fr) minmax(0, 0.85fr);
  border: 1px solid var(--line);
  border-radius: 30px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.025);
}

.explore-controls {
  padding: clamp(28px, 4vw, 54px);
  border-right: 1px solid var(--line);
}

.explore-controls h2 {
  margin: 14px 0;
  font-size: clamp(2.4rem, 4vw, 4.4rem);
}

.explore-controls > p {
  color: var(--muted);
}

.preference-group {
  margin-top: 34px;
}

.preference-group > label,
.range-label {
  display: block;
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.preference-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.preference-chip {
  min-height: 40px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: #cfbfb0;
  font-size: 0.8rem;
  transition: background 0.2s, color 0.2s;
}

.preference-chip.is-active {
  background: var(--gold);
  color: var(--ink);
}

.range-row {
  display: grid;
  grid-template-columns: 80px 1fr 40px;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.78rem;
}

.range-row input[type="range"],
.volume-control input[type="range"],
.studio-range input[type="range"] {
  accent-color: var(--terracotta);
}

.explore-results {
  min-height: 680px;
  padding: clamp(28px, 4vw, 54px);
  background:
    radial-gradient(circle at 85% 15%, rgba(164, 74, 47, 0.13), transparent 25rem),
    rgba(0, 0, 0, 0.07);
}

.explore-results-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.explore-results-head h3 {
  margin: 0;
}

.explore-result-list {
  display: grid;
  gap: 18px;
}

.explore-result-card {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  align-items: stretch;
}

.explore-result-card img {
  width: 180px;
  height: 100%;
  min-height: 170px;
  object-fit: cover;
}

.explore-result-body {
  padding: 22px;
}

.match-score {
  min-width: 100px;
  display: grid;
  place-items: center;
  padding: 18px;
  border-left: 1px solid var(--line);
  text-align: center;
}

.match-score strong {
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--gold);
}

.match-score small {
  color: var(--muted);
  letter-spacing: 0.08em;
}

.inventory-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 36px;
}

.summary-tile {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
}

.summary-tile strong {
  display: block;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 2.7rem;
  font-weight: 500;
}

.summary-tile span {
  color: var(--muted);
  font-size: 0.77rem;
  letter-spacing: 0.08em;
}

.inventory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.inventory-card {
  display: grid;
  grid-template-columns: 180px 1fr;
}

.inventory-card-media {
  min-height: 250px;
}

.inventory-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.inventory-card-body {
  padding: 24px;
}

.inventory-note {
  margin-top: 16px;
  padding: 12px 14px;
  border-left: 2px solid var(--terracotta);
  background: rgba(200, 120, 75, 0.07);
  color: #c6b6a8;
  font-size: 0.84rem;
}

.pairing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.pairing-card {
  min-height: 500px;
  display: flex;
  flex-direction: column;
}

.pairing-card-media {
  height: 235px;
  overflow: hidden;
}

.pairing-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.pairing-card:hover img {
  transform: scale(1.05);
}

.pairing-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.pairing-category {
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.pairing-card h3 {
  margin: 12px 0;
}

.pairing-card p {
  color: #c8b8aa;
  font-size: 0.9rem;
}

.pairing-card .card-footer {
  margin-top: auto;
}

.pairing-detail {
  padding: clamp(38px, 6vw, 80px);
  background: var(--paper);
  color: var(--ink);
}

.pairing-detail-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.65fr) minmax(0, 1fr);
  gap: clamp(35px, 5vw, 70px);
  align-items: center;
}

.pairing-detail img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 28px;
}

.pairing-detail h2 {
  margin: 12px 0 20px;
  font-size: clamp(2.6rem, 5vw, 5.2rem);
}

.pairing-block {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line-dark);
}

.pairing-block small {
  display: block;
  color: var(--cacao);
  font-weight: 800;
  letter-spacing: 0.12em;
}

.pairing-block p {
  margin: 8px 0 0;
  color: #665249;
}

.community-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.4fr) minmax(0, 0.8fr);
  gap: clamp(30px, 6vw, 85px);
  align-items: start;
}

.community-compose {
  position: sticky;
  top: calc(var(--header-height) + 26px);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.035);
}

.community-compose h2 {
  margin: 12px 0;
  font-size: 2.3rem;
}

.community-compose > p {
  color: var(--muted);
  font-size: 0.88rem;
}

.form-stack {
  display: grid;
  gap: 15px;
}

.form-label {
  display: grid;
  gap: 7px;
  color: #dccdbc;
  font-size: 0.78rem;
  font-weight: 700;
}

.form-label small {
  color: var(--muted);
  font-weight: 400;
}

.community-stream {
  display: grid;
  gap: 20px;
}

.post-card {
  padding: clamp(24px, 4vw, 38px);
}

.post-card::before {
  content: "“";
  position: absolute;
  right: 24px;
  top: 8px;
  color: rgba(229, 194, 141, 0.12);
  font-family: var(--serif);
  font-size: 8rem;
  line-height: 1;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.74rem;
}

.post-author {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--terracotta), var(--wine));
  color: white;
  font-family: var(--serif);
  font-size: 1rem;
}

.post-card h3 {
  position: relative;
  margin: 22px 0 14px;
  padding-right: 45px;
}

.post-card blockquote {
  margin: 0;
  color: #d5c5b6;
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.9;
}

.post-mood {
  display: inline-flex;
  margin-top: 20px;
  padding: 8px 12px;
  border: 1px solid rgba(229, 194, 141, 0.2);
  border-radius: 999px;
  color: var(--gold);
  font-size: 0.72rem;
}

.about-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 0.8fr);
  gap: clamp(50px, 8vw, 120px);
  align-items: center;
}

.about-portrait {
  position: relative;
  min-height: 650px;
  border-radius: 40% 60% 45% 55% / 48% 42% 58% 52%;
  overflow: hidden;
  background: url("../images/hero-cacao.svg") center / cover;
}

.about-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(13, 8, 6, 0.4));
}

.about-copy h2 {
  margin: 16px 0 25px;
}

.about-copy p {
  color: #c9b9aa;
  white-space: pre-line;
}

.about-signature {
  margin-top: 32px;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1.8rem;
  font-style: italic;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line-dark);
  border-radius: 26px;
  overflow: hidden;
  background: var(--line-dark);
}

.principle-card {
  min-height: 310px;
  padding: 34px;
  background: var(--paper);
}

.principle-card span {
  color: var(--cacao);
  font-family: var(--serif);
  font-size: 3rem;
}

.principle-card h3 {
  margin: 25px 0 14px;
}

.principle-card p {
  color: #705d52;
}

.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(70px, 9vw, 130px) 0;
  background: linear-gradient(135deg, #702d21, #321511 70%, #17100c);
}

.cta-band::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  right: -130px;
  top: -220px;
  border: 1px solid rgba(239, 220, 194, 0.15);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(239, 220, 194, 0.02), 0 0 0 140px rgba(239, 220, 194, 0.015);
}

.cta-band-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta-band h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.6rem, 5vw, 5.6rem);
}

.site-footer {
  position: relative;
  padding: 80px var(--gutter) 28px;
  border-top: 1px solid var(--line);
  background: #0b0806;
  overflow: hidden;
}

.footer-orbit {
  position: absolute;
  right: -160px;
  top: -230px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(229, 194, 141, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 90px rgba(229, 194, 141, 0.015), 0 0 0 180px rgba(229, 194, 141, 0.008);
}

.footer-grid {
  position: relative;
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.7fr repeat(3, 0.65fr);
  gap: 45px;
}

.footer-brand {
  margin-bottom: 18px;
}

.footer-grid > div:first-child p {
  max-width: 420px;
  color: var(--muted);
}

.footer-links {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-links strong {
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 0.68rem;
  letter-spacing: 0.17em;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #b9aa9c;
  font-size: 0.82rem;
}

.footer-links a:hover {
  color: var(--cream);
}

.footer-bottom {
  width: min(var(--max), 100%);
  margin: 60px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #75695f;
  font-size: 0.7rem;
}

.floating-controls {
  position: fixed;
  right: 20px;
  bottom: 22px;
  z-index: 350;
  display: grid;
  justify-items: end;
  gap: 10px;
}

.floating-button {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  border: 1px solid rgba(243, 219, 184, 0.28);
  border-radius: 50%;
  background: rgba(25, 15, 11, 0.88);
  color: var(--cream);
  box-shadow: 0 13px 35px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(16px);
  transition: transform 0.2s, background 0.2s, color 0.2s;
}

button.floating-button {
  padding: 0;
}

.floating-button small {
  font-size: 0.47rem;
  font-weight: 800;
  letter-spacing: 0.11em;
}

.floating-button:hover {
  transform: translateY(-3px) scale(1.03);
}

.line-button {
  border-color: rgba(96, 210, 113, 0.4);
}

.line-button:hover {
  background: #53b968;
  color: #07150a;
}

.music-button.is-playing {
  background: var(--gold);
  color: var(--ink);
}

.music-button.is-playing::after {
  content: "";
  position: absolute;
  width: 66px;
  height: 66px;
  border: 1px solid rgba(229, 194, 141, 0.36);
  border-radius: 50%;
  animation: musicPulse 1.8s ease-out infinite;
}

@keyframes musicPulse {
  from { transform: scale(0.8); opacity: 0.9; }
  to { transform: scale(1.25); opacity: 0; }
}

.music-popover {
  width: min(330px, calc(100vw - 30px));
  margin-bottom: 2px;
  padding: 17px;
  border: 1px solid rgba(229, 194, 141, 0.24);
  border-radius: 22px;
  background: rgba(22, 13, 10, 0.95);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transform-origin: bottom right;
  backdrop-filter: blur(25px);
  transition: opacity 0.2s, transform 0.2s;
}

.music-popover.is-open {
  opacity: 1;
  transform: none;
}

.music-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 14px;
}

.music-head span {
  display: grid;
}

.music-head small {
  color: var(--gold);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.music-head strong {
  margin-top: 3px;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
}

.music-tracks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.music-track {
  display: grid;
  grid-template-columns: 9px 1fr;
  gap: 9px;
  align-items: center;
  min-height: 52px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.025);
  text-align: left;
}

.music-track span:last-child {
  display: grid;
}

.music-track strong {
  font-size: 0.77rem;
}

.music-track small {
  color: var(--muted);
  font-size: 0.64rem;
}

.track-dot {
  width: 7px;
  height: 7px;
  border: 1px solid var(--gold);
  border-radius: 50%;
}

.music-track.is-active {
  border-color: var(--gold);
  background: rgba(229, 194, 141, 0.1);
}

.music-track.is-active .track-dot {
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(229, 194, 141, 0.1);
}

.volume-control {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  gap: 10px;
  align-items: center;
  margin-top: 15px;
  color: var(--muted);
  font-size: 0.68rem;
}

.volume-control output {
  text-align: right;
}

.music-popover > p {
  margin: 12px 0 0;
  color: #7f7064;
  font-size: 0.64rem;
}

.cacao-progress {
  position: fixed;
  left: 18px;
  top: 50%;
  z-index: 120;
  height: 330px;
  display: grid;
  grid-template-columns: 13px 18px;
  grid-template-rows: 1fr auto;
  column-gap: 10px;
  transform: translateY(-50%);
  pointer-events: none;
}

.progress-label {
  align-self: center;
  color: rgba(229, 194, 141, 0.5);
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.progress-tree {
  position: relative;
  width: 2px;
  height: 290px;
  align-self: center;
  background: rgba(229, 194, 141, 0.15);
}

.progress-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(var(--terracotta), var(--gold));
  transform: scaleY(0);
  transform-origin: top;
}

.progress-node {
  position: absolute;
  left: 50%;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(229, 194, 141, 0.4);
  border-radius: 50%;
  background: var(--ink);
  transform: translate(-50%, -50%);
}

.node-1 { top: 10%; }
.node-2 { top: 38%; }
.node-3 { top: 67%; }
.node-4 { top: 92%; }

.progress-pod {
  position: absolute;
  left: 50%;
  top: 6%;
  width: 16px;
  height: 25px;
  border: 1px solid var(--gold);
  border-radius: 48% 52% 46% 54% / 58% 58% 42% 42%;
  background: var(--cacao);
  transform: translate(-50%, -50%);
  transition: top 0.1s linear;
}

.progress-pod b {
  position: absolute;
  top: 2px;
  bottom: 2px;
  width: 1px;
  background: rgba(244, 215, 172, 0.45);
}

.progress-pod b:nth-child(1) { left: 4px; }
.progress-pod b:nth-child(2) { left: 7px; }
.progress-pod b:nth-child(3) { right: 4px; }

.progress-percent {
  grid-column: 2;
  color: rgba(229, 194, 141, 0.55);
  font-family: var(--serif);
  font-size: 0.7rem;
  text-align: center;
}

.search-overlay,
.modal-root {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: start center;
  padding: max(40px, 8vh) 20px 40px;
  overflow-y: auto;
  opacity: 0;
  transition: opacity 0.2s;
}

.search-overlay.is-open,
.modal-root.is-open {
  opacity: 1;
}

.search-backdrop,
.modal-backdrop {
  position: fixed;
  inset: 0;
  border: 0;
  background: rgba(5, 3, 2, 0.78);
  backdrop-filter: blur(18px);
}

.search-dialog {
  position: relative;
  z-index: 1;
  width: min(860px, 100%);
  max-height: min(760px, 86vh);
  overflow: hidden;
  border: 1px solid rgba(229, 194, 141, 0.25);
  border-radius: 26px;
  background: #17100c;
  box-shadow: var(--shadow);
  transform: translateY(-15px) scale(0.98);
  transition: transform 0.23s;
}

.search-overlay.is-open .search-dialog {
  transform: none;
}

.search-input-wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 13px;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.search-input-wrap > .icon {
  color: var(--gold);
}

.search-input-wrap input {
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--cream);
  font-size: clamp(1rem, 2vw, 1.35rem);
  outline: 0;
}

.search-input-wrap input::placeholder {
  color: #7c6e64;
}

.search-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
}

.search-hints span {
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.67rem;
}

.global-search-results {
  max-height: 590px;
  overflow: auto;
  padding: 12px 0;
}

.search-empty {
  min-height: 270px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 30px;
  color: var(--muted);
  text-align: center;
}

.search-empty span {
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--gold);
  font-family: var(--serif);
}

.search-empty p {
  margin: 0;
}

.search-group + .search-group {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.search-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 20px 10px;
}

.search-group-title span {
  color: var(--gold);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.search-group-title strong {
  color: var(--muted);
  font-size: 0.7rem;
}

.search-result {
  display: grid;
  grid-template-columns: 62px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 10px 20px;
  transition: background 0.2s;
}

.search-result:hover {
  background: rgba(229, 194, 141, 0.06);
}

.search-thumb {
  width: 62px;
  height: 62px;
  border-radius: 14px;
  overflow: hidden;
}

.search-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-result > span:nth-child(2) {
  min-width: 0;
}

.search-result strong,
.search-result small {
  display: block;
}

.search-result strong {
  font-family: var(--serif);
  font-size: 1.03rem;
  font-weight: 500;
}

.search-result small {
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.73rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result.compact {
  grid-template-columns: 42px 1fr auto;
}

.search-letter {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1.1rem;
}

.modal-root {
  place-items: center;
  padding: 25px;
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  max-height: calc(100vh - 50px);
  overflow: auto;
  border: 1px solid rgba(229, 194, 141, 0.25);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: var(--shadow);
  transform: translateY(20px) scale(0.985);
  transition: transform 0.22s;
}

.modal-panel.modal-wide {
  width: min(1250px, 100%);
}

.modal-root.is-open .modal-panel {
  transform: none;
}

.modal-close {
  position: sticky;
  float: right;
  top: 16px;
  right: 16px;
  z-index: 10;
  margin: 16px 16px -58px 0;
  border-color: rgba(38, 20, 13, 0.15);
  background: rgba(247, 241, 233, 0.8);
  color: var(--ink);
  backdrop-filter: blur(10px);
}

.toast-root {
  position: fixed;
  z-index: 1400;
  left: 50%;
  bottom: 25px;
  display: grid;
  gap: 8px;
  transform: translateX(-50%);
  pointer-events: none;
}

.toast {
  min-width: 250px;
  max-width: min(480px, calc(100vw - 30px));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(22, 13, 10, 0.94);
  color: var(--cream);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.22s, transform 0.22s;
  backdrop-filter: blur(16px);
  text-align: center;
}

.toast.is-visible {
  opacity: 1;
  transform: none;
}

.toast-success {
  border-color: rgba(114, 163, 99, 0.42);
}

.toast-error {
  border-color: rgba(201, 86, 74, 0.52);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.2, 0.75, 0.2, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Studio */
.studio-page {
  background: #eae1d6;
  color: var(--ink);
}

.studio-page .site-header {
  background: rgba(21, 13, 10, 0.96);
}

.studio-page .site-header,
.studio-page .site-footer,
.studio-page .announcement,
.studio-page .floating-controls,
.studio-page .cacao-progress {
  display: none;
}

.studio-login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 60px 20px;
  background:
    radial-gradient(circle at 70% 20%, rgba(155, 71, 43, 0.2), transparent 30rem),
    linear-gradient(135deg, #20110d, #0d0907);
}

.studio-login {
  width: min(500px, 100%);
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid rgba(229, 194, 141, 0.24);
  border-radius: 30px;
  background: rgba(29, 17, 12, 0.86);
  color: var(--cream);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.studio-login-mark {
  width: 70px;
  height: 70px;
  margin-bottom: 22px;
}

.studio-login h1 {
  margin: 10px 0 12px;
  font-size: clamp(2.8rem, 7vw, 4.6rem);
}

.studio-login > p {
  color: var(--muted);
}

.mode-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 20px 0;
  padding: 12px 14px;
  border: 1px solid rgba(229, 194, 141, 0.18);
  border-radius: 14px;
  background: rgba(229, 194, 141, 0.06);
  color: #d9c8b8;
  font-size: 0.78rem;
}

.studio-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 265px minmax(0, 1fr);
  background: #eee6dc;
  color: var(--ink);
}

.studio-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 25px 17px;
  border-right: 1px solid rgba(40, 22, 14, 0.13);
  background: #1c110d;
  color: var(--cream);
  overflow-y: auto;
}

.studio-sidebar-head {
  padding: 0 8px 22px;
  border-bottom: 1px solid var(--line);
}

.studio-sidebar-head small {
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0.14em;
}

.studio-sidebar-head strong {
  display: block;
  margin-top: 7px;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
}

.studio-mode {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.68rem;
}

.studio-mode::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 4px rgba(138, 154, 122, 0.1);
}

.studio-tabs {
  display: grid;
  gap: 4px;
  padding: 18px 0;
}

.studio-tab {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #bdae9f;
  font-size: 0.8rem;
  text-align: left;
}

.studio-tab:hover,
.studio-tab.is-active {
  background: rgba(229, 194, 141, 0.1);
  color: var(--cream);
}

.studio-sidebar-actions {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.studio-sidebar-actions .button {
  width: 100%;
}

.studio-workspace {
  min-width: 0;
}

.studio-topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 13px clamp(20px, 3vw, 42px);
  border-bottom: 1px solid rgba(40, 22, 14, 0.12);
  background: rgba(238, 230, 220, 0.9);
  backdrop-filter: blur(18px);
}

.studio-topbar h1 {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.25rem;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.studio-topbar p {
  margin: 2px 0 0;
  color: #796a60;
  font-size: 0.75rem;
}

.studio-top-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.save-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #77685e;
  font-size: 0.72rem;
}

.save-state::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7a9a6b;
}

.save-state.is-dirty::before {
  background: #c6813e;
}

.studio-content {
  padding: clamp(22px, 3vw, 44px);
}

.studio-panel {
  width: min(1240px, 100%);
  margin: 0 auto;
}

.studio-panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 26px;
}

.studio-panel-head h2 {
  margin: 4px 0 0;
  font-family: var(--sans);
  font-size: clamp(1.7rem, 2.6vw, 2.5rem);
  font-weight: 750;
  letter-spacing: -0.035em;
}

.studio-panel-head p {
  max-width: 680px;
  margin: 7px 0 0;
  color: #796a60;
  font-size: 0.85rem;
}

.studio-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.studio-card {
  border: 1px solid rgba(48, 27, 17, 0.12);
  border-radius: 20px;
  background: #f8f3ed;
  box-shadow: 0 10px 34px rgba(61, 38, 23, 0.05);
}

.studio-card + .studio-card {
  margin-top: 18px;
}

.studio-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 20px;
  border-bottom: 1px solid rgba(48, 27, 17, 0.1);
}

.studio-card-head h3 {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 800;
}

.studio-card-body {
  padding: 22px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}

.form-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-span-2 {
  grid-column: span 2;
}

.form-span-3 {
  grid-column: span 3;
}

.studio-field {
  display: grid;
  gap: 7px;
}

.studio-field > span,
.studio-fieldset > legend {
  color: #56483f;
  font-size: 0.75rem;
  font-weight: 800;
}

.studio-field > small {
  color: #8d7e73;
  font-size: 0.67rem;
}

.studio-field input,
.studio-field select,
.studio-field textarea,
.studio-input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(48, 27, 17, 0.16);
  border-radius: 11px;
  background: #fffdf9;
  color: var(--ink);
  outline: 0;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.studio-field textarea {
  min-height: 110px;
  padding: 11px 12px;
  resize: vertical;
}

.studio-field input:focus,
.studio-field select:focus,
.studio-field textarea:focus,
.studio-input:focus {
  border-color: #a45b38;
  box-shadow: 0 0 0 3px rgba(164, 91, 56, 0.1);
}

.studio-fieldset {
  margin: 0;
  padding: 17px;
  border: 1px solid rgba(48, 27, 17, 0.12);
  border-radius: 14px;
}

.studio-fieldset > legend {
  padding: 0 6px;
}

.studio-range-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px 20px;
}

.studio-range {
  display: grid;
  grid-template-columns: 70px 1fr 35px;
  gap: 10px;
  align-items: center;
  color: #66574d;
  font-size: 0.72rem;
}

.studio-range output {
  text-align: right;
  font-weight: 800;
}

.image-editor {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 20px;
  align-items: start;
}

.image-preview {
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(48, 27, 17, 0.14);
  border-radius: 16px;
  background: #e7ddd1;
}

.image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-editor-controls {
  display: grid;
  gap: 12px;
}

.item-split {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.item-list-card {
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 125px);
  overflow: hidden;
}

.item-list-tools {
  padding: 13px;
  border-bottom: 1px solid rgba(48, 27, 17, 0.1);
}

.item-list {
  max-height: calc(100vh - 230px);
  overflow: auto;
}

.item-row {
  width: 100%;
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 11px;
  align-items: center;
  padding: 11px 13px;
  border: 0;
  border-bottom: 1px solid rgba(48, 27, 17, 0.08);
  background: transparent;
  color: var(--ink);
  text-align: left;
  transition: background 0.2s;
}

.item-row:hover,
.item-row.is-active {
  background: rgba(154, 84, 49, 0.08);
}

.item-row img {
  width: 52px;
  height: 52px;
  border-radius: 11px;
  object-fit: cover;
}

.item-row strong {
  display: block;
  overflow: hidden;
  font-size: 0.8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-row small {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: #89786c;
  font-size: 0.66rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-row > span:last-child {
  color: #9a897e;
  font-size: 0.68rem;
}

.editor-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(48, 27, 17, 0.11);
}

.editor-actions > div {
  display: flex;
  gap: 8px;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.check-card {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px;
  border: 1px solid rgba(48, 27, 17, 0.12);
  border-radius: 11px;
  color: #5e4e44;
  font-size: 0.72rem;
}

.check-card input {
  margin-top: 3px;
  accent-color: #9f4c2f;
}

.backup-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.backup-card {
  min-height: 270px;
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.backup-card .icon {
  color: var(--cacao);
}

.backup-card h3 {
  margin: 22px 0 10px;
  font-family: var(--sans);
  font-size: 1.15rem;
  font-weight: 800;
}

.backup-card p {
  color: #796a60;
  font-size: 0.82rem;
}

.backup-card .button {
  margin-top: auto;
}

.moderation-list {
  display: grid;
  gap: 12px;
}

.moderation-item {
  padding: 18px;
  border: 1px solid rgba(48, 27, 17, 0.12);
  border-radius: 15px;
  background: #fffdf9;
}

.moderation-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.moderation-item h3 {
  margin: 5px 0 0;
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 800;
}

.moderation-item p {
  margin: 13px 0;
  color: #67584e;
  font-size: 0.84rem;
}

.moderation-actions {
  display: flex;
  gap: 8px;
}

.local-warning {
  margin-bottom: 20px;
  padding: 13px 16px;
  border: 1px solid rgba(177, 111, 50, 0.23);
  border-radius: 14px;
  background: rgba(225, 155, 78, 0.09);
  color: #795123;
  font-size: 0.78rem;
}

@media (max-width: 1260px) {
  .desktop-nav .nav-link:nth-child(4),
  .desktop-nav .nav-link:nth-child(7) {
    display: none;
  }

  .card-grid-4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pairing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cacao-progress {
    display: none;
  }
}

@media (max-width: 1050px) {
  :root {
    --header-height: 70px;
  }

  .desktop-nav,
  .studio-link span {
    display: none;
  }

  .mobile-menu-button {
    display: inline-grid;
  }

  .mobile-nav {
    position: fixed;
    inset: var(--header-height) 0 auto;
    display: block;
    max-height: 0;
    overflow: hidden;
    border-bottom: 1px solid transparent;
    background: rgba(15, 10, 8, 0.98);
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.25s, border-color 0.25s;
  }

  .mobile-nav.is-open {
    max-height: calc(100vh - var(--header-height));
    border-bottom-color: var(--line);
    opacity: 1;
    overflow-y: auto;
  }

  .mobile-nav nav {
    width: min(650px, calc(100% - 36px));
    margin: 0 auto;
    display: grid;
    padding: 22px 0 34px;
  }

  .mobile-nav .nav-link {
    min-height: 52px;
    justify-content: space-between;
    padding-inline: 5px;
    border-bottom: 1px solid var(--line);
    font-family: var(--serif);
    font-size: 1.15rem;
    font-weight: 500;
  }

  .hero-inner,
  .page-hero-inner,
  .section-heading,
  .manifesto-grid,
  .featured-layout,
  .detail-grid,
  .about-intro {
    grid-template-columns: 1fr;
  }

  .hero-aside {
    justify-self: start;
  }

  .page-hero-note {
    max-width: 620px;
  }

  .section-heading-actions {
    justify-content: flex-start;
  }

  .manifesto-visual {
    width: min(620px, 90%);
    margin-inline: auto;
  }

  .card-grid,
  .card-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .map-layout {
    grid-template-columns: 1fr;
  }

  .map-sidebar {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .map-list {
    max-height: 420px;
  }

  .detail-hero {
    grid-template-columns: 1fr;
  }

  .detail-image {
    min-height: 380px;
    max-height: 520px;
  }

  .explore-panel {
    grid-template-columns: 1fr;
  }

  .explore-controls {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .community-layout {
    grid-template-columns: 1fr;
  }

  .community-compose {
    position: static;
  }

  .studio-shell {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .studio-sidebar {
    padding-inline: 10px;
  }

  .studio-sidebar-head strong,
  .studio-sidebar-head small,
  .studio-mode,
  .studio-tab span,
  .studio-sidebar-actions .button span {
    display: none;
  }

  .studio-tab {
    justify-content: center;
    padding-inline: 0;
  }

  .studio-sidebar-actions .button {
    width: 46px;
    min-width: 46px;
    padding: 0;
  }

  .item-split {
    grid-template-columns: 280px minmax(0, 1fr);
  }
}

@media (max-width: 780px) {
  :root {
    --gutter: 20px;
  }

  body {
    font-size: 15px;
  }

  .announcement {
    justify-content: flex-start;
    overflow: hidden;
    white-space: nowrap;
  }

  .announcement span {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .header-inner {
    width: calc(100% - 24px);
    gap: 10px;
  }

  .brand-copy strong {
    font-size: 0.9rem;
  }

  .brand-copy small {
    display: none;
  }

  .studio-link {
    width: 42px;
    padding: 0;
    justify-content: center;
  }

  .hero {
    min-height: 780px;
  }

  .hero-inner {
    padding-top: 120px;
    gap: 34px;
  }

  .hero-copy h1 {
    font-size: clamp(3.7rem, 17vw, 6.2rem);
  }

  .hero-aside {
    max-width: none;
  }

  .scroll-cue {
    display: none;
  }

  .page-hero {
    min-height: 400px;
  }

  .page-hero-inner {
    padding-bottom: 45px;
    gap: 25px;
  }

  .page-hero h1 {
    font-size: clamp(3.2rem, 14vw, 5.3rem);
  }

  .card-grid,
  .card-grid-4,
  .pairing-grid,
  .variety-grid,
  .inventory-grid,
  .principle-grid,
  .inventory-summary,
  .backup-grid {
    grid-template-columns: 1fr;
  }

  .featured-media {
    min-height: 430px;
  }

  .manifesto-visual {
    min-height: 430px;
  }

  .manifesto-stat:nth-child(1) { left: 1%; }
  .manifesto-stat:nth-child(2) { right: 1%; }

  .filter-row {
    grid-template-columns: 1fr 1fr;
  }

  .filter-row .search-field {
    grid-column: span 2;
  }

  .filter-count {
    min-height: 48px;
  }

  .map-layout,
  .map-canvas {
    min-height: auto;
  }

  .world-map {
    min-height: 470px;
  }

  .map-caption {
    right: 16px;
  }

  .detail-facts {
    grid-template-columns: 1fr;
  }

  .detail-copy,
  .detail-body {
    padding: 28px 22px;
  }

  .detail-grid {
    gap: 35px;
  }

  .explore-result-card {
    grid-template-columns: 110px 1fr;
  }

  .explore-result-card img {
    width: 110px;
  }

  .match-score {
    grid-column: span 2;
    min-height: 70px;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .inventory-card {
    grid-template-columns: 120px 1fr;
  }

  .inventory-card-media {
    min-height: 220px;
  }

  .pairing-detail-grid {
    grid-template-columns: 1fr;
  }

  .cta-band-inner {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .footer-grid > div:first-child {
    grid-column: span 2;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .floating-controls {
    right: 13px;
    bottom: 14px;
  }

  .floating-button {
    width: 52px;
    height: 52px;
  }

  .modal-root {
    padding: 8px;
    place-items: end center;
  }

  .modal-panel {
    max-height: calc(100vh - 16px);
    border-radius: 24px 24px 15px 15px;
  }

  .search-overlay {
    padding: 18px 10px;
  }

  .search-dialog {
    border-radius: 20px;
  }

  .search-hints {
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .search-result {
    grid-template-columns: 48px 1fr auto;
    padding-inline: 14px;
  }

  .search-thumb {
    width: 48px;
    height: 48px;
  }

  .studio-shell {
    display: block;
  }

  .studio-sidebar {
    position: fixed;
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    z-index: 300;
    width: 100%;
    height: 66px;
    display: block;
    padding: 6px 8px;
    border-top: 1px solid var(--line);
    border-right: 0;
    overflow-x: auto;
  }

  .studio-sidebar-head,
  .studio-sidebar-actions {
    display: none;
  }

  .studio-tabs {
    display: flex;
    min-width: max-content;
    padding: 0;
    gap: 3px;
  }

  .studio-tab {
    width: 54px;
    min-height: 52px;
  }

  .studio-topbar {
    top: 0;
    padding-inline: 16px;
  }

  .studio-topbar p,
  .save-state {
    display: none;
  }

  .studio-content {
    padding: 18px 14px 90px;
  }

  .studio-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .form-grid,
  .form-grid-3,
  .studio-range-grid {
    grid-template-columns: 1fr;
  }

  .form-span-2,
  .form-span-3 {
    grid-column: span 1;
  }

  .item-split {
    display: block;
  }

  .item-list-card {
    position: static;
    max-height: none;
    margin-bottom: 18px;
  }

  .item-list {
    display: flex;
    max-height: none;
    overflow-x: auto;
    padding: 8px;
  }

  .item-row {
    min-width: 210px;
    border: 1px solid rgba(48, 27, 17, 0.09);
    border-radius: 12px;
  }

  .image-editor {
    grid-template-columns: 1fr;
  }

  .image-preview {
    max-width: 260px;
  }
}

@media (max-width: 500px) {
  .header-actions .icon-button:not(.mobile-menu-button) {
    display: none;
  }

  .button {
    width: 100%;
  }

  .hero-actions,
  .detail-actions,
  .studio-panel-actions,
  .editor-actions,
  .editor-actions > div {
    width: 100%;
  }

  .hero-actions > *,
  .detail-actions > *,
  .studio-panel-actions > *,
  .editor-actions > div > * {
    flex: 1;
  }

  .filter-row {
    grid-template-columns: 1fr;
  }

  .filter-row .search-field {
    grid-column: auto;
  }

  .inventory-card {
    grid-template-columns: 1fr;
  }

  .inventory-card-media {
    min-height: 180px;
  }

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

  .footer-grid > div:first-child {
    grid-column: auto;
  }

  .music-popover {
    position: fixed;
    right: 10px;
    bottom: 130px;
  }

  .search-input-wrap {
    padding-inline: 13px;
  }

  .search-result small {
    max-width: 190px;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .announcement,
  .floating-controls,
  .cacao-progress,
  .site-footer,
  .filters-shell,
  .button,
  .modal-close {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .main-content {
    min-height: auto;
  }
}

/* =========================================================
   2026 Trilingual refinement layer
   Preserves the original information architecture and motion.
   ========================================================= */

:root {
  --ink: #120c09;
  --ink-soft: #1b110d;
  --ink-raised: #281711;
  --cacao: #713022;
  --cacao-bright: #b45b37;
  --terracotta: #d18450;
  --amber: #e0ae67;
  --gold: #edcb94;
  --cream: #f6eee3;
  --cream-2: #eadccb;
  --paper: #fbf6ef;
  --muted: #bfad9d;
  --line: rgba(244, 220, 186, 0.17);
  --line-dark: rgba(42, 23, 15, 0.14);
  --serif: "Noto Serif TC", "Noto Serif JP", "Songti TC", "Yu Mincho", serif;
  --display-serif: "Cormorant Garamond", "Noto Serif TC", "Noto Serif JP", "Songti TC", serif;
  --sans: "Noto Sans TC", "Noto Sans JP", "PingFang TC", "Yu Gothic", system-ui, sans-serif;
  --header-height: 74px;
  --max: 1320px;
}

html[lang="en"] {
  --serif: "Cormorant Garamond", "Noto Serif TC", Georgia, serif;
}

html[lang="ja"] {
  --serif: "Noto Serif JP", "Yu Mincho", serif;
  --sans: "Noto Sans JP", "Yu Gothic", system-ui, sans-serif;
}

html.language-changing body {
  opacity: 0.72;
  transition: opacity 0.12s ease;
}

body {
  background:
    radial-gradient(circle at 88% -10%, rgba(178, 83, 48, 0.24), transparent 34rem),
    radial-gradient(circle at 6% 46%, rgba(100, 55, 35, 0.13), transparent 30rem),
    linear-gradient(180deg, #100a08 0, #17100c 42rem, #0d0907 100%);
  background-size: 110% 110%, 118% 118%, 100% 100%;
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 350;
  line-height: 1.76;
  letter-spacing: 0.008em;
  animation: cacaoAmbient 28s ease-in-out infinite alternate;
}

@keyframes cacaoAmbient {
  from { background-position: 100% 0, 0 42%, 0 0; }
  to { background-position: 92% 4%, 4% 48%, 0 0; }
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.018em;
  text-wrap: balance;
  font-feature-settings: "palt" 1, "kern" 1;
}

html[lang="en"] h1,
html[lang="en"] h2,
html[lang="en"] h3,
html[lang="en"] h4,
.brand-copy strong,
.about-signature,
.featured-index,
.cacao-percent {
  font-family: var(--display-serif);
}

p,
li,
input,
textarea,
select,
button {
  font-feature-settings: "palt" 1, "kern" 1;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.announcement {
  min-height: 31px;
  padding-block: 5px;
  background: linear-gradient(90deg, #6f2d22, #8e452d 48%, #6f2d22);
  color: #f6e5cf;
  font-size: 0.69rem;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.site-header {
  background: linear-gradient(180deg, rgba(13, 9, 7, 0.97), rgba(13, 9, 7, 0.78));
  backdrop-filter: blur(24px) saturate(125%);
}

.header-inner {
  width: min(calc(var(--max) + 96px), calc(100% - 30px));
  gap: 20px;
}

.brand {
  gap: 10px;
}

.brand img {
  width: 34px;
  height: 34px;
  filter: drop-shadow(0 8px 20px rgba(205, 121, 68, 0.16));
}

.brand-copy strong {
  font-size: 1.09rem;
  letter-spacing: 0.012em;
}

.brand-copy small {
  margin-top: 3px;
  color: #c3ad99;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.23em;
}

.desktop-nav {
  gap: 1px;
}

.nav-link {
  min-height: 42px;
  padding-inline: clamp(6px, 0.72vw, 12px);
  color: #d5c5b7;
  font-family: var(--serif);
  font-size: clamp(0.72rem, 0.72vw, 0.79rem);
  font-weight: 500;
  letter-spacing: 0.035em;
}

.nav-link::after {
  left: 11px;
  right: 11px;
  bottom: 4px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.header-actions {
  gap: 7px;
}

.language-switcher {
  position: relative;
  min-width: 53px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--gold);
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.language-switcher:hover {
  border-color: rgba(237, 203, 148, 0.48);
  background: rgba(237, 203, 148, 0.08);
}

.language-switcher select {
  width: 100%;
  height: 100%;
  appearance: none;
  border: 0;
  outline: 0;
  padding: 0 23px 0 13px;
  background: transparent;
  color: inherit;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  cursor: pointer;
}

.language-switcher select option {
  background: #1a100c;
  color: var(--cream);
}

.language-switcher > .icon {
  position: absolute;
  right: 8px;
  pointer-events: none;
}

.mobile-language {
  display: none;
}

.icon-button {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.028);
}

.hero {
  min-height: min(850px, calc(100vh - 31px));
}

.hero-media img {
  object-position: center 46%;
  animation: heroDrift 28s ease-in-out infinite alternate;
}

.hero-media::after {
  background:
    linear-gradient(90deg, rgba(9, 6, 5, 0.96) 0%, rgba(9, 6, 5, 0.72) 42%, rgba(9, 6, 5, 0.08) 80%),
    linear-gradient(0deg, #100a08 0%, rgba(16, 10, 8, 0.18) 43%, rgba(16, 10, 8, 0.18) 100%);
}

.hero-inner {
  padding: clamp(112px, 16vh, 175px) 0 clamp(66px, 9vh, 94px);
  grid-template-columns: minmax(0, 1.16fr) minmax(260px, 0.42fr);
  gap: clamp(34px, 5vw, 62px);
}

.hero-copy h1 {
  max-width: 940px;
  margin: 19px 0 19px;
  font-size: clamp(3.8rem, 7.15vw, 7.85rem);
  line-height: 0.97;
  letter-spacing: -0.045em;
}

.hero-copy h1 em {
  margin-top: 12px;
  color: #edc786;
  font-family: var(--display-serif);
  font-size: 0.48em;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.005em;
  line-height: 1.06;
}

html[lang="en"] .hero-copy h1 em,
html[lang="ja"] .hero-copy h1 em {
  font-size: 0.43em;
}

.hero-copy > p {
  max-width: 650px;
  color: #dfd0c2;
  font-size: clamp(0.95rem, 1.2vw, 1.12rem);
  line-height: 1.82;
}

.eyebrow {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
}

.hero-actions {
  margin-top: 28px;
}

.button {
  min-height: 46px;
  padding-inline: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.075em;
}

.button-accent {
  background: linear-gradient(135deg, #df9258, #bd623a);
  box-shadow: 0 14px 34px rgba(137, 61, 34, 0.22);
}

.hero-aside {
  max-width: 330px;
  padding: 21px 22px;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(39, 23, 16, 0.72), rgba(18, 11, 8, 0.54));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 24px 70px rgba(0, 0, 0, 0.22);
}

.hero-aside small {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.hero-aside strong {
  font-size: 1.58rem;
}

.scroll-cue {
  right: max(22px, calc((100vw - var(--max)) / 2 - 32px));
  font-size: 0.58rem;
  letter-spacing: 0.22em;
}

.page-hero {
  min-height: 405px;
}

.page-hero-inner {
  padding: clamp(86px, 11vw, 126px) 0 54px;
}

.page-hero h1 {
  font-size: clamp(3rem, 5.8vw, 6.25rem);
  letter-spacing: -0.035em;
}

.page-hero h1 span {
  margin-top: 5px;
  font-family: var(--display-serif);
  font-size: 0.68em;
}

.section {
  padding: clamp(68px, 8.3vw, 122px) 0;
}

.section-heading {
  margin-bottom: clamp(34px, 4.6vw, 58px);
}

.section-heading h2 {
  font-size: clamp(2.35rem, 4vw, 4.45rem);
}

.section-paper {
  background:
    radial-gradient(circle at 88% 16%, rgba(213, 164, 96, 0.12), transparent 26rem),
    var(--paper);
}

.manifesto-visual {
  min-height: 490px;
  border-radius: 38px;
  background: #5c281f url("../images/cacao-orbit.svg") center / cover no-repeat;
  box-shadow: 0 26px 70px rgba(54, 24, 16, 0.2);
}

.manifesto-visual::before,
.manifesto-visual::after {
  display: none;
}

.featured-layout {
  grid-template-columns: minmax(0, 1.02fr) minmax(330px, 0.72fr);
  gap: clamp(28px, 4.6vw, 62px);
}

.featured-media {
  min-height: 540px;
  border-radius: 28px;
  box-shadow: 0 28px 76px rgba(0, 0, 0, 0.26);
}

.featured-copy h3 {
  margin-block: 15px 12px;
  font-size: clamp(2.35rem, 3.75vw, 4.45rem);
}

.featured-origin,
.card-kicker {
  font-weight: 600;
  letter-spacing: 0.12em;
}

.card-grid {
  gap: 20px;
}

.cacao-card,
.variety-card,
.pairing-card,
.post-card,
.inventory-card,
.explore-result-card {
  border-radius: 21px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.044), rgba(255, 255, 255, 0.021));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.cacao-card:hover,
.variety-card:hover,
.pairing-card:hover,
.inventory-card:hover,
.explore-result-card:hover {
  transform: translateY(-5px);
  border-color: rgba(237, 203, 148, 0.34);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.27);
}

.cacao-card-media {
  aspect-ratio: 1.38;
}

.cacao-card-body {
  padding: 19px 20px 20px;
}

.cacao-card h3,
.inventory-card h3,
.explore-result-card h3 {
  margin-block: 10px 8px;
  font-size: clamp(1.42rem, 1.8vw, 1.92rem);
  line-height: 1.12;
}

.card-story {
  margin-top: 11px;
  font-size: 0.82rem;
  line-height: 1.68;
}

.tag {
  min-height: 27px;
  padding: 3px 9px;
  font-size: 0.68rem;
}

.filters-shell {
  top: calc(var(--header-height) + 14px);
  border-radius: 19px;
  background: rgba(20, 12, 9, 0.9);
}

.search-field input,
.select-field select,
.input-field input,
.input-field textarea,
.form-control {
  border-radius: 12px;
}

/* Refined cacao journey rail */
.cacao-progress {
  left: 17px;
  height: 354px;
  grid-template-columns: 12px 30px;
  grid-template-rows: 1fr auto;
  column-gap: 8px;
}

.progress-label {
  color: rgba(237, 203, 148, 0.55);
  font-size: 0.46rem;
  font-weight: 600;
  letter-spacing: 0.2em;
}

.progress-vine {
  position: relative;
  width: 30px;
  height: 304px;
  align-self: center;
}

.progress-vine-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.progress-vine-base,
.progress-vine-fill {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.progress-vine-base {
  stroke: rgba(237, 203, 148, 0.17);
  stroke-width: 1.25;
}

.progress-vine-fill {
  stroke: url(#none);
  stroke: #d99355;
  stroke-width: 1.8;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  filter: drop-shadow(0 0 5px rgba(224, 151, 84, 0.42));
  transition: stroke-dashoffset 0.12s linear;
}

.progress-leaf {
  fill: rgba(111, 133, 82, 0.16);
  stroke: rgba(174, 188, 126, 0.28);
  stroke-width: 0.8;
}

.progress-seeds circle {
  fill: #100a08;
  stroke: rgba(237, 203, 148, 0.5);
  stroke-width: 1.05;
}

.progress-pod {
  position: absolute;
  left: 50%;
  top: 3%;
  width: 25px;
  height: 38px;
  transform: translate(-50%, -50%);
  transition: top 0.12s linear;
  filter: drop-shadow(0 7px 12px rgba(0, 0, 0, 0.38));
}

.progress-pod svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.progress-pod-shell {
  fill: url(#railPod);
  stroke: rgba(255, 222, 163, 0.68);
  stroke-width: 1.25;
}

.progress-pod-rib {
  fill: none;
  stroke: rgba(255, 231, 188, 0.65);
  stroke-width: 1.05;
  stroke-linecap: round;
}

.progress-pod-leaf {
  fill: #536b45;
  stroke: rgba(214, 222, 171, 0.48);
  stroke-width: 0.8;
}

.progress-percent {
  grid-column: 2;
  color: rgba(237, 203, 148, 0.62);
  font-family: var(--display-serif);
  font-size: 0.68rem;
}

/* Studio multilingual fields */
.translation-card {
  overflow: hidden;
}

.translation-card > summary {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 20px;
  list-style: none;
  color: #3c2419;
  cursor: pointer;
}

.translation-card > summary::-webkit-details-marker {
  display: none;
}

.translation-card > summary span:first-child {
  display: grid;
  gap: 2px;
}

.translation-card > summary strong {
  font-family: var(--serif);
  font-size: 1.12rem;
}

.translation-card > summary small {
  color: #857266;
  font-size: 0.68rem;
}

.translation-card > summary > span:last-child {
  color: #9a5b38;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.translation-card[open] > summary {
  border-bottom: 1px solid rgba(48, 27, 17, 0.09);
}

.translation-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.translation-columns > section {
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(48, 27, 17, 0.08);
  border-radius: 16px;
  background: rgba(106, 63, 38, 0.025);
}

.translation-columns h4 {
  margin: 0 0 16px;
  color: #6d3d28;
  font-family: var(--display-serif);
  font-size: 1.2rem;
}

@media (max-width: 1180px) {
  .desktop-nav .nav-link {
    padding-inline: 6px;
    font-size: 0.68rem;
  }

  .brand-copy strong {
    font-size: 0.97rem;
  }

  .brand-copy small {
    letter-spacing: 0.16em;
  }
}

@media (max-width: 980px) {
  body {
    animation-duration: 34s;
  }

  .header-inner {
    width: calc(100% - 28px);
  }

  .header-actions > .language-switcher {
    display: none;
  }

  .mobile-language {
    display: block;
    padding: 10px 18px 20px;
  }

  .mobile-language .language-switcher {
    width: 100%;
    max-width: 160px;
  }

  .hero {
    min-height: 760px;
  }

  .hero-inner {
    padding-top: 120px;
  }

  .hero-copy h1 {
    font-size: clamp(3.55rem, 10vw, 6.4rem);
  }

  .featured-media {
    min-height: 430px;
  }

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

@media (max-width: 700px) {
  .announcement {
    padding-inline: 18px;
    font-size: 0.62rem;
    letter-spacing: 0.04em;
  }

  .hero {
    min-height: 720px;
  }

  .hero-media img {
    object-position: 61% center;
  }

  .hero-media::after {
    background:
      linear-gradient(90deg, rgba(9, 6, 5, 0.94), rgba(9, 6, 5, 0.6) 65%, rgba(9, 6, 5, 0.22)),
      linear-gradient(0deg, #100a08 0%, rgba(16, 10, 8, 0.14) 48%, rgba(16, 10, 8, 0.28));
  }

  .hero-inner {
    padding: 116px 0 62px;
  }

  .hero-copy h1 {
    font-size: clamp(3.2rem, 14vw, 5.1rem);
    line-height: 0.99;
  }

  .hero-copy h1 em {
    font-size: 0.45em;
    line-height: 1.1;
  }

  .hero-aside {
    max-width: none;
  }

  .page-hero {
    min-height: 350px;
  }

  .page-hero h1 {
    font-size: clamp(2.75rem, 12vw, 4.6rem);
  }

  .section {
    padding-block: 66px;
  }

  .manifesto-visual {
    min-height: 400px;
    border-radius: 28px;
  }

  .featured-media {
    min-height: 360px;
  }

  .cacao-progress {
    display: none;
  }
}

@media (max-width: 500px) {
  .brand img {
    width: 31px;
    height: 31px;
  }

  .brand-copy strong {
    font-size: 0.92rem;
  }

  .brand-copy small {
    display: block;
    font-size: 0.51rem;
  }

  .hero-copy h1 {
    font-size: clamp(2.95rem, 13.8vw, 4.35rem);
  }

  .button {
    min-height: 45px;
  }

  .translation-card > summary {
    align-items: flex-start;
    padding: 15px 16px;
  }

  .translation-columns {
    padding: 14px;
  }

  .translation-columns > section {
    padding: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body {
    animation: none !important;
  }
}

/* Keep the geometric cacao statistics within one calm visual field. */
.manifesto-stat:nth-child(1) { top: 10%; left: 5%; }
.manifesto-stat:nth-child(2) { right: 5%; top: 42%; }
.manifesto-stat:nth-child(3) { left: 7%; bottom: 6%; }

@media (max-width: 980px) {
  .mobile-nav.is-open {
    min-height: calc(100dvh - var(--header-height));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: linear-gradient(180deg, rgba(15, 10, 8, 0.995), rgba(21, 13, 10, 0.99));
  }

  body.menu-open .floating-controls {
    opacity: 0;
    pointer-events: none;
  }
}

@media (max-width: 980px) {
  .hero-inner,
  .featured-layout {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    width: 100%;
    max-width: 720px;
  }

  .hero-aside {
    justify-self: stretch;
  }
}


/* =========================================================
   Kinetic cacao visual layer
   Retains the original layout while restoring the large orb,
   floating lights and living cacao-arc composition.
   ========================================================= */

.hero-cosmos {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  display: block;
  border-radius: 50%;
  will-change: transform, opacity;
}

.hero-orb-large {
  width: clamp(250px, 32vw, 520px);
  aspect-ratio: 1;
  top: clamp(82px, 13vh, 150px);
  right: clamp(7%, 13vw, 18%);
  background:
    radial-gradient(circle at 38% 34%, rgba(241, 205, 161, 0.16), rgba(196, 123, 80, 0.11) 36%, rgba(113, 57, 40, 0.08) 64%, transparent 73%),
    rgba(222, 186, 151, 0.07);
  box-shadow:
    0 0 90px rgba(181, 98, 58, 0.12),
    inset 0 0 80px rgba(255, 226, 190, 0.035);
  opacity: 0.78;
  animation: heroOrbBreath 13s ease-in-out infinite alternate;
}

.hero-light {
  position: absolute;
  width: var(--size, 8px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(239, 199, 146, 0.56);
  box-shadow: 0 0 20px rgba(230, 151, 91, 0.32);
  opacity: var(--opacity, 0.7);
  animation: heroLightDrift var(--duration, 12s) ease-in-out var(--delay, 0s) infinite alternate;
}

.hero-light-1 { --size: 9px; --duration: 14s; --delay: -3s; left: 20%; top: 65%; }
.hero-light-2 { --size: 6px; --duration: 11s; --delay: -7s; left: 28%; top: 74%; }
.hero-light-3 { --size: 7px; --duration: 16s; --delay: -9s; left: 58%; top: 42%; }
.hero-light-4 { --size: 10px; --duration: 13s; --delay: -5s; right: 18%; top: 56%; }
.hero-light-5 { --size: 5px; --duration: 9s; --delay: -2s; right: 9%; top: 40%; }
.hero-light-6 { --size: 6px; --duration: 15s; --delay: -11s; right: 26%; bottom: 19%; }
.hero-light-7 { --size: 4px; --duration: 10s; --delay: -6s; left: 46%; bottom: 18%; }

@keyframes heroOrbBreath {
  0% { transform: translate3d(0, 0, 0) scale(0.96); opacity: 0.57; }
  48% { opacity: 0.82; }
  100% { transform: translate3d(2.5%, -2%, 0) scale(1.045); opacity: 0.7; }
}

@keyframes heroLightDrift {
  0% { transform: translate3d(-8px, 9px, 0) scale(0.78); opacity: 0.28; }
  45% { opacity: var(--opacity, 0.7); }
  100% { transform: translate3d(17px, -18px, 0) scale(1.14); opacity: 0.52; }
}

.hero-inner,
.scroll-cue {
  position: relative;
  z-index: 1;
}

.manifesto-visual {
  isolation: isolate;
  min-height: clamp(430px, 39vw, 560px);
  border-radius: 49% 51% 45% 55% / 58% 45% 55% 42%;
  background:
    radial-gradient(circle at 62% 25%, rgba(239, 193, 128, 0.96) 0 6.5%, transparent 6.8%),
    radial-gradient(ellipse at 47% 48%, #a84f32 0%, #702e22 43%, #351711 70%, #1b0e0a 100%);
  box-shadow:
    0 28px 80px rgba(43, 20, 12, 0.2),
    inset 0 0 90px rgba(250, 199, 132, 0.05);
  animation: manifestoShape 18s ease-in-out infinite alternate;
}

.manifesto-visual::before,
.manifesto-visual::after {
  content: none;
}

.manifesto-orbit-field {
  position: absolute;
  inset: 8%;
  z-index: -1;
  pointer-events: none;
}

.manifesto-orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44%;
  height: 82%;
  border: 1px solid rgba(247, 214, 172, 0.28);
  border-radius: 50%;
  transform-origin: center;
}

.orbit-one {
  transform: translate(-50%, -50%);
  animation: orbitSwayOne 15s ease-in-out infinite alternate;
}

.orbit-two {
  width: 76%;
  height: 43%;
  transform: translate(-50%, -50%) rotate(8deg);
  border-color: rgba(247, 214, 172, 0.23);
  animation: orbitSwayTwo 17s ease-in-out -5s infinite alternate;
}

.orbit-three {
  width: 38%;
  height: 88%;
  transform: translate(-50%, -50%) rotate(-20deg);
  border-color: rgba(247, 214, 172, 0.13);
  animation: orbitSwayThree 20s ease-in-out -8s infinite alternate;
}

.manifesto-core {
  position: absolute;
  left: 60%;
  top: 18%;
  width: clamp(48px, 6vw, 84px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(135deg, #f1c77e, #d49b55);
  box-shadow: 0 0 34px rgba(239, 183, 103, 0.22);
  animation: manifestoCoreFloat 10s ease-in-out infinite alternate;
}

.manifesto-spark {
  position: absolute;
  width: 6px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(245, 211, 165, 0.7);
  box-shadow: 0 0 18px rgba(239, 179, 104, 0.5);
}

.spark-one { left: 24%; top: 31%; animation: manifestoSpark 9s ease-in-out infinite alternate; }
.spark-two { right: 20%; bottom: 25%; animation: manifestoSpark 12s ease-in-out -4s infinite alternate-reverse; }

.manifesto-stat {
  z-index: 2;
  border-radius: 20px;
  background: rgba(19, 10, 7, 0.78);
  box-shadow: 0 16px 38px rgba(12, 6, 4, 0.22);
}

@keyframes manifestoShape {
  0% { border-radius: 49% 51% 45% 55% / 58% 45% 55% 42%; transform: translate3d(0, 0, 0); }
  100% { border-radius: 53% 47% 54% 46% / 46% 58% 42% 54%; transform: translate3d(0, -5px, 0); }
}

@keyframes orbitSwayOne {
  from { transform: translate(-50%, -50%) rotate(-4deg) scale(0.98); }
  to { transform: translate(-50%, -50%) rotate(6deg) scale(1.02); }
}

@keyframes orbitSwayTwo {
  from { transform: translate(-50%, -50%) rotate(2deg) scaleX(0.96); }
  to { transform: translate(-50%, -50%) rotate(14deg) scaleX(1.03); }
}

@keyframes orbitSwayThree {
  from { transform: translate(-50%, -50%) rotate(-24deg); }
  to { transform: translate(-50%, -50%) rotate(-14deg); }
}

@keyframes manifestoCoreFloat {
  from { transform: translate3d(-7px, 7px, 0) scale(0.95); }
  to { transform: translate3d(10px, -9px, 0) scale(1.05); }
}

@keyframes manifestoSpark {
  from { transform: translate3d(-4px, 7px, 0); opacity: 0.3; }
  to { transform: translate3d(13px, -12px, 0); opacity: 0.85; }
}

@media (max-width: 980px) {
  .hero-orb-large {
    width: clamp(220px, 48vw, 400px);
    right: -5%;
    top: 16%;
    opacity: 0.62;
  }

  .manifesto-visual {
    min-height: 430px;
  }
}

@media (max-width: 640px) {
  .hero-orb-large {
    width: 270px;
    right: -28%;
    top: 18%;
  }

  .hero-light-1,
  .hero-light-2,
  .hero-light-7 {
    display: none;
  }

  .manifesto-visual {
    min-height: 350px;
    border-radius: 47% 53% 49% 51% / 55% 44% 56% 45%;
  }

  .manifesto-stat {
    min-width: 118px;
    padding: 14px;
  }

  .manifesto-stat strong {
    font-size: 1.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-orb-large,
  .hero-light,
  .manifesto-visual,
  .manifesto-orbit,
  .manifesto-core,
  .manifesto-spark {
    animation: none !important;
  }
}
