:root {
  --bg: #070b12;
  --bg-deep: #03060a;
  --text: #edf6ff;
  --muted: rgba(237, 246, 255, 0.76);
  --soft: rgba(237, 246, 255, 0.56);
  --line: rgba(167, 216, 255, 0.18);
  --line-strong: rgba(167, 216, 255, 0.34);
  --accent: #8fd6ff;
  --accent-strong: #47b8ff;
  --accent-warm: #d6f2ff;
  --frost: rgba(10, 18, 30, 0.58);
  --frost-quiet: rgba(9, 16, 27, 0.42);
  --max: 1180px;
  --article: 780px;
  --radius: 18px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.62;
  background:
    linear-gradient(180deg, rgba(3, 6, 10, 0.34), #070b12 44rem),
    url("../img/abstract-5719221_1600px.webp") center top / cover fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 68% 16%, rgba(71, 184, 255, 0.22), transparent 27rem),
    radial-gradient(circle at 20% 34%, rgba(143, 214, 255, 0.12), transparent 24rem),
    linear-gradient(90deg, rgba(3, 6, 10, 0.92), rgba(3, 6, 10, 0.54) 52%, rgba(3, 6, 10, 0.86));
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.26;
  background-image:
    linear-gradient(rgba(143, 214, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 214, 255, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, black, transparent 70%);
}

main,
header,
footer {
  max-width: 100vw;
  overflow-x: hidden;
}

::selection {
  color: #03111d;
  background: var(--accent);
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

h1,
h2,
h3 {
  line-height: 1.02;
  letter-spacing: 0;
  overflow-wrap: break-word;
  text-wrap: balance;
}

h1 {
  margin-bottom: 1.1rem;
  font-size: clamp(2.35rem, 5.8vw, 5.8rem);
  font-weight: 760;
}

.hero h1:not(.brand-title) {
  font-size: clamp(1.75rem, 2.8vw, 2.65rem);
}

.article-page h1 {
  font-size: clamp(1.72rem, 2.55vw, 2.48rem);
}

.page .hero h1 {
  font-size: clamp(3rem, 6.4vw, 5.2rem);
}

h2 {
  margin-bottom: 1.1rem;
  font-size: clamp(1.35rem, 2.1vw, 2.15rem);
  font-weight: 720;
}

h3 {
  margin-bottom: 0.5rem;
  font-size: clamp(1.05rem, 0.8vw + 0.95rem, 1.35rem);
}

p {
  color: var(--muted);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(167, 216, 255, 0.13);
  background: rgba(4, 8, 14, 0.72);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(var(--max), calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 760;
  letter-spacing: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(143, 214, 255, 0.95) 0 3px, transparent 4px),
    conic-gradient(from 180deg, transparent, rgba(143, 214, 255, 0.7), transparent 70%);
  box-shadow: 0 0 28px rgba(71, 184, 255, 0.26);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex-wrap: wrap;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-links a,
.text-link {
  color: var(--muted);
  text-decoration: none;
}

.nav-links a {
  padding: 8px 9px;
  border-radius: 999px;
  font-size: 0.86rem;
}

.nav-links a:hover,
.nav-links a.is-active,
.text-link:hover {
  color: var(--text);
  background: rgba(143, 214, 255, 0.08);
}

.reading-rail {
  position: fixed;
  right: 18px;
  top: 112px;
  z-index: 20;
  width: 222px;
  max-height: calc(100svh - 132px);
  overflow-y: auto;
  padding: 15px 15px 13px;
  border: 1px solid rgba(167, 216, 255, 0.16);
  border-radius: 14px;
  background: rgba(4, 8, 14, 0.62);
  backdrop-filter: blur(18px);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.24);
}

.reading-rail .kicker {
  margin-bottom: 0.65rem;
  font-size: 0.68rem;
}

.reading-rail a {
  display: block;
  padding: 9px 0;
  border-top: 1px solid rgba(167, 216, 255, 0.12);
  color: rgba(237, 246, 255, 0.86);
  font-size: 0.86rem;
  line-height: 1.25;
  text-decoration: none;
}

.reading-rail a:first-of-type {
  border-top: 0;
}

.reading-rail a span {
  display: block;
  margin-bottom: 0.24rem;
  color: var(--accent);
  font-size: 0.64rem;
  font-weight: 780;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.reading-rail a:hover {
  color: var(--text);
}

.page {
  overflow: hidden;
}

.hero {
  min-height: min(720px, calc(100svh - 76px));
  display: grid;
  align-items: end;
  padding: clamp(50px, 8vw, 108px) 0 clamp(38px, 6vw, 70px);
}

.content-hero {
  min-height: auto;
  align-items: start;
  padding: clamp(28px, 4vw, 56px) 0 clamp(24px, 3.6vw, 44px);
}

.content-hero h1 {
  max-width: 980px;
}

.hero-inner,
.section,
.footer-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.72fr);
  gap: clamp(32px, 6vw, 92px);
  align-items: end;
}

.hero-copy {
  max-width: 720px;
}

.kicker {
  margin-bottom: 0.8rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 780;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.deck {
  max-width: 760px;
  margin-bottom: 1.5rem;
  color: rgba(237, 246, 255, 0.9);
  font-size: clamp(1.02rem, 0.8vw + 0.95rem, 1.28rem);
  line-height: 1.48;
}

.copy-large {
  max-width: 680px;
  font-size: clamp(1rem, 0.48vw + 0.96rem, 1.28rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text);
  background: rgba(143, 214, 255, 0.1);
  text-decoration: none;
  transition: transform 180ms var(--ease), background 180ms var(--ease), border-color 180ms var(--ease);
}

.button:hover {
  transform: translateY(-2px);
  background: rgba(143, 214, 255, 0.18);
  border-color: rgba(143, 214, 255, 0.58);
}

.button.secondary {
  background: rgba(237, 246, 255, 0.045);
}

.signal-plane {
  min-height: 520px;
  position: relative;
  border-left: 1px solid var(--line);
}

.signal-plane::before,
.signal-plane::after {
  content: "";
  position: absolute;
  inset: 0;
}

.signal-plane::before {
  background:
    linear-gradient(90deg, rgba(143, 214, 255, 0.26), transparent 1px) 0 0 / 54px 54px,
    linear-gradient(rgba(143, 214, 255, 0.18), transparent 1px) 0 0 / 54px 54px;
  mask-image: linear-gradient(90deg, transparent, black 28%, transparent);
  opacity: 0.76;
}

.signal-plane::after {
  background:
    radial-gradient(circle at 45% 28%, rgba(143, 214, 255, 0.9) 0 5px, transparent 6px),
    radial-gradient(circle at 65% 48%, rgba(143, 214, 255, 0.7) 0 3px, transparent 4px),
    radial-gradient(circle at 24% 62%, rgba(143, 214, 255, 0.66) 0 4px, transparent 5px),
    linear-gradient(132deg, transparent 6%, rgba(143, 214, 255, 0.24) 50%, transparent 71%);
  filter: drop-shadow(0 0 24px rgba(71, 184, 255, 0.32));
  animation: signalDrift 9s var(--ease) infinite alternate;
}

@keyframes signalDrift {
  from { transform: translate3d(-8px, 8px, 0) scale(0.98); opacity: 0.72; }
  to { transform: translate3d(8px, -10px, 0) scale(1.02); opacity: 1; }
}

.section {
  padding: clamp(42px, 6vw, 82px) 0;
}

.section.compact {
  padding-top: clamp(28px, 4vw, 54px);
}

.section.compact + .section {
  padding-top: clamp(28px, 4vw, 54px);
}

.frost {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(9, 16, 27, 0.72), rgba(12, 26, 42, 0.42));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px);
}

.core-band {
  padding: clamp(26px, 4vw, 46px);
}

.core-band p {
  max-width: 920px;
  margin-bottom: 0;
  color: rgba(237, 246, 255, 0.86);
  font-size: clamp(1rem, 0.45vw + 0.95rem, 1.22rem);
}

.split-line {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(26px, 5vw, 78px);
  align-items: start;
}

.branch-copy h2 {
  margin-bottom: 1.45rem;
}

.branch-copy p {
  max-width: 680px;
}

.branch-links {
  margin-top: 2.7rem;
}

.split-line > *,
.hero-grid > *,
.not-is > *,
.path-item,
.article-item,
.risk-item,
.principle-item {
  min-width: 0;
}

.not-is {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--line);
  align-self: start;
}

.not-is > div {
  padding: clamp(18px, 2.35vw, 28px);
  background: rgba(8, 14, 24, 0.78);
}

.title-align-right > :nth-child(2) {
  padding-top: 2.4rem;
}

.plain-list {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plain-list li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
}

.plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(143, 214, 255, 0.5);
}

.path-grid,
.article-preview-grid,
.article-list,
.risk-grid,
.principle-list {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
}

.path-grid {
  grid-template-columns: repeat(5, 1fr);
}

.article-preview-grid {
  grid-template-columns: 1fr 1fr;
  margin-top: 28px;
}

.path-item,
.article-preview,
.article-item,
.risk-item,
.principle-item {
  min-width: 0;
  padding: clamp(18px, 2.6vw, 30px);
  background: rgba(8, 14, 24, 0.82);
  text-decoration: none;
}

.path-item:hover,
.article-preview:hover,
.article-item:hover {
  background: rgba(14, 30, 48, 0.86);
}

.path-item span,
.article-meta,
.legal-note {
  color: var(--soft);
  font-size: 0.86rem;
}

.article-preview h3 {
  margin-bottom: 1rem;
  font-size: clamp(1.28rem, 1.9vw, 1.85rem);
}

.article-preview p:not(.kicker) {
  color: rgba(237, 246, 255, 0.82);
  font-size: 0.98rem;
}

.article-page .hero {
  min-height: auto;
  align-items: start;
  padding-bottom: clamp(22px, 5vw, 58px);
}

.article {
  width: min(var(--article), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(30px, 5.5vw, 70px) 0;
}

.article p,
.article li {
  font-size: 1.06rem;
}

.statement-line {
  margin: 2.6rem 0 3rem;
  color: var(--text);
  font-size: clamp(1.02rem, 0.7vw + 0.98rem, 1.28rem);
  font-weight: 680;
  line-height: 1.48;
}

.article h2 {
  margin-top: 2.4rem;
  font-size: clamp(1.25rem, 1.55vw, 1.85rem);
}

.article ul,
.article ol {
  color: var(--muted);
  padding-left: 1.2rem;
}

.quote-box {
  margin: 2.1rem 0;
  padding: clamp(22px, 4vw, 38px);
}

.quote-box strong {
  display: block;
  color: var(--text);
  font-size: clamp(1.05rem, 1.1vw, 1.42rem);
  line-height: 1.26;
}

.workflow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.method-stack {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.method-stack div {
  padding: clamp(20px, 3vw, 32px);
  background: rgba(8, 14, 24, 0.82);
}

.method-stack span {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 780;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.method-stack p {
  margin-bottom: 0;
}

.workflow span {
  padding: 16px 12px;
  text-align: center;
  color: var(--muted);
  background: rgba(8, 14, 24, 0.82);
}

.contact-form {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: var(--soft);
  font-size: 0.9rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: rgba(3, 6, 10, 0.46);
  font: inherit;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(143, 214, 255, 0.38);
  outline-offset: 2px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(3, 6, 10, 0.78);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  padding: 34px 0;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-affiliation {
  margin: 0.65rem 0 0;
  color: var(--soft);
  font-size: 0.9rem;
}

.footer-affiliation a {
  color: var(--text);
  text-decoration: none;
}

.footer-affiliation a:hover {
  color: var(--accent);
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
}

.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 650ms var(--ease), transform 650ms var(--ease);
}

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

.redirect-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 40px;
}

.redirect-box {
  width: min(680px, 100%);
  padding: 34px;
}

@media (max-width: 920px) {
  .nav-shell,
  .hero-inner,
  .section,
  .footer-inner,
  .article {
    width: calc(100vw - 28px);
    max-width: calc(100vw - 28px);
  }

  .nav-shell {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    min-height: auto;
    padding: 12px 0;
  }

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

  .nav-links {
    width: 100%;
    justify-content: flex-start;
    max-width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .nav-links a {
    flex: 0 0 auto;
    padding: 7px 9px;
    font-size: 0.84rem;
  }

  .hero h1:not(.brand-title) {
    font-size: clamp(1.42rem, 4.8vw, 1.9rem);
  }

  .article-page h1 {
    font-size: clamp(1.42rem, 4.8vw, 1.86rem);
  }

  .content-hero h1,
  .content-hero .deck,
  .content-hero .copy-large,
  .split-line p,
  .core-band p,
  .article-item h2,
  .article-item h3,
  .article-item p,
  .path-item h3,
  .path-item p,
  .risk-item p,
  .principle-item p {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .content-hero {
    padding: 22px 0 24px;
  }

  .article {
    padding-top: 24px;
  }

  .hero-grid,
  .split-line,
  .not-is,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .title-align-right > :nth-child(2) {
    padding-top: 0;
  }

  .path-grid {
    grid-template-columns: 1fr 1fr;
  }

  .article-preview-grid {
    grid-template-columns: 1fr;
  }

  .signal-plane {
    min-height: 260px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (min-width: 1280px) {
  .reading-rail {
    display: block;
    right: 14px;
    top: 96px;
    width: 198px;
    padding: 13px 13px 11px;
  }

  .reading-rail a {
    font-size: 0.76rem;
  }

  .hero-inner,
  .section,
  .footer-inner {
    width: min(1060px, calc(100% - 300px));
    margin-left: max(40px, calc((100vw - 1180px) / 2));
    margin-right: auto;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.64fr);
  }
}

@media (max-width: 1279px) {
  .reading-rail {
    display: none;
  }
}

@media (max-width: 640px) {
  body {
    background-attachment: scroll;
  }

  .nav-shell,
  .hero-inner,
  .section,
  .footer-inner,
  .article {
    width: min(362px, calc(100vw - 28px));
    max-width: min(362px, calc(100vw - 28px));
    margin-left: 14px;
    margin-right: 14px;
  }

  .hero-grid,
  .split-line {
    display: block;
  }

  .not-is {
    display: grid;
  }

  h1 {
    font-size: clamp(1.8rem, 7.2vw, 2.5rem);
  }

  .page .hero h1 {
    font-size: clamp(2.6rem, 11.5vw, 3.6rem);
  }

  .article-page h1 {
    font-size: clamp(1.36rem, 4.8vw, 1.72rem);
  }

  .hero h1:not(.brand-title) {
    font-size: clamp(1.36rem, 4.8vw, 1.78rem);
  }

  .content-hero {
    padding: 18px 0 22px;
  }

  h1,
  h2,
  h3,
  p,
  li,
  .deck,
  .copy-large {
    max-width: min(362px, calc(100vw - 28px));
    overflow-wrap: anywhere;
  }

  .hero {
    padding-top: 34px;
  }

  .path-grid,
  .article-preview-grid,
  .workflow {
    grid-template-columns: 1fr;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
