:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-soft: #f7f8f5;
  --ink: #050606;
  --muted: #5f6762;
  --line: #dfe5df;
  --line-strong: #0a0d0b;
  --card: rgba(255, 255, 255, 0.86);
  --nav-bg: rgba(255, 255, 255, 0.88);
  --hero-card-bg: rgba(255, 255, 255, 0.9);
  --sketch-line: rgba(5, 6, 6, 0.16);
  --sketch-line-soft: rgba(5, 6, 6, 0.1);
  --accent: #0b6f5f;
  --accent-soft: #dfeee9;
  --shadow: 0 24px 80px rgba(10, 15, 12, 0.08);
  --font-main: Arial, Helvetica, sans-serif;
  --font-mono: "Courier New", Courier, monospace;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000000;
  --bg-soft: #080a09;
  --ink: #f7f7f2;
  --muted: #a8b0aa;
  --line: #242a26;
  --line-strong: #f7f7f2;
  --card: rgba(8, 10, 9, 0.88);
  --nav-bg: rgba(0, 0, 0, 0.88);
  --hero-card-bg: rgba(8, 10, 9, 0.92);
  --sketch-line: rgba(247, 247, 242, 0.32);
  --sketch-line-soft: rgba(247, 247, 242, 0.18);
  --accent: #83d8c0;
  --accent-soft: rgba(131, 216, 192, 0.12);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
}

@property --aura-r {
  syntax: "<number>";
  inherits: false;
  initial-value: 11;
}

@property --aura-g {
  syntax: "<number>";
  inherits: false;
  initial-value: 111;
}

@property --aura-b {
  syntax: "<number>";
  inherits: false;
  initial-value: 95;
}

@property --aura-a {
  syntax: "<number>";
  inherits: false;
  initial-value: 0.18;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--bg), var(--bg-soft));
  color: var(--ink);
  font-family: var(--font-main);
}

body::before {
  content: "";
  position: fixed;
  inset: -20vh -12vw auto auto;
  z-index: 0;
  width: min(58vw, 760px);
  height: min(58vw, 760px);
  pointer-events: none;
  background: radial-gradient(circle, rgba(var(--aura-r), var(--aura-g), var(--aura-b), var(--aura-a)), transparent 66%);
  opacity: 0.92;
  animation: aura-cycle 28s ease-in-out infinite;
}

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

@keyframes aura-cycle {
  0% {
    --aura-r: 11;
    --aura-g: 111;
    --aura-b: 95;
    --aura-a: 0.18;
  }
  25% {
    --aura-r: 38;
    --aura-g: 102;
    --aura-b: 170;
    --aura-a: 0.16;
  }
  50% {
    --aura-r: 119;
    --aura-g: 28;
    --aura-b: 34;
    --aura-a: 0.13;
  }
  75% {
    --aura-r: 0;
    --aura-g: 0;
    --aura-b: 0;
    --aura-a: 0.12;
  }
  100% {
    --aura-r: 11;
    --aura-g: 111;
    --aura-b: 95;
    --aura-a: 0.18;
  }
}

.site-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
}

.topbar {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 24px;
  min-height: 82px;
  border-bottom: 1px solid var(--line);
  background: var(--nav-bg);
  backdrop-filter: blur(18px);
}

.topbar::before {
  content: "";
  position: absolute;
  top: 0;
  right: 50%;
  bottom: -1px;
  left: 50%;
  z-index: -1;
  width: 100vw;
  margin-left: -50vw;
  border-bottom: 1px solid var(--line);
  background: var(--nav-bg);
  backdrop-filter: blur(18px);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
}

.brand-symbol-wrap {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #ffffff;
}

.brand-symbol {
  width: 25px;
  height: 25px;
  color: #050606;
}

.brand-word {
  font-size: 20px;
  font-weight: 780;
  letter-spacing: -0.04em;
}

.topnav {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
}

.topnav a:hover {
  color: var(--ink);
}

.theme-toggle {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  cursor: pointer;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 48px;
  align-items: center;
  min-height: calc(100vh - 82px);
  padding: 74px 0;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(64px, 10vw, 142px);
  line-height: 0.86;
  letter-spacing: -0.085em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 0.92;
  letter-spacing: -0.065em;
}

h3 {
  margin-bottom: 12px;
  font-size: 20px;
  letter-spacing: -0.035em;
}

.hero-lead {
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.42;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.button-primary {
  background: var(--ink);
  color: var(--bg);
}

.button-secondary {
  background: transparent;
  color: var(--ink);
}

.hero-card {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: linear-gradient(180deg, var(--hero-card-bg), var(--card)), var(--bg);
  box-shadow: var(--shadow);
  transform: translate3d(0, var(--hero-card-y, 0px), 0);
  will-change: transform;
}

.hero-card::before,
.hero-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero-card::before {
  inset: 42px;
  border: 1px solid var(--sketch-line);
  border-radius: 24px;
  transform: translate3d(0, var(--hero-sketch-y-soft, 0px), 0);
}

.hero-card::after {
  right: -110px;
  bottom: -120px;
  width: 340px;
  height: 340px;
  border: 1px solid var(--sketch-line);
  border-radius: 50%;
  transform: translate3d(0, var(--hero-sketch-y, 0px), 0);
}

.card-grid {
  position: absolute;
  inset: 30px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 14px;
  opacity: 1;
  transform: translate3d(0, var(--hero-sketch-y, 0px), 0);
  will-change: transform;
}

.card-grid span {
  border: 1px solid var(--sketch-line-soft);
  border-radius: 18px;
}

.hero-symbol {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(52%, 300px);
  transform: translate3d(-50%, calc(-50% + var(--hero-logo-y, 0px)), 0) scale(var(--hero-logo-scale, 1));
  padding: clamp(18px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #ffffff;
  color: #050606;
  opacity: 0.95;
  will-change: transform;
}

.hero-card-footer {
  position: absolute;
  right: 30px;
  bottom: 28px;
  left: 30px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.slogan-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--line);
}

.slogan-strip p {
  min-height: 132px;
  margin: 0;
  padding: 28px;
  background: var(--card);
  color: var(--ink);
  font-size: 23px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.section {
  padding: 118px 0;
  border-bottom: 1px solid var(--line);
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
}

.principles-grid {
  display: grid;
  gap: 14px;
}

.principles-grid article,
.system-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  padding: 26px;
}

.principles-grid p,
.system-card p,
.name-note p,
.contact-panel p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.index {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.systems h2 {
  max-width: 760px;
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 38px;
}

.name-note {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 48px;
  align-items: end;
}

.contact-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
  margin: 92px 0 42px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--card);
  padding: 34px;
}

.contact-panel h2 {
  max-width: 720px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0 44px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .topbar,
  .hero,
  .split,
  .name-note,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .topnav {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-card {
    min-height: 430px;
  }

  .slogan-strip,
  .system-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 84px 0;
  }
}

@media (max-width: 720px) {
  .topbar {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 0;
    min-height: 82px;
    padding: 14px 0 12px;
    background: transparent;
    backdrop-filter: none;
  }

  .topbar::before {
    display: none;
  }

  .brand-lockup {
    justify-content: center;
    gap: 14px;
  }

  .brand-symbol-wrap {
    width: 46px;
    height: 46px;
  }

  .brand-symbol {
    width: 30px;
    height: 30px;
  }

  .brand-word {
    font-size: 24px;
  }

  .theme-toggle {
    display: none;
  }
}

@media (max-width: 560px) {
  .site-shell {
    width: min(100vw - 22px, 1180px);
  }

  .topbar {
    min-height: 78px;
  }

  .brand-word {
    font-size: 22px;
  }

  h1 {
    font-size: clamp(54px, 18vw, 76px);
  }

  .hero {
    padding: 46px 0;
  }

  .hero-actions,
  .footer {
    display: grid;
  }

  .contact-panel {
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  body::before {
    animation: none;
  }

  .hero-card,
  .hero-card::before,
  .hero-card::after,
  .card-grid,
  .hero-symbol {
    transform: none;
    will-change: auto;
  }

  .hero-symbol {
    transform: translate(-50%, -50%);
  }
}
