/* ─────────────────────────────────────────────
   Twins on Ice — app.css
   ───────────────────────────────────────────── */
/* Google Fonts */
/* Partials */
/* ─────────────────────────────────────────────
   Root Variables & Reset
   ───────────────────────────────────────────── */
:root {
  --ink: #0a0d14;
  --surface: #f4f3f0;
  --card: #ffffff;
  --ice: #b8d8e8;
  --ice-dark: #226f9c;
  --accent: #1a3a52;
  --muted: #6e7582;
  --border: rgba(10, 13, 20, 0.08);
  --glass-bg: rgba(244, 243, 240, 0.72);
  --glass-bdr: rgba(255, 255, 255, 0.55);
  --radius: 1.25rem;
  --radius-sm: 0.75rem;
  --nav-h: 60px;
  --transition: 0.4s cubic-bezier(0.2, 1, 0.3, 1);
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Playfair Display", serif;
  --font-logo: "Cormorant Garamond", "Playfair Display", "Didot", "Bodoni MT", Georgia, serif;
  --ice-glow: rgba(43, 155, 215, 0.35);
  --nav-hover-bg: rgba(10, 13, 20, 0.05);
}

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

/* ── Custom Selection (Cross-browser support) ── */
::selection {
  background-color: var(--accent);
  color: var(--surface);
}

::-moz-selection {
  background-color: var(--accent);
  color: var(--surface);
}

html {
  scroll-behavior: smooth;
  font-size: 19px;
  height: 100%;
  width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (max-width: 991px) {
  html {
    font-size: 17.5px;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  background: var(--surface);
  color: var(--ink);
  line-height: 1.65;
  width: 100%;
  overflow-x: hidden;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Global Scrollbar Hiding ── */
* {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

*::-webkit-scrollbar {
  display: none !important;
}

/* ── Typography Enhancements ── */
.font-serif {
  font-family: var(--font-display);
}

.text-balance {
  text-wrap: balance;
}

.ls-wide {
  letter-spacing: 0.15em;
}

.ls-wider {
  letter-spacing: 0.3em;
}

/* ── Animations & Transitions ── */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-fade {
  animation: fadeIn 0.8s ease forwards;
}

.animate-slide-up {
  animation: slideUp 0.8s cubic-bezier(0.2, 1, 0.3, 1) forwards;
}

.animate-slide-down {
  animation: slideDown 0.8s cubic-bezier(0.2, 1, 0.3, 1) forwards;
}

.animate-scale {
  animation: scaleIn 0.8s cubic-bezier(0.2, 1, 0.3, 1) forwards;
}

/* Global Page Load */
body {
  opacity: 0;
  animation: fadeIn 0.6s 0.2s ease forwards;
}

/* ── Reveal Animations (Scroll) ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s cubic-bezier(0.2, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
  will-change: transform, opacity;

  &.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal--scale {
  transform: scale(0.95);

  &.revealed {
    transform: scale(1);
  }
}

/* Staggered Children */
.stagger-reveal {
  &>* {
    opacity: 0;
    transform: translateY(20px);
    transition:
      opacity 0.6s cubic-bezier(0.2, 1, 0.3, 1),
      transform 0.6s cubic-bezier(0.2, 1, 0.3, 1);
  }

  &.revealed>* {
    opacity: 1;
    transform: translateY(0);
  }

  &.revealed>*:nth-child(1) {
    transition-delay: 0.1s;
  }

  &.revealed>*:nth-child(2) {
    transition-delay: 0.2s;
  }

  &.revealed>*:nth-child(3) {
    transition-delay: 0.3s;
  }

  &.revealed>*:nth-child(4) {
    transition-delay: 0.4s;
  }

  &.revealed>*:nth-child(5) {
    transition-delay: 0.5s;
  }

  &.revealed>*:nth-child(6) {
    transition-delay: 0.6s;
  }

  &.fully-revealed>* {
    /* Ai Could not find it. So a Human had to */
    transition-delay: 0s !important;
  }
}

@media (prefers-reduced-motion: reduce) {

  .reveal,
  .animate-fade,
  .animate-slide-up,
  .animate-slide-down,
  .animate-scale,
  .stagger-reveal>*,
  body {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: all var(--transition);
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
  transition: all var(--transition);
}

:focus-visible {
  outline: 2px solid var(--ice-dark);
  outline-offset: 4px;
}

/* Stable navigation; the homepage adds scroll-driven framing below. */
:root { --nav-h: 76px; }
.skip-link { position: fixed; top: 0.75rem; left: 1rem; z-index: 2000; padding: 0.75rem 1rem; border-radius: 0.5rem; color: #fff; background: var(--ink); clip-path: inset(100%); }
.skip-link:focus { clip-path: none; }
#navbar { --nav-padding-inline: max(1.5rem, calc((100vw - 1280px) / 2)); position: fixed; inset: 0 0 auto; z-index: 1000; height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 0 var(--nav-padding-inline); background: #faf9f6; border-bottom: 1px solid var(--border); transition: box-shadow 150ms ease; }
#navbar.scrolled { box-shadow: 0 4px 20px #0a0d140a; }
.nav-logo { flex-shrink: 0; font-family: var(--font-logo); font-size: 1.85rem; font-weight: 600; letter-spacing: -0.04em; line-height: 1; color: var(--ink); white-space: nowrap; }
.footer-logo .ice-accent { font-family: var(--font-logo); font-style: italic; font-weight: 500; letter-spacing: 0.01em; background: linear-gradient(135deg, #18669e 0%, #2f93ca 50%, #0d466e 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; color: #18669e; }
.nav-logo .ice-accent { color: var(--ice-dark); font-style: italic; font-weight: 500; }
.nav-links { display: flex; align-items: center; justify-content: center; gap: 0.2rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0.65rem 0.8rem; border-radius: 0.4rem; font-size: 0.8rem; font-weight: 500; color: var(--muted); transition: color 150ms ease, background-color 150ms ease; white-space: nowrap; }
.nav-links a:hover { color: var(--ink); }
.nav-links a:is([aria-current="page"], .active) { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.4em; }
.nav-right { display: flex; align-items: center; gap: 0.65rem; flex-shrink: 0; }
.nav-lang-switch { color: var(--ice-dark); display: inline-flex; gap: 0.4rem; align-items: center; justify-content: center; min-height: 44px; padding: 0.5rem 0.75rem; border: 1px solid var(--border); border-radius: 0.5rem; font-size: 0.75rem; font-weight: 600; }
.nav-lang-switch:hover { border-color: var(--ice-dark); background: #226f9c08; }
.lang-globe-icon { width: 16px; height: 16px; flex-shrink: 0; }
.nav-toggle { display: none; width: 44px; height: 44px; position: relative; border: 1px solid var(--border); border-radius: 0.5rem; }
.nav-toggle span { position: absolute; left: 11px; top: 21px; width: 20px; height: 2px; background: var(--ink); transition: rotate 150ms ease, opacity 150ms ease; }
.nav-toggle span:first-child { top: 15px; }
.nav-toggle span:last-child { top: 27px; }
.nav-toggle.open span:first-child { top: 21px; rotate: 45deg; }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:last-child { top: 21px; rotate: -45deg; }
.mobile-nav { display: none; }
#navbar :is(a, button):focus-visible { outline: 2px solid var(--ice-dark); outline-offset: 3px; }
@media (max-width: 1199px) {
  :root { --nav-h: 68px; }
  #navbar { gap: 1rem; padding-inline: 1.25rem; }
  .nav-logo { font-size: 1.65rem; }
  #navbar.nav-ready .nav-links { display: none; }
  #navbar.nav-ready .nav-toggle { display: block; }
  #navbar:not(.nav-ready) { height: auto; min-height: var(--nav-h); flex-wrap: wrap; padding-block: 0.75rem; }
  #navbar:not(.nav-ready) .nav-links { order: 3; flex-basis: 100%; overflow-x: auto; justify-content: flex-start; }
  .mobile-nav { display: block; position: fixed; inset: var(--nav-h) 0 0; height: calc(100dvh - var(--nav-h)); background: #faf9f6; border-top: 1px solid var(--border); overflow-y: auto; overscroll-behavior: contain; visibility: hidden; opacity: 0; pointer-events: none; transition: opacity 150ms ease, visibility 150ms; }
  .mobile-nav.open { visibility: visible; opacity: 1; pointer-events: auto; transition-duration: 250ms; }
  .mobile-nav-inner { width: min(100%, 640px); min-height: 100%; margin-inline: auto; padding: 1.5rem 1.5rem max(1.5rem, env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 2rem; }
  .mobile-nav-links { list-style: none; padding: 0; margin: 0; }
  .mobile-nav-links a { display: flex; align-items: center; justify-content: space-between; padding: 0.8rem 1rem; min-height: 52px; border-radius: 0.5rem; font-family: var(--font-display); font-size: clamp(1.25rem, 3vh, 1.7rem); }
  .mobile-nav-links a::after { content: '↗'; font-family: var(--font-body); font-size: 1rem; color: var(--muted); }
  .mobile-nav-links a:is([aria-current="page"], .active) { color: var(--ice-dark); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.3em; }
  .mobile-nav-links a:hover { color: var(--ice-dark); }
  .mobile-nav-footer { margin-top: auto; padding-top: 1.25rem; border-top: 1px solid var(--border); }
  .mobile-nav-socials { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
  .mobile-nav-socials a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 0.85rem; }
}
@media (max-width: 360px) { #navbar { padding-inline: 0.75rem; gap: 0.5rem; } .nav-logo { font-size: 1.45rem; } .nav-lang-switch { padding-inline: 0.5rem; } .nav-right { gap: 0.35rem; } }
@media (prefers-reduced-motion: reduce) { #navbar, #navbar * { transition: none !important; } }

/* ─────────────────────────────────────────────
   Header / Hero
   ───────────────────────────────────────────── */
.site-header {
  padding-top: calc(var(--nav-h) + 2rem);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
}

.hero-image-wrap {
  position: absolute;
  inset: 0;
  margin: var(--hero-inset, 3rem);
  border-radius: var(--hero-radius, var(--radius));
  overflow: hidden;
  will-change: margin, border-radius;

  &::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
        rgba(10, 13, 20, 0) 40%,
        rgba(10, 13, 20, 0.6) 100%);
  }

  & img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 52% 37%;
    transition: filter 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  }

  & img.is-loading {
    filter: blur(12px);
    transform: scale(1.04);
  }

  & img.is-loaded {
    filter: blur(0);
    transform: scale(1);
  }
}

@media (max-width: 1199px) {
  .hero-image-wrap {
    margin: 0;
    border-radius: 0;
  }
}

.hero-image-mobile {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 3rem 2rem 8rem;
  max-width: 800px;
}

.hero-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ice);
  margin-bottom: 0.75rem;
  opacity: 0;
  animation: slideUp 0.8s 0.3s forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: slideUp 0.8s 0.5s forwards;

  & em {
    font-style: italic;
    color: var(--ice);
  }
}

.hero-sub {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.75);
  opacity: 0;
  animation: slideUp 0.8s 0.7s forwards;
}

.hero-cta {
  margin-top: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 0.75rem 1.75rem;
  border-radius: 3rem;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  transition:
    background var(--transition),
    border-color var(--transition);
  opacity: 0;
  animation: slideUp 0.8s 0.9s forwards;

  &:hover {
    background: rgba(255, 255, 255, 0.28);
    border-color: rgba(255, 255, 255, 0.5);
  }

  & svg {
    width: 14px;
    height: 14px;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Subpage Header */
.subpage-header {
  position: relative;
  padding: calc(var(--nav-h) + 4.5rem) 1.5rem 3.5rem;
  max-width: 1100px;
  margin: 0 auto 0.25rem;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  margin-top: 7.5rem;

  &::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("/assets/img/hero_bg_yt.jpg");
    background-size: cover;
    background-position: center 35%;
    background-repeat: no-repeat;
    z-index: 0;
  }

  &::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
        rgba(10, 13, 20, 0.25) 0%,
        rgba(10, 13, 20, 0.55) 50%,
        rgba(10, 13, 20, 0.85) 100%);
    z-index: 1;
  }

  &>* {
    position: relative;
    z-index: 2;
  }
}

.subpage-eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ice);
  margin-bottom: 0.5rem;
}

.subpage-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: #fff;
}

/* ─────────────────────────────────────────────
   Main content & Sections
   ───────────────────────────────────────────── */
main {
  padding-bottom: 6rem;
}

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

/* Subpages without hero/header: give proper breathing room below fixed navbar */
#navbar + #main-content > .section:first-child,
#navbar + #main-content > section:first-of-type {
  padding-top: calc(var(--nav-h) + 2.5rem);
}

.section-label {
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ice-dark);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;

  &::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--ice-dark);
    opacity: 0.35;
    max-width: 60px;
  }
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;

  & em {
    font-style: italic;
    color: var(--ice-dark);
  }
}

/* Stats bar */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 4rem 0;
}

.stat-item {
  background: var(--card);
  padding: 2rem;
  text-align: center;
  transition: background var(--transition);

  &:hover {
    background: var(--ink);
    color: #fff;
  }

  &:hover .stat-num {
    color: var(--ice);
  }

  &:hover .stat-label {
    color: rgba(255, 255, 255, 0.6);
  }
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 500;
  line-height: 1;
  color: var(--ice-dark);
  display: block;
}

.stat-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.5rem;
  display: block;
}

/* ─────────────────────────────────────────────
   Socials Showcase & Interactive Grid (Home)
   ───────────────────────────────────────────── */
.socials-section {
  position: relative;
}

.socials-header {
  margin-bottom: 1.5rem;
}

.socials-subtitle {
  max-width: 640px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
  margin-top: -0.4rem;
}

.socials-grid,
.socials-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

/* Base Social Card (Flat Minimalist) */
.social-card,
.social-card-item {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem 1.25rem 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: var(--ink);
  overflow: hidden;
  /* Flat transitions, zero translateY */
  transition:
    border-color 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease;

  &:hover {
    transform: none; /* No translateY */

    & .social-icon-box {
      transform: scale(1.06);
    }

    & .social-action-btn {
      background: var(--ink);
      color: #ffffff;
      border-color: var(--ink);
      & .social-action-arrow {
        transform: translate(2px, -2px);
      }
    }

    & .social-pill-badge {
      border-color: rgba(10, 13, 20, 0.18);
    }
  }

  &:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
  }
}

/* Flat Brand Accents & Flat Hover States (No Gradients) */
.social-card--instagram {
  & .social-icon-box {
    background: #fdf0f4;
    color: #e1306c;
  }

  & .social-dot {
    background: #e1306c;
  }

  &:hover {
    border-color: #e1306c;
    box-shadow: 0 4px 16px rgba(225, 48, 108, 0.1);

    & .social-card-name {
      color: #e1306c;
    }

    & .social-action-text {
      color: #e1306c;
    }
  }
}

.social-card--tiktok {
  & .social-icon-box {
    background: #f1f4f8;
    color: #0a0d14;
  }

  & .social-dot {
    background: #00b4b8;
  }

  &:hover {
    border-color: #0a0d14;
    box-shadow: 0 4px 16px rgba(10, 13, 20, 0.08);

    & .social-card-name {
      color: #0a0d14;
    }

    & .social-action-text {
      color: #0a0d14;
    }
  }
}

.social-card--youtube {
  & .social-icon-box {
    background: #fff0f0;
    color: #e60000;
  }

  & .social-dot {
    background: #e60000;
  }

  &:hover {
    border-color: #e60000;
    box-shadow: 0 4px 16px rgba(230, 0, 0, 0.1);

    & .social-card-name {
      color: #e60000;
    }

    & .social-action-text {
      color: #e60000;
    }
  }
}

.social-card--snapchat {
  & .social-icon-box {
    background: #fffde6;
    color: #8c7000;
  }

  & .social-dot {
    background: #d4a300;
  }

  &:hover {
    border-color: #d4a300;
    box-shadow: 0 4px 16px rgba(212, 163, 0, 0.12);

    & .social-card-name {
      color: #8c7000;
    }

    & .social-action-text {
      color: #8c7000;
    }
  }
}

/* Card Internal Layout Elements */
.social-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.social-icon-box {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(10, 13, 20, 0.04);
  transition: transform 0.25s ease, background-color 0.25s ease;

  & svg,
  & img {
    width: 20px;
    height: 20px;
    display: block;
  }
}

.social-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.22rem 0.6rem;
  border-radius: 9999px;
  background: var(--surface);
  color: var(--accent);
  border: 1px solid var(--border);
  white-space: nowrap;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.social-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.social-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-bottom: 1rem;
}

.social-card-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.social-card-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
  transition: color 0.25s ease;
}

.social-verified-badge {
  color: var(--ice-dark);
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.social-card-handle {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
}

.social-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(10, 13, 20, 0.05);
}

.social-action-text {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
  transition: color 0.25s ease;
}

.social-action-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
  flex-shrink: 0;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;

  & .social-action-arrow {
    width: 13px;
    height: 13px;
    stroke: currentColor;
    transition: transform 0.25s ease, stroke 0.25s ease;
  }

  &:hover {
    background: var(--ink);
    color: #ffffff;
    border-color: var(--ink);
  }
}

/* ─────────────────────────────────────────────
   Dedicated twinsonice.link Hub Strip (Flat)
   ───────────────────────────────────────────── */
.socials-hub-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding: 0.9rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;

  &:hover {
    transform: none; /* No translateY */
    border-color: var(--accent);
    box-shadow: 0 4px 16px rgba(26, 58, 82, 0.08);

    & .hub-strip-brand {
      color: var(--accent);
    }

    & .hub-strip-action-btn {
      background: var(--ink);
      color: #ffffff;
      border-color: var(--ink);
      & .hub-strip-arrow {
        transform: translate(2px, -2px);
      }
    }
  }

  &:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
  }
}

.hub-strip-main {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex: 1;
}

.hub-strip-icon-box {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: #eef5f8;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(10, 13, 20, 0.04);
}

.hub-strip-info {
  display: flex;
  align-items: center;
}

.hub-strip-brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.25s ease;
}

.hub-strip-action {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.hub-strip-action-text {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.hub-strip-action-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
  flex-shrink: 0;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;

  & .hub-strip-arrow {
    width: 13px;
    height: 13px;
    stroke: currentColor;
    transition: transform 0.25s ease, stroke 0.25s ease;
  }

  &:hover {
    background: var(--ink);
    color: #ffffff;
    border-color: var(--ink);
  }
}

/* Responsive Rules for Socials */
@media (max-width: 991px) {
  .socials-grid,
  .socials-bento {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.9rem;
  }
}

@media (max-width: 640px) {
  .socials-grid,
  .socials-bento {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .social-card,
  .social-card-item {
    padding: 1.15rem 1.15rem 1.05rem;
  }

  .social-icon-box {
    width: 38px;
    height: 38px;
  }

  .social-card-name {
    font-size: 1.2rem;
  }

  .socials-hub-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
  }

  .hub-strip-action {
    width: 100%;
    justify-content: space-between;
    padding-top: 0.6rem;
    border-top: 1px solid rgba(10, 13, 20, 0.05);
  }
}


/* ─────────────────────────────────────────────
   Page Specific Styles
   Home · About · Media · Partners · Imprint · 404
   ───────────────────────────────────────────── */
/* ─────────────────────────────────────────────
   Section utilities (replaces inline padding hacks)
   ───────────────────────────────────────────── */
.section--no-top {
  padding-top: 0;
}

.section--centered {
  text-align: center;
  text-align: center;

  & .intro-lead {
    margin-left: auto;
    margin-right: auto;
  }
}

/* ─────────────────────────────────────────────
   Home — intro text
   ───────────────────────────────────────────── */
.intro-lead {
  max-width: 640px;
  font-size: 1rem;
  color: #4a5060;
  line-height: 1.95;
  font-size: 1.25rem;
  max-width: 100%;
  margin: 0;
  color: var(--muted);
}

/* ── Homepage Teasers (Music, Profile etc) ── */
.home-teaser-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.home-teaser-cta {
  margin-top: 2rem;
}

.home-teaser-layout--reverse {
  direction: rtl;

  &>* {
    direction: ltr;
  }
}

.home-teaser-image {
  position: relative;
}

.teaser-img-rounded {
  border-radius: var(--radius);
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  box-shadow: 0 20px 50px rgba(10, 13, 20, 0.1);
  border: 1px solid var(--border);
}

.music-teaser-img {
  &::before {
    content: "";
    position: absolute;
    --inset: .5678rem;
    inset: calc(-1 * var(--inset));
    border: 1px solid var(--ice);
    border-radius: calc(var(--radius) + .5*var(--inset));
    z-index: -1;
    opacity: 0.5;
  }
}

@media (max-width: 820px) {
  .home-teaser-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .home-teaser-layout--reverse {
    direction: ltr;
  }
}

.partners-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.partner-mini-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;

  .partner-mini-logo {
    max-width: 80%;
    max-height: 60%;
    opacity: 0.6;
    filter: grayscale(100%);
    transition-duration: .35s;
  }

  &:hover {
    .partner-mini-logo  {
      opacity: 1;
      filter: none;
    }
  }
}


/* ─────────────────────────────────────────────
   Home — CTA block (dark banner)
   ───────────────────────────────────────────── */
.cta-block {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  border-radius: var(--radius);
  padding: 5rem 3rem;
  color: #fff;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 28% 52%,
      rgba(184, 216, 232, 0.13) 0%,
      transparent 68%),
    radial-gradient(ellipse at 82% 18%,
      rgba(111, 168, 196, 0.09) 0%,
      transparent 58%);
}

.cta-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ice);
  margin-bottom: 1.25rem;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 2rem;
  color: #fff;

  & em {
    font-style: italic;
    color: var(--ice);
  }
}

/* ─────────────────────────────────────────────
   About page
   ───────────────────────────────────────────── */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

/* Text column */
.about-text {
  & .section-title {
    margin-bottom: 2rem;
  }

  & p {
    margin-bottom: 1.5rem;
    color: #3a3f4a;
    font-size: 0.95rem;
    line-height: 1.9;
  }

  & p:last-child {
    margin-bottom: 0;
  }
}

/* Closing italic line */
.about-closing {
  font-weight: 400;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

/* Sticky aside */
.about-aside {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Pull quote */
.about-quote {
  border-left: 2px solid var(--ice-dark);
  padding: 1.5rem 2rem;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-style: italic;
  font-weight: 300;
  line-height: 1.4;
  color: var(--ink);
  background: var(--card);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* Mini stats list */
.about-stats {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.about-stat-item {
  text-align: left;
  padding: 1.25rem 1.5rem;

  & .stat-num {
    font-size: 2rem;
  }
}

/* Channels card */
.about-channels {
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.about-channels-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.about-channels-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.about-channel-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: var(--ink);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  transition: background 0.2s;

  &:hover {
    background: var(--surface);
  }
}

/* ─────────────────────────────────────────────
   Media / Gallery
   ───────────────────────────────────────────── */
.media-intro {
  text-align: center;
  max-width: 580px;
  margin: 0 auto 3.5rem;

  & .section-label {
    justify-content: center;
  }

  & .section-title {
    margin-bottom: 1rem;
  }

  & p {
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.8;
  }

  &.mt-lg {
    margin-top: 6rem;
  }
}

.gallery-modes {
  display: inline-flex;
  background: var(--surface);
  padding: 0.35rem;
  border-radius: 2rem;
  margin-top: 2rem;
  border: 1px solid var(--border);
}

.mode-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  border-radius: 1.5rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  transition: all 0.3s ease;
  text-decoration: none;

  & svg {
    width: 16px;
    height: 16px;
  }

  &.active {
    background: var(--ink);
    color: #fff;
    box-shadow: 0 4px 12px rgba(10, 13, 20, 0.15);
  }
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;

  &.feed-mode {
    grid-template-columns: 1fr;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    gap: 3rem;
  }

  &.feed-mode .gallery-img-wrap {
    aspect-ratio: auto;
    max-height: 85vh;
  }

  &.feed-mode .gallery-img-wrap img {
    object-fit: contain;
    background: var(--surface);
  }

  &.feed-mode .gallery-overlay {
    background: linear-gradient(to top,
        rgba(10, 13, 20, 0.4) 0%,
        transparent 40%);
    justify-content: flex-end;
    opacity: 1;
  }

  &.feed-mode .gallery-zoom-icon {
    display: none;
  }

  &.feed-mode .gallery-item:hover {
    transform: none;
    box-shadow: none;
  }
}

/* ── Feed Mode (Doomscrolling) ── */
.ig-item {
  overflow: hidden;
}

.ig-embed-wrap {
  &>* {
    max-width: 100% !important;
    width: 100% !important;
  }

  & iframe {
    max-width: 100% !important;
    width: 100% !important;
  }
}

.instagram-media {
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* ── Local Gallery Item ── */
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  transition:
    transform var(--transition),
    box-shadow var(--transition);

  &:hover {
    transform: translateY(-4px) scale(1.015);
    box-shadow: 0 20px 48px rgba(10, 25, 45, 0.12), 0 0 20px rgba(47, 147, 202, 0.14);
    border-color: rgba(47, 147, 202, 0.35);
  }

  &:hover .gallery-img-wrap img {
    transform: scale(1.08);
  }

  &:hover .gallery-overlay {
    opacity: 1;
  }

  &:hover .gallery-zoom-icon {
    transform: scale(1);
  }
}

.gallery-img-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;

  & img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  }
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 13, 20, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity var(--transition);
  text-align: center;
}

.gallery-zoom-icon {
  color: #fff;
  margin-bottom: 1rem;
  transform: scale(0.8);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-title {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  opacity: 0.8;
}

/* ── Lightbox ── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 13, 20, 0.95);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
  backdrop-filter: blur(10px);

  &.active {
    opacity: 1;
    visibility: visible;
  }

  &.active .lightbox-img {
    transform: scale(1);
  }
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 0.5rem;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-caption {
  color: #fff;
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 300;
  letter-spacing: 0.02em;
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.8;
  transition: all 0.3s ease;
  z-index: 100;
  border-radius: 3rem;

  &:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
  }

  & svg {
    width: 20px;
    height: 20px;
  }
}

.lightbox-nav {
  position: fixed;
  top: 50%;
  margin-top: -40px;
  height: 80px;
  width: 60px;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.3s,
    opacity 0.3s,
    transform 0.3s;
  z-index: 2001;
  border-radius: 0.5rem;

  & svg {
    width: 32px;
    height: 32px;
    opacity: 0.6;
  }

  &:hover svg {
    opacity: 1;
  }

  &:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.1);
  }

  position: fixed;
  top: 50%;
  margin-top: -40px;
  height: 80px;
  width: 60px;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s,
  opacity 0.3s,
  transform 0.3s;
  z-index: 2001;
  border-radius: 0.5rem;

  & svg {
    width: 32px;
    height: 32px;
    opacity: 0.6;
  }

  &:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.1);
  }

  &:hover svg {
    opacity: 1;
  }
}

.lightbox-prev {
  left: 2rem;
  left: 2rem;
}

.lightbox-next {
  right: 2rem;
  right: 2rem;
}

@media (max-width: 768px) {
  .lightbox-nav {
    bottom: 2rem;
    top: auto;
    margin-top: 0;
    background: rgba(10, 13, 20, 0.5);
  }

  .lightbox-prev {
    left: 1rem;
  }

  .lightbox-next {
    right: 1rem;
  }
}

.media-empty {
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
}

.media-disclaimer {
  text-align: center;
  margin-top: 3rem;
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.1em;
}

/* ─────────────────────────────────────────────
   Partners
   ───────────────────────────────────────────── */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  align-items: stretch;
}

.partner-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition);

  &:hover {
    border-color: rgba(47, 147, 202, 0.4);
    box-shadow: 0 16px 40px rgba(10, 25, 45, 0.08), 0 0 18px rgba(47, 147, 202, 0.08);
    transform: translateY(-3px) scale(1.02);
  }

  &:hover .partner-logo {
    opacity: 1;
    filter: grayscale(0%) contrast(1);
    transform: scale(1.05);
  }
}

.partner-logo {
  max-height: 45px;
  max-width: 70%;
  width: auto;
  opacity: 0.5;
  filter: grayscale(100%) contrast(1.1);
  transition:
    opacity var(--transition),
    filter var(--transition),
    transform var(--transition);
}

.partner-coming-soon {
  text-align: center;
  color: var(--muted);
  margin-top: 3rem;
  font-size: 0.82rem;
}

/* ─────────────────────────────────────────────
   Music / Discography
   ───────────────────────────────────────────── */
.music-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.music-item {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.music-cover-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
}

.music-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.music-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.5rem;
}

.music-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  background: var(--card);
  color: var(--ink);
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  width: 100%;

  &:hover {
    background: var(--surface);
    border-color: var(--ice-dark);
  }

  & svg {
    flex-shrink: 0;
  }
}

.music-btn--primary {
  background: var(--ink);
  color: #fff;

  &:hover {
    background: var(--accent);
  }
}

.music-btn--merch {
  background: #fff;
  color: var(--ink);
  border: 1px solid rgba(10, 13, 20, 0.15);

  &:hover {
    background: #fdf2f4;
    color: #e11d48;
    border-color: rgba(225, 29, 72, 0.3);
  }
}

.music-info {
  text-align: left;
}

.music-song-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.music-artist {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── Music Placeholder & Upcoming State ── */
.music-cover-wrap--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px dashed rgba(34, 111, 156, 0.35);
}

.music-cover-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--ice-dark);
  text-align: center;
  padding: 1.5rem;
}

.music-cover-placeholder svg {
  opacity: 0.8;
  color: var(--ice-dark);
}

.music-placeholder-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ice-dark);
  background: rgba(184, 216, 232, 0.45);
  padding: 0.35rem 0.85rem;
  border-radius: 1rem;
}

.music-badge-soon {
  display: inline-block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
}

.music-release-note {
  font-size: 0.72rem;
  color: var(--ice-dark);
  margin-top: 0.35rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ── Music Artist Links ── */
.music-artist-socials {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;

  &>span {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
  }
}

.music-social-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;

  & a {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--ink);
    padding: 0.5rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
  }

  & a:hover {
    background: var(--surface);
    color: var(--ink);
    border-color: var(--ink);
  }

  & a svg {
    flex-shrink: 0;
  }
}

/* ─────────────────────────────────────────────
   News & Updates
   ───────────────────────────────────────────── */
/* Simple stacked teasers in normal case — no card chrome, no uppercase. */
.news-list {
  display: flex;
  flex-direction: column;
  margin-top: 2.5rem;
}

.news-item {
  padding: 2rem 0;
  border-top: 1px solid var(--border);

  &:last-child {
    border-bottom: 1px solid var(--border);
  }
}

.news-date {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.news-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 0.5rem;

  & a {
    color: inherit;
  }

  & a:hover {
    color: var(--ice-dark);
  }
}

.news-excerpt {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--muted);
  max-width: 65ch;
}

.news-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}

.news-more {
  margin-top: 1rem;
  font-size: 0.9rem;

  & a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
  }

  & svg {
    transition: transform var(--transition);
  }

  & a:hover svg {
    transform: translateX(4px);
  }
}

.news-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;

  & svg {
    transition: transform var(--transition);
  }

  &:hover svg {
    transform: translateX(-4px);
  }
}

/* ─────────────────────────────────────────────
   Imprint & Privacy
   ───────────────────────────────────────────── */
.imprint-section {
  max-width: 720px;
  margin: 0 auto;
  padding: 7rem 1.5rem 5rem;

  & h1 {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
  }

  & h2 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 400;
    margin: 2.5rem 0 0.75rem;
    color: var(--ink);
  }

  & p {
    font-size: 0.82rem;
    color: #4a5060;
    line-height: 1.85;
    margin-bottom: 0.5rem;
  }

  & a {
    color: var(--ice-dark);
  }

  & a:hover {
    text-decoration: underline;
  }
}

.imprint-divider {
  height: 1px;
  background: var(--border);
  margin: 1.5rem 0;
}

.imprint-eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ice-dark);
  margin-bottom: 0.5rem;
}

.imprint-subtitle {
  color: var(--muted);
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

.imprint-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border-radius: var(--radius-sm);
  border-left: 2px solid var(--ice-dark);
}

.imprint-heading-sm {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  margin: 1.75rem 0 0.5rem;
  color: var(--ink);
}

.imprint-list {
  margin-left: 1.5rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.85;

  & li {
    margin-bottom: 0.25rem;
  }
}

.imprint-footer {
  font-size: 0.65rem;
  color: var(--muted);
  padding-top: 0.5rem;
}

/* ─────────────────────────────────────────────
   404 Error page
   ───────────────────────────────────────────── */
.error-page {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.error-code {
  font-family: var(--font-display);
  font-size: clamp(6rem, 18vw, 14rem);
  font-weight: 300;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--border);
  letter-spacing: -0.04em;
  user-select: none;
}

.error-msg {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 300;
  margin: 1rem 0 0.5rem;
}

.error-sub {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

/* ─────────────────────────────────────────────
   Visual Sitemap Page
   ───────────────────────────────────────────── */
.sitemap-intro {
  max-width: 560px;
  font-size: 0.88rem;
  color: #4a5060;
  line-height: 1.9;
  margin-bottom: 2rem;
}

/* XML link pill */
.sitemap-xml-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--ice-dark);
  border: 1px solid var(--ice-dark);
  border-radius: 2rem;
  padding: 0.45rem 1rem;
  margin-bottom: 3.5rem;
  transition:
    background var(--transition),
    color var(--transition);

  &:hover {
    background: var(--ice-dark);
    color: #fff;
  }

  & svg {
    flex-shrink: 0;
  }
}

/* ── Tree layout ── */
.sitemap-tree {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 3rem;
}

.sitemap-node {
  background: var(--card);
  padding: 1.75rem 2rem;
  transition: background var(--transition);

  &:hover {
    background: var(--surface);
  }
}

.sitemap-node--group {
  background: var(--surface);

  &:hover {
    background: var(--surface);
  }
}

/* Header row (dot + label + path + arrow) */
.sitemap-node-header {
  margin-bottom: 0;
}

.sitemap-node-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  margin-bottom: 0.5rem;

  &:hover .sitemap-node-arrow {
    transform: translate(3px, -3px);
    color: var(--ice-dark);
  }
}

/* Dots */
.sitemap-node-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ice-dark);
}

.sitemap-node-dot--group {
  background: var(--muted);
}

.sitemap-node-dot--child {
  width: 6px;
  height: 6px;
  background: var(--muted);
}

/* Labels */
.sitemap-node-label {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--ink);
  flex: 1;
}

.sitemap-node-path {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-family: var(--font-body);
  margin-left: auto;
  padding-right: 0.25rem;
}

.sitemap-node-arrow {
  color: var(--muted);
  flex-shrink: 0;
  transition:
    transform 0.25s ease,
    color 0.25s ease;
}

.sitemap-node-desc {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 0.25rem;
  padding-left: 1.5rem;
  /* align under label, past dot */
}

/* Children block */
.sitemap-children {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sitemap-child-link {
  margin-bottom: 0.25rem;
}

.sitemap-child {
  & .sitemap-node-desc {
    padding-left: 1.25rem;
  }
}

/* ── Domains grid ── */
.sitemap-domains {
  margin-top: 1rem;
}

.sitemap-domains-label {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.sitemap-domains-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.sitemap-domain-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
  text-decoration: none;

  &:hover {
    border-color: var(--ice-dark);
    box-shadow: 0 8px 24px rgba(10, 13, 20, 0.07);
    transform: scale(1.02);
  }

  & svg {
    color: var(--muted);
    flex-shrink: 0;
    transition:
      transform 0.25s ease,
      color 0.25s ease;
  }

  &:hover svg {
    transform: translate(2px, -2px);
    color: var(--ice-dark);
  }
}

.sitemap-domain-locale {
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
  background: var(--ink);
  border-radius: 0.3rem;
  padding: 0.2rem 0.5rem;
  flex-shrink: 0;
}

.sitemap-domain-url {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--ink);
  flex: 1;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .sitemap-tree {
    grid-template-columns: 1fr;
  }

  .sitemap-domains-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Sitemap alias pills ── */
.sitemap-alias-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.6rem;
  padding-left: 1.5rem;
}

.sitemap-alias {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.62rem;
  font-family: var(--font-body);
  letter-spacing: 0.06em;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 2rem;
  padding: 0.2rem 0.6rem;
  transition:
    color var(--transition),
    border-color var(--transition),
    background var(--transition);

  &:hover {
    color: var(--ink);
    border-color: var(--ice-dark);
    background: var(--surface);
  }

  & svg {
    flex-shrink: 0;
    opacity: 0.5;
  }

  &:hover svg {
    opacity: 1;
  }
}

/* ─────────────────────────────────────────────
   Profile / Facts Page
   ───────────────────────────────────────────── */
.profile-table-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.profile-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;

  & tr {
    border-bottom: 1px solid var(--border);
  }

  & tr:last-child {
    border-bottom: none;
  }

  & td {
    padding: 1rem;
    line-height: 1.5;
  }

  & td:first-child {
    color: var(--muted);
    width: 40%;
  }

  & td:last-child {
    color: var(--ink);
    font-weight: 500;
  }
}

.profile-note {
  margin-top: 1rem;
  padding: 0.85rem 1.15rem;
  background: var(--surface);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--ice);
  font-size: 0.82rem;
  color: var(--muted);
  font-style: italic;
}

.profile-bio-heading {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--ink);
}

.profile-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* ── Lightbox Fixed Nav ── */
@media (max-width: 768px) {
  .lightbox-nav {
    bottom: 2rem;
    top: auto;
    margin-top: 0;
    background: rgba(10, 13, 20, 0.5);
  }

  .lightbox-prev {
    left: 1rem;
  }

  .lightbox-next {
    right: 1rem;
  }
}

.lightbox-copyright {
  margin-top: 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);

  & a {
    color: var(--ice-dark);
    text-decoration: none;
    transition: color 0.2s;
  }

  & a:hover {
    color: #fff;
  }
}

/* ─────────────────────────────────────────────
   Doomscroll Gallery
   ───────────────────────────────────────────── */
.doomscroll-container {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 1500;
  overflow: hidden;
}

/* Global main reset for doomscroll */
body:has(.doomscroll-container) main {
  padding-bottom: 0 !important;
}

.doomscroll-feed {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;

  &::-webkit-scrollbar {
    display: none;
  }
}

.doom-item {
  height: 100vh;
  width: 100%;
  scroll-snap-align: start;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.doom-img-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  /* padding removed for immersive edge-to-edge video */
}

.doom-media-el {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 768px) {
  .doom-img-wrap {
    padding: 1rem;
  }

  .doom-media-el {
    object-fit: contain;
    border-radius: 0.5rem;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
  }
}

/* Premium UI Overlay */
.doom-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 4rem 1.5rem 1.5rem;
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.8) 0%,
      rgba(0, 0, 0, 0.4) 50%,
      transparent 100%);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  z-index: 10;
  pointer-events: none;
}

@media (min-width: 768px) {
  .doom-overlay {
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
  }
}

.doom-overlay-content {
  flex: 1;
  pointer-events: auto;
  padding-right: 2rem;
}

.doom-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.doom-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg,
      #f09433,
      #e6683c,
      #dc2743,
      #cc2366,
      #bc1888);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;

  & svg {
    width: 20px;
    height: 20px;
  }
}

.doom-caption {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  line-height: 1.5;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.doom-actions {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  pointer-events: auto;
}

.doom-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  color: #fff;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);

  &:hover .doom-action-btn {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
  }
}

.doom-action-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition:
    transform 0.2s,
    background 0.2s;
  cursor: pointer;

  & svg {
    width: 20px;
    height: 20px;
  }
}

/* Nav */
.doomscroll-nav {
  position: fixed;
  top: 2rem;
  left: 2rem;
  right: 2rem;
  z-index: 1600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;

  & a {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: 3rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  & a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
  }

  & svg {
    width: 18px;
    height: 18px;
  }
}

.doomscroll-home {
  padding: 0.75rem !important;
}

/* Indicator */
.doom-indicator {
  position: fixed;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  height: 100px;
  width: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  z-index: 1600;
}

.doom-indicator-inner {
  width: 100%;
  background: var(--ice);
  height: 0%;
  transition: height 0.1s linear;
}

@media (max-width: 768px) {
  .doomscroll-nav {
    top: 1.5rem;
    left: 1rem;
    right: 1rem;
  }

  .doomscroll-back span {
    display: none;
  }

  .doom-img-wrap {
    padding: 0;
  }

  .doom-img-wrap img {
    border-radius: 0;
  }
}

.doom-scroll-hint {
  position: absolute;
  bottom: 6rem;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  opacity: 0.6;
  animation: bounce 2s infinite;

  & svg {
    width: 24px;
    height: 24px;
  }
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  40% {
    transform: translateX(-50%) translateY(-10px);
  }

  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* ─────────────────────────────────────────────
   Footer
   ───────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 8rem 1.5rem 4rem;
  background: var(--card);
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 0.9fr 1.1fr 1.3fr;
  align-items: start;
  gap: 3.5rem 2.5rem;
  width: 100%;
}

/* ── Brand & Credits ── */
.footer-brand {
  display: flex;
  flex-direction: column;
}

.footer-logo-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.footer-logo {
  font-family: var(--font-logo);
  font-size: 2.25rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1;
  color: var(--ink);
  white-space: nowrap;
  display: inline-flex;
  align-items: baseline;
  gap: 0.32em;
  transition: transform 0.35s var(--transition);
  cursor: default;
  text-decoration: none;
  user-select: none;

  &:hover {
    transform: translateY(-1px);
  }
}

.footer-badge {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 0.25rem 0.75rem;
  background: var(--surface);
  border-radius: 2rem;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
  border: 1px solid var(--border);
}

.footer-affiliation {
  font-size: 0.8rem;
  color: var(--muted);
  max-width: 380px;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.footer-credits {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.credit-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;

  & span {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--muted);
    font-weight: 500;
  }

  & a {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--ink);
    text-decoration: none;
    transition: color var(--transition), transform var(--transition);
    display: inline-block;
  }

  & a:hover {
    color: #18669e;
    transform: translateX(2px);
  }
}

.credit-links {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.credit-sep {
  font-size: 0.8rem;
  color: var(--muted);
  opacity: 0.5;
}

/* ── Columns Common ── */
.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-col-title {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink);
  margin-bottom: 1.5rem;
  display: block;
}

/* ── Quick Navigation Column ── */
.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0;
  margin: 0;
}

.footer-nav-link {
  font-size: 0.82rem;
  color: var(--muted);
  text-decoration: none;
  transition: all var(--transition);
  display: inline-block;

  &:hover {
    color: var(--ink);
    transform: translateX(3px);
  }

  &[aria-current="page"] {
    color: var(--ink);
    font-weight: 600;
  }
}

/* ── Community & Socials ── */
.footer-community-col .fanpage-pill {
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  padding: 0.55rem 1.25rem;
  border-radius: 3rem;
  margin-bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  width: fit-content;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    background var(--transition);

  &:hover {
    background: #0f2434;
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 8px 20px rgba(26, 58, 82, 0.25);
  }
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-social-link {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: all var(--transition);

  &:hover {
    border-color: var(--ink);
    background: var(--ink);
    color: #fff;
    transform: translateY(-2px) scale(1.08);
    box-shadow: 0 8px 16px rgba(10, 13, 20, 0.12);
  }

  & svg {
    width: 18px;
    height: 18px;
  }
}

/* ── Legal & Meta Column ── */
.footer-legal-col .legal-grid {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 0.75rem 2rem;
  text-align: left;
  justify-content: start;
}

.legal-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
}

.legal-link {
  font-size: 0.78rem;
  color: var(--muted);
  text-decoration: none;
  transition: all var(--transition);
  display: inline-block;

  &:hover {
    color: var(--ink);
    transform: translateX(2px);
  }
}

/* ── Bottom ── */
.footer-bottom {
  max-width: 1200px;
  width: 100%;
  margin: 6rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.bottom-sep {
  opacity: 0.3;
}

/* ─────────────────────────────────────────────
   Components (Buttons, Pagination)
   ───────────────────────────────────────────── */
/* Primary Button (used in 404 etc) */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--ink);
  color: #fff;
  padding: 0.85rem 2rem;
  border-radius: 3rem;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition:
    background var(--transition),
    transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);

  &:hover {
    background: var(--accent);
    transform: scale(1.05);
  }

  & svg {
    width: 14px;
    height: 14px;
  }
}

/* Pagination */
.pagination {
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.pagination-info {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}

.pagination-count {
  padding: 0.5rem 1rem;
  background: var(--card);
  border-radius: 2rem;
  border: 1px solid var(--border);
}

.pagination-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1rem;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 2rem;
  transition: all var(--transition);
  text-decoration: none;

  &:hover:not(.pagination-disabled) {
    background: var(--ink);
    color: var(--surface);
    border-color: var(--ink);
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(10, 13, 20, 0.12);
  }

  & svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
  }
}

.pagination-prev {
  & svg {
    margin-right: 0.15rem;
  }
}

.pagination-next {
  & svg {
    margin-left: 0.15rem;
  }
}

.pagination-first {
  padding: 0.6rem 0.75rem;
}

.pagination-disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.pagination-numbers {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0 0.5rem;
}

.pagination-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ink);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 50%;
  transition: all var(--transition);
  text-decoration: none;

  &:hover {
    background: var(--card);
    border-color: var(--border);
  }
}

.pagination-current {
  background: var(--ice);
  color: var(--ink);
  border-color: var(--ice);
  font-weight: 500;
}

.pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

/* ─────────────────────────────────────────────
   Utilities
   ───────────────────────────────────────────── */
.ice-dot {
  color: var(--ice-dark);
}

.text-center {
  text-align: center;
}

.no-scroll {
  overflow: hidden;
}

.text-link {
  color: var(--ice-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: color var(--transition);

  &:hover {
    color: var(--accent);
  }
}

/* ─────────────────────────────────────────────
   Responsive Media Queries
   ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .about-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-aside {
    position: static;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 3rem 2.5rem;
  }

  .footer-col-title {
    margin-bottom: 1.15rem;
  }
}

@media (max-width: 640px) {

  /* ── Hero & page adjustments ── */
  .hero-image-wrap {
    margin: 0;
    border-radius: 0;
  }

  .hero-image-wrap img.hero-image-desktop {
    display: none;
  }

  .hero-image-mobile {
    display: block;
  }

  .stats-bar {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-legal {
    align-items: flex-start;
    text-align: left;
  }

  .legal-grid {
    grid-template-columns: repeat(2, 1fr);
    justify-content: start;
    text-align: left;
    gap: 0.75rem 1.5rem;
    width: 100%;
  }

  .legal-col {
    text-align: left;
  }

  .footer-socials {
    justify-content: flex-start;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    margin: 0;
    padding: 0;
  }

  .section {
    padding: 4rem 1.25rem;
  }

  #navbar + #main-content > .section:first-child,
  #navbar + #main-content > section:first-of-type {
    padding-top: calc(var(--nav-h, 60px) + 2rem);
  }

  .subpage-header {
    margin: 0 0 -2rem;
    border-radius: 0;
    min-height: 240px;
    padding: calc(var(--nav-h) + 3rem) 1.25rem 2.5rem;
  }

  .subpage-header::before {
    background-image: url("/assets/img/header_bg_mobile.jpg");
    background-position: center 30%;
  }

  /* ── Instagram embeds ── */
  .ig-item,
  .ig-embed-wrap,
  .ig-embed-wrap>* {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden;
  }

  .instagram-media,
  .instagram-media-instgrm {
    width: 100% !important;
    min-width: 0 !important;
  }

  .gallery-grid {
    margin: 0 -0.5rem;
    padding: 0 0.5rem;
  }

  .ig-item {
    border-radius: 0.75rem;
    border: 1px solid gray;
  }

  /* ── Pagination ── */
  .pagination-prev span,
  .pagination-next span {
    display: none;
  }

  .pagination-prev,
  .pagination-next {
    padding: 0.55rem 0.7rem;
  }

  .pagination-first,
  .pagination-last {
    display: none;
  }

  .pagination-num {
    min-width: 2rem;
    height: 2rem;
    font-size: 0.7rem;
  }

  .pagination {
    margin-top: 3rem;
    gap: 1rem;
  }

  .pagination-controls {
    gap: 0.25rem;
  }

  .pagination-btn {
    padding: 0.55rem 0.85rem;
    font-size: 0.62rem;
  }

  .pagination-btn svg {
    width: 12px;
    height: 12px;
  }

  /* ── Sitemap ── */
  .sitemap-tree {
    grid-template-columns: 1fr;
  }

  .sitemap-domains-grid {
    grid-template-columns: 1fr;
  }

  .mobile__hidden {
    display: none;
    visibility: hidden;
  }

  /* ── Partners grid on mobile ── */
  .partners-grid {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
  }

  .partner-item {
    padding: 1.5rem 1rem;
  }

  /* ── Instagram filter bar on mobile ── */
  .ig-filter-bar {
    border-radius: var(--radius);
    flex-direction: column;
    align-items: stretch;
    padding: 0.85rem;
    gap: 0.75rem;
  }

  .ig-sort-wrap {
    justify-content: space-between;
    width: 100%;
  }

  .sg-sort-select {
    flex: 1;
    max-width: 220px;
  }
}

@media (max-width: 400px) {
  .legal-grid {
    grid-template-columns: 1fr;
  }

  .pagination-numbers {
    gap: 0.15rem;
  }

  .pagination-num {
    min-width: 1.85rem;
    height: 1.85rem;
    font-size: 0.65rem;
  }

  .pagination-ellipsis {
    min-width: 1.5rem;
    font-size: 0.75rem;
  }

  .profile-table td {
    padding: 0.75rem;
    font-size: 0.78rem;
  }

  .profile-table td:first-child {
    width: 45%;
  }
}

/* ── Mobile Form & Touch Accessibility ── */
@media (max-width: 768px) {
  input,
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* ==============================================
   StoryGrab / Instagram Archive — Custom Styles
   ============================================== */
/* ── Instagram page header ─────────────────── */
.ig-page-header {
  max-width: 720px;
  margin-bottom: 3rem;
  position: relative;

  &::before {
    content: "";
    display: block;
    width: 56px;
    height: 3px;
    background: linear-gradient(90deg, var(--ice), var(--ice-dark));
    border-radius: 2px;
    margin-bottom: 1.25rem;
  }
}

.ig-page-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  margin-bottom: 1.5rem;

  & .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
  }
}

/* ── StoryGrab post grid ───────────────────── */
.sg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

@media (max-width: 900px) {
  .sg-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 540px) {
  .sg-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Skeleton / Shimmer loading ─────────────── */
@keyframes shimmer {
  0% {
    background-position: -600px 0;
  }

  100% {
    background-position: 600px 0;
  }
}

.sg-skeleton {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      var(--surface) 25%,
      rgba(111, 168, 196, 0.08) 50%,
      var(--surface) 75%);
  background-size: 600px 100%;
  animation: shimmer 1.6s infinite linear;
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 0;
  transition: opacity 0.4s ease;

  &.loaded {
    opacity: 0;
    pointer-events: none;
  }
}

/* Fade out the skeleton once media has loaded */
/* Ensure the image-wrap is a positioning context */
.sg-card-img-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--surface);
}

/* Real image fades in on top of skeleton */
.sg-card-img {
  position: relative;
  z-index: 2;
  opacity: 0;
  transition:
    opacity 0.45s ease,
    transform 0.55s cubic-bezier(0.2, 1, 0.3, 1);

  &.loaded {
    opacity: 1;
  }
}

.sg-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  transition:
    box-shadow 0.3s ease,
    border-color 0.25s ease;

  &:hover {
    box-shadow:
      0 8px 32px rgba(10, 13, 20, 0.2),
      0 0 0 1px var(--ice);
    border-color: var(--ice);
  }

  &:hover .sg-card-img {
    transform: scale(1.07);
  }

  &:hover .sg-card-overlay {
    opacity: 1;
  }

  &.filtered-out {
    display: none !important;
  }
}

.sg-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* ── Card image wrap ───────────────────────── */
/* Hover zoom — skeleton block defines opacity/transition */
.sgp-placeholder {
  width: 100%;
  height: 100%;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #111, #1a1a2e);
}

/* Custom Video Controls overlay */
.sgp-video-controls {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  pointer-events: none;
  z-index: 50;
  opacity: 1;
  transition: opacity 0.12s ease;

  &.idle {
    opacity: 0;
  }

  &.idle * {
    pointer-events: none !important;
  }
}

/* Big center play/pause */
.sgp-center-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  background: rgba(10, 13, 20, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  pointer-events: auto;
  transition:
    transform 0.2s,
    background 0.2s;

  &:hover {
    background: rgba(10, 13, 20, 0.8);
    transform: translate(-50%, -50%) scale(1.1);
  }

  & svg {
    width: 32px;
    height: 32px;
  }
}

/* Bottom control bar */
.sgp-control-bar {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  padding: 2rem 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: auto;
}

/* Progress bar */
.sgp-progress-wrap {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  cursor: pointer;
  position: relative;
}

.sgp-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  background: var(--ice);
  width: 0%;
  border-radius: 3px;
  pointer-events: none;
}

/* Actions row */
.sgp-control-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sgp-control-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sgp-time {
  color: #fff;
  font-size: 0.75rem;
  font-family: monospace;
  letter-spacing: 1px;
}

.sgp-ctrl-btn {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0.25rem;
  transition:
    transform 0.2s,
    color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;

  &:hover {
    transform: scale(1.15);
    color: var(--ice);
  }

  & svg {
    width: 20px;
    height: 20px;
  }
}

.sg-card-img--placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--surface) 0%, var(--ice) 100%);
}

/* ── Card hover overlay ────────────────────── */
.sg-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(10, 13, 20, 0.82) 0%,
      rgba(10, 13, 20, 0.3) 45%,
      transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 1rem;
  opacity: 0.35;
  transition: opacity 0.3s ease;
  gap: 0.6rem;
}

/* ── Stats ─────────────────────────────────── */
.sg-card-stats {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.sg-stat {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* ── Type badge ────────────────────────────── */
.sg-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(6px);
  padding: 0.25rem 0.6rem;
  border-radius: 2rem;
}

.sg-badge--video {
  background: rgba(111, 168, 196, 0.35);
}

.sg-badge--carousel {
  background: rgba(26, 58, 82, 0.35);
}

/* ── Card caption ──────────────────────────── */
.sg-card-caption {
  padding: 0.8rem 0.95rem 0.95rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  background: var(--card);
}

.sg-caption {
  font-size: 0.72rem;
  line-height: 1.55;
  color: var(--text-muted);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.sg-date {
  font-size: 0.6rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ice);
  opacity: 0.8;
  font-weight: 600;
}

/* ── No posts state ────────────────────────── */
.ig-no-posts {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 5rem 2rem;
  text-align: center;
  color: var(--muted);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 2rem;

  & p {
    font-size: 0.85rem;
    max-width: 400px;
    line-height: 1.7;
  }
}

/* ── Landing teaser: 3×2 uniform grid ──────── */
.ig-teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(10, 13, 20, 0.14);
}

.ig-teaser-item {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  display: block;
  background: var(--surface);
  cursor: pointer;

  & .ig-teaser-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s cubic-bezier(0.2, 1, 0.3, 1);
  }

  &:hover .ig-teaser-media {
    transform: scale(1.06);
  }

  &:hover .ig-teaser-overlay {
    opacity: 1;
  }

  &:hover .ig-teaser-overlay:not(:empty) {
    opacity: 1;
    background: rgba(10, 13, 20, 0.22);
  }
}

.ig-teaser-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--surface), var(--ice));
}

.ig-teaser-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 13, 20, 0.25);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;

  &:not(:empty) {
    opacity: 0.65;
    background: transparent;
  }
}

/* Show type icon when the item has content */
/* ── sg-card button reset ───────────────────── */
button.sg-card-link {
  width: 100%;
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
}

/* type-icon always visible, but small */
.sg-card-type-icon {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  opacity: 0.85;
  pointer-events: none;
}

/* ==============================================
   SGPlayer — Custom StoryGrab Media Player
   ============================================== */
#sg-player {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;

  &.active {
    pointer-events: all;
    opacity: 1;
  }
}

/* ── Backdrop ──────────────────────────────── */
.sgp-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 13, 20, 0.88);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
}

/* ── Shell (the card) ──────────────────────── */
.sgp-shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(480px, 96vw);
  max-height: 96vh;
  background: var(--card);
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
}

/* ── Header ────────────────────────────────── */
.sgp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1rem 0.9rem 1.1rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.sgp-header-meta {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.sgp-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg,
      #f09433,
      #e6683c,
      #dc2743,
      #cc2366,
      #bc1888);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;

  & svg {
    width: 18px;
    height: 18px;
  }
}

.sgp-handle-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.sgp-handle {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.sgp-date {
  font-size: 0.6rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.sgp-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.sgp-counter {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.05em;
  min-width: 2.5rem;
  text-align: right;
}

.sgp-btn-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.2s;
  flex-shrink: 0;

  & svg {
    width: 16px;
    height: 16px;
  }

  &:hover {
    background: var(--ink);
    color: #fff;
    transform: scale(1.1);
  }
}

/* ── Stage (media area) ────────────────────── */
.sgp-stage {
  position: relative;
  background: #000;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Media content ─────────────────────────── */
.sgp-media-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.sgp-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  user-select: none;
}

.sgp-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #000;
}

/* ── Slide nav arrows ──────────────────────── */
.sgp-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.2s;

  &:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.08);
  }

  & svg {
    width: 18px;
    height: 18px;
  }
}

.sgp-prev {
  left: 0.6rem;
}

.sgp-next {
  right: 0.6rem;
}

/* ── Carousel dots ─────────────────────────── */
.sgp-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0.5rem 0;
  flex-shrink: 0;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  min-height: 0;

  &:empty {
    display: none;
  }
}

.sgp-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition:
    background 0.2s,
    transform 0.2s;

  &.active {
    background: var(--ice-dark);
    transform: scale(1.4);
  }
}

/* ── Footer ────────────────────────────────── */
.sgp-footer {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.8rem 1.1rem 1rem;
  overflow-y: auto;
}

/* ── Stats ─────────────────────────────────── */
.sgp-stats {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.sgp-likes {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink);

  & svg {
    color: #e0245e;
  }
}

/* ── Caption ───────────────────────────────── */
.sgp-caption {
  font-size: 0.72rem;
  line-height: 1.6;
  color: var(--muted);
  max-height: 4.8em;
  /* ~3 lines */
  overflow-y: auto;
  word-break: break-word;

  &:empty {
    display: none;
  }
}

/* ── Post navigation ───────────────────────── */
.sgp-post-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-shrink: 0;
  padding-top: 0.4rem;
  border-top: 1px solid var(--border);
}

.sgp-post-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.35rem 0.5rem;
  border-radius: 0.4rem;
  transition:
    color 0.2s,
    background 0.2s;

  & svg {
    width: 14px;
    height: 14px;
  }

  &:hover {
    color: var(--ink);
    background: var(--surface);
  }

  &:disabled {
    opacity: 0.3;
    pointer-events: none;
  }
}

/* ── Mobile adjustments ────────────────────── */
@media (max-width: 520px) {
  .sgp-shell {
    width: 100vw;
    max-height: 100dvh;
    border-radius: 1.25rem 1.25rem 0 0;
    align-self: flex-end;
  }

  #sg-player {
    align-items: flex-end;
  }

  #sg-player.active .sgp-shell {
    transform: translateY(0);
  }

  #sg-player .sgp-shell {
    transform: translateY(100%);
  }
}

/* ── Instagram Filter Bar ───────────────────── */
.ig-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  padding: 0.6rem 0.75rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.ig-filter-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.ig-sort-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ig-sort-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.sg-sort-select {
  background: var(--surface);
  color: var(--text);
  border: 1.5px solid var(--border);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236fa8c4' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  padding-right: 2rem;

  &:focus {
    border-color: var(--ice);
  }
}

/* Keep old class name working as fallback alias */
.sg-filter-bar {
  display: contents;
}

/* ── Filter pill buttons ─────────────────────── */
.sg-filter-btn {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  padding: 0.45rem 1rem 0.45rem 1.2rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;

  &:hover {
    border-color: var(--ice);
    color: var(--text);
    background: rgba(111, 168, 196, 0.08);
  }

  &.active {
    background: var(--ice);
    color: #000;
    border-color: var(--ice);
    box-shadow: 0 0 0 3px rgba(111, 168, 196, 0.2);
  }

  &.active .sg-filter-count {
    background: rgba(0, 0, 0, 0.18);
    color: #000;
  }

  &:not(.active):hover .sg-filter-count {
    background: rgba(111, 168, 196, 0.2);
  }
}

/* Count badge inside filter buttons */
.sg-filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.3rem;
  height: 1.3rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0;
  background: rgba(0, 0, 0, 0.1);
  color: inherit;
  line-height: 1;
  transition: background 0.2s ease;

  &:empty {
    display: none;
  }
}

/* Empty count badge — hide it */
/* Hide filtered items */
/* ── Custom Media Player Volume ─────────────── */
.sgp-vol-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: width 0.3s ease;
  width: 40px;
  overflow: hidden;

  &:hover {
    width: 120px;
  }

  &:hover .sgp-volume-slider {
    opacity: 1;
  }
}

.sgp-volume-slider {
  -webkit-appearance: none;
  width: 70px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  outline: none;
  opacity: 0;
  transition: opacity 0.2s ease;

  &::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
  }

  &::-moz-range-thumb {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
  }
}

/* ==============================================
   ig-teaser-item — button reset
   ============================================== */
button.ig-teaser-item {
  all: unset;
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  display: block;
  background: var(--surface);
  cursor: pointer;
  box-sizing: border-box;
}

/* ==============================================
   Leave-site Confirmation Modal
   ============================================== */
.ig-leave-modal {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;

  &[hidden] {
    display: none;
  }

  &.is-closing .ig-leave-backdrop {
    animation: igLeaveBackdropIn 0.18s ease reverse forwards;
  }

  &.is-closing .ig-leave-card {
    animation: igLeaveCardIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) reverse forwards;
  }
}

/* Backdrop */
.ig-leave-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 13, 20, 0.72);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  animation: igLeaveBackdropIn 0.22s ease forwards;
}

@keyframes igLeaveBackdropIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Card */
.ig-leave-card {
  position: relative;
  z-index: 1;
  width: min(420px, 92vw);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 2rem 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  animation: igLeaveCardIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes igLeaveCardIn {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(12px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Icon circle */
.ig-leave-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg,
      rgba(111, 168, 196, 0.15),
      rgba(111, 168, 196, 0.05));
  border: 1px solid rgba(111, 168, 196, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ice-dark);
  margin-bottom: 0.75rem;
  flex-shrink: 0;
}

/* Eyebrow */
.ig-leave-eyebrow {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ice-dark);
  margin: 0;
  opacity: 0.8;
}

/* Title */
.ig-leave-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text, #0a0d14);
  margin: 0.2rem 0 0;
  line-height: 1.25;
}

/* Body */
.ig-leave-body {
  font-size: 0.8rem;
  line-height: 1.65;
  color: var(--text-muted, #666);
  margin: 0.4rem 0 0.6rem;
  max-width: 320px;
}

/* URL destination pill */
.ig-leave-destination {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  max-width: 100%;
  overflow: hidden;
}

#ig-leave-url-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 260px;
}

/* Actions row */
.ig-leave-actions {
  display: flex;
  gap: 0.65rem;
  width: 100%;
  margin-top: 0.75rem;
}

/* Shared button base */
.ig-leave-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.15s ease;

  &:active {
    transform: scale(0.97);
  }
}

/* Cancel — ghost */
.ig-leave-btn--cancel {
  background: var(--surface);
  color: var(--text-muted);
  border: 1px solid var(--border);

  &:hover {
    background: rgba(111, 168, 196, 0.08);
    color: var(--text);
    border-color: var(--ice);
  }
}

/* Confirm — primary (dark) */
.ig-leave-btn--confirm {
  background: var(--ink, #0a0d14);
  color: #fff;
  box-shadow: 0 4px 16px rgba(10, 13, 20, 0.25);

  &:hover {
    background: var(--ice-dark);
    box-shadow: 0 6px 20px rgba(10, 13, 20, 0.35);
  }
}

:focus-visible .ig-leave-btn {
  outline: 2px solid var(--ice-dark);
  outline-offset: 3px;
}



#stories {
  @media (max-width: 1199px) {
    .stories-container {
      display: flex;
      flex-direction: row;
      gap: 1rem;
      overflow-x: auto;
      overflow-y: hidden;
      scroll-snap-type: x mandatory;
      -webkit-overflow-scrolling: touch;
      padding: 1rem 0.5rem 1.5rem;
      margin-top: 1.5rem;
      scrollbar-width: thin;
      scrollbar-color: rgba(255, 255, 255, 0.2) transparent;

      &::-webkit-scrollbar {
        height: 6px;
      }
      &::-webkit-scrollbar-track {
        background: transparent;
      }
      &::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.2);
        border-radius: 999px;
      }

      .item {
        flex: 0 0 70vw;
        max-width: 270px;
        min-width: 180px;
        aspect-ratio: 9 / 16;
        scroll-snap-align: center;
        position: relative;
        border-radius: 16px;
        overflow: hidden;
        border: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
        background: rgba(255, 255, 255, 0.04);
        transition: transform 0.25s ease, box-shadow 0.25s ease;

        &:active,
        &:hover {
          transform: scale(1.02);
          box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
        }

        img,
        video,
        .story-media {
          width: 100%;
          height: 100%;
          object-fit: cover;
          display: block;
          border-radius: 16px;
        }

        .story-placeholder {
          width: 100%;
          height: 100%;
          background: rgba(255, 255, 255, 0.05);
          border-radius: 16px;
        }
      }
    }
  }

  @media (min-width: 1200px) {
    --custom-spring: linear(
      /* 0, 0.4 10%, 0.8 20%, 1.05 35%, 1.1 45%, 1.02 60%, 0.98 75%, 1 100% */
      
      0, 0.006, 0.025 2.8%, 0.101 6.9%, 0.539 22.9%,
      0.687 28.3%, 0.802 33.6%, 0.885 38.9%, 0.944 44.3%,
      0.984 50%, 1.007 55.7%, 1.018 61.4%, 1.017 68.4%,
      1.003 82.8%, 0.997 91.4%, 1

    );
      
    /* https://easingwizard.com/ */

    --custom-spring: linear(0, 0.211 3.7%, 0.398 7.5%, 0.562 11.4%, 0.706 15.5%, 0.77 17.6%, 0.827 19.7%, 0.88 21.9%, 0.927 24.1%, 0.97 26.4%, 1.006 28.7%, 1.038 31.1%, 1.065 33.5%, 1.082 35.4%, 1.097 37.4%, 1.11 39.5%, 1.119 41.6%, 1.126 43.8%, 1.13 46.1%, 1.132 48.4%, 1.131 50.9%, 1.124 54.9%, 1.111 59.5%, 1.094 64%, 1.043 76.5%, 1.019 84%, 1.01 87.9%, 1.004 91.7%, 1.001 95.6%, 1);

    --i-s: 1;
    --i-z: 0;
    --i-r: 0;
    --i-x: 0;
    --i-y: 0;

    .stories-container {
      position: relative;
      max-width: 1200px;
      margin: 2rem auto 0;

      --transition-duration: .45s;
      
      --transition: all var(--transition-duration) var(--custom-spring),
                    transform var(--transition-duration) var(--custom-spring),
                    border-radius var(--transition-duration) var(--custom-spring),
                    z-index 0s;

      .item {
        --i-WIDTH: 20%;
        --i-o-x: 0%;
        --i-o-r: 0deg;
        --i-m-x: 1;
        --i-h-o-r: 0deg;
        --i-m-r: 1;
        --i-m-s: 1;
        --i-o-y: 0%;

        --transition-duration: .65s;

        flex-shrink: 0;
        position: absolute;
        top: 0;
        left: 50%;
        margin-left: calc(-0.5 * var(--i-WIDTH));
        width: var(--i-WIDTH);
        overflow: hidden;
        transition: var(--transition);
        --bd-r: 12px;
        cursor: pointer;
        z-index: calc(123 + var(--i-z));

        transform: 
          translateY(calc(var(--i-y) - var(--i-o-y))) 
          translateX(calc(var(--i-x) + (var(--i-o-x) * var(--i-m-x)))) 
          scale(calc(var(--i-s) * var(--i-m-s))) 
          rotate(calc(var(--i-r) + (var(--i-o-r) * var(--i-m-r))));

        img,
        video,
        .story-media {
          transition: border-radius var(--transition-duration) var(--custom-spring);
          border-radius: var(--bd-r);
          object-fit: cover;
          width: 100%;
          height: 100%;
        }

        /*
        &:has(~ .item:hover) {
          --i-o-x: -15%;
        }

        &:has(+ .item:hover) {
          --i-o-x: -25%;
        }
        */

        &:has(+ &:hover) {
          --i-o-x: -40%;
          --i-o-r: -2deg;
          --i-z: 16;
        }

        &:has(+ & + &:hover) {
          --i-o-x: -32%;
          --i-o-r: -1.2deg;
          --i-z: 14;
        }

        &:has(+ & + & + &:hover) {
          --i-o-x: -26%;
          --i-o-r: -.52deg;
          --i-z: 12;
        }

        &:has(+ & + & + & + &:hover) {
          --i-o-x: -21%;
          --i-o-r: -.33deg;
          --i-z: 10;
        }

        &:has(+ & + & + & + & + &:hover) {
          --i-o-x: -16%;
          --i-o-r: -.14deg;
          --i-z: 8;
        }

        &:has(+ & + & + & + & + & + &:hover) {
          --i-o-x: -10%;
          --i-o-r: -.2deg;
          --i-z: 6;
        }

        &:hover {
          --bd-r: 24px;
          --i-m-s: 1.125;
          --i-z: 20;
          --i-o-x: 0%;
          --i-o-r: var(--i-h-o-r);
          --i-m-r: 0.5; /* ToDo: anyhow not functioning */

          /* --i-h-o-r: calc(-.5 * var(--i-o-r)) */

          --i-o-y: 4%;
          translate: 0 calc(-1 * var(--i-o-y)); /* ToDo: did not work in main transform: anyhow ... */
        }

        &:hover + & {
          --i-o-x: 40%;
          --i-o-r: 2deg;
          --i-z: 16;
        }

        &:hover + & + & {
          --i-o-x: 32%;
          --i-o-r: 1.2deg;
          --i-z: 14;
        }

        &:hover + & + & + & {
          --i-o-x: 26%;
          --i-o-r: .52deg;
          --i-z: 12;
        }

        &:hover + & + & + & + & {
          --i-o-x: 21%;
          --i-o-r: .33deg;
          --i-z: 10;
        }

        &:hover + & + & + & + & + & {
          --i-o-x: 16%;
          --i-o-r: .14deg;
          --i-z: 8;
        }

        &:hover + & + & + & + & + & + & {
          --i-o-x: 10%;
          --i-o-r: .2deg;
          --i-z: 6;
        }

        /*
        &:hover+.item {
          --i-o-x: 25%;
        }

        &:hover+.item~.item {
          --i-o-x: 15%;
        }*/

        &:nth-child(1) {
          --i-s: .90;
          --i-z: 1;
          --i-x: -130%;
          --i-y: 6%;
          --i-r: -8deg;
          --i-m-x: 1.5;
          --i-h-o-r: 4deg;
        }

        &:nth-child(2) {
          --i-s: .94;
          --i-z: 2;
          --i-x: -85%;
          --i-y: 4%;
          --i-r: -5deg;
          --i-m-x: 1.23;
          --i-h-o-r: 2.5deg;
        }

        &:nth-child(3) {
          --i-s: .99;
          --i-z: 6;
          --i-x: -42%;
          --i-y: 2%;
          --i-r: -2deg;
          --i-m-x: 1.1;
          --i-h-o-r: 1deg;
        }

        &:nth-child(4) {
          --i-s: 1.1;
          --i-z: 10;
          --i-x: 0%;
          --i-y: 0%;
          --i-r: 0deg;
        }

        &:nth-child(5) {
          --i-s: .99;
          --i-z: 6;
          --i-x: 42%;
          --i-y: 2%;
          --i-r: 2deg;
          --i-m-x: 1.1;
          --i-h-o-r: -1deg;
        }

        &:nth-child(6) {
          --i-s: .94;
          --i-z: 2;
          --i-x: 85%;
          --i-y: 4%;
          --i-r: 5deg;
          --i-m-x: 1.23;
          --i-h-o-r: -2.5deg;
        }

        &:nth-child(7) {
          --i-s: .90;
          --i-z: 1;
          --i-x: 130%;
          --i-y: 6%;
          --i-r: 8deg;
          --i-m-x: 1.5;
          --i-h-o-r: -4deg;
        }
      }

      &:has(.item:hover) {
        .item:not(:hover) {
          --i-s: 0.84;
          
          /* &:not(:has(+ .item:hover)):not(:has(+ .item + .item:hover)):not(.item:hover + *):not(.item:hover + * + *) {
            
            &:nth-child(2),
            &:nth-child(6) {
              --i-s: .91;
            }
            
            &:nth-child(1),
            &:nth-child(7) {
              --i-s: .86;
            }
          }
        }*/

          &:has(+ .item + .item + .item:hover),
          &:is(.item:hover + .item + .item + .item) {
            --i-s: 0.86;
          }

          &:has(+ .item + .item:hover),
          &:is(.item:hover + .item + .item) {
            --i-s: 0.91;
          }

          &:has(+ .item:hover),
          &:is(.item:hover + .item) {
            --i-s: 0.96;
            /* --i-o-r: 100deg; */ /* not functioning anyhow */
            &:nth-child(1),
            &:nth-child(7) {
              /* --i-o-x: -2%; */
              --i-m-x: .5;
            }
          }
        }
        .item:hover {
          /* 
          --i-s: 1.25; did not work above ... */
          --i-z: 20;
        }
      }
    }
    height: 95vh;
  }
}




/* WIP */
@property --i-o-r { syntax: '<angle>'; inherits: true; initial-value: 0deg; }
@property --i-m-r { syntax: '<number>'; inherits: true; initial-value: 1; }
@property --i-o-x { syntax: '<percentage>'; inherits: true; initial-value: 0%; }
@property --i-m-x { syntax: '<number>'; inherits: true; initial-value: 1; }
@property --i-s   { syntax: '<number>'; inherits: true; initial-value: 1; }
@property --i-m-s { syntax: '<number>'; inherits: true; initial-value: 1; }
@property --i-o-y { syntax: '<percentage>'; inherits: true; initial-value: 0%; }
@property --i-z   { syntax: '<number>'; inherits: true; initial-value: 0; }
@property --i-r   { syntax: '<angle>'; inherits: true; initial-value: 0deg; }
@property --i-x   { syntax: '<percentage>'; inherits: true; initial-value: 0%; }
@property --i-y   { syntax: '<percentage>'; inherits: true; initial-value: 0%; }
/* Song detail pages */
.music-song-title a { color: inherit; text-decoration: none; }
.music-song-title a:hover { text-decoration: underline; }
.music-detail-link { display: inline-block; margin: 0.4rem 0 0.65rem; }
.song-layout { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); margin-top: 2rem; align-items: start; }
.song-actions { display: grid; gap: 0.75rem; margin-top: 1.25rem; }
.song-placeholder-icon { font-size: 4rem; color: var(--muted); }
.song-heading { font-family: var(--font-display); font-size: 1.7rem; font-weight: 400; margin: 2rem 0 1rem; }
.song-facts { display: grid; gap: 0.8rem; margin: 1.5rem 0 2.5rem; }
.song-facts div { display: grid; grid-template-columns: minmax(100px, 1fr) 2fr; gap: 1rem; padding-bottom: 0.8rem; border-bottom: 1px solid var(--border); }
.song-facts dt { color: var(--muted); }
.song-facts dd { margin: 0; }
.song-stanza { margin: 0 0 2rem; }
.song-stanza h3 { font-size: 0.8rem; color: var(--muted); margin-bottom: 0.6rem; }
.song-stanza p { line-height: 1.9; overflow-wrap: anywhere; }
.song-lyrics-soon { padding: 1.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
@media (max-width: 700px) {
  .song-layout { grid-template-columns: minmax(0, 1fr); }
  .song-artwork { width: 100%; max-width: 360px; margin-inline: auto; }
}

/* Music video preview — landscape stage, dedicated transport, word captions */
.music-video-preview { --player-bg: #101821; --player-ice: #c9eaf5; margin: 1.5rem 0; overflow: hidden; border: 1px solid #263441; border-radius: 1rem; background: var(--player-bg); color: #f4f8fb;  }
.music-video-preview [hidden] { display: none !important; }
.music-video-preview svg { display: block; width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.music-video-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.15rem; }
.music-video-eyebrow { display: block; margin-bottom: 0.3rem; color: #a8becb; font-size: 0.55rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.music-video-title { display: block; font-family: var(--font-body); font-size: 0.85rem; font-weight: 600; }
.music-video-title > span { color: #a8becb; font-weight: 400; font-size: 0.65rem; }
.music-video-duration { border: 1px solid #ffffff25; border-radius: 6px; padding: 0.3rem 0.4rem; color: #c7d8e1; font-size: 0.6rem; font-variant-numeric: tabular-nums; }
.music-video-screen { background: var(--player-bg); }
.music-video-stage { position: relative; display: grid; place-items: center; aspect-ratio: 3 / 2; background: #070b10; isolation: isolate; }
.music-video-stage video { display: block; width: 100%; height: 100%; min-height: 0; position: absolute; inset: 0; object-fit: contain; }
.music-video-center { position: absolute; display: grid; place-items: center; width: 64px; height: 64px; background: #101821bd; backdrop-filter: blur(8px); border: 1px solid #ffffff85; border-radius: 50%; color: #fff; cursor: pointer; }
.music-video-center svg { width: 27px; height: 27px; }
.music-video-preview.is-playing .music-video-center { visibility: hidden; }
.music-video-tag { position: absolute; top: 0.8rem; left: 0.8rem; display: flex; align-items: center; gap: 0.35rem; padding: 0.3rem 0.45rem; background: #101821ad; border: 1px solid #ffffff30; border-radius: 4px; color: #fff; font-size: 0.48rem; font-weight: 600; letter-spacing: 0.12em; pointer-events: none; }
.music-video-tag > span { width: 5px; height: 5px; border-radius: 50%; background: var(--player-ice); }
.music-video-subtitles { position: absolute; bottom: 0.9rem; left: 5%; right: 5%; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.08em 0.14em; width: fit-content; max-width: 90%; margin-inline: auto; padding: 0.35rem 0.45rem; background: #080f18e8; border-radius: 0.5rem; color: #fff; font-size: clamp(0.78rem, 1.8vw, 1.15rem); font-weight: 650; line-height: 1.5; text-align: center; pointer-events: none; }
.music-video-subtitles > span { padding: 0.03em 0.2em; border-radius: 0.2rem; }
.music-video-subtitles > .is-current { color: #091520; background: var(--player-ice); box-shadow: 0 0 0 1px var(--player-ice); }
.music-video-loading { position: absolute; top: 0.8rem; right: 0.8rem; padding: 0.35rem 0.5rem; border-radius: 4px; background: #101821dd; color: #fff; font-size: 0.6rem; }
.music-video-controls { padding: 0.4rem 0.75rem 0; }
.music-video-timeline { display: flex; align-items: center; height: 32px; }
.music-video-timeline input { --progress: 0%; appearance: none; width: 100%; height: 32px; margin: 0; border: 0; border-radius: 4px; background: linear-gradient(to right, var(--player-ice) var(--progress), #ffffff30 var(--progress)) center / 100% 4px no-repeat; cursor: pointer; }
.music-video-timeline input::-webkit-slider-thumb { appearance: none; width: 12px; height: 12px; background: var(--player-ice); border-radius: 50%; border: 0; }
.music-video-timeline input::-moz-range-thumb { width: 12px; height: 12px; background: var(--player-ice); border-radius: 50%; border: 0; }
.music-video-timeline input:disabled { opacity: 0.5; cursor: default; }
.music-video-toolbar { display: flex; align-items: center; gap: 0.45rem; padding-bottom: 0.25rem; }
.music-video-toolbar button { display: grid; place-items: center; flex: 0 0 auto; width: 44px; height: 44px; padding: 0; color: #eef7fb; background: transparent; border: 1px solid transparent; border-radius: 0.5rem; cursor: pointer; }
.music-video-toolbar button:hover, .music-video-center:hover { background: #344a5d; }
.music-video-toolbar button[aria-pressed="true"] { color: var(--player-ice); border-color: #c9eaf540; background: #c9eaf515; }
.music-video-tools { display: flex; align-items: center; margin-left: auto; gap: 0.1rem; }
.music-video-time { font-size: 0.6rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.music-video-time span { color: #9cb0bd; }
.music-video-cc { font-size: 0.65rem; font-weight: 700; letter-spacing: -0.03em; border: 1px solid currentColor; border-radius: 3px; padding: 0.05rem 0.12rem; line-height: 1; }
.music-video-ai-note { margin: 0; padding: 0.55rem 1rem 0.8rem; border-top: 1px solid #ffffff0d; color: #a8becb; font-size: 0.56rem; line-height: 1.6; }
.music-video-footer { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.55rem 0.85rem; background: #ffffff05; border-top: 1px solid #ffffff12; }
.music-video-status { margin: 0; font-size: 0.6rem; line-height: 1.5; color: #a8becb; }
.music-video-footer a { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border: 1px solid #ffffff20; border-radius: 50%; color: #e1f4fc; }
.music-video-preview:focus-visible, .music-video-preview button:focus-visible, .music-video-preview input:focus-visible, .music-video-footer a:focus-visible { outline: 2px solid #7ccce8; outline-offset: 3px; }
.music-video-screen:fullscreen { display: flex; flex-direction: column; width: 100%; height: 100%; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
.music-video-screen:fullscreen .music-video-stage { flex: 1; min-height: 0; aspect-ratio: auto; }
.music-video-screen:fullscreen .music-video-subtitles { font-size: clamp(1rem, 2.5vw, 2rem); }
.music-video-screen:fullscreen .music-video-controls, .music-video-screen:fullscreen .music-video-ai-note { width: min(100%, 1000px); margin-inline: auto; }
.music-video-stage video::cue { background: #080f18e8; color: #fff; font-family: var(--font-body); }
@media (max-width: 380px) {
  .music-video-header { padding: 0.85rem; }
  .music-video-title > span { display: block; margin-top: 0.2rem; }
  .music-video-toolbar { gap: 0.15rem; }
  .music-video-tools { gap: 0; }
}

/* Preview launcher and native modal dialog */
:root {
  --modal-open-dur: 250ms;
  --modal-close-dur: 150ms;
  --modal-scale: 0.96;
  --modal-scale-close: 0.96;
  --modal-ease: cubic-bezier(0.22, 1, 0.36, 1);
}
.t-modal {
  transform-origin: center;
  transform: scale(var(--modal-scale));
  opacity: 0;
  pointer-events: none;
  transition:
    transform var(--modal-open-dur) var(--modal-ease),
    opacity   var(--modal-open-dur) var(--modal-ease);
  will-change: transform, opacity;
}
.t-modal.is-open {
  transform: scale(1);
  opacity: 1;
  pointer-events: auto;
}
.t-modal.is-closing {
  transform: scale(var(--modal-scale-close));
  opacity: 0;
  pointer-events: none;
  transition:
    transform var(--modal-close-dur) var(--modal-ease),
    opacity   var(--modal-close-dur) var(--modal-ease);
}
@media (prefers-reduced-motion: reduce) {
  .t-modal { transition: none !important; }
}
.music-video-modal-open { overflow: hidden; }
.music-video-entry { margin: 1.5rem 0; }
.music-video-launcher { display: flex; align-items: center; gap: 1rem; padding: 0.65rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--card); color: var(--ink); text-decoration: none; }
.music-video-launcher:hover { border-color: var(--ice-dark); }
.music-video-launcher-image { position: relative; display: grid; place-items: center; flex: 0 0 100px; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 0.4rem; background: #101821; }
.music-video-launcher-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.music-video-launcher-play { position: relative; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #ffffff90; border-radius: 50%; background: #101821a8; color: #fff; }
.music-video-launcher svg { width: 19px; height: 19px; }
.music-video-launcher-duration { position: absolute; bottom: 3px; right: 4px; padding: 0 3px; border-radius: 3px; font-size: 0.48rem; line-height: 1.5; background: #101821c9; color: #fff; }
.music-video-launcher-info { display: grid; gap: 0.4rem; }
.music-video-launcher-info .music-video-eyebrow { color: var(--muted); font-size: 0.5rem; letter-spacing: 0.1em; }
.music-video-launcher-info strong { font-size: 0.85rem; }
.music-video-launcher-action { color: var(--ice-dark); font-size: 0.65rem; font-weight: 500; }
.music-video-launcher:focus-visible { outline: 2px solid var(--ice-dark); outline-offset: 4px; }
.music-video-dialog { width: min(880px, calc(100vw - 1.5rem)); max-width: none; max-height: calc(100dvh - 1.5rem); margin: auto; padding: 0; border: 0; background: transparent; color: #f4f8fb; overflow: auto; border-radius: 1rem; }
.music-video-dialog::backdrop { background: #050a12d9; backdrop-filter: blur(6px); }
.music-video-dialog .t-modal { position: relative; }
.music-video-dialog .music-video-preview { margin: 0; }
.music-video-dialog .music-video-header { padding-right: 4rem; }
.music-video-dialog .music-video-stage { max-height: max(120px, calc(100dvh - 290px)); }
.music-video-dialog .music-video-screen:fullscreen .music-video-stage { max-height: none; }
.music-video-close { position: absolute; top: 0.6rem; right: 0.65rem; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #ffffff35; border-radius: 50%; color: #fff; background: #101821; cursor: pointer; }
.music-video-close:hover { background: #344a5d; }
.music-video-close:focus-visible { outline: 2px solid #7ccce8; outline-offset: 3px; }
.music-video-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }

/* Music pages keep controls and artwork stationary in every interaction state. */
.music-page :is(a, button) { transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease; }
.music-item .music-video-entry { margin: 0; }
.music-page .music-placeholder-tag { border-radius: 0.35rem; }
.music-page .music-video-launcher { background: transparent; border-radius: 0.5rem; }
@media (prefers-reduced-motion: reduce) {
  .music-page :is(a, button) { transition: none; }
}

.music-audio-preview { min-width: 0; margin-block: 1rem; }
.music-item .music-audio-preview { margin-block: 0; }
.music-audio-label { margin: 0 0 0.5rem; color: var(--muted); font-size: 0.85rem; }
.music-audio-preview audio { display: block; width: 100%; max-width: 100%; }

/* Listening comes first; primary actions and platform choices have distinct weight. */
.music-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3.5rem); }
.music-item { padding-top: 1rem; border-top: 1px solid var(--border); gap: 1.25rem; }
.music-info { display: grid; gap: 0.35rem; }
.music-song-title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0; }
.music-song-title a { color: inherit; text-decoration: none; }
.music-song-title a:hover { color: var(--ice-dark); }
.music-info .music-artist, .music-info .music-release-note { margin: 0; }
.music-release-note { line-height: 1.7; }
.music-main-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem; }
.music-main-actions .music-btn { font-size: 0.75rem; letter-spacing: 0; text-transform: none; padding: 0.8rem; }
.music-platforms, .music-extra-links { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
.music-platforms { margin-top: 0.75rem; }
.music-platforms a, .music-extra-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.8rem; color: var(--ice-dark); text-underline-offset: 4px; }
.music-extra-links a { color: var(--muted); font-size: 0.75rem; }
.music-extra-links:empty { display: none; }
.music-audio-preview { padding: 1rem; border: 1px solid var(--border); border-radius: 0.65rem; background: var(--surface); }
.music-audio-label { color: var(--ink); font-weight: 500; }
.music-detail-link { align-self: flex-start; min-height: 44px; display: inline-flex; align-items: center; }
.song-content { min-width: 0; }
.song-content > .music-links { margin-bottom: 2rem; }
.music-page :is(a, button, audio):focus-visible { outline: 2px solid var(--ice-dark); outline-offset: 4px; }
.music-video-launcher-info .music-video-eyebrow { font-size: 0.65rem; }
.music-video-launcher-action { font-size: 0.75rem; }
.music-video-launcher-duration { font-size: 0.65rem; }
@media (max-width: 640px) {
  .music-grid { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .music-main-actions { grid-template-columns: minmax(0, 1fr); }
  .music-video-launcher { gap: 0.75rem; }
  .music-video-launcher-image { flex-basis: 80px; }
}

:root {
  --pulse-dur: 1000ms;
  --pulse-count: 1;
  --pulse-min: 0.5;
  --reveal-dur: 400ms;
  --reveal-blur: 2px;
  --reveal-ease: ease-in-out;
}

/* The wrap stacks two layers on the same coordinates. The
   skeleton owns the cold pulse + the fade-out side of the
   reveal; the content owns the fade-in side. They share the
   same duration / ease so the swap reads as one motion. */
.t-skel { position: relative; }
.t-skel-skeleton,
.t-skel-content {
  position: absolute;
  inset: 0;
}

.t-skel-skeleton {
  z-index: 1;
  opacity: 1;
  filter: blur(0);
  transition:
    opacity var(--reveal-dur) var(--reveal-ease),
    filter  var(--reveal-dur) var(--reveal-ease);
}
.t-skel-content {
  z-index: 2;
  opacity: 0;
  filter: blur(var(--reveal-blur));
  transition:
    opacity var(--reveal-dur) var(--reveal-ease),
    filter  var(--reveal-dur) var(--reveal-ease);
}
.t-skel.is-revealed .t-skel-skeleton {
  opacity: 0;
  filter: blur(var(--reveal-blur));
}
.t-skel.is-revealed .t-skel-content {
  opacity: 1;
  filter: blur(0);
}
/* Snap-back when replaying: kill transitions so the reverse
   (revealed → skeleton) is instant. Drop `.is-resetting`
   after a forced reflow and the next reveal animates again. */
.t-skel.is-resetting .t-skel-skeleton,
.t-skel.is-resetting .t-skel-content {
  transition: none !important;
}

/* Pulse: place the animation on the bar/avatar children, not
   on the skeleton itself, so the skeleton's opacity / filter
   stay free for the cross-fade transition above. */
.t-skel-skeleton.is-pulsing > * {
  animation: t-skel-pulse var(--pulse-dur) ease-in-out var(--pulse-count);
}
@keyframes t-skel-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: var(--pulse-min); }
}

@media (prefers-reduced-motion: reduce) {
  .t-skel-skeleton, .t-skel-content {
    transition: none !important;
  }
  .t-skel-skeleton.is-pulsing > * { animation: none !important; }
}


/* Compact editorial titles give the page content room to lead. */
.subpage-header { max-width: 1100px; min-height: 0; margin: var(--nav-h) auto 0; padding: clamp(2.5rem, 6vw, 5rem) 1.5rem 2.5rem; border-radius: 0; border-bottom: 1px solid var(--border); overflow: visible; }
.subpage-header::before, .subpage-header::after { display: none; }
.subpage-eyebrow { color: var(--muted); letter-spacing: 0.14em; margin-bottom: 1rem; }
.subpage-eyebrow .ice-accent { background: none; -webkit-text-fill-color: currentColor; color: var(--ice-dark); text-shadow: none; }
.subpage-title { color: var(--ink); font-size: clamp(2.5rem, 6vw, 4.5rem); text-wrap: balance; }
.subpage-header--article .subpage-title { font-size: clamp(2rem, 4.5vw, 3.25rem); line-height: 1.15; }
.hero-image-wrap { margin: 0; border-radius: 0; will-change: auto; }
.hero-content { padding-top: var(--nav-h); }
.media-page { padding-top: 2.5rem; }
.media-page .media-intro { max-width: 680px; margin: 0 0 2rem; text-align: left; }
.media-page .gallery-grid { margin: 0; padding: 0; gap: 1rem; }
.media-page .gallery-item { border-radius: 0.6rem; }
.media-page .gallery-img-wrap { background: #e9e8e3; }
.gallery-image-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, #e1e5e6, #f1f0eb); }
.media-page .gallery-overlay { z-index: 3; }
.media-page .gallery-item:focus-within .gallery-overlay { opacity: 1; }
.media-page .lightbox-trigger { display: block; }
.media-page .lightbox-trigger:focus-visible { outline-offset: -4px; }
.gallery-load-error { position: absolute; inset: 0; z-index: 4; padding: 1.5rem; align-content: center; text-align: center; color: var(--muted); background: var(--surface); font-size: 0.85rem; }
@media (max-width: 640px) { .subpage-header { padding-inline: 1.25rem; } .media-page .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem; } .media-page .gallery-title { font-size: 0.85rem; letter-spacing: 0; } }
.media-page .gallery-img-wrap img[hidden], .gallery-load-error[hidden] { display: none !important; }
@media (max-width: 1199px) {
  :root:has(#navbar:not(.nav-ready)) { --nav-h: 124px; }
}

.media-page .gallery-img-wrap .t-skel-content { transition: opacity var(--reveal-dur) var(--reveal-ease), filter var(--reveal-dur) var(--reveal-ease), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }

/* Restore the homepage's inset-to-full-width framing without moving individual links. */
@media (min-width: 1200px) and (prefers-reduced-motion: no-preference) {
  #navbar.home-nav {
    top: calc(4rem * (1 - var(--hero-progress, 0)));
    left: calc(4rem * (1 - var(--hero-progress, 0)));
    right: calc(4rem * (1 - var(--hero-progress, 0)));
    border-radius: calc(1rem * (1 - var(--hero-progress, 0)));
    gap: 1rem;
    padding-inline: calc(0.75rem + (var(--nav-padding-inline) - 0.75rem) * var(--hero-progress, 0));
    background: rgb(250 249 246 / calc(0.96 * var(--hero-progress, 0)));
    border-color: rgb(10 13 20 / calc(0.08 * var(--hero-progress, 0)));
    box-shadow: 0 4px 20px rgb(10 13 20 / calc(0.04 * var(--hero-progress, 0)));
    --ink: color-mix(in srgb, #fff, #0a0d14 calc(100% * var(--hero-progress, 0)));
    --muted: color-mix(in srgb, #f4f3f0, #6e7582 calc(100% * var(--hero-progress, 0)));
    --border: color-mix(in srgb, #ffffff70, #0a0d1414 calc(100% * var(--hero-progress, 0)));
  }
  #navbar.home-nav .nav-lang-switch {
    color: color-mix(in srgb, #fff, #226f9c calc(100% * var(--hero-progress, 0)));
    background: color-mix(in srgb, #ffffff1a, #226f9c08 calc(100% * var(--hero-progress, 0)));
  }
  #navbar.home-nav .nav-lang-switch:hover {
    border-color: currentColor;
    background: color-mix(in srgb, #ffffff33, #226f9c14 calc(100% * var(--hero-progress, 0)));
  }
  #navbar.home-nav .nav-logo .ice-accent {
    color: color-mix(in srgb, #b8d8e8, #226f9c calc(100% * var(--hero-progress, 0)));
  }
  .hero-image-wrap {
    margin: calc(3rem * (1 - var(--hero-progress, 0)));
    border-radius: calc(1.25rem * (1 - var(--hero-progress, 0)));
  }
}
