/* ================================================================
   Táménso — styles
   Palette and type carried over from the "Threshold" study (stone,
   ink, moss, rust · Marcellus + Work Sans). Both fonts are self-hosted.
   ================================================================ */
@font-face {
  font-family: 'Marcellus';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/marcellus-latin-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('/assets/fonts/worksans-latin-variable.woff2') format('woff2');
}

:root {
  --stone: #E7DCC7;
  --cream: #F4ECDC;
  --paper: #FBF6EC;
  --ink: #2A231C;
  --ink-2: #3A3226;
  --muted: #6B6251;
  --moss: #4F5B44;
  --rust: #9A4A26;
  --line: #2A231C26;
  --display: 'Marcellus', Georgia, serif;
  --body: 'Work Sans', system-ui, -apple-system, sans-serif;
  --wrap: 1180px;
  --pad: clamp(1.25rem, 4vw, 3rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background:
    repeating-linear-gradient(115deg, #0000 0 5px, #2A231C08 5px 6px),
    repeating-linear-gradient(25deg, #0000 0 5px, #2A231C06 5px 6px),
    radial-gradient(ellipse 70% 40% at 15% 0%, #FBF4E4 0%, transparent 60%),
    var(--stone);
}

a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; line-height: 1.15; text-wrap: balance; }
p { margin: 0; }

.skip {
  position: absolute; left: 1rem; top: -3rem; z-index: 100;
  background: var(--ink); color: var(--cream); padding: .6rem 1rem; text-decoration: none;
}
.skip:focus { top: 1rem; }
main:focus { outline: none; }
:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; }

p.eyebrow, .eyebrow {
  font-family: var(--body) !important; font-weight: 400 !important; line-height: 1.4 !important;
  border: 0 !important; padding: 0 !important; max-width: none !important;
  font-size: .72rem !important;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #6F5A3B;
  margin: 0 0 1.1rem !important;
}
.eyebrow.light { color: #CDBB98 !important; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .8rem 1.5rem;
  border-radius: 999px;
  font-size: .9rem; letter-spacing: .02em;
  text-decoration: none;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-ink { background: var(--ink); color: var(--cream); }
.btn-ink:hover { background: var(--rust); }
.btn-line { border: 1px solid var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--cream); }

/* ---------------- NAV ---------------- */
.site-nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 2rem;
  padding: 1.1rem max(var(--pad), calc((100% - var(--wrap)) / 2 + var(--pad)));
  background: linear-gradient(#E7DCC7f2, #E7DCC7d9);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
  backdrop-filter: blur(8px);
}
.site-nav.scrolled { border-bottom-color: var(--line); }
.site-nav .word {
  font-family: var(--display); font-size: 1.45rem; letter-spacing: .06em;
  text-decoration: none; margin-right: auto;
}
.nav-links { display: flex; align-items: center; gap: 1.6rem; font-size: .88rem; }
.nav-links a { text-decoration: none; }
.nav-links a:not(.nav-cta):hover { text-decoration: underline; text-underline-offset: 4px; }
.nav-cta { border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.langs { display: flex; gap: .2rem; font-size: .75rem; letter-spacing: .08em; }
.langs a {
  text-decoration: none; padding: .35rem .45rem; border-radius: 4px; color: var(--muted);
}
.langs a[aria-current="page"] { color: var(--ink); background: #2A231C12; }
.langs a:hover { color: var(--ink); }


/* ---------------- HERO: 3D corridor of arches ---------------- */
:root { --night: #0D0906; --glow: #F2CB8E; --amber: #D99A52; }

.home .site-nav { position: fixed; left: 0; right: 0; transition: background .4s ease, color .4s ease, border-color .4s ease; }
.home .site-nav.on-dark { background: linear-gradient(#0D0906cc, #0D090600); color: var(--cream); backdrop-filter: none; }
.home .site-nav.on-dark .langs a { color: #CDBB98; }
.home .site-nav.on-dark .langs a[aria-current="page"] { color: var(--cream); background: #F4ECDC1f; }

.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: 7rem max(var(--pad), calc((100% - var(--wrap)) / 2 + var(--pad))) 6rem;
  background:
    radial-gradient(ellipse 60% 70% at 64% 55%, #3A2410 0%, transparent 70%),
    var(--night);
  color: var(--cream);
}
.tunnel { position: absolute; inset: 0; z-index: -1; perspective: 700px; perspective-origin: 64% 50%; }
.scene::before { content: ""; position: absolute; width: 900px; height: 900px; left: -450px; top: -420px; border-radius: 50%; transform: translateZ(-2600px) scale(4); background: radial-gradient(circle, #D99A5240 0%, transparent 65%); }
.scene {
  position: absolute; left: 64%; top: 54%;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.ring {
  --w: clamp(220px, 26vw, 360px);
  position: absolute; width: var(--w); height: calc(var(--w) * 1.42);
  left: calc(var(--w) / -2); top: calc(var(--w) * -.71);
  border: 1.5px solid var(--glow); border-bottom: 0;
  border-radius: 999px 999px 0 0;
  transform-style: preserve-3d;
  animation: walk 16s linear infinite;
  animation-delay: calc(var(--i) * -16s / 14);
  opacity: 0;
}
@keyframes walk {
  0%   { transform: translateZ(-2600px); opacity: 0; }
  12%  { opacity: .35; }
  70%  { opacity: .9; }
  92%  { opacity: .6; }
  100% { transform: translateZ(520px); opacity: 0; }
}
.core {
  --w: clamp(220px, 26vw, 360px);
  position: absolute; width: calc(var(--w) * .62); height: calc(var(--w) * .95);
  left: calc(var(--w) * -.31); top: calc(var(--w) * -.24);
  border-radius: 999px 999px 0 0;
  transform: translateZ(-2700px) scale(3.2);
  background: radial-gradient(ellipse 60% 55% at 50% 42%, #FFE7BD 0%, var(--glow) 25%, var(--amber) 55%, #9A4A26 85%, transparent 100%);
  animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe { 50% { filter: brightness(1.18); } }
.floor {
  position: absolute; width: 4000px; height: 4000px; left: -2000px; top: calc(clamp(220px, 26vw, 360px) * .71);
  transform: rotateX(90deg) translateZ(0); transform-origin: 50% 0;
  background:
    repeating-linear-gradient(90deg, #F2CB8E26 0 1px, transparent 1px 120px),
    repeating-linear-gradient(0deg, #F2CB8E1f 0 1px, transparent 1px 120px);
  -webkit-mask-image: radial-gradient(ellipse 35% 45% at 50% 0%, #000 0%, transparent 70%);
          mask-image: radial-gradient(ellipse 35% 45% at 50% 0%, #000 0%, transparent 70%);
  animation: floorRun 4s linear infinite;
}
@keyframes floorRun { to { background-position: 0 120px, 0 120px; } }
.dust { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero-text { position: relative; max-width: 40rem; }
.hero h1 { line-height: 1; margin-bottom: 1.6rem; }
.hero .irish {
  display: block; font-size: clamp(3.2rem, 9vw, 7.2rem); letter-spacing: -.01em;
  background: linear-gradient(180deg, #FFF6E6 10%, var(--glow) 70%, var(--amber));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 30px #F2CB8E33);
}
.hero .gloss {
  display: block; margin-top: 1rem;
  font-family: var(--body); font-weight: 300; font-style: italic;
  font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: #CDBB98;
}
.hero .lede { font-size: clamp(1.1rem, 1.9vw, 1.3rem); font-weight: 300; line-height: 1.6; max-width: 34ch; color: #E9DDC6; }
.ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }
.btn-glow {
  background: linear-gradient(135deg, var(--glow), var(--amber)); color: var(--night); font-weight: 500;
  box-shadow: 0 0 0 0 #F2CB8E66; transition: box-shadow .35s ease, transform .25s ease;
}
.btn-glow:hover { box-shadow: 0 0 34px 4px #F2CB8E55; }
.btn-ghost { border: 1px solid #F4ECDC66; color: var(--cream); backdrop-filter: blur(6px); background: #F4ECDC0d; }
.btn-ghost:hover { border-color: var(--glow); color: var(--glow); }

.scroll-cue {
  position: absolute; left: 50%; bottom: 1.8rem; width: 26px; height: 42px; margin-left: -13px;
  border: 1px solid #F4ECDC66; border-radius: 999px 999px 6px 6px;
}
.scroll-cue span { position: absolute; left: 50%; top: 9px; width: 2px; height: 8px; margin-left: -1px; background: var(--glow); border-radius: 2px; animation: cue 2s ease-in-out infinite; }
@keyframes cue { 60% { transform: translateY(14px); opacity: 0; } 61% { transform: none; opacity: 0; } 100% { opacity: 1; } }

@media (max-width: 860px) {
  .tunnel { perspective-origin: 50% 27%; }
  .scene { left: 50%; top: 27%; }
  .hero { align-items: flex-end; padding-bottom: 5.5rem; }
  .hero::after { content: ""; position: absolute; inset: 28% 0 0; z-index: -1; background: linear-gradient(transparent, #0D0906e6 30%, var(--night) 60%); }
}
@media (prefers-reduced-motion: reduce) {
  .ring { animation: none; opacity: .5; transform: translateZ(calc(var(--i) * -180px)); }
  .floor, .core, .scroll-cue span { animation: none; }
}

/* ---------------- 3D TILT + LIGHT ---------------- */
.tilt { transform-style: preserve-3d; will-change: transform; position: relative; }
.tilt.tilting, .js .reveal.tilt.tilting.in { transform: perspective(900px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)) translateZ(0); transition: transform .12s ease-out; }
.tilt::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(circle 220px at var(--mx, 50%) var(--my, 0%), #FFFFFF59, transparent 70%);
  opacity: 0; transition: opacity .3s ease; mix-blend-mode: soft-light;
}
.tilt.tilting::after { opacity: 1; }
.card-dark.tilt::after { background: radial-gradient(circle 220px at var(--mx, 50%) var(--my, 0%), #F2CB8E40, transparent 70%); mix-blend-mode: screen; }

/* ---------------- WHY NOW ---------------- */
.why {
  background:
    linear-gradient(#0D0906 0%, transparent 18%),
    repeating-linear-gradient(90deg, #F2CB8E0d 0 1px, transparent 1px 80px),
    repeating-linear-gradient(0deg, #F2CB8E0a 0 1px, transparent 1px 80px),
    var(--ink);
  color: var(--cream);
}
.stat { border-top-color: #F2CB8E55 !important; }
.stat .num { text-shadow: 0 0 24px #F2CB8E40; font-variant-numeric: tabular-nums; }
.why-inner {
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(4rem, 9vw, 7rem) var(--pad);
}
.why-title { font-size: clamp(1.7rem, 3.6vw, 2.7rem); line-height: 1.2; max-width: 24ch; margin-bottom: 3.5rem; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; margin: 0; }
.stat { margin: 0; border-top: 1px solid #F4ECDC33; padding-top: 1.4rem; }
.stat .num {
  display: block; font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; color: #F2CB8E; margin-bottom: .8rem;
}
.stat figcaption { font-weight: 300; font-size: .98rem; line-height: 1.65; color: #E3D6BD; max-width: 32ch; }
.sources { margin-top: 3rem; font-size: .75rem; color: #A89878; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------------- SECTION HEADS ---------------- */
.section-head { max-width: 46rem; margin: 0 auto 3.5rem; text-align: center; }
.section-head.left { text-align: left; margin: 0; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.12; margin-bottom: 1.1rem; }
.section-head .intro { font-weight: 300; font-size: 1.08rem; color: var(--ink-2); line-height: 1.75; }

/* ---------------- ROOMS ---------------- */
.rooms { max-width: var(--wrap); margin: 0 auto; padding: clamp(5rem, 10vw, 8rem) var(--pad) clamp(3rem, 6vw, 5rem); }
.room-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; align-items: stretch; }
.room {
  position: relative;
  background: #FBF6EC99;
  border: 1px solid var(--line);
  border-radius: 50% 50% 8px 8px / 8.5rem 8.5rem 8px 8px;
  padding: 5.4rem 1.6rem 2rem;
  transition: transform .35s ease, box-shadow .35s ease, background .35s ease;
}
.room:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -30px #2A231C80; background: var(--paper); }
.room-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.4rem; }
.room-n { font-family: var(--display); font-size: .95rem; color: var(--muted); }
.tag {
  font-size: .64rem; letter-spacing: .14em; text-transform: uppercase;
  padding: .3rem .6rem; border-radius: 999px;
}
.tag-open { background: var(--moss); color: var(--cream); }
.tag-soon { background: #9A4A261f; color: var(--rust); border: 1px solid #9A4A2655; }
.tag-later { border: 1px dashed #2A231C55; color: var(--muted); }
.room h3 { font-size: 1.4rem; line-height: 1.2; margin-bottom: .8rem; }
.room p { font-weight: 300; font-size: .95rem; line-height: 1.65; color: var(--ink-2); }
.room ul { list-style: none; padding: 0; margin: 1.3rem 0 0; border-top: 1px solid var(--line); }
.room li {
  font-size: .86rem; line-height: 1.5; padding: .6rem 0 .6rem 1.1rem; position: relative;
  border-bottom: 1px solid var(--line);
}
.room li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: 6px; height: 1px; background: var(--rust); }
.room-closed { background: transparent; border-style: dashed; }
.room-closed h3, .room-closed p { color: var(--muted); }
@media (max-width: 1040px) { .room-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
  .room-grid { grid-template-columns: 1fr; }
  .room { border-radius: 50% 50% 8px 8px / 9rem 9rem 8px 8px; padding-top: 5rem; }
}

/* ---------------- METHOD ---------------- */
.method { max-width: var(--wrap); margin: 0 auto; padding: clamp(3rem, 6vw, 5rem) var(--pad) clamp(5rem, 10vw, 8rem); }
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem);
}
.steps li { border-top: 1px solid var(--ink); padding-top: 1.4rem; }
.step-n { font-family: var(--display); color: var(--rust); font-size: 1rem; letter-spacing: .1em; }
.steps h3 { font-size: 1.7rem; margin: .5rem 0 .8rem; }
.steps p { font-weight: 300; line-height: 1.7; color: var(--ink-2); }
.steps-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.step-n { text-transform: uppercase; font-size: .85rem !important; }
@media (max-width: 1000px) { .steps-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .steps, .steps-4 { grid-template-columns: 1fr; } }

/* ---------------- ACADEMY ---------------- */
.academy { background: var(--cream); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.academy-inner {
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(5rem, 10vw, 8rem) var(--pad) 3rem;
  display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2.5rem, 7vw, 6rem); align-items: start;
}
.academy .section-head { position: sticky; top: 7rem; }
.academy .section-head .btn { margin-top: 2rem; }
.modules { list-style: none; padding: 0; margin: 0; counter-reset: m; }
.modules li {
  display: grid; grid-template-columns: 3.2rem 1fr; gap: 1rem;
  padding: 1.5rem 0; border-bottom: 1px solid var(--line);
}
.modules li:first-child { border-top: 1px solid var(--line); }
.mod-n { font-family: var(--display); font-size: 1.5rem; color: #B9A783; line-height: 1.2; }
.modules h3 { font-size: 1.25rem; line-height: 1.3; margin-bottom: .35rem; }
.modules p { font-weight: 300; font-size: .95rem; color: var(--ink-2); line-height: 1.65; }
.disclaimer {
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad) 4rem;
  font-size: .75rem; color: var(--muted); line-height: 1.6;
}
@media (max-width: 860px) {
  .academy-inner { grid-template-columns: 1fr; }
  .academy .section-head { position: static; }
}

/* ---------------- BUILD IN PUBLIC ---------------- */
.build {
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(5rem, 10vw, 8rem) var(--pad);
  display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 6vw, 5rem); align-items: center;
}
.build h2 { font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 1rem; }
.build p { font-weight: 300; font-size: 1.05rem; line-height: 1.75; color: var(--ink-2); max-width: 36ch; }
.handle {
  display: inline-block; margin-top: 1.6rem;
  font-family: var(--display); font-size: 1.35rem; text-decoration: none;
  border-bottom: 1px solid var(--rust); padding-bottom: 2px;
}
.handle:hover { color: var(--rust); }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.tile {
  aspect-ratio: 4 / 5; border-radius: 6px; padding: 1.1rem;
  display: flex; align-items: flex-end;
  font-family: var(--display); font-size: clamp(.85rem, 1.4vw, 1.05rem); line-height: 1.3;
  position: relative; overflow: hidden;
}
.tile::after {
  content: ""; position: absolute; inset: 0; mix-blend-mode: overlay; pointer-events: none;
  background: repeating-linear-gradient(115deg, #0000 0 4px, #ffffff12 4px 5px);
}
.t1 { background: var(--ink); color: #F2CB8E; }
.t2 { background: var(--moss); color: var(--cream); transform: translateY(1.5rem); }
.t3 { background: var(--paper); color: var(--ink); border: 1px solid var(--line); }
.t1::before, .t2::before, .t3::before {
  content: ""; position: absolute; left: 1.1rem; top: 1.1rem;
  width: 22px; height: 30px; border: 1px solid currentColor; border-bottom: none;
  border-radius: 11px 11px 0 0; opacity: .7;
}
@media (max-width: 860px) { .build { grid-template-columns: 1fr; } }

/* ---------------- ABOUT ---------------- */
.about {
  max-width: 980px; margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) var(--pad) clamp(5rem, 10vw, 8rem);
  display: grid; grid-template-columns: 240px 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start;
}
.about-arch {
  aspect-ratio: 3 / 4; border-radius: 999px 999px 6px 6px;
  background:
    radial-gradient(ellipse 70% 60% at 50% 30%, #FBF4E4, transparent 70%),
    linear-gradient(180deg, #D8C7A3, #B9A783);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-size: 5rem; color: #2A231C55;
}
/* Replace .about-arch with <img> once a portrait is chosen; keep the arch radius. */
.about h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 1.4rem; }
.about p { font-weight: 300; font-size: 1.05rem; line-height: 1.8; color: var(--ink-2); margin-bottom: 1rem; max-width: 56ch; }
.about .name-note {
  font-family: var(--display); font-size: 1.15rem; line-height: 1.6; color: var(--ink);
  border-left: 2px solid var(--rust); padding-left: 1.2rem; margin-top: 1.8rem;
}
@media (max-width: 700px) {
  .about { grid-template-columns: 1fr; }
  .about-arch { width: 160px; }
}

/* ---------------- CONTACT ---------------- */
.contact {
  background: radial-gradient(ellipse 50% 70% at 50% 110%, #5A3416 0%, transparent 70%), var(--night, #0D0906);
  color: var(--cream); text-align: center;
}
.contact-inner { max-width: 44rem; margin: 0 auto; padding: clamp(5rem, 10vw, 8rem) var(--pad); }
.contact h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin-bottom: 1.2rem; }
.contact p { font-weight: 300; font-size: 1.05rem; color: #E3D6BD; line-height: 1.7; }
.contact .mail {
  display: inline-block; margin: 2.2rem 0 1.2rem;
  font-family: var(--display); font-size: clamp(1.4rem, 3.6vw, 2.2rem);
  text-decoration: none; color: #F2CB8E;
  border-bottom: 1px solid #F2CB8E66; padding-bottom: 4px;
  transition: border-color .25s ease;
}
.contact .mail:hover { border-color: #F2CB8E; }
.contact .small { font-size: .82rem; color: #A89878; }

/* ---------------- REVEAL ON SCROLL ---------------- */
.js .reveal { opacity: 0; transform: perspective(900px) translateY(28px) rotateX(8deg); transform-origin: 50% 100%; transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------------- LEGAL PAGE ---------------- */
.legal { max-width: 62ch; margin: 0 auto; padding: 3rem var(--pad) 6rem; }
.legal h1 { font-size: 2rem; margin: 0 0 2rem; }
.legal h2 { font-size: 1.15rem; margin: 2.2rem 0 .8rem; }
.legal p { font-weight: 300; line-height: 1.75; }
.legal .todo { color: var(--rust); font-weight: 400; }

[hidden] { display: none !important; }

@media (max-width: 600px) {
  .tiles { gap: .5rem; }
  .tile { padding: .8rem; font-size: .8rem; }
  .tile::before { display: none; }
  .t2 { transform: translateY(.8rem); }
}

/* ---------------- SECTORS / PROBLEMS ---------------- */
.sectors { max-width: var(--wrap); margin: 0 auto; padding: clamp(3rem, 6vw, 5rem) var(--pad); }
.sec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); }
.sec-col h3 { font-size: 1.5rem; margin-bottom: 1.2rem; }
.sec-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--ink); }
.sec-list li { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.sec-list strong { font-family: var(--display); font-weight: 400; font-size: 1.45rem; }
.sec-list span { font-weight: 300; font-size: .95rem; line-height: 1.6; color: var(--ink-2); }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.chips li {
  border: 1px solid #2A231C40; border-radius: 999px; padding: .55rem 1rem;
  font-size: .9rem; background: #FBF6EC80;
}
.sec-note { margin-top: 1.4rem; font-weight: 300; font-size: .95rem; color: var(--ink-2); line-height: 1.65; }
@media (max-width: 860px) { .sec-grid { grid-template-columns: 1fr; } }

/* ---------------- OFFER ---------------- */
.offer { max-width: var(--wrap); margin: 0 auto; padding: clamp(3rem, 6vw, 5rem) var(--pad) clamp(5rem, 10vw, 8rem); }
.offer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; }
.paynote { margin-top: 1.4rem; font-weight: 300; font-size: .92rem; color: var(--muted); line-height: 1.6; }
@media (max-width: 1100px) { .offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 8px;
  padding: 2rem 1.8rem; display: flex; flex-direction: column; gap: .7rem;
}
.card-dark { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.card-kind { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.card-dark .card-kind { color: #CDBB98; }
.card h3 { font-size: 1.45rem; }
.card .price { font-family: var(--display); font-size: 1.9rem; color: var(--rust); line-height: 1.2; }
.card-dark .price { color: #F2CB8E; }
.card p:last-child { font-weight: 300; font-size: .95rem; line-height: 1.65; }
.card-dark p:last-child { color: #E3D6BD; }
.pilot {
  margin-top: 1.6rem; padding: 1.4rem 1.8rem; border: 1px dashed #9A4A2680; border-radius: 8px;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
}
.pilot p { font-weight: 300; max-width: 60ch; line-height: 1.6; }
.pilot strong { font-weight: 500; color: var(--rust); }
@media (max-width: 860px) { .offer-grid { grid-template-columns: 1fr; } }

/* ---------------- YOUR PATH: doors you open ---------------- */
.paths { max-width: var(--wrap); margin: 0 auto; padding: clamp(3rem, 6vw, 5rem) var(--pad) clamp(5rem, 10vw, 8rem); }
.pdoors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2rem); }
.pdoor {
  background: #FBF6ECb3; border: 1px solid var(--line); border-radius: 10px;
  padding: 1.6rem 1.6rem 1.4rem; display: flex; flex-direction: column;
  transition: border-color .4s ease, box-shadow .4s ease;
}
.pdoor.open { border-color: #D99A5299; box-shadow: 0 30px 60px -40px #9A4A2680; }
.arch-frame {
  position: relative; width: 112px; height: 150px; margin: 0 0 1.4rem;
  border: 2px solid var(--ink); border-bottom-width: 3px; border-radius: 999px 999px 2px 2px;
  overflow: hidden; perspective: 500px; background: var(--night);
}
.arch-glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 55%, #FFE7BD 0%, var(--glow) 30%, var(--amber) 60%, #9A4A26 100%);
  opacity: .25; transition: opacity .6s ease;
}
.leaf {
  position: absolute; inset: 0; border-radius: 999px 999px 0 0;
  background:
    repeating-linear-gradient(90deg, #0000 0 13px, #00000026 13px 14px),
    linear-gradient(160deg, #6B4A2E, #3A2614);
  transform-origin: 0 50%; transition: transform .9s cubic-bezier(.3,.7,.2,1);
  box-shadow: inset 0 0 0 6px #2A1A0C55;
}
.knob { position: absolute; right: 14px; top: 58%; width: 7px; height: 7px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 6px #F2CB8E; }
.pdoor:hover .leaf { transform: rotateY(-14deg); }
.pdoor.open .leaf { transform: rotateY(-78deg); }
.pdoor.open .arch-glow { opacity: 1; }
.pdoor h3 { font-size: 1.55rem; line-height: 1.15; }
.pdoor-sub { font-weight: 300; color: var(--muted); margin: .35rem 0 1.2rem; }
.opts { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.opt {
  width: 100%; text-align: left; cursor: pointer; font: inherit; color: var(--ink);
  display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: .7rem; align-items: start;
  padding: .75rem .9rem; min-height: 48px; border-radius: 8px;
  background: #FFFFFF66; border: 1px solid #2A231C26;
  transition: background .25s ease, border-color .25s ease, transform .2s ease;
}
.opt:hover { border-color: #2A231C66; transform: translateX(3px); }
.opt .tick {
  width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; border: 1.5px solid #2A231C66;
  position: relative; transition: background .25s ease, border-color .25s ease;
}
.opt[data-single] .tick { border-radius: 50%; }
.opt:not([data-single]) .tick { border-radius: 5px; }
.opt[aria-pressed="true"] { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.opt[aria-pressed="true"] .tick { background: var(--glow); border-color: var(--glow); }
.opt[aria-pressed="true"] .tick::after {
  content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px;
  border: solid var(--night); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.opt-label { font-size: .98rem; line-height: 1.35; }
.opt-hint { grid-column: 2; font-size: .82rem; font-weight: 300; line-height: 1.45; opacity: .75; margin-top: .2rem; }

.path-panel {
  margin-top: 1.6rem; border-radius: 12px; padding: 1.8rem 2rem;
  background:
    radial-gradient(ellipse 50% 120% at 100% 0%, #5A341680, transparent 70%),
    repeating-linear-gradient(90deg, #F2CB8E0a 0 1px, transparent 1px 60px),
    var(--night);
  color: var(--cream);
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2rem; align-items: center;
}
.path-empty { font-family: var(--display); font-size: 1.35rem; color: #CDBB98; }
.path-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.path-list:empty { display: none; }
.path-list li {
  font-size: .92rem; padding: .5rem .9rem; border-radius: 999px;
  border: 1px solid #F2CB8E66; background: #F2CB8E14; color: var(--glow);
  animation: pop .45s cubic-bezier(.3,1.6,.5,1);
}
.path-list li + li::before { content: "→"; margin-right: .6rem; color: #CDBB98; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
.path-note { font-weight: 300; font-size: .95rem; line-height: 1.6; color: #E3D6BD; margin-bottom: 1.1rem; }
.path-cta[aria-disabled="true"] { opacity: .45; pointer-events: none; }
@media (max-width: 960px) {
  .pdoors { grid-template-columns: 1fr; }
  .pdoor { display: grid; grid-template-columns: 90px minmax(0, 1fr); column-gap: 1.2rem; }
  .arch-frame { width: 90px; height: 120px; grid-row: span 2; }
  .opts { grid-column: 1 / -1; margin-top: 1rem; }
  .path-panel { grid-template-columns: 1fr; gap: 1.2rem; padding: 1.4rem 1.3rem; }
}
@media (prefers-reduced-motion: reduce) { .leaf { transition: none; } .path-list li { animation: none; } }

/* ---------------- BRIEF: a short conversation ---------------- */
.brief {
  margin-top: 2.4rem; max-width: 760px; margin-left: auto; margin-right: auto;
  display: grid; gap: 1.4rem; scroll-margin-top: 6rem;
}
.brief-head { display: flex; gap: 1.1rem; align-items: flex-start; margin-bottom: .6rem; }
.avatar {
  flex: none; width: 52px; height: 66px; border-radius: 999px 999px 6px 6px;
  background: radial-gradient(ellipse 70% 60% at 50% 55%, #FFE7BD, var(--glow) 35%, var(--amber) 70%, #9A4A26);
  color: var(--night); font-family: var(--display); font-size: 1.4rem;
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: .5rem;
  box-shadow: 0 10px 30px -12px #9A4A2699;
}
.brief-title { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: .4rem; }
.brief-intro { font-weight: 300; color: var(--ink-2); line-height: 1.6; }
.q { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: .7rem; }
.bubble {
  justify-self: start; max-width: 90%;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 4px 18px 18px 18px; padding: .8rem 1.1rem;
  font-family: var(--display); font-size: 1.15rem; line-height: 1.4; color: var(--ink);
  float: none;
}
legend.bubble { margin-bottom: .7rem; }
.bubble label { cursor: pointer; }
.answer {
  justify-self: end; width: min(100%, 560px);
  font: inherit; font-size: 16px; color: var(--ink);
  background: #FFFFFFb3; border: 1px solid #2A231C33; border-radius: 18px 4px 18px 18px;
  padding: .85rem 1.1rem; min-height: 48px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
textarea.answer { resize: vertical; line-height: 1.55; }
.answer:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px #D99A5240; }
.answer::placeholder { color: #8A7F6C; }
.row2 { justify-self: end; width: min(100%, 560px); display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: .6rem; }
.row2 .answer { width: 100%; }
.chips-row { justify-self: end; display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: .55rem 1.05rem;
  border-radius: 999px; border: 1px solid #2A231C40; background: #FFFFFF80; font-size: .95rem;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.chip:hover span { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); color: var(--glow); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--rust); outline-offset: 2px; }
.send { justify-self: stretch; display: grid; justify-items: end; gap: .8rem; margin-top: .4rem; }
.privacy { font-size: .85rem; color: var(--muted); }
.send-btn { font-size: 1rem; padding: .9rem 1.8rem; min-height: 52px; border: 0; cursor: pointer; font-family: inherit; }
.form-error { color: var(--rust); font-size: .92rem; }
.thanks { background: var(--ink); color: var(--cream); border-radius: 18px 4px 18px 18px; padding: .9rem 1.2rem; max-width: 560px; line-height: 1.55; }
.answer:user-invalid { border-color: var(--rust); }
@media (max-width: 600px) {
  .row2 { grid-template-columns: 1fr; }
  .bubble { max-width: 100%; font-size: 1.05rem; }
  .chips-row { justify-content: flex-start; justify-self: stretch; }
}


/* ================= UX + VISUAL PASS ================= */

/* V1 · numerals that read as numbers (Marcellus draws 1 like I) */
.room-n, .step-n, .mod-n, .sec-n { font-family: var(--body) !important; font-variant-numeric: lining-nums tabular-nums; letter-spacing: .06em; }
.mod-n { font-weight: 300; font-size: 1.35rem; }

/* wordmark with logo mark */
.site-nav .word { display: inline-flex; align-items: center; gap: .55rem; }
.word-mark { width: 20px; height: 26px; color: currentColor; flex: none; }

/* UX1 · mobile menu */
.menu-btn { display: none; }
@media (max-width: 860px) {
  .site-nav { gap: .8rem; }
  .menu-btn {
    display: inline-flex; align-items: center; gap: .5rem; order: 3;
    background: none; border: 1px solid currentColor; border-radius: 999px; color: inherit;
    padding: .45rem .9rem; min-height: 40px; font: inherit; font-size: .85rem; cursor: pointer;
  }
  .menu-lines, .menu-lines::before, .menu-lines::after { display: block; width: 14px; height: 1.5px; background: currentColor; position: relative; transition: transform .3s ease, opacity .3s ease; }
  .menu-lines::before, .menu-lines::after { content: ""; position: absolute; left: 0; }
  .menu-lines::before { top: -5px; } .menu-lines::after { top: 5px; }
  .menu-btn[aria-expanded="true"] .menu-lines { background: transparent; }
  .menu-btn[aria-expanded="true"] .menu-lines::before { transform: translateY(5px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] .menu-lines::after { transform: translateY(-5px) rotate(-45deg); }
  .langs { order: 2; }
  .nav-links {
    position: absolute; left: .8rem; right: .8rem; top: calc(100% + .3rem);
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--night); color: var(--cream); border-radius: 14px; padding: .6rem;
    box-shadow: 0 30px 60px -20px #000a;
    opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .25s ease, transform .25s ease;
  }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: .95rem 1rem; border-radius: 10px; font-size: 1.05rem; display: block !important; border: 0; }
  .nav-links a:hover { background: #F4ECDC12; text-decoration: none !important; }
  .nav-links .nav-cta { background: linear-gradient(135deg, var(--glow), var(--amber)); color: var(--night); margin-top: .4rem; text-align: center; }
  .site-nav .word span, .menu-label { }
}
@media (max-width: 420px) { .menu-label { display: none; } .langs a { padding: .35rem .3rem; } }

/* V2 · soft transitions between dark and light */
.why { position: relative; }
.why::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 140px; background: linear-gradient(#2A231C00, #8A7A6340 35%, #CDBFA6c0 70%, var(--stone)); pointer-events: none; }
.why-inner { padding-bottom: clamp(6rem, 11vw, 9rem); }
.contact { position: relative; }
.contact { border-radius: 50% 50% 0 0 / clamp(40px, 7vw, 110px) clamp(40px, 7vw, 110px) 0 0; margin-top: 2rem; }
.contact-inner { padding-top: clamp(6rem, 10vw, 9rem); }

/* V4 · "More rooms" as a closed door */
.closed-door { position: relative; width: 70px; height: 92px; margin: .4rem 0 1.4rem; border: 1.5px dashed #2A231C66; border-radius: 999px 999px 2px 2px; overflow: hidden; }
.cd-leaf { position: absolute; inset: 6px 6px 0; border-radius: 999px 999px 0 0; background: repeating-linear-gradient(90deg, #0000 0 9px, #2A231C14 9px 10px), #D8C7A3; }
.cd-light { position: absolute; left: 6px; right: 6px; bottom: 0; height: 3px; background: var(--glow); box-shadow: 0 0 12px 3px #F2CB8E; animation: under 3.5s ease-in-out infinite; }
@keyframes under { 50% { opacity: .45; } }

/* V5 · sector rows */
.sec-list li { display: flex; align-items: baseline; gap: 1.1rem; cursor: default; transition: padding .3s ease, background .3s ease; }
.sec-n { font-size: .8rem; color: var(--rust); }
.sec-arrow { margin-left: auto; opacity: 0; transform: translateX(-8px); transition: opacity .3s ease, transform .3s ease; color: var(--rust); }
.sec-list li:hover { padding-left: .6rem; background: linear-gradient(90deg, #FBF6EC, transparent); }
.sec-list li:hover .sec-arrow { opacity: 1; transform: none; }

/* V3 · the four months as one timeline */
.steps-4 { position: relative; }
.steps-4 li { border-top: 0 !important; position: relative; padding-top: 2.2rem !important; }
.steps-4::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: linear-gradient(90deg, var(--ink), var(--amber) 70%, var(--glow)); border-radius: 2px; }
.steps-4 li::before { content: ""; position: absolute; left: 0; top: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--stone); border: 2px solid var(--ink); }
.steps-4 li:last-child::before { background: var(--glow); border-color: var(--amber); box-shadow: 0 0 0 6px #F2CB8E40, 0 0 22px #F2CB8E; }
@media (max-width: 1000px) { .steps-4::before { display: none; } .steps-4 li { border-left: 2px solid #2A231C26; padding-left: 1.4rem; padding-top: .2rem !important; } .steps-4 li::before { left: -9px; top: 2px; } }

/* UX4 · pick hints */
.pick { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--rust); margin: 0 0 .8rem; }
@media (max-width: 960px) { .pick { grid-column: 1 / -1; margin-top: .8rem; } }

/* UX5 · count + reset */
.path-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.path-count { display: inline-grid; place-items: center; min-width: 1.6em; height: 1.6em; margin-left: .4rem; border-radius: 999px; background: var(--glow); color: var(--night); font-weight: 500; letter-spacing: 0; }
.path-reset { background: none; border: 0; color: #CDBB98; font: inherit; font-size: .85rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: .4rem 0; }
.path-reset:hover { color: var(--glow); }

/* V6 · the form as one paper card */
.brief {
  max-width: 820px; background: #FBF6ECd9; border: 1px solid var(--line); border-radius: 22px;
  padding: clamp(1.4rem, 4vw, 2.6rem); box-shadow: 0 40px 80px -50px #2A231C88;
}
.req { color: var(--rust); font-family: var(--body); }
.send-btn { display: inline-flex; gap: .7rem; align-items: center; }
.send-btn .arr { transition: transform .25s ease; }
.send-btn:hover .arr { transform: translateX(4px); }

/* V7 · Academy video frame */
.video-frame {
  margin-top: 2.2rem; display: block; position: relative; text-decoration: none; color: var(--cream);
  aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; max-width: 460px;
  background:
    radial-gradient(ellipse 50% 70% at 75% 60%, #D99A5266, transparent 70%),
    repeating-linear-gradient(90deg, #F2CB8E0d 0 1px, transparent 1px 40px),
    var(--night);
  box-shadow: 0 30px 60px -30px #2A231Caa;
  transition: transform .4s ease;
}
.video-frame:hover { transform: translateY(-4px); }
.vf-tag { position: absolute; left: 1.1rem; top: 1rem; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: #CDBB98; }
.vf-play {
  position: absolute; left: 50%; top: 46%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--glow), var(--amber)); box-shadow: 0 0 0 10px #F2CB8E22, 0 0 40px #F2CB8E66;
  transition: transform .3s ease;
}
.vf-play::after { content: ""; position: absolute; left: 26px; top: 21px; border-left: 16px solid var(--night); border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.video-frame:hover .vf-play { transform: scale(1.08); }
.vf-title { position: absolute; left: 1.1rem; bottom: 1.6rem; font-family: var(--display); font-size: 1.25rem; }
.vf-bar { position: absolute; left: 1.1rem; right: 1.1rem; bottom: .9rem; height: 3px; background: #F4ECDC26; border-radius: 3px; }
.vf-bar i { position: absolute; inset: 0 62% 0 0; background: var(--glow); border-radius: 3px; }

/* V8 · Instagram tiles */
.tile { text-decoration: none; transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s ease; box-shadow: 0 24px 40px -28px #2A231Cbb; }
.tile:hover { transform: translateY(-8px) rotate(-1deg); box-shadow: 0 36px 50px -28px #2A231Ccc; }
.t2:hover { transform: translateY(calc(1.5rem - 8px)) rotate(1deg); }
.t1::before, .t2::before, .t3::before { display: none !important; }
.tile-mark { position: absolute; left: 1.1rem; top: 1.1rem; width: 26px; height: 34px; color: currentColor; }
.t3 { background: linear-gradient(160deg, var(--paper), #EADBC0); }
.t1 { background: radial-gradient(ellipse 80% 60% at 70% 100%, #5A3416, transparent 70%), var(--night); }

/* V9 · About: the brand mark, lit */
.about-arch {
  background: radial-gradient(ellipse 70% 55% at 50% 60%, #5A3416, transparent 75%), var(--night) !important;
  border: 0 !important; box-shadow: 0 40px 70px -40px #2A231Ccc; color: var(--cream);
}
.about-mark { width: 42%; height: 60%; margin-top: 18%; filter: drop-shadow(0 0 18px #F2CB8E66); }

/* UX3 · contact */
.ctas.center { justify-content: center; margin-top: 2rem; }
.contact .or { margin-top: 1.4rem; font-size: .85rem; color: #A89878; }
.contact .mail { margin-top: .4rem; font-size: clamp(1.2rem, 3vw, 1.6rem); }

/* UX10 + V10 · footer */
.site-footer {
  background: var(--night); color: #CDBB98;
  display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 2rem;
  padding: 3rem max(var(--pad), calc((100% - var(--wrap)) / 2 + var(--pad))) 1.6rem;
  font-size: .9rem;
}
.foot-brand { display: flex; gap: 1rem; align-items: center; }
.foot-mark { width: 38px; height: 50px; color: var(--cream); flex: none; }
.foot-word { font-family: var(--display); font-size: 1.5rem; color: var(--cream); }
.foot-tag { font-size: .85rem; color: #A89878; margin-top: .2rem; }
.foot-col { display: flex; flex-direction: column; gap: .55rem; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--glow); }
.foot-langs a { text-decoration: underline; text-underline-offset: 3px; }
.foot-base { grid-column: 1 / -1; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; border-top: 1px solid #F4ECDC1f; padding-top: 1.2rem; font-size: .8rem; color: #8A7F6C; }
@media (max-width: 760px) { .site-footer { grid-template-columns: 1fr; } }

/* UX7 · floating "Find your path" on phones */
.float-cta {
  position: fixed; left: 50%; bottom: 1rem; z-index: 30; transform: translate(-50%, 140%);
  background: linear-gradient(135deg, var(--glow), var(--amber)); color: var(--night); text-decoration: none; font-weight: 500;
  padding: .85rem 1.5rem; border-radius: 999px; box-shadow: 0 16px 34px -10px #0009; white-space: nowrap;
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.float-cta.show { transform: translate(-50%, 0); }
@media (min-width: 861px) { .float-cta { display: none !important; } }

.tile span { font-family: var(--body); font-weight: 500; font-variant-numeric: lining-nums; letter-spacing: .01em; }

/* About arch: plaster, weave, a doorframe, light on the floor */
.about-arch {
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(ellipse 60% 45% at 50% 58%, #6A3E1A 0%, #3A2410 45%, transparent 75%),
    linear-gradient(180deg, #1A120B 0%, #120C07 60%, #0B0704 100%) !important;
  box-shadow:
    inset 0 0 0 1px #F2CB8E2e,
    inset 0 40px 80px -30px #000000cc,
    inset 0 -30px 60px -30px #000000aa,
    0 50px 80px -45px #2A231Cdd !important;
}
.about-arch::before {
  content: ""; position: absolute; inset: 7% 8% 0; z-index: 2;
  border: 1px solid #F2CB8E55; border-bottom: 0; border-radius: 999px 999px 0 0;
  box-shadow: inset 0 0 30px #F2CB8E14;
}
.about-arch::after {
  content: ""; position: absolute; inset: 13% 15% 0; z-index: 2;
  border: 1px solid #F2CB8E26; border-bottom: 0; border-radius: 999px 999px 0 0;
}
.aa-weave {
  position: absolute; inset: 0; z-index: 1; opacity: .9; mix-blend-mode: overlay;
  background:
    repeating-linear-gradient(115deg, #0000 0 3px, #ffffff10 3px 4px),
    repeating-linear-gradient(25deg, #0000 0 3px, #00000030 3px 4px);
}
.aa-grain {
  position: absolute; inset: -20%; z-index: 1; opacity: .55; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 .86  0 0 0 0 .66  0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 1.4s steps(4) infinite;
}
@keyframes grainShift { 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } }
.aa-floor {
  position: absolute; left: -10%; right: -10%; bottom: -8%; height: 34%; z-index: 1;
  background: radial-gradient(ellipse 45% 55% at 50% 0%, #F2CB8E66 0%, #D99A5233 35%, transparent 70%);
  filter: blur(4px);
}
.aa-dust { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.aa-dust i {
  position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #F6D7A2;
  box-shadow: 0 0 6px #F2CB8E; opacity: 0; animation: mote 7s ease-in-out infinite;
}
.aa-dust i:nth-child(1) { left: 38%; top: 70%; animation-delay: 0s; }
.aa-dust i:nth-child(2) { left: 58%; top: 64%; animation-delay: 1.2s; width: 2px; height: 2px; }
.aa-dust i:nth-child(3) { left: 46%; top: 76%; animation-delay: 2.4s; }
.aa-dust i:nth-child(4) { left: 64%; top: 72%; animation-delay: 3.6s; width: 2px; height: 2px; }
.aa-dust i:nth-child(5) { left: 34%; top: 60%; animation-delay: 4.8s; width: 2px; height: 2px; }
.aa-dust i:nth-child(6) { left: 52%; top: 80%; animation-delay: 6s; }
@keyframes mote { 0% { opacity: 0; transform: translateY(0); } 25% { opacity: .9; } 100% { opacity: 0; transform: translateY(-90px) translateX(8px); } }
.about-mark { position: relative; z-index: 4; animation: doorBreathe 6s ease-in-out infinite; }
@keyframes doorBreathe { 50% { filter: drop-shadow(0 0 28px #F2CB8Eaa) brightness(1.08); } }
@media (prefers-reduced-motion: reduce) { .aa-grain, .aa-dust i, .about-mark { animation: none; } }

/* ---------------- ACADEMY: watch buttons ---------------- */
.watch {
  margin-top: .8rem; display: inline-flex; align-items: center; gap: .55rem; cursor: pointer;
  font: inherit; font-size: .85rem; color: var(--ink); background: none;
  border: 1px solid #2A231C40; border-radius: 999px; padding: .45rem .95rem .45rem .5rem; min-height: 40px;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.watch:hover { background: var(--ink); color: var(--glow); border-color: var(--ink); }
.watch-play { width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(135deg, var(--glow), var(--amber)); position: relative; }
.watch-play::after { content: ""; position: absolute; left: 9px; top: 7px; border-left: 8px solid var(--night); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.mod-soon { opacity: .6; }
.soon { font-family: var(--body); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; border: 1px dashed #2A231C55; border-radius: 999px; padding: .2rem .55rem; vertical-align: middle; margin-left: .3rem; color: var(--muted); }
button.video-frame { width: 100%; border: 0; padding: 0; cursor: pointer; font: inherit; text-align: left; }

/* ---------------- LESSON PLAYER ---------------- */
.player {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: clamp(.6rem, 3vw, 2rem);
  background: #0D0906e8; backdrop-filter: blur(8px);
  animation: plIn .35s ease;
}
.player[hidden] { display: none !important; }
@keyframes plIn { from { opacity: 0; } }
.pl-shell {
  width: min(1040px, 100%); max-height: 100%; display: flex; flex-direction: column; gap: 1rem;
  color: var(--cream);
}
.pl-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.pl-meta { display: flex; align-items: center; gap: .7rem; font-size: .85rem; letter-spacing: .08em; color: #CDBB98; }
.pl-mark { width: 18px; height: 24px; color: var(--cream); flex: none; }
.pl-close { width: 44px; height: 44px; border-radius: 50%; border: 1px solid #F4ECDC40; background: none; color: var(--cream); font-size: 1.5rem; cursor: pointer; }
.pl-close:hover { border-color: var(--glow); color: var(--glow); }
.pl-bars { display: flex; gap: 6px; }
.pl-bars span { flex: 1; height: 3px; border-radius: 3px; background: #F4ECDC26; overflow: hidden; position: relative; }
.pl-bars span i { position: absolute; inset: 0; width: 0; background: var(--glow); }
.pl-bars span.done i { width: 100%; }
.pl-stage {
  position: relative; overflow: auto; aspect-ratio: 16 / 9; max-height: 70vh; border-radius: 18px;
  background:
    radial-gradient(ellipse 45% 65% at 85% 110%, #6A3E1A 0%, transparent 70%),
    repeating-linear-gradient(90deg, #F2CB8E08 0 1px, transparent 1px 64px),
    #120C07;
  box-shadow: inset 0 0 0 1px #F2CB8E26, 0 50px 100px -40px #000;
  padding: clamp(1.4rem, 5vw, 4rem);
  display: flex; flex-direction: column; justify-content: center;
}
.pl-stage::after {
  content: ""; position: absolute; right: clamp(1rem, 4vw, 3rem); bottom: 0; width: clamp(70px, 12vw, 140px); aspect-ratio: 3 / 4;
  border: 1px solid #F2CB8E40; border-bottom: 0; border-radius: 999px 999px 0 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 50% at 50% 70%, #F2CB8E30, transparent 70%);
}
.slide { max-width: 780px; animation: slideIn .6s cubic-bezier(.2,.7,.2,1); position: relative; z-index: 1; }
@keyframes slideIn { from { opacity: 0; transform: translateY(14px); } }
.slide .k { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--glow); margin-bottom: 1rem; }
.slide h3 { font-size: clamp(1.6rem, 4vw, 3rem); line-height: 1.1; margin-bottom: 1.1rem; color: #FFF4E2; }
.slide.is-title h3 { font-size: clamp(2rem, 5.5vw, 4rem); background: linear-gradient(180deg, #FFF6E6 10%, var(--glow) 75%, var(--amber)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.slide p { font-weight: 300; font-size: clamp(1rem, 1.8vw, 1.3rem); line-height: 1.6; color: #E9DDC6; max-width: 46ch; }
.slide ul { list-style: none; padding: 0; margin: .4rem 0 0; display: grid; gap: .7rem; }
.slide li { font-size: clamp(1rem, 1.8vw, 1.25rem); line-height: 1.45; padding-left: 1.6rem; position: relative; color: #F4ECDC; opacity: 0; animation: liIn .5s ease forwards; }
.slide li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 13px; border: 1.5px solid var(--glow); border-bottom: 0; border-radius: 6px 6px 0 0; }
.slide li:nth-child(1) { animation-delay: .25s; } .slide li:nth-child(2) { animation-delay: .7s; } .slide li:nth-child(3) { animation-delay: 1.15s; } .slide li:nth-child(4) { animation-delay: 1.6s; }
@keyframes liIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
.box { margin-top: 1.2rem; border-radius: 12px; padding: 1rem 1.2rem; font-size: clamp(.95rem, 1.6vw, 1.1rem); line-height: 1.55; max-width: 62ch; }
.box small { display: block; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: .4rem; }
.box-ex { background: #F4ECDC12; border: 1px solid #F4ECDC26; color: #F4ECDC; }
.box-ex small { color: #CDBB98; }
.cmp { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: .8rem; max-width: 820px; }
.box-before { background: #9A4A2622; border: 1px solid #9A4A2666; color: #E9DDC6; }
.box-before s { text-decoration-color: #E08A5Eaa; }
.box-before small { color: #E08A5E; text-decoration: none; display: block; }
.box-after { background: #F2CB8E1a; border: 1px solid #F2CB8E66; color: #FFF4E2; }
.box-after small { color: var(--glow); }
.prompt-box { position: relative; background: #0B0704; border: 1px solid #F2CB8E55; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: clamp(.85rem, 1.4vw, 1rem); color: #FFE7BD; padding-right: 6.5rem; }
.copy-btn { position: absolute; top: .7rem; right: .7rem; font: inherit; font-family: var(--body); font-size: .8rem; background: linear-gradient(135deg, var(--glow), var(--amber)); color: var(--night); border: 0; border-radius: 999px; padding: .45rem .9rem; cursor: pointer; }
.next-lesson { margin-top: 1.6rem; }
.pl-controls { display: flex; align-items: center; gap: .6rem; justify-content: center; }
.pl-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid #F4ECDC40; background: none; color: var(--cream); font-size: 1.1rem; cursor: pointer; display: grid; place-items: center; }
.pl-btn:hover { border-color: var(--glow); color: var(--glow); }
.pl-toggle { width: 58px; height: 58px; background: linear-gradient(135deg, var(--glow), var(--amber)); border: 0; color: var(--night); }
.pl-icon { width: 14px; height: 16px; border-left: 4px solid var(--night); border-right: 4px solid var(--night); }
.pl-toggle.paused .pl-icon { border-right: 0; border-left: 14px solid var(--night); border-top: 8px solid transparent; border-bottom: 8px solid transparent; width: 0; height: 0; margin-left: 4px; }
.pl-controls { position: relative; }
.pl-count { position: absolute; right: 0; font-size: .8rem; color: #A89878; font-variant-numeric: tabular-nums; }
@media (max-width: 700px) {
  .pl-stage { aspect-ratio: auto; min-height: 62vh; max-height: 72vh; justify-content: flex-start; }
  .cmp { grid-template-columns: 1fr; }
  .pl-count { display: none; }
  .prompt-box { padding-right: 1.2rem; padding-top: 3rem; }
}
@media (prefers-reduced-motion: reduce) { .slide, .slide li { animation: none; opacity: 1; } }
body.pl-open { overflow: hidden; }

body.pl-open .float-cta { display: none !important; }

/* Video lessons */
.player.is-video .pl-bars, .player.is-video .pl-controls { display: none; }
.player.is-video .pl-stage { padding: 0; aspect-ratio: 16 / 9; max-height: none; background: #000; display: block; }
.player.is-video .pl-stage::after { display: none; }
.pl-video { display: block; width: 100%; height: 100%; border-radius: 18px; background: #000; }
