/* ============================================================
   MEDATLAS LEARNING MINDS
   Institutional Architecture
   ============================================================ */

:root {
  --navy: #14213d;
  --navy-deep: #0d1830;
  --navy-soft: #263654;

  --gold: #ad7a20;
  --gold-deep: #8d6118;
  --gold-soft: #d7b56f;

  --ivory: #faf7ef;
  --ivory-deep: #f1eadc;
  --paper: #fffdf8;
  --white: #ffffff;

  --text: #1d2a42;
  --text-secondary: #42516a;
  --text-muted: #6b7688;

  --border-gold: rgba(173, 122, 32, 0.22);
  --border-navy: rgba(20, 33, 61, 0.12);

  --shadow:
    0 24px 70px rgba(13, 24, 48, 0.08);

  --serif:
    Georgia,
    "Times New Roman",
    Times,
    serif;

  --sans:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  --max: 1180px;
  --narrow: 850px;
}


/* ============================================================
   RESET
   ============================================================ */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.7;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

::selection {
  background: var(--gold-soft);
  color: var(--navy-deep);
}


/* ============================================================
   READING PROGRESS
   ============================================================ */

.reading-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 1000;
  background: transparent;
}

.reading-progress-fill {
  height: 100%;
  width: 0;
  background:
    linear-gradient(
      90deg,
      var(--gold-deep),
      var(--gold),
      var(--gold-soft)
    );
}


/* ============================================================
   HEADER
   ============================================================ */

.architecture-header {
  position: absolute;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;

  max-width: 1400px;
  margin: 0 auto;

  padding: 26px 40px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  color: var(--ivory);
}

.architecture-brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;

  display: grid;
  place-items: center;

  border: 1px solid rgba(215, 181, 111, 0.6);
  border-radius: 50%;

  color: var(--gold-soft);
  font-family: var(--serif);
  font-size: 21px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-copy strong {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.brand-copy small {
  margin-top: 4px;

  color: var(--gold-soft);
  font-size: 8px;
  letter-spacing: 0.28em;
}

.architecture-nav {
  display: flex;
  gap: 28px;
}

.architecture-nav a {
  position: relative;

  color: rgba(250, 247, 239, 0.72);
  text-decoration: none;

  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;

  transition:
    color 180ms ease;
}

.architecture-nav a:hover {
  color: var(--gold-soft);
}

.architecture-nav a {
  position: relative;

  color: rgba(250, 247, 239, 0.72);
  text-decoration: none;

  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;

  transition:
    color 180ms ease;
}

.architecture-nav a:hover {
  color: var(--gold-soft);
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1,
h2,
h3 {
  font-family: var(--serif);
}

h1,
h2 {
  font-weight: 400;
}

h1 {
  margin: 18px 0 28px;

  color: var(--paper);
  font-size: clamp(3.3rem, 7vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
}

h1 em,
h2 em {
  display: block;
  color: var(--gold-soft);
  font-weight: 400;
}

h2 {
  max-width: 900px;
  margin: 12px 0 34px;

  color: var(--navy);
  font-size: clamp(2.6rem, 5vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

h2.light {
  color: var(--paper);
}

h3 {
  color: var(--navy);
  font-size: 1.45rem;
  font-weight: 500;
}

p {
  color: var(--text-secondary);
}

.eyebrow,
.micro-label {
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.23em;
  text-transform: uppercase;
}

.eyebrow.gold {
  color: var(--gold-soft);
}

.section-number {
  margin-bottom: 20px;

  color: rgba(173, 122, 32, 0.45);
  font-family: var(--serif);
  font-size: 14px;
}

.section-number.gold {
  color: var(--gold-soft);
}

.section-intro,
.large-prose {
  max-width: 850px;

  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.8;
}

.large-prose {
  margin: 28px 0;
}

.light-copy,
.light-copy p {
  color: rgba(250, 247, 239, 0.8);
}

.light-muted {
  color: rgba(250, 247, 239, 0.64);
}

.center-heading {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}


/* ============================================================
   SHELLS
   ============================================================ */

.section-shell {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  padding: 120px 0;
}

.section-shell.narrow {
  max-width: var(--narrow);
}

.section-shell.wide {
  width: min(calc(100% - 40px), 1320px);
}

.paper-section {
  background: var(--ivory);
}

.ivory-deep-section {
  background: var(--ivory-deep);
}

.gold-wash-section {
  background:
    radial-gradient(
      circle at 15% 20%,
      rgba(215, 181, 111, 0.18),
      transparent 32%
    ),
    var(--paper);
}

.navy-section,
.architecture-section,
.reality-contract-section {
  position: relative;
  overflow: hidden;

  background:
    radial-gradient(
      circle at 50% 10%,
      rgba(38, 54, 84, 0.95),
      transparent 50%
    ),
    var(--navy-deep);
}


/* ============================================================
   HERO
   ============================================================ */

.hero {
  min-height: 100vh;
  position: relative;

  display: grid;
  grid-template-columns:
    minmax(0, 1.05fr)
    minmax(380px, 0.95fr);

  align-items: center;
  gap: 50px;

  padding: 150px max(6vw, 40px) 90px;

  overflow: hidden;

  background:
    radial-gradient(
      circle at 74% 45%,
      rgba(38, 54, 84, 0.9),
      transparent 35%
    ),
    linear-gradient(
      135deg,
      #0d1830 0%,
      #14213d 62%,
      #0d1830 100%
    );
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;

  opacity: 0.16;

  background-image:
    linear-gradient(
      rgba(215, 181, 111, 0.08) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(215, 181, 111, 0.08) 1px,
      transparent 1px
    );

  background-size: 80px 80px;

  mask-image:
    linear-gradient(
      to bottom,
      black,
      transparent 90%
    );
}

.hero-atmosphere {
  position: absolute;
  width: 620px;
  height: 620px;

  right: 10%;
  top: 50%;

  transform: translateY(-50%);

  border: 1px solid rgba(215, 181, 111, 0.08);
  border-radius: 50%;
}

.hero-atmosphere::before,
.hero-atmosphere::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(215, 181, 111, 0.06);
  border-radius: 50%;
}

.hero-atmosphere::before {
  inset: 50px;
}

.hero-atmosphere::after {
  inset: 105px;
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 780px;
}

.hero-intro {
  max-width: 710px;
  margin-bottom: 40px;

  color: rgba(250, 247, 239, 0.74);

  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
}

.hero-question {
  max-width: 700px;

  display: block;

  padding: 24px 28px;

  border-left: 2px solid var(--gold);
  text-decoration: none;

  background:
    linear-gradient(
      90deg,
      rgba(173, 122, 32, 0.08),
      transparent
    );
}

.hero-question span {
  display: block;
  margin-bottom: 8px;

  color: var(--gold-soft);

  font-size: 9px;
  letter-spacing: 0.24em;
}

.hero-question strong {
  color: var(--paper);
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.6;
}

.hero-seal-wrap {
  position: relative;
  z-index: 2;

  display: grid;
  place-items: center;
}

.hero-seal {
  width: min(610px, 100%);

  position: relative;
  z-index: 2;

  filter:
    drop-shadow(0 28px 45px rgba(0, 0, 0, 0.28));
}

.seal-aura {
  position: absolute;
  width: 80%;
  aspect-ratio: 1;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(215, 181, 111, 0.16),
      rgba(173, 122, 32, 0.04) 42%,
      transparent 70%
    );

  filter: blur(18px);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;

  transform: translateX(-50%);

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;

  color: rgba(250, 247, 239, 0.42);

  font-size: 8px;
  letter-spacing: 0.22em;
  text-decoration: none;
}

.scroll-line {
  display: block;
  width: 1px;
  height: 30px;

  background:
    linear-gradient(
      var(--gold-soft),
      transparent
    );
}


/* ============================================================
   THESIS
   ============================================================ */

.thesis-section p {
  max-width: 760px;

  font-family: var(--serif);
  font-size: 1.18rem;
}

.thesis-section .lead {
  color: var(--navy);
  font-size: 1.6rem;
}

.institutional-quote {
  max-width: 900px;
  margin: 65px 0;

  padding: 18px 0 18px 34px;

  border-left: 2px solid var(--gold);

  color: var(--navy);

  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.5vw, 3.1rem);
  line-height: 1.3;
}

.institutional-quote.compact {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;

  font-size: clamp(1.4rem, 2.5vw, 2.1rem);
}


/* ============================================================
   TWO COLUMN
   ============================================================ */

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.statement strong {
  color: var(--gold-soft);
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
}


/* ============================================================
   AVA DEFINITIONS
   ============================================================ */

.definition-grid {
  margin-top: 80px;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.definition-card {
  padding: 34px;

  border: 1px solid rgba(215, 181, 111, 0.18);
  border-radius: 20px;

  background: rgba(255, 255, 255, 0.035);
}

.definition-card > span {
  color: var(--gold-soft);
  font-family: var(--serif);
  font-size: 3.5rem;
}

.definition-card h3 {
  color: var(--paper);
  font-weight: 400;
}

.definition-card p {
  color: rgba(250, 247, 239, 0.65);
}


/* ============================================================
   SHARED REALITY
   ============================================================ */

.comparison-stage {
  margin-top: 70px;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.comparison-card {
  min-height: 280px;

  padding: 36px;

  border-radius: 20px;
}

.muted-card {
  border: 1px solid var(--border-navy);
  background: rgba(255, 255, 255, 0.55);
}

.emphasis-card {
  border: 1px solid var(--border-gold);

  background:
    linear-gradient(
      145deg,
      rgba(215, 181, 111, 0.16),
      rgba(255, 255, 255, 0.75)
    );

  box-shadow: var(--shadow);
}

.linear-flow,
.shared-flow {
  margin: 48px 0 30px;

  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;

  color: var(--navy);

  font-family: var(--serif);
}

.shared-flow strong {
  color: var(--gold-deep);
}

.linear-flow i,
.shared-flow i {
  color: var(--gold);
  font-style: normal;
}

.prose-columns {
  margin-top: 60px;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.prose-columns p {
  font-family: var(--serif);
  font-size: 1.2rem;
}


/* ============================================================
   CIRCULATION
   ============================================================ */

.architecture-section {
  min-height: 1000px;
}

.circulation-stage {
  position: relative;

  max-width: 1100px;
  min-height: 600px;

  margin: 70px auto 0;
}

.circulation-svg {
  width: 100%;
  overflow: visible;
}

.loop-path {
  fill: none;
  stroke: url(#loopGold);
  stroke-width: 2.2;
  stroke-linecap: round;

  filter:
    drop-shadow(
      0 0 8px rgba(215, 181, 111, 0.16)
    );
}

.loop-path-soft {
  stroke: rgba(215, 181, 111, 0.08);
  stroke-width: 16;
  filter: blur(5px);
}

.travel-node {
  fill: var(--gold-soft);
  filter:
    drop-shadow(
      0 0 9px rgba(215, 181, 111, 0.8)
    );
}

.node-one {
  offset-path:
    path(
      "M 500 260 C 390 80, 120 70, 120 260 C 120 450, 390 440, 500 260 C 610 80, 880 70, 880 260 C 880 450, 610 440, 500 260"
    );

  animation: travelLoop 15s linear infinite;
}

.node-two {
  offset-path:
    path(
      "M 500 260 C 610 80, 880 70, 880 260 C 880 450, 610 440, 500 260 C 390 80, 120 70, 120 260 C 120 450, 390 440, 500 260"
    );

  animation: travelLoop 19s linear infinite;
}

@keyframes travelLoop {
  from {
    offset-distance: 0%;
  }

  to {
    offset-distance: 100%;
  }
}

.loop-label {
  position: absolute;

  display: flex;
  flex-direction: column;

  color: var(--paper);
}

.loop-label strong {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 400;
}

.loop-label span {
  color: rgba(250, 247, 239, 0.44);
  font-size: 8px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.loop-label-1 {
  left: 44%;
  top: 2%;
}

.loop-label-2 {
  left: 12%;
  top: 15%;
}

.loop-label-3 {
  left: 3%;
  top: 47%;
}

.loop-label-4 {
  left: 18%;
  bottom: 10%;
}

.loop-label-center {
  left: 50%;
  top: 45%;

  transform: translate(-50%, -50%);
  align-items: center;

  padding: 19px 25px;

  border: 1px solid rgba(215, 181, 111, 0.42);
  border-radius: 50%;

  background: var(--navy-deep);
}

.loop-label-center strong {
  color: var(--gold-soft);
  letter-spacing: 0.08em;
}

.loop-label-5 {
  right: 15%;
  top: 10%;
}

.loop-label-6 {
  right: 2%;
  top: 47%;
}

.loop-label-7 {
  right: 17%;
  bottom: 10%;
}

.loop-label-8 {
  right: 43%;
  bottom: 0;
}

.architecture-law {
  max-width: 900px;
  margin: 70px auto 0;

  padding: 30px 34px;

  border-top: 1px solid rgba(215, 181, 111, 0.3);
  border-bottom: 1px solid rgba(215, 181, 111, 0.3);

  text-align: center;
}

.architecture-law span {
  display: block;
  margin-bottom: 12px;

  color: var(--gold-soft);

  font-size: 9px;
  letter-spacing: 0.24em;
}

.architecture-law strong {
  color: var(--paper);

  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  font-weight: 400;
}

.light-law strong {
  color: var(--navy);
}


/* ============================================================
   ENGINE CARDS
   ============================================================ */

.engine-grid {
  margin-top: 70px;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.engine-card {
  position: relative;
  overflow: hidden;

  min-height: 310px;

  padding: 34px;

  border: 1px solid var(--border-gold);
  border-radius: 19px;

  background: var(--paper);

  box-shadow:
    0 18px 45px rgba(13, 24, 48, 0.045);

  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.engine-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 28px;
  right: 28px;
  height: 2px;

  background:
    linear-gradient(
      90deg,
      transparent,
      var(--gold),
      transparent
    );
}

.engine-card:hover {
  transform: translateY(-5px);

  border-color: rgba(173, 122, 32, 0.4);

  box-shadow:
    0 28px 60px rgba(13, 24, 48, 0.09);
}

.engine-code {
  display: inline-block;

  margin-bottom: 26px;

  color: var(--gold);

  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.22em;
}

.engine-card h3 {
  margin: 0 0 16px;
  font-weight: 400;
}

.engine-card p {
  margin: 0;
}


/* ============================================================
   POSSIBILITY
   ============================================================ */

.possibility-layout {
  margin-top: 70px;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;

  align-items: center;
}

.branch-visual {
  min-height: 430px;

  position: relative;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  border: 1px solid var(--border-gold);
  border-radius: 22px;

  background: rgba(255, 255, 255, 0.58);
}

.branch-origin,
.branch-level span {
  display: block;

  width: 10px;
  height: 10px;

  border-radius: 50%;

  background: var(--gold);
}

.branch-origin {
  width: 18px;
  height: 18px;

  box-shadow:
    0 0 0 10px rgba(173, 122, 32, 0.08);
}

.branch-level {
  width: 70%;

  display: flex;
  justify-content: space-around;

  margin-top: 65px;

  position: relative;
}

.branch-level::before {
  content: "";
  position: absolute;

  top: -34px;
  left: 10%;
  right: 10%;

  height: 1px;

  background:
    linear-gradient(
      90deg,
      transparent,
      var(--gold-soft),
      transparent
    );
}

.level-two {
  width: 82%;
}

.level-three {
  width: 92%;
}

.level-two span {
  width: 8px;
  height: 8px;
}

.level-three span {
  width: 6px;
  height: 6px;
}

.possibility-copy p {
  font-family: var(--serif);
  font-size: 1.2rem;
}

.mini-quote {
  margin: 35px 0 0;
  padding-left: 25px;

  border-left: 2px solid var(--gold);

  color: var(--navy);

  font-family: var(--serif);
  font-size: 1.7rem;
}


/* ============================================================
   EMERGENCE
   ============================================================ */

.emergence-grid {
  margin-top: 60px;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.emergence-copy {
  padding: 35px;

  border: 1px solid rgba(215, 181, 111, 0.16);
  border-radius: 20px;

  background: rgba(255, 255, 255, 0.03);
}

.emergence-copy p {
  margin: 12px 0;

  color: rgba(250, 247, 239, 0.72);

  font-family: var(--serif);
  font-size: 1.2rem;
}

.emphasis-copy {
  background:
    linear-gradient(
      145deg,
      rgba(173, 122, 32, 0.11),
      rgba(255, 255, 255, 0.025)
    );
}

.emergence-equation {
  margin-top: 70px;

  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;

  gap: 18px;

  padding: 32px;

  border-top: 1px solid rgba(215, 181, 111, 0.24);
  border-bottom: 1px solid rgba(215, 181, 111, 0.24);

  color: rgba(250, 247, 239, 0.72);

  font-family: var(--serif);
}

.emergence-equation i {
  color: var(--gold-soft);
  font-style: normal;
}

.emergence-equation strong {
  color: var(--gold-soft);
  font-weight: 400;
}


/* ============================================================
   GOVERNANCE
   ============================================================ */

.governance-field {
  margin: 75px auto;

  max-width: 900px;
}

.governance-boundary {
  min-height: 430px;

  position: relative;
  overflow: hidden;

  display: grid;
  place-items: center;

  border: 1px solid var(--gold);
  border-radius: 24px;

  background:
    radial-gradient(
      circle at center,
      rgba(215, 181, 111, 0.15),
      transparent 45%
    ),
    rgba(255, 255, 255, 0.45);
}

.boundary-label {
  position: absolute;
  top: 20px;
  left: 24px;

  color: var(--gold);

  font-size: 9px;
  letter-spacing: 0.22em;
}

.governance-core {
  position: relative;
  z-index: 3;

  text-align: center;
}

.governance-core strong {
  display: block;

  color: var(--navy);

  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
}

.governance-core span {
  color: var(--gold-deep);

  font-size: 10px;
  letter-spacing: 0.12em;
}

.governance-path {
  position: absolute;

  width: 60%;
  height: 60%;

  border: 1px solid rgba(173, 122, 32, 0.17);
  border-radius: 50%;
}

.path-a {
  transform: rotate(20deg);
}

.path-b {
  transform: rotate(70deg);
}

.path-c {
  width: 80%;
  height: 38%;
  transform: rotate(-25deg);
}

.path-d {
  width: 35%;
  height: 78%;
  transform: rotate(40deg);
}

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

.governance-grid article {
  padding: 28px;

  border-top: 1px solid var(--border-gold);
}

.governance-grid article > span {
  color: var(--gold);
  font-size: 9px;
  letter-spacing: 0.2em;
}

.governance-grid h3 {
  margin: 12px 0;
  font-weight: 400;
}


/* ============================================================
   AUTHORITY
   ============================================================ */

.authority-grid {
  margin: 70px 0;

  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.authority-grid article {
  min-height: 180px;

  padding: 26px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  border: 1px solid var(--border-gold);
  border-radius: 18px;

  background: rgba(255, 253, 248, 0.6);
}

.authority-grid span {
  color: var(--gold);
  font-size: 9px;
  letter-spacing: 0.2em;
}

.authority-grid strong {
  color: var(--navy);

  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
}


/* ============================================================
   REALITY CONTRACT
   ============================================================ */

.contract-flow {
  margin: 80px 0;

  display: grid;
  grid-template-columns:
    1fr auto
    1.15fr auto
    1fr auto
    1fr;

  align-items: center;
  gap: 16px;
}

.contract-flow article {
  min-height: 220px;

  padding: 28px;

  display: flex;
  flex-direction: column;

  border: 1px solid rgba(215, 181, 111, 0.2);
  border-radius: 18px;

  background: rgba(255, 255, 255, 0.035);
}

.contract-flow article > span {
  color: var(--gold-soft);
  font-size: 9px;
}

.contract-flow strong {
  margin: auto 0 12px;

  color: var(--paper);

  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
}

.contract-flow small {
  color: rgba(250, 247, 239, 0.55);
  line-height: 1.6;
}

.contract-flow > i {
  color: var(--gold-soft);
  font-style: normal;
}

.contract-center {
  border-color:
    rgba(215, 181, 111, 0.55) !important;

  background:
    rgba(173, 122, 32, 0.12) !important;
}


/* ============================================================
   WORLDS
   ============================================================ */

.world-grid {
  margin: 70px 0;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.world-grid article {
  padding: 38px;

  border: 1px solid var(--border-gold);
  border-radius: 20px;

  background: var(--paper);

  box-shadow:
    0 20px 50px rgba(13, 24, 48, 0.05);
}

.world-grid h3 {
  max-width: 440px;
  margin: 22px 0 35px;

  font-size: 1.7rem;
  font-weight: 400;
}

.world-flow {
  margin-bottom: 30px;

  display: flex;
  flex-wrap: wrap;
  gap: 10px;

  color: var(--navy);

  font-family: var(--serif);
  font-size: 1.1rem;
}

.world-flow i {
  color: var(--gold);
  font-style: normal;
}


/* ============================================================
   NAVY QUOTE
   ============================================================ */

.navy-quote {
  margin: 70px 0 0;

  padding: 35px 0;

  border-top: 1px solid rgba(215, 181, 111, 0.28);
  border-bottom: 1px solid rgba(215, 181, 111, 0.28);

  color: var(--gold-soft);

  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  line-height: 1.45;
}


/* ============================================================
   THIRD INTELLIGENCE
   ============================================================ */

.third-intelligence {
  margin: 80px 0;

  display: grid;
  grid-template-columns:
    1fr auto
    1fr auto
    1.2fr;

  align-items: stretch;
  gap: 18px;
}

.third-intelligence article {
  padding: 30px;

  border: 1px solid var(--border-gold);
  border-radius: 20px;

  background: var(--paper);
}

.third-intelligence article > span {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 3rem;
}

.third-intelligence strong {
  display: block;

  margin: 12px 0;

  color: var(--navy);

  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
}

.third-intelligence .plus,
.third-intelligence .equals {
  display: grid;
  place-items: center;

  color: var(--gold);
  font-family: var(--serif);
  font-size: 1.7rem;
}

.collaborative-card {
  border-color:
    rgba(173, 122, 32, 0.5) !important;

  background:
    linear-gradient(
      145deg,
      rgba(215, 181, 111, 0.18),
      var(--paper)
    ) !important;

  box-shadow: var(--shadow);
}


/* ============================================================
   SEAL
   ============================================================ */

.seal-section {
  position: relative;
  overflow: hidden;

  background:
    radial-gradient(
      circle at 30% 50%,
      rgba(38, 54, 84, 0.75),
      transparent 40%
    ),
    var(--navy-deep);
}

.seal-explainer {
  margin-top: 70px;

  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;

  align-items: center;
}

.seal-display {
  position: sticky;
  top: 80px;

  display: grid;
  place-items: center;
}

.seal-display img {
  position: relative;
  z-index: 2;

  width: min(520px, 100%);

  filter:
    drop-shadow(0 28px 50px rgba(0, 0, 0, 0.3));
}

.seal-meanings {
  display: grid;
  gap: 12px;
}

.seal-meanings article {
  padding: 22px 0;

  display: grid;
  grid-template-columns: 45px 150px 1fr;
  gap: 15px;

  border-bottom: 1px solid rgba(215, 181, 111, 0.14);
}

.seal-meanings article > span {
  color: var(--gold-soft);
  font-size: 9px;
}

.seal-meanings h3 {
  margin: 0;

  color: var(--paper);
  font-size: 1.1rem;
  font-weight: 400;
}

.seal-meanings p {
  margin: 0;
  color: rgba(250, 247, 239, 0.62);
}

.seal-pillars {
  margin: 100px auto 40px;

  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 40px;

  max-width: 900px;
}

.seal-pillars > div:not(.pillar-divider) {
  text-align: center;
}

.seal-pillars span {
  display: block;

  margin-bottom: 10px;

  color: var(--gold-soft);

  font-size: 9px;
  letter-spacing: 0.22em;
}

.seal-pillars strong {
  color: var(--paper);

  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
}

.pillar-divider {
  background:
    linear-gradient(
      transparent,
      var(--gold),
      transparent
    );
}

.seal-obligations {
  margin-top: 70px;

  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;

  color: var(--gold-soft);

  font-size: 10px;
  letter-spacing: 0.16em;
}

.seal-obligations i {
  opacity: 0.4;
}


/* ============================================================
   LEGACY
   ============================================================ */

.legacy-section {
  position: relative;

  padding: 150px 30px;

  background:
    linear-gradient(
      180deg,
      var(--ivory),
      var(--paper)
    );
}

.legacy-inner {
  max-width: 790px;
  margin: 0 auto;
  text-align: center;
}

.legacy-inner h2 {
  margin: 30px auto;

  color: var(--navy);
  font-size: clamp(2.8rem, 5vw, 5rem);
}

.legacy-inner p {
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.9;
}

.legacy-small {
  margin-top: 30px;
}

.legacy-divider {
  width: 1px;
  height: 100px;

  margin: 70px auto;

  background:
    linear-gradient(
      transparent,
      var(--gold),
      transparent
    );
}

.legacy-final {
  margin-top: 60px !important;

  color: var(--navy) !important;

  font-size: 1.4rem !important;
}

.legacy-final strong {
  color: var(--gold-deep);
  font-weight: 400;
}


/* ============================================================
   FINAL
   ============================================================ */

.final-section {
  min-height: 95vh;

  padding: 100px 30px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;

  background: var(--navy-deep);
}

.final-seal {
  width: min(330px, 70vw);
  margin-bottom: 50px;

  filter:
    drop-shadow(0 25px 45px rgba(0, 0, 0, 0.32));
}

.final-section h2 {
  margin: 20px auto;

  color: var(--paper);
  font-size: clamp(2.3rem, 4vw, 4rem);
}

.final-section p {
  color: var(--gold-soft);

  font-size: 9px;
  letter-spacing: 0.2em;
}

.return-link {
  margin-top: 50px;

  color: rgba(250, 247, 239, 0.45);

  font-size: 8px;
  letter-spacing: 0.2em;
  text-decoration: none;
}


/* ============================================================
   REVEAL ANIMATION
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(24px);

  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

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


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1000px) {

  .architecture-nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-copy {
    margin: 0 auto;
  }

  .hero-question {
    margin: 0 auto;
    text-align: left;
  }

  .hero-seal {
    width: min(500px, 82vw);
  }

  .two-column,
  .comparison-stage,
  .prose-columns,
  .possibility-layout,
  .emergence-grid,
  .world-grid,
  .seal-explainer {
    grid-template-columns: 1fr;
  }

  .definition-grid,
  .engine-grid,
  .governance-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .authority-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contract-flow {
    grid-template-columns: 1fr;
  }

  .contract-flow > i {
    transform: rotate(90deg);
    text-align: center;
  }

  .third-intelligence {
    grid-template-columns: 1fr;
  }

  .third-intelligence .plus,
  .third-intelligence .equals {
    min-height: 30px;
  }

  .seal-display {
    position: relative;
    top: auto;
  }

}


@media (max-width: 700px) {

  .architecture-header {
    padding: 20px;
  }

  .hero {
    padding:
      125px
      24px
      90px;
  }

  .section-shell {
    width: min(calc(100% - 36px), var(--max));
    padding: 90px 0;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.8rem);
  }

  h2 {
    font-size: clamp(2.4rem, 11vw, 3.8rem);
  }

  .definition-grid,
  .engine-grid,
  .governance-grid,
  .authority-grid {
    grid-template-columns: 1fr;
  }

  .circulation-stage {
    min-height: 500px;
  }

  .loop-label {
    transform: scale(0.8);
  }

  .loop-label-center {
    transform:
      translate(-50%, -50%)
      scale(0.78);
  }

  .seal-meanings article {
    grid-template-columns: 32px 1fr;
  }

  .seal-meanings article p {
    grid-column: 2;
  }

  .seal-pillars {
    grid-template-columns: 1fr;
  }

  .pillar-divider {
    width: 100%;
    height: 1px;
  }

}


/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

}
