/* ==========================================================================
   StrongMind Demo Day Archive — Y2K / Frutiger Aero theme
   Mobile-first, no framework, accessible.
   ========================================================================== */

:root {
  /* Palette */
  --sky-1: #cdeeff;
  --sky-2: #8fd2f5;
  --sky-3: #4fb0e3;
  --sky-deep: #1b5d99;
  --aqua-1: #d8fbff;
  --aqua-2: #9ef0ff;
  --lime-1: #e9ffb3;
  --lime-2: #b8e36a;
  --green-deep: #15803d;
  --pink-1: #ffd6ee;
  --pink-2: #ff7ac3;
  --ink: #0d2a44;
  --ink-soft: #345a7a;
  --white: #ffffff;
  --white-70: rgba(255, 255, 255, 0.7);
  --white-40: rgba(255, 255, 255, 0.4);
  --white-20: rgba(255, 255, 255, 0.2);
  --shadow-1: 0 1px 2px rgba(13, 42, 68, 0.08);
  --shadow-2: 0 10px 30px rgba(13, 42, 68, 0.18);
  --shadow-3: 0 20px 60px rgba(13, 42, 68, 0.22);

  /* Glass surface */
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-bg-strong: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.85);
  --glass-inner-hi: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --glass-inner-lo: inset 0 -1px 0 rgba(13, 42, 68, 0.06);

  /* Type */
  --font-display: "Chakra Petch", "Segoe UI", "Helvetica Neue", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", "Helvetica Neue", system-ui, sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --container: 1100px;
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4.5rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.55;
  color: var(--ink);
  background:
    radial-gradient(120% 80% at 80% -10%, var(--aqua-2) 0%, transparent 55%),
    radial-gradient(90% 70% at 0% 110%, var(--lime-1) 0%, transparent 55%),
    linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 45%, var(--sky-3) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

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

a {
  color: var(--green-deep);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 2px solid var(--green-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--white);
  color: var(--ink);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* ---------- Layout helpers ---------- */
.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

/* ---------- Background decorations ---------- */
.bg-decor {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  width: 320px;
  filter: drop-shadow(0 20px 30px rgba(13, 42, 68, 0.18));
  opacity: 0.85;
}

.orb--aqua {
  top: -80px;
  right: -60px;
  width: 360px;
}

.orb--lime {
  bottom: -120px;
  left: -100px;
  width: 380px;
}

.orb--pink {
  top: 38%;
  right: -120px;
  width: 220px;
  opacity: 0.7;
}

/* Additional desktop bubbles */
.orb--desktop-1 {
  top: 15%;
  left: -80px;
  width: 260px;
  opacity: 0.5;
}

.orb--desktop-2 {
  bottom: 10%;
  right: 5%;
  width: 420px;
  opacity: 0.4;
}

.orb--desktop-3 {
  top: 65%;
  left: 5%;
  width: 280px;
  opacity: 0.6;
}

@media screen and (max-width: 1024px) {
  .desktop-orb {
    display: none;
  }
}

@keyframes floatY {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-18px);
  }
}

.float-slow {
  animation: floatY 11s ease-in-out infinite;
}

.float-med {
  animation: floatY 8s ease-in-out infinite;
}

.float-fast {
  animation: floatY 6s ease-in-out infinite;
}

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

  .float-slow,
  .float-med,
  .float-fast {
    animation: none;
  }
}

/* Make sure content sits above decorations */
.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

/* ---------- Header ---------- */
.site-header {
  padding: var(--space-3) 0;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
  letter-spacing: 0.02em;
}

.brand:hover {
  text-decoration: none;
}

.brand__mark {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #fff 0 12%, transparent 14%),
    radial-gradient(circle at 50% 50%, var(--aqua-2), var(--sky-3) 70%, var(--sky-deep));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 2px 6px rgba(13, 42, 68, 0.25);
}

.brand__text em {
  font-style: normal;
  color: var(--sky-deep);
}

.site-nav {
  display: flex;
  gap: 0.25rem;
  padding: 0.35rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  box-shadow: var(--glass-inner-hi), var(--shadow-1);
}

.site-nav a {
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-pill);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.active {
  background: var(--white-70);
  text-decoration: none;
}


/* ---------- Mobile Menu (Frutiger Aero Bubbles) ---------- */
.menu-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0.2) 60%, transparent 100%),
              rgba(255, 255, 255, 0.45);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  box-shadow: var(--glass-inner-hi),
              inset 0 -3px 6px rgba(13, 42, 68, 0.08),
              0 4px 10px rgba(13, 42, 68, 0.12);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  z-index: 210;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, filter 0.2s ease;
}

.menu-toggle:hover {
  transform: translateY(-1px) scale(1.05);
  filter: brightness(1.05);
}

.menu-toggle:active {
  transform: translateY(1px) scale(0.95);
}

.menu-toggle__icon {
  position: relative;
  width: 20px;
  height: 2px;
  background-color: var(--ink);
  border-radius: 2px;
  transition: background-color 0.2s ease;
  box-shadow: 0 1px 1px rgba(255, 255, 255, 0.4);
}

.menu-toggle__icon::before,
.menu-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 1px 1px rgba(255, 255, 255, 0.4);
}

.menu-toggle__icon::before {
  top: -6px;
}

.menu-toggle__icon::after {
  top: 6px;
}

.menu-toggle.active .menu-toggle__icon {
  background-color: transparent;
  box-shadow: none;
}

.menu-toggle.active .menu-toggle__icon::before {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle.active .menu-toggle__icon::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  background-color: rgba(13, 42, 68, 0.25);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
  
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: auto;
}

/* The floating glass bubble containing links */
.mobile-nav {
  width: min(100%, 340px);
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0.45) 50%, rgba(255, 255, 255, 0.25) 100%);
  border: 1.5px solid var(--white-70);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-4);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -10px 20px rgba(13, 42, 68, 0.05),
    0 20px 50px rgba(13, 42, 68, 0.25);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: center;
  align-items: center;
  
  transform: scale(0.6) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mobile-menu.active .mobile-nav {
  transform: scale(1) translateY(0);
}

.mobile-nav a {
  width: 100%;
  padding: 0.85rem var(--space-4);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  border-radius: var(--radius-pill);
  transition: background 0.15s ease, transform 0.15s ease;
  border: 1px solid transparent;
}

.mobile-nav a:hover,
.mobile-nav a:focus-visible {
  background: var(--white-70);
  text-decoration: none;
  transform: scale(1.03);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 10px rgba(13, 42, 68, 0.05);
}

.mobile-nav a.active {
  background: var(--white-70);
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 4px 10px rgba(13, 42, 68, 0.05);
}

@media (max-width: 768px) {
  .site-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }
}

/* ---------- Code Blocks ---------- */
.code-container {
  background: rgba(13, 42, 68, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  margin: var(--space-3) 0 var(--space-4);
  overflow-x: auto;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3), 0 4px 12px rgba(13, 42, 68, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.code-container pre {
  margin: 0;
}

.code-container code {
  font-family: Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #cdeeff;
  white-space: pre;
  display: block;
}

/* ---------- Hero ---------- */
.hero {
  padding: var(--space-7) 0 var(--space-6);
}

.hero__inner {
  max-width: 760px;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 var(--space-3);
  padding: 0.35rem 0.8rem;
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  box-shadow: var(--glass-inner-hi), var(--shadow-1);
  color: var(--sky-deep);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 1.8rem + 5vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  display: flex;
  flex-direction: column;
  gap: 0.1em;
}

.hero__title-line {
  color: var(--sky-deep);
  text-shadow: 2px 2px 0 var(--white);
  filter: drop-shadow(0 4px 8px rgba(13, 42, 68, 0.15));
}

.hero__title-line--alt {
  color: var(--sky-deep);
  text-shadow: 2px 2px 0 var(--white);
}

/* Day-page variant: long dates fit comfortably */
.hero__title--day {
  font-size: clamp(2rem, 1.4rem + 3vw, 3.75rem);
}

/* Back-link pill (used on day pages above the hero title) */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 var(--space-3);
  padding: 0.4rem 0.85rem;
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  box-shadow: var(--glass-inner-hi), var(--shadow-1);
  color: var(--sky-deep);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  transition: transform 120ms ease, filter 120ms ease;
}

.back-link:hover,
.back-link:focus-visible {
  text-decoration: none;
  filter: brightness(1.04);
  transform: translateX(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .back-link {
    transition: none;
  }

  .back-link:hover {
    transform: none;
  }
}

.hero__lede {
  margin: var(--space-4) 0 var(--space-5);
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 56ch;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* ---------- Buttons (chrome-y) ---------- */
.btn {
  --btn-bg-1: #ffffff;
  --btn-bg-2: #d8efff;
  --btn-border: rgba(13, 42, 68, 0.2);
  --btn-fg: var(--ink);

  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.15rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--btn-fg);
  background:
    linear-gradient(180deg, var(--btn-bg-1) 0%, var(--btn-bg-2) 100%);
  border: 1px solid var(--btn-border);
  border-radius: var(--radius-pill);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -8px 14px rgba(13, 42, 68, 0.05),
    0 6px 14px rgba(13, 42, 68, 0.18);
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease;
}

.btn:hover {
  text-decoration: none;
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 2px 6px rgba(13, 42, 68, 0.18),
    0 2px 6px rgba(13, 42, 68, 0.18);
}

.btn--primary {
  --btn-bg-1: #ecfaff;
  --btn-bg-2: #6cc7f2;
  --btn-fg: #06304e;
  --btn-border: rgba(27, 93, 153, 0.45);
}

.btn--ghost {
  --btn-bg-1: rgba(255, 255, 255, 0.85);
  --btn-bg-2: rgba(255, 255, 255, 0.55);
  --btn-fg: var(--ink);
  --btn-border: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }

  .btn:hover {
    transform: none;
  }
}

/* ---------- Glass panel (used by .panel and .day-card) ---------- */
.panel {
  margin: var(--space-5) 0;
  padding: var(--space-6) 0;
}

.panel>.container {
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 1rem + 2vw, 2.25rem);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow:
    var(--glass-inner-hi),
    var(--glass-inner-lo),
    var(--shadow-2);
}

.about h2,
.photography-showcase h2,
.archive__header h2 {
  margin: 0 0 var(--space-3);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem);
  letter-spacing: -0.005em;
  color: var(--ink);
}

.about p {
  margin: 0 0 var(--space-3);
  color: var(--ink-soft);
  max-width: 65ch;
}

.about p:last-child {
  margin-bottom: 0;
}

/* ---------- Archive grid ---------- */
.archive {
  padding: var(--space-5) 0 var(--space-7);
}

.archive__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.archive__sub {
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.days-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-3);
}

.days-grid__loading,
.days-grid__empty {
  grid-column: 1 / -1;
  padding: var(--space-6);
  text-align: center;
  background: var(--glass-bg);
  border: 1px dashed var(--glass-border);
  border-radius: var(--radius-lg);
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.02em;
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
}

.days-grid__empty strong {
  display: block;
  color: var(--ink);
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.day-card {
  position: relative;
}

.day-card__link {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "date  chev"
    "title chev"
    "meta  chev";
  align-items: center;
  gap: 0.15rem 0.75rem;
  padding: 1.1rem 1.2rem;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.55) 100%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow:
    var(--glass-inner-hi),
    var(--glass-inner-lo),
    var(--shadow-1);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.day-card__link:hover,
.day-card__link:focus-visible {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow:
    var(--glass-inner-hi),
    var(--glass-inner-lo),
    var(--shadow-3);
  filter: saturate(1.05);
}

.day-card__date {
  grid-area: date;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sky-deep);
}

.day-card__title {
  grid-area: title;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.15;
}

.day-card__meta {
  grid-area: meta;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.day-card__chev {
  grid-area: chev;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--sky-deep);
  transition: transform 160ms ease;
}

.day-card__link:hover .day-card__chev {
  transform: translateX(3px);
}

@media (prefers-reduced-motion: reduce) {
  .day-card__link {
    transition: none;
  }

  .day-card__link:hover {
    transform: none;
  }

  .day-card__chev {
    transition: none;
  }

  .day-card__link:hover .day-card__chev {
    transform: none;
  }
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  max-width: 800px;
  margin: var(--space-4) auto 0;
  padding: var(--space-2) 0;
}

/* The vertical line */
.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background: var(--glass-border);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-1);
}

.timeline__item {
  padding: 10px 40px;
  position: relative;
  background: inherit;
  width: 50%;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* When scrolled into view via JS */
.timeline__item.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline__item--left {
  left: 0;
  text-align: right;
}

.timeline__item--right {
  left: 50%;
  text-align: left;
}

/* The circles on the timeline */
.timeline__item::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  right: -10px;
  background-color: var(--white);
  border: 4px solid var(--sky-deep);
  top: 25px;
  border-radius: 50%;
  z-index: 1;
  box-shadow: var(--shadow-1);
}

.timeline__item--right::after {
  left: -10px;
}

.timeline__content {
  padding: 1.5rem;
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: var(--glass-inner-hi), var(--glass-inner-lo), var(--shadow-2);
}

.timeline__date {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sky-deep);
  background: var(--white-70);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
}

.timeline__title {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--ink);
}

.timeline__company {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.timeline__desc {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .timeline::after {
    left: 31px;
  }

  .timeline__item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
    text-align: left;
  }

  .timeline__item--left,
  .timeline__item--right {
    left: 0;
  }

  .timeline__item::after {
    left: 21px;
  }
}

/* ---------- Audio Player Widget ---------- */
.audio-player {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px 10px 10px;
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: var(--glass-inner-hi), var(--glass-inner-lo), var(--shadow-2);
  z-index: 100;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.audio-player:hover {
  transform: translateY(-2px);
  box-shadow: var(--glass-inner-hi), var(--glass-inner-lo), var(--shadow-3);
}

.audio-player__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(180deg, var(--white) 0%, var(--aqua-1) 100%);
  border: 1px solid rgba(27, 93, 153, 0.3);
  border-radius: 50%;
  color: var(--sky-deep);
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 2px 4px rgba(13, 42, 68, 0.15);
  transition: transform 0.1s ease, filter 0.1s ease;
}

.audio-player__btn:active {
  transform: scale(0.95);
}

.audio-player__btn .icon {
  display: block;
}

.audio-player__btn .icon.hidden {
  display: none;
}

.audio-player__info {
  display: flex;
  flex-direction: column;
}

.audio-player__label {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  line-height: 1;
  margin-bottom: 2px;
}

.audio-player__track {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
}

.audio-player__volume {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 10px;
  border-left: 1px solid var(--glass-border);
  padding-left: 16px;
}

.audio-player__vol-icon {
  color: var(--ink-soft);
}

.audio-player__slider {
  -webkit-appearance: none;
  width: 60px;
  height: 4px;
  background: rgba(27, 93, 153, 0.2);
  border-radius: var(--radius-pill);
  outline: none;
  cursor: pointer;
}

.audio-player__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--sky-deep);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: transform 0.1s ease;
}

.audio-player__slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.audio-player__slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: none;
  border-radius: 50%;
  background: var(--sky-deep);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: transform 0.1s ease;
}

.audio-player__slider::-moz-range-thumb:hover {
  transform: scale(1.2);
}

/* Make it responsive */
@media screen and (max-width: 540px) {
  .audio-player {
    bottom: 10px;
    right: 10px;
    left: 10px;
    flex-wrap: wrap;
    justify-content: center;
    border-radius: var(--radius-lg);
  }

  .audio-player__volume {
    border-left: none;
    padding-left: 0;
    margin-left: auto;
  }
}

/* ---------- Cover Flow ---------- */
.coverflow-wrapper {
  position: relative;
  width: 100%;
  height: 400px;
  margin: var(--space-4) 0;
  perspective: 900px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: rgba(13, 42, 68, 0.05);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.1);
}

.coverflow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
}

.coverflow__item {
  position: absolute;
  height: 300px;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s ease, z-index 0.4s;
  cursor: pointer;
  border-radius: var(--radius-md);
  box-shadow:
    0 10px 20px rgba(0, 0, 0, 0.3),
    0 -1px 0 rgba(255, 255, 255, 0.4) inset;
  -webkit-box-reflect: below 2px linear-gradient(transparent, transparent 70%, rgba(255, 255, 255, 0.4));
}

.coverflow__item img {
  height: 100%;
  width: auto;
  border-radius: var(--radius-md);
  pointer-events: none;
  /* let clicks pass to item */
  display: block;
}

@media screen and (max-width: 768px) {
  .coverflow-wrapper {
    height: 300px;
  }

  .coverflow__item {
    height: 200px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .coverflow__item {
    transition: opacity 0.3s ease;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  padding: var(--space-5) 0 var(--space-6);
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(13, 42, 68, 0.12);
}

.site-footer p {
  margin: 0;
}

.site-footer__wink {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--sky-deep);
}

/* ---------- Dark Theme (Apple Cover Flow style) ---------- */
body.dark-theme {
  background: radial-gradient(circle at center, #141416 0%, #000000 100%);
  background-attachment: fixed;
  color: #f5f5f7;
}

body.dark-theme .bg-decor {
  opacity: 0.12;
  /* Subtly dim the background blobs to make it dark and moody */
  filter: saturate(50%) brightness(30%);
}

body.dark-theme .brand__text {
  color: #ffffff;
}

body.dark-theme .brand__text em {
  color: #8fd2f5;
}

body.dark-theme .site-nav {
  background: rgba(25, 25, 27, 0.65);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), var(--shadow-1);
}

body.dark-theme .site-nav a {
  color: #e2e8f0;
}

body.dark-theme .site-nav a:hover,
body.dark-theme .site-nav a:focus-visible,
body.dark-theme .site-nav a.active {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

body.dark-theme .hero__title-line {
  color: #ffffff;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.9);
}

body.dark-theme .hero__title-line--alt {
  color: #8fd2f5;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.9);
}

body.dark-theme .hero__lede {
  color: #a1a1a6;
}

body.dark-theme .back-link {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #8fd2f5;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), var(--shadow-1);
}

body.dark-theme .back-link:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Standalone Photography Showcase Dark Panel (e.g. on index.html) */
.photography-showcase > .container {
  background: radial-gradient(circle at center, #141416 0%, #000000 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 20px 50px rgba(13, 42, 68, 0.25);
  color: #f5f5f7;
}

.photography-showcase h2 {
  color: #ffffff;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.9);
}

.photography-showcase p {
  color: #a1a1a6;
}

.photography-showcase .coverflow-wrapper {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 4px 20px rgba(0, 0, 0, 0.8);
}

/* Make the gallery panel look like a pure black void for reflection */
body.dark-theme .panel>.container {
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 0;
}

body.dark-theme .coverflow-wrapper {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 4px 20px rgba(0, 0, 0, 0.8);
}

/* Audio Player Dark Theme */
body.dark-theme .audio-player {
  background: rgba(20, 20, 22, 0.85);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), var(--shadow-2);
}

body.dark-theme .audio-player__btn {
  background: linear-gradient(180deg, #2c2c2e 0%, #1c1c1e 100%);
  border-color: rgba(255, 255, 255, 0.1);
  color: #8fd2f5;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 2px 4px rgba(0, 0, 0, 0.3);
}

body.dark-theme .audio-player__track {
  color: #ffffff;
}

body.dark-theme .audio-player__label {
  color: #a1a1a6;
}

body.dark-theme .audio-player__volume {
  border-left-color: rgba(255, 255, 255, 0.15);
}

body.dark-theme .audio-player__slider {
  background: rgba(255, 255, 255, 0.15);
}

body.dark-theme .audio-player__slider::-webkit-slider-thumb {
  background: #8fd2f5;
}

body.dark-theme .audio-player__slider::-moz-range-thumb {
  background: #8fd2f5;
}

/* Footer Dark Theme */
body.dark-theme .site-footer__inner {
  border-top-color: rgba(255, 255, 255, 0.1);
}

body.dark-theme .site-footer {
  color: #86868b;
}

body.dark-theme .site-footer__wink {
  color: #8fd2f5;
}

/* Dark theme overrides for mobile menu */
body.dark-theme .menu-toggle {
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.05) 60%, transparent 100%),
              rgba(25, 25, 27, 0.6);
  border-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15),
              inset 0 -3px 6px rgba(0, 0, 0, 0.2),
              0 4px 10px rgba(0, 0, 0, 0.3);
}

body.dark-theme .menu-toggle__icon,
body.dark-theme .menu-toggle__icon::before,
body.dark-theme .menu-toggle__icon::after {
  background-color: #ffffff;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
}

body.dark-theme .mobile-menu {
  background-color: rgba(0, 0, 0, 0.55);
}

body.dark-theme .mobile-nav {
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.06) 50%, rgba(255, 255, 255, 0.02) 100%),
              rgba(25, 25, 27, 0.85);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -10px 20px rgba(0, 0, 0, 0.2),
    0 20px 50px rgba(0, 0, 0, 0.5);
}

body.dark-theme .mobile-nav a {
  color: #e2e8f0;
}

body.dark-theme .mobile-nav a:hover,
body.dark-theme .mobile-nav a:focus-visible,
body.dark-theme .mobile-nav a.active {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

body.dark-theme .code-container {
  background: rgba(0, 0, 0, 0.6);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5), 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* Navigation Buttons for Coverflow */
.coverflow-nav {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-4);
  position: relative;
  z-index: 10;
}

.coverflow-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), var(--shadow-1);
  transition: background 150ms ease, transform 150ms ease, box-shadow 150ms ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.coverflow-nav-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  color: #8fd2f5;
}

.coverflow-nav-btn:active {
  transform: scale(0.95);
  background: rgba(255, 255, 255, 0.25);
}

/* ---------- Responsive Video Container ---------- */
.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #000;
  box-shadow: 
    var(--glass-inner-hi),
    var(--glass-inner-lo),
    var(--shadow-2);
  border: 1px solid var(--glass-border);
  margin-bottom: var(--space-5);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

body.dark-theme .video-wrapper {
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5), 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* ---------- Tutorial Content Images ---------- */
.tutorial-image-container {
  text-align: center;
  margin: var(--space-5) auto;
  max-width: 680px;
}

.tutorial-img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-inner-hi), var(--shadow-2);
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: box-shadow 0.25s ease;
}

.tutorial-img:hover {
  box-shadow: var(--glass-inner-hi), var(--shadow-3);
}

.tutorial-image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  max-width: 1000px;
  margin: var(--space-5) auto;
}

.tutorial-image-grid .tutorial-image-container {
  margin: 0;
  max-width: 100%;
}

@media screen and (max-width: 768px) {
  .tutorial-image-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}

.tutorial-image-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-4);
  max-width: 1050px;
  margin: var(--space-5) auto;
}

.tutorial-image-grid-3 .tutorial-image-container {
  margin: 0;
  max-width: 100%;
}

@media screen and (max-width: 900px) {
  .tutorial-image-grid-3 {
    grid-template-columns: 1fr 1fr;
  }
}

@media screen and (max-width: 600px) {
  .tutorial-image-grid-3 {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}

.tutorial-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-5);
  margin: var(--space-5) 0;
  flex-wrap: wrap;
}

.tutorial-badge-img {
  width: 96px;
  height: auto;
  filter: drop-shadow(0 6px 12px rgba(13, 42, 68, 0.15));
  transition: filter 0.25s ease;
}

.tutorial-badge-img:hover {
  filter: drop-shadow(0 10px 20px rgba(13, 42, 68, 0.25)) brightness(1.05);
}

body.dark-theme .tutorial-img {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.25);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3), 0 10px 20px rgba(0, 0, 0, 0.4);
}

/* Custom override for non-clickable cards */
.day-card__link.no-link {
  cursor: default;
  transition: none;
}
.day-card__link.no-link:hover {
  transform: none;
  box-shadow: var(--glass-inner-hi), var(--glass-inner-lo), var(--shadow-1);
  filter: none;
}

/* ---------- Vertical Cards List & Media ---------- */
.days-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.day-card__link--list {
  display: grid;
  grid-template-columns: 240px 1fr auto;
  grid-template-areas: "media content chev";
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
}

/* For non-clickable list cards (like Cafe Racer) */
.day-card__link--list.no-link {
  grid-template-columns: 240px 1fr;
  grid-template-areas: "media content";
}

.day-card__media {
  grid-area: media;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  background: rgba(13, 42, 68, 0.05);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Glass shine overlay */
.day-card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 50%);
  pointer-events: none;
  z-index: 1;
}

.day-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Special video play overlay for Xcode tap to zoom */
.day-card__media--video::before {
  content: '';
  position: absolute;
  z-index: 2;
  width: 44px;
  height: 44px;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.3) 60%, transparent 100%),
              rgba(13, 42, 68, 0.65);
  border: 2px solid var(--white);
  border-radius: 50%;
  box-shadow: 
    var(--glass-inner-hi),
    inset 0 -3px 6px rgba(13, 42, 68, 0.15),
    0 4px 10px rgba(13, 42, 68, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease;
}

.day-card__media--video::after {
  content: '';
  position: absolute;
  z-index: 3;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 12px solid var(--white);
  margin-left: 3px;
  pointer-events: none;
}

.day-card__link:hover .day-card__media--video::before {
  transform: scale(1.15);
  background-color: var(--sky-deep);
}

.day-card__content {
  grid-area: content;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

/* Responsiveness: Stack columns on smaller viewports */
@media (max-width: 768px) {
  .day-card__link--list {
    grid-template-columns: 1fr;
    grid-template-areas:
      "media"
      "content";
    gap: var(--space-3);
    padding: var(--space-3);
  }

  .day-card__link--list.no-link {
    grid-template-columns: 1fr;
    grid-template-areas:
      "media"
      "content";
  }

  .day-card__chev {
    display: none; /* Hide chevron on list layout for mobile */
  }
}

/* Dark Theme Adjustments for Vertical Media Container */
body.dark-theme .day-card__media {
  background: rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* App List Styles (Square thumbnails) */
.days-list--apps .day-card__link--list {
  grid-template-columns: 160px 1fr auto;
}

.days-list--apps .day-card__link--list.no-link {
  grid-template-columns: 160px 1fr;
}

.days-list--apps .day-card__media {
  aspect-ratio: 1 / 1;
}

@media (max-width: 768px) {
  .days-list--apps .day-card__link--list {
    grid-template-columns: 1fr;
  }
  .days-list--apps .day-card__media {
    max-width: 160px;
  }
}

/* ==========================================================================
   Photography Albums & Gallery System
   ========================================================================== */

/* ---------- Album Collection Grid (Photography.html) ---------- */
.albums-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-3);
}

.album-card {
  position: relative;
}

.album-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  background: radial-gradient(120% 100% at 20% 0%, rgba(35, 38, 45, 0.85) 0%, rgba(18, 20, 24, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 12px 28px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, border-color 0.22s ease;
}

.album-card__link:hover,
.album-card__link:focus-visible {
  text-decoration: none;
  transform: translateY(-4px);
  border-color: rgba(143, 210, 245, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 18px 40px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(143, 210, 245, 0.15);
}

.album-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: rgba(10, 10, 12, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.album-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.album-card__badge {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  background: rgba(13, 15, 20, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-pill);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.album-card__body {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.album-card__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.album-card__action {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #8fd2f5;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  margin-top: 0.25rem;
  transition: transform 0.15s ease, color 0.15s ease;
}

.album-card__link:hover .album-card__action {
  color: #9ef0ff;
  transform: translateX(3px);
}

/* ---------- Album Detail Photo Grid (album.html) ---------- */
.album-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: var(--space-3);
  padding: 0.35rem 0.85rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-pill);
  color: #8fd2f5;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--space-3);
}

.photo-card {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  background: rgba(20, 22, 26, 0.8);
  cursor: pointer;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 6px 16px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease;
}

.photo-card:hover,
.photo-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(143, 210, 245, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 12px 28px rgba(0, 0, 0, 0.5),
    0 0 16px rgba(143, 210, 245, 0.2);
}

.photo-card__media {
  position: relative;
  width: 100%;
  height: 100%;
}

.photo-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(13, 15, 20, 0.7) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.photo-card:hover .photo-card__overlay,
.photo-card:focus-visible .photo-card__overlay {
  opacity: 1;
}

.photo-card__zoom-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transform: scale(0.9);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.photo-card:hover .photo-card__zoom-icon,
.photo-card:focus-visible .photo-card__zoom-icon {
  transform: scale(1);
}

/* ---------- Fullscreen / Maximized Lightbox Modal ---------- */
body.modal-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--space-3);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s ease;
}

.lightbox[hidden] {
  display: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 7, 10, 0.92);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  z-index: 1;
}

.lightbox__header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1400px;
  margin-inline: auto;
  padding: 0.5rem 0.75rem;
}

.lightbox__info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.lightbox__counter {
  padding: 0.2rem 0.6rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  color: #8fd2f5;
}

.lightbox__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 4px 12px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.lightbox__close:hover,
.lightbox__close:focus-visible {
  background: rgba(255, 255, 255, 0.25);
  color: #ff7ac3;
  transform: scale(1.08);
}

.lightbox__close:active {
  transform: scale(0.95);
}

.lightbox__stage {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1400px;
  margin-inline: auto;
  min-height: 0;
  padding: var(--space-2) 0;
}

.lightbox__img-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: calc(100vh - 150px);
}

.lightbox__img {
  max-width: 90vw;
  max-height: calc(100vh - 160px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(255, 255, 255, 0.12);
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox__nav {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
}

.lightbox__btn {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(20, 22, 28, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 8px 24px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.16s ease, background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.lightbox__btn:hover,
.lightbox__btn:focus-visible {
  background: rgba(35, 40, 50, 0.85);
  color: #8fd2f5;
  border-color: rgba(143, 210, 245, 0.5);
  transform: scale(1.1);
}

.lightbox__btn:active {
  transform: scale(0.94);
}

.lightbox__footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0.5rem;
  color: #86868b;
  font-size: 0.82rem;
}

/* Empty State component */
.empty-state {
  text-align: center;
  padding: var(--space-6) var(--space-4);
  background: rgba(20, 22, 26, 0.6);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  color: #a1a1a6;
}

.empty-state__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.5rem;
}

.empty-state__desc {
  margin: 0;
  font-size: 0.95rem;
}

.empty-state__desc code {
  color: #8fd2f5;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .lightbox__nav {
    padding: 0 0.25rem;
  }
  .lightbox__btn {
    width: 44px;
    height: 44px;
  }
  .lightbox__img {
    max-width: 95vw;
    max-height: calc(100vh - 180px);
  }
  .photos-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: var(--space-2);
  }
}