:root {
  color-scheme: dark;
  --ink: #0a0b0a;
  --ink-soft: #11130f;
  --forest: #182018;
  --moss: #7f8b62;
  --gold: #c8a864;
  --gold-bright: #e5ce99;
  --bone: #e9e4d8;
  --muted: #a49f92;
  --line: rgba(224, 204, 159, 0.18);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;
  --content: min(1240px, calc(100vw - 56px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background:
    radial-gradient(circle at 82% 4%, rgba(95, 107, 67, 0.16), transparent 30%),
    radial-gradient(circle at 10% 65%, rgba(91, 59, 28, 0.12), transparent 25%),
    linear-gradient(135deg, #080908, #0e100d 48%, #090a09);
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.75'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  width: var(--content);
  height: 88px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(235, 221, 192, 0.11);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.14em;
}

.header-brand { font-size: 21px; white-space: nowrap; }

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(200, 168, 100, 0.46);
  border-radius: 50%;
}

.brand-mark svg { width: 24px; height: 24px; }
.brand-mark path { fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linecap: round; }

.desktop-nav { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 34px); }
.desktop-nav a {
  color: #d0cbc0;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 180ms ease;
}
.desktop-nav a:hover { color: var(--gold-bright); }

.header-actions { display: flex; align-items: center; gap: 22px; }
.language-switch {
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: #5f605b;
  cursor: pointer;
  font-size: 11px;
  letter-spacing: 0.12em;
}
.lang-option { transition: color 150ms ease; }
.lang-option.active { color: var(--gold-bright); }

.compact-cta {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  min-height: 40px;
  padding: 0 17px;
  border: 1px solid rgba(203, 173, 105, 0.52);
  color: var(--gold-bright);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 180ms ease;
}
.compact-cta:hover { background: rgba(200, 168, 100, .09); }

.hero {
  position: relative;
  isolation: isolate;
  min-height: 730px;
  height: 88svh;
  max-height: 920px;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 110px max(28px, calc((100vw - 1240px) / 2)) 64px;
  overflow: hidden;
  background: #070908;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("assets/wadim-lexx-hero.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(3, 7, 7, .98) 0%, rgba(3, 7, 7, .92) 25%, rgba(3, 7, 7, .35) 48%, rgba(3, 7, 7, .03) 73%),
    linear-gradient(0deg, rgba(4, 7, 6, .73) 0%, transparent 34%);
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.28em;
}

.hero h1, h2, .path-panel h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.18;
}

.hero-copy { width: min(560px, 46vw); }
.hero h1 { font-size: clamp(64px, 6.4vw, 98px); line-height: .94; letter-spacing: .035em; }
.hero-statement {
  margin: 20px 0 0;
  font-family: var(--serif);
  color: #eee7da;
  font-size: clamp(24px, 2.25vw, 34px);
  line-height: 1.08;
  letter-spacing: .08em;
  white-space: pre-line;
}
.hero-rule { display: block; width: 58px; height: 1px; margin: 22px 0 0; background: var(--gold); }

.hero-lead {
  max-width: 500px;
  margin: 20px 0 0;
  color: #cec7ba;
  font-family: var(--serif);
  font-size: clamp(18px, 1.55vw, 23px);
  line-height: 1.38;
}

.hero-actions { display: flex; align-items: center; gap: 30px; margin-top: 30px; }
.button {
  min-height: 54px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.075em;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { border-color: rgba(221, 190, 119, .72); background: rgba(10, 10, 8, .32); color: #eadbb9; }
.button-primary:hover { background: var(--gold); color: #17140e; }
.button-ghost { border-color: rgba(210, 181, 113, 0.43); color: var(--gold-bright); }
.button-ghost:hover { border-color: var(--gold); background: rgba(200, 168, 100, 0.08); }
.button-large { min-height: 64px; padding: 0 30px; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: #b9b3a7;
  font-size: 12px;
  border-bottom: 1px solid #514d43;
  transition: color 180ms ease;
}
.text-link:hover { color: var(--gold-bright); }

.trust-row { display: flex; flex-wrap: wrap; gap: 20px 30px; margin-top: 38px; }
.trust-row span {
  position: relative;
  padding-left: 16px;
  color: #aaa396;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.trust-row span::before { content: "·"; position: absolute; left: 0; color: var(--gold); }

.quick-paths { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #7b766c; border-bottom: 1px solid #7b766c; background: #090a09; }
.quick-card {
  position: relative;
  min-height: 210px;
  padding: 25px 30px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  border: 0;
  border-right: 1px solid #77736b;
  background-color: #10110f;
  background-size: cover;
  background-position: center;
  color: var(--bone);
  text-align: left;
  cursor: pointer;
  transition: filter 200ms ease;
}
.quick-card:last-child { border-right: 0; }
.quick-card:hover { filter: brightness(1.18); }
.quick-card-tradition {
  background-image:
    linear-gradient(90deg, rgba(3, 6, 5, .94) 0%, rgba(3, 6, 5, .62) 40%, rgba(3, 6, 5, .08) 100%),
    linear-gradient(0deg, rgba(3, 5, 4, .9) 0%, transparent 70%),
    url("assets/quick-tradition.webp");
}
.quick-card-healing {
  background-image:
    linear-gradient(90deg, rgba(3, 6, 5, .94) 0%, rgba(3, 6, 5, .62) 40%, rgba(3, 6, 5, .08) 100%),
    linear-gradient(0deg, rgba(3, 5, 4, .9) 0%, transparent 70%),
    url("assets/quick-healing.webp");
}
.quick-card-herbs {
  background-image:
    linear-gradient(90deg, rgba(3, 6, 5, .94) 0%, rgba(3, 6, 5, .62) 40%, rgba(3, 6, 5, .08) 100%),
    linear-gradient(0deg, rgba(3, 5, 4, .9) 0%, transparent 70%),
    url("assets/quick-herbs.webp");
}
.quick-card-library {
  background-image:
    linear-gradient(90deg, rgba(3, 6, 5, .94) 0%, rgba(3, 6, 5, .62) 40%, rgba(3, 6, 5, .08) 100%),
    linear-gradient(0deg, rgba(3, 5, 4, .9) 0%, transparent 70%),
    url("assets/quick-materials.webp");
}
.quick-index { position: absolute; top: 20px; left: 28px; color: #a58e63; font-size: 9px; letter-spacing: .18em; }
.quick-title { font-family: var(--serif); font-size: clamp(19px, 1.75vw, 27px); line-height: 1.1; letter-spacing: .05em; }
.quick-card small { margin-top: 7px; color: #c7c0b4; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.quick-arrow { margin-top: 13px; color: var(--gold-bright); font-size: 15px; }

.practice { padding: 135px max(28px, calc((100vw - 1240px) / 2)); background: linear-gradient(180deg, #10130f, #0b0c0b 68%); border-top: 1px solid rgba(255,255,255,.035); }
.section-heading { max-width: 780px; margin-bottom: 60px; }
.section-heading h2, .materials-heading h2, .contact h2 { font-size: clamp(33px, 4.3vw, 58px); letter-spacing: -0.03em; }
.section-heading > p:last-child { max-width: 590px; margin: 22px 0 0; color: var(--muted); }

.path-selector { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.path-tab {
  position: relative;
  min-height: 220px;
  padding: 28px;
  display: grid;
  align-content: end;
  gap: 6px;
  border: 0;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.012);
  color: var(--bone);
  text-align: left;
  cursor: pointer;
  transition: background 200ms ease;
}
.path-tab:last-child { border-right: 0; }
.path-tab:hover { background: rgba(200, 168, 100, 0.045); }
.path-tab.active { background: linear-gradient(145deg, rgba(200, 168, 100, 0.11), rgba(71, 86, 55, 0.09)); }
.path-tab.active::after { content: ""; position: absolute; inset: auto 25px -1px; height: 2px; background: var(--gold); }
.path-number { position: absolute; top: 24px; left: 28px; color: #57564f; font-size: 10px; letter-spacing: .15em; }
.path-icon { position: absolute; top: 20px; right: 28px; color: var(--gold); font-size: 28px; }
.path-tab strong { font-family: var(--serif); font-size: clamp(17px, 1.6vw, 22px); font-weight: 400; }
.path-tab small { color: #7f7c73; font-size: 11px; }

.path-panel {
  min-height: 430px;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  border: 1px solid var(--line);
  border-top: 0;
  background: linear-gradient(125deg, rgba(24, 32, 24, 0.82), rgba(12, 13, 12, 0.8));
  outline: none;
}
.panel-copy { padding: clamp(40px, 5vw, 70px); }
.panel-kicker { margin: 0 0 20px; color: var(--gold); font-size: 10px; letter-spacing: .2em; }
.path-panel h3 { max-width: 680px; font-size: clamp(26px, 3.2vw, 44px); }
#panel-description { max-width: 700px; margin: 22px 0; color: #aaa59a; }
.panel-points { margin: 0 0 30px; padding: 0; list-style: none; color: #bcb6a9; font-size: 13px; }
.panel-points li { padding: 8px 0 8px 21px; position: relative; border-bottom: 1px solid rgba(255,255,255,.045); }
.panel-points li::before { content: "◆"; position: absolute; left: 0; top: 11px; color: var(--gold); font-size: 6px; }
.panel-mark { position: relative; overflow: hidden; display: grid; place-items: center; border-left: 1px solid var(--line); }
.panel-mark > span { z-index: 1; color: var(--gold-bright); font-size: 72px; text-shadow: 0 0 30px rgba(204, 173, 103, .2); }
.mark-ring { position: absolute; width: 250px; aspect-ratio: 1; border: 1px solid rgba(205, 174, 105, .26); border-radius: 50%; box-shadow: 0 0 0 45px rgba(205,174,105,.025), 0 0 0 90px rgba(205,174,105,.018); }

.materials { padding-top: 135px; scroll-margin-top: 30px; }
.materials-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 45px; }
.materials-heading h2 { max-width: 750px; }
#materials-note { max-width: 260px; margin: 0 0 8px; color: #77756e; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.materials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.material-card {
  position: relative;
  min-height: 280px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.015);
  transition: transform 200ms ease, border-color 200ms ease, background 200ms ease;
}
.material-card:hover { transform: translateY(-4px); border-color: rgba(205,174,105,.42); background: rgba(200,168,100,.035); }
.material-type { color: var(--gold); font-size: 9px; letter-spacing: .2em; text-transform: uppercase; }
.material-card h3 { margin: 60px 0 12px; font-family: var(--serif); font-size: 20px; line-height: 1.4; font-weight: 400; }
.material-card p { margin: 0; color: #817f77; font-size: 13px; }
.card-link { display: flex; justify-content: space-between; align-items: center; margin-top: 30px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.07); color: #c4beb1; font-size: 11px; letter-spacing: .06em; }

.contact { position: relative; padding: 150px max(28px, calc((100vw - 1240px) / 2)) 0; overflow: hidden; border-top: 1px solid rgba(255,255,255,.04); background: radial-gradient(circle at 50% 38%, rgba(51,67,43,.2), transparent 40%), #080908; text-align: center; }
.contact::before { content: ""; position: absolute; width: 580px; height: 580px; left: 50%; top: 80px; transform: translateX(-50%); border: 1px solid rgba(203,173,105,.07); border-radius: 50%; box-shadow: 0 0 0 70px rgba(203,173,105,.025), 0 0 0 140px rgba(203,173,105,.017); }
.contact-inner { position: relative; z-index: 1; max-width: 820px; margin: auto; }
.contact h2 { max-width: 760px; margin: auto; }
.contact-inner > p:not(.eyebrow) { max-width: 610px; margin: 27px auto 38px; color: var(--muted); }
.socials { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 95px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.socials a { padding: 24px 18px; display: flex; justify-content: space-between; border-right: 1px solid var(--line); color: #aaa59b; font-size: 11px; letter-spacing: .08em; transition: background 180ms ease, color 180ms ease; }
.socials a:last-child { border-right: 0; }
.socials a:hover { background: rgba(200,168,100,.06); color: var(--gold-bright); }
footer { position: relative; z-index: 1; min-height: 125px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; text-align: left; }
.footer-brand { justify-self: start; }
footer p { margin: 0; color: #575650; font-size: 10px; letter-spacing: .07em; text-transform: uppercase; }
footer p:last-child { justify-self: end; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity 650ms ease, transform 650ms ease; }
.reveal.visible { opacity: 1; transform: none; }
@keyframes rotate { to { transform: rotate(360deg); } }
@keyframes scroll { 0% { transform: translateY(-22px); } 60%,100% { transform: translateY(48px); } }

@media (max-width: 980px) {
  :root { --content: min(100% - 40px, 780px); }
  .desktop-nav { display: none; }
  .hero { height: 82svh; min-height: 700px; max-height: none; padding-top: 120px; padding-bottom: 64px; }
  .hero-copy { position: relative; z-index: 2; }
  .hero-copy { width: min(540px, 62vw); }
  .quick-paths { grid-template-columns: repeat(2, 1fr); }
  .quick-card:nth-child(2) { border-right: 0; }
  .quick-card:nth-child(-n+2) { border-bottom: 1px solid #77736b; }
  .path-selector { grid-template-columns: 1fr; }
  .path-tab { min-height: 145px; border-right: 0; border-bottom: 1px solid var(--line); }
  .path-tab:last-child { border-bottom: 0; }
  .path-panel { grid-template-columns: 1fr; }
  .panel-mark { display: none; }
  .materials-heading { align-items: start; flex-direction: column; }
  .materials-grid { grid-template-columns: 1fr; }
  .material-card { min-height: 230px; }
  .socials { grid-template-columns: repeat(2, 1fr); }
  .socials a:nth-child(2) { border-right: 0; }
  .socials a:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  footer { grid-template-columns: 1fr 1fr; padding: 28px 0; }
  footer p:first-of-type { justify-self: end; }
  footer p:last-child { grid-column: 1 / -1; justify-self: center; }
}

@media (max-width: 600px) {
  :root { --content: calc(100vw - 32px); }
  .site-header { height: 74px; }
  .brand { font-size: 17px; }
  .brand-mark { width: 33px; height: 33px; }
  .compact-cta { display: none; }
  .header-actions { gap: 0; }
  .hero { min-height: 850px; height: auto; align-items: flex-end; padding: 430px 16px 70px; }
  .hero::before { background-size: auto 500px; background-position: 61% 35px; }
  .hero::after {
    background:
      linear-gradient(0deg, #060908 0%, rgba(6,9,8,.98) 43%, rgba(6,9,8,.32) 70%, rgba(6,9,8,.12) 100%),
      linear-gradient(90deg, rgba(5,8,7,.45), transparent 55%);
  }
  .hero-copy { width: 100%; }
  .hero h1 { font-size: clamp(52px, 15vw, 68px); }
  .hero-statement { font-size: 24px; }
  .hero-lead { font-size: 18px; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 18px; }
  .hero-actions .button { width: 100%; }
  .hero-actions .text-link { align-self: flex-start; }
  .trust-row { gap: 10px; margin-top: 34px; flex-direction: column; }
  .quick-paths { grid-template-columns: 1fr 1fr; }
  .quick-card { min-height: 185px; padding: 20px 17px; }
  .quick-card:nth-child(2) { border-right: 0; }
  .quick-card:nth-child(3) { border-right: 1px solid #77736b; }
  .quick-title { font-size: 19px; }
  .quick-card small { font-size: 8px; }
  .quick-index { top: 16px; left: 17px; }
  .practice { padding: 95px 16px; }
  .section-heading { margin-bottom: 40px; }
  .section-heading h2, .materials-heading h2, .contact h2 { font-size: 30px; }
  .path-tab { min-height: 128px; padding: 22px; }
  .path-number { top: 18px; left: 22px; }
  .path-icon { top: 15px; right: 22px; }
  .panel-copy { padding: 34px 24px; }
  .path-panel h3 { font-size: 26px; }
  .button-ghost { width: 100%; }
  .materials { padding-top: 95px; }
  .materials-heading { margin-bottom: 30px; }
  .contact { padding: 105px 16px 0; }
  .socials { margin-top: 70px; }
  .socials a { padding: 19px 15px; }
  footer { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .footer-brand, footer p:first-of-type, footer p:last-child { justify-self: center; grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
