:root {
  --bg: #0b0b0b;
  --bg-soft: #101010;
  --surface: #151515;
  --surface-2: #1b1b1b;
  --text: #f2f2ee;
  --text-soft: #aaa9a2;
  --text-muted: #6f6f6b;
  --accent: #c7d8b7;
  --accent-2: #e0ebd4;
  --border: rgba(255,255,255,.11);
  --border-strong: rgba(255,255,255,.22);
  --header-bg: rgba(11,11,11,.78);
  --shadow: rgba(0,0,0,.32);

  --font-display: Georgia, "Times New Roman", serif;
  --font-body: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --radius: 20px;
  --container: 1240px;
}

html[data-theme="light"] {
  --bg: #f1eee7;
  --bg-soft: #e9e5dc;
  --surface: #e3dfd5;
  --surface-2: #d9d4c9;
  --text: #181816;
  --text-soft: #5d5c56;
  --text-muted: #77756e;
  --accent: #48654d;
  --accent-2: #2f4d36;
  --border: rgba(24,24,22,.12);
  --border-strong: rgba(24,24,22,.24);
  --header-bg: rgba(241,238,231,.82);
  --shadow: rgba(35,29,20,.12);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color .5s ease, color .5s ease;
}

body.locked { overflow: hidden; }
body.menu-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }

::selection {
  background: var(--accent);
  color: var(--bg);
}

/* STARTUP SCREEN */
.startup-screen {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  background: #000;
  color: #f3f3ef;
  opacity: 1;
  visibility: visible;
  transition: opacity .75s ease, visibility .75s ease;
}

.startup-screen.exit {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.startup-glow {
  position: absolute;
  width: min(70vw, 850px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(199,216,183,.07), transparent 64%);
  filter: blur(8px);
  pointer-events: none;
}

.startup-content {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, 1200px);
  min-height: 100svh;
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.startup-top,
.startup-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: #777;
  font: .58rem/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .14em;
}

.startup-brand { color: #eee; }
.startup-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.startup-monogram {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  margin-bottom: 2rem;
  font: 400 1.6rem/1 var(--font-display);
}

.startup-eyebrow {
  margin: 0 0 .8rem;
  color: #7e7e7a;
  font: .62rem/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .18em;
}

.startup-center h1 {
  margin: 0;
  font: 400 clamp(4rem, 12vw, 9rem)/.82 var(--font-display);
  letter-spacing: -.07em;
}

.startup-date {
  margin: 1.5rem 0 2.5rem;
  color: #858580;
  font: .62rem/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .13em;
}

.continue-button {
  min-width: 190px;
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  background: rgba(255,255,255,.035);
  color: #fff;
  font: .66rem/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .12em;
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}

.continue-button:hover {
  background: rgba(255,255,255,.09);
  border-color: rgba(255,255,255,.45);
  transform: translateY(-2px);
}

.continue-arrow { color: #a8a8a3; }
.loading-wrap {
  width: min(360px, 80vw);
  margin-top: 2rem;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
.loading-wrap.active {
  opacity: 1;
  transform: translateY(0);
}
.loading-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: .6rem;
  color: #777;
  font: .55rem/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .12em;
}
.loading-track {
  height: 2px;
  overflow: hidden;
  background: #252525;
}
.loading-bar {
  width: 0%;
  height: 100%;
  background: #eee;
  transition: width .08s linear;
}

/* ACCESSIBILITY */
.skip-link {
  position: fixed;
  z-index: 100;
  top: 1rem;
  left: 1rem;
  padding: .75rem 1rem;
  background: var(--text);
  color: var(--bg);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

/* HEADER */
.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 1.1rem clamp(1.1rem, 4vw, 3.5rem);
  border-bottom: 1px solid transparent;
  background: transparent;
  transition: background .35s ease, border-color .35s ease, backdrop-filter .35s ease;
}
.site-header.scrolled {
  background: var(--header-bg);
  border-color: var(--border);
  backdrop-filter: blur(18px);
}
.brand {
  justify-self: start;
  font: 700 .82rem/1 var(--font-mono);
  letter-spacing: .18em;
}
.brand span, .accent-dot { color: var(--accent); }

.desktop-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-link {
  position: relative;
  padding: .35rem 0;
  color: var(--text-soft);
  font: .68rem/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .14em;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .26s ease;
}
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link.active::after, .nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: .8rem;
}
.theme-toggle, .menu-toggle, .menu-close {
  border: 0;
  background: transparent;
  color: var(--text-soft);
}
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .4rem;
  font: .62rem/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .12em;
}
.theme-icon {
  position: relative;
  width: 17px;
  height: 17px;
  display: block;
  border: 1px solid currentColor;
  border-radius: 50%;
}
.theme-icon::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  top: -2px;
  right: -2px;
  background: var(--bg);
  border-radius: 50%;
}
.theme-toggle:hover { color: var(--text); }

.menu-toggle {
  display: none;
  width: 38px;
  height: 34px;
  padding: 8px 0;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  margin: 5px 0 5px auto;
  background: currentColor;
  transition: width .25s ease;
}
.menu-toggle:hover span:first-child { width: 18px; }

.mobile-menu {
  position: fixed;
  z-index: 45;
  inset: 0;
  background: var(--bg);
  transform: translateY(-102%);
  transition: transform .5s cubic-bezier(.77,0,.18,1);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu-inner {
  min-height: 100%;
  padding: 6.5rem 1.25rem 2rem;
  display: flex;
  flex-direction: column;
}
.mobile-menu-top {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  font: .65rem/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .12em;
}
.menu-close {
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: .12em;
  font: inherit;
}
.mobile-menu nav {
  margin: auto 0;
  display: grid;
}
.mobile-menu nav a {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  padding: .75rem 0;
  border-bottom: 1px solid var(--border);
  font: clamp(2.5rem, 11vw, 5rem)/1 var(--font-display);
}
.mobile-menu nav a span { transition: transform .25s ease; }
.mobile-menu nav a:hover span { transform: translateX(8px); }

/* HERO */
.section { width: 100%; position: relative; }

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 8rem clamp(1.1rem, 5vw, 4rem) 4rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 24%, rgba(91,115,92,.13), transparent 28rem),
    radial-gradient(circle at 10% 85%, rgba(150,119,85,.08), transparent 25rem),
    var(--bg);
}
.hero-grid {
  position: absolute;
  inset: 0;
  opacity: .27;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 90px 90px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}
.hero-orbit {
  position: absolute;
  width: min(58vw, 720px);
  aspect-ratio: 1;
  right: -18%;
  top: 15%;
  border: 1px solid var(--border);
  border-radius: 50%;
}
.hero-orbit::before {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px solid var(--border);
  border-radius: 50%;
}
.hero-orbit::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  top: 14%;
  left: 18%;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(199,216,183,.08);
}
.hero-content {
  width: min(var(--container), 100%);
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 4rem;
  align-items: end;
}
.eyebrow, .section-label, .section-number, .hero-meta, .card-label {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .12em;
}
.eyebrow {
  margin: 0 0 2rem;
  color: var(--text-muted);
  font-size: .65rem;
}
.hero-title {
  margin: 0;
  max-width: 1000px;
  font: 400 clamp(4.4rem, 14vw, 12rem)/.78 var(--font-display);
  letter-spacing: -.075em;
}
.hero-title > span:first-child { display: block; }
.hero-title-light {
  display: block;
  margin-left: clamp(1.5rem, 10vw, 9rem);
  margin-top: .35rem;
  color: var(--text-soft);
  font-size: .46em;
  line-height: .9;
  font-style: normal;
}
.hero-title-light em { font-style: italic; }
.hero-intro {
  max-width: 480px;
  margin: 3rem 0 0;
  color: var(--text-soft);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
}
.primary-button {
  display: inline-flex;
  align-items: center;
  gap: 2.5rem;
  padding: .95rem 1.15rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font: .63rem/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .1em;
  transition: transform .25s ease, background .25s ease;
}
.primary-button:hover { transform: translateY(-2px); }
.text-button {
  color: var(--text-soft);
  font: .64rem/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .1em;
}
.text-button:hover { color: var(--text); }
.hero-side {
  align-self: end;
  padding-bottom: 1rem;
  color: var(--text-muted);
  font: .62rem/1.5 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .11em;
}
.hero-side .side-line {
  width: 45px;
  height: 1px;
  margin-bottom: 1.2rem;
  background: var(--accent);
}
.hero-side p { margin: 0 0 .45rem; }
.hero-side strong {
  display: block;
  color: var(--text);
  font-weight: 500;
}
.hero-side span { display: block; margin-top: .25rem; }

.hero-meta {
  position: absolute;
  bottom: 2rem;
  left: clamp(1.1rem, 5vw, 4rem);
  right: clamp(1.1rem, 5vw, 4rem);
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: .57rem;
}

/* SECTIONS */
.content-section {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(7rem, 13vw, 12rem) clamp(1.1rem, 4vw, 2rem);
}
.section-heading {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: clamp(4rem, 9vw, 8rem);
}
.section-number { color: var(--accent); font-size: .62rem; }
.section-label { color: var(--text-muted); font-size: .62rem; }

.about-layout, .contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr);
  gap: clamp(3rem, 10vw, 10rem);
  align-items: start;
}
.display-heading {
  margin: 0;
  font: 400 clamp(3rem, 7.2vw, 7rem)/.91 var(--font-display);
  letter-spacing: -.055em;
}
.display-heading em { color: var(--text-soft); font-style: italic; }
.about-copy { padding-top: .8rem; }
.about-copy p { max-width: 570px; color: var(--text-soft); }
.about-copy .lead {
  color: var(--text);
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  line-height: 1.4;
}
.facts {
  margin: 3.5rem 0 0;
  border-top: 1px solid var(--border);
}
.facts div {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.facts dt {
  color: var(--text-muted);
  font: .6rem/1.3 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .12em;
}
.facts dd { margin: 0; color: var(--text-soft); }
.facts a:hover { color: var(--text); }

.contact-section { border-top: 1px solid var(--border); }
.contact-cards { display: grid; gap: .75rem; }
.contact-card {
  position: relative;
  display: grid;
  grid-template-columns: 110px 1fr auto;
  align-items: center;
  gap: 1rem;
  min-height: 105px;
  padding: 1.35rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--surface), transparent);
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.contact-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  background: var(--surface-2);
}
.card-label {
  color: var(--text-muted);
  font-size: .57rem;
}
.contact-card strong {
  font: 400 clamp(1rem, 2vw, 1.35rem)/1.2 var(--font-display);
}
.card-arrow { color: var(--accent); }

.site-footer {
  padding: 2rem clamp(1.1rem, 4vw, 3.5rem);
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
}
.footer-inner p, .footer-links {
  margin: 0;
  color: var(--text-muted);
  font: .57rem/1.5 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .1em;
}
.footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-links a:hover { color: var(--text); }

/* REVEALS */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .75s ease, transform .75s cubic-bezier(.22,1,.36,1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* CURSOR */
.cursor-dot, .cursor-ring {
  position: fixed;
  z-index: 200;
  top: 0;
  left: 0;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%);
}
.cursor-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text);
}
.cursor-ring {
  width: 34px;
  height: 34px;
  border: 1px solid var(--text-muted);
  border-radius: 50%;
  transition: width .2s ease, height .2s ease, border-color .2s ease;
}
body.cursor-ready .cursor-dot,
body.cursor-ready .cursor-ring { opacity: 1; }
body.cursor-hover .cursor-ring {
  width: 48px;
  height: 48px;
  border-color: var(--accent);
}

/* MOBILE */
@media (max-width: 820px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }
  .desktop-nav { display: none; }
  .menu-toggle { display: block; }

  .hero {
    padding-top: 7rem;
  }
  .hero-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-side {
    padding-bottom: 3rem;
  }
  .hero-meta span:nth-child(2) { display: none; }

  .about-layout, .contact-layout {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  .section-heading {
    margin-bottom: 4rem;
  }
  .contact-card {
    grid-template-columns: 85px 1fr auto;
  }
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .startup-content {
    width: min(100% - 2rem, 1200px);
  }
  .startup-top, .startup-bottom {
    font-size: .5rem;
  }
  .startup-status { display: none; }
  .startup-monogram {
    width: 58px;
    height: 58px;
    margin-bottom: 1.5rem;
  }

  .theme-toggle .theme-label { display: none; }
  .hero-title {
    font-size: clamp(4rem, 20vw, 7rem);
  }
  .hero-title-light {
    margin-left: 1.2rem;
  }
  .hero-meta {
    bottom: 1.1rem;
  }
  .hero-meta span:last-child { display: none; }

  .facts div {
    grid-template-columns: 6.5rem 1fr;
  }
  .contact-card {
    grid-template-columns: 1fr auto;
  }
  .contact-card .card-label {
    grid-column: 1 / -1;
    margin-bottom: -.35rem;
  }
  .contact-card strong {
    grid-column: 1;
  }
  .card-arrow {
    grid-column: 2;
    grid-row: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
