:root {
  color-scheme: dark;
  --night: #03070d;
  --navy: #07111d;
  --blue: #0d2740;
  --mist: #a9c9df;
  --gold-light: #fff0b2;
  --gold: #d7a64a;
  --gold-deep: #7f5318;
  --text: #f4f0e6;
  --muted: #adb6c2;
  --line: rgba(215, 166, 74, 0.38);
  --glass: rgba(4, 10, 18, 0.68);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--night);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 72% 24%, rgba(34, 82, 120, 0.18), transparent 34rem),
    radial-gradient(circle at 18% 82%, rgba(16, 57, 82, 0.14), transparent 38rem),
    linear-gradient(180deg, #02050a 0%, #07111d 46%, #03070d 100%);
  color: var(--text);
  font-family: "Cormorant Garamond", Georgia, serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -5;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.018), transparent 24%, rgba(90, 149, 187, 0.022) 54%, transparent 78%),
    radial-gradient(circle at 50% -10%, rgba(125, 179, 213, 0.08), transparent 42%);
  animation: sky-drift 24s ease-in-out infinite alternate;
  pointer-events: none;
}

::selection {
  color: #07111d;
  background: var(--gold-light);
}

a {
  color: inherit;
}

#atmosphere {
  position: fixed;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.ambient {
  position: fixed;
  z-index: -4;
  width: 70vw;
  height: 70vw;
  border-radius: 50%;
  filter: blur(54px);
  opacity: 0.13;
  pointer-events: none;
}

.ambient-one {
  top: -35vw;
  right: -20vw;
  background: #3c86ad;
  animation: ambient-one 28s ease-in-out infinite alternate;
}

.ambient-two {
  bottom: -40vw;
  left: -25vw;
  background: #18506f;
  animation: ambient-two 34s ease-in-out infinite alternate;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 20;
  opacity: 0.014;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 56px 24px 72px;
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  right: -8%;
  bottom: 4%;
  left: -8%;
  height: 30%;
  z-index: -1;
  opacity: 0.28;
  filter: blur(12px);
  background:
    radial-gradient(ellipse at 50% 100%, rgba(142, 188, 217, 0.14), transparent 58%),
    linear-gradient(172deg, transparent 0 51%, rgba(164, 201, 224, 0.08) 52%, transparent 56%);
  transform: skewY(-2deg);
}

.hero-inner {
  width: min(920px, 100%);
  text-align: center;
  transform-style: preserve-3d;
}

.emblem-wrap {
  display: grid;
  width: clamp(176px, 24vw, 242px);
  aspect-ratio: 1;
  margin: 0 auto 38px;
  place-items: center;
  perspective: 900px;
}

.emblem {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  border: 1px solid rgba(255, 229, 150, 0.72);
  border-radius: 50%;
  background:
    radial-gradient(circle at 42% 32%, rgba(255, 244, 202, 0.12), transparent 28%),
    radial-gradient(circle at 50% 52%, #11161c 0 57%, #080b0f 58% 100%);
  box-shadow:
    0 0 0 5px rgba(110, 72, 20, 0.28),
    0 0 0 7px rgba(255, 215, 124, 0.12),
    inset 0 0 30px rgba(215, 166, 74, 0.12),
    0 0 36px rgba(215, 166, 74, 0.15);
  transition: transform 500ms cubic-bezier(.2,.8,.2,1), box-shadow 500ms ease;
  will-change: transform;
}

.emblem::before,
.emblem::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  pointer-events: none;
}

.emblem::before {
  padding: 2px;
  background: conic-gradient(
    from 15deg,
    transparent 0 5%,
    #8d611f 7%,
    #ffe6a0 15%,
    #a56e22 24%,
    transparent 29% 38%,
    #d8a846 43%,
    #fff1bd 54%,
    #8a5919 63%,
    transparent 69% 79%,
    #cf9a38 84%,
    #ffebb0 92%,
    transparent 97%
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: ring-turn 24s linear infinite;
}

.emblem::after {
  inset: 10%;
  border: 1px solid rgba(215, 166, 74, 0.18);
  box-shadow: inset 0 0 28px rgba(255, 227, 145, 0.06);
}

.emblem span {
  position: relative;
  z-index: 1;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  font-size: clamp(5.2rem, 13vw, 8.8rem);
  font-weight: 700;
  line-height: 1;
  color: transparent;
  background:
    linear-gradient(
      112deg,
      #6f4815 0%,
      #ca9035 18%,
      #fff3bd 37%,
      #d39b3d 52%,
      #fff0a8 68%,
      #91601f 100%
    );
  -webkit-background-clip: text;
  background-clip: text;
  filter:
    drop-shadow(0 2px 0 rgba(52, 30, 7, 0.95))
    drop-shadow(0 0 9px rgba(255, 210, 102, 0.22));
}

.overline,
.section-kicker {
  margin: 0 0 14px;
  color: var(--gold);
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(3.4rem, 10.5vw, 7.8rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: clamp(0.08em, 1.6vw, 0.21em);
  text-indent: clamp(0.08em, 1.6vw, 0.21em);
  text-transform: uppercase;
  color: transparent;
  background:
    linear-gradient(
      180deg,
      #fff8dc 0%,
      #e8c77b 38%,
      #bd7e25 78%,
      #f1d68c 100%
    );
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 8px 28px rgba(0, 0, 0, 0.72));
}

.divider {
  display: flex;
  width: min(420px, 72vw);
  margin: 30px auto 24px;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.divider span {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.divider span:last-child {
  background: linear-gradient(90deg, var(--gold), transparent);
}

.divider i {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border: 1px solid var(--gold-light);
  transform: rotate(45deg);
  box-shadow: 0 0 12px rgba(215, 166, 74, 0.35);
}

.tagline {
  margin: 0;
  color: #f7f3ea;
  font-size: clamp(1.35rem, 3.4vw, 2.15rem);
  font-style: italic;
  line-height: 1.25;
  letter-spacing: 0.025em;
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.74);
}

.pronunciation {
  margin: 18px 0 0;
  color: var(--muted);
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.72rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.pronunciation strong {
  color: #ddd3bc;
  font-weight: 500;
}

.scroll-cue {
  display: inline-flex;
  margin-top: 54px;
  align-items: center;
  flex-direction: column;
  gap: 12px;
  color: #d9c18b;
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 220ms ease, transform 220ms ease;
}

.scroll-cue svg {
  width: 34px;
  height: 34px;
  padding: 8px;
  border: 1px solid rgba(215, 166, 74, 0.44);
  border-radius: 50%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.3;
  animation: arrow-float 2.2s ease-in-out infinite;
}

.scroll-cue:hover {
  color: var(--gold-light);
  transform: translateY(3px);
}

.meaning-section {
  position: relative;
  display: grid;
  min-height: 100svh;
  padding: clamp(80px, 12vw, 150px) 24px 34px;
  place-items: center;
  isolation: isolate;
}

.meaning-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, transparent 0%, rgba(3, 8, 14, 0.76) 12%, rgba(3, 8, 14, 0.94) 100%),
    radial-gradient(circle at 76% 35%, rgba(49, 93, 122, 0.16), transparent 34rem);
}

.meaning-card {
  position: relative;
  width: min(780px, 100%);
  padding: clamp(34px, 7vw, 72px);
  overflow: hidden;
  border: 1px solid rgba(215, 166, 74, 0.2);
  border-radius: 2px;
  background:
    linear-gradient(145deg, rgba(16, 27, 39, 0.72), rgba(4, 9, 16, 0.84));
  box-shadow:
    0 38px 90px rgba(0, 0, 0, 0.45),
    inset 0 1px rgba(255, 255, 255, 0.025);
  text-align: center;
  backdrop-filter: blur(6px);
}

.meaning-card::before,
.meaning-card::after {
  content: "";
  position: absolute;
  width: 76px;
  height: 76px;
  pointer-events: none;
}

.meaning-card::before {
  top: 16px;
  left: 16px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.meaning-card::after {
  right: 16px;
  bottom: 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.meaning-card h2 {
  margin: 0 0 32px;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.08;
  color: #f5f1e7;
}

.meaning-card > p {
  margin: 0 auto 22px;
  max-width: 640px;
  color: #b8c0ca;
  font-size: clamp(1.15rem, 2.4vw, 1.38rem);
  line-height: 1.72;
}

.meaning-card strong {
  color: #eee2c2;
  font-weight: 500;
}

.symbol-note {
  display: grid;
  max-width: 640px;
  margin: 42px auto 0;
  padding-top: 34px;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: center;
  border-top: 1px solid rgba(215, 166, 74, 0.18);
  text-align: left;
}

.symbol-note-mark {
  color: var(--gold);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  font-size: 3.4rem;
  line-height: 1;
  filter: drop-shadow(0 0 16px rgba(215, 166, 74, 0.15));
}

.symbol-note p {
  margin: 0;
  color: #aeb8c4;
  font-size: 1.05rem;
  line-height: 1.62;
}

footer {
  display: flex;
  width: min(780px, 100%);
  margin: 62px auto 0;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: rgba(194, 178, 143, 0.65);
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
}

footer i {
  width: 4px;
  height: 4px;
  flex: 0 0 4px;
  background: var(--gold);
  transform: rotate(45deg);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 900ms cubic-bezier(.2,.8,.2,1),
    transform 900ms cubic-bezier(.2,.8,.2,1);
}

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

.hero .reveal:nth-child(2) { transition-delay: 80ms; }
.hero .reveal:nth-child(3) { transition-delay: 150ms; }
.hero .reveal:nth-child(4) { transition-delay: 220ms; }
.hero .reveal:nth-child(5) { transition-delay: 290ms; }
.hero .reveal:nth-child(6) { transition-delay: 350ms; }
.hero .reveal:nth-child(7) { transition-delay: 430ms; }

@keyframes ring-turn {
  to { transform: rotate(360deg); }
}

@keyframes arrow-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

@keyframes sky-drift {
  from { transform: scale(1) translate3d(-1%, -1%, 0); }
  to { transform: scale(1.08) translate3d(1%, 1%, 0); }
}

@keyframes ambient-one {
  from { transform: translate3d(-3%, -2%, 0) scale(0.92); }
  to { transform: translate3d(7%, 6%, 0) scale(1.08); }
}

@keyframes ambient-two {
  from { transform: translate3d(0, 4%, 0) scale(1); }
  to { transform: translate3d(9%, -5%, 0) scale(1.1); }
}



@media (max-width: 640px) {
  .hero {
    padding-inline: 18px;
  }

  .emblem-wrap {
    margin-bottom: 30px;
  }

  h1 {
    letter-spacing: 0.095em;
    text-indent: 0.095em;
  }

  .meaning-section {
    padding-inline: 16px;
  }

  .meaning-card {
    padding: 38px 24px;
  }

  .symbol-note {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  footer {
    flex-direction: column;
    line-height: 1.5;
  }
}

@media (hover: hover) and (pointer: fine) {
  .emblem:hover {
    box-shadow:
      0 0 0 5px rgba(110, 72, 20, 0.34),
      0 0 0 7px rgba(255, 215, 124, 0.16),
      inset 0 0 40px rgba(215, 166, 74, 0.18),
      0 0 72px rgba(215, 166, 74, 0.24);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


.sound-toggle {
  position: fixed; right: 22px; bottom: 22px; z-index: 30;
  display: inline-flex; min-width: 154px; padding: 10px 13px;
  align-items: center; gap: 10px;
  border: 1px solid rgba(215,166,74,.32); border-radius: 999px;
  background: rgba(5,11,18,.78); color: #e8dcc0;
  box-shadow: 0 12px 32px rgba(0,0,0,.24);
  font-family: "Cinzel", Georgia, serif; cursor: pointer;
  backdrop-filter: blur(5px);
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.sound-toggle:hover { border-color: rgba(255,224,145,.62); background: rgba(8,18,28,.9); transform: translateY(-2px); }
.sound-toggle:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }
.sound-toggle[aria-pressed="true"] { border-color: rgba(255,224,145,.66); background: rgba(17,27,37,.92); }
.sound-icon { display:grid; width:30px; height:30px; place-items:center; border:1px solid rgba(215,166,74,.28); border-radius:50%; }
.sound-icon svg { width:17px; height:17px; fill:var(--gold); stroke:var(--gold-light); stroke-width:1.15; stroke-linecap:round; stroke-linejoin:round; }
.sound-toggle[aria-pressed="false"] .sound-wave { opacity:.2; }
.sound-copy { display:grid; gap:1px; text-align:left; }
.sound-copy small { color:#b7ab92; font-size:.56rem; letter-spacing:.12em; text-transform:uppercase; }
.sound-copy strong { color:#f0dfb6; font-size:.68rem; font-weight:500; letter-spacing:.12em; text-transform:uppercase; }
.meaning-section { content-visibility:auto; contain-intrinsic-size:900px; }
@media (max-width:640px) {
  .sound-toggle { right:14px; bottom:14px; min-width:auto; padding:9px 11px; }
  .sound-copy small { display:none; }
  .sound-copy strong { font-size:.61rem; }
  .ambient { filter:blur(38px); }
  .meaning-card { backdrop-filter:none; }
}
@media (prefers-reduced-transparency: reduce) { .sound-toggle,.meaning-card { backdrop-filter:none; } }

@media (max-width: 420px) {
  .sound-toggle {
    max-width: calc(100vw - 28px);
  }
}
