/* Japanese Zodiac — Modern Redesign */
/* Aesthetic: Rising Sun Ink — crisp paper, vermillion red, ink black */

:root {
  --bg:         #F5F1EA;
  --bg-card:    #EBE6DC;
  --bg-raised:  #E0D9CC;
  --border:     #C8BFB0;
  --border-red: #9A2828;
  --red:        #8B1A1A;
  --red-bright: #6E1010;
  --red-dim:    #B86060;
  --text:       #1A1008;
  --text-muted: #4A3828;
  --text-dim:   #8A7860;

  --font-display: 'Shippori Mincho B1', 'Noto Serif JP', Georgia, serif;
  --font-body:    'Lora', Georgia, serif;
  --font-label:   'Cinzel', 'Palatino Linotype', serif;

  --container: 1100px;
  --nav-height: 64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.75;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ── Container ── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

/* ── Navigation ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-height);
  background: rgba(245,241,234,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--red-bright);
  text-decoration: none;
  letter-spacing: 0.05em;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1;
}

.nav-logo span {
  color: var(--red);
  font-style: italic;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
}

.nav-links > li { position: relative; }

.nav-links > li > a {
  display: flex;
  align-items: center;
  padding: 0 12px;
  height: var(--nav-height);
  font-family: var(--font-label);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-links > li > a:hover,
.nav-links > li > a.active { color: var(--red-bright); }

/* Dropdown */
.dropdown {
  position: absolute;
  top: 100%; left: 0;
  background: #EDE5D8;
  border: 1px solid var(--border-red);
  border-top: 2px solid var(--red);
  min-width: 210px;
  padding: 8px 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 100;
}

.nav-links > li:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li a {
  display: block;
  padding: 9px 20px;
  font-family: var(--font-label);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}

.dropdown li a:hover {
  color: var(--red-bright);
  background: rgba(139,26,26,0.08);
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--text-muted);
  transition: transform 0.25s, opacity 0.25s;
}

/* ── Hero ── */
.hero {
  padding-top: calc(var(--nav-height) + 96px);
  padding-bottom: 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(139,26,26,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 50% 60%, rgba(139,26,26,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-red), transparent);
}

.hero-ornament {
  font-family: var(--font-label);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.hero-ornament::before,
.hero-ornament::after {
  content: '';
  width: 64px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--red-dim));
}

.hero-ornament::before {
  background: linear-gradient(to left, transparent, var(--red-dim));
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 9vw, 7rem);
  font-weight: 400;
  line-height: 1.02;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

.hero-title em {
  font-style: italic;
  color: var(--red-bright);
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 420px;
  margin: 0 auto;
  line-height: 1.9;
  font-style: italic;
}

/* ── Calculator ── */
.calculator-wrap {
  padding: 56px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition-delay: 0.15s !important;
}

.calculator {
  max-width: 480px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-red);
  padding: 40px 36px;
  position: relative;
}

.calculator::before {
  content: '';
  position: absolute;
  top: -1px; left: 32px; right: 32px;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--red), transparent);
}

.calc-heading {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 400;
  color: var(--red-bright);
  text-align: center;
  margin-bottom: 6px;
  letter-spacing: 0.03em;
}

.calc-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 28px;
  font-style: italic;
}

.calc-form {
  display: flex;
  gap: 10px;
}

.calc-input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border-red);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.1rem;
  padding: 13px 16px;
  outline: none;
  transition: border-color 0.2s;
  -moz-appearance: textfield;
}

.calc-input::-webkit-outer-spin-button,
.calc-input::-webkit-inner-spin-button { -webkit-appearance: none; }

.calc-input::placeholder { color: var(--text-dim); }
.calc-input:focus { border-color: var(--red); }

.calc-btn {
  background: var(--red);
  color: var(--bg);
  border: none;
  font-family: var(--font-label);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 13px 20px;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
  font-weight: 600;
}

.calc-btn:hover { background: var(--red-bright); }

.calc-result {
  margin-top: 24px;
  padding: 22px 20px;
  border: 1px solid var(--border);
  background: rgba(139,26,26,0.05);
  text-align: center;
  display: none;
}

.calc-result.visible {
  display: block;
  animation: fadeUp 0.35s ease;
}

.calc-result-animal {
  font-size: 2.4rem;
  line-height: 1;
  margin-bottom: 8px;
}

.calc-result-sign {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--red-bright);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.calc-result-year {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  font-style: italic;
}

.calc-result-link {
  display: inline-block;
  font-family: var(--font-label);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  text-decoration: none;
  border-bottom: 1px solid var(--red-dim);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.calc-result-link:hover {
  color: var(--red-bright);
  border-color: var(--red);
}

/* ── Section ── */
.section { padding: 72px 0; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 400;
  color: var(--text);
  text-align: center;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.section-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 48px;
  font-style: italic;
}

/* ── Zodiac Grid ── */
.zodiac-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.zodiac-card {
  background: var(--bg-card);
  padding: 28px 14px 24px;
  text-align: center;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: background 0.22s;
  position: relative;
}

.zodiac-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  pointer-events: none;
  transition: border-color 0.22s;
}

.zodiac-card:hover {
  background: var(--bg-raised);
  box-shadow: 0 4px 20px rgba(139,26,26,0.12), 0 1px 4px rgba(139,26,26,0.08);
}
.zodiac-card:hover::after { border-color: var(--red-dim); }

.zodiac-card img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: brightness(0.85) saturate(0.65);
  transition: filter 0.28s ease, transform 0.28s ease;
  margin-bottom: 4px;
}

.zodiac-card:hover img {
  filter: brightness(1.05) saturate(1.1);
  transform: scale(1.08) translateY(-2px);
}

.zodiac-card-num {
  font-family: var(--font-label);
  font-size: 0.5rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red-dim);
}

.zodiac-card-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.zodiac-card-years {
  font-size: 0.68rem;
  color: var(--text-dim);
  font-style: italic;
}

/* ── Page Hero ── */
.page-hero {
  padding-top: calc(var(--nav-height) + 72px);
  padding-bottom: 64px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 55% at 50% 0%, rgba(139,26,26,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero-label {
  font-family: var(--font-label);
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 20px;
}

.page-hero img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  margin: 0 auto 28px;
  filter: brightness(0.9) saturate(0.85);
}

.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 400;
  line-height: 1.08;
  color: var(--text);
  letter-spacing: 0.01em;
  margin-bottom: 14px;
}

.page-hero-title em { font-style: italic; color: var(--red-bright); }

.page-hero-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.85;
  font-style: italic;
}

/* ── Article ── */
.article {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 28px 80px;
}

.article > h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--red-bright);
  letter-spacing: 0.02em;
  margin: 52px 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.article > h2:first-child { margin-top: 0; }

.article > h3 {
  font-family: var(--font-label);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin: 28px 0 14px;
}

.article > p {
  color: var(--text);
  margin-bottom: 18px;
  font-size: 1rem;
  line-height: 1.88;
}

/* ── Traits Grid ── */
.traits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin: 24px 0 40px;
}

.traits-col {
  background: var(--bg-card);
  padding: 24px 22px;
}

.traits-col-label {
  font-family: var(--font-label);
  font-size: 0.55rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.traits-col-label::before {
  content: '';
  width: 20px;
  height: 1px;
}

.traits-col-label.pos { color: #4A9A5A; }
.traits-col-label.pos::before { background: #4A9A5A; }
.traits-col-label.neg { color: #B04040; }
.traits-col-label.neg::before { background: #B04040; }

.traits-col ul { list-style: none; }

.traits-col li {
  font-size: 0.92rem;
  color: var(--text);
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.traits-col li:last-child { border-bottom: none; }

.traits-col li::before {
  content: '—';
  color: var(--text-dim);
  flex-shrink: 0;
  font-size: 0.7rem;
}

/* ── Compatibility ── */
.compat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin: 24px 0 40px;
}

.compat-col {
  background: var(--bg-card);
  padding: 20px 18px;
}

.compat-col-label {
  font-family: var(--font-label);
  font-size: 0.52rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.compat-col-label.best { color: #4A9A5A; }
.compat-col-label.ok { color: var(--red); }
.compat-col-label.worst { color: #B04040; }

.compat-col ul { list-style: none; }

.compat-col li {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
}

.compat-col li:last-child { border-bottom: none; }

/* ── Famous people ── */
.famous-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--red-dim);
  padding: 22px 24px;
  margin: 28px 0;
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.9;
}

/* ── In Japanese ── */
.kanji-block {
  background: var(--bg-card);
  border: 1px solid var(--border-red);
  padding: 28px 32px;
  margin: 28px 0;
  text-align: center;
}

.kanji-char {
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: var(--red-bright);
  line-height: 1;
  margin-bottom: 12px;
}

.kanji-romaji {
  font-family: var(--font-label);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── Sign nav ── */
.sign-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 60px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.sign-nav a {
  font-family: var(--font-label);
  font-size: 0.56rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}

.sign-nav a:hover { color: var(--red); }

/* ── Element page ── */
.element-intro {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 40px;
  align-items: start;
  margin: 40px 0;
  padding: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border-red);
}

.element-intro img {
  width: 130px;
  height: 130px;
  object-fit: contain;
  filter: brightness(0.88) saturate(0.8);
}

.element-traits {
  list-style: none;
}

.element-traits li {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--red-bright);
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--border);
}

.element-traits li:last-child { border-bottom: none; }

.element-traits li::before {
  content: '✦';
  font-size: 0.55rem;
  color: var(--red-dim);
  flex-shrink: 0;
}

/* ── Yin Yang ── */
.yinyang-visual {
  display: flex;
  justify-content: center;
  margin: 40px 0;
}

.yinyang-visual img {
  width: 130px;
  height: auto;
  filter: brightness(0.85) saturate(0.6);
}

/* ── Two-column info ── */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin: 28px 0;
}

.info-col {
  background: var(--bg-card);
  padding: 28px 24px;
}

.info-col-label {
  font-family: var(--font-label);
  font-size: 0.55rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}

.info-col ul { list-style: none; }

.info-col li {
  font-size: 0.9rem;
  color: var(--text);
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 10px;
}

.info-col li:last-child { border-bottom: none; }

.info-col li::before {
  content: '—';
  color: var(--text-dim);
  flex-shrink: 0;
}

/* ── Blood type ── */
.blood-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin: 28px 0;
}

.blood-type-card {
  background: var(--bg-card);
  padding: 28px 24px;
}

.blood-type-letter {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 400;
  color: var(--red-bright);
  line-height: 1;
  margin-bottom: 16px;
}

.blood-type-card ul { list-style: none; margin-top: 8px; }

.blood-type-card li {
  font-size: 0.88rem;
  color: var(--text);
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 8px;
}

.blood-type-card li:last-child { border-bottom: none; }

.blood-type-card li::before {
  content: '—';
  color: var(--text-dim);
  flex-shrink: 0;
  font-size: 0.7rem;
}

/* ── Animal Time ── */
.animal-time-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.animal-time-card {
  background: var(--bg-card);
  padding: 28px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: background 0.22s;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.animal-time-card:hover { background: var(--bg-raised); }

.animal-time-card img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  filter: brightness(0.85) saturate(0.7);
  transition: filter 0.22s;
}

.animal-time-card:hover img { filter: brightness(1) saturate(1); }

.at-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text);
}

.at-hours {
  font-family: var(--font-label);
  font-size: 0.56rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}

/* ── Divider ── */
.ornamental-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 40px 0;
  color: var(--red-dim);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
}

.ornamental-divider::before,
.ornamental-divider::after {
  content: '';
  flex: 1;
  max-width: 120px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-red));
}

.ornamental-divider::before {
  background: linear-gradient(to left, transparent, var(--border-red));
}

/* ── Ad units ── */
.ad-unit {
  max-width: var(--container);
  margin: 0 auto;
  padding: 24px 28px;
  text-align: center;
}

/* ── Footer ── */
footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.footer-brand .footer-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--red-bright);
  margin-bottom: 8px;
}

.footer-brand p {
  font-size: 0.82rem;
  color: var(--text-dim);
  font-style: italic;
  max-width: 220px;
  line-height: 1.6;
}

.footer-nav-title {
  font-family: var(--font-label);
  font-size: 0.52rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}

.footer-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-nav-links a {
  font-size: 0.82rem;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nav-links a:hover { color: var(--red); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-dim);
  font-style: italic;
}

/* ── Zodiac/Elements Index ── */
.index-intro {
  max-width: 700px;
  margin: 0 auto;
  padding: 60px 28px;
}

.index-intro h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--red-bright);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.index-intro p {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 20px;
}

/* ── Element quick-ref ── */
.element-ref {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 28px;
  margin: 28px 0;
}

.element-ref-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.element-ref-row:last-child { border-bottom: none; }

.element-ref-years {
  font-family: var(--font-label);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  color: var(--red-dim);
  min-width: 60px;
}

.element-ref-name a {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--red-bright);
  text-decoration: none;
  transition: color 0.2s;
}

.element-ref-name a:hover { color: var(--text); }

/* ── About ── */
.about-content {
  max-width: 700px;
  margin: 0 auto;
  padding: 60px 28px 80px;
  overflow-wrap: break-word;
}

.about-content h2 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 400;
  color: var(--red-bright);
  margin: 48px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.about-content h2:first-child { margin-top: 0; }

.about-content p {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.88;
  margin-bottom: 18px;
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.fade-up { animation: fadeUp 0.6s ease both; }

/* ── Grain overlay ── */
html::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.022;
}

/* ── Entrance animations: hero ── */
.hero-ornament { animation: fadeUp 0.8s 0.08s ease both; }
.hero-title    { animation: fadeUp 0.95s 0.22s ease both; }
.hero-subtitle { animation: fadeUp 0.8s 0.44s ease both; }

/* ── Entrance animations: page-hero ── */
.page-hero-label { animation: fadeUp 0.7s 0.1s ease both; }
.page-hero img   { animation: fadeIn 0.9s 0.18s ease both; }
.page-hero-title { animation: fadeUp 0.85s 0.22s ease both; }
.page-hero-desc  { animation: fadeUp 0.75s 0.4s ease both; }

/* ── Scroll reveal ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.72s ease, transform 0.72s ease;
}
[data-reveal].in-view {
  opacity: 1;
  transform: none;
}

/* Staggered grid reveals */
.zodiac-grid.in-view .zodiac-card,
.animal-time-grid.in-view .animal-time-card {
  animation: fadeUp 0.5s ease both;
}
.zodiac-grid.in-view .zodiac-card:nth-child(1),
.animal-time-grid.in-view .animal-time-card:nth-child(1)  { animation-delay: 0.00s; }
.zodiac-grid.in-view .zodiac-card:nth-child(2),
.animal-time-grid.in-view .animal-time-card:nth-child(2)  { animation-delay: 0.04s; }
.zodiac-grid.in-view .zodiac-card:nth-child(3),
.animal-time-grid.in-view .animal-time-card:nth-child(3)  { animation-delay: 0.08s; }
.zodiac-grid.in-view .zodiac-card:nth-child(4),
.animal-time-grid.in-view .animal-time-card:nth-child(4)  { animation-delay: 0.12s; }
.zodiac-grid.in-view .zodiac-card:nth-child(5),
.animal-time-grid.in-view .animal-time-card:nth-child(5)  { animation-delay: 0.16s; }
.zodiac-grid.in-view .zodiac-card:nth-child(6),
.animal-time-grid.in-view .animal-time-card:nth-child(6)  { animation-delay: 0.20s; }
.zodiac-grid.in-view .zodiac-card:nth-child(7),
.animal-time-grid.in-view .animal-time-card:nth-child(7)  { animation-delay: 0.24s; }
.zodiac-grid.in-view .zodiac-card:nth-child(8),
.animal-time-grid.in-view .animal-time-card:nth-child(8)  { animation-delay: 0.28s; }
.zodiac-grid.in-view .zodiac-card:nth-child(9),
.animal-time-grid.in-view .animal-time-card:nth-child(9)  { animation-delay: 0.32s; }
.zodiac-grid.in-view .zodiac-card:nth-child(10),
.animal-time-grid.in-view .animal-time-card:nth-child(10) { animation-delay: 0.36s; }
.zodiac-grid.in-view .zodiac-card:nth-child(11),
.animal-time-grid.in-view .animal-time-card:nth-child(11) { animation-delay: 0.40s; }
.zodiac-grid.in-view .zodiac-card:nth-child(12),
.animal-time-grid.in-view .animal-time-card:nth-child(12) { animation-delay: 0.44s; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .zodiac-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  :root { --nav-height: 58px; }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height); left: 0; right: 0; bottom: 0;
    background: #EDE5D8;
    flex-direction: column;
    padding: 24px;
    overflow-y: auto;
    gap: 0;
    border-top: 1px solid var(--border);
  }

  .nav-links.open { display: flex; }

  .nav-links > li > a {
    height: auto;
    padding: 14px 0;
    font-size: 0.72rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
  }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    border: none;
    border-top: none;
    padding: 4px 0 12px 16px;
    min-width: 0;
  }

  .dropdown li a {
    padding: 8px 0;
    font-size: 0.65rem;
    border-bottom: none;
    color: var(--text-dim);
  }

  .nav-toggle { display: flex; }

  .zodiac-grid { grid-template-columns: repeat(3, 1fr); }
  .traits-grid { grid-template-columns: 1fr; }
  .compat-grid { grid-template-columns: 1fr; }
  .blood-type-grid { grid-template-columns: 1fr; }
  .animal-time-grid { grid-template-columns: repeat(2, 1fr); }
  .element-intro { grid-template-columns: 1fr; text-align: center; }
  .info-grid { grid-template-columns: 1fr; }

  .footer-grid { justify-content: center; text-align: center; }
  .footer-nav-links { align-items: center; }
  .footer-brand p { max-width: 100%; }
}

@media (max-width: 540px) {
  .zodiac-grid { grid-template-columns: repeat(2, 1fr); }
  .animal-time-grid { grid-template-columns: repeat(2, 1fr); }
  .calc-form { flex-direction: column; }
  .calculator { padding: 28px 20px; }
  .sign-nav { flex-direction: column; gap: 16px; text-align: center; }
  .about-content { padding: 40px 20px 60px; }
  .about-content h2 { font-size: 1.35rem; }
  .article { padding: 40px 20px 60px; }
  .article > h2 { font-size: 1.35rem; }
  .page-hero-title { font-size: clamp(1.9rem, 8vw, 2.4rem); }
}
