@view-transition {
  navigation: auto;
}

:root {
  --bg: #08080a;
  --surface: #0e0e12;
  --surface-hover: #16161d;
  --border: rgb(255 255 255 / 6%);
  --border-hover: rgb(255 255 255 / 12%);
  --owl-gold: #ffd700;
  --gold: #ffd700;
  --gold-mid: #ffec80;
  --gold-dim: rgb(255 215 0 / 15%);
  --gold-glow: rgb(255 215 0 / 8%);
  --gold-rgb: 255, 215, 0;
  --text: #e8e8ed;
  --text-dim: rgb(255 255 255 / 80%);
  --text-muted: rgb(255 255 255 / 50%);
  --heading: #fff;
  --link-hover: #fff;
  --nav-bg: rgb(8 8 10 / 75%);
  --mobile-nav-bg: rgb(8 8 10 / 95%);
  --tree-rgb: 255, 255, 255;

  /* Typography scale — fluid, centralized, no px litter */
  --fs-tiny: clamp(11px, 0.3vw + 10px, 13px);
  --fs-xs: clamp(12px, 0.4vw + 10.5px, 14px);
  --fs-sm: clamp(13px, 0.5vw + 11px, 15px);
  --fs-base: clamp(15px, 0.6vw + 12.8px, 18px);
  --fs-lead: clamp(16px, 0.7vw + 13.5px, 20px);
  --fs-h3: clamp(17px, 0.8vw + 14px, 22px);
  --fs-h2: clamp(28px, 3.5vw, 44px);
  --fs-h1: clamp(34px, 5.5vw, 64px);
  --fs-tag: clamp(12px, 0.5vw + 10px, 14px);
  --fs-label: clamp(11px, 0.4vw + 9.5px, 13px);
  --font-sans:
    system-ui, -apple-system, "Segoe UI", roboto, "Helvetica Neue", arial,
    sans-serif;
  --font-body:
    rockwell, "Rockwell Nova", "Roboto Slab", "DejaVu Serif", "Sitka Small",
    serif;
  --font-serif: georgia, "Times New Roman", serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

::selection {
  background: #ffd700;
  color: #000;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ─── NAV ─── */
nav {
  font-family: var(--font-sans);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 48px;
  background: var(--nav-bg);
  backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}

nav .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: 2.5px;
  color: var(--heading);
  text-transform: uppercase;
}

nav .logo a {
  color: inherit;
  text-decoration: none;
}

nav .logo span {
  color: var(--gold);
}

nav .nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo-owl {
  width: 26px;
  height: 26px;
  display: block;
  opacity: 0.6;
  filter: sepia(1) saturate(10) hue-rotate(5deg) brightness(1.5);
  transition: opacity 0.3s;
}

.logo-owl:hover {
  opacity: 1;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: var(--text-dim);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: color 0.25s;
  position: relative;
}

nav ul a {
  font-family: var(--font-body);
}

nav a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.3s;
}

nav a:hover {
  color: var(--link-hover);
}

nav a:hover::after {
  transform: scaleX(1);
}

/* ─── NOISE OVERLAY ─── */
.noise {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.025;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ─── OWL WRAP ─── */
.owl-wrap {
  position: relative;
  width: min(75vw, 460px);
  aspect-ratio: 1;
  will-change: transform;
}

.owl-wrap svg.owl {
  width: 100%;
  height: 100%;
  display: block;
  color: var(--owl-gold);
}

.owl-wrap .eye {
  position: absolute;
  border-radius: 50%;
  overflow: hidden;
}

.owl-wrap .pupil {
  position: absolute;
  border-radius: 50%;
  background: #1a1a1e;
  width: 30%;
  height: 30%;
  top: 50%;
  left: 50%;
}

#hero-eye-l {
  width: 18%;
  aspect-ratio: 1;
  top: 43.7%;
  left: 24.8%;
}

#hero-eye-r {
  width: 18%;
  aspect-ratio: 1;
  top: 43.7%;
  left: 56.5%;
}

#hero-pupil-l,
#hero-pupil-r {
  transform: translate(-50%, -50%);
}

.hero-text {
  text-align: center;
  margin-top: 16px;
  position: relative;
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 140px 24px 100px;
  position: relative;
  z-index: 2;
}

#tree-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
  transform: scale(1.5) translateY(0.4%);
  transform-origin: left center;
  image-rendering: crisp-edges;
}

.hero h1 {
  font-family: var(--font-sans);
  font-size: var(--fs-h1);
  font-weight: 400;
  color: var(--heading);
  text-align: center;
  letter-spacing: -1px;
  line-height: 1.15;
  will-change: transform;
}

.hero h1 strong {
  font-weight: 900;
  display: block;
}

.hero h1 .gold {
  background: linear-gradient(
    135deg,
    var(--gold) 0%,
    var(--gold-mid) 50%,
    var(--gold) 100%
  );
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  max-width: 560px;
  margin: 24px auto 0;
  color: var(--text-dim);
  line-height: 1.7;
  font-weight: 400;
}

.hero .tagline {
  margin-top: 28px;
  font-size: var(--fs-tag);
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 400;
}

.hero .scroll {
  margin-top: 48px;
  color: var(--text-muted);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(6px);
  }
}

/* ─── SECTIONS ─── */
section {
  padding: 120px 24px;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-sans);
  font-size: var(--fs-label);
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  font-weight: 600;
}

.section-label-light {
  color: var(--gold);
  opacity: 0.7;
}

.section-desc {
  color: var(--text-dim);
  margin-bottom: 40px;
  line-height: 1.7;
  font-weight: 300;
  text-align: center;
}

#publications .section-desc {
  text-align: left;
}

h2 {
  font-family: var(--font-sans);
  font-size: var(--fs-h2);
  font-weight: 900;
  letter-spacing: -0.3px;
  line-height: 1.15;
  margin-bottom: 48px;
  color: var(--heading);
}

h2 em {
  font-style: normal;
}

/* ─── REVEAL ANIMATIONS ─── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

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

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

.reveal-delay-5 {
  transition-delay: 1.5s;
}

/* ─── SKILLS ─── */
#skills {
  background: var(--bg);
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border-radius: 16px;
  overflow: hidden;
}

@media (width <= 640px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }
}

.skill-card {
  background: var(--surface);
  padding: 40px 32px;
  position: relative;
  transition: background 0.3s;
}

.skill-card:hover {
  background: var(--surface-hover);
}

.skill-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(180deg, var(--gold-dim), transparent 60%);
  transition: opacity 0.4s;
}

.skill-card:hover::before {
  opacity: 1;
}

.skill-card h3 {
  font-family: var(--font-sans);
  font-weight: 900;
  margin-bottom: 10px;
  position: relative;
  letter-spacing: 0.2px;
}

.skill-card h3 span {
  color: var(--gold);
  margin-right: 8px;
}

.skill-card p {
  color: var(--text-dim);
  line-height: 1.7;
  position: relative;
}

/* ─── DIVIDER ─── */
.divider {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 48px;
  opacity: 0.4;
}

/* ─── METHODS ─── */
.methods {
  background: var(--bg);
  position: relative;
}

.methods::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.methods h2 {
  color: var(--heading);
}

.methods-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

@media (width <= 700px) {
  .methods-list {
    grid-template-columns: 1fr;
  }
}

.method-item {
  padding: 28px 24px;
  border-left: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition:
    background 0.3s,
    border-color 0.3s;
}

.method-item:nth-child(odd) {
  border-left-color: transparent;
}

@media (width <= 700px) {
  .method-item:nth-child(odd) {
    border-left-color: var(--border);
  }
}

.method-item:hover {
  background: var(--surface);
  border-left-color: var(--gold);
}

.method-item strong {
  display: block;
  color: var(--heading);
  margin-bottom: 6px;
  font-weight: 600;
}

.method-item p {
  color: var(--text-dim);
  line-height: 1.65;
  font-weight: 300;
}

/* ─── FULL-WIDTH IMAGE ─── */
.full-image {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  position: relative;
  height: 40vh;
}

.full-image img {
  width: 100%;
  height: 150%;
  display: block;
  object-fit: cover;
  position: relative;
  top: -25%;
}

/* ─── RESULTS ─── */
#results {
  background: var(--bg);
  position: relative;
}

#results::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.result-item {
  display: grid;
  grid-template-columns: 120px 200px 1fr;
  gap: 16px 28px;
  align-items: start;
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
  border-radius: 8px;
  padding: 28px 20px;
  margin: 0 -20px;
}

.result-item:last-child {
  border-bottom: none;
}

.result-item:hover {
  background: var(--surface);
}

.result-logo {
  width: 96px;
  height: 96px;
  align-self: start;
  object-fit: contain;
  opacity: 0.9;
  filter: brightness(0.5);
}

.result-item .role {
  font-weight: 500;
  color: var(--text-dim);
}

.result-item .role h4 {
  font-family: var(--font-sans);
  font-weight: 900;
  color: var(--text);
}

.result-item h3 {
  font-family: var(--font-sans);
  font-weight: 900;
}

.result-item h3 span {
  color: var(--gold);
}

.result-item p {
  color: var(--text-dim);
  margin-top: 4px;
  line-height: 1.65;
  font-weight: 300;
}

.result-sub {
  color: var(--text-muted);
  margin-bottom: 32px;
}

@media (width <= 700px) {
  .result-item {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 24px 16px;
    margin: 0 -16px;
  }

  .result-logo {
    display: none;
  }
}

/* ─── FOUNDER ─── */
.founder {
  background: var(--bg);
  position: relative;
}

.founder::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.founder-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

@media (width <= 800px) {
  .founder-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.founder-text {
  color: var(--text-dim);
  line-height: 1.8;
  font-weight: 300;
}

.founder-text p + p {
  margin-top: 18px;
}

.founder-quote {
  background: var(--surface);
  padding: 36px 32px;
  border-radius: 12px;
  line-height: 1.8;
  color: var(--text);
  position: relative;
  border: 1px solid var(--border);
  z-index: 2;
}

.founder-quote::before {
  content: '"';
  font-size: 56px;
  color: var(--gold);
  position: absolute;
  top: 10px;
  left: 20px;
  font-family: var(--font-serif);
  line-height: 1;
  opacity: 0.5;
}

.founder-quote p {
  padding-top: 24px;
}

.founder-quote p em {
  font-style: normal;
}

.founder-quote cite {
  display: block;
  margin-top: 16px;
  font-style: normal;
  font-weight: 500;
  color: var(--gold);
}

.founder-visual {
  position: relative;
  display: inline-block;
  margin-top: 40px;
  max-width: 100%;
}

.founder-visual.reveal,
.founder-visual.reveal.visible {
  opacity: 1;
  transform: none;
  transition: none;
}

.founder-pic {
  display: block;
  border: 1px solid var(--border);
  max-width: 100%;
  height: auto;
  opacity: 0;
  transition: opacity 12s ease;
}

.founder-noise {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 48px 48px;
  opacity: 1;
  pointer-events: none;
  transition: opacity 5s ease 5s;
  animation: static-shift 0.12s steps(2) infinite;
}

@keyframes static-shift {
  0% {
    background-position: 0 0;
    background-size: 48px 48px;
  }

  25% {
    background-position: -5px 7px;
    background-size: 50px 50px;
  }

  50% {
    background-position: 6px -4px;
    background-size: 44px 44px;
  }

  75% {
    background-position: -3px -6px;
    background-size: 52px 52px;
  }

  100% {
    background-position: 0 0;
    background-size: 48px 48px;
  }
}

.founder-visual.visible .founder-pic {
  opacity: 1;
}

.founder-visual.visible .founder-noise {
  opacity: 0;
}

/* ─── PUBLICATIONS ─── */
#publications {
  background: var(--bg);
}

.pub-list {
  display: grid;
  gap: 0;
}

.pub-item {
  color: var(--text-dim);
  line-height: 1.65;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  font-weight: 300;
}

.pub-item:last-child {
  border-bottom: none;
}

.pub-item em {
  font-style: italic;
  color: var(--text-muted);
}

.pub-item strong {
  font-weight: 500;
  color: var(--text);
}

/* ─── GROUNDING TRUTHS / CONTACT ─── */
#grounding {
  background: var(--bg);
}

#grounding .section-inner {
  max-width: 900px;
}

/* ─── PARTNERS ─── */
#partners {
  text-align: center;
  position: relative;
  z-index: 2;
}

.partner-grid {
  display: flex;
  gap: 48px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.partner-link {
  font-family: var(--font-sans);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 20px 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 1px;
  transition: all 0.3s;
  background: #fff;
}

.partner-link:hover {
  border-color: var(--gold);
  color: var(--link-hover);
  background: var(--surface);
}

.partner-logo {
  width: 160px;
  height: 64px;
  object-fit: contain;
}

/* ─── CONTACT ─── */
.contact {
  position: relative;
  z-index: 3;
}

.contact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.contact h2 {
  color: var(--heading);
}

.contact p {
  color: var(--text-dim);
  max-width: 480px;
  font-weight: 300;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-copy {
  text-align: left;
}

.contact-form {
  display: grid;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
}

.form-field {
  display: grid;
  gap: 8px;
  text-align: left;
}

.form-field label {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-dim);
}

.form-field input,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--heading);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  width: 100%;
  box-sizing: border-box;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgb(var(--gold-rgb), 0.15);
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form .contact-btn {
  width: fit-content;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.contact-btn {
  font-family: var(--font-sans);
  display: inline-block;
  padding: 16px 48px;
  background: var(--gold);
  color: #000;
  text-decoration: none;
  font-weight: 800;
  border-radius: 8px;
  transition: all 0.3s;
  letter-spacing: 0.3px;
}

.contact-btn:hover {
  transform: translateY(-1px);
}

@media (width <= 800px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-copy {
    text-align: center;
  }

  .contact-copy p {
    margin: 0 auto;
  }
}

/* ─── FOOTER ─── */
footer {
  padding: 40px 24px;
  text-align: center;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  letter-spacing: 0.3px;
}

footer strong {
  color: var(--text-dim);
  font-weight: 500;
}

footer .footer-tagline {
  margin-top: 4px;
}

footer .footer-copy {
  margin-top: 20px;
}

.footer-owl {
  width: 40px;
  height: 40px;
  display: block;
  margin: 0 auto 16px;
  opacity: 0.6;
  filter: sepia(1) saturate(10) hue-rotate(5deg) brightness(1.5);
  transition: opacity 0.3s;
}

.footer-owl:hover {
  opacity: 1;
}

/* ─── HAMBURGER ─── */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--heading);
  padding: 0 0 2px;
  line-height: 1;
}

/* ─── MOBILE ─── */
@media (width <= 600px) {
  nav {
    padding: 14px 20px;
  }

  .hamburger {
    display: block;
  }

  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--mobile-nav-bg);
    backdrop-filter: blur(20px);
    padding: 20px 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
  }

  nav ul.open {
    display: flex;
  }

  section {
    padding: 80px 20px;
  }

  .founder-quote {
    padding: 28px 20px;
  }

  .founder-visual {
    margin-top: 32px;
  }
}
