


:root {
  --bg: #060608;
  --bg-2: #0b0b10;
  --ink: #f4f4f6;
  --muted: #b9b9c4;
  --faint: #80808c;

  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  --glass-bg: rgba(255, 255, 255, 0.045);
  --glass-bg-hover: rgba(255, 255, 255, 0.07);
  --glass-brd: rgba(255, 255, 255, 0.10);

  --glow-soft: 0 0 24px rgba(190, 205, 235, 0.10);
  --glow-strong: 0 0 42px rgba(200, 215, 245, 0.16);
  --shadow-float: 0 24px 60px rgba(0, 0, 0, 0.55);

  --ease-out: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-swift: cubic-bezier(0.76, 0, 0.24, 1);

  --font-display: "Caacupe One", sans-serif;
  --font-body: "Slabo 13px", serif;

  --nav-h: 64px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;

  --scroll-p: 0;
}


*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  min-height: 100svh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg, canvas { display: block; max-width: 100%; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: rgba(255, 255, 255, 0.92); color: #060608; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #08080b; }
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  border: 2px solid #08080b;
}
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.24); }

:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 3px;
  border-radius: 8px;
}


.caacupe-one-regular { font-family: var(--font-display); font-weight: 400; font-style: normal; }
.slabo-13px-regular  { font-family: var(--font-body); font-weight: 400; font-style: normal; }

.icon { width: 1.1em; height: 1.1em; flex: none; }

.skip-link {
  position: fixed; top: -100px; left: 16px; z-index: 200;
  padding: 12px 20px; border-radius: 999px;
  background: rgba(20, 20, 26, 0.9); color: var(--ink);
  border: 1px solid var(--line-strong);
  font-family: var(--font-body);
  transition: top 0.3s var(--ease-out);
}
.skip-link:focus-visible { top: 12px; }


.glass {
  position: relative;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid var(--glass-brd);
  box-shadow:
    var(--shadow-float),
    var(--glow-soft),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -14px 28px rgba(255, 255, 255, 0.015);
}


.glass::after {
  content: "";
  position: absolute;
  top: 0; left: 10%; right: 30%;
  height: 1px;
  background: rgba(255, 255, 255, 0.55);
  filter: blur(0.5px);
  opacity: 0.7;
  border-radius: 999px;
  pointer-events: none;
}


#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
  pointer-events: none;
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  box-shadow: inset 0 0 22vmax 6vmax rgba(0, 0, 0, 0.62);
}

.grain {
  position: fixed;
  inset: -50%;
  z-index: 3;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 9s steps(10) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  50% { transform: translate(2%, -3%); }
  100% { transform: translate(-2%, 2%); }
}


.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 120;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
  transform-origin: 0 50%;
  transform: scaleX(var(--scroll-p));
}


.loader {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--bg);
  display: grid;
  place-items: center;
  transition: transform 0.9s var(--ease-swift), visibility 0s 0.9s;
}
.loader-inner { display: grid; gap: 22px; justify-items: center; }
.loader-word {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  letter-spacing: 0.35em;
  color: var(--ink);
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.25);
  animation: loader-breathe 1.6s ease-in-out infinite;
}
@keyframes loader-breathe {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}
.loader-bar {
  width: min(220px, 50vw);
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.loader-bar-fill {
  display: block;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
  transform-origin: 0 50%;
  transform: scaleX(0);
  animation: loader-fill 1.1s var(--ease-swift) 0.15s forwards;
}
@keyframes loader-fill { to { transform: scaleX(1); } }

html.loaded .loader {
  transform: translateY(-100%);
  visibility: hidden;
}

html.no-js .loader { display: none; }


.cursor-dot, .cursor-ring { display: none; }

html.cursor-on .cursor-dot,
html.cursor-on .cursor-ring {
  display: block;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 250;
}
html.cursor-on, html.cursor-on a, html.cursor-on button { cursor: none; }
html.cursor-on input, html.cursor-on textarea { cursor: text; }

.cursor-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}
.cursor-ring {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: var(--glow-soft), inset 0 0 12px rgba(255, 255, 255, 0.05);
  transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out),
              border-color 0.3s ease, background-color 0.3s ease;
}
.cursor-ring.is-active {
  width: 58px; height: 58px;
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.05);
}


.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.25s var(--ease-out),
    scale 0.2s var(--ease-out),
    box-shadow 0.35s ease,
    background-color 0.35s ease,
    border-color 0.35s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn:active { scale: 0.96; }

.btn-primary {
  background: rgba(255, 255, 255, 0.10);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.4),
    var(--glow-soft),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:hover {
  background: rgba(255, 255, 255, 0.16);
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.5),
    var(--glow-strong),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
}


.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  transform: scale(0);
  opacity: 0.5;
  pointer-events: none;
  animation: ripple-go 0.65s var(--ease-out) forwards;
}
@keyframes ripple-go {
  to { transform: scale(3); opacity: 0; }
}


.spinner {
  display: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
}
.btn.sending .spinner { display: block; }
.btn.sending .icon { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }


.nav-shell {
  position: fixed;
  top: 18px; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  pointer-events: none;
}

.nav {
  pointer-events: auto;
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 8px 10px;
  border-radius: 26px 26px 34px 34px;
  transition: box-shadow 0.4s ease, background-color 0.4s ease, padding 0.4s ease;
}

.nav.is-scrolled {
  background: rgba(12, 12, 16, 0.55);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.6),
    var(--glow-soft),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 12px 6px 8px;
  margin-right: 8px;
  border-radius: 999px;
  transition: background-color 0.3s ease;
}
.nav-logo:hover { background: rgba(255, 255, 255, 0.06); }
.nav-logo-orb {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.05);
  box-shadow:
    inset -3px -4px 8px rgba(150, 180, 255, 0.18),
    inset 3px 4px 7px rgba(255, 190, 230, 0.14),
    0 0 14px rgba(190, 210, 255, 0.22);
  position: relative;
}
.nav-logo-orb::before {
  content: "";
  position: absolute;
  top: 15%; left: 18%;
  width: 30%; height: 22%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  filter: blur(1.5px);
  transform: rotate(-24deg);
}
.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 9px 16px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.99rem;
  color: var(--muted);
  transition: color 0.3s ease;
}
.nav-link:hover { color: var(--ink); }
.nav-link[aria-current] { color: var(--ink); }


.nav-link::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: 5px;
  height: 1px;
  background: rgba(255, 255, 255, 0.7);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.35s var(--ease-out);
}
.nav-link:hover::after { transform: scaleX(1); }
.nav-link[aria-current]::after { transform: scaleX(0); }


.nav-pill {
  position: absolute;
  top: 50%; left: 0;
  height: 38px;
  width: 80px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transform: translateY(-50%) translateX(0) scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.45s var(--ease-spring), opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
}
.nav-pill.is-set {
  opacity: 1;
}

.btn-nav { padding: 10px 22px; font-size: 0.95rem; margin-left: 10px; }


.burger {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
  z-index: 1;
}
.burger-line {
  position: absolute;
  left: 12px; right: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.4s var(--ease-out), top 0.4s var(--ease-out);
}
.burger-line:nth-child(1) { top: 17px; }
.burger-line:nth-child(2) { top: 25px; }
.burger[aria-expanded="true"] .burger-line:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger-line:nth-child(2) { top: 21px; transform: rotate(-45deg); }


.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(6, 6, 9, 0.82);
  -webkit-backdrop-filter: blur(26px) saturate(140%);
  backdrop-filter: blur(26px) saturate(140%);
  display: grid;
  place-items: center;
  clip-path: inset(0 0 100% 0 round 0 0 40px 40px);
  visibility: hidden;
  transition: clip-path 0.65s var(--ease-swift), visibility 0s 0.65s;
}
body.menu-open .mobile-menu {
  clip-path: inset(0 0 0 0 round 0);
  visibility: visible;
  transition-delay: 0s;
}
body.menu-open { overflow: hidden; }

.mobile-menu nav { display: grid; gap: 28px; justify-items: center; text-align: center; }
.mobile-menu ul { display: grid; gap: 8px; }
.mobile-menu li a {
  display: block;
  padding: 10px 28px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 7vw, 2.6rem);
  color: var(--muted);
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.5s ease, transform 0.6s var(--ease-out), color 0.3s ease;
}
.mobile-menu li:nth-child(1) a { transition-delay: 0.10s; }
.mobile-menu li:nth-child(2) a { transition-delay: 0.16s; }
.mobile-menu li:nth-child(3) a { transition-delay: 0.22s; }
.mobile-menu li:nth-child(4) a { transition-delay: 0.28s; }
.mobile-menu li:nth-child(5) a { transition-delay: 0.34s; }
.mobile-menu li:nth-child(6) a { transition-delay: 0.40s; }
.mobile-menu li a:hover, .mobile-menu li a:focus-visible { color: var(--ink); }
body.menu-open .mobile-menu li a { opacity: 1; transform: none; }
body.menu-open .mobile-menu .btn { opacity: 1; }
.mobile-menu .btn { opacity: 0; transition: opacity 0.5s ease 0.5s; }


.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: calc(var(--nav-h) + 70px) 24px 90px;
}

.hero-inner {
  width: min(1160px, 100%);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}


.hero [data-hero] {
  opacity: 0;
  transform: translateY(42px);
  transition: opacity 0.9s ease, transform 1.05s var(--ease-out);
}
html.loaded .hero [data-hero] { opacity: 1; transform: none; }
.hero .status-chip { transition-delay: 0.05s; }
.hero .magnify-zone { transition-delay: 0.15s; }
.hero .hero-sub { transition-delay: 0.35s; }
.hero .hero-cta { transition-delay: 0.5s; }
.hero .hero-hint { transition-delay: 0.7s; }
.hero .scroll-cue { transition-delay: 0.9s; }


.hero .scroll-cue[data-hero] { transform: translateX(-50%) translateY(42px); }
html.loaded .hero .scroll-cue[data-hero] { transform: translateX(-50%); }

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 34px;
}
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #9fe8c4;
  box-shadow: 0 0 10px rgba(159, 232, 196, 0.9), 0 0 22px rgba(159, 232, 196, 0.4);
  animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.72); opacity: 0.65; }
}

.hero-eyebrow {
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.eyebrow-sep { color: var(--faint); margin: 0 4px; }

.display-title { font-weight: 400; }

.hero-title {
  font-size: clamp(3.6rem, 13.5vw, 10.5rem);
  line-height: 0.94;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-shadow: 0 0 60px rgba(255, 255, 255, 0.08);
  margin: 0 0 10px;
  display: grid;
}
.hero-line { display: block; overflow: hidden; }

.hero-line--ghost {
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.38);
  text-shadow: none;
}

.hero-sub {
  max-width: 54ch;
  font-size: clamp(1.05rem, 1.9vw, 1.3rem);
  color: var(--muted);
  margin-top: 30px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
}

.hero-hint {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 46px;
  font-size: 0.95rem;
  color: var(--faint);
}
.hero-hint .icon { width: 1.25em; height: 1.25em; opacity: 0.8; }


.bubble-field {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.bubble-anchor {
  position: absolute;
  left: var(--ax);
  top: var(--ay);
  pointer-events: none;
}
.bubble {
  width: var(--size, 120px);
  height: var(--size, 120px);
  border-radius: 50%;
  position: relative;
  pointer-events: auto;
  touch-action: none;
  cursor: grab;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.20);
  box-shadow:
    inset -8px -12px 30px rgba(140, 170, 255, 0.07),
    inset 8px 12px 26px rgba(255, 175, 220, 0.06),
    inset 0 0 40px rgba(255, 255, 255, 0.03),
    0 20px 50px rgba(0, 0, 0, 0.45),
    0 0 44px rgba(185, 205, 255, 0.10);
  transition: box-shadow 0.4s ease;
  animation: iridesce 16s ease-in-out infinite alternate;
}
.bubble:hover {
  box-shadow:
    inset -8px -12px 30px rgba(140, 170, 255, 0.12),
    inset 8px 12px 26px rgba(255, 175, 220, 0.10),
    inset 0 0 40px rgba(255, 255, 255, 0.05),
    0 20px 50px rgba(0, 0, 0, 0.45),
    0 0 70px rgba(185, 205, 255, 0.22);
}
@keyframes iridesce {
  0%   { filter: hue-rotate(0deg) saturate(1); }
  50%  { filter: hue-rotate(24deg) saturate(1.15); }
  100% { filter: hue-rotate(-18deg) saturate(1.05); }
}
.bubble::before {
  content: "";
  position: absolute;
  top: 9%; left: 16%;
  width: 30%; height: 18%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  filter: blur(3px);
  transform: rotate(-26deg);
}
.bubble::after {
  content: "";
  position: absolute;
  bottom: 8%; right: 18%;
  width: 16%; height: 9%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  filter: blur(4px);
}
.bubble.is-drag { cursor: grabbing; }


.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--faint);
  z-index: 2;
}
.scroll-cue:hover { color: var(--muted); }
.scroll-cue-mouse {
  width: 24px; height: 38px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 14px;
  display: grid;
  justify-items: center;
  padding-top: 7px;
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.06);
}
.scroll-cue-wheel {
  width: 3px; height: 8px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
  animation: wheel-run 1.8s var(--ease-swift) infinite;
}
@keyframes wheel-run {
  0% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(10px); opacity: 0; }
  61% { transform: translateY(-4px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}


.magnify-zone { width: fit-content; }

.lens {
  position: fixed;
  top: 0; left: 0;
  width: 220px; height: 220px;
  border-radius: 50%;
  overflow: hidden;
  z-index: 60;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.35s ease, transform 0.45s var(--ease-spring);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.55),
    0 0 50px rgba(190, 210, 255, 0.12),
    inset 0 0 30px rgba(255, 255, 255, 0.06),
    inset 0 12px 24px rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(2px) saturate(160%);
  backdrop-filter: blur(2px) saturate(160%);
}
.lens.is-visible { opacity: 1; transform: scale(1); }
.lens-content {
  position: absolute;
  transform-origin: 0 0;
  will-change: transform;
}
.lens::before {
  content: "";
  position: absolute;
  top: 7%; left: 14%;
  width: 34%; height: 20%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  filter: blur(6px);
  transform: rotate(-24deg);
  z-index: 2;
}


.section {
  position: relative;
  width: min(1160px, 100%);
  margin: 0 auto;
  padding: clamp(90px, 12vw, 150px) 24px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.95rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.eyebrow-num {
  display: inline-grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  font-family: var(--font-display);
  letter-spacing: 0;
  color: var(--ink);
}

.section-title {
  font-size: clamp(2.1rem, 5.6vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: 0.01em;
  margin-bottom: 26px;
  text-shadow: 0 0 46px rgba(255, 255, 255, 0.07);
}

.section-sub {
  max-width: 60ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  margin-bottom: 20px;
}

.section-body { color: var(--muted); max-width: 62ch; }


.w { display: inline-block; overflow: hidden; vertical-align: top; }
.wi {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 0.95s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 42ms);
}
.in .wi, .reduced .wi { transform: none; }


[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.95s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 110ms);
}
[data-reveal].in { opacity: 1; transform: none; }

html.no-js [data-reveal],
html.no-js .wi,
html.reduced [data-reveal],
html.reduced .wi { opacity: 1; transform: none; transition: none; }


.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}

.manifesto {
  font-size: clamp(1.15rem, 2.1vw, 1.45rem);
  line-height: 1.65;
  color: var(--ink);
  margin-bottom: 26px;
}

.about-facts {
  margin-top: 34px;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.about-facts li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.3s ease, padding-left 0.3s ease;
}
.about-facts li:hover { background: rgba(255, 255, 255, 0.025); padding-left: 12px; }
.fact-key { color: var(--faint); letter-spacing: 0.06em; }
.fact-val { color: var(--muted); }

.about-portrait { display: grid; gap: 22px; }

.portrait-card {
  position: relative;
  aspect-ratio: 4 / 4.6;
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
  overflow: hidden;
  transition: box-shadow 0.45s ease;
  will-change: transform;
}
.portrait-card:hover {
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.6),
    var(--glow-strong),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -14px 28px rgba(255, 255, 255, 0.02);
}
.portrait-monogram {
  font-size: clamp(4rem, 9vw, 7rem);
  letter-spacing: 0.04em;
  color: var(--ink);
  text-shadow: 0 0 40px rgba(255, 255, 255, 0.2);
}
.portrait-ring {
  position: absolute;
  width: 74%; aspect-ratio: 1;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  animation: ring-spin 26s linear infinite;
}
.portrait-ring--slow {
  width: 92%;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.08);
  animation-duration: 48s;
  animation-direction: reverse;
}
@keyframes ring-spin { to { transform: rotate(360deg); } }
.portrait-caption {
  position: absolute;
  bottom: 18px; left: 0; right: 0;
  text-align: center;
  color: var(--faint);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-radius: var(--radius-md);
  padding: 22px 10px;
  text-align: center;
}
.stat { display: grid; gap: 2px; padding: 0 8px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-num {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  line-height: 1.1;
  text-shadow: 0 0 26px rgba(255, 255, 255, 0.14);
}
.stat-label { color: var(--faint); font-size: 0.9rem; }


.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 44px;
}

.skill-card {
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s ease, background-color 0.45s ease;
  will-change: transform;
}
.skill-card:hover {
  background: var(--glass-bg-hover);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.6),
    var(--glow-strong),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -14px 28px rgba(255, 255, 255, 0.02);
}

.skill-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.skill-glyph {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), var(--glow-soft);
  color: var(--ink);
}
.skill-glyph .icon { width: 22px; height: 22px; }
.skill-title { font-size: 1.45rem; letter-spacing: 0.02em; }

.skill-bars { display: grid; gap: 16px; }
.bar { display: grid; gap: 7px; }
.bar-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.94rem;
}
.bar-name { color: var(--muted); }
.bar-pct { color: var(--faint); font-size: 0.85rem; }
.bar-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}
.bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 0 14px rgba(210, 225, 255, 0.45);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 1.3s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 120ms + 0.15s);
}
.in .bar-fill { transform: scaleX(var(--level, 0.5)); }


.tools-marquee {
  margin-top: 60px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  overflow: hidden;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.tools-marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-seq {
  white-space: nowrap;
  font-size: 1.15rem;
  color: var(--faint);
  letter-spacing: 0.08em;
  padding-right: 2.2rem;
}
.marquee-seq i { font-style: normal; color: rgba(255, 255, 255, 0.25); margin: 0 0.6em; }
@keyframes marquee { to { transform: translateX(-50%); } }


.projects {
  position: relative;
  height: 420vh;
}
.pin-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  display: grid;
  align-content: center;
  padding: calc(var(--nav-h) + 40px) 0 60px;
}
.projects-head {
  position: absolute;
  top: clamp(80px, 12vh, 130px);
  left: clamp(24px, 6vw, 90px);
  z-index: 2;
  max-width: 480px;
}
.projects-head .section-title { font-size: clamp(1.9rem, 4.6vw, 3.4rem); }

.pin-track {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  padding: clamp(120px, 20vh, 190px) clamp(24px, 6vw, 90px) 40px;
  height: 100%;
  width: max-content;
  will-change: transform;
}

.project-card {
  position: relative;
  width: clamp(300px, 44vw, 560px);
  height: clamp(430px, 62vh, 640px);
  border-radius: var(--radius-lg);
  padding: 34px 34px 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  transition: box-shadow 0.45s ease, border-color 0.45s ease;
  flex: none;
}
.project-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.65),
    var(--glow-strong),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -14px 28px rgba(255, 255, 255, 0.02);
}
.project-index {
  position: absolute;
  top: -0.18em; right: 0.02em;
  font-size: clamp(7rem, 15vw, 12rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.13);
  pointer-events: none;
  user-select: none;
}
.project-year { color: var(--faint); font-size: 0.9rem; letter-spacing: 0.14em; margin-bottom: 10px; }
.project-title { font-size: clamp(2rem, 3.6vw, 3rem); margin-bottom: 14px; letter-spacing: 0.01em; }
.project-desc { color: var(--muted); max-width: 46ch; margin-bottom: 22px; }

.project-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.project-tags li {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  width: fit-content;
  color: var(--ink);
  font-size: 1rem;
  padding-bottom: 3px;
  position: relative;
}
.project-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.6);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.4s var(--ease-out);
}
.project-link:hover::after, .project-link:focus-visible::after { transform: scaleX(1); }
.project-link .icon { transition: transform 0.35s var(--ease-out); }
.project-link:hover .icon { transform: translate(3px, -3px); }

.project-end {
  flex: none;
  width: clamp(300px, 40vw, 480px);
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 24px;
  text-align: center;
  padding: 0 30px;
}
.project-end-title {
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.45);
}

.pin-hint {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  color: var(--faint);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  animation: hint-float 2.6s ease-in-out infinite;
  white-space: nowrap;
}
@keyframes hint-float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-6px); }
}


@media (hover: none), (pointer: coarse) {
  .projects { height: auto; }
  .pin-stage {
    position: static;
    height: auto;
    padding: clamp(90px, 12vw, 150px) 0 60px;
    overflow: visible;
  }
  .projects-head { position: static; max-width: none; padding: 0 24px; margin-bottom: 30px; }
  .pin-track {
    width: auto;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 20px 24px 30px;
    height: auto;
  }
  .pin-track::-webkit-scrollbar { height: 6px; }
  .project-card, .project-end { scroll-snap-align: center; }
  .pin-hint { display: none; }
}


.timeline {
  position: relative;
  margin-top: 50px;
  padding-left: 34px;
}
.timeline-line {
  position: absolute;
  left: 8px; top: 6px; bottom: 6px;
  width: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.timeline-line-fill {
  display: block;
  width: 100%; height: 100%;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 12px rgba(210, 225, 255, 0.6);
  transform: scaleY(var(--tp, 0));
  transform-origin: 0 0;
}

.timeline-list { display: grid; gap: 34px; }

.timeline-item { position: relative; }
.timeline-node {
  position: absolute;
  left: -34px; top: 26px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 2px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 16px rgba(210, 225, 255, 0.4);
  transform: scale(0.4);
  transition: transform 0.5s var(--ease-spring), box-shadow 0.4s ease;
}
.timeline-item.in .timeline-node { transform: scale(1); }
.timeline-item:hover .timeline-node {
  box-shadow: 0 0 24px rgba(210, 225, 255, 0.7);
}

.timeline-card {
  border-radius: var(--radius-md);
  padding: 26px 30px;
  max-width: 720px;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s ease;
}
.timeline-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.6),
    var(--glow-strong),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.timeline-when {
  color: var(--faint);
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.timeline-role { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin-bottom: 10px; letter-spacing: 0.01em; }

.resume-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 54px;
}


.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 26px;
  margin-top: 46px;
  align-items: start;
}

.contact-form {
  border-radius: var(--radius-lg);
  padding: clamp(26px, 4vw, 42px);
  display: grid;
  gap: 22px;
}

.field { display: grid; gap: 8px; }
.field label {
  color: var(--muted);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}
.field input,
.field textarea {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--ink);
  padding: 15px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  width: 100%;
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--faint); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.25), var(--glow-soft);
}
.field.invalid input,
.field.invalid textarea {
  border-color: rgba(255, 140, 140, 0.55);
}
.field-error {
  color: #ff9c9c;
  font-size: 0.9rem;
  min-height: 1.2em;
}

.btn-send { justify-self: start; }

.contact-side { display: grid; gap: 22px; }

.email-card, .socials {
  border-radius: var(--radius-lg);
  padding: 28px 30px;
}
.email-label {
  color: var(--faint);
  font-size: 0.92rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.email-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.email-link {
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  color: var(--ink);
  text-shadow: 0 0 26px rgba(255, 255, 255, 0.12);
  transition: text-shadow 0.3s ease;
}
.email-link:hover { text-shadow: 0 0 36px rgba(255, 255, 255, 0.3); }

.copy-btn {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.25s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.copy-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), var(--glow-soft);
}
.copy-btn:active { transform: scale(0.92); }

.social-list { display: grid; gap: 4px; }
.social-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 1.05rem;
  transition: background-color 0.3s ease, color 0.3s ease, padding-left 0.3s ease;
}
.social-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  padding-left: 20px;
}
.social-link .icon { opacity: 0.6; }


.toasts {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 260;
  display: grid;
  gap: 12px;
  width: min(360px, calc(100vw - 40px));
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: rgba(14, 14, 19, 0.72);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.55),
    var(--glow-soft),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transform: translateX(calc(100% + 32px));
  opacity: 0;
  transition: transform 0.55s var(--ease-spring), opacity 0.4s ease;
}
.toast.is-in { transform: none; opacity: 1; }
.toast.is-out { transform: translateX(calc(100% + 32px)); opacity: 0; }

.toast-icon {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.toast-icon .icon { width: 20px; height: 20px; }
.toast--success .toast-icon { color: #9fe8c4; box-shadow: inset 0 0 14px rgba(159, 232, 196, 0.14), 0 0 16px rgba(159, 232, 196, 0.14); }
.toast--error .toast-icon { color: #ff9c9c; box-shadow: inset 0 0 14px rgba(255, 156, 156, 0.14), 0 0 16px rgba(255, 156, 156, 0.14); }
.toast--info .toast-icon { color: #a9c7ff; box-shadow: inset 0 0 14px rgba(169, 199, 255, 0.14), 0 0 16px rgba(169, 199, 255, 0.14); }

.toast-body { display: grid; gap: 2px; min-width: 0; }
.toast-title { font-family: var(--font-display); font-size: 1.02rem; letter-spacing: 0.02em; }
.toast-msg { color: var(--muted); font-size: 0.93rem; line-height: 1.45; }

.toast-close {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  color: var(--faint);
  transition: background-color 0.25s ease, color 0.25s ease;
}
.toast-close:hover { background: rgba(255, 255, 255, 0.08); color: var(--ink); }
.toast-close .icon { width: 14px; height: 14px; }


.footer {
  position: relative;
  margin-top: 40px;
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.footer-marquee {
  padding: clamp(30px, 6vh, 60px) 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.footer-word-track { animation: marquee 22s linear infinite; }
.footer-word {
  font-size: clamp(4rem, 13vw, 11rem);
  line-height: 1;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.22);
  transition: color 0.5s ease;
  padding-right: 0.5em;
}
.footer-marquee:hover .footer-word { color: rgba(255, 255, 255, 0.1); }

.footer-bar {
  width: min(1160px, 100%);
  margin: 0 auto;
  padding: 26px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--faint);
  font-size: 0.95rem;
}
.top-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  transition: color 0.3s ease;
}
.top-link:hover { color: var(--ink); }


.nf {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 120px 24px 80px;
  text-align: center;
}
.nf-inner { display: grid; gap: 26px; justify-items: center; position: relative; z-index: 2; max-width: 640px; }
.nf-code {
  font-family: var(--font-display);
  font-size: clamp(6rem, 26vw, 15rem);
  line-height: 0.9;
  display: flex;
  gap: 0.06em;
}
.nf-code span { display: inline-block; animation: nf-float 3.2s ease-in-out infinite; }
.nf-code span:nth-child(2) { animation-delay: 0.4s; color: transparent; -webkit-text-stroke: 2.5px rgba(255, 255, 255, 0.5); }
.nf-code span:nth-child(3) { animation-delay: 0.8s; }
@keyframes nf-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(2deg); }
}
.nf-title { font-size: clamp(1.6rem, 4vw, 2.4rem); }
.nf-text { color: var(--muted); max-width: 44ch; }
.nf-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

.nf-bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.nf-bubbles .bubble-anchor { position: absolute; }
@media (hover: none), (pointer: coarse) {
  .nf-bubbles .bubble { pointer-events: none; }
}


@media (max-width: 1100px) {
  .about-grid { grid-template-columns: 1fr; gap: 44px; }
  .about-portrait { max-width: 520px; }
  .skills-grid { grid-template-columns: 1fr 1fr; }
  .skill-card:last-child { grid-column: 1 / -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .bubble-field .bubble-anchor:nth-child(3) { display: none; }
}

@media (max-width: 860px) {
  .nav-list, .nav-pill, .btn-nav { display: none; }
  .burger { display: grid; place-items: center; }
  .nav { gap: 10px; }
  .nav-logo { margin-right: auto; }
}

@media (max-width: 700px) {
  body { font-size: 1rem; }

  .hero { padding-top: calc(var(--nav-h) + 46px); }
  .hero-hint { display: none; }
  .bubble-field { opacity: 0.55; }
  .bubble-field .bubble { pointer-events: none; }

  .section { padding-left: 18px; padding-right: 18px; }

  .skills-grid { grid-template-columns: 1fr; }
  .skill-card:last-child { grid-column: auto; }

  .stats { grid-template-columns: 1fr; gap: 14px; }
  .stat { display: flex; align-items: baseline; gap: 12px; justify-content: center; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); padding-top: 14px; }

  .timeline { padding-left: 26px; }
  .timeline-line { left: 2px; }
  .timeline-node { left: -32px; }
  .timeline-card { padding: 20px 22px; }

  .toasts { right: 12px; bottom: 12px; }
  .footer-bar { justify-content: center; text-align: center; }
}


@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .loader { display: none; }
  .hero [data-hero] { opacity: 1; transform: none; }
  .progress { display: none; }
  .grain { animation: none; }
  .pin-track { overflow-x: auto; }

  
  .projects { height: auto; }
  .pin-stage {
    position: static;
    height: auto;
    overflow: visible;
    display: block;
    padding: clamp(90px, 12vw, 150px) 0 60px;
  }
  .projects-head { position: static; max-width: none; padding: 0 24px; margin-bottom: 30px; }
  .pin-track {
    width: auto;
    overflow-x: auto;
    padding: 20px 24px 30px;
    height: auto;
  }
  .pin-hint { display: none; }
  .bar-fill { transform: scaleX(var(--level, 0.5)); }
  .timeline-line-fill { transform: scaleY(1); }
}


.open-admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.10);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
  opacity: 0.15;
  transition:
    opacity 0.5s var(--ease-out),
    color 0.5s var(--ease-out),
    border-color 0.5s var(--ease-out),
    box-shadow 0.5s var(--ease-out),
    background 0.5s var(--ease-out);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.open-admin-btn:hover {
  opacity: 1;
  color: rgba(255, 255, 255, 0.6);
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.06),
              inset 0 0 10px rgba(255, 255, 255, 0.02);
}
.open-admin-btn svg {
  width: 0.9em;
  height: 0.9em;
  flex: none;
  opacity: 0.6;
}
.footer-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}


.dynamic-loading {
  opacity: 0.4;
  pointer-events: none;
}
.dyn-skeleton {
  display: inline-block;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  animation: dyn-shimmer 1.5s ease-in-out infinite;
  min-width: 60px;
  min-height: 1em;
}
@keyframes dyn-shimmer {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}




body.perf-mode .glass {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  background: rgba(14, 14, 20, 0.94) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6) !important;
}
body.perf-mode .grain,
body.perf-mode .lens,
body.perf-mode .portrait-ring {
  display: none !important;
}
body.perf-mode *,
body.perf-mode *::before,
body.perf-mode *::after {
  transition-duration: 0.12s !important;
}
.perf-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--glass-bg);
  border: 1px solid var(--line);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
}
.perf-toggle-btn:hover {
  background: var(--glass-bg-hover);
  color: var(--ink);
  border-color: var(--glass-brd);
}
body.perf-mode .perf-toggle-btn {
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.35);
  color: #fbbf24;
}


.project-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 24px;
  margin-bottom: 28px;
  z-index: 5;
  position: relative;
}
.project-filter-btn {
  font-family: var(--font-body);
  font-size: 0.85rem;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--glass-bg);
  border: 1px solid var(--line);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
}
.project-filter-btn:hover {
  background: var(--glass-bg-hover);
  color: var(--ink);
  border-color: var(--glass-brd);
}
.project-filter-btn.is-active {
  background: rgba(255, 255, 255, 0.14);
  color: var(--ink);
  border-color: var(--glass-brd-focus, rgba(255, 255, 255, 0.35));
  box-shadow: var(--glow-soft);
}
.project-card {
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out), box-shadow 0.3s var(--ease-out);
  cursor: pointer;
}
.project-card.is-filtered-out {
  display: none !important;
}


.project-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0, 0, 0, 0.78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  display: grid;
  place-items: center;
  padding: 24px 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease-out), visibility 0s 0.3s;
}
.project-modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s var(--ease-out);
}
.project-modal {
  position: relative;
  width: 100%;
  max-width: 760px;
  max-height: 88vh;
  overflow-y: auto;
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  background: rgba(11, 11, 16, 0.94);
  border: 1px solid var(--glass-brd);
  box-shadow: var(--shadow-float), var(--glow-strong);
  transform: scale(0.95) translateY(12px);
  transition: transform 0.35s var(--ease-spring), opacity 0.3s;
  opacity: 0;
}
.project-modal-backdrop.is-open .project-modal {
  transform: scale(1) translateY(0);
  opacity: 1;
}
.modal-close-icon-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
}
.modal-close-icon-btn:hover {
  background: var(--glass-bg-hover);
  color: var(--ink);
  border-color: var(--glass-brd);
}
.modal-close-icon-btn svg { width: 16px; height: 16px; }
.project-modal-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.project-modal-status {
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(100, 220, 140, 0.12);
  border: 1px solid rgba(100, 220, 140, 0.3);
  color: #64dc8c;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.project-modal-year {
  font-size: 0.82rem;
  color: var(--faint);
  font-family: var(--font-body);
}
.project-modal-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 14px;
}
.project-modal-short {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 24px;
}
.project-modal-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.project-modal-tags li {
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-body);
}
.project-modal-body {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 10px;
}
.modal-section-block {
  margin-bottom: 24px;
}
.modal-section-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.modal-section-desc {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
}
.project-modal-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}


.sandbox {
  position: relative;
  overflow: hidden;
  padding: clamp(90px, 12vw, 150px) 24px 100px;
  border-top: 1px solid var(--line);
}
.sandbox-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.sandbox-stage-wrap {
  position: relative;
  width: 100%;
  height: 520px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--glass-brd);
  background: #040406;
  margin-top: 32px;
  box-shadow: var(--shadow-float), var(--glow-soft);
}
#sandbox-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.sandbox-dock {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  z-index: 10;
}
.sandbox-controls-left,
.sandbox-controls-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.sandbox-ctrl-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sandbox-ctrl-label {
  font-size: 0.72rem;
  font-family: var(--font-body);
  color: var(--faint);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.sandbox-select {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.75rem;
  color: var(--ink);
  font-family: var(--font-body);
  cursor: pointer;
}
.sandbox-select option { background: #0b0b10; }
.sandbox-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-family: var(--font-body);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
}
.sandbox-btn:hover {
  background: var(--glass-bg-hover);
  color: var(--ink);
  border-color: var(--glass-brd);
}
.sandbox-fps-badge {
  font-size: 0.7rem;
  font-family: monospace;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: #34d399;
  letter-spacing: 0.05em;
}


.cmd-palette-backdrop {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: rgba(0, 0, 0, 0.78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  display: grid;
  place-items: center;
  padding: 24px 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease-out), visibility 0s 0.25s;
}
.cmd-palette-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s var(--ease-out);
}
.cmd-palette {
  width: 100%;
  max-width: 580px;
  border-radius: var(--radius-lg);
  background: rgba(10, 10, 14, 0.96);
  border: 1px solid var(--glass-brd);
  box-shadow: var(--shadow-float), var(--glow-strong);
  overflow: hidden;
  transform: scale(0.96) translateY(-10px);
  transition: transform 0.3s var(--ease-spring), opacity 0.25s;
  opacity: 0;
}
.cmd-palette-backdrop.is-open .cmd-palette {
  transform: scale(1) translateY(0);
  opacity: 1;
}
.cmd-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.cmd-search-icon {
  color: var(--faint);
  margin-right: 12px;
  flex: none;
}
.cmd-search-icon svg { width: 18px; height: 18px; }
.cmd-search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--ink);
}
.cmd-search-input::placeholder { color: var(--faint); }
.cmd-shortcut-tag {
  font-size: 0.7rem;
  font-family: monospace;
  padding: 3px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  color: var(--muted);
}
.cmd-results {
  max-height: 380px;
  overflow-y: auto;
  padding: 10px 8px;
}
.cmd-group-label {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 10px 14px 4px;
  font-family: var(--font-body);
}
.cmd-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.18s;
  font-family: var(--font-body);
  font-size: 0.9rem;
}
.cmd-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cmd-item-left svg { width: 15px; height: 15px; color: var(--faint); }
.cmd-item:hover,
.cmd-item.is-selected {
  background: var(--glass-bg-hover);
  color: var(--ink);
}
.cmd-item:hover .cmd-item-left svg,
.cmd-item.is-selected .cmd-item-left svg {
  color: var(--ink);
}
.cmd-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--faint);
  font-family: var(--font-body);
}
.cmd-footer-keys {
  display: flex;
  gap: 10px;
}
.cmd-footer-keys span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}


.timeline-item:hover .timeline-card {
  transform: translateX(4px);
  border-color: var(--glass-brd-focus, rgba(255, 255, 255, 0.3));
  box-shadow: var(--shadow-float), var(--glow-soft);
}
.timeline-item:hover .timeline-node {
  background: var(--ink);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.8);
  transform: scale(1.25);
}
.timeline-node {
  transition: transform 0.25s var(--ease-spring), background 0.25s, box-shadow 0.25s;
}


.cursor-ring.is-project-hover {
  width: 64px;
  height: 64px;
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
}

