/* ==========================================================================
   GIANLUCA MENEGHETTI — GLACIAL ICE & FROSTED GLASS ARCHITECTURE (v24)
   - Palette: True Azzurro Ghiaccio (#C2D6E8 / #A3C1DA / #E6EFF7) & Grigio Glass (#94A3B8 / #5B7A96)
   - Zero Retro-Tech Cyan: Cold, Desaturated, Crystalline Metallic Ice & Slate Glass
   - Sheet 01 (WHITE): Glacial White Studio Hero + Large 3D Memoji Biker + Monumental Shaded Wordmark
   - Sheet 02 (BLACK): Story + Official AWS Badges + Swinging Sustenpass Polaroid + 4 Staggered Cards
   - Sheet 03 (WHITE): 3-Card Enterprise Carousel + Ventures with Pertinent SVG Stage Backdrops
   - Sheet 04 (BLACK): 60fps Interactive Topology Graph (#os-graph-canvas) + Full-Stack Specs
   - Sheet 05 (WHITE): Provenance (Work & Study)
   - Sheet 06 (BLACK): Autodromo del Mugello Telemetry, 765 RS Onboard Video & Contact
   ========================================================================== */

@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/Barlow-400-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/Barlow-600-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/Barlow-700-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/BarlowCondensed-700-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/BarlowCondensed-800-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/JetBrainsMono-500-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/JetBrainsMono-700-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Hurricane';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/Hurricane-400-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Birthstone';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/Birthstone-400-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Allura';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/Allura-400-latin.woff2') format('woff2');
}

:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Inter Tight', 'Barlow Condensed', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-sign: 'Birthstone', 'Allura', 'Hurricane', cursive;
  --font-hand: 'Caveat', 'Hurricane', cursive;

  /* True Azzurro Ghiaccio & Grigio Glass (Cold, Crystalline, Desaturated Ice — Zero Neon Cyan) */
  --ice: #C2D6E8;
  --ice-bright: #A3C1DA;
  --ice-pale: #E6EFF7;
  --ice-glass: #94A3B8;
  --ice-deep: #5B7A96;
  --ice-glow: rgba(194, 214, 232, 0.22);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --radius-card: 24px;
  --radius-inner: 16px;
  --radius-pill: 999px;
  --container: min(1240px, 90vw);
}

/* ==========================================================================
   ALTERNATING PLANES ("UNO BIANCO UNO NERO")
   ========================================================================== */
.plane-black {
  --bg: #07090D;
  --surface: #0F131B;
  --surface-2: #151B25;
  --ink: #F8FAFC;
  --label-2: rgba(226, 234, 245, 0.68);
  --label-3: rgba(226, 234, 245, 0.42);
  --border: rgba(194, 214, 232, 0.12);
  --border-hi: rgba(194, 214, 232, 0.42);
  --accent: var(--ice);
  --card-shadow:
    0 28px 60px -22px rgba(0, 0, 0, 0.78),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(920px 480px at 50% 10%, rgba(194, 214, 232, 0.09), transparent 70%),
    linear-gradient(180deg, #06080C 0%, #090D14 50%, #06080C 100%);
  color: var(--ink);
}

.plane-white {
  --bg: #F4F7FA;
  --surface: #FFFFFF;
  --surface-2: #EBF0F6;
  --ink: #0B0F17;
  --label-2: rgba(11, 15, 23, 0.64);
  --label-3: rgba(11, 15, 23, 0.44);
  --border: rgba(15, 23, 42, 0.08);
  --border-hi: rgba(91, 122, 150, 0.36);
  --accent: var(--ice-deep);
  --card-shadow:
    0 24px 52px -20px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 #FFFFFF;
  background:
    radial-gradient(900px 460px at 50% 12%, rgba(194, 214, 232, 0.26), transparent 70%),
    linear-gradient(180deg, #F3F6FA 0%, #FFFFFF 48%, #EEF3F8 100%);
  color: var(--ink);
}

/* ==========================================================================
   RESET & BASE TYPOGRAPHY
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

body {
  font-family: var(--font-sans);
  background-color: #F4F7FA;
  color: #0B0F17;
  line-height: 1.6;
  overflow-x: clip;
}

main, section {
  overflow-x: clip;
}

::selection {
  background: var(--ice);
  color: #07090D;
}

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

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

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

.wrap {
  width: var(--container);
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

/* Scroll reveal: the states, tokens and timing live in motion.css (§2), on the
   individual opacity / translate / scale channels. `transform` stays free for
   the hover tilt below, so the two never fight. */
.rv-item {
  transform-origin: 50% 100%;
}

/* Hover tilt (bw-engine.js 4B drives the vars). The 3D transform only exists
   while a card is hovered, so idle cards stay flat, cheap 2D layers. */
.pcard,
.acard,
.bcell {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --tilt-ty: 0px;
  --tilt-z: 0px;
  --tilt-scale: 1;
}

.pcard:hover,
.acard:hover,
.bcell:hover {
  transform: perspective(1100px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(var(--tilt-ty)) translateZ(var(--tilt-z)) scale(var(--tilt-scale));
}

/* ==========================================================================
   PURE BINARY SOLID HELMET MARK (.helmet-mark from Louis.de X-804 RS)
   ========================================================================== */
.helmet-mark {
  display: inline-block;
  width: 24px;
  height: 24px;
  background-color: currentColor;
  -webkit-mask: url('../helmet-mark.png?v=24') center / contain no-repeat;
  mask: url('../helmet-mark.png?v=24') center / contain no-repeat;
  vertical-align: middle;
  flex-shrink: 0;
}

.helmet-mark.lg {
  width: 34px;
  height: 34px;
}

.helmet-mark.ice {
  background-color: var(--ice-deep);
}

#bar[data-plane="black"] .helmet-mark.ice {
  background-color: var(--ice);
}

/* ==========================================================================
   FLOATING LIQUID-GLASS NAVBAR
   ========================================================================== */
#bar {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1240px, 90vw);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px 8px 20px;
  border-radius: var(--radius-pill);
  background: rgba(11, 15, 22, 0.82);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid rgba(194, 214, 232, 0.16);
  color: #F8FAFC;
  box-shadow: 0 20px 44px -16px rgba(0, 0, 0, 0.62);
  transition:
    background-color 0.35s var(--ease),
    color 0.35s var(--ease),
    border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

#bar[data-plane="white"] {
  background: rgba(255, 255, 255, 0.84);
  border-color: rgba(15, 23, 42, 0.08);
  color: #0B0F17;
  box-shadow: 0 16px 38px -16px rgba(15, 23, 42, 0.10);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: -0.015em;
}

.brand span.muted {
  opacity: 0.48;
  font-weight: 400;
}

.nav-links {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-pill-indicator {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  border-radius: var(--radius-pill);
  background: rgba(194, 214, 232, 0.16);
  border: 1px solid rgba(194, 214, 232, 0.22);
  pointer-events: none;
  z-index: 0;
  transition:
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.25s var(--ease),
    background-color 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

#bar[data-plane="white"] .nav-pill-indicator {
  background: rgba(91, 122, 150, 0.11);
  border-color: rgba(91, 122, 150, 0.16);
}

.nav-links a {
  position: relative;
  z-index: 1;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 7px 15px;
  border-radius: var(--radius-pill);
  opacity: 0.68;
  transition: opacity 0.25s var(--ease), color 0.25s var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
  opacity: 1;
  color: var(--ice-pale);
}

#bar[data-plane="white"] .nav-links a:hover,
#bar[data-plane="white"] .nav-links a.active {
  color: #0B0F17;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 7px 7px 7px 18px;
  border-radius: var(--radius-pill);
  background: #FFFFFF;
  color: #0B0F17;
  border: 1px solid rgba(255, 255, 255, 0.22);
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

#bar[data-plane="white"] .nav-cta {
  background: #0B0F17;
  color: #FFFFFF;
  border-color: #0B0F17;
}

.nav-cta i {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #0B0F17;
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.28s var(--ease), background-color 0.28s var(--ease), color 0.28s var(--ease);
}

.nav-cta i svg {
  display: block;
  width: 12px;
  height: 12px;
}

.nav-cta:hover i {
  transform: translateX(1.5px);
}

#bar[data-plane="white"] .nav-cta i {
  background: var(--ice);
  color: #0B0F17;
}

.nav-cta:hover,
.nav-cta.is-active {
  transform: translateY(-1px);
  border-color: var(--ice-deep);
  box-shadow: 0 0 0 3px rgba(194, 214, 232, 0.55), 0 10px 24px -6px rgba(91, 122, 150, 0.28);
}

/* ==========================================================================
   SECTIONS & EDITORIAL HEADERS
   ========================================================================== */
section {
  position: relative;
  padding: clamp(104px, 14vh, 152px) 0;
}

.sec-head {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: end;
  margin-bottom: clamp(56px, 7.5vh, 84px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.sec-title {
  font-family: var(--font-sans);
  font-size: clamp(2.15rem, 3.8vw, 3.25rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.sec-title span {
  color: var(--label-3);
  font-weight: 400;
}

.sec-desc {
  font-size: 1rem;
  line-height: 1.68;
  color: var(--label-2);
  max-width: 46ch;
}

/* ==========================================================================
   SHEET 01 · GLACIAL WHITE STUDIO HERO
   - Larger 3D Apple Memoji Biker
   - Monumental "GIANLUCA / MENEGHETTI" Shaded Between Grigio Glass & Azzurro Ghiaccio
   ========================================================================== */
#hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: clamp(86px, 11vh, 108px);
  padding-bottom: clamp(18px, 2.4vh, 28px);
  background:
    radial-gradient(760px 460px at 50% 38%, rgba(203, 213, 225, 0.34), transparent 72%),
    linear-gradient(180deg, #F1F5F9 0%, #FFFFFF 55%, #F8FAFC 100%);
}

.hero-studio-frame {
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 32px;
  background:
    radial-gradient(640px 420px at 50% 38%, rgba(203, 213, 225, 0.28), rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.99) 100%);
  box-shadow:
    0 36px 80px -28px rgba(15, 23, 42, 0.12),
    inset 0 1px 0 #FFFFFF;
  overflow: hidden;
}

/* Hero Studio Keyframes: Orchestrated Entrance & 3D Ambient Breathing */
@keyframes heroFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes heroFadeSlideUp {
  from {
    opacity: 0;
    transform: translate3d(0, 32px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes heroBikerEntrance {
  from {
    opacity: 0;
    transform: translate3d(0, 68px, 0) scale(0.90);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0px);
  }
}

@keyframes heroBikerFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-9px) rotate(0.4deg);
  }
}

@keyframes heroHaloPulse {
  0%, 100% {
    transform: scale(0.93);
    opacity: 0.65;
  }
  50% {
    transform: scale(1.06);
    opacity: 0.95;
  }
}

@keyframes heroWordmarkSlideUp {
  from {
    opacity: 0;
    transform: translate3d(0, 48px, 0) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.studio-topbar {
  height: 44px;
  padding: 0 28px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.65);
  animation: heroFadeIn 0.75s ease 0.05s backwards;
}

.studio-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Authentic macOS Window Controls (Rosso · Giallo · Verde) */
.studio-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
  transition: transform 0.22s var(--ease), filter 0.22s var(--ease);
}

.studio-dots span:nth-child(1) {
  background-color: #FF5F56;
  border: 1px solid rgba(224, 68, 62, 0.45);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.40);
}

.studio-dots span:nth-child(2) {
  background-color: #FFBD2E;
  border: 1px solid rgba(222, 161, 35, 0.45);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.40);
}

.studio-dots span:nth-child(3) {
  background-color: #27C93F;
  border: 1px solid rgba(40, 170, 58, 0.45);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.40);
}

.studio-topbar:hover .studio-dots span {
  filter: brightness(1.06);
}

.studio-coords {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.48);
  display: inline-flex;
  align-items: center;
}

.studio-star {
  color: var(--ice-deep);
  font-family: var(--font-mono);
  font-size: 1.25rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

/* Hero Stage Wrapper: Memoji Bust Anchored Flush to Bottom Border in Foreground (z-index: 3),
   Monumental 80%-Visible "Meneghetti" Passing Behind the Shoulders (z-index: 1) */
.studio-stage-wrap {
  position: relative;
  overflow: hidden;
  padding-top: clamp(14px, 2vh, 28px);
}

.studio-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 0.92fr 1.32fr 0.92fr;
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
  min-height: clamp(454px, 60vh, 560px);
  padding: 0 clamp(32px, 4.5vw, 56px);
}

.hero-left {
  padding-bottom: clamp(198px, 26vh, 265px);
}

.hero-right-bio {
  padding-bottom: clamp(148px, 19.5vh, 205px);
  animation: heroFadeSlideUp 0.95s cubic-bezier(0.16, 1, 0.3, 1) 0.32s backwards;
}

.hero-left-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ice-deep);
  margin-bottom: 12px;
  animation: heroFadeSlideUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.12s backwards;
}

.hero-left-h1 {
  font-family: var(--font-sans);
  font-size: clamp(2.25rem, 3.5vw, 3.35rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.038em;
  color: #0B0F17;
  animation: heroFadeSlideUp 0.95s cubic-bezier(0.16, 1, 0.3, 1) 0.22s backwards;
}

.hero-left-h1 span {
  display: block;
  color: #64748B;
  font-weight: 400;
}

.hero-left-coords {
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ice-deep);
}

/* Center Stage: Large 3D Apple Memoji Biker Anchored Flush to Bottom Border */
.hero-center-avatar {
  align-self: end;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  z-index: 3;
  margin-bottom: -4px;
}

.avatar-visual-wrap {
  position: relative;
  width: min(485px, 58vh, 100%);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: heroBikerEntrance 1.15s cubic-bezier(0.16, 1, 0.3, 1) 0.10s backwards;
}

.avatar-halo {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(203, 213, 225, 0.44) 0%, rgba(203, 213, 225, 0.3) 24%, rgba(148, 163, 184, 0.13) 50%, rgba(148, 163, 184, 0.04) 64%, transparent 74%);
  will-change: transform, translate;
  pointer-events: none;
  z-index: 0;
  animation: heroHaloPulse 5.4s ease-in-out infinite alternate 1.25s;
}

.avatar-visual-wrap img {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 22px 42px rgba(15, 23, 42, 0.22));
  /* Poster / no-WebGL fallback; the live avatar is the canvas from avatar-depth.js */
}

/* Monumental Full-Width Cropped Lockup BEHIND the Memoji Shoulders:
   - Cursive "Gianluca" (Hurricane script in Azzurro Ghiaccio) overlapping top-left of
   - Ultra-bold tight-tracked "Meneghetti" (80% visible above bottom border) */
.hero-impact-wordmark {
  --spot-x1: 18%;
  --spot-y1: 36%;
  --spot-x2: 80%;
  --spot-y2: 52%;
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(-24px, -1.8vw, -16px);
  z-index: 1;
  padding: 0 clamp(16px, 2.4vw, 36px);
  display: flex;
  justify-content: center;
  overflow: hidden;
  user-select: none;
  pointer-events: none;
}

.hiw-lockup {
  position: relative;
  display: inline-block;
  padding-top: clamp(18px, 2vw, 30px);
  animation: heroWordmarkSlideUp 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.18s backwards;
}

.hiw-script {
  position: absolute;
  /* Nestled cleanly above "Men" with zero collision and rich fountain-pen ink weight */
  top: clamp(14px, 1.55vw, 24px);
  left: clamp(66px, 7.1vw, 110px);
  z-index: 4;
  font-family: 'Birthstone', 'Allura', var(--font-sign);
  font-size: clamp(3.15rem, 5.2vw, 4.9rem);
  font-weight: 400;
  line-height: 0.85;
  letter-spacing: 0.01em;
  color: #0B0F17;
  -webkit-text-stroke: 0.35px #0B0F17;
  transform: rotate(-3.5deg);
  transform-origin: left bottom;
  text-shadow: none;
  white-space: nowrap;
  -webkit-font-smoothing: antialiased;
}

.hiw-last {
  position: relative;
  z-index: 2;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(5.2rem, 12.6vw, 11.8rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.02;
  /* Extra headroom on top and right so the dot and right stem of "i" in Inter Tight are never clipped */
  padding-top: 0.28em;
  padding-bottom: 0.10em;
  padding-right: 0.25em;
  padding-left: 0.15em;
  margin-top: -0.22em;
  /* Clips bottom 20% against the .studio-pillars border, leaving 80% rising behind the Memoji shoulders */
  margin-bottom: -0.22em;
  white-space: nowrap;
  background-image:
    radial-gradient(
      circle 260px at var(--spot-x1) var(--spot-y1),
      #C2D6E8 0%,
      #6E8CA8 42%,
      rgba(110, 140, 168, 0) 76%
    ),
    radial-gradient(
      circle 280px at var(--spot-x2) var(--spot-y2),
      #C2D6E8 0%,
      #6E8CA8 42%,
      rgba(110, 140, 168, 0) 76%
    ),
    linear-gradient(
      180deg,
      #111827 0%,
      #1E293B 62%,
      #334155 100%
    );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Right Column: Concise Bio + 3 Clean Metrics */
.hero-right-bio p {
  font-size: 0.94rem;
  line-height: 1.66;
  color: rgba(11, 15, 23, 0.68);
}

.hero-right-bio p strong {
  color: #0B0F17;
  font-weight: 600;
}

.hero-right-stats {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(15, 23, 42, 0.09);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.hr-stat-n {
  font-family: var(--font-sans);
  font-size: clamp(1.22rem, 1.45vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #0B0F17;
  line-height: 1.05;
  white-space: nowrap;
}

.hr-stat-n i {
  font-style: normal;
  color: var(--ice-deep);
}

.hr-stat-l {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: rgba(11, 15, 23, 0.50);
  margin-top: 4px;
  white-space: nowrap;
}

/* Bottom Row Inside Studio Frame: #01 · #02 · #03 · #04 */
.studio-pillars {
  padding: clamp(14px, 2vh, 20px) clamp(32px, 4.5vw, 56px);
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(238, 243, 249, 0.72);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.sp-item:nth-child(1) { animation: heroFadeSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.45s backwards; }
.sp-item:nth-child(2) { animation: heroFadeSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.55s backwards; }
.sp-item:nth-child(3) { animation: heroFadeSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.65s backwards; }
.sp-item:nth-child(4) { animation: heroFadeSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.75s backwards; }

.sp-item .sp-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--ice-deep);
}

.sp-item .sp-title {
  font-size: clamp(0.76rem, 0.88vw, 0.85rem);
  font-weight: 600;
  color: #1E293B;
  margin-top: 4px;
  white-space: nowrap;
}

/* ==========================================================================
   SHEET 02 · OBSIDIAN BLACK · STORY + SWINGING SUSTENPASS POLAROID
   + 4 PORTRAIT CARDS STAGGERED ACROSS 4 VERTICAL LEVELS
   ========================================================================== */
.behind-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: clamp(48px, 6vw, 88px);
  align-items: center;
}

.behind-copy p {
  font-size: 1.02rem;
  line-height: 1.72;
  color: var(--label-2);
  margin-bottom: 20px;
}

.behind-copy p strong {
  color: var(--ink);
  font-weight: 600;
}

.signature-row {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.signature-block {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}

/* Authentic Cursive Signature (Hurricane WOFF2) */
.signature-script {
  font-family: 'Hurricane', 'Caveat', cursive;
  font-weight: 400;
  font-size: 2.85rem;
  line-height: 0.9;
  color: var(--ice-pale);
  transform: rotate(-3deg);
  display: inline-block;
  letter-spacing: 0.01em;
}

.signature-role {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ice);
}

/* Colored AWS Badges Box */
.aws-box-light {
  margin-top: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: var(--card-shadow);
}

.certs-badges {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.cb img {
  height: 54px;
  width: auto;
  filter: none !important;
}

.aws-box-light h4 {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
}

.aws-box-light p {
  font-size: 0.76rem;
  color: var(--label-2);
  margin-top: 3px;
  margin-bottom: 0;
}

/* Right Column: Swinging Crooked Taped Polaroid (Sustenpass · media/hero-alps.webp) */
.polaroid-stage {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
}

.polaroid-anchor {
  position: relative;
  width: min(344px, 84vw);
  transform-origin: 50% 8px;
  transform: rotate(-3.4deg);
  cursor: grab;
  user-select: none;
  will-change: transform;
}

.polaroid-anchor:active {
  cursor: grabbing;
}

.polaroid-tape {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  width: 104px;
  height: 26px;
  background: rgba(226, 236, 245, 0.78);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
  z-index: 4;
}

.polaroid-pin {
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ice);
  box-shadow: 0 0 10px var(--ice);
  z-index: 5;
}

.polaroid-frame {
  background: #F8FAFC;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 18px;
  padding: 13px 13px 18px 13px;
  box-shadow:
    0 36px 72px -18px rgba(0, 0, 0, 0.75),
    0 6px 18px rgba(0, 0, 0, 0.35);
}

.polaroid-photo {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 4.35;
  background: #0B0E14;
}

.polaroid-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.polaroid-caption {
  margin-top: 14px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  padding: 0 6px;
}

.polaroid-hand-wrap {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

/* Authentic Marker Handwriting on Polaroid Border */
.polaroid-hand {
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 1.42rem;
  color: #0F172A;
  line-height: 1.05;
  letter-spacing: -0.01em;
  transform: rotate(-1.2deg);
  display: inline-block;
}

.polaroid-subhand {
  font-family: var(--font-hand);
  font-weight: 600;
  font-size: 1.02rem;
  color: #475569;
  line-height: 1;
}

.polaroid-stamp {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--ice-deep);
  background: rgba(194, 214, 232, 0.32);
  padding: 3px 8px;
  border-radius: 6px;
}

/* 4 Portrait Cards Staggered Across 4 Vertical Levels ("sfalsate su più livelli") */
.stagger-4-wrap {
  margin-top: clamp(72px, 10vh, 112px);
}

.stagger-4-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  align-items: start;
  padding-bottom: 92px;
}

.scard {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 26px 24px;
  aspect-ratio: 3 / 3.75;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(194, 214, 232, 0.14);
  transition: transform 0.42s var(--ease), box-shadow 0.42s var(--ease);
}

.scard > * {
  position: relative;
  z-index: 2;
}

.scard:nth-child(1) {
  transform: translateY(0px);
  background: #10151F;
  color: #FFFFFF;
  box-shadow: 0 28px 56px -20px rgba(0, 0, 0, 0.65);
}

/* Card 2: Glacial Ice & Frosted Glass Motion-Blur Streaks */
.scard:nth-child(2) {
  transform: translateY(72px);
  background:
    linear-gradient(180deg, rgba(11, 15, 23, 0.12) 0%, rgba(11, 15, 23, 0.90) 88%),
    radial-gradient(280px 190px at 38% 36%, #E6EFF7 0%, #94B4CE 45%, #0B0F17 98%);
  color: #FFFFFF;
  box-shadow: 0 28px 56px -18px rgba(0, 0, 0, 0.65);
}

.scard:nth-child(2)::before {
  content: '';
  position: absolute;
  top: 16%;
  left: -20%;
  right: -20%;
  height: 120px;
  background:
    repeating-linear-gradient(
      180deg,
      transparent 0px,
      rgba(255, 255, 255, 0.85) 4px,
      rgba(194, 214, 232, 0.80) 12px,
      rgba(148, 163, 184, 0.38) 24px,
      transparent 38px
    );
  filter: blur(8px);
  transform: rotate(-4deg);
  z-index: 1;
}

/* Card 3: Swept Glacial Silver-to-Obsidian Blur */
.scard:nth-child(3) {
  transform: translateY(18px);
  background:
    linear-gradient(180deg, #CBD5E1 0%, #64748B 30%, #0F172A 70%, #07090D 100%);
  color: #FFFFFF;
  box-shadow: 0 28px 56px -20px rgba(0, 0, 0, 0.65);
}

.scard:nth-child(3)::before {
  content: '';
  position: absolute;
  top: 28%;
  left: -15%;
  width: 130%;
  height: 70px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.82), rgba(194,214,232,0.78), transparent);
  filter: blur(10px);
  transform: rotate(-14deg);
  z-index: 1;
}

/* Card 4: Cool Matte Glacial Ice-Silver */
.scard:nth-child(4) {
  transform: translateY(88px);
  background: linear-gradient(180deg, #E6EEF6 0%, #D5E2EE 100%);
  color: #0B0F17;
  box-shadow: 0 28px 56px -20px rgba(0, 0, 0, 0.55);
}

.scard:nth-child(1):hover { transform: translateY(-6px); }
.scard:nth-child(2):hover { transform: translateY(64px); }
.scard:nth-child(3):hover { transform: translateY(10px); }
.scard:nth-child(4):hover { transform: translateY(80px); }

.scard-pill {
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
}

.scard:nth-child(4) .scard-pill {
  border-color: rgba(11, 15, 23, 0.22);
  background: rgba(255, 255, 255, 0.45);
}

.scard-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ice);
  margin-bottom: 12px;
}

.scard:nth-child(4) .scard-dot {
  background: var(--ice-deep);
}

.scard-bottom h3 {
  font-family: var(--font-sans);
  font-size: 1.18rem;
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}

.scard-bottom p {
  font-size: 0.8rem;
  line-height: 1.55;
  opacity: 0.74;
}

/* ==========================================================================
   SHEET 03 · GLACIAL WHITE · 3-CARD CAROUSEL + VENTURES GRID
   - Bespoke Project-Pertinent SVG Stage Backdrops
   - Zero Crowded Tag Walls
   ========================================================================== */
.carousel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.carousel-sub {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.carousel-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.c-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  box-shadow: var(--card-shadow);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.c-btn:hover {
  background: var(--ice);
  color: #07090D;
  border-color: var(--ice);
  transform: translateY(-2px);
}

.carousel-3-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.sub-divider {
  margin-top: clamp(64px, 8vh, 92px);
  margin-bottom: 28px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.sub-divider h3 {
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.sub-divider span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--label-3);
}

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

.pcard {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 20px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition:
    transform 0.38s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.38s var(--ease),
    box-shadow 0.38s var(--ease);
}

/* Cursor-Tracked Specular Glass Sheen on Cards */
.pcard::after,
.acard::after,
.bcell::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 0%),
    rgba(194, 214, 232, 0.11),
    transparent 65%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}

.pcard:hover::after,
.acard:hover::after,
.bcell:hover::after {
  opacity: 1;
}

.pcard:hover,
.pcard.is-focused {
  border-color: var(--border-hi);
  box-shadow: 0 28px 56px -20px rgba(11, 15, 23, 0.22), 0 0 0 1px rgba(194, 214, 232, 0.24);
}

.pcard:hover .plink {
  background: var(--ice-pale);
  transform: scale(1.05);
}

.pcard:hover .plink i {
  transform: translate(2px, -2px);
}

.pcard .stage-bg-svg {
  transition: transform 0.65s var(--ease), filter 0.65s var(--ease);
}

.pcard:hover .stage-bg-svg {
  transform: scale(1.045);
  filter: brightness(1.14);
}

.pcard-stage {
  position: relative;
  border-radius: var(--radius-inner);
  overflow: hidden;
  height: 176px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: linear-gradient(145deg, #0D121B 0%, #070A10 100%);
}

.stage-bg-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 1;
}

.pcard-stage-top {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.stage-kicker {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(230, 239, 247, 0.72);
}

.stage-pill {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 4px 11px;
  border-radius: var(--radius-pill);
}

.stage-pill.blue {
  background: var(--ice);
  color: #07090D;
  font-weight: 600;
  border-color: transparent;
}

.pcard-body {
  padding: 22px 6px 6px 6px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  gap: 18px;
}

.pcard h3 {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: 1.25;
}

.pcard h3 .fn {
  font-size: 0.7em;
  color: var(--accent);
  margin-left: 2px;
}

.pcard p {
  font-size: 0.88rem;
  line-height: 1.64;
  color: var(--label-2);
  margin-top: 8px;
}

.pcard p b {
  color: var(--ink);
  font-weight: 600;
}

.pcard-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.pcard-meta-line {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.01em;
}

.plink {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  font-weight: 600;
  color: #07090D;
  background: var(--ice);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease);
}

.plink:hover {
  transform: translateY(-1px);
  background: var(--ice-pale);
}

.coll-fn {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--label-3);
  margin-top: 24px;
}

/* ==========================================================================
   SHEET 04 · OBSIDIAN BLACK · INTERACTIVE SYSTEM TOPOLOGY GRAPH & STACK
   ========================================================================== */
.graph-stage-card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(194, 214, 232, 0.16);
  background:
    radial-gradient(640px 380px at 50% 48%, rgba(194, 214, 232, 0.12), transparent 72%),
    linear-gradient(180deg, #070A10 0%, #0B1019 50%, #07090D 100%);
  box-shadow: 0 32px 68px -22px rgba(0, 0, 0, 0.78);
  margin-bottom: 32px;
}

.graph-hud-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(194, 214, 232, 0.12);
  background: rgba(7, 10, 16, 0.72);
  backdrop-filter: blur(12px);
}

.gh-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #F8FAFC;
}

.gh-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ice);
  box-shadow: 0 0 12px var(--ice);
}

.gh-right {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--label-2);
}

#os-graph-canvas {
  width: 100%;
  height: clamp(390px, 54vh, 480px);
  display: block;
  cursor: grab;
  touch-action: none;
}

#os-graph-canvas:active {
  cursor: grabbing;
}

.graph-hud-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 24px;
  border-top: 1px solid rgba(194, 214, 232, 0.12);
  background: rgba(7, 10, 16, 0.82);
  font-size: 0.84rem;
  color: var(--label-2);
}

.gi-tag {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #07090D;
  background: var(--ice);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.graph-hud-bottom strong {
  color: #FFFFFF;
  font-weight: 600;
}

.gh-reset {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ice-pale);
  border: 1px solid rgba(194, 214, 232, 0.32);
  background: rgba(194, 214, 232, 0.08);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.gh-reset:hover {
  background: var(--ice);
  color: #07090D;
}

.stack-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.srow {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 18px 28px;
  border-bottom: 1px solid var(--border);
  align-items: center;
}

.srow:last-child {
  border-bottom: none;
}

.srow .sk-k {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

.sk-ico {
  width: 18px;
  height: 18px;
  color: var(--ice);
  flex-shrink: 0;
}

.srow .sk-v {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.srow .sk-v span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--label-2);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}

/* ==========================================================================
   SHEET 05 · GLACIAL WHITE · PROVENANCE (WORK & STUDY)
   ========================================================================== */
.exp-edu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.col-label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 16px;
}

.acard-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.acard {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px 30px;
  box-shadow: var(--card-shadow);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}

.acard:hover,
.acard.active-dark {
  border-color: var(--border-hi);
  box-shadow: 0 24px 50px -18px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(194, 214, 232, 0.18);
}

.acard-meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  font-weight: 600;
}

.acard h3 {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 8px;
}

.acard p {
  font-size: 0.88rem;
  line-height: 1.64;
  color: var(--label-2);
  margin-top: 10px;
}

/* ==========================================================================
   SHEET 06 · OBSIDIAN BLACK · TRACK, ONBOARD 765 RS VIDEO & CONTACT
   ========================================================================== */
.track {
  position: relative;
  height: clamp(280px, 40vh, 370px);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background:
    radial-gradient(ellipse at 50% 50%, rgba(194, 214, 232, 0.12), #07090D 74%);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

#mugello-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.track-hud {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 24px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(226, 234, 245, 0.65);
}

.track-hud .row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.track-hud b {
  color: #FFFFFF;
  font-weight: 600;
}

.bgrid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  margin-top: 24px;
  align-items: stretch;
}

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

.bcell {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--card-shadow);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}

.bcell:hover {
  border-color: var(--border-hi);
  box-shadow: 0 24px 50px -18px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(194, 214, 232, 0.18);
}

.bcell-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.bcell-ico {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: rgba(194, 214, 232, 0.10);
  border: 1px solid rgba(194, 214, 232, 0.20);
  color: var(--ice-pale);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease);
}

.bcell-ico svg {
  width: 18px;
  height: 18px;
}

.bcell:hover .bcell-ico {
  transform: scale(1.06);
  background: var(--ice);
  color: #07090D;
}

.bcell-idx {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--label-3);
}

.bcell .t {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
}

.bcell .s {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--ice);
  margin-top: 4px;
}

.bcell .d {
  font-size: 0.85rem;
  color: var(--label-2);
  margin-top: 10px;
  line-height: 1.6;
}

.film .frame {
  position: relative;
  height: 100%;
  min-height: 340px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  overflow: hidden;
  background: #07090D;
  box-shadow: var(--card-shadow);
}

.film video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.film-cap {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  background: rgba(7, 9, 13, 0.78);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(194, 214, 232, 0.18);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(226, 234, 245, 0.76);
}

.film-cap b {
  color: var(--ice-pale);
}

/* Contact Section (Detached Glacial White Sheet) */
#contact {
  padding-top: clamp(84px, 11vh, 124px);
  padding-bottom: clamp(56px, 7vh, 84px);
}

.contact-box {
  background:
    radial-gradient(620px 300px at 50% 0%, rgba(194, 214, 232, 0.45), transparent 72%),
    linear-gradient(180deg, #FFFFFF 0%, #F2F6FA 100%);
  border: 1px solid rgba(15, 23, 42, 0.09);
  color: #0B0F17;
  border-radius: 32px;
  padding: clamp(48px, 6vw, 76px);
  text-align: center;
  box-shadow:
    0 32px 68px -22px rgba(15, 23, 42, 0.10),
    inset 0 1px 0 #FFFFFF;
}

.contact-box .eyebrow {
  color: var(--ice-deep);
}

.contact-box .big {
  font-family: var(--font-sans);
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: #0B0F17;
  max-width: 18ch;
  margin: 10px auto 0;
}

.clinks {
  margin-top: 32px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.clink {
  font-size: 0.84rem;
  font-weight: 500;
  color: #0B0F17;
  border: 1px solid rgba(15, 23, 42, 0.12);
  padding: 9px 20px 9px 10px;
  border-radius: var(--radius-pill);
  background: #FFFFFF;
  box-shadow: 0 8px 20px -8px rgba(15, 23, 42, 0.08);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.clink-ico {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #EEF3F8;
  color: #0B0F17;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}

.clink-ico svg {
  width: 15px;
  height: 15px;
}

.clink i {
  font-style: normal;
  opacity: 0.55;
  margin-left: 2px;
}

.clink.clink-primary {
  background: #0B0F17;
  color: #FFFFFF;
  border-color: #0B0F17;
}

.clink.clink-primary .clink-ico {
  background: rgba(194, 214, 232, 0.18);
  color: var(--ice-pale);
}

.clink:hover {
  background: #0B0F17;
  color: #FFFFFF;
  border-color: #0B0F17;
}

.clink:hover .clink-ico {
  background: rgba(194, 214, 232, 0.20);
  color: var(--ice-pale);
}

footer {
  margin-top: clamp(56px, 7vh, 84px);
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--label-2);
}

.batsig {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 24px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.batsig svg {
  width: 18px;
  height: 10px;
  fill: currentColor;
}

.batsig:hover {
  color: var(--ice);
  border-color: var(--ice);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
/* ==========================================================================
   RESPONSIVE BREAKPOINTS (MOBILE & TABLET STUDIOCRAFT)
   ========================================================================== */
@media (max-width: 1024px) {
  .sec-head,
  .behind-grid,
  .exp-edu-grid,
  .bgrid,
  .carousel-3-track {
    grid-template-columns: 1fr;
  }

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

  #bar {
    width: min(720px, calc(100% - 24px));
    padding: 0 16px;
    height: 52px;
    justify-content: space-between;
  }

  .hero-studio-frame {
    border-radius: 24px;
  }

  .studio-stage-wrap {
    padding-top: 18px;
    overflow: hidden;
  }

  .studio-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: auto;
    padding: 0 20px;
    gap: 16px;
  }

  .hero-left {
    padding-bottom: 0 !important;
    text-align: center;
  }

  .hero-left-kicker {
    font-size: 0.68rem;
    margin-bottom: 8px;
  }

  .hero-left-h1 {
    font-size: clamp(2.1rem, 6.5vw, 2.75rem);
    line-height: 1.1;
  }

  .hero-left-coords {
    display: none;
  }

  .hero-center-avatar {
    position: relative;
    align-self: center;
    margin-top: 8px;
    margin-bottom: 0;
  }

  .avatar-visual-wrap {
    width: min(310px, 72vw);
    aspect-ratio: 1 / 1;
  }

  .hero-right-bio {
    padding-bottom: 24px !important;
    text-align: center;
    max-width: 520px;
    margin-inline: auto;
  }

  .hero-right-bio p {
    font-size: 0.92rem;
    line-height: 1.62;
  }

  .hero-right-stats {
    margin-top: 16px;
    padding-top: 16px;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .studio-pillars {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 16px 20px;
  }

  .hero-impact-wordmark {
    display: none !important; /* Prevents text overflow and collision on vertical mobile stack */
  }

  .stagger-4-grid {
    grid-template-columns: repeat(2, 1fr);
    padding-bottom: 42px;
  }

  .scard:nth-child(1) { transform: translateY(0); }
  .scard:nth-child(2) { transform: translateY(28px); }
  .scard:nth-child(3) { transform: translateY(0); }
  .scard:nth-child(4) { transform: translateY(28px); }
}

@media (max-width: 720px) {
  .studio-pillars,
  .hero-right-stats,
  .stagger-4-grid,
  .bento-projects,
  .bcells {
    grid-template-columns: 1fr;
  }

  .stagger-4-grid {
    padding-bottom: 0;
  }

  .scard:nth-child(n) {
    transform: none !important;
    aspect-ratio: auto;
    min-height: 230px;
  }

  .srow {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  #bar {
    width: calc(100% - 16px);
    top: 10px;
    height: 48px;
    padding: 0 14px;
  }

  .studio-topbar {
    padding: 0 16px;
    height: 38px;
  }

  .studio-coords {
    font-size: 0.58rem;
  }

  /* Prevent tag collision and overlap inside cards on mobile */
  .pcard {
    padding: 18px 16px;
  }

  .pcard-stage {
    height: auto;
    min-height: 180px;
    padding: 14px;
  }

  .pcard-stage-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .stage-kicker {
    font-size: 0.60rem;
    letter-spacing: 0.05em;
  }

  .stage-pill {
    font-size: 0.58rem;
    padding: 3px 8px;
    align-self: flex-start;
  }

  .pcard-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-top: 12px;
  }

  .pcard-meta-line {
    font-size: 0.68rem;
    line-height: 1.45;
  }

  .scard-top {
    flex-wrap: wrap;
    gap: 6px;
  }

  .scard-pill {
    font-size: 0.62rem;
    padding: 3px 10px;
  }
}

/* ==========================================================================
   INTERACTIVE STUDIO MODAL POPUP & LIGHTBOX (.modal-backdrop)
   ========================================================================== */
html.modal-open,
body.modal-open {
  overflow: hidden !important;
  touch-action: none !important;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 3vw, 32px);
  background: rgba(6, 8, 12, 0.82);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  opacity: 0;
  pointer-events: none;
  overscroll-behavior: contain;
  overscroll-behavior-y: contain;
  touch-action: none;
  transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  position: relative;
  width: min(780px, 94vw);
  max-height: min(88vh, 840px);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
  background:
    radial-gradient(540px 280px at 50% 0%, rgba(194, 214, 232, 0.12), transparent 70%),
    linear-gradient(180deg, #10151E 0%, #0A0D14 100%);
  border: 1px solid rgba(194, 214, 232, 0.24);
  border-radius: 28px;
  box-shadow:
    0 40px 96px -24px rgba(0, 0, 0, 0.88),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  padding: clamp(26px, 4.2vw, 44px);
  color: #F8FAFC;
  transform: perspective(1200px) scale(0.90) translateY(36px) rotateX(4deg);
  opacity: 0;
  transition:
    transform 0.42s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.34s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.is-open .modal-dialog {
  transform: perspective(1200px) scale(1) translateY(0) rotateX(0deg);
  opacity: 1;
}

@keyframes modalItemReveal {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-backdrop.is-open .modal-kick-row {
  animation: modalItemReveal 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.08s backwards;
}
.modal-backdrop.is-open .modal-title {
  animation: modalItemReveal 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.14s backwards;
}
.modal-backdrop.is-open .modal-stage {
  animation: modalItemReveal 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.20s backwards;
}
.modal-backdrop.is-open .modal-desc {
  animation: modalItemReveal 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.25s backwards;
}
.modal-backdrop.is-open .modal-specs-grid {
  animation: modalItemReveal 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.30s backwards;
}
.modal-backdrop.is-open .modal-tags {
  animation: modalItemReveal 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.35s backwards;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(194, 214, 232, 0.18);
  color: #F8FAFC;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease);
}

.modal-close:hover {
  transform: rotate(90deg) scale(1.05);
  background: rgba(194, 214, 232, 0.22);
  color: var(--ice-pale);
}

.modal-kick-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.modal-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ice);
  text-transform: uppercase;
}

.modal-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(194, 214, 232, 0.14);
  border: 1px solid rgba(194, 214, 232, 0.24);
  color: var(--ice-pale);
}

.modal-title {
  font-family: var(--font-sans);
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #F8FAFC;
}

.modal-stage {
  margin-top: 22px;
  border-radius: 18px;
  height: 190px;
  background: #06080D;
  border: 1px solid rgba(194, 214, 232, 0.14);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-stage svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal-desc {
  font-size: 0.94rem;
  line-height: 1.68;
  color: rgba(226, 234, 245, 0.78);
  margin-top: 22px;
}

.modal-specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 22px;
}

@media (max-width: 640px) {
  .modal-specs-grid {
    grid-template-columns: 1fr;
  }
}

.ms-box {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(194, 214, 232, 0.10);
  border-radius: 14px;
  padding: 12px 14px;
}

.ms-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--ice-glass);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.ms-val {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: #FFFFFF;
  line-height: 1.35;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(194, 214, 232, 0.10);
}

.mtag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  background: rgba(194, 214, 232, 0.08);
  border: 1px solid rgba(194, 214, 232, 0.14);
  color: rgba(226, 234, 245, 0.82);
}

.modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(194, 214, 232, 0.10);
}

.modal-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.modal-btn-primary {
  background: #FFFFFF;
  color: #0B0F17;
  border: 1px solid #FFFFFF;
}

.modal-btn-primary:hover {
  transform: translateY(-2px);
  background: var(--ice-pale);
  border-color: var(--ice-pale);
}

.modal-btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(226, 234, 245, 0.82);
  border: 1px solid rgba(194, 214, 232, 0.16);
}

.modal-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
}

/* Polaroid Lightbox */
.polaroid-dialog {
  max-width: 520px;
  padding: 16px;
  background: #0B0E14;
  border-color: rgba(194, 214, 232, 0.25);
}

.polaroid-modal-card {
  border-radius: 18px;
  overflow: hidden;
}

.pm-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: #000000;
  border-radius: 12px;
  overflow: hidden;
}

.pm-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pm-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 8px 8px;
  color: #F8FAFC;
}

.pm-title {
  font-size: 1.05rem;
  font-weight: 600;
}

.pm-sub {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--ice-glass);
  margin-top: 4px;
}

.pm-elevation {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ice);
  background: rgba(194, 214, 232, 0.12);
  border: 1px solid rgba(194, 214, 232, 0.22);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.polaroid-modal-card {
  border-radius: 18px;
  overflow: hidden;
  transform: perspective(1200px) scale(0.88) translateY(36px) rotate(-2.5deg);
  opacity: 0;
  transition:
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.34s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.is-open .polaroid-modal-card {
  transform: perspective(1200px) scale(1) translateY(0) rotate(-1.5deg);
  opacity: 1;
}

/* Motion stays on regardless of prefers-reduced-motion (owner's call). */

