/*
 * PROPRIETARY AND CONFIDENTIAL - Copyright (c) 2024-2026 Strykora. All Rights Reserved. Developer: Andreas Haskell-Horn | Contact info@strykora.co.uk - Copying/replicating/reuse is copyright infringement and unlawful. Contact info@strykora.co.uk for licence.
 */

/* ==========================================================================
   Landing page — gallery-dark marketing surface
   ========================================================================== */
.marketing {
  --bg: var(--ink);
  --bg-2: var(--ink-2);
  --card: rgba(255, 255, 255, 0.03);
  --text: var(--cream);
  --t-muted: rgba(250, 248, 245, 0.6);
  --border: rgba(201, 168, 106, 0.18);
  background: var(--ink);
  color: var(--cream);
  overflow-x: hidden;
}

/* ══ Preloader ═══════════════════════════════════════════════════════════ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  transition: transform 0.9s var(--ease-curtain);
}
.preloader.done { transform: translateY(-100%); }
.preloader[hidden] { display: none; }

.preloader-mark {
  font-family: var(--serif);
  font-size: 3rem;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 50%;
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  animation: fadeIn 1.8s var(--ease-out) both;
}
@keyframes fadeIn { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: none; } }

.preloader-bar {
  width: 180px;
  height: 2px;
  background: rgba(201, 168, 106, 0.2);
  overflow: hidden;
}
.preloader-bar i {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--gold-light), var(--gold-2));
  transform: scaleX(0);
  transform-origin: left;
  animation: barFill 2s var(--ease-out) forwards;
}
@keyframes barFill { to { transform: scaleX(1); } }

/* ══ Scroll progress ════════════════════════════════════════════════════ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 120;
  pointer-events: none;
}
.scroll-progress i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold-light), var(--gold), var(--gold-2));
}

/* ══ Header ═════════════════════════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 72px;
  z-index: 110;
  transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}
html { scroll-padding-top: 84px; }

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  height: 100%;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: #0a0a0a;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--serif); font-size: 1rem; letter-spacing: 0.02em; }
.brand-sub {
  font-size: 9px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 26px;
}
.site-nav a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(250, 248, 245, 0.78);
  transition: color 0.22s;
  padding: 6px 0;
  min-height: var(--tap);
  display: inline-flex;
  align-items: center;
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--gold-2); }
.site-nav .nav-portal { color: var(--gold); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.burger { display: none; }
.burger-bars { display: grid; gap: 4px; width: 18px; }
.burger-bars i { display: block; height: 1.5px; background: currentColor; transition: transform 0.3s, opacity 0.3s; }
.burger[aria-expanded="true"] .burger-bars i:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.burger[aria-expanded="true"] .burger-bars i:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger-bars i:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ══ Hero ═══════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 120px 20px 90px;
  overflow: hidden;
  background:
    radial-gradient(900px 600px at 78% 18%, rgba(201, 168, 106, 0.13), transparent 65%),
    radial-gradient(700px 500px at 8% 82%, rgba(212, 175, 55, 0.08), transparent 60%),
    var(--ink);
}

.hero-particles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-particles span {
  position: absolute;
  bottom: -20px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.35;
  animation: particleDrift linear infinite;
}
@keyframes particleDrift {
  from { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 0.45; }
  90% { opacity: 0.2; }
  to { transform: translateY(-46vh) translateX(24px); opacity: 0; }
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero-anim {
  opacity: 0;
  animation: heroUp 1s var(--ease-out) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes heroUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}

.hero-copy .eyebrow { margin-bottom: 18px; }
.hero-copy .display { margin-bottom: 24px; }
.hero-copy .lead {
  color: rgba(250, 248, 245, 0.72);
  max-width: 46ch;
  margin-bottom: 32px;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.hero-trust li {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(250, 248, 245, 0.5);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-trust li::before {
  content: "";
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--gold);
}

.hero-frame-wrap { display: flex; justify-content: center; }
.hero-frame {
  position: relative;
  width: min(100%, 400px);
  aspect-ratio: 3 / 4;
  border: 1px solid var(--border);
  padding: 10px;
  animation: floatFrame 7s ease-in-out infinite;
  will-change: transform;
}
@keyframes floatFrame {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.hero-frame::before {
  content: "";
  position: absolute;
  inset: -1px;
  border: 1px solid rgba(201, 168, 106, 0.35);
  transform: translate(14px, 14px);
  pointer-events: none;
}
.hero-frame-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 26px;
  background:
    linear-gradient(160deg, rgba(201, 168, 106, 0.22), transparent 55%),
    linear-gradient(0deg, rgba(10, 10, 10, 0.9), rgba(22, 22, 22, 0.5));
  position: relative;
  overflow: hidden;
}
.hero-frame-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, rgba(201, 168, 106, 0.06) 0 1px, transparent 1px 9px);
  pointer-events: none;
}
.hero-frame-eyebrow { font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); }
.hero-frame-title { font-family: var(--serif); font-size: clamp(2rem, 5vw, 3rem); line-height: 1; }
.hero-frame-note { font-size: 11px; color: rgba(250, 248, 245, 0.55); letter-spacing: 0.06em; }

.scroll-hint {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--gold);
  animation: bob 2.6s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 7px); } }

/* ══ Marquee ════════════════════════════════════════════════════════════ */
.marquee {
  overflow: hidden;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-2), var(--gold), var(--gold-deep));
  padding: 14px 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 26s linear infinite;
}
.marquee-track span {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-style: italic;
  color: #0a0a0a;
  padding: 0 26px;
  display: flex;
  align-items: center;
  gap: 26px;
  white-space: nowrap;
}
.marquee-track span::after { content: "•"; font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ══ Sections ═══════════════════════════════════════════════════════════ */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(64px, 9vw, 120px) 20px;
}
.section-alt {
  max-width: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.022), transparent);
  border-block: 1px solid var(--border);
}
.section-alt > * { max-width: var(--max); margin-inline: auto; }

.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head .gold-rule { margin: 16px 0 20px; }
.section-sub { color: var(--t-muted); margin-top: 16px; max-width: 62ch; }

.fineprint {
  margin-top: 26px;
  font-size: 12px;
  color: var(--t-muted);
  max-width: 72ch;
}

/* ══ Service cards ══════════════════════════════════════════════════════ */
.cards-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.atelier-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 30px 26px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.022);
  border-radius: 4px;
  transition: transform 0.4s var(--ease-out), border-color 0.4s, background 0.4s;
}
.atelier-card:hover,
.atelier-card:focus-within {
  transform: translateY(-8px);
  border-color: var(--gold);
  background: rgba(201, 168, 106, 0.06);
}
.atelier-card.is-academy {
  background: linear-gradient(165deg, rgba(201, 168, 106, 0.16), rgba(10, 10, 10, 0.6));
  border-color: rgba(201, 168, 106, 0.4);
}
.atelier-index {
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--gold);
}
.atelier-card h3 { font-size: 1.4rem; }
.atelier-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.atelier-card li {
  font-size: 13.5px;
  color: rgba(250, 248, 245, 0.66);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(201, 168, 106, 0.12);
}
.atelier-card li b { color: var(--gold); font-weight: 600; white-space: nowrap; }
.atelier-card .card-link {
  margin-top: auto;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold);
  min-height: var(--tap);
  display: inline-flex;
  align-items: center;
}
.atelier-card .card-link:hover { color: var(--gold-light); }

/* ══ Atelier split ══════════════════════════════════════════════════════ */
.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.atelier-visual {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  background:
    repeating-linear-gradient(0deg, rgba(201, 168, 106, 0.07) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(90deg, rgba(201, 168, 106, 0.07) 0 1px, transparent 1px 26px),
    linear-gradient(150deg, rgba(201, 168, 106, 0.14), transparent 60%);
  overflow: hidden;
}
.atelier-watermark {
  position: absolute;
  font-family: var(--serif);
  font-size: 22rem;
  line-height: 1;
  color: var(--gold);
  opacity: 0.05;
  pointer-events: none;
  user-select: none;
}
.atelier-visual-inner { position: relative; text-align: center; padding: 24px; }
.atelier-visual-title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1.15;
  margin: 12px 0;
}
.atelier-visual-note { color: var(--t-muted); }

.atelier-copy .eyebrow { margin-bottom: 14px; }
.atelier-copy .gold-rule { margin: 14px 0 20px; }
.atelier-copy .lead { color: var(--t-muted); margin: 20px 0 26px; }

.check-list { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 12px; }
.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
}
.check-list li::before {
  content: "✓";
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ══ Training ═══════════════════════════════════════════════════════════ */
.training-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}
.training-copy .eyebrow { margin-bottom: 14px; }
.training-copy .gold-rule { margin: 14px 0 20px; }
.training-copy .lead { color: var(--t-muted); margin: 20px 0 26px; }

.benefit-list { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 18px; }
.benefit-list li { display: grid; gap: 3px; padding-left: 16px; border-left: 1px solid var(--border); }
.benefit-list strong {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--cream);
}
.benefit-list span { font-size: 13px; color: var(--t-muted); }

.course-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.course-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 22px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
  transition: transform 0.35s var(--ease-out), border-color 0.35s;
}
.course-card:hover { transform: translateY(-6px); border-color: var(--gold); }
.course-card .course-days {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}
.course-card h3 { font-size: 1.2rem; }
.course-card p { font-size: 13px; color: var(--t-muted); flex: 1; }
.course-price { font-family: var(--serif); font-size: 1.5rem; color: var(--gold); }
.course-card .btn { width: 100%; }

/* ══ Gallery ════════════════════════════════════════════════════════════ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.gallery-tile {
  position: relative;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.02);
  padding: 0;
  text-align: left;
  color: inherit;
  transition: border-color 0.35s;
}
.gallery-tile:hover, .gallery-tile:focus-visible { border-color: var(--gold); }
.gallery-tile .tile-art {
  position: absolute;
  inset: 0;
  transition: transform 0.8s var(--ease-out);
}
.gallery-tile:hover .tile-art { transform: scale(1.08); }
.gallery-tile.tone-ink .tile-art {
  background:
    radial-gradient(circle at 30% 25%, rgba(201, 168, 106, 0.3), transparent 55%),
    linear-gradient(200deg, #1a1a1a, #0a0a0a);
}
.gallery-tile.tone-cream .tile-art {
  background:
    radial-gradient(circle at 70% 30%, rgba(154, 122, 66, 0.28), transparent 55%),
    linear-gradient(200deg, #f1ebdd, #d8cdb6);
}
.gallery-tile .tile-label {
  position: absolute;
  inset: auto 0 0 0;
  padding: 22px 20px;
  background: linear-gradient(0deg, rgba(10, 10, 10, 0.86), transparent);
  display: grid;
  gap: 4px;
}
.gallery-tile .tile-title {
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream);
}
.gallery-tile .tile-note { font-size: 11px; color: rgba(250, 248, 245, 0.6); }
.gallery-tile .tile-overlay {
  position: absolute;
  inset: 0;
  background: rgba(201, 168, 106, 0.12);
  opacity: 0;
  transition: opacity 0.4s;
  display: grid;
  place-items: center;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #0a0a0a;
  font-weight: 700;
}
.gallery-tile:hover .tile-overlay { opacity: 1; }

/* ══ Pricing ════════════════════════════════════════════════════════════ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.price-col { border-top: 1px solid var(--gold); padding-top: 22px; }
.price-col h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.price-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(201, 168, 106, 0.13);
  font-size: 13.5px;
}
.price-row .p-name { color: rgba(250, 248, 245, 0.8); }
.price-row .p-val { color: var(--gold); font-weight: 600; white-space: nowrap; }
.price-row .p-flag {
  display: block;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(201, 168, 106, 0.6);
  font-weight: 400;
}

/* ══ Testimonials ═══════════════════════════════════════════════════════ */
.testimonials { text-align: center; }
.testimonials .gold-rule { margin: 16px auto 40px; }
.testimonial-stage { max-width: 780px; margin: 0 auto; min-height: 220px; position: relative; }
.testimonial-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.testimonial-slide.active { opacity: 1; pointer-events: auto; position: relative; }
.stars { display: flex; gap: 5px; color: var(--gold-2); font-size: 13px; letter-spacing: 0.18em; }
.testimonial-quote {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2.6vw, 1.6rem);
  line-height: 1.5;
  font-style: italic;
  color: var(--cream);
}
.testimonial-who { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
.testimonial-who span { display: block; color: rgba(250, 248, 245, 0.45); letter-spacing: 0.14em; margin-top: 4px; }

.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 34px;
}
.t-dots { display: flex; gap: 10px; }
.t-dot {
  width: 34px; height: 34px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}
.t-dot i {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(201, 168, 106, 0.45);
  transition: background 0.25s, transform 0.25s;
}
.t-dot[aria-selected="true"] i { background: var(--gold-2); transform: scale(1.5); }

/* ══ Book ═══════════════════════════════════════════════════════════════ */
.book-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.book-copy .gold-rule { margin: 14px 0 20px; }
.book-copy .lead { color: var(--t-muted); margin-bottom: 30px; }

.contact-list { margin: 0; display: grid; gap: 20px; }
.contact-list > div { display: grid; gap: 3px; }
.contact-list dt {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}
.contact-list dd { margin: 0; font-size: 14px; color: rgba(250, 248, 245, 0.82); }

.book-card {
  background: #fff;
  color: #141414;
  --text: #141414;
  --t-muted: #6d6355;
  --border: #e8d9be;
  --bg: #fdfaf6;
  --card: #fff;
  border: 1px solid rgba(201, 168, 106, 0.4);
  border-radius: 6px;
  padding: 32px 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}
.book-card h3 { font-size: 1.4rem; }
.book-card .form-intro { margin: 6px 0 22px; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.consent-block { margin: 6px 0 22px; }

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  line-height: 1.55;
  color: #3d3730;
  cursor: pointer;
  padding: 8px 0;
}
.consent input {
  width: 20px; height: 20px;
  min-height: 20px;
  flex-shrink: 0;
  margin-top: 1px;
  accent-color: var(--gold-deep);
}
.age-note { margin-top: 4px; font-size: 11.5px; }

.form-legal { margin-top: 14px; font-size: 11.5px; text-align: center; }
.form-legal a { color: var(--gold-deep); text-decoration: underline; }

.form-success { text-align: center; }
.form-success .eyebrow { color: var(--gold-deep); }
.form-success h3 { margin: 10px 0 12px; }
.success-payload {
  text-align: left;
  white-space: pre-wrap;
  word-break: break-word;
  background: #f7ebd8;
  border: 1px solid #e8d9be;
  border-radius: 10px;
  padding: 14px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  line-height: 1.6;
  margin: 18px 0;
  max-height: 210px;
  overflow: auto;
}
.success-actions { display: flex; gap: 10px; justify-content: center; margin-bottom: 16px; flex-wrap: wrap; }

.muted { color: var(--t-muted); }
.small.muted { font-size: 12px; }

/* ══ Footer ═════════════════════════════════════════════════════════════ */
.site-footer {
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(201, 168, 106, 0.04), transparent);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 60px 20px 40px;
  display: grid;
  /* minmax(0,1fr) — a plain 1fr lets the column floor exceed the viewport
     at 320px, which produced an 8px horizontal scroll. */
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 36px;
}
.footer-brand .brand-mark { margin-bottom: 14px; }
.footer-name { font-family: var(--serif); font-size: 1.15rem; margin-bottom: 8px; }
.footer-nav { display: grid; gap: 10px; align-content: start; }
.footer-nav h4, .footer-hours h4 {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 6px;
}
.footer-nav a {
  font-size: 13px;
  color: rgba(250, 248, 245, 0.7);
  min-height: 34px;
  display: inline-flex;
  align-items: center;
}
.footer-nav a:hover { color: var(--gold-2); }
.footer-hours div { display: flex; justify-content: space-between; gap: 14px; font-size: 12.5px; padding: 5px 0; color: rgba(250, 248, 245, 0.65); }
.footer-hours div span { min-width: 0; overflow-wrap: anywhere; }
.footer-hours div b { color: rgba(250, 248, 245, 0.85); font-weight: 500; white-space: nowrap; }

.footer-base {
  border-top: 1px solid var(--border);
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}
.footer-base p { color: rgba(250, 248, 245, 0.45); }

/* ══ Lightbox ═══════════════════════════════════════════════════════════ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(6, 6, 6, 0.94);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 70px 76px;
  opacity: 0;
  transition: opacity 0.35s;
}
.lightbox[hidden] { display: none; }
.lightbox.open { opacity: 1; }
.lightbox-stage {
  width: min(560px, 100%);
  aspect-ratio: 4 / 5;
  border: 1px solid var(--gold);
  position: relative;
  display: grid;
  place-items: center;
  animation: lbScale 0.45s var(--ease-out);
}
@keyframes lbScale { from { transform: scale(0.92); opacity: 0; } to { transform: none; opacity: 1; } }
.lightbox-stage .tile-art { position: absolute; inset: 0; }
.lightbox-stage .lb-label { position: relative; z-index: 2; text-align: center; padding: 20px; }
.lightbox-stage .lb-label b { display: block; font-family: var(--serif); font-size: 1.4rem; letter-spacing: 0.14em; text-transform: uppercase; }
.lightbox-stage .lb-label span { font-size: 12px; color: var(--t-muted); }
.lightbox-close { position: absolute; top: 18px; right: 18px; color: var(--cream); background: rgba(255, 255, 255, 0.06); }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); color: var(--cream); background: rgba(255, 255, 255, 0.06); }
.lb-prev { left: 18px; }
.lb-next { right: 18px; }
.lightbox-counter {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: rgba(250, 248, 245, 0.6);
}

/* ══ Responsive ═════════════════════════════════════════════════════════ */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero-frame-wrap { order: -1; }
  .hero-frame { width: min(100%, 300px); aspect-ratio: 4 / 3; }
  .split, .training-grid, .book-grid { grid-template-columns: 1fr; gap: 40px; }
  .atelier-visual { min-height: 300px; order: -1; }
  .footer-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

@media (max-width: 860px) {
  .burger { display: inline-flex; }
  .header-cta { display: none; }

  .site-nav {
    position: fixed;
    inset: 72px 0 auto 0;
    background: rgba(8, 8, 8, 0.98);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 20px 22px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
    max-height: calc(100svh - 72px);
    overflow-y: auto;
  }
  .site-nav.open { opacity: 1; visibility: visible; transform: none; }
  .site-nav a {
    min-height: 52px;
    border-bottom: 1px solid rgba(201, 168, 106, 0.12);
    font-size: 13px;
  }
  .site-nav .nav-portal { color: var(--gold-2); }

  .hero { padding-top: 104px; min-height: auto; }
  .hero-frame { aspect-ratio: 3 / 2; }
  .hero-frame-title { font-size: 1.9rem; }
  .scroll-hint { display: none; }

  .lightbox { padding: 64px 14px 84px; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }

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

@media (max-width: 560px) {
  .footer-inner { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .testimonial-stage { min-height: 300px; }
  .book-card { padding: 24px 18px; }
  .brand-sub { display: none; }
}

/* Reduce motion: kill particles / marquee / floats */
@media (prefers-reduced-motion: reduce) {
  .hero-particles, .marquee-track { animation: none !important; }
  .hero-particles { display: none; }
  .hero-frame, .scroll-hint, .hero-anim { animation: none !important; opacity: 1 !important; transform: none !important; }
  .preloader { display: none !important; }
  .atelier-card:hover, .course-card:hover { transform: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   12. Chat with Dia
   Uses the chat tokens reserved in tokens.css (--surface, --chat-line,
   --chat-serif, --chat-sans). Reuses .btn and .icon-btn rather than
   introducing a second button style.
   ═══════════════════════════════════════════════════════════════════════════ */

.dia-chat { position: relative; z-index: 60; }

/* ── Launcher ─────────────────────────────────────────────────────────────── */

.chat-launcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: var(--tap);
  padding: 12px 22px;
  border: 1px solid var(--gold);
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--gold-light);
  font-family: var(--chat-sans);
  font-size: 14px;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: var(--shadow-dark);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.chat-launcher:hover { transform: translateY(-2px); box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5); }
.chat-launcher:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 3px; }
.chat-launcher.is-hidden { display: none; }
.chat-launcher-icon { font-size: 16px; line-height: 1; }

/* ── Panel ────────────────────────────────────────────────────────────────── */

.chat-panel {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 70;
  display: flex;
  flex-direction: column;
  width: min(880px, calc(100vw - 48px));
  height: min(620px, calc(100vh - 48px));
  overflow: hidden;
  border: 1px solid var(--chat-line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--chat-text);
  font-family: var(--chat-sans);
  box-shadow: var(--shadow-dark);

  /*
   * Local token corrections. The panel is a LIGHT surface sitting inside
   * `.marketing`, which is a DARK theme. Anything that inherits the marketing
   * palette lands at the wrong end of the contrast scale:
   *
   *   --t-muted  is cream at 60% alpha (a dark-theme token). Form labels use it
   *              via `.field > span`, so every label rendered cream-on-cream —
   *              a measured 1:1, i.e. invisible. This is the same correction
   *              `.book-card` already makes for its light card.
   *   --gold-deep is #9a7a42, which measures 3.40–3.95:1 on these surfaces and
   *              so fails WCAG AA for the prices. #7a5f2e measures
   *              5.69 / 5.09 / 5.90 on surface / surface-2 / offer.
   *   --ok       is 4.13:1 on surface-2; #3f6b4c is 5.83 / 5.22 / 6.05.
   *
   * Scoped here rather than changed globally so the marketing palette and the
   * booking card keep their existing brand appearance.
   */
  --t-muted: var(--chat-muted);
  --gold-deep: #7a5f2e;
  --ok: #3f6b4c;
}

.chat-panel[hidden] { display: none; }

.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  padding: 14px 16px;
  border-bottom: 1px solid var(--chat-line);
  background: var(--ink);
  color: var(--cream);
}

.chat-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: rgba(201, 168, 106, 0.12);
  color: var(--gold-2);
  font-family: var(--chat-serif);
  font-size: 20px;
  flex: 0 0 auto;
}

.chat-header-text { min-width: 0; flex: 1 1 auto; }
.chat-title { margin: 0; font-family: var(--chat-serif); font-size: 20px; font-weight: 600; line-height: 1.1; }

.chat-status {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 2px 0 0;
  font-size: 12px;
  color: rgba(250, 248, 245, 0.72);
}

.chat-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  flex: 0 0 auto;
}

.chat-close { flex: 0 0 auto; border-color: rgba(250, 248, 245, 0.28); color: var(--cream); }
.chat-close:hover { border-color: var(--gold); }

/* ── Body: chat left, package right ───────────────────────────────────────── */

.chat-body {
  position: relative;
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  flex: 1 1 auto;
  min-height: 0;
}

.chat-main { display: flex; flex-direction: column; min-height: 0; min-width: 0; }

.chat-messages {
  flex: 1 1 auto;
  min-height: 0;
  padding: 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
}

.chat-messages:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: -2px; }

.chat-msg { display: flex; margin-bottom: 12px; }
.chat-msg-user { justify-content: flex-end; }

.chat-bubble {
  max-width: 80%;
  padding: 11px 14px;
  font-size: 14.5px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.chat-msg-dia .chat-bubble {
  border: 1px solid var(--chat-line);
  border-radius: 22px 22px 22px 6px;
  background: #fff;
}

.chat-msg-user .chat-bubble {
  border-radius: 22px 22px 6px 22px;
  background: var(--ink);
  color: var(--cream);
}

/* Typing indicator */
.chat-dots { display: inline-flex; gap: 3px; margin-left: 4px; vertical-align: middle; }
.chat-dots i {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--chat-muted);
  animation: chat-bounce 1.2s infinite ease-in-out;
}
.chat-dots i:nth-child(2) { animation-delay: 0.15s; }
.chat-dots i:nth-child(3) { animation-delay: 0.3s; }

@keyframes chat-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* ── Offer cards ──────────────────────────────────────────────────────────── */

.chat-offers { display: grid; gap: 10px; margin-top: 12px; }

.chat-offer {
  padding: 12px 14px;
  border: 1px solid var(--chat-line);
  border-radius: var(--radius-sm);
  background: #fffdf9;
}

.chat-offer-kicker {
  margin: 0 0 4px;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--chat-muted);
}

.chat-offer-title { margin: 0; font-family: var(--chat-serif); font-size: 18px; font-weight: 600; line-height: 1.2; }
.chat-offer-price { margin: 2px 0 10px; font-size: 15px; font-weight: 600; color: var(--gold-deep); }
.chat-offer-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.chat-offer-detail {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--chat-muted);
}

/* ── Example chips ────────────────────────────────────────────────────────── */

.chat-examples {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 0 16px 10px;
}

.chat-chips-label { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--chat-muted); }

.chat-chip {
  min-height: 32px;
  padding: 6px 12px;
  border: 1px solid var(--chat-line);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--chat-text);
  font-family: var(--chat-sans);
  font-size: 12.5px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.chat-chip:hover { border-color: var(--gold); background: rgba(201, 168, 106, 0.1); }
.chat-chip:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 2px; }

/* ── Input ────────────────────────────────────────────────────────────────── */

.chat-form {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--chat-line);
  background: var(--surface);
}

.chat-input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: var(--tap);
  padding: 11px 14px;
  border: 1px solid var(--chat-line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--chat-text);
  font-family: var(--chat-sans);
  font-size: 15px;
}

.chat-input:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 1px; border-color: var(--gold); }
.chat-input::placeholder { color: var(--chat-muted); }
.chat-send { flex: 0 0 auto; }

/* ── Package sidebar ──────────────────────────────────────────────────────── */

.chat-side {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 16px;
  overflow-y: auto;
  border-left: 1px solid var(--chat-line);
  background: var(--surface-2);
}

.chat-side-title { margin: 0; font-family: var(--chat-serif); font-size: 19px; font-weight: 600; }
.chat-side-count { margin: 2px 0 12px; font-size: 12px; color: var(--chat-muted); }

.chat-package { flex: 1 1 auto; min-height: 0; }
.chat-empty { margin: 0; font-size: 13px; line-height: 1.6; color: var(--chat-muted); }

.chat-basket { margin: 0 0 12px; padding: 0; list-style: none; }

.chat-basket-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--chat-line);
}

.chat-basket-text { display: flex; flex-direction: column; min-width: 0; }
.chat-basket-name { font-size: 13.5px; line-height: 1.35; }
.chat-basket-price { font-size: 12.5px; color: var(--gold-deep); font-weight: 600; }

.chat-basket-remove {
  flex: 0 0 auto;
  min-height: 28px;
  padding: 2px 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--chat-muted);
  font-family: var(--chat-sans);
  font-size: 11.5px;
  text-decoration: underline;
  cursor: pointer;
}

.chat-basket-remove:hover { color: var(--danger); border-color: var(--danger); }
.chat-basket-remove:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 2px; }

.chat-total { margin: 0 0 12px; font-size: 13.5px; }
.chat-total strong { font-family: var(--chat-serif); font-size: 19px; color: var(--gold-deep); }

.chat-budget { margin-top: 6px; }
.chat-budget-text { margin: 0; font-size: 12px; color: var(--ok); }
.chat-budget.is-over .chat-budget-text { color: var(--danger); }

.chat-package-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }

.chat-small { margin: 8px 0 0; font-size: 11.5px; line-height: 1.5; color: var(--chat-muted); }

/* ── Lead step (full-panel) ───────────────────────────────────────────────── */

/*
 * Saving a package is a distinct step, so it takes the whole panel instead of
 * sharing the narrow package column. In the column it was 237px wide and taller
 * than the column itself, which clipped the submit button outside the panel
 * (unmeasurable and unclickable) and collapsed the basket beside it to zero
 * height. Here the step is its own scroll container: the fields keep a readable
 * measure, the list scrolls independently, and the submit row stays docked to
 * the bottom so it is always reachable — at any panel height.
 */
.chat-lead {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--surface);
}

.chat-lead[hidden], #chatLeadResult[hidden] { display: none; }

.chat-lead-top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  padding: 12px 16px;
  border-bottom: 1px solid var(--chat-line);
}

.chat-lead-back { flex: 0 0 auto; }

.chat-lead-heading { margin: 0; font-family: var(--chat-serif); font-size: 18px; font-weight: 600; line-height: 1.2; }

/* The only scrolling region: everything above/below it stays put. */
.chat-lead-scroll {
  flex: 1 1 auto;
  min-height: 0;
  padding: 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* Keep a readable measure now the step is not confined to the sidebar. */
.chat-lead-scroll > * { max-width: 560px; margin-inline: auto; }

.chat-lead-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }

.chat-lead .field { margin-bottom: 12px; }
.chat-lead .field > span { font-size: 12px; }
.chat-lead input, .chat-lead textarea { font-size: 14px; }
.chat-lead-note { margin: 0 0 4px; }

/* Docked so the primary action can never be scrolled out of reach. */
.chat-lead-submit {
  position: sticky;
  bottom: 0;
  padding-top: 12px;
  background: var(--surface);
}

/* Same rule for the result state: "Copy again" is its primary action, so on a
   short panel it must stay docked rather than sit below the fold. */
.chat-lead-actions {
  position: sticky;
  bottom: 0;
  padding-top: 10px;
  background: var(--surface);
}

.chat-payload {
  max-height: 180px;
  margin: 8px 0;
  padding: 10px;
  overflow: auto;
  border: 1px solid var(--chat-line);
  border-radius: var(--radius-sm);
  background: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11.5px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

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

/* Safeguarding: the sales surface is removed, not merely dimmed. */
.dia-chat.is-safeguarding .chat-side { background: var(--surface); }

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 1023px) {
  .chat-body { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .chat-side {
    max-height: 42%;
    border-left: 0;
    border-top: 1px solid var(--chat-line);
  }
  /* One measure for the fields; two columns only reads well when wide. */
  .chat-lead-fields { grid-template-columns: 1fr; gap: 0; }
}

/* The spec's 430px viewport must work: full-bleed panel, no overflow. */
@media (max-width: 480px) {
  .chat-launcher { right: 14px; bottom: 14px; padding: 12px 18px; }
  .chat-launcher-text { display: none; }
  .chat-launcher-icon { font-size: 20px; }

  .chat-panel {
    right: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    max-height: 100vh;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .chat-bubble { max-width: 88%; }
  .chat-side { max-height: 46%; }
  .chat-header { padding: 12px 14px; }
  .chat-messages { padding: 14px; }
  .chat-form { padding: 10px 14px 14px; }
}

/* ── Reduced motion ───────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .chat-launcher { transition: none; }
  .chat-launcher:hover { transform: none; }
  .chat-messages { scroll-behavior: auto; }
  .chat-dots i { animation: none; opacity: 0.7; }
}
