/* ═══════════════════════════════════════════════════════════
   b333fy.com — v2 Design System
   Midnight Steel × Ice Blue
   ═══════════════════════════════════════════════════════════ */

/* ─── TOKENS ──────────────────────────────────────────────── */
:root {
  --bg:         #080c14;
  --bg-mid:     #0d1623;
  --bg-card:    #111d2e;
  --blue:       #7dc4f8;
  --blue-glow:  rgba(125,196,248,0.15);
  --blue-glow2: rgba(125,196,248,0.06);
  --border:     rgba(125,196,248,0.13);
  --text:       #eef3f8;
  --text-muted: #6b8faa;
  --text-dim:   #2e4a60;
  --nav-h:      66px;
  --ff-d:       'Montserrat', sans-serif;
  --ff-b:       'Raleway', sans-serif;
  --ease-expo:  cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── RESET & BASE ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text);
  font-family: var(--ff-b); font-weight: 300;
  line-height: 1.7; overflow-x: hidden;
}
/* Film grain overlay */
body::before {
  content: ''; position: fixed; inset: 0; z-index: 9000; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.03; background-size: 180px;
}
a { color: inherit; text-decoration: none; }

/* ─── SPEEDOMETER CURSOR ──────────────────────────────────── */
#cursor-spedo { display: none; }
@media (pointer: fine) {
  body { cursor: none; }
  #cursor-spedo { display: block; }
}
#cursor-spedo {
  position: fixed; pointer-events: none; z-index: 10000;
  width: 64px; height: 50px;
  filter: drop-shadow(0 0 6px rgba(125,196,248,0.5));
}

/* ─── NAV ─────────────────────────────────────────────────── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h); display: flex; align-items: center;
  padding: 0 clamp(1rem, 5vw, 3.5rem);
  background: rgba(8,12,20,0.9);
  backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: var(--ff-d); font-weight: 900; font-size: 1.15rem;
  letter-spacing: 0.08em; text-transform: uppercase; flex-shrink: 0;
  display: flex; align-items: center; gap: 0.6rem;
  text-decoration: none; color: inherit;
}
.nav-logo img { height: 32px; width: 32px; object-fit: contain; }
.nav-logo em { font-style: normal; color: var(--blue); }
.nav-links {
  display: flex; gap: clamp(1rem, 2.5vw, 2rem);
  margin-left: auto; list-style: none;
}
.nav-links a {
  font-family: var(--ff-d); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted);
  transition: color .25s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -5px;
  width: 0; height: 1px; background: var(--blue);
  transition: width .35s var(--ease-expo);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.nav-active { color: var(--blue); pointer-events: none; cursor: default; }
.nav-links a.nav-active::after { width: 100%; background: var(--blue); }

/* Dropdown parent */
.nav-links li { position: relative; }
.nav-links .has-drop > a::before {
  content: '▾'; position: absolute; right: -13px; top: 50%;
  transform: translateY(-50%); font-size: 0.6rem;
  color: var(--text-dim); transition: color .25s, transform .3s;
}
.nav-links .has-drop:hover > a::before { color: var(--blue); transform: translateY(-50%) rotate(180deg); }

/* Dropdown panel */
.nav-drop {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: rgba(8,12,20,0.96);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border); border-radius: 4px;
  min-width: 190px; padding: 0.5rem 0;
  padding-top: 16px;
  opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .3s var(--ease-expo);
  z-index: 2000;
}
.nav-drop::before {
  content: ''; position: absolute; top: 11px; left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 8px; height: 8px;
  background: rgba(8,12,20,0.96);
  border-left: 1px solid var(--border); border-top: 1px solid var(--border);
}
.nav-links .has-drop:hover .nav-drop { opacity: 1; pointer-events: all; transform: translateX(-50%) translateY(0); }
.nav-drop a {
  display: block; padding: 0.55rem 1.2rem;
  font-family: var(--ff-d); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted); white-space: nowrap;
  transition: color .2s, padding-left .2s, background .2s;
  position: static;
}
.nav-drop a::after { display: none; }
.nav-drop a:hover { color: var(--blue); padding-left: 1.6rem; background: rgba(125,196,248,0.05); }
.nav-drop .drop-divider { height: 1px; background: var(--border); margin: 0.35rem 1rem; }

/* Burger button */
#burger {
  display: none; margin-left: auto; background: none; border: none;
  padding: 8px; cursor: pointer; flex-direction: column; gap: 5px;
}
#burger span {
  display: block; width: 24px; height: 1.5px;
  background: var(--text-muted); border-radius: 2px;
  transition: transform .3s, opacity .3s, background .3s;
}
#burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); background: var(--blue); }
#burger.open span:nth-child(2) { opacity: 0; }
#burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); background: var(--blue); }

/* Mobile menu */
#mobile-menu {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: rgba(8,12,20,0.97); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border); z-index: 999;
  padding: 1.5rem clamp(1rem, 5vw, 3.5rem) 2rem;
  max-height: calc(100svh - var(--nav-h)); overflow-y: auto;
  transform: translateY(-10px); opacity: 0;
  transition: transform .35s var(--ease-expo), opacity .3s;
}
#mobile-menu.open { transform: translateY(0); opacity: 1; }
#mobile-menu ul { list-style: none; display: flex; flex-direction: column; }
#mobile-menu li a {
  display: block; padding: 0.9rem 0;
  font-family: var(--ff-d); font-size: 1rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted);
  border-bottom: 1px solid rgba(125,196,248,0.07);
  transition: color .25s, padding-left .25s;
}
#mobile-menu li a:hover { color: var(--blue); padding-left: 8px; }
#mobile-menu li:last-child a { border-bottom: none; }

/* ─── HERO ────────────────────────────────────────────────── */
#hero {
  position: relative; height: 100svh; min-height: 580px; overflow: hidden;
  /*
   * Grid replaces flex-end to guarantee the hero-content never rises into
   * the bubble zone, regardless of viewport height.
   *
   * Row 1 (bubble zone): clamp(17rem, 23vw, 23rem)
   *   floor 17rem = 272px — covers narrow desktops where 23vw < 272px.
   *   23vw at 1366px = 314px — clears bubbleLeft bottom (~302px) by 12px.
   *   cap 23rem = 368px — prevents excessive dead space at very wide viewports.
   *
   * Row 2 (content zone): 1fr — all remaining space, hero-content lives here.
   *
   * All siblings (hero-bg, bubbles, hero-scroll) are position:absolute so
   * they are out of grid flow and completely unaffected by this change.
   */
  display: grid;
  grid-template-rows: clamp(17rem, 23vw, 23rem) 1fr;
  padding: 0 clamp(1.2rem, 7vw, 6rem);
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 45%; background-repeat: no-repeat;
  transition: opacity 2s ease;
}
#heroBgA { z-index: 0; opacity: 1; }
#heroBgB { z-index: 1; opacity: 0; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(110deg, rgba(8,12,20,0.92) 0%, rgba(8,12,20,0.55) 45%, rgba(8,12,20,0.1) 75%),
    linear-gradient(to top, rgba(8,12,20,1) 0%, rgba(8,12,20,0.5) 35%, transparent 58%);
}
.hero-stripe {
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px; z-index: 3;
  background: linear-gradient(to bottom, transparent 5%, var(--blue) 35%, var(--blue) 70%, transparent 95%);
}
.hero-content {
  position: relative; z-index: 4; max-width: 960px;
  /* Explicitly place in Row 2 (content zone) — without this, grid auto-placement
     puts hero-content into Row 1 (the bubble zone) since all other siblings
     are position:absolute and out of grid flow. */
  grid-row: 2;
  /* Anchor to the bottom of Row 2 (replaces justify-content:flex-end) */
  align-self: end;
  /*
   * Bottom padding is now height-responsive (svh) so it shrinks on short
   * viewports, recovering vertical space that keeps all content visible.
   * At 668px svh: 5svh = 33px (≈ 2rem floor — keeps text off the very edge).
   * At 768px svh: 5svh = 38px. At 1080px svh: 5svh = 54px.
   */
  padding-bottom: clamp(2rem, 5svh, 5rem);
}
.hero-eyebrow {
  font-family: var(--ff-d); font-size: 0.63rem; font-weight: 700;
  letter-spacing: 0.42em; text-transform: uppercase; color: var(--blue);
  margin-bottom: 1.4rem; display: flex; align-items: center; gap: 12px;
  animation: fadeSlideX .9s var(--ease-expo) .2s both;
}
.hero-eyebrow::before { content: ''; display: block; width: 28px; height: 1px; background: var(--blue); }
.hero-headline {
  font-family: var(--ff-d); font-weight: 900;
  font-size: clamp(3.2rem, 10vw, 10rem); line-height: 0.88;
  letter-spacing: -0.04em; text-transform: uppercase;
  animation: fadeSlideY 1.1s var(--ease-expo) .35s both;
}
.hero-headline .hl-ghost { display: block; -webkit-text-stroke: 2px rgba(238,243,248,0.2); color: transparent; }
.hero-headline .hl-solid { display: block; color: var(--blue); text-shadow: 0 0 80px rgba(125,196,248,0.35); }
.hero-sub {
  margin-top: 2rem; font-family: var(--ff-b); font-weight: 300;
  font-size: clamp(0.7rem, 1.5vw, 0.82rem); letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--text-muted);
  animation: fadeSlideY .8s var(--ease-expo) .6s both;
}
.hero-sub span { transition: color .25s; }
.hero-sub span:hover { color: var(--blue); }

/* Hero bubbles */
.hero-bubble {
  position: absolute; z-index: 4;
  background: rgba(238,243,248,0.93);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-radius: clamp(6px, 1vw, 12px);
  padding: clamp(.6rem, 1.8vw, 1.3rem) clamp(.75rem, 2vw, 1.5rem);
  width: clamp(160px, 26vw, 340px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
  color: #0d1623;
}
#bubbleLeft {
  top: clamp(4.8rem, 8vw, 7rem); left: clamp(1rem, 4vw, 3.5rem);
  width: clamp(200px, 30vw, 380px);
  animation: fadeIn .8s .6s both;
}
.bubble-heading {
  font-family: var(--ff-d); font-weight: 700;
  font-size: clamp(0.6rem, 1.1vw, 0.78rem);
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--blue); margin-bottom: clamp(0.2rem, 0.4vw, 0.35rem);
}
.bubble-name {
  font-family: var(--ff-d); font-weight: 900;
  font-size: clamp(0.75rem, 1.4vw, 1.05rem);
  letter-spacing: 0.04em; text-transform: uppercase;
  color: #0d1623; margin-bottom: clamp(0.35rem, 0.7vw, 0.65rem); line-height: 1.25;
}
.bubble-body {
  font-family: var(--ff-d); font-weight: 400;
  font-size: clamp(0.68rem, 1.15vw, 0.9rem);
  line-height: 1.6; color: #2e3f52;
}
.bubble-body p + p { margin-top: 0.55em; }
#bubbleRight {
  top: clamp(4.8rem, 8vw, 7rem); right: clamp(1rem, 4vw, 3.5rem);
  animation: fadeIn .8s .9s both;
  transition: opacity .35s ease;
}
#bubbleRight.fading { opacity: 0; }
.bubble-caption {
  font-family: var(--ff-b); font-weight: 400;
  font-size: clamp(0.6rem, 1vw, 0.82rem);
  line-height: 1.6; color: #0d1623;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute; bottom: 2rem; right: clamp(1.2rem, 5vw, 4rem); z-index: 4;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  animation: fadeIn .9s 1.2s both;
}
.scroll-bar { width: 1px; height: 50px; background: linear-gradient(to bottom, var(--blue), transparent); animation: bar 2.2s ease-in-out infinite; }
@keyframes bar { 0%,100%{opacity:.2;transform:scaleY(.8) translateY(-3px)}50%{opacity:1;transform:scaleY(1) translateY(0)} }
.scroll-label { font-family: var(--ff-d); font-size: 0.55rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--text-dim); writing-mode: vertical-rl; }

/* ─── SHARED COMPONENTS ───────────────────────────────────── */
.eyebrow {
  font-family: var(--ff-d); font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.42em; text-transform: uppercase; color: var(--blue);
  display: flex; align-items: center; gap: 14px; margin-bottom: 0.9rem;
}
.eyebrow::after { content: ''; display: block; width: 44px; height: 1px; background: var(--blue); }

/* ─── ABOUT SECTION ───────────────────────────────────────── */
#about {
  padding: clamp(4rem, 11vw, 9rem) clamp(1.2rem, 5vw, 3.5rem);
  display: grid; grid-template-columns: 1fr 1.7fr;
  gap: clamp(2.5rem, 7vw, 6rem); align-items: center;
  max-width: 1380px; margin: 0 auto;
}
@media (max-width: 860px) { #about { grid-template-columns: 1fr; } }

.about-visual { display: flex; flex-direction: column; align-items: center; }
.about-frame { position: relative; width: min(280px, 88%); }
.about-frame::before {
  content: ''; position: absolute; top: -18px; left: -18px; right: 18px; bottom: 18px;
  border: 1px solid var(--border); border-radius: 50%; z-index: 0;
}
.about-frame::after {
  content: ''; position: absolute; top: 18px; left: 18px; right: -18px; bottom: -18px;
  background: radial-gradient(circle, var(--blue-glow2) 0%, transparent 70%);
  border-radius: 50%; z-index: 0;
}
.about-circle {
  position: relative; z-index: 1; width: 100%; aspect-ratio: 1;
  height: 0; padding-bottom: 100%; /* fallback for older mobile browsers */
  border-radius: 50%; overflow: hidden;
  border: 2px solid rgba(125,196,248,0.25); background: var(--bg-card);
}
@supports (aspect-ratio: 1) {
  .about-circle { height: auto; padding-bottom: 0; }
}
.about-circle img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.about-pills { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 1.8rem; justify-content: center; max-width: 320px; }
.pill {
  font-family: var(--ff-d); font-size: 0.57rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 5px 11px; border: 1px solid var(--border); border-radius: 2px;
  color: var(--text-muted); transition: border-color .3s, color .3s;
}
.pill:hover { border-color: var(--blue); color: var(--blue); }

.about-title {
  font-family: var(--ff-d); font-weight: 900;
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  letter-spacing: -0.03em; text-transform: uppercase; line-height: 0.92; margin-bottom: 0.6rem;
}
.about-title em { font-style: normal; color: var(--blue); }
.about-role { font-family: var(--ff-b); font-size: 0.85rem; font-weight: 300; color: var(--text-muted); letter-spacing: 0.1em; margin-bottom: 1.8rem; }
.about-rule { width: 44px; height: 2px; background: var(--blue); margin-bottom: 1.8rem; }
.about-bio { font-family: var(--ff-b); font-size: 0.93rem; font-weight: 300; line-height: 1.9; color: rgba(238,243,248,0.7); }
.about-bio p + p { margin-top: 1.1em; }
.about-bio strong { font-weight: 500; color: var(--text); }
.stats-row {
  display: flex; gap: 2.5rem; margin-top: 2.5rem;
  padding-top: 2rem; border-top: 1px solid rgba(125,196,248,0.08); flex-wrap: wrap;
}
.stat-num { font-family: var(--ff-d); font-size: 2.1rem; font-weight: 900; color: var(--blue); line-height: 1; text-shadow: 0 0 30px rgba(125,196,248,0.3); }
.stat-label { font-family: var(--ff-d); font-size: 0.57rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-dim); margin-top: 5px; }

/* ─── PASSIONS SECTION (hidden for now) ──────────────────── */
#passions { display: none; padding: clamp(4rem, 10vw, 8rem) clamp(1.2rem, 5vw, 3.5rem); }
.passions-header { margin-bottom: clamp(2rem, 4vw, 3rem); }
.passions-title { font-family: var(--ff-d); font-weight: 900; font-size: clamp(1.9rem, 4vw, 3.5rem); letter-spacing: -0.03em; text-transform: uppercase; line-height: 1; }
.passions-title em { font-style: normal; color: var(--blue); }
.cards-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
@media (max-width: 1100px) { .cards-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .cards-grid { grid-template-columns: 1fr; } }
.pcard { height: clamp(340px, 45vh, 500px); border-radius: 4px; overflow: hidden; position: relative; background: var(--bg-card); border: 1px solid rgba(125,196,248,0.07); transition: border-color .4s; animation: fadeScaleIn .7s var(--ease-expo) both; }
.pcard:hover { border-color: rgba(125,196,248,0.3); }
.pcard:hover .pcard-img { transform: scale(1.07); }
.pcard:hover .pcard-reveal { transform: translateY(0); }
.pcard:hover .pcard-num { opacity: 0; }
.pcard-img { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .9s var(--ease-expo); animation: kb-center 14s ease-in-out infinite alternate; }
.pcard-grad { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,12,20,0.97) 0%, rgba(8,12,20,0.45) 50%, rgba(8,12,20,0.08) 75%); }
.pcard-num { position: absolute; top: 14px; right: 16px; font-family: var(--ff-d); font-weight: 900; font-size: 4.5rem; line-height: 1; color: rgba(125,196,248,0.07); letter-spacing: -0.05em; transition: opacity .4s; user-select: none; }
.pcard-base { position: absolute; bottom: 0; left: 0; right: 0; z-index: 1; padding: 1.3rem 1.5rem 1.5rem; }
.pcard-icon { font-size: 1.3rem; margin-bottom: 0.5rem; line-height: 1; }
.pcard-title { font-family: var(--ff-d); font-size: 1rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.pcard-reveal { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.3rem 1.5rem 1.5rem; background: linear-gradient(to top, rgba(11,22,40,0.97) 0%, rgba(11,22,40,0.7) 55%, transparent 90%); transform: translateY(100%); transition: transform .6s var(--ease-expo); }
.pcard-reveal-icon { font-size: 1.5rem; margin-bottom: 0.45rem; }
.pcard-reveal-title { font-family: var(--ff-d); font-size: 1.05rem; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); margin-bottom: 0.45rem; }
.pcard-reveal-bar { width: 28px; height: 2px; background: var(--blue); margin-bottom: 0.75rem; }
.pcard-reveal-desc { font-family: var(--ff-b); font-size: 0.78rem; font-weight: 300; color: rgba(238,243,248,0.68); line-height: 1.6; }

/* ─── SPOTLIGHT SECTION (hidden for now) ─────────────────── */
#spotlight {
  display: none;
  position: relative; min-height: 80vh; align-items: center; justify-content: center; overflow: hidden;
}
.spotlight-bg { position: absolute; inset: 0; background-size: cover; filter: brightness(0.12) saturate(0.3) hue-rotate(200deg); animation: kb-top-right 20s ease-in-out infinite alternate; }
.spotlight-vignette { position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 25%, rgba(8,12,20,0.65) 65%, rgba(8,12,20,0.97) 100%); }
.spotlight-content { position: relative; z-index: 2; text-align: center; padding: clamp(4rem, 10vw, 8rem) clamp(1.5rem, 6vw, 4rem); max-width: 900px; display: flex; flex-direction: column; align-items: center; }
.spot-over { font-family: var(--ff-d); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.5em; text-transform: uppercase; color: var(--blue); margin-bottom: 2rem; }
.spot-quote { font-family: var(--ff-d); font-weight: 900; font-size: clamp(2.8rem, 8vw, 8.5rem); letter-spacing: -0.04em; text-transform: uppercase; line-height: 0.88; color: var(--text); }
.spot-quote em { font-style: normal; display: block; color: var(--blue); text-shadow: 0 0 80px rgba(125,196,248,0.4); }
.spot-rule { width: 120px; height: 1px; background: var(--blue); margin: 2rem 0 1.5rem; }
.spot-cap { font-family: var(--ff-b); font-size: 0.85rem; font-weight: 300; letter-spacing: 0.12em; color: var(--text-muted); }

/* ─── FOOTER ──────────────────────────────────────────────── */
footer {
  border-top: 1px solid rgba(125,196,248,0.08);
  padding: clamp(2rem, 5vw, 3rem) clamp(1.2rem, 5vw, 3.5rem);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.2rem;
}
.footer-brand { font-family: var(--ff-d); font-size: 0.82rem; font-weight: 900; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-dim); }
.footer-brand em { font-style: normal; color: var(--blue); }
.footer-copy { font-family: var(--ff-b); font-size: 0.7rem; color: var(--text-dim); letter-spacing: 0.1em; }
.footer-socials { display: flex; gap: 0.8rem; }
.soc {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(125,196,248,0.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim);
  transition: border-color .3s, color .3s, transform .3s, box-shadow .3s;
}
.soc:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-3px); box-shadow: 0 4px 18px rgba(125,196,248,0.15); }

/* ─── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 780px) { .nav-links { display: none; } #burger { display: flex; } }
@media (max-width: 560px) { footer { flex-direction: column; } .stats-row { gap: 1.5rem; } }

/* ─── HERO BUBBLES: short desktop viewport ────────────────── */
/* With the grid layout the structural overlap is already impossible.
   These rules are a UX polish layer: they shrink the content on common
   laptop heights (~668px svh) so everything fits visibly in Row 2. */
@media (min-width: 701px) and (max-height: 720px) {
  #bubbleLeft .bubble-body p:nth-child(2) { display: none; }
  .hero-headline { font-size: clamp(2.8rem, 8vw, 8rem); }
  .hero-sub { margin-top: 1.2rem; }
}

/* ─── HERO BUBBLES: mobile ────────────────────────────────── */
@media (max-width: 700px) {
  /* Hide the right caption bubble — not enough room */
  #bubbleRight { display: none; }

  /* Shrink the left bubble and pin it to top-left */
  #bubbleLeft {
    width: clamp(150px, 52vw, 240px);
    top: clamp(3.5rem, 6vw, 5rem);
    left: clamp(0.75rem, 3vw, 1.5rem);
    padding: 0.55rem 0.8rem;
  }
  .bubble-name { font-size: clamp(0.62rem, 2.6vw, 0.8rem); }
  .bubble-body { font-size: clamp(0.58rem, 2.4vw, 0.75rem); }

  /* Override the desktop bubble zone row — the mobile bubble is shorter
     (p2 hidden, smaller fonts) so it needs less guaranteed Row 1 height.
     Mobile bubble bottom ≈ 133px; clamp floor of 10rem = 160px clears it. */
  #hero { grid-template-rows: clamp(10rem, 35vw, 14rem) 1fr; }

  /* Cancel any page-specific left margin (e.g. Cars page override) */
  .hero-content { margin-left: 0; }

  /* Shorten the bubble — removes the long second paragraph so the
     mobile bubble height is roughly halved. */
  #bubbleLeft .bubble-body p:nth-child(2) { display: none; }
}

/* ─── KEYFRAMES ───────────────────────────────────────────── */
@keyframes fadeSlideX  { from { opacity:0; transform:translateX(-20px); } to { opacity:1; transform:translateX(0); } }
@keyframes fadeSlideY  { from { opacity:0; transform:translateY(40px); }  to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn      { from { opacity:0; } to { opacity:1; } }
@keyframes fadeScaleIn { from { opacity:0; transform:scale(.9) translateY(20px); } to { opacity:1; transform:scale(1) translateY(0); } }

@keyframes kb-bottom-left  { 0% { transform:scale(1) translate(0,0); transform-origin:16% 84%; } 100% { transform:scale(1.25) translate(-20px,15px); transform-origin:left bottom; } }
@keyframes kb-bottom-right { 0% { transform:scale(1) translate(0,0); transform-origin:84% 84%; } 100% { transform:scale(1.2)  translate(15px,12px);  transform-origin:right bottom; } }
@keyframes kb-top-left     { 0% { transform:scale(1) translate(0,0); transform-origin:20% 20%; } 100% { transform:scale(1.2)  translate(-14px,-12px); transform-origin:left top; } }
@keyframes kb-top-right    { 0% { transform:scale(1) translate(0,0); transform-origin:80% 20%; } 100% { transform:scale(1.22) translate(14px,-12px);  transform-origin:right top; } }
@keyframes kb-center       { 0% { transform:scale(1);    transform-origin:center; } 100% { transform:scale(1.18); transform-origin:center; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
