:root {
  color-scheme: dark;
  --background: #07060b;
  --background-deep: #030306;
  --surface: #100e16;
  --surface-raised: #17141f;
  --text: #f3f0eb;
  --text-secondary: #aaa5b1;
  --text-soft: #77727f;
  --accent: #b6a0d8;
  --accent-warm: #d6c4b7;
  --success: #78cba9;
  --border: rgba(243, 240, 235, 0.13);
  --border-soft: rgba(243, 240, 235, 0.07);
  --page-x: clamp(24px, 5vw, 72px);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: "Manrope", system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

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

.skip-link {
  position: fixed;
  left: 24px;
  top: -80px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--text);
  color: var(--background);
  border-radius: 999px;
}

.skip-link:focus {
  top: 18px;
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 24px;
  left: var(--page-x);
  right: var(--page-x);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 76px;
  padding: 0 20px 0 28px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(7, 6, 11, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 18px 70px rgba(0, 0, 0, 0.2);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  justify-self: start;
  line-height: 1.15;
}

.brand-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand-role {
  margin-top: 5px;
  color: var(--text-soft);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.header-nav {
  display: flex;
  gap: 30px;
  color: var(--text-secondary);
  font-size: 12px;
}

.header-nav a,
.header-cta,
.button {
  transition: transform 250ms ease, color 250ms ease, background-color 250ms ease, border-color 250ms ease, box-shadow 250ms ease;
}

.header-nav a:hover,
.header-nav a:focus-visible {
  color: var(--text);
}

.header-cta {
  justify-self: end;
  padding: 13px 19px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  font-size: 12px;
}

.header-cta:hover,
.header-cta:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(182, 160, 216, 0.5);
  box-shadow: 0 0 34px rgba(182, 160, 216, 0.13);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  align-items: center;
  gap: clamp(48px, 8vw, 130px);
  min-height: 100svh;
  padding: 150px var(--page-x) 110px;
  overflow: hidden;
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 220px;
  z-index: -1;
  background: linear-gradient(to bottom, transparent, var(--background));
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 77% 34%, rgba(182, 160, 216, 0.2), transparent 23%),
    radial-gradient(circle at 12% 74%, rgba(93, 74, 128, 0.12), transparent 28%),
    repeating-linear-gradient(96deg, transparent 0 5.6%, rgba(255, 255, 255, 0.018) 5.8%, transparent 6.4%),
    linear-gradient(115deg, #05040a 8%, #0c0913 48%, #030306 88%);
}

.hero-atmosphere::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: repeating-linear-gradient(82deg, transparent 0 8%, rgba(182, 160, 216, 0.025) 8.2%, transparent 9%);
  filter: blur(8px);
  transform: rotate(-4deg);
  animation: drift 18s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translate3d(-1%, -1%, 0) rotate(-4deg); }
  to { transform: translate3d(2%, 1%, 0) rotate(-2deg); }
}

.hero-copy {
  max-width: 920px;
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  max-width: 100%;
  color: var(--text-secondary);
  font-size: 12px;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-transform: uppercase;
}

.eyebrow > span {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 16px rgba(120, 203, 169, 0.6);
}

.cta-short {
  display: none;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 980px;
  margin: 34px 0 34px;
  font-size: clamp(54px, 6.2vw, 100px);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

h1 em,
h2 em {
  display: block;
  color: var(--accent-warm);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.045em;
}

.hero-lead {
  max-width: 760px;
  margin-bottom: 36px;
  color: var(--text-secondary);
  font-size: clamp(17px, 1.35vw, 21px);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 0 25px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
}

.button-primary {
  background: var(--text);
  color: var(--background);
  box-shadow: 0 14px 40px rgba(243, 240, 235, 0.07);
}

.button-primary:hover,
.button-primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 50px rgba(182, 160, 216, 0.18);
}

.button-secondary {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(182, 160, 216, 0.45);
  background: rgba(182, 160, 216, 0.07);
}

.button:focus-visible,
.header-cta:focus-visible,
.header-nav a:focus-visible,
.scroll-cue:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin: 48px 0 0;
  padding: 0;
  color: var(--text-soft);
  font-size: 11px;
  letter-spacing: 0.06em;
  list-style: none;
  text-transform: uppercase;
}

.hero-proof li {
  position: relative;
  padding-left: 14px;
}

.hero-proof li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

.portrait-wrap {
  position: relative;
  justify-self: end;
  width: min(100%, 470px);
}

.portrait-glow {
  position: absolute;
  inset: 14% -15% 6%;
  background: radial-gradient(circle, rgba(182, 160, 216, 0.22), transparent 66%);
  filter: blur(30px);
}

.portrait-placeholder {
  position: relative;
  display: flex;
  aspect-ratio: 4 / 5;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 34px;
  background:
    radial-gradient(circle at 52% 38%, rgba(214, 196, 183, 0.18), transparent 23%),
    radial-gradient(ellipse at 50% 110%, rgba(182, 160, 216, 0.22), transparent 58%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055), 0 40px 100px rgba(0, 0, 0, 0.42);
}

.portrait-placeholder::before {
  content: "";
  position: absolute;
  width: 48%;
  height: 70%;
  bottom: -12%;
  border-radius: 50% 50% 24% 24%;
  background: linear-gradient(180deg, rgba(243, 240, 235, 0.09), rgba(182, 160, 216, 0.03));
  filter: blur(2px);
}

.portrait-placeholder strong {
  position: relative;
  z-index: 1;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(78px, 9vw, 144px);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.08em;
}

.portrait-label,
.portrait-caption {
  position: absolute;
  z-index: 2;
  left: 26px;
  right: 26px;
  color: var(--text-soft);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.portrait-label { top: 25px; }
.portrait-caption { bottom: 25px; color: var(--text-secondary); }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-soft);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.scroll-cue i {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.12), transparent 40%);
}

.system-section,
.research-section,
.prototype-contact {
  padding: 160px var(--page-x);
}

.system-section {
  background:
    radial-gradient(circle at 88% 24%, rgba(182, 160, 216, 0.08), transparent 25%),
    var(--background);
}

.section-heading,
.research-intro {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 78px;
}

.section-heading .eyebrow,
.research-intro .eyebrow {
  grid-column: 1 / -1;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(42px, 4.7vw, 72px);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.section-heading > p,
.research-intro > p {
  max-width: 600px;
  margin-bottom: 2px;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.8;
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.system-card {
  position: relative;
  min-height: 330px;
  padding: 34px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 25px 80px rgba(0, 0, 0, 0.18);
}

.system-card::after {
  content: "";
  position: absolute;
  right: -12%;
  bottom: -40%;
  width: 55%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(182, 160, 216, 0.15), transparent 68%);
  transition: transform 600ms ease, opacity 600ms ease;
}

.system-card:hover::after {
  transform: translate3d(-14px, -14px, 0) scale(1.08);
}

.card-number {
  color: var(--accent-warm);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 34px;
  font-style: italic;
}

.system-card h3 {
  max-width: 480px;
  margin: 72px 0 18px;
  font-size: clamp(25px, 2.3vw, 36px);
  font-weight: 500;
  letter-spacing: -0.04em;
}

.system-card p {
  max-width: 560px;
  color: var(--text-secondary);
  font-size: 15px;
}

.card-meta {
  position: absolute;
  right: 28px;
  top: 28px;
  color: var(--text-soft);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.system-foundation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 16px;
  padding: 30px 34px;
  border: 1px solid rgba(182, 160, 216, 0.26);
  border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(182, 160, 216, 0.1), rgba(214, 196, 183, 0.035));
  box-shadow: 0 20px 70px rgba(182, 160, 216, 0.06);
}

.system-foundation span {
  color: var(--text-soft);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.system-foundation strong {
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.research-section {
  background: var(--background-deep);
}

.research-panel {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  min-height: 630px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 34px;
  background:
    radial-gradient(circle at 16% 22%, rgba(182, 160, 216, 0.14), transparent 27%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
}

.research-quote {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(32px, 5vw, 70px);
  border-right: 1px solid var(--border-soft);
}

.quote-index {
  color: var(--text-soft);
  font-size: 10px;
  letter-spacing: 0.16em;
}

blockquote {
  margin: 0;
  color: var(--accent-warm);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(42px, 4.5vw, 72px);
  font-style: italic;
  line-height: 1.02;
}

.research-list {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  padding: 30px clamp(30px, 5vw, 68px);
  list-style: none;
}

.research-list li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text-secondary);
  font-size: 15px;
}

.research-list li:last-child { border-bottom: 0; }

.research-list span {
  color: var(--accent);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 24px;
  font-style: italic;
}

.prototype-contact {
  display: grid;
  min-height: 75svh;
  place-items: center;
  text-align: center;
  background:
    radial-gradient(circle at 50% 48%, rgba(182, 160, 216, 0.14), transparent 28%),
    var(--background);
}

.prototype-contact > div {
  max-width: 850px;
}

.prototype-contact .eyebrow {
  margin-bottom: 32px;
}

.prototype-contact p {
  max-width: 640px;
  margin: 30px auto 36px;
  color: var(--text-secondary);
  font-size: 17px;
}

.reveal {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity 900ms cubic-bezier(.2,.7,.2,1), transform 900ms cubic-bezier(.2,.7,.2,1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (max-width: 980px) {
  .site-header { grid-template-columns: 1fr auto; }
  .header-nav { display: none; }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 150px;
  }
  .portrait-wrap {
    justify-self: start;
    width: min(82vw, 460px);
  }
  .scroll-cue { display: none; }
  .section-heading,
  .research-intro {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .system-card { min-height: 310px; }
  .research-panel { grid-template-columns: 1fr; }
  .research-quote {
    min-height: 420px;
    border-right: 0;
    border-bottom: 1px solid var(--border-soft);
  }
}

@media (max-width: 680px) {
  :root { --radius: 22px; }
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    top: 12px;
    min-height: 64px;
    padding: 0 10px 0 18px;
    border-radius: 20px;
  }
  .brand { min-width: 0; }
  .brand-name {
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .brand-role { display: none; }
  .header-cta { padding: 11px 14px; font-size: 10px; }
  .cta-full { display: none; }
  .cta-short { display: inline; }
  .hero {
    min-width: 0;
    min-height: auto;
    padding-top: 124px;
    padding-bottom: 88px;
  }
  .hero-copy,
  .section-heading,
  .research-intro { width: 100%; min-width: 0; }
  .eyebrow {
    align-items: flex-start;
    font-size: 10px;
    letter-spacing: 0.075em;
    white-space: normal;
  }
  h1 { font-size: clamp(42px, 13vw, 58px); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .button { width: 100%; text-align: center; }
  .hero-proof { flex-direction: column; }
  .portrait-wrap { width: 100%; }
  .system-section,
  .research-section,
  .prototype-contact { padding-top: 104px; padding-bottom: 104px; }
  .system-grid { grid-template-columns: 1fr; }
  .system-card { min-height: 280px; padding: 26px; }
  .system-card h3 { margin-top: 58px; }
  .card-meta { right: 22px; top: 22px; }
  .system-foundation { align-items: flex-start; flex-direction: column; }
  .research-quote { min-height: 350px; padding: 30px; }
  .research-list { padding: 20px 28px; }
  .research-list li { grid-template-columns: 38px 1fr; padding: 20px 0; }
}

@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; }
}

@media print {
  .skip-link { display: none; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .site-header { position: absolute; }
  .hero-atmosphere::before { animation: none; }
}
