:root {
  --text: #f4f6fb;
  --text-dim: rgba(244, 246, 251, 0.72);
  --accent: #6c8cff;
  --accent-2: #9d6bff;
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.16);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: #0b0d14; 
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;

  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -3;
}


.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(
      ellipse at center,
      rgba(11, 13, 20, 0.25) 0%,
      rgba(11, 13, 20, 0.65) 100%
    ),
    linear-gradient(180deg, rgba(11, 13, 20, 0.45), rgba(11, 13, 20, 0.3));
}

.nav-pill {
  position: fixed;
  top: clamp(0.75rem, 2vh, 1.5rem);
  z-index: 10;
  display: flex;
  align-items: center;
  height: 46px;
  padding: 0 1.1rem;
  border-radius: 999px;
  background: rgba(11, 13, 20, 0.2);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.nav-logo {
  left: clamp(1rem, 2.5vw, 3rem);
  gap: 0.55rem;
  padding: 0 1.25rem;
  text-decoration: none;
}

.nav-logo img {
  height: 26px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
}

.nav-name {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  white-space: nowrap;
}

.nav-links-pill {
  left: 50%;
  transform: translateX(-50%);
  padding: 0 0.8rem;
}

.nav-slot {
  right: clamp(1rem, 2.5vw, 3rem);
  width: 80px;
}

.nav-video-btn {
  width: auto; 
  padding: 0 1rem;
  justify-content: center;
  cursor: pointer;
  color: var(--text-dim);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-video-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
}

.nav-video-btn:focus-visible {
  outline: 2px solid #ff6b7d;
  outline-offset: 2px;
}

.vbtn-icon {
  position: relative;
  display: block;
  width: 13px;
  height: 15px;
}

.nav-video-btn .vbtn-icon::before,
.nav-video-btn .vbtn-icon::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 1px;
  background: currentColor;
}

.nav-video-btn .vbtn-icon::before { left: 1px; }
.nav-video-btn .vbtn-icon::after { right: 1px; }

.nav-video-btn.is-paused .vbtn-icon::before {
  top: 0;
  bottom: auto;
  left: 2px;
  width: 0;
  height: 0;
  border-radius: 0;
  background: none;
  border-left: 12px solid currentColor;
  border-top: 7.5px solid transparent;
  border-bottom: 7.5px solid transparent;
}

.nav-video-btn.is-paused .vbtn-icon::after {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.4rem, 1.5vw, 1rem);
  list-style: none;
}

.nav-links a {
  display: inline-block;
  padding: 0.32rem 0.85rem;
  border-radius: 999px;
  color: var(--text-dim);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
}

.nav-links a.active,
.nav-links a.active:hover {
  color: #ff6b7d;
  background: rgba(255, 90, 110, 0.14);
}

@media (max-width: 1100px) {
  .nav-name {
    display: none;
  }
}

@media (max-width: 560px) {
  .nav-pill {
    top: 0.75rem;
    height: 38px;
    padding: 0 0.75rem;
  }
  .nav-links-pill {
    left: auto;
    transform: none;
    right: 0.75rem;
  }
  .nav-slot {
    display: none;
  }
  .nav-logo img {
    height: 21px;
  }
  .nav-links a {
    padding: 0.3rem 0.6rem;
    font-size: 0.85rem;
  }
}

.hero {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
}

.title {
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.4rem;
  animation: fade-up 0.7s ease 0.1s both;
}

.subtitle {
  max-width: 560px;
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.6;
  color: var(--text-dim);
  margin-bottom: 2.8rem;
  animation: fade-up 0.7s ease 0.2s both;
  transition:
    font-size 1s cubic-bezier(.25, .8, .3, 1) .45s,
    line-height 1s cubic-bezier(.25, .8, .3, 1) .45s,
    max-width 1s cubic-bezier(.25, .8, .3, 1) .45s,
    margin-bottom 1s ease .45s,
    color .6s ease .45s,
    text-shadow 1.2s ease .45s;
}

.cta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  animation: fade-up 0.7s ease 0.3s both;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  padding: 0.95rem 2.2rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease,
    background-color 0.25s ease, border-color 0.25s ease;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn:active {
  transform: translateY(-1px) scale(0.98);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #ff5a6e, #d91427);
  box-shadow: 0 8px 30px rgba(217, 20, 39, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 14px 40px rgba(217, 20, 39, 0.55);
}

.btn-ghost {
  color: var(--text);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.35);
}


.footer {
  position: relative;
  padding: 1.4rem 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .title,
  .subtitle,
  .cta-row {
    animation: none;
  }
  .btn,
  .btn:hover {
    transform: none;
    transition: box-shadow 0.25s ease, background-color 0.25s ease,
      border-color 0.25s ease;
  }
}

.vp{position:fixed;inset:0;z-index:80;display:none}
.vp.open{display:flex;align-items:center;justify-content:center;padding:20px}
.vp-backdrop{position:absolute;inset:0;background:rgba(2,3,8,.72);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.vp-box{width:min(960px,100%);background:rgba(7,9,15,.88);border:1px solid rgba(255,255,255,.14);border-radius:16px;box-shadow:0 24px 70px rgba(0,0,0,.6);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);overflow:hidden;animation:vp-in .28s ease}
@keyframes vp-in{from{opacity:0;transform:translateY(14px) scale(.97)}to{opacity:1;transform:none}}
.vp-head{display:flex;align-items:center;justify-content:space-between;padding:10px 16px;background:rgba(255,255,255,.05);border-bottom:1px solid rgba(255,255,255,.09)}
.vp-title{font-size:12px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:#ff8b9a}
.vp-x{background:none;border:none;padding:2px 8px;border-radius:6px;color:#aab3c5;font-size:18px;line-height:1.2;cursor:pointer}
.vp-x:hover{color:#fff;background:rgba(255,255,255,.1)}
.vp-media{position:relative;width:100%;aspect-ratio:16/9;background:#000}
.vp-media video,.vp-media iframe{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;border:0;display:block}
@media (max-width:600px){.vp.open{padding:12px}.vp-box{border-radius:12px}}
@media (prefers-reduced-motion:reduce){.vp-box{animation:none}}


.revealed .nav-logo       { --fall-rot: -7deg;  animation: fall-away        1.25s cubic-bezier(.5, .06, .7, .45) .05s forwards; pointer-events: none }
.revealed .nav-links-pill { --fall-rot: 5deg;   animation: fall-away-center 1.25s cubic-bezier(.5, .06, .7, .45) .14s forwards; pointer-events: none }
.revealed .nav-slot       { --fall-rot: -4deg;  animation: fall-away        1.25s cubic-bezier(.5, .06, .7, .45) .24s forwards; pointer-events: none }
.revealed .title          { --fall-rot: 2.5deg; animation: fall-away        1.3s  cubic-bezier(.5, .06, .7, .45) .38s forwards; pointer-events: none }
.revealed .cta-row        { --fall-rot: -3deg;  animation: fall-away        1.3s  cubic-bezier(.5, .06, .7, .45) .5s  forwards; pointer-events: none }
.revealed .footer         { --fall-rot: 0deg;   animation: fall-away        1.1s  cubic-bezier(.5, .06, .7, .45) .2s  forwards; pointer-events: none }

@keyframes fall-away {
  0%   { opacity: 1; transform: translateY(0) rotate(0deg); }
  55%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(120vh) rotate(var(--fall-rot, -4deg)); }
}

@keyframes fall-away-center {
  0%   { opacity: 1; transform: translateX(-50%) translateY(0) rotate(0deg); }
  55%  { opacity: 1; }
  100% { opacity: 0; transform: translateX(-50%) translateY(120vh) rotate(var(--fall-rot, 4deg)); }
}

.revealed .subtitle {
  max-width: min(96vw, 1200px);
  font-size: clamp(1.4rem, 4vw, 3rem);
  line-height: 1.08;
  margin-bottom: 0;
  color: var(--text);
  text-shadow:
    0 0 60px rgba(255, 90, 110, .4),
    0 0 140px rgba(217, 20, 39, .25);
  cursor: pointer;
}

.restoring .nav-logo       { animation: rise-in        0.8s cubic-bezier(.2, .7, .3, 1) .05s both }
.restoring .nav-links-pill { animation: rise-in-center 0.8s cubic-bezier(.2, .7, .3, 1) .14s both }
.restoring .nav-slot       { animation: rise-in        0.8s cubic-bezier(.2, .7, .3, 1) .24s both }
.restoring .title          { animation: rise-in        0.9s cubic-bezier(.2, .7, .3, 1) .3s  both }
.restoring .cta-row        { animation: rise-in        0.9s cubic-bezier(.2, .7, .3, 1) .4s  both }
.restoring .footer         { animation: rise-in        0.8s cubic-bezier(.2, .7, .3, 1) .2s  both }

@keyframes rise-in {
  from { opacity: 0; transform: translateY(60vh) rotate(var(--fall-rot, -3deg)); }
  to   { opacity: 1; transform: none; }
}

@keyframes rise-in-center {
  from { opacity: 0; transform: translateX(-50%) translateY(60vh) rotate(var(--fall-rot, 3deg)); }
  to   { opacity: 1; transform: translateX(-50%); }
}

.roster-page {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(6rem, 12vh, 8rem) 1.5rem 4rem;
}

.page-head {
  text-align: center;
  margin-bottom: 3.2rem;
}

.page-sub {
  max-width: 560px;
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.6;
  color: var(--text-dim);
  animation: fade-up 0.7s ease 0.2s both;
}

.roster-section { margin-bottom: 3.6rem; }

.roster-section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 0 auto 2.1rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-dim);
  animation: fade-up 0.7s ease 0.25s both;
}

.roster-section-title::before,
.roster-section-title::after {
  content: "";
  width: 48px;
  height: 1px;
  flex-shrink: 0;
}
.roster-section-title::before { background: linear-gradient(90deg, transparent, var(--cat, #ff5a6e)); }
.roster-section-title::after  { background: linear-gradient(270deg, transparent, var(--cat, #ff5a6e)); }

.roster-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.4rem 1.8rem;
  width: 100%;
  max-width: 1320px;
  animation: fade-up 0.7s ease 0.3s both;
}

.profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 250px;
  flex-shrink: 0;
  padding: 2.2rem 1.4rem 1.9rem;
  border-radius: 20px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03) 45%, rgba(255, 255, 255, 0.06)),
    rgba(15, 18, 28, 0.01);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.roster-cat--founders   { --cat:#ecc94b; --cat-border:rgba(236, 201, 75, 0.45);  --cat-glow:rgba(236, 201, 75, 0.30); } 
.roster-cat--owners     { --cat:#ff5a6e; --cat-border:rgba(255, 90, 110, 0.45);  --cat-glow:rgba(217, 20, 39, 0.28); } 
.roster-cat--developers { --cat:#40d6c3; --cat-border:rgba(64, 214, 195, 0.45);  --cat-glow:rgba(64, 214, 195, 0.30); } 
.roster-cat--trusted    { --cat:#ffa14a; --cat-border:rgba(255, 161, 74, 0.45);  --cat-glow:rgba(255, 161, 74, 0.30); } 
.roster-cat--members    { --cat:#4d9fff; --cat-border:rgba(77, 159, 255, 0.45);  --cat-glow:rgba(77, 159, 255, 0.30); } 

.profile-card:hover {
  transform: translateY(-4px);
  border-color: var(--cat-border, rgba(255, 90, 110, 0.45));
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.45),
    0 8px 30px var(--cat-glow, rgba(217, 20, 39, 0.25));
}

.profile-pic {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--glass-border);
  background: #141720;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  transition: border-color 0.25s ease;
}

.profile-card:hover .profile-pic {
  border-color: var(--cat, #ff5a6e);
}

@property --rainbow-hue {
  syntax: "<number>";
  inherits: true;
  initial-value: 45; 
}

@keyframes rainbow-cycle {
  from { --rainbow-hue: 0; }
  to   { --rainbow-hue: 360; }
}

.roster-cat--founders .profile-card:hover {
  animation: rainbow-cycle 4s linear infinite;
  --cat: hsl(var(--rainbow-hue) 90% 62%);
  --cat-border: hsla(var(--rainbow-hue), 90%, 62%, 0.55);
  --cat-glow: hsla(var(--rainbow-hue), 90%, 62%, 0.45);
}

.profile-name {
  margin-top: 1.3rem;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

.profile-role {
  margin-top: 0.45rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-dim);
}

.profile-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.85rem;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-dim);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  transition: transform 0.2s ease, color 0.2s ease,
    background-color 0.2s ease, border-color 0.2s ease;
}

.social-btn:hover {
  color: #fff;
  border-color: rgba(255, 90, 110, 0.5);
  background: rgba(255, 90, 110, 0.14);
  transform: translateY(-1px);
}

.social-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.social-btn--steam {
  background: rgba(102, 192, 244, 0.1);
  border-color: rgba(102, 192, 244, 0.35);
}

.social-btn--steam:hover {
  color: #fff;
  border-color: rgba(102, 192, 244, 0.7);
  background: rgba(102, 192, 244, 0.2);
  box-shadow: 0 4px 18px rgba(102, 192, 244, 0.25);
}

.social-btn--youtube {
  background: rgba(255, 0, 0, 0.1);
  border-color: rgba(255, 43, 56, 0.4);
}

.social-btn--youtube:hover {
  color: #fff;
  border-color: rgba(255, 43, 56, 0.75);
  background: rgba(255, 0, 0, 0.18);
  box-shadow: 0 4px 18px rgba(255, 0, 0, 0.25);
}

@media (prefers-reduced-motion: reduce) {
  .subtitle { transition: none; }
  .revealed .nav-logo,
  .revealed .nav-links-pill,
  .revealed .nav-slot,
  .revealed .title,
  .revealed .cta-row,
  .revealed .footer { animation: none; opacity: 0; }
  .restoring .nav-logo,
  .restoring .nav-links-pill,
  .restoring .nav-slot,
  .restoring .title,
  .restoring .cta-row,
  .restoring .footer { animation: none; }
}

.gallery-page {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(6rem, 12vh, 8rem) 1.5rem 4rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.2rem;
  width: 100%;
  max-width: 1320px;
  animation: fade-up 0.7s ease 0.3s both;
}

.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  appearance: none;
  border-radius: 14px;
  overflow: hidden;
  background: #141720;
  border: 1px solid var(--glass-border);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover; 
  transition: transform 0.35s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 90, 110, 0.45);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.45),
    0 8px 30px rgba(217, 20, 39, 0.25);
}

.gallery-item:hover img,
.gallery-item:hover video {
  transform: scale(1.05);
}

.gallery-item:has(video)::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 54px;
  height: 54px;
  transform: translate(-50%, -50%);
  z-index: 2; 
  border-radius: 50%;
  background: rgba(11, 13, 20, 0.68);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.22),
    0 6px 20px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s ease;
}

.gallery-item:has(video)::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid #fff;
  z-index: 3; 
  transform: translate(-38%, -50%);
}

.gallery-item:hover:has(video)::before {
  transform: translate(-50%, -50%) scale(1.1);
}

.vp-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(7, 9, 15, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #cfd6e4;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.lb-nav:hover {
  color: #fff;
  background: rgba(217, 20, 39, 0.8);
  border-color: transparent;
}
.lb-prev { left: max(16px, calc(50% - 542px)); }
.lb-next { right: max(16px, calc(50% - 542px)); }


.mem-fx { position: fixed; inset: 0; pointer-events: none; }
.mem-grain {
  z-index: 2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  mix-blend-mode: overlay;
}
.mem-vignette {
  z-index: 2;
  background: radial-gradient(120% 90% at 50% 38%, transparent 52%, rgba(4, 5, 9, 0.6) 100%);
}

.mem-hero { position: relative; z-index: 3; }
.memories-page .eyebrow {
  display: inline-flex; align-items: center; margin-bottom: 1rem;
  font-size: 11px; font-weight: 600; letter-spacing: 0.35em; text-transform: uppercase;
  color: #aab3c5; animation: fade-up 0.7s ease both;
}

.memories-flow { position: relative; z-index: 3; width: 100%; display: block; }
.mem-year { padding-top: clamp(3.5rem, 9vh, 6.5rem); }
.memories-flow .mem-year:first-child { padding-top: clamp(2rem, 5vh, 4rem); }

.mem-year-head { text-align: center; opacity: 0; transform: translateY(28px); transition: opacity 0.9s ease, transform 0.9s ease; }
.mem-year.in-view .mem-year-head { opacity: 1; transform: none; }
.year-badge {
  display: inline-block; text-align: center;
  padding: clamp(0.75rem, 2vw, 1.6rem) clamp(1.5rem, 4.5vw, 3.25rem);
  border-radius: 999px; background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--glass-border); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.ghost-year {
  margin: 0;
  font-family: Inter, sans-serif; font-weight: 800; letter-spacing: -0.03em;
  font-size: clamp(4.5rem, 17vw, 12rem); line-height: 0.9;
  color: var(--text);
}
.mem-count { margin-top: 0.8rem; }
.mem-year .mem-count { color: var(--year-accent, #aab3c5); }
.rule-glow { display: block; width: min(230px, 46%); height: 1px; margin: 1.5rem auto clamp(2rem, 5vh, 3.5rem); opacity: 0.75; background: linear-gradient(90deg, transparent, var(--year-accent, #ff5a6e), transparent); }

.memories-flow .gallery-grid { margin-inline: auto; animation: none; }
.mem-year .gallery-item { opacity: 0; }
.mem-year.in-view .gallery-item { animation: mem-tile-in 0.6s ease both; animation-delay: var(--mem-delay, 0ms); }
.mem-year .gallery-item.mem-settled { opacity: 1; animation: none; }
@keyframes mem-tile-in { from { opacity: 0; transform: translateY(28px) scale(0.975) } to { opacity: 1; transform: none } }

.year-rail { position: fixed; right: clamp(10px, 2vw, 22px); top: 50%; transform: translateY(-50%); z-index: 10; display: flex; flex-direction: column; gap: 0.35rem; padding: 0.55rem 0.4rem; border-radius: 999px; background: rgba(11, 13, 20, 0.2); border: 1px solid var(--glass-border); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); }
.year-rail-btn { font-family: inherit; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; color: var(--text-dim); background: rgba(255, 255, 255, 0.1); border: none; padding: 0.4rem 0.65rem; min-width: 2.6rem; text-align: center; border-radius: 999px; cursor: pointer; transition: color 0.2s ease, background-color 0.2s ease; }
.year-rail-btn:hover { color: var(--text); background: rgba(255, 255, 255, 0.18); }
.year-rail-btn.active,
.year-rail-btn.active:hover { color: #ff6b7d; background: rgba(255, 90, 110, 0.14); }

@media (max-width: 900px) { .year-rail { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .mem-year-head { transition: none; }
}


.contact-page {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(6rem, 12vh, 8rem) 1.5rem 4rem;
}

.contact-play {
  gap: 0.6rem;
  min-width: 220px;
  padding: 1.1rem 2.6rem;
  font-size: 1.15rem;
  animation: fade-up 0.7s ease 0.25s both; 
}
.contact-play .play-ic { flex-shrink: 0; }

.gated { visibility: hidden; }
.gated.revealed {
  visibility: visible;
  animation: gated-in 0.8s ease both;
}
@keyframes gated-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
