:root {
  --bg: #060606;
  --surface: #0e0e0e;
  --gold: #c9a84c;
  --accent: #c9a84c;
  --card-rgb: 9, 12, 18;
  --white: #f0ece4;
  --muted: #5a5a5a;
  --btn-front-bg: rgb(35, 0, 92);
  --btn-front-text: var(--white);
  --btn-front-border: rgba(255, 255, 255, .12);
  --btn-flip-bg: #060606;
  --btn-flip-text: #fbff14;
  --btn-flip-border: rgba(231, 255, 20, 0.55);
  --border: rgba(255, 255, 255, 0.07);
  --font-main: 'Space Grotesk', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --font-loader: 'Space Grotesk', sans-serif;
}

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

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-main);
  overflow-x: hidden;
  cursor: auto;
}

/* noise overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 4rem;
  border-bottom: 1px solid transparent;
  transition: border-color .4s, background .4s, backdrop-filter .4s;
}

nav.scrolled {
  border-color: var(--border);
  background: rgba(var(--card-rgb), 0.82);
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  letter-spacing: .18em;
  color: var(--gold);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: white;
  text-decoration: none;
  transition: color .25s;
}

.nav-links a:hover {
  color: var(--gold);
}

/* ── HERO ── */
#home {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 760px);
  grid-template-rows: 80px 1fr;
  justify-content: center;
  align-items: center;
  padding: 0 4rem;
  gap: 0;
  position: relative;
  overflow: hidden;
  background: #000;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  contain: paint;
}

.hero-video,
.hero-video-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-video {
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  transform: translateZ(0);
  will-change: opacity;
  backface-visibility: hidden;
  transition: opacity .45s ease;
}

.hero-video.is-ready {
  opacity: 1;
}

.hero-video-overlay {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .82) 0%, rgba(0, 0, 0, .56) 42%, rgba(0, 0, 0, .38) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, .12) 0%, rgba(0, 0, 0, .52) 100%);
}

.hero-ambient,
.hero-gridlines,
.hero-spotlight {
  position: absolute;
  pointer-events: none;
  will-change: transform, opacity;
}

.hero-ambient {
  width: clamp(220px, 34vw, 520px);
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: .48;
  filter: blur(16px);
  mix-blend-mode: screen;
  transform: translate3d(0, 0, 0);
}

.hero-ambient-a {
  top: -6%;
  right: -4%;
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 214, 10, .42), rgba(255, 214, 10, 0) 38%),
    radial-gradient(circle at 68% 58%, rgba(121, 61, 255, .55), rgba(121, 61, 255, 0) 62%);
}

.hero-ambient-b {
  bottom: -14%;
  left: 42%;
  width: clamp(260px, 38vw, 600px);
  background:
    radial-gradient(circle at 48% 50%, rgba(69, 224, 255, .26), rgba(69, 224, 255, 0) 36%),
    radial-gradient(circle at 52% 58%, rgba(104, 58, 183, .48), rgba(104, 58, 183, 0) 68%);
}

.hero-gridlines {
  inset: -12%;
  opacity: .16;
  background-image:
    linear-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .1) 1px, transparent 1px);
  background-size: 82px 82px;
  -webkit-mask-image: radial-gradient(circle at center, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, .58) 45%, transparent 78%);
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, .58) 45%, transparent 78%);
}

.hero-spotlight {
  top: 0;
  left: 0;
  width: clamp(280px, 38vw, 620px);
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: .72;
  filter: blur(18px);
  mix-blend-mode: screen;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, .18) 0%, rgba(255, 255, 255, .06) 20%, rgba(255, 255, 255, 0) 38%),
    radial-gradient(circle at center, rgba(255, 214, 10, .24) 0%, rgba(255, 214, 10, 0) 52%),
    radial-gradient(circle at center, rgba(98, 58, 182, .4) 0%, rgba(98, 58, 182, 0) 72%);
}

.hero-content {
  grid-column: 1;
  grid-row: 2;
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 760px;
  margin-top: 0;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  contain: layout paint;
  transform-style: preserve-3d;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-tag {
  font-family: var(--font-mono);
  font-size: 1rem;
  letter-spacing: .2em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
}

.hero-tag::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--gold);
}

.hero-title {
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  text-shadow: #3b1c5a 2px 2px 0, #5b2a86 4px 4px 0;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.02em;
  margin-bottom: 1.5rem;
}

.hero-title .title-keep {
  display: inline-block;
  white-space: nowrap;
}

.hero-title .title-accent {
  color: #bba905;
  display: inline-block;
  white-space: nowrap;
  text-shadow: 0 0 24px rgba(255, 214, 10, .18);
}

.hero-title-break-mobile {
  display: none;
}

.hero-title-break-desktop {
  display: inline;
}

.hero-title-break-xs {
  display: none;
}

.title-motion {
  position: relative;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.title-motion .word {
  display: inline-block;
  white-space: nowrap;
}

.title-motion .char {
  display: inline-block;
  transform: translate3d(var(--sx), var(--sy), 0) rotate(var(--sr));
  opacity: 0;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

.title-motion .title-accent .char {
  color: inherit;
}

.hero-desc {
  font-size: 1.2rem;
  line-height: 1.5;
  color: #ffffff;
  max-width: 620px;
  margin-bottom: 2.5rem;
  margin-left: auto;
  margin-right: auto;
  text-shadow: #ffffff 0.5px 0.5px 0;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-primary,
.btn-ghost {
  --btn-depth: 24px;
  position: relative;
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
  perspective: 1400px;
}

.btn-flip {
  position: relative;
  display: grid;
  transform: translateZ(0);
  transform-style: preserve-3d;
  transition: transform 1.45s cubic-bezier(.2, .75, .2, 1), filter .3s ease;
  will-change: transform;
}

.btn-face {
  grid-area: 1 / 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .9rem 2rem;
  min-height: 52px;
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
  box-shadow: 0 16px 30px rgba(0, 0, 0, .18);
  transition: transform 1.45s cubic-bezier(.2, .75, .2, 1), opacity .28s ease, color .28s ease, background .28s ease, border-color .28s ease;
}

.btn-front {
  position: relative;
  opacity: 1;
  transform: rotateX(0deg) translate3d(0, 0, 0);
}

.btn-back {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: rotateX(88deg) translate3d(0, 35%, 0);
  pointer-events: none;
}

.btn-primary {
  color: var(--btn-front-text);
}

.btn-primary .btn-front {
  background: var(--btn-front-bg);
  color: var(--btn-front-text);
  border: 1px solid var(--btn-front-border);
}

.btn-primary .btn-back {
  background: var(--btn-flip-bg);
  color: var(--btn-flip-text);
  border: 1px solid var(--btn-flip-border);
  box-shadow: 0 0 18px rgba(57, 255, 20, .12), 0 16px 30px rgba(0, 0, 0, .22);
}

.btn-ghost {
  color: var(--btn-front-text);
}

.btn-ghost .btn-front {
  background: var(--btn-front-bg);
  color: var(--btn-front-text);
  border: 1px solid var(--btn-front-border);
}

.btn-ghost .btn-back {
  background: var(--btn-flip-bg);
  color: var(--btn-flip-text);
  border: 1px solid var(--btn-flip-border);
  box-shadow: 0 0 18px rgba(57, 255, 20, .12), 0 16px 30px rgba(0, 0, 0, .22);
}

.btn-primary:hover .btn-flip,
.btn-ghost:hover .btn-flip,
.btn-primary:focus-visible .btn-flip,
.btn-ghost:focus-visible .btn-flip {
  transform: translateY(-2px);
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, .22));
}

.btn-primary:hover .btn-front,
.btn-ghost:hover .btn-front,
.btn-primary:focus-visible .btn-front,
.btn-ghost:focus-visible .btn-front {
  opacity: 0;
  transform: rotateX(-88deg) translate3d(0, -35%, 0);
}

.btn-primary:hover .btn-back,
.btn-ghost:hover .btn-back,
.btn-primary:focus-visible .btn-back,
.btn-ghost:focus-visible .btn-back {
  opacity: 1;
  transform: rotateX(0deg) translate3d(0, 0, 0);
}

.btn-primary:active .btn-flip,
.btn-ghost:active .btn-flip {
  transform: translateY(-1px) scale(.98);
  transition-duration: 1.12s;
}

.btn-primary:focus-visible,
.btn-ghost:focus-visible {
  outline: none;
}

.btn-primary:focus-visible .btn-front,
.btn-ghost:focus-visible .btn-front {
  box-shadow: 0 0 0 2px rgba(240, 236, 228, .2), 0 0 0 4px rgba(201, 168, 76, .45), 0 16px 30px rgba(0, 0, 0, .18);
}

.btn-face svg {
  flex-shrink: 0;
}

.hero-img-frame {
  position: relative;
  width: 380px;
  height: 480px;

}

.hero-img-frame::before {
  content: '';
  position: absolute;
  inset: -1px;
  border: 1px solid #ffd60a;
  transform: translate3d(12px, 12px, 0);
  pointer-events: none;
}

.hero-tag,
.hero-desc,
.hero-actions,
.hero-img-frame {
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

.hero-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;

}

.hero-img-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: #ffd60a;
  color: #000000;
  font-family: var(--font-mono);
  font-size: .80rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .75rem 1.25rem;

  transform: translateZ(28px);
}

/* ── SECTIONS ── */
.section-wrap {
  padding: 8rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.about-section {
  position: relative;
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: 4rem;
  padding-right: 4rem;
  padding-top: 6.5rem;
  min-height: 80vh;
  isolation: isolate;
  contain: style;
}

.about-section> :not(.about-visual) {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.about-transition {
  width: min(36vw, 340px);
  height: 1px;
  margin-inline: auto;
  margin-bottom: 1.5rem;
  background: rgba(255, 255, 255, .08);
  overflow: hidden;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  contain: paint;
}

.about-label {
  text-align: center;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

.about-transition span {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(45, 150, 45, 0), rgba(57, 255, 20, .95) 32%, rgba(45, 150, 45, .15));
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.45);
  transform: translate3d(0, 0, 0);
}

.about-section .section-title {
  max-width: none;
  text-align: center;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  margin-bottom: 2.5rem;
}

.about-visual {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  contain: paint;
  will-change: transform, opacity;
  transform: translate3d(0, 0, 0);
  background:
    radial-gradient(circle at 16% 34%, rgba(76, 29, 149, .08), rgba(76, 29, 149, 0) 24%),
    radial-gradient(circle at 50% 52%, rgba(76, 29, 149, .06), rgba(76, 29, 149, 0) 34%),
    radial-gradient(circle at 84% 30%, rgba(76, 29, 149, .16), rgba(76, 29, 149, 0) 30%),
    radial-gradient(circle at 88% 68%, rgba(57, 255, 20, .05), rgba(57, 255, 20, 0) 24%);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 420px);
  gap: clamp(2.5rem, 5vw, 6rem);
  align-items: center;
}

.about-copy {
  max-width: 620px;
  position: relative;
  overflow: hidden;
  contain: paint;
  transform: translateZ(0);
  backface-visibility: hidden;
  padding: clamp(1.6rem, 2.6vw, 2.4rem);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(10, 13, 19, .985), rgba(13, 17, 24, .96)),
    radial-gradient(circle at top left, rgba(255, 214, 10, .06), transparent 30%),
    radial-gradient(circle at bottom right, rgba(72, 108, 255, .12), transparent 34%);
  box-shadow:
    0 26px 60px rgba(0, 0, 0, .24),
    inset 0 1px 0 rgba(255, 255, 255, .05);
}

.about-copy::before,
.about-copy::after {
  content: '';
  position: absolute;
  pointer-events: none;
}

.about-copy::before {
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .45), transparent 72%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .45), transparent 72%);
  opacity: .24;
}

.about-copy::after {
  top: -12%;
  right: -8%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 214, 10, .12), rgba(255, 214, 10, 0) 70%);
  transform: translateZ(0);
  will-change: filter;

  opacity: .72;
}

.about-copy>* {
  position: relative;
  z-index: 1;
}

.about-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: 1rem;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.about-card-controls {
  display: flex;
  align-items: center;
  gap: .42rem;
}

.about-card-dot {
  width: .7rem;
  height: .7rem;
  border-radius: 50%;
  box-shadow: 0 0 10px currentColor;
}

.about-card-dot:nth-child(1) {
  color: #ff5f57;
  background: currentColor;
}

.about-card-dot:nth-child(2) {
  color: #febc2e;
  background: currentColor;
}

.about-card-dot:nth-child(3) {
  color: #28c840;
  background: currentColor;
}

.about-card-file {
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(240, 236, 228, .52);
}

.about-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: 1.25rem;
}

.about-card-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: .45rem .8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .03);
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(240, 236, 228, .76);
}

.about-kicker {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.6;
  color: var(--white);
  margin-bottom: 1.25rem;
  max-width: 18ch;
}

.about-text {
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  line-height: 1.9;
  color: rgba(240, 236, 228, .72);
}

.about-text+.about-text {
  margin-top: 1rem;
}

.about-photo {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  perspective: 1400px;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;

}

.about-photo::before {
  content: '';
  position: absolute;
  inset: 11% 13%;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 214, 10, .16), rgba(255, 214, 10, 0) 50%),
    radial-gradient(circle, rgba(73, 121, 255, .2), rgba(73, 121, 255, 0) 72%);
  transform: translateZ(0);
  will-change: filter;

  pointer-events: none;
  opacity: .62;
  transition: transform .5s ease, opacity .5s ease, filter .5s ease;
}

.about-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .05), transparent 38%),
    radial-gradient(circle at 82% 18%, rgba(255, 214, 10, .09), transparent 24%);
  border: 1px solid rgba(255, 255, 255, .06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .05),
    0 22px 40px rgba(0, 0, 0, .14);
  pointer-events: none;
  transition: transform .5s ease, border-color .5s ease, box-shadow .5s ease;
}

.about-photo .hero-img-frame {
  width: min(100%, 380px);
  height: auto;
  aspect-ratio: 4 / 5;
  position: relative;
  overflow: hidden;
  backface-visibility: hidden;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, .1);
  background:
    linear-gradient(180deg, rgba(8, 11, 17, .98), rgba(12, 15, 22, .92));
  box-shadow:
    0 28px 65px rgba(0, 0, 0, .28),
    inset 0 1px 0 rgba(255, 255, 255, .06);
  transform: translate3d(0, 0, 18px);
  transition:
    transform .45s cubic-bezier(.2, .75, .2, 1),
    box-shadow .45s ease,
    border-color .45s ease;
}

.about-photo .hero-img-frame::before {
  inset: auto 18px 18px auto;
  width: calc(100% - 36px);
  height: calc(100% - 36px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, .14);
  transform: translate3d(12px, 12px, 0);
  transition: transform .45s cubic-bezier(.2, .75, .2, 1), border-color .45s ease;
}

.about-photo .hero-img-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .16), transparent 22%),
    linear-gradient(180deg, transparent 54%, rgba(0, 0, 0, .1) 100%);
  pointer-events: none;
  transition: opacity .45s ease;
}

.about-photo .hero-img-frame img {
  filter: grayscale(4%) contrast(1.06) saturate(1.04);
  transform: scale(1.02);
  transition: transform .55s cubic-bezier(.2, .75, .2, 1), filter .55s ease;
}

.about-photo .hero-img-badge {
  bottom: 1.15rem;
  right: 1.15rem;
  left: auto;
  transform: none;
  background: rgba(10, 13, 19, .88);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow:
    0 12px 24px rgba(0, 0, 0, .22),
    inset 0 1px 0 rgba(255, 255, 255, .04);
  transition:
    transform .35s ease,
    box-shadow .35s ease,
    border-color .35s ease,
    background .35s ease;
}

.about-photo .hero-img-badge::before {
  content: '$ ';
  color: var(--gold);
}

.about-photo:hover::before {
  opacity: 1;
  filter: blur(22px);
  transform: scale(1.08);
}

.about-photo:hover::after {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, .1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .06),
    0 28px 52px rgba(0, 0, 0, .18);
}

.about-photo:hover .hero-img-frame {
  border-color: rgba(255, 255, 255, .14);
  box-shadow:
    0 36px 76px rgba(0, 0, 0, .34),
    inset 0 1px 0 rgba(255, 255, 255, .08);
  transform: translate3d(0, -10px, 24px);
}

.about-photo:hover .hero-img-frame::before {
  border-color: rgba(255, 214, 10, .28);
  transform: translate3d(18px, 18px, 0);
}

.about-photo:hover .hero-img-frame::after {
  opacity: .9;
}

.about-photo:hover .hero-img-frame img {
  filter: grayscale(0%) contrast(1.08) saturate(1.08);
  transform: scale(1.07);
}

.about-photo:hover .hero-img-badge {
  transform: translateY(-4px);
  background: rgba(12, 16, 24, .94);
  border-color: rgba(255, 214, 10, .18);
  box-shadow:
    0 18px 30px rgba(0, 0, 0, .28),
    inset 0 1px 0 rgba(255, 255, 255, .05);
}

.section-label {
  font-family: var(--font-mono);
  font-size: .9rem;
  letter-spacing: .25em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: .75rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.1;
  margin-bottom: 3rem;
}

/* ── SKILLS ── */
.skills-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--surface);
  padding: 15rem 4rem;
}

.skills-section::before,
.projects-section::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: 88px 88px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .85) 18%, rgba(0, 0, 0, .85) 82%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .85) 18%, rgba(0, 0, 0, .85) 82%, transparent 100%);
  opacity: .24;
}

.skills-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
}

.section-spotlight {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: clamp(280px, 40vw, 640px);
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: .48;
  filter: blur(30px);
  pointer-events: none;
  mix-blend-mode: screen;
  will-change: transform, opacity;
  transform: translate3d(0, 0, 0);
}

.skills-spotlight {
  background:
    radial-gradient(circle at center, rgba(255, 214, 10, .2) 0%, rgba(255, 214, 10, 0) 42%),
    radial-gradient(circle at center, rgba(102, 61, 181, .34) 0%, rgba(102, 61, 181, 0) 70%);
}

.skills-section .section-label,
.skills-section .section-title {
  text-align: center;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--border);
  position: relative;
  z-index: 1;
}

.skill-item {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  border: 1px solid transparent;
  transition: background .3s, border-color .3s, box-shadow .3s;
}

.skill-item::before,
.skill-item::after {
  content: '';
  position: absolute;
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s ease, transform .35s ease;
}

.skill-item::before {
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .05), transparent 34%),
    radial-gradient(circle at 18% 18%, rgba(255, 214, 10, .12), transparent 40%);
}

.skill-item::after {
  top: -24%;
  left: -8%;
  width: 72%;
  height: 72%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 214, 10, .22), rgba(255, 214, 10, 0) 68%);
  transform: translate3d(-8%, -8%, 0);
}

.skill-item:hover {
  background: rgba(201, 168, 76, .08);
  border-color: rgba(201, 168, 76, .18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 18px 34px rgba(0, 0, 0, .24);
}

.skill-item:hover::before,
.skill-item:hover::after {
  opacity: 1;
}

.skill-item:hover::after {
  transform: translate3d(6%, 6%, 0);
}

.skill-icon {
  font-size: 1.85rem;
  line-height: 1;
}

.skill-name {
  font-size: 1.2rem;
  font-weight: 600;
}

.skill-bar-track {
  height: 2px;
  background: var(--border);
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  width: 100%;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1s cubic-bezier(.4, 0, .2, 1);
  box-shadow: 0 0 18px rgba(201, 168, 76, .35);
}

.skill-level {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--muted);
}

/* ── PROJECTS ── */
.projects-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 8rem 4rem;
  background: var(--surface);
}

.projects-spotlight {
  background:
    radial-gradient(circle at center, rgba(255, 214, 10, .18) 0%, rgba(255, 214, 10, 0) 40%),
    radial-gradient(circle at center, rgba(74, 20, 140, .42) 0%, rgba(74, 20, 140, 0) 68%);
}

.projects-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  user-select: auto;
  contain: none;
}

.projects-section .section-label,
.projects-section .section-title {
  text-align: center;
}

.projects-section .section-title {
  letter-spacing: 0;
}

.projects-section .section-title .char {
  margin-right: 0.015em;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.project-card {
  --project-glow-x: 50%;
  --project-glow-y: 30%;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  contain: layout paint;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(9, 12, 18, .78);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .18);
  transform-style: preserve-3d;
  transition: border-color .3s ease, box-shadow .3s ease, background .3s ease;
}

.project-card::before,
.project-card::after {
  content: '';
  position: absolute;
  pointer-events: none;
}

.project-card::before {
  inset: 0;
  background:
    radial-gradient(circle at var(--project-glow-x) var(--project-glow-y), rgba(255, 255, 255, .16), transparent 24%),
    linear-gradient(145deg, rgba(255, 214, 10, .09), rgba(255, 214, 10, 0) 36%, rgba(100, 40, 230, .16) 76%, transparent 100%);
  opacity: .72;
}

.project-card::after {
  inset: -18% auto auto -35%;
  width: 55%;
  height: 150%;
  background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, .18) 34%, rgba(255, 214, 10, .22) 50%, transparent 68%);
  opacity: 0;
  transform: rotate(14deg);
  filter: blur(4px);
  transition: opacity .3s ease;
}

.project-card:hover {
  border-color: rgba(201, 168, 76, .2);
  background: rgba(11, 15, 22, .92);
  box-shadow: 0 28px 68px rgba(0, 0, 0, .34);
}

.project-card:hover::after {
  opacity: 1;
}

.project-img {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #111;
  transform: translateZ(16px);
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-body {
  padding: 1.75rem;
  position: relative;
  z-index: 1;
  transform: translateZ(28px);
}

.project-num {
  font-family: var(--font-mono);
  font-size: .84rem;
  color: var(--gold);
  letter-spacing: .17em;
  margin-bottom: .6rem;
}

.project-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: .85rem;
  line-height: 1.44;
}

.project-desc {
  font-size: 1.08rem;
  line-height: 1.9;
  color: rgba(240, 236, 228, .45);
  margin-bottom: 1.5rem;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  transition: color .2s ease;
}

.project-link svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.project-card:hover .project-link {
  color: #f7d571;
}

/* ── CONTACT ── */
.contact-section {
  background: var(--surface);
  padding: 8rem 4rem;
  position: relative;
  overflow: hidden;
}

.contact-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}

.contact-big {
  font-size: clamp(4rem, 8vw, 9rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: .9;
  color: rgba(240, 236, 228, .06);
  pointer-events: none;
  user-select: none;
  margin-top: 1rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-row {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.contact-label {
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
}

.contact-value {
  font-size: 1.1rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--white);
  transition: color .2s;
}

.contact-value:hover {
  color: var(--gold);
}

.contact-cta {
  margin-top: 1rem;
  align-self: flex-start;
}

/* ── FOOTER ── */
footer {
  padding: 2rem 4rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer p {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--white);
}

.footer-meta {
  font-size: .8rem;
  letter-spacing: .1em;
}

/* ── PAGE LOADER ────────────────────────────── */
@keyframes gradient-animation {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

#loader {
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2rem;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #1a0b2e, #3b1c5a, #5b2a86);
  background-size: 180% 180%;
  animation: gradient-animation 3s ease infinite;
}

.loader-name {
  font-family: var(--font-loader);
  font-size: clamp(32px, 6vw, 80px);
  font-weight: 100;
  color: var(--white);
  letter-spacing: -0.03em;
  opacity: 0;
  transform: translateY(20px);
}

.loader-bar-wrap {
  width: 200px;
  height: 1px;
  background: rgb(211, 211, 211);
  position: relative;
  overflow: hidden;
}

.loader-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--accent);
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
}

.loader-counter {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgb(211, 211, 211);
  letter-spacing: 0.2em;
}

/* ── MOBILE ── */
.projects-inner {
  padding: 0;
}

.projects-content {
  position: relative;
  z-index: 2;
}

.projects-grid {
  gap: 1.5rem;
}

.project-card {
  border-radius: 22px;
}

.project-img {
  aspect-ratio: 16 / 9.4;
}

.project-body {
  padding: 1.5rem;
}

.project-title {
  font-size: 1.2rem;
}

.project-desc {
  font-size: 1.08rem;
  line-height: 1.68;
}


@media (max-width: 1440px) and (min-width: 1025px) {
  .hero-media {
    inset: 0;
  }

  .hero-video {
    object-fit: cover;
    object-position: 60% center;
    transform: scale(1.015) translateZ(0);
  }
}

@media (max-width: 1366px) and (min-width: 1025px) {

  nav,
  .about-section,
  .skills-section,
  .projects-section,
  .contact-section,
  footer {
    padding-left: 3rem;
    padding-right: 3rem;
  }

  #home {
    padding: 0 3rem;
    gap: 2.5rem;
  }

  .hero-title {
    font-size: clamp(2.9rem, 4.8vw, 4.8rem);
  }

  .hero-desc {
    max-width: 440px;
    font-size: 1.08rem;
  }

  .hero-img-frame {
    width: 330px;
    height: 420px;
  }

  .about-section {
    padding-top: 5.75rem;
    padding-bottom: 4rem;
  }

  .about-layout {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
    gap: 2.75rem;
  }

  .about-copy {
    padding: 1.9rem;
  }

  .projects-inner,
  .projects-grid {
    max-width: 1080px;
  }

  .projects-grid {
    gap: 1.25rem;
  }

  .project-card {
    border-radius: 20px;
  }

  .project-img {
    aspect-ratio: 16 / 9.2;
  }

  .project-body {
    padding: 1.25rem;
  }

  .project-title {
    font-size: 1.14rem;
    line-height: 1.35;
  }

  .project-desc {
    font-size: .98rem;
    line-height: 1.62;
    margin-bottom: 1.15rem;
  }
}

@media (max-width: 900px) {
  .section-spotlight {
    width: min(70vw, 420px);
    opacity: .34;
    filter: blur(28px);
  }

  .hero-ambient {
    opacity: .36;
    filter: blur(24px);
  }

  .hero-gridlines {
    opacity: .12;
    background-size: 64px 64px;
  }

  nav {
    padding: 1.25rem 1.5rem;
  }

  .nav-links {
    display: none;
  }

  #home {
    grid-template-columns: 1fr;
    grid-template-rows: 100px 1fr;
    padding: 0 1.5rem 4rem;
    text-align: center;
  }

  .hero-media {
    inset: 0;
  }

  .hero-video {
    object-position: 60% center;
    transform: scale(1.01) translateZ(0);
  }

  .hero-video-overlay {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, .42) 0%, rgba(0, 0, 0, .62) 100%),
      linear-gradient(90deg, rgba(0, 0, 0, .64) 0%, rgba(0, 0, 0, .34) 52%, rgba(0, 0, 0, .58) 100%);
  }

  .hero-actions {
    justify-content: center;
  }

  .section-wrap,
  .skills-section,
  .projects-section,
  .contact-section {
    padding: 5rem 1.5rem;
  }

  .about-section {
    width: auto;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-top: 5rem;
    padding-bottom: 3.5rem;
  }

  .about-section> :not(.about-visual) {
    max-width: none;
  }

  .about-transition {
    width: min(100%, 260px);
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-copy {
    max-width: none;
  }

  .about-kicker {
    max-width: none;
  }

  .about-photo {
    justify-content: center;
    padding: 1rem 0 1.4rem;
  }

  .about-visual {
    display: none;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-inner {
    padding: 1.5rem;
  }

  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  footer {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .hero-content {
    grid-column: 1;
    grid-row: 2;
  }
}

@media (max-width: 1024px) {
  .hero-media {
    inset: 0;
  }

  .hero-video {
    object-fit: contain;
    object-position: center 14%;
    transform: none;
  }

  .hero-video-overlay {
    background:
      linear-gradient(90deg, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .46) 42%, rgba(0, 0, 0, .42) 100%),
      linear-gradient(180deg, rgba(0, 0, 0, .12) 0%, rgba(0, 0, 0, .58) 100%);
  }
}

@media (max-width: 768px) {
  #home {
    grid-template-rows: 92px 1fr;
    padding: 0 2rem 4.5rem;
  }

  .hero-media {
    inset: 0;
  }

  .hero-video {
    object-fit: contain;
    object-position: center center;
    transform: none;
  }

  .hero-video-overlay {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, .28) 0%, rgba(0, 0, 0, .56) 34%, rgba(0, 0, 0, .78) 100%),
      radial-gradient(circle at center, rgba(0, 0, 0, .04) 0%, rgba(0, 0, 0, .54) 74%);
  }

  .hero-content {
    max-width: 640px;
    margin: 0 auto;
    padding-top: 1.25rem;
  }

  .hero-tag {
    justify-content: center;
    font-size: .78rem;
  }

  .hero-title {
    font-size: clamp(2.8rem, 9vw, 3.3rem);
    line-height: 1.1;
    margin-bottom: 1.2rem;
  }

  .hero-title-break-mobile {
    display: inline;
  }

  .hero-title-break-desktop {
    display: none;
  }

  .hero-desc {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.02rem;
    line-height: 1.58;
    margin-bottom: 2rem;
  }

  .hero-actions {
    justify-content: center;
    gap: .85rem;
  }

  .about-photo .hero-img-frame {
    width: min(320px, 78vw);
  }

  .projects-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
  }

  .projects-inner {
    max-width: 640px;
  }

  .project-card {
    max-width: none;
    margin: 0;
  }

  .project-img {
    aspect-ratio: 16 / 8.4;
  }

  .project-body {
    padding: 1.1rem;
  }
}

@media (max-width: 425px) {
  #home {
    width: 100%;
    grid-template-rows: 84px 1fr;
    padding: 0 1.1rem 3rem;
    justify-items: center;
    text-align: center;
  }

  .hero-media {
    display: none;
  }

  .hero-content {
    max-width: 300px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-self: center;
    text-align: center;
    padding-top: .75rem;
  }

  .hero-tag {
    max-width: 290px;
    justify-content: center;
    flex-wrap: wrap;
    font-size: .56rem;
    letter-spacing: .14em;
    gap: .55rem;
    margin-bottom: 1rem;
  }

  .hero-tag::before {
    width: 24px;
  }

  .hero-title {
    width: min(100%, 292px);
    max-width: 372px;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(1.96rem, 8.8vw, 2.26rem);
    line-height: 1.12;
    letter-spacing: -.016em;
    text-shadow: #3b1c5a 1.25px 1.25px 0, #5b2a86 2.5px 2.5px 0;
    margin-bottom: 1rem;
  }

  .hero-title-break-xs {
    display: inline;
  }

  .hero-desc {
    max-width: 290px;
    width: 100%;
    font-size: .82rem;
    line-height: 1.48;
    margin-bottom: 1.4rem;
  }

  .hero-actions {
    width: min(100%, 280px);
    align-items: center;
    flex-direction: column;
    gap: .7rem;
  }

  .btn-primary,
  .btn-ghost {
    width: 100%;
    max-width: 300px;
  }

  .btn-face {
    min-height: 50px;
    padding: .85rem 1rem;
    font-size: .68rem;
    letter-spacing: .12em;
  }

  .about-layout {
    gap: 2rem;
  }

  .about-card-file {
    font-size: .68rem;
  }

  .about-card-chip {
    font-size: .66rem;
    padding: .42rem .72rem;
  }

  .about-photo {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    padding-top: 1.25rem;
    padding-bottom: 1.6rem;
  }

  .about-photo .hero-img-frame {
    width: min(290px, 82vw);
  }

  .about-photo .hero-img-frame::before {
    inset: 10px;
  }

  .about-photo .hero-img-badge {
    right: .8rem;
    left: auto;
    width: auto;
    max-width: calc(100% - 1.6rem);
    padding: .56rem .7rem;
    font-size: .48rem;
    letter-spacing: .14em;
    bottom: .8rem;
  }
}

@media (max-width: 900px) and (orientation: landscape) {
  .hero-media {
    inset: 0;
  }

  .hero-video {
    object-fit: contain;
    object-position: center center;
    transform: none;
  }
}

@media (max-width: 375px) {

  html,
  body {
    width: 100%;
    overflow-x: hidden;
  }

  #home,
  .section-wrap,
  .skills-section,
  .projects-section,
  .contact-section,
  footer {
    width: 100%;
    max-width: 100%;
  }

  #home {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-content {
    max-width: 268px;
  }

  .hero-title {
    width: min(100%, 256px);
    max-width: 256px;
    font-size: clamp(1.78rem, 8.35vw, 2rem);
    line-height: 1.15;
    letter-spacing: -.012em;
    text-shadow: #3b1c5a 1px 1px 0, #5b2a86 2px 2px 0;
  }

  .about-section {
    width: auto;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .projects-inner {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 320px) {
  .hero-content {
    max-width: 272px;
  }

  .skills-inner {
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
  }

  .skills-section .section-title {
    white-space: nowrap;
    font-size: 1.42rem;
    letter-spacing: -.03em;
  }

  .skills-section .section-title .char {
    transform: none !important;
    opacity: 1 !important;
  }

  .skills-grid {
    grid-template-columns: 1fr;
    max-width: 280px;
    margin: 0 auto;
  }

  .hero-title {
    width: min(100%, 244px);
    max-width: 244px;
    box-sizing: border-box;
    padding-inline: .12rem;
    font-size: clamp(1.82rem, 8vw, 1.82rem);
    line-height: 1.18;
    letter-spacing: -.008em;
    text-shadow: #3b1c5a .9px .9px 0, #5b2a86 1.8px 1.8px 0;
  }
}

html.low-end-device body::before {
  opacity: .015;
  background-size: 240px;
}

html.low-end-device nav.scrolled {
  background: rgba(var(--card-rgb), 0.82);
}

html.low-end-device .hero-gridlines,
html.low-end-device .section-spotlight {
  opacity: .18;
}

html.low-end-device .hero-ambient,
html.low-end-device .hero-spotlight,
html.low-end-device .about-copy::after,
html.low-end-device .about-photo::before {
  filter: none;
}

html.low-end-device .hero-gridlines {
  -webkit-mask-image: none;
  mask-image: none;
  opacity: .08;
}

html.low-end-device .about-copy {
  backdrop-filter: none;
}

html.low-end-device #loader {
  background-size: 140% 140%;
  animation-duration: 5.5s;
}

html.motion-fallback #loader {
  display: none !important;
}

html.motion-fallback .hero-video {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  #loader {
    animation: none !important;
  }

  .hero-ambient,
  .hero-gridlines,
  .hero-spotlight,
  .section-spotlight {
    transition: none !important;
  }

  .hero-video,
  .btn-flip,
  .btn-face,
  .skill-bar-fill {
    transition-duration: 0.01ms !important;
  }
}
