@font-face {
  font-family: "Geist";
  src: url("../fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-21FF, U+2212, U+FEFF;
}

@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2013-2014, U+2018-201D, U+2022, U+2026;
}

:root {
  --obsidian: #08090b;
  --midnight: #0d111c;
  --pearl: #f5f5f7;
  --slate: #64748b;
  --blue: #007aff;
  --teal: #14b8a6;
  --violet: #a78bfa;
  --bg: #08090b;
  --text: #f4f5f7;
  --text-soft: #d5dbe3;
  --text-muted: #a3aec0;
  --glass: rgba(255, 255, 255, 0.045);
  --glass-strong: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(245, 245, 247, 0.14);
  --glass-border-strong: rgba(245, 245, 247, 0.28);
  --glass-highlight: rgba(255, 255, 255, 0.16);
  --header-bg: rgba(8, 9, 11, 0.72);
  --accent: #69b1ff;
  --focus: #8ec5ff;
  --thumb: rgba(255, 255, 255, 0.1);
  --orb-a: rgba(0, 122, 255, 0.34);
  --orb-b: rgba(20, 184, 166, 0.2);
  --orb-c: rgba(167, 139, 250, 0.16);
  --grid: rgba(245, 245, 247, 0.16);
  --line: rgba(245, 245, 247, 0.12);
  --sphere-node: #f5f5f7;
  --sphere-blue: #007aff;
  --sphere-teal: #14b8a6;
  --sphere-violet: #a78bfa;
  --dot: #2dd4bf;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  --font-sans: "Geist", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Geist Mono", "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
  --header-h: 4.25rem;
  --i: 2;
  --px: 72%;
  --py: 28%;
  --pointer-glow: rgba(0, 122, 255, 0.22);
  color-scheme: dark;
}

html[data-theme="light"] {
  --bg: #f5f5f7;
  --text: #101218;
  --text-soft: #243041;
  --text-muted: #3c4a5e;
  --glass: rgba(255, 255, 255, 0.66);
  --glass-strong: rgba(255, 255, 255, 0.88);
  --glass-border: rgba(16, 18, 24, 0.1);
  --glass-border-strong: rgba(16, 18, 24, 0.18);
  --glass-highlight: rgba(255, 255, 255, 0.95);
  --header-bg: rgba(245, 245, 247, 0.8);
  --accent: #0058b8;
  --focus: #0058b8;
  --thumb: #ffffff;
  --orb-a: rgba(0, 122, 255, 0.18);
  --orb-b: rgba(20, 184, 166, 0.14);
  --orb-c: rgba(167, 139, 250, 0.12);
  --grid: rgba(16, 18, 24, 0.14);
  --line: rgba(16, 18, 24, 0.1);
  --sphere-node: #121722;
  --sphere-blue: #0066cc;
  --sphere-teal: #0f766e;
  --sphere-violet: #6d5bd0;
  --dot: #0f766e;
  --shadow: 0 16px 40px rgba(20, 28, 45, 0.08);
  --pointer-glow: rgba(0, 98, 204, 0.16);
  color-scheme: light;
}

html[data-appearance="light"] { --i: 0; }
html[data-appearance="dark"] { --i: 1; }
html[data-appearance="system"] { --i: 2; }

*,
*::before,
*::after { box-sizing: border-box; }

html {
  background: var(--bg);
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100dvh;
  min-height: 100svh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

html.theme-anim body,
html.theme-anim .site-header,
html.theme-anim .glass,
html.theme-anim .icon-btn,
html.theme-anim .appearance,
html.theme-anim .text-link {
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

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

button, a { -webkit-tap-highlight-color: transparent; }

:focus { outline: none; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

::selection {
  background: color-mix(in srgb, var(--blue) 32%, transparent);
  color: var(--text);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip:focus {
  position: fixed;
  left: max(0.75rem, env(safe-area-inset-left));
  top: calc(0.75rem + env(safe-area-inset-top));
  z-index: 40;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.65rem 0.9rem;
  overflow: visible;
  clip: auto;
  white-space: normal;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
  font-size: 0.875rem;
}

.ambient,
.grid-fade {
  position: fixed;
  left: 0;
  right: 0;
  top: -70vh;
  bottom: -70vh;
  pointer-events: none;
  z-index: 0;
}

.ambient { overflow: visible; }

.orb {
  position: absolute;
  border-radius: 50%;
  filter: none;
}

.orb-a,
.orb-b,
.orb-c {
  background: radial-gradient(circle, var(--orb-a), transparent 68%);
}

.orb-a {
  width: min(78vw, 48rem);
  height: min(78vw, 48rem);
  top: 6vh;
  right: -18vw;
  animation: drift-a 32s ease-in-out infinite alternate;
}

.orb-b {
  width: min(70vw, 40rem);
  height: min(70vw, 40rem);
  left: -24vw;
  bottom: -36vh;
  background: radial-gradient(circle, var(--orb-b), transparent 68%);
  animation: drift-b 36s ease-in-out infinite alternate;
}

.orb-c {
  width: min(48vw, 28rem);
  height: min(48vw, 28rem);
  right: 4vw;
  bottom: -28vh;
  background: radial-gradient(circle, var(--orb-c), transparent 70%);
  animation: drift-c 30s ease-in-out infinite alternate;
}

.grid-fade {
  background-image: radial-gradient(var(--grid) 0.7px, transparent 0.7px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse at 72% 42%, #000 0%, transparent 58%);
  opacity: 0.35;
  transform: translate3d(calc((var(--px-num, 0.7) - 0.5) * -12px), calc((var(--py-num, 0.3) - 0.5) * -12px), 0);
}

.pointer-light {
  position: fixed;
  width: min(38rem, 70vw);
  height: min(38rem, 70vw);
  left: var(--px);
  top: var(--py);
  translate: -50% -50%;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle, var(--pointer-glow), transparent 68%);
  opacity: 0;
}

html.has-pointer .pointer-light { opacity: 1; }

.page {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.page::before,
.page::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  pointer-events: none;
}

.page::before {
  top: -40vh;
  z-index: 18;
  height: calc(40vh + env(safe-area-inset-top) + var(--header-h) + 3.25rem);
  background: linear-gradient(
    to bottom,
    var(--bg) 0,
    var(--bg) calc(40vh + env(safe-area-inset-top) + var(--header-h) * 0.55),
    transparent 100%
  );
}

.page::after { content: none; }

.shell {
  width: min(1200px, 100%);
  margin-inline: auto;
  padding-left: max(1.15rem, env(safe-area-inset-left));
  padding-right: max(1.15rem, env(safe-area-inset-right));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: transparent;
  border-bottom: 0;
}

.header-bar {
  min-height: calc(var(--header-h) + env(safe-area-inset-top));
  padding-top: calc(0.55rem + env(safe-area-inset-top));
  padding-bottom: 0.55rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  flex: none;
  color: var(--text);
}

.brand-mark path {
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
  animation: draw-mark 1.15s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.brand-mark path:nth-child(2) { animation-delay: 0.08s; }
.brand-mark path:nth-child(3) { animation-delay: 0.14s; }
.brand-mark path:nth-child(4) { animation-delay: 0.2s; }

.wordmark {
  display: none;
  font-size: 0.98rem;
  font-weight: 560;
  letter-spacing: -0.042em;
  white-space: nowrap;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-left: auto;
}

.location {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.location svg { width: 0.9rem; height: 0.9rem; flex: none; }

.location-short { display: none; }

.appearance {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 2.5rem;
  padding: 0.2rem;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 var(--glass-highlight);
}

.appearance-thumb {
  position: absolute;
  top: 0.2rem;
  bottom: 0.2rem;
  left: 0.2rem;
  width: 2.5rem;
  border-radius: 999px;
  background: var(--thumb);
  box-shadow: var(--shadow), inset 0 1px 0 var(--glass-highlight);
  transform: translateX(calc(var(--i) * 2.5rem));
  transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.appearance button {
  position: relative;
  z-index: 1;
  width: 2.5rem;
  height: 2.25rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.appearance button svg { width: 1.05rem; height: 1.05rem; }

.appearance button[aria-checked="true"] { color: var(--text); }

main {
  flex: 1;
  padding-top: clamp(1rem, 4.5vh, 3.5rem);
  padding-bottom: clamp(1.5rem, 5vh, 3.5rem);
}

.hero {
  display: grid;
  align-items: center;
  row-gap: clamp(1.25rem, 3.4vh, 2rem);
}

.sphere-stage {
  order: -1;
  position: relative;
  z-index: 2;
  width: min(100%, 22.5rem);
  margin-inline: auto;
  margin-bottom: 1.6rem;
  aspect-ratio: 1;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.sphere-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.sphere-stage canvas {
  position: absolute;
  z-index: 1;
  max-width: none;
  pointer-events: none;
  touch-action: none;
  transform-origin: 50% 50%;
  -webkit-mask-image: radial-gradient(circle closest-side at 50% 50%, #000 0 42%, rgba(0, 0, 0, 0.86) 72%, transparent 100%);
  mask-image: radial-gradient(circle closest-side at 50% 50%, #000 0 42%, rgba(0, 0, 0, 0.86) 72%, transparent 100%);
}

.sphere-stage::after {
  content: "";
  position: absolute;
  inset: -46%;
  z-index: 2;
}

.hero-copy { position: relative; z-index: 3; }

.sphere-stage { -webkit-tap-highlight-color: transparent; }

.field-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1.25rem;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin: 0;
  padding: 0 0.2rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  pointer-events: none;
}

.hint-desktop { display: none; }
.field-hint [data-hud-readout] { display: none; }

.sphere-stage.is-live .sphere-fallback {
  opacity: 0;
}

.hero-copy { min-width: 0; text-align: center; }

.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin: 0;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 450;
  letter-spacing: 0.14em;
  line-height: 1.45;
  text-transform: uppercase;
}

.eyebrow-rule {
  width: 1.6rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  flex: none;
}

.name {
  margin: 0.85rem 0 0;
  color: var(--text-soft);
  font-size: clamp(1.02rem, 0.92rem + 0.5vw, 1.2rem);
  font-weight: 520;
  letter-spacing: -0.024em;
}

.roles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.2rem 0;
  margin: 0.55rem 0 0;
  padding: 0;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.roles span:not(:last-child)::after {
  content: " ·";
  color: var(--accent);
  margin-right: 0.45rem;
}

.roles span { white-space: nowrap; }

.tilt-word { display: inline-block; will-change: transform; }

h1, h2, p { text-wrap: pretty; }

h1 {
  margin: 0.35rem 0 0;
  font-size: clamp(2.55rem, 1.15rem + 6.4vw, 5.45rem);
  line-height: 0.94;
  letter-spacing: -0.058em;
  font-weight: 560;
  text-wrap: balance;
}

.mark-period { color: var(--accent); }

.tagline {
  margin: 0.95rem 0 0;
  color: var(--text-soft);
  font-size: clamp(1.12rem, 1rem + 0.6vw, 1.5rem);
  font-weight: 460;
  letter-spacing: -0.032em;
}

.lede {
  max-width: 38rem;
  margin: 0.95rem auto 0;
  color: var(--text-muted);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.65;
}

.disciplines {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
  margin: 1.35rem 0 0;
}

.discipline,
.status,
.icon-btn,
.appearance {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.discipline {
  border-radius: 1rem;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  box-shadow: inset 0 1px 0 var(--glass-highlight);
  text-align: left;
  overflow: hidden;
}

.discipline summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.15rem 0.7rem;
  align-items: baseline;
  min-height: 2.75rem;
  padding: 0.7rem 0.85rem;
  list-style: none;
  cursor: pointer;
  color: var(--text);
}

.discipline summary::-webkit-details-marker { display: none; }

.discipline-kicker {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.discipline-name {
  font-size: 0.92rem;
  font-weight: 520;
  letter-spacing: -0.02em;
}

.discipline-note {
  margin: 0;
  padding: 0 0.9rem 0.85rem 2.35rem;
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 1.15rem auto 0;
  padding: 0.48rem 0.8rem 0.48rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  box-shadow: inset 0 1px 0 var(--glass-highlight), var(--shadow);
  color: var(--text);
  font-size: 0.84rem;
  letter-spacing: -0.01em;
}

.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--dot);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--dot) 55%, transparent);
  animation: pulse 2.6s ease-out infinite;
  flex: none;
}

.connect {
  margin-top: 1.15rem;
}

.connect h2,
.practices h2,
.practice h3 {
  margin: 0;
  font-weight: 520;
  letter-spacing: -0.03em;
}

.practices {
  margin-top: 1.35rem;
  padding-top: 0;
  border-top: 0;
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
}

.practices-head {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
  text-align: center;
}

.practices h2 {
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.85rem);
}

.practices-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.practice-grid {
  display: grid;
  gap: 0.7rem;
}

.practice {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 100%;
  padding: 1.05rem 1.05rem 0.7rem;
  border-radius: 1.15rem;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  box-shadow: inset 0 1px 0 var(--glass-highlight);
  text-align: left;
}

.practice-index {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.practice h3 {
  margin-top: 0.45rem;
  font-size: 1.15rem;
}

.practice > p:last-of-type {
  margin: 0.4rem 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.practice-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  margin-top: 0.9rem;
}

.practice-links a {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  overflow-wrap: anywhere;
  min-height: 2.25rem;
  color: var(--text);
  font-size: 0.86rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 78%;
  background-size: 0 1px;
  transition: color 0.2s ease, background-size 0.25s ease;
}

.practice-links a:hover,
.practice-links a:focus-visible {
  color: var(--accent);
  background-size: 100% 1px;
}

.text-link {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--accent);
  text-underline-offset: 0.18em;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin: 0.7rem 0 0;
  padding: 0;
  list-style: none;
}

.icon-btn {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--text);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 var(--glass-highlight);
  text-decoration: none;
}

.icon-btn svg { width: 1.15rem; height: 1.15rem; }

.site-footer {
  border-top: 0;
  padding-top: 2rem;
  padding-bottom: calc(3rem + env(safe-area-inset-bottom));
  background: transparent;
}

html.guide-ready .site-footer {
  padding-bottom: calc(5.5rem + env(safe-area-inset-bottom));
}

.footer-bar {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.footer-bar p { margin: 0; }

.footer-mark {
  color: var(--text);
  font-weight: 560;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  transition: color 0.2s ease, background-size 0.25s ease;
}

.footer-mark:hover,
.footer-mark:focus-visible {
  color: var(--accent);
  background-size: 100% 1px;
}

.missing {
  max-width: 40rem;
  margin-inline: auto;
  padding-top: clamp(2.5rem, 12vh, 7rem);
  text-align: center;
}

.missing h1 {
  font-size: clamp(2.4rem, 1.4rem + 4vw, 4.4rem);
}

.missing .text-link {
  display: inline-flex;
  margin-top: 1.25rem;
  min-height: 2.75rem;
  align-items: center;
}

@keyframes draw-mark { to { stroke-dashoffset: 0; } }

@keyframes drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-6%, 8%, 0) scale(1.08); }
}

@keyframes drift-b {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(8%, -6%, 0) scale(1.06); }
}

@keyframes drift-c {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-8%, -4%, 0) scale(1.1); }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--dot) 50%, transparent); }
  70% { box-shadow: 0 0 0 0.5rem transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

@media (max-width: 419px) {
  .location-long { display: none; }
  .location-short { display: inline; }
  .eyebrow { letter-spacing: 0.11em; font-size: 0.66rem; }
}

@media (min-width: 540px) {
  .wordmark { display: inline; }
  .disciplines { grid-template-columns: 1fr 1fr; }
  .discipline:last-child { grid-column: 1 / -1; }
  .shell {
    padding-left: max(1.5rem, env(safe-area-inset-left));
    padding-right: max(1.5rem, env(safe-area-inset-right));
  }
}

@media (min-width: 768px) {
  .sphere-stage { width: min(100%, 28rem); }
  .practices-head { text-align: left; }
  .practice-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-bar {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    gap: 1rem;
  }
}

@media (min-width: 1024px) {
  .hero {
    grid-template-columns: minmax(0, 1.08fr) minmax(18rem, 0.92fr);
    column-gap: clamp(2rem, 4vw, 4.75rem);
    align-items: end;
    min-height: 0;
  }

  .sphere-stage {
    order: 2;
    width: min(100%, 38rem);
    margin: 0 0 1.6rem auto;
  }

  .hero-copy { text-align: left; }
  .eyebrow, .roles { justify-content: flex-start; }
  .lede { margin-left: 0; margin-right: 0; }
  .socials { justify-content: flex-start; }
  .disciplines { grid-template-columns: 1fr 1fr; }
  .hint-touch { display: none; }
  .hint-desktop, .field-hint [data-hud-readout] { display: inline; }
  .field-hint { justify-content: space-between; }
  .status { margin-left: 0; margin-right: 0; }
}

@media (orientation: landscape) and (max-height: 520px) {
  main { padding-top: 0.75rem; padding-bottom: 1rem; }
  .hero {
    grid-template-columns: minmax(0, 1.2fr) minmax(8.5rem, 0.72fr);
    column-gap: 1rem;
    align-items: center;
  }
  .hero-copy { order: 1; text-align: left; }
  .sphere-stage {
    order: 2;
    width: min(46vh, 100%);
    margin: 0 0 0 auto;
  }
  .eyebrow { justify-content: flex-start; }
  h1 { font-size: clamp(1.85rem, 6.4vh, 2.7rem); }
  .lede, .status { margin-left: 0; margin-right: 0; }
  .roles, .socials { justify-content: flex-start; }
  .connect { margin-top: 1rem; }
}

@media (hover: hover) and (pointer: fine) {
  .discipline,
  .icon-btn,
  .text-link,
  .appearance button { transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease; }

  .discipline:hover,
  .icon-btn:hover {
    transform: translateY(-2px);
    border-color: var(--glass-border-strong);
  }

  .appearance button:hover { color: var(--text); }
  .icon-btn:active { transform: translateY(0) scale(0.98); }
}

@media (pointer: coarse) {
  .appearance { grid-auto-columns: 2.75rem; }
  .appearance-thumb {
    width: 2.75rem;
    transform: translateX(calc(var(--i) * 2.75rem));
  }
  .appearance button { width: 2.75rem; height: 2.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  .pointer-light { display: none; }
  .tilt-word { transform: none !important; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .brand-mark path {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
  }

  .sphere-stage.is-live .sphere-fallback { opacity: 0; }
}

@media (prefers-contrast: more) {
  :root, html[data-theme="dark"] {
    --text-muted: #d5dbe3;
    --glass-border: rgba(245, 245, 247, 0.45);
  }
  html[data-theme="light"] {
    --text-muted: #1c2430;
    --glass-border: rgba(16, 18, 24, 0.45);
  }
}

@media (forced-colors: active) {
  .status-dot { background: CanvasText; }
  .appearance, .icon-btn, .discipline, .status { border: 1px solid CanvasText; }
  .appearance-thumb { background: Canvas; }
}

@media print {
  .ambient, .grid-fade, .appearance, .sphere-stage, .guide { display: none !important; }
  body, .site-header { background: #fff; color: #000; }
  .site-header { position: static; }
  a { text-decoration: underline; }
}

@supports not selector(:focus-visible) {
  :focus { outline: 2px solid var(--focus); outline-offset: 3px; }
}

.guide {
  position: fixed;
  z-index: 36;
  right: max(0.85rem, env(safe-area-inset-right));
  bottom: max(0.85rem, env(safe-area-inset-bottom));
}

.guide-launch,
.guide-close,
.guide-send,
.guide-chip {
  font: inherit;
  color: var(--text);
  cursor: pointer;
}

.guide-launch {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 3rem;
  padding: 0 0.9rem 0 0.72rem;
  border: 1px solid var(--glass-border-strong);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  box-shadow: var(--shadow), inset 0 1px 0 var(--glass-highlight);
  backdrop-filter: blur(16px);
}

.guide-mark {
  font-size: 0.84rem;
  font-weight: 580;
  letter-spacing: -0.04em;
}

.guide-launch svg,
.guide-close svg { width: 1.15rem; height: 1.15rem; }

.guide-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.65rem);
  display: flex;
  flex-direction: column;
  width: min(24rem, calc(100vw - 1.7rem));
  max-height: min(34rem, calc(100dvh - 7rem));
  overflow: hidden;
  border: 1px solid var(--glass-border);
  border-radius: 1.2rem;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  box-shadow: var(--shadow), inset 0 1px 0 var(--glass-highlight);
  backdrop-filter: blur(18px);
}

.guide-panel[hidden] { display: none; }

.guide-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.75rem 0.55rem 0.9rem;
}

.guide-id { display: flex; align-items: center; gap: 0.65rem; min-width: 0; }

.guide-trace { display: block; width: 4.2rem; height: 1.4rem; flex: 0 0 auto; }

.guide-kicker,
.guide-signal {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.guide-head h2 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 540;
  letter-spacing: -0.03em;
}

.guide-close {
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
}

.guide-log {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-height: 8rem;
  padding: 0.2rem 0.9rem 0.7rem;
  overflow: auto;
  overscroll-behavior: contain;
}

.guide-msg {
  max-width: 92%;
  padding: 0.65rem 0.75rem;
  border-radius: 0.9rem;
}

.guide-msg.is-guide {
  align-self: flex-start;
  background: var(--glass);
  border: 1px solid var(--glass-border);
}

.guide-msg.is-user {
  align-self: flex-end;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
}

.guide-copy { margin: 0.2rem 0 0; font-size: 0.92rem; line-height: 1.45; }
.guide-line {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 540;
  letter-spacing: -0.03em;
  line-height: 1.35;
}
.guide-line + .guide-copy { margin-top: 0.35rem; }
.guide-signal + .guide-copy { margin-top: 0.28rem; }
.guide-copy + .guide-copy { margin-top: 0.45rem; }

.guide-copy a {
  color: var(--text);
  text-decoration-line: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 0.16em;
}

.guide-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0 0.9rem 0.7rem;
}

.guide-chip {
  min-height: 2rem;
  padding: 0.2rem 0.65rem;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: transparent;
  color: var(--text-soft);
  font-size: 0.78rem;
}

.guide-form {
  display: flex;
  gap: 0.4rem;
  padding: 0.15rem 0.7rem 0.7rem;
}

.guide-form input {
  flex: 1;
  min-width: 0;
  min-height: 2.75rem;
  padding: 0 0.8rem;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: var(--glass);
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
}

.guide-form input::placeholder { color: var(--text-muted); }

.guide-send {
  min-height: 2.75rem;
  padding: 0 0.9rem;
  border: 0;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: 0.86rem;
  font-weight: 560;
}

.guide-dots {
  width: 2.1rem;
  height: 0.42rem;
  margin: 0.35rem 0 0.1rem;
  background: radial-gradient(circle, var(--accent) 42%, transparent 46%) 0 50% / 0.7rem 0.42rem repeat-x;
  animation: guide-read 0.8s linear infinite;
}

@keyframes guide-read {
  to { background-position: 0.7rem 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .guide-launch, .guide-panel { backdrop-filter: none; }
}

@media (max-width: 540px) {
  .guide-panel {
    width: calc(100vw - 1.35rem);
    max-height: min(32rem, calc(100dvh - 6.25rem));
  }
  .guide-log { min-height: 7rem; }
  .guide-chip { font-size: 0.75rem; }
}

@media (hover: hover) and (pointer: fine) {
  .guide-launch:hover,
  .guide-chip:hover { border-color: var(--glass-border-strong); }
  .guide-send:hover { transform: translateY(-1px); }
}

@media (forced-colors: active) {
  .guide-panel, .guide-launch, .guide-chip, .guide-form input {
    border: 1px solid CanvasText;
  }
}
