/* ============================================
   ManA — Maison des Mondes Africains
   Brutalist editorial — Mobile-first
   ============================================ */

:root {
  --bg: #f5f1ea;
  --bg-elev: #ece6db;
  --fg: #0a0a0a;
  --fg-dim: #5a5651;
  --rule: #0a0a0a;
  --accent: #c4502a;
  --paper: #ffffff;

  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: 20px;
  --hairline: 1px;

  /* Vertical rhythm tokens — used systematically */
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-5: 48px;
  --sp-6: 64px;
  --sp-7: 96px;
  --sp-8: 128px;

  /* Section vertical padding */
  --sec-y: 48px;
  /* Card internal padding */
  --card-p: 20px;
  /* Header height for offset calculations if needed */
  --hdr-h: 56px;
}

@media (min-width: 760px) {
  :root {
    --gutter: 28px;
    --sec-y: 72px;
    --card-p: 24px;
    --hdr-h: 56px;
  }
}
@media (min-width: 1100px) {
  :root {
    --gutter: 36px;
    --sec-y: 96px;
    --hdr-h: 96px;
  }
}
@media (min-width: 1440px) {
  :root { --gutter: 48px; --sec-y: 112px; }
}

[data-theme="dark"] {
  --bg: #0a0a0a;
  --bg-elev: #161513;
  --fg: #f5f1ea;
  --fg-dim: #8a857d;
  --rule: #f5f1ea;
  --paper: #161513;
}

[data-palette="bw"] {
  --bg: #ffffff;
  --bg-elev: #f4f4f4;
  --fg: #000000;
  --fg-dim: #6a6a6a;
  --rule: #000000;
  --accent: #ff3b1f;
  --paper: #ffffff;
}
[data-palette="bw"][data-theme="dark"] {
  --bg: #000000;
  --bg-elev: #141414;
  --fg: #ffffff;
  --fg-dim: #888888;
  --rule: #ffffff;
  --paper: #0a0a0a;
}
[data-palette="terracotta"] { --bg: #f5f1ea; --bg-elev: #ece6db; --fg: #1a1a1a; --fg-dim: #5a5651; --rule: #1a1a1a; --accent: #c4502a; --paper: #ffffff; }
[data-palette="ochre"] { --bg: #f3ecd9; --bg-elev: #e8dfc6; --fg: #1a1410; --fg-dim: #6b5e4a; --rule: #1a1410; --accent: #b87333; --paper: #faf6ec; }
[data-density="compact"] { --gutter: 14px; }
[data-density="comfy"] { --gutter: 28px; }
@media (min-width: 760px) {
  [data-density="compact"] { --gutter: 18px; }
  [data-density="comfy"] { --gutter: 40px; }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[style*="grid-template-columns"] > *,
.section-head > *,
.footer-top > *,
.fsmenu-body > *,
.event-hero > *,
.filters > * { min-width: 0; }
img, .placeholder-img { max-width: 100%; }
html, body { background: var(--bg); color: var(--fg); }
body {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

/* Typography */
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; }
.eyebrow { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; }
@media (min-width: 760px) { .eyebrow { font-size: 11px; } }

.display-xl { font-family: var(--serif); font-size: clamp(56px, 14vw, 240px); line-height: 0.88; letter-spacing: -0.03em; font-weight: 400; }
.display-l  { font-family: var(--serif); font-size: clamp(42px, 9vw, 140px); line-height: 0.92; letter-spacing: -0.02em; }
.display-m  { font-family: var(--serif); font-size: clamp(32px, 6vw, 84px);  line-height: 0.96; letter-spacing: -0.02em; }
.display-s  { font-family: var(--serif); font-size: clamp(24px, 3.5vw, 48px); line-height: 1.02; letter-spacing: -0.015em; }
.italic { font-style: italic; }

.container { padding-left: var(--gutter); padding-right: var(--gutter); }
.rule { border-top: var(--hairline) solid var(--rule); }
.rule-b { border-bottom: var(--hairline) solid var(--rule); }

/* ============================================
   Header (mobile-first)
   ============================================ */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: var(--hairline) solid var(--rule);
  font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
}
.header-top { display: none; }
.header-main {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  height: 56px;
  padding: 0 var(--gutter);
  gap: 12px;
}
.header-main-l { display: flex; align-items: center; gap: 12px; }
.header-main-r { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.header-nav { display: none; }

.burger {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 0;
}
.burger-icon {
  display: inline-flex; flex-direction: column; gap: 3px; width: 18px;
}
.burger-icon span {
  display: block; height: 1.5px; background: currentColor; width: 100%;
}
.burger-label { display: none; }

.logo { display: inline-flex; align-items: center; }
.logo-img {
  height: 22px; width: auto; display: block;
  filter: invert(1);
  transition: filter 0.2s ease;
}
[data-theme="dark"] .logo-img { filter: invert(0); }

.icon-only { font-size: 18px; padding: 4px 6px; }
.header-cta { padding: 8px 14px; font-size: 10px; }

.header .lang { display: inline-flex; gap: 2px; align-items: center; }
.header .lang span { padding: 2px 4px; cursor: pointer; }
.header .lang span.active { background: var(--fg); color: var(--bg); }
.header .sep { color: var(--fg-dim); }
.header .link { padding: 4px 0; transition: color 0.15s; }
.header .link:hover { color: var(--accent); }
.header .link.active { color: var(--accent); }
.header .link.active::after { content: " ●"; font-size: 8px; }

/* Tablet header */
@media (min-width: 760px) {
  .burger-label { display: inline; }
  .logo-img { height: 26px; }
}

/* Desktop header: utility bar + primary nav */
@media (min-width: 1100px) {
  .header-top {
    display: grid; grid-template-columns: 1fr auto; align-items: center;
    min-height: 32px; padding: 4px var(--gutter);
    border-bottom: var(--hairline) solid var(--rule);
    font-size: 10px; white-space: nowrap;
  }
  .header-top-l, .header-top-r { white-space: nowrap; }
  .header-top-r { display: flex; gap: 14px; align-items: center; flex-wrap: nowrap; }
  .header-top-r .link { white-space: nowrap; }
  .header-main {
    grid-template-columns: auto 1fr auto;
    height: 64px;
  }
  .header-main-l { gap: 24px; }
  .header-nav {
    display: flex; gap: 22px; justify-content: center;
    font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.07em;
    overflow: hidden;
  }
  .header-nav .link { white-space: nowrap; padding: 6px 0; }
}

/* On mobile, expose key actions inline */
@media (max-width: 1099px) {
  .lang-mobile { display: inline-flex; gap: 2px; align-items: center; font-family: var(--mono); font-size: 11px; }
  .lang-mobile span { padding: 2px 4px; cursor: pointer; }
  .lang-mobile span.active { background: var(--fg); color: var(--bg); }
}
@media (min-width: 1100px) {
  .lang-mobile { display: none; }
}

/* Marquee */
.marquee {
  height: 36px; overflow: hidden; display: flex; align-items: center;
  border-bottom: var(--hairline) solid var(--rule);
  background: var(--fg); color: var(--bg);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase;
  white-space: nowrap;
}
.marquee-track { display: inline-flex; gap: 48px; padding-left: 48px; animation: scrollx 40s linear infinite; }
@keyframes scrollx { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-track span { display: inline-flex; align-items: center; gap: 24px; }
.marquee-track .dotw { width: 5px; height: 5px; border-radius: 50%; background: var(--bg); }

/* Hero */
.hero {
  padding: var(--sp-5) var(--gutter) var(--sp-5);
  position: relative;
}
.hero h1 { font-family: var(--serif); font-weight: 400; }
.hero .meta {
  display: flex; flex-direction: column; gap: var(--sp-2);
  margin-bottom: var(--sp-5);
}
.hero .meta-l { max-width: 380px; }
.hero .meta-r { text-align: left; }
@media (min-width: 760px) {
  .hero { padding: var(--sp-7) var(--gutter) var(--sp-7); }
  .hero .meta {
    flex-direction: row; justify-content: space-between;
    gap: var(--sp-3);
    margin-bottom: var(--sp-7);
  }
  .hero .meta-r { text-align: right; }
}

/* Section head — more breathing room */
.section-head {
  display: grid; grid-template-columns: 1fr; align-items: end;
  padding: var(--sp-4) var(--gutter) var(--sp-3);
  gap: var(--sp-2);
  border-top: var(--hairline) solid var(--rule);
}
.section-head .num { display: none; }
.section-head .title { font-family: var(--serif); font-size: clamp(24px, 4.5vw, 60px); line-height: 1; letter-spacing: -0.02em; }
.section-head .right {
  font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em;
  display: flex; gap: var(--sp-2); align-items: center; flex-wrap: wrap;
}
@media (min-width: 900px) {
  .section-head {
    grid-template-columns: 80px 1fr auto;
    gap: var(--sp-3); padding: var(--sp-4) var(--gutter) var(--sp-4);
  }
  .section-head .num { display: block; font-family: var(--mono); font-size: 12px; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  border: 1px solid var(--rule);
  font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em;
  transition: all 0.18s ease;
  background: transparent;
  min-height: 44px;
}
.btn:hover { background: var(--fg); color: var(--bg); }
.btn-solid { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn-solid:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.btn-accent { background: var(--accent); color: var(--paper); border-color: var(--accent); }
.btn-accent:hover { filter: brightness(1.1); }

/* Pills / filters */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em;
  cursor: pointer; transition: all 0.15s;
  white-space: nowrap;
  min-height: 36px;
}
.pill:hover { background: var(--fg); color: var(--bg); }
.pill.active { background: var(--fg); color: var(--bg); }

/* Filters strip */
.filters {
  display: flex; flex-wrap: wrap; gap: var(--sp-1); padding: var(--sp-2) var(--gutter);
  border-bottom: var(--hairline) solid var(--rule);
  align-items: center;
}
.filters + .filters { border-top: none; padding-top: 0; padding-bottom: var(--sp-3); }
.filters.scroll-x {
  flex-wrap: nowrap; overflow-x: auto; padding-right: var(--gutter);
  scrollbar-width: none;
}
.filters.scroll-x::-webkit-scrollbar { display: none; }
.filters .label {
  font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em;
  margin-right: var(--sp-1); color: var(--fg-dim); flex-shrink: 0;
}
.filters .search {
  display: flex; align-items: center; gap: var(--sp-1);
  border: 1px solid var(--rule); padding: var(--sp-1) var(--sp-2); border-radius: 999px;
  flex: 1; min-width: 180px; max-width: 320px;
  margin-left: auto;
}
.filters .search input {
  border: none; background: transparent; font: inherit; color: inherit; outline: none;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; flex: 1;
}

/* Placeholder image */
.placeholder-img {
  width: 100%; height: 100%; background-image:
    repeating-linear-gradient(135deg, transparent 0 8px, rgba(0,0,0,0.04) 8px 9px);
  background-color: var(--bg-elev);
  display: flex; align-items: center; justify-content: center;
  color: var(--fg-dim); font-family: var(--mono); font-size: 10px;
  text-align: center; padding: 16px; letter-spacing: 0.08em; text-transform: uppercase;
}
[data-theme="dark"] .placeholder-img {
  background-image: repeating-linear-gradient(135deg, transparent 0 8px, rgba(255,255,255,0.04) 8px 9px);
}

/* Footer */
.footer {
  background: var(--fg); color: var(--bg);
  padding: var(--sp-7) var(--gutter) var(--sp-4);
  margin-top: var(--sec-y);
}
.footer-top {
  display: grid; grid-template-columns: 1fr; gap: var(--sp-5);
  padding-bottom: var(--sp-5); border-bottom: 1px solid var(--bg);
}
@media (min-width: 760px) { .footer-top { grid-template-columns: 1fr 1fr; gap: var(--sp-6); } }
@media (min-width: 1100px) {
  .footer-top { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
  .footer { padding: var(--sp-8) var(--gutter) var(--sp-4); }
}
.footer h4 { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: var(--sp-2); opacity: 0.6; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: var(--sp-1); font-size: 14px; }
.footer ul li:hover { color: var(--accent); cursor: pointer; }
.footer-big {
  font-family: var(--serif); font-size: clamp(48px, 12vw, 200px); line-height: 0.9; letter-spacing: -0.03em;
  padding: var(--sp-6) 0; text-align: center;
}
.footer-bot {
  display: flex; flex-direction: column; gap: var(--sp-2);
  padding-top: var(--sp-3); font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.6;
}
@media (min-width: 760px) { .footer-bot { flex-direction: row; justify-content: space-between; } }

/* Fullscreen menu */
.fsmenu {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg); color: var(--fg);
  display: flex; flex-direction: column;
  transform: translateY(-100%); transition: transform 0.55s cubic-bezier(0.7, 0, 0.2, 1);
}
.fsmenu.open { transform: translateY(0); }
.fsmenu-head {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 56px; padding: 0 var(--gutter);
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em;
}
.fsmenu-head-l { display: flex; align-items: center; gap: 12px; }
.fsmenu-head-l > span { display: none; }
@media (min-width: 760px) { .fsmenu-head-l > span { display: inline; } }
.fsmenu-body {
  flex: 1; display: grid; grid-template-columns: 1fr;
  overflow-y: auto;
}
@media (min-width: 900px) { .fsmenu-body { grid-template-columns: 1.6fr 1fr; overflow: hidden; } }
.fsmenu-nav {
  padding: 32px var(--gutter); display: flex; flex-direction: column; gap: 0;
  justify-content: center;
}
.fsmenu-nav a {
  display: grid; grid-template-columns: 36px 1fr auto;
  align-items: baseline; gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--fg-dim); transition: color 0.2s, transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: pointer;
}
.fsmenu-nav a .n { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; }
.fsmenu-nav a .label { font-family: var(--serif); font-size: clamp(32px, 7vw, 84px); line-height: 1; letter-spacing: -0.02em; color: var(--fg); }
.fsmenu-nav a .desc { display: none; font-family: var(--serif); font-size: 18px; line-height: 1.2; color: var(--fg-dim); }
.fsmenu-nav a .arrow { font-family: var(--sans); font-size: 24px; transition: transform 0.3s; }
.fsmenu-nav a:hover { color: var(--fg); }
.fsmenu-nav a:hover .label { font-style: italic; }
.fsmenu-nav a:hover .arrow { transform: translateX(8px); }
@media (min-width: 760px) {
  .fsmenu-nav a { grid-template-columns: 56px 1fr 1.4fr auto; padding: 20px 0; }
  .fsmenu-nav a .desc { display: block; }
}
.fsmenu-aside {
  background: var(--fg); color: var(--bg);
  padding: 32px var(--gutter); display: flex; flex-direction: column; gap: 32px;
  overflow-y: auto;
}
.fsmenu-aside .aside-feature h3 {
  font-family: var(--serif); font-size: clamp(24px, 3.5vw, 56px); line-height: 1.05; letter-spacing: -0.015em;
}
.fsmenu-aside .aside-secondary ul { list-style: none; padding: 0; }
.fsmenu-aside .aside-secondary li {
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.15);
  font-family: var(--serif); font-size: 18px; cursor: pointer;
}
.fsmenu-aside .aside-secondary li:hover { color: var(--accent); }
.fsmenu-aside .aside-auth { display: flex; gap: 8px; }
.fsmenu-aside .aside-auth .btn { justify-content: center; padding: 14px; font-size: 11px; }

/* Animations */
.fade-in { animation: fadeIn 0.6s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* Agenda rows */
.agenda-row {
  display: grid; grid-template-columns: 90px 1fr;
  align-items: center; gap: 12px;
  padding: 18px var(--gutter);
  border-top: 1px solid var(--rule);
  cursor: pointer; transition: background 0.2s, padding 0.2s;
  font-size: 14px;
}
.agenda-row:hover { background: var(--bg-elev); }
.agenda-row .date { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; }
.agenda-row .date b { display: block; font-family: var(--serif); font-size: 28px; line-height: 1; font-weight: 400; }
.agenda-row .kind, .agenda-row .place, .agenda-row .price, .agenda-row .speakers, .agenda-row .cta { display: none; }
.agenda-row .title { font-family: var(--serif); font-size: 22px; line-height: 1.1; letter-spacing: -0.015em; }
@media (min-width: 760px) {
  .agenda-row { grid-template-columns: 110px 1fr 160px 120px; padding: 22px var(--gutter); }
  .agenda-row .kind, .agenda-row .place { display: block; font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--fg-dim); }
  .agenda-row .title { font-size: 26px; }
}
@media (min-width: 1100px) {
  .agenda-row { grid-template-columns: 110px 90px 1fr 200px 200px 1fr 120px; }
  .agenda-row .price { display: block; font-family: var(--mono); font-size: 11px; text-transform: uppercase; }
  .agenda-row .speakers { display: block; font-size: 13px; color: var(--fg-dim); }
  .agenda-row .cta { display: block; text-align: right; }
  .agenda-row:hover { padding-left: calc(var(--gutter) + 8px); }
}

/* Video player */
.video-wrap { position: relative; aspect-ratio: 16/9; background: #000; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.video-wrap video { width: 100%; height: 100%; object-fit: cover; }
.video-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 16px;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, transparent 30%, transparent 60%, rgba(0,0,0,0.7) 100%);
  color: #fff; pointer-events: none;
}
.video-overlay > * { pointer-events: auto; }
.video-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(255,255,255,0.95); color: #000;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; pointer-events: auto; border: none; cursor: pointer;
}
.video-play:hover { transform: translate(-50%, -50%) scale(1.06); background: var(--accent); color: #fff; }
.video-play.playing { opacity: 0; pointer-events: none; }
@media (min-width: 760px) { .video-play { width: 96px; height: 96px; } .video-overlay { padding: 24px; } }
.video-controls {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em;
}
.video-progress { flex: 1; min-width: 100px; height: 2px; background: rgba(255,255,255,0.3); position: relative; cursor: pointer; }
.video-progress-fill { position: absolute; left: 0; top: 0; height: 100%; background: #fff; }
.video-progress:hover { height: 4px; }

/* Carousel */
.carousel { display: flex; overflow-x: auto; gap: 16px; padding: 24px var(--gutter) 32px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
.carousel > * { flex: 0 0 280px; scroll-snap-align: start; }

/* Event detail */
.event-hero {
  display: grid; grid-template-columns: 1fr;
  border-bottom: 1px solid var(--rule);
}
.event-hero-img { background: var(--bg-elev); aspect-ratio: 4/3; }
.event-hero-body { padding: 32px var(--gutter); display: flex; flex-direction: column; gap: 24px; }
@media (min-width: 900px) {
  .event-hero { grid-template-columns: 1fr 1fr; min-height: 80vh; }
  .event-hero-img { aspect-ratio: auto; }
  .event-hero-body { padding: 48px var(--gutter); justify-content: space-between; gap: 32px; }
}

/* Bigquote */
.bigquote {
  padding: var(--sp-6) var(--gutter);
  font-family: var(--serif); font-size: clamp(28px, 6vw, 96px); line-height: 1.05; letter-spacing: -0.02em;
  border-top: var(--hairline) solid var(--rule); border-bottom: var(--hairline) solid var(--rule);
  text-wrap: balance;
}
@media (min-width: 760px) { .bigquote { padding: var(--sp-7) var(--gutter); line-height: 1; } }
@media (min-width: 1100px) { .bigquote { padding: var(--sp-8) var(--gutter); } }

/* Selection */
::selection { background: var(--accent); color: var(--paper); }

/* Underline link */
.ulink { position: relative; display: inline-block; }
.ulink::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform-origin: left; transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
.ulink:hover::after { transform: scaleX(0); transform-origin: right; }

/* ============================================
   Hero mosaic — 4-card featured grid
   ============================================ */
.hero-mosaic {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
}
@media (min-width: 760px) {
  .hero-mosaic {
    grid-template-columns: 1.7fr 1fr;
    grid-template-areas:
      "A B"
      "A C"
      "D C";
    gap: var(--sp-3);
  }
  .hm-a { grid-area: A; }
  .hm-b { grid-area: B; }
  .hm-c { grid-area: C; }
  .hm-d { grid-area: D; }
}
@media (min-width: 1100px) {
  .hero-mosaic {
    grid-template-columns: 1.7fr 1fr 1fr;
    grid-template-areas:
      "A B C"
      "A D C";
    gap: var(--sp-2);
  }
}

.hm-card {
  position: relative;
  border: var(--hairline) solid var(--rule);
  background: var(--bg);
  cursor: pointer;
  display: flex; flex-direction: column;
  overflow: hidden;
  transition: background 0.2s;
}
.hm-card:hover { background: var(--bg-elev); }
.hm-card:hover .hm-media .placeholder-img { transform: scale(1.03); }
.hm-media {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg-elev);
}
.hm-media .placeholder-img { transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.hm-media.small { aspect-ratio: 16/9; }
@media (min-width: 760px) {
  .hm-a .hm-media { aspect-ratio: auto; flex: 1; min-height: 320px; }
  .hm-c .hm-media { aspect-ratio: 4/3; }
}
@media (min-width: 1100px) {
  .hm-a .hm-media { min-height: 420px; }
}

.hm-tag {
  position: absolute; top: var(--sp-2); left: var(--sp-2);
  font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em;
  background: var(--fg); color: var(--bg);
  padding: 6px 10px; border-radius: 999px;
}
.hm-dur {
  position: absolute; bottom: var(--sp-2); right: var(--sp-2);
  background: rgba(0,0,0,0.6); color: #fff;
  padding: 4px 8px;
  font-size: 10px;
}
.hm-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255,255,255,0.95); color: #000;
  display: flex; align-items: center; justify-content: center;
  border: none; cursor: pointer;
  transition: transform 0.25s, background 0.25s, color 0.25s;
}
.hm-card:hover .hm-play { transform: translate(-50%, -50%) scale(1.08); background: var(--accent); color: #fff; }
@media (min-width: 760px) { .hm-play { width: 84px; height: 84px; } }

.hm-body {
  padding: var(--sp-3);
  display: flex; flex-direction: column; gap: var(--sp-2);
  flex: 1;
}
.hm-title-xl {
  font-size: clamp(28px, 4.2vw, 52px);
  line-height: 1.02; letter-spacing: -0.02em;
}
.hm-title {
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.08; letter-spacing: -0.015em;
}
.hm-title-d {
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1; letter-spacing: -0.02em;
}
.hm-meta { color: var(--fg-dim); margin-top: auto; }

.hm-d {
  background: var(--fg); color: var(--bg);
  border-color: var(--fg);
}
.hm-d .hm-body { justify-content: center; }
.hm-d .hm-body .eyebrow { color: rgba(255,255,255,0.7); }

/* Cards generic */
.cat-hero { padding: var(--sp-6) var(--gutter) var(--sp-5); border-bottom: var(--hairline) solid var(--rule); }

/* ============================================
   Home — MansA Média video grid
   ============================================ */
.media-grid {
  display: grid;
  grid-template-columns: 1fr;
  padding: 0 var(--gutter) var(--sec-y);
}
@media (min-width: 600px) { .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .media-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.media-card {
  padding: var(--card-p);
  border-top: var(--hairline) solid var(--rule);
  cursor: pointer;
  display: flex; flex-direction: column; gap: var(--sp-2);
  transition: background 0.2s;
}
.media-card:hover { background: var(--bg-elev); }
@media (min-width: 600px) {
  .media-card:not(:nth-child(2n)) { border-right: var(--hairline) solid var(--rule); }
}
@media (min-width: 1100px) {
  .media-card:not(:nth-child(2n)) { border-right: none; }
  .media-card:not(:nth-child(4n)) { border-right: var(--hairline) solid var(--rule); }
  /* Featured video spans 2 cols × 2 rows */
  .media-card.featured { grid-column: span 2; grid-row: span 2; }
  .media-card.featured .media-thumb { aspect-ratio: auto; flex: 1; min-height: 360px; }
  .media-card.featured .media-title { font-size: clamp(28px, 3vw, 40px); }
}
.media-thumb {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg-elev);
}
.media-card .media-thumb .placeholder-img { transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.media-card:hover .placeholder-img { transform: scale(1.04); }
.media-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,0.95); color: #000;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.25s, background 0.25s, color 0.25s;
}
.media-card:hover .media-play { transform: translate(-50%, -50%) scale(1.1); background: var(--accent); color: #fff; }
.media-card.featured .media-play { width: 72px; height: 72px; }
.media-dur {
  position: absolute; bottom: 8px; right: 8px;
  background: rgba(0,0,0,0.65); color: #fff;
  padding: 3px 8px;
  font-size: 10px;
}
.media-tag {
  position: absolute; top: 8px; left: 8px;
  background: var(--fg); color: var(--bg);
  padding: 4px 10px; border-radius: 999px;
  font-size: 10px; letter-spacing: 0.1em;
}
.media-title {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.12; letter-spacing: -0.01em;
}

/* ============================================
   Home — Articles grid
   ============================================ */
.articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  padding: 0 var(--gutter) var(--sec-y);
  gap: 0;
}
@media (min-width: 760px) {
  .articles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .articles-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: auto;
  }
  .art-featured {
    grid-column: span 2; grid-row: span 2;
    display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  }
  .art-featured .art-img { aspect-ratio: auto; min-height: 100%; }
}
.art-card {
  border-top: var(--hairline) solid var(--rule);
  padding: var(--card-p);
  cursor: pointer;
  display: flex; flex-direction: column; gap: var(--sp-2);
  transition: background 0.2s;
}
.art-card:hover { background: var(--bg-elev); }
@media (min-width: 760px) {
  .art-card:not(:nth-child(2n)) { border-right: var(--hairline) solid var(--rule); }
}
@media (min-width: 1100px) {
  .art-card:not(:nth-child(2n)) { border-right: none; }
  .art-card:not(:last-child) { border-right: var(--hairline) solid var(--rule); }
}
.art-img { background: var(--bg-elev); aspect-ratio: 4/3; }
.art-img-small { background: var(--bg-elev); }
.art-img-small .placeholder-img { aspect-ratio: 4/3; }
.art-body { display: flex; flex-direction: column; gap: var(--sp-2); padding-top: var(--sp-2); }
.art-featured .art-body { padding: var(--card-p); justify-content: center; }
.art-title-xl {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.02; letter-spacing: -0.02em;
}
.art-title {
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.12; letter-spacing: -0.015em;
}

/* ============================================
   Home — MansA Radio podcasts
   ============================================ */
.radio-grid {
  display: grid;
  grid-template-columns: 1fr;
  padding: 0 var(--gutter) var(--sp-5);
}
@media (min-width: 760px) { .radio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .radio-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.radio-card {
  padding: var(--card-p);
  border-top: 1px solid rgba(255,255,255,0.2);
  cursor: pointer;
  display: flex; flex-direction: column; gap: var(--sp-3);
  transition: background 0.2s;
}
.radio-card:hover { background: rgba(255,255,255,0.05); }
@media (min-width: 760px) {
  .radio-card:not(:nth-child(2n)) { border-right: 1px solid rgba(255,255,255,0.2); }
}
@media (min-width: 1100px) {
  .radio-card:not(:nth-child(2n)) { border-right: none; }
  .radio-card:not(:nth-child(4n)) { border-right: 1px solid rgba(255,255,255,0.2); }
}
.radio-art {
  aspect-ratio: 1/1;
  background: var(--bg-elev);
  overflow: hidden;
}
.radio-body { display: flex; flex-direction: column; }
.radio-play {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--bg); background: var(--bg); color: var(--fg);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  font-size: 14px; cursor: pointer;
}
.radio-play:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.radio-title {
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.1; letter-spacing: -0.015em;
}
@media (min-width: 760px) { .cat-hero { padding: var(--sp-7) var(--gutter) var(--sp-5); } }
@media (min-width: 1100px) { .cat-hero { padding: var(--sp-8) var(--gutter) var(--sp-6); } }

.cat-grid {
  display: grid;
  grid-template-columns: 1fr;
  padding: 0 var(--gutter) var(--sec-y);
}
@media (min-width: 600px) { .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.cat-card {
  border-top: var(--hairline) solid var(--rule);
  padding: var(--card-p) var(--card-p);
  cursor: pointer;
  display: flex; flex-direction: column; gap: 0;
}
.cat-card:hover { background: var(--bg-elev); }
.cat-card .placeholder-img { aspect-ratio: 4/3; }
.cat-card h3 { margin-top: 8px; }

@media (min-width: 600px) {
  .cat-card:not(:nth-child(2n)) { border-right: 1px solid var(--rule); }
}
@media (min-width: 900px) {
  .cat-card:not(:nth-child(2n)) { border-right: none; }
  .cat-card:not(:nth-child(3n)) { border-right: 1px solid var(--rule); }
}
@media (min-width: 1280px) {
  .cat-card:not(:nth-child(3n)) { border-right: none; }
  .cat-card:not(:nth-child(4n)) { border-right: 1px solid var(--rule); }
}

.cat-row {
  display: grid; grid-template-columns: 90px 1fr;
  gap: 12px; padding: 18px var(--gutter); border-top: 1px solid var(--rule);
  cursor: pointer;
}
.cat-row:hover { background: var(--bg-elev); }
.cat-row .cat-row-date { color: var(--fg-dim); }
.cat-row .cat-row-tag, .cat-row .cat-row-kind, .cat-row .cat-row-cta { display: none; }
.cat-row .cat-row-title { font-size: 22px; line-height: 1.1; }
@media (min-width: 760px) {
  .cat-row { grid-template-columns: 110px 140px 1fr 180px 40px; padding: 22px var(--gutter); align-items: baseline; }
  .cat-row .cat-row-tag { display: block; color: var(--fg-dim); }
  .cat-row .cat-row-kind { display: block; color: var(--fg-dim); text-align: right; }
  .cat-row .cat-row-cta { display: block; text-align: right; }
  .cat-row .cat-row-title { font-size: 26px; }
}

/* Magazine page */
.mag-hero {
  display: grid; grid-template-columns: 1fr;
  padding: 48px var(--gutter);
  gap: 32px;
  align-items: center;
}
.mag-cover { background: var(--bg-elev); }
@media (min-width: 900px) {
  .mag-hero { grid-template-columns: 1.2fr 1fr; padding: 80px var(--gutter); gap: 64px; min-height: 80vh; }
}

.mag-toc {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--rule);
}
.mag-toc-row {
  display: grid; grid-template-columns: 50px 1fr;
  gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--rule);
  cursor: pointer; transition: padding 0.2s;
}
.mag-toc-row:hover { padding-left: 8px; }
.mag-toc-row .p { color: var(--fg-dim); }
.mag-toc-row .k, .mag-toc-row .by, .mag-toc-row .arrow { display: none; }
.mag-toc-row .title { font-family: var(--serif); font-size: 20px; line-height: 1.15; }
@media (min-width: 760px) {
  .mag-toc-row { grid-template-columns: 70px 110px 1fr 200px 40px; align-items: baseline; }
  .mag-toc-row .k { display: block; color: var(--fg-dim); }
  .mag-toc-row .by { display: block; color: var(--fg-dim); text-align: right; }
  .mag-toc-row .arrow { display: block; text-align: right; }
  .mag-toc-row .title { font-size: 28px; letter-spacing: -0.015em; }
}

/* Info grid (resources) */
.info-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 0;
  border-top: var(--hairline) solid var(--rule);
}
@media (min-width: 600px) { .info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .info-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.info-card {
  padding: var(--card-p);
  border-bottom: var(--hairline) solid var(--rule);
  cursor: pointer;
  display: flex; flex-direction: column;
  transition: background 0.2s, padding 0.2s;
}
.info-card:hover { background: var(--bg-elev); padding-left: calc(var(--card-p) + 8px); }
@media (min-width: 600px) {
  .info-card:not(:nth-child(2n)) { border-right: var(--hairline) solid var(--rule); }
}
@media (min-width: 1100px) {
  .info-card:not(:nth-child(2n)) { border-right: none; }
  .info-card:not(:nth-child(3n)) { border-right: var(--hairline) solid var(--rule); }
}

/* FAQ */
.faq-row {
  border-bottom: var(--hairline) solid var(--rule);
}
.faq-row summary {
  list-style: none;
  cursor: pointer;
  padding: var(--sp-4) var(--gutter);
  display: grid; grid-template-columns: 36px 1fr auto;
  align-items: baseline; gap: var(--sp-2);
  transition: background 0.2s;
}
.faq-row summary::-webkit-details-marker { display: none; }
.faq-row summary:hover { background: var(--bg-elev); }
.faq-row summary .mono { color: var(--fg-dim); font-family: var(--mono); font-size: 11px; }
.faq-row summary .serif { font-size: clamp(18px, 2vw, 28px); line-height: 1.15; }
.faq-row summary .faq-toggle { font-family: var(--mono); font-size: 18px; transition: transform 0.3s; }
.faq-row[open] summary .faq-toggle { transform: rotate(45deg); }
.faq-row p {
  padding: 0 var(--gutter) var(--sp-4) calc(var(--gutter) + 36px + var(--sp-2));
  font-family: var(--serif); font-size: 18px; line-height: 1.45; color: var(--fg-dim); max-width: 72ch;
}

/* Presse download cards */
.presse-row {
  display: flex; flex-direction: column;
  padding: var(--card-p);
  border: var(--hairline) solid var(--rule);
  cursor: pointer;
  transition: background 0.2s, transform 0.25s;
}
.presse-row:hover { background: var(--bg-elev); transform: translateY(-2px); }

/* ============================================
   User chip in header
   ============================================ */
.user-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em;
}
.user-chip-avatar {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--fg); color: var(--bg);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 9px; font-weight: 500; letter-spacing: 0;
}
.user-chip-avatar.small { width: 28px; height: 28px; font-size: 11px; }
.user-chip-mobile { padding: 4px; }

/* ============================================
   Auth pages
   ============================================ */
.auth-shell {
  display: grid;
  grid-template-columns: 1fr;
  min-height: calc(100vh - var(--hdr-h));
  border-top: var(--hairline) solid var(--rule);
}
@media (min-width: 900px) {
  .auth-shell { grid-template-columns: 1fr 1.1fr; }
}
.auth-side {
  background: var(--fg); color: var(--bg);
  padding: var(--sp-6) var(--gutter);
  display: flex; align-items: center;
}
.auth-side-inner { max-width: 460px; }
.auth-title {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
}
.auth-lead {
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.4;
  opacity: 0.85;
  max-width: 44ch;
}
.auth-side-foot { margin-top: var(--sp-6); padding-top: var(--sp-4); border-top: 1px solid rgba(255,255,255,0.18); }

.auth-form-wrap {
  padding: var(--sp-6) var(--gutter);
  display: flex; align-items: center; justify-content: center;
}
.auth-form { width: 100%; max-width: 460px; }
.auth-h {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: var(--sp-2); margin-bottom: var(--sp-5); flex-wrap: wrap;
}
.auth-steps {
  display: flex; align-items: center; gap: var(--sp-2);
  margin-bottom: var(--sp-4); font-size: 10px;
}
.auth-steps .step { color: var(--fg-dim); white-space: nowrap; }
.auth-steps .step.active { color: var(--fg); }
.auth-steps .step.done { color: var(--accent); }
.auth-steps .step-line { flex: 1; height: 1px; background: var(--rule); opacity: 0.3; min-width: 12px; }

.field {
  display: block; margin-bottom: var(--sp-3);
}
.field-row {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 8px;
}
.field-label {
  font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--fg-dim);
}
.field-hint {
  font-family: var(--mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--fg-dim);
}
.field input {
  width: 100%; border: none;
  border-bottom: 1px solid var(--rule);
  background: transparent; color: var(--fg);
  padding: 10px 0;
  font-family: var(--serif); font-size: 22px; line-height: 1.2;
  outline: none;
  transition: border-color 0.2s;
}
.field input:focus { border-bottom-color: var(--accent); border-bottom-width: 2px; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }

.auth-options {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: var(--sp-4); flex-wrap: wrap; gap: var(--sp-2);
}
.check {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-size: 16px;
  cursor: pointer; margin-bottom: 12px;
}
.check input { width: 16px; height: 16px; accent-color: var(--fg); }

.auth-cta {
  width: 100%; justify-content: center;
  padding: 18px 24px; font-size: 12px;
}
.auth-cta[disabled] { opacity: 0.4; cursor: not-allowed; }

.auth-divider {
  text-align: center; margin: var(--sp-4) 0;
  position: relative;
  font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--fg-dim);
}
.auth-divider::before, .auth-divider::after {
  content: ""; position: absolute; top: 50%; width: calc(50% - 30px); height: 1px; background: var(--rule); opacity: 0.4;
}
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }

.auth-social { display: flex; flex-direction: column; gap: var(--sp-2); }
.auth-social-btn { justify-content: center; padding: 14px 18px; }
.auth-social-btn span:first-child {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px;
  font-family: var(--serif); font-size: 14px;
  background: var(--fg); color: var(--bg); border-radius: 4px;
  margin-right: 8px;
}

.theme-pills {
  display: flex; flex-wrap: wrap; gap: var(--sp-1);
  margin-top: var(--sp-2);
}
.theme-pill { min-height: 40px; padding: 10px 16px; font-size: 11px; }

/* ============================================
   Account page
   ============================================ */
.account-hero {
  padding: var(--sp-6) var(--gutter);
  border-bottom: var(--hairline) solid var(--rule);
}
.account-hero-inner {
  display: flex; flex-direction: column; gap: var(--sp-3);
}
@media (min-width: 900px) {
  .account-hero-inner { flex-direction: row; align-items: flex-end; gap: var(--sp-5); }
  .account-hero-r { margin-left: auto; }
}
.account-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--fg); color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 28px; letter-spacing: 0;
  flex-shrink: 0;
}
@media (min-width: 900px) { .account-avatar { width: 96px; height: 96px; font-size: 32px; } }

.plan-badge {
  display: inline-block; padding: 8px 14px; border-radius: 999px;
  font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em;
  border: 1px solid var(--rule);
}
.plan-badge.plan-adherent { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.plan-badge.plan-mecene { background: var(--accent); color: var(--paper); border-color: var(--accent); }
.plan-badge.plan-current { background: var(--accent); color: var(--paper); border-color: var(--accent); }

.account-body {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .account-body { grid-template-columns: 240px 1fr; }
}
.account-nav {
  display: flex; flex-direction: row; overflow-x: auto;
  gap: 0;
  border-bottom: var(--hairline) solid var(--rule);
  scrollbar-width: none;
}
.account-nav::-webkit-scrollbar { display: none; }
@media (min-width: 900px) {
  .account-nav {
    flex-direction: column;
    border-right: var(--hairline) solid var(--rule);
    border-bottom: none;
    overflow: visible;
    position: sticky;
    top: var(--hdr-h);
    height: max-content;
  }
}
.account-nav-btn {
  flex: 0 0 auto;
  padding: 16px var(--gutter);
  text-align: left;
  font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--fg-dim);
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  border-right: var(--hairline) solid var(--rule);
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
@media (min-width: 900px) {
  .account-nav-btn {
    border-right: none;
    border-bottom: var(--hairline) solid var(--rule);
  }
}
.account-nav-btn:hover { background: var(--bg-elev); color: var(--fg); }
.account-nav-btn.active { color: var(--fg); background: var(--bg-elev); }
.account-badge { background: var(--fg); color: var(--bg); padding: 2px 8px; border-radius: 999px; font-size: 9px; }
.account-nav-sep { display: none; }
@media (min-width: 900px) { .account-nav-sep { display: block; height: var(--sp-4); border-bottom: var(--hairline) solid var(--rule); } }
.account-logout { color: var(--accent); }
.account-logout:hover { background: var(--accent); color: var(--paper); }

.account-content { padding: var(--sp-5) var(--gutter); min-width: 0; }
.account-section { max-width: 1100px; }
.account-h {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 56px); line-height: 1; letter-spacing: -0.02em;
  margin-bottom: var(--sp-5);
}
.account-stats {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0; margin-bottom: var(--sp-6);
  border-top: var(--hairline) solid var(--rule);
  border-bottom: var(--hairline) solid var(--rule);
}
@media (min-width: 760px) { .account-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.account-stat {
  text-align: left;
  padding: var(--sp-3) var(--card-p);
  display: flex; flex-direction: column; gap: 6px;
  border-right: var(--hairline) solid var(--rule);
  cursor: pointer;
  transition: background 0.2s;
}
.account-stat:nth-child(2n) { border-right: none; }
@media (min-width: 760px) {
  .account-stat:nth-child(2n) { border-right: var(--hairline) solid var(--rule); }
  .account-stat:nth-child(4n) { border-right: none; }
}
.account-stat:hover { background: var(--bg-elev); }
.account-stat .serif { font-size: clamp(36px, 4.5vw, 60px); line-height: 1; letter-spacing: -0.02em; }
.account-stat .mono { color: var(--fg-dim); }

.account-block { margin-bottom: var(--sp-6); }
.account-block-h {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: var(--sp-3); gap: var(--sp-2);
  border-bottom: var(--hairline) solid var(--rule); padding-bottom: var(--sp-2);
}
.account-block-h .serif { font-size: 24px; letter-spacing: -0.015em; }

.account-activity {
  list-style: none; padding: 0;
}
.account-activity li {
  display: grid; grid-template-columns: 80px 1fr; gap: var(--sp-2);
  padding: var(--sp-2) 0;
  border-bottom: var(--hairline) solid var(--rule);
  align-items: baseline;
  font-family: var(--serif); font-size: 18px;
}
.account-activity li .mono { color: var(--fg-dim); font-size: 11px; }

/* Tickets */
.ticket {
  display: grid;
  grid-template-columns: 80px 1fr 110px;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--card-p);
  border: var(--hairline) solid var(--rule);
  cursor: pointer;
  transition: background 0.2s;
  align-items: center;
}
.ticket:hover { background: var(--bg-elev); }
.ticket-date { display: flex; flex-direction: column; align-items: flex-start; }
.ticket-date .serif { font-size: 48px; line-height: 1; letter-spacing: -0.02em; }
.ticket-date .mono { font-size: 10px; color: var(--fg-dim); margin-top: 4px; }
.ticket-body h4 { font-family: var(--serif); font-size: 22px; line-height: 1.1; letter-spacing: -0.015em; margin: 4px 0; }
.ticket-side { text-align: right; }
.ticket-qr {
  display: grid; grid-template-columns: repeat(6, 8px); grid-template-rows: repeat(6, 8px);
  gap: 1px;
  background: var(--rule); padding: 2px;
  width: max-content; margin-left: auto;
}

/* Favorites grid */
.fav-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
  margin-top: var(--sp-3);
}
@media (min-width: 760px) { .fav-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .fav-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.fav-card {
  position: relative; border: var(--hairline) solid var(--rule);
  padding: var(--card-p); cursor: pointer;
  transition: background 0.2s, transform 0.25s;
}
.fav-card:hover { background: var(--bg-elev); transform: translateY(-2px); }
.fav-img { background: var(--bg-elev); margin-bottom: var(--sp-2); }
.fav-star {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg); color: var(--accent);
  border: 1px solid var(--rule);
  font-size: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}
.fav-star:hover { background: var(--accent); color: var(--paper); border-color: var(--accent); }
.fav-body { display: flex; flex-direction: column; gap: 6px; }

/* Plans */
.plans {
  display: grid; grid-template-columns: 1fr; gap: var(--sp-3);
}
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.plan-card {
  border: var(--hairline) solid var(--rule);
  padding: var(--card-p);
  display: flex; flex-direction: column;
}
.plan-card.current { background: var(--bg-elev); border-color: var(--fg); border-width: 2px; padding: calc(var(--card-p) - 1px); }
.plan-card-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.plan-perks { list-style: none; padding: 0; font-family: var(--serif); font-size: 17px; line-height: 1.7; flex: 1; }
.plan-perks li { padding: 4px 0; border-bottom: 1px solid var(--rule); }
.plan-perks li:last-child { border-bottom: none; }

/* Pref */
.pref-block {
  padding: var(--sp-4) 0;
  border-bottom: var(--hairline) solid var(--rule);
}
.pref-block:last-child { border-bottom: none; }
.pref-block h3 { font-size: 24px; letter-spacing: -0.015em; }
.row-toggle {
  display: flex; justify-content: space-between; align-items: center;
  gap: var(--sp-2); padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
}
.row-toggle:last-child { border-bottom: none; }
.row-toggle input[type="checkbox"] {
  width: 44px; height: 24px;
  appearance: none; background: var(--bg-elev);
  border-radius: 999px; position: relative; cursor: pointer;
  transition: background 0.2s;
  border: 1px solid var(--rule);
}
.row-toggle input[type="checkbox"]::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--fg); transition: transform 0.2s;
}
.row-toggle input[type="checkbox"]:checked { background: var(--accent); border-color: var(--accent); }
.row-toggle input[type="checkbox"]:checked::after { transform: translateX(20px); background: var(--paper); }

.empty-state {
  padding: var(--sp-6) var(--gutter);
  text-align: center;
  border: 1px dashed var(--rule);
  margin-top: var(--sp-3);
}
.empty-state .serif { font-size: 24px; color: var(--fg-dim); }

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: var(--gutter); left: var(--gutter); right: var(--gutter);
  z-index: 80;
  background: var(--bg); border: var(--hairline) solid var(--rule);
  padding: var(--sp-3) var(--sp-4);
  display: flex; flex-direction: column; gap: var(--sp-3);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  max-width: 640px; margin-left: auto;
  animation: slideUp 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes slideUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 760px) {
  .cookie-banner { flex-direction: row; align-items: center; }
}
.cookie-msg { flex: 1; }
.cookie-actions { display: flex; gap: var(--sp-1); flex-wrap: wrap; }
.cookie-actions .btn { padding: 10px 14px; font-size: 10px; min-height: 38px; }

.search-input {
  width: 100%; border: none;
  border-bottom: 2px solid var(--rule);
  background: transparent; color: var(--fg);
  font-size: clamp(28px, 6vw, 64px); line-height: 1.1;
  padding: 12px 0; outline: none;
}
.search-input::placeholder { color: var(--fg-dim); opacity: 0.5; }

/* Empty state */
.empty {
  grid-column: 1 / -1;
  padding: 80px var(--gutter); text-align: center; color: var(--fg-dim);
}

/* Misc */
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: inline-block; }

/* Generic responsive grid override */
@media (max-width: 760px) {
  main section > div[style*="repeat(4, 1fr)"],
  main section > div[style*="repeat(3, 1fr)"] { grid-template-columns: 1fr !important; }
  main section > div[style*="repeat(2, 1fr)"],
  main section > div[style*="1.1fr 1fr"],
  main section > div[style*="2fr 1fr"],
  main section > div[style*="1.4fr 1fr"],
  main section > div[style*="1.2fr 1fr"],
  main section > div[style*="1fr 1.2fr"],
  main section > div[style*="1fr 1.4fr"],
  main section > div[style*="1.5fr 1fr"] { grid-template-columns: 1fr !important; gap: 24px !important; }
  main section > div[style*="repeat(4, 1fr)"] > div,
  main section > div[style*="repeat(3, 1fr)"] > div {
    border-right: none !important;
    border-bottom: 1px solid var(--rule);
    padding-bottom: 16px !important;
  }
  main section > div[style*="gridTemplateColumns"] { gap: 16px !important; }
  .filters { padding: 12px var(--gutter); overflow-x: auto; flex-wrap: nowrap; }
  .filters::-webkit-scrollbar { display: none; }
  .filters .search { display: none; }
}
@media (min-width: 760px) and (max-width: 1100px) {
  main section > div[style*="repeat(4, 1fr)"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  main section > div[style*="2fr 1fr"] { grid-template-columns: 1fr !important; }
}
