:root {
  --bg: #0e0c0b;
  --bg-2: #161311;
  --card: #1a1614;
  --line: rgba(243, 236, 226, 0.12);
  --ink: #f3ece2;
  --muted: #a99e92;
  --accent: #f0a35e;
  --accent-2: #e8735a;
  --rose: #d9a7c7;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, Segoe UI, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pad: clamp(1.25rem, 4vw, 4rem);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-loading { overflow: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg);
  display: grid; place-items: center;
  transition: clip-path 1.1s var(--ease);
  clip-path: inset(0 0 0 0);
}
.loader.is-done { clip-path: inset(0 0 100% 0); }
.loader__inner { display: flex; align-items: flex-end; gap: 1.5rem; }
.loader__word { font-family: var(--serif); font-style: italic; font-size: clamp(4rem, 12vw, 9rem); line-height: 0.9; display: flex; overflow: hidden; }
.loader__word span { display: inline-block; transform: translateY(110%); animation: rise 0.9s var(--ease) forwards; }
.loader__word span:nth-child(2) { animation-delay: 0.06s; }
.loader__word span:nth-child(3) { animation-delay: 0.12s; }
.loader__word span:nth-child(4) { animation-delay: 0.18s; }
.loader__word span:nth-child(5) { animation-delay: 0.24s; }
.loader__word span:nth-child(6) { animation-delay: 0.30s; }
.loader__count { font-size: 0.9rem; color: var(--muted); font-variant-numeric: tabular-nums; padding-bottom: 1rem; min-width: 3.5ch; }
.loader__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--line); }
.loader__bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width 0.2s linear; }
@keyframes rise { to { transform: translateY(0); } }

/* ---------- Grain, cursor, progress ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.8s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } 100% { transform: translate(0, 0); }
}

.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  body, a, button { cursor: none; }
  .cursor { display: block; position: fixed; inset: 0; pointer-events: none; z-index: 95; }
  .cursor__dot, .cursor__ring { position: fixed; top: 0; left: 0; border-radius: 50%; will-change: transform; }
  .cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--accent); }
  .cursor__ring {
    width: 40px; height: 40px; margin: -20px 0 0 -20px;
    border: 1px solid rgba(243, 236, 226, 0.45);
    display: grid; place-items: center;
    transition: width 0.35s var(--ease), height 0.35s var(--ease), margin 0.35s var(--ease), background 0.35s, border-color 0.35s;
  }
  .cursor__label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; color: var(--bg); opacity: 0; transition: opacity 0.2s; white-space: nowrap; }
  .cursor.is-hover .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: var(--accent); background: rgba(240, 163, 94, 0.08); }
  .cursor.has-label .cursor__ring { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--accent); border-color: var(--accent); }
  .cursor.has-label .cursor__label { opacity: 1; }
  .cursor.has-label .cursor__dot { opacity: 0; }
}

.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--rose)); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem var(--pad);
  transition: transform 0.5s var(--ease), background 0.4s, padding 0.4s;
}
.nav.is-scrolled { background: rgba(14, 12, 11, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding-top: 0.7rem; padding-bottom: 0.7rem; border-bottom: 1px solid var(--line); }
.nav.is-hidden { transform: translateY(-110%); }
.nav__logo { display: flex; align-items: center; gap: 0.7rem; font-weight: 600; }
.nav__mark {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--serif); font-style: italic; font-size: 1.25rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--bg);
  transition: transform 0.6s var(--ease);
}
.nav__logo:hover .nav__mark { transform: rotate(-360deg); }
.nav__links { display: flex; gap: 2rem; font-size: 0.92rem; color: var(--muted); }
.nav__links a { position: relative; display: inline-block; transition: color 0.3s; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease); }
.nav__links a:hover, .nav__links a.is-active { color: var(--ink); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__burger { display: none; width: 44px; height: 44px; position: relative; }
.nav__burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--ink); transition: transform 0.4s var(--ease), top 0.4s var(--ease); }
.nav__burger span:first-child { top: 17px; }
.nav__burger span:last-child { top: 25px; }
.menu-open .nav__burger span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .nav__burger span:last-child { top: 21px; transform: rotate(-45deg); }
.menu {
  position: fixed; inset: 0; z-index: 45; background: var(--bg-2);
  display: flex; flex-direction: column; justify-content: center; gap: 0.5rem; padding: var(--pad);
  clip-path: circle(0% at calc(100% - 44px) 40px); transition: clip-path 0.8s var(--ease); visibility: hidden;
}
.menu a { font-family: var(--serif); font-size: clamp(2.6rem, 12vw, 4rem); line-height: 1.15; transform: translateY(30px); opacity: 0; transition: transform 0.6s var(--ease), opacity 0.6s; }
.menu-open .menu { clip-path: circle(150% at calc(100% - 44px) 40px); visibility: visible; }
.menu-open .menu a { transform: none; opacity: 1; }
.menu-open .menu a:nth-child(2) { transition-delay: 0.05s; }
.menu-open .menu a:nth-child(3) { transition-delay: 0.1s; }
.menu-open .menu a:nth-child(4) { transition-delay: 0.15s; }
.menu-open .menu a:nth-child(5) { transition-delay: 0.2s; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.95rem 1.6rem; border-radius: 999px;
  background: var(--ink); color: var(--bg); font-weight: 600; font-size: 0.95rem;
  overflow: hidden; isolation: isolate;
  transition: color 0.4s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  transform: translateY(101%); transition: transform 0.5s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn--ghost:hover { color: var(--bg); }
.btn--small { padding: 0.6rem 1.15rem; font-size: 0.85rem; }
.btn__arrow { display: inline-block; animation: bob 1.8s var(--ease) infinite; }
@keyframes bob { 50% { transform: translateY(4px); } }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; padding: 7.5rem var(--pad) 4rem; display: flex; align-items: center; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; pointer-events: none; }
.blob--a { width: 46vw; height: 46vw; background: radial-gradient(circle, rgba(240, 163, 94, 0.55), transparent 65%); top: -12vw; right: -8vw; animation: drift 18s ease-in-out infinite alternate; }
.blob--b { width: 36vw; height: 36vw; background: radial-gradient(circle, rgba(217, 167, 199, 0.35), transparent 65%); bottom: -14vw; left: -10vw; animation: drift 22s ease-in-out infinite alternate-reverse; }
.blob--c { width: 60vw; height: 60vw; background: radial-gradient(circle, rgba(232, 115, 90, 0.35), transparent 65%); left: 50%; top: 40%; translate: -50% -50%; animation: drift 20s ease-in-out infinite alternate; }
@keyframes drift { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-4vw, 3vw) scale(1.12); } 100% { transform: translate(3vw, -2vw) scale(0.95); } }

.hero__lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__lines path { fill: none; stroke: rgba(240, 163, 94, 0.22); stroke-width: 1; stroke-dasharray: 2000; stroke-dashoffset: 2000; }
.is-ready .hero__lines path { animation: draw 3.2s var(--ease) 0.6s forwards; }
.is-ready .hero__lines path + path { animation-delay: 0.9s; stroke: rgba(217, 167, 199, 0.16); }
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero__grid { position: relative; width: 100%; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 0.85rem; color: var(--muted); padding: 0.45rem 0.95rem; border: 1px solid var(--line); border-radius: 999px; margin-bottom: 1.8rem; background: rgba(255, 255, 255, 0.02); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #7ddc9a; box-shadow: 0 0 0 0 rgba(125, 220, 154, 0.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(125, 220, 154, 0); } 100% { box-shadow: 0 0 0 0 rgba(125, 220, 154, 0); } }

.hero__title { font-family: var(--serif); font-weight: 400; font-size: clamp(4.4rem, 13vw, 12.5rem); line-height: 0.88; letter-spacing: -0.02em; }
.hero__title em { background: linear-gradient(100deg, var(--accent) 10%, var(--accent-2) 55%, var(--rose)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 0.08em; }
.line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.line--indent { padding-left: clamp(1.5rem, 8vw, 8rem); display: flex; align-items: center; gap: 1rem; }
.hero__star { font-family: var(--sans); font-size: 0.32em; color: var(--accent); display: inline-block; animation: spin 9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.split .ch { display: inline-block; transform: translateY(105%) rotate(6deg); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 0.035s); }
.split.is-in .ch { transform: none; }
.split .sp { display: inline-block; width: 0.25em; }

.hero__role { margin-top: 2rem; font-size: clamp(1.1rem, 1.7vw, 1.45rem); color: var(--muted); max-width: 36ch; }
.rotator { position: relative; display: inline-grid; vertical-align: bottom; color: var(--ink); font-weight: 600; }
.rotator__word { grid-area: 1 / 1; white-space: nowrap; opacity: 0; transform: translateY(70%); filter: blur(6px); transition: transform 0.7s var(--ease), opacity 0.7s, filter 0.7s; border-bottom: 1px solid var(--accent); }
.rotator__word.is-active { opacity: 1; transform: none; filter: none; }
.rotator__word.is-out { opacity: 0; transform: translateY(-70%); filter: blur(6px); }
.hero__cta { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 1rem; }

.hero__visual { position: relative; display: flex; justify-content: center; }
.portrait { position: relative; width: min(100%, 440px); }
.portrait__frame {
  position: relative; aspect-ratio: 4 / 5; border-radius: 999px 999px 28px 28px; overflow: hidden;
  background: var(--card); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8);
  clip-path: inset(100% 0 0 0 round 999px 999px 28px 28px);
  transition: clip-path 1.6s var(--ease) 0.3s;
}
.is-ready .portrait__frame { clip-path: inset(0 0 0 0 round 999px 999px 28px 28px); }
.portrait__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(14, 12, 11, 0.55)); }
.portrait__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; transform: scale(1.25); transition: transform 2.2s var(--ease) 0.3s; }
.is-ready .portrait__frame img { transform: scale(1.04); }

.badge { position: absolute; width: 132px; height: 132px; left: -42px; bottom: 14%; display: grid; place-items: center; background: var(--bg); border-radius: 50%; border: 1px solid var(--line); z-index: 2; }
.badge svg { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); animation: spin 16s linear infinite; }
.badge text { fill: var(--ink); font-size: 15.5px; letter-spacing: 3px; font-weight: 600; }
.badge__core { font-size: 1.8rem; color: var(--accent); }

.chip { position: absolute; z-index: 2; padding: 0.6rem 1rem; border-radius: 14px; font-size: 0.82rem; white-space: nowrap; background: rgba(26, 22, 20, 0.75); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.8); opacity: 0; transition: opacity 0.8s var(--ease); }
.is-ready .chip { opacity: 1; }
.chip b { color: var(--accent); font-weight: 700; }
.chip--a { top: 12%; right: -28px; transition-delay: 1.3s; }
.chip--b { top: 48%; right: -52px; transition-delay: 1.5s; animation-delay: -2s; }
.chip--c { bottom: 6%; right: 8%; transition-delay: 1.7s; animation-delay: -4s; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, #a259ff, #1abcfe); margin-right: 0.3rem; }
.float { animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-12px); } }

.scroll-cue { position: absolute; bottom: 2rem; left: 50%; translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: 0.6rem; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.scroll-cue i { width: 1px; height: 46px; background: var(--line); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; width: 100%; height: 40%; background: var(--accent); animation: scrollcue 2s var(--ease) infinite; }
@keyframes scrollcue { from { top: -40%; } to { top: 100%; } }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 1.4rem 0; background: var(--bg-2); transform: rotate(-1.5deg) scale(1.03); }
.marquee__track { display: flex; align-items: center; gap: 2.2rem; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee span { font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 3.2rem); line-height: 1; white-space: nowrap; transition: color 0.3s; }
.marquee span:hover { color: var(--accent); font-style: italic; }
.marquee b { color: var(--accent); font-size: 1.2rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(5rem, 12vw, 10rem) var(--pad); position: relative; }
.section__label { display: inline-flex; align-items: center; gap: 0.8rem; font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 2rem; }
.section__label span { color: var(--accent); font-variant-numeric: tabular-nums; }
.section__label::after { content: ""; width: 48px; height: 1px; background: var(--line); }
.section__head { margin-bottom: clamp(3rem, 6vw, 5rem); }
.section__title { font-family: var(--serif); font-weight: 400; font-size: clamp(3rem, 8vw, 7rem); line-height: 0.95; letter-spacing: -0.015em; }
.section__title .line { display: inline-block; vertical-align: bottom; }
.section__title em { color: var(--accent); }
.section__sub { margin-top: 1.2rem; color: var(--muted); max-width: 46ch; }

/* reveal */
.reveal-up { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal-up.is-in { opacity: 1; transform: none; }
.reveal-card { opacity: 0; transform: translateY(80px) scale(0.96); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.reveal-card.is-in { opacity: 1; transform: none; }

/* ---------- About ---------- */
.about__lead { font-family: var(--serif); font-size: clamp(1.9rem, 4.2vw, 3.6rem); line-height: 1.15; max-width: 22ch; max-width: 26ch; }
.words .w { display: inline-block; opacity: 0.14; transition: opacity 0.4s; }
.words .w.is-lit { opacity: 1; }
.about__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 6vw, 6rem); margin-top: clamp(3rem, 6vw, 5rem); align-items: start; }
.about__grid > p { color: var(--muted); font-size: 1.08rem; max-width: 46ch; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.stat { padding: 1.8rem 1.6rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background 0.4s; }
.stat:hover { background: rgba(240, 163, 94, 0.05); }
.stat:nth-child(2) { transition-delay: 0.1s; } .stat:nth-child(3) { transition-delay: 0.2s; } .stat:nth-child(4) { transition-delay: 0.3s; }
.stat__num { display: block; font-family: var(--serif); font-size: clamp(3rem, 6vw, 4.8rem); line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat__label { display: block; margin-top: 0.6rem; color: var(--muted); font-size: 0.9rem; }

/* ---------- Projects ---------- */
.projects { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.project {
  position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: clamp(1.2rem, 2.5vw, 2rem);
  transform-style: preserve-3d; will-change: transform;
}
.project.is-in { transition: transform 0.6s var(--ease), opacity 1.2s var(--ease), border-color 0.4s; }
.project:hover { border-color: rgba(240, 163, 94, 0.4); }
.project--alt .project__visual { order: 2; }
.project__link { position: absolute; inset: 0; z-index: 3; border-radius: inherit; }
.project__visual { position: relative; aspect-ratio: 5 / 4; border-radius: 20px; overflow: hidden; display: grid; place-items: center; }
.project__visual--flavor { background: radial-gradient(circle at 30% 20%, #f7c58f, #e8735a 55%, #7a2f22); }
.project__visual--fixit { background: radial-gradient(circle at 70% 25%, #b9d4ff, #4a6cf7 55%, #1d2463); }
.project__visual--dsn { background: radial-gradient(circle at 50% 30%, #3a2f45, #17121c 70%); }
.project__body h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 5vw, 4.2rem); line-height: 1; margin: 0.8rem 0 1rem; }
.project__body p { color: var(--muted); max-width: 48ch; }
.project__meta { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.project__meta span:first-child { color: var(--accent); }
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.4rem 0 1.8rem; }
.tags li { font-size: 0.8rem; padding: 0.35rem 0.85rem; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); }
.project__cta { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 600; border-bottom: 1px solid var(--accent); padding-bottom: 0.2rem; }
.project__cta i { font-style: normal; display: inline-block; transition: transform 0.4s var(--ease); }
.project:hover .project__cta i { transform: translate(4px, -4px) rotate(10deg); }

/* mock phone UIs */
.mock { position: relative; width: 58%; max-width: 270px; aspect-ratio: 9 / 17; border-radius: 30px; padding: 1.4rem 0.95rem; background: #171210; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6), inset 0 0 0 6px #241c19; transform: translateY(8%) rotate(-4deg); transition: transform 0.8s var(--ease); font-size: 11px; color: #f3ece2; overflow: hidden; }
.project:hover .mock { transform: translateY(2%) rotate(0); }
.mock__bar { width: 34%; height: 5px; border-radius: 5px; background: #2d2421; margin: 0 auto 1.1rem; }
.mock__h { font-size: 1.55em; line-height: 1.15; font-weight: 600; margin-bottom: 0.9rem; }
.mock__h em { color: #f0a35e; font-size: 1.12em; }
.mock__chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.9rem; }
.mock__chips span { padding: 0.3rem 0.65rem; border-radius: 999px; background: #2a201c; border: 1px solid #3a2d27; opacity: 0; transform: scale(0.6); }
.mock__chips .c4 { border-style: dashed; color: #a99e92; background: transparent; }
.is-in .mock__chips span { animation: pop 0.6s var(--ease) forwards; }
.is-in .mock__chips .c2 { animation-delay: 0.15s; } .is-in .mock__chips .c3 { animation-delay: 0.3s; } .is-in .mock__chips .c4 { animation-delay: 0.45s; }
@keyframes pop { to { opacity: 1; transform: none; } }
.mock__gen { display: flex; align-items: center; gap: 0.5rem; color: #a99e92; margin-bottom: 0.8rem; }
.mock__gen i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #f0a35e; border-right-color: transparent; animation: spin 0.9s linear infinite; }
.mock__card { display: flex; gap: 0.6rem; align-items: center; padding: 0.55rem; border-radius: 14px; background: #221a17; margin-bottom: 0.5rem; opacity: 0; transform: translateY(14px); }
.is-in .mock__card { animation: pop 0.8s var(--ease) 0.9s forwards; }
.is-in .mock__card--2 { animation-delay: 1.1s; }
.mock__card b { display: block; font-size: 1.05em; }
.mock__card small { color: #a99e92; }
.mock__img { width: 42px; height: 42px; flex: none; border-radius: 10px; background: linear-gradient(135deg, #f7c58f, #e8735a); }
.mock__card--2 .mock__img { background: linear-gradient(135deg, #9ee6a5, #3d8f5a); }

.mock--light { background: #f6f7fb; color: #111633; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6), inset 0 0 0 6px #dfe3ef; transform: translateY(8%) rotate(4deg); }
.mock--light .mock__bar { background: #dfe3ef; }
.mock__h--dark em { color: #4a6cf7; }
.otp { display: flex; gap: 0.4rem; margin-bottom: 1rem; }
.otp span { flex: 1; aspect-ratio: 1; display: grid; place-items: center; border-radius: 10px; background: #fff; border: 1px solid #dfe3ef; font-weight: 700; font-size: 1.3em; }
.otp span:last-child { border-color: #4a6cf7; }
.blink { animation: blink 1s steps(2) infinite; font-style: normal; }
@keyframes blink { 50% { opacity: 0; } }
.svc { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; margin-bottom: 0.8rem; }
.svc div { background: #fff; border: 1px solid #e4e7f1; border-radius: 12px; padding: 0.55rem; font-weight: 600; display: flex; flex-direction: column; gap: 0.2rem; }
.svc i { font-style: normal; }
.tech { display: flex; align-items: center; gap: 0.5rem; background: #111633; color: #fff; border-radius: 14px; padding: 0.55rem; }
.tech__av { width: 32px; height: 32px; flex: none; border-radius: 50%; background: linear-gradient(135deg, #b9d4ff, #4a6cf7); }
.tech b { display: block; } .tech small { color: #b9c2e8; }
.verified { color: #7ddc9a; }
.tech button { margin-left: auto; background: #4a6cf7; color: #fff; border-radius: 999px; padding: 0.3rem 0.7rem; font-size: 0.95em; font-weight: 600; cursor: inherit; }

.dsn { position: relative; width: 100%; height: 100%; }
.dsn__frame { position: absolute; width: 36%; aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; box-shadow: 0 30px 50px -20px rgba(0, 0, 0, 0.8); transition: transform 0.9s var(--ease); }
.dsn__frame img { width: 100%; height: 100%; object-fit: cover; }
.dsn__frame--1 { left: 16%; top: 10%; transform: rotate(-8deg); }
.dsn__frame--2 { right: 16%; top: 14%; transform: rotate(7deg); }
.project:hover .dsn__frame--1 { transform: rotate(-12deg) translateX(-10%); }
.project:hover .dsn__frame--2 { transform: rotate(11deg) translateX(10%); }
.dsn__prompt { position: absolute; left: 50%; bottom: 8%; translate: -50% 0; width: max-content; max-width: 90%; padding: 0.55rem 0.9rem; border-radius: 12px; font-size: 0.78rem; background: rgba(14, 12, 11, 0.8); border: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-family: ui-monospace, Consolas, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dsn__prompt span { color: var(--rose); margin-right: 0.3rem; }

/* ---------- Reels ---------- */
.reels { background: var(--bg-2); border-block: 1px solid var(--line); overflow: hidden; }
.reels__stage { display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.phone { justify-self: center; width: min(100%, 290px); }
.phone--b { margin-top: 6rem; }
.phone__screen { position: relative; aspect-ratio: 9 / 16; border-radius: 34px; overflow: hidden; background: #000; box-shadow: 0 0 0 8px #221c19, 0 0 0 9px var(--line), 0 50px 90px -30px rgba(0, 0, 0, 0.9); cursor: inherit; }
.phone__screen::before { content: ""; position: absolute; top: 10px; left: 50%; translate: -50% 0; width: 70px; height: 20px; border-radius: 20px; background: #000; z-index: 2; }
.phone__screen video { width: 100%; height: 100%; object-fit: cover; }
.phone__sound { position: absolute; right: 12px; bottom: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: grid; place-items: center; font-size: 1rem; }
.phone__sound .i-on, .phone.is-unmuted .phone__sound .i-off { display: none; }
.phone.is-unmuted .phone__sound .i-on { display: inline; }
.phone figcaption { margin-top: 1.4rem; text-align: center; color: var(--muted); font-size: 0.9rem; }
.phone figcaption b { display: block; color: var(--ink); font-family: var(--serif); font-weight: 400; font-size: 1.6rem; }
.reels__quote { font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.15; margin-bottom: 2rem; }
.reels__quote em { color: var(--accent); }
.ig-list li { border-top: 1px solid var(--line); }
.ig-list li:last-child { border-bottom: 1px solid var(--line); }
.ig-list a { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0.3rem; font-weight: 500; transition: color 0.3s, padding 0.4s var(--ease); }
.ig-list a:hover { color: var(--accent); padding-left: 1rem; }
.ig-list i { font-style: normal; transition: transform 0.4s var(--ease); }
.ig-list a:hover i { transform: rotate(45deg); }

/* ---------- Timeline ---------- */
.timeline { position: relative; display: grid; gap: clamp(2.5rem, 5vw, 4rem); padding-left: 2.5rem; }
.timeline__rail { position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.timeline__rail i { position: absolute; inset: 0; background: linear-gradient(180deg, var(--accent), var(--accent-2), var(--rose)); transform-origin: top; transform: scaleY(0); }
.job { position: relative; display: grid; grid-template-columns: 240px 1fr; gap: clamp(1rem, 4vw, 4rem); }
.job__dot { position: absolute; left: calc(-2.5rem + 1px); top: 0.45rem; width: 13px; height: 13px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); transition: background 0.5s, box-shadow 0.5s; }
.job.is-in .job__dot { background: var(--accent); box-shadow: 0 0 0 6px rgba(240, 163, 94, 0.15); }
.job__when { font-weight: 600; font-size: 0.95rem; }
.job__when span { display: block; color: var(--muted); font-weight: 400; font-size: 0.85rem; margin-top: 0.2rem; }
.job h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem, 3.2vw, 2.6rem); line-height: 1.1; margin-bottom: 1rem; }
.job h3 span { color: var(--accent); font-style: italic; }
.job li { position: relative; padding-left: 1.4rem; color: var(--muted); margin-bottom: 0.6rem; max-width: 70ch; }
.job li::before { content: "✦"; position: absolute; left: 0; color: var(--accent); font-size: 0.7rem; top: 0.35rem; }
.job li b { color: var(--ink); font-weight: 600; }

/* ---------- Skills ---------- */
.skills__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.skill-card { position: relative; padding: 1.8rem 1.5rem; border-radius: 22px; background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.skill-card:nth-child(2) { transition-delay: 0.1s; } .skill-card:nth-child(3) { transition-delay: 0.2s; } .skill-card:nth-child(4) { transition-delay: 0.3s; }
.skill-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(240, 163, 94, 0.14), transparent 40%); opacity: 0; transition: opacity 0.4s; pointer-events: none; }
.skill-card:hover::before { opacity: 1; }
.skill-card h4 { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; margin-bottom: 1.2rem; display: flex; align-items: center; gap: 0.6rem; }
.skill-card h4 span { font-family: var(--sans); font-size: 0.9rem; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(240, 163, 94, 0.12); color: var(--accent); }
.skill-card ul { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.skill-card li { font-size: 0.85rem; padding: 0.35rem 0.8rem; border-radius: 999px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); transition: background 0.3s, color 0.3s, transform 0.3s var(--ease); }
.skill-card li:hover { background: var(--accent); color: var(--bg); transform: translateY(-2px); }
.certs { margin-top: clamp(3rem, 6vw, 5rem); display: grid; grid-template-columns: 240px 1fr; gap: 2rem; }
.certs h4 { font-family: var(--serif); font-weight: 400; font-size: 1.9rem; }
.certs li { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--line); transition: padding 0.4s var(--ease), color 0.3s; }
.certs li:last-child { border-bottom: 1px solid var(--line); }
.certs li:hover { padding-left: 0.8rem; color: var(--accent); }
.certs li i { font-style: normal; color: var(--muted); }

/* ---------- Contact ---------- */
.contact { position: relative; overflow: hidden; padding: clamp(6rem, 14vw, 12rem) var(--pad); text-align: center; display: flex; flex-direction: column; align-items: center; border-top: 1px solid var(--line); }
.contact__title { position: relative; font-family: var(--serif); font-weight: 400; font-size: clamp(3.4rem, 10vw, 9rem); line-height: 0.92; letter-spacing: -0.02em; }
.contact__title em { color: var(--accent); }
.contact__mail { position: relative; margin-top: 3rem; font-size: clamp(1.1rem, 2.6vw, 2rem); padding: 1rem 2rem; border-radius: 999px; border: 1px solid var(--line); display: inline-flex; gap: 0.8rem; align-items: center; transition: background 0.4s, color 0.4s, border-color 0.4s; word-break: break-all; }
.contact__mail:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.contact__mail i { font-style: normal; transition: transform 0.4s var(--ease); }
.contact__mail:hover i { transform: rotate(45deg); }
.socials { position: relative; margin-top: 2.5rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7rem; }
.socials a { display: inline-block; padding: 0.6rem 1.2rem; border-radius: 999px; border: 1px solid var(--line); font-size: 0.9rem; color: var(--muted); transition: color 0.3s, border-color 0.3s; }
.socials a:hover { color: var(--accent); border-color: var(--accent); }

.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding: 1.8rem var(--pad); border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--muted); }
.footer a { display: inline-block; transition: color 0.3s; }
.footer a:hover { color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .skills__grid { grid-template-columns: repeat(2, 1fr); }
  .chip--b { right: -20px; }
}
@media (max-width: 900px) {
  .nav__links, .nav .btn--small { display: none; }
  .nav__burger { display: block; z-index: 2; }
  .hero { padding-top: 6.5rem; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; }
  .portrait { width: min(78%, 340px); }
  .badge { width: 104px; height: 104px; left: -30px; }
  .badge text { font-size: 16px; }
  .chip--a { right: -18px; } .chip--b { display: none; }
  .scroll-cue { display: none; }
  .about__grid, .project, .certs { grid-template-columns: 1fr; }
  .project--alt .project__visual { order: 0; }
  .reels__stage { grid-template-columns: 1fr 1fr; }
  .reels__center { grid-column: 1 / -1; order: 3; }
  .phone--b { margin-top: 3rem; }
  .job { grid-template-columns: 1fr; gap: 0.6rem; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .skills__grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 1.3rem 1rem; }
  .reels__stage { grid-template-columns: 1fr; }
  .phone { width: 78%; }
  .phone--b { margin-top: 1rem; }
  .mock { width: 66%; }
  .timeline { padding-left: 1.8rem; }
  .job__dot { left: calc(-1.8rem + 1px); }
  .contact__mail { padding: 0.9rem 1.3rem; }
  .footer { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
  .marquee__track { animation: none; }
  .words .w { opacity: 1; }
}
