:root {
  --void: #060706;
  --ink: #0c0f0c;
  --bone: #f2efe6;
  --mute: rgba(242, 239, 230, 0.62);
  --line: rgba(242, 239, 230, 0.14);
  --acid: #d2ff3f;
  --ember: #ff4d1a;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --pad-x: clamp(1rem, 4vw, 1.5rem);
  --pad-safe-t: env(safe-area-inset-top, 0px);
  --pad-safe-b: env(safe-area-inset-bottom, 0px);
  --pad-safe-l: env(safe-area-inset-left, 0px);
  --pad-safe-r: env(safe-area-inset-right, 0px);
  --dock-h: 0px;
}

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

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

body {
  margin: 0;
  background: var(--void);
  color: var(--bone);
  font-family: "Sora", sans-serif;
  font-weight: 400;
  line-height: 1.55;
  overflow-x: hidden;
  cursor: none;
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--dock-h);
}

body.is-touch {
  cursor: auto;
}

a,
button {
  cursor: none;
}

body.is-touch a,
body.is-touch button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.dock {
  display: none;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  opacity: 0.07;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' 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");
}

.cursor,
.cursor-ring {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  border-radius: 50%;
  transform: translate3d(-100px, -100px, 0);
  mix-blend-mode: difference;
}

.cursor {
  width: 8px;
  height: 8px;
  background: var(--bone);
}

.cursor-ring {
  width: 42px;
  height: 42px;
  margin: -17px 0 0 -17px;
  border: 1px solid rgba(242, 239, 230, 0.7);
  transition: width 0.25s var(--ease), height 0.25s var(--ease), margin 0.25s var(--ease),
    background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.cursor-ring.is-hot {
  width: 68px;
  height: 68px;
  margin: -30px 0 0 -30px;
  background: rgba(210, 255, 63, 0.12);
  border-color: var(--acid);
}

body.is-touch .cursor,
body.is-touch .cursor-ring {
  display: none;
}

.top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: calc(1.1rem + var(--pad-safe-t)) calc(var(--pad-x) + var(--pad-safe-r)) 1.1rem
    calc(var(--pad-x) + var(--pad-safe-l));
  background: linear-gradient(180deg, rgba(6, 7, 6, 0.85), transparent);
}

.mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  font-family: "Unbounded", sans-serif;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  background: rgba(6, 7, 6, 0.55);
  backdrop-filter: blur(8px);
}

.nav {
  display: flex;
  justify-content: center;
  gap: 1.75rem;
}

.nav a,
.top-play {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--mute);
  transition: color 0.25s var(--ease);
}

.nav a:hover,
.top-play:hover {
  color: var(--acid);
}

.top-play {
  color: var(--bone);
  border-bottom: 1px solid var(--acid);
  padding-bottom: 0.15rem;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.12);
  filter: saturate(0.85) contrast(1.08);
  will-change: transform;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 7, 6, 0.92) 0%, rgba(6, 7, 6, 0.55) 42%, rgba(6, 7, 6, 0.25) 100%),
    linear-gradient(180deg, rgba(6, 7, 6, 0.35) 0%, rgba(6, 7, 6, 0.15) 35%, rgba(6, 7, 6, 0.92) 100%);
}

.hero-scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.08) 3px
  );
  opacity: 0.35;
  animation: scan-drift 9s linear infinite;
}

.hero-frame {
  position: relative;
  z-index: 1;
  max-width: 54rem;
  width: 100%;
  padding: calc(7rem + var(--pad-safe-t)) calc(var(--pad-x) + var(--pad-safe-r)) 4.5rem
    calc(var(--pad-x) + var(--pad-safe-l));
}

.brand {
  margin: 0 0 1.5rem;
  display: grid;
  gap: 0;
  font-family: "Unbounded", sans-serif;
  font-weight: 800;
  font-size: clamp(2.55rem, 11.5vw, 7.5rem);
  line-height: 0.88;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.brand span:last-child {
  color: var(--acid);
}

.hero h1,
.contact h2,
.section-head h2,
.stack h2 {
  margin: 0;
  font-family: "Unbounded", sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.hero h1 {
  max-width: 18ch;
  font-size: clamp(1.2rem, 2.6vw, 1.85rem);
  font-weight: 500;
}

.lede {
  margin: 1.15rem 0 0;
  max-width: 36ch;
  color: var(--mute);
  font-size: 1.02rem;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.35rem;
  background: var(--acid);
  color: #10140a;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--acid);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  background: #e7ff7a;
}

.btn-ghost {
  background: transparent;
  color: var(--bone);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--bone);
  background: rgba(242, 239, 230, 0.05);
  color: var(--bone);
}

.hero-meta {
  position: absolute;
  right: calc(var(--pad-x) + var(--pad-safe-r));
  bottom: 4.5rem;
  z-index: 1;
  display: grid;
  gap: 0.45rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
  text-align: right;
}

.ticker {
  border-block: 1px solid var(--line);
  background: #090b09;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-track {
  display: inline-flex;
  gap: 2.5rem;
  padding: 0.95rem 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  animation: ticker 28s linear infinite;
}

.ticker-track span::after {
  content: "◆";
  margin-left: 2.5rem;
  color: var(--acid);
  font-size: 0.55rem;
  vertical-align: middle;
}

.work,
.stack,
.contact {
  padding: 5.5rem calc(var(--pad-x) + var(--pad-safe-r)) 5.5rem
    calc(var(--pad-x) + var(--pad-safe-l));
  scroll-margin-top: 5rem;
}

.section-head {
  max-width: 70rem;
  margin: 0 auto 3rem;
}

.eyebrow {
  margin: 0 0 0.85rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--acid);
}

.section-head h2,
.stack h2,
.contact h2 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  max-width: 14ch;
}

.feature {
  max-width: 70rem;
  margin: 0 auto 4.5rem;
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 1.75rem;
  align-items: center;
}

.feature-flip {
  grid-template-columns: 0.9fr 1.35fr;
}

.feature-flip .feature-media {
  order: 2;
}

.feature-flip .feature-copy {
  order: 1;
}

.feature-media {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  text-decoration: none;
  aspect-ratio: 16 / 10;
  background: #101410;
}

.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease), filter 0.9s var(--ease);
  filter: saturate(0.9);
}

.feature-media:hover img {
  transform: scale(1.05);
  filter: saturate(1.05);
}

.feature-hint {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.45rem 0.7rem;
  background: rgba(6, 7, 6, 0.78);
  border: 1px solid var(--line);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--acid);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.feature-media:hover .feature-hint {
  opacity: 1;
  transform: translateY(0);
}

.feature-copy .tag {
  margin: 0 0 0.85rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
}

.feature-copy h3 {
  margin: 0 0 0.85rem;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.feature-copy p {
  margin: 0 0 1.25rem;
  color: var(--mute);
  max-width: 34ch;
}

.text-link {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--acid);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease);
}

.text-link:hover {
  border-color: var(--acid);
}

.link-row {
  display: flex;
  gap: 1.25rem;
}

.grid {
  max-width: 70rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.tile {
  display: grid;
  gap: 0.85rem;
  padding: 1.6rem;
  background: #0a0d0a;
  text-decoration: none;
  min-height: 15rem;
  transition: background 0.35s var(--ease);
}

.tile:hover {
  background: #101510;
}

.tile-lang {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ember);
}

.tile h3 {
  margin: 0;
  font-family: "Unbounded", sans-serif;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.tile p {
  margin: 0;
  color: var(--mute);
  font-size: 0.95rem;
}

.tile-go {
  margin-top: auto;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--acid);
}

.stack {
  border-block: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 80% 20%, rgba(210, 255, 63, 0.08), transparent 45%),
    #080a08;
}

.stack-inner {
  max-width: 70rem;
  margin: 0 auto;
}

.stack-list {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.stack-list li {
  display: grid;
  grid-template-columns: minmax(8rem, 12rem) 1fr;
  gap: 1rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}

.stack-list strong {
  font-family: "Unbounded", sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.stack-list span {
  color: var(--mute);
}

.contact {
  position: relative;
  overflow: hidden;
  text-align: left;
  max-width: none;
}

.contact .eyebrow,
.contact h2,
.contact .lede,
.contact .cta {
  position: relative;
  z-index: 1;
  max-width: 70rem;
  margin-left: auto;
  margin-right: auto;
}

.contact h2 {
  max-width: 16ch;
}

.contact .lede {
  margin-top: 1rem;
}

.contact-orb {
  position: absolute;
  width: 42rem;
  height: 42rem;
  right: -10rem;
  top: 50%;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(210, 255, 63, 0.18), transparent 65%);
  filter: blur(10px);
  animation: pulse 6s var(--ease) infinite alternate;
}

.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  padding: 1.25rem calc(var(--pad-x) + var(--pad-safe-r))
    calc(1.75rem + var(--pad-safe-b)) calc(var(--pad-x) + var(--pad-safe-l));
  border-top: 1px solid var(--line);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
}

.foot a {
  text-decoration: none;
  color: var(--bone);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

[data-reveal].is-in {
  opacity: 1;
  transform: translateY(0);
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes scan-drift {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(12px);
  }
}

@keyframes pulse {
  from {
    opacity: 0.55;
    transform: translateY(-50%) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(-50%) scale(1.05);
  }
}

@media (max-width: 960px) {
  .feature,
  .feature-flip {
    grid-template-columns: 1fr;
    gap: 1.15rem;
    margin-bottom: 3.25rem;
  }

  .feature-flip .feature-media,
  .feature-flip .feature-copy {
    order: initial;
  }

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

  .hero-meta {
    display: none;
  }

  .nav {
    display: none;
  }

  .top {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .hero-veil {
    background:
      linear-gradient(
        180deg,
        rgba(6, 7, 6, 0.55) 0%,
        rgba(6, 7, 6, 0.25) 28%,
        rgba(6, 7, 6, 0.72) 58%,
        rgba(6, 7, 6, 0.96) 100%
      ),
      linear-gradient(90deg, rgba(6, 7, 6, 0.35), transparent 70%);
  }

  .feature-hint {
    opacity: 1;
    transform: none;
  }

  .feature-copy p,
  .lede {
    max-width: none;
  }

  .section-head h2,
  .stack h2,
  .contact h2 {
    max-width: 12ch;
  }
}

@media (max-width: 720px) {
  :root {
    --dock-h: calc(3.65rem + var(--pad-safe-b));
  }

  .top-play {
    display: none;
  }

  .dock {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    height: var(--dock-h);
    padding: 0.35rem var(--pad-safe-r) var(--pad-safe-b) var(--pad-safe-l);
    background: rgba(6, 7, 6, 0.92);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .dock a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.85rem;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--mute);
  }

  .dock-play {
    color: #10140a !important;
    background: var(--acid);
    margin: 0.35rem 0.45rem;
    border-radius: 2px;
    font-weight: 500;
  }

  .hero {
    min-height: 100svh;
    min-height: 100dvh;
  }

  .hero-frame {
    padding-top: calc(5.75rem + var(--pad-safe-t));
    padding-bottom: 2.75rem;
  }

  .brand {
    margin-bottom: 1.1rem;
    font-size: clamp(2.4rem, 14vw, 3.6rem);
    letter-spacing: -0.04em;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(1.05rem, 4.4vw, 1.35rem);
  }

  .lede {
    font-size: 0.98rem;
    margin-top: 0.95rem;
  }

  .cta {
    margin-top: 1.5rem;
    gap: 0.7rem;
  }

  .btn {
    width: 100%;
    min-height: 3rem;
    padding: 0.95rem 1rem;
    font-size: 0.74rem;
  }

  .contact .cta .btn {
    overflow-wrap: anywhere;
    word-break: break-word;
    text-align: center;
    line-height: 1.35;
  }

  .work,
  .stack,
  .contact {
    padding-top: 3.75rem;
    padding-bottom: 3.75rem;
  }

  .section-head {
    margin-bottom: 2rem;
  }

  .section-head h2,
  .stack h2,
  .contact h2 {
    font-size: clamp(1.7rem, 8vw, 2.4rem);
    max-width: none;
  }

  .feature-media {
    aspect-ratio: 4 / 3;
  }

  .feature-copy .tag {
    font-size: 0.66rem;
    letter-spacing: 0.08em;
    line-height: 1.4;
  }

  .feature-copy h3 {
    font-size: clamp(1.45rem, 7vw, 1.9rem);
  }

  .link-row {
    flex-wrap: wrap;
    gap: 0.85rem 1.15rem;
  }

  .tile {
    min-height: 0;
    padding: 1.35rem 1.2rem;
  }

  .tile h3 {
    font-size: 1.15rem;
  }

  .stack-list {
    margin-top: 1.75rem;
  }

  .stack-list li {
    grid-template-columns: 1fr;
    gap: 0.35rem;
    padding: 1.15rem 0;
  }

  .contact-orb {
    width: 22rem;
    height: 22rem;
    right: -8rem;
    opacity: 0.7;
  }

  .ticker-track {
    gap: 1.75rem;
    padding: 0.8rem 0;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
  }

  .ticker-track span::after {
    margin-left: 1.75rem;
  }

  .foot {
    padding-bottom: 1.25rem;
    font-size: 0.65rem;
  }

  .work,
  .stack,
  .contact {
    scroll-margin-top: 4.5rem;
    scroll-margin-bottom: var(--dock-h);
  }
}

@media (max-width: 400px) {
  .brand {
    font-size: clamp(2.15rem, 13.5vw, 2.8rem);
  }

  .mark {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 0.7rem;
  }

  .dock a {
    font-size: 0.62rem;
    letter-spacing: 0.05em;
  }

  .dock-play {
    margin: 0.35rem 0.25rem;
  }
}

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

  .feature-hint {
    opacity: 1;
    transform: none;
  }

  .btn:hover,
  .feature-media:hover img {
    transform: none;
  }

  .btn:active {
    background: #e7ff7a;
  }

  .tile:active {
    background: #101510;
  }
}

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

  .ticker-track,
  .hero-scan,
  .contact-orb,
  [data-reveal] {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
  }
}
