:root {
  --ink: #07080b;
  --ink-soft: #101218;
  --paper: #f1efe8;
  --paper-soft: #e4e0d4;
  --gold: #d7bd7e;
  --gold-light: #f2dfac;
  --ice: #bac8e8;
  --line-dark: rgba(255, 255, 255, 0.15);
  --line-light: rgba(7, 8, 11, 0.18);
  --shell: min(92vw, 1440px);
  --header-height: 86px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

button {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: 2px;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--ice));
}

.site-header {
  position: fixed;
  inset: 2px 0 auto;
  z-index: 90;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 4vw;
  color: white;
  border-bottom: 1px solid transparent;
  transition: background 400ms ease, border-color 400ms ease, height 400ms var(--ease);
}

.admin-bar .site-header {
  top: 32px;
}

.site-header.scrolled {
  height: 70px;
  background: rgba(5, 6, 9, 0.82);
  border-color: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  aspect-ratio: 1;
  border: 1px solid currentColor;
  font-size: 0.76rem;
  letter-spacing: 0;
}

.brand-mark span {
  color: var(--gold);
  margin-inline: 0.08rem;
}

.brand-name {
  font-size: 0.82rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.4rem, 2.3vw, 2.7rem);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}

.site-nav a:not(.nav-cta) {
  position: relative;
  opacity: 0.8;
  transition: opacity 180ms ease;
}

.site-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  inset: auto 0 -0.4rem;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 300ms var(--ease);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  opacity: 1;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 0.78rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.42);
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--paper);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 1px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 250ms var(--ease);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: white;
  background: #08060b;
}

.hero-video,
.hero-shade,
.hero-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-video {
  object-fit: cover;
  transform: scale(1.02);
  filter: saturate(0.82) contrast(1.12);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(4, 4, 7, 0.9) 0%, rgba(4, 4, 7, 0.58) 48%, rgba(4, 4, 7, 0.12) 78%),
    linear-gradient(180deg, rgba(4, 4, 7, 0.35) 0%, rgba(4, 4, 7, 0.08) 45%, rgba(4, 4, 7, 0.92) 100%);
}

.hero-grid {
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.11) 1px, transparent 1px);
  background-size: 12.5vw 100%, 12.5vw 100%;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: clamp(9rem, 16vh, 12rem) 0 clamp(8.3rem, 15vh, 10rem);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1.5rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 38px;
  height: 1px;
  background: var(--gold);
}

.eyebrow span {
  color: var(--gold-light);
}

.hero-title,
.display-title,
.closing h2 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.92;
}

.hero-title {
  max-width: 1120px;
  font-size: clamp(3.8rem, 8.7vw, 9.4rem);
}

.hero-title em,
.display-title em {
  color: var(--gold-light);
  font-family: "Iowan Old Style", "Baskerville", Georgia, serif;
  font-weight: 400;
}

.hero-title em {
  display: inline-block;
  padding-left: clamp(1.2rem, 8vw, 9rem);
  letter-spacing: -0.065em;
}

.hero-lower {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-top: clamp(2rem, 5vh, 4.5rem);
  padding-left: clamp(0rem, 22vw, 23rem);
}

.hero-copy {
  max-width: 580px;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(1rem, 1.3vw, 1.25rem);
}

.hero-actions {
  display: flex;
  gap: 0.7rem;
  flex-shrink: 0;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.85rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 0;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 200ms var(--ease), background 200ms ease, color 200ms ease, border-color 200ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:focus-visible,
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 4px;
}

.button-primary {
  color: var(--ink);
  background: var(--gold-light);
  border-color: var(--gold-light);
}

.button-primary:hover {
  background: white;
  border-color: white;
}

.button-ghost {
  color: white;
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
}

.button-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.hero-rail {
  position: absolute;
  z-index: 3;
  inset: auto 0 0;
  min-height: 54px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  align-items: center;
  padding-inline: 4vw;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.67rem;
  letter-spacing: 0.16em;
}

.hero-rail span:not(:first-child) {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  padding-left: 2rem;
}

.video-control {
  position: absolute;
  z-index: 4;
  right: 4vw;
  bottom: 76px;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0;
  color: rgba(255, 255, 255, 0.72);
  background: none;
  border: 0;
  font-size: 0.75rem;
  cursor: pointer;
}

.video-control-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.section {
  padding-block: clamp(6rem, 12vw, 11rem);
}

.manifesto {
  padding-bottom: 0;
  background: var(--paper);
}

.manifesto-grid,
.section-head,
.method-grid {
  display: grid;
  grid-template-columns: minmax(150px, 0.75fr) minmax(0, 2.25fr);
  gap: clamp(2rem, 7vw, 8rem);
}

.section-kicker {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding-top: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-kicker span {
  color: #8f7950;
}

.section-kicker p {
  margin: 0;
}

.display-title {
  font-size: clamp(3.2rem, 6.5vw, 7.5rem);
}

.lead {
  max-width: 920px;
  margin: clamp(2rem, 4vw, 4rem) 0 0;
  font-size: clamp(1.25rem, 2vw, 2rem);
  line-height: 1.38;
  letter-spacing: -0.025em;
}

.lead.narrow {
  max-width: 740px;
  font-size: clamp(1.1rem, 1.55vw, 1.45rem);
  color: rgba(7, 8, 11, 0.66);
}

.sound-sentence {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: clamp(5rem, 10vw, 9rem);
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}

.sound-sentence p {
  min-height: 190px;
  margin: 0;
  padding: 1.3rem 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--line-light);
  font-size: 1.1rem;
}

.sound-sentence p:last-child {
  border-right: 0;
}

.sound-sentence span {
  color: #8f7950;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
}

.values-loop {
  margin-top: clamp(5rem, 9vw, 8rem);
  overflow: hidden;
  display: flex;
  gap: 4rem;
  white-space: nowrap;
  padding-block: 1.3rem;
  color: var(--paper);
  background: var(--ink);
  font-size: clamp(1rem, 1.6vw, 1.5rem);
  font-weight: 600;
  letter-spacing: 0.09em;
}

.values-loop div {
  flex-shrink: 0;
  animation: ticker 34s linear infinite;
}

.values-loop i {
  color: var(--gold);
  font-style: normal;
  margin-inline: 1.6rem;
}

@keyframes ticker {
  to { transform: translateX(calc(-100% - 4rem)); }
}

.experiences {
  background: var(--ink);
  color: var(--paper);
}

.experiences .section-head {
  grid-template-columns: minmax(150px, 0.7fr) minmax(0, 2fr) auto;
  align-items: end;
}

.experiences .lead {
  color: rgba(241, 239, 232, 0.62);
}

.carousel-controls {
  display: flex;
  gap: 0.55rem;
}

.carousel-controls button {
  width: 52px;
  height: 52px;
  color: var(--paper);
  background: transparent;
  border: 1px solid var(--line-dark);
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease;
}

.carousel-controls button:hover {
  color: var(--ink);
  background: var(--gold-light);
}

.experience-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(320px, 31vw);
  gap: 1px;
  margin-top: clamp(4rem, 7vw, 7rem);
  padding-left: 4vw;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.experience-track::-webkit-scrollbar {
  display: none;
}

.experience-card {
  min-height: 570px;
  display: flex;
  flex-direction: column;
  padding: clamp(1.4rem, 3vw, 3rem);
  border-right: 1px solid var(--line-dark);
  scroll-snap-align: start;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0));
  transition: background 300ms ease;
}

.experience-card:hover {
  background: linear-gradient(145deg, rgba(215, 189, 126, 0.12), rgba(255, 255, 255, 0.02));
}

.experience-top {
  display: flex;
  justify-content: space-between;
  color: rgba(241, 239, 232, 0.45);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.experience-card h3 {
  margin: clamp(5rem, 10vh, 8rem) 0 1.6rem;
  color: var(--gold-light);
  font-family: "Iowan Old Style", "Baskerville", Georgia, serif;
  font-size: clamp(2.6rem, 4vw, 4.6rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 0.95;
}

.experience-card > p {
  max-width: 420px;
  margin: 0;
  color: rgba(241, 239, 232, 0.67);
}

.card-question {
  margin-top: auto;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line-dark);
  font-size: 0.92rem;
}

.formats {
  background: #d9d5c8;
}

.formats-head {
  margin-bottom: clamp(4rem, 8vw, 7rem);
}

.format-list {
  border-top: 1px solid var(--line-light);
}

.format-card {
  position: relative;
  display: grid;
  grid-template-columns: 0.75fr 1.7fr 0.85fr;
  gap: clamp(2rem, 6vw, 7rem);
  padding: clamp(2rem, 5vw, 4.8rem) 0;
  border-bottom: 1px solid var(--line-light);
}

.format-card.featured::before {
  content: "";
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: -1;
  background: var(--ink);
}

.format-card.featured {
  color: var(--paper);
  isolation: isolate;
}

.format-id {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.format-id span {
  display: block;
  width: fit-content;
  margin-top: 1rem;
  padding: 0.3rem 0.5rem;
  color: var(--ink);
  background: var(--gold-light);
  font-size: 0.6rem;
}

.format-main h3 {
  margin: 0 0 1.3rem;
  font-size: clamp(2rem, 3.4vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
}

.format-main > p {
  max-width: 650px;
  margin: 0;
  color: rgba(7, 8, 11, 0.66);
  font-size: 1.04rem;
}

.featured .format-main > p {
  color: rgba(241, 239, 232, 0.65);
}

.format-main ul {
  display: grid;
  gap: 0.65rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
}

.format-main li::before {
  content: "—";
  color: #92763f;
  margin-right: 0.7rem;
}

.format-meta {
  display: grid;
  align-content: start;
  gap: 1.2rem;
}

.format-meta p {
  margin: 0;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line-light);
  font-size: 1.05rem;
}

.featured .format-meta p {
  border-color: var(--line-dark);
}

.format-meta small {
  display: block;
  margin-bottom: 0.3rem;
  color: rgba(7, 8, 11, 0.48);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.featured .format-meta small {
  color: rgba(241, 239, 232, 0.5);
}

.format-meta .price {
  color: #79602f;
  font-size: 1.5rem;
}

.featured .format-meta .price {
  color: var(--gold-light);
}

.performance-strip {
  display: grid;
  grid-template-columns: 1.7fr repeat(3, 0.7fr);
  gap: 1px;
  margin-top: clamp(4rem, 7vw, 6rem);
  color: var(--paper);
  background: var(--ink);
}

.performance-strip > * {
  min-height: 140px;
  margin: 0;
  padding: 1.5rem;
  border-right: 1px solid var(--line-dark);
}

.performance-strip > *:last-child {
  border-right: 0;
}

.performance-strip span {
  color: var(--gold);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
}

.performance-strip h3 {
  margin: 1.6rem 0 0;
  font-size: clamp(1.25rem, 2vw, 2rem);
  font-weight: 500;
}

.performance-strip p {
  color: rgba(241, 239, 232, 0.6);
  font-size: 0.88rem;
}

.performance-strip strong {
  color: var(--paper);
  font-size: 1.02rem;
  font-weight: 600;
}

.method {
  color: var(--paper);
  background: #0b0d12;
}

.method-grid {
  grid-template-columns: minmax(150px, 0.65fr) minmax(0, 1.55fr) minmax(310px, 0.8fr);
}

.method .lead {
  color: rgba(241, 239, 232, 0.6);
}

.method-flow {
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.method-flow article {
  padding: 2rem 0;
}

.method-flow article span {
  color: var(--gold);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
}

.method-flow h3 {
  margin: 1rem 0;
  font-size: 2rem;
  font-weight: 500;
}

.method-flow p {
  margin: 0;
  color: rgba(241, 239, 232, 0.62);
}

.flow-pulse {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.flow-pulse i {
  display: block;
  width: 2px;
  height: 12px;
  background: var(--gold-light);
  animation: pulse 1.4s ease-in-out infinite alternate;
}

.flow-pulse i:nth-child(2) { animation-delay: 160ms; height: 24px; }
.flow-pulse i:nth-child(3) { animation-delay: 320ms; height: 38px; }
.flow-pulse i:nth-child(4) { animation-delay: 480ms; height: 24px; }
.flow-pulse i:nth-child(5) { animation-delay: 640ms; }

@keyframes pulse {
  to { transform: scaleY(1.7); opacity: 0.35; }
}

.planner {
  background: var(--paper);
}

.planner-shell {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(360px, 1fr) minmax(320px, 0.8fr);
  gap: clamp(2rem, 5vw, 6rem);
  align-items: start;
}

.planner-intro .display-title {
  font-size: clamp(3rem, 5.3vw, 6rem);
}

.planner-form {
  border-top: 1px solid var(--line-light);
}

.planner-form fieldset {
  margin: 0;
  padding: 1.8rem 0 2.2rem;
  border: 0;
  border-bottom: 1px solid var(--line-light);
}

.planner-form legend {
  width: 100%;
  margin-bottom: 1.4rem;
  font-weight: 650;
}

.planner-form legend span {
  color: #8f7950;
  margin-right: 0.6rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}

.choice-grid {
  display: grid;
  gap: 0.55rem;
}

.choice-grid button {
  min-height: 50px;
  padding: 0.8rem 1rem;
  text-align: left;
  background: transparent;
  border: 1px solid var(--line-light);
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.choice-grid button[aria-pressed="true"] {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}

.range-row {
  display: grid;
  grid-template-columns: 1fr 78px;
  gap: 1.3rem;
  align-items: center;
}

input[type="range"] {
  width: 100%;
  height: 4px;
  accent-color: var(--ink);
  cursor: pointer;
}

.range-row output {
  display: grid;
  place-items: center;
  min-height: 54px;
  color: var(--paper);
  background: var(--ink);
  font-size: 1.4rem;
}

.field-note {
  margin: 0.9rem 0 0;
  color: rgba(7, 8, 11, 0.52);
  font-size: 0.78rem;
}

.switch-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.3rem;
  align-items: center;
  cursor: pointer;
}

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

.switch {
  position: relative;
  width: 52px;
  height: 29px;
  border: 1px solid rgba(7, 8, 11, 0.35);
  border-radius: 999px;
  transition: background 180ms ease;
}

.switch::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--ink);
  transition: transform 220ms var(--ease), background 180ms ease;
}

.switch-row input:checked + .switch {
  background: var(--ink);
}

.switch-row input:checked + .switch::after {
  transform: translateX(23px);
  background: var(--gold-light);
}

.switch-row input:focus-visible + .switch {
  outline: 2px solid #8f7950;
  outline-offset: 4px;
}

.recommendation {
  position: sticky;
  top: 100px;
  padding: clamp(1.8rem, 3vw, 3rem);
  color: var(--paper);
  background:
    linear-gradient(145deg, rgba(215, 189, 126, 0.14), transparent 35%),
    var(--ink);
  box-shadow: 0 30px 80px rgba(7, 8, 11, 0.18);
}

.recommendation-top {
  display: flex;
  justify-content: space-between;
  color: rgba(241, 239, 232, 0.48);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.recommendation-code {
  color: var(--gold);
}

.recommendation h3 {
  margin: 4rem 0 1rem;
  color: var(--gold-light);
  font-family: "Iowan Old Style", "Baskerville", Georgia, serif;
  font-size: clamp(3.3rem, 5vw, 5.5rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.recommendation > p {
  color: rgba(241, 239, 232, 0.64);
}

.recommendation dl {
  margin: 2.5rem 0 0;
}

.recommendation dl div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
  border-top: 1px solid var(--line-dark);
}

.recommendation dt {
  color: rgba(241, 239, 232, 0.48);
  font-size: 0.78rem;
}

.recommendation dd {
  margin: 0;
  text-align: right;
  font-weight: 600;
}

.extra-result {
  padding: 0.8rem;
  border-left: 2px solid var(--gold);
  background: rgba(215, 189, 126, 0.09);
  font-size: 0.82rem;
}

.recommendation-button {
  width: 100%;
  margin-top: 1.5rem;
}

.copy-status {
  min-height: 1.3rem;
  margin: 0.65rem 0 0;
  color: var(--gold-light) !important;
  font-size: 0.75rem;
  text-align: center;
}

.closing {
  position: relative;
  min-height: 82svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: white;
  background: #08060b url("assets/ambient-poster.jpg") center / cover no-repeat;
}

.closing::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 8, 0.68);
}

.closing::after {
  content: "";
  position: absolute;
  inset: 5vw;
  border: 1px solid rgba(255, 255, 255, 0.17);
}

.closing-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.closing .eyebrow {
  justify-content: center;
}

.closing h2 {
  font-size: clamp(3.8rem, 9vw, 10rem);
}

.closing-content > p:not(.eyebrow) {
  max-width: 620px;
  margin: 2rem auto;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
}

.button-light {
  color: var(--ink);
  background: white;
}

.site-footer {
  padding-block: clamp(3.5rem, 7vw, 6rem);
  color: var(--paper);
  background: var(--ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 1.2fr 0.6fr;
  gap: 3rem;
  align-items: start;
}

.footer-brand {
  margin-bottom: 1.2rem;
}

.site-footer p,
.site-footer a:not(.brand) {
  display: block;
  margin: 0 0 0.55rem;
  color: rgba(241, 239, 232, 0.55);
  font-size: 0.85rem;
}

.site-footer a:not(.brand):hover {
  color: var(--gold-light);
}

.site-footer .footer-label {
  margin-bottom: 1.1rem;
  color: var(--paper);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.fine-print {
  max-width: 440px;
}

.footer-year {
  color: var(--gold-light);
  font-family: "Iowan Old Style", "Baskerville", Georgia, serif;
  font-size: clamp(3rem, 5vw, 5.5rem);
  line-height: 0.8;
}

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 850ms var(--ease), transform 850ms var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .hero-lower {
    padding-left: 10vw;
  }

  .planner-shell {
    grid-template-columns: 1fr 1fr;
  }

  .planner-intro {
    grid-column: 1 / -1;
  }

  .method-grid {
    grid-template-columns: 150px 1fr;
  }

  .method-flow {
    grid-column: 2;
  }

  .sound-sentence {
    grid-template-columns: repeat(3, 1fr);
  }

  .sound-sentence p:nth-child(3) {
    border-right: 0;
  }

  .sound-sentence p:nth-child(n + 4) {
    border-top: 1px solid var(--line-light);
  }
}

@media (max-width: 820px) {
  :root {
    --header-height: 72px;
    --shell: min(90vw, 720px);
  }

  .site-header {
    padding-inline: 5vw;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: -1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.4rem;
    padding: 22vh 8vw 10vh;
    color: var(--paper);
    background: rgba(5, 6, 9, 0.98);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-18px);
    transition: opacity 260ms ease, transform 350ms var(--ease), visibility 260ms ease;
  }

  .site-nav.open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .site-nav a {
    font-size: clamp(2rem, 9vw, 4rem);
    letter-spacing: -0.04em;
  }

  .site-nav .nav-cta {
    margin-top: 1rem;
    font-size: 1rem;
    letter-spacing: 0;
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(3px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    transform: translateY(-3px) rotate(-45deg);
  }

  .hero-content {
    padding-bottom: 10rem;
  }

  .hero-title {
    font-size: clamp(3.3rem, 13vw, 6rem);
  }

  .hero-title em {
    padding-left: 0;
  }

  .hero-lower {
    display: block;
    padding-left: 0;
  }

  .hero-actions {
    margin-top: 1.8rem;
    flex-wrap: wrap;
  }

  .hero-rail {
    grid-template-columns: 1fr 1fr;
  }

  .hero-rail span:first-child {
    display: none;
  }

  .hero-rail span:nth-child(2) {
    border-left: 0;
    padding-left: 0;
  }

  .video-control {
    bottom: 74px;
  }

  .manifesto-grid,
  .section-head,
  .experiences .section-head,
  .method-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .carousel-controls {
    margin-top: 1rem;
  }

  .format-card {
    grid-template-columns: 1fr 1.4fr;
  }

  .format-meta {
    grid-column: 2;
  }

  .performance-strip {
    grid-template-columns: 1fr 1fr;
  }

  .performance-strip > *:nth-child(2) {
    border-right: 0;
  }

  .performance-strip > *:nth-child(n + 3) {
    border-top: 1px solid var(--line-dark);
  }

  .method-flow {
    grid-column: auto;
  }

  .planner-shell {
    grid-template-columns: 1fr;
  }

  .planner-intro {
    grid-column: auto;
  }

  .recommendation {
    position: relative;
    top: auto;
  }

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

@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

@media (max-width: 560px) {
  .brand-name {
    display: none;
  }

  .hero-title {
    font-size: clamp(3rem, 15vw, 4.7rem);
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  .video-control span:last-child {
    display: none;
  }

  .display-title,
  .planner-intro .display-title {
    font-size: clamp(3rem, 13vw, 4.7rem);
  }

  .sound-sentence {
    grid-template-columns: 1fr;
  }

  .sound-sentence p,
  .sound-sentence p:nth-child(3) {
    min-height: 118px;
    border-right: 0;
    border-top: 1px solid var(--line-light);
  }

  .sound-sentence p:first-child {
    border-top: 0;
  }

  .experience-track {
    grid-auto-columns: 88vw;
    padding-left: 5vw;
  }

  .experience-card {
    min-height: 520px;
  }

  .format-card {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .format-meta {
    grid-column: auto;
  }

  .performance-strip {
    grid-template-columns: 1fr;
  }

  .performance-strip > * {
    border-right: 0;
    border-top: 1px solid var(--line-dark);
  }

  .performance-strip > *:first-child {
    border-top: 0;
  }

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

  .footer-year {
    margin-top: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .hero-video {
    display: none;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* === Gutenberg / vizualaus redagavimo suderinamumas === */
.entry-content > * {
  margin-block-start: 0;
  margin-block-end: 0;
}

.wp-block-group.shell,
.wp-block-group.hero-content {
  max-width: none;
}

.section-kicker > p,
.experience-top > p,
.hero-rail > p,
.values-loop > p,
.format-id > p,
.performance-strip > p,
.performance-strip > .wp-block-group > p,
.method-flow article > p:first-child {
  margin: 0;
}

.hero-rail > p {
  scroll-snap-align: start;
}

.hero-rail > p:not(:first-child) {
  text-align: right;
}

.values-loop > p {
  flex-shrink: 0;
  animation: ticker 34s linear infinite;
}

.experience-top {
  width: 100%;
}

.experience-card > .card-question {
  margin-top: auto;
}

.format-id > p {
  font: inherit;
}

.performance-strip > .wp-block-group {
  margin: 0;
}

.wp-block-buttons.hero-actions,
.wp-block-buttons.closing-actions {
  margin: 0;
}

.wp-block-button.be-button-primary .wp-block-button__link,
.wp-block-button.be-button-ghost .wp-block-button__link,
.wp-block-button.be-button-light .wp-block-button__link {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.85rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 0;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: transform 200ms var(--ease), background 200ms ease, color 200ms ease, border-color 200ms ease;
}

.wp-block-button.be-button-primary .wp-block-button__link {
  color: var(--ink);
  background: var(--gold-light);
  border-color: var(--gold-light);
}

.wp-block-button.be-button-primary .wp-block-button__link:hover {
  transform: translateY(-2px);
  background: white;
  border-color: white;
}

.wp-block-button.be-button-ghost .wp-block-button__link {
  color: white;
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
}

.wp-block-button.be-button-ghost .wp-block-button__link:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.12);
}

.wp-block-button.be-button-light .wp-block-button__link {
  color: var(--ink);
  background: white;
}

.wp-block-button.be-button-light .wp-block-button__link:hover {
  transform: translateY(-2px);
}

.site-nav-list {
  display: flex;
  align-items: center;
  gap: clamp(1.4rem, 2.3vw, 2.7rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav-list li:last-child a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.65rem 1rem;
  color: var(--ink);
  background: var(--gold-light);
}

.generic-content {
  min-height: 100vh;
  padding-top: 8rem;
}

@media (max-width: 760px) {
  .hero-rail > p:first-child { display: none; }
  .hero-rail > p:nth-child(2) { text-align: left; }
  .site-nav-list { display: grid; gap: 1rem; }
}

/* V4: redaguojamas logotipas ir kontaktai per WordPress Tinkintuvę */
.site-header .custom-logo-link {
  display: inline-flex;
  align-items: center;
  max-width: min(220px, 42vw);
}

.site-header .custom-logo {
  display: block;
  width: auto;
  max-width: 100%;
  height: 44px;
  object-fit: contain;
}

.footer-contact a {
  word-break: break-word;
}

.footer-contact-address {
  white-space: pre-line;
}

.footer-admin-hint {
  padding: .65rem .75rem;
  border: 1px dashed rgba(241, 239, 232, .28);
}

/* V5: kontaktinio asmens eilute */
.footer-contact-name { margin: 0 0 0.35rem; font-weight: 600; }

/* =========================================================
   GDPR / SLAPUKŲ SUTIKIMAS — V7
   ========================================================= */
body.bn-consent-open { overflow: hidden; }
.bn-consent[hidden], .bn-cookie-fab[hidden], [data-bn-consent-settings][hidden], [data-bn-consent-first][hidden] { display: none !important; }
.bn-consent {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: grid;
  align-items: end;
  padding: 20px;
  background: rgba(7, 8, 11, 0.64);
  backdrop-filter: blur(8px);
}
.bn-consent-card {
  position: relative;
  width: min(100%, 860px);
  margin: 0 auto;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 22px;
  background: #101218;
  color: #f1efe8;
  box-shadow: 0 28px 80px rgba(0,0,0,.42);
}
.bn-consent-kicker {
  margin: 0 0 8px;
  color: var(--gold-light);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.bn-consent-card h2 { margin: 0 44px 10px 0; font-size: clamp(1.55rem, 3vw, 2.35rem); line-height: 1.05; }
.bn-consent-card p { color: rgba(241,239,232,.78); }
.bn-consent-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 1.4rem;
}
.bn-consent-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px;
  margin-top: 22px;
}
.bn-consent-button {
  min-height: 50px;
  padding: 11px 14px;
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.bn-consent-button:hover, .bn-consent-button:focus-visible {
  transform: translateY(-1px);
  border-color: var(--gold-light);
  background: rgba(242,223,172,.10);
  outline: 2px solid transparent;
}
.bn-consent-links { display:flex; flex-wrap:wrap; gap:10px; margin:16px 0 0; font-size:.88rem; }
.bn-consent-links a { text-decoration: underline; text-underline-offset: 3px; }
.bn-consent-option {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,.14);
  cursor: pointer;
}
.bn-consent-option strong { display:block; margin-bottom:3px; }
.bn-consent-option p { margin: 0; font-size: .9rem; }
.bn-consent-option input { width: 22px; height: 22px; accent-color: var(--gold); }
.bn-consent-option.is-required { cursor: default; }
.bn-cookie-fab {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 99990;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  background: #101218;
  color: #f1efe8;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  cursor: pointer;
  font-size: .78rem;
  font-weight: 700;
}
.footer-legal-links { display:flex; flex-wrap:wrap; gap:10px 16px; margin-top:16px; font-size:.8rem; }
.footer-legal-links a, .footer-legal-links button { color: inherit; opacity:.78; text-decoration: underline; text-underline-offset:3px; }
.footer-legal-links button { padding:0; border:0; background:transparent; cursor:pointer; font:inherit; }
.legal-document { max-width: 920px; margin: 0 auto; padding-bottom: 80px; }
.legal-document h2 { margin-top: 0; font-size: clamp(2.2rem, 6vw, 4.5rem); line-height: .98; }
.legal-document h3 { margin-top: 42px; font-size: clamp(1.3rem, 2.4vw, 1.85rem); }
.legal-document p, .legal-document li { max-width: 80ch; line-height: 1.75; }
.legal-document a { text-decoration: underline; text-underline-offset: 3px; }
.legal-kicker { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 800; }
.legal-table-wrap { overflow-x: auto; margin: 20px 0 34px; }
.legal-table { width: 100%; min-width: 720px; border-collapse: collapse; }
.legal-table th, .legal-table td { padding: 14px; border: 1px solid rgba(7,8,11,.18); text-align: left; vertical-align: top; }
.legal-table th { background: rgba(7,8,11,.06); }
@media (max-width: 720px) {
  .bn-consent { padding: 10px; }
  .bn-consent-card { border-radius: 18px; }
  .bn-consent-actions { grid-template-columns: 1fr; }
  .bn-consent-actions-settings { grid-template-columns: 1fr; }
  .bn-cookie-fab { left: 10px; bottom: 10px; }
}
.generic-legal-footer { padding: 0 0 48px; font-size: .86rem; }
.generic-legal-footer a, .generic-legal-footer button { text-decoration: underline; text-underline-offset: 3px; }
.generic-legal-footer button { border: 0; padding: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; }

/* FooGallery galerijos centravimas */
.wp-block-shortcode {
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
    text-align: center;
}

.foogallery {
    width: 100% !important;
    max-width: 100% !important;
    margin-inline: auto !important;
    text-align: center;
}
/* Akimirkų sekcijos ir galerijos plotis */
/*#ideja .manifesto-grid,
#ideja .section-head {
    display: block;
}

#ideja .manifesto-copy,
#ideja .section-head {
    width: 100%;
    max-width: none;
}

#ideja #foogallery-gallery-66 {
    width: 100% !important;
    margin-inline: auto !important;
}*/
