*, *::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 { scroll-behavior: smooth; background: #0a0e1a !important; color-scheme: dark; }
  body {
    background: var(--navy); color: var(--cream);
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 18px; line-height: 1.7;
    min-height: 100vh;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    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% 60% at 50% 40%, rgba(201,168,76,0.05) 0%, transparent 70%);
    pointer-events: none;
  }

  .back-link {
    position: fixed; top: 24px; left: 32px;
    font-size: 0.62rem; letter-spacing: 0.35em; text-transform: uppercase;
    color: var(--gold-dim); text-decoration: none; transition: color 0.3s; z-index: 100;
  }
  .back-link:hover { color: var(--gold); }

  .container { width: 100%; max-width: 600px; 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.4rem); 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.95rem; margin-bottom: 40px; max-width: 460px; margin-left: auto; margin-right: auto; }
  .gold-rule { width: 40px; height: 1px; background: var(--gold); margin: 0 auto 40px; }

  .input-panel { border: 1px solid rgba(201,168,76,0.2); background: rgba(201,168,76,0.025); padding: 40px; margin-bottom: 28px; }
  .field-label { font-size: 0.6rem; letter-spacing: 0.4em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; display: block; }
  .field-sub { font-size: 0.78rem; font-style: italic; color: var(--cream-dim); margin-bottom: 20px; }

  .email-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: 'Cormorant Garamond', serif;
    font-size: 1.5rem; font-weight: 300;
    letter-spacing: 0.03em; outline: none;
    transition: border-color 0.3s;
  }
  .email-input::placeholder { color: rgba(184,174,154,0.25); }
  .email-input:focus { border-bottom-color: var(--gold); }

  .score-btn {
    width: 100%; margin-top: 28px;
    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.72rem;
    letter-spacing: 0.35em; text-transform: uppercase;
    cursor: pointer; transition: all 0.3s;
  }
  .score-btn:hover { background: rgba(201,168,76,0.08); border-color: var(--gold); }

  .thinking { display: none; text-align: center; padding: 36px; font-style: italic; color: var(--cream-dim); font-size: 0.9rem; }
  .thinking.visible { display: block; }
  .thinking-phase { display: block; margin-bottom: 5px; opacity: 0; animation: phaseIn 0.5s ease forwards; }
  .thinking-phase:nth-child(2) { animation-delay: 0.6s; }
  .thinking-phase:nth-child(3) { animation-delay: 1.2s; }
  @keyframes phaseIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

  /* Result */
  .result-panel { display: none; animation: revealPanel 0.7s ease both; }
  .result-panel.visible { display: block; }
  @keyframes revealPanel { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

  .address-display {
    text-align: center;
    border: 1px solid rgba(201,168,76,0.15);
    padding: 20px 28px; margin-bottom: 28px;
    background: rgba(255,255,255,0.015);
  }
  .address-label { font-size: 0.55rem; letter-spacing: 0.4em; text-transform: uppercase; color: var(--gold-dim); margin-bottom: 8px; }
  .address-text { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; color: var(--cream-dim); font-weight: 300; word-break: break-all; }

  .score-hero {
    text-align: center; padding: 40px;
    border: 1px solid rgba(201,168,76,0.2);
    background: rgba(201,168,76,0.02);
    margin-bottom: 24px; position: relative; overflow: hidden;
  }
  .score-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(201,168,76,0.05) 0%, transparent 70%);
  }
  .score-label { font-size: 0.58rem; letter-spacing: 0.4em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; position: relative; }
  .score-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 6rem; font-weight: 300; line-height: 1;
    margin-bottom: 8px; position: relative;
    background: linear-gradient(135deg, var(--gold-dim), var(--gold-light));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  }
  .score-max { font-size: 0.7rem; letter-spacing: 0.2em; color: var(--cream-dim); margin-bottom: 20px; position: relative; }
  .score-verdict {
    font-size: 1.4rem; font-family: 'Cormorant Garamond', serif;
    font-weight: 300; font-style: italic;
    position: relative;
  }

  .breakdown { margin-bottom: 24px; }
  .breakdown-item {
    display: flex; align-items: baseline; gap: 12px;
    padding: 13px 0; border-bottom: 1px solid rgba(201,168,76,0.08);
    font-size: 0.86rem;
  }
  .breakdown-item:first-child { border-top: 1px solid rgba(201,168,76,0.08); }
  .breakdown-icon { font-family: 'Cormorant Garamond', serif; font-size: 1rem; flex-shrink: 0; width: 20px; }
  .breakdown-label { color: var(--cream-dim); flex: 1; }
  .breakdown-score { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; flex-shrink: 0; }

  .verdict-text {
    border-left: 2px solid var(--gold-dim);
    padding: 16px 20px; background: rgba(201,168,76,0.02);
    font-style: italic; color: var(--cream-dim); font-size: 0.92rem;
    line-height: 1.65; margin-bottom: 28px;
  }

  .try-again { background: transparent; border: none; font-family: 'EB Garamond', serif; font-size: 0.68rem; 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: 8px; }
  .try-again:hover { color: var(--gold); }

  @media (max-width: 500px) { .input-panel { padding: 24px; } .score-hero { padding: 28px 20px; } .score-number { font-size: 4.5rem; } }

  nav { position: fixed; top: 0; left: 0; right: 0; padding: 20px 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; } }
