*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --navy: #0a0e1a; --navy-mid: #0e1421;
  --gold: #c9a84c; --gold-light: #e8c97a; --gold-dim: #7a6130;
  --cream: #f5f0e8; --cream-dim: #b8ae9a; --white: #ffffff;
}
html { background: #0a0e1a !important; color-scheme: dark; scroll-behavior: smooth; }
body {
  background: #0a0e1a !important; color: var(--cream);
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 17px; line-height: 1.7;
  min-height: 100vh; padding: 100px 24px 60px;
  position: relative; overflow-x: hidden;
}
body::before {
  content: ''; position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 9999; opacity: 0.4;
}
body::after {
  content: ''; position: fixed; inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 30%, rgba(201,168,76,0.05) 0%, transparent 70%);
  pointer-events: none;
}
/* NAV */
nav { position: fixed; top: 0; left: 0; right: 0; padding: 18px 40px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(201,168,76,0.15); background: rgba(10,14,26,0.95); backdrop-filter: blur(12px); z-index: 200; }
.nav-logo { font-family: 'Cormorant Garamond', serif; font-size: 1.05rem; letter-spacing: 0.3em; color: var(--cream); text-transform: lowercase; text-decoration: none; }
.nav-logo-mail { color: var(--gold); font-style: italic; }
.nav-links { display: flex; gap: 24px; list-style: none; font-size: 0.7rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--cream-dim); align-items: center; }
.nav-links a { color: inherit; text-decoration: none; transition: color 0.3s; }
.nav-links a:hover { color: var(--gold); }
.nav-dropdown { position: relative; }
.nav-dropdown-trigger { background: none; border: none; cursor: pointer; font-family: 'EB Garamond', serif; font-size: 0.7rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--cream-dim); display: flex; align-items: center; gap: 7px; transition: color 0.3s; padding: 0; }
.nav-dropdown-trigger:hover, .nav-dropdown-trigger.active { color: var(--gold); }
.nav-dropdown-trigger .chevron { width: 8px; height: 5px; position: relative; flex-shrink: 0; transition: transform 0.3s; }
.nav-dropdown-trigger .chevron::before, .nav-dropdown-trigger .chevron::after { content: ''; position: absolute; background: currentColor; height: 1px; width: 5px; top: 2px; }
.nav-dropdown-trigger .chevron::before { left: 0; transform: rotate(35deg); transform-origin: left; }
.nav-dropdown-trigger .chevron::after { right: 0; transform: rotate(-35deg); transform-origin: right; }
.nav-dropdown-trigger.active .chevron { transform: rotate(180deg); }
.dropdown-menu { position: absolute; top: calc(100% + 20px); right: 0; width: 300px; background: rgba(10,14,26,0.98); border: 1px solid rgba(201,168,76,0.2); backdrop-filter: blur(16px); opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity 0.25s ease, transform 0.25s ease; }
.dropdown-menu.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.dropdown-header { padding: 18px 24px 12px; border-bottom: 1px solid rgba(201,168,76,0.1); }
.dropdown-header-label { font-size: 0.52rem; letter-spacing: 0.45em; text-transform: uppercase; color: var(--gold-dim); }
.dropdown-header-sub { font-size: 0.75rem; font-style: italic; color: rgba(184,174,154,0.45); margin-top: 2px; }
.dropdown-item { display: block; text-decoration: none; padding: 16px 24px; border-bottom: 1px solid rgba(201,168,76,0.07); transition: background 0.2s; position: relative; }
.dropdown-item:last-child { border-bottom: none; }
.dropdown-item:hover { background: rgba(201,168,76,0.05); }
.dropdown-item:hover .dropdown-item-arrow { opacity: 1; transform: translateX(0) translateY(-50%); }
.dropdown-item-num { font-size: 0.5rem; letter-spacing: 0.35em; text-transform: uppercase; color: var(--gold-dim); margin-bottom: 3px; }
.dropdown-item-title { font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: 1.05rem; color: var(--cream); line-height: 1.2; }
.dropdown-item-title em { color: var(--gold-light); font-style: italic; }
.dropdown-item-desc { font-size: 0.72rem; font-style: italic; color: rgba(184,174,154,0.5); margin-top: 3px; line-height: 1.4; }
.dropdown-item-arrow { position: absolute; right: 20px; top: 50%; transform: translateX(-4px) translateY(-50%); opacity: 0; transition: all 0.2s; font-size: 0.65rem; color: var(--gold-dim); }
@media (max-width: 500px) { nav { padding: 16px 20px; } .dropdown-menu { width: 260px; right: -10px; } }
/* SHARED COMPONENTS */
.container { max-width: 640px; margin: 0 auto; position: relative; z-index: 1; }
.eyebrow { font-size: 0.6rem; letter-spacing: 0.5em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; text-align: center; }
h1 { font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: clamp(2.2rem, 6vw, 3.2rem); color: var(--white); text-align: center; line-height: 1.1; margin-bottom: 12px; }
h1 em { color: var(--gold-light); font-style: italic; }
.intro { text-align: center; font-style: italic; color: var(--cream-dim); font-size: 0.92rem; margin-bottom: 36px; max-width: 480px; margin-left: auto; margin-right: auto; }
.gold-rule { width: 40px; height: 1px; background: var(--gold); margin: 0 auto 36px; }
.panel { border: 1px solid rgba(201,168,76,0.2); background: rgba(201,168,76,0.025); padding: 36px; margin-bottom: 20px; }
.field-label { font-size: 0.58rem; letter-spacing: 0.42em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; display: block; }
.field-sub { font-size: 0.78rem; font-style: italic; color: var(--cream-dim); margin-bottom: 16px; }
.text-input { width: 100%; background: transparent; border: none; border-bottom: 1px solid rgba(201,168,76,0.3); padding: 10px 0; color: var(--cream); font-family: 'EB Garamond', serif; font-size: 1rem; outline: none; transition: border-color 0.3s; }
.text-input::placeholder { color: rgba(184,174,154,0.3); }
.text-input:focus { border-bottom-color: var(--gold); }
.textarea-input { width: 100%; background: rgba(255,255,255,0.02); border: 1px solid rgba(201,168,76,0.15); padding: 14px 16px; color: var(--cream); font-family: 'EB Garamond', serif; font-size: 0.95rem; line-height: 1.6; outline: none; resize: vertical; min-height: 140px; transition: border-color 0.3s; }
.textarea-input:focus { border-color: rgba(201,168,76,0.4); }
.textarea-input::placeholder { color: rgba(184,174,154,0.3); }
.sub-label { font-size: 0.58rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-dim); display: block; margin-bottom: 8px; margin-top: 22px; }
.options-row { display: flex; gap: 8px; flex-wrap: wrap; }
.opt-btn { flex: 1; min-width: 0; background: transparent; border: 1px solid rgba(201,168,76,0.15); padding: 10px 8px; cursor: pointer; font-family: 'EB Garamond', serif; font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--cream-dim); transition: all 0.2s; text-align: center; white-space: nowrap; }
.opt-btn:hover { border-color: rgba(201,168,76,0.4); color: var(--cream); }
.opt-btn.active { border-color: var(--gold); color: var(--gold); background: rgba(201,168,76,0.06); }
.select-input { width: 100%; background: rgba(10,14,26,0.8); border: 1px solid rgba(201,168,76,0.2); padding: 10px 14px; color: var(--cream); font-family: 'EB Garamond', serif; font-size: 0.95rem; outline: none; cursor: pointer; appearance: none; }
.select-input option { background: #0a0e1a; }
.primary-btn { width: 100%; margin-top: 22px; background: transparent; border: 1px solid rgba(201,168,76,0.4); padding: 14px 28px; color: var(--gold); font-family: 'EB Garamond', serif; font-size: 0.7rem; letter-spacing: 0.35em; text-transform: uppercase; cursor: pointer; transition: all 0.3s; }
.primary-btn:hover { background: rgba(201,168,76,0.08); border-color: var(--gold); }
.result-panel { display: none; }
.result-panel.visible { display: block; animation: revealPanel 0.6s ease both; }
@keyframes revealPanel { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.result-card { border: 1px solid rgba(201,168,76,0.22); background: rgba(201,168,76,0.025); padding: 32px; margin-bottom: 16px; }
.result-tag { display: inline-block; border: 1px solid rgba(201,168,76,0.25); padding: 4px 14px; font-size: 0.58rem; letter-spacing: 0.35em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; background: rgba(201,168,76,0.04); }
.result-heading { font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: 2rem; color: var(--gold-light); line-height: 1.1; margin-bottom: 6px; }
.result-sub { font-size: 0.65rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--cream-dim); margin-bottom: 20px; }
.result-body { font-style: italic; color: var(--cream-dim); font-size: 0.95rem; line-height: 1.7; margin-bottom: 20px; }
.data-row { display: flex; justify-content: space-between; align-items: baseline; padding: 11px 0; border-bottom: 1px solid rgba(201,168,76,0.08); font-size: 0.85rem; }
.data-row:first-child { border-top: 1px solid rgba(201,168,76,0.08); }
.data-row:last-child { border-bottom: none; }
.data-label { color: var(--cream-dim); }
.data-val { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; color: var(--gold-light); }
.score-track { height: 6px; background: rgba(255,255,255,0.04); margin-top: 16px; margin-bottom: 6px; }
.score-fill { height: 100%; width: 0; transition: width 1.4s cubic-bezier(0.16,1,0.3,1); }
.footnote { font-size: 0.7rem; font-style: italic; color: rgba(184,174,154,0.4); margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(201,168,76,0.07); line-height: 1.6; }
.copy-btn { width: 100%; background: transparent; border: 1px solid rgba(201,168,76,0.15); padding: 11px; color: var(--gold-dim); font-family: 'EB Garamond', serif; font-size: 0.65rem; letter-spacing: 0.3em; text-transform: uppercase; cursor: pointer; transition: all 0.25s; margin-bottom: 12px; }
.copy-btn:hover { border-color: rgba(201,168,76,0.35); color: var(--gold); }
.copy-btn.copied { color: var(--cream-dim); border-color: rgba(201,168,76,0.1); pointer-events: none; }
.restart-btn { background: transparent; border: none; font-family: 'EB Garamond', serif; font-size: 0.65rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-dim); cursor: pointer; display: block; width: 100%; text-align: center; transition: color 0.3s; padding: 6px; }
.restart-btn:hover { color: var(--gold); }
@media (max-width: 480px) { .panel, .result-card { padding: 24px 20px; } }
