:root {
    --gold: #C9920A;
    --gold-light: #F0C040;
    --gold-pale: #FFF3C4;
    --lapis: #1A3A6B;
    --lapis-deep: #0D1F3C;
    --lapis-mid: #2A5298;
    --clay: #8B5E3C;
    --clay-light: #D4956A;
    --clay-pale: #F5E6D3;
    --sand: #EDE0C4;
    --sand-deep: #C9B07A;
    --cream: #FAF6EE;
    --dark: #1A1208;
    --white: #FFFDF5;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }

  body {
    background: var(--lapis-deep);
    color: var(--cream);
    font-family: 'Crimson Pro', Georgia, serif;
    overflow-x: hidden;
  }

  /* ── STAR FIELD ── */
  .starfield {
    position: fixed; inset: 0; z-index: 0;
    background:
      radial-gradient(ellipse at 20% 30%, rgba(26,58,107,0.8) 0%, transparent 50%),
      radial-gradient(ellipse at 80% 70%, rgba(201,146,10,0.15) 0%, transparent 50%),
      var(--lapis-deep);
    overflow: hidden;
  }
  .starfield::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
      radial-gradient(1px 1px at 10% 15%, rgba(255,243,196,0.8) 0%, transparent 100%),
      radial-gradient(1px 1px at 25% 40%, rgba(255,243,196,0.6) 0%, transparent 100%),
      radial-gradient(1.5px 1.5px at 40% 10%, rgba(255,243,196,0.9) 0%, transparent 100%),
      radial-gradient(1px 1px at 55% 60%, rgba(255,243,196,0.5) 0%, transparent 100%),
      radial-gradient(1px 1px at 70% 25%, rgba(255,243,196,0.7) 0%, transparent 100%),
      radial-gradient(1.5px 1.5px at 85% 45%, rgba(255,243,196,0.8) 0%, transparent 100%),
      radial-gradient(1px 1px at 15% 70%, rgba(255,243,196,0.6) 0%, transparent 100%),
      radial-gradient(1px 1px at 33% 85%, rgba(255,243,196,0.4) 0%, transparent 100%),
      radial-gradient(1.5px 1.5px at 60% 80%, rgba(255,243,196,0.7) 0%, transparent 100%),
      radial-gradient(1px 1px at 90% 90%, rgba(255,243,196,0.5) 0%, transparent 100%),
      radial-gradient(1px 1px at 5% 50%, rgba(255,243,196,0.6) 0%, transparent 100%),
      radial-gradient(1px 1px at 47% 35%, rgba(255,243,196,0.4) 0%, transparent 100%),
      radial-gradient(1.5px 1.5px at 78% 65%, rgba(255,243,196,0.8) 0%, transparent 100%),
      radial-gradient(1px 1px at 92% 15%, rgba(255,243,196,0.6) 0%, transparent 100%),
      radial-gradient(1px 1px at 3% 90%, rgba(255,243,196,0.5) 0%, transparent 100%);
  }

  /* ── CUNEIFORM BORDER PATTERN ── */
  .cuneiform-border {
    height: 12px;
    background: repeating-linear-gradient(
      90deg,
      var(--gold) 0px, var(--gold) 3px,
      transparent 3px, transparent 8px,
      var(--gold-light) 8px, var(--gold-light) 10px,
      transparent 10px, transparent 16px,
      var(--gold) 16px, var(--gold) 18px,
      transparent 18px, transparent 28px
    );
    opacity: 0.7;
  }

  /* ── MAIN CONTENT ── */
  .content { position: relative; z-index: 1; }

  /* ── HERO ── */
  .hero {
    min-height: 100vh;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 60px 40px;
    text-align: center;
    position: relative;
  }

  .hero::before {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C9920A' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
  }

  .ziggurat-icon {
    font-size: 80px;
    margin-bottom: 24px;
    filter: drop-shadow(0 0 30px rgba(201,146,10,0.5));
    animation: glow 3s ease-in-out infinite alternate;
  }

  @keyframes glow {
    from { filter: drop-shadow(0 0 20px rgba(201,146,10,0.4)); }
    to { filter: drop-shadow(0 0 50px rgba(201,146,10,0.8)); }
  }

  .hero-eyebrow {
    font-family: 'Cinzel', serif;
    font-size: 12px;
    letter-spacing: 6px;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 16px;
    opacity: 0.9;
  }

  .hero-title {
    font-family: 'Cinzel Decorative', serif;
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 900;
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 40%, var(--clay-light) 70%, var(--gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: none;
  }

  .hero-subtitle {
    font-family: 'Cinzel', serif;
    font-size: clamp(14px, 2vw, 20px);
    color: var(--sand);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 32px;
    opacity: 0.85;
  }

  .hero-tagline {
    font-family: 'Crimson Pro', serif;
    font-style: italic;
    font-size: clamp(18px, 2.5vw, 26px);
    color: var(--clay-light);
    max-width: 700px;
    line-height: 1.6;
    margin-bottom: 48px;
  }

  .gold-divider {
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 32px auto;
  }

  .gold-divider-sm {
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 20px auto;
  }

  /* ── SECTION ── */
  section {
    padding: 80px 40px;
    max-width: 1100px;
    margin: 0 auto;
  }

  .section-eyebrow {
    font-family: 'Cinzel', serif;
    font-size: 11px;
    letter-spacing: 5px;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 12px;
    text-align: center;
  }

  .section-title {
    font-family: 'Cinzel Decorative', serif;
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    color: var(--gold-light);
    text-align: center;
    margin-bottom: 16px;
    line-height: 1.2;
  }

  .section-intro {
    font-size: clamp(17px, 2vw, 21px);
    color: var(--sand);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
    line-height: 1.7;
    font-style: italic;
  }

  /* ── ORIGIN BLOCK ── */
  .origin-block {
    background: linear-gradient(135deg, rgba(26,58,107,0.6), rgba(13,31,60,0.8));
    border: 1px solid rgba(201,146,10,0.3);
    border-radius: 4px;
    padding: 48px;
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
  }

  .origin-block::before {
    content: '𒀭';
    position: absolute;
    right: 30px; top: 20px;
    font-size: 120px;
    color: rgba(201,146,10,0.08);
    line-height: 1;
  }

  .origin-block h3 {
    font-family: 'Cinzel', serif;
    font-size: 22px;
    color: var(--gold-light);
    margin-bottom: 16px;
    letter-spacing: 2px;
  }

  .origin-block p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--sand);
  }

  .origin-block p + p { margin-top: 16px; }

  .origin-block strong { color: var(--gold-light); }

  /* ── VALUES GRID ── */
  .values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 40px;
  }

  .value-card {
    background: linear-gradient(145deg, rgba(26,58,107,0.5), rgba(13,31,60,0.7));
    border: 1px solid rgba(201,146,10,0.25);
    border-top: 3px solid var(--gold);
    padding: 36px 32px;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    position: relative;
  }

  .value-card:hover {
    transform: translateY(-4px);
    border-color: rgba(201,146,10,0.6);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 30px rgba(201,146,10,0.1);
  }

  .value-glyph {
    font-size: 40px;
    margin-bottom: 16px;
    display: block;
    filter: drop-shadow(0 0 10px rgba(201,146,10,0.4));
  }

  .value-ancient {
    font-family: 'Cinzel', serif;
    font-size: 11px;
    letter-spacing: 4px;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 8px;
    opacity: 0.8;
  }

  .value-name {
    font-family: 'Cinzel Decorative', serif;
    font-size: 22px;
    color: var(--gold-light);
    margin-bottom: 12px;
  }

  .value-desc {
    font-size: 17px;
    color: var(--sand);
    line-height: 1.7;
  }

  .value-modern {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(201,146,10,0.2);
    font-size: 15px;
    color: var(--clay-light);
    font-style: italic;
  }

  /* ── TRIBE ROLES ── */
  .roles-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    margin-top: 40px;
  }

  .role-card {
    background: rgba(13,31,60,0.7);
    border: 1px solid rgba(201,146,10,0.2);
    padding: 0;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
  }

  .role-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 0 40px rgba(201,146,10,0.1);
  }

  .role-header {
    padding: 24px 28px;
    background: linear-gradient(135deg, var(--lapis), var(--lapis-deep));
    border-bottom: 2px solid var(--gold);
    display: flex; align-items: center; gap: 16px;
  }

  .role-emoji { font-size: 36px; }

  .role-title-block {}

  .role-ancient-name {
    font-family: 'Cinzel', serif;
    font-size: 11px;
    letter-spacing: 4px;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 4px;
  }

  .role-modern-name {
    font-family: 'Cinzel Decorative', serif;
    font-size: 19px;
    color: var(--gold-light);
  }

  .role-body {
    padding: 24px 28px;
  }

  .role-desc {
    font-size: 16px;
    color: var(--sand);
    line-height: 1.7;
    margin-bottom: 20px;
  }

  .role-traits {
    list-style: none;
  }

  .role-traits li {
    font-size: 14px;
    color: var(--clay-light);
    padding: 6px 0;
    border-bottom: 1px solid rgba(201,146,10,0.1);
    display: flex; align-items: flex-start; gap: 10px;
  }

  .role-traits li::before {
    content: '𒀭';
    color: var(--gold);
    font-size: 12px;
    flex-shrink: 0;
    margin-top: 2px;
  }

  /* ── LAWS SECTION ── */
  .laws-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
  }

  .law-item {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 24px 32px;
    background: linear-gradient(90deg, rgba(201,146,10,0.1), rgba(26,58,107,0.3));
    border-left: 3px solid var(--gold);
    transition: background 0.3s;
  }

  .law-item:hover {
    background: linear-gradient(90deg, rgba(201,146,10,0.18), rgba(26,58,107,0.4));
  }

  .law-number {
    font-family: 'Cinzel Decorative', serif;
    font-size: 36px;
    color: var(--gold);
    opacity: 0.5;
    line-height: 1;
    flex-shrink: 0;
    min-width: 48px;
  }

  .law-content {}

  .law-title {
    font-family: 'Cinzel', serif;
    font-size: 16px;
    color: var(--gold-light);
    letter-spacing: 1px;
    margin-bottom: 6px;
  }

  .law-text {
    font-size: 16px;
    color: var(--sand);
    line-height: 1.6;
  }

  /* ── SPIRIT SECTION ── */
  .spirit-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(201,146,10,0.2);
    margin-top: 40px;
    border: 1px solid rgba(201,146,10,0.2);
  }

  .spirit-cell {
    background: rgba(13,31,60,0.8);
    padding: 36px 28px;
    text-align: center;
    transition: background 0.3s;
  }

  .spirit-cell:hover {
    background: rgba(26,58,107,0.7);
  }

  .spirit-symbol {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
    filter: drop-shadow(0 0 8px rgba(201,146,10,0.3));
  }

  .spirit-label {
    font-family: 'Cinzel', serif;
    font-size: 12px;
    letter-spacing: 3px;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 8px;
  }

  .spirit-desc {
    font-size: 15px;
    color: var(--sand);
    line-height: 1.6;
  }

  /* ── MANTRA ── */
  .mantra-block {
    text-align: center;
    padding: 80px 40px;
    background: linear-gradient(135deg, rgba(26,58,107,0.4), rgba(13,31,60,0.8));
    border-top: 1px solid rgba(201,146,10,0.3);
    border-bottom: 1px solid rgba(201,146,10,0.3);
    position: relative;
    overflow: hidden;
  }

  .mantra-block::before {
    content: '𒀭𒂗𒍪';
    position: absolute;
    left: 40px; top: 50%;
    transform: translateY(-50%);
    font-size: 80px;
    color: rgba(201,146,10,0.06);
    letter-spacing: 10px;
  }

  .mantra-block::after {
    content: '𒀭𒂗𒍪';
    position: absolute;
    right: 40px; top: 50%;
    transform: translateY(-50%);
    font-size: 80px;
    color: rgba(201,146,10,0.06);
    letter-spacing: 10px;
  }

  .mantra-text {
    font-family: 'Cinzel Decorative', serif;
    font-size: clamp(22px, 4vw, 42px);
    color: var(--gold-light);
    line-height: 1.4;
    max-width: 800px;
    margin: 0 auto 20px;
  }

  .mantra-sub {
    font-family: 'Crimson Pro', serif;
    font-style: italic;
    font-size: 20px;
    color: var(--clay-light);
  }

  /* ── FOOTER ── */
  .footer {
    text-align: center;
    padding: 48px 40px;
    border-top: 1px solid rgba(201,146,10,0.2);
  }

  .footer-logo {
    font-family: 'Cinzel Decorative', serif;
    font-size: 28px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
  }

  .footer-sub {
    font-size: 14px;
    color: var(--sand-deep);
    letter-spacing: 2px;
    font-family: 'Cinzel', serif;
  }

  /* ── FULL-WIDTH SECTIONS ── */
  .full-width {
    background: rgba(0,0,0,0.2);
    padding: 80px 0;
  }

  .full-width > section {
    padding-top: 0; padding-bottom: 0;
  }

  /* ── RESPONSIVE ── */
  @media (max-width: 768px) {
    section { padding: 60px 20px; }
    .spirit-grid { grid-template-columns: 1fr; }
    .origin-block { padding: 32px 24px; }
    .law-item { padding: 20px; }
  }