/* ============================================================
   Skip To Grace — shared design system
   Dark, mysterious, luminous. Blue / purple / gold on near-black indigo.
   ============================================================ */

:root {
  --bg-0: #0a0616;
  --bg-1: #110a26;
  --bg-2: #191040;
  --panel: rgba(255, 255, 255, 0.05);
  --panel-strong: rgba(255, 255, 255, 0.08);
  --line: rgba(232, 196, 90, 0.28);
  --line-soft: rgba(255, 255, 255, 0.1);
  --blue: #4a6cf7;
  --purple: #7b4dff;
  --gold: #e8c45a;
  --gold-bright: #f7dc8a;
  --text: #ece7f8;
  --muted: #b2a8ce;
  --white: #ffffff;
  --ink-on-gold: #241503;
  --max: 1120px;
  --radius: 18px;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-brand: "Cinzel", "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(900px 620px at 88% -12%, rgba(123, 77, 255, 0.28), transparent 64%),
    radial-gradient(1000px 720px at -8% 108%, rgba(74, 108, 247, 0.22), transparent 64%),
    radial-gradient(620px 420px at 50% 118%, rgba(232, 196, 90, 0.1), transparent 70%),
    linear-gradient(160deg, var(--bg-2), var(--bg-1) 52%, var(--bg-0));
  background-attachment: fixed;
  font: 16px/1.7 var(--font-body);
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--gold); }
a:hover { color: var(--gold-bright); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.18;
  color: var(--white);
  margin: 0 0 0.5em;
  font-weight: 500;
}

h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); color: var(--gold-bright); margin-top: 1.4em; }

p { margin: 0.6em 0; }
strong { color: var(--white); }
blockquote {
  margin: 1em 0;
  padding: 0.9em 1.2em;
  border-left: 3px solid var(--gold);
  background: var(--panel);
  border-radius: 0 12px 12px 0;
  color: var(--muted);
  font-style: italic;
}
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--gold-bright);
  font-size: 0.92em;
  background: rgba(232, 196, 90, 0.12);
  padding: 0.1em 0.4em;
  border-radius: 6px;
}

.wrap { width: min(var(--max), 100%); margin-inline: auto; padding-inline: 22px; }
.narrow { width: min(760px, 100%); }

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

.rule {
  height: 2px;
  width: 140px;
  margin: 26px auto;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ---------- Focus & selection ---------- */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}
::selection { background: rgba(123, 77, 255, 0.5); color: var(--white); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(10, 6, 22, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
}
.brand {
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  white-space: nowrap;
}
.brand .star { color: var(--gold); margin-right: 0.4em; }
.brand:hover { color: var(--gold-bright); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--gold);
  font: inherit;
  padding: 8px 12px;
  cursor: pointer;
}
.site-nav ul {
  display: flex;
  gap: 6px 22px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  opacity: 0.85;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { opacity: 1; color: var(--gold-bright); }
.site-nav a[aria-current="page"] {
  color: var(--gold);
  border-bottom-color: var(--gold);
  opacity: 1;
}

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 84px 0 60px; position: relative; overflow: hidden; }
.hero .halo {
  position: absolute;
  inset: -40px 0 auto;
  height: 260px;
  background: radial-gradient(320px 160px at 50% 0%, rgba(232, 196, 90, 0.16), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-mandala {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(620px, 92vw);
  height: auto;
  opacity: 0.34;
  pointer-events: none;
  z-index: 0;
  animation: mandala-drift 240s linear infinite;
}
@keyframes mandala-drift {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ---------- Geometric ornaments ---------- */
.ornament {
  display: flex;
  justify-content: center;
  padding: 10px 0;
  opacity: 0.85;
}
.ornament img { width: 260px; height: 48px; }

/* ---------- About portrait ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 34px;
  align-items: center;
}
.portrait {
  position: relative;
  width: min(280px, 72vw);
  margin-inline: auto;
  aspect-ratio: 1;
}
.portrait img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  /* graceful fallback if the photo is missing: luminous indigo-gold field */
  background:
    radial-gradient(120px 120px at 50% 30%, rgba(247, 220, 138, 0.35), transparent 70%),
    linear-gradient(160deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45), 0 0 34px rgba(232, 196, 90, 0.12);
}
.portrait-halo {
  position: absolute;
  inset: -18px;
  width: calc(100% + 36px);
  height: calc(100% + 36px);
  pointer-events: none;
}

/* ---------- Interviews hero motifs ---------- */
.interviews-hero .wrap { position: relative; z-index: 1; }
.hero-emblem {
  display: block;
  margin: 0 auto 10px;
  width: 76px;
  height: 76px;
  opacity: 0.9;
}
.corner-motif {
  position: absolute;
  width: 140px;
  height: 140px;
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}
.corner-motif-tl { top: 18px; left: 18px; }
.corner-motif-br { bottom: 18px; right: 18px; transform: rotate(180deg); }
.hero h1 {
  background: linear-gradient(100deg, var(--white) 30%, var(--gold-bright) 70%, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--gold-bright);
  margin-bottom: 0.3em;
}
.hero .sub { max-width: 780px; margin: 0.6em auto 0; color: var(--muted); font-size: 1.08rem; }
.hero .whisper { color: var(--muted); font-size: 0.92rem; font-style: italic; margin-top: 1.4em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: var(--ink-on-gold);
  box-shadow: 0 10px 30px rgba(232, 196, 90, 0.25);
}
.btn-gold:hover { color: var(--ink-on-gold); box-shadow: 0 14px 36px rgba(232, 196, 90, 0.4); }
.btn-ghost {
  border-color: var(--line);
  color: var(--gold-bright);
  background: rgba(232, 196, 90, 0.07);
}
.btn-ghost:hover { background: rgba(232, 196, 90, 0.16); color: var(--gold-bright); }
.btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }

/* ---------- Sections & cards ---------- */
main { padding-bottom: 40px; }
section { padding: 34px 0; }
.section-head { text-align: center; margin-bottom: 10px; }

.card {
  background: linear-gradient(180deg, var(--panel-strong), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 30px 32px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}
.card h2:first-child, .card h3:first-child { margin-top: 0; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.card-teaser {
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
}
.card-teaser .glyph { font-size: 1.6rem; color: var(--gold); margin-bottom: 8px; }
.card-teaser p { color: var(--muted); flex-grow: 1; }

/* ---------- Interview cards ---------- */
.guest-card { display: flex; flex-direction: column; }
.guest-card .guest-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--purple);
  color: #b39dff;
  font-weight: 600;
  margin-bottom: 6px;
}
.guest-card .guest-tag.upcoming { color: var(--gold); }
.guest-card h3 { margin: 0 0 6px; color: var(--white); }
.guest-card p { color: var(--muted); font-size: 0.94rem; flex-grow: 1; }
.guest-card .guest-cta { margin-top: 14px; font-size: 0.88rem; font-weight: 600; }

.filter-bar {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin: 26px 0 8px;
}
.filter-bar input[type="search"] {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  color: var(--text);
  font: inherit;
  padding: 10px 18px;
  width: min(320px, 100%);
}
.filter-bar input[type="search"]::placeholder { color: var(--muted); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line);
  background: rgba(232, 196, 90, 0.06);
  color: var(--gold-bright);
  border-radius: 999px;
  padding: 8px 16px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}
.chip:hover { background: rgba(232, 196, 90, 0.16); }
.chip.is-active { background: linear-gradient(135deg, var(--gold-bright), var(--gold)); color: var(--ink-on-gold); }

.no-results {
  text-align: center;
  color: var(--muted);
  font-style: italic;
  padding: 30px 0;
}

/* ---------- Guide page ---------- */
.guide-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--muted);
  padding-top: 10px;
}
.track {
  display: inline-block;
  width: 150px;
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}
.track i {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  transition: width 0.25s ease;
}
.jump-links ul {
  display: flex;
  gap: 6px 16px;
  flex-wrap: wrap;
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  font-size: 0.82rem;
}
.jump-links a { color: var(--text); text-decoration: none; opacity: 0.8; }
.jump-links a:hover { color: var(--gold-bright); opacity: 1; }

.btn-small {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(232, 196, 90, 0.1);
  color: var(--gold-bright);
  padding: 5px 12px;
  cursor: pointer;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 700;
}
.btn-small:hover { background: rgba(232, 196, 90, 0.26); }

.num { color: var(--gold); margin-right: 0.42em; }
.lead { font-size: 1.06rem; color: var(--text); }

.callout {
  padding: 15px 18px;
  border-left: 4px solid;
  border-radius: 12px;
  margin: 16px 0;
  color: var(--text);
}
.callout p { margin: 0.35em 0; }
.callout-note { background: rgba(74, 108, 247, 0.16); border-color: var(--blue); }
.callout-warn { background: rgba(232, 196, 90, 0.12); border-color: var(--gold); }
.callout-pilot { background: rgba(123, 77, 255, 0.2); border-color: var(--purple); }
.callout-pilot strong:first-child { color: var(--gold-bright); }

.done-badge {
  display: inline-block;
  border: 1px solid var(--line);
  background: rgba(232, 196, 90, 0.1);
  color: var(--gold-bright);
  border-radius: 999px;
  padding: 7px 14px;
  margin-top: 14px;
  font-size: 0.86rem;
}

.steps { counter-reset: step; list-style: none; padding: 0; }
.steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 54px;
  margin: 17px 0;
}
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 2px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink-on-gold);
  font-weight: 800;
  font-size: 0.9rem;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
}

.tbl { width: 100%; border-collapse: collapse; margin: 15px 0; font-size: 0.92rem; }
.tbl th, .tbl td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.tbl th { background: rgba(232, 196, 90, 0.14); color: var(--white); }
.tbl tr:nth-child(even) { background: rgba(255, 255, 255, 0.03); }

.check { list-style: none; padding: 0; }
.check li { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px dashed rgba(255, 255, 255, 0.1); }
.check input { width: 18px; height: 18px; accent-color: var(--gold); margin-top: 5px; flex-shrink: 0; }
.check input:checked + span { opacity: 0.5; text-decoration: line-through; }

.copybar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.copybar h3 { margin: 1.2em 0 0.4em; }
.msgbox {
  white-space: pre-wrap;
  background: rgba(8, 4, 22, 0.9);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 15px;
  color: var(--text);
  font-size: 0.88rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.grid-mini { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.mini { border: 1px solid var(--line-soft); border-radius: 13px; padding: 15px; background: rgba(10, 6, 30, 0.6); font-size: 0.92rem; color: var(--muted); }
.mini strong { color: var(--gold-bright); }

.swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.sw { border: 1px solid var(--line-soft); border-radius: 10px; overflow: hidden; font-size: 0.8rem; color: var(--muted); }
.sw .chip-color { height: 48px; }
.sw small { display: block; padding: 7px; }

/* ---------- Contact / socials ---------- */
.social-list { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-direction: column; gap: 10px; }
.social-list a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  padding: 10px 16px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: var(--panel);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.social-list a:hover { border-color: var(--gold); background: rgba(232, 196, 90, 0.08); color: var(--white); }
.social-list .handle { color: var(--muted); font-size: 0.88rem; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding: 40px 0 60px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
}
.site-footer .brand { font-size: 0.95rem; }
.footer-links { display: flex; gap: 8px 20px; justify-content: center; flex-wrap: wrap; margin: 14px 0; }
.footer-links a { color: var(--text); text-decoration: none; opacity: 0.85; }
.footer-links a:hover { color: var(--gold-bright); opacity: 1; }

/* ---------- Utilities ---------- */
.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  background: rgba(16, 8, 32, 0.94);
  color: var(--gold);
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 50;
}
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translate(-50%, 20px);
  opacity: 0;
  background: rgba(11, 5, 24, 0.96);
  color: var(--gold-bright);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 15px;
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  z-index: 60;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.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;
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
  .track i { transition: none; }
  .hero-mandala { animation: none; }
}

/* ---------- Mobile nav ---------- */
@media (max-width: 760px) {
  .wrap { padding-inline: 16px; }
  .card { padding: 22px 18px; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 6, 22, 0.97);
    border-bottom: 1px solid var(--line);
    padding: 12px 22px 18px;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 4px; }
  .site-nav a { display: block; padding: 10px 4px; font-size: 1rem; }
  .hero { padding: 56px 0 44px; }
  .hero-mandala { opacity: 0.22; }
  .about-grid { grid-template-columns: 1fr; gap: 26px; }
  .corner-motif { width: 96px; height: 96px; opacity: 0.4; }
  .tbl { display: block; overflow-x: auto; }
  .filter-bar { flex-direction: column; }
}
