:root {
  --ink: #f4f1ec;
  --ink-dim: rgba(244, 241, 236, .62);
  --ink-faint: rgba(244, 241, 236, .38);
  --line: rgba(255, 255, 255, .14);
  --glass: rgba(18, 18, 20, .38);
  --bg: #050506;
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.65, .05, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }

/* ---------- silk background ---------- */
#silk, .silk-fallback {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}
.silk-fallback {
  z-index: -1;
  background:
    radial-gradient(120% 60% at 20% 10%, #2a2a2e 0%, transparent 55%),
    radial-gradient(90% 50% at 80% 40%, #1b1b1e 0%, transparent 60%),
    linear-gradient(160deg, #111 0%, #050505 60%, #000 100%);
}
body::after { /* vignette */
  content: ''; position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 40%, transparent 40%, rgba(0,0,0,.65) 100%);
}

/* ---------- header ---------- */
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 32px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo img { height: 34px; width: auto; }
/* KA monogram — recreated from the wax-seal mark; swap for the vector logo when supplied */
.logo-mark {
  font-family: 'Bodoni Moda', var(--serif); font-weight: 400; font-size: 21px; line-height: 1;
  width: 42px; height: 42px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #2b2b2e, #0b0b0c 70%);
  box-shadow: inset 0 0 0 2px #050505, inset 0 0 0 3px rgba(255,255,255,.08), 0 2px 8px rgba(0,0,0,.6);
  color: #cfcac2;
}
.logo-mark span + span { margin-left: -.2em; }
.logo-text {
  white-space: nowrap;
  font-family: var(--serif); font-size: 15px; letter-spacing: .28em; text-transform: uppercase;
  line-height: 1.1; display: flex; flex-direction: column;
}
.logo-text small { font-size: 9px; letter-spacing: .5em; color: var(--ink-dim); margin-top: 3px; }
.top-nav { display: flex; gap: 28px; font-size: 12px; letter-spacing: .04em; }
.top-nav a { color: var(--ink-dim); transition: color .3s; }
.top-nav a:hover, .top-nav a[aria-current] { color: var(--ink); }

/* ---------- stage ---------- */
.stage {
  position: relative; z-index: 2;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 110px 24px 60px;
}
.title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(30px, 3.6vw, 52px); letter-spacing: .01em; text-align: center;
  opacity: 0; transform: translateY(14px); animation: rise 1.2s var(--ease) .2s forwards;
}
.subtitle {
  margin-top: 10px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-dim);
  text-align: center;
  opacity: 0; animation: rise 1.2s var(--ease) .45s forwards;
}
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- panels ---------- */
.panels {
  --h: min(64vh, 560px);
  --closed: 64px;
  --open: min(340px, 30vw);
  margin-top: 44px;
  display: flex; gap: 12px; height: var(--h);
}
.panel {
  position: relative; flex: 0 0 var(--closed);
  height: 100%; overflow: hidden; cursor: pointer;
  border-radius: 14px;
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 30px 60px -30px rgba(0,0,0,.8);
  transition: flex-basis .8s var(--ease), background .5s, border-color .5s;
  opacity: 0; transform: translateY(24px);
  animation: rise 1s var(--ease) forwards;
  outline: none;
}
.panel:hover { border-color: rgba(255,255,255,.26); }
.panel:focus-visible { border-color: var(--ink); }
.panel.is-open { flex-basis: var(--open); background: rgba(14,14,16,.6); }

.panel-label {
  position: absolute; top: 18px; left: 50%;
  writing-mode: vertical-rl;
  transform: translateX(-50%);
  font-size: 12px; letter-spacing: .08em; white-space: nowrap;
  color: var(--ink);
  transition: opacity .35s, left .8s var(--ease);
}
.panel.is-open .panel-label { opacity: 0; }

.panel-body {
  position: absolute; top: 0; left: 0; bottom: 0;
  width: var(--open);
  display: flex; flex-direction: column;
  opacity: 0; transition: opacity .4s;
  pointer-events: none;
}
.panel.is-open .panel-body { opacity: 1; transition: opacity .6s .3s; pointer-events: auto; }

.panel-img {
  flex: 0 0 58%; overflow: hidden; position: relative;
}
.panel-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scale(1.08); transition: transform 1.4s var(--ease);
}
.panel.is-open .panel-img img { transform: scale(1); }
.panel-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(10,10,12,.55));
}

.panel-text { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; min-height: 0; }
.panel-text h2 {
  font-family: var(--serif); font-weight: 500; font-size: 22px; line-height: 1.15; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.panel-text p {
  margin-top: 10px; font-size: 12px; line-height: 1.65; color: var(--ink-dim);
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.panel-cta {
  margin-top: auto; align-self: flex-start;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  padding-bottom: 3px; border-bottom: 1px solid var(--ink-faint);
  transition: border-color .3s, gap .3s;
  display: inline-flex; gap: 8px; align-items: center;
}
.panel-cta:hover { border-color: var(--ink); gap: 12px; }

.dots { display: none; }

/* ---------- mobile: swipeable slider ---------- */
@media (max-width: 760px) {
  .top { padding: 16px; }
  .logo-text { font-size: 11px; letter-spacing: .2em; white-space: nowrap; }
  .top-nav a:not(.nav-book) { display: none; }
  .logo-mark { width: 34px; height: 34px; font-size: 18px; }
  .top-nav { gap: 16px; font-size: 11px; }
  .stage { padding: 96px 0 40px; justify-content: flex-start; }
  .title, .subtitle { padding: 0 16px; }

  .panels {
    --h: 66vh; --open: 78vw;
    width: 100%; gap: 12px; padding: 0 11vw;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  }
  .panels::-webkit-scrollbar { display: none; }
  .panel, .panel.is-open { flex: 0 0 var(--open); scroll-snap-align: center; }
  .panel .panel-label { opacity: 0; }
  .panel .panel-body { opacity: 1; pointer-events: auto; }
  .panel .panel-img img { transform: none; }
  .panel-text h2 { white-space: normal; }

  .dots { display: flex; gap: 8px; margin-top: 20px; }
  .dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-faint); transition: background .3s, transform .3s; }
  .dots span.on { background: var(--ink); transform: scale(1.3); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.top-nav .nav-book {
  color: var(--ink); padding: 6px 14px; margin: -7px 0;
  border: 1px solid var(--line); border-radius: 999px;
  transition: background .3s, color .3s, border-color .3s;
}
.top-nav .nav-book:hover { background: var(--ink); color: #0b0b0c; border-color: var(--ink); }
