/* ─────────────────────────────────────────────
   Twins on Ice — app.css
   ───────────────────────────────────────────── */
/* Google Fonts */
/* Partials */
/* ─────────────────────────────────────────────
   Root Variables & Reset
   ───────────────────────────────────────────── */
:root {
  --ink: #0a0d14;
  --surface: #f4f3f0;
  --card: #ffffff;
  --ice: #b8d8e8;
  --ice-dark: #6fa8c4;
  --accent: #1a3a52;
  --muted: #8a8f99;
  --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.5s cubic-bezier(0.2, 1, 0.3, 1);
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Playfair Display", serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 19px;
  height: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  background: var(--surface);
  color: var(--ink);
  line-height: 1.65;
  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;
}

/* ─────────────────────────────────────────────
   Navbar
   ───────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: var(--nav-top, 0);
  left: 50%;
  transform: translateX(-50%);
  width: var(--nav-width, 100%);
  max-width: var(--nav-max-width, none);
  z-index: 1000;
  height: var(--nav-height, 90px);
  display: flex;
  align-items: center;
  padding: 0 var(--nav-padding, 4rem);
  background: var(--nav-bg, transparent);
  backdrop-filter: var(--nav-blur, none);
  -webkit-backdrop-filter: var(--nav-blur, none);
  border: 1px solid var(--nav-border, transparent);
  border-radius: var(--nav-radius, 0);
  transition:
    height var(--transition),
    padding var(--transition),
    background var(--transition),
    border-color var(--transition);

  &.scrolled {
    --nav-height: 70px;
    --nav-padding: 3rem;
    --nav-bg: rgba(255, 255, 255, 0.85);
    --nav-blur: blur(20px) saturate(180%);
    --nav-border: rgba(10, 13, 20, 0.05);
    border-top: none;
    border-left: none;
    border-right: none;
  }

  &.menu-open {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    transform: none !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    background: transparent !important;
    backdrop-filter: none !important;
    --ink: #0a0d14 !important;
    --nav-active-text: #fff !important;
    --border: rgba(10, 13, 20, 0.08) !important;
  }
}

/* ── Logo ── */
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 1002;
  transition: transform 0.4s var(--transition);
  white-space: nowrap;

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

  & svg {
    width: 24px;
    height: 24px;
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  &:hover svg {
    transform: rotate(180deg) scale(1.2);
  }
}

/* ── Links (Desktop - 100% Original) ── */
.nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;

  & a {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ink);
    padding: 0.6rem 1.25rem;
    border-radius: 3rem;
    opacity: 0.6;
    transition: all var(--transition);
  }

  & a:hover {
    opacity: 1;
    background: rgba(10, 13, 20, 0.04);
  }

  & a[aria-current="page"] {
    opacity: 1;
    font-weight: 500;
    background: var(--ink);
    color: var(--nav-active-text, #fff);
    box-shadow: 0 8px 16px rgba(10, 13, 20, 0.15);
  }
}

.mobile-nav {
  display: none !important;
}

/* ── Nav Dropdown ── */
.nav-dropdown-wrapper {
  position: relative;

  &:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    margin-top: 5px;
  }

  &:hover .nav-dropdown-icon {
    transform: rotate(180deg);
  }
}

.nav-dropdown-toggle {
  display: inline-flex !important;
  align-items: center;
  gap: 0.25rem;
}

.nav-dropdown-icon {
  width: 14px;
  height: 14px;
  transition: transform var(--transition);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 10px;
  background: var(--card, #fff);
  border-radius: var(--radius-sm, 1rem);
  padding: 0.5rem;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  box-shadow: 0 8px 24px rgba(10, 13, 20, 0.1);
  border: 1px solid var(--border);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  min-width: 150px;

  & a {
    display: block;
    text-align: center;
    padding: 0.6rem 1rem !important;
    border-radius: 2rem !important;
    color: #0a0d14 !important;
    /* Force ink color in dropdown */
  }

  & a:hover {
    background: rgba(10, 13, 20, 0.04) !important;
    opacity: 1 !important;
  }

  & a[aria-current="page"] {
    background: #0a0d14 !important;
    color: #fff !important;
  }
}

/* ── Right Cluster ── */
.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  z-index: 1002;
}

.nav-lang-switch {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--ink);
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 3rem;
  transition: all var(--transition);

  &:hover {
    border-color: var(--ink);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(10, 13, 20, 0.08);
  }
}

/* ── Mobile Toggle ── */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  position: relative;

  & span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--ink);
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -12px;
    margin-top: -0.75px;
    transition: all var(--transition);
  }

  & span:nth-child(1) {
    margin-top: -6.75px;
  }

  & span:nth-child(3) {
    margin-top: 5.25px;
  }

  &.open span:nth-child(1) {
    margin-top: -0.75px;
    transform: rotate(45deg);
  }

  &.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  &.open span:nth-child(3) {
    margin-top: -0.75px;
    transform: rotate(-45deg);
  }
}
/* ── Desktop Home Nav Initial State (Instant Padded Floating Pill) ── */
@media (min-width: 1200px) {
  #navbar.home-nav:not(.scrolled):not(.menu-open) {
    --nav-top: 4rem;
    --nav-width: 94%;
    --nav-radius: 3rem;
    --nav-padding: 4rem;
    --nav-height: 90px;
  }
}

/* ── Mobile Inversion (unscrolled) ── */
@media (max-width: 1199px) {
  #navbar.home-nav:not(.scrolled):not(.menu-open) {
    --ink: #fff;
    --nav-active-text: #0a0d14;
    --border: rgba(255, 255, 255, 0.2);
  }
}

/* ── Responsive ── */
@media (max-width: 1199px) {
  #navbar {
    padding: 0 1.5rem;
  }
}

@media (max-width: 1199px) {
  .nav-links {
    display: none !important;
  }

  .mobile-nav {
    display: none;
  }

  .mobile-nav.open {
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    inset: 0;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    margin: 0;
    border: none;
    background: rgba(244, 243, 240, 0.98);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    padding: 5.5rem 1.5rem 2.5rem 1.5rem;
    z-index: 1001;
    overflow-y: auto;
    box-sizing: border-box;
    animation: mobileMenuFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    margin: auto 0;
    padding: 0;
    list-style: none;
  }

  .mobile-nav-links li {
    width: 100%;
    text-align: center;
  }

  .mobile-nav-links a {
    font-size: 2.25rem;
    font-family: var(--font-display);
    font-weight: 400;
    text-transform: none;
    letter-spacing: -0.01em;
    opacity: 0.85;
    padding: 0.5rem 1.5rem;
    color: var(--ink);
    transition: all 0.25s cubic-bezier(0.2, 1, 0.3, 1);
    display: inline-block;
    border-radius: 3rem;
  }

  .mobile-nav-links a:hover,
  .mobile-nav-links a:focus {
    opacity: 1;
    color: var(--ink);
    transform: scale(1.05);
    background: rgba(10, 13, 20, 0.05);
  }

  .mobile-nav-links a[aria-current="page"],
  .mobile-nav-links a.active {
    opacity: 1;
    color: #ffffff;
    background: var(--ink);
    font-weight: 500;
    box-shadow: 0 8px 24px rgba(10, 13, 20, 0.15);
  }

  .mobile-nav .legal-links {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.75rem 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(10, 13, 20, 0.08);
    width: 100%;
    max-width: 480px;
    margin-top: auto;
  }

  .mobile-nav .legal-links a {
    font-size: 0.85rem;
    font-weight: 400;
    color: rgba(10, 13, 20, 0.6);
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
    letter-spacing: 0.03em;
  }

  .mobile-nav .legal-links a:hover {
    color: var(--ink);
    text-decoration: underline;
    transform: translateY(-1px);
  }

  .nav-toggle {
    display: flex;
  }

  #navbar.menu-open .nav-toggle span {
    background: var(--ink) !important;
  }

  #navbar.menu-open .nav-lang-switch {
    color: var(--ink) !important;
    border-color: var(--border) !important;
  }

  #navbar.menu-open .nav-logo {
    color: var(--ink) !important;
  }

  .nav-dropdown-menu {
    position: static;
    transform: none !important;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0;
    align-items: center;
  }

  .nav-dropdown-icon {
    display: none;
  }
}

@keyframes mobileMenuFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─────────────────────────────────────────────
   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;
}

.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;
}

/* Social cards on home */
.social-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 3rem;
}

.social-card {
  flex: 1 1 250px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--card);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);

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

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

.social-card-icon {
  width: 36px;
  height: 36px;
  color: var(--ice-dark);
}

.social-card-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
}

.social-card-handle {
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.social-card-arrow {
  margin-left: auto;
  width: 20px;
  height: 20px;
  color: var(--muted);
  transition:
    transform 0.3s ease,
    color 0.3s ease;
}

/* ─────────────────────────────────────────────
   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: scale(1.02);
    box-shadow: 0 16px 40px rgba(10, 13, 20, 0.1);
    border-color: var(--ice);
  }

  &: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: var(--ice);
    box-shadow: 0 16px 40px rgba(10, 13, 20, 0.07);
    transform: 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: 1.25rem;

  &:hover .music-cover-wrap {
    transform: scale(1.02);
  }

  &:hover .music-cover {
    transform: scale(1.05);
  }

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

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

.music-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.5s ease,
    filter 0.5s ease;
}

.music-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 13, 20, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
  backdrop-filter: blur(4px);
}

.music-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
  width: 100%;
}

.music-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #fff;
  color: var(--ink);
  padding: 0.75rem 1.25rem;
  border-radius: 2rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  transition:
    transform 0.2s,
    background 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: 100%;

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

  & svg {
    flex-shrink: 0;
  }
}

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

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

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

.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 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: 2rem;
    transition: all 0.3s ease;
  }

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

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

/* ─────────────────────────────────────────────
   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: 2fr 1fr 1.5fr;
  align-items: start;
  gap: 4rem;
  width: 100%;
}

/* ── Brand & Credits ── */
.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.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: 400;
}

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

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

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

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

  & a {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--ink);
    transition: color var(--transition);
  }

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

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

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

/* ── Socials ── */
.footer-social-wrap {
  display: flex;
  justify-content: center;
}

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

.footer-social-link {
  width: 48px;
  height: 48px;
  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: scale(1.1);
    box-shadow: 0 10px 20px rgba(10, 13, 20, 0.1);
  }

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

/* ── Legal ── */
.footer-legal {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.legal-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: right;
}

.fanpage-pill {
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  padding: 0.6rem 1.5rem;
  border-radius: 3rem;
  margin-bottom: 1rem;
  display: inline-block;
  transition:
    transform var(--transition),
    box-shadow var(--transition);

  &:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(10, 13, 20, 0.15);
  }
}

.legal-link {
  font-size: 0.8rem;
  color: var(--muted);
  transition: color var(--transition);

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

/* ── 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;
    grid-template-rows: auto auto;
  }

  .footer-legal {
    grid-column: 1 / -1;
    text-align: left;
  }
}

@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: 2rem;
  }

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

  .footer-legal a {
    margin: 0.5rem 1rem 0 0;
    display: inline-block;
  }

  .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;
  }

  .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;
  }
}

@media (max-width: 400px) {
  .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%;
  }
}

/* ==============================================
   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%; }