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

:root {
  --bg: #061225;
  --bg-soft: #0c1a34;
  --bg-panel: rgba(10, 22, 44, 0.78);
  --bg-panel-strong: rgba(9, 19, 37, 0.92);
  --line: rgba(215, 195, 144, 0.2);
  --line-strong: rgba(235, 213, 156, 0.45);
  --text: #f4f0e6;
  --text-soft: rgba(244, 240, 230, 0.68);
  --text-muted: rgba(244, 240, 230, 0.42);
  --gold: #c8a96e;
  --gold-bright: #e8c98a;
  --sky: #8bb6ff;
  --rose: #efb7c8;
  --mint: #8ddfd4;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
  --shadow-lg: 0 24px 72px rgba(0, 0, 0, 0.38);
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --section-space: clamp(4rem, 6vw, 6.5rem);
  --content-width: min(1120px, calc(100vw - 2.5rem));
  --sans: "Inter", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --serif: "DM Serif Display", "Hiragino Mincho ProN", "Yu Mincho", serif;
}

:root[data-theme="sky"] {
  --bg: #e0f7fc;
  --bg-soft: #f0fafd;
  --bg-panel: rgba(255, 255, 255, 0.78);
  --bg-panel-strong: rgba(255, 255, 255, 0.94);
  --line: rgba(0, 119, 230, 0.12);
  --line-strong: rgba(0, 119, 230, 0.28);
  --text: #0a1d37;
  --text-soft: rgba(10, 29, 55, 0.78);
  --text-muted: rgba(10, 29, 55, 0.52);
  --gold: #b8860b; /* Elegant deep golden ochre for high contrast on links */
  --gold-bright: #996515;
  --sky: #0077e6;
  --rose: #e07293;
  --mint: #15796c;
  --shadow: 0 8px 32px rgba(10, 29, 55, 0.05);
  --shadow-lg: 0 24px 72px rgba(10, 29, 55, 0.10);
  --accent-tint-1: rgba(0, 119, 230, 0.06);
  --accent-tint-2: rgba(51, 170, 204, 0.06);
}

:root[data-theme="white"] {
  --bg: #fcfbf7;
  --bg-soft: #f6f4eb;
  --bg-panel: rgba(255, 255, 255, 0.76);
  --bg-panel-strong: rgba(255, 255, 255, 0.92);
  --line: rgba(215, 195, 144, 0.22);
  --line-strong: rgba(215, 150, 165, 0.40);
  --text: #2a2720;
  --text-soft: rgba(42, 39, 32, 0.78);
  --text-muted: rgba(42, 39, 32, 0.52);
  --gold: #9d7c43;
  --gold-bright: #83622c;
  --sky: #2662c9;
  --rose: #efb7c8;
  --mint: #15796c;
  --shadow: 0 8px 32px rgba(42, 39, 32, 0.06);
  --shadow-lg: 0 24px 72px rgba(42, 39, 32, 0.12);
  --accent-tint-1: rgba(185, 160, 110, 0.06);
  --accent-tint-2: rgba(220, 205, 175, 0.06);
}

:root[data-theme="sakura"] {
  --bg: #fff5f6;
  --bg-soft: #fdf0f2;
  --bg-panel: rgba(255, 255, 255, 0.76);
  --bg-panel-strong: rgba(255, 255, 255, 0.92);
  --line: rgba(235, 185, 195, 0.22);
  --line-strong: rgba(215, 150, 165, 0.40);
  --text: #3c2a2e;
  --text-soft: rgba(60, 42, 46, 0.78);
  --text-muted: rgba(60, 42, 46, 0.52);
  --gold: #c27d8e;
  --gold-bright: #a25c6f;
  --sky: #2662c9;
  --rose: #e07293;
  --mint: #15796c;
  --shadow: 0 8px 32px rgba(130, 100, 105, 0.06);
  --shadow-lg: 0 24px 72px rgba(130, 100, 105, 0.12);
  --accent-tint-1: rgba(194, 80, 114, 0.06);
  --accent-tint-2: rgba(230, 170, 185, 0.06);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.9375rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(circle at top left, rgba(81, 117, 194, 0.22), transparent 35%),
    radial-gradient(circle at 80% 5%, rgba(209, 146, 177, 0.14), transparent 22%),
    radial-gradient(circle at 50% 28%, rgba(73, 122, 228, 0.09), transparent 24%),
    linear-gradient(180deg, #03101f 0%, #07162b 35%, #061225 100%);
  min-height: 100vh;
}

/* Star field is rendered by canvas#cosmos-canvas in script.js */

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

a {
  color: inherit;
}

.page-shell {
  position: relative;
  isolation: isolate;
  z-index: 1;
}

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

/* ─── HEADER ─────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: var(--content-width);
  margin: 0 auto;
  padding: 1rem 0;
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0 -1rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  background: rgba(4, 14, 27, 0.5);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
  z-index: -1;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.4;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  line-height: 1;
}

.brand-text strong {
  font-family: var(--sans);
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  font-weight: 700;
  text-transform: uppercase;
}

.brand-text span {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-soft);
  font-weight: 400;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-soft);
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: color 150ms ease, background 150ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav-cta {
  padding: 0.5rem 1rem !important;
  border: 1px solid rgba(200, 169, 110, 0.4) !important;
  background: rgba(200, 169, 110, 0.08) !important;
  color: var(--gold-bright) !important;
  border-radius: var(--radius-sm) !important;
}

.nav-cta:hover {
  background: rgba(200, 169, 110, 0.14) !important;
  color: var(--gold-bright) !important;
}

/* ─── SOUND TOGGLE ─────────────────────────────────────────── */

.sound-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 200ms ease, background 200ms ease, color 200ms ease, box-shadow 200ms ease;
}

.sound-toggle:hover {
  border-color: rgba(200, 169, 110, 0.35);
  background: rgba(200, 169, 110, 0.08);
  color: var(--gold-bright);
  box-shadow: 0 0 12px rgba(200, 169, 110, 0.15);
}

.sound-toggle.is-active {
  border-color: rgba(200, 169, 110, 0.5);
  background: rgba(200, 169, 110, 0.12);
  color: var(--gold-bright);
  box-shadow: 0 0 16px rgba(200, 169, 110, 0.2), inset 0 0 8px rgba(200, 169, 110, 0.08);
}

.sound-icon {
  width: 1.1rem;
  height: 1.1rem;
  display: block;
}

/* ─── THEME TOGGLE ─────────────────────────────────────────── */

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  cursor: pointer;
  flex-shrink: 0;
  margin-left: auto;
  margin-right: 1.25rem;
  transition: border-color 200ms ease, background 200ms ease, color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
  z-index: 21;
}

.theme-toggle:hover {
  border-color: rgba(200, 169, 110, 0.35);
  background: rgba(200, 169, 110, 0.08);
  color: var(--gold-bright);
  box-shadow: 0 0 12px rgba(200, 169, 110, 0.15);
  transform: scale(1.04) rotate(8deg);
}

.theme-toggle.is-active {
  border-color: rgba(160, 130, 90, 0.3);
  background: rgba(160, 130, 90, 0.06);
  color: var(--gold);
}

.theme-toggle svg {
  width: 1.05rem;
  height: 1.05rem;
  display: block;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 300ms cubic-bezier(0.25, 1, 0.5, 1);
}

.theme-toggle:active svg {
  transform: scale(0.8);
}

html[data-theme="sky"] .theme-toggle,
html[data-theme="white"] .theme-toggle,
html[data-theme="sakura"] .theme-toggle {
  border-color: rgba(42, 39, 32, 0.15);
  background: rgba(42, 39, 32, 0.03);
  color: var(--text-soft);
}

html[data-theme="sky"] .theme-toggle:hover,
html[data-theme="white"] .theme-toggle:hover,
html[data-theme="sakura"] .theme-toggle:hover {
  border-color: rgba(160, 130, 90, 0.45);
  background: rgba(160, 130, 90, 0.08);
  color: var(--gold-bright);
  box-shadow: 0 0 12px rgba(160, 130, 90, 0.12);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0.25rem;
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 1.4rem;
  height: 1.5px;
  margin: 0.27rem 0;
  border-radius: 0;
  background: var(--text);
  transition: transform 200ms ease, opacity 200ms ease;
}

/* ─── LAYOUT ─────────────────────────────────────── */

.section {
  width: var(--content-width);
  margin: 0 auto;
  padding: var(--section-space) 0;
  scroll-margin-top: 6rem;
}

.section-soft {
  position: relative;
}

.section-soft::before {
  content: "";
  position: absolute;
  inset: 2rem -2rem;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.008)),
    rgba(255, 255, 255, 0.015);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  z-index: -1;
}

.section-heading {
  max-width: 44rem;
  margin-bottom: 2.25rem;
}

/* ─── TYPOGRAPHY ─────────────────────────────────── */

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  font-weight: 600;
}

.section-heading h2 {
  margin: 0 0 0.85rem;
  font-family: var(--sans);
  font-size: clamp(1.45rem, 2.5vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--text);
  text-wrap: balance;
}

.section-heading p,
.hero-lead,
.profile-copy p,
.service-card p,
.artifact-copy p,
.media-card p,
.access-card p,
.event-card p,
.principle-card p,
.press-card p,
.inquiry-aside p,
.gate-card p,
.hero-panel li,
.mini-list li,
.section-footnote,
.profile-note,
.voice-panel p {
  color: var(--text-soft);
  line-height: 1.7;
  font-size: 0.9rem;
  text-wrap: pretty;
}

.inline-wrap {
  display: inline-block;
}

/* ─── HERO ───────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 3rem;
  align-items: center;
  min-height: calc(100vh - 5rem);
  padding-top: 3.5rem;
  z-index: 1;
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-family: var(--sans);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  text-wrap: balance;
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* Accent: use serif sparingly for one word or phrase */
.hero h1 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.05em;
}

.hero-lead {
  max-width: 38rem;
  font-size: 0.925rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.75rem 0;
}

/* ─── BUTTONS ────────────────────────────────────── */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  min-height: 2.75rem;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  text-decoration: none;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease, box-shadow 200ms ease;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

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

/* Magical DOM ripple element injected by JS on click */
.btn-ripple {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0) 70%);
  animation: btnRipple 0.65s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  transform: scale(0);
}

@keyframes btnRipple {
  to {
    transform: scale(1);
    opacity: 0;
  }
}

.button-primary {
  color: #09172d;
  background: linear-gradient(135deg, var(--gold-bright), #d4a44e);
  box-shadow: 0 6px 20px rgba(200, 169, 110, 0.22);
}

.button-primary:hover {
  box-shadow: 0 8px 26px rgba(200, 169, 110, 0.32);
}

.button-secondary {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.button-secondary:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.07);
}

/* ─── HERO STATS ──────────────────────────────────── */

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 2rem 0 0;
}

.hero-stats div,
.hero-panel,
.gate-card,
.service-card,
.artifact-card,
.event-card,
.media-card,
.principle-card,
.access-card,
.aside-card,
.voice-panel,
.press-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    var(--bg-panel);
  box-shadow: var(--shadow);
}

.hero-stats div {
  padding: 1.1rem 1rem;
}

.hero-stats dt {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.hero-stats dd {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.stats-detail {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-soft);
}

/* ─── HERO VISUAL ─────────────────────────────────── */

.hero-visual {
  position: relative;
  min-height: 42rem;
}

.hero-aura {
  position: absolute;
  inset: 8% 18% auto 8%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(160, 186, 255, 0.32), rgba(160, 186, 255, 0.02) 58%, transparent 70%),
    radial-gradient(circle at 62% 45%, rgba(234, 184, 203, 0.2), transparent 32%);
  filter: blur(12px);
  animation: drift 8s ease-in-out infinite alternate;
}

.portrait-frame {
  position: absolute;
  inset: 0 12% 4rem 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, rgba(113, 153, 248, 0.1), rgba(234, 183, 201, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  mix-blend-mode: screen;
}

.hero-panel {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(22rem, 100%);
  padding: 1.4rem;
  background:
    linear-gradient(145deg, rgba(14, 30, 60, 0.95), rgba(10, 22, 43, 0.9)),
    var(--bg-panel-strong);
}

.hero-panel h2 {
  margin: 0 0 0.85rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}

/* ─── LISTS ───────────────────────────────────────── */

.mini-list {
  display: grid;
  gap: 0.55rem;
  padding-left: 1.1rem;
  margin: 0;
}

.mini-list li::marker {
  color: var(--gold);
}

/* ─── GRIDS ───────────────────────────────────────── */

.gate-grid,
.service-grid,
.event-grid,
.media-grid,
.crystal-grid,
.access-grid {
  display: grid;
  gap: 1rem;
}

.gate-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gate-card,
.service-card,
.event-card,
.media-card,
.principle-card,
.access-card,
.aside-card,
.voice-panel,
.press-card {
  padding: 1.35rem;
}

.gate-card::after,
.service-card::after,
.artifact-card::after,
.media-card::after,
.press-card::after {
  content: "";
  position: absolute;
  inset: auto -15% -40% 35%;
  height: 10rem;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05), transparent 65%);
  pointer-events: none;
}

/* ─── CARD LABELS & HEADINGS ──────────────────────── */

.gate-label,
.service-kicker,
.artifact-kicker,
.event-state {
  margin: 0 0 0.5rem;
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.gate-card h3,
.service-card h3,
.artifact-card h3,
.event-card h3,
.media-card h3,
.principle-card h3,
.access-card h3,
.aside-card h3,
.press-card h3 {
  margin: 0 0 0.75rem;
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--text);
}

.gate-card-accent {
  background:
    linear-gradient(145deg, rgba(30, 42, 81, 0.88), rgba(9, 20, 38, 0.95)),
    var(--bg-panel);
  border-color: rgba(139, 182, 255, 0.12);
}

.gate-card-muted {
  background:
    linear-gradient(145deg, rgba(43, 24, 34, 0.5), rgba(8, 17, 33, 0.92)),
    var(--bg-panel);
}

/* ─── PROFILE ─────────────────────────────────────── */

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr) minmax(0, 0.72fr);
  gap: 1.25rem;
  align-items: stretch;
}

.profile-portrait,
.profile-support {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: var(--shadow);
}

.profile-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-support {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: rgba(10, 18, 32, 0.95);
}

.profile-support img {
  width: 100%;
  flex: 1;
  min-height: 0;
  object-fit: cover;
}

.profile-support figcaption {
  flex-shrink: 0;
  padding: 0.9rem 1rem 1.1rem;
  color: var(--text-soft);
  font-size: 0.85rem;
  line-height: 1.6;
  background: rgba(0, 0, 0, 0.35);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-copy {
  padding: 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    var(--bg-panel);
  box-shadow: var(--shadow);
}

.pull-quote {
  margin-top: 0;
  margin-bottom: 1.1rem;
  color: var(--gold-bright);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.4;
}

.detail-pills,
.voice-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0;
}

.detail-pills span,
.voice-tags span {
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.profile-note {
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.82rem;
}

/* ─── SERVICES ────────────────────────────────────── */

.service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 25rem;
  transition: transform 300ms cubic-bezier(0.25, 1, 0.5, 1),
              box-shadow 300ms cubic-bezier(0.25, 1, 0.5, 1),
              border-color 300ms cubic-bezier(0.25, 1, 0.5, 1);
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.18) !important;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.service-spiritual {
  background:
    linear-gradient(180deg, rgba(139, 182, 255, 0.12), rgba(10, 22, 44, 0.97)),
    radial-gradient(circle at top, rgba(139, 182, 255, 0.06), transparent 35%),
    var(--bg-panel);
  border-color: rgba(139, 182, 255, 0.08);
}

.service-healing {
  background:
    linear-gradient(180deg, rgba(239, 183, 200, 0.12), rgba(10, 22, 44, 0.97)),
    radial-gradient(circle at top, rgba(239, 183, 200, 0.06), transparent 35%),
    var(--bg-panel);
  border-color: rgba(239, 183, 200, 0.08);
}

.service-clearing {
  background:
    linear-gradient(180deg, rgba(141, 223, 212, 0.10), rgba(10, 22, 44, 0.97)),
    radial-gradient(circle at top, rgba(141, 223, 212, 0.06), transparent 35%),
    var(--bg-panel);
  border-color: rgba(141, 223, 212, 0.08);
}

.service-miracle {
  background:
    linear-gradient(180deg, rgba(232, 201, 138, 0.12), rgba(10, 22, 44, 0.97)),
    radial-gradient(circle at top, rgba(232, 201, 138, 0.06), transparent 35%),
    var(--bg-panel);
  border-color: rgba(232, 201, 138, 0.08);
}

.service-soun {
  background:
    linear-gradient(180deg, rgba(190, 150, 255, 0.10), rgba(10, 22, 44, 0.97)),
    radial-gradient(circle at top, rgba(190, 150, 255, 0.06), transparent 35%),
    var(--bg-panel);
  border-color: rgba(190, 150, 255, 0.08);
}

.service-ordermade {
  background:
    linear-gradient(180deg, rgba(200, 210, 230, 0.08), rgba(10, 22, 44, 0.97)),
    radial-gradient(circle at top, rgba(200, 210, 230, 0.05), transparent 35%),
    var(--bg-panel);
  border-color: rgba(200, 210, 230, 0.08);
}

.service-actions {
  margin-top: auto;
  display: flex;
  gap: 0.65rem;
  width: 100%;
}

.service-card .button {
  margin-top: 0;
  width: 100%;
  justify-content: center;
  text-align: center;
  padding: 0.65rem 0.5rem;
}

.service-price,
.artifact-price {
  margin: 0;
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
}

.benevolence-note {
  margin: 1.5rem 0 0;
  padding: 0.85rem 1.1rem;
  border-left: 2px solid var(--gold);
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--gold-bright);
  background: rgba(200, 169, 110, 0.05);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ─── LIFELONG VALUE CARD ────────────────────────── */

.lifelong-value-card {
  margin: 2.5rem 0;
  padding: 1.8rem 2.2rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(200, 169, 110, 0.18);
  background: 
    linear-gradient(135deg, rgba(200, 169, 110, 0.06), rgba(12, 28, 54, 0.85)),
    var(--bg-panel-strong);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.lifelong-value-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -20%;
  width: 15rem;
  height: 15rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 169, 110, 0.12), transparent 70%);
  filter: blur(12px);
  pointer-events: none;
}

.lifelong-value-card h4 {
  color: var(--gold-bright);
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 0.8rem;
  letter-spacing: 0.04em;
}

.lifelong-value-card p {
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.75;
  margin: 0;
}

/* ─── SESSION DETAILS DIALOG MODAL ───────────────── */

dialog.session-modal {
  border: none;
  background: transparent;
  padding: 0;
  max-width: min(44rem, 92vw);
  width: 100%;
  color: var(--text);
  overflow: visible;
}

dialog.session-modal::backdrop {
  background-color: rgba(4, 9, 20, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: 
    background-color 280ms cubic-bezier(0.25, 1, 0.5, 1),
    backdrop-filter 280ms cubic-bezier(0.25, 1, 0.5, 1),
    display 280ms allow-discrete, 
    overlay 280ms allow-discrete;
}

dialog.session-modal[open]::backdrop {
  background-color: rgba(4, 9, 20, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

@starting-style {
  dialog.session-modal[open]::backdrop {
    background-color: rgba(4, 9, 20, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
  }
}

dialog.session-modal {
  opacity: 0;
  transform: scale(0.95) translateY(12px);
  transition: 
    opacity 280ms cubic-bezier(0.34, 1.56, 0.64, 1),
    transform 280ms cubic-bezier(0.34, 1.56, 0.64, 1),
    display 280ms allow-discrete, 
    overlay 280ms allow-discrete;
}

dialog.session-modal[open] {
  opacity: 1;
  transform: scale(1) translateY(0);
}

@starting-style {
  dialog.session-modal[open] {
    opacity: 0;
    transform: scale(0.95) translateY(12px);
  }
}

/* Modal Content Container */
.modal-wrapper {
  position: relative;
  background: linear-gradient(160deg, rgba(16, 28, 54, 0.98), rgba(6, 12, 28, 0.99));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
  padding: 2.5rem 2rem;
  max-height: 82vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

/* Specific modal backdrops using pseudo-elements for ultimate control over opacity & blend modes */
dialog.session-modal[data-service="healing"] .modal-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('fotos_from_adachi_may 25/dolphin_refined_closeup.jpg') no-repeat center center / cover;
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
  border-radius: var(--radius-lg);
  mix-blend-mode: overlay;
}

/* Ensure the modal content sits above the pseudo-element background */
dialog.session-modal .modal-body {
  position: relative;
  z-index: 1;
}

.modal-wrapper::-webkit-scrollbar {
  width: 6px;
}

.modal-wrapper::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

/* Elegant Close Button */
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.2rem;
  height: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--text-soft);
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
  z-index: 10;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  transform: rotate(90deg);
}

/* Content Styling */
.modal-body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.modal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 1rem;
}

.modal-kicker {
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.modal-title-h2 {
  font-family: var(--sans);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  margin: 0 0 0.6rem;
}

.modal-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--gold-bright);
  margin: 0;
}

.modal-desc {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--text-soft);
}

.modal-desc p {
  margin: 0 0 1rem;
}

.modal-bullets-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin: 1.25rem 0 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.modal-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  display: grid;
  gap: 0.5rem;
}

.modal-bullets li {
  position: relative;
  padding-left: 1.2rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-soft);
}

.modal-bullets li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--gold);
}

.modal-details-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 1.2rem;
  font-size: 0.9rem;
}

.modal-details-box dt {
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.modal-details-box dd {
  margin: 0 0 0.8rem;
  color: var(--text);
  line-height: 1.6;
}

.modal-details-box dd:last-child {
  margin-bottom: 0;
}

.modal-cta-area {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

.modal-cta-area .button {
  width: 100%;
  max-width: 22rem;
  text-align: center;
  justify-content: center;
  padding: 0.9rem;
  font-size: 0.88rem;
}

/* Custom styling for submenus in Miracle Creation */
.modal-submenu-list {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.modal-submenu-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 1rem;
}

.modal-submenu-card h4 {
  color: var(--gold-bright);
  font-size: 0.95rem;
  margin: 0 0 0.4rem;
  font-weight: 600;
}

.modal-submenu-card p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-soft);
  margin: 0 0 0.6rem;
}

.modal-submenu-price {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  text-align: right;
  border-top: 1px dashed rgba(255, 255, 255, 0.06);
  padding-top: 0.4rem;
}

/* ─── GOODS ───────────────────────────────────────── */

.goods-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 0.9fr;
  gap: 1rem;
  align-items: stretch;
}

.artifact-card {
  min-height: 26rem;
  display: grid;
}

.artifact-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.artifact-card-large {
  grid-template-rows: 1fr;
}

.artifact-card-large img {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.artifact-card-large .artifact-copy {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.4rem;
  z-index: 2;
}

/* Dark text contrast for light-background rainbow card */
.artifact-card-large .artifact-kicker {
  color: #8c6239 !important;
  font-weight: 600;
}

.artifact-card-large h3 {
  color: #0c1726 !important;
  font-weight: 600;
}

.artifact-card-large p {
  color: #2b394a !important;
  font-weight: 500;
  line-height: 1.6;
}

.artifact-card-large .artifact-price {
  color: #0c1726 !important;
  font-weight: 600;
}

.artifact-card-large .button-secondary {
  border-color: rgba(12, 23, 38, 0.45) !important;
  color: #0c1726 !important;
  font-weight: 600;
  background: rgba(12, 23, 38, 0.03);
}

.artifact-card-large .button-secondary:hover {
  background: rgba(12, 23, 38, 0.08) !important;
  border-color: rgba(12, 23, 38, 0.7) !important;
}

.artifact-card-text {
  background:
    radial-gradient(circle at 18% 15%, rgba(200, 169, 110, 0.16), transparent 28%),
    radial-gradient(circle at 82% 20%, rgba(134, 181, 255, 0.14), transparent 24%),
    linear-gradient(180deg, rgba(18, 34, 67, 0.96), rgba(8, 18, 36, 0.99));
}

.artifact-copy {
  padding: 1.25rem;
}

.artifact-note {
  color: var(--gold);
  font-size: 0.85rem;
}

.artifact-card-member {
  position: relative;
}

.artifact-card-member img {
  filter: blur(10px) saturate(1.15) brightness(0.75);
  transform: scale(1.08);
}

.member-veil {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: end;
  gap: 0.7rem;
  padding: 1.4rem;
  background:
    linear-gradient(180deg, rgba(3, 8, 19, 0.04), rgba(3, 8, 19, 0.9) 60%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
}

.section-footnote {
  margin-top: 0.85rem;
  font-size: 0.82rem;
}

/* ─── EVENTS / VOICES / CRYSTAL ───────────────────── */

.event-grid,
.media-grid,
.crystal-grid,
.access-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.voice-panel {
  padding: 1.75rem;
}

.voice-panel h3 {
  margin: 0 0 0.75rem;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.voice-quote {
  margin: 0 0 1.25rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1.5;
  color: var(--gold-bright);
}

.crystal-section {
  position: relative;
}

.crystal-section::before {
  content: "";
  position: absolute;
  right: -8%;
  top: 15%;
  width: 20rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(129, 176, 255, 0.18), transparent 58%),
    radial-gradient(circle at 62% 45%, rgba(243, 203, 219, 0.14), transparent 28%);
  filter: blur(18px);
  pointer-events: none;
}

.principle-card {
  min-height: 12rem;
}

/* ─── PRESS / ACCESS ──────────────────────────────── */

.press-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.access-card a {
  color: var(--gold-bright);
  text-decoration: none;
}

.access-card a:hover,
.access-card a:focus-visible {
  text-decoration: underline;
}

/* ─── INQUIRY FORM ────────────────────────────────── */

.inquiry-section {
  padding-bottom: calc(var(--section-space) + 1.5rem);
}

.inquiry-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr);
  gap: 1rem;
}

.inquiry-form,
.inquiry-aside {
  display: grid;
  gap: 0.85rem;
}

.inquiry-form {
  padding: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    var(--bg-panel);
  box-shadow: var(--shadow);
}

.inquiry-form label {
  display: grid;
  gap: 0.45rem;
}

.inquiry-form span {
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.inquiry-form input,
.inquiry-form select,
.inquiry-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
  font: inherit;
  font-size: 0.875rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  outline: none;
  transition: border-color 160ms ease, background 160ms ease;
}

.inquiry-form input:focus,
.inquiry-form select:focus,
.inquiry-form textarea:focus {
  border-color: rgba(200, 169, 110, 0.45);
  background: rgba(255, 255, 255, 0.05);
}

.checkbox {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.65rem;
}

.checkbox input {
  width: 1rem;
  height: 1rem;
  margin-top: 0.15rem;
}

.checkbox span {
  color: var(--text-soft);
  font-size: 0.83rem;
  line-height: 1.6;
}

.form-note,
.form-status {
  margin: 0;
  color: var(--gold-bright);
  font-size: 0.85rem;
  line-height: 1.7;
}

.aside-card {
  min-height: 12rem;
}

/* ─── UTILITIES ───────────────────────────────────── */

.is-hidden {
  display: none !important;
}

.mobile-only {
  display: none !important;
}

.pc-only {
  /* PC/Desktop layout gets full original display styles */
}

/* Smartphone Redesign Components (Hidden by parent .mobile-only on PC) */
.profile-spec {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--gold);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1rem;
}
.profile-spec span {
  font-family: var(--serif);
  font-size: 1rem;
  font-style: italic;
  color: var(--gold-bright);
}

.voice-discretion-detail {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--text-soft);
  margin-top: 1rem;
}

.sessions-cta-wrapper {
  margin: 1.5rem 0;
  text-align: center;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
}
.sessions-cta-wrapper p {
  font-size: 0.875rem;
  color: var(--text-soft);
  margin-bottom: 1rem;
}

.mobile-hero-header {
  text-align: center;
  margin-bottom: 2rem;
}
.mobile-hero-header h1 {
  font-size: clamp(1.6rem, 6.5vw, 2rem);
  line-height: 1.35;
  font-weight: 600;
  color: var(--text);
}
.mobile-hero-header h1 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--gold-bright);
}

.mobile-hero-body {
  margin-top: 2rem;
  text-align: center;
}
.mobile-hero-body .hero-lead {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--text-soft);
  margin-bottom: 1.75rem;
}
.mobile-hero-body .hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  max-width: 20rem;
  margin: 0 auto;
}
.mobile-hero-body .hero-actions .button {
  width: 100%;
}


/* ─── FOOTER ──────────────────────────────────────── */

.site-footer {
  width: var(--content-width);
  margin: 0 auto;
  padding: 1.5rem 0 2rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ─── REVEAL ANIMATIONS ───────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal-delay {
  transition-delay: 100ms;
}

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

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(1.2rem, -1rem, 0) scale(1.03);
  }
}

/* ─── RESPONSIVE ──────────────────────────────────── */

@media (max-width: 1024px) {

  .hero,
  .profile-grid,
  .inquiry-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: unset;
    padding-top: 2rem;
  }

  .hero-visual {
    min-height: 34rem;
  }

  .portrait-frame {
    inset: 0 8% 4rem 8%;
  }

  .hero-panel {
    left: 10%;
    right: 10%;
    width: auto;
  }

  .gate-grid,
  .service-grid,
  .media-grid,
  .crystal-grid,
  .access-grid,
  .event-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .artifact-card-large {
    grid-column: 1 / -1;
  }

  .press-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 820px) {
  .site-header {
    padding: 0.85rem 0;
  }

  .site-header::before {
    inset: 0;
    border-radius: var(--radius-md);
  }

  .nav-toggle {
    display: inline-block;
  }

  .theme-toggle {
    margin-right: 0.75rem;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 0.6rem);
    display: grid;
    gap: 0.2rem;
    padding: 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-md);
    background: rgba(6, 18, 37, 0.97);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .site-nav[data-open="true"] {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 0.7rem 0.85rem;
    border-radius: var(--radius-sm);
    font-size: 0.90rem !important; /* Raised from 0.8rem for easier mobile/tablet navigation and tap targets */
  }

  .site-nav a:hover,
  .site-nav a:focus-visible {
    background: rgba(255, 255, 255, 0.05);
  }

  .nav-cta {
    text-align: center;
  }

  .hero-stats,
  .gate-grid,
  .service-grid,
  .media-grid,
  .crystal-grid,
  .access-grid,
  .event-grid,
  .goods-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  :root {
    --content-width: min(100vw - 1.5rem, 100%);
  }

  .section {
    padding: 3.5rem 0;
  }

  .section-soft::before {
    inset: 1rem -0.5rem;
  }

  .hero h1 {
    font-size: clamp(1.4rem, 6vw, 1.8rem);
    word-break: keep-all;
    overflow-wrap: break-word;
  }

  .section-heading h2 {
    font-size: clamp(1.3rem, 7vw, 1.8rem);
  }

  .hero-visual {
    min-height: 30rem;
  }

  .portrait-frame {
    inset: 0 0 5.25rem;
  }

  .hero-panel {
    left: 0;
    right: 0;
  }

  .profile-copy,
  .gate-card,
  .service-card,
  .artifact-copy,
  .event-card,
  .media-card,
  .principle-card,
  .access-card,
  .press-card,
  .inquiry-form,
  .aside-card {
    padding: 1.1rem;
  }

  .voice-quote {
    font-size: 1.1rem;
  }

  .site-footer {
    padding-bottom: 1.25rem;
    font-size: 0.875rem !important; /* Raised from 0.8rem */
  }

  /* Increase mobile accessibility minimum baseline */
  .brand-text span {
    font-size: 0.80rem !important; /* Raised from 0.72rem */
  }

  .eyebrow {
    font-size: 0.85rem !important; /* Raised from 0.72rem */
    letter-spacing: 0.16em;
  }

  .button {
    font-size: 0.85rem !important; /* Raised from 0.78rem */
  }

  .hero-stats dt {
    font-size: 0.85rem !important; /* Raised from 0.72rem */
  }

  .stats-detail {
    font-size: 0.82rem !important; /* Raised from 0.72rem */
  }

  .gate-label,
  .service-kicker,
  .artifact-kicker,
  .event-state {
    font-size: 0.82rem !important; /* Raised from 0.7rem */
    letter-spacing: 0.14em;
  }

  .detail-pills span,
  .voice-tags span {
    font-size: 0.85rem !important; /* Raised from 0.8rem */
  }

  .profile-note,
  .section-footnote,
  .artifact-note,
  .form-note,
  .form-status {
    font-size: 0.875rem !important; /* Raised from 0.82rem-0.85rem to ensure clear reading */
  }

  .inquiry-form span,
  .checkbox span {
    font-size: 0.875rem !important; /* Raised from 0.82rem-0.83rem */
  }

  .hero-bg-control .bg-btn {
    font-size: 0.80rem !important; /* Raised from 0.72rem */
  }

  /* Decoupled Smartphone Layout (max-width: 640px) */
  .pc-only {
    display: none !important;
  }

  .mobile-only {
    display: block !important;
  }

  /* Maintain inline display if specific tag or class */
  span.mobile-only {
    display: inline !important;
  }

  /* Flexbox order sorting to place Profile immediately below Hero on smartphone */
  main {
    display: flex !important;
    flex-direction: column !important;
  }

  .hero {
    order: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    padding-top: 1.5rem !important;
    padding-bottom: 2.5rem !important;
    gap: 1.5rem !important;
  }

  #profile {
    order: 2 !important;
  }

  #temple-gates {
    order: 3 !important;
  }

  #sessions {
    order: 4 !important;
  }

  #goods {
    order: 5 !important;
  }

  #voices {
    order: 6 !important;
  }

  #media {
    order: 7 !important;
  }

  #press {
    order: 8 !important;
  }

  #access {
    order: 9 !important;
  }

  #inquiry {
    order: 10 !important;
  }

  /* Smartphone Hero Fusion and Image compression */
  .hero-visual {
    min-height: 22rem !important;
    width: 100% !important;
    margin: 0 auto !important;
  }

  .portrait-frame {
    inset: 0 !important;
    border-radius: var(--radius-md) !important;
  }

  /* Sessions Carousel - Horizontal swipe with scroll snapping */
  .service-grid {
    display: flex !important;
    grid-template-columns: none !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    scroll-behavior: smooth !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 1rem !important;
    padding: 0.5rem 0.25rem 1.5rem !important;
    margin: 0 -0.5rem !important;
    scrollbar-width: none !important; /* Hide scrollbar for clean aesthetics */
  }

  .service-grid::-webkit-scrollbar {
    display: none !important;
  }

  .service-card {
    flex: 0 0 85% !important;
    scroll-snap-align: center !important;
    min-height: auto !important;
    height: auto !important;
  }

  /* Hide only desktop booking button inside cards, allow details button on mobile */
  .service-card .button.pc-only {
    display: none !important;
  }

  .service-card .button-secondary {
    display: flex !important;
    margin: 0 auto;
    width: 100%;
    justify-content: center;
  }
}



/* ──────────────────────────────────────────────────────────────
   4-STATE SWITCHER — BRIGHT ENVIRONMENT OVERRIDES
   ────────────────────────────────────────────────────────────── */

/* Specific background gradients per light theme */
html[data-theme="sky"] body {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.6), transparent 45%),
    radial-gradient(circle at 80% 5%, rgba(141, 223, 212, 0.25), transparent 35%),
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.5), transparent 30%),
    linear-gradient(180deg, #e0f7fc 0%, #bceaf4 35%, #2fa9d6 75%, #005eb8 100%);
}

/* High contrast for access & inquiry headings directly on deep blue background at the bottom of the page */
html[data-theme="sky"] #access .section-heading .eyebrow,
html[data-theme="sky"] #inquiry .section-heading .eyebrow {
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

html[data-theme="sky"] #access .section-heading h2,
html[data-theme="sky"] #inquiry .section-heading h2 {
  color: #ffffff !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

html[data-theme="sky"] #access .section-heading p,
html[data-theme="sky"] #inquiry .section-heading p {
  color: rgba(255, 255, 255, 0.9) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

html[data-theme="white"] body {
  background:
    radial-gradient(circle at top left, rgba(240, 230, 210, 0.45), transparent 45%),
    radial-gradient(circle at 80% 5%, rgba(220, 205, 175, 0.35), transparent 35%),
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.6), transparent 30%),
    linear-gradient(180deg, #fcfbf7 0%, #f6f4eb 35%, #eedebc 100%);
}

html[data-theme="sakura"] body {
  background:
    radial-gradient(circle at top left, rgba(250, 215, 222, 0.45), transparent 45%),
    radial-gradient(circle at 80% 5%, rgba(240, 185, 200, 0.35), transparent 35%),
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.6), transparent 30%),
    linear-gradient(180deg, #fff5f6 0%, #fdf0f2 35%, #fae6e9 100%);
}

html:is([data-theme="sky"], [data-theme="white"], [data-theme="sakura"]) .site-header::before {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  box-shadow: 0 4px 24px var(--line);
}

html:is([data-theme="sky"], [data-theme="white"], [data-theme="sakura"]) .site-nav a:hover,
html:is([data-theme="sky"], [data-theme="white"], [data-theme="sakura"]) .site-nav a:focus-visible {
  background: var(--accent-tint-1);
  color: var(--text);
}

@media (max-width: 820px) {
  html:is([data-theme="sky"], [data-theme="white"], [data-theme="sakura"]) .site-nav {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
  }
  html:is([data-theme="sky"], [data-theme="white"], [data-theme="sakura"]) .site-nav a:hover,
  html:is([data-theme="sky"], [data-theme="white"], [data-theme="sakura"]) .site-nav a:focus-visible {
    background: var(--accent-tint-1);
  }
}

html:is([data-theme="sky"], [data-theme="white"], [data-theme="sakura"]) .section-soft::before {
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.15)),
    rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

html:is([data-theme="sky"], [data-theme="white"], [data-theme="sakura"]) .portrait-frame {
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, var(--accent-tint-1), var(--accent-tint-2));
}

html:is([data-theme="sky"], [data-theme="white"], [data-theme="sakura"]) .portrait-frame img {
  mix-blend-mode: multiply;
}

html:is([data-theme="sky"], [data-theme="white"], [data-theme="sakura"]) .hero-panel {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), var(--bg-soft)),
    var(--bg-panel-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

html:is([data-theme="sky"], [data-theme="white"], [data-theme="sakura"]) .principle-card,
html:is([data-theme="sky"], [data-theme="white"], [data-theme="sakura"]) .access-card,
html:is([data-theme="sky"], [data-theme="white"], [data-theme="sakura"]) .aside-card,
html:is([data-theme="sky"], [data-theme="white"], [data-theme="sakura"]) .voice-panel,
html:is([data-theme="sky"], [data-theme="white"], [data-theme="sakura"]) .press-card,
html:is([data-theme="sky"], [data-theme="white"], [data-theme="sakura"]) .inquiry-form {
  border-color: var(--line);
  box-shadow: var(--shadow);
}

html:is([data-theme="sky"], [data-theme="white"], [data-theme="sakura"]) .gate-card-accent {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), var(--bg-soft)),
    var(--bg-panel);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

html:is([data-theme="sky"], [data-theme="white"], [data-theme="sakura"]) .gate-card-muted {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), var(--bg-soft)),
    var(--bg-panel);
  border-color: var(--line);
  box-shadow: var(--shadow);
}

/* Service cards */
html:is([data-theme="sky"], [data-theme="white"], [data-theme="sakura"]) .service-card {
  box-shadow: var(--shadow);
}
html:is([data-theme="sky"], [data-theme="white"], [data-theme="sakura"]) .service-card:hover {
  border-color: var(--line-strong) !important;
  box-shadow: var(--shadow-lg);
}

html:is([data-theme="sky"], [data-theme="white"], [data-theme="sakura"]) .service-spiritual {
  background:
    linear-gradient(180deg, rgba(38, 98, 201, 0.05), rgba(255, 255, 255, 0.96)),
    radial-gradient(circle at top, rgba(38, 98, 201, 0.03), transparent 35%),
    var(--bg-panel);
  border-color: rgba(38, 98, 201, 0.10);
}

html:is([data-theme="sky"], [data-theme="white"], [data-theme="sakura"]) .service-healing {
  background:
    linear-gradient(180deg, rgba(194, 80, 114, 0.06), rgba(255, 255, 255, 0.96)),
    radial-gradient(circle at top, rgba(194, 80, 114, 0.03), transparent 35%),
    var(--bg-panel);
  border-color: rgba(194, 80, 114, 0.10);
}

html:is([data-theme="sky"], [data-theme="white"], [data-theme="sakura"]) .service-clearing {
  background:
    linear-gradient(180deg, rgba(21, 121, 108, 0.05), rgba(255, 255, 255, 0.96)),
    radial-gradient(circle at top, rgba(21, 121, 108, 0.03), transparent 35%),
    var(--bg-panel);
  border-color: rgba(21, 121, 108, 0.10);
}

html:is([data-theme="sky"], [data-theme="white"], [data-theme="sakura"]) .service-miracle {
  background:
    linear-gradient(180deg, rgba(157, 124, 67, 0.06), rgba(255, 255, 255, 0.96)),
    radial-gradient(circle at top, rgba(157, 124, 67, 0.03), transparent 35%),
    var(--bg-panel);
  border-color: rgba(157, 124, 67, 0.10);
}

html:is([data-theme="sky"], [data-theme="white"], [data-theme="sakura"]) .service-soun {
  background:
    linear-gradient(180deg, rgba(128, 77, 219, 0.05), rgba(255, 255, 255, 0.96)),
    radial-gradient(circle at top, rgba(128, 77, 219, 0.03), transparent 35%),
    var(--bg-panel);
  border-color: rgba(128, 77, 219, 0.10);
}

html:is([data-theme="sky"], [data-theme="white"], [data-theme="sakura"]) .service-ordermade {
  background:
    linear-gradient(180deg, rgba(90, 110, 140, 0.05), rgba(255, 255, 255, 0.96)),
    radial-gradient(circle at top, rgba(90, 110, 140, 0.03), transparent 35%),
    var(--bg-panel);
  border-color: rgba(90, 110, 140, 0.10);
}

html:is([data-theme="sky"], [data-theme="white"], [data-theme="sakura"]) .lifelong-value-card {
  border: 1px solid var(--line-strong);
  background: 
    linear-gradient(135deg, var(--accent-tint-1), rgba(255, 255, 255, 0.96)),
    var(--bg-panel-strong);
  box-shadow: var(--shadow-lg);
}

html:is([data-theme="sky"], [data-theme="white"], [data-theme="sakura"]) .modal-wrapper {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.99), var(--bg-soft));
  border: 1px solid var(--line);
  box-shadow: 0 24px 80px rgba(10, 29, 55, 0.08);
  scrollbar-color: rgba(10, 29, 55, 0.2) transparent;
}

html:is([data-theme="sky"], [data-theme="white"], [data-theme="sakura"]) dialog.session-modal[data-service="healing"] .modal-wrapper::before {
  mix-blend-mode: multiply;
  opacity: 0.06;
}

html:is([data-theme="sky"], [data-theme="white"], [data-theme="sakura"]) .artifact-card-text {
  background:
    radial-gradient(circle at 18% 15%, var(--accent-tint-1), transparent 28%),
    radial-gradient(circle at 82% 20%, rgba(38, 98, 201, 0.05), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), var(--bg-soft));
  border: 1px solid var(--line);
}

html:is([data-theme="sky"], [data-theme="white"], [data-theme="sakura"]) .member-veil {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.92) 65%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.1));
}

html:is([data-theme="sky"], [data-theme="white"], [data-theme="sakura"]) .inquiry-form input,
html:is([data-theme="sky"], [data-theme="white"], [data-theme="sakura"]) .inquiry-form select,
html:is([data-theme="sky"], [data-theme="white"], [data-theme="sakura"]) .inquiry-form textarea {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.85);
  color: var(--text);
}

html:is([data-theme="sky"], [data-theme="white"], [data-theme="sakura"]) .inquiry-form input:focus,
html:is([data-theme="sky"], [data-theme="white"], [data-theme="sakura"]) .inquiry-form select:focus,
html:is([data-theme="sky"], [data-theme="white"], [data-theme="sakura"]) .inquiry-form textarea:focus {
  border-color: var(--gold-bright);
  background: #ffffff;
  outline: none;
}

html:is([data-theme="sky"], [data-theme="white"], [data-theme="sakura"]) .button-secondary {
  border-color: var(--line-strong);
  background: var(--accent-tint-1);
}

html:is([data-theme="sky"], [data-theme="white"], [data-theme="sakura"]) .button-secondary:hover {
  border-color: var(--gold-bright);
  background: var(--accent-tint-2);
}

/* ──────────────────────────────────────────────────────────────
   THEME-ADAPTED IMAGE TRANSITIONS & CUSTOM COLOR-GRADING FILTERS
   ────────────────────────────────────────────────────────────── */

img.theme-adapted {
  transition: filter 0.6s cubic-bezier(0.25, 0.8, 0.25, 1),
              opacity 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
              transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: filter, opacity, transform;
}

img.theme-adapted.is-swapping {
  opacity: 0 !important;
  transform: scale(0.985) translateY(2px);
}

/* 1. Sky Theme (Vibrant Blue/Turquoise) */
html[data-theme="sky"] img.theme-adapted {
  filter: saturate(1.12) contrast(1.05) brightness(1.02);
}

/* 2. White Theme (Elegant Champagne Gold) */
html[data-theme="white"] img.theme-adapted {
  filter: sepia(0.28) saturate(0.92) contrast(0.98) brightness(1.04) hue-rotate(-6deg);
}

/* 3. Sakura Theme (Pastel Cherry Blossom Pink) */
html[data-theme="sakura"] img.theme-adapted {
  filter: sepia(0.22) saturate(1.05) contrast(0.96) brightness(1.05) hue-rotate(-22deg) drop-shadow(0 0 4px rgba(240, 165, 185, 0.1));
}

/* 4. Starred Sky / Dark Theme (Deep Cosmic Blue/Navy) */
html:not([data-theme]) img.theme-adapted,
html[data-theme="dark"] img.theme-adapted {
  filter: saturate(0.88) contrast(1.08) brightness(0.88) hue-rotate(5deg);
}

/* ──────────────────────────────────────────────────────────────
   HERO & PROFILE DOLPHIN IMAGE CENTERING & FRAMING OVERRIDES
   ────────────────────────────────────────────────────────────── */

/* 1. Fix the framing and centering for the profile and support dolphin images */
#theme-img-support,
html[data-theme="sky"] #theme-img-profile {
  object-position: center center !important; /* perfectly centers the dolphin in the frame, removing solid blue gaps */
}

/* 2. Hero Image Custom Framing for Sky Theme to perfectly center and frame the dolphin */
html[data-theme="sky"] #theme-img-hero {
  object-position: 60% 50% !important; /* perfectly centers the dolphin pod and keeps the leading dolphin's face in view */
  mix-blend-mode: normal !important; /* ensures the dolphin photo displays in its full, crisp, high-definition colors */
}

/* ──────────────────────────────────────────────────────────────
   GOODS / ARTIFACTS SECTION READABILITY & CONTRAST UPGRADES
   ────────────────────────────────────────────────────────────── */

/* 1. Global typography enlargement for the Goods section cards to enhance readability */
.goods-section .section-heading p {
  font-size: 1.05rem;
  line-height: 1.7;
}

.artifact-kicker {
  font-size: 0.78rem !important;
  margin-bottom: 0.6rem !important;
  letter-spacing: 0.22em !important;
}

.artifact-card h3 {
  font-size: 1.35rem !important;
  margin-bottom: 0.85rem !important;
  line-height: 1.3 !important;
}

.artifact-card p {
  font-size: 0.96rem !important;
  line-height: 1.65 !important;
}

.artifact-price {
  font-size: 1.08rem !important;
  font-weight: 600 !important;
  margin: 0.85rem 0 1.1rem !important;
}

.artifact-card .button {
  font-size: 0.92rem !important;
  padding: 0.85rem 1.6rem !important;
}

/* 2. Specific scaling for the large hero card in the grid */
.artifact-card-large h3 {
  font-size: 1.55rem !important;
}

.artifact-card-large p {
  font-size: 1.02rem !important;
  line-height: 1.7 !important;
}

/* 3. Dynamic contrast backplate and color overrides for the Sky Theme */
html[data-theme="sky"] .artifact-card-large {
  position: relative;
}

html[data-theme="sky"] .artifact-card-large::before {
  content: "";
  grid-area: 1 / 1;
  background: linear-gradient(to top, rgba(10, 29, 55, 0.88) 0%, rgba(10, 29, 55, 0.45) 50%, rgba(10, 29, 55, 0) 90%);
  z-index: 1;
  pointer-events: none;
}

html[data-theme="sky"] .artifact-card-large .artifact-copy {
  z-index: 2;
}

html[data-theme="sky"] .artifact-card-large .artifact-kicker {
  color: #ffcc80 !important; /* Premium warm gold kicker */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

html[data-theme="sky"] .artifact-card-large h3 {
  color: #ffffff !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

html[data-theme="sky"] .artifact-card-large p {
  color: rgba(255, 255, 255, 0.94) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

html[data-theme="sky"] .artifact-card-large .artifact-price {
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

/* 4. Style the button to be a high contrast, premium white-bordered glass button */
html[data-theme="sky"] .artifact-card-large .button-secondary {
  border-color: rgba(255, 255, 255, 0.6) !important;
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.08) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

html[data-theme="sky"] .artifact-card-large .button-secondary:hover {
  background: #ffffff !important;
  color: #0a1d37 !important;
  border-color: #ffffff !important;
  text-shadow: none;
}


