/* ── Theme tokens ──
   Palette drawn from the hometown sky banner:
   slate-blue water, mist grey, warm paper. */
:root {
  --bg: #f8f7f4;
  --surface: #ffffff;
  --ink: #1d2a32;
  --text: #2c3a42;
  --muted: #66747c;
  --line: #e4e1d8;
  --accent: #20606f;
  --accent-soft: #2e7d8c;
  --accent-tint: rgba(32, 96, 111, 0.08);
  --hero-text: #f5f7f7;
  --shadow: 0 10px 30px rgba(29, 42, 50, 0.10);
  --serif: 'Source Serif 4', 'Noto Serif SC', 'Songti SC', Georgia, serif;
  --sans: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', sans-serif;
}

[data-theme="dark"] {
  --bg: #0f161b;
  --surface: #16212a;
  --ink: #eceae4;
  --text: #ccd3d6;
  --muted: #8d9aa1;
  --line: #2a3742;
  --accent: #74bcc9;
  --accent-soft: #8fd0db;
  --accent-tint: rgba(116, 188, 201, 0.10);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.8;
  transition: background .3s, color .3s;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-soft); }
::selection { background: var(--accent); color: #fff; }

/* ── Top navigation ── */
.topnav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.7rem clamp(1rem, 4vw, 2.5rem);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.topnav.scrolled { border-bottom-color: var(--line); }

.brand {
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
.brand:hover { color: var(--accent); }
.brand-alt {
  font-weight: 500;
  color: var(--muted);
  margin-left: 0.4rem;
  font-size: 1rem;
}

.nav-links {
  display: flex;
  gap: clamp(0.6rem, 2vw, 1.4rem);
  margin-left: auto;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-links::-webkit-scrollbar { display: none; }

.nav-links a {
  color: var(--text);
  font-size: 0.93rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.2rem 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.icon-btn {
  background: none;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s, color .2s;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }

.lang-btn {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  border-radius: 999px;
  padding: 0.18rem 0.75rem;
  font-size: 0.85rem;
  font-family: var(--sans);
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.lang-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ── Cover page ── */
.cover-body { overflow: hidden; }
.cover { position: fixed; inset: 0; }

.cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  animation: cover-zoom 22s ease-out forwards;
}
@keyframes cover-zoom {
  from { transform: scale(1.07); }
  to { transform: scale(1); }
}

.cover-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(12, 42, 52, 0.74) 0%, rgba(12, 42, 52, 0.28) 45%, rgba(12, 42, 52, 0.20) 100%),
    linear-gradient(to right, rgba(12, 42, 52, 0.42) 0%, rgba(12, 42, 52, 0) 60%);
}

.cover-actions {
  position: absolute;
  top: clamp(1rem, 3vw, 1.75rem);
  right: clamp(1rem, 3vw, 2rem);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  z-index: 2;
}
.cover-actions .icon-btn,
.cover-actions .lang-btn {
  border-color: rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.9);
  background: rgba(13, 23, 30, 0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.cover-actions .icon-btn:hover,
.cover-actions .lang-btn:hover {
  border-color: #fff;
  color: #fff;
}

.cover-inner {
  position: absolute;
  left: clamp(1.5rem, 8vw, 7rem);
  right: clamp(1.5rem, 8vw, 7rem);
  bottom: clamp(3rem, 14vh, 8.5rem);
  color: var(--hero-text);
}

.cover-name {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.8rem, 8vw, 5.2rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.08;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
  animation: rise-in 0.9s ease-out both;
}

.cover-name-alt {
  margin: 0.4rem 0 0;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3.4vw, 2.1rem);
  font-weight: 500;
  opacity: 0.92;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
  animation: rise-in 0.9s ease-out 0.12s both;
}

.cover-sub {
  margin: 1.1rem 0 0;
  font-size: clamp(1.02rem, 2.1vw, 1.22rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  opacity: 0.94;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
  animation: rise-in 0.9s ease-out 0.24s both;
}

.cover-affil {
  margin: 0.25rem 0 0;
  font-size: clamp(0.92rem, 1.8vw, 1.05rem);
  letter-spacing: 0.07em;
  opacity: 0.78;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
  animation: rise-in 0.9s ease-out 0.32s both;
}

.cover-email {
  display: inline-block;
  margin-top: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 0.1rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
  transition: color .25s, border-color .25s;
  animation: rise-in 0.9s ease-out 0.4s both;
}
.cover-email:hover {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.85);
}

.cover-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem clamp(1.4rem, 3.5vw, 2.8rem);
  margin-top: clamp(1.8rem, 5vh, 3rem);
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  animation: rise-in 0.9s ease-out 0.45s both;
}

.cover-nav a {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
  border-bottom: 2px solid transparent;
  padding-bottom: 0.2rem;
  transition: color .25s, border-color .25s, transform .25s;
}
.cover-nav a:hover {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.85);
  transform: translateY(-2px);
}

.cover-nav-num {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.55);
}

.cover-credit {
  position: absolute;
  right: clamp(1rem, 3vw, 2rem);
  bottom: 0.9rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
  max-width: 56%;
  text-align: right;
  line-height: 1.5;
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Sub-page banner strip ── */
.page-banner {
  position: relative;
  height: clamp(150px, 24vh, 230px);
  overflow: hidden;
}
.page-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}
.page-banner-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(13, 23, 30, 0.34) 0%, rgba(13, 23, 30, 0.55) 100%);
}
.page-banner h1 {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(1.2rem, 4vh, 2.2rem);
  margin: 0 auto;
  max-width: 860px;
  padding: 0 clamp(1.25rem, 4vw, 2rem);
  color: var(--hero-text);
  font-family: var(--serif);
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

/* ── Main content ── */
.content {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 2rem) 1rem;
}

.section { margin-bottom: clamp(2.6rem, 6vw, 3.8rem); }

h2 {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
h2::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
h2 span { flex-shrink: 0; }

p { margin: 0 0 0.9rem; }

/* ── About ── */
.about-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(1.4rem, 4vw, 2.4rem);
  align-items: start;
}

.portrait { margin: 0; }
.portrait img {
  width: 100%;
  display: block;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

#about-text p {
  font-size: 1.02rem;
  text-align: justify;
}

.interests-label {
  margin: 1.3rem 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.tag-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tag-list li {
  border: 1px solid var(--line);
  background: var(--accent-tint);
  color: var(--accent);
  border-radius: 999px;
  padding: 0.16rem 0.85rem;
  font-size: 0.86rem;
  font-weight: 500;
}

.icon-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
  margin-top: 1.3rem;
}
.icon-row a {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  font-size: 0.88rem;
  color: var(--muted);
}
.icon-row a:hover { color: var(--accent); }
.icon-row svg { flex-shrink: 0; }

/* ── Numbered list (interests / CV entries) ── */
.paper-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: paper;
}
.paper-list li {
  position: relative;
  counter-increment: paper;
  padding: 1.05rem 0 1.05rem 2.4rem;
  border-bottom: 1px solid var(--line);
}
.paper-list li:first-child { padding-top: 0.2rem; }
.paper-list li:last-child { border-bottom: none; }
.paper-list li::before {
  content: counter(paper, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1.15rem;
  font-family: var(--serif);
  font-size: 0.88rem;
  color: var(--muted);
  opacity: 0.75;
}
.paper-list li:first-child::before { top: 0.3rem; }

.paper-title {
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.5;
}
.paper-authors {
  font-size: 0.92rem;
  color: var(--text);
  margin-top: 0.18rem;
}
.paper-venue {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.12rem;
}
.paper-venue em { color: var(--accent); font-style: italic; }

/* ── Inline portfolio gallery (handcraft) ── */
.item-portfolio { margin-top: 0.9rem; }
.gallery-label {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
/* ── Flip-style photo carousel ── */
.gallery-carousel { margin-top: 0.2rem; }
.gc-viewport {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  touch-action: pan-y;
  cursor: grab;
}
.gc-viewport:active { cursor: grabbing; }
.gc-landscape .gc-viewport,
.gc-square .gc-viewport { aspect-ratio: 4 / 3; }
.gc-track {
  display: flex;
  height: 100%;
  transition: transform 0.45s cubic-bezier(0.33, 0.9, 0.35, 1);
}
.gc-track img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}
.gc-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(13, 23, 30, 0.35);
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background 0.2s;
  z-index: 2;
}
.gc-btn:hover { background: rgba(13, 23, 30, 0.6); }
.gc-prev { left: 10px; }
.gc-next { right: 10px; }
.gc-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 0.55rem;
}
.gc-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 50%;
  border: none;
  background: var(--line);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.gc-dot.active { background: var(--accent); transform: scale(1.2); }

/* ── Pet section ── */
.pet-intro-row {
  display: flex;
  align-items: center;
  gap: 1.3rem;
}
.pet-intro-row .pet-intro {
  flex: 1;
  font-size: 1.02rem;
  margin-bottom: 1.1rem;
}
.pet-cutout {
  flex: 0 0 auto;
  width: clamp(90px, 14vw, 132px);
  margin-bottom: 1.1rem;
  filter: drop-shadow(0 4px 10px rgba(29, 42, 50, 0.18));
  transform-origin: 50% 80%;
  pointer-events: none;
}
.pet-cutout.wiggling {
  animation: pet-wiggle 0.7s ease-in-out;
}
@keyframes pet-wiggle {
  0% { transform: rotate(0deg); }
  20% { transform: rotate(-7deg); }
  45% { transform: rotate(6deg); }
  70% { transform: rotate(-4deg); }
  100% { transform: rotate(0deg); }
}
@media (prefers-reduced-motion: reduce) {
  .pet-cutout.wiggling { animation: none; }
}

.corr-note {
  margin: -1.2rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ── Motto blockquote ── */
.motto-quote {
  margin: 0;
  padding: 1.1rem 1.4rem;
  border-left: 2px solid var(--accent);
  background: var(--accent-tint);
  border-radius: 0 8px 8px 0;
  font-family: var(--serif);
  font-size: 1.18rem;
  color: var(--ink);
  line-height: 1.8;
}

/* ── Moment photo ── */
.moment { margin: 0 0 clamp(2.6rem, 6vw, 3.8rem); }
.moment-portrait img {
  max-width: min(520px, 100%);
  margin-inline: auto;
}
.moment img {
  width: 100%;
  display: block;
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.moment figcaption {
  margin-top: 0.6rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
}

/* ── CV ── */
.cv-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.6rem;
  border: 1px solid var(--accent);
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent);
  background: none;
  font-family: var(--sans);
  cursor: pointer;
  transition: background .2s, color .2s;
}
.cv-btn:hover { background: var(--accent); color: #fff; }

.cv-grid { margin: 0; }
.cv-grid dt {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 1.1rem;
}
.cv-grid dt:first-child { margin-top: 0; }
.cv-grid dd {
  margin: 0.15rem 0 0;
  font-size: 1rem;
  color: var(--text);
}

/* ── Contact ── */
.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.contact-list li {
  display: grid;
  grid-template-columns: 6.2rem 1fr;
  gap: 1rem;
  padding: 0.45rem 0;
}
.contact-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.25rem;
}

.map-wrap {
  margin-top: 1.8rem;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  aspect-ratio: 16 / 8.5;
}
#map {
  width: 100%;
  height: 100%;
  background: var(--surface);
  font-family: var(--sans);
}
#map .leaflet-control-zoom a {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line);
}
#map .leaflet-control-zoom a:hover { color: var(--accent); }
#map .leaflet-control-attribution {
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  color: var(--muted);
  font-size: 0.62rem;
}
#map .leaflet-control-attribution a { color: var(--muted); }
#map .leaflet-popup-content-wrapper {
  background: var(--surface);
  color: var(--text);
  border-radius: 8px;
  box-shadow: var(--shadow);
  font-family: var(--sans);
  font-size: 0.85rem;
  line-height: 1.55;
}
#map .leaflet-popup-tip { background: var(--surface); }

.map-link {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  text-align: right;
}

/* ── Footer ── */
.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  padding: 1.6rem 1.25rem 2rem;
  color: var(--muted);
  font-size: 0.84rem;
  text-align: center;
}
.site-footer p { margin: 0.15rem 0; }
.footer-credit { opacity: 0.8; }

/* ── Fade-in animation ── */
.fade-in {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s ease-out, transform .6s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .cover-img { animation: none; }
  .cover-name, .cover-name-alt, .cover-sub, .cover-affil, .cover-email, .cover-nav { animation: none; }
}

/* ── Music player (turntable) ── */
.music-player {
  margin-top: 1.4rem;
}
.turntable-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-top: 0.9rem;
}
.turntable {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 4vw, 2rem);
  padding: 1.3rem 1.5rem 1.3rem 1.3rem;
  background: var(--accent-tint);
  border: 1px solid var(--line);
  border-radius: 22px;
  cursor: pointer;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.turntable:hover {
  box-shadow: 0 10px 28px rgba(15, 40, 50, 0.12);
  transform: translateY(-2px);
}
.vinyl {
  position: relative;
  flex: 0 0 auto;
  width: clamp(120px, 30vw, 150px);
  aspect-ratio: 1;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  box-shadow:
    0 0 0 6px #1c1c1c,
    0 0 0 8px rgba(0, 0, 0, 0.25),
    0 8px 20px rgba(15, 40, 50, 0.25);
}
.vinyl img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
/* vinyl grooves overlay */
.vinyl::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.05) 0 1px,
    rgba(0, 0, 0, 0.08) 1px 4px
  );
  pointer-events: none;
}
.vinyl-hole {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  transform: translate(-50%, -50%);
  background: var(--bg);
  border: 3px solid #1c1c1c;
  border-radius: 50%;
  z-index: 2;
  pointer-events: none;
}
.turntable.playing .vinyl img {
  animation: vinyl-spin 3.6s linear infinite;
}
@keyframes vinyl-spin {
  to { transform: rotate(360deg); }
}
.turntable-info {
  min-width: 0;
}
.track-title {
  font-family: "Source Serif 4", "Noto Serif SC", serif;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--fg);
  line-height: 1.4;
}
.track-artist {
  margin-top: 0.25rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.track-hint {
  display: inline-block;
  margin-top: 0.55rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 0.14rem 0.7rem;
  transition: opacity 0.25s ease;
}
/* playing: hide the audio hint, arm engaged */
.turntable.playing .track-hint {
  opacity: 0;
  visibility: hidden;
}
/* tonearm: pivot at top-right, swings onto the record */
.tonearm {
  position: absolute;
  top: -13px;
  right: 34px;
  width: 7px;
  height: clamp(74px, 16vw, 96px);
  background: linear-gradient(180deg, #9a958a, #6f6a60);
  border-radius: 4px;
  transform-origin: 50% 10px;
  transform: rotate(22deg);
  transition: transform 0.8s cubic-bezier(0.34, 0.8, 0.35, 1);
  z-index: 3;
  pointer-events: none;
}
.tonearm::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #c9c4b8, #7c766b);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
.tonearm::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 18px;
  border-radius: 3px;
  background: #3d3a34;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}
.turntable.playing .tonearm {
  transform: rotate(52deg);
}
@media (prefers-reduced-motion: reduce) {
  .turntable.playing .vinyl img { animation: none; }
  .tonearm { transition: none; }
}

/* ── Responsive ── */
@media (max-width: 700px) {
  .topnav { flex-wrap: wrap; gap: 0.4rem 1rem; padding-bottom: 0.45rem; }
  .brand-alt { display: none; }
  .nav-links { order: 3; width: 100%; margin-left: 0; }

  .cover-inner { bottom: clamp(2.5rem, 10vh, 5rem); }
  .cover-nav { flex-direction: column; gap: 0.9rem; }
  .cover-credit { display: none; }

  .about-grid { grid-template-columns: 1fr; }
  .portrait {
    width: min(58%, 230px);
    margin: 0 auto 0.4rem;
  }
  #about-text p { text-align: left; }

  .contact-list li { grid-template-columns: 1fr; gap: 0.1rem; }

  .paper-list li { padding-left: 0; }
  .paper-list li::before { display: none; }

  .pet-intro-row { gap: 0.85rem; }
  .pet-cutout { width: 86px; }

  .turntable { align-items: flex-start; }
  .tonearm { right: 22px; }
}

/* ── Print (CV page) ── */
@media print {
  .topnav, .page-banner, .nav-actions, .cv-btn, .site-footer { display: none; }
  body { background: #fff; color: #000; font-size: 12pt; }
}


/* ── Single-page views ── */
.view { display: none; }
.view.active { display: block; }
