:root {
  --midnight: #051e38;
  --deep-blue: #0f3052;
  --blue: #25477c;
  --mist-blue: #3c6492;
  --gold: #efb252;
  --gold-deep: #aa7220;
  --gold-shadow: #885b16;
  --ivory: #ffdfa0;
  --soft-white: #fff7e8;
  --ink: #081521;
  --panel: rgba(5, 30, 56, 0.72);
  --line: rgba(255, 223, 160, 0.26);
  --glow: 0 0 38px rgba(239, 178, 82, 0.36);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--soft-white);
  background:
    radial-gradient(circle at 50% 12%, rgba(60, 100, 146, 0.32), transparent 34rem),
    radial-gradient(circle at 18% 28%, rgba(239, 178, 82, 0.16), transparent 24rem),
    linear-gradient(180deg, #020916 0%, var(--midnight) 44%, #020916 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255, 247, 232, 0.78) 0 1px, transparent 1.4px),
    radial-gradient(circle, rgba(239, 178, 82, 0.52) 0 1px, transparent 1.5px);
  background-position: 0 0, 42px 63px;
  background-size: 150px 150px, 230px 230px;
  opacity: 0.22;
}

button,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0;
  backdrop-filter: blur(18px);
}

.site-header::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: 74px;
  z-index: -1;
  background: linear-gradient(180deg, rgba(2, 9, 22, 0.92), rgba(2, 9, 22, 0));
  pointer-events: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ivory);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  text-decoration: none;
}

.brand-mark img {
  width: 40px;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 223, 160, 0.34);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.site-nav a {
  border: 1px solid rgba(255, 223, 160, 0.18);
  border-radius: 999px;
  padding: 8px 11px;
  color: rgba(255, 247, 232, 0.78);
  font-size: 0.78rem;
  text-decoration: none;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ivory);
  border-color: rgba(255, 223, 160, 0.5);
  background: rgba(5, 30, 56, 0.52);
}

.portal-shell {
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.hero-section,
.experience-section,
.model-section,
.research-section,
.about-section,
.educere-detail-section,
.cft-section,
.land-section,
.founder-section,
.reference-section,
.educere-section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-section {
  min-height: 92vh;
  display: grid;
  align-items: center;
  gap: 32px;
  padding: 44px 0 28px;
}

.hero-copy {
  display: grid;
  gap: 18px;
}

.eyebrow,
.teaching-kicker,
.practice-label {
  margin: 0;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 0;
  max-width: 11ch;
  font-size: clamp(3.4rem, 18vw, 7rem);
  line-height: 0.88;
  color: var(--ivory);
  text-shadow: 0 0 34px rgba(239, 178, 82, 0.32);
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 9vw, 3.6rem);
  line-height: 1;
  color: var(--ivory);
}

h3 {
  margin-bottom: 10px;
  font-size: 1.38rem;
  color: var(--ivory);
}

p {
  color: rgba(255, 247, 232, 0.78);
  line-height: 1.68;
}

.signature {
  max-width: 680px;
  font-size: clamp(1.02rem, 3.8vw, 1.28rem);
}

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

.sound-note {
  max-width: 560px;
  margin: -6px 0 0;
  color: rgba(255, 223, 160, 0.68);
  font-size: 0.84rem;
  line-height: 1.55;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 18px;
  color: var(--soft-white);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible,
.sound-toggle:hover,
.sound-toggle:focus-visible,
.node:hover,
.node:focus-visible,
.attention-core:hover,
.attention-core:focus-visible,
.reset-button:hover,
.reset-button:focus-visible,
.potential-choice:hover,
.potential-choice:focus-visible {
  transform: translateY(-2px);
}

.button:focus-visible,
.sound-toggle:focus-visible,
.node:focus-visible,
.attention-core:focus-visible,
.reset-button:focus-visible,
.potential-choice:focus-visible {
  outline: 2px solid var(--ivory);
  outline-offset: 4px;
}

.primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: #071522;
  border-color: rgba(255, 223, 160, 0.72);
  font-weight: 800;
  box-shadow: var(--glow);
}

.ghost {
  background: rgba(5, 30, 56, 0.42);
}

.sound-toggle {
  background: rgba(5, 30, 56, 0.42);
}

.sound-toggle::before {
  content: "";
  width: 9px;
  aspect-ratio: 1;
  margin-right: 9px;
  border-radius: 50%;
  background: rgba(255, 223, 160, 0.48);
  box-shadow: 0 0 12px rgba(239, 178, 82, 0.32);
}

.sound-toggle.is-playing {
  border-color: rgba(255, 223, 160, 0.64);
  background: rgba(170, 114, 32, 0.24);
}

.sound-toggle.is-playing::before {
  background: var(--ivory);
  box-shadow: 0 0 18px rgba(255, 223, 160, 0.72);
}

.reference-panel {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.4);
  animation: sphere-float 8s ease-in-out infinite;
}

.reference-panel img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  animation: sphere-breathe 11s ease-in-out infinite;
}

.experience-section,
.model-section,
.research-section,
.about-section,
.educere-detail-section,
.cft-section,
.land-section,
.founder-section,
.reference-section,
.educere-section {
  padding: 62px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading.compact {
  margin-bottom: 18px;
}

.experience-grid {
  display: grid;
  gap: 24px;
}

.sphere-stage {
  display: grid;
  place-items: center;
  min-height: min(92vw, 620px);
}

.sphere {
  position: relative;
  width: min(92vw, 560px);
  aspect-ratio: 1;
  border-radius: 50%;
  isolation: isolate;
}

.sphere::before,
.sphere::after {
  content: "";
  position: absolute;
  inset: 3%;
  border-radius: 50%;
  border: 1px solid rgba(255, 223, 160, 0.34);
  box-shadow:
    inset 0 0 46px rgba(60, 100, 146, 0.45),
    0 0 54px rgba(60, 100, 146, 0.48);
}

.sphere::after {
  inset: 13%;
  border-color: rgba(239, 178, 82, 0.26);
  box-shadow: inset 0 0 48px rgba(239, 178, 82, 0.12);
}

.sphere-image {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    linear-gradient(rgba(5, 30, 56, 0.12), rgba(5, 30, 56, 0.22)),
    url("assets/time-sphere-3d.jpeg") center / cover;
  opacity: 0.72;
  filter: saturate(1.05) contrast(1.02);
  z-index: -2;
}

.sphere-image::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, transparent 0 36%, rgba(5, 30, 56, 0.22) 62%, rgba(2, 9, 22, 0.46) 100%);
}

.orbit {
  position: absolute;
  inset: 17%;
  border: 1px solid rgba(255, 223, 160, 0.18);
  border-radius: 50%;
  animation: rotate 28s linear infinite;
}

.orbit-two {
  transform: rotate(56deg) scaleX(0.72);
  animation-duration: 36s;
}

.orbit-three {
  transform: rotate(-35deg) scaleY(0.74);
  animation-duration: 42s;
}

.node,
.attention-core {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(255, 223, 160, 0.58);
  color: var(--soft-white);
  background: radial-gradient(circle at 45% 34%, rgba(255, 223, 160, 0.95), rgba(239, 178, 82, 0.34) 34%, rgba(5, 30, 56, 0.86) 72%);
  box-shadow: 0 0 22px rgba(239, 178, 82, 0.52), inset 0 0 18px rgba(255, 223, 160, 0.12);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.node {
  width: clamp(82px, 24vw, 118px);
  min-height: 42px;
  border-radius: 999px;
  padding: 10px 12px;
  font-size: clamp(0.76rem, 3vw, 0.95rem);
  font-weight: 800;
}

.node.is-active {
  border-color: var(--soft-white);
  box-shadow: 0 0 36px rgba(255, 223, 160, 0.78), inset 0 0 18px rgba(255, 223, 160, 0.18);
}

.node-memory {
  left: 6%;
  bottom: 25%;
}

.node-present {
  right: 5%;
  top: 32%;
}

.node-potential {
  left: 10%;
  top: 25%;
}

.attention-core {
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: clamp(112px, 30vw, 158px);
  aspect-ratio: 1;
  border-radius: 50%;
  translate: -50% -50%;
}

.core-dot {
  width: 28%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--ivory);
  box-shadow: 0 0 28px rgba(255, 223, 160, 0.9);
}

.core-label {
  margin-top: 6px;
  font-weight: 800;
  font-size: clamp(0.78rem, 3.4vw, 0.95rem);
}

.teaching-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: linear-gradient(180deg, rgba(15, 48, 82, 0.88), rgba(5, 30, 56, 0.68));
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.24);
}

.teaching-card h3 {
  margin-top: 8px;
}

.practice-panel,
.pathway-panel {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.pathway-topline {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.reset-button,
.potential-choice {
  border: 1px solid rgba(255, 223, 160, 0.32);
  border-radius: 6px;
  color: var(--soft-white);
  background: rgba(5, 30, 56, 0.52);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.reset-button {
  padding: 8px 10px;
  font-size: 0.78rem;
}

.potential-list {
  display: grid;
  gap: 10px;
}

.potential-choice {
  width: 100%;
  padding: 12px;
  text-align: left;
}

.potential-choice strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ivory);
}

.potential-choice span {
  display: block;
  color: rgba(255, 247, 232, 0.72);
  line-height: 1.45;
}

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

.model-grid article {
  border-left: 1px solid var(--line);
  padding: 2px 0 2px 18px;
}

.research-grid,
.triunity-grid,
.device-grid {
  display: grid;
  gap: 14px;
}

.research-card,
.triunity-grid article,
.device-grid article,
.quiet-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(15, 48, 82, 0.68), rgba(5, 30, 56, 0.46));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

.research-card {
  display: flex;
  flex-direction: column;
}

.research-card p:last-of-type {
  flex: 1;
}

.paper-button {
  align-self: flex-start;
  margin-top: 8px;
}

.card-index {
  margin-bottom: 12px;
  color: rgba(255, 223, 160, 0.64);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
  line-height: 1;
}

.split-layout {
  display: grid;
  gap: 22px;
  align-items: center;
}

.quiet-panel {
  display: grid;
  gap: 16px;
}

.clean-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 1.1rem;
  color: rgba(255, 247, 232, 0.78);
  line-height: 1.55;
}

.land-section {
  border-block: 1px solid var(--line);
}

.founder-layout {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background:
    radial-gradient(circle at 16% 24%, rgba(239, 178, 82, 0.12), transparent 18rem),
    rgba(5, 30, 56, 0.36);
}

.founder-image {
  display: grid;
  place-items: center;
}

.founder-image img {
  width: min(360px, 78vw);
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  object-fit: cover;
  object-position: center 28%;
  border: 1px solid rgba(255, 223, 160, 0.32);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.map-panel {
  margin: 0;
  max-width: 820px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(5, 30, 56, 0.42);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
}

.map-panel img {
  display: block;
  width: 100%;
  height: auto;
}

.educere-section {
  display: grid;
  gap: 22px;
  align-items: center;
  margin-bottom: 36px;
  border-top: 1px solid var(--line);
}

.educere-copy {
  max-width: 760px;
}

.site-footer {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 38px 0 46px;
  border-top: 1px solid var(--line);
}

.footer-brand {
  display: grid;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
}

.footer-brand img {
  width: 76px;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 223, 160, 0.32);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.footer-links a,
.boundary-button,
.dialog-close {
  border: 1px solid rgba(255, 223, 160, 0.26);
  border-radius: 6px;
  padding: 9px 11px;
  color: rgba(255, 247, 232, 0.82);
  background: rgba(5, 30, 56, 0.42);
  text-decoration: none;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom p {
  margin-bottom: 0;
}

.boundary-dialog {
  width: min(720px, calc(100% - 28px));
  max-height: min(80vh, 760px);
  border: 1px solid rgba(255, 223, 160, 0.38);
  border-radius: 8px;
  padding: 0;
  color: var(--soft-white);
  background: linear-gradient(180deg, rgba(15, 48, 82, 0.98), rgba(5, 30, 56, 0.98));
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.58);
}

.boundary-dialog::backdrop {
  background: rgba(2, 9, 22, 0.72);
  backdrop-filter: blur(8px);
}

.dialog-inner {
  padding: 24px;
}

.dialog-close {
  float: right;
  margin-left: 12px;
}

@media (min-width: 780px) {
  .hero-section {
    grid-template-columns: 0.95fr 1.05fr;
    min-height: 88vh;
    padding-top: 58px;
  }

  .experience-grid {
    grid-template-columns: minmax(420px, 1.08fr) minmax(320px, 0.92fr);
    align-items: center;
  }

  .teaching-card {
    padding: 28px;
  }

  .model-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
  }

  .research-grid,
  .triunity-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }

  .device-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  .split-layout {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
    gap: 34px;
  }

  .footer-brand {
    grid-template-columns: auto 1fr;
  }

  .educere-section {
    grid-template-columns: 1fr auto;
  }
}

@media (max-width: 560px) {
  .site-header {
    position: relative;
  }

  .site-header::before {
    display: none;
  }

  .site-nav {
    width: 100%;
  }

  .site-nav a {
    flex: 1 1 auto;
    text-align: center;
  }
}

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

@keyframes rotate {
  to {
    rotate: 360deg;
  }
}

@keyframes sphere-float {
  0%,
  100% {
    transform: translateY(0);
    box-shadow: 0 26px 90px rgba(0, 0, 0, 0.4);
  }

  50% {
    transform: translateY(-8px);
    box-shadow: 0 32px 100px rgba(239, 178, 82, 0.14), 0 26px 90px rgba(0, 0, 0, 0.4);
  }
}

@keyframes sphere-breathe {
  0%,
  100% {
    transform: scale(1);
    filter: saturate(1) brightness(1);
  }

  50% {
    transform: scale(1.025);
    filter: saturate(1.08) brightness(1.06);
  }
}
