/* ===========================================================================
   KHONS · AIGC PORTFOLIO — Design System (v5 · soft-premium editorial)
   Warm light-grey ground · signature teal · Inter · soft rounded white cards
   pill CTAs (expanding white fill + teal circle arrow) · circular burger +
   dark glass menu · block splash · cursor spotlight reveal · word reveal.
   One unified light language across every page.
   Layers: fluid wash (z0) → content (z2) → topbar/menu (z10) → spotlight (z7)
           → cursor (z9998) → splash (z9999)
   =========================================================================== */

:root {
    /* ---- palette (from reference) ---- */
    --ground: #e4e4e4;
    --ground-2: #dad9d6;
    --card: #ffffff;
    --teal: #75c5de;
    --teal-deep: #4ea9c6;
    --warm: #f0906a;       /* secondary pop */
    --ink: #111111;
    --ink-soft: #4a4845;
    --muted: #9a9590;
    --cream: #f4f1e8;
    --line: rgba(17, 17, 17, 0.10);
    --line-2: rgba(17, 17, 17, 0.18);
    --panel: rgba(17, 17, 17, 0.95);

    /* ---- type ---- */
    --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", sans-serif;

    /* ---- motion ---- */
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --t: 0.4s var(--ease);

    /* ---- layout ---- */
    --container: 1600px;
    --gutter: clamp(16px, 3vw, 40px);
    --topbar-h: 84px;
    --radius: 24px;
    --shadow-soft: 0 18px 50px -24px rgba(17, 17, 17, 0.28);
    --shadow-card: 0 10px 30px -16px rgba(17, 17, 17, 0.22);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { margin: 0; padding: 0; }
html.kh-lock, html.kh-lock body { overflow: hidden; }

body {
    font-family: var(--font);
    background: var(--ground);
    color: var(--ink);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::selection { background: var(--teal); color: var(--ink); }

h1, h2, h3, h4, h5, h6 { font-family: var(--font); font-weight: 500; color: var(--ink); letter-spacing: -0.02em; line-height: 1.1; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, video { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

/* ---- ambient fluid wash (very faint, soft) ---- */
.liquid-ether-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.16; mix-blend-mode: soft-light; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ground-2); }
::-webkit-scrollbar-thumb { background: var(--teal); border-radius: 999px; border: 3px solid var(--ground-2); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); position: relative; z-index: 2; }
.content-section { padding: clamp(70px, 11vh, 140px) 0; position: relative; }
.page-container { padding-top: var(--topbar-h); min-height: 100vh; }

/* =========================================================================
   SPLASH (block reveal intro)
   ========================================================================= */
.splash { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 9999; pointer-events: none; overflow: hidden; animation: splashHide 0.3s ease forwards; animation-delay: 1.35s; }
.splash-row { display: flex; width: 100%; height: 50%; }
.splash-box { width: 20%; height: 100%; background: var(--teal); }
.splash-row-top .splash-box { animation: splashTop 1s cubic-bezier(0.96,-0.02,0.38,1.01) forwards; }
.splash-row-bottom .splash-box { animation: splashBottom 1s cubic-bezier(0.96,-0.02,0.38,1.01) forwards; }
.splash-box:nth-child(1) { animation-delay: 0s; }
.splash-box:nth-child(2) { animation-delay: 0.05s; }
.splash-box:nth-child(3) { animation-delay: 0.1s; background: var(--warm); }
.splash-box:nth-child(4) { animation-delay: 0.15s; }
.splash-box:nth-child(5) { animation-delay: 0.2s; }
.splash-row-bottom .splash-box:nth-child(3) { background: var(--cream); }
@keyframes splashTop { from { transform: translateY(0); } to { transform: translateY(-100%); } }
@keyframes splashBottom { from { transform: translateY(0); } to { transform: translateY(100%); } }
@keyframes splashHide { to { opacity: 0; visibility: hidden; } }

/* =========================================================================
   LOGO + BURGER + MENU (reference nav)
   ========================================================================= */
.logo-wrapper { position: fixed; top: 30px; left: 0; width: 50%; z-index: 12; display: flex; justify-content: flex-start; align-items: center; mix-blend-mode: difference; }
@media (min-width: 768px) { .logo-wrapper { top: 40px; } }
.logo-wrapper .inner { padding-left: 20px; display: flex; align-items: center; gap: 10px; }
@media (min-width: 768px) { .logo-wrapper .inner { padding-left: 40px; } }
.logo-mark { font-weight: 700; font-size: 19px; letter-spacing: -0.02em; color: #fff; }
.logo-mark .dot { color: var(--teal); }
/* inner pages: logo becomes an obvious back-home pill (no blend, so it reads clearly on the light ground) */
.logo-wrapper.is-inner { mix-blend-mode: normal; }
.back-home { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; letter-spacing: 0.01em; color: var(--cream); background: var(--teal); padding: 10px 18px 10px 14px; border-radius: 999px; transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.back-home:hover { background: var(--ink); color: var(--cream); transform: translateX(-3px); box-shadow: 0 10px 24px -12px rgba(17,17,17,0.55); }
.back-home .bh-arr { display: inline-flex; transition: transform 0.3s var(--ease); }
.back-home:hover .bh-arr { transform: translateX(-3px); }


.burger-wrapper { position: fixed; top: 16px; right: 0; width: 50%; z-index: 102; display: flex; justify-content: flex-end; align-items: center; pointer-events: none; }
@media (min-width: 768px) { .burger-wrapper { top: 27px; } }
.burger-wrapper .inner { padding-right: 20px; display: flex; align-items: center; gap: 12px; pointer-events: auto; }
@media (min-width: 768px) { .burger-wrapper .inner { padding-right: 40px; } }
.lang-toggle { width: 44px; height: 44px; border-radius: 50%; border: none; background: var(--cream); color: var(--ink); font-size: 12px; font-weight: 600; letter-spacing: 0.02em; transition: background 0.4s, color 0.4s; }
.lang-toggle:hover { background: var(--ink); color: var(--cream); }
.burger-btn { width: 59px; height: 59px; border-radius: 50%; border: none; display: flex; flex-direction: column; gap: 4px; align-items: center; justify-content: center; background: var(--cream); transition: background 0.4s; }
.burger-btn:hover { background: var(--ink); }
.burger-btn .bar { display: block; width: 24px; height: 2px; background: var(--ink); transition: all 0.3s; }
.burger-btn:hover .bar { background: var(--cream); }
.burger-btn.open { background: var(--ink); }
.burger-btn.open .bar { background: var(--cream); }
.burger-btn.open .bar:first-child { transform: rotate(45deg) translate(2px, 2px); }
.burger-btn.open .bar:last-child { transform: rotate(-45deg) translate(2px, -2px); }

.menu-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(13,14,13,.24); backdrop-filter: blur(0); opacity: 0; pointer-events: none; transition: opacity .6s ease, backdrop-filter .6s ease; }
.menu-backdrop.open { opacity: 1; pointer-events: auto; backdrop-filter: blur(8px); }
.menu-panel { --mx: 0px; --my: 0px; position: fixed; z-index: 101; top: 7px; right: 7px; bottom: 7px; width: min(560px, calc(100vw - 14px)); overflow: hidden; display: grid; grid-template-rows: auto 1fr auto; padding: 34px 38px 30px; border: 1px solid rgba(255,255,255,.17); border-radius: 26px; color: #f2f0e9; background: #121715; box-shadow: -28px 24px 80px rgba(11,15,13,.28); transform: translateX(calc(100% + 32px)) rotate(1.2deg); transform-origin: right center; opacity: 0; pointer-events: none; transition: transform .85s cubic-bezier(.77,0,.18,1), opacity .35s ease; }
.menu-panel.open { transform: translateX(0) rotate(0); opacity: 1; pointer-events: auto; }
.menu-art, .menu-grain { position: absolute; inset: 0; pointer-events: none; }
.menu-art { background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(to bottom, black, transparent 76%); }
.menu-grain { opacity: .13; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E"); }
.menu-orbit { position: absolute; border-radius: 50%; border: 1px solid rgba(54,232,187,.38); transform: translate(var(--mx), var(--my)); transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.menu-orbit-a { width: 420px; height: 420px; top: -210px; right: -135px; box-shadow: inset 0 0 90px rgba(54,232,187,.08); animation: menuOrbit 13s linear infinite; }
.menu-orbit-b { width: 170px; height: 170px; top: 82px; right: 58px; border-style: dashed; animation: menuOrbit 9s linear infinite reverse; }
@keyframes menuOrbit { to { rotate: 360deg; } }
.menu-head, .menu-foot { position: relative; display: flex; justify-content: space-between; gap: 20px; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }
.menu-head { align-items: center; padding-bottom: 26px; border-bottom: 1px solid rgba(255,255,255,.15); opacity: 0; transform: translateY(-12px); transition: .45s .42s ease; }
.menu-panel.open .menu-head { opacity: 1; transform: none; }
.menu-status { display: flex; align-items: center; gap: 8px; color: rgba(242,240,233,.56); }
.menu-status i { width: 6px; height: 6px; border-radius: 50%; background: #36e8bb; box-shadow: 0 0 12px #36e8bb; animation: menuPulse 1.8s ease-in-out infinite; }
@keyframes menuPulse { 50% { opacity: .35; transform: scale(.7); } }
.menu-panel nav { position: relative; align-self: center; width: 100%; display: flex; flex-direction: column; }
.menu-panel nav a { position: relative; display: grid; grid-template-columns: 34px 1fr auto 28px; align-items: baseline; gap: 10px; width: 100%; padding: 17px 0; border-bottom: 1px solid rgba(255,255,255,.12); color: #f2f0e9; opacity: 0; transform: translateX(54px) skewX(-4deg); transition: color .35s ease, padding .45s var(--ease), opacity .55s ease, transform .65s var(--ease); }
.menu-panel.open nav a { opacity: 1; transform: none; }
.menu-panel.open nav a:nth-child(1) { transition-delay: .26s; } .menu-panel.open nav a:nth-child(2) { transition-delay: .34s; } .menu-panel.open nav a:nth-child(3) { transition-delay: .42s; } .menu-panel.open nav a:nth-child(4) { transition-delay: .5s; }
.menu-panel nav a::before { content: ''; position: absolute; inset: 0; background: #36e8bb; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); z-index: -1; }
.menu-panel nav a:hover { color: #111613; padding-inline: 13px; }
.menu-panel nav a:hover::before { transform: scaleX(1); transform-origin: left; }
.menu-no { align-self: center; font-size: 10px; opacity: .48; font-variant-numeric: tabular-nums; }
.menu-name { font-size: clamp(31px, 4vw, 48px); line-height: 1; letter-spacing: -.055em; font-weight: 500; }
.menu-en { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; opacity: .52; }
.menu-arrow { font-size: 17px; font-style: normal; transform: rotate(-16deg); transition: transform .35s ease; }
.menu-panel nav a:hover .menu-arrow { transform: rotate(0) translate(2px,-2px); }
.menu-foot { padding-top: 22px; border-top: 1px solid rgba(255,255,255,.15); color: rgba(242,240,233,.48); opacity: 0; transform: translateY(12px); transition: .45s .58s ease; }
.menu-panel.open .menu-foot { opacity: 1; transform: none; }
@media (max-width: 600px) { .menu-panel { padding: 28px 24px 24px; border-radius: 22px; } .menu-panel nav a { grid-template-columns: 28px 1fr 22px; } .menu-en { display: none; } .menu-name { font-size: 34px; } .menu-foot { font-size: 8px; } }

/* The navigation uses the same soft editorial language as the home page. */
.menu-backdrop { background: rgba(218,217,214,.38); }
.menu-backdrop.open { backdrop-filter: blur(12px) saturate(.85); }
.menu-panel { border-color: rgba(17,17,17,.08); color: var(--ink); background: rgba(255,255,255,.94); box-shadow: -24px 24px 70px -34px rgba(17,17,17,.34); }
.menu-art { background: radial-gradient(circle at 84% 14%, rgba(117,197,222,.28) 0 9%, transparent 30%), radial-gradient(circle at 12% 92%, rgba(240,144,106,.12), transparent 28%); mask-image: none; }
.menu-grain { display: none; }
.menu-orbit { border-color: rgba(78,169,198,.24); }
.menu-orbit-a { box-shadow: inset 0 0 90px rgba(117,197,222,.08); }
.menu-orbit-b { border-color: rgba(240,144,106,.3); }
.menu-head { border-bottom-color: var(--line); }
.menu-status { color: var(--muted); }
.menu-status i { background: var(--teal-deep); box-shadow: 0 0 0 4px rgba(117,197,222,.18); }
.menu-panel nav a { color: var(--ink); border-bottom-color: var(--line); }
.menu-panel nav a::before { background: rgba(228,228,228,.72); border-radius: 14px; transform: scale(.97,.15); opacity: 0; }
.menu-panel nav a:hover { color: var(--ink); }
.menu-panel nav a:hover::before { transform: scale(1); opacity: 1; }
.menu-panel nav a:hover .menu-no { color: var(--teal-deep); opacity: 1; }
.menu-panel nav a:hover .menu-arrow { color: var(--warm); }
.menu-no, .menu-en { color: var(--muted); }
.menu-foot { border-top-color: var(--line); color: var(--muted); }
.burger-btn.open { background: var(--teal); }
.burger-btn.open .bar { background: var(--ink); }
.burger-btn.open .bar:first-child,
.burger-btn.open .bar:last-child { transform: none; }
@media (prefers-reduced-motion: reduce) { .menu-panel, .menu-panel *, .menu-backdrop { animation: none !important; transition-duration: .01ms !important; } }

/* =========================================================================
   PILL CTA (expanding white fill + teal circle arrow)
   ========================================================================= */
.cta-btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; border: none; background: none; border-radius: 9999px; padding: 8px; gap: 12px; }
.cta-btn-bg { position: absolute; top: 5px; bottom: 5px; left: 8px; width: calc(100% - 8px - 8px - 48px - 12px); border-radius: 9999px; background: #fff; z-index: 0; transition: width 0.4s var(--ease); }
@media (min-width: 768px) { .cta-btn-bg { width: calc(100% - 8px - 8px - 54px - 12px); } }
.cta-btn:hover .cta-btn-bg { width: calc(100% - 16px); }
.cta-btn-text { position: relative; z-index: 1; color: var(--ink); font-weight: 500; font-size: 16px; padding: 12px 32px; white-space: nowrap; }
@media (min-width: 768px) { .cta-btn-text { font-size: 18px; padding: 16px 40px; } }
.cta-btn-circle { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--teal); flex-shrink: 0; transition: transform 0.4s var(--ease); }
@media (min-width: 768px) { .cta-btn-circle { width: 54px; height: 54px; } }
.cta-btn:hover .cta-btn-circle { transform: translateX(-7px); }

.menu-cta-btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; border: none; background: none; border-radius: 9999px; padding: 6px; gap: 8px; }
.menu-cta-bg { position: absolute; top: 5px; bottom: 5px; left: 8px; width: calc(100% - 8px - 8px - 38px - 8px); border-radius: 9999px; background: #fff; z-index: 0; transition: width 0.4s var(--ease); }
.menu-cta-btn:hover .menu-cta-bg { width: calc(100% - 12px); }
.menu-cta-text { position: relative; z-index: 1; color: var(--ink); font-weight: 500; font-size: 14px; padding: 8px 40px; white-space: nowrap; }
.menu-cta-circle { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--teal); flex-shrink: 0; transition: transform 0.3s; }
.menu-cta-btn:hover .menu-cta-circle { transform: translateX(-4px); }

/* =========================================================================
   WORD REVEAL (headline blur-in)
   ========================================================================= */
@keyframes wordReveal { from { opacity: 0; transform: translateY(10px); filter: blur(10px); } to { opacity: 1; transform: translateY(0); filter: blur(0); } }
.word-reveal { opacity: 0; display: inline-block; margin-right: 0.28em; animation: wordReveal 0.5s ease forwards; }

/* "Works" is a static centred watermark; fade opacity only (cheap, no big-text
   transform rasterisation) so it can never freeze-then-snap on load. `both` holds
   the hidden state through the delay so it never "sticks then jumps". */
@keyframes bigTextIn { from { opacity: 0; } to { opacity: 1; } }
.creator-text-animate { transform: translateY(-50%); }
/* transform-only entrance: opacity would isolate the stacking context and
   break the img's mix-blend-mode multiply (white bg would stay white). */
@keyframes heroImageIn { from { transform: translateY(7%) scale(1.12) rotate(2.5deg); } to { transform: translateY(0) scale(1) rotate(0); } }
.hero-image-animate { animation: none; opacity: 1; } /* wrapper stays static so it never isolates the blend */
.hero-portrait.hero-image-animate { will-change: transform; backface-visibility: hidden; }
@keyframes slideUpScale { from { opacity: 0; transform: translateY(60px) scale(0.4); } to { opacity: 1; transform: translateY(0) scale(1); } }
.cta-animate { opacity: 0; animation: slideUpScale 0.8s var(--ease) forwards; animation-delay: 1s; will-change: transform, opacity; backface-visibility: hidden; }

/* =========================================================================
   HERO (reference composition + spotlight reveal)
   ========================================================================= */
.hero { position: relative; width: 100%; overflow: hidden; background: var(--ground); min-height: 100vh; }
@media (min-width: 768px) { .hero { height: 100vh; min-height: 800px; } }

.hero-big-text { position: absolute; top: 50%; left: 0; right: 0; transform: translateY(-50%); z-index: 2; pointer-events: none; width: 100%; text-align: center; will-change: transform; backface-visibility: hidden; }
.hero-big-text h2 { font-weight: 600; color: var(--cream); line-height: 0.82; letter-spacing: -0.045em; white-space: nowrap; font-size: clamp(52px, 12vw, 200px); max-width: 100%; padding-inline: var(--gutter); opacity: 0; animation: bigTextIn 0.9s var(--ease-out) both; animation-delay: 1.3s; }

/* ---- portrait: frameless cutout — white bg dissolved into the page, nothing behind ---- */
.hero-portrait { position: absolute; top: 9vh; right: clamp(8px, 3vw, 48px); bottom: clamp(30px, 7vh, 80px); width: clamp(260px, 31vw, 480px); z-index: 5; }
/* soft contact shadow under the feet — grounds the cutout without any box/card */
.hero-portrait::after { content: ''; position: absolute; left: 50%; bottom: 1.5%; transform: translateX(-50%); width: 50%; height: 26px; background: radial-gradient(ellipse at center, rgba(17,17,17,0.22), rgba(17,17,17,0) 72%); filter: blur(3px); z-index: 0; pointer-events: none; }
/* The portrait is a real transparent cutout (avatar-cutout.png), so no blend trick is
   needed — the figure composites cleanly over whatever sits behind it. */
.hero-portrait img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; animation: heroImageIn 1.2s var(--ease) both; animation-delay: 1s; }
@media (max-width: 767px) {
    .hero-portrait { left: 50%; right: auto; top: 20vh; bottom: auto; transform: translateX(-50%); width: min(80vw, 340px); height: 48vh; opacity: 0.94; }
}
.hero-content { position: relative; z-index: 8; display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; width: 100%; max-width: var(--container); margin: 0 auto; padding: 110px 16px 24px; pointer-events: none; }
@media (min-width: 768px) { .hero-content { position: absolute; inset: 0; justify-content: space-between; padding: 160px 40px 100px; } }
.hero-content-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 0; width: 100%; pointer-events: auto; }
/* hero type hierarchy: eyebrow → NAME (solid, dominant) → ghost outline echo → role → intro → CTA → meta */
/* pure hollow name: transparent fill + a bold stroke thick enough to read as a
   graphic display element (not a thin wireframe). */
.hero-name { font-family: var(--font); font-weight: 800; font-size: clamp(64px, 11.5vw, 152px); line-height: 0.86; letter-spacing: -0.03em; color: transparent; -webkit-text-stroke: 2.5px var(--ink); paint-order: stroke fill; margin: 22px 0 0; max-width: 11em; }
.hero-name .word-reveal { line-height: 0.9; }
@keyframes heroWordIn { from { transform: translateY(0.5em); filter: blur(8px); } to { transform: translateY(0); filter: blur(0); } }
.hero-ghost { display: none; } /* single name row per request; the offset outline now carries the "hollow" cue */
.hero-role { margin: 22px 0 0; font-size: clamp(14px, 1.35vw, 17px); font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; color: var(--teal-deep); min-height: 1.4em; display: inline-flex; align-items: center; gap: 10px; max-width: 30em; line-height: 1.5; }
.hero-role::before { content: ''; width: 28px; height: 2px; background: var(--warm); display: inline-block; }
.hero-intro { margin: 18px 0 0; max-width: 52ch; color: var(--ink-soft); font-size: clamp(17px, 1.55vw, 20px); font-weight: 400; line-height: 1.72; letter-spacing: -0.005em; }
.hero-stats { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0; margin: 30px 0 0; }
.hero-stats .hs-item { display: flex; flex-direction: column; gap: 5px; padding: 2px 26px 2px 0; margin-right: 26px; border-right: 1px solid var(--line-2); }
.hero-stats .hs-item:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.hero-stats .hs-num { font-family: var(--font); font-weight: 800; font-size: clamp(26px, 2.8vw, 38px); line-height: 1; letter-spacing: -0.03em; color: var(--ink); }
.hero-stats .hs-num .u { color: var(--teal-deep); }
.hero-stats .hs-lbl { font-family: var(--font); font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin: 38px 0 0; font-family: var(--font); font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.hero-meta .hm-item { display: inline-flex; align-items: center; gap: 9px; position: relative; padding-left: 22px; }
.hero-meta .hm-item:first-child { padding-left: 0; }
.hero-meta .hm-item:not(:first-child)::before { content: ''; position: absolute; left: 0; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; background: var(--line-2); }
.hero-meta .hm-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(78,169,198,0.5); animation: pulse 2.2s var(--ease-out) infinite; }
.hero-eyebrow { font-size: clamp(13px, 1.1vw, 15px); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal-deep); display: inline-flex; align-items: center; gap: 12px; }
.hero-eyebrow .pulse { width: 26px; height: 2px; background: var(--warm); }

/* =========================================================================
   MARQUEE (soft band)
   ========================================================================= */
.marquee { --h: 64px; position: relative; z-index: 2; display: flex; align-items: center; height: var(--h); overflow: hidden; border-block: 1px solid var(--line-2); background: var(--ground-2); }
.marquee__track { display: flex; flex-shrink: 0; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; flex-shrink: 0; }
.marquee__item { display: inline-flex; align-items: center; gap: 24px; padding-inline: 24px; font-size: clamp(16px, 2.1vw, 23px); font-weight: 700; letter-spacing: 0.01em; color: var(--ink); white-space: nowrap; }
.marquee__item .sep { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); flex: none; }
.marquee__item.is-outline { -webkit-text-stroke: 1px var(--muted); color: transparent; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee--stats { --h: auto; padding: clamp(28px, 5vh, 52px) 0; background: var(--teal); border-block: none; }
.marquee--stats .marquee__track { animation-duration: 48s; }
.marquee--stats .marquee__item { color: var(--ink); gap: 32px; padding-inline: 32px; align-items: baseline; }
.marquee--stats .sep { background: var(--ink); }
.stat-num { font-weight: 600; font-size: clamp(36px, 6vw, 72px); line-height: 1; letter-spacing: -0.03em; }
.stat-num .u { font-size: 0.4em; color: var(--warm); vertical-align: super; margin-left: 2px; }
.stat-lbl { font-size: 13px; font-weight: 500; letter-spacing: 0.02em; color: rgba(17,17,17,0.72); max-width: 132px; line-height: 1.4; }

/* =========================================================================
   SCROLL-STACK (soft light cards)
   ========================================================================= */
.scroll-stack-inner { padding: clamp(64px, 12vh, 150px) 0 16vh; position: relative; z-index: 10; }
.stack-intro { padding: clamp(48px, 9vh, 100px) 0 clamp(24px, 4vh, 48px); max-width: 760px; }
.stack-intro .mono { font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal-deep); }
.stack-intro h2 { font-size: clamp(30px, 5vw, 56px); font-weight: 600; margin-top: 12px; letter-spacing: -0.03em; line-height: 1.08; }
.stack-intro h2 em, .stack-intro h2 span { font-style: normal; color: var(--teal-deep); }

.scroll-stack-card-wrapper { position: relative; width: 100%; max-width: 940px; margin: 0 auto; height: 440px; display: flex; justify-content: center; align-items: flex-start; }
.scroll-stack-card { --c: var(--teal); transform-origin: top center; will-change: transform, filter; backface-visibility: hidden; height: 440px; width: 100%; border-radius: 32px; background: var(--card); box-shadow: var(--shadow-soft); display: flex; flex-direction: column; justify-content: space-between; text-align: left; text-decoration: none; padding: clamp(28px, 4vw, 46px); box-sizing: border-box; position: relative; overflow: hidden; transition: box-shadow 0.4s var(--ease); }
.scroll-stack-card::before { content: ''; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: color-mix(in srgb, var(--c) 22%, transparent); transition: transform 0.6s var(--ease); }
.scroll-stack-card:hover::before { transform: scale(1.4); }
.scroll-stack-card:hover { box-shadow: 0 30px 70px -28px rgba(17,17,17,0.34); }
.scroll-stack-card-wrapper:nth-of-type(1) .scroll-stack-card { --c: var(--teal); }
.scroll-stack-card-wrapper:nth-of-type(2) .scroll-stack-card { --c: var(--warm); }
.scroll-stack-card-wrapper:nth-of-type(3) .scroll-stack-card { --c: #b39ddb; }
.scroll-stack-card-wrapper:nth-of-type(4) .scroll-stack-card { --c: #8fd0a8; }
.ss-top { display: flex; align-items: flex-start; justify-content: space-between; position: relative; z-index: 1; }
.ss-index { font-weight: 600; font-size: clamp(44px, 7vw, 80px); line-height: 0.8; letter-spacing: -0.04em; color: var(--c); }
.ss-en { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); text-align: right; max-width: 50%; }
.ss-mid { margin-top: auto; position: relative; z-index: 1; }
.ss-title { font-size: clamp(30px, 5vw, 54px); font-weight: 500; letter-spacing: -0.03em; }
.ss-desc { margin-top: 12px; color: var(--ink-soft); font-size: clamp(15px, 1.3vw, 17px); max-width: 56ch; }
.ss-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; position: relative; z-index: 1; }
.ss-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 12px; font-weight: 500; color: var(--ink-soft); padding: 6px 12px; border-radius: 999px; background: var(--ground); }
.ss-arrow { flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--c); display: grid; place-items: center; color: #fff; transition: transform 0.35s var(--ease); }
.ss-arrow svg { width: 22px; height: 22px; }
.scroll-stack-card:hover .ss-arrow { transform: rotate(-45deg); }
.scroll-stack-end { width: 100%; height: 1px; margin-top: 8vh; }

/* =========================================================================
   SECTION TITLES (word-reveal friendly)
   ========================================================================= */
.section-title { font-size: clamp(34px, 6vw, 72px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.04; text-align: left; margin-bottom: clamp(34px, 6vh, 62px); display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.section-title .idx { font-size: 14px; font-weight: 600; letter-spacing: 0.06em; color: #fff; background: var(--teal); padding: 6px 11px; border-radius: 999px; align-self: center; }

/* =========================================================================
   ABOUT — soft bento
   ========================================================================= */
.about-grid { display: grid; gap: 18px; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(120px, auto); }
.tile { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-card); padding: clamp(24px, 2.6vw, 34px); display: flex; flex-direction: column; gap: 14px; transform-style: preserve-3d; transition: transform var(--t), box-shadow var(--t); }
.tile:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); }
.tile h3 { font-weight: 500; font-size: clamp(21px, 2.3vw, 28px); letter-spacing: -0.02em; }
.tile .k { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-deep); }
.tile p, .tile li { color: var(--ink-soft); font-size: 15px; line-height: 1.75; }
/* ---- positioning card (tile--a): layered top / middle / bottom, vertically balanced ---- */
.tile--a { justify-content: center; gap: clamp(16px, 1.8vh, 24px); }
.about-creds { display: flex; flex-wrap: wrap; gap: 7px; }
.cred-tag { font-family: var(--font); font-size: 11px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--teal-deep); background: color-mix(in srgb, var(--teal) 13%, transparent); border: 1px solid color-mix(in srgb, var(--teal) 30%, transparent); padding: 5px 11px; border-radius: 999px; transition: background 0.25s var(--ease), color 0.25s; }
.cred-tag:hover { background: var(--teal); color: #fff; }
.about-intro { display: flex; flex-direction: column; gap: 13px; }
.about-headline { font-family: var(--font); font-weight: 700; font-size: clamp(21px, 2.1vw, 28px); line-height: 1.3; letter-spacing: -0.018em; color: var(--ink); max-width: 20em; }
.about-lead { color: var(--ink-soft); font-size: 14.5px; line-height: 1.72; max-width: 34em; }
.about-feature { display: flex; align-items: center; gap: 10px; font-family: var(--font); font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.about-feature .af-bar { width: 26px; height: 2px; background: var(--warm); }
.about-stats-mini { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--ground); }
.asm-item { display: flex; flex-direction: column; gap: 5px; padding: 13px 14px; border-right: 1px solid var(--line); }
.asm-item:last-child { border-right: 0; }
.asm-num { font-family: var(--font); font-weight: 700; font-size: clamp(20px, 1.9vw, 26px); line-height: 1; letter-spacing: -0.02em; color: var(--ink); }
.asm-num .u { color: var(--teal-deep); }
.asm-lbl { font-family: var(--font); font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.tile--a { grid-column: span 3; grid-row: span 2; }
.tile--b { grid-column: span 3; }
.tile--c { grid-column: span 3; }
.tile--d { grid-column: span 2; }
.tile--e { grid-column: span 2; }
.tile--f { grid-column: span 2; }
.tile--photo { grid-column: span 2; grid-row: span 2; padding: 0; background: linear-gradient(160deg, #eaf6fb, #cfe9f2); }
.tile--photo img { width: 100%; height: 100%; object-fit: cover; }
.tile--photo .badge-mono { position: absolute; left: 14px; top: 14px; z-index: 3; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); background: var(--cream); padding: 5px 10px; border-radius: 999px; }
.focus-list { display: flex; flex-direction: column; gap: 13px; }
.focus-list li { display: flex; gap: 12px; align-items: flex-start; }
.focus-list li .mk { flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--teal); margin-top: 2px; border: 0; display: inline-block; }
.focus-list li:hover .mk { background: var(--warm); }
.about-grid .big-stat { font-weight: 600; font-size: clamp(42px, 6vw, 78px); line-height: 0.88; letter-spacing: -0.03em; color: var(--ink); }
.about-grid .big-stat .u { color: var(--warm); font-size: 0.4em; vertical-align: super; }
@media (max-width: 900px) { .about-grid { grid-template-columns: repeat(2, 1fr); } .tile--a, .tile--b, .tile--c, .tile--d, .tile--e, .tile--f, .tile--photo { grid-column: span 2; grid-row: auto; } .tile--photo { min-height: 300px; } }

.contact-cta { margin-top: clamp(40px, 7vh, 80px); border-radius: 32px; padding: clamp(30px, 5vw, 64px); position: relative; overflow: hidden; background: var(--ink); color: var(--cream); box-shadow: var(--shadow-soft); }
.contact-cta::before { content: ''; position: absolute; right: -80px; top: -80px; width: 300px; height: 300px; border-radius: 50%; background: rgba(117,197,222,0.22); }
.contact-cta .k { font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal); position: relative; }
.contact-cta h2 { font-size: clamp(32px, 6vw, 68px); margin: 14px 0 26px; color: var(--cream); font-weight: 500; position: relative; }
.contact-row { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; position: relative; }
.contact-line { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; font-weight: 500; }
.contact-line [data-copy] { color: var(--cream); border-bottom: 1px solid rgba(244,241,232,0.3); padding-bottom: 2px; transition: color 0.3s, border-color 0.3s; }
.contact-line [data-copy]:hover { color: var(--teal); border-color: var(--teal); }

/* ---- skills grid (added from resume) ---- */
.skills-block { margin-top: clamp(20px, 4vh, 40px); }
.skills-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 22px; }
.skills-head .k { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal-deep); }
.skills-head h3 { font-family: var(--font); font-weight: 600; font-size: clamp(24px, 3.5vw, 38px); letter-spacing: -0.02em; }
.skills-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.skill-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-card); padding: clamp(20px, 2vw, 26px); display: flex; flex-direction: column; gap: 14px; transition: transform var(--t), box-shadow var(--t); position: relative; overflow: hidden; }
.skill-card::before { content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 4px; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease); }
.skill-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); }
.skill-card:hover::before { transform: scaleX(1); }
.skill-card .skill-no { font-family: var(--font); font-weight: 700; font-size: 13px; color: var(--warm); letter-spacing: 0.04em; }
.skill-card h4 { font-family: var(--font); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; line-height: 1.25; color: var(--ink); }
.skill-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.skill-chips span { font-size: 12.5px; font-weight: 500; color: var(--ink-soft); background: var(--ground); padding: 5px 11px; border-radius: 999px; line-height: 1.3; }
@media (max-width: 980px) { .skills-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .skills-grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .about-stats-mini { grid-template-columns: 1fr; } .asm-item { border-right: 0; border-bottom: 1px solid var(--line); } .asm-item:last-child { border-bottom: 0; } }

/* =========================================================================
   EXPERIENCE — timeline
   ========================================================================= */
.timeline { position: relative; max-width: 940px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--teal), var(--warm), transparent); }
.timeline-item { position: relative; padding-left: 48px; margin-bottom: clamp(20px, 3.5vh, 36px); }
.timeline-item::before { content: ''; position: absolute; left: 0; top: 7px; width: 16px; height: 16px; border-radius: 50%; background: var(--ground); border: 3px solid var(--teal); transition: background 0.3s, transform 0.3s; }
.timeline-item:hover::before { background: var(--teal); transform: scale(1.2); }
.timeline-content { border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-card); padding: clamp(24px, 3vw, 34px); transition: transform var(--t), box-shadow var(--t); }
.timeline-item:hover .timeline-content { transform: translateX(4px); box-shadow: var(--shadow-soft); }
.timeline-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; }
.company-name { font-weight: 500; font-size: clamp(20px, 2.3vw, 27px); letter-spacing: -0.02em; }
.period { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; color: var(--teal-deep); }
.position { color: var(--ink-soft); font-size: 14px; margin: 6px 0 0; width: 100%; }
.toggle-btn { margin-top: 16px; display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; letter-spacing: 0.03em; color: var(--ink); background: var(--ground); border: none; padding: 10px 16px; border-radius: 999px; transition: background 0.3s, color 0.3s; }
.toggle-btn:hover { background: var(--teal); color: #fff; }
.toggle-icon { display: inline-grid; place-items: center; width: 14px; height: 14px; font-size: 17px; line-height: 1; transition: transform 0.35s var(--ease); }
.toggle-btn[data-expanded="true"] .toggle-icon { transform: rotate(135deg); }
.responsibilities { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 0.45s var(--ease), opacity 0.4s, margin 0.4s; margin-top: 0; }
.responsibilities > .resp-inner { overflow: hidden; }
.responsibilities.open { grid-template-rows: 1fr; opacity: 1; margin-top: 18px; }
.responsibilities ul { padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 11px; }
.responsibilities li { position: relative; padding-left: 20px; color: var(--ink-soft); font-size: 14px; line-height: 1.75; }
.responsibilities li::before { content: ''; position: absolute; left: 2px; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }

/* =========================================================================
   PROJECTS
   ========================================================================= */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 18px; }
.project-card { border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-card); padding: clamp(26px, 3vw, 36px); position: relative; display: flex; flex-direction: column; gap: 14px; transform-style: preserve-3d; transition: transform var(--t), box-shadow var(--t); overflow: hidden; }
.project-card::before { content: ''; position: absolute; right: -50px; top: -50px; width: 160px; height: 160px; border-radius: 50%; background: color-mix(in srgb, var(--teal) 16%, transparent); transition: transform 0.6s var(--ease); }
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.project-card:hover::before { transform: scale(1.5); }
.project-name { font-weight: 500; font-size: clamp(21px, 2.3vw, 27px); letter-spacing: -0.02em; line-height: 1.15; position: relative; }
.project-role { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--teal-deep); position: relative; }
.project-role strong, .project-tools strong { color: var(--warm); font-weight: 600; }
.project-tools { font-size: 13px; color: var(--muted); position: relative; }
.project-card h4 { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 6px; position: relative; }
.project-description { color: var(--ink-soft); font-size: 14px; line-height: 1.75; position: relative; }
.project-responsibilities { display: flex; flex-direction: column; gap: 9px; padding-top: 16px; border-top: 1px solid var(--line); position: relative; }
.project-responsibilities li { position: relative; padding-left: 18px; color: var(--ink-soft); font-size: 13.5px; line-height: 1.7; }
.project-responsibilities li::before { content: ''; position: absolute; left: 2px; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--warm); }

/* =========================================================================
   PORTFOLIO
   ========================================================================= */
.portfolio-archive { padding-top: clamp(20px, 4vh, 40px); }
.portfolio-hero { border-radius: 32px; padding: clamp(28px, 4vw, 48px); background: var(--card); box-shadow: var(--shadow-soft); position: relative; overflow: hidden; margin-bottom: clamp(30px, 6vh, 56px); }
.portfolio-hero::before { content: ''; position: absolute; right: -100px; top: -100px; width: 360px; height: 360px; border-radius: 50%; background: color-mix(in srgb, var(--teal) 18%, transparent); }
.portfolio-hero > * { position: relative; z-index: 1; }
.portfolio-hero-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.6fr); gap: 24px; }
.portfolio-kicker { font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal-deep); }
.portfolio-hero .section-title { margin: 12px 0 14px; }
.portfolio-lead { color: var(--ink-soft); max-width: 56ch; font-size: 15px; line-height: 1.75; }
.portfolio-hint, .portfolio-backup-note { margin-top: 12px; font-size: 13px; color: var(--ink-soft); border: 1px solid var(--line-2); border-radius: 14px; padding: 11px 14px; width: fit-content; max-width: 100%; line-height: 1.6; }
.portfolio-backup-note a { color: var(--teal-deep); text-decoration: underline; text-underline-offset: 3px; }
.portfolio-hero-aside { border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 12px; background: var(--teal); }
.portfolio-aside-title { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); }
.portfolio-metrics { display: grid; gap: 8px; }
.portfolio-metric-card { display: flex; align-items: baseline; justify-content: space-between; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,0.55); }
.portfolio-metric-value { font-weight: 600; font-size: 30px; letter-spacing: -0.02em; color: var(--ink); }
.portfolio-metric-label { font-size: 12px; font-weight: 500; letter-spacing: 0.03em; text-transform: uppercase; color: rgba(17,17,17,0.7); }
.portfolio-anchor-nav { margin-top: 22px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.portfolio-anchor-nav a { display: flex; flex-direction: column; gap: 4px; padding: 15px 16px; border-radius: 18px; background: var(--ground); transition: background 0.3s, transform 0.3s; }
.portfolio-anchor-nav a:hover { background: var(--teal); transform: translateY(-3px); }
.portfolio-anchor-name { font-weight: 500; font-size: 18px; }
.portfolio-anchor-meta { font-size: 12px; color: var(--muted); }
.portfolio-anchor-nav a:hover .portfolio-anchor-meta { color: rgba(17,17,17,0.7); }
@media (max-width: 980px) { .portfolio-hero-grid { grid-template-columns: 1fr; } .portfolio-anchor-nav { grid-template-columns: repeat(2, 1fr); } }

.collection-section { margin-bottom: 18px; padding: clamp(24px, 3vw, 34px); border-radius: 28px; background: var(--card); box-shadow: var(--shadow-card); }
.collection-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.collection-title { font-weight: 500; font-size: clamp(26px, 4vw, 40px); letter-spacing: -0.02em; }
.collection-desc { color: var(--ink-soft); font-size: 14px; margin-top: 6px; }
.collection-meta { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--teal-deep); background: color-mix(in srgb, var(--teal) 18%, transparent); border-radius: 999px; padding: 7px 13px; }

.media-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.media-grid-compact { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.media-card { position: relative; overflow: hidden; border-radius: 20px; background: var(--ink); aspect-ratio: 16 / 10; box-shadow: var(--shadow-card); transition: transform 0.4s var(--ease), box-shadow 0.4s; transform-style: preserve-3d; will-change: transform; }
.media-card::before { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(to top, rgba(17,17,17,0.78), rgba(17,17,17,0.1) 44%, transparent); }
.media-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.media-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); }
.media-card:hover img { transform: scale(1.06); }
.media-caption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 14px; }
.media-title { color: #fff; font-weight: 500; font-size: 16px; }
.media-subtitle { font-size: 11px; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; background: rgba(244,241,232,0.18); color: rgba(255,255,255,0.92); }
.media-action { font-size: 12px; font-weight: 600; border: none; border-radius: 999px; background: var(--teal); color: var(--ink); padding: 9px 14px; white-space: nowrap; transition: background 0.3s, transform 0.3s; }
.media-action:hover { background: #fff; transform: translateY(-1px); }
.tilt-glare { position: absolute; inset: 0; z-index: 5; border-radius: inherit; pointer-events: none; opacity: 0; background: radial-gradient(circle at var(--gx,50%) var(--gy,50%), rgba(255,255,255,0.45), transparent 45%); transition: opacity 0.3s; mix-blend-mode: soft-light; }

.portfolio-lightbox { position: fixed; inset: 0; z-index: 140; padding: 24px; display: flex; align-items: center; justify-content: center; background: rgba(17,17,17,0.7); backdrop-filter: blur(8px); opacity: 0; pointer-events: none; transition: opacity 0.3s var(--ease); }
.portfolio-lightbox.is-open { opacity: 1; pointer-events: auto; }
.portfolio-lightbox-dialog { width: min(980px, 95vw); padding: 16px; border-radius: 24px; background: var(--card); box-shadow: 0 40px 100px -30px rgba(0,0,0,0.5); transform: scale(0.95); transition: transform 0.4s var(--ease); }
.portfolio-lightbox.is-open .portfolio-lightbox-dialog { transform: scale(1); }
.lightbox-close { position: absolute; right: 12px; top: 10px; width: 36px; height: 36px; border-radius: 50%; border: none; background: var(--ground); color: var(--ink); font-size: 20px; line-height: 1; transition: background 0.3s, transform 0.3s; }
.lightbox-close:hover { background: var(--teal); transform: rotate(90deg); }
.lightbox-title { font-size: 13px; font-weight: 500; color: var(--muted); margin: 0 40px 10px 4px; }
.lightbox-video, .lightbox-image { width: 100%; border-radius: 16px; background: var(--ink); max-height: 78vh; }
.lightbox-image { object-fit: contain; }
body.lightbox-open { overflow: hidden; }

/* =========================================================================
   PRODUCTS
   ========================================================================= */
.products-page { padding-top: clamp(16px, 3vh, 28px); }
.products-shell { display: flex; flex-direction: column; gap: 26px; }
.products-hero { max-width: 840px; }
.products-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); background: var(--teal); padding: 7px 14px; border-radius: 999px; }
.products-title { font-size: clamp(42px, 8vw, 92px); margin: 16px 0 0; font-weight: 500; letter-spacing: -0.03em; }
.products-lead { margin-top: 16px; color: var(--ink-soft); font-size: 16px; line-height: 1.75; max-width: 56ch; }
.product-list { display: flex; flex-direction: column; gap: 18px; }
.product-showcase { --c: var(--teal); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); border-radius: 32px; overflow: hidden; background: var(--card); box-shadow: var(--shadow-soft); position: relative; isolation: isolate; transform-style: preserve-3d; transition: transform var(--t); }
.product-showcase:hover { transform: translateY(-4px); }
.product-showcase--pbti { --c: var(--warm); }
.product-showcase--geo { --c: #168173; }
.product-visual--geo { background: #f4f1e8; }
.product-visual { position: relative; min-height: 480px; overflow: hidden; }
.product-visual--pbti { display: grid; place-items: center; background: linear-gradient(160deg, #f6ece7, #ecd9d0); }
.product-thumb { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.product-showcase:hover .product-thumb { transform: scale(1.04); }
.product-thumb--contain { width: min(74%, 420px); height: auto; max-height: 78%; object-fit: contain; border-radius: 20px; box-shadow: var(--shadow-card); }
.product-visual::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(17,17,17,0.5), transparent 46%); pointer-events: none; }
.product-floating { position: absolute; left: 18px; bottom: 18px; z-index: 2; display: flex; flex-wrap: wrap; gap: 8px; }
.product-pill { font-size: 12px; font-weight: 500; padding: 5px 11px; border-radius: 999px; background: rgba(244,241,232,0.85); backdrop-filter: blur(6px); color: var(--ink); }
.product-body { padding: clamp(26px, 3vw, 38px); display: flex; flex-direction: column; position: relative; z-index: 1; }
.product-tag { align-self: flex-start; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 50%, transparent); border-radius: 999px; padding: 5px 12px; margin-bottom: 14px; }
.product-name { font-weight: 600; font-size: clamp(30px, 4vw, 46px); letter-spacing: -0.03em; }
.product-desc { color: var(--ink-soft); font-size: 15px; line-height: 1.8; margin: 10px 0 18px; }
.product-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.metric-item { border-radius: 16px; padding: 13px 12px; background: var(--ground); display: flex; flex-direction: column; gap: 5px; }
.metric-value { font-weight: 600; font-size: 24px; letter-spacing: -0.02em; color: var(--ink); }
.metric-label { font-size: 12px; color: var(--muted); line-height: 1.4; }
.product-highlights { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.product-highlights li { color: var(--ink-soft); font-size: 14px; line-height: 1.6; padding-left: 22px; position: relative; }
.product-highlights li::before { content: ''; position: absolute; left: 2px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.product-link { align-self: flex-start; }
@media (max-width: 900px) { .product-showcase { grid-template-columns: 1fr; } .product-visual { min-height: 300px; } }
@media (max-width: 560px) { .product-metrics { grid-template-columns: 1fr; } }

/* =========================================================================
   FRAMEPILOT
   ========================================================================= */
.section-intro { border-radius: 28px; padding: clamp(26px, 3vw, 36px); background: var(--card); box-shadow: var(--shadow-card); display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 26px; align-items: center; position: relative; overflow: hidden; margin-bottom: clamp(20px, 4vh, 36px); }
.section-intro::before { content: ''; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%; background: color-mix(in srgb, var(--teal) 16%, transparent); }
.intro-copy { display: flex; flex-direction: column; gap: 10px; position: relative; }
.intro-kicker { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-deep); }
.section-intro .intro-line { color: var(--ink-soft); font-size: 16px; line-height: 1.75; }
.intro-tools { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; position: relative; }
.intro-label { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.tool-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tool-chip { font-size: 13px; font-weight: 500; padding: 7px 12px; border-radius: 999px; background: var(--ground); color: var(--ink-soft); transition: background 0.3s, color 0.3s, transform 0.3s; }
.tool-chip:hover { background: var(--teal); color: #fff; transform: translateY(-2px); }
.framepilot-layout { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.framepilot-panel { border-radius: 24px; background: var(--card); box-shadow: var(--shadow-card); padding: clamp(24px, 3vw, 32px); }
.framepilot-panel h3 { font-weight: 500; font-size: 22px; margin-bottom: 16px; }
.framepilot-list { display: flex; flex-direction: column; gap: 11px; }
.framepilot-list li { color: var(--ink-soft); font-size: 14px; line-height: 1.75; padding-left: 18px; position: relative; }
.framepilot-list li::before { content: ''; position: absolute; left: 2px; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.framepilot-flow { counter-reset: fp; display: flex; flex-direction: column; gap: 13px; }
.framepilot-flow li { counter-increment: fp; position: relative; padding-left: 44px; color: var(--ink-soft); font-size: 14px; line-height: 1.75; }
.framepilot-flow li::before { content: counter(fp); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--teal); color: #fff; font-size: 13px; font-weight: 600; display: grid; place-items: center; }
.framepilot-guide-list { list-style: none; display: flex; flex-direction: column; gap: 12px; counter-reset: g; }
.framepilot-guide-list li { counter-increment: g; color: var(--ink-soft); font-size: 14px; line-height: 1.7; padding-left: 28px; position: relative; }
.framepilot-guide-list li::before { content: counter(g); position: absolute; left: 0; font-weight: 600; color: var(--teal-deep); }
.framepilot-repo { margin-top: 22px; }
.framepilot-repo-desc { color: var(--ink-soft); font-size: 14px; line-height: 1.7; margin-bottom: 10px; }
.framepilot-repo-link { display: inline-flex; align-items: center; font-size: 14px; font-weight: 500; padding: 11px 16px; border-radius: 14px; background: var(--ground); color: var(--teal-deep); transition: background 0.3s, color 0.3s; }
.framepilot-repo-link:hover { background: var(--teal); color: #fff; }
.inline-code { display: block; margin-top: 8px; padding: 10px 13px; border-radius: 12px; background: var(--ground); color: var(--ink); font-family: 'Inter', monospace; font-size: 13px; overflow-x: auto; white-space: nowrap; }
.framepilot-shots { margin-top: 26px; }
.framepilot-shots-title { font-weight: 500; font-size: 27px; margin-bottom: 18px; }
.framepilot-shot-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.framepilot-shot { border-radius: 20px; overflow: hidden; background: var(--card); box-shadow: var(--shadow-card); transition: transform 0.4s var(--ease), box-shadow 0.4s; }
.framepilot-shot:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.framepilot-shot img { width: 100%; height: auto; }
.framepilot-shot figcaption { padding: 14px 15px 17px; color: var(--ink-soft); font-size: 13px; line-height: 1.6; }
@media (max-width: 900px) { .section-intro { grid-template-columns: 1fr; } .framepilot-layout, .framepilot-shot-grid { grid-template-columns: 1fr; } }

/* =========================================================================
   FOOTER
   ========================================================================= */
/* Footer stays in normal flow BELOW the scroll-stack cards (z-index 10). The stack's
   staggered pin release (scroll-stack.js) scrolls the cards clear before the footer
   arrives, so the two sections never overlap — no z-index covering trick needed. */
.site-footer { position: relative; z-index: 2; padding: clamp(54px, 9vh, 104px) 0 36px; background: var(--ink); color: var(--cream); }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 36px; align-items: flex-end; }
.footer-mark { font-weight: 500; font-size: clamp(50px, 13vw, 172px); line-height: 0.8; letter-spacing: -0.04em; color: var(--cream); }
.footer-socials { display: flex; flex-direction: column; gap: 12px; }
.footer-socials a, .footer-socials span { font-size: 16px; font-weight: 500; color: var(--muted); display: inline-flex; align-items: center; gap: 12px; transition: color 0.3s, transform 0.3s; width: fit-content; }
.footer-socials a:hover, .footer-socials span:hover { color: var(--teal); transform: translateX(4px); }
.footer-socials .lab { color: rgba(244,241,232,0.4); min-width: 84px; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; }
.footer-meta { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(244,241,232,0.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: rgba(244,241,232,0.5); }
.footer-meta .vibe { color: var(--teal); }

/* =========================================================================
   TOAST
   ========================================================================= */
.copy-toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); z-index: 9000; font-size: 13px; font-weight: 600; color: #fff; background: var(--ink); padding: 12px 22px; border-radius: 999px; box-shadow: var(--shadow-soft); opacity: 0; pointer-events: none; transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); }
.copy-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================================
   REVEAL
   ========================================================================= */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); transition-delay: var(--d, 0s); }
[data-reveal].is-in { opacity: 1; transform: none; }
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.fade-in.active { opacity: 1; transform: none; }

@media (max-width: 768px) {
    .hero-name { font-size: clamp(52px, 17vw, 92px); }
    .hero-ghost { font-size: clamp(24px, 8vw, 44px); letter-spacing: 0.04em; }
    .hero-meta { gap: 12px; margin-top: 30px; }
    .hero-meta .hm-item { padding-left: 0; }
    .hero-stats { gap: 14px 22px; margin-top: 24px; }
    .hero-stats .hs-item { border-right: 0; margin-right: 0; padding-right: 0; }
    .hero-meta .hm-item:not(:first-child)::before { display: none; }
    .timeline::before { left: 6px; }
    .timeline-item { padding-left: 36px; }
}

@media (prefers-reduced-motion: reduce) {
    .splash { animation: splashHide 0.01s linear forwards; }
    .splash-box { animation: none !important; }
    .hero-image-animate, .word-reveal, .cta-animate, .creator-text-animate { animation: none !important; opacity: 1 !important; transform: none !important; filter: none !important; visibility: visible !important; }
    [data-reveal] { opacity: 1 !important; transform: none !important; }
    .fade-in { opacity: 1; transform: none; }
    .marquee__track { animation: none; }
    * { scroll-behavior: auto !important; }
}
