:root {
  --bg: #f6f2ea;
  --bg-elevated: #efe9dd;
  --surface: #fbf9f4;
  --ink: #182026;
  --ink-soft: #4e575e;
  --ink-muted: #727b82;
  --border: rgba(24, 32, 38, 0.13);
  --border-strong: rgba(24, 32, 38, 0.26);
  --terracotta: #a94734;
  --terracotta-soft: rgba(169, 71, 52, 0.1);
  --olive: #485a4b;
  --gold: #c49b48;
  --dark-bg: #182026;
  --dark-surface: #212b33;
  --dark-border: rgba(246, 242, 234, 0.14);
  --dark-text: #f6f2ea;
  --dark-muted: rgba(246, 242, 234, 0.72);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --shadow-soft: 0 22px 50px -24px rgba(24, 32, 38, 0.24);
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background-color: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.container {
  width: min(1200px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 242, 234, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.brand-mark {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--terracotta);
}

.brand-name {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.brand-city {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding-left: 0.65rem;
  border-left: 1px solid var(--border);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  transition: color 0.2s ease;
}

.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: var(--terracotta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-install-btn[hidden] {
  display: none;
}

.nav-install-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-install-btn:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.lang-btn {
  border: none;
  background: none;
  padding: 0.14rem 0.28rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  cursor: pointer;
  border-radius: 4px;
  transition: color 0.18s ease;
}

.lang-btn:hover {
  color: var(--ink);
}

.lang-btn.is-active {
  color: var(--terracotta);
  font-weight: 600;
}

.lang-sep {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--border-strong);
}

.ig-icon {
  flex-shrink: 0;
  color: var(--terracotta);
  transition: color 0.2s ease;
}

.footer-pill:hover .ig-icon {
  color: var(--gold);
}

.detail-link {
  color: var(--terracotta);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px dashed rgba(169, 71, 52, 0.45);
  margin-left: 0.35rem;
  white-space: nowrap;
}

.detail-link:hover {
  border-bottom-color: var(--terracotta);
}

/* HERO */
.hero {
  padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(3.5rem, 6vw, 5.5rem);
  border-bottom: 1px solid var(--border);
}

.hero-editorial {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(2rem, 4vw, 3rem);
}

.hero-masthead {
  width: 100%;
  max-width: 1040px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin: 0 0 1.15rem;
  color: var(--terracotta);
  font-size: 0.8rem;
  font-weight: 500;
}

.eyebrow .sep {
  color: var(--border-strong);
}

.hero-title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.25rem, 5.8vw, 4.9rem);
  line-height: 1.04;
  letter-spacing: -0.028em;
  color: var(--ink);
  white-space: nowrap;
}

.aka-line {
  width: 100%;
  max-width: 820px;
  margin: 1.45rem 0 1.35rem;
  padding: 0.95rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.45rem 1rem;
}

.aka-item {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
}

.aka-dot {
  color: var(--border-strong);
  font-size: 1.2rem;
}

.aka-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}

.aka-value {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.1vw, 1.65rem);
  line-height: 1.2;
}

.aka-acronym {
  text-decoration: none;
  font-weight: 500;
  color: var(--terracotta);
  letter-spacing: 0.03em;
  display: inline-block;
  width: fit-content;
  border-bottom: 1px dashed rgba(169, 71, 52, 0.45);
  transition: border-color 0.2s ease, opacity 0.2s ease;
}

.aka-acronym:hover {
  border-bottom-color: var(--terracotta);
}

.aka-modern {
  font-style: italic;
  color: var(--ink);
}

.hero-lead {
  margin: 0 0 1.45rem;
  font-size: 1.02rem;
  color: var(--ink-soft);
  max-width: 58ch;
}

/* PRONUNCIATION INTERACTIVE BOX */
.pronounce-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.45rem 1.1rem 0.45rem 0.5rem;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.55rem 0.9rem;
  max-width: 100%;
}

.pronounce-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: fit-content;
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 0.46rem 0.95rem;
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.pronounce-btn:hover {
  background: var(--terracotta);
  border-color: var(--terracotta);
  transform: translateY(-1px);
}

.pronounce-btn:active {
  transform: translateY(0);
}

.pronounce-icon {
  font-size: 0.9rem;
  line-height: 1;
}

.pronounce-output {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.3rem 0.65rem;
  font-size: 0.86rem;
}

.pronounce-phonetic {
  color: var(--terracotta);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0.02em;
}

.pronounce-note {
  color: var(--ink-soft);
}

/* HERO PHOTO FRAME */
.hero-frame {
  width: 100%;
  max-width: 980px;
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.9rem;
  box-shadow: var(--shadow-soft);
}

.photo-stage {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #d8d1c5;
  aspect-ratio: 4 / 3;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), filter 0.3s ease;
}

.photo-stage.has-spotlight .hero-photo {
  filter: brightness(0.76) saturate(0.92);
}

.spotlight-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.photo-stage.has-spotlight .spotlight-layer {
  opacity: 1;
}

.spotlight-ring {
  position: absolute;
  width: 13%;
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid rgba(251, 249, 244, 0.95);
  box-shadow:
    0 0 0 4px rgba(169, 71, 52, 0.45),
    0 10px 28px rgba(0, 0, 0, 0.35);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 70%);
  transition: left 0.32s cubic-bezier(0.22, 1, 0.36, 1), top 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.expand-chip {
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.78rem;
  border-radius: 999px;
  border: 1px solid rgba(251, 249, 244, 0.35);
  background: rgba(24, 32, 38, 0.72);
  color: #fbf9f4;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.expand-chip:hover {
  background: rgba(169, 71, 52, 0.92);
  transform: translateY(-1px);
}

.family-caption {
  padding: 1rem 0.35rem 0.35rem;
}

.caption-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.caption-tag {
  color: var(--terracotta);
}

.caption-hint {
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.roster-pills {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.roster-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.36rem 0.72rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.roster-pill span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--ink-muted);
}

.roster-pill:hover,
.roster-pill.is-active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.roster-pill:hover span,
.roster-pill.is-active span {
  color: var(--gold);
}

.roster-note {
  margin: 0.85rem 0 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
  min-height: 1.5em;
}

/* SHARED SECTIONS */
.section {
  padding: clamp(4rem, 7vw, 6.5rem) 0;
}

.section-head {
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.section-index {
  margin: 0 0 0.85rem;
  color: var(--terracotta);
}

.section-head-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem 3rem;
  align-items: end;
}

.section-title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.15rem, 4vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
}

.section-desc {
  margin: 0;
  font-size: 1rem;
  color: var(--ink-soft);
  max-width: 48ch;
}

/* ACRONYM SECTION */
.acronym-section {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-elevated) 100%);
}

.acronym-board {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0.65rem;
}

.letter-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 146px;
  padding: 1rem 0.9rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, background-color 0.22s ease, box-shadow 0.22s ease;
}

.letter-tile:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}

.letter-char {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 3.5vw, 3.1rem);
  line-height: 1;
  font-weight: 500;
  color: var(--ink);
}

.letter-name {
  margin-top: auto;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
}

.letter-kind {
  font-size: 0.64rem;
  color: var(--ink-muted);
  margin-top: 0.15rem;
}

.letter-tile.is-canine {
  background: #f5efe3;
}

.letter-tile.is-active {
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: 0 14px 30px -16px rgba(24, 32, 38, 0.55);
  transform: translateY(-3px);
}

.letter-tile.is-active .letter-char {
  color: var(--gold);
}

.letter-tile.is-active .letter-name {
  color: var(--bg);
}

.letter-tile.is-active .letter-kind {
  color: rgba(246, 242, 234, 0.65);
}

.acronym-detail {
  margin-top: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.5rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem 2rem;
}

.detail-badge {
  color: var(--terracotta);
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: var(--terracotta-soft);
  white-space: nowrap;
}

.detail-name {
  margin: 0 0 0.2rem;
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 500;
}

.detail-role {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.detail-nav {
  display: flex;
  gap: 0.5rem;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
}

.icon-btn:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

/* CANINE DARK SECTION */
.canine-section {
  background: var(--dark-bg);
  color: var(--dark-text);
}

.canine-section .section-index {
  color: var(--gold);
}

.canine-section .section-desc {
  color: var(--dark-muted);
}

.canine-spread {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.canine-card {
  background: var(--dark-surface);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.canine-feature {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
  align-items: stretch;
}

.canine-media {
  position: relative;
  overflow: hidden;
  background: #12181d;
}

.canine-feature .canine-media {
  aspect-ratio: 4 / 3;
}

.canine-portrait {
  aspect-ratio: 4 / 4.4;
}

.canine-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.canine-card:hover .canine-media img {
  transform: scale(1.025);
}

.canine-info {
  padding: clamp(1.35rem, 2.5vw, 2.15rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.canine-tag {
  color: var(--gold);
  margin-bottom: 0.7rem;
}

.canine-title {
  margin: 0 0 0.7rem;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.55rem, 2.5vw, 2.15rem);
  line-height: 1.12;
  color: var(--dark-text);
}

.canine-text {
  margin: 0;
  color: var(--dark-muted);
  font-size: 0.96rem;
}

/* FACTS & ALBUM SECTION */
.facts-section {
  background: var(--bg);
}

.facts-grid {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.fact-item {
  padding: 2rem 1.5rem 2rem 0;
  border-right: 1px solid var(--border);
}

.fact-item:not(:first-child) {
  padding-left: 1.5rem;
}

.fact-item:last-child {
  border-right: none;
  padding-right: 0;
}

.fact-num {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 4.5vw, 3.8rem);
  font-weight: 400;
  line-height: 1;
  color: var(--terracotta);
  margin-bottom: 0.9rem;
}

.fact-label {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.fact-label strong {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
}

.fact-label span {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* ALBUM STRIP */
.album-strip {
  margin-top: 3.5rem;
}

.album-strip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
  color: var(--ink-muted);
}

.text-link-btn {
  border: none;
  background: none;
  padding: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--terracotta);
  cursor: pointer;
}

.text-link-btn:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.thumb-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.thumb-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.thumb-btn:hover {
  transform: translateY(-2px);
  border-color: var(--terracotta);
}

.thumb-btn img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.thumb-btn span {
  color: var(--ink-soft);
  padding: 0 0.2rem 0.15rem;
}

/* FOOTER */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 3rem;
  background: var(--bg-elevated);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-title {
  margin: 0 0 0.2rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
}

.footer-sub {
  margin: 0;
  color: var(--ink-muted);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}

.footer-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.footer-pill:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--olive);
}

.footer-domain {
  color: var(--ink-muted);
}

/* LIGHTBOX */
.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 22, 27, 0.9);
  backdrop-filter: blur(8px);
}

.lightbox-shell {
  position: relative;
  z-index: 1;
  width: min(1040px, 100%);
  max-height: 92vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 1rem;
  color: var(--dark-text);
}

.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lightbox-counter {
  color: var(--gold);
}

.lightbox-close {
  border: 1px solid var(--dark-border);
  background: rgba(246, 242, 234, 0.08);
  color: var(--dark-text);
  border-radius: 999px;
  padding: 0.42rem 0.9rem;
  font-size: 0.84rem;
  cursor: pointer;
}

.lightbox-close:hover {
  background: var(--terracotta);
  border-color: var(--terracotta);
}

.lightbox-stage {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  min-height: 0;
}

.lightbox-stage img {
  max-height: 68vh;
  max-width: 100%;
  width: auto;
  margin-inline: auto;
  border-radius: var(--radius-md);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--dark-border);
  background: rgba(246, 242, 234, 0.08);
  color: var(--dark-text);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}

.lightbox-arrow:hover {
  background: var(--terracotta);
  border-color: var(--terracotta);
}

.lightbox-caption {
  text-align: center;
  max-width: 60ch;
  margin-inline: auto;
}

.lightbox-caption h3 {
  margin: 0 0 0.25rem;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.35rem;
}

.lightbox-caption p {
  margin: 0;
  color: var(--dark-muted);
  font-size: 0.92rem;
}

/* IOS INSTALL MODAL */
.ios-modal[hidden] {
  display: none;
}

.ios-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.ios-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 22, 27, 0.72);
  backdrop-filter: blur(6px);
}

.ios-modal-card {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
}

.ios-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.ios-modal-tag {
  color: var(--terracotta);
}

.ios-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.ios-modal-card h3 {
  margin: 0 0 0.85rem;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.4rem;
}

.ios-steps {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--ink-soft);
  font-size: 0.94rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* REVEAL ANIMATION */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* RESPONSIVE */
@media (max-width: 980px) {
  .hero-grid,
  .section-head-grid,
  .canine-feature {
    grid-template-columns: 1fr;
  }

  .acronym-board {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .facts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fact-item {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 0;
  }

  .fact-item:not(:first-child) {
    padding-left: 0;
  }

  .fact-item:nth-child(odd) {
    padding-right: 1.5rem;
    border-right: 1px solid var(--border);
  }

  .fact-item:nth-child(even) {
    padding-left: 1.5rem;
  }

  .fact-item:nth-last-child(-n + 2) {
    border-bottom: none;
  }

  .acronym-detail {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .detail-badge {
    width: fit-content;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(1200px, calc(100% - 1.5rem));
  }

  .hero-title {
    white-space: normal;
    font-size: clamp(2rem, 8.8vw, 2.75rem);
  }

  .aka-dot {
    display: none;
  }

  .pronounce-box {
    border-radius: var(--radius-md);
    padding: 0.85rem 1rem;
  }

  .brand-city {
    display: none;
  }

  .site-nav {
    gap: 0.85rem;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .site-nav a {
    font-size: 0.82rem;
  }

  .nav-install-btn {
    padding: 0.3rem 0.65rem;
    font-size: 0.76rem;
  }

  .acronym-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .letter-tile {
    min-height: 112px;
  }

  .canine-spread,
  .thumb-row,
  .facts-grid {
    grid-template-columns: 1fr;
  }

  .fact-item:nth-child(odd),
  .fact-item:nth-child(even) {
    padding: 1.4rem 0;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .fact-item:last-child {
    border-bottom: none;
  }

  .lightbox-stage {
    grid-template-columns: 1fr;
  }

  .lightbox-arrow {
    position: fixed;
    bottom: 1.25rem;
  }

  #lightboxPrev {
    left: 1.25rem;
  }

  #lightboxNext {
    right: 1.25rem;
  }
}
