:root {
  --bg: #040817;
  --bg-deep: #02040d;
  --ink: #f3f5fb;
  --muted: rgba(228, 233, 247, 0.66);
  --quiet: rgba(223, 228, 244, 0.40);
  --violet: #817aff;
  --amber: #efa84d;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --brand-font: "Segoe UI", "Segoe UI Variable", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
}

body {
  min-height: 100svh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(circle at 84% 58%, rgba(60, 71, 165, 0.19), transparent 33%),
    radial-gradient(circle at 44% 56%, rgba(46, 57, 129, 0.08), transparent 31%),
    linear-gradient(112deg, #030713 0%, #071025 55%, #02050f 100%);
}

.site-shell {
  position: relative;
  min-height: 100svh;
  isolation: isolate;
  overflow: hidden;
}

.field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.atmosphere {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse at 22% 40%,
      rgba(2, 5, 14, 0.23) 0%,
      rgba(2, 5, 14, 0.12) 30%,
      transparent 56%
    ),
    radial-gradient(
      ellipse at 62% 50%,
      transparent 28%,
      rgba(0, 0, 0, 0.10) 77%,
      rgba(0, 0, 0, 0.24) 100%
    );
}

.grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.021;
  background-image:
    radial-gradient(
      circle,
      rgba(255, 255, 255, 0.82) 0.42px,
      transparent 0.56px
    );
  background-size: 11px 11px;
  mix-blend-mode: soft-light;
}

.topbar {
  position: absolute;
  z-index: 5;
  inset: 0 0 auto 0;
  display: flex;
  align-items: center;
  padding:
    clamp(28px, 4vw, 62px)
    clamp(28px, 4.3vw, 72px);
}

.brand,
.email {
  color: var(--ink);
  text-decoration: none;
}

.brand {
  font-family: var(--brand-font);
  font-size: clamp(2.24rem, 2.88vw, 2.84rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1;
}

.hero {
  position: relative;
  z-index: 4;
  min-height: 100svh;
  padding:
    clamp(112px, 13.5vh, 168px)
    clamp(28px, 4.3vw, 72px)
    clamp(24px, 3.8vh, 44px);
  display: grid;
  grid-template-rows: 1fr auto;
}

.composition {
  align-self: center;
  display: grid;
  gap: clamp(64px, 8.2vh, 104px);
  padding:
    clamp(22px, 3vh, 42px)
    0
    clamp(42px, 5vh, 68px);
}

.hero-copy {
  width: min(50vw, 790px);
}

h1 {
  margin: 0;
  max-width: 12.5ch;
  font-family: var(--font);
  font-size: clamp(3.8rem, 5.7vw, 7rem);
  line-height: 0.94;
  letter-spacing: -0.025em;
  font-weight: 515;
  text-wrap: balance;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.26);
}

.intro {
  max-width: 570px;
  margin: clamp(26px, 3.5vh, 44px) 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.13vw, 1.20rem);
  line-height: 1.56;
  letter-spacing: -0.015em;
  font-weight: 390;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.34);
}

.thesis {
  width: min(42vw, 650px);
  margin: 0;
  display: grid;
  grid-template-columns: clamp(36px, 4vw, 64px) 1fr;
  align-items: start;
  gap: 18px;
}

.thesis-rule {
  display: block;
  height: 1px;
  margin-top: 0.72em;
  background:
    linear-gradient(
      90deg,
      rgba(130, 122, 255, 0.82),
      rgba(130, 122, 255, 0.08)
    );
}

.thesis p {
  margin: 0;
  max-width: 31rem;
  color: rgba(218, 222, 239, 0.62);
  font-size: clamp(1.12rem, 1.45vw, 1.62rem);
  line-height: 1.28;
  letter-spacing: -0.022em;
  font-weight: 410;
}

.site-footer {
  display: grid;
  gap: clamp(20px, 2.25vh, 28px);
  width: min(100%, 1420px);
}

.footerline {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.domains {
  display: flex;
  align-items: center;
  gap: 15px;
  color: rgba(239, 242, 250, 0.74);
  text-transform: uppercase;
  letter-spacing: 0.21em;
  font-size: clamp(0.56rem, 0.60vw, 0.70rem);
  font-weight: 610;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.30);
}

.domains i {
  color: rgba(129, 122, 255, 0.90);
  font-style: normal;
  font-weight: 430;
}

.email {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: rgba(243, 245, 251, 0.86);
  font-size: clamp(0.86rem, 0.96vw, 1.01rem);
  letter-spacing: -0.012em;
}

.arrow {
  color: var(--amber);
  font-size: 1.45em;
  line-height: 1;
  transform: translateX(0);
  transition:
    transform 260ms cubic-bezier(.22, .8, .2, 1);
}

.email:hover .arrow,
.email:focus-visible .arrow {
  transform: translateX(6px);
}

.legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 12px;
  color: rgba(220, 225, 239, 0.46);
  font-size: clamp(0.64rem, 0.66vw, 0.75rem);
  font-weight: 430;
  line-height: 1.48;
  letter-spacing: 0.025em;
}

.legal-sep {
  color: rgba(129, 122, 255, 0.58);
}

.email:focus-visible,
.brand:focus-visible {
  outline: 1px solid rgba(243, 245, 251, 0.65);
  outline-offset: 6px;
}

@media (max-width: 1100px) {
  body {
    overflow: auto;
  }

  .site-shell,
  .hero {
    min-height: 100dvh;
  }

  .composition {
    gap: clamp(54px, 7vh, 82px);
  }

  .hero-copy {
    width: min(72vw, 720px);
  }

  h1 {
    font-size: clamp(3.4rem, 7.9vw, 5.8rem);
  }

  .thesis {
    width: min(68vw, 620px);
  }
}

@media (max-width: 720px) {
  .topbar {
    padding: 24px 20px;
  }

  .hero {
    padding: 112px 20px 20px;
    min-height: 100dvh;
  }

  .composition {
    align-self: start;
    gap: 52px;
    padding: 24px 0 48px;
  }

  .hero-copy {
    width: 100%;
  }

  h1 {
    max-width: 10.3ch;
    font-size: clamp(3rem, 13.7vw, 5rem);
    line-height: 0.96;
  }

  .intro {
    max-width: 31rem;
    font-size: 0.98rem;
  }

  .thesis {
    width: 100%;
    max-width: 23rem;
    margin-bottom: 0;
    grid-template-columns: 32px 1fr;
    gap: 14px;
  }

  .thesis p {
    font-size: 1.10rem;
  }

  .footerline {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
  }

  .domains {
    gap: 9px;
    letter-spacing: 0.15em;
  }

  .email {
    align-self: flex-start;
  }

  .legal {
    max-width: 29rem;
    gap: 5px 9px;
    font-size: 0.64rem;
  }

  .atmosphere {
    background:
      radial-gradient(
        ellipse at 35% 34%,
        rgba(2, 5, 14, 0.26) 0%,
        rgba(2, 5, 14, 0.13) 38%,
        transparent 68%
      ),
      radial-gradient(
        circle at 50% 50%,
        transparent 34%,
        rgba(0, 0, 0, 0.19) 100%
      );
  }
}

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

/* Privacy notice — first-party analytics disclosure */

.privacy-link {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: color 180ms ease;
}

.privacy-link:hover,
.privacy-link:focus-visible {
  color: rgba(243, 245, 251, 0.78);
}

.privacy-link:focus-visible,
.privacy-close:focus-visible {
  outline: 1px solid rgba(243, 245, 251, 0.65);
  outline-offset: 5px;
}

.privacy-overlay[hidden] {
  display: none;
}

.privacy-overlay {
  position: fixed;
  z-index: 30;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(2, 4, 13, 0.72);
  backdrop-filter: blur(18px) saturate(1.06);
  -webkit-backdrop-filter: blur(18px) saturate(1.06);
}

.privacy-dialog {
  position: relative;
  width: min(650px, calc(100vw - 40px));
  max-height: min(84vh, 760px);
  overflow: auto;
  padding: clamp(30px, 5vw, 54px);
  border: 1px solid rgba(243, 245, 251, 0.10);
  border-radius: 24px;
  background:
    linear-gradient(
      180deg,
      rgba(10, 16, 36, 0.97),
      rgba(4, 8, 23, 0.985)
    );
  box-shadow:
    0 30px 100px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.privacy-eyebrow {
  margin-bottom: 12px;
  color: rgba(155, 150, 255, 0.78);
  font-size: 0.70rem;
  font-weight: 620;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.privacy-dialog h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 580;
}

.privacy-copy {
  margin-top: 24px;
  color: rgba(228, 233, 247, 0.70);
  font-size: 0.96rem;
  line-height: 1.68;
}

.privacy-copy p {
  margin: 0;
}

.privacy-copy p + p {
  margin-top: 16px;
}

.privacy-copy a {
  color: rgba(190, 187, 255, 0.92);
}

.privacy-updated {
  margin-top: 28px;
  color: rgba(220, 225, 239, 0.38);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.privacy-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(243, 245, 251, 0.10);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
}

.privacy-close span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 1px;
  background: rgba(243, 245, 251, 0.72);
}

.privacy-close span:first-child {
  transform:
    translate(-50%, -50%)
    rotate(45deg);
}

.privacy-close span:last-child {
  transform:
    translate(-50%, -50%)
    rotate(-45deg);
}

body.privacy-open {
  overflow: hidden;
}

@media (max-width: 720px) {
  .privacy-overlay {
    padding: 16px;
  }

  .privacy-dialog {
    width: 100%;
    max-height: calc(100dvh - 32px);
    padding: 34px 24px 28px;
    border-radius: 20px;
  }

  .privacy-copy {
    font-size: 0.9rem;
  }
}