@import url('footer.css');
@import url('/fonts.css');

:root {
  --cream: #f7f2e9;
  --cream-2: #efe5d4;
  --cream-3: #e7dac3;
  --ink: #2a2521;
  --ink-soft: #675f57;
  --line: #ddcfb8;
  --gold: #bd8c29;
  --gold-bright: #d4af37;
  --brown: #96694a;
  --white: #fffdf9;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Mulish", system-ui, sans-serif;
  --wrap: 1200px;
  --radius: 14px;
  --shadow: 0 22px 55px -30px rgba(58, 42, 25, .55);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  width: 100%;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body > main,
body > .site-footer { transition: opacity .24s ease, transform .28s cubic-bezier(.22, .61, .36, 1); }
body.page-leaving { pointer-events: none; }
body.page-leaving > main,
body.page-leaving > .site-footer { opacity: 0; transform: translate3d(0, 6px, 0); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
h1, h2, h3, h4 {
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -.018em;
  line-height: 1.05;
}
h1 { font-size: clamp(3rem, 6.2vw, 5.2rem); }
h2 { font-size: clamp(2.25rem, 4vw, 3.55rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); }
.home-page main :is(h1, h2, h3, h4),
.home-page main :is(h1, h2, h3, h4) :is(em, .serif-accent) { font-weight: 600; }
.home-page main :is(.wisdom-note, .wisdom-note em) { font-weight: 600; }
p { color: var(--ink-soft); }

.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 999; background: var(--ink); color: white; padding: .7rem 1rem; }
.skip-link:focus { top: 1rem; }
.wrap { width: min(calc(100% - 3rem), var(--wrap)); margin-inline: auto; }
.narrow { width: min(calc(100% - 3rem), 760px); margin-inline: auto; }
.section { padding-block: clamp(4.5rem, 8vw, 8rem); }
.section--flush-top { padding-top: 0; }
.section--tint { background: var(--cream-2); }
.section--dark { background: var(--ink); color: var(--cream); }
.center { text-align: center; }
.stack > * + * { margin-top: 1.1rem; }
.stack--spaced { margin-top: 1.8rem; }
.section-title-offset { margin-top: 1rem; }

.page-hero .eyebrow,
.course-page-label { display: block; margin-bottom: 1.5rem; color: #947021; font-family: var(--sans); font-size: clamp(.95rem, 1.3vw, 1.1rem); font-weight: 700; letter-spacing: .3em; line-height: 1.4; text-transform: uppercase; }
.lead { color: var(--ink-soft); font-size: clamp(1.05rem, 1.6vw, 1.24rem); line-height: 1.65; }
.serif-accent { color: var(--brown); font-family: var(--serif); font-style: italic; }
.serif-accent--gold { color: var(--gold-bright); }
.wisdom-accent { font-size: 1.3rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-height: 50px;
  padding: .8rem 1.55rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 800;
  transition: transform .2s ease, background-color .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--gold); color: var(--white); box-shadow: 0 12px 24px -16px rgba(106, 72, 15, .75); }
.btn--primary:hover { background: #a87920; }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--cream); }
.btn--light { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--light:hover { background: #fff; color: var(--ink); }
.home-page main .btn {
  position: relative;
  isolation: isolate;
  border-radius: 18px 2px 18px 2px;
  letter-spacing: .025em;
}
.home-page main .btn::after {
  position: absolute;
  inset: 4px;
  z-index: -1;
  border: 1px solid currentColor;
  border-radius: 14px 1px 14px 1px;
  content: "";
  opacity: .14;
  pointer-events: none;
}
.home-page main .btn--primary { box-shadow: 0 15px 28px -19px rgba(106, 72, 15, .9); }
.home-page main .btn--ghost::after { opacity: .1; }
.home-page main .btn--light::after { opacity: .22; }
.text-link { color: var(--gold); font-weight: 800; }
.arrow { display: inline-block; transition: transform .2s ease; }
a:hover .arrow { transform: translateX(4px); }

/* Homepage opening — the alchemy seal gives way to the hero. */
.site-intro { display: none; }
html.intro-pending .site-intro {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  overflow: hidden;
  place-items: center;
  background: var(--cream);
  color: var(--ink);
  transform: translate3d(0, 0, 0);
  transition: transform 1.05s cubic-bezier(.76, 0, .24, 1), visibility 0s linear 1.05s;
  animation: intro-failsafe 0s 5s forwards;
  will-change: transform;
}
body.intro-active {
  overflow: hidden;
  animation: intro-scroll-failsafe 0s 5s forwards;
}
.site-intro::before,
.site-intro::after {
  position: absolute;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(189, 140, 41, .42), transparent);
  content: "";
  opacity: 0;
  transform: scaleX(.25);
  animation: intro-rule 1.25s .15s cubic-bezier(.16, 1, .3, 1) forwards;
}
.site-intro::before { top: 12%; }
.site-intro::after { bottom: 12%; animation-delay: .26s; }
.site-intro__inner { display: grid; justify-items: center; transform: translateY(-1vh); }
.site-intro__mark { position: relative; display: grid; width: clamp(112px, 10vw, 146px); aspect-ratio: 1; place-items: center; }
.site-intro__mark img {
  position: relative;
  z-index: 2;
  width: clamp(76px, 6.6vw, 96px);
  opacity: 0;
  filter: drop-shadow(0 14px 18px rgba(76, 55, 30, .16));
  transform: scale(.82) rotate(-5deg);
  animation: intro-mark-in 1.15s .12s cubic-bezier(.16, 1, .3, 1) forwards;
}
.site-intro__orbit {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(189, 140, 41, .36);
  border-radius: 50%;
  opacity: 0;
  transform: scale(.7) rotate(-45deg);
  animation: intro-orbit-in 1.2s .08s cubic-bezier(.16, 1, .3, 1) forwards, intro-orbit-drift 7s 1.25s linear infinite;
}
.site-intro__orbit::before,
.site-intro__orbit::after {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(189, 140, 41, .08);
  content: "";
}
.site-intro__orbit::before { top: 9px; left: 25%; }
.site-intro__orbit::after { right: 8px; bottom: 28%; width: 4px; height: 4px; }
.site-intro__name {
  margin-top: 1.15rem;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 500;
  letter-spacing: .04em;
  line-height: 1;
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  animation: intro-name-in 1s .42s cubic-bezier(.16, 1, .3, 1) forwards;
}
.site-intro__name em { color: var(--brown); font-weight: 400; }
.site-intro__line {
  width: 76px;
  height: 1px;
  margin-top: 1.35rem;
  background: var(--gold);
  opacity: 0;
  transform: scaleX(0);
  animation: intro-line-in 1s .66s cubic-bezier(.16, 1, .3, 1) forwards;
}
html.intro-pending body.home-page .site-header {
  opacity: 0;
  transform: translate3d(0, -18px, 0);
  animation: intro-header-failsafe 0s 5s forwards;
}
html.intro-revealing .site-intro { visibility: hidden; transform: translate3d(0, -100%, 0); }
html.intro-revealing .site-intro__inner { opacity: 0; transform: translate3d(0, -22px, 0); transition: opacity .34s ease, transform .5s ease; }
html.intro-revealing body.home-page .site-header {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: opacity .9s .12s ease, transform 1.05s .12s cubic-bezier(.16, 1, .3, 1), background-color .3s ease, border-color .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
@keyframes intro-mark-in { to { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes intro-orbit-in { to { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes intro-orbit-drift { to { rotate: 1turn; } }
@keyframes intro-name-in { to { opacity: 1; transform: translate3d(0, 0, 0); } }
@keyframes intro-line-in { to { opacity: .72; transform: scaleX(1); } }
@keyframes intro-rule { to { opacity: 1; transform: scaleX(1); } }
@keyframes intro-failsafe { to { visibility: hidden; pointer-events: none; } }
@keyframes intro-header-failsafe { to { opacity: 1; transform: translate3d(0, 0, 0); } }
@keyframes intro-scroll-failsafe { to { overflow-x: hidden; overflow-y: auto; } }

/* Header */
.site-header {
  position: sticky;
  overflow-anchor: none;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: transparent;
  box-shadow: none;
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  transform: translate3d(0, 0, 0);
  transition: transform .42s cubic-bezier(.22,.61,.36,1), background-color .3s ease, border-color .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
  will-change: transform;
}
.site-header.nav-hidden { transform: translate3d(0, calc(-100% - 2px), 0); }
.site-header.nav-scrolled {
  border-bottom-color: rgba(189, 140, 41, .18);
  background: rgba(247, 242, 233, .82);
  box-shadow: 0 12px 32px -26px rgba(42, 37, 33, .75);
  backdrop-filter: blur(16px) saturate(125%);
  -webkit-backdrop-filter: blur(16px) saturate(125%);
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 96px; gap: 1.5rem; }
.brand { display: flex; flex: 0 0 auto; align-items: center; gap: .72rem; }
.brand img { width: 64px; height: 64px; filter: drop-shadow(0 7px 9px rgba(106, 72, 15, .14)); }
.brand::after { color: var(--gold); content: "Alchymie\A moudrosti"; font-family: var(--serif); font-size: 1.3rem; font-weight: 600; letter-spacing: .01em; line-height: 1.05; white-space: pre; }
.nav-links { display: flex; align-items: center; gap: clamp(1.2rem, 2.3vw, 2.15rem); }
.nav-links a { position: relative; font-size: 1rem; font-weight: 700; white-space: nowrap; }
.nav-links a::after { position: absolute; right: 0; bottom: -.55rem; left: 0; height: 2px; border-radius: 2px; background: var(--gold); content: ""; transform: scaleX(0); transition: transform .2s ease; }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-actions { display: flex; flex: 0 0 auto; align-items: center; gap: .8rem; }
.nav-actions .btn { min-height: 58px; padding-inline: 1.9rem; font-size: .95rem; }
.logout { padding: .5rem 1.1rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); font-size: .8rem; }
.nav-toggle { display: none; }

/* Page headings and homepage */
.page-hero { padding-block: clamp(4.7rem, 9vw, 8.6rem) clamp(3.2rem, 6vw, 5.6rem); text-align: center; }
.page-hero--about { padding-top: clamp(3.8rem, 8vw, 7.5rem); }
.page-hero .lead { max-width: 760px; margin: 2rem auto 0; }
.home-hero { padding-block: clamp(1.5rem, 3vw, 3rem) clamp(3.5rem, 6vw, 5.5rem); }
.hero-grid { display: grid; min-height: min(720px, calc(100svh - 96px)); grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); align-items: center; gap: clamp(2.5rem, 4.5vw, 4.75rem); }
.hero-grid > *, .split > *, .founder > *, .contact-grid > *, .footer-grid > * { min-width: 0; }
.hero-copy { position: relative; z-index: 2; padding-block: clamp(3rem, 6vw, 5.25rem); }
.hero-copy h1 {
  max-width: 7.6em;
  margin: 0 0 2.15rem;
  font-size: clamp(4.1rem, 6.4vw, 5.95rem);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: .98;
  text-wrap: balance;
}
.hero-copy h1 em { color: var(--brown); font-style: italic; }
.hero-copy .lead { max-width: 39ch; margin: 0; font-size: clamp(1.04rem, 1.35vw, 1.16rem); line-height: 1.88; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.65rem; }
.home-hero .hero-actions .btn { min-height: 62px; padding: 1rem 2.15rem; font-size: 1rem; }
.hero-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Viewport units do not shrink with the shared desktop CSS zoom. */
  margin-right: clamp(-12.5rem, calc((var(--wrap) - 100vw / var(--desktop-scale, 1)) / 2), -1.5rem);
  padding: 1.25rem 0 1.5rem;
}
.hero-portrait {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  margin: 0;
  padding: 0;
  background: var(--cream-2);
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%, 0 13%);
  box-shadow: 0 34px 70px -48px rgba(42,37,33,.76);
}
.hero-portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 51% 45%; }
.hero-portrait-outline {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  pointer-events: none;
  stroke: rgba(189, 140, 41, .82);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}
.hero-portrait-outline polygon { vector-effect: non-scaling-stroke; }
.motion-ready.intro-skipped .hero-portrait:not(.image-ready) img { opacity: 0; }
.motion-ready.intro-skipped .hero-portrait.image-ready img { animation: hero-image-ready .9s cubic-bezier(.16, 1, .3, 1) both; }
.motion-ready.intro-skipped .hero-portrait:not(.image-ready)::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(189, 140, 41, .25);
  border-top-color: var(--gold);
  border-radius: 50%;
  content: "";
  transform: translate(-50%, -50%);
  animation: hero-image-loading 1.1s linear infinite;
}
@keyframes hero-image-loading { to { transform: translate(-50%, -50%) rotate(1turn); } }
@keyframes hero-image-ready {
  from { opacity: 0; transform: scale(1.015); }
  to { opacity: 1; transform: scale(1); }
}

.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(3rem, 7vw, 6.5rem); }
.split-media img { width: 100%; aspect-ratio: 5 / 4; border-radius: var(--radius); object-fit: cover; box-shadow: var(--shadow); }
.split-body h2 { margin: 1rem 0 1.4rem; }
.split-body p { line-height: 1.82; }
.split--reverse .split-media { order: 2; }

.situation-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.25rem; margin-top: 3rem; padding: 0; list-style: none; }
.situation-card {
  --card-copy-opacity: 1;
  --card-index-opacity: 1;
  position: relative;
  isolation: isolate;
  display: flex;
  min-width: 0;
  height: 330px;
  align-items: stretch;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(1.5rem, 2.4vw, 2rem);
  border: 1px solid rgba(189, 140, 41, .42);
  border-radius: 36px 3px 36px 3px;
  background:
    radial-gradient(circle at 12% 8%, rgba(212, 175, 55, .1), transparent 34%),
    linear-gradient(145deg, #fffdf9 0%, #f9f3e8 100%);
  box-shadow:
    inset 0 0 0 8px rgba(255, 253, 249, .88),
    inset 0 0 0 9px rgba(189, 140, 41, .24),
    0 22px 46px -32px rgba(58, 42, 25, .5);
  text-align: left;
}
.situation-card::before,
.situation-card::after { position: absolute; z-index: 2; content: ""; pointer-events: none; }
.situation-card-index {
  position: relative;
  z-index: 1;
  color: var(--gold);
  font-family: var(--sans);
  font-size: clamp(3.4rem, 5.4vw, 5rem);
  font-weight: 500;
  letter-spacing: .02em;
  line-height: .8;
  opacity: var(--card-index-opacity);
}
.situation-card-copy {
  position: relative;
  z-index: 1;
  opacity: var(--card-copy-opacity);
  transform: translate3d(0, calc((1 - var(--card-copy-opacity)) * 18px), 0);
}
.situation-card-copy::before { display: block; width: 42px; height: 1px; margin-bottom: 1rem; background: var(--gold); content: ""; transform: scaleX(var(--card-copy-opacity)); transform-origin: left; }
.situation-card h3 { color: var(--brown); font-size: clamp(1.6rem, 2.2vw, 2.05rem); font-style: italic; font-weight: 500; }
.situation-card p { margin-top: .7rem; font-size: .94rem; line-height: 1.58; }
.wisdom-note {
  max-width: 19ch;
  margin: clamp(3.5rem, 6vw, 5.75rem) auto 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(2.65rem, 4.8vw, 4.65rem);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: .98;
  text-wrap: balance;
}
.wisdom-note-line { display: block; }
.wisdom-note-line:first-child { color: var(--brown); }
.wisdom-note em { font-style: italic; font-weight: 500; }
/* Let the browser handle horizontal gestures and momentum on every input device. */
.situation-controls { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1rem; }
.situation-controls button { position: relative; display: block; width: 44px; height: 44px; padding: 0; border: 1px solid var(--gold); border-radius: 50%; background: var(--white); color: var(--brown); font-size: 0; cursor: pointer; }
.situation-controls button::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: .55rem;
  height: .55rem;
  margin: -.275rem 0 0 -.275rem;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  content: "";
  transform-origin: center;
}
.situation-controls [data-card-previous]::before { transform: rotate(-135deg); }
.situation-controls [data-card-next]::before { transform: rotate(45deg); }
.situation-controls button:disabled { opacity: .35; cursor: default; }
.situation-controls button:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.situation-card-counter { min-width: 3rem; font-family: var(--sans); font-size: .85rem; font-variant-numeric: tabular-nums; }
.situation-scroll-hint { margin-top: .65rem; font-size: .85rem; text-align: center; }
.situation-story.cards-in-view .situation-card { will-change: transform, opacity; }
/* Supporting text fades in independently of the deck's opening animation. */
.motion-ready .situation-story .card-reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity 1.1s ease, transform 1.3s cubic-bezier(.16, 1, .3, 1);
}
.motion-ready .situation-story .card-reveal.is-revealed {
  opacity: 1;
  transform: none;
}

@media (min-width: 821px) {
  .situation-story { --situation-card-width: min(76vw, 920px); overflow: hidden; }
  .situation-story-content { width: 100%; }
  .situation-story .section-title-offset { margin-inline: 2rem; font-size: clamp(3rem, 5vw, 5rem); }
  .situation-story .situation-grid {
    position: relative;
    display: flex;
    gap: clamp(1.25rem, 3vw, 3rem);
    width: 100%;
    margin-top: 2.5rem;
    padding: 1rem calc((100% - var(--situation-card-width)) / 2) 2rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    /* Free scrolling keeps short trackpad strokes from snapping back. */
    scroll-snap-type: none;
    scrollbar-width: thin;
    scrollbar-color: var(--gold) transparent;
  }
  .situation-story .situation-grid:focus-visible { outline: 2px solid var(--gold); outline-offset: -4px; }
  .situation-story .situation-card {
    flex: 0 0 var(--situation-card-width);
    display: grid;
    height: auto;
    min-height: clamp(300px, 49vh, 420px);
    grid-template-columns: clamp(125px, 15vw, 190px) minmax(0, 1fr);
    align-items: center;
    padding: clamp(2rem, 4vh, 3rem) clamp(2.2rem, 4vw, 4rem);
    scroll-snap-align: center;
  }
  .situation-story .situation-card-index { font-size: clamp(6.5rem, 11vw, 10rem); }
  .situation-story .situation-card-copy { padding-left: clamp(2rem, 4vw, 4rem); border-left: 1px solid rgba(189, 140, 41, .42); }
  .situation-story .situation-card h3 { font-size: clamp(2.15rem, 3.8vw, 3.65rem); }
  .situation-story .situation-card p { max-width: 35ch; margin-top: 1rem; font-size: clamp(1.05rem, 1.45vw, 1.3rem); line-height: 1.62; }
  .situation-story .wisdom-note { padding-inline: 2rem; }
}

.section--dark h2, .section--dark h3 { color: var(--cream); }
.section--dark p { color: #cdbfa6; }
.section--dark .eyebrow { color: var(--gold-bright); }

/* Transformation journey */
.transformation-section {
  position: relative;
  overflow: hidden;
  padding-block: clamp(6rem, 9vw, 9rem);
  background: #25211e;
  isolation: isolate;
}
.transformation-section::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at 66% 50%, rgba(212,175,55,.035), transparent 48%);
  content: "";
  pointer-events: none;
}
.transformation-wrap {
  display: grid;
  width: min(calc(100% - 3rem), 1440px);
  grid-template-columns: minmax(330px, .78fr) minmax(650px, 1.22fr);
  align-items: center;
  gap: clamp(3rem, 6vw, 7.5rem);
}
.transformation-heading {
  max-width: 540px;
  font-size: clamp(4.4rem, 5.6vw, 6.75rem);
  font-weight: 500;
  line-height: .88;
  text-wrap: balance;
}
.transformation-heading-main,
.transformation-heading-accent { display: block; }
.transformation-heading-accent {
  margin-top: .3em;
  color: var(--gold-bright);
  font-size: .78em;
  line-height: .92;
}
.transformation-journey {
  position: relative;
  min-height: 560px;
}
.transformation-thread {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 180px;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.transformation-thread-path,
.transformation-thread-highlight {
  fill: none;
  stroke: url(#transformation-line);
  stroke-linecap: round;
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
}
.transformation-thread-path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.9s .22s cubic-bezier(.65,0,.35,1);
}
.transformation-thread-highlight {
  opacity: 0;
  stroke: #f3d66e;
  stroke-dasharray: .035 .965;
  stroke-dashoffset: 1;
  stroke-width: 2;
}
.transformation-node {
  fill: var(--gold-bright);
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity .45s ease, scale .7s cubic-bezier(.16,1,.3,1);
  scale: .4;
}
.transformation-node--1 { transition-delay: .47s; }
.transformation-node--2 { transition-delay: .72s; }
.transformation-node--3 { transition-delay: .97s; }
.transformation-node--4 { transition-delay: 1.22s; }
.transformation-branch {
  fill: none;
  stroke: var(--gold-bright);
  stroke-linecap: round;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.transformation-list {
  display: grid;
  min-height: 560px;
  margin: 0;
  padding: 0 0 0 176px;
  list-style: none;
}
.transformation-step {
  display: grid;
  grid-template-columns: 2.65rem minmax(0, 1fr);
  align-content: center;
  gap: 1rem;
  min-width: 0;
  transition: transform .42s cubic-bezier(.22,.61,.36,1);
}
.transformation-index {
  padding-top: .22rem;
  color: var(--gold-bright);
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1;
}
.transformation-step h3 {
  margin-bottom: .45rem;
  font-size: clamp(1.45rem, 1.8vw, 2rem);
  font-weight: 500;
  line-height: 1.08;
  transition: color .3s ease;
}
.transformation-step p {
  max-width: 56ch;
  font-size: clamp(.9rem, 1vw, 1rem);
  line-height: 1.55;
  transition: color .3s ease;
}
.transformation-step:hover { transform: translateX(7px); }
.transformation-step:hover h3 { color: #fffdf9; }
.transformation-step:hover p { color: #e0d2b8; }
.transformation-section.is-visible .transformation-thread-path { stroke-dashoffset: 0; }
.transformation-section.is-visible .transformation-thread-highlight {
  opacity: .9;
  animation: transformation-travel 5.4s 2.1s ease-in-out infinite;
}
.transformation-section.is-visible .transformation-node { opacity: 1; scale: 1; }
@keyframes transformation-travel {
  0%, 12% { stroke-dashoffset: 1; opacity: 0; }
  22% { opacity: .9; }
  76% { opacity: .9; }
  88%, 100% { stroke-dashoffset: 0; opacity: 0; }
}

.closing { max-width: 760px; margin-inline: auto; font-family: var(--serif); text-align: center; }
.closing p { font-family: var(--serif); }
.closing .quote { margin-top: .35rem; color: var(--ink); font-family: var(--serif); font-size: clamp(2.35rem, 4vw, 3.45rem); font-style: italic; font-weight: 500; line-height: 1.18; text-wrap: balance; }
.closing .stack p { color: var(--ink-soft); font-size: clamp(1.7rem, 2.5vw, 2.2rem); font-weight: 500; line-height: 1.22; }
.closing .wisdom-accent { color: var(--brown); font-size: clamp(2rem, 3vw, 2.65rem); font-style: normal; font-weight: 600; }
.closing .signature { margin-top: 2rem; color: var(--brown); font-size: clamp(1.7rem, 2.4vw, 2.15rem); font-style: normal; font-weight: 500; line-height: 1.25; }
.closing-title { margin-top: 1rem; }
.closing-copy { margin-top: 1.2rem; }
.closing-action { margin-top: 1.8rem; }
.cta-band { position: relative; overflow: hidden; background: var(--ink); color: white; text-align: center; }
.cta-band::before { position: absolute; inset: 0; background: linear-gradient(115deg, rgba(42,37,33,.9), rgba(98,68,48,.77)), url("images/IMG_0096.jpg") center 42% / cover; content: ""; }
.home-page .cta-band::before { background-position: center top; }
@media (max-width: 600px) {
  .home-page .cta-band::before {
    background-image: linear-gradient(to bottom, rgba(42,37,33,.12), var(--ink) 100%), url("images/IMG_0096.jpg");
    background-size: 100% 66.6875vw, 100% auto;
    background-repeat: no-repeat;
  }
  .home-page .cta-inner { padding-top: 48vw; }
}
.cta-inner { position: relative; padding-block: clamp(4.2rem, 8vw, 7rem); }
.cta-inner h2 { max-width: 850px; margin: 1rem auto; color: white; }
.cta-inner p { max-width: 620px; margin: 0 auto 2rem; color: rgba(255,255,255,.8); }

/* About */
.duo-photo { margin-bottom: clamp(4rem, 8vw, 8rem); }
.duo-photo img { width: 100%; max-height: 480px; object-position: center 30%; border-radius: var(--radius); object-fit: cover; box-shadow: var(--shadow); }
.founder { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(3rem, 7vw, 6rem); }
.founder.has-open-education { z-index: 20; }
.founder + .founder { margin-top: clamp(7rem, 12vw, 12rem); }
.founder--reverse .founder-photo { order: 2; }
.founder-photo { position: relative; }
.founder-photo img { width: 100%; aspect-ratio: 4 / 5; border-radius: var(--radius); object-fit: cover; object-position: top; box-shadow: var(--shadow); }
.founder-photo .tag { position: absolute; bottom: 1rem; left: 1rem; padding: .42rem 1rem; border-radius: 999px; background: rgba(247,242,233,.94); color: var(--brown); font-size: .78rem; font-weight: 800; }
.founder-label { display: block; color: #86593d; font-family: var(--serif); font-size: clamp(1.6rem, 2vw, 1.85rem); font-style: italic; font-weight: 600; line-height: 1.2; }
.founder-copy h2 { margin: .45rem 0 .35rem; }
.founder-copy .role { display: block; margin-bottom: 1.5rem; color: var(--gold); font-size: .87rem; font-weight: 800; letter-spacing: .035em; text-transform: uppercase; }
.founder-copy p { line-height: 1.8; }
.founder-focus { margin-top: 1.75rem; }
.founder-specialties { display: flex; flex-wrap: wrap; gap: .6rem; padding: 0; list-style: none; }
.founder-specialties li { max-width: 100%; padding: .45rem .8rem; border: 1px solid #cfb99d; border-radius: 12px 2px 12px 2px; color: #795a40; font-size: .8rem; font-weight: 600; line-height: 1.5; }
.education { position: relative; z-index: 4; margin-top: 1.4rem; border-top: 1px solid var(--line); }
.education[open] { z-index: 12; }
.education summary { display: flex; justify-content: space-between; padding: 1rem 0; cursor: pointer; font-weight: 800; list-style: none; }
.education summary::-webkit-details-marker { display: none; }
.education summary::after { color: var(--gold); content: "+"; font-family: var(--serif); font-size: 1.5rem; }
.education.is-open summary::after { content: "×"; }
.education ul {
  position: absolute;
  top: calc(100% - .2rem);
  right: 0;
  left: 0;
  display: grid;
  max-height: min(55svh, 420px);
  overflow-y: auto;
  gap: .65rem;
  padding: 1.15rem 1.4rem 1.25rem 2.6rem;
  border: 1px solid var(--line);
  border-radius: 3px 18px 3px 18px;
  background: var(--white);
  box-shadow: var(--shadow);
  color: var(--ink-soft);
  font-size: .9rem;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, -10px, 0);
  visibility: hidden;
  transition: opacity .18s cubic-bezier(.25, 1, .5, 1), transform .2s cubic-bezier(.25, 1, .5, 1);
}
.education[open] ul { visibility: visible; }
.education.is-open ul {
  opacity: 1;
  pointer-events: auto;
  transform: none;
  transition-duration: .28s;
}
.glyph-row { display: flex; align-items: center; justify-content: center; gap: 1rem; margin: clamp(5rem, 9vw, 9rem) 0; color: var(--gold); }
.glyph-row::before, .glyph-row::after { width: min(24vw, 200px); height: 1px; background: var(--line); content: ""; }

/* Courses and portal */
.section-heading { max-width: 680px; margin: 0 auto 3rem; text-align: center; }
.section-heading h2 { margin: 1rem 0; }
.eyebrow,
.course-offering-label {
  display: block;
  margin-bottom: 1.25rem;
  color: #806019;
  font-family: var(--sans);
  font-size: clamp(.95rem, 1.3vw, 1.1rem);
  font-weight: 700;
  letter-spacing: .24em;
  line-height: 1.5;
  text-transform: uppercase;
}
.course-offering-label--bright { color: var(--gold-bright); }
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.ritual-filters { display: flex; flex-wrap: wrap; gap: .65rem; margin: -1rem 0 1.1rem; }
.ritual-filter { appearance: none; border: 1px solid var(--line); border-radius: 999px; padding: .58rem 1rem; background: var(--white); color: var(--ink-soft); font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer; transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
.ritual-filter:hover { border-color: var(--gold); color: var(--ink); }
.ritual-filter:focus-visible { outline: 3px solid rgba(166,125,64,.25); outline-offset: 2px; }
.ritual-filter.is-active { border-color: var(--gold); background: var(--gold); color: var(--white); }
.ritual-results { min-height: 1.4em; margin: 0 0 1.15rem; color: var(--ink-soft); font-size: .85rem; }
#ritual-offers .course-tile { display: flex; min-height: 100%; flex-direction: column; }
#ritual-offers .course-tile-body { flex: 1; }
#ritual-offers .ritual-detail-open { position: relative; z-index: 1; }
.ritual-detail-dialog { width: min(600px, calc(100% - 2rem)); max-height: calc(100vh - 2rem); margin: auto; padding: 0; overflow-x: hidden; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--ink); box-shadow: 0 28px 80px rgba(42,37,33,.28); }
.ritual-detail-dialog::backdrop { background: rgba(31,28,24,.58); backdrop-filter: blur(3px); }
.ritual-detail-dialog[open] { animation: ritual-dialog-in .24s ease-out; }
.ritual-detail-dialog__head { display: flex; align-items: center; justify-content: space-between; padding: 1.4rem 1.6rem 0; }
.ritual-detail-dialog__head button { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.ritual-detail-dialog h2 { margin: 1.1rem 1.6rem .45rem; font-size: clamp(2rem, 5vw, 3rem); line-height: 1; }
.ritual-detail-dialog > .meta { margin: 0 1.6rem; }
.ritual-detail-dialog__description { margin: 1.3rem 1.6rem 1.7rem; color: var(--ink-soft); line-height: 1.75; }
.ritual-detail-dialog__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 1.6rem; border-top: 1px solid var(--line); background: var(--cream); }
.ritual-detail-dialog__foot strong { font-family: var(--serif); font-size: 1.55rem; }
@keyframes ritual-dialog-in { from { opacity: 0; transform: translateY(12px) scale(.985); } }
@media (max-width: 540px) { .ritual-detail-dialog__foot { align-items: stretch; flex-direction: column; } .ritual-detail-dialog__foot .btn { width: 100%; } }
.course-tile { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 10px 30px -28px rgba(42,37,33,.8); }
.course-tile img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.course-tile:nth-child(2) img { object-position: center; }
.course-tile:nth-child(3) img { object-position: center 42%; }
.course-tile-body { min-height: 235px; padding: 1.35rem 1.45rem; }
.course-tile-body h3 { margin-bottom: .45rem; }
.course-title-spaced { margin-top: .8rem; }
.meta { color: var(--gold); font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.course-tile-body p:last-child { margin-top: .8rem; font-size: .91rem; }
.course-tile-foot { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: 0 1.45rem 1.4rem; }
.course-path-grid { gap: 1.25rem; }
.course-path-tile { box-shadow: none; }
.course-path-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.course-path-image { position: relative; height: 190px; overflow: hidden; }
.course-path-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.course-path-tile:nth-child(1) .course-path-image img { object-position: center 27%; }
.course-path-tile:nth-child(2) .course-path-image img { object-position: center top; }
.course-path-tile:nth-child(3) .course-path-image img { object-position: center 45%; }
.course-path-tile:hover .course-path-image img { transform: scale(1.025); }
.course-path-image .pill { position: absolute; top: .9rem; left: .9rem; }
.course-path-tile .course-tile-body { display: flex; min-height: 230px; flex-direction: column; }
.course-path-tile .course-tile-body h3 { margin-bottom: .65rem; }
.course-path-tile .course-tile-body p { margin: 0; font-size: .91rem; line-height: 1.7; }
.course-path-tile .text-link { margin-top: auto; padding-top: 1.15rem; font-size: .87rem; }

/* Motion */
.motion-ready .motion-item {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  transition: opacity .68s ease, transform .78s cubic-bezier(.22,.61,.36,1);
  transition-delay: var(--motion-delay, 0ms);
  will-change: opacity, transform;
}
.motion-ready .motion-item.motion-scale { transform: translate3d(0, 14px, 0) scale(.99); }
.motion-ready .motion-item.is-visible { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
.motion-ready .transformation-heading.motion-item {
  transform: translate3d(-42px, 26px, 0);
  transition: opacity 1.05s ease, transform 1.25s cubic-bezier(.16,1,.3,1);
}
.motion-ready .transformation-heading.motion-item.is-visible { transform: translate3d(0, 0, 0); }
.motion-ready .transformation-step.motion-item {
  transform: translate3d(30px, 16px, 0);
  transition: opacity .78s ease, transform .95s cubic-bezier(.16,1,.3,1), color .3s ease;
}
.motion-ready .transformation-step.motion-item.is-visible { transform: translate3d(0, 0, 0); }
.motion-ready .transformation-step.motion-item.is-visible:hover { transform: translate3d(7px, 0, 0); }
.motion-ready .home-page .home-motion-title {
  transform: translate3d(-64px, 30px, 0);
  transition: opacity 1.35s ease, transform 1.65s cubic-bezier(.16,1,.3,1);
}
.motion-ready .home-page .home-motion-copy,
.motion-ready .home-page .home-motion-actions {
  transform: translate3d(-38px, 44px, 0);
  transition: opacity 1.35s ease, transform 1.7s cubic-bezier(.16,1,.3,1);
}
.motion-ready .home-page .hero-portrait.motion-item {
  transform: translate3d(0, 52px, 0) scale(.975);
  transition: opacity 1.4s ease, transform 1.75s cubic-bezier(.16,1,.3,1);
}
.motion-ready .home-page .home-motion-title.is-visible,
.motion-ready .home-page .home-motion-copy.is-visible,
.motion-ready .home-page .home-motion-actions.is-visible {
  transform: translate3d(0, 0, 0);
}
.motion-ready .home-page .hero-portrait.motion-item.is-visible {
  transform: translate3d(0, 0, 0) scale(1);
}
.motion-ready .home-page .hero-media::before {
  animation: home-aura-in 1.9s .28s cubic-bezier(.16,1,.3,1) both;
  transform-origin: center bottom;
}
@keyframes home-aura-in {
  from { opacity: 0; transform: translate3d(0, 28px, 0) scale(.95); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}
.motion-ready .course-tile.motion-item.is-visible:hover { transform: translateY(-4px); }
.price { color: var(--ink); font-family: var(--serif); font-size: 1.3rem; font-weight: 600; }
.pill { display: inline-block; padding: .25rem .7rem; border-radius: 999px; font-size: .69rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.pill--live { background: #e8f0eb; color: #3d6e4a; }
.pill--workshop { background: #f5f0e0; color: #947323; }
.pill--stay { background: #f0ebe4; color: #7a5c3e; }

.portal { padding-block: clamp(4rem, 7vw, 7rem); }
.portal h1 { font-size: clamp(2rem, 3vw, 2.7rem); }
.portal-label { margin-bottom: 1.2rem; color: var(--gold); font-size: .73rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.portal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.35rem; }
.portal-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.portal-card.available { background: var(--cream-2); }
.portal-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.portal-card:nth-child(2) img { object-position: 28% 40%; }
.portal-body { padding: 1.15rem 1.35rem; }
.portal-body h3 { font-size: 1.15rem; }
.portal-body > p { margin-top: .45rem; font-size: .82rem; }
.progress-head { display: flex; justify-content: space-between; margin-top: 1.25rem; color: var(--ink-soft); font-size: .75rem; }
.portal-foot { display: flex; align-items: center; justify-content: space-between; gap: .7rem; padding: 0 1.35rem 1.2rem; }
.portal-shop { margin-top: 4rem; }

/* Premium client portal */
.portal-page { background: #f4eee4; }
.portal-premium { min-height: 72vh; padding-block: clamp(2rem, 5vw, 5rem) clamp(5rem, 8vw, 8rem); }
.account-link {
  padding: .45rem .2rem;
  color: var(--ink-soft);
  font-size: .82rem;
  font-weight: 800;
  white-space: nowrap;
}
.account-link[aria-current="page"] { color: var(--ink); }
.logout-button { cursor: pointer; background: transparent; }

.portal-status {
  display: flex;
  min-height: 52vh;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  color: var(--ink-soft);
  font-size: .88rem;
}
.portal-loader {
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--line);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: portal-spin .8s linear infinite;
}
@keyframes portal-spin { to { transform: rotate(1turn); } }

.portal-gate {
  position: relative;
  display: grid;
  min-height: min(650px, calc(100vh - 130px));
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(189, 140, 41, .2);
  border-radius: 28px;
  background:
    radial-gradient(circle at 76% 22%, rgba(212,175,55,.14), transparent 30%),
    linear-gradient(120deg, #fffdf9 0%, #f5ecdd 58%, #ebddc8 100%);
  box-shadow: 0 36px 80px -58px rgba(42, 37, 33, .75);
}
.portal-gate > * { min-width: 0; }
.portal-gate::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 53%;
  width: 1px;
  background: linear-gradient(transparent, rgba(189,140,41,.28), transparent);
  content: "";
}
.portal-gate-copy { position: relative; z-index: 2; max-width: 650px; padding: clamp(2.2rem, 6vw, 6rem); }
.portal-gate-copy h1 { max-width: 760px; margin: 1.25rem 0 1.4rem; font-size: clamp(3.2rem, 5.3vw, 5.35rem); }
.portal-gate-copy h1 em { color: var(--brown); font-weight: 500; }
.portal-gate-copy .lead { max-width: 48ch; }
.portal-gate-copy > .btn { margin-top: 2.2rem; }
.portal-security-note { display: flex; align-items: center; justify-content: flex-start; gap: .55rem; margin-top: 1.15rem; color: #83776c; font-size: .72rem; font-weight: 600; }
.portal-security-note span { color: var(--gold); font-size: 1rem; }

.portal-gate-visual { position: relative; display: grid; min-height: 100%; place-items: center; overflow: hidden; }
.portal-gate-visual::before {
  position: absolute;
  width: 330px;
  height: 430px;
  border: 1px solid rgba(189,140,41,.22);
  border-radius: 180px 180px 18px 18px;
  background: rgba(255,253,249,.3);
  box-shadow: inset 0 0 60px rgba(255,255,255,.42);
  content: "";
}
.portal-orbit { position: absolute; border: 1px solid rgba(189,140,41,.27); border-radius: 50%; }
.portal-orbit--outer { width: 510px; height: 510px; }
.portal-orbit--inner { width: 400px; height: 400px; border-style: dashed; animation: portal-orbit 45s linear infinite; }
@keyframes portal-orbit { to { transform: rotate(1turn); } }
.portal-seal {
  position: relative;
  z-index: 2;
  display: flex;
  width: 235px;
  height: 235px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(189,140,41,.35);
  border-radius: 50%;
  background: rgba(255,253,249,.84);
  box-shadow: 0 28px 65px -42px rgba(42,37,33,.75), inset 0 0 0 10px rgba(239,229,212,.55);
  backdrop-filter: blur(8px);
}
.portal-seal img { width: 76px; height: 76px; margin-bottom: .7rem; }
.portal-seal span { color: var(--gold); font-size: .62rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.portal-seal strong { margin-top: .25rem; font-family: var(--serif); font-size: 1.6rem; font-weight: 600; }
.portal-spark { position: absolute; z-index: 3; color: var(--gold); }
.portal-spark--one { top: 21%; right: 20%; }
.portal-spark--two { bottom: 22%; left: 18%; font-size: 2.2rem; }
.portal-spark--three { right: 14%; bottom: 27%; font-size: .65rem; }

.portal-dashboard { animation: portal-dashboard-in .65s cubic-bezier(.22,.61,.36,1) both; }
@keyframes portal-dashboard-in {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}
.portal-dashboard-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; padding: 1.8rem 0 2.5rem; }
.portal-welcome { min-width: 0; flex: 1; }
.portal-welcome h1 { overflow-wrap: anywhere; }
.portal-welcome h1 { margin: .75rem 0 .7rem; font-size: clamp(2.7rem, 5vw, 4.6rem); }
.portal-welcome .lead { font-size: 1rem; }
.portal-identity {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: .9rem;
  padding: .75rem 1rem .75rem .75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,253,249,.7);
}
.portal-avatar { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 50%; background: var(--ink); color: var(--cream); font-family: var(--serif); font-size: 1.05rem; }
.portal-identity-copy { display: grid; line-height: 1.3; }
.portal-identity-copy strong { font-family: var(--serif); font-size: 1.05rem; }
.portal-identity-copy small { color: var(--ink-soft); font-size: .67rem; }
.portal-identity-copy { min-width: 0; }
.portal-identity-copy strong { overflow-wrap: anywhere; }
.portal-avatar { flex: 0 0 auto; }
.portal-settings-button { display: grid; width: 44px; height: 44px; flex: 0 0 auto; place-items: center; margin-left: auto; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink-soft); cursor: pointer; }
.portal-settings-button:hover { border-color: var(--gold); color: var(--brown); background: var(--cream); }
.portal-settings-button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.portal-settings-button svg, .portal-settings-dialog .login-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.portal-settings-dialog .eyebrow { padding-right: 1.5rem; }
.portal-password-rules { margin: -.35rem 0 1.1rem; font-size: .72rem; line-height: 1.6; }
.portal-settings-dialog .login-message { margin-top: 1rem; }

.portal-content-section + .portal-content-section { margin-top: clamp(4.5rem, 8vw, 7.5rem); }
.portal-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.65rem; }
.portal-section-heading .portal-label { display: block; margin-bottom: .55rem; }
.portal-section-heading h2 { font-size: clamp(2rem, 3.4vw, 3rem); }
.portal-count { padding: .35rem .8rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); font-size: .7rem; font-weight: 800; }
.portal-dashboard .portal-grid--owned { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.portal-card--premium { border-color: rgba(189,140,41,.2); border-radius: 18px; box-shadow: 0 20px 50px -46px rgba(42,37,33,.9); transition: transform .3s ease, box-shadow .3s ease; }
.portal-card--premium:hover { transform: translateY(-4px); box-shadow: 0 28px 60px -44px rgba(42,37,33,.75); }
.portal-card-media { position: relative; overflow: hidden; }
.portal-card-media img { width: 100%; aspect-ratio: 16 / 8.8; object-fit: cover; transition: transform .55s ease; }
.portal-card--premium:hover .portal-card-media img { transform: scale(1.025); }
.portal-owned-badge { position: absolute; top: 1rem; right: 1rem; padding: .3rem .7rem; border-radius: 999px; background: rgba(255,253,249,.88); color: #3d6e4a; font-size: .64rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; backdrop-filter: blur(8px); }
.portal-card--premium .portal-body { padding: 1.45rem 1.55rem 1.25rem; }
.portal-card--premium .portal-body h3 { margin: .25rem 0 .45rem; font-size: 1.55rem; }
.portal-card-kicker { color: var(--gold) !important; font-size: .65rem !important; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.portal-card--premium .progress-head strong { color: var(--ink); font-size: .74rem; }
.portal-progress {
  display: block;
  width: 100%;
  height: 6px;
  margin-top: .35rem;
  overflow: hidden;
  border: 0;
  border-radius: 99px;
  background: var(--cream-3);
  color: var(--gold);
  appearance: none;
}
.portal-progress::-webkit-progress-bar { border-radius: 99px; background: var(--cream-3); }
.portal-progress::-webkit-progress-value { border-radius: 99px; background: var(--gold); }
.portal-progress::-moz-progress-bar { border-radius: 99px; background: var(--gold); }
.portal-card--premium .portal-foot { min-height: 72px; padding: 0 1.55rem 1.35rem; }
.portal-card--premium .portal-foot .btn { min-height: 44px; padding: .65rem 1.2rem; font-size: .77rem; }
.portal-updated { color: var(--ink-soft); font-size: .67rem; }
.portal-card--premium.available { background: rgba(239,229,212,.78); }
.portal-card--premium.available .portal-body { min-height: 190px; }
.portal-card--premium.available .portal-body > p:last-child { font-size: .84rem; line-height: 1.65; }
.portal-card--premium.available .portal-foot { border-top: 1px solid rgba(221,207,184,.7); padding-top: 1.15rem; }

.portal-tabs {
  display: flex;
  gap: .35rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  padding: .4rem;
  overflow-x: auto;
  border: 1px solid rgba(189,140,41,.2);
  border-radius: 16px;
  background: rgba(255,253,249,.62);
  scrollbar-width: thin;
}
.portal-tab {
  flex: 1 0 auto;
  min-height: 48px;
  padding: .7rem 1.2rem;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}
.portal-tab:hover { color: var(--ink); background: rgba(239,229,212,.55); }
.portal-tab[aria-selected="true"] { background: var(--ink); color: var(--cream); box-shadow: 0 12px 28px -22px rgba(42,37,33,.8); }
.portal-tab-panel { min-height: 320px; }
.portal-empty {
  display: grid;
  min-height: 310px;
  place-items: center;
  align-content: center;
  padding: 3rem 1.5rem;
  border: 1px dashed rgba(189,140,41,.4);
  border-radius: 18px;
  background: rgba(255,253,249,.48);
  text-align: center;
}
.portal-empty-mark { margin-bottom: .7rem; color: var(--gold); font-family: var(--serif); font-size: 2rem; }
.portal-empty h3 { margin-bottom: .65rem; font-size: 1.65rem; }
.portal-empty p { max-width: 52ch; font-size: .85rem; }
.portal-calendar-agenda { display: grid; gap: clamp(2.6rem, 5vw, 4.5rem); }
.portal-calendar-section { min-width: 0; }
.portal-calendar-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid rgba(189,140,41,.42);
}
.portal-calendar-section-head h3 { font-size: 1.75rem; }
.portal-calendar-section-head span { color: var(--ink-soft); font-size: .68rem; font-weight: 800; }
.portal-calendar-list { display: grid; gap: .7rem; }
.portal-calendar-period {
  margin-top: 1.1rem;
  padding-left: .25rem;
  color: var(--brown);
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 600;
  text-transform: capitalize;
}
.portal-calendar-period:first-child { margin-top: 0; }
.portal-calendar-item {
  position: relative;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.25rem);
  align-items: stretch;
  padding: clamp(1rem, 2vw, 1.35rem);
  overflow: hidden;
  border: 1px solid rgba(189,140,41,.22);
  border-radius: 3px 18px 3px 18px;
  background: rgba(255,253,249,.76);
  box-shadow: 0 18px 42px -42px rgba(42,37,33,.8);
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.portal-calendar-item:hover { border-color: rgba(189,140,41,.5); box-shadow: 0 24px 50px -40px rgba(58,42,25,.65); transform: translateY(-2px); }
.portal-calendar-item.is-next { border-color: rgba(189,140,41,.58); background: var(--white); }
.portal-calendar-item.is-next::before { position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--gold); content: ""; }
.portal-calendar-date {
  display: grid;
  min-height: 106px;
  grid-template-rows: auto minmax(2.45rem, auto) auto;
  align-content: center;
  justify-items: center;
  row-gap: .12rem;
  padding: .65rem .4rem;
  border: 1px solid rgba(189,140,41,.34);
  border-radius: 46px 46px 4px 4px;
  background: var(--cream);
  text-align: center;
}
.portal-calendar-weekday { color: var(--ink-soft); font-size: .55rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.portal-calendar-date strong { display: grid; min-width: 2ch; place-items: center; margin: 0; font-family: var(--serif); font-size: 2.35rem; font-variant-numeric: lining-nums tabular-nums; font-weight: 500; line-height: 1; }
.portal-calendar-month { color: var(--gold); font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.portal-calendar-copy { min-width: 0; padding-block: .1rem; }
.portal-calendar-topline { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.portal-calendar-next { color: #806016; font-size: .6rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.portal-calendar-copy h3 { margin: .28rem 0 .85rem; font-size: clamp(1.5rem, 2.5vw, 1.85rem); }
.portal-calendar-meta { display: flex; flex-wrap: wrap; gap: .65rem clamp(1.25rem, 3vw, 2.4rem); margin: 0; }
.portal-calendar-meta div { min-width: 100px; }
.portal-calendar-meta dt { color: var(--ink-soft); font-size: .56rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.portal-calendar-meta dd { margin: .1rem 0 0; color: var(--ink); font-size: .75rem; font-weight: 700; }
.portal-personal-note { margin-top: 1rem; padding: .8rem 1rem; border-left: 2px solid var(--gold); background: rgba(239,229,212,.46); }
.portal-personal-note span { display: block; margin-bottom: .18rem; color: var(--brown); font-size: .57rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.portal-personal-note p { font-family: var(--serif); font-size: .95rem; font-style: italic; line-height: 1.45; }
.portal-calendar-section.is-history .portal-calendar-item { background: rgba(255,253,249,.42); box-shadow: none; }
.portal-calendar-section.is-history .portal-calendar-date { filter: saturate(.65); }
.portal-resource-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.portal-resource-card { min-height: 230px; padding: clamp(1.5rem, 3vw, 2.2rem); border: 1px solid rgba(189,140,41,.22); border-radius: 18px; background: var(--white); }
.portal-resource-meta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 2.2rem; color: var(--ink-soft); font-size: .68rem; }
.portal-resource-status { color: var(--gold); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.portal-resource-status.is-completed { color: #3d6e4a; }
.portal-resource-card h3 { margin-bottom: .8rem; font-size: 1.7rem; }
.portal-resource-card p { font-size: .84rem; line-height: 1.7; }
.portal-recording-list { border-top: 1px solid var(--line); }
.portal-recording-item { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 1.2rem; align-items: center; padding: 1.35rem .5rem; border-bottom: 1px solid var(--line); }
.portal-recording-number { color: var(--gold); font-family: var(--serif); font-size: 1.25rem; }
.portal-recording-copy h3 { margin-bottom: .25rem; font-size: 1.4rem; }
.portal-recording-copy p { font-size: .78rem; }
.portal-recording-duration { color: var(--ink-soft); font-size: .7rem; font-weight: 800; }

.login-dialog {
  width: min(calc(100% - 2rem), 470px);
  max-width: 470px;
  max-height: calc(100vh - 2rem);
  margin: auto;
  overflow-x: hidden;
  overflow-y: auto;
  padding: clamp(2rem, 5vw, 3.2rem);
  border: 1px solid rgba(189,140,41,.24);
  border-radius: 24px;
  outline: 0;
  background:
    radial-gradient(circle at 95% 0, rgba(212,175,55,.13), transparent 29%),
    var(--white);
  box-shadow: 0 32px 90px -28px rgba(22,18,14,.62);
  opacity: 0;
  transform: translateY(18px) scale(.975);
  transition: opacity .26s ease, transform .42s cubic-bezier(.22,.61,.36,1);
}
.login-dialog[open].is-open { opacity: 1; transform: translateY(0) scale(1); }
.login-dialog.is-closing { opacity: 0; transform: translateY(10px) scale(.985); }
.login-dialog::backdrop { background: rgba(31,26,22,0); backdrop-filter: blur(0); transition: background-color .3s ease, backdrop-filter .3s ease; }
.login-dialog.is-open::backdrop { background: rgba(31,26,22,.52); backdrop-filter: blur(7px); }
.login-dialog.is-closing::backdrop { background: rgba(31,26,22,0); backdrop-filter: blur(0); }
body:has(.login-dialog[open]) { overflow: hidden; }
.login-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255,253,249,.8);
  color: var(--ink-soft);
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1.4rem;
  line-height: 1;
}
.login-close:hover { border-color: var(--gold); color: var(--ink); }
.login-brand { display: grid; width: 64px; height: 64px; margin-bottom: 1.45rem; place-items: center; border-radius: 50%; background: var(--cream-2); }
.login-brand img { width: 46px; height: 46px; }
.login-dialog h2 { margin: .75rem 0 .7rem; font-size: clamp(2rem, 7vw, 2.8rem); }
.login-dialog > p { font-size: .88rem; }
.login-form { margin-top: 1.8rem; }
.login-form .field { gap: .45rem; margin-bottom: 1.1rem; }
.login-form .field label { font-size: .74rem; letter-spacing: .04em; }
.login-form input { min-height: 52px; padding-inline: 1rem; background: #fffdf9; }
.password-field { position: relative; }
.password-field input { padding-right: 5.4rem; }
.password-toggle { position: absolute; top: 50%; right: .8rem; border: 0; background: transparent; color: var(--brown); cursor: pointer; font-size: .7rem; font-weight: 800; transform: translateY(-50%); }
.login-message { min-height: 1.6rem; margin: .15rem 0 .55rem; color: var(--ink-soft); font-size: .76rem; }
.login-message.is-error { color: #9a3f36; }
.login-message.is-success { color: #3d6e4a; }
.login-submit { width: 100%; cursor: pointer; }
.login-submit:disabled { cursor: wait; opacity: .7; }
.login-submit.is-loading span:last-child { animation: portal-arrow-pulse .7s ease-in-out infinite alternate; }
@keyframes portal-arrow-pulse { to { transform: translateX(5px); } }
.login-help { margin-top: 1.25rem; text-align: center; }
.login-help a { color: var(--brown); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }

/* Recordings and contact */

.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(3rem, 7vw, 6rem); }
.contact-copy h2 { margin: 1rem 0; }
.contact-copy > p { max-width: 46ch; }
.contact-items { display: grid; gap: 1rem; margin-top: 2rem; }
.contact-item { display: flex; align-items: center; gap: 1rem; padding: 1.15rem 1.3rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.contact-item > span:last-child { min-width: 0; }
.contact-icon { display: grid; flex: 0 0 46px; width: 46px; height: 46px; place-items: center; border-radius: 50%; background: var(--cream-2); color: var(--brown); }
.contact-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.contact-item small { display: block; color: var(--gold); font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.contact-item strong { font-family: var(--serif); font-size: 1.15rem; overflow-wrap: anywhere; }
.form-card { padding: clamp(1.6rem, 4vw, 2.5rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.form-card h3 { margin-bottom: 1.5rem; }
#contact-form { scroll-margin-top: 120px; }
.field { display: grid; gap: .35rem; margin-bottom: 1rem; }
.field label { font-size: .8rem; font-weight: 800; }
.field input, .field textarea { width: 100%; padding: .8rem .95rem; border: 1px solid var(--line); border-radius: 10px; outline: 0; background: var(--white); color: var(--ink); }
.field textarea { min-height: 130px; resize: vertical; }
.form-message { min-height: 1.4em; margin: .4rem 0; color: var(--ink-soft); font-size: .84rem; }
.form-message.is-error { color: #9d3f35; }
.form-message.is-success { color: #386044; }
.field input:focus, .field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(189,140,41,.13); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* Legal */
.legal { padding-bottom: clamp(4rem, 8vw, 8rem); }
.legal .updated { margin-bottom: 2rem; color: var(--gold); font-size: .8rem; }
.legal h2 { margin: 2.2rem 0 .7rem; font-size: clamp(1.55rem, 2.4vw, 2rem); }
.legal p, .legal li { font-size: .93rem; line-height: 1.78; }
.legal p + p { margin-top: .85rem; }
.legal ul { display: grid; gap: .45rem; margin: .8rem 0; padding-left: 1.25rem; color: var(--ink-soft); }
.legal a { color: var(--brown); text-decoration: underline; text-underline-offset: 3px; }
.legal-action { margin-top: 2.5rem; }
.legal a.no-underline { text-decoration: none; }
.form-privacy { margin: .25rem 0 1rem; color: var(--ink-soft); font-size: .8rem; line-height: 1.6; }
.form-privacy a, .auth-privacy a { color: var(--brown); text-decoration: underline; text-underline-offset: 3px; }
.table-wrap { overflow-x: auto; margin: 1.2rem 0; }
.legal table { width: 100%; min-width: 650px; border-collapse: collapse; font-size: .84rem; }
.legal th { padding: .7rem .85rem; background: var(--cream-2); text-align: left; }
.legal td { padding: .7rem .85rem; border-bottom: 1px solid var(--line); color: var(--ink-soft); vertical-align: top; }
.info-box { margin: 1.6rem 0; padding: 1.25rem 1.55rem; border-left: 3px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; background: var(--cream-2); }
.withdrawal-form { margin-top: 2.5rem; padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.withdrawal-form h3 { margin-bottom: 1.5rem; color: var(--brown); font-size: 1.2rem; line-height: 1.35; }
.withdrawal-recipient { margin-bottom: 1.5rem; }
.readonly { background: var(--cream-2) !important; }

/* Not found */
.not-found-page {
  position: relative;
  display: grid;
  min-height: calc(100svh - 96px);
  overflow: hidden;
  align-items: center;
  background:
    radial-gradient(circle at 88% 42%, rgba(212, 175, 55, .12), transparent 27rem),
    var(--cream);
}
.not-found-page::before,
.not-found-page::after {
  position: absolute;
  width: 96px;
  height: 96px;
  border-color: rgba(189, 140, 41, .25);
  content: "";
  pointer-events: none;
}
.not-found-page::before { top: 2.5rem; left: 2.5rem; border-top: 1px solid; border-left: 1px solid; }
.not-found-page::after { right: 2.5rem; bottom: 2.5rem; border-right: 1px solid; border-bottom: 1px solid; }
.not-found-inner {
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(420px, 1.06fr);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 7rem);
  padding-block: clamp(4.5rem, 9vw, 8rem);
}
.not-found-copy { position: relative; z-index: 2; }
.not-found-copy .eyebrow { margin-bottom: 1.5rem; }
.not-found-copy h1 {
  max-width: 8.3ch;
  font-size: clamp(4rem, 7vw, 6.8rem);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: .92;
  text-wrap: balance;
}
.not-found-copy > p { max-width: 45ch; margin-top: 2rem; font-size: clamp(1rem, 1.3vw, 1.15rem); line-height: 1.8; }
.not-found-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 1.6rem; margin-top: 2.6rem; }
.not-found-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: .55rem;
  border-bottom: 1px solid rgba(189, 140, 41, .55);
  color: #806019;
  font-size: .83rem;
  font-weight: 800;
}
.not-found-actions a:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.not-found-visual {
  position: relative;
  display: grid;
  min-height: clamp(390px, 40vw, 520px);
  place-items: center;
  isolation: isolate;
}
.not-found-orbit { position: absolute; border: 1px solid rgba(189, 140, 41, .3); border-radius: 50%; }
.not-found-orbit--outer { width: min(39vw, 500px); aspect-ratio: 1; }
.not-found-orbit--inner { width: min(29vw, 370px); aspect-ratio: 1; border-style: dashed; opacity: .62; transform: rotate(17deg); }
.not-found-code {
  position: absolute;
  top: 50%;
  left: 50%;
  color: rgba(150, 105, 74, .16);
  font-family: var(--serif);
  font-size: clamp(9rem, 18vw, 15.5rem);
  font-weight: 500;
  letter-spacing: -.08em;
  line-height: .75;
  /* Cormorant's numeral baseline sits low in its line box; lift the visible
     figures so their optical center matches the circles. */
  transform: translate(-50%, -79%);
  -webkit-text-stroke: 1px rgba(150, 105, 74, .28);
}
.not-found-diamond {
  position: absolute;
  top: 16%;
  right: 12%;
  width: 12px;
  height: 12px;
  border: 1px solid var(--gold);
  background: var(--cream);
  transform: rotate(45deg);
}

@media (max-width: 1040px) {
  .nav { gap: 1rem; }
  .brand { gap: .55rem; }
  .brand::after { font-size: 1.08rem; }
  .nav-links { gap: .85rem; }
  .nav-links a { font-size: .92rem; }
  .nav-actions .btn { padding-inline: 1.45rem; font-size: .9rem; }
  .home-hero .hero-actions .btn { padding-inline: 1.45rem; font-size: .92rem; }
  .hero-grid { grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); gap: 3rem; }
  .portal-gate-copy { padding-inline: 3rem; }
  .portal-gate-visual { transform: scale(.88); }
  .transformation-wrap { grid-template-columns: minmax(260px, .7fr) minmax(540px, 1.3fr); gap: 2.5rem; }
  .transformation-heading { font-size: clamp(3.7rem, 6.8vw, 5rem); }
  .transformation-list { padding-left: 146px; }
  .transformation-thread { width: 150px; }
}

@media (min-width: 821px) and (max-width: 1040px) {
  .portal-page .nav, .portal-page .nav-links { gap: .65rem; }
  .portal-page .portal-nav-actions { gap: .4rem; }
  .portal-page .portal-nav-actions .logout { padding-inline: .65rem; font-size: .75rem; }
}

@media (max-width: 820px) {
  body.nav-open { overflow: hidden; overscroll-behavior: none; }
  .wrap, .narrow { width: min(calc(100% - 2rem), var(--wrap)); }
  .nav { min-height: 78px; }
  .site-header.nav-open {
    border-bottom-color: transparent;
    background: transparent;
    box-shadow: none;
    transform: translate3d(0, 0, 0);
  }
  .brand { position: relative; z-index: 3; gap: .55rem; }
  .brand img { width: 50px; height: 50px; }
  .brand::after { font-size: 1.05rem; }
  .nav-toggle {
    position: relative;
    z-index: 3;
    display: block;
    width: 46px;
    height: 46px;
    margin-left: auto;
    padding: 0;
    border: 1px solid rgba(189, 140, 41, .36);
    border-radius: 50%;
    background: rgba(255, 253, 249, .56);
    color: var(--ink);
    cursor: pointer;
    transition: border-color .3s ease, background-color .3s ease, transform .3s ease;
  }
  .nav-toggle:hover { border-color: rgba(189, 140, 41, .62); }
  .nav-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
  .nav-toggle span,
  .nav-toggle::before,
  .nav-toggle::after {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: 22px;
    height: 1.5px;
    border-radius: 2px;
    background: currentColor;
    content: "";
    transform-origin: center;
    transition: transform .42s cubic-bezier(.65, 0, .35, 1), opacity .24s ease, width .3s ease;
  }
  .nav-toggle::before { transform: translate(-50%, -7px); }
  .nav-toggle span { transform: translate(-50%, -.75px); }
  .nav-toggle::after { transform: translate(-50%, 5.5px); }
  .site-header.nav-open .nav-toggle {
    border-color: rgba(189, 140, 41, .62);
    background: rgba(255, 253, 249, .72);
  }
  .site-header.nav-open .nav-toggle::before { transform: translate(-50%, -.75px) rotate(45deg); }
  .site-header.nav-open .nav-toggle span { width: 0; opacity: 0; }
  .site-header.nav-open .nav-toggle::after { transform: translate(-50%, -.75px) rotate(-45deg); }
  .nav-links {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: grid;
    overflow: hidden auto;
    align-content: center;
    gap: 0;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 6.8rem 1.25rem 8.5rem;
    background:
      radial-gradient(circle at 84% 106%, transparent 0 8.4rem, rgba(239, 229, 212, .76) 8.5rem 11.1rem, rgba(189, 140, 41, .16) 11.15rem 11.22rem, transparent 11.3rem),
      radial-gradient(circle at 100% 0%, rgba(212, 175, 55, .14), transparent 38%),
      var(--cream);
    clip-path: inset(0 0 0 100%);
    opacity: 0;
    visibility: hidden;
    transition: clip-path .64s cubic-bezier(.76, 0, .24, 1), opacity .4s ease, visibility 0s linear .64s;
  }
  .nav-links a {
    position: relative;
    width: min(100%, 430px);
    margin-inline: auto;
    padding: .72rem 2rem .72rem .35rem;
    border-bottom: 1px solid rgba(189, 140, 41, .25);
    font-family: var(--serif);
    font-size: clamp(1.85rem, 8vw, 2.65rem);
    font-weight: 500;
    line-height: 1.05;
    white-space: normal;
    opacity: 0;
    transform: translate3d(1.75rem, 0, 0);
    transition: color .25s ease, opacity .42s ease, transform .52s cubic-bezier(.22, .61, .36, 1);
  }
  .nav-links a::after {
    top: 50%;
    right: .35rem;
    bottom: auto;
    left: auto;
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 1px;
    opacity: 0;
    transform: translateY(-50%) rotate(45deg) scale(0);
    transition: opacity .25s ease, transform .25s ease;
  }
  .nav-links a:hover,
  .nav-links a[aria-current="page"] { color: var(--brown); }
  .nav-links a:hover::after,
  .nav-links a[aria-current="page"]::after { opacity: 1; transform: translateY(-50%) rotate(45deg) scale(1); }
  .site-header.nav-open .nav-links {
    clip-path: inset(0 0 0 0);
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
  }
  .site-header.nav-open .nav-links a { opacity: 1; transform: translate3d(0, 0, 0); }
  .site-header.nav-open .nav-links a:nth-child(1) { transition-delay: .16s; }
  .site-header.nav-open .nav-links a:nth-child(2) { transition-delay: .21s; }
  .site-header.nav-open .nav-links a:nth-child(3) { transition-delay: .26s; }
  .site-header.nav-open .nav-links a:nth-child(4) { transition-delay: .31s; }
  .site-header.nav-open .nav-links a:nth-child(5) { transition-delay: .36s; }
  .site-header.nav-open .nav-links a:nth-child(6) { transition-delay: .41s; }
  .nav-actions {
    position: fixed;
    top: calc(100dvh - max(1.25rem, env(safe-area-inset-bottom)));
    right: 1rem;
    bottom: auto;
    left: 1rem;
    z-index: 2;
    display: flex;
    width: min(calc(100% - 2rem), 430px);
    margin-inline: auto;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(calc(-100% + 1rem));
    visibility: hidden;
    transition: opacity .35s ease, transform .45s cubic-bezier(.22, .61, .36, 1), visibility 0s linear .64s;
  }
  .nav-actions .btn,
  .nav-actions .logout,
  .nav-actions .account-link { display: none; }
  .site-header.nav-open .nav-actions {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-100%);
    visibility: visible;
    transition-delay: .44s;
  }
  .site-header.nav-open .nav-actions > :not([hidden]) { display: inline-flex; }
  .site-header.nav-open .nav-actions .btn { min-height: 54px; flex: 1; }
  .site-header.nav-open .portal-nav-actions .account-link,
  .site-header.nav-open .portal-nav-actions .logout { align-items: center; justify-content: center; min-height: 50px; padding-inline: 1rem; }
  .hero-grid, .split, .founder, .contact-grid { grid-template-columns: 1fr; }
  .not-found-page { min-height: calc(100svh - 78px); }
  .not-found-inner { grid-template-columns: 1fr; gap: 2.5rem; padding-block: 4.5rem 5.5rem; }
  .not-found-copy { text-align: center; }
  .not-found-copy h1, .not-found-copy > p { margin-inline: auto; }
  .not-found-actions { justify-content: center; }
  .not-found-visual { min-height: 290px; }
  .not-found-orbit--outer { width: min(76vw, 370px); }
  .not-found-orbit--inner { width: min(56vw, 275px); }
  .not-found-code { font-size: clamp(9rem, 36vw, 13rem); }
  .hero-grid { min-height: 0; gap: 0; text-align: center; }
  .hero-copy { display: contents; }
  .hero-copy h1 { grid-row: 1; margin: 1rem auto 1.75rem; }
  .hero-copy .lead { grid-row: 3; margin-inline: auto; padding-left: 0; border-left: 0; }
  .hero-copy .hero-actions { grid-row: 4; }
  .hero-actions, .hero-copy .hero-actions { justify-content: center; margin-left: 0; }
  .hero-media { grid-row: 2; width: min(100%, 620px); margin: 0 auto 1.75rem; padding: 0; }
  .hero-portrait { aspect-ratio: 3 / 2; clip-path: none; border: 1px solid rgba(189, 140, 41, .45); border-radius: 2.25rem 0 2.25rem 0; box-shadow: none; }
  .hero-portrait-outline { display: none; }
  .hero-portrait img { object-position: center; }
  .split--reverse .split-media, .founder--reverse .founder-photo { order: 0; }
  .situation-grid, .course-grid { grid-template-columns: 1fr; }
  .situation-story {
    --mobile-card-width: min(84vw, 360px);
    overflow: hidden;
    padding-block: 5.25rem 5.75rem;
    background:
      radial-gradient(circle at 96% 9%, rgba(212, 175, 55, .11), transparent 30%),
      var(--cream-2);
  }
  .situation-story-content { width: 100%; }
  .situation-story .section-title-offset {
    width: min(calc(100% - 2.5rem), 620px);
    margin: 0 auto;
    font-size: clamp(2.8rem, 12vw, 3.8rem);
    font-weight: 600;
    letter-spacing: -.03em;
    line-height: .96;
    text-shadow: 0 10px 30px rgba(150, 105, 74, .14);
    text-wrap: balance;
  }
  .situation-story .section-title-offset .serif-accent { color: #86593d; }
  .situation-story .situation-grid {
    position: relative;
    display: flex;
    width: 100%;
    gap: .9rem;
    margin-top: 2.4rem;
    padding: .8rem max(1.25rem, calc((100vw - var(--mobile-card-width)) / 2)) 1.65rem;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    scroll-padding-inline: max(1.25rem, calc((100vw - var(--mobile-card-width)) / 2));
    scroll-snap-type: none;
    scrollbar-width: none;
    touch-action: pan-x pan-y;
  }
  .situation-story .situation-grid::-webkit-scrollbar { display: none; }
  .situation-story .situation-grid:focus-visible { outline: 2px solid var(--gold); outline-offset: -4px; }
  .situation-story .situation-card {
    flex: 0 0 var(--mobile-card-width);
    height: clamp(350px, 94vw, 390px);
    justify-content: flex-end;
    padding: 1.55rem 1.5rem 1.8rem;
    border-radius: 48px 5px 48px 5px;
    scroll-snap-align: none;
    scroll-snap-stop: normal;
  }
  .situation-story .situation-card:nth-child(even) { border-radius: 5px 48px 5px 48px; }
  .situation-story .situation-card::before {
    top: 1.65rem;
    left: 1.55rem;
    width: 9px;
    height: 9px;
    border-radius: 1px;
    background: var(--gold);
    content: "";
    opacity: .76;
    transform: rotate(45deg);
  }
  .situation-story .situation-card::after {
    top: auto;
    right: -4.3rem;
    bottom: -5.2rem;
    width: 12rem;
    height: 12rem;
    border: 1px solid rgba(189, 140, 41, .17);
    border-radius: 50%;
    background: transparent;
    content: "";
    opacity: .9;
    transform: none;
  }
  .situation-story .situation-card-index {
    position: absolute;
    top: 1.15rem;
    right: 1.25rem;
    color: rgba(189, 140, 41, .13);
    font-size: clamp(5.4rem, 25vw, 6.8rem);
    font-weight: 500;
    line-height: .78;
    opacity: 1;
    -webkit-text-stroke: 1px rgba(189, 140, 41, .42);
  }
  .situation-story .situation-card-copy {
    max-width: 30ch;
    opacity: 1;
    transform: none;
  }
  .situation-story .situation-card-copy::before { width: 58px; margin-bottom: 1.15rem; }
  .situation-story .situation-card h3 { font-size: clamp(2.55rem, 11vw, 3rem); }
  .situation-story .situation-card p { max-width: 29ch; font-size: clamp(1.15rem, 4vw, 1.28rem); line-height: 1.54; }
  .situation-story .wisdom-note {
    width: min(calc(100% - 2.5rem), 520px);
    margin-top: 3.4rem;
    padding-inline: .25rem;
    font-size: clamp(2.5rem, 11vw, 3.65rem);
  }
  .transformation-section { padding-block: 5.5rem 6rem; }
  .transformation-wrap { grid-template-columns: 1fr; gap: 4.5rem; }
  .transformation-heading { max-width: 650px; font-size: clamp(3.8rem, 11vw, 5.6rem); }
  .transformation-heading-main br { display: none; }
  .transformation-heading-accent { width: max-content; max-width: 100%; }
  .transformation-journey { min-height: 520px; }
  .transformation-list { min-height: 520px; padding-left: 112px; }
  .transformation-thread { width: 116px; }
  .founder-photo { width: min(100%, 550px); margin-inline: auto; }
  .portal-grid { grid-template-columns: repeat(2, 1fr); }
  .portal-premium { padding-top: 1.25rem; }
  .portal-gate { grid-template-columns: minmax(0, 1fr); }
  .portal-gate::before { display: none; }
  .portal-gate-copy { max-width: 720px; padding: 3.6rem 2rem 2rem; text-align: center; }
  .portal-security-note { justify-content: center; }
  .portal-gate-copy .lead { margin-inline: auto; }
  .portal-gate-visual { min-height: 410px; transform: none; }
  .portal-dashboard-head { align-items: flex-start; flex-direction: column; }
  .portal-resource-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  h1 { font-size: clamp(2.65rem, 13vw, 4rem); }
  .hero-copy { width: 100%; max-width: calc(100vw - 2rem); margin-inline: auto; }
  .hero-copy h1 { font-size: clamp(3.15rem, 15vw, 4.35rem); }
  .home-hero .hero-actions .btn { min-height: 58px; padding-inline: 1.75rem; }
  .hero-copy .lead, .hero-actions { width: 100%; max-width: 100%; }
  .brand img { width: 46px; height: 46px; }
  .brand::after { font-size: .98rem; }
  .page-hero { padding-top: 3.8rem; }
  .not-found-page::before, .not-found-page::after { width: 54px; height: 54px; }
  .not-found-page::before { top: 1.25rem; left: 1rem; }
  .not-found-page::after { right: 1rem; bottom: 1.25rem; }
  .not-found-inner { gap: 1.8rem; padding-block: 3.8rem 4.5rem; }
  .not-found-copy h1 { font-size: clamp(3.5rem, 16vw, 4.6rem); }
  .not-found-copy > p { margin-top: 1.5rem; font-size: .98rem; }
  .not-found-actions { gap: 1rem; margin-top: 2rem; }
  .not-found-actions .btn { width: min(100%, 330px); }
  .not-found-visual { min-height: 230px; }
  .not-found-diamond { right: 7%; }
  .situation-card { height: 270px; padding: 1.4rem; }
  .situation-card-index { font-size: 3.5rem; }
  .situation-card::before, .situation-card::after { font-size: 1.45rem; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .portal-grid { grid-template-columns: 1fr; }
  .portal-nav-actions { gap: .45rem; }
  .portal-nav-actions .account-link { font-size: .75rem; }
  .portal-gate { min-height: 680px; border-radius: 19px; }
  .portal-gate-copy { padding: 3rem 1.25rem 1.5rem; }
  .portal-gate-copy .lead { width: 100%; overflow-wrap: anywhere; font-size: .98rem; }
  .portal-gate-copy h1 { font-size: clamp(2.7rem, 13vw, 3.7rem); }
  .portal-gate-visual { min-height: 330px; transform: scale(.82); }
  .portal-security-note { flex-wrap: wrap; font-size: .67rem; }
  .portal-dashboard-head { padding-top: 1rem; }
  .portal-identity { width: 100%; border-radius: 15px; }
  .portal-tabs { width: 100%; margin-inline: 0; }
  .portal-tab { min-width: 0; flex: 1 1 0; padding-inline: .5rem; font-size: .68rem; line-height: 1.4; white-space: normal; }
  .portal-calendar-section-head { margin-bottom: .8rem; }
  .portal-calendar-item { grid-template-columns: 68px minmax(0, 1fr); gap: .9rem; padding: .85rem; border-radius: 3px 14px 3px 14px; }
  .portal-calendar-date { min-height: 88px; padding: .5rem .25rem; border-radius: 34px 34px 4px 4px; }
  .portal-calendar-date strong { font-size: 1.9rem; }
  .portal-calendar-weekday { font-size: .48rem; letter-spacing: .05em; }
  .portal-calendar-month { font-size: .55rem; }
  .portal-calendar-topline { align-items: flex-start; flex-direction: column; gap: .15rem; }
  .portal-calendar-copy h3 { margin-top: .2rem; font-size: 1.35rem; }
  .portal-calendar-meta { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .55rem .8rem; }
  .portal-calendar-meta div { min-width: 0; }
  .portal-personal-note { grid-column: 1 / -1; margin-left: calc(-68px - .9rem); }
  .portal-recording-item { grid-template-columns: 38px minmax(0, 1fr); }
  .portal-recording-duration { grid-column: 2; }
  .portal-section-heading { align-items: flex-start; flex-direction: column; }
  .portal-card--premium .portal-foot { align-items: flex-start; flex-direction: column; }
  .portal-card--premium .portal-foot .btn { width: 100%; }
  .login-dialog { width: min(calc(100% - 1rem), 470px); max-height: calc(100vh - 1rem); padding: 2rem 1.25rem; border-radius: 19px; }
  .transformation-section { padding-block: 4.8rem 5.25rem; }
  .transformation-wrap { width: min(calc(100% - 2rem), var(--wrap)); gap: 3.5rem; }
  .transformation-heading { font-size: clamp(3.25rem, 15vw, 4.45rem); line-height: .91; }
  .transformation-heading-main br { display: block; }
  .transformation-heading-accent { width: auto; font-size: .72em; }
  .transformation-journey,
  .transformation-list { min-height: 0; }
  .transformation-thread { display: none; }
  .transformation-list {
    position: relative;
    gap: 2.35rem;
    padding-left: 3.6rem;
  }
  .transformation-list::before {
    position: absolute;
    top: .65rem;
    bottom: .75rem;
    left: 1rem;
    width: 1px;
    background: linear-gradient(var(--gold-bright), var(--gold));
    content: "";
    opacity: .72;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 1.4s .2s cubic-bezier(.65,0,.35,1);
  }
  .transformation-section.is-visible .transformation-list::before { transform: scaleY(1); }
  .transformation-step {
    position: relative;
    grid-template-columns: 2rem minmax(0, 1fr);
    gap: .65rem;
  }
  .transformation-step::before {
    position: absolute;
    top: .15rem;
    left: -3.07rem;
    color: var(--gold-bright);
    content: "✦";
    font-family: var(--serif);
    font-size: 1.25rem;
    line-height: 1;
  }
  .transformation-index { padding-top: .18rem; font-size: .95rem; }
  .transformation-step h3 { font-size: clamp(1.45rem, 7vw, 1.8rem); }
  .transformation-step p { font-size: .88rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  html.intro-pending .site-intro { display: none; }
  html.intro-pending body.home-page .site-header { opacity: 1; transform: none; }
  body.intro-active { overflow-x: hidden; overflow-y: auto; }
  body.page-leaving > main,
  body.page-leaving > .site-footer { opacity: 1; transform: none; }
  .transformation-thread-path { stroke-dashoffset: 0; }
  .transformation-thread-highlight { display: none; }
  .transformation-node { opacity: 1; scale: 1; }
  .transformation-list::before { transform: scaleY(1); }
  .situation-story .situation-card { opacity: 1; translate: 0 0; transform: none; }
  .motion-ready .situation-story .card-reveal { opacity: 1; transform: none; }
  .situation-story.cards-in-view .situation-card { will-change: auto; }
  .situation-story .situation-card-copy,
  .situation-story .situation-card-index { transform: none; }
}

/* Progressive enhancement: a sticky presentation deck over a native scroll range.
   Without JavaScript, the original horizontal list remains available. */
.situation-story.has-card-deck .situation-deck-scroller {
  display: flex;
  width: 100%;
  margin-top: 2.4rem;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  touch-action: pan-x pan-y;
}
.situation-deck-scroller::-webkit-scrollbar { display: none; }
.situation-deck-scroller::after { content: ""; flex: 0 0 var(--deck-travel, 0px); }
.situation-story.has-card-deck .situation-grid {
  position: sticky;
  left: 0;
  display: block;
  flex: 0 0 100%;
  width: 100%;
  height: clamp(370px, 54vh, 490px);
  margin: 0;
  padding: 0;
  overflow: clip;
  overscroll-behavior: auto;
  scroll-snap-type: none;
}
.situation-story.has-card-deck .situation-card {
  position: absolute;
  top: 28px;
  left: 50%;
  width: min(64vw, 760px);
  min-height: 0;
  height: calc(100% - 64px);
  translate: -50% 0;
  opacity: 1;
  transform-origin: center center;
  transition: transform .7s cubic-bezier(.22, .61, .36, 1);
}
.situation-story.has-card-deck .situation-card-copy { opacity: var(--card-copy-opacity); }
.situation-story.has-card-deck .situation-card-index { opacity: var(--card-index-opacity); }
.situation-story.has-card-deck .deck-is-open .situation-card {
  transition: transform 1.6s cubic-bezier(.37, 0, .25, 1);
}
.situation-story.has-card-deck .deck-is-open .situation-card-copy {
  transition: opacity 1s cubic-bezier(.37, 0, .25, 1), transform 1.6s cubic-bezier(.37, 0, .25, 1);
}
.situation-story.has-card-deck .deck-is-open .situation-card-index { transition: opacity 1s cubic-bezier(.37, 0, .25, 1); }
/* Opening uses compositor-friendly transitions between two static poses instead
   of updating inherited custom properties and transforms on every JS frame. */
.situation-story.has-card-deck .deck-is-opening .situation-card {
  transition: transform 2.8s cubic-bezier(.45, 0, .55, 1);
}
.situation-story.has-card-deck .deck-is-opening .situation-card-copy {
  transition: opacity 2.8s cubic-bezier(.45, 0, .55, 1), transform 2.8s cubic-bezier(.45, 0, .55, 1);
}
.situation-story.has-card-deck .deck-is-opening .situation-card-index,
.situation-story.has-card-deck .deck-is-opening .situation-card::before,
.situation-story.has-card-deck .deck-is-opening .situation-card::after {
  transition: opacity 2.8s cubic-bezier(.45, 0, .55, 1);
}
@media (max-width: 820px) {
  .situation-controls button { display: none; }
  .situation-story.has-card-deck .situation-deck-scroller { scroll-behavior: auto; scroll-snap-type: none; }
  .situation-story.has-card-deck .situation-grid { height: 430px; }
  .situation-story.has-card-deck .situation-card { width: min(80vw, 360px); }
  .situation-story.has-card-deck .situation-card::before { opacity: var(--card-copy-opacity); }
  .situation-story.has-card-deck .deck-is-open:not(.deck-is-opening) .situation-card,
  .situation-story.has-card-deck .deck-is-open:not(.deck-is-opening) .situation-card-copy,
  .situation-story.has-card-deck .deck-is-open:not(.deck-is-opening) .situation-card-index,
  .situation-story.has-card-deck .deck-is-open:not(.deck-is-opening) .situation-card::before,
  .situation-story.has-card-deck .deck-is-open:not(.deck-is-opening) .situation-card::after { transition: none; }
}
@media (prefers-reduced-motion: reduce) {
  /* Keep the deck's essential positions; disable decorative motion, not access. */
  .situation-story.has-card-deck .situation-card { translate: -50% 0; }
}

/* Standalone client authentication */
.auth-page { min-height: 100vh; padding: clamp(.75rem, 2vw, 1.5rem); background: #f4efe6; }
.auth-shell {
  display: grid;
  min-height: calc(100vh - clamp(1.5rem, 4vw, 3rem));
  grid-template-columns: 1.08fr .92fr;
  overflow: hidden;
  border: 1px solid rgba(189,140,41,.25);
  border-radius: clamp(26px, 3vw, 48px);
  background: #fffdf9;
  box-shadow: 0 35px 75px -58px rgba(42,37,33,.68);
}
.auth-intro {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3rem, 7vw, 9rem);
}
.auth-home { position: absolute; top: clamp(1.8rem, 4vw, 3.5rem); left: clamp(2rem, 5vw, 5rem); }
.auth-home img { width: 62px; height: 62px; }
.auth-kicker { margin-bottom: 2rem; color: #8b681b; font-size: clamp(.78rem, 1.2vw, 1rem); font-weight: 800; letter-spacing: .3em; text-transform: uppercase; }
.auth-intro h1 { max-width: 8.3ch; font-size: clamp(4rem, 7vw, 7.2rem); line-height: .98; }
.auth-intro h1 em { color: #a86f4c; font-weight: 500; }
.auth-lead { max-width: 31ch; margin-top: 2.6rem; font-size: clamp(1rem, 1.45vw, 1.35rem); line-height: 1.75; }
.auth-security { display: flex; align-items: center; gap: .65rem; margin-top: 3.2rem; color: #81786e; font-size: .74rem; font-weight: 600; }
.auth-security span { color: var(--gold); font-size: 1rem; }
.auth-access {
  position: relative;
  isolation: isolate;
  display: grid;
  min-width: 0;
  place-items: center;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 5rem);
  border-left: 1px solid rgba(189,140,41,.12);
  background: radial-gradient(circle at 52% 40%, #fffaf0 0%, #f4e6cf 72%, #ead8bb 100%);
}
.auth-access::before { position: absolute; width: 62%; height: 70%; border: 1px solid rgba(189,140,41,.28); border-radius: 150px 150px 22px 22px; background: rgba(255,253,249,.2); content: ""; }
.auth-orbit { position: absolute; z-index: -1; border: 1px solid rgba(189,140,41,.28); border-radius: 50%; }
.auth-orbit--outer { width: min(76vw, 710px); height: min(76vw, 710px); }
.auth-orbit--inner { width: min(61vw, 560px); height: min(61vw, 560px); border-style: dashed; }
.auth-card {
  position: relative;
  z-index: 2;
  width: min(100%, 470px);
  max-height: calc(100vh - 5rem);
  overflow-y: auto;
  padding: clamp(1.7rem, 3vw, 2.7rem);
  border: 1px solid rgba(189,140,41,.3);
  border-radius: 24px;
  background: rgba(255,253,249,.94);
  box-shadow: 0 30px 65px -40px rgba(42,37,33,.65);
  backdrop-filter: blur(12px);
}
.auth-card-brand { display: grid; width: 62px; height: 62px; margin: 0 auto 1.15rem; place-items: center; border-radius: 50%; background: var(--ink); }
.auth-card-brand img { width: 52px; height: 52px; }
.auth-view { animation: auth-view-in .32s ease both; }
@keyframes auth-view-in { from { opacity: 0; transform: translateY(8px); } }
.auth-form-kicker { color: var(--gold); font-size: .65rem; font-weight: 800; letter-spacing: .2em; text-align: center; text-transform: uppercase; }
.auth-view > h2 { margin: .35rem 0 .5rem; font-size: clamp(2.2rem, 4vw, 3rem); text-align: center; }
.auth-view > p:not(.auth-form-kicker):not(.auth-switch) { font-size: .8rem; text-align: center; }
.auth-form { display: grid; gap: .85rem; margin-top: 1.4rem; }
.auth-form label { display: grid; gap: .35rem; color: var(--ink); font-size: .7rem; font-weight: 800; }
.auth-form input { width: 100%; min-height: 48px; padding: .7rem .85rem; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink); font-size: max(1rem, 1em); }
.auth-form input:focus { border-color: var(--gold); outline: 3px solid rgba(189,140,41,.15); }
.auth-name-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.auth-password-rules { margin-top: -.35rem; font-size: .64rem; line-height: 1.5; }
.auth-privacy { margin: 0; color: var(--ink-soft); font-size: .7rem; line-height: 1.5; text-align: center; }
.auth-message { min-height: 1.2rem; color: #9d3f35; font-size: .7rem; line-height: 1.45; }
.auth-message.is-success { color: #3d6e4a; }
.auth-submit { display: flex; min-height: 50px; align-items: center; justify-content: center; gap: .7rem; border: 0; border-radius: 999px; background: var(--gold); color: #fff; font-size: .8rem; font-weight: 800; cursor: pointer; box-shadow: 0 14px 25px -18px rgba(106,72,15,.85); }
.auth-submit:hover { background: #a87920; transform: translateY(-1px); }
.auth-submit:disabled { cursor: wait; opacity: .62; }
.auth-switch { margin-top: 1.1rem; color: var(--ink-soft); font-size: .74rem; text-align: center; }
.auth-switch button { padding: 0; border: 0; background: transparent; color: var(--gold); font-size: inherit; font-weight: 800; cursor: pointer; text-decoration: underline; text-underline-offset: .18em; }

@media (max-width: 920px) {
  .auth-page { padding: 0; }
  .auth-shell { min-height: 100vh; grid-template-columns: 1fr; border: 0; border-radius: 0; }
  .auth-intro { min-height: 540px; padding: 7rem 2rem 4rem; }
  .auth-home { top: 1.5rem; left: 2rem; }
  .auth-intro h1 { max-width: 8ch; }
  .auth-access { min-height: 720px; border-top: 1px solid rgba(189,140,41,.16); border-left: 0; }
  .auth-card { max-height: none; }
}
@media (max-width: 560px) {
  .auth-intro { min-height: 500px; padding: 6.5rem 1.25rem 3rem; }
  .auth-home { left: 1.25rem; }
  .auth-home img { width: 52px; height: 52px; }
  .auth-kicker { margin-bottom: 1.4rem; }
  .auth-intro h1 { font-size: clamp(3.4rem, 17vw, 4.8rem); }
  .auth-lead { margin-top: 1.8rem; font-size: .98rem; }
  .auth-security { align-items: flex-start; margin-top: 2rem; font-size: .66rem; }
  .auth-access { min-height: 680px; padding: 2.5rem .75rem; }
  .auth-card { width: min(100%, 450px); padding: 1.6rem 1.15rem; border-radius: 19px; }
  .auth-name-row { grid-template-columns: 1fr; }
}
