/* ==========================================================================
   David Agus Kuncoro — Portfolio
   Visual direction: chromatic aberration / neon shader.
   Black field, magenta-cyan RGB split, violet bloom, mono code accents.
   ========================================================================== */

@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-300-700.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-400.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #050308;
  --bg-2: #0a0710;
  --ink: #f3f0ff;
  --ink-dim: #9b93b4;
  --ink-faint: #5d5675;
  --magenta: #ff2e9a;
  --cyan: #00e5ff;
  --violet: #8b3dff;
  --blue: #2f6bff;
  --line: rgba(180, 150, 255, 0.14);
  --card: rgba(18, 12, 30, 0.62);

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --pad: clamp(20px, 5vw, 88px);
  --maxw: 1240px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--magenta);
  color: #fff;
}

/* --------------------------------------------------------------------------
   Ambient field: violet/magenta/cyan blooms + grain + scanlines
   -------------------------------------------------------------------------- */
.field {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.bloom {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}
.bloom--magenta {
  width: 46vw;
  height: 46vw;
  left: -12vw;
  top: 6vh;
  background: radial-gradient(circle, rgba(255, 46, 154, 0.55), transparent 68%);
  animation: drift-a 26s ease-in-out infinite alternate;
}
.bloom--violet {
  width: 52vw;
  height: 52vw;
  right: -16vw;
  top: 22vh;
  background: radial-gradient(circle, rgba(139, 61, 255, 0.5), transparent 68%);
  animation: drift-b 32s ease-in-out infinite alternate;
}
.bloom--cyan {
  width: 40vw;
  height: 40vw;
  left: 22vw;
  bottom: -18vh;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.32), transparent 70%);
  animation: drift-c 24s ease-in-out infinite alternate;
}
@keyframes drift-a {
  to {
    transform: translate3d(8vw, 6vh, 0) scale(1.15);
  }
}
@keyframes drift-b {
  to {
    transform: translate3d(-10vw, -8vh, 0) scale(1.1);
  }
}
@keyframes drift-c {
  to {
    transform: translate3d(6vw, -6vh, 0) scale(1.2);
  }
}

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

/* CRT scanlines, very low opacity */
.scanlines {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.22;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.05) 0 1px,
    transparent 1px 3px
  );
  mix-blend-mode: overlay;
}

/* --------------------------------------------------------------------------
   Chromatic aberration type
   A heading carries data-text; two offset ghosts split it into
   magenta (left) and cyan (right), like a lens fringe.
   -------------------------------------------------------------------------- */
.split-text {
  position: relative;
  display: inline-block;
  isolation: isolate;
}
.split-text::before,
.split-text::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  white-space: pre-wrap;
}
.split-text::before {
  color: var(--magenta);
  mix-blend-mode: screen;
  transform: translate3d(-2px, 0, 0);
  opacity: 0.6;
  animation: fringe-a 7s ease-in-out infinite;
}
.split-text::after {
  color: var(--cyan);
  mix-blend-mode: screen;
  transform: translate3d(2px, 0, 0);
  opacity: 0.6;
  animation: fringe-b 7s ease-in-out infinite;
}
@keyframes fringe-a {
  0%,
  100% {
    transform: translate3d(-2px, 0, 0);
  }
  50% {
    transform: translate3d(-4px, 1px, 0);
  }
}
@keyframes fringe-b {
  0%,
  100% {
    transform: translate3d(2px, 0, 0);
  }
  50% {
    transform: translate3d(4px, -1px, 0);
  }
}

/* --------------------------------------------------------------------------
   Shell / shared
   -------------------------------------------------------------------------- */
.shell {
  position: relative;
  z-index: 3;
}
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-dim);
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, var(--magenta), var(--cyan));
}

.section {
  position: relative;
  padding-block: clamp(72px, 11vw, 148px);
}
.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.section__title {
  font-size: clamp(38px, 7vw, 92px);
  line-height: 0.94;
  letter-spacing: -0.045em;
  font-weight: 700;
  margin-top: 18px;
}
.section__title em {
  font-style: normal;
  background: linear-gradient(100deg, var(--magenta), var(--violet) 46%, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.section__note {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.9;
  color: var(--ink-faint);
  max-width: 34ch;
}
.section__note b {
  color: var(--cyan);
  font-weight: 400;
}

/* --------------------------------------------------------------------------
   Nav
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 50%;
  right: auto;
  z-index: 60;
  width: calc(100% - 2 * var(--pad));
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  transform: translateX(-50%);
  transition: width 0.85s var(--ease), padding 0.85s var(--ease), background-color 0.75s var(--ease),
    backdrop-filter 0.75s var(--ease), border-color 0.75s var(--ease), box-shadow 0.75s var(--ease);
}
.nav.is-stuck {
  width: 58px;
  height: 54px;
  min-height: 54px;
  padding: 7px;
  justify-content: center;
  background: rgba(22, 14, 34, 0.68);
  backdrop-filter: blur(22px) saturate(155%);
  -webkit-backdrop-filter: blur(22px) saturate(155%);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.nav.is-stuck:hover,
.nav.is-stuck:focus-within {
  width: min(1080px, calc(100% - 2 * var(--pad)));
  padding: 10px 14px;
  justify-content: space-between;
}
.nav.is-stuck > :not(.nav__brand) {
  position: absolute;
  inset-inline: 0;
  width: max-content;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.7s var(--ease), visibility 0.7s var(--ease);
}
.nav.is-stuck:hover > :not(.nav__brand),
.nav.is-stuck:focus-within > :not(.nav__brand) {
  position: static;
  width: auto;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.nav.is-stuck:hover .nav__links,
.nav.is-stuck:focus-within .nav__links,
.nav.is-stuck:hover .nav__cta,
.nav.is-stuck:focus-within .nav__cta,
.nav.is-stuck:hover .lang-dropdown,
.nav.is-stuck:focus-within .lang-dropdown {
  display: flex;
}
.nav.is-stuck .nav__brand span {
  opacity: 0;
  width: 0;
  overflow: hidden;
}
.nav.is-stuck .nav__brand {
  gap: 0;
}
.nav.is-stuck:hover .nav__brand span,
.nav.is-stuck:focus-within .nav__brand span {
  opacity: 1;
  width: auto;
}
.nav.is-stuck:hover .nav__brand,
.nav.is-stuck:focus-within .nav__brand {
  gap: 12px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
}
.nav__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 3px rgba(255, 46, 154, 0.16), 0 0 22px rgba(139, 61, 255, 0.5);
}
.nav__brand span {
  color: var(--ink-dim);
}
.nav__brand b {
  color: var(--ink);
  font-weight: 500;
}

.nav__links {
  display: none;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(12, 8, 20, 0.55);
  backdrop-filter: blur(14px);
}
.nav__links a {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-dim);
  padding: 8px 14px;
  border-radius: 999px;
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease);
  white-space: nowrap;
}
.nav__links a:hover,
.nav__links a.is-active {
  color: var(--ink);
  background: rgba(139, 61, 255, 0.22);
}
.nav__links a.is-active {
  box-shadow: inset 0 0 0 1px rgba(0, 229, 255, 0.35);
}

.nav__cta {
  display: none;
  font-family: var(--font-mono);
  font-size: 12.5px;
  padding: 11px 20px;
  border-radius: 999px;
  color: #07040c;
  background: linear-gradient(100deg, var(--cyan), #b7f7ff);
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  box-shadow: 0 0 0 rgba(0, 229, 255, 0);
}
.nav__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 26px rgba(0, 229, 255, 0.45);
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(12, 8, 20, 0.62);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.language-switcher select {
  appearance: none;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.language-switcher option {
  color: #f3f0ff;
  background: #0a0710;
}

/* custom language dropdown */
.lang-dropdown {
  position: relative;
}
.lang-dropdown__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(12, 8, 20, 0.62);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.lang-dropdown__btn:hover,
.lang-dropdown.is-open .lang-dropdown__btn {
  border-color: var(--cyan);
  background: rgba(12, 8, 20, 0.85);
}
.lang-dropdown__current {
  color: var(--ink);
}
.lang-dropdown__chev {
  transition: rotate 0.2s ease;
}
.lang-dropdown.is-open .lang-dropdown__chev {
  rotate: 180deg;
}
.lang-dropdown__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 150px;
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(12, 8, 20, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  opacity: 0;
  translate: 0 -6px;
  visibility: hidden;
  transition: opacity 0.18s ease, translate 0.18s ease, visibility 0.18s;
  z-index: 60;
}
.lang-dropdown.is-open .lang-dropdown__menu {
  opacity: 1;
  translate: 0 0;
  visibility: visible;
}
.lang-dropdown__menu li {
  padding: 9px 12px;
  border-radius: 9px;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.lang-dropdown__menu li:hover {
  background: rgba(0, 229, 255, 0.12);
  color: var(--cyan);
}
.lang-dropdown__menu li[aria-selected="true"] {
  color: var(--cyan);
}
.lang-dropdown__menu li[aria-selected="true"]::before {
  content: "● ";
  font-size: 7px;
  vertical-align: 2px;
}

.language-switcher--mobile {
  margin-left: auto;
  margin-right: 12px;
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(12, 8, 20, 0.6);
}
.nav__burger i {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
}

/* mobile sheet */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(5, 3, 8, 0.97);
  backdrop-filter: blur(20px);
  padding: 24px var(--pad);
  display: flex;
  flex-direction: column;
  gap: 32px;
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease);
  visibility: hidden;
}
.sheet.is-open {
  transform: none;
  visibility: visible;
}
.sheet__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sheet__close {
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--ink-dim);
}
.sheet nav {
  display: grid;
  gap: 8px;
}
.sheet nav a {
  font-size: clamp(28px, 9vw, 44px);
  font-weight: 600;
  letter-spacing: -0.03em;
  padding-block: 10px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.sheet nav a i {
  font-family: var(--font-mono);
  font-size: 12px;
  font-style: normal;
  color: var(--ink-faint);
}

/* Mobile glass tab bar. The desktop pill navigation remains unchanged. */
.mobile-tabbar {
  display: none;
}

@media (min-width: 980px) {
  .nav {
    width: calc(100% - 2 * var(--pad));
    top: 16px;
  }

  .nav__links,
  .nav__cta {
    display: flex;
  }
  .nav__burger {
    display: none;
  }

  .language-switcher--mobile {
    display: none;
  }
}

@media (max-width: 979px) {
  .nav {
    left: 0;
    width: 100%;
    height: auto;
    min-height: 0;
    transform: none;
    border-radius: 0;
    padding: 16px var(--pad);
  }

  .nav.is-stuck,
  .nav.is-stuck:hover,
  .nav.is-stuck:focus-within {
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 16px var(--pad);
    justify-content: space-between;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .nav__links,
  .nav__cta {
    display: none !important;
  }

  /* Keep the language control available on the right of the mobile header. */
  .nav > .lang-dropdown {
    display: block !important;
    margin-left: auto;
  }

  .nav.is-stuck > :not(.nav__brand),
  .nav.is-stuck:hover > :not(.nav__brand),
  .nav.is-stuck:focus-within > :not(.nav__brand) {
    display: none !important;
  }

  .nav.is-stuck > .lang-dropdown,
  .nav.is-stuck:hover > .lang-dropdown,
  .nav.is-stuck:focus-within > .lang-dropdown {
    display: block !important;
    position: static;
    width: auto;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav.is-stuck .nav__brand,
  .nav.is-stuck:hover .nav__brand,
  .nav.is-stuck:focus-within .nav__brand {
    gap: 12px;
    width: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    pointer-events: none;
  }

  .nav.is-stuck .nav__brand span,
  .nav.is-stuck:hover .nav__brand span,
  .nav.is-stuck:focus-within .nav__brand span {
    display: inline;
    width: auto;
    opacity: 1;
  }

  .nav.is-stuck .nav__brand span,
  .nav.is-stuck:hover .nav__brand span,
  .nav.is-stuck:focus-within .nav__brand span {
    display: none;
  }

  .nav.is-stuck,
  .nav.is-stuck:hover,
  .nav.is-stuck:focus-within {
    justify-content: flex-end;
  }

  .nav__burger,
  .sheet {
    display: none;
  }

  .mobile-tabbar {
    position: fixed;
    z-index: 65;
    left: 12px;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 3px;
    padding: 7px 6px max(7px, env(safe-area-inset-bottom));
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(38, 26, 58, 0.72), rgba(8, 10, 22, 0.7));
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(24px) saturate(145%);
    -webkit-backdrop-filter: blur(24px) saturate(145%);
  }

  .scroll-top {
    display: none;
  }

  .mobile-tabbar__item {
    position: relative;
    min-width: 44px;
    min-height: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border-radius: 18px;
    color: rgba(243, 240, 255, 0.58);
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.01em;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-tabbar__item svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mobile-tabbar__item.is-active {
    color: var(--ink);
    background: linear-gradient(145deg, rgba(139, 61, 255, 0.38), rgba(0, 229, 255, 0.12));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 4px 18px rgba(139, 61, 255, 0.18);
  }

  .mobile-tabbar__item.is-active svg {
    color: var(--cyan);
    filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.45));
  }

  .mobile-tabbar__item:active {
    transform: scale(0.95);
  }

  /* Keep the last section reachable above the fixed bar. */
  main {
    padding-bottom: 92px;
  }
}

/* Some mobile browser previews report a wider CSS viewport than the device
   image. Keep desktop navigation from leaking into that compact layout. */
@media (max-width: 1100px) and (pointer: coarse) {
  .nav,
  .nav.is-stuck,
  .nav.is-stuck:hover,
  .nav.is-stuck:focus-within {
    left: 0;
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 16px var(--pad);
    transform: none;
    border-radius: 0;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .nav__links,
  .nav__cta,
  .nav > :not(.nav__brand) {
    display: none !important;
  }

  .nav > .lang-dropdown {
    display: block !important;
    margin-left: auto;
  }

  .mobile-tabbar {
    display: grid;
  }

  .scroll-top {
    display: none;
  }
}

@media (min-width: 980px) {
  /* The mobile menu control must never appear in the desktop floating header. */
  .nav__burger {
    display: none !important;
  }
}

/* Mobile header: fade both identity and language control away after scrolling.
   Keep them in the layout at the top, then hide them softly instead of using
   display:none, which would make the transition feel abrupt. */
@media (max-width: 979px) {
  .nav__brand,
  .nav > .lang-dropdown {
    transition: opacity 1s var(--ease), visibility 1s var(--ease), transform 1s var(--ease);
  }

  .nav.is-stuck .nav__brand,
  .nav.is-stuck:hover .nav__brand,
  .nav.is-stuck:focus-within .nav__brand {
    display: flex !important;
    position: absolute;
    left: var(--pad);
    width: auto;
    margin: 0;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    overflow: visible;
    pointer-events: none;
  }

  .nav.is-stuck > .lang-dropdown,
  .nav.is-stuck:hover > .lang-dropdown,
  .nav.is-stuck:focus-within > .lang-dropdown {
    display: block !important;
    position: absolute;
    right: var(--pad);
    width: auto;
    margin-left: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 1s var(--ease), visibility 1s var(--ease), transform 1s var(--ease);
  }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 120px;
  padding-bottom: clamp(40px, 6vw, 72px);
  overflow: hidden;
}

/* the supplied cover image, heavily graded so type stays legible */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("../img/hero-cover.jpg");
  background-size: cover;
  background-position: center 40%;
  filter: saturate(1.5) contrast(1.15) brightness(0.72);
  transform: scale(1.06);
  animation: hero-drift 30s ease-in-out infinite alternate;
}
@keyframes hero-drift {
  to {
    transform: scale(1.14) translate3d(0, -1.5%, 0);
  }
}
/* chromatic fringing pass over the photo itself */
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/hero-cover.jpg");
  background-size: cover;
  background-position: center 40%;
  mix-blend-mode: screen;
  opacity: 0.16;
  filter: blur(2px);
  transform: translate3d(7px, 0, 0) scale(1.02);
  animation: fringe-photo 9s ease-in-out infinite alternate;
}
@keyframes fringe-photo {
  to {
    transform: translate3d(-7px, 2px, 0) scale(1.04);
    opacity: 0.24;
  }
}
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
      180deg,
      rgba(5, 3, 8, 0.86) 0%,
      rgba(5, 3, 8, 0.3) 34%,
      rgba(5, 3, 8, 0.66) 72%,
      var(--bg) 100%
    ),
    radial-gradient(120% 90% at 78% 18%, rgba(139, 61, 255, 0.34), transparent 62%),
    radial-gradient(90% 80% at 12% 82%, rgba(255, 46, 154, 0.28), transparent 66%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.hero__status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 5, 14, 0.6);
  backdrop-filter: blur(10px);
  margin-bottom: clamp(20px, 3vw, 30px);
}
.hero__status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  50% {
    opacity: 0.35;
    transform: scale(0.8);
  }
}

.hero__name {
  font-size: clamp(44px, 10.4vw, 152px);
  line-height: 0.88;
  letter-spacing: -0.055em;
  font-weight: 700;
  text-transform: none;
  margin: 0 0 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero__name > span {
  display: block;
}
.hero__name .thin {
  font-weight: 300;
  /* bright enough that the magenta/cyan ghosts don't dominate the thinner
     strokes — a dim fill made the first line read as a rendering artifact */
  color: #cdc4e4;
}
/* the ghost layers inherit the gradient/thin treatment badly on multi-line
   headings, so keep the fringe to a single flat colour per line */
.hero__name .split-text::before,
.hero__name .split-text::after {
  white-space: nowrap;
}

.hero__role {
  font-family: var(--font-mono);
  font-size: clamp(12px, 1.5vw, 15px);
  letter-spacing: 0.06em;
  color: var(--cyan);
  margin-bottom: clamp(18px, 2.6vw, 26px);
}
.hero__role .caret {
  display: inline-block;
  width: 8px;
  height: 1.05em;
  background: var(--magenta);
  vertical-align: -0.18em;
  margin-left: 4px;
  animation: blink 1.15s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

.hero__lede {
  max-width: 46ch;
  font-size: clamp(15px, 1.6vw, 19px);
  line-height: 1.62;
  color: #cfc7e4;
  margin-bottom: clamp(26px, 3.4vw, 40px);
}
.hero__lede b {
  color: var(--ink);
  font-weight: 600;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
/* below ~400px the two pills crowd the line — stack them */
@media (max-width: 400px) {
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero__actions .btn {
    justify-content: center;
  }
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  padding: 14px 24px;
  border-radius: 999px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn--solid {
  background: linear-gradient(100deg, var(--magenta), var(--violet));
  color: #fff;
  font-weight: 700;
  box-shadow: 0 0 34px rgba(255, 46, 154, 0.35);
}
.btn--solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 44px rgba(255, 46, 154, 0.55);
}
.btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--ink);
  background: rgba(10, 7, 16, 0.5);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 26px rgba(0, 229, 255, 0.28);
  transform: translateY(-2px);
}

.hero__scroll {
  position: absolute;
  right: var(--pad);
  bottom: clamp(40px, 6vw, 72px);
  z-index: 3;
  display: none;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-faint);
  writing-mode: vertical-rl;
}
.hero__scroll span {
  width: 1px;
  height: 64px;
  background: linear-gradient(var(--magenta), transparent);
}
@media (min-width: 980px) {
  .hero__scroll {
    display: flex;
  }
}

/* marquee divider */
.marquee {
  position: relative;
  z-index: 3;
  border-block: 1px solid var(--line);
  background: rgba(10, 6, 18, 0.6);
  overflow: hidden;
  padding-block: 14px;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: marquee 34s linear infinite;
}
.marquee__track span {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: inline-flex;
  align-items: center;
  gap: 40px;
}
.marquee__track span::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--magenta);
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* --------------------------------------------------------------------------
   Pricing
   -------------------------------------------------------------------------- */
.pricing {
  padding-top: clamp(64px, 9vw, 112px);
  padding-bottom: clamp(72px, 10vw, 132px);
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.pricing__value {
  max-width: 680px;
  margin: -22px 0 clamp(28px, 4vw, 48px);
  color: #c9c0dc;
  font-size: clamp(16px, 1.8vw, 21px);
  line-height: 1.55;
}

.pricing__value strong {
  color: var(--cyan);
  font-weight: 600;
}

.price-card {
  --price-accent: var(--violet);
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 548px;
  padding: clamp(20px, 2.3vw, 30px);
  overflow: hidden;
  border: 1px solid rgba(180, 150, 255, 0.18);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(24, 14, 40, 0.88), rgba(9, 6, 16, 0.78)),
    var(--card);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.55s var(--ease), border-color 0.45s var(--ease),
    box-shadow 0.55s var(--ease), background-color 0.45s var(--ease);
}

.price-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 230px;
  height: 230px;
  right: -110px;
  top: -100px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--price-accent) 28%, transparent), transparent 68%);
  filter: blur(8px);
  opacity: 0.65;
  transition: transform 0.7s var(--ease), opacity 0.5s var(--ease);
}

.price-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.05) 48%, transparent 72%);
  transform: translateX(-125%);
  transition: transform 0.8s var(--ease);
}

.price-card:hover {
  transform: translateY(-9px);
  border-color: color-mix(in srgb, var(--price-accent) 62%, white 8%);
  background-color: rgba(25, 14, 42, 0.92);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.48), 0 0 34px color-mix(in srgb, var(--price-accent) 23%, transparent);
}

.price-card:hover::before {
  transform: scale(1.35) translate(-20px, 20px);
  opacity: 0.95;
}

.price-card:hover::after {
  transform: translateX(125%);
}

.price-card--popular {
  --price-accent: var(--magenta);
  border-color: rgba(255, 46, 154, 0.62);
  background:
    linear-gradient(145deg, rgba(50, 15, 52, 0.94), rgba(19, 8, 29, 0.9)),
    var(--card);
  box-shadow: 0 0 0 1px rgba(255, 46, 154, 0.12), 0 18px 48px rgba(255, 46, 154, 0.13);
  animation: momentum-float 4.8s ease-in-out infinite;
}

@keyframes momentum-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

.price-card--popular::before {
  background: radial-gradient(circle, rgba(255, 46, 154, 0.42), transparent 68%);
}

.price-card--popular:hover {
  border-color: var(--magenta);
  box-shadow: 0 26px 62px rgba(0, 0, 0, 0.52), 0 0 46px rgba(255, 46, 154, 0.3);
  animation-play-state: paused;
}

.price-card__badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 46, 154, 0.6);
  border-radius: 999px;
  background: rgba(255, 46, 154, 0.16);
  color: #ffd1e8;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 0 0 20px rgba(255, 46, 154, 0.18);
}

.price-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 32px;
}

.price-card__index {
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.price-card__orb {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--price-accent);
  box-shadow: 0 0 16px var(--price-accent);
  animation: price-pulse 2.8s ease-in-out infinite;
}

@keyframes price-pulse {
  50% {
    opacity: 0.5;
    transform: scale(0.72);
  }
}

.price-card__name {
  margin-top: 34px;
  color: var(--ink);
  font-size: clamp(24px, 2.5vw, 34px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
}

.price-card__desc {
  min-height: 92px;
  margin-top: 16px;
  color: #b9b1cc;
  font-size: 13px;
  line-height: 1.65;
}

.price-card__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 22px;
  color: var(--ink);
  font-size: clamp(24px, 2.5vw, 38px);
  white-space: nowrap;
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 1;
}

.price-card__price sup {
  flex: 0 0 auto;
  color: var(--price-accent);
  font-family: var(--font-mono);
  font-size: 0.38em;
  font-weight: 500;
  letter-spacing: 0;
  vertical-align: top;
}

.price-card__price span {
  flex: 0 0 auto;
  margin-left: 2px;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.price-card__price strong {
  flex: 0 1 auto;
  min-width: 0;
  font: inherit;
  letter-spacing: -0.06em;
  font-size: 1.12em;
}

.price-card__minor {
  font-size: 0.52em;
  letter-spacing: -0.04em;
}

@media (max-width: 1080px) and (min-width: 561px) {
  .price-card__price {
    font-size: clamp(24px, 3.4vw, 34px);
  }
}

.price-card__features {
  display: grid;
  gap: 10px;
  margin: 28px 0 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: #c8c0d8;
  font-size: 12px;
  line-height: 1.4;
}

.price-card__features li {
  position: relative;
  padding-left: 17px;
}

.price-card__features li::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--price-accent);
  box-shadow: 0 0 9px var(--price-accent);
}

.price-card__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--price-accent) 46%, transparent);
  border-radius: 10px;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.price-card__cta span {
  color: var(--price-accent);
  font-size: 17px;
  line-height: 0.7;
  transition: transform 0.3s var(--ease);
}

.price-card__cta:hover {
  border-color: var(--price-accent);
  background: color-mix(in srgb, var(--price-accent) 13%, transparent);
  box-shadow: 0 0 24px color-mix(in srgb, var(--price-accent) 22%, transparent);
  transform: translateY(-2px);
}

.price-card__cta:hover span {
  transform: translate(3px, -3px);
}

.pricing__footnote {
  max-width: 70ch;
  margin: 26px auto 0;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.7;
  text-align: center;
}

.hosting-addon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: clamp(22px, 3vw, 34px);
  padding: clamp(22px, 3vw, 34px);
  overflow: hidden;
  border: 1px solid rgba(0, 229, 255, 0.28);
  border-radius: 18px;
  background: linear-gradient(110deg, rgba(7, 28, 42, 0.82), rgba(17, 10, 30, 0.76));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 18px 45px rgba(0, 0, 0, 0.22);
  transition: transform 0.45s var(--ease), border-color 0.35s var(--ease), box-shadow 0.45s var(--ease);
}

.hosting-addon::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  left: -100px;
  bottom: -170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.2), transparent 68%);
  filter: blur(8px);
  pointer-events: none;
}

.hosting-addon:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 229, 255, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 22px 52px rgba(0, 0, 0, 0.34), 0 0 34px rgba(0, 229, 255, 0.12);
}

.hosting-addon__copy {
  position: relative;
  min-width: 0;
}

.hosting-addon__eyebrow {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hosting-addon__title {
  margin-top: 10px;
  color: var(--ink);
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.hosting-addon__desc {
  max-width: 760px;
  margin-top: 11px;
  color: #c5bdd7;
  font-size: 14px;
  line-height: 1.65;
}

.hosting-addon__prices {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 18px;
}

.hosting-addon__prices div {
  display: flex;
  align-items: baseline;
  gap: 7px;
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 11px;
}

.hosting-addon__prices strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 28px);
  letter-spacing: -0.04em;
}

.hosting-addon__prices b {
  color: var(--cyan);
  font-weight: 400;
}

.hosting-addon__features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 18px;
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 10.5px;
}

.hosting-addon__features li::before {
  content: "✓";
  margin-right: 7px;
  color: var(--cyan);
}

.hosting-addon__cta {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  padding: 14px 18px;
  border: 1px solid rgba(0, 229, 255, 0.42);
  border-radius: 999px;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

.hosting-addon__cta span {
  color: var(--cyan);
  font-size: 17px;
}

.hosting-addon__cta:hover {
  background: rgba(0, 229, 255, 0.12);
  box-shadow: 0 0 26px rgba(0, 229, 255, 0.2);
  transform: translateY(-2px);
}

@media (max-width: 760px) {
  .hosting-addon {
    align-items: flex-start;
    flex-direction: column;
  }

  .hosting-addon__cta {
    white-space: normal;
  }
}

@media (max-width: 1080px) {
  .pricing__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .price-card {
    min-height: 510px;
  }
}

@media (max-width: 560px) {
  .pricing__grid {
    grid-template-columns: 1fr;
  }

  .price-card {
    min-height: 0;
  }

  .price-card__desc {
    min-height: 0;
  }
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */
.about__grid {
  display: grid;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
@media (min-width: 900px) {
  .about__grid {
    grid-template-columns: 0.85fr 1fr;
  }
}

.about__portrait {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--bg-2);
  /* the portrait is a tall 480x752 frame; cap it so the About column
     doesn't stretch to 1.5x the height of the copy beside it */
  aspect-ratio: 4 / 5;
}
.about__portrait img {
  width: 100%;
  height: 100%;
  /* bias the crop upward — the subject stands in the lower two thirds */
  object-fit: cover;
  object-position: 50% 32%;
  filter: saturate(1.05) contrast(1.05);
}
.about__portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 46%, rgba(5, 3, 8, 0.82)),
    linear-gradient(120deg, rgba(255, 46, 154, 0.18), transparent 42%, rgba(0, 229, 255, 0.16));
  pointer-events: none;
}
.about__frame {
  position: absolute;
  inset: -1px;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(150deg, rgba(255, 46, 154, 0.7), transparent 34%, transparent 62%, rgba(0, 229, 255, 0.7));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.about__tag {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(6, 4, 11, 0.8);
  backdrop-filter: blur(8px);
}

.about__body p {
  color: #c6bfdb;
  font-size: clamp(15px, 1.5vw, 17.5px);
  line-height: 1.78;
  margin-bottom: 20px;
}
.about__body p:last-of-type {
  margin-bottom: 0;
}
.about__body strong {
  color: var(--ink);
  font-weight: 600;
}
.about__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 18px;
  margin-top: clamp(28px, 3.4vw, 40px);
  padding-top: clamp(24px, 3vw, 32px);
  border-top: 1px solid var(--line);
}
.about__meta div {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.about__meta b {
  display: block;
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--ink);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Skills
   -------------------------------------------------------------------------- */
.skills__group + .skills__group {
  margin-top: clamp(34px, 4vw, 52px);
}
.skills__label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #b9b1cc;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.skills__label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(180, 150, 255, 0.3), transparent);
}
.skills__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 12px;
}
.skill {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px 10px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  backdrop-filter: blur(6px);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease), background-color 0.3s var(--ease);
}
.skill img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: grayscale(0.25) brightness(1.06);
  transition: filter 0.3s var(--ease), transform 0.3s var(--ease);
}
.skill span {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-align: center;
  transition: color 0.3s var(--ease);
}
.skill:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 229, 255, 0.5);
  background: rgba(24, 14, 38, 0.8);
  box-shadow: 0 12px 34px rgba(139, 61, 255, 0.28), inset 0 0 22px rgba(0, 229, 255, 0.07);
}
.skill:hover img {
  filter: none;
  transform: scale(1.08);
}
.skill:hover span {
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   Projects
   -------------------------------------------------------------------------- */
.projects__list {
  display: grid;
  gap: clamp(20px, 2.6vw, 30px);
}
@media (min-width: 900px) {
  .projects__list {
    grid-template-columns: repeat(2, 1fr);
  }
  .project:first-child {
    grid-column: 1 / -1;
  }
  /* Keep the original preview ratio so the artwork is shown in full without
     making the lead project consume too much vertical space. */
  .project:first-child .project__media {
    aspect-ratio: 1326 / 694;
  }
}

.project {
  position: relative;
  display: block;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--card);
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}
.project:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 46, 154, 0.45);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 229, 255, 0.14),
    0 0 44px rgba(139, 61, 255, 0.3);
}

.project__media {
  position: relative;
  aspect-ratio: 1326 / 694;
  overflow: hidden;
  background: #0b0713;
}
.project__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
  transition: transform 0.7s var(--ease), filter 0.5s var(--ease);
  filter: saturate(0.92) contrast(1.02);
}

/* Compact floating control for long pages. */
.scroll-top {
  position: fixed;
  right: clamp(16px, 3vw, 34px);
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 55;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(20, 14, 34, 0.66);
  color: var(--cyan);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease), transform 0.35s var(--ease), background-color 0.2s ease;
}
.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-top:hover {
  background: rgba(56, 32, 92, 0.82);
  color: var(--ink);
}
.scroll-top:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}
.scroll-top svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 979px) {
  .scroll-top {
    right: 16px;
    bottom: calc(86px + env(safe-area-inset-bottom));
  }
}
.project:hover .project__media img {
  transform: scale(1.045);
  filter: saturate(1.12) contrast(1.05);
}
.project__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(5, 3, 8, 0.9));
  pointer-events: none;
}
/* RGB fringe on hover, echoing the shader cover */
.project__glitch {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  background-size: cover;
  background-position: top center;
  mix-blend-mode: screen;
  filter: blur(1.5px);
  transform: translate3d(6px, 0, 0);
  pointer-events: none;
}
.project:nth-child(1) .project__glitch {
  background-image: url("../img/thehhpack.webp");
}
.project:nth-child(2) .project__glitch {
  background-image: url("../img/tritaksubali.webp");
}
.project:nth-child(3) .project__glitch {
  background-image: url("../img/muraproject-new.webp");
}
.project:hover .project__glitch {
  opacity: 0.22;
  animation: proj-fringe 0.9s steps(2) infinite;
}
@keyframes proj-fringe {
  0%,
  100% {
    transform: translate3d(6px, 0, 0);
  }
  50% {
    transform: translate3d(-6px, 1px, 0);
  }
}

.project__body {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: clamp(18px, 2.2vw, 26px);
}
.project__logo {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #0d0917;
}
.project__text {
  min-width: 0;
  flex: 1;
}
.project__name {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 6px;
}
.project__desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-dim);
}
.project__link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  padding: 9px 14px;
  border: 1px solid rgba(0, 229, 255, 0.32);
  border-radius: 999px;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
  white-space: nowrap;
}
.project:hover .project__link {
  background: rgba(0, 229, 255, 0.14);
  box-shadow: 0 0 22px rgba(0, 229, 255, 0.3);
}
.project__link svg {
  width: 12px;
  height: 12px;
}

/* --------------------------------------------------------------------------
   Videos
   -------------------------------------------------------------------------- */
.videos__grid {
  display: grid;
  gap: clamp(16px, 2.2vw, 24px);
}
@media (min-width: 860px) {
  .videos__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.video {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #0a0612;
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease),
    transform 0.35s var(--ease);
}
.video:hover {
  transform: translateY(-3px);
  border-color: rgba(139, 61, 255, 0.55);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55), 0 0 34px rgba(139, 61, 255, 0.26);
}
.video__facade {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  overflow: hidden;
  background: #000;
}
.video__facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease), filter 0.4s var(--ease);
  filter: saturate(0.9) brightness(0.82);
}
.video:hover .video__facade img {
  transform: scale(1.05);
  filter: saturate(1.1) brightness(0.92);
}
.video__facade::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 3, 8, 0.1), rgba(5, 3, 8, 0.55));
}
.video__play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
}
.video__play i {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(6px);
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}
.video__play i::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 13px solid #fff;
  border-block: 8px solid transparent;
  margin-left: 4px;
}
.video:hover .video__play i {
  background: var(--magenta);
  border-color: var(--magenta);
  transform: scale(1.08);
  box-shadow: 0 0 30px rgba(255, 46, 154, 0.6);
}
.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video__meta {
  padding: 14px 16px 16px;
}
.video__meta h3 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
  margin-bottom: 5px;
}
.video__meta p {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* --------------------------------------------------------------------------
   Contact / footer
   -------------------------------------------------------------------------- */
.contact {
  position: relative;
  padding-block: clamp(80px, 12vw, 160px);
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.contact__inner {
  position: relative;
  z-index: 2;
  text-align: center;
}
.contact__kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 22px;
}
.contact__title {
  font-size: clamp(38px, 9vw, 120px);
  line-height: 0.94;
  letter-spacing: -0.05em;
  font-weight: 700;
  margin-bottom: 18px;
}
.contact__line {
  font-size: clamp(15px, 1.7vw, 19px);
  color: var(--ink-dim);
  max-width: 44ch;
  margin: 0 auto clamp(30px, 4vw, 44px);
}
.contact__mail {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: clamp(14px, 2vw, 20px);
  color: var(--ink);
  padding: 16px 28px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(12, 8, 20, 0.6);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease),
    transform 0.3s var(--ease);
  word-break: break-all;
}
.contact__mail:hover {
  border-color: var(--magenta);
  box-shadow: 0 0 40px rgba(255, 46, 154, 0.35);
  transform: translateY(-2px);
}

.contact__email {
  display: inline-block;
  margin-top: 18px;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  transition: color 0.25s var(--ease);
}

.contact__email:hover {
  color: var(--cyan);
}

.contact__socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: clamp(28px, 3.4vw, 40px);
}
.contact__socials a {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b7b0c9;
  padding: 11px 18px;
  border: 1px solid rgba(180, 150, 255, 0.22);
  border-radius: 999px;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease),
    background-color 0.25s var(--ease);
}
.contact__socials a:hover {
  color: var(--ink);
  border-color: rgba(0, 229, 255, 0.45);
  background: rgba(0, 229, 255, 0.08);
}

.footer {
  position: relative;
  z-index: 3;
  border-top: 1px solid var(--line);
  padding-block: 30px;
}
.footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: #9a93ad;
}
.footer__row b {
  color: var(--ink-dim);
  font-weight: 400;
}
.footer__quote {
  color: var(--ink-dim);
  font-style: italic;
}

/* --------------------------------------------------------------------------
   Reveal
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* cursor glow (pointer devices only) */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 4;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(139, 61, 255, 0.16), transparent 62%);
  transform: translate3d(-50%, -50%, 0);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  will-change: transform;
}
@media (hover: hover) and (pointer: fine) {
  .cursor-glow.is-on {
    opacity: 1;
  }
}

/* --------------------------------------------------------------------------
   Accessibility / reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
