/* ==========================================================================
   BoardBuddy Moxberry — Botanical Editorial Design System
   Palette: Forest #30483A · Plum #693A50 · Berry Rose #B66B78 · Cream #F6F0E6
            Pistachio #D9DEC3 · Espresso #28231F · Copper #B98563
   ========================================================================== */

:root {
  --forest: #30483A;
  --forest-deep: #22352A;
  --plum: #693A50;
  --plum-soft: #7D4862;
  --rose: #B66B78;
  --rose-light: #E7B7BF;
  --cream: #F6F0E6;
  --paper: #FBF8F2;
  --pistachio: #D9DEC3;
  --espresso: #28231F;
  --copper: #B98563;
  --line: rgba(105, 58, 80, .28);
  --line-strong: rgba(105, 58, 80, .55);
  --frost: rgba(251, 248, 242, .74);
  --shadow: 0 30px 60px -34px rgba(40, 35, 31, .55);
  --shadow-soft: 0 18px 40px -30px rgba(40, 35, 31, .5);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --step-0: clamp(1rem, .96rem + .2vw, 1.08rem);
  --wrap: min(1240px, 92vw);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--espresso);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Paper grain texture (named: paper-grain-noise) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 998;
  opacity: .08;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='paper-grain-noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23paper-grain-noise)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; height: auto; }
a { color: var(--plum); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--forest); }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 450; line-height: 1.06; letter-spacing: -.015em; margin: 0 0 .5em; color: inherit; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2rem; }
address { font-style: normal; }
.wrap { width: var(--wrap); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 1001; background: var(--forest); color: var(--cream); padding: .7rem 1.1rem; border-radius: 999px; }
.skip-link:focus { top: 1rem; color: var(--cream); }

/* ---------- Header: slim, simple, identical on every page, scrolls away with the page ---------- */
.site-header { position: relative; top: auto; z-index: 50; background: var(--cream); border-bottom: 1px solid var(--line); }
.header-strip { display: none; }
.header-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 56px; padding: .4rem 0; }
.brand { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--forest); font-family: var(--serif); font-size: 1.05rem; line-height: 1; letter-spacing: -.01em; white-space: nowrap; }
.brand em { font-style: italic; color: var(--plum); }
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand:hover { color: var(--forest); }
.site-nav ul { list-style: none; display: flex; flex-wrap: nowrap; align-items: center; gap: .1rem; margin: 0; padding: 0; }
.site-nav a { display: block; padding: .34rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 500; line-height: 1.3; color: var(--espresso); text-decoration: none; white-space: nowrap; transition: background .25s, color .25s; }
.site-nav a:hover { background: var(--pistachio); color: var(--forest); }
.site-nav a[aria-current="page"] { background: var(--forest); color: var(--cream); }

/* Three-dot (kebab) menu button */
.nav-toggle { display: none; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; border: 1px solid var(--line-strong); border-radius: 50%; background: transparent; color: var(--forest); font-size: 0; line-height: 0; cursor: pointer; transition: background .2s, color .2s; flex: none; }
.nav-toggle:hover { background: var(--pistachio); }
.nav-toggle__bars { display: block; width: 4px; height: 4px; border-radius: 50%; background: currentColor; box-shadow: 0 -7px 0 currentColor, 0 7px 0 currentColor; }
.nav-toggle[aria-expanded="true"] { background: var(--forest); color: var(--cream); border-color: var(--forest); }

@keyframes menuDrop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

@media (max-width: 1140px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; right: 0; top: calc(100% + .35rem); width: min(250px, 92vw); background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: .45rem; box-shadow: var(--shadow); z-index: 60; }
  .site-nav.is-open { display: block; animation: menuDrop .22s ease both; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: .1rem; }
  .site-nav a { font-size: .86rem; padding: .55rem .85rem; border-radius: 12px; }
}

/* ---------- Typography helpers ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: .65rem; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: var(--plum); margin-bottom: 1rem; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.on-dark .eyebrow { color: var(--pistachio); }
.display { font-size: clamp(2.6rem, 6.4vw, 5.6rem); line-height: .95; font-weight: 400; }
.h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); font-weight: 400; }
.h2 em, .display em { font-style: italic; color: var(--plum); }
.on-dark .h2 em, .on-dark .display em { color: var(--rose-light); }
.lede { font-size: clamp(1.06rem, 1.3vw, 1.24rem); line-height: 1.6; max-width: 40rem; }
.small { font-size: .85rem; }
.muted { color: rgba(40, 35, 31, .75); }
.on-dark { color: var(--cream); }
.on-dark a:not(.btn) { color: var(--rose-light); }

/* ---------- Buttons, chips, pills ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .85rem 1.35rem; border-radius: 999px; font: 600 .92rem/1.2 var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .25s, background .25s, color .25s, border-color .25s; text-align: center; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--forest); color: var(--cream); }
.btn--primary:hover { background: var(--plum); color: var(--cream); }
.btn--plum { background: var(--plum); color: var(--cream); }
.btn--plum:hover { background: var(--forest); color: var(--cream); }
.btn--ghost { border-color: var(--line-strong); color: var(--plum); background: transparent; }
.btn--ghost:hover { background: var(--plum); color: var(--cream); border-color: var(--plum); }
.btn--light { background: var(--cream); color: var(--forest); }
.btn--light:hover { background: var(--pistachio); color: var(--forest); }
.btn--outline-light { border-color: rgba(246, 240, 230, .55); color: var(--cream); background: rgba(246, 240, 230, .04); }
.btn--outline-light:hover { background: var(--cream); color: var(--forest); }
.btn--sm { padding: .66rem 1rem; font-size: .83rem; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.arrow-link { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; text-decoration: none; color: var(--plum); }
.arrow-link svg { width: 18px; height: 18px; transition: transform .25s; }
.arrow-link:hover svg { transform: translateX(4px); }

.chip { border: 1px solid var(--line-strong); background: transparent; padding: .48rem .95rem; border-radius: 999px; font: 500 .84rem var(--sans); cursor: pointer; color: var(--espresso); transition: background .2s, color .2s; }
.chip:hover { background: var(--pistachio); }
.chip[aria-pressed="true"] { background: var(--plum); color: var(--cream); border-color: var(--plum); }
.chip-row { display: flex; flex-wrap: wrap; gap: .45rem; }
.pill { display: inline-flex; align-items: center; gap: .35rem; padding: .32rem .75rem; border-radius: 999px; border: 1px solid var(--line); font-size: .74rem; font-weight: 600; background: var(--frost); color: var(--forest); }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 9vw, 8rem) 0; position: relative; }
.section--tight { padding: clamp(3rem, 6vw, 5rem) 0; }
.section--forest { background: var(--forest); color: var(--cream); }
.section--plum { background: var(--plum); color: var(--cream); }
.section--pistachio { background: var(--pistachio); }
.section--paper { background: var(--paper); }
.section-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2rem; align-items: end; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head p { margin: 0; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }

.reveal { transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.js .reveal { opacity: 0; transform: translateY(26px); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Moxberry Bloom hero
   ========================================================================== */
.hero { position: relative; min-height: min(100svh, 940px); background: var(--forest); color: var(--cream); overflow: hidden; isolation: isolate; display: flex; align-items: center; --px: 0; --py: 0; --scroll: 0; }
.hero__layers { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.blob { position: absolute; border-radius: 58% 42% 61% 39% / 47% 56% 44% 53%; will-change: transform, border-radius; }
.blob--plum { width: 64vw; height: 64vw; max-width: 900px; max-height: 900px; right: -16vw; top: -20vw; background: radial-gradient(circle at 35% 35%, var(--plum-soft), var(--plum) 62%); opacity: 0; animation: bloomIn 2.2s .1s cubic-bezier(.2, .7, .2, 1) forwards, morph 22s 2.3s ease-in-out infinite alternate; }
.blob--forest { width: 44vw; height: 44vw; left: -12vw; bottom: -18vw; background: radial-gradient(circle at 60% 40%, #3b5847, var(--forest-deep)); opacity: 0; animation: bloomIn 2.4s .3s cubic-bezier(.2, .7, .2, 1) forwards, morph 26s ease-in-out infinite alternate-reverse; }
.blob--cream { width: 22vw; height: 22vw; right: 30vw; bottom: -9vw; background: var(--cream); opacity: 0; animation: bloomInSoft 2.6s .6s cubic-bezier(.2, .7, .2, 1) forwards, morph 18s ease-in-out infinite alternate; }
.paper-layer { position: absolute; left: -5%; right: -5%; bottom: -2px; height: 32%; border-radius: 60% 40% 0 0 / 40% 55% 0 0; transform: translateY(100%); animation: paperRise 1.8s cubic-bezier(.2, .7, .2, 1) forwards; }
.paper-layer--1 { background: rgba(217, 222, 195, .1); animation-delay: .5s; height: 38%; }
.paper-layer--2 { background: rgba(185, 133, 99, .1); animation-delay: .7s; height: 26%; border-radius: 40% 60% 0 0 / 55% 40% 0 0; }
.liquid { position: absolute; width: 70vw; height: 70vw; left: -24vw; top: 8%; background: radial-gradient(closest-side, rgba(182, 107, 120, .5), rgba(105, 58, 80, .22) 55%, transparent 76%); filter: blur(24px); animation: liquid 26s ease-in-out infinite alternate; mix-blend-mode: screen; }
.hero-grain { position: absolute; inset: 0; opacity: .16; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='hero-grain-texture'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23hero-grain-texture)'/%3E%3C/svg%3E"); }

.hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 2rem; align-items: center; padding: clamp(4rem, 8vw, 6.5rem) 0 clamp(8rem, 12vw, 10rem); transform: translateY(calc(var(--scroll) * -70px)); opacity: calc(1 - var(--scroll) * .85); }
.hero__copy { position: relative; z-index: 3; }
.hero__kicker { opacity: 0; animation: labelIn 1s .3s forwards; }
.hero__title { font-size: clamp(2.9rem, 7.4vw, 6.9rem); line-height: .92; margin: 0 0 1.5rem; font-weight: 380; letter-spacing: -.025em; }
.hero__title em { font-style: italic; color: var(--rose-light); }
.mask { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.06em; }
.mask > span { display: inline-block; transform: translateY(115%); animation: rise 1.25s .55s cubic-bezier(.2, .75, .15, 1) forwards; }
.mask:nth-child(2) > span { animation-delay: .72s; }
.mask:nth-child(3) > span { animation-delay: .89s; }
.hero__desc { max-width: 34rem; font-size: clamp(1.05rem, 1.35vw, 1.22rem); color: rgba(246, 240, 230, .88); opacity: 0; animation: fadeUp 1s 1.35s forwards; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; opacity: 0; animation: fadeUp 1s 1.6s forwards; }

.hero__visual { position: relative; min-height: clamp(420px, 46vw, 600px); }
.hero__stage { position: absolute; inset: -4% -8% 8% -4%; perspective: 1100px; pointer-events: none; }
.stage__rig { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(calc(54deg + var(--py) * -7deg)) rotateZ(calc(-26deg + var(--px) * 8deg)); transition: transform .2s linear; }
.disc { position: absolute; left: 50%; top: 50%; border-radius: 50%; transform: translate(-50%, -50%); }
.disc--base { width: 88%; height: 88%; background: radial-gradient(circle at 40% 35%, #3f5c4b, #1f3127); box-shadow: 0 60px 90px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(246, 240, 230, .1); opacity: 0; animation: discIn 1.6s .3s cubic-bezier(.2, .7, .2, 1) forwards; }
.disc--ring { width: 74%; height: 74%; border: 1px dashed rgba(217, 222, 195, .4); transform: translate(-50%, -50%) translateZ(8px); opacity: 0; animation: labelIn 1.4s .8s forwards, spinFlat 60s linear infinite; }
.disc--plum { width: 46%; height: 46%; background: radial-gradient(circle at 38% 32%, #8c566f, var(--plum) 60%, #4f2b3c); transform: translate(-50%, -50%) translateZ(16px); box-shadow: 0 18px 30px rgba(0, 0, 0, .3); opacity: 0; animation: discIn 1.6s .55s cubic-bezier(.2, .7, .2, 1) forwards; }
.tile { position: absolute; left: var(--x); top: var(--y); width: 21%; aspect-ratio: 1; transform-style: preserve-3d; transform: translateZ(var(--z)) rotateZ(var(--rz)); opacity: 0; animation: emerge 1.7s var(--d) cubic-bezier(.2, .7, .2, 1) forwards; }
.tile i { position: absolute; inset: 0; border-radius: 24%; background: linear-gradient(150deg, #fdf9f1, #e8dcc8); box-shadow: 0 3px 0 #cdbda3, 0 26px 30px -8px rgba(0, 0, 0, .4); animation: bob 7s calc(var(--d) + 1.7s) ease-in-out infinite; }
.tile i::after { content: ""; position: absolute; inset: 18%; border-radius: 50% 50% 50% 8%; background: radial-gradient(circle at 30% 30%, var(--pistachio), #b9c19c); opacity: .9; }
.tile--berry i { background: linear-gradient(150deg, #d18e99, var(--rose)); box-shadow: 0 3px 0 #8f4f5b, 0 26px 30px -8px rgba(0, 0, 0, .4); }
.tile--berry i::after { background: radial-gradient(circle at 30% 30%, var(--cream), #ead9c5); border-radius: 50%; inset: 26%; }
.tile--moss i { background: linear-gradient(150deg, #e3e7cf, #bfc7a0); box-shadow: 0 3px 0 #98a07a, 0 26px 30px -8px rgba(0, 0, 0, .4); }
.tile--moss i::after { background: linear-gradient(135deg, var(--forest), #4a6655); border-radius: 8% 50% 8% 50%; }
.tile--copper i { background: linear-gradient(150deg, #d4a587, var(--copper)); box-shadow: 0 3px 0 #8d6247, 0 26px 30px -8px rgba(0, 0, 0, .4); }
.tile--copper i::after { background: radial-gradient(circle at 35% 30%, #fff6ea, var(--cream)); border-radius: 30%; inset: 30%; }
.orbit { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotate(var(--to)); animation: orbit 3.8s var(--d, 0s) cubic-bezier(.22, .8, .22, 1) both; }
.token { position: absolute; left: calc(50% + var(--r)); top: 50%; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); border-radius: 50%; background: radial-gradient(circle at 35% 30%, #e3b394, var(--copper) 55%, #8a5f45); box-shadow: 0 14px 18px rgba(0, 0, 0, .35); transform: translateZ(34px); animation: tokenFloat 6s ease-in-out infinite; }
.token--rose { background: radial-gradient(circle at 35% 30%, #e8b2bb, var(--rose) 55%, #86495a); }
.token--cream { background: radial-gradient(circle at 35% 30%, #fff, var(--cream) 50%, #d8c9b2); }
.token--pistachio { background: radial-gradient(circle at 35% 30%, #f1f3e4, var(--pistachio) 55%, #a7af8a); border-radius: 30%; }
.token--plum { background: radial-gradient(circle at 35% 30%, #a06a83, var(--plum) 55%, #43243a); border-radius: 50% 50% 50% 14%; }
.float-label { position: absolute; z-index: 2; padding: .45rem .9rem; border-radius: 999px; background: rgba(246, 240, 230, .1); border: 1px solid rgba(246, 240, 230, .3); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--cream); opacity: 0; animation: labelIn 1.2s var(--d) forwards, drift 9s var(--d) ease-in-out infinite alternate; pointer-events: none; }

.ring-card { position: absolute; z-index: 3; left: 0; bottom: 0; width: min(100%, 360px); border-radius: 26px; padding: 1.5px; overflow: hidden; box-shadow: 0 40px 60px -30px rgba(0, 0, 0, .6); opacity: 0; animation: fadeUp 1.1s 1.95s forwards; }
.ring-card::before { content: ""; position: absolute; inset: -80%; background: conic-gradient(from 0deg, transparent 0 52%, var(--rose) 68%, var(--copper) 80%, var(--pistachio) 88%, transparent 96%); animation: spin 7s linear infinite; }
.ring-card__inner { position: relative; border-radius: 25px; background: rgba(246, 240, 230, .96); color: var(--espresso); padding: 1rem; }
.ring-card__top { display: grid; grid-template-columns: 92px 1fr; gap: .9rem; align-items: center; margin-bottom: .8rem; }
.ring-card__top img { width: 92px; height: 92px; object-fit: cover; border-radius: 18px 18px 18px 46px; }
.ring-card__label { font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: var(--plum); margin: 0 0 .2rem; }
.ring-card__title { font-size: 1.45rem; margin: 0 0 .15rem; }
.ring-card__meta { font-size: .8rem; margin: 0; color: rgba(40, 35, 31, .8); }
.ring-card .game-card__actions { padding-top: 0; }

.hero__curve { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(60px, 9vw, 130px); z-index: 2; transform-origin: bottom; transform: scaleY(calc(1 + var(--scroll) * .9)); }

@keyframes bloomIn { from { opacity: 0; transform: scale(.55) rotate(-24deg); } to { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes bloomInSoft { from { opacity: 0; transform: scale(.4); } to { opacity: .14; transform: scale(1); } }
@keyframes morph { 0% { border-radius: 58% 42% 61% 39% / 47% 56% 44% 53%; } 50% { border-radius: 42% 58% 38% 62% / 60% 40% 60% 40%; } 100% { border-radius: 63% 37% 52% 48% / 41% 62% 38% 59%; } }
@keyframes liquid { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(32vw, -8vh) scale(1.15); } 100% { transform: translate(58vw, 12vh) scale(.92); } }
@keyframes paperRise { to { transform: translateY(0); } }
@keyframes rise { to { transform: translateY(0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes labelIn { to { opacity: 1; } }
@keyframes drift { from { transform: translate(0, 0); } to { transform: translate(10px, -14px); } }
@keyframes discIn { from { opacity: 0; scale: .7; } to { opacity: 1; scale: 1; } }
@keyframes emerge { from { opacity: 0; translate: 0 60px; scale: .6; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes bob { 50% { transform: translateZ(14px); } }
@keyframes tokenFloat { 50% { transform: translateZ(50px); } }
@keyframes orbit { from { transform: rotate(var(--from)); } to { transform: rotate(var(--to)); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spinFlat { to { transform: translate(-50%, -50%) translateZ(8px) rotate(360deg); } }
@keyframes cardIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; padding-top: 3.5rem; }
  .hero__visual { min-height: 520px; }
  .hero__stage { inset: -6% -10% 18% -10%; opacity: .9; }
  .ring-card { left: 50%; transform: translateX(-50%); animation-name: labelIn; }
}
@media (max-width: 520px) {
  .float-label:nth-of-type(n+3) { display: none; }
  .hero__visual { min-height: 480px; }
}

/* ---------- Sub-page hero ---------- */
.page-hero { position: relative; background: var(--forest); color: var(--cream); overflow: hidden; isolation: isolate; padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(5.5rem, 10vw, 8rem); }
.page-hero .blob--plum { width: 46vw; height: 46vw; right: -12vw; top: -16vw; opacity: .9; animation: morph 22s ease-in-out infinite alternate; }
.page-hero .blob--cream { width: 14vw; height: 14vw; right: 18vw; bottom: -5vw; opacity: .12; animation: morph 18s ease-in-out infinite alternate; }
.page-hero__inner { position: relative; z-index: 2; max-width: 50rem; }
.page-hero h1 { font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 380; line-height: .96; }
.page-hero h1 em { color: var(--rose-light); font-style: italic; }
.page-hero p { color: rgba(246, 240, 230, .88); }
.page-hero .hero__curve { transform: none; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0 0 1.4rem; display: flex; flex-wrap: wrap; gap: .4rem; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; opacity: .6; }
.breadcrumb a { color: var(--pistachio); text-decoration: none; }
.breadcrumb a:hover { color: var(--cream); text-decoration: underline; }

/* ---------- Search panel ---------- */
.search-panel { position: relative; z-index: 5; margin-top: clamp(-6rem, -8vw, -3rem); background: var(--frost); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: 36px 36px 36px 120px; padding: clamp(1.6rem, 4vw, 3rem); box-shadow: var(--shadow); }
.search-field { display: flex; align-items: center; gap: .6rem; background: var(--paper); border: 1px solid var(--line-strong); border-radius: 999px; padding: .4rem .45rem .4rem 1.2rem; }
.search-field svg { width: 22px; height: 22px; color: var(--plum); flex: none; }
.search-field input { flex: 1; min-width: 0; border: 0; background: transparent; font: 400 1.08rem var(--sans); color: var(--espresso); padding: .55rem 0; }
.search-field input:focus { outline: none; }
.search-field:focus-within { outline: 3px solid var(--copper); outline-offset: 2px; }
.search-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .8rem; align-items: center; margin: 1.2rem 0 0; }
.result-count { font-size: .85rem; font-weight: 600; color: var(--forest); margin: 0; }
.empty-state { padding: 2.5rem; border: 1px dashed var(--line-strong); border-radius: 28px; text-align: center; background: rgba(217, 222, 195, .25); }

/* ---------- Game cards ---------- */
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: clamp(1.2rem, 2.4vw, 2rem); }
.game-grid--home { margin-top: 2.2rem; }
@media (min-width: 1000px) {
  .game-grid--home .game-card:nth-child(4n+2) { transform: translateY(2rem); }
  .game-grid--home .game-card:nth-child(4n+2):hover { transform: translateY(1.6rem); }
}
.game-card { position: relative; display: flex; flex-direction: column; background: rgba(251, 248, 242, .82); border: 1px solid var(--line); border-radius: 28px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), var(--shadow-soft); transition: transform .35s, box-shadow .35s; animation: cardIn .55s ease both; }
.game-card:hover { transform: translateY(-4px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), var(--shadow); }
.game-card__media { position: relative; display: block; aspect-ratio: 4 / 3; margin: .65rem .65rem 0; border-radius: 20px 20px 80px 20px; overflow: hidden; background: var(--pistachio); }
.game-card:nth-child(3n+2) .game-card__media { border-radius: 80px 20px 20px 20px; }
.game-card:nth-child(3n) .game-card__media { border-radius: 20px 80px 20px 20px; }
.game-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.game-card:hover .game-card__media img { transform: scale(1.05); }
.game-card__type { position: absolute; left: .8rem; top: .8rem; background: rgba(246, 240, 230, .92); color: var(--forest); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; padding: .32rem .7rem; border-radius: 999px; }
.game-card:nth-child(3n+2) .game-card__type { left: auto; right: .8rem; }
.game-card:nth-child(3n) .game-card__type { top: auto; bottom: .8rem; }
.game-card__body { padding: 1.1rem 1.35rem 1.35rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.game-card__kicker { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--plum); margin: 0; }
.game-card__title { font-size: 1.55rem; margin: 0; }
.game-card__title a { color: var(--forest); text-decoration: none; }
.game-card__title a:hover { color: var(--plum); }
.game-card__text { font-size: .93rem; margin: 0; color: rgba(40, 35, 31, .82); }
.game-card__reason { font-size: .86rem; margin: 0; padding: .7rem .9rem; border-radius: 14px; background: rgba(105, 58, 80, .08); border-left: 3px solid var(--plum); }
.specs { list-style: none; padding: 0; margin: .15rem 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.specs li { display: inline-flex; align-items: center; gap: .35rem; font-size: .76rem; font-weight: 600; padding: .3rem .62rem; border-radius: 999px; background: rgba(217, 222, 195, .6); color: var(--forest); }
.specs svg { width: 15px; height: 15px; flex: none; }
.meter { display: inline-flex; gap: 3px; align-items: center; }
.meter i { width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--forest); }
.meter i.on { background: var(--forest); }
.game-card__actions { display: flex; gap: .5rem; margin-top: auto; padding-top: .55rem; flex-wrap: wrap; }
.game-card__actions .btn { flex: 1 1 130px; }
.compare-toggle { display: inline-flex; align-items: center; gap: .5rem; font-size: .82rem; font-weight: 600; cursor: pointer; color: var(--plum); }
.compare-toggle input { width: 18px; height: 18px; accent-color: var(--plum); }

/* ---------- Home editorial blocks ---------- */
.collections-feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.collage { position: relative; min-height: clamp(380px, 46vw, 560px); }
.collage img { position: absolute; object-fit: cover; box-shadow: var(--shadow); }
.collage__a { width: 74%; height: 80%; left: 0; top: 0; border-radius: 240px 240px 30px 30px; }
.collage__b { width: 54%; height: 50%; right: 0; bottom: 0; border-radius: 30px 160px 30px 30px; border: 8px solid var(--cream); }
.collage__badge { position: absolute; left: 50%; top: 52%; width: 120px; height: 120px; border-radius: 50%; background: var(--plum); color: var(--cream); display: grid; place-items: center; text-align: center; font-family: var(--serif); font-style: italic; font-size: 1.05rem; line-height: 1.1; padding: 1rem; transform: translate(-50%, -50%) rotate(-8deg); box-shadow: var(--shadow); }
.collection-list { list-style: none; padding: 0; margin: 0; }
.collection-list li { border-top: 1px solid var(--line); padding: 1.5rem 0; display: grid; grid-template-columns: auto 1fr auto; gap: 1.3rem; align-items: start; }
.collection-list li:last-child { border-bottom: 1px solid var(--line); }
.collection-list__num { font-family: var(--serif); font-style: italic; font-size: 2.1rem; line-height: 1; color: var(--copper); }
.collection-list h3 { font-size: 1.55rem; margin: 0 0 .3rem; }
.collection-list h3 a { color: var(--forest); text-decoration: none; }
.collection-list h3 a:hover { color: var(--plum); }
.collection-list p { margin: 0; font-size: .95rem; }
.circle-link { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--plum); transition: background .25s, color .25s; }
.circle-link svg { width: 20px; height: 20px; }
.circle-link:hover { background: var(--plum); color: var(--cream); }

.spotlight { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.organic-img { position: relative; border-radius: 48% 52% 40% 60% / 55% 45% 55% 45%; overflow: hidden; aspect-ratio: 1; box-shadow: var(--shadow); }
.organic-img img { width: 100%; height: 100%; object-fit: cover; }
.organic-frame { position: relative; }
.organic-frame::before { content: ""; position: absolute; inset: -18px; border: 1px solid rgba(231, 183, 191, .5); border-radius: 52% 48% 58% 42% / 45% 55% 45% 55%; }
.pull-quote { font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 2.6vw, 2.1rem); line-height: 1.25; margin: 1.5rem 0; padding-left: 1.4rem; border-left: 2px solid var(--rose); }
.fact-row { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.2rem 0 1.8rem; }
.fact-row .pill { background: rgba(246, 240, 230, .1); color: var(--cream); border-color: rgba(246, 240, 230, .3); }

.compare-panel { display: grid; grid-template-columns: 1fr auto 1fr; border: 1px solid var(--line); border-radius: 36px; background: var(--frost); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); overflow: hidden; box-shadow: var(--shadow-soft); }
.compare-panel__side { padding: clamp(1.6rem, 4vw, 3rem); }
.compare-panel__side h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: .3rem; }
.compare-panel__vs { display: grid; place-items: center; padding: 0 .4rem; position: relative; }
.compare-panel__vs::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: var(--line); }
.compare-panel__vs span { position: relative; width: 64px; height: 64px; border-radius: 50%; background: var(--plum); color: var(--cream); display: grid; place-items: center; font-family: var(--serif); font-style: italic; font-size: 1.3rem; }
.bar-row { display: grid; grid-template-columns: 120px 1fr; gap: .9rem; align-items: center; margin: .7rem 0; font-size: .84rem; font-weight: 600; }
.bar { height: 8px; border-radius: 99px; background: rgba(48, 72, 58, .14); overflow: hidden; }
.bar span { display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, var(--forest), var(--plum)); border-radius: 99px; }
@media (max-width: 820px) {
  .compare-panel { grid-template-columns: 1fr; }
  .compare-panel__vs { padding: .4rem 0; }
  .compare-panel__vs::before { top: 50%; bottom: auto; left: 0; right: 0; width: auto; height: 1px; }
}

.nights { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1rem, 2vw, 1.6rem); }
.night { position: relative; min-height: 380px; border-radius: 32px; overflow: hidden; grid-column: span 6; box-shadow: var(--shadow); }
.night:nth-child(1) { grid-column: span 7; border-radius: 32px 32px 32px 140px; }
.night:nth-child(2) { grid-column: span 5; }
.night:nth-child(3) { grid-column: span 5; }
.night:nth-child(4) { grid-column: span 7; border-radius: 32px 140px 32px 32px; }
.night img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.night__panel { position: absolute; left: 1rem; right: 1rem; bottom: 1rem; background: rgba(246, 240, 230, .93); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-radius: 22px; padding: 1.2rem 1.35rem; color: var(--espresso); }
.night:nth-child(1) .night__panel { left: 22%; }
.night__panel h3 { font-size: 1.45rem; margin: 0 0 .3rem; color: var(--forest); }
.night__panel p { font-size: .9rem; margin: 0 0 .6rem; }
@media (max-width: 860px) {
  .night, .night:nth-child(n) { grid-column: span 12; }
  .night:nth-child(1) .night__panel { left: 1rem; }
}

.article-rows { display: grid; gap: 0; }
.article-row { display: grid; grid-template-columns: 140px 1fr auto; gap: 1.6rem; align-items: center; padding: 1.4rem 0; border-top: 1px solid var(--line); text-decoration: none; color: inherit; }
.article-row:last-child { border-bottom: 1px solid var(--line); }
.article-row img { width: 140px; height: 100px; object-fit: cover; border-radius: 16px 16px 16px 50px; }
.article-row h3 { font-size: 1.45rem; margin: 0 0 .25rem; color: var(--forest); }
.article-row p { margin: 0; font-size: .93rem; color: rgba(40, 35, 31, .8); }
.article-row:hover h3 { color: var(--plum); }
@media (max-width: 640px) { .article-row { grid-template-columns: 90px 1fr; } .article-row img { width: 90px; height: 80px; } .article-row .circle-link { display: none; } }

.note { border: 1px solid var(--line); border-left: 4px solid var(--plum); border-radius: 18px 18px 18px 60px; padding: 1.5rem 1.7rem; background: rgba(217, 222, 195, .35); }
.note h2, .note h3 { font-size: 1.4rem; margin-bottom: .4rem; }
.note p:last-child { margin: 0; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.4rem, 3vw, 2.4rem); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.2rem, 2.5vw, 2rem); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) {
  .collections-feature, .spotlight, .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 620px) { .grid-3 { grid-template-columns: 1fr; } }

.panel { background: var(--frost); border: 1px solid var(--line); border-radius: 28px; padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--shadow-soft); }
.panel--organic { border-radius: 28px 28px 28px 90px; }
.panel--organic-alt { border-radius: 90px 28px 28px 28px; }
.panel h3 { font-size: 1.5rem; }
.icon-badge { width: 48px; height: 48px; border-radius: 16px 16px 16px 4px; background: var(--forest); color: var(--pistachio); display: grid; place-items: center; margin-bottom: 1rem; }
.icon-badge svg { width: 24px; height: 24px; }

/* ---------- Catalogue ---------- */
.catalog { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: clamp(1.6rem, 3vw, 2.8rem); align-items: start; }
.filters { background: var(--frost); border: 1px solid var(--line); border-radius: 28px 28px 28px 80px; padding: 1.6rem 1.5rem 2.4rem; }
.filters h2 { font-size: 1.5rem; }
.field { display: grid; gap: .45rem; margin-bottom: 1.15rem; border: 0; padding: 0; min-width: 0; }
.field > label, .field > legend, .field-label { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--plum); padding: 0; }
input[type="text"], input[type="search"], input[type="email"], select, textarea { font: inherit; padding: .78rem 1rem; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--paper); color: var(--espresso); width: 100%; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23693A50' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; background-size: 16px; padding-right: 2.4rem; }
textarea { min-height: 160px; resize: vertical; }
input[type="range"] { width: 100%; accent-color: var(--plum); }
.catalog-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.4rem; }
.catalog-bar .field { margin: 0; grid-template-columns: auto 200px; align-items: center; }
@media (max-width: 960px) { .catalog { grid-template-columns: 1fr; } .filters { border-radius: 28px; } }

.compare-tray { position: fixed; z-index: 900; left: 50%; bottom: 1rem; transform: translate(-50%, 160%); transition: transform .4s cubic-bezier(.2, .7, .2, 1); width: min(680px, 94vw); background: var(--espresso); color: var(--cream); border-radius: 24px; padding: 1rem 1.2rem; display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; justify-content: space-between; box-shadow: var(--shadow); border: 1px solid rgba(182, 107, 120, .5); }
.compare-tray.is-visible { transform: translate(-50%, 0); }
.compare-tray p { margin: 0; font-size: .9rem; }
.compare-tray .tray-actions { display: flex; gap: .5rem; }

/* ---------- Detail ---------- */
.detail-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.gallery__main { border-radius: 30px 30px 30px 120px; overflow: hidden; box-shadow: var(--shadow); background: var(--pistachio); }
.gallery__main img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery__thumbs { display: flex; gap: .7rem; margin-top: .9rem; flex-wrap: wrap; }
.thumb { border: 2px solid transparent; border-radius: 16px; overflow: hidden; padding: 0; width: 100px; cursor: pointer; background: none; transition: border-color .2s; }
.thumb img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.thumb[aria-current="true"] { border-color: var(--plum); }
.spec-list { display: grid; grid-template-columns: auto 1fr; gap: .7rem 1.4rem; margin: 1.4rem 0; }
.spec-list dt { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--plum); padding-top: .2rem; }
.spec-list dd { margin: 0; font-weight: 600; }
.score { display: grid; grid-template-columns: 170px 1fr 44px; gap: 1rem; align-items: center; margin: .75rem 0; font-size: .9rem; font-weight: 600; }
.score output { text-align: right; font-family: var(--serif); font-size: 1.1rem; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.check-list li { position: relative; padding-left: 1.9rem; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .35em; width: 1.1rem; height: 1.1rem; border-radius: 50% 50% 50% 20%; background: var(--pistachio); border: 1px solid var(--forest); }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.steps li { counter-increment: step; position: relative; padding-left: 3.2rem; }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: -.1rem; font-family: var(--serif); font-style: italic; font-size: 1.6rem; color: var(--copper); }
@media (max-width: 900px) { .detail-top { grid-template-columns: 1fr; } .score { grid-template-columns: 120px 1fr 40px; } }

/* ---------- Collections page ---------- */
.anchor-nav { display: flex; flex-wrap: wrap; gap: .5rem; padding: 1.2rem; border: 1px solid var(--line); border-radius: 999px; background: var(--frost); justify-content: center; }
.anchor-nav a { text-decoration: none; font-size: .86rem; font-weight: 600; padding: .5rem 1rem; border-radius: 999px; color: var(--forest); }
.anchor-nav a:hover { background: var(--pistachio); }
@media (max-width: 700px) { .anchor-nav { border-radius: 28px; justify-content: flex-start; } }
.collection { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(1.6rem, 4vw, 3.5rem); padding: clamp(3rem, 6vw, 5rem) 0; border-top: 1px solid var(--line); scroll-margin-top: 1rem; }
.collection:first-of-type { border-top: 0; }
.collection__intro h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
.collection__num { font-family: var(--serif); font-style: italic; font-size: 4rem; line-height: 1; color: var(--rose); display: block; margin-bottom: .5rem; }
.collection .game-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
@media (max-width: 900px) { .collection { grid-template-columns: 1fr; } }

/* ---------- Planner ---------- */
.planner { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: clamp(1.6rem, 4vw, 3rem); align-items: start; }
.seg { display: flex; flex-wrap: wrap; gap: .4rem; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg label { padding: .48rem .9rem; border: 1px solid var(--line-strong); border-radius: 999px; cursor: pointer; font-size: .84rem; font-weight: 500; transition: background .2s, color .2s; }
.seg label:hover { background: var(--pistachio); }
.seg input:checked + label { background: var(--forest); color: var(--cream); border-color: var(--forest); }
.seg input:focus-visible + label { outline: 3px solid var(--copper); outline-offset: 2px; }
.range-value { font-family: var(--serif); font-size: 1.6rem; color: var(--forest); }
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 1px; background: var(--line-strong); }
.timeline li { position: relative; padding: 0 0 1.6rem 2.6rem; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: var(--cream); border: 2px solid var(--plum); }
.timeline strong { display: block; font-family: var(--serif); font-size: 1.2rem; font-weight: 500; color: var(--forest); }
.host-check { display: grid; gap: .6rem; }
.host-check label { display: flex; gap: .7rem; align-items: flex-start; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); cursor: pointer; }
.host-check input { margin-top: .3rem; accent-color: var(--plum); width: 18px; height: 18px; flex: none; }
@media (max-width: 960px) { .planner { grid-template-columns: 1fr; } }

/* ---------- Comparison table ---------- */
.cmp-controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.6rem; }
@media (max-width: 760px) { .cmp-controls { grid-template-columns: 1fr; } }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 26px; background: var(--paper); }
.cmp-table { width: 100%; border-collapse: collapse; min-width: 620px; }
.cmp-table th, .cmp-table td { text-align: left; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .93rem; }
.cmp-table thead th { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; color: var(--forest); background: rgba(217, 222, 195, .4); }
.cmp-table tbody th { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--plum); width: 170px; }
.cmp-table tr:last-child td, .cmp-table tr:last-child th { border-bottom: 0; }
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin: 1.4rem 0; }
.versus > div { padding: 1.2rem 1.3rem; border-radius: 20px; background: var(--paper); border: 1px solid var(--line); }
.versus h4 { font-size: 1.2rem; margin: 0 0 .4rem; color: var(--forest); }
@media (max-width: 640px) { .versus { grid-template-columns: 1fr; } }

/* ---------- Prose / guides / legal ---------- */
.prose { max-width: 74ch; }
.prose h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-top: 2.6rem; scroll-margin-top: 1rem; }
.prose h3 { font-size: 1.35rem; margin-top: 1.8rem; }
.prose li { margin-bottom: .45rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.6rem; font-size: .92rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: .7rem .8rem; text-align: left; vertical-align: top; }
.prose th { background: rgba(217, 222, 195, .45); }
.with-toc { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.toc { border: 1px solid var(--line); border-radius: 24px 24px 24px 70px; padding: 1.4rem 1.4rem 2rem; background: var(--frost); }
.toc ol { margin: 0; padding-left: 1.2rem; font-size: .92rem; }
.toc li { margin: .4rem 0; }
@media (max-width: 900px) { .with-toc { grid-template-columns: 1fr; } }
.article-block { padding: clamp(2rem, 4vw, 3rem) 0; border-top: 1px solid var(--line); scroll-margin-top: 1rem; }
.article-block:first-child { border-top: 0; padding-top: 0; }
.article-block figure { margin: 1.4rem 0; }
.article-block figure img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: 26px 26px 26px 100px; }
.article-block figcaption { font-size: .82rem; margin-top: .5rem; color: rgba(40, 35, 31, .75); }

.gem { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; padding: clamp(3rem, 6vw, 5rem) 0; border-top: 1px solid var(--line); }
.gem:nth-of-type(even) .gem__media { order: 2; }
.gem__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 200px 200px 30px 30px; box-shadow: var(--shadow); }
.gem:nth-of-type(even) .gem__media img { border-radius: 30px 200px 30px 200px; }
@media (max-width: 860px) { .gem { grid-template-columns: 1fr; } .gem:nth-of-type(even) .gem__media { order: 0; } .gem__media img { aspect-ratio: 4 / 3; } }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.2rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .9rem; margin-bottom: 1.2rem; }
.consent input { margin-top: .3rem; width: 18px; height: 18px; accent-color: var(--plum); flex: none; }
.form-status { margin-top: 1rem; font-weight: 600; color: var(--forest); }
.form-status.is-error { color: var(--plum); }
.contact-card { display: grid; gap: 1.2rem; }
.contact-card dl { margin: 0; display: grid; gap: .9rem; }
.contact-card dt { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--plum); }
.contact-card dd { margin: 0; }

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; background: var(--espresso); color: rgba(246, 240, 230, .86); padding: clamp(4rem, 7vw, 6rem) 0 2rem; isolation: isolate; }
.site-footer::before { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -220px; z-index: -1; background: radial-gradient(circle, rgba(105, 58, 80, .55), transparent 70%); border-radius: 50%; }
.site-footer a, .site-footer .link-btn { color: var(--cream); text-decoration: none; }
.site-footer a:hover, .site-footer .link-btn:hover { color: var(--rose-light); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.35fr; gap: 2.4rem; }
.footer-title { font-family: var(--sans); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: var(--pistachio); margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; font-size: .93rem; }
.footer-brand .brand { color: var(--cream); margin-bottom: 1rem; font-size: 1.25rem; }
.footer-brand .brand__mark { width: 36px; height: 36px; }
.footer-brand .brand em { color: var(--rose-light); }
.footer-brand p { font-size: .93rem; max-width: 28rem; }
.footer-notices { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(246, 240, 230, .16); display: grid; gap: 1rem; font-size: .86rem; }
.footer-notices p { margin: 0; }
.notice--mandatory { border: 1px solid rgba(182, 107, 120, .55); border-radius: 18px 18px 18px 50px; padding: 1.2rem 1.4rem; background: rgba(105, 58, 80, .28); color: var(--cream); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid rgba(246, 240, 230, .12); font-size: .82rem; }
.footer-bottom p { margin: 0; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Cookie banner ---------- */
.cookie-banner { position: fixed; z-index: 1000; left: 1rem; bottom: 1rem; width: min(560px, calc(100vw - 2rem)); background: var(--cream); color: var(--espresso); border: 1px solid var(--line-strong); border-radius: 26px 26px 26px 70px; padding: 1.5rem 1.6rem 1.6rem; box-shadow: 0 30px 70px -20px rgba(40, 35, 31, .55); transform: translateY(140%); transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.cookie-banner.is-visible { transform: none; }
.cookie-banner h2 { font-size: 1.35rem; margin-bottom: .4rem; }
.cookie-banner p { font-size: .9rem; margin-bottom: 1rem; }
.cookie-banner .actions { display: flex; flex-wrap: wrap; gap: .5rem; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .mask > span { transform: none; }
  .hero__inner { transform: none; opacity: 1; }
  .js .reveal { opacity: 1; transform: none; }
  .ring-card::before { animation: none; }
}