:root {
  --font-display: "Cormorant Garamond", "Didot", "Bodoni 72", "Bodoni MT", "Georgia", serif;
  --font-sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --header-height: clamp(4.5rem, 8.9vw, 6.05rem);
  --side-gutter: clamp(1.35rem, 4vw, 4.25rem);
  --ink: rgba(244, 248, 250, 0.94);
  --muted: rgba(222, 232, 238, 0.72);
  --soft: rgba(209, 226, 235, 0.52);
  --line: rgba(213, 235, 247, 0.20);
  --line-strong: rgba(228, 239, 245, 0.36);
  --panel-bg: rgba(8, 27, 43, 0.50);
  --panel-border: rgba(207, 231, 243, 0.23);
  --shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.35);
  --bg-brightness: 0.95;
  --overlay-a: rgba(1, 8, 18, 0.24);
  --overlay-b: rgba(3, 21, 36, 0.55);
  --overlay-c: rgba(1, 5, 14, 0.56);
}

html[data-theme="light"] {
  --ink: rgba(252, 254, 255, 0.98);
  --muted: rgba(235, 244, 248, 0.82);
  --soft: rgba(224, 239, 247, 0.62);
  --line: rgba(241, 249, 252, 0.26);
  --line-strong: rgba(255, 255, 255, 0.46);
  --panel-bg: rgba(29, 57, 75, 0.46);
  --panel-border: rgba(243, 250, 255, 0.34);
  --bg-brightness: 1.18;
  --overlay-a: rgba(42, 76, 98, 0.04);
  --overlay-b: rgba(5, 26, 43, 0.33);
  --overlay-c: rgba(0, 7, 16, 0.32);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: #061321;
  color: var(--ink);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

.site-shell {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  padding: 0 var(--side-gutter) clamp(5.7rem, 9vh, 7.5rem);
}

.bg-layer,
.grain-layer,
.vignette-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -3;
}

.bg-layer {
  background-image: url("../assets/background-clean.png");
  background-size: cover;
  background-position: 50% 50%;
  transform: scale(1.012);
  filter: saturate(0.94) brightness(var(--bg-brightness));
}

.vignette-layer {
  z-index: -2;
  background:
    radial-gradient(circle at 46% 50%, rgba(102, 160, 190, 0.10), transparent 26rem),
    linear-gradient(90deg, var(--overlay-c) 0%, rgba(2, 14, 26, 0.23) 28%, rgba(3, 14, 25, 0.07) 55%, var(--overlay-a) 100%),
    linear-gradient(180deg, rgba(3, 9, 19, 0.18) 0%, transparent 37%, var(--overlay-b) 100%);
}

.grain-layer {
  z-index: -1;
  opacity: 0.15;
  background-image:
    linear-gradient(115deg, rgba(255, 255, 255, 0.10), transparent 30%, rgba(255, 255, 255, 0.05) 62%, transparent),
    repeating-radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 4px);
  mix-blend-mode: screen;
}

.site-header {
  position: relative;
  z-index: 5;
  min-height: var(--header-height);
  padding-inline: 0;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: clamp(1rem, 1.6vw, 1.55rem);
  color: var(--ink) !important;
  letter-spacing: 0.58em;
  text-decoration: none;
  text-shadow: 0 0 1.8rem rgba(199, 225, 238, 0.25);
}

.brand-mark {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.1vw, 3rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  transform: translateY(-0.05em);
}

.brand-name {
  font-family: var(--font-sans);
  font-size: clamp(0.62rem, 0.9vw, 0.78rem);
  font-weight: 600;
}

.header-actions {
  color: var(--ink);
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.lang-btn {
  position: relative;
  border: 0;
  padding: 0.25rem 0.03rem 0.45rem;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: clamp(0.78rem, 1vw, 0.94rem);
  font-weight: 600;
  letter-spacing: 0.09em;
  line-height: 1;
  transition: color 180ms ease, opacity 180ms ease;
}

.lang-btn::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  background: currentColor;
  transition: transform 180ms ease;
}

.lang-btn.active,
.lang-btn:hover {
  color: var(--ink);
}

.lang-btn.active::after {
  transform: scaleX(1);
}

.lang-separator {
  display: block;
  width: 1px;
  height: 1rem;
  background: var(--line-strong);
}

.theme-toggle {
  width: 4.6rem;
  height: 2.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: space-around;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  background: rgba(214, 237, 249, 0.10);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03), 0 0.75rem 2rem rgba(3, 13, 24, 0.20);
  backdrop-filter: blur(8px);
  transition: background 180ms ease, border-color 180ms ease;
}

.theme-icon {
  width: 1.3rem;
  height: 1.3rem;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  font-size: 0.88rem;
  line-height: 1;
  opacity: 0.88;
  transition: background 180ms ease, color 180ms ease, opacity 180ms ease;
}

html[data-theme="dark"] .theme-icon.moon,
html[data-theme="light"] .theme-icon.sun {
  background: rgba(238, 248, 253, 0.18);
  color: #fff;
  opacity: 1;
}

.coordinate-rail {
  position: absolute;
  left: calc(var(--side-gutter) + 0.55rem);
  top: clamp(31rem, 52vh, 35.6rem);
  z-index: 4;
  display: grid;
  justify-items: center;
  color: var(--soft);
  pointer-events: none;
}

.rail-line {
  width: 1px;
  background: var(--line-strong);
}

.rail-line.top {
  height: 5rem;
}

.rail-line.bottom {
  height: 3.6rem;
}

.rail-dot {
  width: 0.42rem;
  height: 0.42rem;
  border: 1px solid var(--ink);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(185, 221, 238, 0.08);
  margin-block: -0.15rem 1rem;
}

.coordinates {
  margin: 0 0 1rem;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-sans);
  font-size: clamp(0.62rem, 0.75vw, 0.72rem);
  font-weight: 500;
  letter-spacing: 0.34em;
  white-space: nowrap;
}

.hero {
  position: relative;
  z-index: 3;
  flex: 1 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  padding: clamp(2.5rem, 5vh, 4.8rem) 0 clamp(2rem, 5vh, 3.5rem);
}

.hero-layout {
  width: 100%;
  min-height: clamp(37rem, calc(100svh - var(--header-height) - 9rem), 48rem);
  align-content: center;
}

.hero-copy {
  padding-left: clamp(3.55rem, 6.2vw, 6.2rem);
}

.hero-title {
  margin: 0;
  max-width: 50rem;
  font-family: var(--font-display);
  font-size: clamp(6.2rem, 12.4vw, 13.2rem);
  font-weight: 300;
  line-height: 0.76;
  letter-spacing: -0.065em;
  color: var(--ink);
  text-shadow: 0 1.25rem 3.2rem rgba(3, 12, 23, 0.45);
}

.hero-kicker {
  margin: clamp(2rem, 3.2vw, 3.2rem) 0 0;
  font-family: var(--font-sans);
  font-size: clamp(0.64rem, 0.91vw, 0.87rem);
  font-weight: 600;
  letter-spacing: clamp(0.42em, 0.66vw, 0.72em);
  color: var(--muted);
  text-shadow: 0 0.5rem 1.5rem rgba(4, 16, 28, 0.32);
}

.kicker-rule {
  display: block;
  width: 2.35rem;
  height: 1px;
  margin: 1.1rem 0 1.65rem;
  background: var(--line-strong);
}

.glass-panel {
  width: min(100%, 35.6rem);
  margin-left: -0.9rem;
  border: 1px solid var(--panel-border);
  border-radius: 0.75rem;
  background: linear-gradient(135deg, rgba(13, 42, 63, 0.58), var(--panel-bg));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(14px) saturate(118%);
}

.intro-card {
  padding: clamp(1.3rem, 2.1vw, 2.35rem) clamp(1.65rem, 2.5vw, 2.75rem);
  max-height: min(47svh, 30.5rem);
  overflow: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(217, 237, 248, 0.45) transparent;
}

.intro-card::-webkit-scrollbar {
  width: 0.35rem;
}

.intro-card::-webkit-scrollbar-thumb {
  background: rgba(217, 237, 248, 0.45);
  border-radius: 999px;
}

.intro-title {
  margin: 0 0 0.9rem;
  font-family: var(--font-display);
  font-size: clamp(1.68rem, 2.1vw, 2.18rem);
  font-weight: 500;
  line-height: 1.05;
  color: var(--ink);
}

.intro-copy {
  color: var(--muted);
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  font-weight: 400;
  line-height: 1.45;
}

.intro-copy p {
  margin: 0 0 0.98rem;
}

.intro-copy p:last-child {
  margin-bottom: 0;
}

.quote-column {
  align-self: stretch;
  align-items: center;
  padding-top: clamp(14rem, 28vh, 25rem);
}

.quote-block {
  width: min(100%, 20rem);
  margin: 0;
  color: var(--muted);
  text-shadow: 0 0.8rem 1.8rem rgba(0, 0, 0, 0.34);
}

.quote-mark {
  margin-bottom: -0.2rem;
  font-family: var(--font-display);
  font-size: clamp(3rem, 4.1vw, 4.6rem);
  font-weight: 500;
  line-height: 0.6;
  color: var(--ink);
}

.quote-mark::after {
  content: "";
  display: block;
  width: 2.25rem;
  height: 1px;
  margin-top: 1rem;
  background: var(--line-strong);
}

.quote-block blockquote {
  margin: 1.15rem 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.06rem, 1.24vw, 1.27rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.45;
}

.quote-block figcaption {
  font-family: var(--font-display);
  font-size: clamp(0.98rem, 1.12vw, 1.1rem);
  color: var(--muted);
}

.coming-soon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(1.2rem, 2.4vh, 2.35rem);
  z-index: 4;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.footer-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0 14%, var(--line) 28% 42%, transparent 42% 58%, var(--line) 58% 72%, transparent 86% 100%);
}

.footer-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(100% - 2rem, 16rem);
  min-height: 2.6rem;
  padding: 0.65rem 1.8rem 0.5rem;
  border-radius: 999px;
  background: rgba(9, 27, 42, 0.38);
  border-top: 1px solid rgba(214, 236, 248, 0.10);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: clamp(0.73rem, 0.95vw, 0.88rem);
  font-weight: 600;
  letter-spacing: 0.64em;
  text-indent: 0.64em;
  backdrop-filter: blur(8px);
}

.footer-pin {
  position: absolute;
  left: 50%;
  top: calc(50% + 1.18rem);
  width: 1px;
  height: 1.55rem;
  background: var(--line-strong);
}

.footer-pin::before,
.footer-pin::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  border: 1px solid var(--line-strong);
}

.footer-pin::before {
  top: -0.25rem;
  width: 0.38rem;
  height: 0.38rem;
}

.footer-pin::after {
  bottom: -0.12rem;
  width: 0.23rem;
  height: 0.23rem;
  background: var(--ink);
}

@media (min-width: 1600px) {
  .intro-card {
    max-height: 33rem;
  }
}

@media (max-width: 1199.98px) {
  .site-shell {
    min-height: 100svh;
    padding-bottom: 6.5rem;
  }

  .hero {
    align-items: flex-start;
  }

  .hero-layout {
    min-height: auto;
    row-gap: 2.5rem;
  }

  .hero-copy {
    padding-left: clamp(2.5rem, 9vw, 6rem);
  }

  .quote-column {
    padding-top: 0;
    padding-left: clamp(2.5rem, 9vw, 6rem);
  }

  .quote-block {
    margin-left: -0.9rem;
  }

  .intro-card {
    max-height: none;
  }
}

@media (max-width: 767.98px) {
  :root {
    --side-gutter: 1.1rem;
    --header-height: 4.55rem;
  }

  .site-shell {
    padding-bottom: 6.3rem;
  }

  .site-header {
    min-height: var(--header-height);
  }

  .brand-lockup {
    gap: 0.8rem;
    letter-spacing: 0.32em;
  }

  .brand-mark {
    font-size: 2rem;
  }

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

  .header-actions {
    gap: 1rem !important;
  }

  .language-switch {
    gap: 0.55rem;
  }

  .theme-toggle {
    width: 3.8rem;
    height: 1.86rem;
  }

  .theme-icon {
    font-size: 0.75rem;
  }

  .coordinate-rail {
    display: none;
  }

  .hero {
    padding-top: clamp(3.2rem, 9vh, 5rem);
  }

  .hero-copy,
  .quote-column {
    padding-left: 0;
  }

  .hero-title {
    font-size: clamp(5.2rem, 24vw, 8.3rem);
    line-height: 0.78;
    letter-spacing: -0.06em;
  }

  .hero-kicker {
    max-width: 20rem;
    letter-spacing: 0.36em;
    line-height: 1.8;
  }

  .glass-panel,
  .quote-block {
    margin-left: 0;
  }

  .intro-card {
    width: 100%;
    border-radius: 0.7rem;
    padding: 1.45rem 1.25rem;
  }

  .intro-copy {
    font-size: 1.02rem;
  }

  .quote-block {
    padding: 0.35rem 0 1rem;
  }

  .coming-soon {
    bottom: 1.35rem;
  }

  .footer-pill {
    min-width: min(100% - 2rem, 13.8rem);
    font-size: 0.68rem;
    letter-spacing: 0.48em;
    text-indent: 0.48em;
  }
}

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

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

  .hero-kicker {
    font-size: 0.6rem;
    letter-spacing: 0.29em;
  }
}

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