@import url('https://api.fontshare.com/v2/css?f[]=general-sans@400,500,600,700&f[]=satoshi@400,500,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,300;0,6..72,400;0,6..72,500;1,6..72,300;1,6..72,400;1,6..72,500&family=Instrument+Serif:ital@0;1&family=Caveat:wght@400;500;600;700&display=swap');

/* Google Sans Flex is preferred â€” DM Sans is the public fallback */
:root {
  --font-main: 'General Sans', 'Avenir Next', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-ui: 'Satoshi', 'General Sans', 'Avenir Next', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-serif: 'Newsreader', Georgia, serif;
  --font-accent: 'Instrument Serif', 'Newsreader', Georgia, serif;
  --font-display: var(--font-main);
  --font-hand: 'Caveat', cursive;
  --lh-tight: 1.02;
  --lh-heading: 1.08;
  --lh-subhead: 1.18;
  --lh-body: 1.68;
  --lh-meta: 1.55;
  --lh-ui: 1.35;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 80px;
  --space-10: 96px;

  /* Light palette */
  --bg: #f7f3ea;
  --bg2: #ede5d8;
  --surface: #fffdfa;
  --border: rgba(24,27,32,0.10);
  --border2: rgba(24,27,32,0.18);
  --ink: #111111;
  --ink2: #4f4a43;
  --ink3: #7d7468;
  --teal: #0d9488;
  --blue: #2563eb;
  --accent1: #8777ff;
  --accent2: #1db8a6;

  /* Dark palette */
  --dark: #05050a;
  --dark2: #0a0a14;
  --dark-surface: rgba(255,255,255,0.04);
  --dark-border: rgba(255,255,255,0.08);
  --dark-border2: rgba(255,255,255,0.14);
  --dark-ink: #f0f0f8;
  --dark-ink2: rgba(240,240,248,0.6);
  --dark-ink3: rgba(240,240,248,0.32);

  --seq-metal: #d2ba8f;
  --seq-metal-soft: rgba(210, 186, 143, 0.16);
  --seq-mineral: #8fc9be;
  --seq-mineral-soft: rgba(143, 201, 190, 0.16);
  --seq-ink: #0a1018;
  --seq-panel: rgba(17, 24, 34, 0.72);
  --seq-panel-strong: rgba(14, 20, 29, 0.92);
  --seq-border: rgba(224, 230, 240, 0.12);
  --seq-border-strong: rgba(224, 230, 240, 0.18);
  --seq-surface: rgba(255, 252, 246, 0.72);
  --seq-shadow: 0 24px 56px rgba(13, 18, 28, 0.12);

  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; font-size: 16px; background-color: #faf6ef; }
body {
  font-family: var(--font-main);
  line-height: var(--lh-body);
  background: transparent;
  background-color: #faf6ef;
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  cursor: none;
  position: relative;
  isolation: isolate;
}
body::before,
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
}
body::before {
  z-index: -2;
  background:
    radial-gradient(circle at top right, rgba(251,191,36,0.11), transparent 24%),
    linear-gradient(180deg, #faf6ef 0%, #f0e8dc 50%, #e7dece 100%);
}

.deep-section.dark-section {
  position: relative;
  overflow: hidden;
  margin-top: -6.5rem;
  padding: 8.4rem 7vw 8.6rem;
  background:
    radial-gradient(ellipse at 50% -2%, rgba(194, 228, 255, 0.08) 0%, transparent 24%),
    radial-gradient(ellipse at 20% 32%, rgba(70, 113, 194, 0.05) 0%, transparent 28%),
    radial-gradient(ellipse at 82% 60%, rgba(44, 86, 166, 0.06) 0%, transparent 26%),
    linear-gradient(180deg, #0c1d37 0%, #0a1930 16%, #081426 42%, #06111d 72%, #050b14 100%);
  isolation: isolate;
}
.deep-section::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 7rem;
  background: linear-gradient(180deg, rgba(186, 222, 248, 0.08) 0%, rgba(86, 128, 198, 0.06) 20%, rgba(18, 38, 68, 0.08) 44%, rgba(6, 14, 24, 0) 100%);
  pointer-events: none;
  z-index: 0;
}
.deep-section::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 8rem;
  background: linear-gradient(180deg, rgba(4, 10, 19, 0) 0%, rgba(6, 14, 22, 0.52) 55%, rgba(236, 227, 212, 0.88) 100%);
  pointer-events: none;
  z-index: 0;
}
.deep-section__bg,
.deep-section__veil,
.deep-section__beams,
.deep-section__inner {
  position: relative;
  z-index: 1;
}
.deep-section__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(4, 11, 21, 0.30) 0%, rgba(4, 11, 21, 0.42) 22%, rgba(4, 11, 21, 0.82) 100%),
    radial-gradient(ellipse at 56% 7%, rgba(220, 240, 255, 0.16) 0%, rgba(220, 240, 255, 0) 24%),
    radial-gradient(ellipse at 44% 42%, rgba(47, 88, 160, 0.10) 0%, rgba(47, 88, 160, 0) 34%),
    url("./ocean-depth-premium-v2.png") 62% 8% / 122% auto no-repeat;
  opacity: 1;
  mix-blend-mode: normal;
}
.deep-section__veil {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at 50% 14%, rgba(168, 208, 255, 0.09), transparent 24%),
    radial-gradient(ellipse at 50% 58%, rgba(33, 69, 128, 0.06), transparent 34%);
  opacity: 0.76;
}
.deep-section__beams {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.deep-section__beams span {
  position: absolute;
  top: -12%;
  width: 18rem;
  height: 125%;
  background: linear-gradient(180deg, rgba(207, 231, 255, 0.16) 0%, rgba(116, 153, 216, 0.08) 26%, rgba(25, 44, 80, 0) 72%);
  filter: blur(16px);
  opacity: 0.26;
  transform: rotate(10deg);
  animation: deepBeamFloat var(--beam-duration, 18s) ease-in-out infinite;
}
.deep-section__beams span:nth-child(1) {
  left: 8%;
  --beam-duration: 20s;
}
.deep-section__beams span:nth-child(2) {
  left: 38%;
  width: 22rem;
  opacity: 0.2;
  --beam-duration: 24s;
  animation-delay: -6s;
}
.deep-section__beams span:nth-child(3) {
  right: 10%;
  width: 16rem;
  opacity: 0.16;
  --beam-duration: 22s;
  animation-delay: -10s;
}
.deep-section__inner {
  max-width: 1200px;
  margin: 0 auto;
}
.deep-section__label {
  color: rgba(221, 232, 247, 0.48);
  margin-bottom: 2.1rem;
}
.deep-section__label::after {
  background: rgba(188, 211, 238, 0.16);
}
.deep-section__copy {
  max-width: 38rem;
  margin-left: clamp(1rem, 4vw, 5rem);
}
.deep-section__copy > *:first-child {
  margin-top: 0;
}
.deep-section__hed {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 4.9rem);
  font-weight: 400;
  line-height: 1.01;
  letter-spacing: -0.04em;
  color: rgba(241, 246, 255, 0.97);
  margin-bottom: 1rem;
}
.deep-section__body {
  max-width: 34rem;
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  line-height: 1.86;
  letter-spacing: -0.01em;
  color: rgba(199, 213, 233, 0.76);
}
@keyframes deepBeamFloat {
  0%, 100% { transform: translate3d(-10px, 0, 0) rotate(10deg); opacity: 0.14; }
  50% { transform: translate3d(12px, 24px, 0) rotate(8deg); opacity: 0.3; }
}
@media (max-width: 900px) {
  .deep-section {
    margin-top: -7rem;
    padding: 8rem 6vw 6.6rem;
  }
}
@media (max-width: 600px) {
  .deep-section {
    margin-top: -4.4rem;
    padding: 6.8rem 5vw 5.8rem;
  }
  .deep-section::before {
    height: 8.5rem;
  }
  .deep-section__label {
    margin-bottom: 1.5rem;
  }
  .deep-section__hed {
    font-size: clamp(2.1rem, 10vw, 3.2rem);
  }
  .deep-section__body {
    font-size: 0.98rem;
    line-height: 1.78;
  }
  .deep-section__copy {
    margin-left: 0;
    max-width: 100%;
  }
  .deep-section__beams span {
    width: 12rem;
    filter: blur(12px);
  }
  .deep-section__bg {
    background-position: 56% 10%, 56% 7%, 50% 38%, 70% 10%;
    background-size: auto, auto, auto, cover;
    opacity: 1;
  }
}
body::after {
  z-index: -1;
  opacity: var(--global-dark-opacity, 0);
  background:
    radial-gradient(circle at top center, rgba(255,255,255,0.045), transparent 30%),
    radial-gradient(circle at 50% 15%, rgba(85,105,170,0.09), transparent 26%),
    linear-gradient(180deg, #161616 0%, #090910 42%, #030308 100%);
  transition: opacity .18s linear;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.2); border-radius: 2px; }

/* â”€â”€ CURSOR â”€â”€ */
#cursor {
  position: fixed; width: 12px; height: 12px;
  background: color-mix(in srgb, var(--ink) 78%, var(--seq-metal) 22%); border-radius: 50%;
  pointer-events: none; z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width .3s var(--ease), height .3s var(--ease), background .3s, opacity .3s;
  mix-blend-mode: multiply;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.16);
}
#cursor-ring {
  position: fixed; width: 40px; height: 40px;
  border: 1.5px solid rgba(93, 84, 69, 0.18); border-radius: 50%;
  pointer-events: none; z-index: 99998;
  transform: translate(-50%, -50%);
  transition: width .4s var(--ease), height .4s var(--ease), border-color .3s, opacity .3s;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
#cursor-label {
  position: fixed; pointer-events: none; z-index: 100000;
  transform: translate(14px, 14px);
  font-family: var(--font-ui); font-size: .65rem; font-weight: 600;
  color: #fff; background: rgba(19, 22, 28, 0.88);
  padding: .24rem .58rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 10px 24px rgba(17, 20, 26, 0.18);
  opacity: 0; transition: opacity .2s var(--ease), transform .2s var(--ease);
  white-space: nowrap; letter-spacing: .03em;
}
body.dark-mode #cursor { background: var(--seq-mineral); mix-blend-mode: screen; box-shadow: 0 0 16px rgba(143, 201, 190, 0.24); }
body.dark-mode #cursor-ring { border-color: rgba(143, 201, 190, 0.28); }

/* â”€â”€ NAV â”€â”€ */
#main-nav {
    position: fixed; top: 1.2rem; left: 50%; transform: translateX(-50%);
    z-index: 9000; display: flex; align-items: center; gap: .42rem;
    padding: .62rem .78rem;
    width: max-content;
    background: rgba(248,247,244,0.9);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(15,23,42,0.08); border-radius: 100px;
    box-shadow: 0 8px 30px rgba(15,23,42,0.06), inset 0 1px 0 rgba(255,255,255,0.5);
    transition: all .48s cubic-bezier(0.22, 1, 0.36, 1);
  }
#main-nav.scrolled { background: rgba(248,247,244,0.96); box-shadow: 0 12px 38px rgba(15,23,42,0.085), inset 0 1px 0 rgba(255,255,255,0.56); }
#main-nav.dark {
  background: rgba(8,8,14,0.96) !important;
  border-color: rgba(255,255,255,0.1);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.nav-logo {
    font-family: var(--font-ui); font-weight: 700; font-size: .92rem;
    color: var(--ink); padding: .34rem .92rem; letter-spacing: -.022em;
    transition: color .3s;
  }
#main-nav.dark .nav-logo { color: var(--dark-ink); }
.nav-clock {
    font-family: var(--font-ui); font-size: .66rem; font-weight: 500; color: rgba(59,59,68,0.62);
    padding: .28rem .76rem; border-radius: 100px;
    border: 1px solid rgba(15,23,42,0.07); background: rgba(15,23,42,0.025);
    font-variant-numeric: tabular-nums; letter-spacing: .045em;
    transition: color .3s, border-color .3s, background .3s;
  }
#main-nav.dark .nav-clock {
  color: var(--dark-ink2);
  border-color: var(--dark-border);
  background: transparent;
}
.nav-links { display: flex; gap: .05rem; background: transparent; position: relative; z-index: 1; }
.nav-links a {
  font-family: var(--font-ui); font-size: .8rem; font-weight: 600; color: var(--ink);
  padding: .38rem .72rem; border-radius: 100px;
  transition: color .28s var(--ease), background .28s var(--ease);
  white-space: nowrap;
}
.nav-links a:hover { color: var(--ink); background: rgba(0,0,0,0.045); }
.nav-links a.active { color: var(--ink); font-weight: 600; background: rgba(0,0,0,0.06); }
#main-nav.dark .nav-links a { color: var(--dark-ink); background: transparent; }
#main-nav.dark .nav-links a:hover { color: var(--dark-ink); background: rgba(255,255,255,0.06); }
#main-nav.dark .nav-links a.active { color: var(--dark-ink); background: rgba(255,255,255,0.08); }
.nav-cta {
    font-family: var(--font-ui); font-size: .79rem; font-weight: 700; color: #fff;
    background: var(--ink); padding: .44rem 1.18rem; border-radius: 100px;
    transition: background .32s var(--ease), transform .32s var(--ease), box-shadow .32s var(--ease);
  }
.nav-cta:hover { background: #333; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(15,23,42,0.16); }
#main-nav.dark .nav-cta {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
}
#main-nav.dark .nav-cta:hover {
  background: rgba(255,255,255,0.18);
}
@media (max-width: 680px) { .nav-links, .nav-center { display: none; } .nav-clock { display: none; } }

/* â”€â”€ SECTION 1: HERO (light) â”€â”€ */
#hero {
  position: relative; min-height: 100vh;
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  align-items: center; gap: clamp(1.1rem, 2.4vw, 2rem);
  padding: 8rem 6.4vw 7rem;
  background: transparent; overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.07) 1px, transparent 1px),
    radial-gradient(circle, rgba(0, 0, 0, 0.03) 0.8px, transparent 0.8px);
  background-size: 48px 48px, 48px 48px, 12px 12px;
  background-position: 0 0, 0 0, 0 0;
  opacity: .16;
  mask-image: radial-gradient(ellipse 94% 84% at 50% 48%, black 64%, rgba(0,0,0,0.78) 84%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 94% 84% at 50% 48%, black 64%, rgba(0,0,0,0.78) 84%, transparent 100%);
  pointer-events: none;
}
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.085) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.085) 1px, transparent 1px),
    radial-gradient(circle, rgba(0, 0, 0, 0.038) 0.9px, transparent 0.9px);
  background-size: 48px 48px, 48px 48px, 12px 12px;
  background-position: 0 0, 0 0, 0 0;
  opacity: .92;
  mask-image:
    radial-gradient(circle 34vw at var(--hero-grid-x, 50%) var(--hero-grid-y, 48%), rgba(0,0,0,1) 0%, rgba(0,0,0,0.96) 32%, rgba(0,0,0,0.82) 58%, rgba(0,0,0,0.28) 76%, transparent 100%),
    radial-gradient(ellipse 92% 82% at 50% 48%, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.10) 52%, transparent 100%);
  -webkit-mask-image:
    radial-gradient(circle 34vw at var(--hero-grid-x, 50%) var(--hero-grid-y, 48%), rgba(0,0,0,1) 0%, rgba(0,0,0,0.96) 32%, rgba(0,0,0,0.82) 58%, rgba(0,0,0,0.28) 76%, transparent 100%),
    radial-gradient(ellipse 92% 82% at 50% 48%, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.10) 52%, transparent 100%);
  pointer-events: none;
}
#hero .hero-glow {
  content: '';
  position: absolute; top: -140px; right: -60px;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(251,191,36,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.hero-greeting-pill {
  position: absolute;
  top: clamp(6.45rem, 10.5vh, 8.1rem);
  left: 50%;
  transform: translate(-50%, -28px) scale(0.985);
  display: inline-flex;
  align-items: center;
  gap: 0.64rem;
  width: max-content;
  max-width: min(42rem, calc(100vw - 3rem));
  padding: 0.58rem 0.86rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  filter: blur(6px);
  pointer-events: none;
  z-index: 2;
}
.hero-greeting-pill.is-visible {
  animation: heroGreetingIn 0.82s cubic-bezier(.2,.9,.25,1) forwards;
}
.hero-greeting-pill.is-leaving {
  animation: heroGreetingOut 0.72s cubic-bezier(.5,.05,.8,.25) forwards;
}
.hero-greeting-icon {
  flex: 0 0 auto;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(82,82,91,0.72);
  background: rgba(17,24,39,0.05);
}
.hero-greeting-icon svg {
  width: 0.92rem;
  height: 0.92rem;
}
.hero-greeting-copy {
  font-family: var(--font-main);
  font-size: clamp(0.82rem, 1.08vw, 0.98rem);
  font-weight: 500;
  line-height: 1.2;
  color: transparent;
  background: linear-gradient(90deg, #2388ff 0%, #1ba7ff 42%, #7a7cff 72%, #ca63d3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  white-space: normal;
}
@keyframes heroGreetingIn {
  0% {
    opacity: 0;
    transform: translate(-50%, -28px) scale(0.985);
    filter: blur(6px);
  }
  60% {
    opacity: 1;
    transform: translate(-50%, 5px) scale(1);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
    filter: blur(0);
  }
}
@keyframes heroGreetingOut {
  0% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
    filter: blur(0);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -30px) scale(0.985);
    filter: blur(4px);
  }
}
.hero-left { z-index: 1; max-width: 760px; margin-left: clamp(2rem, 6vw, 7rem); }
.hero-action-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 1.55rem;
  width: max-content;
  max-width: 100%;
  margin-top: 0.2rem;
}
.hero-right { position: relative; z-index: 1; display: flex; justify-content: center; padding-left: clamp(0rem, 0.8vw, 0.6rem); }
@media (max-width: 860px) { #hero { grid-template-columns: 1fr; padding: 8rem 6vw 5rem; } .hero-right { display: none; } .hero-left { margin-left: 0; max-width: 100%; } }
@media (max-width: 860px) {
  .hero-greeting-pill {
    top: 6.55rem;
    max-width: calc(100vw - 3rem);
    padding: 0.66rem 0.86rem;
  }
  .hero-greeting-copy {
    white-space: normal;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-greeting-pill,
  .hero-greeting-pill.is-visible,
  .hero-greeting-pill.is-leaving {
    animation: none !important;
    opacity: 1;
    transform: translate(-50%, 0);
    filter: none;
  }
  .hero-name .hero-wave-char,
  .hero-name .hero-wave-line {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    filter: none !important;
  }
}


.greeting-wrap {
  font-family: var(--font-accent); font-style: italic;
  font-size: clamp(2rem, 4.5vw, 3.5rem); font-weight: 300;
  color: var(--ink2); line-height: var(--lh-tight); margin-bottom: .18rem;
  height: 1.2em; overflow: hidden;
  opacity: 0; animation: fadeUp .82s .08s var(--out) forwards;
}
.greeting-word { display: block; transition: transform .62s var(--out), opacity .62s var(--ease); }
.greeting-word.exit { transform: translateY(-110%); opacity: 0; }
.greeting-word.enter { transform: translateY(110%); opacity: 0; }

.hero-name {
  font-family: var(--font-main); font-weight: 600;
  font-size: clamp(3.35rem, 7.6vw, 6.35rem);
  line-height: 0.96; letter-spacing: -.04em;
  color: #11110f; margin-bottom: .74rem;
  opacity: 0; animation: fadeUp .82s .16s var(--out) forwards;
  text-wrap: balance;
}
.hero-name .hero-wave-line {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  cursor: pointer;
}
.hero-name .hero-wave-char {
  display: inline-block;
  will-change: transform;
}
.hero-name .hero-wave-space {
  white-space: pre;
}
.hero-name:hover .hero-wave-char,
.hero-name.is-waving .hero-wave-char {
  animation: heroWaveChar .7s cubic-bezier(0.22, 0.61, 0.36, 1);
  animation-delay: calc(var(--char-index, 0) * 30ms);
}
.hero-name .surname {
  display: block;
  font-weight: 300;
  font-size: .372em;
  line-height: 1.02;
  color: rgba(38, 35, 30, 0.72);
  letter-spacing: -0.004em;
  margin-top: 0.28em;
}
.hero-badge {
  display: inline-block;
  font-size: 0.56rem;
  font-weight: 650;
  color: #fff;
  background: rgba(17,17,17,0.9);
  padding: 0.42em 0.82em;
  border-radius: 999px;
  margin-left: 0.72em;
  vertical-align: middle;
  letter-spacing: 0.08em;
  box-shadow: 0 10px 20px rgba(17,17,17,0.08);
}
.hero-role, .hero-title {
  font-family: var(--font-ui); font-size: .74rem; font-weight: 700; color: rgba(17,17,17,0.48);
  letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1.18rem; line-height: 1.42;
  opacity: 0; animation: fadeUp .82s .26s var(--out) forwards;
}
.hero-desc {
  font-size: clamp(1rem, 1.02vw, 1.04rem); line-height: 1.88; color: rgba(17,17,17,0.66);
  max-width: 55ch; margin-bottom: 1.9rem; letter-spacing: -0.008em;
  opacity: 0; animation: fadeUp .82s .36s var(--out) forwards;
  text-wrap: pretty;
}
.hero-desc strong { color: var(--ink); font-weight: 600; }
.hero-desc .hl {
  background: rgba(251,191,36,0.16);
  border-bottom: 1px solid rgba(251,191,36,0.42);
  padding: 0 .18em; border-radius: 2px;
}
.hero-scan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .9rem;
  max-width: 760px;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp .82s .44s var(--out) forwards;
}
@media (min-width: 861px) {
  #hero {
    min-height: clamp(44rem, 92vh, 56rem);
    grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
    align-items: start;
    gap: clamp(1.25rem, 2.4vw, 2.2rem);
    padding: clamp(8.7rem, 11.5vh, 9.9rem) 6.4vw 4.4rem;
  }
  .hero-left {
    align-self: start;
    max-width: 790px;
    margin-left: clamp(0.9rem, 3.8vw, 4.1rem);
    padding-top: clamp(0.2rem, 1vh, 0.7rem);
  }
  .hero-right {
    align-self: start;
    padding-top: clamp(1rem, 2.7vh, 2rem);
    padding-left: 0;
  }
  .hero-name {
    font-size: clamp(3.6rem, 7vw, 6.8rem);
  }
  .hero-scan-grid {
    gap: 0.95rem;
    margin-bottom: 1.9rem;
  }
}
.hero-scan-card {
  padding: 1rem 1.05rem;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,253,249,0.9), rgba(250,245,237,0.8));
  border: 1px solid rgba(15,23,42,0.10);
  box-shadow: 0 16px 32px rgba(15,23,42,0.055), inset 0 1px 0 rgba(255,255,255,0.58);
  backdrop-filter: blur(11px);
}
.hero-scan-label {
  display: block;
  margin-bottom: .38rem;
  font-family: var(--font-ui);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink3);
}
.hero-scan-card strong {
  display: block;
  font-size: .94rem;
  line-height: var(--lh-meta);
  color: rgba(17,17,17,0.78);
  font-weight: 560;
}
.hero-right::before {
  content: none;
}
.hero-actions {
  display: flex; gap: .78rem; flex-wrap: wrap;
  width: max-content;
  max-width: 100%;
  opacity: 0; animation: fadeUp .82s .52s var(--out) forwards;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--font-main); font-size: .83rem; font-weight: 560;
  color: #f7f4ee;
  background: linear-gradient(180deg, rgba(28,27,25,0.94), rgba(17,17,17,0.98));
  padding: .78rem 1.34rem; border-radius: 999px;
  border: 1px solid rgba(17,17,17,0.08);
  box-shadow: 0 10px 24px rgba(17,17,17,0.11), inset 0 1px 0 rgba(255,255,255,0.06);
  transition: transform .34s var(--ease), box-shadow .34s var(--ease), background .34s var(--ease), border-color .34s var(--ease);
  letter-spacing: -0.012em;
}
.btn-primary:hover {
  background: linear-gradient(180deg, rgba(34,33,31,0.96), rgba(20,20,20,1));
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(17,17,17,0.13), inset 0 1px 0 rgba(255,255,255,0.08);
}
.btn-outline {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--font-main); font-size: .83rem; font-weight: 540;
  color: rgba(17,17,17,0.88);
  border: 1px solid rgba(17,17,17,0.14);
  background: rgba(255,255,255,0.46);
  padding: .78rem 1.3rem; border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.72), 0 4px 12px rgba(17,17,17,0.025);
  transition: border-color .34s var(--ease), background .34s var(--ease), transform .34s var(--ease), box-shadow .34s var(--ease), color .34s var(--ease);
  letter-spacing: -0.01em;
}
.btn-outline:hover {
  border-color: rgba(17,17,17,0.22);
  background: rgba(255,255,255,0.66);
  color: rgba(17,17,17,0.96);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(17,17,17,0.055), inset 0 1px 0 rgba(255,255,255,0.82);
}
.hero-scroll {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .45rem;
  width: max-content;
  left: 50%;
  bottom: 1.15rem;
  transform: translateX(-50%);
  opacity: 0;
  animation: fadeUp .82s .88s var(--out) forwards;
  z-index: 2;
}
@media (max-width: 860px) {
  .hero-scroll {
    bottom: 1rem;
  }
}
.scroll-arrow { animation: bounce 2.6s ease-in-out infinite; }
@keyframes bounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(5px)} }
.scroll-arrow svg { opacity: .34; }

@media (max-width: 860px) {
  .hero-left {
    max-width: 38rem;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-title {
    margin-bottom: 0.98rem;
    font-size: 0.71rem;
    letter-spacing: 0.15em;
  }
  .hero-desc {
    max-width: 34ch;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.55rem;
    font-size: 0.97rem;
    line-height: 1.8;
    letter-spacing: -0.012em;
    text-align: center;
    text-wrap: pretty;
  }
  .hero-scan-grid {
    max-width: 34rem;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 680px) {
  .about-switch {
    background: rgba(255, 250, 244, 0.96);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .about-switch-btn.active {
    background: rgba(255,255,255,0.98);
  }

  #about .section-flow,
  #about .reveal,
  #about .reveal.vis {
    transform: none !important;
    opacity: 1 !important;
  }

  #about .reveal {
    transition: none !important;
  }

  .hero-name {
    font-size: clamp(3.45rem, 15.5vw, 4.85rem);
    line-height: 0.94;
    letter-spacing: -0.058em;
    margin-bottom: 0.62rem;
  }
  .hero-name .surname {
    margin-top: 0.3rem;
    font-size: 0.35em;
  }
  .hero-title {
    font-size: 0.68rem;
    letter-spacing: 0.145em;
    margin-bottom: 0.9rem;
  }
  .hero-desc {
    max-width: 29ch;
    font-size: 0.95rem;
    line-height: 1.76;
    margin-bottom: 1.4rem;
  }
  .hero-actions {
    gap: 0.7rem;
  }
  .btn-primary,
  .btn-outline {
    width: min(100%, 16rem);
    padding: 0.82rem 1.14rem;
    font-size: 0.81rem;
  }
}

/* â”€â”€ MARQUEE / TECH TICKER â”€â”€ */
.marquee-bar {
  position: relative; z-index: 2;
  border-top: 1px solid rgba(24, 22, 18, 0.09);
  border-bottom: 1px solid rgba(24, 22, 18, 0.09);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.36), inset 0 -1px 0 rgba(255,255,255,0.22);
  padding: 1.22rem 0;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(252,248,241,0.48), rgba(248,242,233,0.36));
  backdrop-filter: blur(5px);
}
.marquee-track {
  display: flex; gap: 3rem;
  animation: marqScroll 34s linear infinite;
  width: max-content;
}
.marquee-track:hover { animation-play-state: paused; }
@keyframes marqScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.mitem {
  display: flex; align-items: center; gap: .65rem;
  font-size: .72rem; font-weight: 600; color: var(--ink3);
  white-space: nowrap; letter-spacing: .1em; text-transform: uppercase;
  transition: color .2s;
  cursor: default;
}
.mitem:hover { color: var(--ink); }
.mdot { width: 4px; height: 4px; border-radius: 50%; background: var(--ink3); flex-shrink: 0; }

/* Polaroid card */
.polaroid {
  background: rgba(255,253,250,0.96); padding: 1rem 1rem .5rem;
  border-radius: 3px;
  border: 1px solid rgba(17,17,17,0.08);
  box-shadow: 0 22px 58px rgba(0,0,0,0.10), 0 4px 10px rgba(0,0,0,0.05);
  transform: rotate(2deg);
  transition: transform .5s var(--spring);
  max-width: 280px; width: 100%;
  position: relative;
  opacity: 0; animation: fadeUp 1s .3s var(--out) forwards;
}
.polaroid:hover { transform: rotate(0deg) scale(1.02); }
.polaroid-photo {
  width: 100%; aspect-ratio: 4/5;
  background: linear-gradient(160deg, #e8e6e0, #d4d0c8);
  border-radius: 1px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.polaroid-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.polaroid-placeholder { font-size: .72rem; color: #999; font-family: var(--font-hand); text-align: center; padding: 1rem; }
.polaroid-caption {
  font-family: var(--font-hand); font-size: 1.05rem; color: var(--ink2);
  text-align: center; padding: .6rem .4rem .15rem; letter-spacing: .01em;
}
.sticky {
  position: absolute; top: -22px; right: -14px;
  background: #fef08a; padding: .65rem .85rem;
  font-family: var(--font-hand); font-size: .88rem; color: #7a6800;
  transform: rotate(-3.5deg);
  box-shadow: 2px 3px 10px rgba(0,0,0,0.1); line-height: 1.3; z-index: 2;
}
.loc-tag {
  position: absolute; bottom: -14px; left: -10px;
  background: var(--teal); color: #fff;
  font-size: .7rem; font-weight: 600; padding: .36rem .8rem;
  border-radius: 4px; box-shadow: 2px 3px 10px rgba(0,0,0,0.15);
  display: flex; align-items: center; gap: .35rem;
}

@keyframes heroWaveChar {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  35% { transform: translateY(-0.12em) rotate(2.5deg); }
  65% { transform: translateY(0.04em) rotate(-1.5deg); }
}

/* â”€â”€ SECTION 2: ABOUT (light) â”€â”€ */
#about {
  padding: 6.7rem 7vw 6.4rem;
  background: transparent;
  position: relative; z-index: 1;
  isolation: isolate;
}
#about::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 248, 238, 0.78) 0%, rgba(255, 248, 238, 0) 26%),
    radial-gradient(circle at 88% 12%, rgba(242, 227, 205, 0.26) 0%, rgba(242, 227, 205, 0) 22%),
    linear-gradient(180deg, rgba(250, 246, 239, 0) 54%, rgba(227, 220, 207, 0.16) 82%, rgba(55, 62, 76, 0.07) 100%);
  pointer-events: none;
  z-index: -2;
}
#about::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 15.5rem;
  background:
    radial-gradient(ellipse at 50% 112%, rgba(42, 51, 68, 0.14) 0%, rgba(42, 51, 68, 0) 56%),
    linear-gradient(180deg, rgba(250, 246, 239, 0) 0%, rgba(241, 234, 224, 0.22) 28%, rgba(104, 111, 128, 0.11) 66%, rgba(25, 31, 44, 0.22) 100%);
  pointer-events: none;
  z-index: -1;
}
.about-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 1.75rem;
  margin-bottom: 2.9rem;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}
.about-top .sec-label {
  margin-bottom: 0;
}
.about-switch {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: .4rem;
  padding: .42rem;
  border-radius: 20px;
  background: rgba(255, 251, 245, 0.76);
  border: 1px solid rgba(28, 34, 44, 0.08);
  box-shadow: 0 18px 34px rgba(16, 24, 40, 0.06), inset 0 1px 0 rgba(255,255,255,0.58);
  backdrop-filter: blur(13px);
}
.about-switch-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink2);
  padding: .78rem 1.12rem;
  border-radius: 14px;
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background .32s var(--ease), color .32s var(--ease), transform .32s var(--ease);
}
.about-switch-btn.active {
  background: rgba(255,255,255,0.94);
  color: var(--ink);
  box-shadow: 0 10px 22px rgba(16,24,40,0.08);
}
.about-switch-btn:hover {
  color: var(--ink);
  transform: translateY(-1px);
}
.about-view {
  overflow: visible;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  filter: blur(8px);
  transition:
    opacity .48s var(--out),
    transform .48s var(--out),
    filter .48s var(--out),
    visibility 0s linear .48s;
}
.about-view.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  filter: blur(0);
  transition:
    opacity .58s var(--out),
    transform .58s var(--out),
    filter .58s var(--out),
    visibility 0s linear 0s;
}
.about-view[data-about-panel="story"] {
  position: relative;
}

.about-tldr-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
  max-width: 1080px;
  margin: 0 auto;
}
.about-timeline {
  position: relative;
  max-width: 1040px;
  padding-left: 2.45rem;
  margin: 0 auto;
}
.about-timeline::before {
  content: '';
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(13,148,136,0.75), rgba(37,99,235,0.5));
  border-radius: 2px;
}
.about-step {
  position: relative;
  margin-bottom: 2.45rem;
}
.about-step:last-child {
  margin-bottom: 0;
}
.about-step::before {
  content: '';
  position: absolute;
  left: -2.2rem;
  top: 1rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(13,148,136,0.12);
}
.about-step-year {
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink3);
  margin-bottom: .65rem;
}
.about-step-card {
  background: rgba(255,255,255,0.68);
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 20px;
  padding: 1.28rem 1.38rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 36px rgba(16,24,40,0.05);
}
.about-step-title {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: .42rem;
}
.about-step-card p {
  font-size: .95rem;
  line-height: 1.8;
  color: var(--ink2);
}
.sec-label {
  font-size: .64rem; font-weight: 700; letter-spacing: .24em;
  text-transform: uppercase; color: var(--ink3); margin-bottom: 2.35rem;
  display: flex; align-items: center; gap: .85rem;
}
.sec-label::after { content: ''; flex: 1; height: 1px; background: var(--border2); max-width: 60px; }
.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 318px;
  gap: clamp(2rem, 3vw, 3rem);
  align-items: start;
  max-width: 1080px;
  margin: 0 auto;
}
.about-layout > * {
  min-width: 0;
}
.about-layout > :last-child {
  width: 100%;
  max-width: 318px;
  justify-self: end;
}
.about-layout > :first-child {
  padding-top: .3rem;
}
@media (max-width: 1080px) {
.about-top {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .about-switch {
    justify-self: start;
  }
  .about-layout {
    grid-template-columns: 1fr;
    gap: 2.75rem;
  }
  .about-layout > :last-child {
    max-width: 100%;
    justify-self: stretch;
  }
}
@media (max-width: 860px) {
  .about-layout {
    gap: 2.45rem;
  }
}
@media (max-width: 980px) { .about-tldr-grid { grid-template-columns: 1fr 1fr; gap: .95rem; } }
.about-hed {
  font-family: var(--font-serif); font-size: clamp(2rem, 4.2vw, 3.4rem);
  font-weight: 400; line-height: 1.05; color: var(--ink); margin-bottom: 1.65rem; letter-spacing: -0.032em;
}
.about-hed em { font-family: var(--font-accent); font-style: italic; color: #5e5549; }
.about-scan-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .72rem;
  max-width: 900px;
  margin-bottom: 1.95rem;
}
.about-scan-item {
  padding: .92rem 1rem;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,254,250,0.82), rgba(248,241,231,0.68));
  border: 1px solid rgba(19, 26, 38, 0.06);
  box-shadow: 0 10px 20px rgba(15,23,42,0.03);
}
.about-scan-label {
  display: block;
  margin-bottom: .36rem;
  font-family: var(--font-ui);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink3);
}
.about-scan-item strong {
  display: block;
  font-size: .93rem;
  line-height: var(--lh-meta);
  color: var(--ink);
  font-weight: 600;
}
.about-body { font-size: 1rem; line-height: 1.92; color: color-mix(in srgb, var(--ink2) 94%, #675f54 6%); max-width: 61ch; letter-spacing: -0.004em; }
.about-body p { margin-bottom: 1.5rem; }
.about-body p:last-child { margin-bottom: 0; }
.about-body strong { color: var(--ink); font-weight: 600; }
.about-cards {
  display: flex;
  flex-direction: column;
  gap: .68rem;
  width: 100%;
  padding-top: .5rem;
}
.acard {
  background: linear-gradient(180deg, rgba(255,254,251,0.84), rgba(248,242,235,0.74)); border: 1px solid rgba(15,23,42,0.068); border-radius: 18px;
  padding: 1rem 1.08rem; transition: transform .36s var(--ease), box-shadow .36s var(--ease), border-color .32s var(--ease), background .32s var(--ease);
  box-shadow: 0 10px 22px rgba(15,23,42,0.032);
}
.acard:hover { border-color: rgba(15,23,42,0.09); box-shadow: 0 16px 28px rgba(15,23,42,0.048); transform: translateY(-2px); }
.acard-label { font-family: var(--font-ui); font-size: .62rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink3); margin-bottom: .38rem; }
.acard-val { font-size: .95rem; font-weight: 600; color: var(--ink); line-height: 1.42; }
.acard-sub { font-size: .78rem; color: var(--ink3); margin-top: .34rem; line-height: 1.58; }

/* Stats strip */
.stats-strip {
  border-top: 1px solid rgba(28, 34, 44, 0.08);
  border-bottom: 1px solid rgba(28, 34, 44, 0.08);
  background:
    linear-gradient(180deg, rgba(250,246,239,0.58), rgba(232,226,217,0.42)),
    radial-gradient(circle at 50% 0%, rgba(210, 186, 143, 0.07), rgba(210, 186, 143, 0) 40%);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.32), 0 10px 24px rgba(15,23,42,0.03);
  border-radius: 36px;
  overflow: hidden;
  margin: 0 1.5rem;
  position: relative;
}
.about-view[data-about-panel="story"] .about-cards {
  margin-top: 1.9rem;
}
.stats-strip {
  margin-top: 5rem !important;
}
.stats-strip::after {
  content: '';
  position: absolute;
  inset: auto 0 -1px;
  height: 7rem;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(42, 52, 68, 0.1) 0%, rgba(42, 52, 68, 0) 50%),
    linear-gradient(180deg, rgba(246, 240, 231, 0) 0%, rgba(49, 56, 72, 0.12) 100%);
  pointer-events: none;
}

#about + #lab {
  position: relative;
}
.stats-inner { max-width: 980px; margin: 0 auto; padding: 2.9rem 6vw; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1.1rem; align-items: stretch; }
@media (max-width: 680px) { .stats-inner { grid-template-columns: repeat(2,1fr); padding: 2.3rem 5vw; gap: .9rem; } }
.stat-box {
  text-align: center;
  padding: 1.25rem .95rem;
  border-radius: 24px;
  background: rgba(255,253,249,0.24);
  border: 1px solid rgba(255,255,255,0.32);
  transition: transform .36s var(--out), background-color .32s var(--ease), box-shadow .32s var(--ease);
}
.stat-box.is-live {
  background: rgba(255,255,255,0.3);
  box-shadow: 0 10px 18px rgba(20, 32, 38, 0.04);
  transform: translateY(-2px);
}
.snum {
  font-family: var(--font-serif); font-size: 2.45rem; font-weight: 300;
  color: var(--ink); line-height: 1; margin-bottom: .32rem;
  display: block; transition: transform .24s var(--spring), opacity .22s var(--ease);
}
.stat-box:hover .snum,
.stat-box.is-live .snum { transform: scale(1.05); }
.slabel { font-size: .69rem; font-weight: 500; color: var(--ink3); letter-spacing: .08em; text-transform: uppercase; }

/* â”€â”€ DARK SECTIONS (shared) â”€â”€ */
.dark-section {
  position: relative; overflow: hidden;
  background: transparent;
  color: var(--dark-ink);
}
.dark-section .sec-label {
  color: rgba(240,240,248,0.4);
}
.dark-section .sec-label::after { background: rgba(255,255,255,0.08); }

/* Stars CSS (generated coords injected by JS) */
.stars-layer {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.stars-layer::before,
.stars-layer::after {
  content: ''; position: absolute; inset: 0;
  border-radius: 50%; width: 1px; height: 1px;
  /* box-shadow coords injected via JS */
  opacity: calc(0.12 + (var(--global-dark-opacity, 0) * 0.88));
  animation: starPulseA var(--star-dur-a, 7.8s) ease-in-out infinite alternate;
  animation-delay: var(--star-delay-a, 0s);
}
.stars-layer::after {
  animation: starPulseB var(--star-dur-b, 10.6s) ease-in-out infinite alternate;
  animation-delay: var(--star-delay-b, 0s);
}
@keyframes starPulseA {
  0% { opacity: calc(0.11 + (var(--global-dark-opacity, 0) * 0.58)); transform: scale(1); }
  50% { opacity: calc(0.14 + (var(--global-dark-opacity, 0) * 0.68)); transform: scale(1.01); }
  100% { opacity: calc(0.12 + (var(--global-dark-opacity, 0) * 0.61)); transform: scale(1); }
}
@keyframes starPulseB {
  0% { opacity: calc(0.08 + (var(--global-dark-opacity, 0) * 0.48)); transform: scale(1); }
  45% { opacity: calc(0.11 + (var(--global-dark-opacity, 0) * 0.58)); transform: scale(1.015); }
  100% { opacity: calc(0.09 + (var(--global-dark-opacity, 0) * 0.52)); transform: scale(1); }
}

/* Shooting stars */
.shooting-star {
  position: absolute;
  width: var(--trail, 150px); height: var(--thickness, 1.5px);
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.96), rgba(255,255,255,0));
  border-radius: 1px;
  opacity: 0;
  animation: shoot var(--dur, 4s) var(--delay, 0s) infinite;
  transform-origin: left center;
  filter: drop-shadow(0 0 8px rgba(255,255,255,var(--glow, 0.42)));
}
@keyframes shoot {
  0%   { transform: translate(var(--sx,0), var(--sy,0)) rotate(var(--angle, 28deg)) scaleX(0); opacity: 0; }
  6%   { opacity: calc(0.12 + (var(--global-dark-opacity, 0) * var(--shine, 0.72))); transform: translate(var(--sx,0), var(--sy,0)) rotate(var(--angle, 28deg)) scaleX(0.9); }
  14%  { opacity: calc(0.18 + (var(--global-dark-opacity, 0) * var(--shine, 0.72))); transform: translate(var(--sx,0), var(--sy,0)) rotate(var(--angle, 28deg)) scaleX(1); }
  72%  { opacity: calc(0.08 + (var(--global-dark-opacity, 0) * 0.42)); }
  100% { transform: translate(calc(var(--sx,0) + var(--dx, 720px)), calc(var(--sy,0) + var(--dy, 420px))) rotate(var(--angle, 28deg)) scaleX(1); opacity: 0; }
}

/* â”€â”€ SECTION 3: NIGHT BEGINS â”€â”€ */
#night-begins {
  min-height: 70vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 8rem 7vw;
}
.night-label {
  font-size: .68rem; font-weight: 500; letter-spacing: .24em;
  text-transform: uppercase; color: rgba(240,240,248,0.35); margin-bottom: 2.5rem;
  display: flex; align-items: center; gap: .8rem;
}
.night-label::before, .night-label::after { content: ''; flex: 1; max-width: 40px; height: 1px; background: rgba(255,255,255,0.12); }
.night-hed {
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 320; color: var(--dark-ink); line-height: 1.12;
  margin-bottom: 1.55rem;
}
.night-body {
  font-size: 1rem; line-height: 1.88; color: var(--dark-ink2);
  max-width: 540px; margin: 0 auto;
}

/* â”€â”€ SECTION 4: SYSTEMS / DATABASE â”€â”€ */
#systems {
  position: relative;
  padding: 9.8rem 7vw 6.4rem;
  margin-top: -4rem;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(210, 186, 143, 0.06) 0%, transparent 22%),
    radial-gradient(ellipse at 18% 22%, rgba(143, 201, 190, 0.05) 0%, transparent 24%),
    radial-gradient(ellipse at 82% 18%, rgba(90, 108, 142, 0.08) 0%, transparent 22%),
    linear-gradient(180deg, rgba(10, 15, 22, 0.88) 0%, #0d1320 16%, #0a1018 44%, #080d15 100%);
}
#systems::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 10.5rem;
  background:
    linear-gradient(180deg, rgba(248, 239, 226, 0.04) 0%, rgba(48, 57, 74, 0.11) 36%, rgba(8, 13, 22, 0) 100%),
    radial-gradient(ellipse at 50% 0%, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0) 32%);
  pointer-events: none;
  z-index: 0;
}
.systems-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 5rem; align-items: start; max-width: 1200px; }
@media (max-width: 900px) { .systems-grid { grid-template-columns: 1fr; gap: 3.5rem; } }
.systems-hed {
  font-family: var(--font-serif); font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400; line-height: 1.08; color: var(--dark-ink); margin-bottom: 1.7rem; letter-spacing: -0.026em;
}
.systems-hed em { font-family: var(--font-accent); font-style: italic; color: var(--dark-ink2); }
.systems-scan-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .8rem;
  margin-bottom: 1.95rem;
}
.systems-scan-item {
  padding: .96rem 1rem;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03), 0 10px 20px rgba(0,0,0,0.08);
}
.systems-scan-label {
  display: block;
  margin-bottom: .38rem;
  font-family: var(--font-ui);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(210, 186, 143, 0.9);
}
.systems-scan-item strong {
  display: block;
  font-size: .94rem;
  line-height: var(--lh-meta);
  color: var(--dark-ink);
  font-weight: 600;
}
.systems-body { font-size: 1rem; line-height: var(--lh-body); color: var(--dark-ink2); letter-spacing: -0.01em; }
.systems-body p { margin-bottom: 1.4rem; }
.systems-body strong { color: var(--dark-ink); font-weight: 600; }
.sys-cards { display: flex; flex-direction: column; gap: .78rem; }
.scard {
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 18px; padding: 1.25rem 1.35rem;
  transition: transform .36s var(--ease), box-shadow .36s var(--ease), border-color .32s var(--ease), background .32s var(--ease); position: relative; overflow: hidden;
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}
.scard::after {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px; background: linear-gradient(to bottom, var(--seq-metal), var(--seq-mineral));
  transform: scaleY(0); transition: transform .3s var(--ease); transform-origin: bottom;
}
.scard:hover { border-color: rgba(210, 186, 143, 0.22); transform: translateX(3px); box-shadow: 0 14px 28px rgba(0,0,0,0.18); }
.scard:hover::after { transform: scaleY(1); }
.scard-label { font-family: var(--font-ui); font-size: .62rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(210, 186, 143, 0.88); margin-bottom: .38rem; }
.scard-val { font-size: .9rem; font-weight: 500; color: var(--dark-ink); line-height: var(--lh-meta); }
.scard-sub { font-size: .75rem; color: var(--dark-ink3); margin-top: .12rem; line-height: var(--lh-meta); }
.certification-showcase {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.certification-intro {
  max-width: 32rem;
}
.certification-eyebrow {
  display: inline-block;
  margin-bottom: .4rem;
  font-family: var(--font-ui);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(210, 186, 143, 0.9);
}
.certification-intro p {
  font-size: .84rem;
  line-height: 1.7;
  color: rgba(221, 228, 240, 0.7);
}
.certification-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem;
}
.cert-logo-card {
  appearance: none;
  width: 100%;
  text-align: left;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.025)),
    radial-gradient(circle at top left, rgba(210, 186, 143, 0.08), transparent 48%);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .9rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 30px rgba(0,0,0,0.16);
  transition: transform .34s var(--ease), border-color .34s var(--ease), box-shadow .34s var(--ease), background .34s var(--ease);
}
.cert-logo-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(210, 186, 143, 0.96), rgba(143, 201, 190, 0.82));
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .32s var(--ease);
}
.cert-logo-card:hover,
.cert-logo-card:focus-visible,
.cert-logo-card.is-active {
  transform: translateY(-3px);
  border-color: rgba(210, 186, 143, 0.28);
  box-shadow: 0 22px 44px rgba(0,0,0,0.2);
}
.cert-logo-card:hover::before,
.cert-logo-card:focus-visible::before,
.cert-logo-card.is-active::before {
  transform: scaleY(1);
}
.cert-logo-card:focus-visible {
  outline: 2px solid rgba(143, 201, 190, 0.44);
  outline-offset: 2px;
}
.cert-logo-shell {
  min-height: 5.5rem;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(243, 245, 248, 0.92)),
    radial-gradient(circle at top left, rgba(210, 186, 143, 0.12), transparent 40%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .9rem 1rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.78), 0 8px 18px rgba(8, 12, 20, 0.1);
}
.cert-logo-image {
  width: 100%;
  max-width: 10rem;
  max-height: 2.8rem;
  object-fit: contain;
  display: block;
}
.cert-logo-image--oracle {
  max-width: 9.2rem;
}
.cert-logo-image--azure {
  max-width: 8.8rem;
}
.cert-logo-image--mongodb {
  max-width: 8rem;
}
.cert-logo-image--pingcap {
  max-width: 7.2rem;
}
.cert-logo-meta {
  display: flex;
  flex-direction: column;
  gap: .16rem;
}
.cert-logo-meta strong {
  font-size: .9rem;
  font-weight: 560;
  color: rgba(243, 246, 252, 0.95);
}
.cert-logo-meta span {
  font-size: .72rem;
  line-height: 1.55;
  color: rgba(205, 214, 228, 0.62);
}
.cert-inline-preview {
  display: none;
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}
.cert-inline-preview img {
  display: block;
  width: 100%;
  height: auto;
}
.cert-preview {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 14000;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-999px, -999px, 0);
  transition: opacity .2s var(--ease);
}
.cert-preview.is-visible {
  opacity: 1;
}
.cert-preview-card {
  width: min(30rem, 58vw);
  border-radius: 22px;
  overflow: hidden;
  padding: .6rem;
  background: rgba(11, 17, 26, 0.92);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 26px 70px rgba(0,0,0,0.34);
  backdrop-filter: blur(14px);
}
.cert-preview-card img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(72vh, 36rem);
  object-fit: contain;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(245,247,250,0.96));
}
@media (max-width: 900px) {
  .certification-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 680px) {
  .cert-logo-shell {
    min-height: 5rem;
    padding: .82rem .92rem;
  }
  .cert-logo-meta strong {
    font-size: .86rem;
  }
  .cert-preview {
    display: none;
  }
}
@media (hover: none), (pointer: coarse) {
  .cert-preview {
    display: none;
  }
  .cert-logo-card.is-active .cert-inline-preview {
    display: block;
    margin-top: .12rem;
  }
}

/* Work cards inside systems */
.work-list { display: flex; flex-direction: column; gap: 1rem; margin-top: 0; }
.wcard {
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.028));
  border: 1px solid rgba(255,255,255,0.085);
  border-radius: 22px; padding: 2rem 2.2rem;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .34s var(--ease), background .34s var(--ease); position: relative; overflow: hidden;
  box-shadow: 0 14px 30px rgba(0,0,0,0.13);
}
.wcard::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, rgba(210, 186, 143, 0.92), rgba(143, 201, 190, 0.85));
  transform: scaleX(0); transition: transform .4s var(--ease); transform-origin: left;
}
.wcard:hover { border-color: rgba(210, 186, 143, 0.18); transform: translateY(-3px); box-shadow: 0 18px 38px rgba(0,0,0,0.22); }
.wcard:hover::before { transform: scaleX(1); }
.wcard-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 1rem; gap: 1rem; }
.wcard-num { font-family: var(--font-ui); font-size: .65rem; font-weight: 700; color: var(--dark-ink3); letter-spacing: .1em; margin-bottom: .35rem; }
.wcard-title { font-family: var(--font-serif); font-size: 1.22rem; font-weight: 400; color: var(--dark-ink); line-height: 1.12; letter-spacing: -0.02em; }
.wstatus { font-size: .64rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; padding: .25rem .7rem; border-radius: 100px; flex-shrink: 0; }
.ws-live { background: rgba(143, 201, 190, 0.12); color: #9fdccc; border: 1px solid rgba(143, 201, 190, 0.22); }
.ws-build { background: rgba(210, 186, 143, 0.12); color: #e1c79c; border: 1px solid rgba(210, 186, 143, 0.22); }
.ws-scope { background: rgba(196, 207, 226, 0.10); color: #d9e2f2; border: 1px solid rgba(196, 207, 226, 0.18); }
.wcard-desc { font-size: .9rem; line-height: var(--lh-body); color: var(--dark-ink2); margin-bottom: 1.2rem; letter-spacing: -0.008em; }
.wtags { display: flex; flex-wrap: wrap; gap: .38rem; }
.wtag { font-size: .68rem; font-weight: 500; color: rgba(236, 240, 246, 0.72); background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,0.08); padding: .2rem .6rem; border-radius: 100px; }

/* â”€â”€ TIMELINE (work history) â”€â”€ */
.timeline {
  position: relative;
  padding-left: 2.5rem;
}
.timeline::before {
  content: '';
  position: absolute; left: 0; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--seq-metal), var(--seq-mineral));
  border-radius: 2px;
}
.tnode {
  position: relative;
  margin-bottom: 2.5rem;
}
.tnode:last-child { margin-bottom: 0; }
.tnode::before {
  content: '';
  position: absolute; left: -2.5rem; top: 1.4rem;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--seq-metal);
  box-shadow: 0 0 0 3px rgba(210, 186, 143, 0.18);
  transform: translateX(-4px);
  transition: box-shadow .3s var(--ease), transform .3s var(--ease), background .3s;
  z-index: 1;
}
.tnode:hover::before {
  background: #e0c79d;
  box-shadow: 0 0 0 8px rgba(210, 186, 143, 0.12), 0 0 16px rgba(143, 201, 190, 0.18);
  transform: translateX(-4px) scale(1.3);
}
.tnode-year {
  font-size: .65rem; font-weight: 600;
  color: var(--dark-ink3);
  letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: .6rem;
}
/* Timeline cards: remove left-border from wcard since timeline line replaces it */
.timeline .wcard::before { display: none; }
.timeline .wcard { border-left-color: transparent; }

/* â”€â”€ SECTION 5: ZOOM OUT â”€â”€ */
#zoom-out {
  --zoom-dawn: 0;
  min-height: 78vh; display: flex; flex-direction: column;
  align-items: center; justify-content: flex-start;
  text-align: center; padding: 7.6rem 7vw 6.4rem;
  margin-top: -2.6rem;
  position: relative;
  overflow: hidden;
  z-index: 3;
  background:
    radial-gradient(ellipse at 50% -6%, rgba(210, 186, 143, 0.025) 0%, transparent 20%),
    linear-gradient(
      180deg,
      #060b13 0%,
      #050913 28%,
      color-mix(in srgb, #04070f calc(100% - (var(--zoom-dawn, 0) * 10%)), #1b2230 calc(var(--zoom-dawn, 0) * 10%)) 68%,
      color-mix(in srgb, #03060d calc(100% - (var(--zoom-dawn, 0) * 18%)), #4a5563 calc(var(--zoom-dawn, 0) * 18%)) 100%
    );
}
#zoom-out::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 16%, rgba(176, 208, 241, 0.04) 0%, rgba(176, 208, 241, 0) 24%),
    linear-gradient(180deg, rgba(255,255,255,0.01) 0%, rgba(255,255,255,0) 16%);
  opacity: calc(0.52 + (var(--zoom-dawn, 0) * 0.12));
  pointer-events: none;
  z-index: 0;
}
#zoom-out::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 19rem;
  background:
    radial-gradient(ellipse at 50% 4%, rgba(192, 211, 232, calc(0.02 + (var(--zoom-dawn, 0) * 0.04))) 0%, rgba(192, 211, 232, 0) 40%),
    linear-gradient(180deg, rgba(3, 6, 12, 0) 0%, rgba(5, 9, 16, calc(0.82 - (var(--zoom-dawn, 0) * 0.12))) 18%, rgba(12, 17, 26, calc(0.66 - (var(--zoom-dawn, 0) * 0.1))) 42%, rgba(38, 44, 56, calc(0.18 + (var(--zoom-dawn, 0) * 0.08))) 72%, rgba(210, 210, 205, calc(var(--zoom-dawn, 0) * 0.16)) 100%);
  opacity: calc(0.72 + (var(--zoom-dawn, 0) * 0.12));
  pointer-events: none;
  z-index: 2;
}
.zoom-hed {
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(3rem, 9vw, 7.5rem);
  font-weight: 320; color: var(--dark-ink);
  line-height: .98; margin-bottom: 2.35rem;
  letter-spacing: -.028em;
}
.zoom-body {
  font-size: clamp(.95rem, 1.4vw, 1.12rem); line-height: 1.92;
  color: var(--dark-ink2); max-width: 560px; margin: 0 auto;
}
.zoom-body strong { color: rgba(240,240,248,0.88); font-weight: 500; }

/* â”€â”€ SECTION 6: BRING IT DOWN (light + mountain) â”€â”€ */
#bring-down {
  --mountain-light: 0;
  --water-depth: 0;
  position: relative; overflow: hidden;
  min-height: 80vh; background: transparent;
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-start;
  text-align: center; padding: 6.8rem 6vw 336px;
  margin-top: -2rem;
  z-index: 1;
  background:
    radial-gradient(ellipse at 50% -8%, rgba(192, 210, 232, calc(0.02 + (var(--mountain-light, 0) * 0.08))) 0%, rgba(192, 210, 232, 0) 28%),
    linear-gradient(180deg, rgba(245, 244, 241, calc(var(--mountain-light, 0) * 0.04)) 0%, rgba(231, 235, 238, calc(0.02 + (var(--mountain-light, 0) * 0.12))) 18%, rgba(239, 238, 234, calc(0.12 + (var(--mountain-light, 0) * 0.26))) 46%, rgba(247, 244, 239, calc(0.86 + (var(--mountain-light, 0) * 0.12))) 100%);
}
#bring-down::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 15rem;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(186, 210, 236, calc(0.03 + (var(--mountain-light, 0) * 0.12))) 0%, rgba(186, 210, 236, 0) 52%),
    linear-gradient(180deg, rgba(6, 10, 18, calc(0.34 - (var(--mountain-light, 0) * 0.26))) 0%, rgba(21, 29, 41, calc(0.18 - (var(--mountain-light, 0) * 0.14))) 20%, rgba(244, 241, 235, calc(var(--mountain-light, 0) * 0.3)) 62%, rgba(246, 242, 236, 0) 100%);
  pointer-events: none;
  z-index: 1;
}
#bring-down::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 188px;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(120, 167, 225, calc(0.015 + (var(--water-depth, 0) * 0.04))) 0%, rgba(120, 167, 225, 0) 42%),
    linear-gradient(180deg, rgba(248,246,239,0) 0%, rgba(181,210,240,calc(0.01 + (var(--water-depth, 0) * 0.015))) 34%, rgba(79,123,184,calc(0.015 + (var(--water-depth, 0) * 0.03))) 58%, rgba(16,52,99,calc(0.03 + (var(--water-depth, 0) * 0.06))) 82%, rgba(9,33,64,calc(0.08 + (var(--water-depth, 0) * 0.1))) 100%);
  z-index: 2;
  pointer-events: none;
}
.bring-hed {
  position: relative; z-index: 3;
  font-family: var(--font-main); font-size: clamp(2.4rem, 6.5vw, 5.5rem);
  font-weight: 620; color: var(--ink); line-height: 1.02; letter-spacing: -.045em;
  margin-bottom: 1.65rem;
}
.bring-sub {
  position: relative; z-index: 3;
  font-family: var(--font-hand); font-size: clamp(1.8rem, 4vw, 3.2rem);
  color: var(--teal); margin-bottom: 2.6rem;
}
.bring-body {
  position: relative; z-index: 3;
  font-size: 1rem; color: var(--ink2); max-width: 460px; line-height: 1.82; margin-bottom: 5rem;
}
/* ── MOUNTAIN FADE — premium soft dissolution ── */
.mountain-wrap {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.mountain-wrap img {
  width: 100%;
  display: block;
  transform: translateY(calc((1 - var(--mountain-light, 0)) * 28px - (var(--water-depth, 0) * 10px))) scale(calc(1.025 - (var(--water-depth, 0) * 0.01)));
  transform-origin: center bottom;
  -webkit-mask-image: linear-gradient(
    to bottom,
    black 0%,
    black 48%,
    rgba(0,0,0,0.9) 62%,
    rgba(0,0,0,0.54) 78%,
    rgba(0,0,0,0.16) 91%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    black 0%,
    black 48%,
    rgba(0,0,0,0.9) 62%,
    rgba(0,0,0,0.54) 78%,
    rgba(0,0,0,0.16) 91%,
    transparent 100%
  );
}

/* ── WATER BRIDGE — now just a color-transition zone ── */
.water-bridge {
  position: absolute;
  left: 0; right: 0;
  bottom: -2px;
  height: 228px;
  z-index: 3;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 8%, rgba(177, 214, 241, calc(0.015 + (var(--water-depth, 0) * 0.04))), transparent 40%),
    radial-gradient(ellipse at 50% 94%, rgba(18, 49, 95, calc(0.05 + (var(--water-depth, 0) * 0.16))) 0%, rgba(18, 49, 95, 0) 50%),
    linear-gradient(180deg, rgba(240, 241, 239, 0) 0%, rgba(168, 187, 207, calc(0.012 + (var(--water-depth, 0) * 0.018))) 18%, rgba(70, 101, 140, calc(0.03 + (var(--water-depth, 0) * 0.05))) 42%, rgba(13, 33, 60, calc(0.1 + (var(--water-depth, 0) * 0.1))) 72%, rgba(6, 15, 30, calc(0.22 + (var(--water-depth, 0) * 0.14))) 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.1) 12%, rgba(0, 0, 0, 0.38) 42%, rgba(0,0,0,0.74) 72%, black 100%);
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.1) 12%, rgba(0, 0, 0, 0.38) 42%, rgba(0,0,0,0.74) 72%, black 100%);
  opacity: calc(0.54 + (var(--water-depth, 0) * 0.22));
}

/* ── WATER SHIMMER LINE — the only wave you need ── */
.water-bridge::before {
  content: none;
}

/* ── SECONDARY SHIMMER — subtle, lower ── */
.water-bridge::after {
  content: none;
}

@keyframes shimmerLine {
  0%, 100% {
    opacity: 0.4;
    transform: scaleX(0.88) translateX(-1%);
  }
  50% {
    opacity: 1;
    transform: scaleX(1.04) translateX(1%);
  }
}

/* ── DEEP SECTION — overlap + ocean background ── */
.deep-section.dark-section {
  --depth-surface: 0;
  position: relative;
  overflow: hidden;
  margin-top: -4rem;
  padding: 14rem 7vw 12.8rem;
  background:
    radial-gradient(ellipse at 50% -4%, rgba(194, 228, 255, 0.08) 0%, transparent 22%),
    radial-gradient(ellipse at 20% 28%, rgba(70, 113, 194, 0.05) 0%, transparent 28%),
    radial-gradient(ellipse at 82% 60%, rgba(44, 86, 166, 0.04) 0%, transparent 22%),
    linear-gradient(
      180deg,
      #10243d 0%,
      #0c1d36 16%,
      #081426 42%,
      #06111d 72%,
      #050b14 100%
    );
  isolation: isolate;
}

/* ── OCEAN TEXTURE OVERLAY on deep section ── */
.deep-section__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  background:
    linear-gradient(180deg, rgba(4, 11, 21, calc(0.08 + (var(--depth-surface, 0) * 0.12))) 0%, rgba(4, 11, 21, calc(0.22 + (var(--depth-surface, 0) * 0.12))) 18%, rgba(4, 11, 21, 0.84) 100%),
    radial-gradient(ellipse at 56% 7%, rgba(220, 240, 255, calc(0.08 + (var(--depth-surface, 0) * 0.08))) 0%, rgba(220, 240, 255, 0) 24%),
    radial-gradient(ellipse at 44% 42%, rgba(47, 88, 160, calc(0.05 + (var(--depth-surface, 0) * 0.04))) 0%, rgba(47, 88, 160, 0) 34%),
    url("./ocean-depth-premium-v2.png") 60% 2% / 126% auto no-repeat;
  opacity: 1;
  mix-blend-mode: normal;
}

/* ── SURFACE ENTRY on deep section top ── */
.deep-section.dark-section::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 10.4rem;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(201, 229, 252, calc(0.05 + (var(--depth-surface, 0) * 0.1))) 0%, rgba(201, 229, 252, 0) 40%),
    linear-gradient(180deg, rgba(160, 209, 245, calc(0.02 + (var(--depth-surface, 0) * 0.04))) 0%, rgba(68, 109, 181, calc(0.03 + (var(--depth-surface, 0) * 0.04))) 20%, rgba(16, 37, 68, calc(0.05 + (var(--depth-surface, 0) * 0.04))) 46%, rgba(6, 14, 24, 0) 100%);
  pointer-events: none;
  z-index: 0;
}

/* ── BRING-DOWN SECTION adjustments ── */
#bring-down {
  position: relative;
  overflow: hidden;
  min-height: 80vh;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 4.4rem 6vw 360px;
}

#bring-down::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 172px;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(31, 74, 132, 0.08) 0%, rgba(31, 74, 132, 0) 44%),
    linear-gradient(180deg, transparent 0%, rgba(9, 22, 46, 0.012) 38%, rgba(9, 22, 46, 0.03) 62%, rgba(9, 22, 46, 0.07) 100%);
  z-index: 2;
  pointer-events: none;
}

/* ── HIDE the bring-sub and bring-body ── */
.bring-sub,
.bring-body {
  display: block;
}

.bring-hed {
  margin-bottom: 1.4rem;
  position: relative;
  z-index: 3;
}

/* ── MOBILE ── */
@media (max-width: 900px) {
  #bring-down { padding-top: 8.4rem; padding-bottom: 320px; margin-top: -5.2rem; }
  .water-bridge { height: 210px; }
  .deep-section { padding: 15rem 6vw 9.8rem; margin-top: -7rem; }
  .deep-section__copy { margin-left: 0; max-width: 40rem; }
}

@media (max-width: 600px) {
  #bring-down { padding-top: 6.6rem; padding-bottom: 278px; margin-top: -4rem; }
  .water-bridge { height: 160px; }
  .deep-section { padding: 13rem 5vw 8.4rem; margin-top: -5rem; }
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  .water-bridge::before,
  .water-bridge::after { animation: none; }
}
.bird-container { position: absolute; inset: 0; pointer-events: none; z-index: 2; overflow: hidden; }
.bird {
  position: absolute;
  width: 56px; height: 78px;
  background: url("bird-cells.svg") 0 50% no-repeat;
  background-size: 560px 78px;
  opacity: .8;
  animation:
    flap 0.9s steps(10, end) infinite,
    flyBird var(--dur, 18s) var(--delay, 0s) linear infinite;
}
@keyframes flap {
  to { background-position-x: -560px; }
}
@keyframes flyBird {
  0%   { transform: translateX(-80px) scale(var(--scale, 1)); opacity: 0; }
  5%   { opacity: .8; }
  95%  { opacity: .8; }
  100% { transform: translateX(110vw) translateY(-30px) scale(var(--scale, 1)); opacity: 0; }
}

/* â”€â”€ SECTION 7: SKILLS â”€â”€ */
/* â”€â”€ SECTION 8: PROJECTS â”€â”€ */
#projects { padding: 6.3rem 7vw 6rem; background: transparent; }
#projects .sec-label { color: rgba(240,240,248,0.4); }
#projects .sec-label::after { background: rgba(255,255,255,0.08); }
.projects-intro { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 2.8rem; max-width: 1200px; gap: 2rem; flex-wrap: wrap; }
.projects-hed { font-family: var(--font-serif); font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 400; color: var(--dark-ink); }
.projects-sub { font-size: .92rem; color: var(--dark-ink2); max-width: 320px; line-height: 1.7; }
.projects-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; max-width: 1200px; margin-bottom: 3rem; }
@media (max-width: 1000px) { .projects-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .projects-grid { grid-template-columns: 1fr 1fr; } }
.pcard {
  background: var(--dark-surface); border: 1px solid var(--dark-border);
  border-radius: 18px; padding: 1.5rem 1.3rem;
  transition: transform .42s var(--ease), box-shadow .42s var(--ease), border-color .36s var(--ease), background .36s var(--ease); position: relative; overflow: hidden;
  display: block; color: inherit;
}
.pcard::before {
  content: ''; position: absolute; inset: 0; opacity: 0;
  transition: opacity .3s; border-radius: inherit;
}
.pcard:hover { transform: translateY(-8px) perspective(600px) rotateX(2deg); }
.pcard:hover::before { opacity: 1; }
.pa { border-color: rgba(124,107,255,.14); }
.pa:hover { border-color: rgba(124,107,255,.4); box-shadow: 0 20px 50px rgba(124,107,255,.1); }
.pa::before { background: radial-gradient(ellipse at 50% 0%, rgba(124,107,255,.08), transparent 70%); }
.pb { border-color: rgba(0,212,170,.12); }
.pb:hover { border-color: rgba(0,212,170,.38); box-shadow: 0 20px 50px rgba(0,212,170,.08); }
.pb::before { background: radial-gradient(ellipse at 50% 0%, rgba(0,212,170,.07), transparent 70%); }
.pc { border-color: rgba(240,192,96,.12); }
.pc:hover { border-color: rgba(240,192,96,.38); box-shadow: 0 20px 50px rgba(240,192,96,.07); }
.pc::before { background: radial-gradient(ellipse at 50% 0%, rgba(240,192,96,.06), transparent 70%); }
.pd { border-color: rgba(255,107,107,.1); }
.pd:hover { border-color: rgba(255,107,107,.32); box-shadow: 0 20px 50px rgba(255,107,107,.07); }
.pd::before { background: radial-gradient(ellipse at 50% 0%, rgba(255,107,107,.05), transparent 70%); }
.pcard-em { font-size: 1.9rem; margin-bottom: .75rem; display: block; }
.pcard-name { font-family: var(--font-main); font-size: .88rem; font-weight: 600; color: var(--dark-ink); letter-spacing: -.015em; margin-bottom: .38rem; line-height: 1.3; }
.pcard-desc { font-size: .75rem; line-height: 1.6; color: var(--dark-ink2); margin-bottom: .8rem; }
.pcard-tag { display: inline-flex; align-items: center; gap: .3rem; font-size: .6rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; padding: .2rem .58rem; border-radius: 100px; }
.tag-soon { background: rgba(255,107,107,.08); color: #ff8080; border: 1px solid rgba(255,107,107,.2); }
.tag-live { background: rgba(0,212,170,.1); color: #00d4aa; border: 1px solid rgba(0,212,170,.22); }
.pcard-tag .td { width: 4px; height: 4px; border-radius: 50%; background: currentColor; animation: blink 1.8s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.2} }

/* Work cards (professional) */
.pro-work-list { max-width: 1200px; display: flex; flex-direction: column; gap: 1rem; }

/* â”€â”€ SECTION 9: BLOG â”€â”€ */
#blog {
  padding: 5.9rem 7vw 6.8rem;
  background: transparent;
  position: relative;
  margin-top: -2rem;
  z-index: 3;
}
#blog::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -3rem;
  height: 4.8rem;
  background:
    linear-gradient(180deg, rgba(248,246,239,0) 0%, rgba(248,246,239,0.12) 30%, rgba(248,246,239,0.42) 72%, rgba(248,246,239,0.66) 100%);
  pointer-events: none;
}
#blog .sec-label { color: var(--ink3); }
#blog .sec-label::after { background: var(--border2); }
.blog-top {
  max-width: 1200px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: end;
  margin-bottom: 2.35rem;
}
.blog-hed {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.04;
  letter-spacing: -.026em;
}
.blog-intro {
  font-size: .96rem;
  line-height: 1.82;
  color: rgba(17,17,17,0.68);
  max-width: 35ch;
  justify-self: end;
  letter-spacing: -0.004em;
}
.blog-controls {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.blog-mode-btn {
  position: relative;
  appearance: none;
  border: 1px solid rgba(138, 118, 96, 0.28);
  background: linear-gradient(180deg, rgba(255,254,251,0.92), rgba(242,235,225,0.96));
  color: var(--ink2);
  border-radius: 999px;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(56,44,34,.08), inset 0 1px 0 rgba(255,255,255,.92);
  cursor: pointer;
  transition: transform .24s var(--ease), box-shadow .24s var(--ease), background .24s var(--ease), color .24s var(--ease), border-color .24s var(--ease);
}
.blog-mode-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(56,44,34,.1), inset 0 1px 0 rgba(255,255,255,.88);
}
.blog-mode-icon {
  position: relative;
  width: 15px;
  height: 19px;
  box-sizing: border-box;
  display: block;
}
.blog-mode-icon::before {
  content: '';
  position: absolute;
  left: 1px;
  top: 0;
  width: 13px;
  height: 13px;
  border-radius: 50% 50% 44% 44%;
  border: 1.6px solid currentColor;
  background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,0));
  box-sizing: border-box;
}
.blog-mode-icon::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 1px;
  width: 7px;
  height: 6px;
  border-radius: 2px 2px 3px 3px;
  background: currentColor;
  transform: translateX(-50%);
  box-shadow: 0 -3px 0 -1px currentColor;
}
.blog-mode-tip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  white-space: nowrap;
  border-radius: 999px;
  padding: .52rem .76rem;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: #f5efe6;
  background: rgba(17,19,23,.94);
  box-shadow: 0 12px 24px rgba(8,10,12,.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s var(--ease), transform .18s var(--ease);
}
.blog-mode-btn:hover .blog-mode-tip,
.blog-mode-btn:focus-visible .blog-mode-tip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
.blog-mode-btn.active {
  background: linear-gradient(180deg, rgba(33,36,41,.96), rgba(18,20,24,.98));
  color: rgba(245,240,232,.92);
  border-color: rgba(110, 118, 132, 0.34);
  box-shadow: 0 16px 30px rgba(8,10,12,.24), inset 0 1px 0 rgba(255,255,255,.06);
}
#blog,
#blog::before,
#blog .sec-label,
#blog .sec-label::after,
#blog .blog-hed,
#blog .blog-intro,
#blog .library-stage,
#blog .folio-shadow,
#blog .folio-pages,
#blog .folio-pages::before,
#blog .folio-pages::after,
#blog .folio-inside,
#blog .folio-inside::before,
#blog .folio-inside-kicker,
#blog .folio-inside-copy,
#blog .folio-inside-list,
#blog .folio-note,
#blog .folio-note-kicker,
#blog .folio-note-title,
#blog .folio-note-copy,
#blog .folio-note-link,
#blog .blog-mode-tip {
  transition:
    background-color .42s cubic-bezier(0.22, 1, 0.36, 1),
    background .42s cubic-bezier(0.22, 1, 0.36, 1),
    color .34s cubic-bezier(0.22, 1, 0.36, 1),
    border-color .34s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow .42s cubic-bezier(0.22, 1, 0.36, 1),
    opacity .34s cubic-bezier(0.22, 1, 0.36, 1),
    transform .42s cubic-bezier(0.22, 1, 0.36, 1);
}

#blog.is-theme-transitioning .library-stage,
#blog.is-theme-transitioning .folio-note,
#blog.is-theme-transitioning .folio-note-link {
  transform: translateY(2px);
}

#blog.is-theme-transitioning .blog-hed,
#blog.is-theme-transitioning .blog-intro {
  opacity: .92;
}
.library-stage {
  max-width: 1200px;
  display: flex;
  align-items: flex-end;
  gap: .95rem;
  padding: 1rem 0 2.2rem;
  perspective: 2200px;
  overflow-x: auto;
  scrollbar-width: none;
}
.library-stage::-webkit-scrollbar { display: none; }
.folio {
  position: relative;
  width: 176px;
  height: 330px;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  flex: 0 0 auto;
  text-align: left;
  transform-style: preserve-3d;
  transition: transform .68s var(--spring), filter .44s var(--ease);
}
.folio:hover { transform: translateY(-10px) rotateY(-6deg); }
.folio.active { transform: translateY(-18px) rotateY(-14deg) translateZ(26px); z-index: 3; }
.folio:not(.active) { filter: saturate(.92) brightness(.98); }
.folio-shadow {
  position: absolute;
  inset: auto 18px -16px 18px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(59,38,22,0.24), rgba(59,38,22,0));
  filter: blur(11px);
  transform: translateZ(-40px);
}
.folio-shell {
  position: absolute;
  inset: 0;
  display: block;
  transform-style: preserve-3d;
}
.folio-cover,
.folio-pages {
  position: absolute;
  inset: 0;
  border-radius: 18px 16px 12px 12px;
}
.folio-cover {
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1.15rem 1rem 1rem 1.1rem;
  color: #f6efe6;
  box-shadow: 0 30px 48px rgba(52,36,26,0.16);
  transform-origin: left center;
  transition: transform .88s cubic-bezier(.22,.74,.16,1), box-shadow .54s var(--ease);
  backface-visibility: hidden;
  overflow: hidden;
}
.folio-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.24), rgba(255,255,255,0) 32%),
    linear-gradient(90deg, rgba(255,255,255,.12) 0, rgba(255,255,255,0) 18%);
  pointer-events: none;
}
.folio-cover::after {
  content: '';
  position: absolute;
  top: .65rem;
  bottom: .65rem;
  left: .48rem;
  width: 9px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.25), rgba(255,255,255,.04));
  opacity: .85;
}
.folio-pages {
  background:
    repeating-linear-gradient(90deg, rgba(233,223,208,.92) 0 2px, rgba(247,241,233,.95) 2px 4px),
    linear-gradient(180deg, #f8f2e7, #efe4d4);
  border: 1px solid rgba(170,150,126,.26);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.62), 0 18px 34px rgba(52,36,26,.08);
  transform: translateX(12px) translateZ(-8px);
  overflow: hidden;
}
.folio-pages::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(184,162,136,.28), rgba(255,255,255,0) 14%, rgba(255,255,255,.46) 52%, rgba(184,162,136,.18) 100%);
}
.folio-pages::after {
  content: '';
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 24px;
  width: 18px;
  background: linear-gradient(90deg, rgba(93,72,55,.14), rgba(255,255,255,.06) 42%, rgba(255,255,255,0));
  filter: blur(1px);
}
.folio-inside {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  padding: 1.2rem 1rem 1rem 1.15rem;
  color: #34281f;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity .3s ease, transform .5s ease;
}
.folio-inside::before {
  content: '';
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 18px;
  width: 1px;
  background: linear-gradient(180deg, rgba(137,108,84,.22), rgba(137,108,84,.08), rgba(137,108,84,.22));
  box-shadow: 6px 0 18px rgba(112,86,61,.08);
}
.folio.active .folio-cover {
  transform: rotateY(-128deg);
  box-shadow: 18px 30px 48px rgba(52,36,26,.12);
}
.folio.active .folio-inside {
  opacity: 1;
  transform: translateX(0);
  transition-delay: .24s;
}
.folio-kicker,
.folio-mark,
.folio-inside-kicker {
  font-size: .64rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.folio-kicker {
  opacity: .78;
  position: absolute;
  top: 1.05rem;
  left: 1.1rem;
  z-index: 1;
}
.folio-center {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: .7rem;
  width: 100%;
  padding: 1.8rem .55rem 0;
}
.folio-name {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  line-height: .94;
  letter-spacing: -.04em;
}
.folio-detail {
  font-size: .72rem;
  line-height: 1.5;
  color: rgba(246,239,230,.82);
  max-width: 14ch;
}
.folio-mark {
  position: absolute;
  right: .95rem;
  bottom: 1.1rem;
  z-index: 1;
  opacity: .62;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.folio-inside-kicker { color: #76604b; }
.folio-inside-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  line-height: 1.04;
  letter-spacing: -.03em;
}
.folio-inside-copy {
  font-size: .72rem;
  line-height: 1.6;
  color: #534336;
}
.folio-inside-list {
  position: relative;
  padding-left: .75rem;
  font-size: .68rem;
  line-height: 1.45;
  color: #43362b;
}
.folio-inside-list::before {
  content: '';
  position: absolute;
  left: 0;
  top: .42rem;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #b58d5f;
}
.folio-database .folio-cover {
  background:
    radial-gradient(circle at 20% 16%, rgba(255,244,232,.14), transparent 32%),
    linear-gradient(180deg, #6d3e31, #321913);
}
.folio-cloud .folio-cover {
  background:
    radial-gradient(circle at 18% 14%, rgba(255,255,255,.14), transparent 32%),
    linear-gradient(180deg, #5b7388, #23303b);
}
.folio-k8s .folio-cover {
  background:
    radial-gradient(circle at 20% 16%, rgba(255,255,255,.12), transparent 32%),
    linear-gradient(180deg, #35514c, #16231f);
}
.folio-trading .folio-cover {
  background:
    radial-gradient(circle at 20% 16%, rgba(255,237,210,.1), transparent 30%),
    linear-gradient(180deg, #3d332d, #171311);
}
.folio-travel .folio-cover {
  background:
    radial-gradient(circle at 20% 16%, rgba(255,244,220,.12), transparent 31%),
    linear-gradient(180deg, #7a6641, #302417);
}
.folio-desk {
  max-width: 1200px;
  margin-top: .4rem;
  display: none;
}
.folio-desk.has-selection {
  display: block;
}
.folio-note {
  background:
    linear-gradient(180deg, rgba(255,255,255,.84), rgba(248,243,236,.96));
  border: 1px solid rgba(171,154,132,.24);
  border-radius: 28px;
  padding: 2rem 1.8rem;
  box-shadow: 0 24px 50px rgba(56,44,34,.08), inset 0 1px 0 rgba(255,255,255,.86);
  animation: folioFade .45s var(--ease);
}
.folio-note-kicker {
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink3);
  margin-bottom: .45rem;
}
.folio-note-title {
  font-family: var(--font-serif);
  font-size: clamp(1.74rem, 2.8vw, 2.5rem);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -.026em;
  margin-bottom: .8rem;
}
.folio-note-copy {
  max-width: 56ch;
  font-size: .94rem;
  line-height: 1.82;
  color: var(--ink2);
  margin-bottom: 1.5rem;
}
.folio-note-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1rem;
}
.folio-note-link {
  padding: 1.1rem 1rem;
  min-height: 132px;
  border-radius: 18px;
  border: 1px solid rgba(171,154,132,.22);
  background: rgba(255,255,255,.56);
  font-family: var(--font-serif);
  font-size: .98rem;
  line-height: 1.42;
  color: var(--ink2);
  transition: transform .36s var(--ease), box-shadow .36s var(--ease), border-color .3s var(--ease);
}
.folio-note-link:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 34px rgba(56,44,34,.075);
  border-color: rgba(0,133,112,.24);
}
#blog.blog-dark {
  color: rgba(241,236,227,.94);
  background:
    radial-gradient(circle at top left, rgba(74,90,122,.18), transparent 28%),
    linear-gradient(180deg, rgba(19,21,25,.96), rgba(9,10,13,.98));
  border-radius: 34px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 28px 60px rgba(8,10,12,.18);
}
#blog.blog-dark::before {
  background: linear-gradient(180deg, rgba(18,20,24,0) 0%, rgba(18,20,24,.1) 24%, rgba(18,20,24,.84) 78%, rgba(18,20,24,.98) 100%);
}
#blog.blog-dark .sec-label {
  color: rgba(190,196,206,.54);
}
#blog.blog-dark .sec-label::after {
  background: rgba(255,255,255,.09);
}
#blog.blog-dark .blog-hed,
#blog.blog-dark .folio-note-title {
  color: #f1ece3;
}
#blog.blog-dark .blog-intro,
#blog.blog-dark .folio-note-copy {
  color: rgba(225,218,207,.76);
}
#blog.blog-dark .library-stage {
  background:
    radial-gradient(circle at top center, rgba(255,255,255,.04), transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  border-radius: 28px;
  padding: 1.15rem .85rem 2rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), inset 0 -1px 0 rgba(255,255,255,.02);
}
#blog.blog-dark .folio-shadow {
  background: radial-gradient(ellipse at center, rgba(0,0,0,.42), rgba(0,0,0,0));
}
#blog.blog-dark .folio-pages {
  background:
    repeating-linear-gradient(90deg, rgba(47,50,55,.92) 0 2px, rgba(68,72,78,.95) 2px 4px),
    linear-gradient(180deg, #2a2d31, #1a1c20);
  border-color: rgba(108,116,126,.18);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), 0 18px 34px rgba(0,0,0,.18);
}
#blog.blog-dark .folio-pages::before {
  background:
    linear-gradient(90deg, rgba(255,255,255,.08), rgba(255,255,255,0) 14%, rgba(255,255,255,.08) 52%, rgba(255,255,255,.04) 100%);
}
#blog.blog-dark .folio-pages::after {
  background: linear-gradient(90deg, rgba(0,0,0,.32), rgba(255,255,255,.04) 42%, rgba(255,255,255,0));
}
#blog.blog-dark .folio-inside {
  color: #ece5da;
}
#blog.blog-dark .folio-inside::before {
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03), rgba(255,255,255,.08));
  box-shadow: 6px 0 18px rgba(0,0,0,.18);
}
#blog.blog-dark .folio-inside-kicker,
#blog.blog-dark .folio-inside-copy,
#blog.blog-dark .folio-inside-list {
  color: rgba(226,218,208,.74);
}
#blog.blog-dark .folio-note {
  background: linear-gradient(180deg, rgba(31,34,39,.96), rgba(17,19,23,.98));
  border-color: rgba(95, 104, 117, 0.22);
  box-shadow: 0 24px 48px rgba(8,10,12,.28), inset 0 1px 0 rgba(255,255,255,.05);
}
#blog.blog-dark .folio-note-kicker {
  color: rgba(189,196,206,.58);
}
#blog.blog-dark .folio-note-link {
  background: rgba(255,255,255,.04);
  border-color: rgba(95,104,117,.2);
  color: rgba(241,236,227,.9);
}
#blog.blog-dark .folio-note-link:hover {
  border-color: rgba(87, 168, 150, .34);
  box-shadow: 0 18px 30px rgba(8,10,12,.24);
}
#blog.blog-dark .blog-mode-tip {
  background: rgba(248,242,233,.94);
  color: #181a1e;
}
#blog.blog-dark .blog-mode-icon::before {
  background: linear-gradient(180deg, rgba(255,232,176,.34), rgba(255,214,102,.12));
  box-shadow: 0 0 16px rgba(255,214,102,.18);
}
@keyframes folioFade {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* â”€â”€ SECTION 10: DASHBOARD / LOGIN â”€â”€ */
#gallery-wall {
  position: relative;
  padding: 7.2rem 7vw 7rem;
  background:
    radial-gradient(circle at top center, rgba(108,132,170,.09), transparent 24%),
    linear-gradient(180deg, rgba(8,9,14,.98), rgba(4,5,8,1));
  overflow: hidden;
}
#gallery-wall::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(255,255,255,.035), transparent 18%),
    radial-gradient(circle at 82% 14%, rgba(108,132,170,.1), transparent 20%),
    linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0));
  pointer-events: none;
}
.gallery-top {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin-bottom: 2.8rem;
}
.gallery-hed {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  font-weight: 400;
  line-height: .99;
  letter-spacing: -.036em;
  color: var(--dark-ink);
  max-width: 10.5ch;
  margin-bottom: 1.08rem;
}
.gallery-sub {
  max-width: 56ch;
  font-size: .98rem;
  line-height: 1.86;
  color: rgba(228,232,240,.66);
}
.gallery-chamber {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  perspective: 2200px;
}
.gallery-backdrop {
  position: absolute;
  inset: 2rem 1rem 0;
  border-radius: 32px;
  background:
    radial-gradient(circle at top, rgba(255,255,255,.035), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  border: 1px solid rgba(255,255,255,.05);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 30px 70px rgba(0,0,0,.34);
  transform: translateZ(-40px);
}
.gallery-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .9fr .95fr;
  grid-auto-rows: 220px;
  gap: 1.15rem;
  padding: 2rem 1rem 1rem;
  transform-style: preserve-3d;
}
.media-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.07);
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.08), transparent 30%),
    linear-gradient(160deg, rgba(21,24,31,.96), rgba(9,10,14,.98));
  box-shadow: 0 30px 60px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.04);
  transform-style: preserve-3d;
  transition: transform .72s var(--spring), box-shadow .44s var(--ease), border-color .34s var(--ease);
}
.media-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255,255,255,.06), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0));
  pointer-events: none;
}
.media-card:hover {
  transform: translateY(-8px) rotateX(1.2deg) rotateY(-2deg) translateZ(12px);
  border-color: rgba(140, 168, 214, .18);
  box-shadow: 0 40px 74px rgba(0,0,0,.3), 0 0 0 1px rgba(255,255,255,.04) inset;
}
.media-card-tall { grid-row: span 2; }
.media-wide { grid-column: span 2; }
.depth-a { transform: translateZ(36px); }
.depth-b { transform: translateZ(18px); }
.depth-c { transform: translateZ(8px); }
.media-glow {
  position: absolute;
  inset: -10% -20% auto;
  height: 65%;
  background: radial-gradient(circle at center, rgba(108,132,170,.18), rgba(108,132,170,0));
  filter: blur(26px);
  opacity: .6;
  pointer-events: none;
}
.media-frame {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.2rem;
  background:
    linear-gradient(180deg, rgba(8,10,14,.06), rgba(8,10,14,.82));
}
.media-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: inline-flex;
  width: fit-content;
  padding: .34rem .62rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.05);
  color: rgba(235,239,245,.74);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.media-meta {
  font-size: .72rem;
  color: rgba(216,223,232,.52);
  letter-spacing: .04em;
  margin-bottom: .45rem;
}
.media-title {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.7vw, 1.42rem);
  line-height: 1.12;
  letter-spacing: -.024em;
  color: rgba(236,239,244,.82);
  font-weight: 400;
  max-width: 12ch;
}
.media-play {
  position: absolute;
  right: 1rem;
  top: 1rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(8,10,14,.42);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.media-play::before {
  content: '';
  position: absolute;
  left: 17px;
  top: 13px;
  border-style: solid;
  border-width: 8px 0 8px 12px;
  border-color: transparent transparent transparent rgba(243,246,250,.88);
}
.media-photo .media-frame {
  background:
    linear-gradient(180deg, rgba(8,10,14,.08), rgba(8,10,14,.86)),
    linear-gradient(135deg, rgba(84,108,78,.55), rgba(19,30,28,.3));
}
.media-video .media-frame {
  background:
    linear-gradient(180deg, rgba(8,10,14,.14), rgba(8,10,14,.88)),
    linear-gradient(135deg, rgba(72,84,118,.58), rgba(22,28,38,.24));
}
@keyframes galleryFloatA {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -8px, 0); }
}
@keyframes galleryFloatB {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -5px, 0); }
}
.depth-a .media-glow { animation: galleryFloatA 8s ease-in-out infinite; }
.depth-b .media-glow { animation: galleryFloatB 10s ease-in-out infinite; }

#dashboard { padding: 3.4rem 7vw 6.6rem; background: transparent; }
#dashboard {
  margin-top: -1.2rem;
  padding-top: 4.2rem;
  background:
    linear-gradient(180deg, rgba(8,9,14,0) 0%, rgba(8,9,14,0.68) 18%, rgba(8,9,14,1) 100%);
}
#dashboard .sec-label { color: rgba(240,240,248,0.4); margin-bottom: 0.18rem; }
#dashboard .sec-label::after { background: rgba(255,255,255,0.08); }
.dash-hed { font-family: var(--font-serif); font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 400; color: var(--dark-ink); margin-top: 0; margin-bottom: 0.9rem; max-width: 1100px; line-height: 1.06; }
.dash-sub { font-size: 1rem; color: var(--dark-ink2); margin-bottom: 3.4rem; line-height: 1.9; max-width: 620px; }

/* Login gate */
#login-gate { max-width: 420px; }
.login-card {
  background: var(--dark-surface); border: 1px solid var(--dark-border2);
  border-radius: 20px; padding: 2.4rem; margin-bottom: 2.5rem;
}
.login-title { font-family: var(--font-main); font-size: 1.1rem; font-weight: 600; color: var(--dark-ink); margin-bottom: .4rem; }
.login-sub { font-size: .82rem; color: var(--dark-ink2); margin-bottom: 1.8rem; line-height: 1.6; }
.login-sub a { color: #7c6bff; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: .72rem; font-weight: 600; color: var(--dark-ink3); letter-spacing: .07em; text-transform: uppercase; margin-bottom: .45rem; }
.field input {
  width: 100%; background: rgba(255,255,255,.04); border: 1px solid var(--dark-border2);
  border-radius: 10px; padding: .75rem 1rem;
  font-family: var(--font-main); font-size: .9rem; color: var(--dark-ink);
  outline: none; transition: border-color .28s var(--ease), box-shadow .28s var(--ease);
}
.field input::placeholder { color: rgba(240,240,248,.22); }
.field input:focus { border-color: #7c6bff; box-shadow: 0 0 0 3px rgba(124,107,255,.12); }
.login-btn {
  width: 100%; font-family: var(--font-main); font-size: .88rem; font-weight: 600;
  color: #fff; background: linear-gradient(135deg, #7c6bff, #00d4aa);
  border: none; border-radius: 10px; padding: .85rem;
  cursor: pointer; transition: opacity .2s, transform .2s var(--ease);
  margin-top: .3rem;
}
.login-btn:hover { opacity: .9; transform: translateY(-1px); }
.login-msg { font-size: .78rem; color: var(--dark-ink3); text-align: center; margin-top: .85rem; }

/* Dashboard UI (shown after login) */
#user-dashboard { display: none; max-width: 1200px; }
.dash-welcome { font-family: var(--font-serif); font-style: italic; font-size: 1.5rem; color: var(--dark-ink2); margin-bottom: 2.5rem; }
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 760px) { .dash-grid { grid-template-columns: 1fr; } }
.dash-widget {
  background: var(--dark-surface); border: 1px solid var(--dark-border2);
  border-radius: 18px; padding: 1.8rem; overflow: hidden;
}
.widget-title { font-size: .65rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--dark-ink3); margin-bottom: 1.2rem; display: flex; align-items: center; gap: .5rem; }
.widget-title span { font-size: 1rem; }

/* Finance widget */
.fin-total { font-family: var(--font-serif); font-size: 2.4rem; font-weight: 300; color: var(--dark-ink); margin-bottom: .25rem; }
.fin-sub { font-size: .78rem; color: var(--dark-ink3); margin-bottom: 1.4rem; }
.fin-form { display: flex; gap: .65rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.fin-input {
  flex: 1; min-width: 100px; background: rgba(255,255,255,.04);
  border: 1px solid var(--dark-border); border-radius: 8px;
  padding: .55rem .8rem; font-family: var(--font-main); font-size: .82rem;
  color: var(--dark-ink); outline: none; transition: border-color .2s;
}
.fin-input:focus { border-color: #7c6bff; }
.fin-input::placeholder { color: rgba(240,240,248,.2); }
.fin-add {
  background: rgba(124,107,255,.15); border: 1px solid rgba(124,107,255,.3);
  color: #a090ff; border-radius: 8px; padding: .55rem 1rem;
  font-size: .8rem; font-weight: 600; cursor: pointer; transition: all .2s;
}
.fin-add:hover { background: rgba(124,107,255,.25); }
.fin-list { display: flex; flex-direction: column; gap: .5rem; max-height: 160px; overflow-y: auto; }
.fin-item { display: flex; justify-content: space-between; align-items: center; padding: .55rem .7rem; background: rgba(255,255,255,.03); border-radius: 8px; font-size: .8rem; }
.fin-item .fi-label { color: var(--dark-ink2); }
.fin-item .fi-amount { color: var(--dark-ink); font-weight: 600; }
.fin-item .fi-amount.expense { color: #ff8080; }
.fin-item .fi-amount.income { color: #00d4aa; }

/* Travel widget */
.travel-empty { font-size: .85rem; color: var(--dark-ink3); font-style: italic; text-align: center; padding: 1.5rem; }
.trip-form { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-bottom: 1.2rem; }
.trip-form input { background: rgba(255,255,255,.04); border: 1px solid var(--dark-border); border-radius: 8px; padding: .52rem .75rem; font-family: var(--font-main); font-size: .8rem; color: var(--dark-ink); outline: none; transition: border-color .2s; }
.trip-form input:focus { border-color: #00d4aa; }
.trip-form input::placeholder { color: rgba(240,240,248,.2); }
.trip-form input[type="date"] { grid-column: span 2; }
.trip-add {
  grid-column: span 2; background: rgba(0,212,170,.1); border: 1px solid rgba(0,212,170,.25);
  color: #00d4aa; border-radius: 8px; padding: .55rem; font-size: .8rem; font-weight: 600;
  cursor: pointer; transition: all .2s;
}
.trip-add:hover { background: rgba(0,212,170,.2); }
.trip-list { display: flex; flex-direction: column; gap: .55rem; max-height: 180px; overflow-y: auto; }
.trip-item { padding: .75rem .9rem; background: rgba(255,255,255,.03); border-radius: 10px; border-left: 2px solid #00d4aa; }
.trip-dest { font-size: .88rem; font-weight: 600; color: var(--dark-ink); margin-bottom: .15rem; }
.trip-date { font-size: .74rem; color: var(--dark-ink3); }

/* Utility links */
.util-links { display: flex; flex-direction: column; gap: .65rem; }
.util-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: .85rem 1rem; background: rgba(255,255,255,.03);
  border: 1px solid var(--dark-border); border-radius: 12px;
  font-size: .85rem; color: var(--dark-ink2); transition: transform .32s var(--ease), background .32s var(--ease), border-color .28s var(--ease), color .28s var(--ease);
}
.util-link:hover { border-color: rgba(124,107,255,.3); color: var(--dark-ink); background: rgba(124,107,255,.05); transform: translateX(3px); }
.util-link-icon,
.widget-icon {
  width: 1rem;
  height: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.util-link-icon svg,
.widget-icon svg {
  display: block;
}
.util-link-arrow { opacity: .4; font-size: .9rem; transition: transform .28s var(--ease); }
.util-link:hover .util-link-arrow { opacity: 1; transform: translateX(3px); }

/* â”€â”€ FOOTER â”€â”€ */
footer {
  background: transparent;
  border-top: 1px solid var(--dark-border);
  padding: 5rem 7vw 3rem;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 3rem; margin-bottom: 4rem; flex-wrap: wrap; }
.footer-hed {
  font-family: var(--font-serif); font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 320; color: var(--dark-ink); line-height: 1.02; letter-spacing: -.026em;
}
.footer-hed em { font-style: italic; color: var(--dark-ink3); }
.footer-links { display: flex; flex-direction: column; gap: .55rem; padding-top: .5rem; }
.footer-link { font-size: .88rem; color: var(--dark-ink2); transition: color .28s var(--ease); display: flex; align-items: center; gap: .5rem; }
.footer-link:hover { color: var(--dark-ink); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 2.5rem; border-top: 1px solid var(--dark-border); flex-wrap: wrap; gap: 1rem; }
.footer-copy { font-size: .74rem; color: var(--dark-ink3); }
.footer-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-nav a { font-size: .74rem; color: var(--dark-ink3); transition: color .28s var(--ease); }
.footer-nav a:hover { color: var(--dark-ink2); }

/* Scroll-flow: subtle content drift to blend neighboring sections */
.flow-section {
  --section-lift: 0px;
  --section-fade: 1;
}
.section-flow {
  transform: translate3d(0, var(--section-lift), 0);
  opacity: var(--section-fade);
  transition: transform .46s cubic-bezier(0.22, 1, 0.36, 1), opacity .4s linear;
  will-change: transform, opacity;
}
#about .section-flow {
  transition-duration: .5s, .42s;
}
#lab .section-flow {
  transition-duration: .58s, .44s;
}
#systems .section-flow {
  transition-duration: .52s, .42s;
}

#about .reveal {
  transform: translateY(8px);
  transition-duration: .96s;
}
#lab .reveal {
  transform: translateY(10px) scale(0.996);
  transition-duration: 1.08s;
}
#systems .reveal {
  transform: translateY(9px);
  transition-duration: .96s;
}

#about .reveal.vis,
#lab .reveal.vis,
#systems .reveal.vis {
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* â”€â”€ REVEAL â”€â”€ */
.reveal {
  opacity: 0;
  transform: translateY(6px);
  filter: blur(6px);
  transition:
    opacity .9s var(--out),
    transform .9s var(--out),
    filter .9s var(--out);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.vis { opacity: 1; transform: translateY(0); filter: blur(0); }

/* Heading-tier reveals: deeper travel, longer duration, crisp ease-out */
.about-hed.reveal,
.systems-hed.reveal,
.night-hed.reveal,
.zoom-hed.reveal,
.bring-hed.reveal,
.blog-hed.reveal,
.dash-hed.reveal {
  transform: translateY(9px);
  transition: opacity 1.04s var(--out), transform 1.04s var(--out), filter 1.04s var(--out);
  transition-delay: var(--reveal-delay, 0ms);
}

@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* â”€â”€ RESPONSIVE â”€â”€ */
@media (max-width: 900px) {
  .systems-grid { grid-template-columns: 1fr; }
  #systems { margin-top: -2.4rem; padding-top: 8.1rem; }
  #zoom-out { margin-top: -1.8rem; padding-top: 6.9rem; }
  .about-layout { grid-template-columns: 1fr; gap: 3rem; }
  .about-top { flex-direction: column; align-items: stretch; }
  .blog-top { grid-template-columns: 1fr; }
  .blog-intro { justify-self: start; max-width: 48ch; }
  .hero-scan-grid,
  .about-scan-band,
  .systems-scan-band { grid-template-columns: 1fr; }
  .folio { width: 166px; height: 304px; }
  .folio-note-links { grid-template-columns: 1fr; }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 200px;
  }
  .media-wide { grid-column: span 2; }
  .gallery-hed { max-width: 12ch; }
  #bring-down { padding-top: 5.8rem; padding-bottom: 300px; margin-top: -1.2rem; }
  .water-bridge { height: 168px; }
  .deep-section { padding: 13rem 6vw 9.8rem; margin-top: -3.8rem; }
  .deep-section__copy { margin-left: 0; max-width: 40rem; }
  .footer-top { flex-direction: column; }
}
@media (max-width: 600px) {
  #hero { padding: 8rem 5vw 5rem; }
  #about, #systems, #zoom-out, #blog, #dashboard { padding: 5rem 5vw; }
  #systems {
    margin-top: -1.8rem;
    padding-top: 6.6rem;
  }
  #zoom-out {
    margin-top: -1.2rem;
    padding-top: 5.9rem;
    padding-bottom: 5.2rem;
  }
  #about {
    padding-top: 5.5rem;
    padding-bottom: 5.4rem;
  }
  .hero-actions {
    width: 100%;
    flex-direction: column;
  }
  .hero-kicker {
    font-size: .66rem;
    letter-spacing: .12em;
  }
  .hero-desc {
    font-size: 1rem;
    line-height: 1.72;
  }
  .btn-primary,
  .btn-outline {
    width: 100%;
    justify-content: center;
  }
  .about-switch { width: 100%; justify-content: space-between; }
  .about-switch-btn { flex: 1 1 0; padding: .72rem .8rem; font-size: .92rem; }
  .about-tldr-grid { grid-template-columns: 1fr; }
  .about-timeline { padding-left: 1.6rem; }
  .about-step::before { left: -1.6rem; }
  .about-top {
    margin-bottom: 2.1rem;
  }
  .about-hed {
    margin-bottom: 1.3rem;
  }
  .about-scan-band {
    gap: .68rem;
    margin-bottom: 1.55rem;
  }
  .about-body {
    font-size: .98rem;
    line-height: 1.82;
  }
  .about-cards {
    gap: .62rem;
    padding-top: 0;
  }
  .stats-strip {
    margin-top: 4rem !important;
  }
  #bring-down { padding-top: 4.9rem; padding-bottom: 258px; margin-top: -.8rem; }
  #bring-down::after { height: 105px; }
  .water-bridge { height: 132px; }
  .deep-section { padding: 11rem 5vw 8.4rem; margin-top: -2.8rem; }
  .deep-section { padding: 11.2rem 5vw 8.4rem; margin-top: -3rem; }
  #blog { margin-top: -1rem; }
  #blog::before { top: -2.1rem; height: 3.8rem; }
  .library-stage { gap: .8rem; padding-bottom: 1.7rem; }
  .folio { width: 150px; height: 252px; }
  .folio-cover { padding: .95rem .78rem .82rem .9rem; }
  .folio-kicker { top: .88rem; left: .92rem; }
  .folio-center { padding-top: 1.25rem; gap: .52rem; }
  .folio-name { font-size: 1.5rem; }
  .folio-detail { font-size: .64rem; max-width: 13ch; }
  .folio-mark { right: .75rem; bottom: .85rem; }
  .folio-note { padding: 1.45rem 1.1rem; border-radius: 22px; }
  .folio-note-link { min-height: 112px; font-size: .9rem; }
  #gallery-wall { padding: 5.5rem 5vw; }
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
    padding: 1.4rem 0 0;
  }
  .media-card-tall,
  .media-wide { grid-column: span 1; grid-row: span 1; }
  .gallery-backdrop { inset: 1.2rem 0 0; border-radius: 24px; }
  .media-title { max-width: 14ch; }
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .stats-inner { padding: 3rem 5vw; }
  .login-card { padding: 1.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  .section-flow {
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
  }

  .reveal,
  .reveal.vis {
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
    transition: none !important;
  }

  .about-view,
  .about-view.active {
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transition: none !important;
  }
}

/* Dashboard shell refresh */
#dashboard {
  position: relative;
  overflow: hidden;
  padding: 7rem 7vw;
}

#dashboard::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(124, 107, 255, 0.14), transparent 30%),
    radial-gradient(circle at 88% 14%, rgba(0, 212, 170, 0.10), transparent 28%),
    linear-gradient(180deg, rgba(8, 8, 16, 0.84) 0%, rgba(8, 8, 16, 0.98) 100%);
  pointer-events: none;
}

#dashboard .sec-label,
#dashboard .dash-hed,
#dashboard .dash-sub,
#dashboard .dashboard-shell {
  position: relative;
  z-index: 1;
}

#dashboard .sec-label {
  color: var(--accent1);
  margin-bottom: 0.18rem;
}

#dashboard .sec-label::before {
  background: var(--accent1);
}

.dash-hed {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.2vw, 2.7rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.035em;
  color: var(--dark-ink);
  margin-top: 0;
  margin-bottom: 1.45rem;
  max-width: 620px;
  text-wrap: balance;
}

.dash-sub {
  max-width: 600px;
  margin-bottom: 2.35rem;
  font-size: 0.98rem;
  line-height: 1.92;
  color: rgba(240, 240, 248, 0.62);
}

.dashboard-shell {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 1.4rem;
  align-items: start;
}

.dashboard-auth-cta {
  max-width: 560px;
}

.dashboard-auth {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.login-card,
#user-dashboard,
.util-link,
.dash-widget {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow:
    0 24px 72px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.login-card {
  border-radius: 28px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.login-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  align-self: flex-start;
  margin-bottom: 1.1rem;
  padding: 0.38rem 0.9rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent2);
  background: rgba(0, 212, 170, 0.07);
  border: 1px solid rgba(0, 212, 170, 0.2);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.login-chip > * {
  position: relative;
  z-index: 1;
}

.login-chip::after {
  content: '';
  position: absolute;
  inset: -40% auto -40% -24%;
  width: 34%;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.05) 12%, rgba(255,255,255,0.42) 48%, rgba(255,255,255,0.08) 78%, transparent 100%);
  transform: skewX(-24deg);
  animation: chipSheen 3.6s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.dashboard-auth-cta .login-card {
  padding: 1.8rem 1.85rem;
  border-radius: 24px;
  max-width: 580px;
}

.dashboard-auth-cta .login-chip {
  color: rgba(190, 255, 243, 0.92);
  background: rgba(0, 212, 170, 0.1);
  border-color: rgba(0, 212, 170, 0.3);
  margin-bottom: 1.35rem;
}

.dashboard-auth-cta .login-title {
  font-size: clamp(1.35rem, 1.8vw, 1.7rem);
  margin-bottom: 0.7rem;
}

.dashboard-auth-cta .login-sub {
  max-width: 460px;
  margin-bottom: 1.6rem;
}

.login-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 220px;
  text-decoration: none;
}

.login-chip-dot {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 999px;
  background: var(--accent2);
  box-shadow: 0 0 12px rgba(0, 212, 170, 0.55);
}

.login-title {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2vw, 1.9rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--dark-ink);
  margin-bottom: 0.45rem;
}

.login-sub {
  color: rgba(240, 240, 248, 0.56);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.login-sub a {
  color: var(--accent1);
}

#login-gate .field {
  margin-bottom: 1rem;
}

#login-gate .field label {
  display: block;
  margin-bottom: 0.45rem;
  color: rgba(240, 240, 248, 0.42);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

#login-gate .field input {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--dark-ink);
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

#login-gate .field input::placeholder {
  color: rgba(240, 240, 248, 0.22);
}

#login-gate .field input:focus {
  border-color: rgba(124, 107, 255, 0.45);
  background: rgba(124, 107, 255, 0.06);
}

.login-btn,
.dashboard-signout,
.fin-add,
.trip-add {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.34s var(--ease), box-shadow 0.34s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}

.login-btn {
  width: 100%;
  margin-top: 0.2rem;
  padding: 0.92rem 1.2rem;
  color: #fff;
  border: 0;
  background: linear-gradient(135deg, #7c6bff 0%, #00d4aa 100%);
  box-shadow: 0 12px 38px rgba(124, 107, 255, 0.28);
}

.login-btn:hover,
.dashboard-signout:hover,
.fin-add:hover,
.trip-add:hover {
  transform: translateY(-2px);
}

@keyframes chipSheen {
  0% { transform: translateX(-180%) skewX(-24deg); opacity: 0; }
  14% { opacity: 1; }
  38% { transform: translateX(320%) skewX(-24deg); opacity: 1; }
  50%, 100% { transform: translateX(320%) skewX(-24deg); opacity: 0; }
}

.login-msg {
  min-height: 1.4rem;
  margin-top: 0.8rem;
  color: rgba(240, 240, 248, 0.58);
  font-size: 0.8rem;
}

.util-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.util-link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem;
  align-items: center;
  border-radius: 18px;
  padding: 1rem 1.05rem;
  color: rgba(240, 240, 248, 0.74);
}

.util-link:hover {
  border-color: rgba(124, 107, 255, 0.24);
  background: rgba(124, 107, 255, 0.065);
  color: var(--dark-ink);
  box-shadow: 0 14px 28px rgba(8,10,12,.16);
}

.util-link-icon {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(124, 107, 255, 0.09);
  border: 1px solid rgba(124, 107, 255, 0.18);
}

.util-link-arrow {
  color: rgba(240, 240, 248, 0.34);
  transition: transform 0.28s var(--ease), color 0.28s var(--ease);
}

.util-link:hover .util-link-arrow {
  color: var(--accent1);
  transform: translateX(3px);
}

#user-dashboard {
  display: none;
  border-radius: 30px;
  padding: 1.6rem;
}

.dashboard-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.dashboard-kicker {
  margin-bottom: 0.35rem;
  color: rgba(240, 240, 248, 0.34);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.dash-welcome {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--dark-ink);
}

.dashboard-signout {
  padding: 0.8rem 1.15rem;
  color: rgba(240, 240, 248, 0.7);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.dashboard-signout:hover {
  color: var(--dark-ink);
  border-color: rgba(124, 107, 255, 0.34);
  background: rgba(124, 107, 255, 0.08);
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.dash-widget {
  border-radius: 24px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.dash-widget::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.8;
  pointer-events: none;
}

.dash-widget-finance::before {
  background: radial-gradient(circle at 100% 0%, rgba(124, 107, 255, 0.12), transparent 42%);
}

.dash-widget-travel::before {
  background: radial-gradient(circle at 0% 0%, rgba(0, 212, 170, 0.12), transparent 40%);
}

.widget-title,
.fin-total,
.fin-sub,
.fin-form,
.fin-list,
.trip-form,
.trip-list {
  position: relative;
  z-index: 1;
}

.widget-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
  color: rgba(240, 240, 248, 0.4);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.fin-total {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--dark-ink);
  margin-bottom: 0.3rem;
}

.fin-sub {
  color: rgba(240, 240, 248, 0.38);
  font-size: 0.8rem;
  margin-bottom: 1.2rem;
}

.fin-form {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto auto;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.fin-input,
.trip-form input,
.trip-form select {
  min-width: 0;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.045);
  color: var(--dark-ink);
  padding: 0.82rem 0.92rem;
  outline: none;
}

.fin-input::placeholder,
.trip-form input::placeholder {
  color: rgba(240, 240, 248, 0.22);
}

.fin-input:focus,
.trip-form input:focus,
.trip-form select:focus {
  border-color: rgba(124, 107, 255, 0.4);
  background: rgba(124, 107, 255, 0.05);
}

.fin-add,
.trip-add {
  padding: 0.82rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.fin-add {
  color: #fff;
  background: linear-gradient(135deg, rgba(124, 107, 255, 0.9), rgba(124, 107, 255, 0.62));
}

.trip-add {
  color: #081016;
  background: linear-gradient(135deg, rgba(0, 212, 170, 0.95), rgba(0, 212, 170, 0.72));
}

.fin-list,
.trip-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-height: 240px;
  overflow-y: auto;
}

.fin-item,
.trip-item {
  border-radius: 16px;
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.trip-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.trip-form input[type="date"],
.trip-add {
  grid-column: span 2;
}

.travel-empty,
.trip-date {
  color: rgba(240, 240, 248, 0.36);
}

.trip-dest,
.fin-item .fi-label,
.fin-item .fi-amount {
  color: var(--dark-ink);
}

.admin-console {
  margin-top: 1rem;
  border-radius: 28px;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.admin-console-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.admin-console-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--dark-ink);
  margin-bottom: 0.35rem;
}

.admin-console-sub {
  max-width: 620px;
  color: rgba(240, 240, 248, 0.52);
  font-size: 0.9rem;
  line-height: 1.7;
}

.admin-refresh,
.admin-save,
.admin-delete,
.admin-role {
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: transform 0.32s var(--ease), background 0.3s var(--ease), border-color 0.28s var(--ease), color 0.28s var(--ease);
}

.admin-refresh {
  padding: 0.8rem 1rem;
  color: var(--dark-ink);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.admin-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 1rem;
}

.admin-panel {
  border-radius: 22px;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-users {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.admin-user-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.8rem;
  align-items: center;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-user-name {
  color: var(--dark-ink);
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.admin-user-meta {
  color: rgba(240, 240, 248, 0.45);
  font-size: 0.78rem;
}

.admin-user-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.admin-role {
  padding: 0.5rem 0.8rem;
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--accent2);
  background: rgba(0, 212, 170, 0.09);
  border: 1px solid rgba(0, 212, 170, 0.18);
}

.admin-delete {
  padding: 0.55rem 0.85rem;
  color: #ff9c9c;
  background: rgba(255, 107, 107, 0.08);
  border: 1px solid rgba(255, 107, 107, 0.18);
}

.admin-edit {
  color: var(--accent1);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.admin-form input {
  width: 100%;
  padding: 0.88rem 0.95rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.045);
  color: var(--dark-ink);
  outline: none;
}

.admin-form input::placeholder {
  color: rgba(240, 240, 248, 0.22);
}

.admin-form input:focus {
  border-color: rgba(124, 107, 255, 0.42);
  background: rgba(124, 107, 255, 0.05);
}

.admin-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: rgba(240, 240, 248, 0.62);
  font-size: 0.84rem;
}

.admin-checkbox input {
  width: auto;
  accent-color: #7c6bff;
}

.admin-save {
  padding: 0.88rem 1rem;
  color: #fff;
  background: linear-gradient(135deg, #7c6bff 0%, #5e52d9 100%);
  border: 1px solid rgba(124, 107, 255, 0.2);
  box-shadow: 0 12px 34px rgba(124, 107, 255, 0.22);
}

.admin-msg,
.admin-empty {
  color: rgba(240, 240, 248, 0.42);
  font-size: 0.82rem;
}

.admin-msg {
  min-height: 1.2rem;
}

@media (max-width: 980px) {
  .dashboard-shell,
  .dash-grid,
  .fin-form {
    grid-template-columns: 1fr;
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }

  .trip-form {
    grid-template-columns: 1fr;
  }

  .trip-form input[type="date"],
  .trip-add {
    grid-column: auto;
  }
}

/* focused mobile layout fixes */
.nav-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.78);
  color: var(--ink);
}

.nav-menu-btn svg {
  width: 1rem;
  height: 1rem;
}

.mobile-nav-panel {
  position: fixed;
  top: 5.35rem;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  width: min(92vw, 22rem);
  display: grid;
  gap: .45rem;
  padding: .8rem;
  border-radius: 1.4rem;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(248,247,244,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 44px rgba(0,0,0,0.11), inset 0 1px 0 rgba(255,255,255,0.5);
  z-index: 8995;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .32s var(--ease), transform .32s var(--ease), visibility .32s;
}

.mobile-nav-panel.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.mobile-nav-panel a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 600;
  color: var(--ink);
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(0,0,0,0.06);
}

.mobile-nav-panel a:last-child {
  color: #fff;
  background: var(--ink);
}

@media (max-width: 680px) {
  #main-nav {
    top: .8rem;
    width: calc(100% - 1rem);
    justify-content: space-between;
    gap: .42rem;
    padding: .52rem .56rem;
  }

  .nav-center,
  .nav-cta {
    display: none !important;
  }

  .nav-clock {
    display: inline-flex !important;
    font-size: .72rem;
    padding: .42rem .8rem;
  }

  .nav-menu-btn {
    display: inline-flex;
  }

  #hero {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 1.15rem;
    min-height: auto;
    padding: 8.3rem 5vw 7.2rem;
    background:
      radial-gradient(circle at top right, rgba(251,191,36,0.11), transparent 24%),
      linear-gradient(180deg, #faf6ef 0%, #f0e8dc 50%, #e7dece 100%);
    background-color: #faf6ef;
  }

  #hero::before,
  #hero::after {
    inset: -1px 0;
  }

  .hero-right {
    display: flex !important;
    justify-content: center;
    order: 1;
    padding-left: 0;
    margin-top: 1.9rem;
    margin-bottom: 1.35rem;
  }

  .hero-left {
    order: 2;
    margin-left: 0;
    max-width: 100%;
    text-align: center;
    padding-bottom: 1.2rem;
  }

  .greeting-wrap,
  .role-line,
  .hero-subcopy {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-name {
    font-size: clamp(3.8rem, 17vw, 5.5rem);
    line-height: .92;
    letter-spacing: -0.06em;
  }

  .hero-name .surname {
    justify-content: center;
    gap: .6rem;
    margin-top: .95rem;
  }

  .role-line {
    margin-top: .95rem;
    font-size: .76rem;
    line-height: 1.45;
    letter-spacing: .15em;
  }

  .hero-subcopy {
    max-width: 21.8rem;
    font-size: 1rem;
    line-height: 1.72;
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
    align-items: center;
  }

  .hero-action-stack {
    display: flex;
    width: 100%;
    max-width: none;
    align-items: center;
  }

  .btn-primary,
  .btn-outline {
    width: min(100%, 17rem);
    justify-content: center;
  }

  .hero-scroll {
    display: flex;
    left: 0;
    right: 0;
    width: 100%;
    transform: none;
    justify-content: center;
    text-align: center;
  }

  .hero-greeting-pill {
    top: 5.1rem;
    max-width: calc(100vw - 2rem);
    padding: .5rem .72rem;
    gap: .56rem;
  }

  .hero-greeting-icon {
    width: 1.45rem;
    height: 1.45rem;
  }

  .hero-greeting-copy {
    font-size: .74rem;
    line-height: 1.32;
  }

  .polaroid {
    max-width: 198px;
    transform: rotate(1.4deg);
  }

  .sticky {
    top: -16px;
    right: -8px;
    padding: .52rem .66rem;
    font-size: .76rem;
  }

  .loc-tag {
    left: 50%;
    transform: translateX(-50%);
    bottom: -12px;
    white-space: nowrap;
  }

  .marquee-bar {
    margin-top: 1.15rem;
    background: linear-gradient(180deg, rgba(248,242,233,0.28), rgba(246,239,229,0.18));
  }
}

/* ---- Reference transition parity from deployment-v5 ---- */
#zoom-out {
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 7rem 7vw 6rem;
  margin-top: 0;
  z-index: auto;
  background: transparent;
}

#zoom-out::before,
#zoom-out::after {
  content: none;
}

.zoom-hed {
  font-weight: 300;
  line-height: 1;
  margin-bottom: 2.5rem;
  letter-spacing: -.02em;
}

#bring-down {
  z-index: auto;
  padding: 4rem 6vw 336px;
  margin-top: 0;
  background: transparent;
}

#bring-down::before {
  content: none;
}

#bring-down::after {
  height: 148px;
  background: linear-gradient(180deg, transparent 0%, rgba(9, 22, 46, 0.015) 42%, rgba(9, 22, 46, 0.035) 68%, rgba(9, 22, 46, 0.08) 100%);
}

.bring-hed {
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.04em;
  margin-bottom: 1.8rem;
}

.mountain-wrap img {
  transform: scale(1.022);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 46%, rgba(0,0,0,0.88) 60%, rgba(0,0,0,0.5) 76%, rgba(0,0,0,0.12) 90%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 0%, black 46%, rgba(0,0,0,0.88) 60%, rgba(0,0,0,0.5) 76%, rgba(0,0,0,0.12) 90%, transparent 100%);
}

.water-bridge {
  height: 144px;
  background:
    radial-gradient(ellipse at 50% 10%, rgba(177, 214, 241, 0.035), transparent 34%),
    linear-gradient(180deg, rgba(8, 20, 40, 0) 0%, rgba(8, 22, 46, 0.012) 24%, rgba(8, 21, 42, 0.045) 58%, rgba(7, 18, 36, 0.12) 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.10) 28%, rgba(0, 0, 0, 0.34) 68%, black 100%);
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.10) 28%, rgba(0, 0, 0, 0.34) 68%, black 100%);
  opacity: 1;
}

.deep-section.dark-section {
  z-index: auto;
  margin-top: -3.8rem;
  padding: 14.2rem 7vw 13.4rem;
  background:
    radial-gradient(ellipse at 50% -4%, rgba(194, 228, 255, 0.08) 0%, transparent 20%),
    radial-gradient(ellipse at 20% 28%, rgba(70, 113, 194, 0.05) 0%, transparent 26%),
    radial-gradient(ellipse at 82% 60%, rgba(44, 86, 166, 0.04) 0%, transparent 20%),
    linear-gradient(180deg, #10243f 0%, #0b1a31 14%, #081426 42%, #06111d 72%, #050b14 100%);
}

.deep-section__bg {
  background:
    linear-gradient(180deg, rgba(4, 11, 21, 0.28) 0%, rgba(4, 11, 21, 0.40) 26%, rgba(4, 11, 21, 0.84) 100%),
    radial-gradient(ellipse at 56% 7%, rgba(220, 240, 255, 0.14) 0%, rgba(220, 240, 255, 0) 24%),
    radial-gradient(ellipse at 44% 42%, rgba(47, 88, 160, 0.08) 0%, rgba(47, 88, 160, 0) 34%),
    url("./ocean-depth-premium-v2.png") 60% 6% / 126% auto no-repeat;
}

.deep-section.dark-section::before {
  height: 5rem;
  background: linear-gradient(180deg, rgba(160, 209, 245, 0.04) 0%, rgba(68, 109, 181, 0.04) 18%, rgba(16, 37, 68, 0.05) 36%, rgba(6, 14, 24, 0) 100%);
}

@media (max-width: 900px) {
  #bring-down { padding-bottom: 280px; }
  .mountain-wrap { bottom: 24px; overflow: visible; }
  .mountain-wrap img { transform: scale(1.05); transform-origin: center bottom; }
  .water-bridge { height: 96px; }
  .deep-section.dark-section { padding: 11rem 6vw 9.8rem; }
}

@media (max-width: 600px) {
  #bring-down { padding-bottom: 232px; }
  .mountain-wrap { bottom: 36px; overflow: visible; }
  .mountain-wrap img { transform: scale(1.08); }
  .water-bridge { height: 72px; }
  .deep-section.dark-section { padding: 9.2rem 5vw 8.4rem; }
}

/* ---- About -> Lab -> Systems continuity cleanup ---- */
#about {
  padding-bottom: 5.9rem;
}

#about::after {
  height: 11rem;
  background:
    radial-gradient(ellipse at 50% 112%, rgba(42, 51, 68, 0.08) 0%, rgba(42, 51, 68, 0) 52%),
    linear-gradient(180deg, rgba(250, 246, 239, 0) 0%, rgba(236, 229, 219, 0.14) 32%, rgba(70, 79, 95, 0.08) 72%, rgba(22, 28, 40, 0.16) 100%);
}

.stats-strip {
  margin-top: 3.8rem !important;
}

.stats-strip::after {
  height: 5.2rem;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(42, 52, 68, 0.07) 0%, rgba(42, 52, 68, 0) 50%),
    linear-gradient(180deg, rgba(246, 240, 231, 0) 0%, rgba(49, 56, 72, 0.08) 100%);
}

#systems {
  margin-top: -2.6rem;
  padding: 8.8rem 7vw 6.1rem;
  background:
    radial-gradient(ellipse at 50% -12%, rgba(210, 186, 143, 0.045) 0%, transparent 20%),
    radial-gradient(ellipse at 18% 22%, rgba(143, 201, 190, 0.04) 0%, transparent 22%),
    radial-gradient(ellipse at 82% 18%, rgba(90, 108, 142, 0.055) 0%, transparent 20%),
    linear-gradient(180deg, rgba(12, 18, 27, 0.94) 0%, #0e1520 16%, #0b111a 42%, #090d15 100%);
}

#systems::before {
  height: 8.2rem;
  background:
    linear-gradient(180deg, rgba(248, 239, 226, 0.03) 0%, rgba(48, 57, 74, 0.08) 32%, rgba(8, 13, 22, 0) 100%),
    radial-gradient(ellipse at 50% 0%, rgba(255,255,255,0.018) 0%, rgba(255,255,255,0) 30%);
}

@media (max-width: 900px) {
  #systems {
    margin-top: -1.7rem;
    padding-top: 7.3rem;
  }
}

@media (max-width: 600px) {
  #about {
    padding-bottom: 5rem;
  }

  .stats-strip {
    margin-top: 3.1rem !important;
  }

  #systems {
    margin-top: -1.2rem;
    padding-top: 5.9rem;
  }
}
