/*
  OSCAR REGO PORTFOLIO 2026
  HOME — EDITORIAL ONE-PAGER STYLESHEET
  ─────────────────────────────────────
  Design: Bold editorial, premium whitespace,
  typographic hierarchy, minimal color palette.
*/

/* ─── IMPORTS ─────────────────────────────────────────── */

@font-face {
  font-family: 'JetBrains Mono';
  src: url('fonts/jetbrains/variable/JetBrainsMono[wght].ttf') format('truetype');
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('fonts/jetbrains/variable/JetBrainsMono-Italic[wght].ttf') format('truetype');
  font-weight: 100 800;
  font-style: italic;
  font-display: swap;
}

/* ─── RESET & TOKENS ──────────────────────────────────── */

:root {
  --bg:         #0a0a0a;
  --surface:    #111111;
  --text:       #ffffff;
  --muted:      rgba(255,255,255,0.38);
  --subtle:     rgba(255,255,255,0.10);
  --accent:     #d7ff3f;
  --rule:       rgba(255,255,255,0.10);
  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'JetBrains Mono', 'Inter', monospace;
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --pad-x: clamp(24px, 6vw, 100px);
  --pad-x-sm: clamp(16px, 4vw, 60px);
  --project-bg: #F5F2EC;
}

.theme-light {
  --bg:         #f5f5f7;
  --surface:    #ffffff;
  --text:       #121212;
  --muted:      rgba(0, 0, 0, 0.5);
  --subtle:     rgba(0, 0, 0, 0.04);
  --accent:     #2e6ff2;
  --rule:       rgba(0, 0, 0, 0.08);
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
  -webkit-user-select: none;
}

input, textarea, select, pre, code, .selectable {
  user-select: text;
  -webkit-user-select: text;
}

::selection { background: var(--accent); color: #0a0a0a; }
::-moz-selection { background: var(--accent); color: #0a0a0a; }

html {
  background: var(--bg);
}

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; color: inherit; }

/* ─── LENIS SMOOTH SCROLL ─────────────────────────────── */

/* ─── TOP STRIP ───────────────────────────────────────── */
/* ─── NAV ─────────────────────────────────────────────── */

.pill-nav-container {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translate3d(-50%, 40px, 0);
  z-index: 1000;
  pointer-events: none;
  transition: opacity 0.4s ease;
  opacity: 0;
  filter: blur(12px);
  
  /* Entrance animation on page load — slow & smooth from bottom to top */
  animation: navPillEntrance 1.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes navPillEntrance {
  0% {
    opacity: 0;
    filter: blur(12px);
    transform: translate3d(-50%, 40px, 0);
  }
  100% {
    opacity: 1;
    filter: blur(0px);
    transform: translate3d(-50%, 0, 0);
  }
}

.pill-nav {
  pointer-events: auto;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  display: grid;
  grid-template-rows: auto 0fr;
  width: min(320px, calc(100vw - 32px));
  transition: grid-template-rows 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              border-radius 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.pill-nav.open {
  grid-template-rows: auto 1fr;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
}

.pill-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 12px 12px 24px;
  width: 100%;
}

.pill-nav-logo {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.pill-nav-trigger {
  background: #ffffff;
  border: none;
  border-radius: 100px;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s;
  min-width: 53px;
  height: 38px;
}

.pill-nav-trigger:hover {
  background: #f0f0f0;
  transform: scale(1.03);
}

/* ── Dots → X morphing animation ─────────────────────── */

.menu-dots-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 22px;
  height: 14px;
}

.menu-dot {
  width: 5px;
  height: 5px;
  background: #000000;
  border-radius: 50%;
  position: absolute;
  transition:
    transform 0.38s cubic-bezier(0.4, 0, 0.2, 1),
    opacity   0.28s cubic-bezier(0.4, 0, 0.2, 1),
    width     0.38s cubic-bezier(0.4, 0, 0.2, 1),
    height    0.38s cubic-bezier(0.4, 0, 0.2, 1),
    border-radius 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Resting positions: left, center, right */
.menu-dot--left  { transform: translateX(-8px); }
.menu-dot--mid   { transform: translateX(0px); }
.menu-dot--right { transform: translateX(8px); }

/* Open state — morph into X */
.pill-nav.open .menu-dot--left {
  transform: translateX(0) rotate(45deg);
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: #000000;
}
.pill-nav.open .menu-dot--right {
  transform: translateX(0) rotate(-45deg);
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: #000000;
}
.pill-nav.open .menu-dot--mid {
  opacity: 0;
  transform: translateX(0) translateY(8px);
}

.menu-close-icon {
  display: none; /* hidden — using CSS dot morph instead */
}

/* ─── MENU DROPDOWN & CONTENT ────────────────────────── */

.pill-nav-dropdown {
  grid-row: 2;
  overflow: hidden;
  transition: visibility 0.45s;
  visibility: hidden;
}

.pill-nav.open .pill-nav-dropdown {
  visibility: visible;
}

.pill-nav-dropdown-inner {
  padding: 10px 24px 24px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.menu-card-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 16px 0 24px 0;
}

.menu-link {
  font-family: var(--font-body);
  font-size: clamp(32px, 4vw, 42px);
  font-weight: 600;
  letter-spacing: -0.035em;
  color: rgba(255, 255, 255, 0.25); /* Inactive: dark grey */
  text-decoration: none;
  text-transform: capitalize;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              color 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              font-size 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-block;
  width: fit-content;

  /* Initial state for opening animation */
  opacity: 0;
  transform: translateY(15px);
  filter: blur(4px);
}

.pill-nav.open .menu-link {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Active section link: white + larger */
.pill-nav.open .menu-link.active {
  color: #ffffff;
  font-size: clamp(38px, 4.8vw, 50px);
}

/* Hover: white + slide right (but no size change) */
.pill-nav.open .menu-link:hover {
  color: #ffffff;
  transform: translateX(8px);
}

/* Stagger delays for premium dropdown reveal */
.pill-nav.open .menu-link:nth-child(1) { transition-delay: 0.08s; }
.pill-nav.open .menu-link:nth-child(2) { transition-delay: 0.12s; }
.pill-nav.open .menu-link:nth-child(3) { transition-delay: 0.16s; }
.pill-nav.open .menu-link:nth-child(4) { transition-delay: 0.2s; }

.menu-card-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  
  /* Initial state for footer entrance */
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.pill-nav.open .menu-card-footer {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.24s;
}

.menu-email {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: -0.01em;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

.menu-email:hover {
  color: #ffffff;
}

.menu-email::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background: #ffffff;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-email:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-socials {
  display: flex;
  gap: 8px;
}

.social-circle {
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-circle:hover {
  background-color: var(--accent);
  color: #000000;
  transform: translateY(-4px) scale(1.05);
}

/* ─── MENU SCRIM ────────────────────────────────────── */

.menu-scrim {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 999;
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.menu-scrim.open {
  opacity: 1;
  pointer-events: auto;
}

/* ─── HORIZONTAL RULE UTILITY ─────────────────────────── */

.h-rule {
  width: 100%;
  height: 1px;
  background: var(--rule);
}

/* ─── SECTION LABEL ───────────────────────────────────── */

.section-label {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 64px;
}

.section-label-num {
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 2px;
}

.section-label-line {
  width: 32px;
  height: 1px;
  background: var(--rule);
}

/* ═══════════════════════════════════════════════════════
   § 1 — HERO
═══════════════════════════════════════════════════════ */

.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--pad-x) 48px;
  overflow: hidden;
  
}

/* Grain overlay handled by grain.js */

/* — Headline — */

.hero-headline {
  position: relative;
  z-index: 2;
  line-height: 0.88;
  transform: translateY(35px);
}

.hero-headline-line {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(88px, 17.5vw, 268px);
  font-weight: 400;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--text);
  overflow: hidden;
  line-height: 0.90;
}


.hero-text-reveal {
  display: block;
  transform: translateY(105%);
  /* Overflow is clipped by the parent .hero-headline-line */
}

/* — Bottom bar — */

.hero-bottom {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: flex-end;
  margin-top: 52px;
  padding-top: 24px;
  transform: translateY(10px);
}

.hero-copyright {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1;
  color: rgba(255,255,255,0.12);
  letter-spacing: -0.02em;
  align-self: flex-end;
}

/* ─── Hero Scroll Indicator ────────────────────────── */

.hero-scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  justify-self: center;
  align-self: flex-end;
}

.hero-scroll-line-wrap {
  position: relative;
  width: 1px;
  height: 56px;
  overflow: hidden;
}

.hero-scroll-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
}

.hero-scroll-glow {
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 40%;
  background: linear-gradient(to bottom, transparent, #ffffff, rgba(255, 255, 255, 0.8), transparent);
  filter: blur(1px);
  border-radius: 2px;
  animation: scrollGlowDrop 1.8s ease-in-out infinite;
}

@keyframes scrollGlowDrop {
  0%   { top: -40%; opacity: 0; }
  15%  { opacity: 1; }
  80%  { opacity: 0.9; }
  100% { top: 100%; opacity: 0; }
}

.hero-scroll-label {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  writing-mode: horizontal-tb;
}


/* ═══════════════════════════════════════════════════════
   § 2 — SELECTED WORK SHOWCASE
═══════════════════════════════════════════════════════ */

/* ─── Section Shell ─────────────────────────────────── */
.sw-section {
  background: var(--project-bg);
  color: #0a0a0a;
  padding: 30px 0 60px; /* Reduced bottom padding from 140px to 60px */
  position: relative;
  overflow: hidden;
}

/* Centered content container for spacing and width control */
.sw-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
  width: 100%;
}

/* ─── Editorial Heading ──────────────────────────────── */
.sw-heading-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 72px;
  gap: 24px;
}

.sw-heading {
  display: flex;
  flex-direction: column;
  line-height: 1.0;
  gap: 0;
}


.sw-heading-line {
  font-family: var(--font-body);
  font-size: clamp(48px, 5.5vw, 82px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.0;
  color: #0a0a0a;
  display: block;
}

.sw-count {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(10,10,10,0.45);
  font-weight: 500;
  padding-bottom: 8px;
}

/* ─── Card Grid ─────────────────────────────────────── */
.sw-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 3.2vw, 44px);
}

/* ─── Individual Card ───────────────────────────────── */
.sw-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  cursor: pointer;
}

/* ─── Card Media Container ──────────────────────────── */
.sw-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 20px;
  overflow: hidden;
  background: #1a1a1a;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.08);
}

/* ─── Video zoom — lives on the media element, not the card ─── */
.sw-card-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transform-origin: center center;
  transition: transform 1.25s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.35s ease;
}

/* Tighter default framing for Orbit Desktop, Sentinel, JSMS, StudyGPT */
.sw-card--orbit-desktop .sw-card-video,
.sw-card--sentinel .sw-card-video,
.sw-card--jsms .sw-card-video,
.sw-card--studygpt .sw-card-video,
.sw-card--issuetracker .sw-card-video,
.sw-card--mediarift .sw-card-video {
  transform: scale(1.06);
}

/* Placeholder glow inner — tighter fill */
.sw-card--soon .sw-soon-inner {
  transform: scale(1.06);
}

/* Hover: zoom only the video inside the card container when hovering over media */
.sw-card-media:hover .sw-card-video {
  transform: scale(1.08);
}

/* Tighter-base cards get a larger final zoom */
.sw-card--orbit-desktop .sw-card-media:hover .sw-card-video,
.sw-card--sentinel .sw-card-media:hover .sw-card-video,
.sw-card--jsms .sw-card-media:hover .sw-card-video,
.sw-card--studygpt .sw-card-media:hover .sw-card-video,
.sw-card--issuetracker .sw-card-media:hover .sw-card-video,
.sw-card--mediarift .sw-card-media:hover .sw-card-video {
  transform: scale(1.12);
}

/* ─── Orbit Toggle ──────────────────────────────────── */
.sw-orbit-toggle {
  position: absolute;
  bottom: 14px;
  right: 14px;
  display: flex;
  background: rgba(10, 10, 10, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 100px;
  padding: 4px;
  gap: 2px;
  z-index: 10;
  border: 1px solid rgba(255,255,255,0.12);
}

.sw-toggle-btn {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.55);
  background: transparent;
  border: none;
  border-radius: 100px;
  padding: 5px 12px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
  user-select: none;
}

.sw-toggle-btn.active {
  background: #ffffff;
  color: #0a0a0a;
}

.sw-toggle-btn:hover:not(.active) {
  color: rgba(255,255,255,0.85);
}

/* ─── Video fade transition ─────────────────────────── */
.sw-card-video.fading {
  opacity: 0;
}

/* ─── Coming Soon card ──────────────────────────────── */
.sw-card-media--soon {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sw-soon-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.sw-soon-glow {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(215,255,63,0.18) 0%, transparent 70%);
  animation: sw-pulse 3s ease-in-out infinite;
}

@keyframes sw-pulse {
  0%, 100% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.1); opacity: 1; }
}

.sw-soon-label {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 40px);
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.1em;
  position: relative;
  z-index: 1;
}

.sw-card--soon {
  cursor: default;
  opacity: 0.8;
}

.sw-card--soon .sw-card-media {
  border: 1px dashed rgba(10,10,10,0.15);
}

/* ─── Card Info Row ─────────────────────────────────── */
.sw-card-info {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 0 2px;
}

.sw-card-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sw-card-title {
  font-family: var(--font-body);
  font-size: clamp(17px, 1.8vw, 22px);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: #0a0a0a;
  line-height: 1.2;
}

.sw-card-category {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: rgba(10,10,10,0.45);
  text-transform: uppercase;
  line-height: 1.4;
}

.sw-card-cta {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: rgba(10,10,10,0.5);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
  padding-top: 3px;
  flex-shrink: 0;
}

.sw-card-media:hover + .sw-card-info .sw-card-cta,
.sw-card-cta:hover {
  color: #0a0a0a;
}

.sw-card-cta--disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

/* ─── Scroll Reveal States ──────────────────────────── */
.sw-reveal,
.sw-reveal-fade,
.sw-reveal-up {
}

/* ─── Responsive ─────────────────────────────────────── */
@media (max-width: 900px) {
  .sw-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .sw-heading-line {
    font-size: clamp(48px, 8vw, 76px);
  }
}

@media (max-width: 600px) {
  .sw-section {
    padding: 80px 0 100px;
  }

  .sw-heading-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 48px;
  }

  .sw-heading-line {
    font-size: clamp(38px, 9.5vw, 56px);
  }

  .sw-card-media {
    border-radius: 14px;
  }

  .sw-card-title {
    font-size: 16px;
  }
}



/* ═══════════════════════════════════════════════════════
   § 3 — EXPERIENCE
═══════════════════════════════════════════════════════ */

.section-experience {
  background: var(--project-bg);
  color: #0a0a0a;
  padding: 60px var(--pad-x) 80px; /* Increased bottom padding to 80px */
  /* Override variables locally for cream theme */
  --bg: var(--project-bg);
  --surface: #EBE8E2;
  --text: #0a0a0a;
  --muted: rgba(10, 10, 10, 0.45);
  --subtle: rgba(10, 10, 10, 0.04);
  --accent: #2e6ff2;
  --rule: rgba(10, 10, 10, 0.08);
}

.exp-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 64px;
}

.exp-title {
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 88px);
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.exp-list {
  display: flex;
  flex-direction: column;
}

.exp-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 32px;
  align-items: baseline;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
  /* opacity and transform managed by GSAP — do not set initial values here */
}

/* .exp-item.visible — handled by GSAP ScrollTrigger */

.exp-year {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 2px;
  color: var(--accent);
  text-transform: uppercase;
  font-family: var(--font-body);
}

.exp-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.exp-role {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 36px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.exp-desc {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 4px;
  line-height: 1.6;
}

.exp-type {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
  align-self: center;
}



/* ═══════════════════════════════════════════════════════
   § 4 — TECH STACK
═══════════════════════════════════════════════════════ */

.section-techstack {
  background: var(--project-bg);
  color: #0a0a0a;
  padding: 60px 0 140px; /* Increased top padding to 60px */
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  min-height: 600px;
}

/* Left: title column */
.ts-header {
  flex-shrink: 0;
  width: clamp(450px, 48vw, 680px); /* Increased width to accommodate full first line */
  padding: 0 0 0 var(--pad-x);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 2;
}

.ts-title {
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 88px);
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: #0a0a0a;
  text-transform: uppercase;
}

.ts-subtitle {
  margin-top: 16px;
  font-family: var(--font-body), sans-serif;
  font-size: clamp(14px, 1.1vw, 16px);
  font-weight: 400;
  color: rgba(10, 10, 10, 0.6);
  line-height: 1.6;
  max-width: 640px; /* Increased max-width to let first line finish with AI/ML */
  letter-spacing: 0.01em;
}

/* Call-to-action button */
.ts-btn {
  margin-top: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0a0a0a;
  color: #ffffff;
  border: none;
  border-radius: 100px;
  padding: 12px 28px;
  font-family: var(--font-body), sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  text-decoration: none;
}

.ts-btn:hover {
  background: #222222;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

/* ─── Hexagonal icon cluster (staggered & masked) ─── */
.ts-vertical-wrapper {
  position: relative;
  display: flex;
  gap: 12px; /* Horizontal gap between columns */
  height: 520px;
  width: auto;
  flex-shrink: 0;
  padding: 0 var(--pad-x) 0 0;
  overflow: visible;
  margin-left: auto;
  align-items: center; /* Centering staggers even/odd vertical layouts */
  transform: translateY(30px);
  z-index: 1;

  /* Radial mask makes the outer edges fade into a soft hexagon */
  -webkit-mask-image: radial-gradient(
    circle at 50% 50%,
    black 0%,
    black 40%,
    rgba(0, 0, 0, 0.65) 65%,
    rgba(0, 0, 0, 0.3) 80%,
    transparent 96%
  );
  mask-image: radial-gradient(
    circle at 50% 50%,
    black 0%,
    black 40%,
    rgba(0, 0, 0, 0.65) 65%,
    rgba(0, 0, 0, 0.3) 80%,
    transparent 96%
  );
}

/* Column styles */
.ts-vcol {
  width: 52px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: relative;
  overflow: hidden; /* Clips scrolling icons at the boundaries */

  /* Vertical fade mask for a "foggy" entering/leaving effect */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
}

/* Staggered static height layout to form a hexagon shape */
.ts-vcol-1 { height: 232px; } /* 2 blocks shorter from top & bottom (520 - 288) */
.ts-vcol-2 { height: 376px; } /* 1 block shorter from top & bottom (520 - 144) */
.ts-vcol-3 { height: 520px; }
.ts-vcol-4 { height: 520px; }
.ts-vcol-5 { height: 520px; }
.ts-vcol-6 { height: 376px; } /* 1 block shorter from top & bottom (520 - 144) */
.ts-vcol-7 { height: 232px; } /* 2 blocks shorter from top & bottom (520 - 288) */

/* Scroll containers inside the columns */
.ts-vscroll {
  display: flex;
  flex-direction: column;
  gap: 16px; /* Vertical gap between icons */
  width: 100%;
  will-change: transform;
}

.ts-vcol-1 .ts-vscroll { animation: tsScrollDown 22s linear infinite; }
.ts-vcol-2 .ts-vscroll { animation: tsScrollUp 25s linear infinite; }
.ts-vcol-3 .ts-vscroll { animation: tsScrollDown 24s linear infinite; }
.ts-vcol-4 .ts-vscroll { animation: tsScrollUp 28s linear infinite; }
.ts-vcol-5 .ts-vscroll { animation: tsScrollDown 26s linear infinite; }
.ts-vcol-6 .ts-vscroll { animation: tsScrollUp 23s linear infinite; }
.ts-vcol-7 .ts-vscroll { animation: tsScrollDown 21s linear infinite; }

@keyframes tsScrollUp {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(0, -33.3333%, 0); }
}

@keyframes tsScrollDown {
  0% { transform: translate3d(0, -33.3333%, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

/* Individual icon cards */
.ts-vcard {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 4px 0;
  flex-shrink: 0;
  width: 100%;
  cursor: pointer;
}

.ts-vcard img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: block;
  opacity: 0.38;
  filter: grayscale(100%) brightness(0.7);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.theme-light .ts-vcard img {
  opacity: 0.5;
  filter: grayscale(100%) brightness(0.45);
}

.ts-vcard:hover img,
.theme-light .ts-vcard:hover img {
  opacity: 1;
  filter: grayscale(0%) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.12));
}

/* Hide labels */
.ts-vcard span {
  display: none;
}

/* Decorate Orbs */
.ts-hex-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

.ts-hex-orb-1 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(215, 255, 63, 0.35) 0%, transparent 70%);
  top: 10%;
  left: 5%;
  animation: hexFloat1 8s ease-in-out infinite;
}

.ts-hex-orb-2 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(100, 180, 255, 0.25) 0%, transparent 70%);
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  animation: hexFloat2 10s ease-in-out infinite;
}

.ts-hex-orb-3 {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(255, 150, 100, 0.20) 0%, transparent 70%);
  bottom: 10%;
  right: 5%;
  animation: hexFloat3 9s ease-in-out infinite;
}

@keyframes hexFloat1 {
  0%, 100% { transform: translateY(0px) scale(1); }
  50%       { transform: translateY(-20px) scale(1.05); }
}

@keyframes hexFloat2 {
  0%, 100% { transform: translateX(-50%) translateY(0px); }
  50%       { transform: translateX(-50%) translateY(15px); }
}

@keyframes hexFloat3 {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-18px); }
}

/* ─── Responsive ─────────────────────────────────────── */
@media (max-width: 992px) {
  .section-techstack {
    flex-direction: column;
    padding: 30px 0 100px; /* Reduced top padding from 80px to 30px */
    gap: 60px;
    align-items: flex-start;
  }

  .ts-header {
    width: 100%;
    padding: 0 var(--pad-x);
  }

  .ts-subtitle {
    max-width: 480px;
  }

  .ts-vertical-wrapper {
    margin-left: 0;
    align-self: center;
    padding: 0 var(--pad-x);
  }
}

@media (max-width: 768px) {
  .ts-vertical-wrapper {
    height: 440px;
    gap: 8px;
  }

  .ts-vcol {
    width: 38px;
    gap: 12px;
  }

  .ts-vcard img {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 480px) {
  /* Hide the outermost columns on small screens to fit cleanly */
  .ts-vcol-1,
  .ts-vcol-7 {
    display: none;
  }
  
  .ts-vertical-wrapper {
    height: 380px;
  }
}



/* — Volume Toggle (Fixed) — */

.vol-toggle {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  z-index: 2100;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.25s ease;
  padding: 0;
  outline: none;
  box-shadow: none;
  opacity: 0;
  filter: blur(12px);
  
  /* Entrance animation on page load — slow & smooth from bottom to top */
  animation: volToggleEntrance 1.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes volToggleEntrance {
  0% {
    opacity: 0;
    filter: blur(12px);
    transform: translate3d(0, 40px, 0);
  }
  100% {
    opacity: 1;
    filter: blur(0px);
    transform: translate3d(0, 0, 0);
  }
}

.vol-toggle.is-muted {
  color: rgba(255, 255, 255, 0.4);
}

/* — Footer redesign — */

.home-footer {
  background: #0a0a0a;
  color: #ffffff;
  padding: 120px clamp(48px, 10vw, 160px) 160px;
  overflow: hidden;
  position: relative;
}

/* Footer entrance animations */
.footer-left {
  opacity: 0;
  filter: blur(12px);
  transform: translateX(-32px);
  transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1), filter 1.1s cubic-bezier(0.16, 1, 0.3, 1), transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-col-links {
  opacity: 0;
  filter: blur(12px);
  transform: translateX(-32px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), filter 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

#contact {
  opacity: 0;
  filter: blur(12px);
  transform: translateX(-32px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), filter 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.home-footer.in-view .footer-left,
.home-footer.in-view .footer-col-links,
.home-footer.in-view #contact {
  opacity: 1;
  filter: blur(0);
  transform: translateX(0);
}

.home-footer.in-view .footer-left {
  transition-delay: 0s;
}

.home-footer.in-view .footer-col-links {
  transition-delay: 0.1s;
}

.home-footer.in-view #contact {
  transition-delay: 0.2s;
}

@media (prefers-reduced-motion: reduce) {
  .footer-left,
  .footer-col-links,
  #contact,
  .footer-name {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 60px;
  padding-bottom: 80px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.footer-left {
  flex: 1.2;
  min-width: 280px;
}

.footer-tagline {
  font-family: var(--font-body);
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: #ffffff;
  margin: 0;
  text-transform: none;
}

.footer-right {
  display: flex;
  gap: 80px;
  flex-wrap: wrap;
  flex: 2;
  justify-content: space-between;
}

@media (max-width: 900px) {
  .footer-right {
    justify-content: flex-start;
  }
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 180px;
}

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

.footer-col-label {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #ffffff;
  text-transform: none;
}

.footer-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 320px;
  justify-content: flex-start;
}

.footer-pill {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: #0a0a0a;
  background: #ffffff;
  text-decoration: none;
  border: 1px solid #ffffff;
  border-radius: 8px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  height: 38px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-pill span {
  display: inline-block;
  transition: transform 0.4s cubic-bezier(0.76, 0, 0.24, 1);
}

.footer-pill::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.76, 0, 0.24, 1);
  color: #0a0a0a;
  font-weight: 500;
}

.footer-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.footer-pill:hover span {
  transform: translateY(-150%);
}

.footer-pill:hover::after {
  transform: translateY(0);
}

.footer-contact-link {
  font-family: var(--font-body);
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s var(--ease-out);
  display: block;
}

.footer-contact-link:hover {
  color: #ffffff;
  transform: translateX(4px);
}

.footer-gmail-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
  margin-bottom: 8px;
  width: fit-content;
  display: block;
}

.footer-gmail-link:hover {
  color: #ffffff;
}

.footer-gmail-text {
  position: relative;
}

.footer-gmail-text::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-gmail-link:hover .footer-gmail-text::after {
  transform: scaleX(1);
}

.footer-arrow-icon {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  transform: rotate(-60deg);
  transition: transform 0.3s var(--ease-out);
  display: inline-block;
  vertical-align: middle;
  margin-left: 4px;
}

.footer-gmail-link:hover .footer-arrow-icon {
  transform: translate(2px, -2px) rotate(-60deg);
}


.footer-socials {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 4px;
}

.footer-social-icon {
  color: #000000;
  background: #ffffff;
  border: 1px solid #ffffff;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  overflow: hidden;
  background-clip: padding-box;
}

.footer-social-icon-inner {
  display: block;
  position: relative;
  width: 20px;
  height: 20px;
  overflow: hidden;
}

.footer-social-icon-inner svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.76, 0, 0.24, 1);
}

.footer-social-icon:hover {
  color: #000000;
  background-color: #e4e4e7;
  border-color: #e4e4e7;
}

.footer-social-icon:hover .footer-social-icon-inner svg {
  transform: translateY(-20px);
}

.theme-light .footer-social-icon:hover {
  color: #000000;
  background-color: #e4e4e7;
  border-color: #e4e4e7;
  box-shadow: none;
}


/* Giant name at the bottom — positioned absolutely behind content */
.footer-name-wrap {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  z-index: 1;
  pointer-events: none;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: auto;
  line-height: 0.8;
  overflow: hidden;
}

.footer-name {
  font-family: var(--font-body);
  font-size: clamp(140px, 24vw, 420px);
  font-weight: 900;
  letter-spacing: -0.05em;
  color: rgba(255, 255, 255, 0.015);
  white-space: nowrap;
  user-select: none;
  line-height: 0.8;
  display: block;
  text-transform: uppercase;
  
  /* Initial transition state */
  opacity: 0;
  transform: translate(0, calc(35% + 60px));
  transition: opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1), transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.home-footer.in-view .footer-name,
.footer-name.in-view {
  opacity: 1;
  transform: translate(0, 35%);
}

.home-footer.in-view .footer-name {
  transition-delay: 0.3s;
}

/* ═══════════════════════════════════════════════════════
   SCROLL REVEAL — clip-path approach
═══════════════════════════════════════════════════════ */

.reveal-wrap {
  overflow: hidden;
}

.reveal-inner {
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.9s var(--ease-out), opacity 0.6s;
}

.reveal-inner.in-view {
  transform: translateY(0);
  opacity: 1;
}

.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.fade-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════ */

@media (max-width: 900px) {
  .work-item {
    grid-template-columns: 48px 1fr;
  }

  .work-item-year { display: none; }

  .exp-item {
    grid-template-columns: 60px 1fr;
  }

  .exp-type { display: none; }
}

@media (max-width: 600px) {
  :root {
    --pad-x: 20px;
  }

  .pill-nav-container { top: 16px; }
  .menu-card { padding: 32px 24px; border-radius: 24px; }
  .menu-link { font-size: clamp(30px, 8vw, 44px); }
  .menu-card-footer { padding-top: 20px; }

  .hero-headline-line {
    font-size: clamp(64px, 18vw, 120px);
  }

  .hero-bottom {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero-copyright { font-size: 36px; }
  .hero-scroll-indicator { align-self: flex-start; }


  .work-preview { display: none; }

  .section-work,
  .section-experience { padding: 80px var(--pad-x); }

  .exp-item { grid-template-columns: 52px 1fr; }
}

/* ─── NARRATIVE SECTION ───────────────────────────────── */

/* Cream palette tokens for narrative — matches .sw-section exactly */
.narrative-section {
  height: 180vh; /* Spacer track for scrolling */
  position: relative;
  background-color: var(--project-bg);
  margin: 0;
  padding: 0;
}

.narrative-sticky {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--project-bg);
  color: #0a0a0a;
  box-sizing: border-box;
}

.narrative-inner {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
  padding: 40px var(--pad-x);
  box-sizing: border-box;
}

.narrative-paragraph {
  font-family: var(--font-body);
  font-size: clamp(24px, 3.8vw, 38px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.03em;
  margin-bottom: 0;
  text-align: center;
  color: #0a0a0a;
  will-change: opacity;
  /* Transitions are handled via JS-driven opacity only — no CSS transition
     to avoid conflicts with the scroll-driven animation */
}

.narrative-word {
  display: inline-block;
  color: inherit;
  margin-right: 0.22em;
}

@media (max-width: 600px) {
  .narrative-inner {
    padding: 24px var(--pad-x);
  }
  .narrative-paragraph {
    font-size: clamp(20px, 5.5vw, 26px);
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 0;
  }
}


/* ═══════════════════════════════════════════════════════
   § 6 — CUSTOM CURSOR (PROJECT CARDS)
═══════════════════════════════════════════════════════ */

.sw-cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #ffffff;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sw-cursor.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Cursor is managed by JS — default cursor visible at edges, hidden only in inner zone */

/* Extra Project Cards Height Wrapper */
.sw-extra-grid-wrapper {
  height: 0;
  overflow: hidden;
}

.sw-extra-grid-wrapper .sw-grid--extra {
  padding-top: clamp(28px, 3.2vw, 44px);
}

/* Load More Button Wrapper */
.sw-load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 56px;
}

/* ── Pill button ──────────────────────────────────────────────────────────── */
.sw-load-more-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1.5px solid rgba(10,10,10,0.22);
  border-radius: 100px;
  padding: 0;
  height: 46px;
  min-width: 210px;
  cursor: pointer;
  color: #0a0a0a;
  outline: none;
  overflow: hidden;
  transition:
    border-color 0.35s cubic-bezier(0.16,1,0.3,1),
    background   0.35s cubic-bezier(0.16,1,0.3,1),
    box-shadow   0.35s cubic-bezier(0.16,1,0.3,1),
    transform    0.35s cubic-bezier(0.16,1,0.3,1);
}

.sw-load-more-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 100px;
  background: #0a0a0a;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.76, 0, 0.24, 1);
  z-index: 0;
}

.sw-load-more-btn:hover::before {
  transform: scaleX(1);
}

.sw-load-more-btn:hover {
  color: #fff;
  border-color: #0a0a0a;
  box-shadow: 0 4px 20px rgba(10,10,10,0.12);
}

.sw-load-more-btn:active {
  transform: scale(0.97);
}

/* Label spans – stack in same position, crossfade between states */
.sw-lm-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  z-index: 1;
  transition:
    opacity   0.3s cubic-bezier(0.16,1,0.3,1),
    transform 0.3s cubic-bezier(0.16,1,0.3,1);
  pointer-events: none;
}

.sw-lm-plus-icon,
.sw-lm-minus-icon {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}

/* Default: show expand, hide collapse */
.sw-lm-label--expand {
  opacity: 1;
  transform: translateY(0);
}
.sw-lm-label--collapse {
  opacity: 0;
  transform: translateY(10px);
}

/* Expanded state: swap labels */
.sw-load-more-btn.is-expanded .sw-lm-label--expand {
  opacity: 0;
  transform: translateY(-10px);
}
.sw-load-more-btn.is-expanded .sw-lm-label--collapse {
  opacity: 1;
  transform: translateY(0);
}

/* Hover inverts text colour via the fill overlay */
.sw-load-more-btn:hover .sw-lm-label {
  color: #fff;
}
