/* =========================================================
   דני שוע · עולמות נפתחים — v2 "Bold editorial"
   Karantina (display) + Rubik (text) · Hebrew RTL first
   ========================================================= */

:root {
  color-scheme: light;

  --ink: #14110F;
  --night: #1A1613;
  --night-2: #231E1A;
  --cream: #F4ECDF;
  --paper: #FBF7F0;
  --line: #E2D6C4;
  --line-strong: #C9B9A2;
  --text: #2A2420;
  --text-2: #5C534A;
  --text-3: #8A7F72;

  --accent: #D04A27;        /* vermilion */
  --accent-dark: #A93A1C;
  --accent-soft: #F8DDD3;
  --gold: #E0B25B;
  --gold-soft: #F3E2BC;

  --on-dark: #F4ECDF;
  --on-dark-2: rgba(244, 236, 223, .72);
  --on-dark-line: rgba(244, 236, 223, .14);

  /* Worlds */
  --c-art: #A3312A;
  --c-logic: #1E4F86;
  --c-spirit: #B27A1A;
  --c-history: #2D5A50;
  --c-tech: #4F3FB8;

  --display: "Karantina", "Rubik", sans-serif;
  --sans: "Rubik", "Segoe UI", Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(80px, 10vw, 140px);
  --radius: 18px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow: 0 2px 4px rgba(20, 17, 15, .04), 0 18px 40px -18px rgba(20, 17, 15, .28);

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.7;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 700; line-height: .95; letter-spacing: 0; }
h3 { font-family: var(--sans); font-weight: 700; line-height: 1.25; }
p { margin: 0; }
strong { font-weight: 600; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
[id] { scroll-margin-top: 84px; }

.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.accent { color: var(--accent); }
.accent-gold { color: var(--gold); }

.skip-link {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 200;
  background: var(--accent); color: #fff; padding: 10px 16px; text-decoration: none; border-radius: 8px;
}
.skip-link:focus { top: 12px; }
.icon { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  --h: 50px;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: var(--h); padding: 0 1.5em;
  font: 600 1rem/1 var(--sans); text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent; border-radius: 999px; cursor: pointer; background: none; color: inherit;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-sm { --h: 42px; padding: 0 1.1em; font-size: .9375rem; }
.btn-lg { --h: 58px; padding: 0 1.9em; font-size: 1.0625rem; }

.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 24px -10px rgba(208, 74, 39, .75); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(169, 58, 28, .85); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); }
.btn-ghost-light { border-color: var(--on-dark-line); color: var(--on-dark); background: rgba(244, 236, 223, .04); }
.btn-ghost-light:hover { border-color: var(--on-dark); background: rgba(244, 236, 223, .1); }
.btn-line { border-color: var(--line-strong); color: var(--text-2); }
.btn-line:hover { border-color: var(--accent); color: var(--accent); }
.btn-light { background: var(--cream); color: var(--ink); }
.btn-light:hover { background: #fff; transform: translateY(-2px); }
.btn-line-light { border-color: rgba(244, 236, 223, .35); color: var(--on-dark); }
.btn-line-light:hover { border-color: var(--on-dark); background: rgba(244, 236, 223, .08); }

[data-shortlist] .sl-added { display: none; }
[data-shortlist][aria-pressed="true"] .sl-add { display: none; }
[data-shortlist][aria-pressed="true"] .sl-added { display: inline; }
[data-shortlist][aria-pressed="true"].btn-line { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-dark); }
[data-shortlist][aria-pressed="true"].btn-line-light { background: var(--cream); border-color: var(--cream); color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(20, 17, 15, .82); color: var(--on-dark);
  -webkit-backdrop-filter: saturate(1.3) blur(14px); backdrop-filter: saturate(1.3) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--on-dark-line); background: rgba(20, 17, 15, .94); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 74px; }

.brand { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 2.1rem; line-height: .9; }
.brand-tag { font-size: .7rem; font-weight: 500; letter-spacing: .25em; color: var(--gold); margin-top: 4px; }

.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav a:not(.btn) {
  position: relative; text-decoration: none; font-weight: 500; font-size: .98rem; color: var(--on-dark-2); padding: 6px 0; transition: color .2s;
}
.main-nav a:not(.btn)::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px; background: var(--gold); border-radius: 2px;
  transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease);
}
.main-nav a:not(.btn):hover { color: var(--on-dark); }
.main-nav a:not(.btn):hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none; width: 48px; height: 48px; border: 0; background: none; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px; margin-inline-end: -10px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--on-dark); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--on-dark);
  background:
    radial-gradient(56rem 36rem at 12% 30%, rgba(208, 74, 39, .28), transparent 62%),
    radial-gradient(46rem 30rem at 88% 0%, rgba(224, 178, 91, .16), transparent 60%),
    radial-gradient(40rem 30rem at 40% 110%, rgba(79, 63, 184, .22), transparent 60%),
    var(--ink);
  padding-block: clamp(48px, 7vw, 96px) 0;
  margin-top: -74px; padding-top: calc(74px + clamp(48px, 7vw, 96px));
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }

.eyebrow, .kicker {
  font-size: .82rem; font-weight: 600; letter-spacing: .18em; color: var(--accent);
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow { color: var(--gold); }
.eyebrow::before, .kicker::before { content: ""; width: 34px; height: 2px; background: currentColor; border-radius: 2px; flex: none; }
.kicker-light { color: var(--gold); }

.hero h1 { font-size: clamp(4.2rem, 9.4vw, 9.6rem); margin: 22px 0 26px; color: var(--on-dark); }
.h1-line { display: block; }
.hero h1 em {
  font-style: normal; color: transparent;
  background: linear-gradient(100deg, #F2C877 0%, #E0B25B 35%, #D04A27 100%);
  -webkit-background-clip: text; background-clip: text;
}
.hero-lead { font-size: clamp(1.1rem, .45vw + 1rem, 1.3rem); color: var(--on-dark-2); max-width: 34em; line-height: 1.75; }
.hero-lead strong { color: var(--on-dark); font-weight: 600; display: block; margin-top: 10px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* Collage */
.hero-collage { position: relative; height: clamp(420px, 44vw, 580px); }
.frame {
  position: absolute; margin: 0; background: var(--cream); padding: 10px 10px 40px; border-radius: 6px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(0, 0, 0, .1);
  transition: transform .8s var(--ease);
}
.frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%; border-radius: 2px; }
.frame figcaption {
  position: absolute; bottom: 6px; inset-inline: 0; text-align: center;
  font-family: var(--display); font-weight: 700; font-size: 1.6rem; color: var(--ink); line-height: 1.2;
}
.frame-a { width: 44%; top: 4%; right: 8%; transform: rotate(-5deg); z-index: 2; }
.frame-b { width: 46%; top: 22%; left: 6%; transform: rotate(4deg); z-index: 1; }
.hero-collage:hover .frame-a { transform: rotate(-2deg) translateY(-6px); }
.hero-collage:hover .frame-b { transform: rotate(2deg) translateY(-6px); }

.tile { position: absolute; z-index: 3; border-radius: 16px; box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .7); }
.tile-logic {
  bottom: 2%; right: 2%; background: var(--c-logic); color: #fff; padding: 16px 18px; display: flex; align-items: center; gap: 14px;
  font-weight: 600; font-size: .95rem; line-height: 1.35; transform: rotate(2deg);
  animation: floaty 7s ease-in-out infinite;
}
.tile-logic svg { width: 52px; height: 52px; flex: none; color: #CFE0F5; }
.tile-ai {
  top: 0; left: 4%; width: 92px; height: 92px; border-radius: 50%; background: var(--c-tech); color: #fff;
  display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700; font-size: 2.8rem;
  box-shadow: 0 0 0 10px rgba(79, 63, 184, .25), 0 24px 50px -20px rgba(0, 0, 0, .7);
  animation: floaty 6s ease-in-out -2s infinite;
}
.tile-quote {
  bottom: 14%; left: 0; background: var(--gold); color: var(--ink); padding: 14px 18px;
  font-family: var(--display); font-weight: 700; font-size: 1.9rem; line-height: .9; transform: rotate(-6deg);
  animation: floaty 8s ease-in-out -4s infinite;
}
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

/* Facts */
.hero-facts {
  position: relative; z-index: 1; margin: clamp(48px, 6vw, 80px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--on-dark-line);
}
.hero-facts div { padding: 26px 20px 30px; display: flex; align-items: baseline; gap: 12px; }
.hero-facts div + div { border-inline-start: 1px solid var(--on-dark-line); }
.hero-facts dt { font-family: var(--display); font-weight: 700; font-size: clamp(2.6rem, 3.4vw, 3.6rem); line-height: 1; color: var(--gold); }
.hero-facts dd { margin: 0; color: var(--on-dark-2); font-size: .95rem; line-height: 1.3; }

/* ---------- Marquee ---------- */
.marquee { background: var(--gold); color: var(--ink); overflow: hidden; border-block: 1px solid rgba(0, 0, 0, .08); }
.marquee-track { display: flex; align-items: center; gap: 28px; width: max-content; padding-block: 14px; animation: marquee 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font-family: var(--display); font-weight: 700; font-size: 2.1rem; line-height: 1; white-space: nowrap; }
.marquee i { font-style: normal; color: var(--accent); font-size: 1rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(50%); } }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); position: relative; }
.section-head { max-width: 900px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head h2 { font-size: clamp(3rem, 5.6vw, 5.4rem); margin-top: 14px; color: var(--ink); }
.section-sub { margin-top: 18px; font-size: 1.15rem; color: var(--text-2); max-width: 40em; }

/* Why */
.why { background: var(--paper); }
.duo {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(16px, 3vw, 40px);
  padding: clamp(28px, 4vw, 48px) clamp(20px, 4vw, 56px); margin-bottom: clamp(48px, 6vw, 80px);
  background: var(--cream); border-radius: 28px; position: relative; overflow: hidden;
}
.duo-side { display: flex; flex-direction: column; gap: 6px; text-align: center; }
.duo-word { font-family: var(--display); font-weight: 700; font-size: clamp(2.8rem, 6vw, 5.6rem); line-height: .9; color: var(--ink); }
.duo-side:first-child .duo-word { color: var(--c-logic); }
.duo-side:last-child .duo-word { color: var(--c-art); }
.duo-sub { font-size: .95rem; color: var(--text-2); letter-spacing: .06em; }
.duo-x {
  width: clamp(54px, 7vw, 84px); height: clamp(54px, 7vw, 84px); border-radius: 50%; background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 300;
  box-shadow: 0 0 0 10px rgba(208, 74, 39, .14);
}

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 48px); }
.pillar { position: relative; padding-top: 22px; border-top: 2px solid var(--ink); }
.pillar-no { font-family: var(--display); font-weight: 700; font-size: 3.4rem; line-height: 1; color: var(--accent); display: block; margin-bottom: 8px; }
.pillar h3 { font-size: 1.4rem; margin-bottom: 10px; color: var(--ink); }
.pillar p { color: var(--text-2); }

/* ---------- Worlds bento ---------- */
.worlds { background: var(--cream); }
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(230px, auto); gap: 18px; }
.world {
  --c: var(--accent);
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
  padding: clamp(22px, 2.6vw, 34px); border-radius: var(--radius); text-decoration: none; color: #fff;
  background: var(--c); grid-column: span 3;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.world::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(30rem 20rem at 0% 0%, rgba(255, 255, 255, .18), transparent 60%), linear-gradient(to top, rgba(0, 0, 0, .28), transparent 60%);
}
.world:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -26px var(--c); }
.w-art { --c: var(--c-art); grid-row: span 2; }
.w-logic { --c: var(--c-logic); }
.w-spirit { --c: var(--c-spirit); }
.w-history { --c: var(--c-history); grid-column: span 2; }
.w-tech { --c: var(--c-tech); grid-column: span 4; }
.w-art + .w-logic, .w-logic + .w-spirit { grid-column: span 3; }

.world-motif {
  position: absolute; top: 18px; left: 18px; width: 46%; max-width: 260px; aspect-ratio: 1; height: auto;
  color: rgba(255, 255, 255, .32); transition: transform 1s var(--ease), color .4s; z-index: -1;
}
.w-art .world-motif { width: 62%; max-width: 360px; top: 26px; }
.world:hover .world-motif { transform: rotate(-4deg) scale(1.06); color: rgba(255, 255, 255, .5); }
.world-no { font-family: var(--display); font-weight: 700; font-size: 1.6rem; line-height: 1; opacity: .7; margin-bottom: auto; }
.world-cat { font-size: .8rem; font-weight: 600; letter-spacing: .14em; opacity: .85; }
.world-name { font-family: var(--display); font-weight: 700; font-size: clamp(2.6rem, 3.6vw, 3.6rem); line-height: .95; }
.w-art .world-name { font-size: clamp(3.2rem, 5.4vw, 5.6rem); }
.world-desc { font-size: 1rem; line-height: 1.55; opacity: .9; max-width: 30em; }
.world-more {
  margin-top: 12px; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: .92rem; padding: 8px 16px; border-radius: 999px; background: rgba(255, 255, 255, .16);
  transition: background-color .3s, gap .3s var(--ease);
}
.world:hover .world-more { background: rgba(255, 255, 255, .28); gap: 14px; }

/* ---------- Spotlight ---------- */
.spotlight { background: var(--night); color: var(--on-dark); overflow: hidden; }
.spotlight .section-head h2 { color: var(--on-dark); }
.spotlight .container { position: relative; z-index: 1; }

.duel {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); border-radius: 24px; overflow: hidden;
  background: var(--night-2); border: 1px solid var(--on-dark-line);
}
.duel-stage { position: relative; display: flex; min-height: 440px; background: #0E0C0A; overflow: hidden; }
.duel-side { margin: 0; flex: 1; position: relative; overflow: hidden; transition: flex .7s var(--ease); }
.duel-side img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; filter: contrast(1.05); transition: transform 1.2s var(--ease); }
.duel-side::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 8, 6, .9), transparent 50%); }
.duel-side figcaption {
  position: absolute; bottom: 18px; inset-inline: 0; z-index: 2; text-align: center;
  font-family: var(--display); font-weight: 700; font-size: clamp(2.4rem, 3.6vw, 3.6rem); line-height: 1; color: var(--on-dark);
}
.duel-stage:hover .duel-side { flex: .8; }
.duel-stage .duel-side:hover { flex: 1.3; }
.duel-side:hover img { transform: scale(1.05); }
.duel-vs {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 3;
  width: 70px; height: 70px; border-radius: 50%; background: var(--accent); color: #fff;
  font-family: var(--display); font-weight: 700; font-size: 1.9rem; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 8px rgba(208, 74, 39, .25), 0 10px 30px rgba(0, 0, 0, .5); pointer-events: none;
}
.duel-body { padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.duel-body h3 { font-family: var(--display); font-size: clamp(2.6rem, 3.6vw, 3.6rem); line-height: .95; color: var(--on-dark); }
.duel-body > p:not(.tag) { color: var(--on-dark-2); font-size: 1.08rem; }
.duel-body strong { color: var(--on-dark); }
.duel-body .card-actions { margin-top: 10px; }

.tag { font-size: .8rem; font-weight: 600; letter-spacing: .12em; color: var(--gold); }
.tag-art { color: #F09A86; }
.card-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.spot-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.spot-card {
  position: relative; overflow: hidden; isolation: isolate; border-radius: 24px; padding: clamp(26px, 3.4vw, 44px);
  display: flex; flex-direction: column; gap: 14px; color: #fff; transition: transform .5s var(--ease);
}
.spot-card:hover { transform: translateY(-4px); }
.s-logic { background: linear-gradient(140deg, #255C99, var(--c-logic) 60%, #163B66); }
.s-tech { background: linear-gradient(140deg, #6152CC, var(--c-tech) 60%, #35298A); }
.spot-card .tag { color: rgba(255, 255, 255, .8); }
.spot-card h3 { font-family: var(--display); font-size: clamp(2.4rem, 3.2vw, 3.2rem); line-height: .95; }
.spot-card > p:not(.tag) { color: rgba(255, 255, 255, .85); }
.spot-card .card-actions { margin-top: auto; padding-top: 8px; }
.spot-motif { position: absolute; z-index: -1; left: -20px; top: -20px; width: 200px; height: 200px; color: rgba(255, 255, 255, .14); }

/* ---------- Catalog ---------- */
.catalog { background: var(--paper); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px;
  border: 1.5px solid var(--line-strong); border-radius: 999px; background: #fff;
  font: 500 .95rem/1 var(--sans); color: var(--text-2); cursor: pointer; transition: all .25s var(--ease);
}
.chip span { font-size: .78rem; color: var(--text-3); font-weight: 600; }
.chip .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.d-art { background: var(--c-art); } .d-logic { background: var(--c-logic); } .d-spirit { background: var(--c-spirit); }
.d-history { background: var(--c-history); } .d-tech { background: var(--c-tech); }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.chip.is-active span { color: rgba(244, 236, 223, .6); }
.filter-status { font-size: .9rem; color: var(--text-3); min-height: 1.6em; margin-bottom: 22px; }

.lecture-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.lecture {
  --c: var(--accent);
  background: #fff; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 1px 0 var(--line), 0 0 0 1px var(--line);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.lecture:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px var(--line), 0 28px 50px -24px rgba(20, 17, 15, .35); }
.lecture[data-cat="art"] { --c: var(--c-art); }
.lecture[data-cat="logic"] { --c: var(--c-logic); }
.lecture[data-cat="spirit"] { --c: var(--c-spirit); }
.lecture[data-cat="history"] { --c: var(--c-history); }
.lecture[data-cat="tech"] { --c: var(--c-tech); }
.lecture.is-hidden { display: none; }
.lecture.is-entering { animation: cardIn .45s var(--ease) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.lecture-band {
  position: relative; height: 112px; background: var(--c); color: #fff; overflow: hidden; isolation: isolate;
  display: flex; align-items: flex-end; justify-content: space-between; padding: 0 22px 14px;
}
.lecture-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(18rem 10rem at 100% 0%, rgba(255, 255, 255, .2), transparent 70%); }
.lecture-no { font-family: var(--display); font-weight: 700; font-size: 3.6rem; line-height: .8; }
.format {
  font-size: .78rem; font-weight: 600; letter-spacing: .08em; padding: 5px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .18); margin-bottom: 4px;
}
.band-motif {
  position: absolute; z-index: -1; left: 50%; top: 50%; width: 130px; height: 130px; translate: -50% -42%;
  color: rgba(255, 255, 255, .22); transition: transform .8s var(--ease);
}
.lecture:hover .band-motif { transform: rotate(-8deg) scale(1.12); }

.lecture-body { padding: 22px 24px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-cat { font-size: .8rem; font-weight: 600; letter-spacing: .1em; color: var(--c); }
.lecture h3 { font-size: 1.42rem; color: var(--ink); }
.lecture-body > p:not(.card-cat) { color: var(--text-2); font-size: .99rem; line-height: 1.7; }
.lecture-body strong { color: var(--text); }
.lecture-foot { margin-top: auto; padding-top: 16px; display: flex; gap: 8px; }
.lecture-foot .btn { flex: 1; }

/* ---------- About ---------- */
.about { background: var(--cream); overflow: hidden; }
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 104px); align-items: center; }
.about-photo { margin: 0; position: relative; }
.about-photo::before {
  content: ""; position: absolute; top: -22px; right: -22px; width: 72%; height: 72%; border-radius: 24px; z-index: 0;
  background: var(--accent);
}
.about-photo::after {
  content: ""; position: absolute; bottom: 40px; left: -26px; width: 120px; height: 120px; border-radius: 50%; z-index: 0;
  background: var(--gold);
}
.about-photo img {
  position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%;
  border-radius: 24px; box-shadow: 0 40px 70px -34px rgba(20, 17, 15, .55);
}
.about-photo figcaption {
  position: absolute; z-index: 2; bottom: -22px; right: 24px; background: var(--ink); color: var(--on-dark);
  padding: 12px 20px; border-radius: 14px; font-size: .9rem; display: flex; flex-direction: column; line-height: 1.3;
  box-shadow: 0 16px 30px -16px rgba(0, 0, 0, .6);
}
.about-photo figcaption span { font-family: var(--display); font-weight: 700; font-size: 1.9rem; line-height: 1; color: var(--gold); }
.about-copy h2 { font-size: clamp(3.4rem, 6.4vw, 6.4rem); margin: 14px 0 22px; color: var(--ink); }
.about-lead { font-size: clamp(1.2rem, .6vw + 1.05rem, 1.45rem); line-height: 1.6; color: var(--ink); font-weight: 500; margin-bottom: 22px; }
.about-lead strong { color: var(--accent); font-weight: 700; }
.about-copy > p:not(.kicker):not(.about-lead) { color: var(--text-2); margin-bottom: 14px; }

.creds { list-style: none; margin: 30px 0 4px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.creds li { background: var(--paper); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; line-height: 1.45; color: var(--text-2); font-size: .95rem; }
.cred-k { font-family: var(--display); font-weight: 700; font-size: 1.7rem; line-height: 1; color: var(--accent); }

/* ---------- Booking ---------- */
.book { background: var(--ink); color: var(--on-dark); overflow: hidden; }
.book::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(44rem 30rem at 100% 0%, rgba(208, 74, 39, .26), transparent 60%), radial-gradient(40rem 26rem at 0% 100%, rgba(224, 178, 91, .14), transparent 60%);
}
.book-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.book h2 { font-size: clamp(3.2rem, 5.6vw, 5.6rem); margin: 14px 0 18px; color: var(--on-dark); }
.book-sub { color: var(--on-dark-2); font-size: 1.12rem; max-width: 30em; }
.steps { list-style: none; margin: 40px 0 0; padding: 0; }
.steps li { display: flex; gap: 20px; padding: 22px 0; border-top: 1px solid var(--on-dark-line); }
.step-n {
  flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--gold); color: var(--ink);
  font-family: var(--display); font-weight: 700; font-size: 2rem; display: flex; align-items: center; justify-content: center;
}
.steps h3 { font-family: var(--display); font-size: 2.2rem; line-height: 1; color: var(--on-dark); margin-bottom: 4px; }
.steps p { color: var(--on-dark-2); }

.book-form { background: var(--paper); color: var(--text); border-radius: 24px; padding: clamp(24px, 3.5vw, 44px); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8); }
.form-title { font-family: var(--display); font-size: 2.6rem; line-height: 1; margin-bottom: 22px; color: var(--ink); }
.form-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-label { font-size: .9rem; font-weight: 600; color: var(--text-2); }
.book-form input, .book-form textarea {
  width: 100%; font: 400 1rem/1.5 var(--sans); color: var(--text); background: #fff;
  border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; transition: border-color .2s, box-shadow .2s;
}
.book-form input { min-height: 50px; }
.book-form textarea { resize: vertical; }
.book-form input:focus, .book-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(208, 74, 39, .14); }
.book-form input[aria-invalid="true"] { border-color: var(--accent); }
.book-form ::placeholder { color: #ADA295; }

.sl-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sl-chips li { display: inline-flex; align-items: center; gap: 4px; background: var(--accent-soft); color: var(--accent-dark); border-radius: 999px; padding: 4px 6px 4px 14px; font-size: .92rem; font-weight: 600; }
.sl-chips button { width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; font-size: 1.1rem; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.sl-chips button:hover { background: rgba(208, 74, 39, .14); }
.sl-empty { font-size: .95rem; color: var(--text-3); }
.sl-empty a { color: var(--accent); }
.book-form.has-list .sl-empty { display: none; }
.form-error { color: var(--accent-dark); font-weight: 600; font-size: .95rem; margin-bottom: 12px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.form-actions .btn { flex: 1 1 200px; }
.form-note { margin-top: 14px; font-size: .85rem; color: var(--text-3); }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--on-dark); padding-block: clamp(64px, 8vw, 100px) 32px; }
.footer-big { font-family: var(--display); font-weight: 700; font-size: clamp(3rem, 6.4vw, 6.4rem); line-height: .95; margin-bottom: clamp(36px, 5vw, 56px); }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.contact-card {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 16px; align-items: center;
  padding: 22px 24px; border-radius: var(--radius); background: var(--night-2); text-decoration: none;
  border: 1px solid var(--on-dark-line); transition: border-color .3s, transform .3s var(--ease), background-color .3s;
}
.contact-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.contact-card .icon { grid-row: span 2; width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--gold); color: var(--ink); }
.contact-label { font-size: .8rem; letter-spacing: .14em; color: var(--on-dark-2); }
.contact-value { font-size: 1.15rem; font-weight: 600; text-align: right; word-break: break-word; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--on-dark-line); font-size: .875rem; color: var(--on-dark-2);
}

/* ---------- Dock ---------- */
.dock { display: none; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .lecture-grid { grid-template-columns: repeat(2, 1fr); }
  .duel { grid-template-columns: 1fr; }
  .duel-stage { min-height: 380px; }
  .main-nav { gap: 22px; }
}

@media (max-width: 900px) {
  .hero-grid, .about-grid, .book-grid { grid-template-columns: 1fr; }
  .hero-collage { height: 400px; max-width: 520px; width: 100%; margin-inline: auto; }
  .hero-facts { grid-template-columns: repeat(2, 1fr); }
  .hero-facts div:nth-child(3) { border-inline-start: 0; }
  .hero-facts div:nth-child(n+3) { border-top: 1px solid var(--on-dark-line); }
  .pillars { grid-template-columns: 1fr; gap: 32px; }
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: minmax(210px, auto); }
  .world, .w-art + .w-logic, .w-logic + .w-spirit { grid-column: span 1; }
  .w-art { grid-column: 1 / -1; grid-row: auto; min-height: 320px; }
  .w-history, .w-tech { grid-column: span 1; }
  .spot-pair { grid-template-columns: 1fr; }
  .about-photo { max-width: 400px; margin-inline: auto; width: 100%; }
  .contact-grid { grid-template-columns: 1fr; }

  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); border-bottom: 1px solid var(--on-dark-line); padding: 8px var(--gutter) 24px;
    box-shadow: 0 30px 40px -30px rgba(0, 0, 0, .6);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s;
  }
  .main-nav.is-open { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
  .main-nav a:not(.btn) { font-family: var(--display); font-weight: 700; font-size: 2.2rem; line-height: 1.1; padding: 12px 0; border-bottom: 1px solid var(--on-dark-line); color: var(--on-dark); }
  .main-nav a:not(.btn)::after { display: none; }
  .nav-cta { margin-top: 20px; --h: 54px; font-size: 1.05rem; }

  .dock {
    display: flex; gap: 8px; position: fixed; bottom: 0; inset-inline: 0; z-index: 90;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(251, 247, 240, .95); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .35s var(--ease);
  }
  .dock.is-shown { transform: none; }
  .dock .btn { --h: 50px; }
  .dock-wa { flex: 1; }
  .dock-list { background: #fff; padding: 0 16px; }
  .dock-count { min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: var(--ink); color: var(--cream); font-size: .8rem; display: inline-flex; align-items: center; justify-content: center; }
  .dock-list.has-items .dock-count { background: var(--accent); }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .header-inner { min-height: 66px; }
  .hero { margin-top: -66px; padding-top: calc(66px + 40px); }
  .main-nav { inset-block-start: 66px; }
  .brand-name { font-size: 1.9rem; }
  .hero h1 { font-size: clamp(3.6rem, 17vw, 5rem); }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-collage { height: 330px; }
  .frame { padding: 7px 7px 30px; }
  .frame figcaption { font-size: 1.25rem; bottom: 4px; }
  .tile-ai { width: 70px; height: 70px; font-size: 2.1rem; }
  .tile-logic { padding: 10px 12px; font-size: .8rem; gap: 10px; }
  .tile-logic svg { width: 36px; height: 36px; }
  .tile-quote { font-size: 1.45rem; padding: 10px 14px; }
  .hero-facts div { flex-direction: column; gap: 4px; padding: 20px 14px 22px; }
  .marquee span { font-size: 1.7rem; }
  .duo { grid-template-columns: 1fr; padding: 28px 20px; gap: 14px; }
  .duo-x { margin-inline: auto; }
  .bento { grid-template-columns: 1fr; }
  .world, .w-art, .w-history, .w-tech, .w-art + .w-logic, .w-logic + .w-spirit { grid-column: 1 / -1; min-height: 220px; }
  .w-art { min-height: 280px; }
  .lecture-grid { grid-template-columns: 1fr; }
  .duel-stage { min-height: 300px; }
  .card-actions .btn { flex: 1 1 auto; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .creds { grid-template-columns: 1fr; }
  .about-photo { max-width: 300px; }
  .about-photo::before { top: -14px; right: -14px; }
  .about-photo::after { width: 80px; height: 80px; left: -14px; }
}
