/* =========================================================
   KAE PORTFOLIO — EXPERIMENTAL / AWWWARDS-INSPIRED
   ========================================================= */

:root {
  --bg: #070709;
  --bg-2: #0b0b0f;
  --text: #f5f3ef;
  --muted: #98989f;
  --muted-2: #64646d;
  --line: rgba(255,255,255,.11);
  --line-strong: rgba(255,255,255,.2);
  --accent: #b39cff;
  --accent-2: #69e7f5;
  --acid: #c6ff67;
  --section: min(calc(100% - 52px), 1380px);
  --ease: cubic-bezier(.16,1,.3,1);
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  background:
    radial-gradient(circle at 18% 8%, rgba(109, 73, 255, .09), transparent 32rem),
    radial-gradient(circle at 88% 22%, rgba(63, 200, 234, .055), transparent 34rem),
    var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

body.loading {
  overflow: hidden;
}

::selection {
  background: var(--accent);
  color: #09090c;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
  font: inherit;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='5' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .12;
}

.orb-a {
  width: 520px;
  height: 520px;
  top: 16%;
  left: -10%;
  background: #754cff;
}

.orb-b {
  width: 420px;
  height: 420px;
  right: -8%;
  top: 42%;
  background: #4bd9ff;
}

/* loader */

.loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #08080b;
  display: grid;
  place-items: center;
  transition:
    opacity .85s var(--ease),
    visibility .85s var(--ease);
}

.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-inner {
  width: min(calc(100% - 44px), 620px);
}

.loader-brand {
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  letter-spacing: -.08em;
  font-size: clamp(4.6rem, 13vw, 8.7rem);
  line-height: .8;
}

.loader-brand span {
  font-size: .7rem;
  vertical-align: top;
  letter-spacing: 0;
  color: var(--accent);
}

.loader-line {
  height: 1px;
  background: rgba(255,255,255,.1);
  margin-top: 44px;
  overflow: hidden;
}

.loader-line i {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--text);
}

.loader-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-family: "DM Mono", monospace;
  font-size: .67rem;
  color: var(--muted);
}

/* cursor */

.cursor,
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
}

.cursor {
  width: 78px;
  height: 78px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(8px);
  transition:
    width .3s var(--ease),
    height .3s var(--ease),
    background .3s var(--ease),
    border .3s var(--ease),
    opacity .2s ease;
  opacity: 0;
}

.cursor span {
  font-family: "DM Mono", monospace;
  font-size: .57rem;
  letter-spacing: .06em;
  opacity: 0;
  transition: opacity .2s ease;
}

.cursor.is-active {
  width: 96px;
  height: 96px;
  background: rgba(179,156,255,.12);
  border-color: rgba(179,156,255,.38);
}

.cursor.is-active span {
  opacity: 1;
}

.cursor-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  opacity: 0;
}

.section-shell {
  width: var(--section);
  margin: 0 auto;
}

/* header */

.site-header {
  position: fixed;
  z-index: 500;
  top: 0;
  left: 50%;
  width: var(--section);
  transform: translateX(-50%);
  height: 92px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(7,7,9,.94), rgba(7,7,9,.72) 72%, transparent);
  backdrop-filter: blur(18px);
}

.brand {
  justify-self: start;
  font-family: "Manrope", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -.06em;
  display: inline-flex;
  align-items: flex-start;
  gap: 4px;
}

.brand-mark {
  font-size: .58rem;
  color: var(--accent);
}

.header-center {
  display: flex;
  gap: 28px;
  font-family: "DM Mono", monospace;
  font-size: .62rem;
  letter-spacing: .08em;
  color: var(--muted);
}

.availability {
  display: flex;
  align-items: center;
  gap: 7px;
}

.availability i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 14px rgba(198,255,103,.7);
}

.menu-toggle {
  justify-self: end;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: "DM Mono", monospace;
  font-size: .64rem;
  letter-spacing: .08em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0 10px 16px;
}

.menu-toggle b {
  width: 28px;
  height: 1px;
  background: var(--text);
  position: relative;
}

.menu-toggle b::after {
  content: "";
  position: absolute;
  right: 0;
  top: 6px;
  width: 18px;
  height: 1px;
  background: var(--text);
}

/* menu */

.menu-panel {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  visibility: hidden;
}

.menu-panel.open {
  visibility: visible;
  pointer-events: auto;
}

.menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.58);
  opacity: 0;
  transition: opacity .5s ease;
}

.menu-panel.open .menu-backdrop {
  opacity: 1;
}

.menu-content {
  position: absolute;
  top: 0;
  right: 0;
  width: min(720px, 92vw);
  height: 100%;
  background: #111116;
  border-left: 1px solid var(--line);
  padding: 34px 40px;
  transform: translateX(100%);
  transition: transform .72s var(--ease);
  display: flex;
  flex-direction: column;
}

.menu-panel.open .menu-content {
  transform: translateX(0);
}

.menu-head,
.menu-footer {
  display: flex;
  justify-content: space-between;
  font-family: "DM Mono", monospace;
  font-size: .64rem;
  color: var(--muted);
}

.menu-head button {
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--text);
  font-family: "DM Mono", monospace;
  font-size: .64rem;
}

.menu-nav {
  margin: auto 0;
  display: grid;
}

.menu-nav a {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  position: relative;
  font-family: "Manrope", sans-serif;
  font-size: clamp(2.8rem, 6vw, 5.1rem);
  line-height: 1;
  letter-spacing: -.06em;
  overflow: hidden;
}

.menu-nav a::before {
  content: attr(data-index);
  position: absolute;
  top: 20px;
  right: 2px;
  font: 400 .64rem "DM Mono", monospace;
  color: var(--muted);
}

.menu-nav a span {
  display: block;
  transition: transform .4s var(--ease);
}

.menu-nav a:hover span {
  transform: translateX(20px);
}

/* hero */

.hero {
  min-height: 100svh;
  padding-top: 128px;
  padding-bottom: 28px;
}

.hero-label {
  display: flex;
  justify-content: space-between;
  font-family: "DM Mono", monospace;
  font-size: .62rem;
  color: var(--muted);
  letter-spacing: .06em;
}

.hero-title-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 45px;
  align-items: end;
  margin-top: 40px;
}

.hero-title {
  font-family: "Manrope", sans-serif;
  font-size: clamp(5rem, 12.8vw, 12rem);
  line-height: .93;
  letter-spacing: -.025em;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-title .line:nth-child(2){
  font-size: 0.52em;
}

.hero-title .line {
  display: block;
}

.hero-title .outline {
  -webkit-text-stroke: 1px rgba(245,243,239,.86);
  color: transparent;
}

.hero-title .italic {
  font-style: italic;
  font-weight: 500;
  padding-left: .22em;
}

.hero-side-note {
  align-self: end;
  padding-bottom: 12px;
}

.hero-side-note p {
  color: var(--muted);
  font-size: .86rem;
  max-width: 220px;
}

.cursor,
.cursor-dot {
  display: none !important;
}

body {
  cursor: auto;
}

.round-link {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-top: 28px;
  background: var(--text);
  color: #0a0a0d;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  font-family: "DM Mono", monospace;
  font-size: .64rem;
  transition: transform .35s var(--ease);
}

.round-link b {
  font-size: 1.4rem;
  font-weight: 400;
}

.round-link:hover {
  transform: rotate(-8deg) scale(1.04);
}

.hero-stage {
  height: clamp(360px, 42vw, 600px);
  margin-top: 64px;
  border: 1px solid var(--line);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 28% 32%, rgba(129,94,255,.15), transparent 36%),
    radial-gradient(circle at 80% 60%, rgba(70,204,234,.08), transparent 34%),
    #0a0a0e;
  display: grid;
  place-items: center;
  perspective: 1200px;
}

.stage-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(to bottom, transparent, black 18%, black 82%, transparent);
}

.stage-card {
  width: min(70%, 720px);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(12,12,17,.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 45px 100px rgba(0,0,0,.34);
  transform-style: preserve-3d;
  will-change: transform;
  position: relative;
  z-index: 3;
}

.stage-top {
  height: 48px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 17px;
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: .62rem;
}

.stage-dots {
  display: flex;
  gap: 6px;
}

.stage-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
}

.code-window {
  padding: clamp(22px, 4vw, 42px);
  font-family: "DM Mono", monospace;
  font-size: clamp(.72rem, 1.1vw, .9rem);
  line-height: 1.9;
  color: #dad8de;
}

.code-window .indent { padding-left: 1.6em; }
.code-purple { color: #c4b5fd; }
.code-green { color: #9af2bc; }
.code-dim { color: #5f5f68; }

.caret {
  display: inline-block;
  width: 7px;
  height: 14px;
  margin-left: 5px;
  vertical-align: -2px;
  background: #e7e5e4;
  animation: blink .9s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.float-card {
  position: absolute;
  z-index: 4;
  min-width: 126px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: rgba(15,15,20,.86);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 50px rgba(0,0,0,.2);
  animation: floating 5s ease-in-out infinite;
}

.float-card span,
.float-card small {
  display: block;
}

.float-card span {
  font-family: "DM Mono", monospace;
  font-size: .63rem;
}

.float-card small {
  font-family: "DM Mono", monospace;
  color: var(--muted);
  font-size: .54rem;
  margin-top: 5px;
}

.float-a { left: 8%; top: 17%; }
.float-b { right: 6%; top: 28%; animation-delay: -1.6s; }
.float-c { right: 13%; bottom: 13%; animation-delay: -3s; }

@keyframes floating {
  50% { transform: translateY(-10px) rotate(1deg); }
}

.stage-stamp {
  position: absolute;
  left: 18px;
  bottom: 15px;
  display: flex;
  gap: 9px;
  align-items: center;
  font-family: "DM Mono", monospace;
  font-size: .55rem;
  color: var(--muted-2);
}

.stage-stamp b {
  color: var(--accent);
  font-weight: 400;
}

.hero-bottom {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  margin-top: 14px;
  font-family: "DM Mono", monospace;
  font-size: .57rem;
  color: var(--muted-2);
}

.scroll-track {
  height: 1px;
  background: var(--line);
  overflow: hidden;
}

.scroll-track i {
  width: 20%;
  height: 100%;
  display: block;
  background: var(--text);
  animation: scrollTrack 2.2s ease-in-out infinite;
}

@keyframes scrollTrack {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(520%); }
}

/* marquee */

.marquee-section {
  margin-top: 110px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  transform: rotate(-1.5deg) scale(1.03);
  background: #111116;
}

.marquee-track {
  padding: 22px 0;
  white-space: nowrap;
}

.marquee-row {
  display: inline-flex;
  align-items: center;
  gap: 30px;
  min-width: max-content;
  animation: marquee 24s linear infinite;
}

.marquee-row span {
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.5rem, 3vw, 3rem);
  letter-spacing: -.04em;
}

.marquee-row i {
  color: var(--accent);
  font-style: normal;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* shared section */

.about,
.skills,
.projects,
.contact {
  padding-top: 170px;
}

.section-kicker {
  display: grid;
  grid-template-columns: 60px 1fr;
  font-family: "DM Mono", monospace;
  font-size: .62rem;
  color: var(--muted);
  margin-bottom: 62px;
}

.section-kicker span {
  color: var(--accent);
}

.about-layout {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 90px;
}

.about-heading h2,
.skills-head h2,
.projects-head h2 {
  font-family: "Manrope", sans-serif;
  font-size: clamp(3.6rem, 7.8vw, 7.6rem);
  line-height: .88;
  letter-spacing: -.075em;
}

.about-heading h2 span,
.skills-head h2 span {
  display: block;
  color: var(--muted-2);
}

.about-body {
  padding-top: 10px;
}

.about-big {
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.55rem, 3vw, 2.7rem);
  line-height: 1.14;
  letter-spacing: -.04em;
  max-width: 720px;
}

.about-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  margin-top: 46px;
}

.about-columns p {
  color: var(--muted);
  font-size: .86rem;
}

.stats-row {
  margin-top: 110px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  padding: 35px 24px 32px 0;
  border-right: 1px solid var(--line);
}

.stat + .stat {
  padding-left: 24px;
}

.stat:last-child {
  border-right: 0;
}

.stat strong,
.stat > span {
  font-family: "Manrope", sans-serif;
  font-size: clamp(2.7rem, 5vw, 5rem);
  letter-spacing: -.07em;
  line-height: 1;
}

.stat > span {
  color: var(--accent);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}

.stat p {
  margin-top: 10px;
  font-family: "DM Mono", monospace;
  font-size: .57rem;
  color: var(--muted);
}

/* skills */

.skills-head {
  margin-bottom: 85px;
}

.skills-accordion {
  border-top: 1px solid var(--line);
}

.skill-row {
  min-height: 150px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 72px 1.4fr 1fr 50px;
  gap: 24px;
  align-items: center;
  transition: background .3s ease, padding .4s var(--ease);
  position: relative;
  overflow: hidden;
}

.skill-row::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(179,156,255,.055), transparent);
  transform: translateX(-100%);
  transition: transform .55s var(--ease);
  z-index: -1;
}

.skill-row:hover {
  padding-left: 18px;
}

.skill-row:hover::before {
  transform: translateX(0);
}

.skill-number {
  font: 400 .62rem "DM Mono", monospace;
  color: var(--accent);
}

.skill-name h3 {
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  letter-spacing: -.05em;
}

.skill-name p {
  margin-top: 6px;
  color: var(--muted);
  font-size: .78rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.skill-tags span,
.project-meta span {
  border: 1px solid var(--line);
  padding: 6px 9px;
  font: 400 .56rem "DM Mono", monospace;
  color: var(--muted);
}

.skill-arrow {
  justify-self: end;
  font-size: 1.4rem;
  color: var(--muted);
  transition: transform .3s var(--ease);
}

.skill-row:hover .skill-arrow {
  transform: rotate(45deg);
  color: var(--text);
}

/* projects */

.projects-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 80px;
}

.projects-head p {
  max-width: 300px;
  color: var(--muted);
  font-size: .83rem;
  margin-bottom: 8px;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px 24px;
}

.project-large {
  grid-column: 1 / -1;
}

.project-card {
  transform-style: preserve-3d;
  will-change: transform;
}

.project-visual {
  min-height: 500px;
  border: 1px solid var(--line);
  background: #0c0c11;
  overflow: hidden;
  position: relative;
  display: grid;
  place-items: center;
}

.project-large .project-visual {
  min-height: 670px;
}

.visual-label {
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  display: flex;
  justify-content: space-between;
  font: 400 .56rem "DM Mono", monospace;
  color: rgba(255,255,255,.58);
  z-index: 2;
}

.visual-arcahv {
  background:
    radial-gradient(circle at 70% 22%, rgba(135,96,255,.45), transparent 30%),
    radial-gradient(circle at 18% 82%, rgba(67,215,241,.18), transparent 34%),
    linear-gradient(135deg, #171325, #0b0c11 70%);
}

.discord-ui {
  width: min(80%, 920px);
  height: min(67%, 470px);
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(10,10,15,.78);
  display: grid;
  grid-template-columns: 70px 1fr;
  box-shadow: 0 50px 100px rgba(0,0,0,.3);
  transform: rotate(-2.5deg) translateZ(30px);
  backdrop-filter: blur(15px);
}

.discord-sidebar {
  border-right: 1px solid rgba(255,255,255,.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 18px;
  gap: 12px;
}

.discord-sidebar i {
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,.07);
  border-radius: 11px;
}

.discord-sidebar i:first-child {
  background: linear-gradient(135deg, #755cff, #60ddea);
}

.discord-main {
  display: grid;
  grid-template-rows: 48px 1fr 84px;
}

.discord-bar {
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.discord-chat {
  padding: 36px;
  display: flex;
  gap: 18px;
}

.chat-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7a5cff, #d29cff);
}

.chat-lines {
  flex: 1;
  display: grid;
  align-content: start;
  gap: 10px;
  padding-top: 4px;
}

.chat-lines i {
  height: 8px;
  background: rgba(255,255,255,.11);
  width: 74%;
}

.chat-lines i:nth-child(2) { width: 54%; }
.chat-lines i:nth-child(3) { width: 38%; }

.discord-player {
  border-top: 1px solid rgba(255,255,255,.08);
  display: grid;
  grid-template-columns: 50px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 18px;
}

.player-cover {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  background: linear-gradient(135deg, #7963ff, #59dbe9);
}

.discord-player b,
.discord-player span {
  display: block;
}

.discord-player b {
  font-size: .7rem;
}

.discord-player span {
  font-size: .6rem;
  color: var(--muted);
  margin-top: 4px;
}

.player-eq {
  display: flex;
  gap: 3px;
  align-items: end;
  height: 22px;
}

.player-eq i {
  width: 3px;
  height: 40%;
  background: var(--accent);
  animation: eq .8s ease-in-out infinite alternate;
}

.player-eq i:nth-child(2) { height: 90%; animation-delay: -.2s; }
.player-eq i:nth-child(3) { height: 55%; animation-delay: -.4s; }
.player-eq i:nth-child(4) { height: 75%; animation-delay: -.1s; }

@keyframes eq {
  to { height: 100%; }
}

.visual-dashboard {
  background:
    radial-gradient(circle at 22% 20%, rgba(66,210,240,.22), transparent 36%),
    linear-gradient(145deg, #0c151b, #0b0c10);
}

.dashboard-window {
  width: 78%;
  height: 62%;
  display: grid;
  grid-template-columns: 64px 1fr;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(8,10,13,.82);
  transform: rotate(2.2deg) translateZ(25px);
  box-shadow: 0 40px 80px rgba(0,0,0,.28);
}

.dash-side {
  border-right: 1px solid rgba(255,255,255,.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px 0;
  gap: 13px;
}

.dash-side i {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(255,255,255,.07);
}

.dash-side .dash-logo {
  background: linear-gradient(135deg, #4cdaf1, #5d8cff);
  margin-bottom: 8px;
}

.dash-main {
  padding: 24px;
}

.dash-title {
  width: 28%;
  height: 9px;
  background: rgba(255,255,255,.15);
}

.dash-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-top: 25px;
}

.dash-cards i {
  height: 65px;
  border: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.03);
}

.dash-chart {
  height: 120px;
  margin-top: 11px;
  border: 1px solid rgba(255,255,255,.07);
  display: flex;
  align-items: center;
  color: #66dbea;
  background:
    repeating-linear-gradient(90deg, transparent 0 45px, rgba(255,255,255,.025) 46px),
    repeating-linear-gradient(0deg, transparent 0 29px, rgba(255,255,255,.025) 30px);
}

.dash-chart svg {
  width: 100%;
  height: 80%;
}

.visual-automation {
  background:
    radial-gradient(circle at 50% 50%, rgba(158,125,255,.2), transparent 38%),
    #0d0d13;
}

.flow {
  width: 84%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.flow-node {
  width: 112px;
  height: 82px;
  background: rgba(17,17,24,.92);
  border: 1px solid rgba(255,255,255,.12);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px;
  z-index: 2;
}

.flow-node span {
  font: 400 .53rem "DM Mono", monospace;
  color: var(--accent);
}

.flow-node b {
  font: 500 .73rem "DM Mono", monospace;
  margin-top: 8px;
}

.node-process {
  box-shadow: 0 0 0 14px rgba(179,156,255,.035), 0 0 55px rgba(179,156,255,.13);
}

.flow-line {
  position: absolute;
  height: 1px;
  top: 50%;
  background: linear-gradient(90deg, rgba(179,156,255,.15), #74deed, rgba(179,156,255,.15));
  z-index: 1;
}

.l1 { left: 15%; right: 50%; }
.l2 { left: 50%; right: 15%; }

.project-caption {
  display: flex;
  justify-content: space-between;
  gap: 50px;
  margin-top: 20px;
}

.project-caption > div:first-child {
  display: grid;
  grid-template-columns: 50px 1fr;
  column-gap: 12px;
}

.project-no {
  font: 400 .6rem "DM Mono", monospace;
  color: var(--accent);
  padding-top: 9px;
}

.project-caption h3 {
  font-family: "Manrope", sans-serif;
  font-size: clamp(2rem, 4vw, 4.2rem);
  letter-spacing: -.055em;
  line-height: 1;
}

.project-caption p {
  grid-column: 2;
  color: var(--muted);
  max-width: 600px;
  margin-top: 10px;
  font-size: .8rem;
}

.project-meta {
  min-width: 220px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-content: flex-start;
  justify-content: flex-end;
}

.project-caption.compact h3 {
  font-size: clamp(1.7rem, 3vw, 2.8rem);
}

/* contact */

.contact {
  padding-bottom: 44px;
}

.contact-top {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
}

.contact-top .section-kicker {
  margin: 0;
  width: 50%;
}

.contact-location {
  font: 400 .58rem "DM Mono", monospace;
  color: var(--muted);
}

.contact-main {
  padding: 120px 0 130px;
}

.contact-main > p {
  font: 400 .6rem "DM Mono", monospace;
  color: var(--muted);
  margin-bottom: 20px;
}

.contact-title {
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: clamp(4.5rem, 11vw, 11rem);
  line-height: .77;
  letter-spacing: -.085em;
  display: block;
  position: relative;
}

.contact-title span {
  display: block;
  -webkit-text-stroke: 1px rgba(245,243,239,.75);
  color: transparent;
  padding-left: .12em;
}

.contact-title i {
  position: absolute;
  top: 14%;
  right: 2%;
  width: clamp(70px, 10vw, 150px);
  height: clamp(70px, 10vw, 150px);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-style: normal;
  font-weight: 400;
  font-size: clamp(1.4rem, 3vw, 2.7rem);
  letter-spacing: 0;
  transition: background .35s ease, color .35s ease, transform .4s var(--ease);
}

.contact-title:hover i {
  background: var(--text);
  color: #09090c;
  transform: rotate(45deg);
}

.contact-bottom {
  min-height: 72px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 28px;
  font: 400 .58rem "DM Mono", monospace;
  color: var(--muted);
}

.contact-bottom span:last-child {
  margin-left: auto;
}

.contact-bottom a:hover {
  color: var(--text);
}

/* reveals */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity .9s var(--ease),
    transform .9s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-word {
  opacity: 0;
  transform: translateY(55px);
  transition:
    opacity 1s var(--ease),
    transform 1s var(--ease);
}

.reveal-word.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-word:nth-child(2) { transition-delay: .08s; }
.reveal-word:nth-child(3) { transition-delay: .16s; }
.reveal-word:nth-child(4) { transition-delay: .24s; }

/* responsive */

@media (max-width: 1050px) {
  :root {
    --section: min(calc(100% - 38px), 1380px);
  }

  .header-center {
    display: none;
  }

  .site-header {
    grid-template-columns: 1fr 1fr;
  }

  .hero-title-wrap {
    grid-template-columns: 1fr;
  }

  .hero-side-note {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .stats-row {
    grid-template-columns: 1fr 1fr;
  }

  .stat:nth-child(2) {
    border-right: 0;
  }

  .stat:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }

  .skill-row {
    grid-template-columns: 50px 1.4fr 1fr 36px;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-large {
    grid-column: auto;
  }

  .project-large .project-visual,
  .project-visual {
    min-height: 520px;
  }
}

@media (max-width: 720px) {
  :root {
    --section: calc(100% - 28px);
  }

  .site-header {
    height: 76px;
  }

  .hero {
    padding-top: 106px;
  }

  .hero-label span:last-child {
    display: none;
  }

  .hero-title {
    font-size: clamp(4rem, 23vw, 7.5rem);
    line-height: .78;
  }

  .hero-title .italic {
    padding-left: 0;
  }

  .hero-side-note {
    display: block;
  }

  .round-link {
    width: 102px;
    height: 102px;
  }

  .hero-stage {
    height: 430px;
    margin-top: 42px;
  }

  .stage-card {
    width: 90%;
  }

  .float-card {
    display: none;
  }

  .code-window {
    overflow-x: auto;
    white-space: nowrap;
  }

  .marquee-section {
    margin-top: 60px;
  }

  .about,
  .skills,
  .projects,
  .contact {
    padding-top: 115px;
  }

  .section-kicker {
    margin-bottom: 42px;
  }

  .about-columns {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .stats-row {
    grid-template-columns: 1fr 1fr;
  }

  .stat {
    min-height: 150px;
  }

  .skill-row {
    min-height: 170px;
    grid-template-columns: 34px 1fr 28px;
    gap: 14px;
  }

  .skill-tags {
    grid-column: 2 / 4;
    padding-bottom: 15px;
  }

  .projects-head {
    display: block;
    margin-bottom: 50px;
  }

  .projects-head p {
    margin-top: 22px;
  }

  .project-large .project-visual,
  .project-visual {
    min-height: 390px;
  }

  .discord-ui {
    width: 91%;
    height: 66%;
    grid-template-columns: 48px 1fr;
  }

  .discord-sidebar {
    padding-top: 12px;
  }

  .discord-sidebar i {
    width: 26px;
    height: 26px;
    border-radius: 8px;
  }

  .discord-chat {
    padding: 22px 18px;
  }

  .discord-player {
    grid-template-columns: 38px 1fr;
  }

  .player-cover {
    width: 36px;
    height: 36px;
  }

  .player-eq {
    display: none;
  }

  .dashboard-window {
    width: 91%;
    height: 65%;
    grid-template-columns: 46px 1fr;
  }

  .dash-main {
    padding: 16px;
  }

  .dash-chart {
    height: 95px;
  }

  .flow {
    width: 92%;
  }

  .flow-node {
    width: 86px;
    height: 68px;
    padding: 10px;
  }

  .project-caption,
  .project-caption > div:first-child {
    display: block;
  }

  .project-no {
    display: block;
    margin-bottom: 8px;
  }

  .project-caption p {
    margin-top: 9px;
  }

  .project-meta {
    justify-content: flex-start;
    min-width: 0;
    margin-top: 18px;
  }

  .contact-top {
    display: block;
  }

  .contact-top .section-kicker {
    width: 100%;
  }

  .contact-location {
    display: block;
    margin-top: 20px;
  }

  .contact-main {
    padding: 90px 0 100px;
  }

  .contact-title {
    font-size: clamp(4rem, 21vw, 7.5rem);
    line-height: .8;
  }

  .contact-title i {
    position: static;
    margin-top: 30px;
  }

  .contact-bottom {
    flex-wrap: wrap;
    gap: 14px 20px;
    padding: 22px 0;
  }

  .contact-bottom span:last-child {
    width: 100%;
    margin-left: 0;
  }

  .menu-content {
    padding: 28px 22px;
  }

  .menu-nav a {
    font-size: clamp(3rem, 14vw, 5rem);
  }
}

@media (pointer: coarse) {
  .cursor,
  .cursor-dot {
    display: none;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
