/* ==========================================================================
   JOEL — GSAP.COM DESIGN SYSTEM & ANIMATION SUITE
   Shockingly Green (#0ae448) • Jet Black (#0e100f) • Surface White (#fffce1)
   ScrollTrigger Pinned Scrollytelling • Kinetic Badge Typography
   ========================================================================== */

:root {
  /* Electric Kinetic Yellow + Diamond White + Obsidian Black Palette */
  --color-electric-yellow: #E5FE40; /* Screenshot 2 Kinetic Yellow */
  --color-shockingly-green: #E5FE40; /* Backward compatible alias */
  --color-just-black: #060706;       /* Deep Obsidian Jet Black */
  --color-off-black: #0e0f0e;
  --color-surface-white: #ffffff;
  --color-champagne: #fffbe6;
  --color-pink: #fec5fb;
  --color-shockingly-pink: #f100cb;
  --color-orangey: #ffa800;
  --color-lilac: #dedaff;
  --color-lt-green: #f3ff7a;
  --color-blue: #00e5ff;
  --color-surface75: #d4d4d8;
  --color-surface50: #71717a;
  --color-surface25: #1c1e1c;
  --line-color: rgba(255, 255, 255, 0.12);

  --gradient-macha: linear-gradient(114.41deg, #E5FE40 10%, #FFFFFF 90%);
  --gradient-yellow: linear-gradient(114.41deg, #E5FE40 0%, #FAFF00 100%);
  --gradient-luxury: linear-gradient(135deg, #ffffff 0%, #E5FE40 100%);
  
  --serif: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --display: 'Space Grotesk', -apple-system, sans-serif;
  --body: 'DM Sans', -apple-system, sans-serif;
  --mono: 'DM Mono', monospace;

  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  background: var(--color-just-black);
  color: var(--color-surface-white);
  font-family: var(--body);
  overflow-x: hidden;
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background: transparent;
  color: var(--color-surface-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  touch-action: pan-y;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

/* ==========================================================================
   FULL-SCREEN CHROMATIC FLUID METALLIC SHADER (LIQUID SHIMMER BACKGROUND)
   ========================================================================== */
#chromatic-fluid-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 0;
  pointer-events: none;
  display: block;
}

/* ==========================================================================
   FULL-SCREEN 3D WEBGL STAGE (CUBES FORMING 'JOEL' IN BACKGROUND)
   ========================================================================== */
#hero-canvas-container {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

#hero-canvas-container canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* ==========================================================================
   MINIMALIST KINETIC SITE HEADER (SCREENSHOT 2 STYLE)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 4vw;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(10, 13, 11, 0.58) 100%
  );
  backdrop-filter: blur(28px) saturate(210%) brightness(110%);
  -webkit-backdrop-filter: blur(28px) saturate(210%) brightness(110%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 
    0 12px 35px rgba(0, 0, 0, 0.55),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  font: 800 22px var(--display);
  letter-spacing: -1px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-badge {
  background: var(--color-electric-yellow);
  color: #000000;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 15px;
  box-shadow: 0 0 16px rgba(229, 254, 64, 0.4);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font: 600 13px var(--mono);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-surface50);
  transition: color 0.25s ease;
}

.nav-link:hover, .nav-link.is-active {
  color: var(--color-electric-yellow);
}

.header-action-wrap {
  display: flex;
  align-items: center;
}

.header-cta-btn {
  font-size: 12px !important;
  padding: 9px 18px !important;
}

/* High-Contrast Kinetic Buttons (Screenshot 2 Style) */
.button--fill {
  background: var(--color-electric-yellow);
  color: #000000 !important;
  font: 800 13px var(--display);
  letter-spacing: -0.01em;
  padding: 11px 24px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 18px rgba(229, 254, 64, 0.35);
  transition: transform 0.25s var(--ease-expo), box-shadow 0.25s ease, background 0.25s ease;
}

.button--fill:hover {
  transform: translateY(-2px);
  background: #f2ff61;
  box-shadow: 0 8px 28px rgba(229, 254, 64, 0.55);
}

.button--stroke {
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--color-surface-white);
  font: 600 12px var(--mono);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 10px 20px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
  transition: all 0.25s ease;
}

.button--stroke:hover {
  border-color: var(--color-electric-yellow);
  color: var(--color-electric-yellow);
  background: rgba(229, 254, 64, 0.08);
}

/* ==========================================================================
   EDITORIAL LUXURY & KINETIC HERO (SCREENSHOT 2 & 3 HYBRID)
   "Transform the way your team works." + persistent 3D JOEL cubes in background
   ========================================================================== */
.hero {
  position: relative;
  z-index: 2;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 90px 4vw 60px;
  max-width: 1320px;
  margin: 0 auto;
}

/* Screenshot 3: —— EST. 2024 */
.hero__editorial-est {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  padding: 8px 20px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-top: 1px solid rgba(255, 255, 255, 0.38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 8px 24px rgba(0, 0, 0, 0.4);
  width: fit-content;
}

.est-rule {
  width: 46px;
  height: 1px;
  background: rgba(255, 255, 255, 0.45);
  display: inline-block;
}

.est-label {
  font: 600 13px var(--mono);
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--color-surface75);
}

/* High-Fashion Editorial Luxury Headline */
.editorial-hero-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(3.2rem, 6.8vw, 7.2rem);
  line-height: 0.94;
  letter-spacing: -0.035em;
  margin-bottom: 34px;
  color: var(--color-surface-white);
  max-width: 660px;
}

.hero__line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-bottom: 6px;
}

/* Kinetic Words: Magnetic, Fluid & Highly Responsive */
.editorial-word {
  display: inline-block;
  cursor: pointer;
  position: relative;
  transform-origin: center bottom;
  user-select: none;
  transition: text-shadow 0.28s ease, color 0.25s ease;
  padding: 2px 4px;
}

/* Expanded invisible hover hitbox so cursor triggers animation effortlessly */
.editorial-word::before {
  content: '';
  position: absolute;
  inset: -30px -25px;
  z-index: 1;
}

.editorial-word.text-white {
  color: #ffffff;
}

.editorial-word.text-yellow {
  color: var(--color-electric-yellow);
  text-shadow: 0 0 35px rgba(229, 254, 64, 0.3);
}

/* Screenshot 3: Italic "the" */
.editorial-word.text-italic {
  font-style: italic;
  font-weight: 400;
  font-family: var(--serif);
  padding-right: 14px;
}

.editorial-word:hover,
.editorial-word.is-near {
  transform: translateY(-6px) scale(1.04);
  text-shadow: 0 0 45px rgba(229, 254, 64, 0.65);
}

/* Flairs */
.flair-star {
  color: var(--color-shockingly-green);
  font-size: 28px;
  display: inline-block;
  animation: spinStar 14s linear infinite;
}

@keyframes spinStar {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.hero__subtitle-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
  max-width: 580px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(14, 18, 15, 0.45) 100%
  );
  backdrop-filter: blur(24px) saturate(200%) brightness(110%);
  -webkit-backdrop-filter: blur(24px) saturate(200%) brightness(110%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 18px;
  padding: 16px 24px;
  box-shadow: 
    0 18px 45px rgba(0, 0, 0, 0.5),
    inset 0 1px 1px rgba(255, 255, 255, 0.35);
}

.brace-svg {
  height: 48px;
  color: var(--color-surface50);
}

.hero__subtitle-text {
  font: 400 17px / 1.5 var(--body);
  color: var(--color-surface75);
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 40px;
}

/* ==========================================================================
   PINNED HORIZONTAL SCROLLTRIGGER SHOWCASE (GSAP STYLE)
   ========================================================================== */
.horizontal-section {
  position: relative;
  z-index: 2;
  width: 100%;
  overflow: hidden;
  background: transparent;
}

.horizontal-track {
  display: flex;
  width: 400vw; /* 4 massive panoramic panels */
  height: 100vh;
  height: 100dvh;
  will-change: transform;
}

.horizontal-panel {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 8vw;
  position: relative;
}

.horizontal-panel:nth-child(1) {
  background: radial-gradient(circle at 70% 50%, rgba(229, 254, 64, 0.08), transparent 60%);
}

.horizontal-panel:nth-child(2) {
  background: radial-gradient(circle at 70% 50%, rgba(157, 149, 255, 0.1), transparent 60%);
}

.horizontal-panel:nth-child(3) {
  background: radial-gradient(circle at 70% 50%, rgba(254, 197, 251, 0.08), transparent 60%);
}

.horizontal-panel:nth-child(4) {
  background: radial-gradient(circle at 70% 50%, rgba(255, 135, 9, 0.1), transparent 60%);
}

/* ==========================================================================
   REALISTIC PHYSICAL GLASS CARD (APPLE VISIONOS & MACOS SPEC)
   ========================================================================== */
.horizontal-glass-card {
  max-width: 960px;
  width: 100%;
  padding: 56px 64px;
  border-radius: 32px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0.03) 32%,
    rgba(18, 22, 20, 0.42) 65%,
    rgba(6, 8, 7, 0.72) 100%
  );
  backdrop-filter: blur(36px) saturate(230%) brightness(114%) contrast(108%);
  -webkit-backdrop-filter: blur(36px) saturate(230%) brightness(114%) contrast(108%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-top: 1px solid rgba(255, 255, 255, 0.45);
  border-left: 1px solid rgba(255, 255, 255, 0.28);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  border-right: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 
    0 45px 100px -20px rgba(0, 0, 0, 0.85),
    0 18px 40px -10px rgba(0, 0, 0, 0.65),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 0 35px 0 rgba(255, 255, 255, 0.03);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease-expo), border-color 0.35s, box-shadow 0.35s;
}

/* Glass specular light line along the top bevel edge */
.horizontal-glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.7) 25%,
    rgba(229, 254, 64, 0.5) 60%,
    transparent 100%
  );
  pointer-events: none;
}

.horizontal-glass-card:hover {
  border-top-color: rgba(229, 254, 64, 0.75);
  box-shadow: 
    0 50px 110px -20px rgba(0, 0, 0, 0.9),
    0 0 50px rgba(229, 254, 64, 0.18),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.75);
}

.panel-tag {
  font: 700 13px var(--mono);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel-heading {
  font: 800 clamp(2.8rem, 5.8vw, 5.8rem) / 0.98 var(--display);
  letter-spacing: -0.04em;
  margin-bottom: 22px;
  max-width: 860px;
}

.panel-desc {
  font: 400 clamp(1.05rem, 1.8vw, 1.45rem) / 1.55 var(--body);
  color: var(--color-surface75);
  max-width: 680px;
  margin-bottom: 34px;
}

.panel-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.panel-pill {
  font: 600 12px var(--mono);
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-top: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
  color: var(--color-surface-white);
}

/* ==========================================================================
   INTERACTIVE GSAP CODE PLAYGROUND
   ========================================================================== */
.sandbox-section {
  position: relative;
  z-index: 2;
  padding: 120px 4vw;
  max-width: 1240px;
  margin: 0 auto;
}

.sandbox-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 50px;
}

.sandbox-kicker {
  font: 700 12px var(--mono);
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-shockingly-green);
  margin-bottom: 12px;
}

.sandbox-title {
  font: 800 clamp(2.5rem, 5vw, 4.8rem) / 1 var(--display);
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}

.sandbox-desc {
  font: 400 16px var(--body);
  color: var(--color-surface75);
}

.sandbox-box {
  background: rgba(14, 16, 14, 0.55);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

.sandbox-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: rgba(17, 19, 18, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sandbox-dots {
  display: flex;
  gap: 7px;
}

.sandbox-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--color-surface25);
}

.sandbox-dot:nth-child(1) { background: #ff5f56; }
.sandbox-dot:nth-child(2) { background: #ffbd2e; }
.sandbox-dot:nth-child(3) { background: #27c93f; }

.sandbox-tab {
  font: 600 11px var(--mono);
  color: var(--color-surface75);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sandbox-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
}

.sandbox-code-area {
  padding: 24px;
  font: 14px / 1.6 Menlo, Monaco, monospace;
  background: rgba(9, 10, 9, 0.65);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  overflow-x: auto;
}

.sandbox-code-area code {
  color: var(--color-surface-white);
}

.token-comment { color: var(--color-surface50); }
.token-func { color: var(--color-blue); }
.token-str { color: var(--color-shockingly-green); }
.token-prop { color: var(--color-lilac); }
.token-num { color: var(--color-orangey); }

.sandbox-interactive-area {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(15, 17, 16, 0.65);
}

.sandbox-stage {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 1px dashed var(--color-surface25);
  border-radius: 10px;
  margin-bottom: 24px;
}

.sandbox-preview-box {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 16px;
  color: var(--color-just-black);
}

.box-1 { background: var(--color-shockingly-green); }
.box-2 { background: var(--color-lilac); }
.box-3 { background: var(--color-pink); }
.box-4 { background: var(--color-orangey); }

.sandbox-controls {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.trigger-btn {
  font: 700 11px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--color-surface25);
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-surface-white);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.trigger-btn:hover {
  background: var(--color-shockingly-green);
  color: var(--color-just-black);
  border-color: var(--color-shockingly-green);
}

/* ==========================================================================
   SELECTED WORK (GSAP BENTO GRID)
   ========================================================================== */
.projects-section {
  position: relative;
  z-index: 2;
  padding: 120px 4vw;
  max-width: 1240px;
  margin: 0 auto;
}

.projects-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 60px;
}

.projects-title {
  font: 800 clamp(3rem, 6vw, 6rem) / 0.95 var(--display);
  letter-spacing: -0.04em;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.project-card--wide {
  grid-column: span 2;
}

.project-card {
  background: linear-gradient(
    140deg,
    rgba(255, 255, 255, 0.13) 0%,
    rgba(255, 255, 255, 0.02) 28%,
    rgba(18, 22, 20, 0.44) 65%,
    rgba(8, 10, 9, 0.72) 100%
  );
  backdrop-filter: blur(32px) saturate(220%) brightness(112%);
  -webkit-backdrop-filter: blur(32px) saturate(220%) brightness(112%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-top: 1px solid rgba(255, 255, 255, 0.42);
  border-left: 1px solid rgba(255, 255, 255, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  box-shadow: 
    0 35px 80px -15px rgba(0, 0, 0, 0.8),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 0 30px 0 rgba(255, 255, 255, 0.03);
  overflow: hidden;
  position: relative;
  transition: border-color 0.35s, box-shadow 0.35s, transform 0.35s var(--ease-expo);
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.6) 20%,
    rgba(229, 254, 64, 0.5) 60%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 10;
}

.project-card:hover {
  border-color: rgba(229, 254, 64, 0.55);
  border-top-color: rgba(229, 254, 64, 0.9);
  box-shadow: 
    0 45px 100px -15px rgba(0, 0, 0, 0.9),
    0 0 50px rgba(229, 254, 64, 0.22),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.7);
  transform: translateY(-8px);
}

.project-art {
  position: relative;
  height: 380px;
  background: rgba(0, 0, 0, 0.22);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.project-card:not(.project-card--wide) .project-art {
  height: 420px;
}

.project-art canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
}

.art-pill {
  position: absolute;
  top: 18px;
  left: 20px;
  z-index: 5;
  font: 700 10px var(--mono);
  text-transform: uppercase;
  color: var(--color-just-black);
  background: var(--color-shockingly-green);
  padding: 4px 10px;
  border-radius: 20px;
}

.art-title-overlay {
  position: absolute;
  left: 24px;
  bottom: 20px;
  z-index: 5;
  font: 800 clamp(2.5rem, 6vw, 5.5rem) / 0.85 var(--display);
  letter-spacing: -0.06em;
  color: var(--color-surface-white);
  pointer-events: none;
}

.project-info {
  padding: 22px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-meta-title {
  font: 700 20px var(--display);
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}

.project-meta-sub {
  font: 400 12px var(--mono);
  color: var(--color-surface50);
  text-transform: uppercase;
}

/* ==========================================================================
   MEGA FOOTER (GSAP-STYLE)
   ========================================================================== */
.footer-section {
  position: relative;
  z-index: 2;
  background: transparent;
  padding: 120px 4vw 60px;
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
}

.footer-glass-card {
  padding: 72px 64px;
  border-radius: 36px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.14) 0%,
    rgba(255, 255, 255, 0.03) 30%,
    rgba(18, 22, 20, 0.45) 65%,
    rgba(6, 8, 7, 0.75) 100%
  );
  backdrop-filter: blur(38px) saturate(230%) brightness(114%) contrast(108%);
  -webkit-backdrop-filter: blur(38px) saturate(230%) brightness(114%) contrast(108%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-top: 1px solid rgba(255, 255, 255, 0.45);
  border-left: 1px solid rgba(255, 255, 255, 0.28);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  border-right: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 
    0 50px 120px -25px rgba(0, 0, 0, 0.9),
    0 20px 45px -10px rgba(0, 0, 0, 0.7),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 0 45px 0 rgba(255, 255, 255, 0.03);
  position: relative;
  overflow: hidden;
}

.footer-glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.7) 20%,
    rgba(229, 254, 64, 0.55) 65%,
    transparent 100%
  );
  pointer-events: none;
}

.footer-kicker {
  font: 700 12px var(--mono);
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-shockingly-green);
  margin-bottom: 20px;
}

.footer-heading {
  font: 800 clamp(3.5rem, 8vw, 8rem) / 0.95 var(--display);
  letter-spacing: -0.05em;
  margin-bottom: 40px;
}

.footer-email-btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font: 800 clamp(1.8rem, 4vw, 3.8rem) / 1 var(--display);
  letter-spacing: -0.04em;
  color: var(--color-shockingly-green);
  border-bottom: 3px solid var(--color-shockingly-green);
  padding-bottom: 8px;
  transition: transform 0.25s;
}

.footer-email-btn:hover {
  transform: translateX(8px);
}

.footer-bottom {
  margin-top: 90px;
  padding-top: 30px;
  border-top: 1px solid var(--color-surface25);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font: 500 12px var(--mono);
  text-transform: uppercase;
  color: var(--color-surface50);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a:hover {
  color: var(--color-shockingly-green);
}

/* ==========================================================================
   FLOATING KINETIC GLASS DOCK (VENGEANCE UI AT VIEWPORT BOTTOM)
   ========================================================================== */
.glass-dock-wrap {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  pointer-events: auto;
  user-select: none;
}

.glass-dock {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 8px 18px;
  border-radius: 20px;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 
    0 12px 36px rgba(0, 0, 0, 0.75),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.2);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  user-select: none;
}

.glass-dock:hover {
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 
    0 16px 44px rgba(0, 0, 0, 0.85),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.3);
}

/* Tooltip ABOVE dock in bottom placement */
.glass-dock .dock-tooltip {
  position: absolute;
  bottom: 58px;
  top: auto;
  left: 0;
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px) scale(0.92);
  z-index: 500;
  will-change: transform, opacity;
  display: flex;
  justify-content: center;
}

.glass-dock .dock-tooltip-inner {
  padding: 6px 16px;
  min-width: 80px;
  border-radius: 8px;
  background: #ffffff;
  color: #000000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 2px 6px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.glass-dock .dock-tooltip-text {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-transform: none;
  color: #000000;
  display: inline-block;
  white-space: nowrap;
  will-change: transform, filter, opacity;
}

/* Dock Interactive Buttons (Vengeance UI spec) */
.glass-dock .dock-item {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 38px;
  height: 38px;
  border: none;
  background: none;
  cursor: pointer;
  color: #a3a3a3;
  transition: color 0.15s ease;
  outline: none;
  padding: 0;
  will-change: transform;
}

.glass-dock .dock-item:hover,
.glass-dock .dock-item.active {
  color: #ffffff;
}

.glass-dock .dock-item svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
  transition: filter 0.2s ease;
}

.glass-dock .dock-item[data-type="github"] svg {
  fill: currentColor;
  stroke: none;
}

.glass-dock .dock-item:hover svg {
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.6));
}

/* Toast Pill */
.toast-pill {
  position: fixed;
  bottom: 92px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--color-just-black);
  border: 1px solid var(--color-shockingly-green);
  color: var(--color-surface-white);
  padding: 10px 22px;
  border-radius: 40px;
  font: 700 11px var(--mono);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  opacity: 0;
  transition: transform 0.4s var(--ease-expo), opacity 0.4s;
  pointer-events: none;
}

.toast-pill.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-shockingly-green);
  box-shadow: 0 0 10px var(--color-shockingly-green);
}

/* ==========================================================================
   HEAVILY OPTIMIZED MOBILE & TABLET RESPONSIVE SYSTEM
   ========================================================================== */
@media (max-width: 860px) {
  /* Navigation & Header */
  .site-header {
    padding: 12px 18px;
  }
  .site-nav {
    display: none;
  }
  .brand-logo {
    font-size: 18px;
    letter-spacing: -0.5px;
  }
  .brand-badge {
    width: 26px;
    height: 26px;
    font-size: 13px;
  }
  .header-cta-btn {
    font-size: 11px !important;
    padding: 8px 14px !important;
    min-height: 38px;
  }

  /* Hero Section */
  .hero {
    min-height: 100dvh;
    padding: clamp(70px, 12vh, 100px) 18px 24px;
    justify-content: flex-start;
  }
  .hero__editorial-est {
    margin-bottom: 12px;
    padding: 5px 14px;
    gap: 8px;
  }
  .est-rule {
    width: 24px;
  }
  .est-label {
    font-size: 10.5px;
    letter-spacing: 2px;
  }
  .editorial-hero-title {
    font-size: clamp(1.85rem, 7.6vw, 2.7rem);
    line-height: 1.06;
    letter-spacing: -0.03em;
    margin-bottom: 14px;
    max-width: 100%;
  }
  .hero__line {
    gap: 3px 8px;
    margin-bottom: 3px;
  }
  .editorial-word {
    padding: 1px 2px;
  }
  .editorial-word.text-italic {
    padding-right: 6px;
  }
  .hero__subtitle-wrap {
    padding: 12px 14px;
    gap: 8px;
    border-radius: 12px;
    max-width: 100%;
    margin-top: 0;
    margin-bottom: 16px;
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
  }
  .brace-svg {
    height: 32px;
    flex-shrink: 0;
  }
  .hero__subtitle-text {
    font-size: 12.5px;
    line-height: 1.4;
  }
  .hero__actions {
    margin-top: 14px;
    display: flex;
    flex-direction: row;
    gap: 10px;
    width: 100%;
  }
  .hero__actions .button--fill,
  .hero__actions .button--stroke {
    flex: 1 1 0;
    min-width: 0;
    justify-content: center;
    padding: 11px 8px;
    min-height: 44px;
    font-size: 11.5px;
    white-space: nowrap;
  }

  /* Horizontal Scrollytelling Panels */
  .horizontal-track {
    width: 400vw;
  }
  .horizontal-panel {
    width: 100vw;
    padding: 0 16px;
    align-items: center;
    justify-content: center;
  }
  .horizontal-glass-card {
    padding: 32px 20px;
    border-radius: 22px;
    max-height: 84dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    backdrop-filter: blur(18px) saturate(170%);
    -webkit-backdrop-filter: blur(18px) saturate(170%);
    box-shadow: 
      0 25px 60px -15px rgba(0, 0, 0, 0.85),
      inset 0 1px 1px 0 rgba(255, 255, 255, 0.4);
  }
  .panel-tag {
    font-size: 11px;
    margin-bottom: 12px;
    gap: 8px;
  }
  .panel-heading {
    font-size: clamp(1.65rem, 6.8vw, 2.6rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 14px;
    max-width: 100%;
  }
  .panel-desc {
    font-size: clamp(0.92rem, 3.8vw, 1.1rem);
    line-height: 1.5;
    margin-bottom: 22px;
    max-width: 100%;
  }
  .panel-pill-list {
    gap: 8px;
  }
  .panel-pill {
    font-size: 11px;
    padding: 6px 14px;
  }

  /* Interactive Code Playground */
  .sandbox-section {
    padding: 70px 18px;
  }
  .sandbox-header {
    margin-bottom: 32px;
  }
  .sandbox-title {
    font-size: clamp(2rem, 7.5vw, 3.4rem);
  }
  .sandbox-desc {
    font-size: 14px;
  }
  .sandbox-layout {
    grid-template-columns: 1fr;
  }
  .sandbox-code-area {
    padding: 16px;
    font-size: 12px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .sandbox-interactive-area {
    padding: 20px 16px;
    gap: 20px;
  }
  .sandbox-stage {
    height: 110px;
    gap: 10px;
    margin-bottom: 16px;
  }
  .sandbox-preview-box {
    width: 42px;
    height: 42px;
    font-size: 14px;
  }
  .sandbox-controls {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .trigger-btn {
    padding: 12px 8px;
    font-size: 11px;
    min-height: 44px;
  }

  /* Projects Bento Grid */
  .projects-section {
    padding: 50px 18px 24px;
  }
  .projects-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 28px;
  }
  .projects-title {
    font-size: clamp(2.0rem, 7.6vw, 3.4rem);
  }
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .project-card--wide {
    grid-column: span 1;
  }
  .project-art,
  .project-card:not(.project-card--wide) .project-art {
    height: 240px;
  }
  .art-title-overlay {
    font-size: clamp(2.0rem, 7.5vw, 3.0rem);
    left: 14px;
    bottom: 14px;
  }
  .art-pill {
    top: 12px;
    left: 12px;
    font-size: 9px;
  }
  .project-info {
    padding: 16px 14px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .project-info .button--stroke {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }
  .project-meta-title {
    font-size: 17px;
  }
  .project-meta-sub {
    font-size: 11px;
  }

  /* Footer & Contact */
  .footer-section {
    padding: 24px 18px 36px;
  }
  .footer-glass-card {
    padding: 28px 18px 22px;
    border-radius: 20px;
    backdrop-filter: blur(18px) saturate(170%);
    -webkit-backdrop-filter: blur(18px) saturate(170%);
  }
  .footer-kicker {
    margin-bottom: 12px;
    font-size: 10.5px;
    letter-spacing: 1.5px;
  }
  .footer-heading {
    font-size: clamp(1.85rem, 7.2vw, 3.0rem);
    line-height: 1.02;
    margin-bottom: 20px;
  }
  .footer-email-btn {
    font-size: clamp(1.1rem, 4.8vw, 1.6rem);
    gap: 8px;
    max-width: 100%;
    word-break: break-word;
    white-space: normal;
    padding-bottom: 4px;
    min-height: 44px;
    margin-bottom: 6px;
  }
  .footer-bottom {
    margin-top: 24px;
    padding-top: 16px;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    font-size: 11px;
  }
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 16px;
  }
  .footer-links a {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    font-size: 11px;
  }

  /* Mobile Glass Dock at Viewport Bottom */
  .glass-dock-wrap {
    bottom: max(16px, env(safe-area-inset-bottom, 16px));
  }
  .glass-dock {
    gap: 10px;
    padding: 6px 14px;
    border-radius: 18px;
  }
  .glass-dock .dock-item {
    width: 38px;
    height: 38px;
  }
  .glass-dock .dock-item svg {
    width: 20px;
    height: 20px;
  }
  .glass-dock .dock-tooltip {
    bottom: 52px;
    top: auto;
  }
  .glass-dock .dock-tooltip-inner {
    padding: 5px 12px;
    font-size: 11px;
    min-width: 60px;
  }
  .toast-pill {
    bottom: max(82px, calc(env(safe-area-inset-bottom, 16px) + 64px));
  }
}

/* Extra small mobile adjustments (<= 400px screen width) */
@media (max-width: 400px) {
  .hero {
    padding: clamp(130px, 17vh, 155px) 14px 20px;
  }
  .editorial-hero-title {
    font-size: clamp(1.75rem, 7.4vw, 2.25rem);
    margin-bottom: 12px;
  }
  .hero__subtitle-wrap {
    padding: 10px 12px;
    margin-bottom: 12px;
  }
  .hero__subtitle-text {
    font-size: 12px;
    line-height: 1.38;
  }
  .hero__actions {
    margin-top: 12px;
    display: flex;
    flex-direction: row;
    gap: 8px;
    width: 100%;
  }
  .hero__actions .button--fill,
  .hero__actions .button--stroke {
    flex: 1 1 0;
    min-width: 0;
    padding: 9px 6px;
    min-height: 40px;
    font-size: 10.5px;
    white-space: nowrap;
    letter-spacing: -0.2px;
  }
  .horizontal-panel {
    padding: 0 10px;
  }
  .horizontal-glass-card {
    padding: 24px 16px;
    border-radius: 18px;
  }
  .panel-heading {
    font-size: clamp(1.45rem, 6.5vw, 2rem);
  }
  .panel-desc {
    font-size: 0.92rem;
  }
  .sandbox-controls {
    grid-template-columns: 1fr;
  }
  .footer-heading {
    font-size: clamp(1.75rem, 7.2vw, 2.3rem);
  }
  .footer-email-btn {
    font-size: 1.05rem;
  }
}

/* Pointer coarse tuning to prevent hover stickiness on touch devices */
@media (pointer: coarse) {
  .editorial-word::before {
    inset: -8px -4px;
  }
  .button--fill:hover,
  .button--stroke:hover,
  .project-card:hover,
  .horizontal-glass-card:hover {
    transform: none;
  }
}
