/* Черновик · cinematic ladder */
:root {
  --ink: #0e1621;
  --ink-2: #243041;
  --mute: #6b7789;
  --chalk: #f3efe7;
  --chalk-2: #e8e2d6;
  --white: #faf8f4;
  --blue: #4f8fb5;
  --blue-deep: #2f6486;
  --warm: #e8915a;
  --warm-soft: #f0b48a;
  --line: rgba(14, 22, 33, 0.1);
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Figtree", system-ui, sans-serif;
  --shell: min(1100px, calc(100% - clamp(1.2rem, 4.5vw, 2.4rem) * 2));
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box }
html { overflow-x: clip }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.06rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--chalk);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto }
a { color: inherit }
:focus-visible { outline: 3px solid var(--warm); outline-offset: 3px }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  padding: .75rem 1rem; background: var(--ink); color: #fff;
}
.skip:focus { left: 0 }
.shell { width: var(--shell); margin-inline: auto }

/* Nav chrome lives in site-nav.css */

/* Buttons */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.25rem; padding: .8rem 1.45rem;
  border-radius: 999px; border: 1.5px solid transparent;
  background: var(--ink); color: #fff;
  text-decoration: none; font-weight: 700; font-size: .98rem;
  transition: transform .3s var(--ease), background .25s, border-color .25s, color .25s, box-shadow .3s;
}
.btn:hover {
  transform: translateY(-2px) scale(1.02);
  background: var(--blue-deep);
  box-shadow: 0 18px 40px -22px rgba(47, 100, 134, .7);
}
.btn--sm { min-height: 2.55rem; padding: 0 1.1rem; font-size: .9rem; flex: none }
.btn--ghost {
  background: transparent; border-color: rgba(255, 255, 255, .4); color: #fff;
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, .1); border-color: #fff; color: #fff;
  box-shadow: none;
}
.btn--warm {
  background: var(--warm); color: var(--ink);
}
.btn--warm:hover {
  background: var(--warm-soft); color: var(--ink);
  box-shadow: 0 18px 40px -20px rgba(232, 145, 90, .7);
}
.dock .btn--ghost {
  border-color: rgba(14, 22, 33, .22); color: var(--ink);
}
.dock .btn--ghost:hover {
  border-color: var(--ink); background: transparent; color: var(--ink);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 7rem 0 4.5rem;
  color: #f6f3ee;
  overflow: clip;
  background: var(--ink);
}
.hero__media {
  position: absolute; inset: 0;
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 68% center;
}
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(14, 22, 33, .94) 0%, rgba(14, 22, 33, .78) 34%, rgba(14, 22, 33, .42) 58%, rgba(14, 22, 33, .55) 100%),
    linear-gradient(0deg, rgba(14, 22, 33, .78) 0%, transparent 42%);
}
.hero__orb {
  position: absolute;
  width: min(50vw, 420px); height: min(50vw, 420px);
  right: -8%; bottom: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 145, 90, .28), transparent 70%);
  pointer-events: none;
  contain: layout paint;
}

.hero__stage {
  position: relative;
  z-index: 2;
  width: var(--shell);
  max-width: min(36rem, 100%);
  margin-inline: auto;
  padding-inline: 0;
  container-type: inline-size;
  container-name: hero;
}
.hero__meta {
  margin: 0 0 1.1rem;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: rgba(246, 243, 238, .55);
}
.hero__brand {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.75rem, 18cqi, 5.2rem);
  line-height: .9;
  letter-spacing: -.04em;
  max-width: 100%;
}
.hero__line {
  display: block;
}
html.js .hero__line {
  opacity: 0;
  transform: translateY(1.1rem);
  animation: lineRise .9s var(--ease) forwards;
}
html.js .hero__line--delay { animation-delay: .12s }
@keyframes lineRise {
  to { opacity: 1; transform: none }
}

@media (min-width: 900px) {
  .hero__stage {
    max-width: min(44rem, 56%);
  }
  .hero__brand {
    font-size: clamp(3.2rem, 14cqi, 5.1rem);
  }
  .hero__media img {
    object-position: 78% center;
  }
  .hero__shade {
    background:
      linear-gradient(100deg, rgba(14, 22, 33, .95) 0%, rgba(14, 22, 33, .82) 40%, rgba(14, 22, 33, .35) 68%, rgba(14, 22, 33, .45) 100%),
      linear-gradient(0deg, rgba(14, 22, 33, .7) 0%, transparent 40%);
  }
}

@media (min-width: 1200px) {
  .hero__stage {
    max-width: min(46rem, 52%);
  }
}

.hero__promise {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: .3rem .4rem;
  margin: 1.25rem 0 .9rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.15rem, 2.4vw, 2.15rem);
  letter-spacing: -.03em;
  color: var(--warm-soft);
  width: max-content;
  max-width: 100%;
}
.hero__promise-word {
  display: inline-block;
  flex: 0 0 auto;
  padding: .08rem .42rem;
  border-radius: .5rem;
  background: rgba(232, 145, 90, .14);
  border: 1px solid rgba(232, 145, 90, .28);
  white-space: nowrap;
  animation: wordPop .7s var(--ease) both;
  animation-delay: var(--d, 0s);
}
@keyframes wordPop {
  from { opacity: 0; transform: translateY(12px) scale(.96) }
  to { opacity: 1; transform: none }
}

.hero__lead {
  margin: 0 0 1.8rem;
  max-width: 26ch;
  font-size: clamp(1.05rem, 2.2vw, 1.22rem);
  font-weight: 500;
  color: rgba(246, 243, 238, .82);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: .7rem }
.hero__cta .btn:not(.btn--ghost) {
  background: #f6f3ee;
  color: var(--ink);
}
.hero__cta .btn:not(.btn--ghost):hover {
  background: var(--warm);
  color: var(--ink);
  box-shadow: 0 18px 40px -20px rgba(246, 243, 238, .35);
}

.hero__wave {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  height: 70px; color: rgba(243, 239, 231, .55);
  pointer-events: none;
}
.hero__wave svg { width: 100%; height: 100%; display: block }
.hero__wave-path {
  stroke-dasharray: 8 10;
  animation: waveMove 6s linear infinite;
}
.hero__wave-path--2 {
  opacity: .45;
  animation-duration: 9s;
  animation-direction: reverse;
}
@keyframes waveMove {
  to { stroke-dashoffset: -120 }
}

@media (max-width: 760px) {
  .hero {
    min-height: 100svh;
    min-height: 100dvh;
    justify-content: flex-end;
    padding: 5.5rem 0 1.5rem;
    background: var(--ink);
  }

  /* одна цельная картинка на весь экран — без «разреза» */
  .hero__media {
    position: absolute;
    inset: 0;
    height: auto;
    overflow: hidden;
  }

  .hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 58% 12%;
    transform: none;
  }

  .hero__shade {
    position: absolute;
    inset: 0;
    height: auto;
    bottom: 0;
    background:
      linear-gradient(180deg,
        rgba(14, 22, 33, .42) 0%,
        rgba(14, 22, 33, .28) 30%,
        rgba(14, 22, 33, .62) 48%,
        rgba(14, 22, 33, .92) 68%,
        rgba(14, 22, 33, .98) 100%);
  }

  .hero__orb { display: none }

  .hero__stage {
    position: relative;
    z-index: 3;
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 max(1.35rem, env(safe-area-inset-right)) 0.65rem max(1.35rem, env(safe-area-inset-left));
    background: transparent;
  }

  .hero__meta {
    margin-bottom: .85rem;
    font-size: .68rem;
    letter-spacing: .16em;
  }

  .hero__brand {
    font-size: clamp(2.35rem, 11vw, 3.15rem);
    line-height: .94;
    text-shadow: 0 2px 28px rgba(14, 22, 33, .55);
  }

  .hero__promise {
    margin: .95rem 0 .7rem;
    font-size: clamp(0.95rem, 3.8vw, 1.25rem);
    gap: .22rem .28rem;
  }

  .hero__promise-word {
    padding: .06rem .32rem;
  }

  .hero__lead {
    margin: 0 0 1.25rem;
    max-width: none;
    font-size: 1.02rem;
    line-height: 1.5;
    color: rgba(246, 243, 238, .92);
  }

  .hero__cta {
    flex-direction: column;
    align-items: stretch;
    gap: .65rem;
  }

  .hero__cta .btn {
    width: 100%;
  }

  /* тёмная кнопка на тёмном фоне была «невидимой» */
  .hero__cta .btn:not(.btn--ghost) {
    background: #f6f3ee;
    color: var(--ink);
  }
  .hero__cta .btn:not(.btn--ghost):hover {
    background: var(--warm);
    color: var(--ink);
  }

  .hero__wave {
    position: relative;
    z-index: 3;
    height: 36px;
    margin-top: .35rem;
    padding-inline: max(1.35rem, env(safe-area-inset-left));
    color: rgba(243, 239, 231, .35);
    background: transparent;
  }
}

@media (max-width: 560px) {
  .nav__name {
    max-width: 11ch;
  }
}

/* Ladder */
.ladder {
  position: relative;
  background:
    radial-gradient(ellipse 50% 30% at 50% 0%, rgba(232, 145, 90, .08), transparent 60%),
    var(--chalk);
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}
.ladder__sticky {
  position: relative;
  padding: clamp(2.8rem, 6.5vw, 4.25rem) 0 1.35rem;
}
.ladder__head {
  max-width: none;
  display: grid;
  gap: 1.15rem clamp(1.75rem, 4.5vw, 3.75rem);
}
@media (min-width: 860px) {
  .ladder__head {
    grid-template-columns: minmax(16rem, 1fr) minmax(18rem, 1.08fr);
    align-items: start;
  }
  .ladder__head:not(:has(.ladder__lead)) {
    grid-template-columns: 1fr;
  }
}
.kicker {
  margin: 0 0 .7rem;
  font-size: .72rem; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--blue-deep);
}
.kicker--light { color: var(--warm-soft) }
.ladder__head h2,
.sec-head h2,
.about__copy h2,
.book__copy h2 {
  margin: 0 0 .8rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -.035em;
}
.ladder__head h2 { margin-bottom: 0 }
.ladder__lead {
  margin: 0;
  max-width: none;
  display: grid;
  gap: 1rem;
  color: var(--ink-2);
  font-size: 1.08rem;
  line-height: 1.65;
}
@media (min-width: 860px) {
  .ladder__lead {
    padding-top: 1.85rem;
  }
}
.ladder__lead p {
  margin: 0;
  max-width: 46ch;
}

.rail {
  display: none;
}
@media (min-width: 980px) {
  .rail {
    display: flex;
    position: fixed;
    top: 50%;
    right: max(1.2rem, calc((100vw - 1100px) / 2 - 2.5rem));
    transform: translateY(-50%);
    z-index: 40;
    flex-direction: column;
    align-items: center;
    gap: .85rem;
    padding: .85rem .45rem;
    border-radius: 999px;
    background: rgba(250, 248, 244, .96);
    border: 1px solid var(--line);
    box-shadow: 0 16px 40px -24px rgba(14, 22, 33, .28);
  }
  .rail__fill {
    position: absolute;
    top: .85rem; bottom: .85rem; left: 50%;
    width: 2px; margin-left: -1px;
    background: linear-gradient(180deg, var(--warm), var(--blue));
    transform-origin: top;
    transform: scaleY(0.12);
    border-radius: 2px;
    opacity: .55;
    pointer-events: none;
    transition: transform .35s ease;
  }
  .rail__dot {
    position: relative; z-index: 1;
    width: 11px; height: 11px; padding: 0;
    border-radius: 50%;
    border: 2px solid var(--blue);
    background: var(--white);
    cursor: pointer;
    transition: background .2s, border-color .2s;
  }
  .rail__dot.is-on {
    background: var(--warm);
    border-color: var(--warm);
  }
}

.step {
  position: relative;
  min-height: auto;
  display: flex;
  align-items: center;
  padding: clamp(1.4rem, 3.5vw, 2.2rem) 0;
  border-top: none;
  contain: content;
}
.step + .step { margin-top: .35rem }

.step__plate {
  position: relative;
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.2rem, 3vw, 1.75rem);
  border-radius: 1.75rem;
  background: var(--white);
  border: 1px solid rgba(14, 22, 33, .08);
  box-shadow: 0 18px 50px -36px rgba(14, 22, 33, .28);
  overflow: hidden;
  isolation: isolate;
  transition: border-color .35s ease;
}
.step.is-active .step__plate {
  border-color: rgba(232, 145, 90, .35);
}
.step--school.is-active .step__plate {
  border-color: rgba(79, 143, 181, .4);
}

.step__plate::before {
  content: "";
  position: absolute;
  inset: auto -10% -30% auto;
  width: 55%;
  height: 70%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 145, 90, .1), transparent 70%);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity .35s ease;
}
.step.is-active .step__plate::before { opacity: 1 }

@media (min-width: 860px) {
  .step {
    min-height: min(68vh, 580px);
    padding: 1.75rem 0;
  }
  .step__plate {
    grid-template-columns: 1.08fr 1fr;
    align-items: center;
    gap: clamp(1.5rem, 4vw, 2.75rem);
    padding: clamp(1.4rem, 3vw, 2rem);
  }
  .step--flip .step__plate {
    grid-template-columns: 1fr 1.08fr;
  }
  .step--flip .step__visual { order: 2 }
  .step--flip .step__copy { order: 1 }
}

.step__visual {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  border-radius: 1.45rem;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--chalk-2);
  box-shadow: 0 20px 40px -24px rgba(14, 22, 33, .4);
  transform: rotate(-1deg);
}
.step--flip .step__visual { transform: rotate(1deg) }
.step__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.step__badge {
  position: absolute;
  left: .85rem;
  bottom: .85rem;
  min-width: 2.4rem;
  height: 2.4rem;
  padding: 0 .55rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(14, 22, 33, .78);
  color: var(--warm-soft);
  font-family: var(--display);
  font-weight: 800;
  font-size: .95rem;
  letter-spacing: .04em;
}

.step__copy {
  position: relative;
  z-index: 1;
  max-width: 34rem;
}
.step__n {
  margin: 0 0 .85rem;
  display: inline-flex;
  align-items: baseline;
  gap: .55rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -.01em;
  color: var(--warm);
}
.step__n span {
  font-family: var(--body);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mute);
}
.step__title {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.2rem, 6.5vw, 3.8rem);
  line-height: 1.02;
  letter-spacing: -.04em;
}
.step__title .dim {
  display: block;
  margin-bottom: .12em;
  color: rgba(14, 22, 33, .3);
  font-weight: 700;
}
.step__title .lit {
  position: relative;
  display: inline;
  color: var(--ink);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  background-image: linear-gradient(120deg, rgba(232, 145, 90, .28), rgba(232, 145, 90, .08));
  background-repeat: no-repeat;
  background-size: 0% 88%;
  background-position: 0 60%;
  padding: 0 .08em;
  margin: 0 -.08em;
  border-radius: .15em;
  transition: background-size .55s ease;
}
.step.is-active .step__title .lit {
  background-size: 100% 88%;
}
.step__text {
  margin: 0;
  max-width: 38ch;
  font-size: clamp(1.02rem, 2vw, 1.16rem);
  color: var(--ink-2);
  line-height: 1.6;
}

.step__links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .55rem;
  margin-top: 1.25rem;
}
.link-glow {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--blue-deep);
  border-bottom: 2px solid var(--warm);
  padding-bottom: .15rem;
  transition: gap .25s, color .25s;
}
.link-glow:hover { gap: .65rem; color: var(--ink) }
.link-soft {
  font-weight: 700;
  font-size: .95rem;
  color: var(--mute);
  text-decoration: none;
  border-bottom: 1px solid rgba(107, 119, 137, .4);
}
.link-soft:hover { color: var(--ink) }

@media (max-width: 859px) {
  .ladder {
    padding-bottom: clamp(2rem, 6vw, 3rem);
  }

  .ladder__sticky {
    padding: clamp(2.4rem, 7vw, 3.4rem) 0 0.85rem;
  }

  .ladder__head h2 {
    font-size: clamp(1.85rem, 8vw, 2.45rem);
  }

  .ladder__lead {
    font-size: 1rem;
    padding-top: 0;
  }

  .step {
    min-height: auto;
    padding: 0.4rem clamp(1.1rem, 4.5vw, 1.5rem);
  }

  .step + .step {
    margin-top: 0.55rem;
  }

  .step__plate {
    gap: 0;
    width: auto;
    max-width: none;
    margin-inline: 0;
    padding: 0;
    border-radius: 1.35rem;
    overflow: hidden;
    background: var(--white);
    border-color: rgba(14, 22, 33, .1);
    box-shadow: 0 16px 40px -28px rgba(14, 22, 33, .38);
  }

  .step.is-active .step__plate,
  .step--school.is-active .step__plate {
    border-color: rgba(14, 22, 33, .12);
  }

  .step__plate::before {
    display: none;
  }

  .step__visual {
    max-width: none;
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 0;
    box-shadow: none;
    transform: none !important;
  }

  .step--flip .step__visual {
    transform: none !important;
  }

  .step__badge {
    left: .75rem;
    bottom: .75rem;
    min-width: 2.15rem;
    height: 2.15rem;
    font-size: .85rem;
  }

  .step__copy {
    max-width: none;
    padding: 1.05rem 1.1rem 1.2rem;
  }

  .step__n {
    margin: 0 0 .45rem;
    font-size: 1.1rem;
    gap: .4rem;
  }

  .step__n span {
    font-size: .65rem;
  }

  .step__title {
    margin: 0 0 .55rem;
    font-size: clamp(1.55rem, 7.2vw, 2.05rem);
    line-height: 1.12;
  }

  /* на узком экране «эхо» слов — отдельной строкой, читаемее */
  .step__title .dim {
    display: block;
    margin-bottom: .1rem;
    font-size: .82em;
    line-height: 1.15;
  }

  .step__title .lit {
    background-size: 100% 88%;
  }

  .step__text {
    max-width: none;
    font-size: .96rem;
    line-height: 1.55;
  }

  .step__links {
    margin-top: 0.9rem;
    gap: .45rem;
  }

  .link-glow {
    font-size: 1rem;
  }
}

@media (max-width: 420px) {
  .step__visual {
    aspect-ratio: 5 / 3;
  }

  .step__copy {
    padding: 0.95rem 1rem 1.1rem;
  }
}

/* Formats / gates — horizontal composition, custom art */
.formats {
  padding: clamp(3.5rem, 9vw, 6rem) 0 clamp(4rem, 10vw, 6.5rem);
  background:
    radial-gradient(ellipse 55% 45% at 100% 10%, rgba(232, 145, 90, .14), transparent 55%),
    radial-gradient(ellipse 50% 40% at 0% 80%, rgba(79, 143, 181, .12), transparent 55%),
    var(--chalk-2);
  overflow: clip;
}
.sec-head {
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
  max-width: 22ch;
}
.sec-head__lead {
  margin: .85rem 0 0;
  max-width: 28ch;
  font-size: 1.05rem;
  color: var(--ink-2);
  font-family: var(--body);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.5;
}

.gates {
  display: grid;
  gap: 1rem;
  width: var(--shell);
  margin-inline: auto;
  padding-bottom: .25rem;
}

@media (max-width: 899px) {
  .gates {
    width: auto;
    margin: 0;
    padding: 0.25rem max(1.2rem, env(safe-area-inset-right)) 1rem max(1.2rem, env(safe-area-inset-left));
    padding-left: clamp(1.2rem, 5vw, 2rem);
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: min(78vw, 300px);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: clamp(1.2rem, 5vw, 2rem);
    -webkit-overflow-scrolling: touch;
    gap: .9rem;
  }
  .gates::-webkit-scrollbar { height: 0 }
}

@media (min-width: 900px) {
  .gates {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    align-items: stretch;
  }
}

.gate {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 420px;
  text-decoration: none;
  color: #f6f3ee;
  border-radius: 1.6rem;
  overflow: hidden;
  scroll-snap-align: start;
  isolation: isolate;
  box-shadow: 0 24px 50px -28px rgba(14, 22, 33, .5);
  transition: transform .4s var(--ease), box-shadow .4s;
}
.gate:hover {
  transform: translateY(-8px);
  box-shadow: 0 36px 70px -28px rgba(14, 22, 33, .55);
}

.gate__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.gate__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 1s var(--ease);
}
.gate:hover .gate__media img { transform: scale(1.06) }

.gate__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(14, 22, 33, .12) 0%, rgba(14, 22, 33, .28) 35%, rgba(14, 22, 33, .88) 100%);
  pointer-events: none;
}
.gate--warm .gate__veil {
  background:
    linear-gradient(180deg, rgba(14, 22, 33, .08) 0%, rgba(90, 50, 30, .25) 40%, rgba(40, 24, 16, .9) 100%);
}
.gate--cool .gate__veil {
  background:
    linear-gradient(180deg, rgba(14, 22, 33, .1) 0%, rgba(30, 55, 75, .3) 40%, rgba(14, 28, 40, .92) 100%);
}

.gate__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .45rem;
  padding: 1.35rem 1.3rem 1.5rem;
}
.gate__top {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: .35rem;
}
.gate__num {
  min-width: 2.2rem;
  height: 2.2rem;
  padding: 0 .45rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(250, 248, 244, .95);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 800;
  font-size: .95rem;
}
.gate--warm .gate__num { background: var(--warm) }
.gate--cool .gate__num {
  background: rgba(250, 248, 244, .95);
  color: var(--blue-deep);
}
.gate__tag {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(246, 243, 238, .72);
}
.gate__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  letter-spacing: -.025em;
  line-height: 1.15;
  color: #fff;
}
.gate__text {
  color: rgba(246, 243, 238, .78);
  font-size: .95rem;
  line-height: 1.5;
  max-width: 26ch;
}
.gate__go {
  margin-top: .65rem;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
  border-bottom: 2px solid var(--warm);
  padding-bottom: .1rem;
  transition: gap .25s;
}
.gate:hover .gate__go { gap: .55rem }
.gate__go i { font-style: normal }

@media (min-width: 900px) {
  .gate { min-height: 460px }
  .gate:nth-child(1) { transform: rotate(-1.1deg) translateY(10px) }
  .gate:nth-child(2) { transform: rotate(.6deg) translateY(-6px) }
  .gate:nth-child(3) { transform: rotate(-.8deg) translateY(16px) }
  .gate:nth-child(1):hover { transform: rotate(-.4deg) translateY(2px) }
  .gate:nth-child(2):hover { transform: rotate(.2deg) translateY(-14px) }
  .gate:nth-child(3):hover { transform: rotate(-.2deg) translateY(8px) }
}

@media (prefers-reduced-motion: reduce) {
  .gate,
  .gate:nth-child(1),
  .gate:nth-child(2),
  .gate:nth-child(3) { transform: none }
}

/* About */
.about {
  padding: clamp(4rem, 10vw, 6.5rem) 0;
  background:
    radial-gradient(ellipse 50% 40% at 0% 50%, rgba(232, 145, 90, .1), transparent 55%),
    var(--chalk);
}
.about__layout {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
@media (min-width: 900px) {
  .about__layout {
    grid-template-columns: .95fr 1.15fr;
    gap: 4rem;
  }
}

.about__visual {
  position: relative;
  max-width: 460px;
  margin-inline: auto;
  padding-bottom: 3.1rem;
}
.about__photo {
  margin: 0;
  position: relative;
  border-radius: 1.75rem;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  box-shadow: 0 40px 80px -40px rgba(14, 22, 33, .55);
  background: var(--chalk-2);
}
.about__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25);
  pointer-events: none;
  z-index: 1;
}
.about__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 1.2s var(--ease);
}
.about__visual:hover .about__photo img { transform: scale(1.04) }

.about__seals {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(.15rem, 1vw, .4rem);
  width: max-content;
  max-width: calc(100% + 2.4rem);
  margin: 0;
  padding: 0;
  list-style: none;
  transform: translateX(-50%);
  pointer-events: none;
}
.about__seal {
  --seal-ink: #9a4a28;
  --seal-ring: rgba(154, 74, 40, .55);
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(7rem, 17vw, 8.35rem);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  color: var(--seal-ink);
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .55), transparent 42%),
    radial-gradient(circle at 70% 78%, rgba(154, 74, 40, .08), transparent 48%),
    linear-gradient(155deg, rgba(255, 249, 241, .94), rgba(247, 236, 222, .9));
  border: 1.5px solid var(--seal-ring);
  box-shadow:
    0 0 0 3px rgba(255, 248, 240, .78),
    0 0 0 5px rgba(154, 74, 40, .28),
    0 16px 30px -16px rgba(14, 22, 33, .55);
  transform: rotate(var(--seal-tilt, -6deg)) translateY(var(--seal-lift, 0));
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.about__seal::before {
  content: "";
  position: absolute;
  inset: .32rem;
  border-radius: 50%;
  border: 1.5px dashed rgba(154, 74, 40, .38);
  pointer-events: none;
}
.about__seal--1 { --seal-tilt: -8deg; --seal-lift: .35rem }
.about__seal--2 { --seal-tilt: 3deg; --seal-lift: -.15rem }
.about__seal--3 { --seal-tilt: -4deg; --seal-lift: .4rem }
.about__visual:hover .about__seal--1 { transform: rotate(-6deg) translateY(.1rem) }
.about__visual:hover .about__seal--2 { transform: rotate(1deg) translateY(-.4rem) }
.about__visual:hover .about__seal--3 { transform: rotate(-2deg) translateY(.2rem) }
.about__seal-face {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  gap: .1rem;
  place-items: center;
  width: 68%;
  max-height: 68%;
  overflow: hidden;
  padding: 0;
  text-align: center;
}
.about__seal strong,
.about__seal span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: manual;
  -webkit-hyphens: manual;
  text-wrap: balance;
  max-width: 100%;
}
.about__seal strong {
  -webkit-line-clamp: 3;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(.58rem, 1.35vw, .7rem);
  letter-spacing: -.03em;
  line-height: 1.08;
}
.about__seal span {
  -webkit-line-clamp: 3;
  font-size: clamp(.48rem, 1.1vw, .58rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.02em;
  color: rgba(154, 74, 40, .82);
}
@media (max-width: 720px) {
  .about__visual {
    padding-bottom: 2.4rem;
    max-width: min(360px, 100%);
  }
  .about__seals {
    gap: .12rem;
    width: 100%;
    max-width: 100%;
    padding: 0 .1rem;
  }
  .about__seal {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    max-width: 6.5rem;
    --seal-tilt: -3deg;
    --seal-lift: .15rem;
  }
  .about__seal--1 { --seal-tilt: -4deg; --seal-lift: .2rem }
  .about__seal--2 { --seal-tilt: 2deg; --seal-lift: 0 }
  .about__seal--3 { --seal-tilt: -2deg; --seal-lift: .22rem }
  .about__visual:hover .about__seal--1,
  .about__visual:hover .about__seal--2,
  .about__visual:hover .about__seal--3 {
    transform: rotate(var(--seal-tilt)) translateY(var(--seal-lift));
  }
  .about__seal::before { inset: .22rem }
  .about__seal-face {
    width: 64%;
    max-height: 64%;
    gap: .05rem;
  }
  .about__seal strong {
    font-size: .55rem;
    -webkit-line-clamp: 2;
    line-height: 1.05;
  }
  .about__seal span {
    font-size: .48rem;
    -webkit-line-clamp: 3;
    line-height: 1.1;
  }
}
@media (max-width: 380px) {
  .about__seal strong { font-size: .42rem }
  .about__seal span { font-size: .36rem }
}

.about__copy h2 {
  margin: .5rem 0 1.1rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  letter-spacing: -.035em;
  line-height: 1.05;
  max-width: 14ch;
}
.about__panels {
  display: grid;
  gap: .85rem;
  margin: 0 0 1.5rem;
}
.about__quote {
  margin: 0;
  padding: 1.05rem 1.2rem 1.15rem;
  border-radius: 1.2rem;
  border-left: 4px solid var(--warm);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .88), rgba(255, 255, 255, .58));
  color: var(--ink-2);
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: min(40ch, 100%);
  box-shadow: 0 14px 28px -26px rgba(14, 22, 33, .4);
}
.about__quote--left {
  justify-self: start;
  margin-right: auto;
}
.about__quote--right {
  justify-self: end;
  margin-left: auto;
  border-left: 0;
  border-right: 4px solid var(--warm);
}
.about__quote--text {
  display: grid;
  gap: .75rem;
}
.about__quote--text > p {
  margin: 0;
  color: var(--ink-2);
  line-height: 1.65;
}
.about__quote--text > p.about__lead {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -.01em;
}
.about__paths {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .65rem;
}
.about__paths li {
  display: grid;
  gap: .2rem;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
}
.about__path-who {
  font-family: var(--display);
  font-weight: 800;
  font-size: .88rem;
  letter-spacing: -.02em;
  color: var(--warm);
  line-height: 1.1;
}
.about__path-text {
  color: var(--ink-2);
  font-size: 1.02rem;
  line-height: 1.5;
  font-weight: 500;
}
.about__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: .25rem;
}
.about__actions .btn--ghost,
.btn--line {
  background: transparent;
  border: 1.5px solid rgba(14, 22, 33, .22);
  color: var(--ink);
}
.about__actions .btn--ghost:hover,
.btn--line:hover {
  border-color: var(--ink);
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}
@media (max-width: 560px) {
  .about__actions { flex-direction: column; align-items: stretch }
  .about__actions .btn { width: 100% }
}

/* Book */
.book { padding: 0 0 clamp(4rem, 9vw, 6rem) }
.book__panel {
  display: grid; gap: 1.75rem;
  padding: clamp(1.8rem, 5vw, 3rem);
  border-radius: 1.75rem;
  background:
    radial-gradient(ellipse 70% 80% at 100% 0%, rgba(232, 145, 90, .3), transparent 50%),
    linear-gradient(145deg, #1a2a3a, var(--ink));
  color: #f6f3ee;
  box-shadow: 0 40px 80px -40px rgba(14, 22, 33, .7);
}
@media (min-width: 820px) {
  .book__panel { grid-template-columns: 1.2fr .8fr; align-items: center }
}
.book__copy p:last-child {
  margin: 0; color: rgba(246, 243, 238, .72); max-width: 30ch;
}
.book__side {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1rem;
}
.book__phone {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  letter-spacing: -.03em;
  text-decoration: none; line-height: 1.1;
}
.book__phone:hover { color: var(--warm-soft) }
.book__extra {
  font-weight: 700;
  font-size: .95rem;
  color: rgba(246, 243, 238, .78);
  text-decoration: none;
  border-bottom: 1px solid rgba(232, 145, 90, .5);
}
.book__extra:hover { color: #fff }

/* Footer / dock */
.foot {
  padding: 1.6rem 0 calc(6rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}
@media (min-width: 760px) { .foot { padding-bottom: 2.2rem } }
.foot__row {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .7rem;
  font-size: .88rem; font-weight: 600; color: var(--mute);
}
.foot p { margin: 0 }

.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: flex; gap: .65rem; justify-content: center;
  padding: .75rem clamp(1rem, 4vw, 1.5rem) calc(.75rem + env(safe-area-inset-bottom));
  background: rgba(243, 239, 231, .96);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform .3s ease;
}
.dock.is-on { transform: none }
.dock .btn { flex: 1; max-width: 240px; min-height: 2.9rem }
@media (min-width: 760px) { .dock { display: none } }

/* Reveal — visible without JS; hide only after js boots */
.reveal { opacity: 1; transform: none }
html.js .reveal:not(.is-in) {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .5s ease, transform .5s ease;
}
html.js .reveal.is-in { opacity: 1; transform: none }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto }
  .hero__orb, .hero__wave-path, .hero__promise-word { animation: none }
  html.js .hero__line { opacity: 1; transform: none; animation: none }
  .reveal { opacity: 1; transform: none; transition: none }
  .step.is-active .step__title .lit { background-size: 100% 88% }
  .step__visual,
  .step--flip .step__visual { transform: none }
  .dock { transition: none }
}
