/* ==========================================================================
   Владимир Куралин — адвокат по семейным спорам
   Design system: warm darkroom editorial (walnut / cream / bark / ember)
   ========================================================================== */

:root {
  --cream: #ffedd7;
  --cream-80: rgba(255, 237, 215, 0.8);
  --cream-60: rgba(255, 237, 215, 0.6);
  --cream-40: rgba(255, 237, 215, 0.4);
  --cream-12: rgba(255, 237, 215, 0.12);
  --walnut: #100904;
  --walnut-80: rgba(16, 9, 4, 0.8);
  --bark: #382416;
  --cork: #40372e;
  --drift: #6c5f51;
  --ember: #dc5000;

  --font: "Onest", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(16px, 3.2vw, 45px);
  --nav-h: 76px;

  --r-card: 12px;
  --r-pill: 36px;
  --r-ghost: 22.5px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  background: var(--walnut);
  color: var(--cream);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  background: var(--walnut);
  color: var(--cream);
  overflow-x: hidden;
  font-feature-settings: "ss01" on;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: var(--bark); color: var(--cream); }

:focus-visible {
  outline: 1px dashed var(--cream);
  outline-offset: 4px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Film grain — adds warmth to the dark canvas */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 150;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .93 0 0 0 0 .84 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}

@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

/* ---------- Type ---------- */
.label {
  font-size: 12px;
  line-height: 1.2;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ember);
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.h-display,
.h2,
.h3 {
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0;
}

.h2 {
  font-size: clamp(36px, 5.4vw, 84px);
  line-height: 0.9;
}

.h3 {
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.02;
}

.lead {
  font-size: clamp(20px, 2vw, 29px);
  line-height: 1.26;
  font-weight: 400;
  color: var(--cream);
}

.muted { color: var(--cream-60); }

.dash {
  border: 0;
  border-top: 1px dashed var(--cork);
}

/* ---------- Buttons ---------- */
.btn {
  --btn-h: 50px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: var(--btn-h);
  padding: 0 26px;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.5s var(--ease), border-color 0.5s var(--ease);
  will-change: transform;
}

.btn::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 140%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--cream);
  transform: translate(-50%, 0) scale(0.2);
  transition: transform 0.6s var(--ease), top 0.6s var(--ease);
  z-index: -1;
}

.btn:hover::before,
.btn:focus-visible::before {
  top: 50%;
  transform: translate(-50%, -50%) scale(1);
}

.btn:hover,
.btn:focus-visible { color: var(--walnut); }

.btn--fill {
  background: var(--bark);
  color: var(--cream);
  border-radius: var(--r-pill);
}

.btn--ghost {
  border: 1px solid var(--cream);
  border-radius: var(--r-ghost);
  color: var(--cream);
}

.btn__arrow {
  display: inline-block;
  width: 14px;
  height: 14px;
  position: relative;
  overflow: hidden;
}

.btn__arrow::before,
.btn__arrow::after {
  content: "→";
  position: absolute;
  inset: 0;
  line-height: 14px;
  font-size: 14px;
  transition: transform 0.5s var(--ease);
}

.btn__arrow::after { transform: translateX(-120%); }
.btn:hover .btn__arrow::before { transform: translateX(120%); }
.btn:hover .btn__arrow::after { transform: translateX(0); }

.link-u {
  position: relative;
  display: inline-block;
}

.link-u::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}

.link-u:hover::after,
.link-u[aria-current="true"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ---------- Curtain (preloader + page transitions) ---------- */
.curtain {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--bark);
  display: grid;
  place-items: center;
  visibility: hidden;
  transform: translate3d(0, -101%, 0);
  pointer-events: none;
}

html.first-visit .curtain,
html.from-nav .curtain {
  visibility: visible;
  transform: none;
  pointer-events: auto;
  animation: curtainFailsafe 0s linear 5s forwards;
}

@keyframes curtainFailsafe {
  to { visibility: hidden; transform: translate3d(0, -101%, 0); pointer-events: none; }
}

.curtain.is-leaving {
  visibility: visible;
  transform: translate3d(0, -101%, 0);
  transition: transform 1s var(--ease-io);
}

.curtain.is-entering {
  visibility: visible;
  transform: translate3d(0, 101%, 0);
  transition: none;
}

.curtain.is-covering {
  visibility: visible;
  transform: none;
  pointer-events: auto;
  transition: transform 0.85s var(--ease-io);
}

.curtain__inner {
  display: grid;
  justify-items: center;
  gap: 22px;
  padding: 0 var(--gutter);
  text-align: center;
}

.curtain__label { color: var(--cream-60); }

.curtain__title {
  font-size: clamp(44px, 11vw, 170px);
  line-height: 0.9;
  font-weight: 500;
  text-transform: uppercase;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  overflow: hidden;
  padding-bottom: 0.04em;
}

.curtain__title span {
  display: inline-block;
  transform: translateY(105%);
  animation: letterUp 0.9s var(--ease) forwards;
  animation-delay: calc(var(--i) * 45ms + 120ms);
}

.curtain.is-quick .curtain__title span {
  animation: none;
  transform: none;
}

@keyframes letterUp {
  to { transform: translateY(0); }
}

.curtain__bar {
  width: min(280px, 60vw);
  height: 1px;
  background: var(--cream-12);
  position: relative;
  overflow: hidden;
}

.curtain__bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--cream);
  transform: scaleX(0);
  transform-origin: left;
  animation: barFill 1.3s var(--ease-io) 0.2s forwards;
}

.curtain.is-quick .curtain__bar { opacity: 0; }

@keyframes barFill {
  to { transform: scaleX(1); }
}

/* ---------- Custom cursor ---------- */
html.has-cursor,
html.has-cursor * { cursor: none !important; }

html.has-cursor input,
html.has-cursor textarea { cursor: text !important; }

.cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 400;
  pointer-events: none;
  display: none;
}

html.has-cursor .cursor { display: block; }

.cursor__dot,
.cursor__ring {
  position: fixed;
  left: 0;
  top: 0;
  border-radius: 50%;
  will-change: transform;
}

.cursor__dot {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  background: var(--cream);
}

.cursor__ring {
  width: 38px;
  height: 38px;
  margin: -19px 0 0 -19px;
  border: 1px solid var(--cream-40);
  display: grid;
  place-items: center;
  transition: width 0.45s var(--ease), height 0.45s var(--ease), margin 0.45s var(--ease),
    background-color 0.45s var(--ease), border-color 0.45s var(--ease);
}

.cursor__label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--walnut);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.cursor.is-hover .cursor__ring {
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  border-color: var(--cream);
}

.cursor.is-label .cursor__ring {
  width: 104px;
  height: 104px;
  margin: -52px 0 0 -52px;
  background: var(--cream);
  border-color: var(--cream);
}

.cursor.is-label .cursor__label { opacity: 1; }
.cursor.is-label .cursor__dot { opacity: 0; }
.cursor.is-hidden { opacity: 0; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 var(--gutter);
  transition: transform 0.6s var(--ease), background-color 0.5s var(--ease), border-color 0.5s var(--ease);
  border-bottom: 1px dashed transparent;
}

.nav.is-solid {
  background: rgba(16, 9, 4, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--cork);
}

.nav.is-hidden { transform: translateY(-100%); }

.nav__logo {
  display: grid;
  gap: 4px;
  margin-right: auto;
  line-height: 1;
}

.nav__logo-name {
  font-size: 18px;
  font-weight: 500;
  text-transform: uppercase;
}

.nav__logo-sub {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--cream-60);
}

.nav__links {
  display: flex;
  gap: 28px;
}

.nav__links a {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.nav__cta { --btn-h: 40px; padding: 0 20px; font-size: 12px; }

.nav__burger {
  display: none;
  width: 44px;
  height: 44px;
  position: relative;
  border: 1px solid var(--cream-40);
  border-radius: 50%;
}

.nav__burger span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 1px;
  background: var(--cream);
  transition: transform 0.5s var(--ease), top 0.5s var(--ease);
}

.nav__burger span:first-child { top: 18px; }
.nav__burger span:last-child { top: 25px; }

.nav__burger[aria-expanded="true"] span:first-child { top: 21.5px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { top: 21.5px; transform: rotate(-45deg); }

/* Mobile menu */
.menu {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: var(--walnut);
  padding: calc(var(--nav-h) + 32px) var(--gutter) 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.8s var(--ease-io), visibility 0s linear 0.8s;
}

.menu.is-open {
  clip-path: inset(0 0 0 0);
  visibility: visible;
  transition: clip-path 0.8s var(--ease-io), visibility 0s;
}

.menu__links { display: grid; gap: 4px; }

.menu__links a {
  display: block;
  overflow: hidden;
  font-size: clamp(34px, 9vw, 64px);
  line-height: 1;
  font-weight: 500;
  text-transform: uppercase;
  padding: 6px 0;
  border-bottom: 1px dashed var(--cork);
}

.menu__links a span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.8s var(--ease);
  transition-delay: calc(var(--i, 0) * 60ms + 200ms);
}

.menu.is-open .menu__links a span { transform: none; }

.menu__foot {
  display: grid;
  gap: 16px;
  opacity: 0;
  transition: opacity 0.6s var(--ease) 0.5s;
}

.menu.is-open .menu__foot { opacity: 1; }

/* ---------- Intro (hero load) reveals ---------- */
.line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.04em;
  margin-bottom: -0.04em;
}

.line > span {
  display: block;
  transform: translate3d(0, 105%, 0);
  transition: transform 1.3s var(--ease);
  transition-delay: calc(var(--i, 0) * 110ms + 100ms);
}

html.is-ready .line > span { transform: none; }

[data-intro] {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
  transition-delay: calc(var(--d, 0) * 1ms);
}

html.is-ready [data-intro] { opacity: 1; transform: none; }

html:not(.js) .line > span,
html:not(.js) [data-intro] { transform: none; opacity: 1; }

/* ---------- Scroll reveals ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 40px, 0);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}

html.js [data-reveal].is-in { opacity: 1; transform: none; }

html.js [data-reveal="clip"] {
  opacity: 1;
  transform: none;
  clip-path: inset(100% 0 0 0 round var(--r-card));
  transition: clip-path 1.4s var(--ease-io);
}

html.js [data-reveal="clip"].is-in { clip-path: inset(0 0 0 0 round var(--r-card)); }

html.js [data-reveal="line"] {
  opacity: 1;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.4s var(--ease-io);
}

html.js [data-reveal="line"].is-in { transform: scaleX(1); }

/* Word split reveal */
.w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.w > span {
  display: inline-block;
  transform: translate3d(0, 110%, 0);
  transition: transform 1.1s var(--ease);
  transition-delay: calc(var(--i, 0) * 35ms);
}

[data-split].is-in .w > span { transform: none; }

/* Scroll-driven text fill */
.fw {
  opacity: 0.16;
  transition: opacity 0.4s linear;
}

.fw.on { opacity: 1; }

/* Parallax media frames */
.frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-card);
  background: var(--bark);
}

.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

[data-parallax] {
  will-change: transform;
}

.frame [data-parallax] {
  position: absolute;
  inset: -12% 0;
  height: 124%;
}

/* ---------- Layout helpers ---------- */
.section {
  position: relative;
  padding: clamp(96px, 14vw, 204px) var(--gutter);
  scroll-margin-top: 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px 48px;
  align-items: end;
  margin-bottom: clamp(48px, 7vw, 96px);
}

.section-head .eyebrow { grid-column: 1 / -1; }

.section-head__aside {
  max-width: 520px;
  justify-self: end;
  color: var(--cream-80);
}

/* ==========================================================================
   HOME
   ========================================================================== */

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-h) + 40px) var(--gutter) clamp(28px, 4vw, 45px);
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.hero__media-inner {
  position: absolute;
  inset: -6% 0;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 35%;
  transform: scale(1.2);
  filter: brightness(0.6);
  transition: transform 2.8s var(--ease), filter 2.2s var(--ease);
}

html.is-ready .hero__img {
  transform: scale(1.04);
  filter: brightness(1);
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(16, 9, 4, 0.94) 0%, rgba(16, 9, 4, 0.72) 32%, rgba(16, 9, 4, 0.1) 62%, rgba(16, 9, 4, 0) 100%),
    linear-gradient(0deg, rgba(16, 9, 4, 0.95) 0%, rgba(16, 9, 4, 0) 45%),
    linear-gradient(180deg, rgba(16, 9, 4, 0.6) 0%, rgba(16, 9, 4, 0) 20%);
}

.hero__content {
  position: relative;
  max-width: 900px;
  will-change: transform, opacity;
}

.hero__eyebrow { margin-bottom: 28px; }

.hero__title {
  font-size: clamp(38px, 6.2vw, 104px);
  line-height: 0.88;
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero__lead {
  max-width: 560px;
  margin-bottom: 40px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__card {
  position: absolute;
  right: calc(var(--gutter) + 36px);
  bottom: clamp(28px, 4vw, 45px);
  width: 320px;
  padding: 24px;
  border-radius: var(--r-card);
  background: rgba(16, 9, 4, 0.5);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid var(--cream-12);
  display: grid;
  gap: 14px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--cream-80);
}

.hero__card .label { color: var(--cream); }

.hero__side {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cream-60);
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: 1px;
  height: 56px;
  background: var(--cream-12);
  overflow: hidden;
}

.hero__scroll::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 40%;
  background: var(--cream);
  animation: scrollHint 2.2s var(--ease-io) infinite;
}

@keyframes scrollHint {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(260%); }
}

/* ---------- Marquee ---------- */
.marquee {
  border-top: 1px dashed var(--cork);
  border-bottom: 1px dashed var(--cork);
  overflow: hidden;
  padding: 22px 0;
  display: flex;
}

.marquee__track {
  display: flex;
  flex-shrink: 0;
  gap: 40px;
  padding-right: 40px;
  animation: marquee 38s linear infinite;
  font-size: clamp(22px, 2.6vw, 38px);
  font-weight: 500;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}

.marquee:hover .marquee__track { animation-play-state: paused; }

.marquee__track span { display: inline-flex; align-items: center; gap: 40px; }

.marquee__track span::after {
  content: "";
  width: 10px;
  height: 10px;
  border: 1px solid var(--ember);
  transform: rotate(45deg);
}

@keyframes marquee {
  to { transform: translateX(-100%); }
}

/* ---------- Statement (scroll fill) ---------- */
.statement {
  padding-block: clamp(120px, 18vw, 240px);
}

.statement__text {
  font-size: clamp(28px, 4.1vw, 62px);
  line-height: 1.12;
  font-weight: 400;
  max-width: 1180px;
}

.statement__meta {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 56px;
  max-width: 1180px;
  color: var(--cream-60);
}

/* ---------- Practice list ---------- */
.plist { border-top: 1px dashed var(--cork); }

.prow {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1.4fr) minmax(0, 1fr) 64px;
  gap: 24px;
  align-items: center;
  padding: clamp(26px, 3vw, 40px) 0;
  border-bottom: 1px dashed var(--cork);
  isolation: isolate;
}

.prow::before {
  content: "";
  position: absolute;
  inset: 0 calc(var(--gutter) * -1);
  background: var(--bark);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.7s var(--ease);
  z-index: -1;
}

.prow:hover::before,
.prow:focus-visible::before { transform: scaleY(1); transform-origin: top; }

.prow__num { color: var(--cream-60); }

.prow__title {
  font-size: clamp(28px, 4.2vw, 64px);
  line-height: 0.92;
  font-weight: 500;
  text-transform: uppercase;
  transition: transform 0.7s var(--ease);
}

.prow:hover .prow__title { transform: translateX(18px); }

.prow__desc {
  color: var(--cream-80);
  font-size: 16px;
  line-height: 1.5;
  max-width: 420px;
}

.prow__arrow {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid var(--cream-40);
  display: grid;
  place-items: center;
  font-size: 20px;
  transition: transform 0.7s var(--ease), background-color 0.5s var(--ease), color 0.5s var(--ease);
}

.prow:hover .prow__arrow {
  transform: rotate(-45deg);
  background: var(--cream);
  color: var(--walnut);
}

/* Grandparents highlight */
.kin {
  margin-top: clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--r-card);
  border: 1px dashed var(--drift);
  position: relative;
  overflow: hidden;
}

.kin__mark {
  font-size: clamp(56px, 7vw, 110px);
  line-height: 0.8;
  font-weight: 500;
  color: transparent;
  -webkit-text-stroke: 1px var(--cream-60);
}

.kin__text { display: grid; gap: 10px; }
.kin__text p:last-child { color: var(--cream-80); max-width: 760px; }

/* ---------- Approach ---------- */
.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.acard {
  position: relative;
  padding: 28px 24px 32px;
  border-radius: var(--r-card);
  border: 1px solid var(--cork);
  display: grid;
  align-content: start;
  gap: 18px;
  min-height: 280px;
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.5s var(--ease);
}

.acard::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bark);
  z-index: -1;
  clip-path: circle(0% at var(--mx, 50%) var(--my, 50%));
  transition: clip-path 0.9s var(--ease);
}

.acard:hover::before { clip-path: circle(150% at var(--mx, 50%) var(--my, 50%)); }
.acard:hover { border-color: var(--bark); }

.acard__num { color: var(--ember); }

.acard p:last-child { color: var(--cream-80); font-size: 16px; line-height: 1.55; }

/* ---------- Process (pinned horizontal) ---------- */
.process { position: relative; }

.process__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 40px;
}

.process__track {
  display: flex;
  gap: 18px;
  padding: 0 var(--gutter);
  width: max-content;
  will-change: transform;
}

.pcard {
  flex: 0 0 clamp(300px, 30vw, 460px);
  height: min(64vh, 560px);
  border-radius: var(--r-card);
  border: 1px solid var(--cork);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(180deg, rgba(56, 36, 22, 0.35), rgba(16, 9, 4, 0));
}

.pcard__num {
  font-size: clamp(90px, 10vw, 150px);
  line-height: 0.8;
  font-weight: 500;
  color: transparent;
  -webkit-text-stroke: 1px var(--cream-40);
}

.pcard__body { display: grid; gap: 14px; }
.pcard__body p { color: var(--cream-80); font-size: 16px; line-height: 1.55; }

.pcard--intro {
  flex-basis: clamp(320px, 38vw, 600px);
  border: 0;
  background: none;
  padding: 0 24px 0 0;
  justify-content: center;
}

.pcard--photo {
  flex-basis: clamp(300px, 34vw, 560px);
  padding: 0;
  border: 0;
  overflow: hidden;
  position: relative;
}

.pcard--photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pcard--photo figcaption {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 8px 14px;
  border-radius: var(--r-ghost);
  background: rgba(16, 9, 4, 0.6);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.process__progress {
  margin: 0 var(--gutter);
  height: 1px;
  background: var(--cork);
  position: relative;
}

.process__progress span {
  position: absolute;
  inset: 0;
  background: var(--cream);
  transform: scaleX(0);
  transform-origin: left;
}

.process[data-mode="stack"] .process__pin {
  position: relative;
  height: auto;
  padding: clamp(96px, 14vw, 160px) 0;
}

.process[data-mode="stack"] .process__track {
  flex-direction: column;
  width: auto;
}

.process[data-mode="stack"] .pcard { flex-basis: auto; height: auto; min-height: 280px; }
.process[data-mode="stack"] .pcard--photo { min-height: 60vw; }
.process[data-mode="stack"] .process__progress { display: none; }

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 7vw, 120px);
  align-items: start;
}

.about__media {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  aspect-ratio: 2 / 3;
  max-height: calc(100vh - var(--nav-h) - 48px);
  width: 100%;
}

.about__media .frame { height: 100%; }

.about__tag {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 8px 14px;
  border-radius: var(--r-ghost);
  background: rgba(16, 9, 4, 0.6);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  z-index: 2;
}

.about__body { display: grid; gap: 32px; padding-top: 8px; }

.about__body > p:not(.lead):not(.eyebrow) { color: var(--cream-80); max-width: 640px; }

.facts {
  border-top: 1px dashed var(--cork);
  margin-top: 8px;
}

.facts div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px dashed var(--cork);
}

.facts dt { color: var(--cream-60); }
.facts dd { font-weight: 500; text-transform: uppercase; font-size: 15px; }

/* Telegram channel card */
.tgcard {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 48px;
  gap: 20px;
  align-items: center;
  padding: 22px 24px;
  border-radius: var(--r-card);
  background: var(--bark);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.tgcard::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(120% 140% at 0% 0%, rgba(220, 80, 0, 0.22), transparent 55%);
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}

.tgcard:hover::before { opacity: 1; }

.tgcard__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--cream);
  color: var(--bark);
  transition: transform 0.7s var(--ease);
}

.tgcard:hover .tgcard__icon { transform: rotate(-12deg) scale(1.06); }

.tgcard__text { display: grid; gap: 8px; }

.tgcard__title {
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.05;
  font-weight: 500;
  text-transform: uppercase;
}

.tgcard__sub { font-size: 15px; line-height: 1.45; color: var(--cream-60); }

.tgcard__arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--cream-40);
  display: grid;
  place-items: center;
  font-size: 18px;
  transition: transform 0.7s var(--ease), background-color 0.5s var(--ease), color 0.5s var(--ease);
}

.tgcard:hover .tgcard__arrow { transform: rotate(45deg); background: var(--cream); color: var(--walnut); }

.menu__phone { font-size: 22px; font-weight: 500; }

.footer__status { color: var(--cream); margin-bottom: 14px; max-width: 380px; line-height: 1.4; }

/* ---------- Gallery ---------- */
.gallery-wrap { padding-bottom: clamp(96px, 14vw, 204px); }

.gallery-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  padding: 0 var(--gutter);
  margin-bottom: 28px;
}

.gallery {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 0 var(--gutter) 8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  user-select: none;
}

.gallery::-webkit-scrollbar { display: none; }
.gallery.is-dragging { scroll-snap-type: none; }

.gitem {
  flex: 0 0 clamp(240px, 26vw, 400px);
  scroll-snap-align: start;
  display: grid;
  gap: 12px;
}

.gitem .frame { aspect-ratio: 2 / 3; }

.gitem .frame img {
  position: absolute;
  inset: 0 -10%;
  width: 120%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  will-change: transform;
}

.gitem figcaption { color: var(--cream-60); }

/* ---------- FAQ / Accordion ---------- */
.faq {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
}

.faq__head { position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; display: grid; gap: 24px; }
.faq__head p:last-child { color: var(--cream-80); max-width: 400px; }

.acc { border-top: 1px dashed var(--cork); }

.acc__item { border-bottom: 1px dashed var(--cork); }

.acc__btn {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  gap: 24px;
  align-items: center;
  padding: 26px 0;
  text-align: left;
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.2;
  font-weight: 500;
  text-transform: uppercase;
}

.acc__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--cream-40);
  position: relative;
  transition: transform 0.6s var(--ease), background-color 0.4s var(--ease);
}

.acc__icon::before,
.acc__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 1px;
  margin-left: -6px;
  background: var(--cream);
  transition: transform 0.6s var(--ease), background-color 0.4s var(--ease);
}

.acc__icon::after { transform: rotate(90deg); }

.acc__item.is-open .acc__icon { transform: rotate(180deg); background: var(--cream); }
.acc__item.is-open .acc__icon::before,
.acc__item.is-open .acc__icon::after { background: var(--walnut); }
.acc__item.is-open .acc__icon::after { transform: rotate(0deg); }

.acc__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.6s var(--ease);
}

.acc__item.is-open .acc__panel { grid-template-rows: 1fr; }

.acc__panel > div { overflow: hidden; }

.acc__panel p {
  padding: 0 64px 28px 0;
  color: var(--cream-80);
  max-width: 760px;
}

.acc__panel p + p { margin-top: -12px; }

/* ---------- Contact ---------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  padding: 18px var(--gutter);
  min-height: 100vh;
}

.contact__media {
  position: relative;
  min-height: 560px;
  border-radius: var(--r-card);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: clamp(24px, 3vw, 41px);
  isolation: isolate;
}

.contact__media .frame {
  position: absolute;
  inset: 0;
  z-index: -2;
  border-radius: 0;
}

.contact__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(16, 9, 4, 0.92) 0%, rgba(16, 9, 4, 0.2) 55%, rgba(16, 9, 4, 0.1) 100%);
}

.contact__media h2 { max-width: 560px; }

.contact__panel {
  border-radius: var(--r-card);
  border: 1px solid var(--cork);
  padding: clamp(24px, 3.5vw, 56px);
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.form { display: grid; gap: 28px; }

.field { display: grid; gap: 8px; position: relative; }

.field label,
.field legend { color: var(--cream-60); }

.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--cream-40);
  border-radius: 0;
  color: var(--cream);
  font: inherit;
  font-size: 20px;
  padding: 8px 2px 10px;
  outline: none;
  transition: border-color 0.4s var(--ease);
}

.field textarea { resize: vertical; min-height: 96px; line-height: 1.4; }

.field input::placeholder,
.field textarea::placeholder { color: var(--cream-40); }

.field input:focus,
.field textarea:focus { border-bottom-color: var(--cream); }

.field .bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--cream);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}

.field input:focus ~ .bar,
.field textarea:focus ~ .bar { transform: scaleX(1); }

.field.is-error input,
.field.is-error textarea { border-bottom-color: var(--ember); }

.field__err {
  font-size: 13px;
  color: var(--ember);
  display: none;
}

.field.is-error .field__err { display: block; }

fieldset.field { border: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }

.chip { position: relative; }

.chip input { position: absolute; opacity: 0; pointer-events: none; }

.chip span {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 16px;
  border: 1px solid var(--cream-40);
  border-radius: var(--r-ghost);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}

.chip:hover span { border-color: var(--cream); }
.chip input:checked + span { background: var(--cream); color: var(--walnut); border-color: var(--cream); }
.chip input:focus-visible + span { outline: 1px dashed var(--cream); outline-offset: 3px; }

.consent {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--cream-60);
}

.consent input {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 1px solid var(--cream-40);
  border-radius: 6px;
  margin-top: 1px;
  display: grid;
  place-items: center;
  transition: background-color 0.3s var(--ease);
}

.consent input::after {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 1.5px solid var(--walnut);
  border-bottom: 1.5px solid var(--walnut);
  transform: rotate(-45deg) translate(1px, -1px) scale(0);
  transition: transform 0.3s var(--ease);
}

.consent input:checked { background: var(--cream); border-color: var(--cream); }
.consent input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.consent.is-error input { border-color: var(--ember); }
.consent a { text-decoration: underline; text-underline-offset: 3px; }

.form__submit { justify-self: start; }

.form__success {
  display: none;
  gap: 16px;
  padding: 32px 0;
}

.form.is-sent > *:not(.form__success) { display: none; }
.form.is-sent .form__success { display: grid; animation: fadeUp 0.9s var(--ease) both; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

.contacts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding-top: 32px;
  border-top: 1px dashed var(--cork);
  margin-top: auto;
}

.contacts div { display: grid; gap: 6px; }
.contacts dt { color: var(--cream-60); }
.contacts dd { font-size: 18px; }

/* ---------- Footer ---------- */
.footer {
  padding: clamp(80px, 10vw, 140px) var(--gutter) 28px;
  overflow: hidden;
}

.footer__cols {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding-bottom: 56px;
  border-bottom: 1px dashed var(--cork);
}

.footer__cols h3 { color: var(--cream-60); margin-bottom: 18px; }
.footer__cols ul { display: grid; gap: 10px; }
.footer__cols li a { font-size: 15px; }

.footer__note { color: var(--cream-60); max-width: 380px; font-size: 15px; line-height: 1.5; }

.footer__word {
  font-size: clamp(64px, 20.5vw, 330px);
  line-height: 0.8;
  font-weight: 500;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  overflow: hidden;
  padding: 48px 0 16px;
}

.footer__word span {
  display: inline-block;
  transform: translateY(100%);
  transition: transform 1.2s var(--ease);
  transition-delay: calc(var(--i, 0) * 60ms);
}

.footer__word.is-in span { transform: none; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  padding-top: 20px;
  border-top: 1px dashed var(--cork);
  color: var(--cream-60);
}

.footer__bottom .credit { color: var(--ember); }

/* ==========================================================================
   PRACTICE PAGES
   ========================================================================== */

.readbar {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  z-index: 130;
  background: var(--cream);
  transform: scaleX(0);
  transform-origin: left;
}

.phero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 18px;
  padding: calc(var(--nav-h) + 18px) var(--gutter) 18px;
}

.phero__text {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 28px;
  padding: 24px 0 clamp(8px, 2vw, 24px);
}

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; color: var(--cream-60); }
.crumbs a:hover { color: var(--cream); }

.phero__num {
  font-size: clamp(90px, 13vw, 220px);
  line-height: 0.8;
  font-weight: 500;
  color: transparent;
  -webkit-text-stroke: 1px var(--cream-40);
}

.phero__title {
  font-size: clamp(34px, 6.6vw, 124px);
  line-height: 0.88;
  font-weight: 500;
  text-transform: uppercase;
}

.phero__lead { max-width: 680px; }

.phero__media {
  position: relative;
  border-radius: var(--r-card);
  overflow: hidden;
  min-height: 420px;
  clip-path: inset(100% 0 0 0 round var(--r-card));
  transition: clip-path 1.6s var(--ease-io) 0.15s;
}

html.is-ready .phero__media,
html:not(.js) .phero__media { clip-path: inset(0 0 0 0 round var(--r-card)); }

.phero__media .frame { position: absolute; inset: 0; border-radius: 0; }

.phero__media img { transform: scale(1.15); transition: transform 2.6s var(--ease) 0.15s; }
html.is-ready .phero__media img { transform: none; }

.phero__media .frame [data-parallax] img { transform: scale(1.15); }
html.is-ready .phero__media .frame [data-parallax] img { transform: scale(1); }

/* Key facts */
.keyfacts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: clamp(64px, 8vw, 120px) var(--gutter) 0;
  border-top: 1px dashed var(--cork);
  border-bottom: 1px dashed var(--cork);
}

.kfact {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 36px 28px 40px 0;
}

.kfact + .kfact { padding-left: 28px; border-left: 1px dashed var(--cork); }

.kfact__v {
  font-size: clamp(40px, 5vw, 80px);
  line-height: 0.9;
  font-weight: 500;
  text-transform: uppercase;
}

.kfact p { color: var(--cream-80); font-size: 16px; line-height: 1.5; max-width: 360px; }

/* Article */
.article {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 780px);
  gap: clamp(40px, 8vw, 140px);
  padding: clamp(80px, 10vw, 140px) var(--gutter);
}

.toc {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
  align-self: start;
  display: grid;
  gap: 24px;
}

.toc ol { display: grid; gap: 2px; border-left: 1px dashed var(--cork); }

.toc ol a {
  position: relative;
  display: block;
  padding: 8px 0 8px 18px;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.25;
  color: var(--cream-40);
  transition: color 0.4s var(--ease);
}

.toc ol a::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--cream);
  transform: scaleY(0);
  transition: transform 0.5s var(--ease);
}

.toc ol a:hover { color: var(--cream-80); }
.toc ol a.is-active { color: var(--cream); }
.toc ol a.is-active::before { transform: scaleY(1); }

.toc__cta { display: grid; gap: 14px; padding: 22px; border-radius: var(--r-card); background: var(--bark); }
.toc__cta p { font-size: 15px; line-height: 1.45; color: var(--cream-80); }
.toc__cta .btn { justify-self: start; --btn-h: 42px; padding: 0 18px; font-size: 12px; }
.toc__cta .btn::before { background: var(--cream); }

.prose > section { scroll-margin-top: calc(var(--nav-h) + 24px); }
.prose > section + section { margin-top: clamp(80px, 9vw, 128px); }

.prose .eyebrow { margin-bottom: 18px; color: var(--ember); }

.prose h2 {
  font-size: clamp(30px, 3.4vw, 50px);
  line-height: 0.94;
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.prose h3 {
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.15;
  font-weight: 500;
  text-transform: uppercase;
  margin: 36px 0 14px;
}

.prose p {
  font-size: 18px;
  line-height: 1.65;
  color: var(--cream-80);
}

.prose p + p { margin-top: 18px; }
.prose p.lead { color: var(--cream); font-size: clamp(20px, 1.8vw, 26px); line-height: 1.3; }
.prose strong { color: var(--cream); font-weight: 500; }

.prose .law {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--r-ghost);
  border: 1px solid var(--cork);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--cream-60);
  vertical-align: 2px;
  white-space: nowrap;
}

.bullets { display: grid; margin: 24px 0; border-top: 1px dashed var(--cork); }

.bullets li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px dashed var(--cork);
  font-size: 17px;
  line-height: 1.55;
  color: var(--cream-80);
}

.bullets li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 9px;
  border: 1px solid var(--ember);
  transform: rotate(45deg);
}

.bullets li strong { color: var(--cream); font-weight: 500; }

.callout {
  margin: 32px 0;
  padding: 26px 28px;
  border-radius: var(--r-card);
  background: var(--bark);
  display: grid;
  gap: 12px;
}

.callout .label { color: var(--cream); }
.prose .callout p { color: var(--cream-80); font-size: 17px; }

.cards2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0;
}

.ccard {
  padding: 24px;
  border-radius: var(--r-card);
  border: 1px solid var(--cork);
  display: grid;
  align-content: start;
  gap: 12px;
  transition: border-color 0.4s var(--ease), transform 0.6s var(--ease);
}

.ccard:hover { border-color: var(--drift); transform: translateY(-4px); }
.ccard .label { color: var(--cream-60); }
.ccard h3 { margin: 0 !important; }
.prose .ccard p { font-size: 16px; line-height: 1.55; }

.steps { counter-reset: step; margin: 28px 0; border-top: 1px dashed var(--cork); }

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px dashed var(--cork);
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-size: 40px;
  line-height: 0.9;
  font-weight: 500;
  color: transparent;
  -webkit-text-stroke: 1px var(--cream-40);
}

.steps h3 { margin: 0 0 8px !important; }
.prose .steps p { font-size: 17px; }

.docs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 28px 0;
}

.docs li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--r-card);
  background: rgba(56, 36, 22, 0.45);
  font-size: 15.5px;
  line-height: 1.45;
  color: var(--cream-80);
}

.docs li::before {
  content: "";
  width: 14px;
  height: 17px;
  margin-top: 1px;
  border: 1px solid var(--cream-60);
  border-radius: 2px;
  background: linear-gradient(var(--cream-60), var(--cream-60)) 3px 5px / 6px 1px no-repeat,
    linear-gradient(var(--cream-60), var(--cream-60)) 3px 8px / 6px 1px no-repeat,
    linear-gradient(var(--cream-60), var(--cream-60)) 3px 11px / 4px 1px no-repeat;
}

/* Kin feature block (grandparents) */
.kinblock {
  margin: 8px 0 0;
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--r-card);
  background: var(--bark);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.kinblock::before {
  content: "67";
  position: absolute;
  right: -0.06em;
  top: -0.18em;
  font-size: clamp(160px, 22vw, 320px);
  line-height: 1;
  font-weight: 500;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 237, 215, 0.14);
  z-index: -1;
}

.kinblock h2 { max-width: 560px; }

.kinflow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 32px 0;
}

.kinflow li {
  position: relative;
  padding: 22px 20px;
  border-radius: var(--r-card);
  background: rgba(16, 9, 4, 0.55);
  display: grid;
  align-content: start;
  gap: 10px;
}

.kinflow li .label { color: var(--ember); }
.prose .kinflow p { font-size: 15.5px; line-height: 1.5; }

.who {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 8px;
}

.who span {
  height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border-radius: var(--r-ghost);
  border: 1px solid var(--cream-40);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Next practice */
.next {
  position: relative;
  display: block;
  padding: clamp(80px, 12vw, 180px) var(--gutter);
  border-top: 1px dashed var(--cork);
  overflow: hidden;
  isolation: isolate;
}

.next__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  transform: scale(1.1);
  transition: opacity 0.9s var(--ease), transform 1.6s var(--ease);
}

.next__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; filter: brightness(0.35); }

.next:hover .next__bg { opacity: 1; transform: scale(1); }

.next__label { color: var(--cream-60); margin-bottom: 24px; display: block; }

.next__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  font-size: clamp(40px, 8vw, 132px);
  line-height: 0.9;
  font-weight: 500;
  text-transform: uppercase;
}

.next__title > span:first-child { transition: transform 0.9s var(--ease); }
.next:hover .next__title > span:first-child { transform: translateX(24px); }

.next__arrow {
  flex: 0 0 auto;
  width: clamp(64px, 8vw, 120px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid var(--cream-40);
  display: grid;
  place-items: center;
  font-size: clamp(22px, 2.4vw, 36px);
  transition: transform 0.8s var(--ease), background-color 0.5s var(--ease), color 0.5s var(--ease);
}

.next:hover .next__arrow { transform: rotate(-45deg); background: var(--cream); color: var(--walnut); }

/* CTA band */
.cta {
  margin: 0 var(--gutter) clamp(80px, 10vw, 140px);
  padding: clamp(32px, 5vw, 72px);
  border-radius: var(--r-card);
  border: 1px solid var(--cork);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 32px;
  align-items: end;
}

.cta p { color: var(--cream-80); margin-top: 20px; max-width: 520px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1180px) {
  .hero__card { display: none; }
  .approach-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__cols > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  :root { --nav-h: 68px; }
  .nav__links,
  .nav__cta { display: none; }
  .nav__burger { display: block; }

  .section-head { grid-template-columns: 1fr; }
  .section-head__aside { justify-self: start; }

  .prow { grid-template-columns: minmax(0, 1fr) 48px; gap: 12px 16px; }
  .prow__num { grid-column: 1 / -1; }
  .prow__title { font-size: clamp(24px, 8vw, 44px); }
  .prow__desc { grid-column: 1 / 2; grid-row: 3; }
  .prow__arrow { width: 48px; height: 48px; grid-row: 2; grid-column: 2; }

  .kin { grid-template-columns: 1fr; gap: 20px; }

  .about { grid-template-columns: 1fr; }
  .about__media { position: relative; top: 0; max-height: none; aspect-ratio: 4 / 5; }

  .faq { grid-template-columns: 1fr; }
  .faq__head { position: static; }

  .contact { grid-template-columns: 1fr; min-height: 0; }
  .contact__media { min-height: 70vh; }

  .phero { grid-template-columns: 1fr; min-height: 0; }
  .phero__media { order: -1; min-height: 62vh; }
  .phero__text { padding-top: 12px; }

  .keyfacts { grid-template-columns: 1fr; }
  .kfact { padding: 28px 0; }
  .kfact + .kfact { padding-left: 0; border-left: 0; border-top: 1px dashed var(--cork); }

  .article { grid-template-columns: minmax(0, 1fr); }
  .phero__title { font-size: clamp(32px, 10.4vw, 96px); }
  .toc { display: none; }

  .cta { grid-template-columns: 1fr; }
  .cta__actions { justify-content: flex-start; }

  .kinflow { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero__side { display: none; }
  .hero__shade {
    background:
      linear-gradient(0deg, rgba(16, 9, 4, 0.98) 0%, rgba(16, 9, 4, 0.85) 38%, rgba(16, 9, 4, 0.1) 70%),
      linear-gradient(180deg, rgba(16, 9, 4, 0.6) 0%, rgba(16, 9, 4, 0) 20%);
  }
  .hero__img { object-position: 62% 30%; }
  .hero__actions .btn,
  .menu__foot .btn { flex: 1 1 100%; white-space: normal; text-align: center; height: auto; min-height: var(--btn-h); padding: 14px 20px; line-height: 1.2; }
  .kinblock { padding: 24px 20px; }
  .kinblock h2 { font-size: clamp(26px, 8vw, 40px); }
  .approach-grid { grid-template-columns: 1fr; }
  .acard { min-height: 0; }
  .statement__meta { flex-direction: column; }
  .cards2,
  .docs { grid-template-columns: 1fr; }
  .contacts { grid-template-columns: 1fr; }
  .tgcard { grid-template-columns: 44px minmax(0, 1fr); padding: 20px; gap: 16px; }
  .tgcard__icon { width: 44px; height: 44px; }
  .tgcard__arrow { display: none; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .facts div { grid-template-columns: 1fr; gap: 4px; }
  .steps li { grid-template-columns: 52px minmax(0, 1fr); }
  .steps li::before { font-size: 30px; }
  .acc__panel p { padding-right: 0; }
  .prose p { font-size: 17px; }
  .next__title { font-size: clamp(30px, 9vw, 60px); flex-wrap: wrap; gap: 20px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  body::after { display: none; }
  .marquee__track { animation: none; }
}

/* Lead form: honeypot, sending state, error */
.form__hp {
  position: absolute !important;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__submit:disabled { opacity: 0.6; pointer-events: none; }

.form__error {
  font-size: 15px;
  line-height: 1.5;
  color: var(--cream-80);
  padding: 14px 16px;
  border-radius: var(--r-card);
  border: 1px dashed var(--ember);
}

.form__error a { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; }
