/* ============================================================
   DUSAN · PORTFOLIO · ANTIGRAVITY × NIKE EDITION
   ============================================================ */

:root {
  /* Color */
  --bg: #0A0A0A;
  --bg-elev: #111114;
  --bg-paper: #FAFAFA;
  --ink: #F4F4F2;
  --ink-paper: #0A0A0A;
  --mute-1: #B5B5BD;
  --mute-2: #6C6C78;
  --mute-3: #2A2A2F;
  --line: rgba(255,255,255,0.08);
  --line-strong: rgba(255,255,255,0.18);
  --line-paper: rgba(10,10,10,0.10);

  --primary: #7C5CFF;
  --primary-color: #7C5CFF;
  --secondary: #00E5C5;
  --secondary-color: #00E5C5;
  --accent: #FF5C8A;
  --primary-rgb: 124,92,255;
  --gradient-primary: linear-gradient(135deg, #7C5CFF 0%, #00E5C5 100%);
  --gradient-text: linear-gradient(120deg, #7C5CFF 0%, #00E5C5 60%, #FF5C8A 100%);

  /* Type */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-anton: 'Anton', 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Misc */
  --text-primary: var(--ink);
  --text-secondary: var(--mute-1);
  --text-muted: var(--mute-2);
  --border-color: var(--line);
  --border-strong: var(--line-strong);
  --radius: 14px;
  --radius-lg: 24px;
  --radius-full: 999px;

  --ease: cubic-bezier(0.2, 0.9, 0.1, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 200ms var(--ease);
  --transition: 400ms var(--ease);

  --container: 1440px;
  --gutter: clamp(1.5rem, 7vw, 6rem);
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  cursor: none;
}
@media (max-width: 1024px), (pointer: coarse) {
  body { cursor: auto; }
  .cursor, .cursor-dot { display: none !important; }
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
::selection { background: var(--primary); color: white; }

.mono { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--mute-1); }

/* ============================================================
   3D PHYSICS BADGE CANVAS
   ============================================================ */
#badge3d {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 6;
  touch-action: none;
  pointer-events: none; /* JS toggles to 'auto' when hovering the card */
}
#badge3d.is-over { cursor: grab; }
#badge3d.is-dragging { cursor: grabbing; }
@media (max-width: 760px) {
  #badge3d { display: none; }
}

/* ============================================================
   LEGACY (unused) BADGE STYLES — kept for safety, not rendered
   ============================================================ */
.badge-stage {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  overflow: visible;
}
.badge-anchor {
  position: absolute;
  width: 56px; height: 10px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, #d6d6dc 0%, #8a8a94 45%, #38383f 100%);
  box-shadow:
    0 3px 6px rgba(0,0,0,0.6),
    inset 0 1px 1px rgba(255,255,255,0.5),
    inset 0 -1px 1px rgba(0,0,0,0.5);
  transform: translate(-50%, -50%);
  z-index: 6;
}
.badge-anchor::before,
.badge-anchor::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, #555 80%);
  box-shadow: inset 0 -1px 1px rgba(0,0,0,0.5), 0 1px 2px rgba(0,0,0,0.6);
  transform: translateY(-50%);
}
.badge-anchor::before { left: 6px; }
.badge-anchor::after  { right: 6px; }

/* Metal ring where the two cord strands meet at the clip */
.badge-ring {
  position: absolute;
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 3px solid;
  border-image: linear-gradient(180deg, #f0f0f5, #6a6a72) 1;
  background: transparent;
  box-shadow:
    0 2px 4px rgba(0,0,0,0.5),
    inset 0 0 0 1px rgba(0,0,0,0.4);
  transform: translate(-50%, -50%);
  z-index: 9;
  pointer-events: none;
}
.badge-cord {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  overflow: visible;
  pointer-events: none;
}

.badge-card3d {
  position: absolute;
  width: 240px;
  height: 340px;
  transform-origin: 50% 0%;
  pointer-events: auto;
  cursor: grab;
  perspective: 1200px;
  z-index: 7;
  will-change: transform;
  user-select: none;
  -webkit-user-select: none;
}
.badge-card3d:active { cursor: grabbing; }
.badge-card3d.dragging { transition: none; }

.badge-card3d__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 1s cubic-bezier(0.2, 0.9, 0.1, 1);
}
.badge-card3d.flipped .badge-card3d__inner {
  transform: rotateY(180deg);
}

.badge-face {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  padding: 50px 20px 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow:
    0 35px 70px -20px rgba(0,0,0,0.7),
    0 0 60px rgba(124,92,255,0.18),
    inset 0 1px 1px rgba(255,255,255,0.1);
}

/* FRONT */
.badge-face--front {
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(124,92,255,0.28), transparent 55%),
    radial-gradient(140% 100% at 100% 100%, rgba(0,229,197,0.15), transparent 50%),
    linear-gradient(165deg, #1a1a23 0%, #0a0a10 100%);
}

.badge-grad-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: var(--gradient-text);
}

.badge-clip {
  position: absolute;
  top: -22px; left: 50%;
  transform: translateX(-50%);
  width: 70px; height: 28px;
  background:
    linear-gradient(180deg,
      #f1f1f5 0%,
      #c2c2cc 30%,
      #6e6e78 70%,
      #38383f 100%);
  border-radius: 6px 6px 4px 4px;
  box-shadow:
    0 4px 10px rgba(0,0,0,0.55),
    inset 0 1px 2px rgba(255,255,255,0.7),
    inset 0 -2px 3px rgba(0,0,0,0.45);
  z-index: 10;
}
.badge-clip::before {
  content: '';
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 32px; height: 4px;
  background: rgba(0,0,0,0.35);
  border-radius: 999px;
  box-shadow: inset 0 1px 1px rgba(0,0,0,0.5);
}
.badge-clip::after {
  content: '';
  position: absolute;
  top: 100%; left: 50%;
  transform: translate(-50%, -3px);
  width: 36px; height: 14px;
  background: linear-gradient(180deg, #d6d6dc, #76767e);
  border-radius: 4px;
  box-shadow: inset 0 -1px 2px rgba(0,0,0,0.4);
}

.badge-hole {
  position: absolute;
  top: 20px; left: 50%;
  transform: translateX(-50%);
  width: 46px; height: 8px;
  background: radial-gradient(ellipse, #000 0%, #0a0a10 100%);
  border-radius: 999px;
  box-shadow:
    inset 0 2px 3px rgba(0,0,0,1),
    inset 0 -1px 1px rgba(255,255,255,0.08),
    0 1px 0 rgba(255,255,255,0.08);
  z-index: 5;
}

.badge-front__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.badge-brand {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  color: var(--mute-1);
  padding: 0.25rem 0.5rem;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
}
.badge-status__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4ADE80;
  box-shadow: 0 0 8px #4ADE80;
}

.badge-avatar {
  width: 96px; height: 96px;
  margin: 6px auto 14px;
  border-radius: 22px;
  padding: 2px;
  background: var(--gradient-primary);
  box-shadow: 0 12px 28px rgba(124,92,255,0.45);
}
.badge-avatar__inner {
  width: 100%; height: 100%;
  border-radius: 20px;
  background: #0a0a10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-anton);
  font-size: 2.4rem;
  letter-spacing: 0.05em;
  color: #fff;
  background:
    radial-gradient(circle at 30% 30%, rgba(124,92,255,0.4), transparent 60%),
    #0a0a10;
}

.badge-front__body {
  text-align: center;
  margin-bottom: auto;
}
.badge-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.badge-role {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  line-height: 1.45;
  letter-spacing: 0.04em;
  color: var(--mute-1);
  text-transform: uppercase;
}

.badge-front__foot {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--mute-2);
  letter-spacing: 0.05em;
  padding-top: 10px;
  border-top: 1px dashed rgba(255,255,255,0.1);
}

.badge-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg,
    transparent 30%,
    rgba(255,255,255,0.07) 45%,
    rgba(255,255,255,0.13) 50%,
    rgba(255,255,255,0.07) 55%,
    transparent 70%);
  pointer-events: none;
  transform: translateX(-100%);
  transition: transform 1.2s var(--ease);
}
.badge-card3d:hover .badge-shine {
  transform: translateX(100%);
}

/* BACK */
.badge-face--back {
  transform: rotateY(180deg);
  background:
    radial-gradient(120% 90% at 50% 100%, rgba(0,229,197,0.12), transparent 50%),
    linear-gradient(165deg, #14141c 0%, #08080d 100%);
  padding: 50px 22px 22px;
  align-items: center;
}
.badge-back__head {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  color: var(--mute-2);
  margin-bottom: 18px;
}
.badge-back__qr {
  width: 140px; height: 140px;
  padding: 8px;
  background: #fff;
  border-radius: 10px;
  margin-bottom: 18px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}
.qr-grid {
  width: 100%; height: 100%;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  grid-template-rows: repeat(8, 1fr);
  gap: 1px;
}
.qr-grid span { background: #fff; }
.qr-grid span:nth-child(3n),
.qr-grid span:nth-child(5n+1),
.qr-grid span:nth-child(7n+2),
.qr-grid span:nth-child(11n+3) { background: #0a0a10; }
/* QR corner finders */
.qr-grid span:nth-child(-n+3),
.qr-grid span:nth-child(8),
.qr-grid span:nth-child(9),
.qr-grid span:nth-child(10),
.qr-grid span:nth-child(n+11):nth-child(-n+13),
.qr-grid span:nth-child(18),
.qr-grid span:nth-child(19),
.qr-grid span:nth-child(20) { background: #0a0a10; }
.qr-grid span:nth-child(12) { background: #fff; }
.qr-grid span:nth-child(19) { background: #fff; }

.badge-back__info {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  line-height: 1.6;
  color: var(--mute-1);
  letter-spacing: 0.03em;
  margin-bottom: auto;
}
.badge-back__info p:first-child {
  color: var(--ink);
  font-weight: 700;
}
.badge-strip {
  width: 100%;
  height: 32px;
  margin-top: 16px;
  background:
    repeating-linear-gradient(135deg,
      rgba(124,92,255,0.6) 0px, rgba(124,92,255,0.6) 4px,
      rgba(0,229,197,0.6) 4px, rgba(0,229,197,0.6) 8px,
      rgba(255,92,138,0.6) 8px, rgba(255,92,138,0.6) 12px);
  border-radius: 4px;
  opacity: 0.85;
  filter: blur(0.3px);
}

.badge-hint {
  position: absolute;
  top: 30px;
  font-size: 0.6rem !important;
  color: var(--mute-2);
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  pointer-events: none;
  white-space: nowrap;
  transform: translate(-50%, 0);
  opacity: 0;
  transition: opacity .6s var(--ease);
}
.badge-stage.intro .badge-hint { opacity: 1; }

@media (max-width: 1024px) {
  .badge-card3d {
    width: 180px;
    height: 260px;
  }
  .badge-avatar { width: 72px; height: 72px; }
  .badge-avatar__inner { font-size: 1.8rem; }
  .badge-name { font-size: 0.95rem; }
  .badge-back__qr { width: 100px; height: 100px; }
}
@media (max-width: 640px) {
  .badge-stage { display: none; }
}

/* ============================================================
   NOISE + PROGRESS + CURSOR
   ============================================================ */
.noise {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-primary);
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 90;
}

.cursor {
  position: fixed;
  width: 32px; height: 32px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  top: 0; left: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 100;
  transition: width .25s var(--ease), height .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease), backdrop-filter .25s var(--ease);
  mix-blend-mode: difference;
}
.cursor.cursor--hover {
  width: 76px; height: 76px;
  background: rgba(255,255,255,0.95);
  border-color: transparent;
}
.cursor-dot {
  position: fixed;
  width: 4px; height: 4px;
  background: var(--ink);
  border-radius: 50%;
  top: 0; left: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 101;
  mix-blend-mode: difference;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 70;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 1.2rem var(--gutter);
  background: linear-gradient(to bottom, rgba(10,10,10,0.85) 0%, rgba(10,10,10,0) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--ink);
}
.nav__brand-mark {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 28px; height: 28px;
  background: var(--gradient-primary);
  border-radius: 8px;
  color: #fff;
  font-size: 0.65rem;
}
.nav__links {
  display: flex;
  justify-content: center;
  gap: 2.6rem;
}
.nav__links a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mute-1);
  position: relative;
  padding: 0.4rem 0;
  transition: color var(--transition-fast);
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__actions { display: flex; align-items: center; gap: 0.8rem; }
.nav__cv {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-full);
  background: var(--ink);
  color: var(--ink-paper);
  font-size: 0.75rem;
  font-weight: 600;
  transition: transform var(--transition-fast), background var(--transition-fast);
}
.nav__cv:hover { transform: translateY(-2px); }
.nav__cv svg { width: 14px; height: 14px; }

/* Language toggle button (ES / EN) */
.nav__lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-full);
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}
.nav__lang:hover {
  background: var(--ink);
  color: var(--ink-paper);
  border-color: var(--ink);
  transform: translateY(-2px);
}
.nav__burger {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  position: relative;
}
.nav__burger span {
  position: absolute;
  left: 50%; transform: translateX(-50%);
  width: 16px; height: 1.5px;
  background: var(--ink);
  transition: transform var(--transition-fast), top var(--transition-fast), opacity var(--transition-fast);
}
.nav__burger span:nth-child(1) { top: 15px; }
.nav__burger span:nth-child(2) { top: 22px; }
.nav__burger.open span:nth-child(1) { top: 19px; transform: translateX(-50%) rotate(45deg); }
.nav__burger.open span:nth-child(2) { top: 19px; transform: translateX(-50%) rotate(-45deg); }

/* Menu overlay */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  padding: 6rem var(--gutter) 2rem;
  clip-path: circle(0 at calc(100% - 60px) 40px);
  transition: clip-path .7s var(--ease-out);
  pointer-events: none;
}
.menu-overlay.open {
  clip-path: circle(180% at calc(100% - 60px) 40px);
  pointer-events: auto;
}
.menu-overlay__inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
}
.menu-overlay__inner a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 9vw, 5rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left var(--transition), color var(--transition);
}
.menu-overlay__inner a svg { width: 24px; height: 24px; opacity: 0; transition: opacity var(--transition); }
.menu-overlay__inner a:hover { padding-left: 0.8rem; color: var(--primary); }
.menu-overlay__inner a:hover svg { opacity: 1; }
.menu-overlay__foot {
  display: flex;
  gap: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--mute-1);
  padding-top: 2rem;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 7rem var(--gutter) 3rem;
  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
  gap: 1.5rem;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 600px at 85% 10%, rgba(124,92,255,0.18), transparent 60%),
    radial-gradient(700px 500px at 5% 90%, rgba(0,229,197,0.12), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.hero > * { position: relative; z-index: 2; }
.hero__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  align-self: start;
  padding: 0.4rem 0;
}
.hero__meta .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4ADE80;
  box-shadow: 0 0 12px #4ADE80;
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}

.hero__title {
  font-family: var(--font-anton);
  font-weight: 400;
  font-size: clamp(2.6rem, 7.5vw, 8.5rem);
  line-height: 0.86;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  margin: 0;
}
.hero__line {
  display: block;
  overflow: hidden;
}
.hero__line .word {
  display: inline-block;
  transform: translateY(110%);
  animation: heroReveal 1.1s var(--ease-out) forwards;
  animation-delay: calc(var(--i, 0) * 0.08s + 0.15s);
}
.hero__line[data-line="1"] .word:nth-child(1) { --i: 0; }
.hero__line[data-line="1"] .word:nth-child(3) { --i: 1; }
.hero__line[data-line="2"] .word { --i: 2; }
.hero__line[data-line="3"] .word { --i: 3; }
.hero__line .dot-divider {
  display: inline-block;
  margin: 0 0.25em;
  transform: translateY(-0.15em);
  color: var(--primary);
}
.hero__line--accent {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-style: italic;
}
@keyframes heroReveal {
  to { transform: translateY(0); }
}

.hero__base {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3rem;
  align-items: end;
  align-self: end;
  padding-right: 6rem; /* leave room for whatsapp floating button */
}
.hero__bio { max-width: 32rem; }
.hero__bio-lbl { margin-bottom: 0.8rem; color: var(--mute-2); }
.hero__bio-text { color: var(--mute-1); font-size: clamp(0.95rem, 1vw, 1.05rem); line-height: 1.6; margin-bottom: 0.8rem; }
.hero__bio-name { color: var(--ink); }

/* Magnetic CTA */
.magnetic-cta {
  --size: 120px;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: var(--ink);
  color: var(--ink-paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  text-align: center;
  line-height: 1.1;
  letter-spacing: -0.01em;
  position: relative;
  transition: background var(--transition), color var(--transition), transform .5s var(--ease);
  will-change: transform;
}
.magnetic-cta svg { width: 18px; height: 18px; transition: transform var(--transition); }
.magnetic-cta:hover { background: var(--primary); color: #fff; }
.magnetic-cta:hover svg { transform: translate(3px, -3px); }
.magnetic-cta--lg { --size: 220px; font-size: 1.05rem; }
.magnetic-cta--lg svg { width: 24px; height: 24px; }

.hero__scroll {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  align-self: end;
  justify-self: start;
}
.hero__scroll-line {
  position: relative;
  display: block;
  width: 80px; height: 1px;
  background: var(--line-strong);
  overflow: hidden;
}
.hero__scroll-line span {
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform-origin: left;
  animation: scrollLine 2.6s var(--ease) infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleX(0); transform-origin: left; }
  50%  { transform: scaleX(1); transform-origin: left; }
  51%  { transform-origin: right; }
  100% { transform: scaleX(0); transform-origin: right; }
}

/* ============================================================
   SECTION HEADER GENERIC
   ============================================================ */
.section__header {
  padding: 0 var(--gutter);
  margin-bottom: 4rem;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  display: grid;
  grid-template-columns: auto auto 1fr;
  grid-template-rows: auto auto;
  gap: 0.4rem 1.2rem;
  align-items: end;
}
.section__num { grid-row: 1; grid-column: 1; }
.section__lbl { grid-row: 1; grid-column: 2; }
.section__title {
  grid-row: 2; grid-column: 1 / -1;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 9vw, 8rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-top: 1.4rem;
}
.section__title em { font-style: italic; color: var(--mute-1); font-family: var(--font-display); font-weight: 500; }
.section__lead {
  grid-row: 3; grid-column: 1 / -1;
  max-width: 38rem;
  color: var(--mute-1);
  font-size: 1.1rem;
  line-height: 1.55;
  margin-top: 1.2rem;
}
.section__link {
  grid-row: 4; grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.6rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 0.3rem;
  width: max-content;
  transition: gap var(--transition), border-color var(--transition);
}
.section__link:hover { gap: 0.9rem; border-color: var(--primary); }
.section__link svg { width: 14px; height: 14px; }

/* ============================================================
   CAPABILITIES
   ============================================================ */
.capabilities {
  padding: 10rem 0 8rem;
  position: relative;
}
.cap-list {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  flex-direction: column;
}
.cap-block {
  display: grid;
  grid-template-columns: 8rem 1fr auto;
  gap: 3rem;
  align-items: start;
  padding: 3.5rem 0;
  border-top: 1px solid var(--line);
  position: relative;
  transition: background var(--transition);
}
.cap-block:last-child { border-bottom: 1px solid var(--line); }
.cap-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(124,92,255,0.05), transparent);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}
.cap-block:hover::before { opacity: 1; }
.cap-block__num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--mute-2);
  letter-spacing: 0.05em;
  padding-top: 0.6rem;
}
.cap-block__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
.cap-block__desc {
  color: var(--mute-1);
  font-size: 1.05rem;
  margin-bottom: 1.4rem;
  max-width: 36rem;
}
.cap-block__icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.cap-block__icon svg { width: 22px; height: 22px; }
.cap-block:hover .cap-block__icon { background: var(--primary); color: #fff; border-color: var(--primary); transform: rotate(45deg); }
.cap-block:hover .cap-block__icon svg { transform: rotate(-45deg); }

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.chip-list li {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-full);
  color: var(--mute-1);
  transition: border-color var(--transition), color var(--transition);
}
.cap-block:hover .chip-list li, .case:hover .chip-list li { border-color: rgba(255,255,255,0.3); color: var(--ink); }

/* ============================================================
   KINETIC MARQUEE
   ============================================================ */
.kinetic {
  position: relative;
  padding: 4rem 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.kinetic__track {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  font-family: var(--font-anton);
  font-size: clamp(4rem, 12vw, 10rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
  will-change: transform;
}
.kinetic__track span {
  display: inline-block;
}
.kinetic__track span:nth-child(2n) { color: var(--mute-3); }
.kinetic__track span:nth-child(odd) {
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1px var(--ink);
  transition: -webkit-text-fill-color .5s var(--ease);
}
.kinetic:hover .kinetic__track span:nth-child(odd) {
  -webkit-text-fill-color: var(--ink);
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ============================================================
   MOBILE / PHONE
   ============================================================ */
.mobile {
  background: var(--bg-paper);
  color: var(--ink-paper);
  padding: 4rem 0 5rem;
  position: relative;
}
.mobile .section__title { font-size: clamp(2rem, 5vw, 4.2rem); }
.mobile .section__lead { font-size: 0.95rem; }
.mobile .section__header { padding: 0; margin-bottom: 1.8rem !important; }
.mobile .section__header--light .section__title em { color: rgba(10,10,10,0.4); }
.mobile .section__header--light .section__lead { color: rgba(10,10,10,0.7); }
.mobile .section__header--light .mono { color: rgba(10,10,10,0.55); }
.mobile__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 3rem;
  align-items: center;
}
.mobile__phone { display: flex; justify-content: center; align-items: center; min-height: 540px; }
.feature-list { gap: 1rem; }
.feature-list li { padding: 1rem 0; }
.feature-list svg { padding: 11px; }
.feature-list h4 { font-size: 1.05rem; }
.feature-list p { font-size: 0.85rem; }
.mobile .section__header { padding: 0; margin-bottom: 3rem; }
.feature-list { display: flex; flex-direction: column; gap: 1.6rem; }
.feature-list li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.2rem;
  align-items: start;
  padding: 1.4rem 0;
  border-top: 1px solid var(--line-paper);
}
.feature-list li:last-child { border-bottom: 1px solid var(--line-paper); }
.feature-list svg {
  width: 22px; height: 22px;
  padding: 14px;
  box-sizing: content-box;
  border-radius: 50%;
  background: var(--ink-paper);
  color: var(--bg-paper);
  width: 22px;
}
.feature-list h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}
.feature-list p { color: rgba(10,10,10,0.65); font-size: 0.92rem; }

/* ============================================================
   WORK / CASES
   ============================================================ */
.work {
  padding: 10rem 0 8rem;
}
.case-list {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  flex-direction: column;
}
.case {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem;
  padding: 4.5rem 0;
  border-top: 1px solid var(--line);
  position: relative;
}
.case:last-child { border-bottom: 1px solid var(--line); }
.case__head {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}
.case__num { color: var(--mute-2); }
.case__tag {
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--line-strong);
  color: var(--mute-1);
}
.case__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 6vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  max-width: 22ch;
  transition: color var(--transition);
}
.case:hover .case__title {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.case__points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem 2.5rem;
  max-width: 60rem;
  margin-top: 0.4rem;
}
.case__points li {
  color: var(--mute-1);
  font-size: 0.98rem;
  line-height: 1.5;
  padding-left: 1.2rem;
  position: relative;
}
.case__points li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.65em;
  width: 6px; height: 6px;
  background: var(--primary);
  border-radius: 50%;
}
.case__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.6rem;
  width: max-content;
  padding: 0.7rem 1.2rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.case__cta:hover { background: var(--ink); color: var(--ink-paper); border-color: var(--ink); }
.case__cta svg { width: 14px; height: 14px; transition: transform var(--transition); }
.case__cta:hover svg { transform: translate(2px, -2px); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  position: relative;
  padding: 12rem var(--gutter) 7rem;
  text-align: center;
  overflow: hidden;
}
.contact::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 80vw; max-width: 900px; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(124,92,255,0.18), transparent 60%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}
.contact > * { position: relative; z-index: 1; }
.contact .mono { display: inline-block; margin: 0 0.4rem 1rem; color: var(--mute-2); }
.contact__title {
  font-family: var(--font-anton);
  font-weight: 400;
  font-size: clamp(4rem, 16vw, 16rem);
  line-height: 0.85;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: 1.5rem 0 2.5rem;
}
.contact__title span { display: block; }
.contact__title em {
  font-style: italic;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.contact__lead {
  max-width: 38rem;
  margin: 0 auto 4rem;
  color: var(--mute-1);
  font-size: 1.15rem;
  line-height: 1.55;
}
.contact__cta-wrap {
  display: flex; justify-content: center;
  margin-bottom: 5rem;
}
.contact__links {
  max-width: 56rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  text-align: left;
}
.contact__links li { border-top: 1px solid var(--line); }
.contact__links li:last-child { border-bottom: 1px solid var(--line); }
.contact__links a {
  display: grid;
  grid-template-columns: 8rem 1fr auto;
  align-items: center;
  gap: 2rem;
  padding: 1.6rem 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.2rem, 2.8vw, 2.2rem);
  letter-spacing: -0.02em;
  transition: padding-left var(--transition), color var(--transition);
}
.contact__links a:hover { padding-left: 1.2rem; color: var(--primary); }
.contact__links .mono { font-size: 0.7rem; color: var(--mute-2); margin: 0; }
.contact__links svg { width: 22px; height: 22px; opacity: 0.6; transition: opacity var(--transition), transform var(--transition); }
.contact__links a:hover svg { opacity: 1; transform: translate(4px, -4px); }

/* ============================================================
   FOOTER
   ============================================================ */
.foot {
  padding: 2.5rem var(--gutter);
  border-top: 1px solid var(--line);
}
.foot__row {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--mute-2);
}
.foot__row a:hover { color: var(--ink); }

/* ============================================================
   WHATSAPP FAB
   ============================================================ */
.wa-fab {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  z-index: 80;
  width: 56px; height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25D366;
  color: white;
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(37,211,102,0.35);
  transition: transform var(--transition);
}
.wa-fab:hover { transform: scale(1.08); }
.wa-fab svg { width: 26px; height: 26px; }

/* ============================================================
   MODAL
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10,10,10,0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.modal.show { opacity: 1; pointer-events: auto; }
.modal__panel {
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 2rem;
  width: 100%;
  max-width: 28rem;
  transform: translateY(20px) scale(0.97);
  transition: transform var(--transition);
}
.modal.show .modal__panel { transform: translateY(0) scale(1); }
.modal__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.6rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.modal__title { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 700; }
.modal__title svg { width: 16px; height: 16px; color: var(--primary); }
.modal__close {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--mute-3);
  font-size: 0.8rem;
  transition: background var(--transition);
}
.modal__close:hover { background: var(--primary); }
.modal__form { display: flex; flex-direction: column; gap: 1.1rem; }
.field { position: relative; }
.field__input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1rem 0.6rem;
  color: var(--ink);
  font: 400 0.95rem var(--font-sans);
  outline: none;
  resize: vertical;
  transition: border-color var(--transition);
}
.field__input:focus { border-color: var(--primary); }
.field__label {
  position: absolute;
  left: 1rem; top: 1rem;
  color: var(--mute-2);
  font-size: 0.92rem;
  pointer-events: none;
  transition: transform var(--transition-fast), color var(--transition-fast), font-size var(--transition-fast);
}
.field__input:focus + .field__label,
.field__input:not(:placeholder-shown) + .field__label,
.field__input[placeholder-shown="false"] + .field__label {
  transform: translateY(-0.65rem);
  font-size: 0.7rem;
  color: var(--primary);
}
.modal__actions { display: flex; gap: 0.8rem; justify-content: flex-end; margin-top: 0.4rem; }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.85rem;
  transition: transform var(--transition-fast), background var(--transition-fast);
}
.btn--solid { background: var(--gradient-primary); color: #fff; }
.btn--solid:hover { transform: translateY(-2px); }
.btn--solid svg { width: 14px; height: 14px; }
.btn--ghost { border: 1px solid var(--line-strong); color: var(--ink); }
.btn--ghost:hover { background: rgba(255,255,255,0.06); }

/* ============================================================
   REVEAL ON SCROLL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   PHONE 3D MOCKUP (PRESERVED CSS — adapted to light section)
   ============================================================ */
.phone-mockup-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}
.phone-drag-guide {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(10,10,10,0.55);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
  user-select: none;
}
.phone-drag-guide svg { width: 12px; height: 12px; }

.device-toggle-bar {
  display: flex;
  background: rgba(10,10,10,0.05);
  border: 1px solid rgba(10,10,10,0.08);
  border-radius: var(--radius-full);
  padding: 0.25rem;
  gap: 0.2rem;
  margin-bottom: 2rem;
  z-index: 10;
}
.device-toggle-btn {
  background: none;
  border: none;
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-full);
  color: rgba(10,10,10,0.6);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition-fast);
}
.device-toggle-btn svg { width: 12px; height: 12px; }
.device-toggle-btn.active {
  background: var(--ink-paper);
  color: var(--bg-paper);
}

.phone-3d-scene {
  perspective: 1200px;
  width: 260px;
  height: 520px;
  z-index: 5;
}
.phone-3d-body {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateY(-15deg) rotateX(10deg);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: grab;
}
.phone-3d-body:active { cursor: grabbing; }
.phone-frame {
  position: absolute;
  inset: 0;
  border-radius: 38px;
  padding: 11px;
  background: linear-gradient(135deg, #2a2a3a 0%, #151522 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 40px 80px -20px rgba(0,0,0,0.45),
    0 0 60px rgba(124, 92, 255, 0.18),
    inset 0 1px 2px rgba(255,255,255,0.1);
  transform-style: preserve-3d;
}
/* ----------- iOS look: Dynamic Island + rounded frame + indigo tint ----------- */
.phone-3d-scene.ios .phone-frame {
  border-radius: 46px;
  background: linear-gradient(135deg, #2c2c3a 0%, #14141d 100%);
  box-shadow:
    0 40px 80px -20px rgba(0,0,0,0.45),
    0 0 60px rgba(0, 122, 255, 0.18),
    inset 0 1px 2px rgba(255,255,255,0.1);
}
.phone-notch {
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #05050a;
  z-index: 50;
  border: 1px solid rgba(255,255,255,0.04);
  border-top: none;
  transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.phone-3d-scene.ios .phone-notch {
  width: 90px;
  height: 26px;
  border-radius: 14px;        /* dynamic-island pill (rounded all sides) */
  border-top: 1px solid rgba(255,255,255,0.04);
  top: 14px;
}
.phone-notch-content {
  width: 8px; height: 8px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.18);
  margin-left: auto;
  margin-right: 12px;
  margin-top: 8px;
  transition: all 0.3s ease;
}
.phone-3d-scene.ios .phone-notch-content { box-shadow: 0 0 0 1px rgba(255,255,255,0.04) inset; }

/* ----------- Android look: hole-punch + greener tint + squarer frame ----------- */
.phone-3d-scene.android .phone-frame {
  border-radius: 32px;
  background: linear-gradient(135deg, #1c1c20 0%, #0a0a0d 100%);
  box-shadow:
    0 40px 80px -20px rgba(0,0,0,0.5),
    0 0 60px rgba(76, 175, 80, 0.15),
    inset 0 1px 2px rgba(255,255,255,0.06);
}
.phone-3d-scene.android .phone-notch {
  width: 14px; height: 14px;
  border-radius: 50%;
  top: 16px;
  left: calc(50% - 60px); /* hole-punch offset to the left */
  transform: none;
  background-color: #0d0d0d;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.9);
}
.phone-3d-scene.android .phone-notch-content { display: none; }

.phone-screen-viewport {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}
/* iOS wallpaper: dreamy purple → teal gradient with soft glow blobs */
.phone-3d-scene.ios .phone-screen-viewport {
  border-radius: 36px;
  background:
    radial-gradient(60% 50% at 30% 20%, rgba(124, 92, 255, 0.55), transparent 60%),
    radial-gradient(60% 50% at 80% 90%, rgba(0, 229, 197, 0.45), transparent 60%),
    radial-gradient(40% 30% at 60% 50%, rgba(255, 92, 138, 0.30), transparent 60%),
    linear-gradient(160deg, #1c1830 0%, #0a1428 50%, #061222 100%);
}
/* Android wallpaper: Material You-style green/teal gradient */
.phone-3d-scene.android .phone-screen-viewport {
  border-radius: 24px;
  background:
    radial-gradient(50% 40% at 20% 25%, rgba(46, 175, 125, 0.55), transparent 60%),
    radial-gradient(55% 45% at 80% 80%, rgba(80, 140, 220, 0.45), transparent 60%),
    radial-gradient(35% 25% at 50% 50%, rgba(180, 220, 100, 0.25), transparent 60%),
    linear-gradient(170deg, #0f2418 0%, #0a1a26 60%, #050f1a 100%);
}

/* Status bar text alignment differs: iOS centers time on left, Android typically on left too,
   but icons/typography styled differently per OS. */
.phone-3d-scene.ios .phone-status-bar {
  font-family: -apple-system, "SF Pro Display", system-ui, sans-serif;
  font-weight: 600;
  padding: 0.7rem 1.4rem 0.4rem;
}
.phone-3d-scene.android .phone-status-bar {
  font-family: "Roboto", system-ui, sans-serif;
  font-weight: 500;
  padding: 0.45rem 1rem 0.3rem;
  font-size: 0.6rem;
}
/* On Android, status icons are tinted slightly green-ish (Material vibe).
   On iOS they're crisp white. */
.phone-3d-scene.android .phone-status-right svg { color: rgba(180, 220, 200, 0.95); }

/* App icons: rounded squares on iOS, full circles on Android (Material You) */
.phone-3d-scene.android .phone-app-icon {
  border-radius: 50%;
}
.phone-3d-scene.ios .phone-app-icon {
  border-radius: 12px;
}
/* App label color matches OS feel */
.phone-3d-scene.android .phone-app-lbl { color: rgba(220, 240, 230, 0.85); font-weight: 400; }
.phone-3d-scene.ios .phone-app-lbl { color: rgba(255,255,255,0.92); font-weight: 500; }
.phone-screen-viewport::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(124,92,255,0.1) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(0,229,197,0.06) 0%, transparent 40%);
  z-index: 1;
  pointer-events: none;
}
.phone-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 1.2rem;
  font-size: 0.62rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  z-index: 20;
}
.phone-status-right { display: flex; align-items: center; gap: 3px; }
.phone-status-right svg { width: 10px; height: 10px; }
.phone-app-workspace {
  flex: 1;
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0 0.8rem;
}
.sim-screen {
  position: absolute;
  inset: 0;
  padding: 0.5rem 0.8rem 1.8rem;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.96);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
  z-index: 10;
}
.sim-screen.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}
.phone-grid-apps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem 0.8rem;
  padding-top: 0.6rem;
}
.phone-app-button {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  outline: none;
}
.phone-app-icon {
  width: 48px; height: 48px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
  transition: transform 0.2s;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.05);
}
.phone-app-icon svg { width: 20px; height: 20px; }
.phone-app-button:hover .phone-app-icon { transform: scale(1.06); }
.app-profile .phone-app-icon { background: linear-gradient(135deg, #007aff 0%, #0052cc 100%); }
.app-projects .phone-app-icon { background: linear-gradient(135deg, #ff9500 0%, #cc7600 100%); }
.app-contact .phone-app-icon { background: linear-gradient(135deg, #34c759 0%, #208035 100%); }
.app-github .phone-app-icon { background: linear-gradient(135deg, #24292e 0%, #15181b 100%); }
.phone-app-lbl {
  font-size: 0.6rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
}
.sim-app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.5rem;
  margin-bottom: 0.7rem;
}
.sim-app-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: white;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.sim-app-title svg { width: 12px; height: 12px; }
.sim-app-close {
  background: rgba(255, 255, 255, 0.06);
  border: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  color: white;
  font-size: 0.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sim-scroll-body { flex: 1; overflow-y: auto; scrollbar-width: none; }
.sim-scroll-body::-webkit-scrollbar { display: none; }
.sim-chat-area { display: flex; flex-direction: column; gap: 0.5rem; }
.sim-chat-bubble {
  max-width: 82%;
  padding: 0.5rem 0.7rem;
  border-radius: 12px;
  font-size: 0.68rem;
  line-height: 1.35;
}
.sim-chat-bubble.dusan {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.04);
  color: #dfdfe5;
  align-self: flex-start;
  border-bottom-left-radius: 3px;
}
.sim-chat-bubble.user {
  background: var(--gradient-primary);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 3px;
}
.sim-chat-inputs { display: flex; flex-direction: column; gap: 0.35rem; margin-top: 0.8rem; }
.sim-chat-choice-btn {
  background: rgba(124, 92, 255, 0.08);
  border: 1px solid rgba(124, 92, 255, 0.2);
  border-radius: var(--radius-full);
  color: #c9bfff;
  padding: 0.35rem 0.7rem;
  font-size: 0.62rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: var(--transition-fast);
}
.sim-chat-choice-btn:hover { background: rgba(124, 92, 255, 0.12); border-color: var(--primary); }
.sim-proj-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 10px;
  padding: 0.5rem;
  margin-bottom: 0.5rem;
}
.sim-proj-card h5 { font-size: 0.72rem; font-weight: 700; color: white; margin-bottom: 0.1rem; }
.sim-proj-card p { font-size: 0.6rem; color: var(--mute-1); line-height: 1.3; }
.sim-commit-item {
  display: flex;
  gap: 0.4rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.sim-commit-dot {
  flex-shrink: 0;
  width: 5px; height: 5px;
  border-radius: 50%;
  background-color: #39d353;
  margin-top: 3px;
}
.sim-commit-info { display: flex; flex-direction: column; }
.sim-commit-hash { font-family: var(--font-mono); font-size: 0.55rem; color: var(--secondary); }
.sim-commit-msg { font-size: 0.6rem; color: #dfdfe5; }
.sim-commit-time { font-size: 0.5rem; color: var(--mute-2); }
.sim-github-chart {
  margin-top: 0.5rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  padding: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.sim-chart-lbl { font-size: 0.55rem; color: var(--mute-1); margin-bottom: 0.3rem; }
.sim-chart-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2.5px; }
.sim-chart-cell { aspect-ratio: 1; border-radius: 1px; background-color: rgba(255, 255, 255, 0.05); }
.sim-chart-cell.low { background-color: #0e4429; }
.sim-chart-cell.med { background-color: #006d32; }
.sim-chart-cell.high { background-color: #26a641; }
.sim-chart-cell.ultra { background-color: #39d353; }
.sim-form-group { display: flex; flex-direction: column; gap: 0.15rem; margin-bottom: 0.5rem; }
.sim-form-group label { font-size: 0.58rem; color: var(--mute-1); }
.sim-form-group input, .sim-form-group textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 5px;
  padding: 0.35rem 0.45rem;
  color: white;
  font-size: 0.62rem;
  outline: none;
}
.sim-form-group input:focus, .sim-form-group textarea:focus { border-color: var(--primary); }
.sim-app-btn {
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 5px;
  padding: 0.45rem;
  font-size: 0.65rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  margin-top: 0.2rem;
}
.sim-app-btn:hover { filter: brightness(1.1); }
.phone-home-indicator {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  cursor: pointer;
  transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
/* iOS gesture bar (long thin pill) */
.phone-3d-scene.ios .phone-home-indicator {
  width: 100px; height: 5px;
  background-color: rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-full);
  bottom: 8px;
}
/* Android 3-button nav: triangle, circle, square in a row */
.phone-3d-scene.android .phone-home-indicator {
  width: 110px; height: 16px;
  background: transparent;
  border: none;
  border-radius: 0;
  bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-around;
}
.phone-3d-scene.android .phone-home-indicator::before {
  content: '';
  width: 0; height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-right-width: 6px;
  border-top: 0;
  border-bottom: 9px solid rgba(255,255,255,0.55);
  transform: rotate(-90deg);
  margin-right: 6px;
}
.phone-3d-scene.android .phone-home-indicator::after {
  content: '';
  width: 9px; height: 9px;
  background: rgba(255,255,255,0.55);
  border-radius: 2px;
  margin-left: 6px;
}
/* Center circle for Android nav (using a span injected via box-shadow trick on indicator) */
.phone-3d-scene.android .phone-home-indicator {
  background:
    radial-gradient(circle at 50% 50%, transparent 4px, rgba(255,255,255,0.55) 4px, rgba(255,255,255,0.55) 6px, transparent 6px);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .nav__links { display: none; }
  .nav__cv { display: none; }
  .nav__burger { display: block; }

  .hero { padding-top: 6rem; }
  .hero__base { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero__cta-wrap { justify-self: start; }
  .magnetic-cta { --size: 130px; font-size: 0.78rem; }

  .section__header { grid-template-columns: auto auto; }
  .cap-block { grid-template-columns: 4rem 1fr; gap: 1.5rem; padding: 2.5rem 0; }
  .cap-block__icon { display: none; }

  .mobile__inner { grid-template-columns: 1fr; gap: 4rem; }
  .mobile__phone { display: flex; justify-content: center; }

  .case__points { grid-template-columns: 1fr; gap: 0.6rem; }

  .contact__links a { grid-template-columns: 6rem 1fr auto; gap: 1rem; }
}

@media (max-width: 640px) {
  :root { --gutter: 1.25rem; }
  .hero__title { font-size: clamp(3.5rem, 18vw, 6rem); }
  .section__title { font-size: clamp(2.4rem, 12vw, 4rem); }
  .contact__title { font-size: clamp(3.2rem, 18vw, 6rem); }
  .phone-3d-scene { width: 260px; height: 520px; }
  .magnetic-cta--lg { --size: 160px; font-size: 0.9rem; }
  .nav { padding: 0.9rem var(--gutter); }
  .case { padding: 3rem 0; }
  .case__title { font-size: clamp(1.8rem, 9vw, 3rem); }
  .contact__links a { grid-template-columns: 5rem 1fr auto; font-size: 1rem; }
  .contact__links .mono { font-size: 0.6rem; }
  .feature-list svg { padding: 10px; }
  .foot__row { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .hero__line .word { transform: translateY(0); }
  .kinetic__track { animation: none; }
  .reveal { opacity: 1; transform: none; }
}
