/* ==========================================================================
   Saurabh Yadav — portfolio
   Hand-built HTML/CSS replica of the Framer site (saurabhyadav.framer.website)
   Breakpoints mirror Framer: desktop ≥1200, tablet 810–1199, phone ≤809
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face { font-family: "Satoshi"; src: url("../fonts/Satoshi-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("../fonts/Satoshi-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("../fonts/Satoshi-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* ---------- Colour tokens (Framer colour styles) ---------- */
:root {
  --bg: #f6f6f3;
  --heading: #111114;
  --text: #5c5c64;
  --ui: #ffffff;
  --border: #11111414;
  --accent: #eaeaec;
  --blue: #3458b0;

  --font: "Satoshi", "Inter", system-ui, -apple-system, sans-serif;
  --serif: "Instrument Serif", "Playfair Display", Georgia, serif;
  --pixel: "Pixelify Sans", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --btn-shadow: 0px 4px 10px -2px rgba(0, 0, 0, 0.05), 0px 2px 2px -1px rgba(0, 0, 0, 0.1), 0px 0px 0px 1px rgba(41, 41, 41, 0.12);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0a0a;
    --heading: #f5f5f8;
    --text: #ababab;
    --ui: #121214;
    --border: #ffffff1a;
    --accent: #292929;
    --blue: #cadcfc;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0a0a;
  --heading: #f5f5f8;
  --text: #ababab;
  --ui: #121214;
  --border: #ffffff1a;
  --accent: #292929;
  --blue: #cadcfc;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--heading);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
em.serif { font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: -0.01em; }

/* View-transition wipe used by the theme toggle */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-old(root) { z-index: 1; }
::view-transition-new(root) { z-index: 2; }

/* Appear-on-load (Framer "appear" effect: fade up 40px) */
.appear { opacity: 0.001; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); will-change: transform; }
.appear.in { opacity: 1; transform: none; }

/* Scroll reveal (About page) */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .9s var(--ease) var(--d, 0s), transform 1.1s var(--ease) var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* Card border: 1px hairline that fades toward the bottom */
.card-border {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  border: 1px solid var(--border); border-radius: inherit;
  -webkit-mask: linear-gradient(#000 0%, #00000029 82.8442%);
          mask: linear-gradient(#000 0%, #00000029 82.8442%);
}

/* ==========================================================================
   Site header (fixed; glides into a frosted pill on scroll)
   ========================================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: center; pointer-events: none;
  font-family: var(--font);
}
.sh-inner {
  --sh-pad: 64px;
  pointer-events: auto;
  width: min(1200px, 100%);
  height: 72px;
  margin-top: 0;
  padding: 0 var(--sh-pad);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border-radius: 0;
  background: transparent;
  border: 1px solid transparent;
  box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
  -webkit-backdrop-filter: blur(0px);
          backdrop-filter: blur(0px);
  transition: width .6s var(--ease), height .6s var(--ease), margin-top .6s var(--ease), padding .6s var(--ease),
              border-radius .6s var(--ease), background-color .6s var(--ease), border-color .6s var(--ease),
              box-shadow .6s var(--ease), backdrop-filter .6s var(--ease);
}
.site-header.is-pill .sh-inner {
  --sh-pad: 28px;
  width: min(640px, calc(100% - 24px));
  height: 60px;
  margin-top: 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 68%, transparent);
  border-color: var(--border);
  box-shadow: 0 12px 32px -14px rgba(0, 0, 0, 0.45), 0 2px 6px -2px rgba(0, 0, 0, 0.18);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
          backdrop-filter: blur(18px) saturate(1.6);
}
.sh-logo {
  font-family: var(--pixel); font-size: 24px; font-weight: 400; letter-spacing: -0.02em; line-height: 1.5;
  color: var(--heading); text-decoration: none; white-space: nowrap;
  transition: opacity .3s var(--ease);
}
.sh-right { display: flex; align-items: center; gap: 20px; }
.sh-link {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--heading); text-decoration: none;
  font-size: 16px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap;
  transition: opacity .3s var(--ease);
}
.sh-link .sh-caret { transition: transform .4s var(--ease); }
.sh-link:hover .sh-caret { transform: translateX(3px); }
.sh-link:hover, .sh-logo:hover { opacity: .75; }

/* Theme toggle (plain icon variant, 26px) */
.theme-toggle {
  position: relative; width: 26px; height: 26px; padding: 0;
  border: none; border-radius: 999px; background: transparent;
  color: var(--heading); cursor: pointer; overflow: hidden;
  transition: transform .2s ease;
}
.theme-toggle:active { transform: scale(0.92); }
.theme-toggle span {
  position: absolute; inset: 0; display: grid; place-items: center;
  transition: opacity .35s ease, transform .5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.theme-toggle .tt-sun  { opacity: 0; transform: rotate(-90deg) scale(0.5); }
.theme-toggle .tt-moon { opacity: 1; transform: rotate(0deg) scale(1); }
.theme-toggle.is-light .tt-sun  { opacity: 1; transform: rotate(0deg) scale(1); }
.theme-toggle.is-light .tt-moon { opacity: 0; transform: rotate(90deg) scale(0.5); }

/* ==========================================================================
   Page shell
   ========================================================================== */
.page { width: 100%; display: flex; flex-direction: column; align-items: center; background: var(--bg); }
.container {
  width: 100%; max-width: 1200px;
  padding: 104px 64px 64px;
  display: flex; flex-direction: column; align-items: center; gap: 24px;
}

/* ---------- Shared buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 12px 20px; margin: 0;
  border: none; border-radius: 999px;
  background: #fff; color: #0d0d0d; box-shadow: var(--btn-shadow);
  font-family: var(--font); font-size: 15px; font-weight: 500; letter-spacing: -0.01em; line-height: 24px;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  -webkit-appearance: none; appearance: none;
  transition: transform .5s var(--ease), opacity .3s var(--ease);
}
.btn:hover { transform: translateY(-1px); opacity: .92; }
.btn:active { transform: translateY(0) scale(.98); }
.btn:focus-visible { outline: 2px solid #3B82F6; outline-offset: 3px; }
.btn-ghost { background: transparent; color: var(--heading); box-shadow: none; border: 1px solid var(--border); }

.social {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 999px;
  color: var(--heading); background: var(--bg);
  box-shadow: 0px 4px 10px -2px rgba(0, 0, 0, 0.1), 0px 2px 2px -1px rgba(0, 0, 0, 0.1), 0px 0px 0px 1px var(--border);
  transition: transform .4s var(--ease), opacity .3s var(--ease);
}
.social:hover { transform: translateY(-1px); opacity: .85; }
.social svg { width: 18px; height: 18px; }
.social.lg { width: 48px; height: 48px; }

/* ==========================================================================
   Home — Introduction
   ========================================================================== */
.intro {
  width: 100%;
  display: grid; grid-template-columns: repeat(3, minmax(200px, 1fr)); gap: 24px;
}
.hero-card {
  grid-column: span 2;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: flex-start; gap: 32px;
  padding: 48px; border-radius: 48px; background: var(--ui);
}
.hero-info { width: 100%; display: flex; align-items: center; justify-content: space-between; }
.persona { display: flex; align-items: center; gap: 8px; }
.persona img { width: 38px; height: auto; aspect-ratio: 1; object-fit: contain; }
.persona-name { display: flex; flex-direction: column; gap: 2px; white-space: nowrap; }
.persona-name b { font-size: 15px; font-weight: 700; line-height: 1.3; letter-spacing: -0.02em; color: var(--heading); }
.persona-name span { font-size: 13px; font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; color: var(--text); }
.hero-actions { display: flex; align-items: center; gap: 12px; }
.hero-text { width: 100%; display: flex; flex-direction: column; gap: 24px; }
.h-display {
  margin: 0; font-size: 42px; font-weight: 500; letter-spacing: -0.04em; line-height: 1.1; color: var(--heading);
}
.lead { margin: 0; font-size: 20px; font-weight: 400; letter-spacing: -.015em; line-height: 1.55em; color: var(--text); }

.hero-visual {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 32px;
  padding: 199px 48px; border-radius: 48px; background: #0e0e12;
  height: 100%;
}
.hero-stars {
  position: absolute; top: 0; left: 0; right: -1px; height: 287px; z-index: 0;
  background: var(--ui); overflow: hidden;
  -webkit-mask: linear-gradient(#000 0%, #0000 100%); mask: linear-gradient(#000 0%, #0000 100%);
}
.hero-stars canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.shooting { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.shooting i {
  position: absolute; z-index: 2; width: 100px; height: 1px; border-radius: 2px;
  background: linear-gradient(270deg, hsla(0, 0%, 100%, 0.6) 0%, hsla(0, 0%, 100%, 0) 100%);
  transform-origin: 0 50%;
  animation: shoot 6s linear infinite;
  opacity: 0;
}
.shooting i::after { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 2px; border-radius: 1px; background: rgba(255, 255, 255, .2); }
.shooting i:nth-child(1) { top: -40px; left: -90px;  animation-delay: 0s; }
.shooting i:nth-child(2) { top: 83px;  left: -100px; animation-delay: 1.6s; }
.shooting i:nth-child(3) { top: 10px;  left: -120px; animation-delay: 3.1s; }
.shooting i:nth-child(4) { top: 20px;  left: -111px; animation-delay: 4.5s; }
@keyframes shoot {
  0%   { transform: rotate(22.6deg) translateX(0);     opacity: 0; }
  5%   { opacity: 1; }
  35%  { transform: rotate(22.6deg) translateX(620px); opacity: 0; }
  100% { transform: rotate(22.6deg) translateX(620px); opacity: 0; }
}
.hero-glow {
  position: absolute; top: -335px; right: -51px; z-index: 1;
  filter: blur(64px); pointer-events: none;
  opacity: 0.001; transition: opacity 1.6s var(--ease) .3s;
}
.hero-glow.in { opacity: 1; }
.hero-glow svg { width: 716px; height: 743px; opacity: .2; display: block; }
.hero-visual .bitmoji { position: absolute; left: 0; right: 0; bottom: 0; height: 289px; z-index: 10; }

/* ---------- Animated Bitmoji ---------- */
.bitmoji { position: relative; perspective: 1200px; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.bitmoji .bm-shadow {
  position: absolute; left: 50%; bottom: 2px; width: 44%; height: 12px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0,0,0,.5), transparent); filter: blur(5px);
  transform: translateX(-50%) scale(1); opacity: 0;
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.bitmoji .bm-enter { position: absolute; inset: 0; opacity: 0; transform: translateY(16px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.bitmoji .bm-tilt { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
.bitmoji .bm-drift { position: absolute; inset: 0; animation: bm-drift 7s ease-in-out infinite; }
.bitmoji .bm-lift { position: absolute; inset: 0; transform-origin: 50% 100%; transition: transform .8s var(--ease); }
.bitmoji img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; pointer-events: none; }
.bitmoji .bm-bubble {
  position: absolute; top: 8%; right: 4%; z-index: 2;
  padding: 7px 12px; border-radius: 12px 12px 12px 4px;
  background: rgba(255,255,255,0.96); color: #111114;
  font-family: var(--font); font-size: 12.5px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap;
  box-shadow: 0 6px 20px rgba(0,0,0,.14), 0 0 0 1px rgba(0,0,0,.05);
  opacity: 0; transform: translateY(6px); pointer-events: none;
  transition: opacity .5s var(--ease), transform .7s var(--ease);
}
.bitmoji.in-view .bm-shadow { opacity: .3; }
.bitmoji.in-view .bm-enter { opacity: 1; transform: translateY(0); }
.bitmoji.active .bm-shadow { opacity: .22; transform: translateX(-50%) scale(.9); }
.bitmoji.active .bm-lift { transform: translateY(-6px) scale(1.025) rotate(var(--hover-tilt, 0deg)); }
.bitmoji.active .bm-bubble { opacity: 1; transform: translateY(0); }
@keyframes bm-drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }

/* ==========================================================================
   Home — "What makes me different?"
   ========================================================================== */
.benefit {
  position: relative; overflow: clip; width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 64px;
  padding: 48px; border-radius: 48px; background: var(--ui);
}
.benefit .bitmoji, .connect .bitmoji { flex: none; width: 270px; height: 291px; z-index: 5; }
.benefit-content { flex: 1 0 0; width: 1px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 32px; }
.benefit-stack { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.highlight-p { margin: 0; width: 100%; font-size: 16px; font-weight: 400; line-height: 1.6; letter-spacing: -0.01em; color: var(--text); }
.highlight-p strong { font-weight: 500; color: var(--heading); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* ==========================================================================
   Skills marquee
   ========================================================================== */
.marquee {
  width: 100%; overflow: hidden; padding: 8px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-row { display: flex; gap: 12px; padding-right: 12px; flex-shrink: 0; }
.skill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 999px;
  background: var(--ui); border: 1px solid var(--border); color: var(--heading);
  font-size: 15px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap;
}
.skill i { font-style: normal; opacity: .45; font-size: 12px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   Section header ("Selected work")
   ========================================================================== */
.section-header {
  width: 100%;
  display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  padding: 40px 8px 8px 8px;
}
.section-header > div { display: flex; flex-direction: column; gap: 10px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: #22C55E; box-shadow: 0 0 0 3px rgba(34,197,94,0.18); }
.h-section { margin: 0; font-size: clamp(28px, 4vw, 40px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; color: var(--heading); }
.meta-pill { font-size: 13px; font-weight: 500; color: var(--text); padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); white-space: nowrap; }

/* ==========================================================================
   Work cards
   ========================================================================== */
.work {
  position: relative; width: 100%;
  display: grid; grid-template-columns: repeat(2, minmax(200px, 1fr)); gap: 24px;
}
.work-slot { width: 100%; align-self: start; }
.work-slot.a { height: 395px; }
.work-slot.b { aspect-ratio: 1.32995; }
.work-card {
  position: relative; overflow: hidden;
  width: 100%; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 32px;
  padding: 32px; border-radius: 48px; background: var(--ui);
  text-decoration: none; cursor: pointer;
}
.work-img {
  position: absolute; inset: 0;
  -webkit-mask: linear-gradient(180deg, #000 50%, #0000 90%); mask: linear-gradient(180deg, #000 50%, #0000 90%);
}
.work-img img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .8s var(--ease); }
.work-card:hover .work-img img { transform: scale(1.03); }
.work-card .card-border { -webkit-mask: none; mask: none; }
.work-content { position: relative; isolation: isolate; width: 100%; display: flex; flex-direction: column; gap: 8px; }
.work-content::before {
  content: ""; position: absolute; left: -32px; right: -32px; bottom: -32px; top: -88px; z-index: -1; pointer-events: none;
  background: linear-gradient(to top, var(--ui) 0%, var(--ui) 58%, color-mix(in srgb, var(--ui) 70%, transparent) 80%, transparent 100%);
}
.work-title { width: 100%; display: flex; align-items: center; gap: 12px; }
.work-title h3 { margin: 0; font-size: 24px; font-weight: 500; letter-spacing: -0.04em; line-height: 0.9; color: var(--heading); white-space: pre; }
.work-go {
  width: 28px; height: 28px; border-radius: 999px; flex: none;
  display: grid; place-items: center; color: var(--heading);
  background: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  opacity: 0; transform: translateX(-6px);
  transition: opacity .4s var(--ease), transform .5s var(--ease);
}
.work-go svg { width: 16px; height: 16px; transition: transform .5s var(--ease); }
.work-card:hover .work-go { opacity: 1; transform: none; }
.work-card:hover .work-go svg { transform: rotate(-45deg); }
.work-desc {
  margin: 0; min-height: 48px; font-size: 16px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.5em; color: var(--text);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.desc-phone { display: none; }

/* Shark Tank badge — rotating conic shine around the outline */
@property --stb-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.shark-badge {
  position: absolute; top: 24px; left: 24px; z-index: 10;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 20px 8px 14px; border-radius: 999px;
  border: 1.5px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    conic-gradient(from var(--stb-angle), rgba(17,17,20,.10) 0deg, rgba(17,17,20,.10) 200deg, #FFC53D 250deg, #1E88E5 310deg, rgba(17,17,20,.10) 360deg) border-box;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  white-space: nowrap;
  animation: stb-spin 4s linear infinite;
}
.shark-badge img { height: 22px; width: auto; object-fit: contain; flex-shrink: 0; }
.shark-badge .sep { width: 1px; height: 15px; background: rgba(0,0,0,.12); flex-shrink: 0; }
.shark-badge span:last-child { font-size: 13px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.2; color: #111114; padding-top: 1px; }
@keyframes stb-spin { to { --stb-angle: 360deg; } }

/* ==========================================================================
   "Life is Beautiful" gallery
   ========================================================================== */
.life {
  position: relative; width: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 40px;
  padding: 80px 40px; border-radius: 48px; background: var(--bg);
}
.life-grid { position: absolute; left: 0; right: 0; bottom: 0; height: 531px; z-index: 0; overflow: hidden; pointer-events: none; }
.life-grid img { position: absolute; inset: 0 -653px -271px; width: calc(100% + 1306px); height: calc(100% + 271px); max-width: none; object-fit: contain; opacity: .2; }
.life-title {
  position: relative; margin: 0; max-width: 720px; width: 100%;
  font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 64px; letter-spacing: -2px; line-height: 1.2;
  text-align: center; color: var(--blue);
}
.ticker {
  position: relative; z-index: 1;
  width: min(1048px, 100%); height: 357px;
  display: flex; align-items: center; overflow-x: clip;
  user-select: none; -webkit-user-select: none;
}
.ticker-track { display: flex; align-items: center; gap: 48px; width: max-content; animation: ticker var(--ticker-duration, 60s) linear infinite; }
.ticker-track ul { display: flex; align-items: center; gap: 48px; margin: 0; padding: 0; list-style: none; }
.ticker-track li { flex: none; }
.ph {
  position: relative; overflow: hidden; border-radius: 16px;
  clip-path: inset(0 round 16px); isolation: isolate; backface-visibility: hidden;
  transform: rotate(var(--r, 0deg));
}
.ph img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }
@keyframes ticker { to { transform: translateX(calc(-50% - 24px)); } }

/* ==========================================================================
   Connect card
   ========================================================================== */
.connect {
  position: relative; z-index: 1; width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 64px;
  padding: 48px; border-radius: 48px; background: var(--ui);
}
.connect-content { flex: 1 0 0; width: 1px; display: flex; flex-direction: column; align-items: center; gap: 32px; }
.connect-stack { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.connect-head { width: 100%; display: flex; flex-direction: column; gap: 12px; }
.connect-head p { margin: 0; max-width: 440px; font-size: 16px; font-weight: 400; line-height: 1.6; letter-spacing: -0.01em; color: var(--text); }
.song { width: 100%; height: 175px; }
.song iframe { display: block; width: 100%; max-width: 660px; height: 100%; border: 0; border-radius: 16px; overflow: hidden; background: transparent; }

/* Copy-email pill */
.email-pill {
  height: 51px; padding: 0 10px 0 16px;
  display: inline-flex; align-items: center; gap: 8px;
  border: none; border-radius: 1000px; background: #fff; color: #000;
  cursor: pointer; transition: transform .5s var(--ease);
}
.email-pill:hover { transform: translateY(-1px); }
.email-pill:active { transform: scale(.98); }
.email-pill:focus-visible { outline: 2px solid #3B82F6; outline-offset: 3px; }
.email-text { position: relative; overflow: hidden; display: grid; }
.email-text span {
  grid-area: 1 / 1; font-size: 18px; font-weight: 400; line-height: 130%; letter-spacing: 0; text-align: center; white-space: nowrap;
  transition: transform .5s var(--ease), opacity .4s var(--ease);
}
.email-text .copied { transform: translateY(110%); opacity: 0; }
.email-pill.is-copied .email-text .addr { transform: translateY(-110%); opacity: 0; }
.email-pill.is-copied .email-text .copied { transform: none; opacity: 1; }
.email-icon { width: 31px; height: 31px; border-radius: 1000px; background: #fff; display: grid; place-items: center; flex: none; }
.email-icon svg { width: 19px; height: 19px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { position: relative; z-index: 1; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 32px 64px 0; }
.footer-time { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.clock {
  min-width: 255px; min-height: 16px; text-align: center;
  font-size: 16px; font-weight: 500; letter-spacing: -0.02em; line-height: 1em;
  font-feature-settings: 'tnum'; font-variant-numeric: lining-nums; color: var(--heading);
}
.footer-time small { font-size: 12px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.4em; color: var(--text); }
.footer-socials { display: flex; align-items: center; gap: 12px; }

/* ==========================================================================
   About page
   ========================================================================== */
.ab-root { --ab-gutter: 64px; width: 100%; background: var(--bg); color: var(--heading); padding-top: 104px; padding-bottom: 48px; }
.ab-wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--ab-gutter); display: flex; flex-direction: column; gap: 24px; }
.ab-card { background: var(--ui); border: 1px solid var(--border); border-radius: 32px; }
.ab-p { margin: 0; font-size: 17px; font-weight: 400; line-height: 1.65; letter-spacing: -0.01em; color: var(--text); }
.ab-p.sm { font-size: 15px; }
.ab-p b { color: var(--heading); font-weight: 500; }
.ab-hero { display: grid; grid-template-columns: 1.35fr 1fr; gap: 24px; }
.ab-intro { padding: clamp(28px, 5vw, 48px); display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.ab-h1 { margin: 0; font-size: clamp(34px, 5vw, 52px); font-weight: 500; letter-spacing: -0.035em; line-height: 1.05; color: var(--heading); }
.ab-portrait { position: relative; overflow: hidden; min-height: 380px; background: rgb(14, 14, 18); }
.ab-portrait::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 50% 100%, rgba(120,140,255,0.22), transparent 70%); }
.ab-portrait img { position: absolute; left: 50%; bottom: 0; width: 78%; max-width: 340px; transform: translateX(-50%); animation: ab-drift 7s ease-in-out infinite; }
.ab-location {
  position: absolute; top: 24px; left: 24px; padding: 8px 14px; border-radius: 999px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); color: rgba(255,255,255,0.85);
  font-size: 13px; font-weight: 500; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
@keyframes ab-drift { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-4px); } }
.ab-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ab-fact { padding: 28px 32px; display: flex; align-items: baseline; gap: 14px; }
.ab-fact strong { font-size: 44px; font-weight: 500; letter-spacing: -0.04em; line-height: 1; color: var(--heading); }
.ab-fact span { font-size: 14px; font-weight: 500; line-height: 1.4; color: var(--text); }
.ab-section { padding-top: 48px; }
.ab-title { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.ab-principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ab-principle { padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.ab-icon { width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; background: var(--accent); color: var(--heading); font-size: 20px; }
.ab-h3 { margin: 0; font-size: 20px; font-weight: 500; letter-spacing: -0.02em; color: var(--heading); }
.ab-principle .ab-h3 { margin-top: 8px; }
.ab-jobs { padding: 8px clamp(24px, 4vw, 40px); }
.ab-job { display: grid; grid-template-columns: 220px 1fr; gap: 32px; padding: 32px 0; }
.ab-job + .ab-job { border-top: 1px solid var(--border); }
.ab-when { display: flex; flex-direction: column; gap: 6px; }
.ab-when span:first-child { font-size: 14px; font-weight: 500; color: var(--text); }
.ab-when .place { font-size: 13px; color: var(--text); opacity: .8; }
.ab-current { margin-top: 4px; align-self: flex-start; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; color: #16A34A; background: rgba(34,197,94,0.12); }
.ab-what { display: flex; flex-direction: column; gap: 12px; }
.ab-what h3 { margin: 0; font-size: 22px; font-weight: 500; letter-spacing: -0.02em; color: var(--heading); }
.ab-what h3 span { color: var(--text); font-weight: 400; }
.ab-what ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; }
.ab-what li { font-size: 15px; line-height: 1.65; letter-spacing: -0.01em; color: var(--text); }
.ab-two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ab-edu { padding: 32px; display: flex; flex-direction: column; gap: 10px; }
.ab-edu > span:first-child { font-size: 14px; font-weight: 500; color: var(--text); }
.ab-school { font-size: 15px; font-weight: 500; color: var(--heading); opacity: .75; }
.ab-skills { padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; gap: 28px; }
.ab-group { display: flex; flex-direction: column; gap: 12px; }
.ab-group > span { font-size: 13px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--text); }
.ab-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.ab-pills span { display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 999px; background: var(--accent); color: var(--heading); font-size: 14px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; }
.ab-box { padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.ab-box h3 { margin: 0; font-size: 24px; font-weight: 500; letter-spacing: -0.02em; color: var(--heading); }
.ab-cta { justify-content: space-between; gap: 20px; }
.ab-cta > div:first-child { display: flex; flex-direction: column; gap: 12px; }
.ab-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.ab-footer { padding-bottom: 64px; }

/* ==========================================================================
   404
   ========================================================================== */
.nf { width: 100%; max-width: 1200px; height: 100vh; margin: 0 auto; padding: 64px 64px 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 64px; overflow: hidden; }
.nf-img { width: 213px; aspect-ratio: .927835; -webkit-mask: linear-gradient(#000 60.2882%, #0000 100%); mask: linear-gradient(#000 60.2882%, #0000 100%); }
.nf-img img { width: 100%; height: 100%; object-fit: cover; }
.nf-content { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.nf h1 { margin: 0; font-size: 32px; font-weight: 500; letter-spacing: -0.04em; line-height: 1.1; text-align: center; color: var(--heading); }
.nf-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px;
  border-radius: 10px; background: rgba(13, 13, 13, 0.5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px var(--border);
  color: var(--heading); text-decoration: none; font-size: 14px; font-weight: 500; letter-spacing: -0.01em; line-height: 18px;
  transition: opacity .3s var(--ease), transform .5s var(--ease);
}
:root[data-theme="light"] .nf-btn { background: rgba(255, 255, 255, 0.6); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .nf-btn { background: rgba(255, 255, 255, 0.6); } }
.nf-btn:hover { opacity: .85; }
.nf-btn svg { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.nf-btn:hover svg { transform: translateX(3px); }

/* ==========================================================================
   Tablet 810–1199
   ========================================================================== */
@media (max-width: 1199.98px) {
  .sh-inner { --sh-pad: 32px; }
  .site-header.is-pill .sh-inner { --sh-pad: 24px; }
  .container { padding: 96px 32px 48px; }
  .intro { grid-template-columns: 1fr; }
  .hero-card { grid-column: span 1; }
  .benefit { flex-direction: column; }
  .benefit-content { flex: none; width: 100%; }
  .work { grid-template-columns: 1fr; }
  .work-slot.a { height: 514px; }
  .life { gap: 48px; padding: 64px 40px; }
  .life-title { max-width: 500px; }
  .connect { flex-direction: column; }
  .connect-content { flex: none; width: 100%; }

  .ab-root { --ab-gutter: 32px; }
  .ab-principles { grid-template-columns: 1fr; }
  .ab-job { grid-template-columns: 1fr; gap: 12px; }
}

/* ==========================================================================
   Phone ≤809
   ========================================================================== */
@media (max-width: 809.98px) {
  .sh-inner { --sh-pad: 16px; }
  .site-header.is-pill .sh-inner { --sh-pad: 18px; }
  .sh-right { gap: 16px; }
  .sh-logo { font-size: 20px; }

  .container { gap: 16px; padding: 88px 16px 32px; }
  .hero-card { padding: 48px 32px; }
  .hero-info { flex-direction: column; align-items: flex-start; gap: 24px; }
  .h-display { font-size: 36px; }
  .hero-card .h-display { font-size: 42px; }
  .lead { font-size: 18px; }
  .hero-visual { height: 360px; padding: 0 48px; }
  .benefit { padding: 48px 32px; }

  .work-slot.a, .work-slot.b { height: 395px; aspect-ratio: auto; }
  .work-card { border-radius: 32px; }
  .work-img { -webkit-mask: linear-gradient(180deg, #000 50%, #0000 83.59%); mask: linear-gradient(180deg, #000 50%, #0000 83.59%); }
  .work-go svg { transform: rotate(-45deg); }
  .work-go { opacity: 1; transform: none; }
  .desc-desktop { display: none; }
  .desc-phone { display: -webkit-box; }
  .shark-badge { top: 16px; left: 16px; }

  .life { border-radius: 20px; padding: 48px 16px; }
  .life-title { font-size: 48px; }
  .ticker { height: 300px; }
  .connect { gap: 59px; padding: 48px 32px; }
  .connect-stack { gap: 20px; }
  .email-pill { width: 100%; max-width: 320px; justify-content: space-between; }
  .email-text span { font-size: 16px; }
  .site-footer { padding: 32px 16px 0; }

  .ab-root { --ab-gutter: 16px; padding-top: 88px; }
  .ab-hero, .ab-two { grid-template-columns: 1fr; }
  .ab-facts { grid-template-columns: 1fr; gap: 12px; }

  .nf { padding: 64px 24px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .appear, .reveal { opacity: 1; transform: none; }
}
