:root {
  --ink: #041819;
  --deep: #030c0b;
  --teal: #123a3b;
  --teal-deep: #082628;
  --sage: #646c5d;
  --gold: #9c8761;
  --gold-soft: #c9b58d;
  --paper: #e4e0d2;
  --muted: #8fa29b;
  --line: rgba(156, 135, 97, 0.28);
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  background:
    radial-gradient(1100px 700px at 18% 42%, rgba(42, 69, 67, 0.55), transparent 62%),
    radial-gradient(900px 620px at 88% 38%, rgba(156, 135, 97, 0.1), transparent 60%),
    radial-gradient(900px 700px at -10% 70%, rgba(3, 12, 11, 0.95), transparent 58%),
    var(--ink);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.38;
  background-image:
    repeating-linear-gradient(112deg, transparent 0 54px, rgba(255,255,255,0.011) 54px 55px),
    radial-gradient(circle at 20% 30%, rgba(156,135,97,0.035), transparent 40%);
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  background: var(--gold);
  color: var(--ink);
}
.skip-link:focus { top: 1rem; }

/* Header */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.1rem clamp(1.2rem, 4vw, 4rem);
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, border-color 0.4s ease, padding 0.4s ease;
}
.site-header.is-scrolled {
  padding-block: 0.7rem;
  background: rgba(4, 24, 25, 0.88);
  border-bottom-color: rgba(156, 135, 97, 0.16);
  backdrop-filter: blur(16px);
}

.brand { display: inline-flex; align-items: center; gap: 0.85rem; flex-shrink: 0; }
.brand__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}
.brand__text {
  font-family: var(--serif);
  font-size: 0.96rem;
  line-height: 1.05;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2vw, 2rem);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}
.site-nav a {
  position: relative;
  padding-block: 0.35rem;
  color: rgba(243, 238, 227, 0.72);
  transition: color 0.25s ease;
  white-space: nowrap;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.32s ease;
}
.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active { color: var(--paper); }
.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.is-active::after { transform: scaleX(1); }

.site-nav__cta {
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--line);
  color: var(--gold-soft) !important;
}
.site-nav__cta::after { display: none; }

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 11px 9px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  height: 1px;
  margin: 6px 0;
  background: var(--gold-soft);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* Hero */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding: 9.5rem clamp(1.2rem, 6vw, 6.5rem) 6.5rem;
  overflow: hidden;
}

.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% 26%;
  filter: saturate(0.62) contrast(1.15);
  transform: scale(1.04);
  will-change: transform;
}

/* Theater wings: deep shadows at the edges of the stage. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg,
    rgba(1, 8, 8, 0.86) 0%, transparent 13%,
    transparent 87%, rgba(1, 8, 8, 0.8) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 46% 52% at 26% 46%, rgba(154, 166, 152, 0.14), transparent 70%),
    radial-gradient(ellipse 38% 46% at 84% 42%, rgba(156, 135, 97, 0.16), transparent 72%),
    linear-gradient(90deg, rgba(4, 24, 25, 0.94) 0%, rgba(8, 38, 40, 0.76) 48%, rgba(4, 24, 25, 0.55) 100%),
    linear-gradient(0deg, var(--deep) 0%, rgba(3, 12, 11, 0.35) 30%, transparent 55%);
}

.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.56fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: end;
  width: min(100%, 1280px);
  margin: 0 auto;
}

.hero__content { max-width: 980px; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0 0 1.8rem;
  color: var(--gold);
  font-size: 0.68rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}
.eyebrow__rule { display: inline-block; width: 46px; height: 1px; background: var(--gold); }

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.6rem, 9.6vw, 9rem);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: -0.05em;
}
.hero h1 em {
  display: inline-block;
  margin-left: clamp(0.5rem, 4vw, 4.5rem);
  color: var(--gold-soft);
  font-weight: 400;
  font-style: italic;
  text-shadow: 0 0 42px rgba(201, 181, 141, 0.18);
}
.hero__stage {
  margin: 2.4rem 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.hero__aside {
  justify-self: end;
  max-width: 430px;
  padding-bottom: 0.4rem;
}
.hero__phrase {
  margin: 0 0 2.2rem;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.2vw, 1.85rem);
  line-height: 1.45;
  color: rgba(243, 238, 227, 0.94);
}
.hero__actions { display: flex; flex-direction: column; gap: 0.85rem; }

.hero__vertical {
  position: absolute;
  top: 50%;
  right: -2.5rem;
  margin: 0;
  color: rgba(156, 135, 97, 0.62);
  font-size: 0.64rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: translateY(-50%);
}

.hero__foot {
  position: absolute;
  z-index: 2;
  right: clamp(1.2rem, 6vw, 6.5rem);
  bottom: 2rem;
  left: clamp(1.2rem, 6vw, 6.5rem);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(243, 238, 227, 0.14);
  color: var(--muted);
  font-size: 0.67rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 54px;
  padding: 0.9rem 1.5rem;
  border: 1px solid transparent;
  font-size: 0.84rem;
  letter-spacing: 0.07em;
  transition: transform 0.28s ease, background 0.28s ease, border-color 0.28s ease;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover, .btn:focus-visible { transform: translateY(-2px); }

.btn--gold {
  background: linear-gradient(135deg, #9c8761, #d2c096);
  color: #041819;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.42);
}
.btn--gold:hover, .btn--gold:focus-visible { background: linear-gradient(135deg, #ab946c, #ded0ac); }
.btn--ghost { border-color: rgba(243, 238, 227, 0.26); color: var(--paper); }
.btn--ghost:hover, .btn--ghost:focus-visible { border-color: var(--gold); color: var(--gold-soft); }
.btn--large { min-height: 60px; padding-inline: 1.8rem; }

/* Sections */

.section {
  position: relative;
  padding: clamp(5.5rem, 11vw, 11rem) clamp(1.2rem, 6vw, 6.5rem);
  border-top: 1px solid rgba(243, 238, 227, 0.07);
  scroll-margin-top: 72px;
  overflow: hidden;
}
.section::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  max-width: 760px;
  max-height: 760px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(156, 135, 97, 0.05), transparent 62%);
}

.section__ghost {
  position: absolute;
  top: 2.2rem;
  right: clamp(1.2rem, 6vw, 6.5rem);
  color: rgba(243, 238, 227, 0.035);
  font-family: var(--serif);
  font-size: clamp(6rem, 15vw, 15rem);
  line-height: 1;
  pointer-events: none;
}
.section__index {
  position: relative;
  margin-bottom: clamp(3rem, 6vw, 5rem);
  color: var(--gold);
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.layout {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
  width: min(100%, 1320px);
  margin: 0 auto;
}
.layout .copy { grid-column: 2 / 7; }
.layout .media { grid-column: 7 / 13; margin-top: clamp(3rem, 7vw, 7rem); }
.layout--text-right .media { grid-column: 1 / 7; margin-top: 0; }
.layout--text-right .copy { grid-column: 7 / 12; margin-top: clamp(3rem, 7vw, 7rem); }

.copy h2 {
  max-width: 14ch;
  margin: 0 0 2rem;
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4.8vw, 4.2rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.copy p { max-width: 60ch; margin: 0 0 1.35rem; color: rgba(243, 238, 227, 0.76); }
.copy p:last-child { margin-bottom: 0; }
.copy .lead {
  font-family: var(--serif);
  font-size: clamp(1.22rem, 2.1vw, 1.7rem);
  line-height: 1.5;
  color: var(--paper);
}
.copy .lead::first-letter {
  float: left;
  margin: 0.12em 0.12em 0 0;
  color: var(--gold);
  font-size: 3.1em;
  line-height: 0.78;
}

blockquote {
  max-width: 34ch;
  margin: 3.2rem 0 3.2rem 1.5rem;
  padding: 0.4rem 0 0.4rem 1.8rem;
  border-left: 1px solid var(--gold);
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.8vw, 2.45rem);
  line-height: 1.32;
  color: var(--gold-soft);
}

figure { margin: 0; }
figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--line);
  filter: saturate(0.72) contrast(1.08);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.3);
}
.section--about figure img,
.section--affirmations figure img { aspect-ratio: 4 / 5; }
figcaption {
  margin-top: 0.95rem;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

/* Telegram CTA */

.section--telegram { background: linear-gradient(180deg, transparent, rgba(18, 58, 59, 0.24)); }
.cta-panel {
  position: relative;
  width: min(100%, 1000px);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5.2rem);
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 88% 42%, rgba(156, 135, 97, 0.15), transparent 46%),
    linear-gradient(135deg, rgba(18, 58, 59, 0.92), rgba(4, 24, 25, 0.96));
  overflow: hidden;
}
.cta-panel::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 140px;
  height: 140px;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  transform: translate(48px, -48px) rotate(45deg);
}
.cta-panel h2 {
  max-width: 18ch;
  margin: 0 0 1.6rem;
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4.6vw, 3.9rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.025em;
}
.cta-panel > p:not(.eyebrow):not(.cta-panel__note) {
  max-width: 56ch;
  margin: 0 0 2.5rem;
  color: rgba(243, 238, 227, 0.8);
}
.cta-panel__note { margin: 1.5rem 0 0; color: var(--muted); font-size: 0.76rem; letter-spacing: 0.14em; }

/* Footer */

.site-footer {
  padding: 2.2rem clamp(1.2rem, 6vw, 6.5rem);
  border-top: 1px solid rgba(243, 238, 227, 0.09);
  background: rgba(3, 12, 11, 0.78);
}
.site-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: min(100%, 1320px);
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
}
.site-footer a:hover, .site-footer a:focus-visible { color: var(--gold-soft); }

/* Animation */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  clip-path: inset(0 0 12% 0);
  transition: opacity 0.95s cubic-bezier(.2,.7,.2,1), transform 0.95s cubic-bezier(.2,.7,.2,1), clip-path 1.05s ease;
}
.reveal.is-visible { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }

.hero__content > *,
.hero__aside > * {
  animation: hero-rise 1.05s cubic-bezier(.2,.7,.2,1) both;
}
.hero__content > *:nth-child(1) { animation-delay: 0.12s; }
.hero__content > *:nth-child(2) { animation-delay: 0.24s; }
.hero__content > *:nth-child(3) { animation-delay: 0.38s; }
.hero__aside > *:nth-child(1) { animation-delay: 0.46s; }
.hero__aside > *:nth-child(2) { animation-delay: 0.58s; }

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(26px); filter: blur(3px); }
  to { opacity: 1; transform: none; filter: none; }
}

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

/* Responsive */

@media (max-width: 1000px) {
  .hero__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero__aside { justify-self: start; max-width: 560px; margin-left: clamp(0rem, 8vw, 5rem); }
  .hero__vertical { display: none; }
  .layout { grid-template-columns: 1fr; }
  .layout .copy,
  .layout .media,
  .layout--text-right .copy,
  .layout--text-right .media { grid-column: 1 / -1; margin-top: 0; }
  .layout .media { margin-top: 1rem; }
  .layout--text-right .copy { margin-top: 1rem; }
  figure img { aspect-ratio: 4 / 3; }
  .section--about figure img,
  .section--affirmations figure img { aspect-ratio: 4 / 5; }
}

@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 100%;
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem;
    border: 1px solid var(--line);
    background: rgba(4, 24, 25, 0.97);
    backdrop-filter: blur(14px);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 0.85rem 0.7rem; border-bottom: 1px solid rgba(243,238,227,0.08); }
  .site-nav a::after { display: none; }
  .site-nav__cta { margin-top: 0.6rem; border: 1px solid var(--line) !important; text-align: center; }

  .hero { padding-top: 8rem; padding-bottom: 5.5rem; }
  .hero h1 em { margin-left: 0.35rem; }
  .hero__aside { margin-left: 0; }
  .hero__actions { flex-direction: column; }
  .btn { width: 100%; }
  .hero__foot { flex-direction: column; gap: 0.3rem; font-size: 0.6rem; }

  .section__ghost { top: 1.4rem; font-size: 5.5rem; }
  .copy .lead::first-letter { font-size: 2.6em; }
  blockquote { margin-left: 0; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: clamp(3rem, 15vw, 4.8rem); }
  .hero__stage { margin-top: 1.7rem; font-size: 0.65rem; }
  .hero__phrase { font-size: 1.18rem; }
  .section { padding-block: 4.5rem; }
  .site-footer__inner { flex-direction: column; }
}
