/* =========================================================================
   EVILBYTE STUDIO — Do Not Wake landing
   Design tokens, layout, CRT motion system
   ========================================================================= */

:root {
  --bg: #090b0a;
  --bg-2: #0b0d0c;
  --panel: #141914;
  --paper: #f0ebd8;
  --muted: #b9bdaf;
  --red: #ff452d;
  --red-deep: #be2f20;
  --red-dark: #70312a;
  --line: #3b4038;
  --line-2: #232a23;
  --dark: #090b0a;

  --f-pixel: "Tiny5", "Press Start 2P", monospace;
  --f-logo: "Press Start 2P", monospace;
  --f-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;

  --shell: 1440px;
  --pad: clamp(20px, 4.45vw, 64px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  --head-h: 104px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--head-h) + 8px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--paper);
  font-family: var(--f-mono);
  font-size: 17px;
  line-height: 1.45;
  font-weight: 400;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

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

::selection { background: var(--red); color: var(--bg); }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}

.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--red);
  color: var(--bg);
  font-size: 12px;
  letter-spacing: 0.08em;
  transform: translateY(-200%);
  transition: transform 0.2s var(--ease);
}
.skip:focus { transform: none; }

/* ---------------------------------------------------------------- shell -- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* --------------------------------------------------------------- typography */
.kicker {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red);
}
.kicker--dim { color: var(--muted); }
.kicker--dark { color: var(--dark); }
.kicker--dark.kicker--dim { color: rgba(9, 11, 10, 0.55); }

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}
.eyebrow__sep { color: var(--red); padding-inline: 6px; }

.body {
  font-size: clamp(15px, 1.18vw, 18px);
  line-height: 1.65;
  color: var(--muted);
  max-width: 46ch;
}
.body--dark { color: rgba(9, 11, 10, 0.78); }

.h2 {
  font-family: var(--f-pixel);
  font-weight: 400;
  font-size: clamp(40px, 6.45vw, 93px);
  line-height: 0.92;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--paper);
}
.h2--dark { color: var(--dark); }

.h3 {
  font-family: var(--f-pixel);
  font-weight: 400;
  font-size: clamp(24px, 2.65vw, 38px);
  line-height: 1.05;
  text-transform: uppercase;
}
.h3--dark { color: var(--dark); }

/* ------------------------------------------------------------------ boot -- */
.boot {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}
.boot.is-done { opacity: 0; visibility: hidden; }
.boot__inner { width: min(420px, 76vw); }
.boot__line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.boot__line span {
  font-family: var(--f-logo);
  font-size: 12px;
  color: var(--paper);
}
.boot__bar {
  height: 3px;
  background: var(--line);
  overflow: hidden;
}
.boot__bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--red);
  transition: width 0.18s linear;
}
.boot__meta {
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--line);
  text-transform: uppercase;
}

/* ---------------------------------------------------------------- grain -- */
.grain {
  position: fixed;
  inset: -20%;
  z-index: 90;
  pointer-events: none;
  opacity: 0.055;
  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.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 1.1s steps(3) infinite;
  will-change: transform;
}
@keyframes grainShift {
  0% { transform: translate3d(0, 0, 0); }
  33% { transform: translate3d(-2%, 1%, 0); }
  66% { transform: translate3d(1%, -2%, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

/* ------------------------------------------------------------- progress -- */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 95;
  background: rgba(240, 235, 216, 0.08);
}
.progress span {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: var(--red);
}

/* --------------------------------------------------------------- cursor -- */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  pointer-events: none;
  mix-blend-mode: difference;
  opacity: 0;
  transition: opacity 0.3s;
}
.cursor.is-on { opacity: 1; }
.cursor__dot {
  position: absolute;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  background: var(--paper);
}
.cursor__ring {
  position: absolute;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  border: 1px solid var(--paper);
  opacity: 0.5;
  transition: width 0.25s var(--ease), height 0.25s var(--ease), margin 0.25s var(--ease), opacity 0.25s;
}
.cursor.is-hover .cursor__ring {
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  opacity: 0.9;
}

/* ---------------------------------------------------------------- header -- */
.head {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(180deg, rgba(9, 11, 10, 0.94), rgba(9, 11, 10, 0.72));
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  transition: background 0.3s;
}
.head.is-scrolled { background: rgba(9, 11, 10, 0.96); }
.head__inner {
  height: var(--head-h);
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 80px);
  position: relative;
}
.head__inner::after {
  content: "";
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(var(--head-line, 1));
  transform-origin: 0 50%;
}

.brand { display: grid; gap: 8px; flex-shrink: 0; }
.brand__name {
  font-family: var(--f-logo);
  font-size: clamp(15px, 1.95vw, 28px);
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--paper);
  transition: color 0.25s;
}
.brand:hover .brand__name { color: var(--red); }
.brand__sub {
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.nav { display: flex; gap: clamp(24px, 3.2vw, 46px); margin-left: auto; }
.nav__link {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--paper);
  position: relative;
  padding-block: 6px;
  transition: color 0.2s;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 100%;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.35s var(--ease);
}
.nav__link:hover { color: var(--red); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--red); }
.nav__link.is-active::after { transform: scaleX(1); }

.head__cta {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--red);
  border: 1px solid rgba(255, 69, 45, 0.5);
  padding: 11px 16px;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
  white-space: nowrap;
}
.head__cta:hover { background: var(--red); color: var(--bg); border-color: var(--red); }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  position: relative;
  z-index: 2;
}
.burger span {
  display: block;
  width: 26px;
  height: 2px;
  margin: 5px auto;
  background: var(--paper);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: var(--bg);
  padding: calc(var(--head-h) + 32px) var(--pad) 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu__nav { display: grid; gap: 8px; }
.mobile-menu__nav a {
  font-family: var(--f-pixel);
  font-size: clamp(30px, 9vw, 52px);
  line-height: 1.05;
  color: var(--paper);
  padding-block: 10px;
  border-bottom: 1px solid var(--line);
  text-transform: uppercase;
}
.mobile-menu__nav a:last-child { color: var(--red); border-bottom: 0; }
.mobile-menu__meta { font-size: 12px; letter-spacing: 0.1em; color: var(--muted); }

/* ------------------------------------------------------------------ hero -- */
.hero {
  position: relative;
  padding-top: clamp(28px, 4vw, 56px);
  overflow: clip;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 700px) minmax(0, 1fr);
  gap: clamp(12px, 1.8vw, 28px);
  align-items: start;
}

.hero__copy { padding-top: clamp(4px, 1vw, 14px); }

.hero__status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper);
}
.hero__status i {
  width: 7px;
  height: 7px;
  background: var(--red);
  animation: recPulse 1.6s steps(2, end) infinite;
}

.hero__title {
  font-family: var(--f-pixel);
  font-weight: 400;
  font-size: clamp(56px, 19.4vw, 279px);
  line-height: 0.79;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  margin: clamp(20px, 2.6vw, 34px) 0 clamp(26px, 3.4vw, 46px);
  display: grid;
}
.hero__line { display: block; overflow: hidden; }
.hero__line-in {
  display: block;
  white-space: nowrap;
  width: 138.9%;
  transform: scaleX(0.72);
  transform-origin: 0 50%;
}
.hero__line--a { color: var(--paper); }
.hero__line--b { color: var(--red); }
.hero__line .ch {
  display: inline-block;
  transform: translateY(108%);
  will-change: transform;
}
.is-ready .hero__line .ch {
  animation: chIn 0.95s var(--ease) forwards;
  animation-delay: calc(var(--i) * 42ms + 120ms);
}
@keyframes chIn {
  0% { transform: translateY(108%); }
  60% { transform: translateY(-4%); }
  100% { transform: translateY(0); }
}

.hero__lead {
  font-family: var(--f-pixel);
  font-size: clamp(24px, 2.95vw, 42px);
  line-height: 1.02;
  text-transform: none;
  color: var(--paper);
  max-width: 22ch;
}
.hero__text {
  margin-top: clamp(14px, 1.6vw, 22px);
  font-size: clamp(14px, 1.18vw, 17px);
  line-height: 1.45;
  color: var(--muted);
  max-width: 44ch;
}

/* buttons */
.btn {
  --btn-bg: var(--red);
  --btn-fg: var(--bg);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: clamp(22px, 2.6vw, 34px);
  padding: 16px 22px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--f-pixel);
  font-size: clamp(16px, 1.65vw, 24px);
  line-height: 1.1;
  text-transform: uppercase;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.3s var(--ease);
}
.btn--dark { --btn-bg: var(--dark); --btn-fg: var(--paper); }
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--paper);
  transform: translateY(101%);
  transition: transform 0.42s var(--ease);
}
.btn--dark::before { background: var(--red); }
.btn:hover { color: var(--bg); }
.btn:hover::before { transform: translateY(0); }
.btn__arrow {
  font-family: var(--f-mono);
  font-size: 0.85em;
  transition: transform 0.35s var(--ease);
}
.btn:hover .btn__arrow { transform: translate(4px, -4px); }

/* hero visual */
.hero__visual {
  position: relative;
  padding-left: clamp(0px, 2.2vw, 32px);
  padding-top: clamp(0px, 1.5vw, 22px);
}
.hero__visual::before,
.hero__visual::after {
  content: "";
  position: absolute;
  background: var(--red);
  pointer-events: none;
}
.hero__visual::before {
  top: 12%;
  bottom: 12%;
  left: 0;
  width: 32px;
}
.hero__visual::after {
  top: 20%;
  bottom: 20%;
  left: -32px;
  width: 20px;
  opacity: 0.85;
}

.hero__rec {
  position: absolute;
  top: -6px;
  right: 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  z-index: 3;
}
.hero__rec i {
  width: 7px;
  height: 7px;
  background: var(--red);
  border-radius: 50%;
  animation: recPulse 1.4s steps(2, end) infinite;
}
.hero__rec b { font-weight: 400; font-variant-numeric: tabular-nums; }
@keyframes recPulse { 50% { opacity: 0.15; } }

.frame {
  position: relative;
  background: var(--panel);
  border: 2px solid var(--line);
}

.frame--hero {
  background: var(--red);
  border: 0;
  padding: clamp(14px, 1.4vw, 20px);
  box-shadow: 14px -14px 0 0 rgba(255, 69, 45, 0.16);
}
.frame__body {
  position: relative;
  background: var(--bg);
  border: 2px solid rgba(9, 11, 10, 0.85);
  overflow: hidden;
}
.frame__tag {
  position: absolute;
  top: 10px;
  left: 12px;
  z-index: 4;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--bg);
  background: rgba(255, 69, 45, 0.92);
  padding: 2px 6px;
}
.frame--hero .frame__tag {
  top: 50px;
  left: 50px;
}
.frame__media {
  position: relative;
  overflow: hidden;
  background: #0c0a09;
  aspect-ratio: 760 / 938;
}
.frame__media--wide { aspect-ratio: 1280 / 720; }
.frame__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.35) contrast(1.05) brightness(0.9);
  transform: scale(1.02);
  transition: transform 1.2s var(--ease), filter 0.6s;
}
.frame--hero .frame__img {
  object-position: 50% 32%;
  transform: scale(1.14);
}

.frame--hero .frame__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 69, 45, 0.34), rgba(190, 47, 32, 0.62) 70%, rgba(9, 11, 10, 0.9));
  mix-blend-mode: multiply;
  pointer-events: none;
}
.frame--hero .frame__media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(60% 45% at 50% 30%, rgba(255, 120, 80, 0.28), transparent 70%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.frame__scan {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.34) 0 1px, transparent 1px 4px);
  opacity: 0.55;
  mix-blend-mode: multiply;
}

.frame__glitch {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(90deg, rgba(255, 69, 45, 0.5), transparent 35%, transparent 65%, rgba(80, 220, 255, 0.4));
  mix-blend-mode: screen;
}
.glitching .frame__glitch { animation: glitchFlash 0.42s steps(2, end) 2; }
.glitching .frame__media { animation: glitchShift 0.42s steps(2, end) 2; }
@keyframes glitchFlash { 0%, 100% { opacity: 0; } 50% { opacity: 0.75; } }
@keyframes glitchShift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  25% { transform: translate3d(-3px, 1px, 0) skewX(-0.4deg); }
  75% { transform: translate3d(3px, -1px, 0) skewX(0.4deg); }
}

.corner {
  position: absolute;
  width: 24px;
  height: 24px;
  z-index: 5;
  pointer-events: none;
}
.corner::before,
.corner::after { content: ""; position: absolute; background: var(--red); }
.corner::before { width: 24px; height: 3px; }
.corner::after { width: 3px; height: 24px; }
.corner--tl { top: 18px; left: 18px; }
.corner--tr { top: 18px; right: 18px; }
.corner--tr::before { right: 0; }
.corner--tr::after { right: 0; }
.corner--bl { bottom: 18px; left: 18px; }
.corner--bl::before { bottom: 0; }
.corner--bl::after { bottom: 0; }
.corner--br { bottom: 18px; right: 18px; }
.corner--br::before { bottom: 0; right: 0; }
.corner--br::after { bottom: 0; right: 0; }

.frame__hint {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 5;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--paper);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.9);
}

.hero__meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(240, 235, 216, 0.12);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* marquee */
.marquee {
  margin-top: clamp(34px, 4vw, 58px);
  background: var(--red);
  color: var(--bg);
  overflow: hidden;
  position: relative;
}
.marquee__track {
  display: flex;
  gap: 0;
  width: max-content;
  will-change: transform;
  padding-block: 12px;
}
.marquee__track span {
  font-family: var(--f-pixel);
  font-size: 18px;
  line-height: 1;
  white-space: nowrap;
  padding-right: 6px;
}

/* ------------------------------------------------------------- sections -- */
.section { position: relative; }
.section--project { padding-block: clamp(64px, 7vw, 112px) clamp(52px, 5.6vw, 88px); }
.section--approach { padding-block: clamp(56px, 6vw, 96px); }
.section--archive { padding-block: clamp(56px, 6vw, 96px); }

.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  margin-bottom: clamp(28px, 3.4vw, 48px);
}
.sec-foot {
  margin-top: clamp(28px, 3vw, 44px);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* project */
.project__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: clamp(32px, 4.4vw, 72px);
  align-items: start;
}
.project__copy .body { margin-top: clamp(20px, 2.4vw, 34px); }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: clamp(18px, 2vw, 28px);
}
.tags li {
  font-family: var(--f-pixel);
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--paper);
  background: var(--line);
  padding: 9px 12px;
  text-transform: uppercase;
  transition: background 0.25s, color 0.25s;
}
.tags li:hover { background: var(--red); color: var(--bg); }

.frame--project { background: var(--panel); }
.frame__head,
.frame__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  font-size: 12px;
  letter-spacing: 0.06em;
  background: rgba(9, 11, 10, 0.6);
}
.frame__head { border-bottom: 1px solid var(--line); color: var(--muted); }
.frame__foot { border-top: 1px solid var(--line); color: var(--muted); }
.frame__led { display: inline-flex; gap: 4px; }
.frame__led i { width: 5px; height: 5px; background: var(--red); opacity: 0.35; }
.frame__led i:first-child { opacity: 1; animation: recPulse 2.4s steps(2, end) infinite; }
.frame__dot { width: 8px; height: 8px; background: var(--red); }

/* studio */
.section--studio {
  background: var(--red);
  color: var(--dark);
  padding-block: clamp(56px, 6.4vw, 96px);
  overflow: clip;
}
.studio__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(32px, 4vw, 72px);
}
.studio__left .h2 {
  margin-top: clamp(20px, 2.4vw, 34px);
  font-size: clamp(34px, 5.75vw, 83px);
}
.rule { height: 8px; background: var(--dark); margin-top: clamp(26px, 3.2vw, 44px); }
.rule--dark { height: 2px; margin-top: clamp(22px, 2.4vw, 34px); }
.rule--dark:not(.rule) { background: var(--dark); }

.dots {
  display: grid;
  grid-template-columns: repeat(6, 12px);
  gap: 12px;
  margin-top: clamp(22px, 2.6vw, 36px);
}
.dots i { width: 12px; height: 12px; background: var(--dark); display: block; }

.studio__right { padding-top: clamp(2px, 1vw, 16px); }
.lead-dark {
  font-size: clamp(16px, 1.32vw, 19px);
  line-height: 1.65;
  max-width: 34ch;
}
.studio__right .h3 { margin-top: clamp(20px, 2.2vw, 30px); }
.studio__right .kicker { margin-top: clamp(20px, 2.4vw, 32px); }

/* approach cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 1.8vw, 24px);
}
.card {
  position: relative;
  background: var(--bg-2);
  border: 2px solid var(--line);
  padding: clamp(20px, 2vw, 28px) clamp(18px, 1.9vw, 26px) clamp(22px, 2.2vw, 30px);
  min-height: clamp(300px, 24vw, 348px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: border-color 0.35s, transform 0.5s var(--ease);
  isolation: isolate;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--red);
  transform-origin: 0 50%;
  transform: scaleX(0.28);
  transition: transform 0.55s var(--ease);
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: radial-gradient(280px 220px at var(--mx, 50%) var(--my, 0%), rgba(255, 69, 45, 0.14), transparent 70%);
  transition: opacity 0.4s;
}
.card:hover { border-color: rgba(255, 69, 45, 0.55); }
.card:hover::before { transform: scaleX(1); }
.card:hover::after { opacity: 1; }

.card__num {
  font-family: var(--f-pixel);
  font-size: clamp(64px, 7.2vw, 104px);
  line-height: 0.9;
  color: var(--red);
}
.card__title {
  font-family: var(--f-pixel);
  font-weight: 400;
  font-size: clamp(24px, 2.45vw, 35px);
  line-height: 1.02;
  text-transform: uppercase;
  margin-top: clamp(16px, 1.8vw, 24px);
  color: var(--paper);
}
.card__text {
  margin-top: clamp(14px, 1.6vw, 22px);
  font-size: clamp(14px, 1.05vw, 15px);
  line-height: 1.65;
  color: var(--muted);
  max-width: 32ch;
}
.card__mark {
  position: absolute;
  top: 0;
  right: 0;
  width: 16px;
  height: 16px;
  background: var(--red);
  transform: translate(50%, -50%);
  opacity: 0;
  transition: opacity 0.3s;
}
.card:hover .card__mark { opacity: 1; }

/* archive */
.section--archive { background: var(--paper); color: var(--dark); }
.section--archive .sec-head .kicker--dark { color: var(--dark); }
.section--archive .sec-head .kicker--dim { color: rgba(9, 11, 10, 0.5); }
.archive__sub { margin-top: clamp(14px, 1.6vw, 22px); max-width: 60ch; }

.assets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 1.8vw, 24px);
  margin-top: clamp(30px, 3.4vw, 46px);
}
.asset { display: flex; flex-direction: column; }
.asset__frame {
  border: 2px solid var(--dark);
  background: var(--panel);
  overflow: hidden;
}
.asset__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--dark);
  color: var(--paper);
  font-size: 12px;
  letter-spacing: 0.05em;
}
.asset__dot { width: 7px; height: 7px; background: var(--red); opacity: 0.9; }
.asset__img {
  position: relative;
  aspect-ratio: 416 / 300;
  display: grid;
  place-items: center;
  padding: clamp(14px, 1.6vw, 22px);
  background:
    repeating-linear-gradient(0deg, rgba(59, 64, 56, 0.55) 0 1px, transparent 1px 8px),
    var(--panel);
  overflow: hidden;
}
.asset__img img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
  filter: saturate(0.96) contrast(1.03);
  transition: transform 0.9s var(--ease), filter 0.5s;
  will-change: transform;
}
.asset:hover .asset__img img { transform: scale(1.045); filter: saturate(1.08) contrast(1.05); }
.asset__img--wide img { width: 100%; }
.asset__title {
  font-family: var(--f-pixel);
  font-weight: 400;
  font-size: clamp(20px, 2.1vw, 32px);
  line-height: 1.1;
  text-transform: none;
  margin-top: clamp(12px, 1.4vw, 18px);
  color: var(--dark);
}
.asset__meta { font-size: 12px; letter-spacing: 0.05em; color: rgba(9, 11, 10, 0.55); margin-top: 6px; }

/* contact */
.section--contact {
  background: var(--red);
  color: var(--dark);
  padding-block: clamp(52px, 6vw, 88px);
  overflow: clip;
}
.contact__inner { position: relative; }
.contact__title {
  font-family: var(--f-pixel);
  font-weight: 400;
  font-size: clamp(34px, 10.2vw, 176px);
  line-height: 0.92;
  text-transform: uppercase;
  margin-top: clamp(16px, 2vw, 28px);
  color: var(--dark);
}
.contact__text {
  margin-top: clamp(16px, 2vw, 26px);
  font-size: clamp(15px, 1.4vw, 20px);
  line-height: 1.55;
  color: rgba(9, 11, 10, 0.8);
  max-width: 54ch;
}
.contact__status {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: clamp(22px, 2.4vw, 34px);
  padding: 14px 20px;
  border: 2px solid var(--dark);
  font-family: var(--f-pixel);
  font-size: clamp(15px, 1.55vw, 22px);
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--dark);
}
.contact__status i {
  width: 8px;
  height: 8px;
  background: var(--dark);
  animation: recPulse 1.8s steps(2, end) infinite;
}
.contact__foot { margin-top: clamp(24px, 2.6vw, 36px); }

.wave {
  position: absolute;
  right: 0;
  bottom: 8%;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 168px;
  pointer-events: none;
}
.wave i {
  display: block;
  width: 12px;
  height: 100%;
  background: var(--dark);
  transform-origin: 50% 100%;
  transform: scaleY(var(--h, 0.4));
  animation: wavePulse var(--sp, 2.4s) ease-in-out infinite alternate;
  animation-delay: var(--dl, 0s);
}
@keyframes wavePulse {
  0% { transform: scaleY(calc(var(--h, 0.4) * 0.55)); }
  100% { transform: scaleY(var(--h, 0.4)); }
}

/* footer */
.foot {
  background: var(--bg);
  border-top: 1px solid rgba(240, 235, 216, 0.1);
  padding-block: clamp(34px, 3.6vw, 52px);
}
.foot__grid {
  display: grid;
  grid-template-columns: 1.3fr 1.2fr auto auto;
  align-items: center;
  gap: clamp(18px, 2.4vw, 36px);
}
.foot__brand { display: grid; gap: 8px; }
.foot__name { font-family: var(--f-logo); font-size: clamp(14px, 1.7vw, 24px); line-height: 1; color: var(--paper); }
.foot__sub { font-size: 12px; letter-spacing: 0.05em; color: var(--muted); }
.foot__tag,
.foot__copy { font-size: 12px; letter-spacing: 0.05em; color: var(--muted); }
.foot__status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--paper);
  text-transform: uppercase;
}
.foot__status i {
  width: 6px;
  height: 6px;
  background: var(--red);
  animation: recPulse 1.8s steps(2, end) infinite;
}
.foot__links { display: flex; gap: 18px; }
.foot__links a,
.foot__up {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--paper);
  transition: color 0.2s;
}
.foot__links a:hover,
.foot__up:hover { color: var(--red); }

/* ------------------------------------------------------------- reveals -- */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

.js [data-split] .ln { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.js [data-split] .ln__i {
  display: block;
  transform: translateY(106%);
  transition: transform 1.05s var(--ease);
  transition-delay: calc(var(--l, 0) * 110ms);
  will-change: transform;
}
.js [data-split].is-in .ln__i { transform: none; }

/* ------------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  :root { --head-h: 88px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.84fr); gap: 32px; }
  .hero__visual { padding-left: 32px; }
  .hero__visual::before { left: 0; }
  .hero__visual::after { left: -22px; width: 16px; }
  .foot__grid { grid-template-columns: 1fr 1fr; row-gap: 22px; }
  .foot__up { justify-self: start; }
}

@media (max-width: 960px) {
  .nav { display: none; }
  .head__cta { display: none; }
  .burger { display: block; }

  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__title { font-size: clamp(64px, 29vw, 250px); }
  .hero__visual { padding-left: 0; padding-right: 0; }
  .hero__visual::before,
  .hero__visual::after { display: none; }
  .hero__title { margin-bottom: 22px; }

  .project__grid { grid-template-columns: 1fr; }
  .studio__grid { grid-template-columns: 1fr; gap: 36px; }
  .studio__left .h2 { font-size: clamp(34px, 7.6vw, 76px); }
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .assets { grid-template-columns: 1fr; }
  .wave { position: static; margin-top: 30px; height: 96px; }
  .frame--hero { box-shadow: none; }
}

@media (max-width: 640px) {
  :root { --head-h: 76px; }
  body { font-size: 16px; }
  .brand__name { font-size: 15px; }
  .brand__sub { font-size: 10px; }

  .hero__visual { padding-left: 22px; }
  .hero__meta { flex-direction: column; gap: 6px; }
  .hero__rec { top: -18px; }

  .sec-head { flex-direction: column; gap: 6px; align-items: flex-start; }
  .sec-head .kicker--dim { display: none; }
  .dots { grid-template-columns: repeat(6, 10px); gap: 10px; }
  .dots i { width: 10px; height: 10px; }
  .contact__title { font-size: clamp(36px, 10.4vw, 62px); }
  .foot__grid { grid-template-columns: 1fr; }
  .btn { width: 100%; justify-content: space-between; }
  .tags { gap: 8px; }
  .wave { gap: 6px; height: 72px; }
  .wave i { width: 8px; }
}

/* ---------------------------------------------------------- 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;
    scroll-behavior: auto !important;
  }
  .js .reveal,
  .js [data-split] .ln__i,
  .hero__line .ch { opacity: 1 !important; transform: none !important; }
  .cursor { display: none; }
  .grain { animation: none; }
}
