@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

@view-transition {
  navigation: auto;
}

:root {
  --bg: #08080a;
  --surface: #111114;
  --surface-soft: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(201, 169, 110, 0.22);
  --text: #ece7dc;
  --text-secondary: #c8c0b1;
  --text-muted: #948d81;
  --gold: #c9a96e;
  --gold-bright: #e2c58a;
  --danger: #b86f6f;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --content-width: min(78vw, 1180px);
  --wide-width: min(86vw, 1360px);
  --hero-width: min(78vw, 1180px);
  --section-gap: clamp(2.6rem, 6vw, 4.75rem);
  --section-padding: clamp(1.5rem, 3vw, 2.35rem);
  --hero-gap: clamp(1rem, 2vw, 1.5rem);
  --panel-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  background: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 0%, rgba(201, 169, 110, 0.16), transparent 28%),
    radial-gradient(circle at 15% 20%, rgba(226, 197, 138, 0.08), transparent 24%),
    radial-gradient(circle at 85% 18%, rgba(123, 101, 74, 0.12), transparent 22%),
    linear-gradient(180deg, #09090b 0%, #08080a 100%);
  color: var(--text);
  font-family: var(--sans);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 128px 128px;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.2;
  background:
    linear-gradient(180deg, rgba(201, 169, 110, 0.08), transparent 18%, transparent 82%, rgba(201, 169, 110, 0.04)),
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.02) 0,
      rgba(255, 255, 255, 0.02) 1px,
      transparent 1px,
      transparent calc(100% / 12)
    );
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 88%);
}

body[data-time-phase="dawn"] {
  --gold: #d6b77b;
  --gold-bright: #ebcf98;
}

body[data-time-phase="day"]::after {
  opacity: 0.14;
}

body[data-time-phase="dusk"] {
  --gold: #d0a86e;
  --gold-bright: #e7be83;
}

body[data-time-phase="night"]::after {
  opacity: 0.24;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.practitioner-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.practitioner-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 8%, rgba(226, 197, 138, 0.12), transparent 20%),
    linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.03) 50%, transparent 100%);
  opacity: 0.4;
}

.practitioner-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(8, 8, 10, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.practitioner-header-inner {
  width: var(--wide-width);
  margin: 0 auto;
  padding: 1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.practitioner-wordmark {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.practitioner-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem;
}

.practitioner-nav a {
  font-size: 0.86rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.practitioner-nav a:hover,
.practitioner-nav a[aria-current="page"] {
  color: var(--gold-bright);
}

.practitioner-nav .legacy-link {
  padding-left: 1rem;
  border-left: 1px solid var(--border);
}

.page-main {
  width: var(--content-width);
  margin: 0 auto;
  padding: 5rem 0 6rem;
  display: grid;
  gap: var(--section-gap);
}

.page-main--wide {
  width: var(--wide-width);
}

.page-hero {
  display: grid;
  gap: 1.2rem;
  width: var(--hero-width);
  padding-top: clamp(0.4rem, 1vw, 0.8rem);
  justify-self: center;
}

.page-hero--home {
  width: min(86vw, 1320px);
  gap: 1.4rem;
}

.page-hero > .eyebrow,
.page-hero > .page-title,
.page-hero > .page-subtitle,
.page-hero > .lede {
  margin-inline: auto;
}

.page-hero > .eyebrow,
.page-hero > .page-title,
.page-hero > .page-subtitle,
.page-hero > .lede {
  margin-block: 0;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-bright);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--gold-dim);
  flex-shrink: 0;
}

.page-title,
.section-title,
.card-title,
.chat-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  letter-spacing: -0.025em;
  color: var(--text);
  text-wrap: balance;
}

.page-title {
  font-size: clamp(3rem, 5.5vw, 5.4rem);
  line-height: 1.04;
  max-width: none;
  width: 100%;
  margin-inline: auto;
  text-align: center;
}

.page-hero--home .page-title {
  font-size: clamp(3.6rem, 7vw, 6.4rem);
  line-height: 0.98;
}

.page-hero--home .page-subtitle {
  max-width: 68rem;
  font-size: 1.18rem;
}

.page-hero--home .lede {
  max-width: 72rem;
  font-size: 1.12rem;
}

.page-subtitle {
  margin: 0;
  color: var(--text-secondary);
  font-family: var(--serif);
  font-style: normal;
  font-weight: 400;
  font-size: 1.1rem;
  line-height: 1.85;
  max-width: 56rem;
  text-align: center;
}

.lede,
.section-copy,
.card-copy,
.chat-copy,
.form-copy,
.form-help,
.success-copy,
.footer-copy {
  color: var(--text-secondary);
  line-height: 1.8;
}

.lede {
  margin: 1.5rem 0 0;
  font-size: 1.08rem;
  max-width: 58ch;
  margin-inline: auto;
  text-align: center;
}

.essay {
  display: grid;
  gap: var(--section-gap);
}

.essay-section {
  position: relative;
  padding: var(--section-padding);
  border: 1px solid var(--border);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0.02)),
    var(--surface-soft);
  box-shadow: var(--panel-shadow);
}

.essay-section::before,
.section-block::before {
  content: attr(data-section-label);
  display: block;
  margin-bottom: 0.9rem;
  color: var(--gold);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.essay-section:not([data-section-label])::before,
.section-block:not([data-section-label])::before {
  display: none;
}

.essay-section h2 {
  margin: 0 0 0.85rem;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 500;
  color: var(--text);
}

.essay-section p {
  margin: 0 0 1rem;
  color: var(--text-secondary);
  line-height: 1.85;
}

.pull-quote {
  margin: 1.75rem 0;
  padding: 1.2rem 1.25rem 1.2rem 1.35rem;
  border-left: 2px solid var(--border-strong);
  border-radius: 0 18px 18px 0;
  background: rgba(201, 169, 110, 0.06);
  color: var(--gold-bright);
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.35;
}

.cta-row,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
  justify-content: center;
}

.button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  min-height: 2.9rem;
  padding: 0.78rem 1.2rem;
  transition: transform 0.24s var(--ease-out), border-color 0.24s ease, background 0.24s ease, color 0.24s ease;
}

.button {
  background: var(--gold);
  color: #16130f;
  font-weight: 700;
}

.button:hover {
  background: var(--gold-bright);
  transform: translateY(-1px);
}

.button-secondary {
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.button-secondary:hover {
  border-color: var(--border-strong);
  color: var(--text);
  transform: translateY(-1px);
}

.signal-note {
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 54ch;
  text-align: center;
}

.card-grid,
.offering-grid,
.science-grid,
.process-grid,
.faq-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.card-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.offering-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.process-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

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

.card,
.offering-card,
.chat-shell,
.intake-shell,
.science-card,
.notice-panel,
.process-step,
.faq-item {
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.015)),
    var(--surface-soft);
  border-radius: 18px;
  padding: 1.3rem;
  box-shadow: var(--panel-shadow);
}

.card-title,
.offering-card h2,
.notice-panel h2 {
  font-size: 1.5rem;
}

.card-kicker {
  margin: 0 0 0.6rem;
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-block + .section-block {
  margin-top: 0;
}

.section-block {
  position: relative;
  padding: var(--section-padding);
  border: 1px solid var(--border);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0.02)),
    var(--surface-soft);
  box-shadow: var(--panel-shadow);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
}

.section-title--feature {
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  line-height: 1.02;
}

.section-block > .section-title,
.section-block > .section-copy {
  max-width: 44rem;
}

.section-block > .section-copy {
  margin: 0.9rem 0 0;
}

.section-block > .cta-row:first-of-type,
.section-block > .button-row:first-of-type {
  justify-content: flex-start;
}

.page-main > .cta-row:first-of-type,
.page-main > .button-row:first-of-type {
  margin-top: 0;
}

.page-main > .signal-note:first-of-type,
.page-main > .signal-note:nth-of-type(2) {
  margin-top: -1.25rem;
}

.details-list {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.details-list li + li {
  margin-top: 0.5rem;
}

.science-card summary {
  list-style: none;
  cursor: pointer;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
}

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

.faq-item[open] {
  border-color: var(--border-strong);
}

.faq-item .plain-answer {
  margin: 0.75rem 0 0;
  color: var(--text-secondary);
  line-height: 1.75;
}

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

.science-card[open] {
  border-color: var(--border-strong);
}

.science-card .plain-answer {
  margin: 0.65rem 0 0;
  color: var(--text-secondary);
}

.science-card .science-body {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.science-link {
  display: inline-block;
  margin-top: 0.9rem;
  color: var(--gold-bright);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 1rem;
  align-items: start;
}

.chat-shell {
  min-height: 32rem;
  display: flex;
  flex-direction: column;
}

.chat-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.chat-head-meta {
  display: grid;
  gap: 0.45rem;
  justify-items: end;
}

.chat-title {
  font-size: 2rem;
}

.chat-status {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: right;
}

.runtime-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.32rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(201, 169, 110, 0.22);
  background: rgba(201, 169, 110, 0.08);
  color: var(--gold-bright);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.runtime-indicator[data-runtime-provider="gemini"] {
  border-color: rgba(201, 169, 110, 0.32);
  background: rgba(201, 169, 110, 0.12);
  color: var(--gold-bright);
}

.runtime-indicator[data-runtime-provider="anthropic"] {
  border-color: rgba(160, 191, 228, 0.28);
  background: rgba(160, 191, 228, 0.1);
  color: #d6e4ff;
}

.runtime-indicator[data-runtime-provider="fallback"] {
  border-color: rgba(184, 111, 111, 0.28);
  background: rgba(184, 111, 111, 0.12);
  color: #f2d7d7;
}

.chat-messages {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.1rem 0;
}

.chat-message {
  max-width: 42rem;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.chat-message--assistant {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.chat-message--user {
  margin-left: auto;
  background: rgba(201, 169, 110, 0.12);
  border: 1px solid rgba(201, 169, 110, 0.2);
  color: var(--text);
}

.chat-form {
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.chat-form textarea,
.intake-form input,
.intake-form textarea,
.intake-form select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.18);
  color: var(--text);
  padding: 0.9rem 1rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.chat-form textarea:focus,
.intake-form input:focus,
.intake-form textarea:focus,
.intake-form select:focus {
  border-color: var(--border-strong);
}

.chat-form textarea {
  min-height: 7rem;
  resize: vertical;
}

.chat-actions {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.side-panel {
  display: grid;
  gap: 1rem;
}

.notice-panel p,
.notice-panel li {
  color: var(--text-secondary);
  line-height: 1.75;
}

.notice-panel ul {
  margin: 1rem 0 0;
  padding-left: 1rem;
}

.intake-shell {
  display: grid;
  gap: 1.5rem;
}

.intake-form {
  display: grid;
  gap: 1rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.field-block {
  display: grid;
  gap: 0.45rem;
}

.field-block label {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
}

.success-copy,
.error-copy {
  margin: 0;
  padding: 0.9rem 1rem;
  border-radius: 14px;
}

.success-copy {
  border: 1px solid rgba(201, 169, 110, 0.24);
  background: rgba(201, 169, 110, 0.08);
}

.error-copy {
  color: #f2d7d7;
  border: 1px solid rgba(184, 111, 111, 0.28);
  background: rgba(184, 111, 111, 0.12);
}

.practitioner-footer {
  width: var(--wide-width);
  margin: 0 auto;
  padding: 0 0 2rem;
}

.footer-line {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: space-between;
}

.footer-meta {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
}

.footer-company,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.footer-company {
  flex-direction: column;
}

.footer-label {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-links a {
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-links a[aria-current="page"] {
  color: var(--gold-bright);
}

.domains-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.domains-stat,
.domains-stat-card,
.domains-mini-card,
.domains-link-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.015)),
    var(--surface-soft);
  box-shadow: var(--panel-shadow);
}

.domains-stat {
  padding: 1rem 1.1rem;
}

.domains-stat-label,
.domains-rail-label {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.domains-stat-value {
  display: block;
  margin-top: 0.45rem;
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 500;
}

.domains-lens-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.domains-lens-btn {
  min-height: 2.6rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--text-secondary);
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.domains-lens-btn:hover,
.domains-lens-btn.is-active {
  border-color: var(--border-strong);
  color: var(--text);
  transform: translateY(-1px);
}

.domains-shell {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.domains-rail,
.domains-panel {
  border: 1px solid var(--border);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.015)),
    var(--surface-soft);
  box-shadow: var(--panel-shadow);
}

.domains-rail {
  padding: 1rem;
  display: grid;
  gap: 1rem;
}

.domains-rail-head {
  display: grid;
  gap: 0.35rem;
}

.domains-rail-copy,
.workbench-empty,
.workbench-empty-rail,
.workbench-subempty {
  color: var(--text-muted);
  line-height: 1.7;
}

.domains-list {
  display: grid;
  gap: 0.75rem;
}

.domains-rail-group {
  display: grid;
  gap: 0.65rem;
}

.domains-row-button {
  width: 100%;
  display: grid;
  gap: 0.2rem;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.18);
  color: var(--text-secondary);
  padding: 0.9rem 1rem;
  transition: border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.domains-row-button:hover,
.domains-row-button.is-active {
  border-color: var(--border-strong);
  color: var(--text);
  transform: translateY(-1px);
}

.domains-row-index,
.domains-row-meta,
.domains-row-region {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.domains-row-title {
  color: var(--text);
  font-weight: 600;
}

.domains-panel {
  padding: 1.2rem;
}

.domains-panel-sub {
  padding: 1rem;
}

.domains-panel-sub h3,
.domains-mini-card h3 {
  margin: 0 0 0.55rem;
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
}

.domains-grid,
.domains-triplet,
.domains-three-up {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.domains-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.domains-triplet,
.domains-three-up {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.domains-meta,
.domains-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.domains-badge,
.domains-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2rem;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  font-size: 0.78rem;
}

.domains-badge strong,
.domains-link-head strong {
  color: var(--text);
}

.domains-stat-card,
.domains-mini-card {
  padding: 1rem;
}

.domains-stat-card h3 {
  margin: 0 0 0.4rem;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.domains-stat-card p,
.domains-mini-card p,
.domains-link-card p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.7;
}

.domains-link-card {
  padding: 1rem;
}

.domains-link-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
  margin-bottom: 0.6rem;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.access-shell,
.trust-grid,
.trust-reference-list,
.spec-sheet,
.spec-table,
.spec-actions {
  display: grid;
  gap: 1rem;
}

.access-shell {
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.7fr);
  align-items: start;
}

.access-panel,
.trust-card,
.trust-summary-card,
.trust-domain-card,
.spec-panel,
.spec-figure {
  border: 1px solid var(--border);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.015)),
    var(--surface-soft);
  box-shadow: var(--panel-shadow);
}

.access-panel,
.trust-card,
.trust-summary-card,
.trust-domain-card,
.spec-panel,
.spec-figure {
  padding: 1rem;
}

.access-panel h2,
.trust-card h3,
.trust-summary-card h3,
.trust-domain-card h3,
.spec-panel h3 {
  margin: 0 0 0.65rem;
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.22rem;
  font-weight: 500;
}

.access-panel p,
.trust-card p,
.trust-summary-card p,
.trust-domain-card p,
.spec-panel p,
.spec-panel li {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.75;
}

.access-panel p + p,
.trust-card p + p,
.trust-summary-card p + p,
.trust-domain-card p + p,
.spec-panel p + p {
  margin-top: 0.8rem;
}

.access-side {
  display: grid;
  gap: 1rem;
}

.access-toggle {
  color: var(--gold-bright);
  cursor: pointer;
  text-decoration: underline;
}

.access-note {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.trust-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.trust-grid--two {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.trust-grid--three {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.trust-reference-list,
.spec-panel ul {
  margin: 0;
  padding-left: 1.1rem;
}

.trust-reference-list li + li,
.spec-panel li + li {
  margin-top: 0.55rem;
}

.spec-sheet {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.spec-figure img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

.spec-figure figcaption {
  margin-top: 0.85rem;
}

.spec-table {
  gap: 0.8rem;
}

.spec-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 1rem;
  padding: 0.95rem 0;
  border-top: 1px solid var(--border);
}

.spec-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.spec-key {
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.spec-value {
  color: var(--text-secondary);
  line-height: 1.75;
}

.spec-actions {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.is-observed {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out), border-color 0.4s ease;
}

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

.is-copyable {
  position: relative;
  cursor: copy;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.is-copyable:hover,
.is-copyable:focus-visible {
  transform: translateY(-1px);
}

.is-copyable::after {
  content: "Copy";
  position: absolute;
  top: 0.7rem;
  right: 0.85rem;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(201, 169, 110, 0.22);
  color: var(--gold);
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.is-copied::after {
  content: "Taken";
}

.liminal-room {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
  background: radial-gradient(circle at 50% 50%, rgba(201, 169, 110, 0.08), rgba(8, 8, 10, 0.92) 52%, rgba(5, 5, 8, 0.98));
}

.liminal-room.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* Threshold: slower, darker, no card — just text in the void */
.liminal-room[data-state="threshold"] {
  transition: opacity 0.8s ease;
  background: rgba(5, 5, 8, 0.97);
}

.liminal-room[data-state="threshold"] .liminal-room__inner {
  border: none;
  background: transparent;
  box-shadow: none;
}

.liminal-room[data-state="threshold"] .liminal-room__title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 300;
  transition: opacity 0.6s ease;
}

.liminal-room[data-state="threshold"] .liminal-room__text {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  font-style: italic;
  color: var(--text-muted);
  transition: opacity 0.6s ease;
}

.liminal-room__inner {
  width: min(32rem, calc(100vw - 3rem));
  padding: 1.8rem 1.6rem;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(13, 13, 16, 0.88);
  box-shadow: var(--panel-shadow);
  text-align: center;
}

.liminal-room__label {
  margin: 0 0 0.85rem;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.liminal-room__title {
  margin: 0;
  color: var(--text);
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 500;
}

.liminal-room__text {
  margin: 0.9rem auto 0;
  max-width: 26rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.38s;
  animation-timing-function: var(--ease-out);
}

::view-transition-old(root) {
  animation-name: liminal-fade-out;
}

::view-transition-new(root) {
  animation-name: liminal-fade-in;
}

@keyframes liminal-fade-out {
  from {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
  to {
    opacity: 0;
    transform: scale(0.985);
    filter: blur(8px);
  }
}

@keyframes liminal-fade-in {
  from {
    opacity: 0;
    transform: scale(1.015);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

@media (max-width: 860px) {
  .practitioner-header-inner,
  .page-main,
  .page-main--wide,
  .practitioner-footer {
    width: min(calc(100vw - 1.5rem), 100%);
  }

  .split-layout,
  .form-grid,
  .domains-shell,
  .access-shell,
  .spec-row {
    grid-template-columns: 1fr;
  }

  .chat-form {
    flex-direction: column;
    align-items: stretch;
  }

  .chat-head {
    flex-direction: column;
  }

  .chat-head-meta {
    justify-items: start;
  }

  .chat-status {
    text-align: left;
  }

  .chat-actions {
    flex-direction: row;
  }

  .footer-meta {
    flex-direction: column;
  }

  .section-block,
  .essay-section,
  .liminal-room__inner {
    padding: 1.2rem;
  }
}

@media (max-width: 640px) {
  .practitioner-header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .practitioner-nav {
    justify-content: flex-start;
    gap: 0.75rem 1rem;
  }

  .practitioner-nav .legacy-link {
    padding-left: 0;
    border-left: none;
  }

  .page-main {
    padding-top: 4rem;
  }

  .page-title {
    max-width: 100%;
  }
}
