:root {
  color-scheme: light;
  --paper: #faf8f3;
  --plum: #34203b;
  --plum-soft: #65476d;
  --gold: #86652e;
  --muted: #6c636d;
  --line: #e4dfe3;
  --sans: "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

* { box-sizing: border-box; }
img, svg { max-width: 100%; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
body { margin: 0; background: var(--paper); color: var(--plum); font-family: var(--sans); font-size: 16px; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
::selection { background: #e4d5b6; color: var(--plum); }
[hidden] { display: none !important; }
.container { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 10; top: 12px; left: 12px; padding: 14px 20px; background: var(--plum); color: white; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* Show the complete name at first contact, with AI highlighted in the wordmark. */
.hero { background: radial-gradient(ellipse at 10% 60%, #ede6ee66, transparent 48%), var(--paper); }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-block: 18px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { display: block; object-fit: contain; flex-shrink: 0; }
.masthead .brand { min-width: 0; max-width: 100%; }
.brand-copy { display: grid; gap: 3px; min-width: 0; }
.brand-name { font-size: 29px; font-weight: 700; line-height: 1.15; letter-spacing: 1.5px; text-decoration: none; }
.brand-ai { color: var(--gold); }
.brand-expansion { font-size: 15px; line-height: 1.45; color: var(--plum-soft); }
.brand-expansion strong { color: var(--plum); font-weight: 800; }
.hero-layout { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); align-items: center; gap: 20px; padding-block: 12px 20px; }
.hero-copy { min-width: 0; max-width: 460px; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 650; letter-spacing: .9px; text-transform: uppercase; line-height: 1.5; }
.accent-line { width: 22px; height: 2px; background: var(--gold); flex-shrink: 0; }
h1 { margin-top: 12px; font-size: clamp(38px, 4.1vw, 56px); line-height: 1.08; letter-spacing: -2px; font-weight: 550; }
h1 > span { font-family: var(--serif); font-weight: 400; font-style: italic; color: var(--plum-soft); letter-spacing: -1.8px; }
.hero-subtitle { max-width: 620px; margin-top: 18px; font-size: 18px; line-height: 1.55; }
.hero-purpose { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.hero-purpose h2 { font-size: 20px; font-weight: 600; line-height: 1.4; text-wrap: balance; }
.hero-purpose h2 > span { color: var(--plum-soft); font-family: var(--serif); font-style: italic; font-weight: 400; }
.hero-purpose > p { margin-top: 8px; color: var(--muted); font-size: 16px; line-height: 1.65; text-wrap: pretty; }

/* The larger, open figure connects the PRAISER identity to its five themes. */
.connection-visual { min-width: 0; width: 100%; max-width: 660px; justify-self: start; margin: 0; color: var(--plum); }
.constellation-stage { position: relative; width: 100%; aspect-ratio: 1; perspective: 1000px; }
.constellation { position: relative; width: 100%; aspect-ratio: 1; transform-style: preserve-3d; transform: rotateX(var(--scene-x, 12deg)) rotateY(var(--scene-y, -10deg)) rotateZ(-3deg) scale(.94); transition: transform .28s ease-out; }
.connection-map { position: relative; z-index: 1; width: 100%; height: 100%; display: block; }
/* Ripples start at the sphere's diameter and flatten into a receding pond plane. */
.pond-ripples { position: absolute; inset: 0; pointer-events: none; }
.pond-ripples::before { content: ""; position: absolute; left: 33%; top: 60%; width: 34%; height: 8%; border-radius: 50%; background: radial-gradient(ellipse, #34203b24, transparent 70%); transform: rotate(-12deg); }
.pond-ripples > span { position: absolute; inset: 34%; border-radius: 50%; opacity: 0; transform-origin: center; background: radial-gradient(closest-side, transparent 86%, #ecdcc43d 90%, #dec79b99 94%, #e6d9ea66 97%, transparent 100%); }
.motion-enabled .pond-ripples > span { animation: pond-ripple 4.8s linear infinite; }
.motion-enabled .pond-ripples > span:nth-child(2) { animation-delay: -1.6s; }
.motion-enabled .pond-ripples > span:nth-child(3) { animation-delay: -3.2s; }
.map-guides { fill: none; stroke: var(--plum-soft); stroke-width: 1.5; opacity: .45; }
.map-guides > path { stroke-dasharray: 2 8; }
.map-connections { fill: none; stroke: url(#connection); stroke-width: 2.3; }
.map-connections .perimeter { opacity: .65; stroke-width: 1.6; stroke-dasharray: 4 7; }
.map-connections > .is-active { stroke: var(--plum); stroke-width: 4; }
.motion-enabled .map-connections > .is-active { stroke-dasharray: 9 7; animation: signal 1.5s linear infinite; }
.orbit-track { fill: none; stroke: var(--gold); stroke-width: 2; stroke-dasharray: 2 7; opacity: .7; }
/* JavaScript drives the satellite and wordmark from the same animation clock. */
.map-orbit { transform-origin: 280px 280px; transform: rotate(var(--satellite-angle, -74.475889deg)); }
.satellite-frame, .satellite-antenna { fill: none; stroke: var(--gold); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.satellite-panel { fill: var(--plum); stroke: var(--gold); stroke-width: 1.8; }
.satellite-grid { fill: none; stroke: #d7b874; stroke-width: 1.1; }
.satellite-body { fill: var(--paper); stroke: var(--gold); stroke-width: 2.2; }
.orbit-satellite { transform-origin: 280px 78px; transform: scale(var(--satellite-depth, 1)); filter: drop-shadow(0 3px 2px #34203b40); }
.map-nodes { fill: #a0803d; stroke: var(--paper); stroke-width: 3; }
.map-nodes > .is-active { fill: var(--plum); stroke: #b79b60; stroke-width: 4; }
.node-leaders { fill: none; stroke: var(--gold); stroke-width: 2.3; stroke-linecap: round; }
.praiser-core { position: absolute; z-index: 2; top: 50%; left: 50%; width: 32%; aspect-ratio: 1; padding: 0; border-radius: 50%; transform: translate(-50%, -50%) translateZ(18px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--plum); background: radial-gradient(circle at 30% 24%, #fffdf9 5%, #f5efe5 38%, #e0d3df 70%, #b9a4bf 100%); border: 2px solid #a0803d; box-shadow: inset 5px 6px 12px #fffdf9b3, inset -8px -10px 18px #34203b24, 0 0 0 7px #9a7daa0d, 0 12px 24px #34203b24; }
.core-emblem { position: relative; display: block; width: 66px; height: 77px; flex-shrink: 0; transform-origin: center 75%; }
.praiser-core img { display: block; width: 100%; height: 100%; object-fit: contain; }
/* Light moves through the original P while the surrounding pond carries its ripples. */
.core-emblem::after { content: ""; display: none; position: absolute; inset: 0; pointer-events: none; opacity: 0; background: linear-gradient(115deg, transparent 32%, #efd18cb3 45%, #fff6d9cc 50%, #efd18cb3 55%, transparent 68%); background-size: 240% 100%; background-position: 160% 0; }
@supports (mask-image: url("assets/praiser-emblem.png")) or (-webkit-mask-image: url("assets/praiser-emblem.png")) {
  .core-emblem::after { display: block; -webkit-mask: url("assets/praiser-emblem.png") center / contain no-repeat; mask: url("assets/praiser-emblem.png") center / contain no-repeat; }
}
.praiser-core::after { content: ""; position: absolute; inset: 3%; border-radius: 50%; pointer-events: none; background: radial-gradient(ellipse at 30% 19%, #fffdf980, transparent 40%); }
.motion-enabled .core-emblem { animation: logo-breathe 4s ease-in-out infinite; }
.motion-enabled .core-emblem::after { animation: logo-light 4s ease-in-out infinite; }
.praiser-core:disabled { cursor: default; opacity: 1; }
.praiser-core:focus-visible { outline: 3px solid var(--plum); outline-offset: 5px; }
.praiser-core[aria-pressed="true"] { border-color: var(--plum); }
.motion-enabled .praiser-core { animation: sphere-float 4.8s ease-in-out infinite; }
.core-wordmark { display: inline-flex; align-items: baseline; white-space: nowrap; font-size: 20px; font-weight: 750; line-height: 1.2; letter-spacing: 1px; }
.wordmark-part { display: inline-block; transform-origin: center bottom; }
.wordmark-part.is-active { color: var(--gold); text-shadow: 0 0 8px #d4b57455; }
.motion-enabled .wordmark-part.is-active { animation: letter-emphasis 1s ease-in-out infinite; }
.discipline { position: absolute; z-index: 3; --node-gap: 2.5%; left: var(--node-x); top: calc(var(--node-y) - var(--node-gap)); translate: -50% -100%; min-height: 44px; padding: 8px 12px; color: var(--plum); border: 1px solid #65476d55; border-radius: 24px; background: var(--paper); font-size: 16px; font-weight: 600; line-height: 1.2; white-space: nowrap; transition: background .3s, border-color .3s, color .3s; }
.discipline:disabled { cursor: default; opacity: 1; }
.discipline:hover, .discipline.is-active { background: var(--plum); border-color: var(--plum); color: var(--paper); }
.discipline:focus-visible { outline-color: var(--gold); }
/* Match each label to its SVG dot in the same square coordinate system. */
.ai { --node-x: 50%; --node-y: 20%; }
.sustaining { --node-x: 82.142857%; --node-y: 41.071429%; }
.education { --node-x: 71.428571%; --node-y: 75%; }
.research { --node-x: 28.571429%; --node-y: 75%; }
.practice { --node-x: 17.857143%; --node-y: 41.071429%; }
.education, .research { top: calc(var(--node-y) + var(--node-gap)); translate: -50% 0; }
.discipline-detail { margin: 0 12px 4px; padding: 8px 0; text-align: center; }
.detail-copy { min-height: 60px; }
.detail-title { font-size: 19px; line-height: 1.3; font-weight: 600; color: var(--plum); }
.detail-description { margin-top: 5px; font-size: 16px; line-height: 1.5; color: var(--plum-soft); }
.static-disciplines { margin: 0; padding: 0 17px 16px; }
.static-disciplines > div { margin-top: 12px; }
.static-disciplines dt { color: var(--plum); font-weight: 600; }
.static-disciplines dd { margin: 4px 0 0; line-height: 1.5; }
.motion-paused .discipline, .motion-paused .praiser-core, .motion-paused .core-emblem, .motion-paused .core-emblem::after, .motion-paused .pond-ripples > span, .motion-paused .wordmark-part, .motion-paused .map-connections > .is-active { animation-play-state: paused; }

.site-footer { border-top: 1px solid var(--line); }
.footer-layout { display: flex; align-items: center; gap: 24px; padding-block: 16px; }
.footer-brand { gap: 9px; }
.footer-brand > span { font-size: 18px; font-weight: 650; letter-spacing: 1.5px; }
.footer-layout > p { color: var(--muted); font-size: 14px; line-height: 1.5; }
.copyright { color: var(--muted); font-size: 14px; margin-left: auto; white-space: nowrap; }

@keyframes letter-emphasis { 0%, 100% { transform: translateY(0) scale(1); } 40% { transform: translateY(-2px) scale(1.08); } }
@keyframes signal { to { stroke-dashoffset: -32; } }
@keyframes sphere-float { 0%, 100% { transform: translate(-50%, -50%) translateZ(18px) translateY(0); } 50% { transform: translate(-50%, -50%) translateZ(18px) translateY(-3px); } }
@keyframes logo-breathe { 0%, 100% { transform: translateY(0) scale(1); } 45% { transform: translateY(-2px) scale(1.055); } }
@keyframes logo-light { 0%, 12% { opacity: 0; background-position: 160% 0; } 24% { opacity: .85; } 65% { opacity: .85; background-position: -65% 0; } 78%, 100% { opacity: 0; background-position: -65% 0; } }
@keyframes pond-ripple {
  0% { opacity: 0; transform: rotate(-12deg) rotateX(0deg) scale(1); }
  12% { opacity: .62; }
  50% { opacity: .28; }
  100% { opacity: 0; transform: rotate(-12deg) rotateX(48deg) scale(3); }
}
@keyframes entrance { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .hero-copy { animation: entrance .7s ease-out both; }
}
/* Offset the diagram's internal top inset without changing its square geometry. */
@media (min-width: 761px) {
  .constellation-stage { margin-block-start: clamp(-40px, -4vw, -24px); }
}
@media (max-width: 1100px) {
  .hero-layout { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 16px; }
  h1 { font-size: clamp(42px, 4.6vw, 50px); }
  .hero-subtitle { font-size: 17px; }
  .praiser-core { gap: 6px; }
  .core-emblem { width: 52px; height: 61px; }
  .core-wordmark { font-size: 16px; letter-spacing: .7px; }
}
@media (max-width: 900px) {
  .container { width: calc(100% - 40px); }
  .masthead { flex-wrap: wrap; gap: 10px 20px; padding-block: 15px; }
}
@media (max-width: 760px) {
  .hero-layout { grid-template-columns: 1fr; align-items: start; gap: 12px; padding-block: 16px 20px; }
  .hero-copy { max-width: 680px; }
  h1 { font-size: clamp(38px, 6.5vw, 53px); }
  .hero-subtitle { margin-top: 14px; }
  .connection-visual { max-width: 460px; justify-self: center; }
}
@media (max-width: 560px) {
  .container { width: calc(100% - 32px); }
  .masthead .brand { align-items: flex-start; gap: 10px; }
  .masthead .brand img { width: 36px; height: 42px; }
  .brand-name { font-size: 27px; }
  .brand-expansion { max-width: 360px; font-size: 15px; }
  h1 { font-size: clamp(34px, 8.3vw, 44px); letter-spacing: -1.5px; }
  h1 > span { letter-spacing: -1.2px; }
  .hero-subtitle { font-size: 17px; }
  .constellation { aspect-ratio: 1; }
  .praiser-core { gap: 5px; }
  .core-emblem { width: 44px; height: 51px; }
  .core-wordmark { font-size: 15px; }
  .discipline { padding: 7px 9px; font-size: 14px; }
  .detail-copy { min-height: 78px; }
  .footer-layout { flex-wrap: wrap; gap: 10px 20px; }
  .footer-layout > p { order: 3; width: 100%; }
}
@media (min-width: 761px) and (max-width: 1024px) {
  .container { width: calc(100% - 48px); }
  .hero-layout { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 20px; padding-block: 12px 20px; }
  h1 { font-size: clamp(34px, 4.1vw, 42px); }
  .hero-subtitle { font-size: 16px; line-height: 1.6; }
  .connection-visual { max-width: 540px; }
}
@media (max-width: 380px) {
  h1 { font-size: 34px; }
  .praiser-core { gap: 4px; }
  .core-emblem { width: 36px; height: 42px; }
  .core-wordmark { font-size: 14px; letter-spacing: .5px; }
}
@media (orientation: landscape) and (max-height: 600px) and (min-width: 640px) {
  .hero-layout { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; gap: 16px; padding-block: 8px 16px; }
  .constellation-stage { margin-block-start: -16px; }
  h1 { font-size: clamp(34px, 4vw, 46px); }
  .hero-subtitle { font-size: 16px; }
  .connection-visual { max-width: 380px; justify-self: center; }
  .core-emblem { width: 44px; height: 51px; }
  .praiser-core { gap: 5px; }
  .core-wordmark { font-size: 15px; letter-spacing: .5px; }
  .discipline { font-size: 14px; padding: 7px 9px; }
  .detail-title { font-size: 17px; }
  .detail-description { font-size: 15px; }
  .detail-copy { min-height: 74px; }
}
@media (hover: none), (pointer: coarse) {
  .constellation { transform: rotateX(8deg) rotateY(-6deg) rotateZ(-3deg) scale(.94); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .constellation { transform: none; }
}
