/* ─────────────────────────────────────────────────────────
     Tokens — theme palettes
     ───────────────────────────────────────────────────────── */
  :root {
    /* default = iOS minimal (clean off-white, system blue accent) */
    --bg-base:        #f5f5f7;
    --orb-1:          #d6e2ff;   /* pale blue */
    --orb-2:          #ead8ff;   /* pale lavender */
    --orb-3:          #d6f0ff;   /* pale sky */
    --orb-4:          #ffe1d4;   /* pale peach */
    --orb-opacity:    0.55;
    --orb-blur:       110px;

    --fg:             #1d1d1f;
    --fg-soft:        rgba(29,29,31,0.72);
    --fg-mute:        rgba(29,29,31,0.55);
    --fg-faint:       rgba(29,29,31,0.34);

    --accent:         #0071e3;
    --accent-ink:     #ffffff;

    /* glass material — light, near-opaque white with hairline borders */
    --glass-fill-top:    rgba(255,255,255,0.78);
    --glass-fill-bot:    rgba(255,255,255,0.55);
    --glass-edge:        rgba(255,255,255,0.95);
    --glass-edge-bot:    rgba(0,0,0,0.04);
    --glass-blur:        28px;
    --glass-sat:         180%;
    --glass-shadow:      0 18px 50px -18px rgba(20,20,40,0.18), 0 8px 18px -10px rgba(20,20,40,0.10);
    --hover-bg:          rgba(0,0,0,0.05);
    --grain-opacity:     0.10;
    --grain-blend:       multiply;
    --highlight-strength: 0.85;

    --radius-xl:      36px;
    --radius-lg:      28px;
    --radius-md:      20px;
    --radius-pill:    999px;
  }

  /* ── Optional dark / colored themes ─────────────────── */
  body[data-theme="aurora"] {
    --bg-base: #0a0716;
    --orb-1: #ff3d9a; --orb-2: #6e3cff; --orb-3: #00d4ff; --orb-4: #ffb547;
    --orb-opacity: 0.85; --orb-blur: 90px;
    --fg: rgba(255,255,255,0.96);
    --fg-soft: rgba(255,255,255,0.72);
    --fg-mute: rgba(255,255,255,0.50);
    --fg-faint: rgba(255,255,255,0.30);
    --accent: #ff3d9a; --accent-ink: #ffffff;
    --glass-fill-top: rgba(255,255,255,0.22);
    --glass-fill-bot: rgba(255,255,255,0.06);
    --glass-edge: rgba(255,255,255,0.28);
    --glass-edge-bot: rgba(255,255,255,0.06);
    --glass-blur: 40px; --glass-sat: 180%;
    --glass-shadow: 0 30px 80px -24px rgba(0,0,0,0.55), 0 12px 24px -12px rgba(0,0,0,0.30);
    --hover-bg: rgba(255,255,255,0.10);
    --grain-opacity: 0.40; --grain-blend: overlay;
    --highlight-strength: 0.35;
  }
  body[data-theme="sunset"] {
    --bg-base: #160708;
    --orb-1: #ff5a3c; --orb-2: #ffb547; --orb-3: #ff3d9a; --orb-4: #6e3cff;
    --orb-opacity: 0.85; --orb-blur: 90px;
    --fg: rgba(255,255,255,0.96); --fg-soft: rgba(255,255,255,0.72);
    --fg-mute: rgba(255,255,255,0.50); --fg-faint: rgba(255,255,255,0.30);
    --accent: #ff8a3c; --accent-ink: #ffffff;
    --glass-fill-top: rgba(255,255,255,0.22); --glass-fill-bot: rgba(255,255,255,0.06);
    --glass-edge: rgba(255,255,255,0.28); --glass-edge-bot: rgba(255,255,255,0.06);
    --glass-blur: 40px; --glass-sat: 180%;
    --glass-shadow: 0 30px 80px -24px rgba(0,0,0,0.55), 0 12px 24px -12px rgba(0,0,0,0.30);
    --hover-bg: rgba(255,255,255,0.10);
    --grain-opacity: 0.40; --grain-blend: overlay;
    --highlight-strength: 0.35;
  }
  body[data-theme="ocean"] {
    --bg-base: #04101c;
    --orb-1: #00d4ff; --orb-2: #5b8cff; --orb-3: #00ffa8; --orb-4: #6e3cff;
    --orb-opacity: 0.85; --orb-blur: 90px;
    --fg: rgba(255,255,255,0.96); --fg-soft: rgba(255,255,255,0.72);
    --fg-mute: rgba(255,255,255,0.50); --fg-faint: rgba(255,255,255,0.30);
    --accent: #00d4ff; --accent-ink: #04101c;
    --glass-fill-top: rgba(255,255,255,0.22); --glass-fill-bot: rgba(255,255,255,0.06);
    --glass-edge: rgba(255,255,255,0.28); --glass-edge-bot: rgba(255,255,255,0.06);
    --glass-blur: 40px; --glass-sat: 180%;
    --glass-shadow: 0 30px 80px -24px rgba(0,0,0,0.55), 0 12px 24px -12px rgba(0,0,0,0.30);
    --hover-bg: rgba(255,255,255,0.10);
    --grain-opacity: 0.40; --grain-blend: overlay;
    --highlight-strength: 0.35;
  }

  /* Glass intensity */
  body[data-glass="subtle"]   { --glass-blur: 16px; --glass-sat: 140%; }
  body[data-glass="vivid"]    { --glass-blur: 44px; --glass-sat: 220%; }

  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; scroll-padding-top: 84px; }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
  html, body { margin: 0; padding: 0; }
  body {
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Inter', 'Segoe UI', sans-serif;
    color: var(--fg);
    background: var(--bg-base);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    letter-spacing: -0.01em;
  }

  /* ─────────────────────────────────────────────────────────
     Aurora background — animated blurred orbs + grain
     ───────────────────────────────────────────────────────── */
  .aurora {
    position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  }
  .orb {
    position: absolute; border-radius: 50%;
    filter: blur(var(--orb-blur)) saturate(140%);
    opacity: var(--orb-opacity);
    will-change: transform;
  }
  .orb.o1 { width: 60vmax; height: 60vmax; left: -15vmax; top: -20vmax; background: var(--orb-1); animation: drift1 28s ease-in-out infinite alternate; }
  .orb.o2 { width: 50vmax; height: 50vmax; right: -18vmax; top: 5vmax;  background: var(--orb-2); animation: drift2 32s ease-in-out infinite alternate; }
  .orb.o3 { width: 55vmax; height: 55vmax; left: 20vmax; bottom: -25vmax; background: var(--orb-3); animation: drift3 36s ease-in-out infinite alternate; }
  .orb.o4 { width: 35vmax; height: 35vmax; right: 5vmax; bottom: 10vmax;  background: var(--orb-4); animation: drift4 24s ease-in-out infinite alternate; opacity: calc(var(--orb-opacity) * 0.85); }

  @keyframes drift1 { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(8vw, 6vh, 0) scale(1.1); } }
  @keyframes drift2 { from { transform: translate3d(0,0,0) scale(1.05); } to { transform: translate3d(-10vw, 8vh, 0) scale(0.95); } }
  @keyframes drift3 { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(6vw, -8vh, 0) scale(1.08); } }
  @keyframes drift4 { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(-6vw, -4vh, 0) scale(1.15); } }

  body[data-motion="off"] .orb { animation: none !important; }

  /* Soft grain — adds the "real material" feel */
  .grain {
    position: fixed; inset: 0; z-index: 1; pointer-events: none;
    opacity: var(--grain-opacity); mix-blend-mode: var(--grain-blend);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  }
  body[data-grain="off"] .grain { display: none; }

  /* ─────────────────────────────────────────────────────────
     Glass material
     ───────────────────────────────────────────────────────── */
  .glass {
    position: relative;
    background: linear-gradient(140deg, var(--glass-fill-top) 0%, var(--glass-fill-bot) 100%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
            backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
    border: 1px solid var(--glass-edge);
    border-radius: var(--radius-lg);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.55),
      inset 0 -1px 0 var(--glass-edge-bot),
      var(--glass-shadow);
    isolation: isolate;
  }
  /* specular highlight overlay — simulates the curved refraction edge */
  .glass::before {
    content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
    background:
      radial-gradient(120% 60% at 20% 0%, rgba(255,255,255,var(--highlight-strength)), rgba(255,255,255,0) 55%),
      radial-gradient(80% 40% at 90% 100%, rgba(255,255,255,calc(var(--highlight-strength) * 0.30)), rgba(255,255,255,0) 60%);
    mix-blend-mode: screen;
    opacity: 0.95;
  }

  .glass.xl { border-radius: var(--radius-xl); }
  .glass.md { border-radius: var(--radius-md); }
  .glass.pill { border-radius: var(--radius-pill); }

  /* ─────────────────────────────────────────────────────────
     Layout
     ───────────────────────────────────────────────────────── */
  .shell {
    position: relative; z-index: 2;
    max-width: 1240px; margin: 0 auto;
    padding: 24px clamp(16px, 3vw, 32px) 120px;
  }

  /* Floating top dock */
  .dock {
    position: sticky; top: 16px; z-index: 30;
    margin: 8px auto 28px;
    display: flex; align-items: center; gap: 12px;
    padding: 8px 10px 8px 8px;
    width: fit-content; max-width: 100%;
  }
  .dock .avatar-slot {
    display: inline-block; flex-shrink: 0;
    width: 0; height: 44px; overflow: visible;
    position: relative;
    margin-right: -12px; /* swallow the dock's gap when collapsed */
    transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1), margin-right 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .dock .avatar-slot.show { width: 44px; margin-right: 0; }
  .dock .avatar {
    width: 44px; height: 44px; border-radius: 50%;
    object-fit: cover; flex-shrink: 0;
    box-shadow: inset 0 0 0 1px var(--glass-edge);
    position: absolute; top: 0; left: 0;
    opacity: 0;
    transform-origin: center center;
    will-change: transform, opacity;
  }
  .dock .handle { font-weight: 700; font-size: 16px; letter-spacing: -0.02em; padding: 0 6px; white-space: nowrap; }
  .dock .sep { width: 1px; height: 20px; background: var(--glass-edge-bot); margin: 0 4px; }
  .dock .nav { display: flex; gap: 2px; }
  .dock .nav a {
    color: var(--fg-soft); text-decoration: none;
    padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease;
  }
  .dock .nav a:hover { background: var(--hover-bg); color: var(--fg); }
  .dock .tg {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--accent); color: var(--accent-ink);
    padding: 9px 16px 9px 14px; border-radius: 999px;
    font-weight: 600; font-size: 14px; text-decoration: none;
    transition: transform 0.2s ease, filter 0.2s ease;
    box-shadow: 0 6px 18px -6px color-mix(in oklab, var(--accent) 70%, transparent);
  }
  .dock .tg:hover { transform: translateY(-1px); filter: brightness(1.08); }

  @media (max-width: 720px) {
    .dock { flex-wrap: wrap; justify-content: center; row-gap: 8px; }
    .dock .sep { display: none; }
    .dock .nav { display: flex; order: 3; width: 100%; justify-content: center; gap: 4px; flex-wrap: wrap; }
    .dock .nav a { padding: 7px 12px; font-size: 13px; }
  }

  /* Grid */
  .grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
  }
  .col-12 { grid-column: span 12; }
  .col-8  { grid-column: span 8; }
  .col-6  { grid-column: span 6; }
  .col-4  { grid-column: span 4; }
  .col-5  { grid-column: span 5; }
  .col-7  { grid-column: span 7; }
  @media (max-width: 960px) {
    .col-8, .col-6, .col-4, .col-5, .col-7 { grid-column: span 12; }
  }

  /* ─────────────────────────────────────────────────────────
     Hero
     ───────────────────────────────────────────────────────── */
  .hero { padding: clamp(20px, 2.5vw, 36px) clamp(24px, 3vw, 44px); display: grid; grid-template-columns: 1fr; gap: 22px; }
  .hero .row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
  .hero .chip {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--glass-fill-top); color: var(--fg);
    border: 1px solid var(--glass-edge);
    padding: 8px 16px; border-radius: 999px;
    font-size: 13px; font-weight: 500;
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  }
  .hero .chip.alt { background: var(--glass-fill-bot); }
  .hero .chip .dot { width: 7px; height: 7px; border-radius: 50%; background: #2bd47b; box-shadow: 0 0 12px #2bd47b; }

  .hero .tools { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; }
  .hero .tools img { width: 24px; height: 24px; border-radius: 5px; object-fit: cover; transition: transform 0.25s ease; }
  .hero .tools img:hover { transform: translateY(-2px) scale(1.15); }

  .hero h1 {
    font-size: clamp(36px, 5.4vw, 76px); line-height: 0.92; margin: 0;
    font-weight: 800; letter-spacing: -0.035em;
  }
  .hero h1 .handle-line { display: block; font-size: clamp(28px, 3.6vw, 52px); color: var(--fg-mute); font-weight: 700; letter-spacing: -0.025em; margin-bottom: 2px; line-height: 1; }
  .hero h1 .grad { display: inline-block; line-height: 0.95; }
  .hero h1 .grad {
    background: linear-gradient(120deg, var(--accent), color-mix(in oklab, var(--accent) 50%, #ff3d9a), color-mix(in oklab, var(--accent) 30%, #6e3cff));
    -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 6px 28px color-mix(in oklab, var(--accent) 25%, transparent));
  }
  .hero h1 a { color: inherit; text-decoration: none; }

  .hero .lede {
    font-size: clamp(15px, 1.2vw, 17px); line-height: 1.55;
    color: var(--fg-soft); max-width: 720px; margin: 0;
  }

  /* Service chips row */
  .services { display: flex; flex-wrap: wrap; gap: 6px; }
  .services span {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 11px; border-radius: 999px;
    font-size: 12.5px; font-weight: 500; color: var(--fg-soft);
    background: var(--glass-fill-bot);
    border: 1px solid var(--glass-edge);
  }
  .services span b { font-weight: 600; color: var(--fg); }

  .hero-portrait {
    width: clamp(140px, 18vw, 200px); height: clamp(140px, 18vw, 200px);
    border-radius: 50%; overflow: hidden; flex-shrink: 0;
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.18), inset 0 0 0 1px var(--glass-edge);
    position: relative;
  }
  .hero-portrait img { width: 100%; height: 100%; object-fit: cover; }
  .hero-portrait::after {
    content: ""; position: absolute; inset: -2px; border-radius: 50%; pointer-events: none;
    background: conic-gradient(from 120deg, var(--orb-1), var(--orb-3), var(--orb-4), var(--orb-1));
    filter: blur(20px); opacity: 0.55; z-index: -1;
  }

  .hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
  .hero-top .left { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }

  /* ─────────────────────────────────────────────────────────
     Pricing cards
     ───────────────────────────────────────────────────────── */
  .price { padding: 28px; display: flex; flex-direction: column; gap: 16px; min-height: 340px; transition: transform 0.3s cubic-bezier(0.2,0.7,0.2,1); }
  .price:hover { transform: translateY(-3px); }
  .price .icon-tile {
    width: 52px; height: 52px; border-radius: 16px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--glass-fill-top), var(--glass-fill-bot));
    border: 1px solid var(--glass-edge);
    color: var(--fg);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
  }
  .price h3 { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
  .price p  { margin: 0; color: var(--fg-soft); font-size: 14.5px; line-height: 1.5; }
  .price ul.svc-list {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-direction: column; gap: 7px;
    flex: 1;
  }
  .price ul.svc-list li {
    display: flex; align-items: center; gap: 10px;
    color: var(--fg-soft); font-size: 14px; line-height: 1.35;
  }
  .price ul.svc-list li::before {
    content: ""; width: 5px; height: 5px; border-radius: 50%;
    background: var(--accent); flex-shrink: 0;
    box-shadow: 0 0 8px color-mix(in oklab, var(--accent) 70%, transparent);
  }
  .price .svc-cta {
    display: inline-flex; align-items: center; justify-content: space-between;
    margin-top: auto;
    padding: 10px 14px 10px 16px; border-radius: 999px;
    background: var(--hover-bg); color: var(--fg);
    border: 1px solid var(--glass-edge);
    font-size: 13.5px; font-weight: 600; text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  }
  .price .svc-cta:hover { background: var(--fg); color: var(--bg-base); transform: translateY(-1px); }
  .price .svc-cta i { width: 16px; height: 16px; }

  /* ─────────────────────────────────────────────────────────
     Works
     ───────────────────────────────────────────────────────── */
  /* Stats row */
  .stats {
    padding: clamp(24px, 3vw, 36px) clamp(28px, 3vw, 44px);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    align-items: center;
  }
  .stats .stat {
    display: flex; flex-direction: column; gap: 6px;
    padding: 12px clamp(16px, 2vw, 28px);
    position: relative;
  }
  .stats .stat + .stat::before {
    content: ""; position: absolute; left: 0; top: 15%; bottom: 15%;
    width: 1px; background: var(--glass-edge);
  }
  .stats .stat .num {
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 800; letter-spacing: -0.04em; line-height: 1;
    background: linear-gradient(120deg, var(--fg), color-mix(in oklab, var(--fg) 55%, var(--accent)));
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
  .stats .stat .lbl {
    font-size: 13.5px; font-weight: 500; color: var(--fg-soft);
    letter-spacing: 0.01em;
  }
  @media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); }
    .stats .stat:nth-child(3)::before { display: none; }
  }
  @media (max-width: 640px) {
    .stats { grid-template-columns: 1fr; }
    .stats .stat + .stat::before { left: 15%; right: 15%; top: 0; bottom: auto; width: auto; height: 1px; }
  }

  .works { padding: clamp(24px, 3vw, 40px); }
  .works-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
  .works-head h2 { margin: 0; font-size: clamp(28px, 3vw, 40px); font-weight: 800; letter-spacing: -0.03em; }

  .filters { display: flex; gap: 6px; padding: 6px; border-radius: 999px; }
  .filter-btn {
    appearance: none; border: 0; cursor: pointer;
    padding: 8px 16px; border-radius: 999px;
    background: transparent; color: var(--fg-soft);
    font-size: 14px; font-weight: 500; font-family: inherit;
    transition: background 0.2s ease, color 0.2s ease;
  }
  .filter-btn:hover { color: var(--fg); }
  .filter-btn.active {
    background: var(--fg); color: var(--bg-base);
    box-shadow: 0 6px 20px -6px rgba(0,0,0,0.15);
  }

  .slider-wrap { position: relative; }
  .slider {
    display: flex; gap: 16px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
    padding: 4px 4px 16px; margin: 0 -4px;
    scrollbar-width: none;
  }
  .slider::-webkit-scrollbar { display: none; }

  .work {
    flex-shrink: 0; width: calc((100% - 32px) / 3);
    min-width: 260px;
    aspect-ratio: 4 / 5;
    border-radius: 24px; overflow: hidden;
    scroll-snap-align: start;
    cursor: pointer; position: relative;
    transition: transform 0.4s cubic-bezier(0.2,0.7,0.2,1);
  }
  .work:hover { transform: translateY(-4px); }
  @media (max-width: 960px) { .work { width: calc((100% - 16px) / 2); } }
  @media (max-width: 640px) { .work { width: 78%; } }

  .work .bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    transition: transform 0.6s ease;
  }
  .work:hover .bg { transform: scale(1.06); }
  .work .scrim {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,0.75) 100%);
  }
  .work .content {
    position: absolute; left: 14px; right: 14px; bottom: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    /* mini-glass inside the card */
    background: linear-gradient(140deg, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0.08) 100%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
            backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.30);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
    color: #fff;
  }
  .work .content .kicker { font-size: 12px; opacity: 0.85; margin-bottom: 4px; letter-spacing: 0.02em; }
  .work .content .title  { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
  .work .badge {
    position: absolute; top: 14px; left: 14px;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 10px; border-radius: 999px;
    background: rgba(0,0,0,0.45); color: #fff;
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
    border: 1px solid rgba(255,255,255,0.18);
  }
  .work .arrow {
    position: absolute; top: 14px; right: 14px;
    width: 36px; height: 36px; border-radius: 50%;
    display: grid; place-items: center; color: #fff;
    background: rgba(255,255,255,0.18);
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.30);
    transition: transform 0.2s ease, background 0.2s ease;
  }
  .work:hover .arrow { transform: rotate(-45deg); background: rgba(255,255,255,0.30); }

  /* Slider arrows */
  .slide-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px; border-radius: 50%;
    display: grid; place-items: center;
    border: 1px solid var(--glass-edge);
    background: linear-gradient(140deg, var(--glass-fill-top), var(--glass-fill-bot));
    -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
    color: var(--fg); cursor: pointer; z-index: 5;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 10px 24px -10px rgba(0,0,0,0.3);
    opacity: 0; transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .slider-wrap:hover .slide-nav { opacity: 1; }
  .slide-nav:hover { transform: translateY(-50%) scale(1.08); }
  .slide-nav.prev { left: -22px; }
  .slide-nav.next { right: -22px; }

  /* ─────────────────────────────────────────────────────────
     CTA + Footer + Spark
     ───────────────────────────────────────────────────────── */
  .cta {
    padding: clamp(28px, 4vw, 48px);
    display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
    background: #0c0c10;
    color: #fff;
    position: relative; overflow: hidden; isolation: isolate;
    border-radius: var(--radius-lg);
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    -webkit-transform: translateZ(0);
  }
  .cta::after {
    content: ""; position: absolute; inset: -16px; z-index: -1;
    background: url("assets/back.jpg") center/cover no-repeat;
    filter: blur(7px) brightness(0.32) saturate(0.85);
    pointer-events: none;
  }
  .cta > * { position: relative; z-index: 1; }
  .cta h3 { margin: 0 0 8px; font-size: clamp(24px, 3vw, 36px); font-weight: 800; letter-spacing: -0.025em; }
  .cta p  { margin: 0; color: rgba(255,255,255,0.78); font-size: clamp(14px, 1.2vw, 18px); }
  .cta .pillbtn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 24px; border-radius: 999px;
    background: #fff; color: #0b0b14; font-weight: 600; text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 16px 40px -12px rgba(0,0,0,0.5);
  }
  .cta .pillbtn:hover { transform: translateY(-2px); box-shadow: 0 22px 50px -12px rgba(0,0,0,0.55); }

  .contacts { padding: 28px; display: flex; flex-direction: column; gap: 18px; min-height: 280px; }
  .contacts h3 { margin: 0; font-size: 18px; font-weight: 600; color: var(--fg-soft); letter-spacing: 0.02em; text-transform: uppercase; }
  .contacts .tg-card {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 16px; border-radius: 18px;
    background: linear-gradient(140deg, var(--glass-fill-top) 0%, var(--glass-fill-bot) 100%);
    border: 1px solid var(--glass-edge);
    text-decoration: none; color: var(--fg);
    transition: transform 0.2s ease;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
  }
  .contacts .tg-card:hover { transform: translateY(-2px); }
  .contacts .tg-card .ic {
    width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
    background: linear-gradient(135deg, #229ed9, #1c80b3); color: #fff;
    box-shadow: 0 6px 16px -6px rgba(34,158,217,0.6);
  }
  .contacts .tg-card.ig .ic {
    background: linear-gradient(135deg, #fbb040 0%, #f15a29 25%, #e6266d 55%, #b630cc 85%, #6a3ad6 100%);
    box-shadow: 0 6px 16px -6px rgba(225,42,116,0.55);
  }
  .contacts .tg-card .name { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
  .contacts .tg-card .label { font-size: 12px; color: var(--fg-mute); }
  .contacts .copyright { margin-top: auto; font-size: 12px; color: var(--fg-faint); }

  /* Spark card */
  .spark {
    position: relative; overflow: hidden;
    padding: clamp(28px, 4vw, 48px);
    display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 3vw, 40px); align-items: center;
  }
  @media (max-width: 720px) { .spark { grid-template-columns: 1fr; text-align: center; } }
  .spark .text h3 { margin: 0 0 6px; font-size: clamp(22px, 2.4vw, 32px); font-weight: 800; letter-spacing: -0.025em; }
  .spark .text p  { margin: 0; color: var(--fg-soft); font-size: clamp(14px, 1.2vw, 17px); }

  .switch {
    appearance: none; border: 0; cursor: pointer;
    width: 64px; height: 38px; border-radius: 999px;
    background: #e9e9eb;
    position: relative; padding: 0;
    transition: background 0.35s ease;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.04);
    flex-shrink: 0; justify-self: start;
  }
  .switch::after {
    content: ""; position: absolute; top: 2px; left: 2px;
    width: 34px; height: 34px; border-radius: 50%;
    background: #ffffff;
    transition: transform 0.32s cubic-bezier(0.2,0.7,0.2,1);
    box-shadow: 0 3px 8px rgba(0,0,0,0.15), 0 1px 1px rgba(0,0,0,0.08);
  }
  .switch.on { background: #34c759; }
  .switch.on::after { transform: translateX(26px); }
  body[data-theme="aurora"] .switch,
  body[data-theme="sunset"] .switch,
  body[data-theme="ocean"] .switch {
    background: rgba(255,255,255,0.18);
  }

  /* Fire confetti — fixed-positioned to the toggle top */
  .fire-particle {
    position: fixed; z-index: 60; pointer-events: none;
    font-size: 26px; line-height: 1;
    transform: translate(-50%, -50%) scale(0.3);
    opacity: 0;
    will-change: transform, opacity;
    animation-name: fireBurst;
    animation-timing-function: cubic-bezier(0.16, 0.84, 0.32, 1);
    animation-fill-mode: forwards;
    filter: drop-shadow(0 0 4px rgba(255,140,40,0.40));
  }
  @keyframes fireBurst {
    0%   { opacity: 0;   transform: translate(-50%, -50%) scale(0.45) rotate(0deg); }
    14%  { opacity: 1; }
    55%  { opacity: 0.95; transform: translate(calc(-50% + var(--dx) * 0.78), calc(-50% + var(--dy) * 0.78)) scale(1) rotate(calc(var(--rot) * 0.7)); }
    100% { opacity: 0;   transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(0.6) rotate(var(--rot)); }
  }
  @media (prefers-reduced-motion: reduce) {
    .fire-particle { animation-duration: 0.6s; }
  }

  /* ─────────────────────────────────────────────────────────
     Overlay (project detail)
     ───────────────────────────────────────────────────────── */
  #overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; pointer-events: none; }
  #overlay .backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.6); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); opacity: 0; transition: opacity 0.35s ease; }
  #overlay .panel {
    position: relative; width: min(680px, 100%); max-height: 92vh; overflow: hidden;
    border-radius: 32px;
    background: linear-gradient(140deg, rgba(255,255,255,0.22), rgba(255,255,255,0.08));
    -webkit-backdrop-filter: blur(40px) saturate(200%); backdrop-filter: blur(40px) saturate(200%);
    border: 1px solid rgba(255,255,255,0.30);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 40px 100px -30px rgba(0,0,0,0.6);
    opacity: 0; transform: scale(0.94) translateY(20px); transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.16,1,0.3,1);
    color: #fff;
  }
  #overlay.active { pointer-events: auto; }
  #overlay.active .backdrop { opacity: 1; }
  #overlay.active .panel { opacity: 1; transform: scale(1) translateY(0); }
  #overlay .close {
    position: absolute; top: 14px; right: 14px; z-index: 5;
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(0,0,0,0.45); border: 1px solid rgba(255,255,255,0.25);
    color: #fff; cursor: pointer; display: grid; place-items: center;
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  }
  /* ──────────────────────────────────────────────────────
     Overlay (project detail) — media-aware
     ────────────────────────────────────────────────────── */
  #overlay .panel.size-default { width: min(680px, 100%); }
  #overlay .panel.size-wide    { width: min(800px, 100%); }
  #overlay .panel.size-narrow  { width: min(380px, 100%); }

  #overlay .media-stack {
    display: flex; flex-direction: column; gap: 0;
    background: transparent;
    max-height: 65vh; overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  #overlay .media-stack::-webkit-scrollbar { display: none; }
  /* In narrow (single-video) panels, the placeholder fills edge-to-edge with no cap */
  #overlay .panel.size-narrow .media-stack { max-height: none; overflow: visible; }

  #overlay .media-item { position: relative; width: 100%; background: transparent; }
  #overlay .media-item.image img { display: block; width: 100%; height: auto; }
  #overlay .media-item.video {
    width: 100%; padding: 0; background: transparent;
  }
  #overlay .media-item.video video {
    display: block; width: 100%; height: auto;
  }
  /* Portrait video item — fills modal width edge-to-edge, 9:16 aspect */
  #overlay .media-item.video.portrait { aspect-ratio: 9 / 16; }
  #overlay .media-item.video.portrait video,
  #overlay .media-item.video.portrait .v-placeholder { width: 100%; height: 100%; }
  #overlay .media-item.video.landscape { aspect-ratio: 16 / 9; }
  #overlay .media-item.video.landscape video,
  #overlay .media-item.video.landscape .v-placeholder { width: 100%; height: 100%; }

  /* placeholder when no video src yet */
  #overlay .v-placeholder {
    background: linear-gradient(135deg, #1a1430, #4a2080 50%, #0a0716);
    display: grid; place-items: center;
    position: relative; overflow: hidden;
  }
  #overlay .v-placeholder::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 30% 30%, rgba(255,90,150,0.35), transparent 55%),
                radial-gradient(ellipse at 70% 70%, rgba(0,180,255,0.25), transparent 55%);
  }
  #overlay .v-placeholder .play-glyph {
    position: relative; z-index: 2;
    width: 72px; height: 72px; border-radius: 50%;
    display: grid; place-items: center; color: #fff;
    background: rgba(255,255,255,0.16);
    border: 1px solid rgba(255,255,255,0.40);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    box-shadow: 0 8px 24px -8px rgba(0,0,0,0.6);
  }
  #overlay .v-placeholder .pl-note {
    position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; z-index: 2;
    font-size: 12px; color: rgba(255,255,255,0.65); letter-spacing: 0.04em;
  }

  /* “play” badge on work cards whose first media is a video */
  .work.is-video .play-mark {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 56px; height: 56px; border-radius: 50%;
    display: grid; place-items: center; color: #fff;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.40);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    box-shadow: 0 8px 24px -8px rgba(0,0,0,0.6);
    z-index: 2; pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.2,0.7,0.2,1);
  }
  .work.is-video:hover .play-mark { transform: translate(-50%, -50%) scale(1.10); }

  /* External scrollbar (sits outside the panel on the right) */
  #overlay .ext-rail {
    position: absolute; pointer-events: none; z-index: 4;
    width: 4px; border-radius: 999px;
    opacity: 0; transition: opacity 0.3s ease;
  }
  #overlay.has-ext-scroll .ext-rail { opacity: 1; }
  #overlay .ext-rail .ext-thumb {
    position: absolute; left: 0; right: 0; border-radius: 999px;
    background: rgba(255,255,255,0.85);
    box-shadow: 0 2px 8px rgba(0,0,0,0.20);
  }
  @media (max-width: 720px) {
    #overlay .ext-rail { display: none; }
  }

  /* ──────────────────────────────────────────────────────
     Overlay (legacy)
     ────────────────────────────────────────────────────── */
  #overlay .hero-img { height: 260px; position: relative; overflow: hidden; }
  #overlay .hero-img > div { position: absolute; inset: 0; background-size: cover; background-position: center; }
  #overlay .body { padding: 24px 28px 28px; }
  #overlay .body .kicker { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.65); margin-bottom: 6px; }
  #overlay .body h2 { margin: 0 0 14px; font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
  #overlay .body p  { color: rgba(255,255,255,0.80); line-height: 1.55; margin: 0 0 18px; }
  #overlay .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
  #overlay .chips span {
    padding: 6px 12px; border-radius: 999px; font-size: 12px;
    background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.18);
  }
  #overlay .link-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 20px; border-radius: 999px;
    background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none;
    box-shadow: 0 8px 24px -8px color-mix(in oklab, var(--accent) 70%, transparent);
  }
  #overlay .link-btn.disabled { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.5); pointer-events: none; }

  /* ─────────────────────────────────────────────────────────
     Misc
     ───────────────────────────────────────────────────────── */
  /* Resting state is visible; animation just adds an entry flourish */
  .stagger > * { animation: rise 0.7s cubic-bezier(0.16,1,0.3,1) both; }
  .stagger > *:nth-child(1) { animation-delay: 0.05s; }
  .stagger > *:nth-child(2) { animation-delay: 0.12s; }
  .stagger > *:nth-child(3) { animation-delay: 0.19s; }
  .stagger > *:nth-child(4) { animation-delay: 0.26s; }
  .stagger > *:nth-child(5) { animation-delay: 0.33s; }
  .stagger > *:nth-child(6) { animation-delay: 0.40s; }
  .stagger > *:nth-child(7) { animation-delay: 0.47s; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  @media (prefers-reduced-motion: reduce) {
    .stagger > * { animation: none; }
  }

  /* selection */
  ::selection { background: var(--accent); color: var(--accent-ink); }

  /* ─────────────────────────────────────────────────────────
     Interactions layer — cursor, tilt, spotlight, ping, breathe
     ───────────────────────────────────────────────────────── */

  /* Subtle aurora breathing (composes with orb drift via container scale) */
  @keyframes auroraBreath {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.018); }
  }
  .aurora { animation: auroraBreath 9s ease-in-out infinite; transform-origin: 50% 40%; }
  body[data-motion="off"] .aurora { animation: none; }

  /* Status dot — idle ping */
  .hero .chip .dot { position: relative; }
  .hero .chip .dot::after {
    content: ""; position: absolute; inset: -1px; border-radius: 50%;
    border: 2px solid #2bd47b;
    animation: dotPing 2.4s cubic-bezier(0, 0, 0.2, 1) infinite;
    pointer-events: none;
  }
  @keyframes dotPing {
    0%   { transform: scale(1);   opacity: 0.7; }
    70%  { transform: scale(3.8); opacity: 0;   }
    100% { transform: scale(3.8); opacity: 0;   }
  }
  @media (prefers-reduced-motion: reduce) {
    .hero .chip .dot::after { animation: none; display: none; }
  }

  /* Minimal macOS-style cursor — thin black arrow with white outline */
  html, body {
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='24' viewBox='0 0 20 24'><path d='M3 2 L3 18 L7 14.5 L9.2 20.5 L11.3 19.7 L9.1 13.7 L15 13.7 Z' fill='black' stroke='white' stroke-width='1.4' stroke-linejoin='round' stroke-linecap='round'/></svg>") 2 2, auto;
  }
  /* Interactive elements use the system pointer — familiar + accessible */
  a, button, .work, .filter-btn, .switch, [role='button'], summary { cursor: pointer; }
  input, textarea, [contenteditable='true'] { cursor: text; }

  /* Status dot — idle ping */

  /* Spotlight on tilted price cards */
  .price { will-change: transform; transform-style: preserve-3d; }
  .price::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
    background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%),
      color-mix(in oklab, var(--accent) 32%, transparent), transparent 60%);
    opacity: 0; transition: opacity 0.35s ease;
    z-index: 4;
    mix-blend-mode: screen;
  }
  .price:hover::after { opacity: 1; }
  .price > * { position: relative; z-index: 5; }

  /* Dock avatar transform-origin for FLIP pin */
  .dock .avatar { transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease; }

  /* ──────────────────────────────────────────────────────────
     Mobile polish — tightening for phones (≤640px)
     ────────────────────────────────────────────────────────── */
  @media (hover: none) {
    .slide-nav { display: none; }
    html, body { cursor: auto; }
    a, button, .work, .filter-btn, .switch, [role='button'], summary { cursor: pointer; }
  }

  @media (max-width: 640px) {
    .shell { padding: 14px 14px 80px; }

    .dock { padding: 5px 6px 5px 5px; gap: 8px; margin: 4px auto 20px; }
    .dock .handle { font-size: 14px; padding: 0 4px; }
    .dock .tg { padding: 8px 14px 8px 12px; font-size: 13px; }
    .dock .avatar, .dock .avatar-slot { width: 38px; height: 38px; }
    .dock .avatar-slot.show { width: 38px; }

    .hero { padding: 24px 20px 26px; gap: 16px; text-align: center; }
    .hero .hero-main { flex-direction: column !important; align-items: center !important; gap: 14px !important; }
    .hero .hero-text { min-width: 0 !important; width: 100%; align-items: center; text-align: center; }
    .hero h1 { font-size: 30px; line-height: 0.96; max-width: 100%; }
    .hero h1 .handle-line { font-size: 22px; }
    .hero h1 .grad { display: inline; }
    .hero .lede { font-size: 14.5px; line-height: 1.45; max-width: none; text-align: center; }
    .hero-portrait { width: 124px; height: 124px; align-self: center; }
    .hero-top { flex-direction: column; align-items: center; gap: 10px; }
    .hero-top .left { justify-content: center; width: 100%; display: flex; flex-wrap: wrap; }
    .hero .chip { font-size: 12px; padding: 6px 14px; }
    .hero .tools { padding: 5px 8px; gap: 7px; }
    .hero .tools img { width: 22px; height: 22px; }
    .services { gap: 5px; justify-content: center; }
    .services span { font-size: 12px; padding: 4px 9px; }

    .price { padding: 22px; min-height: 0; gap: 14px; }
    .price h3 { font-size: 22px; }
    .price p { font-size: 13.5px; }
    .price ul.svc-list li { font-size: 13.5px; }
    .price .icon-tile { width: 44px; height: 44px; border-radius: 14px; }

    .stats { padding: 18px 16px; }
    .stats .stat { padding: 12px 12px; align-items: center; text-align: center; gap: 4px; }
    .stats .stat .num { font-size: 44px; }
    .stats .stat .lbl { font-size: 12.5px; }

    .works { padding: 22px 18px; }
    .works-head { gap: 12px; margin-bottom: 16px; }
    .works-head h2 { font-size: 24px; }
    .filters {
      padding: 4px; flex-wrap: nowrap;
      overflow-x: auto;
      max-width: 100%;
      scrollbar-width: none; -ms-overflow-style: none;
    }
    .filters::-webkit-scrollbar { display: none; }
    .filter-btn { padding: 6px 12px; font-size: 12.5px; flex-shrink: 0; }
    .work { width: 80%; min-width: 0; }

    .cta { padding: 24px 22px 26px; flex-direction: column; align-items: flex-start; gap: 16px; }
    .cta h3 { font-size: 22px; }
    .cta p { font-size: 14px; }
    .cta .pillbtn { padding: 12px 20px; width: 100%; justify-content: center; font-size: 14px; }

    .contacts { padding: 22px; min-height: 0; gap: 14px; }
    .contacts h3 { font-size: 14px; }
    .contacts .tg-card { padding: 12px 14px; gap: 12px; }
    .contacts .tg-card .ic { width: 40px; height: 40px; }
    .contacts .tg-card .name { font-size: 16px; }
    .contacts .tg-card .label { font-size: 11.5px; }

    .spark { padding: 26px 22px; gap: 16px; }
    .spark .text h3 { font-size: 20px; }
    .spark .text p { font-size: 13.5px; }

    #overlay { padding: 14px; }
    #overlay .body { padding: 20px 22px 24px; }
    #overlay .body h2 { font-size: 22px; }
    #overlay .body p { font-size: 14px; }
    #overlay .link-btn { padding: 10px 18px; font-size: 13.5px; }
    #overlay .panel.size-narrow { width: min(320px, 100%); }
  }

  @media (max-width: 380px) {
    .hero h1 { font-size: 26px; }
    .hero h1 .handle-line { font-size: 19px; }
    .hero-portrait { width: 96px; height: 96px; }
    .stats .stat .num { font-size: 38px; }
  }
