/* =========================================================
   OctaBytes — studio site
   ========================================================= */

@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-italic.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f7f5ef;
  --paper-2: #efebe2;
  --ink: #12141c;
  --ink-2: #333641;
  --muted: #5b5f6b;
  --line: rgba(18, 20, 28, 0.15);
  --line-soft: rgba(18, 20, 28, 0.08);
  --accent: #ff4d1c;
  --accent-ink: #c93a0f;
  --green: #1f9d61;
  --amber: #a36100;
  --violet: #6b4bf4;
  --teal: #0b7a88;
  --navy: #0a0e23;
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --r-lg: 34px;
  --r-md: 24px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.no-scroll {
  overflow: hidden;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4,
p,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--accent);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 500;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 0.25s var(--ease);
}
.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.serif {
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.018em;
}

.accent {
  color: var(--accent);
}

/* ---------- Buttons & links ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.25s var(--ease),
    color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.button svg {
  width: 15px;
  height: 15px;
  flex: none;
  transition: transform 0.25s var(--ease);
}

.button:hover {
  background: var(--accent);
  color: var(--ink);
  transform: translateY(-2px);
}

.button:hover svg {
  transform: translate(2px, -1px);
}

.button:active {
  transform: translateY(0);
}

.button--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.button--ghost:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.button--small {
  min-height: 38px;
  padding: 9px 15px;
  font-size: 12.5px;
}

.button--small svg {
  width: 13px;
  height: 13px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.text-link svg {
  width: 12px;
  height: 12px;
  transition: transform 0.25s var(--ease);
}

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

.text-link:hover svg {
  transform: translate(2px, -2px);
}

.play-icon {
  width: 15px !important;
  height: 15px !important;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding-block: 16px;
  background: linear-gradient(to bottom, rgba(247, 245, 239, 0.94) 0%, rgba(247, 245, 239, 0.72) 58%, rgba(247, 245, 239, 0) 100%);
  transition:
    padding 0.3s var(--ease),
    background 0.3s ease,
    border-color 0.3s ease;
}

.site-header.is-scrolled {
  padding-block: 10px;
  background: rgba(247, 245, 239, 0.86);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-soft);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  flex: none;
}

.brand-mark {
  width: 29px;
  height: 29px;
  transition: transform 0.5s var(--ease);
}

.brand:hover .brand-mark {
  transform: rotate(45deg);
}

.brand-word {
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}

.nav-links a {
  position: relative;
  padding-block: 4px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 550;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 1px;
  background: var(--accent);
  transition: right 0.3s var(--ease);
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
  right: 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: 4px;
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 8.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
}

.availability-dot,
.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(31, 157, 97, 0.12);
  flex: none;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s var(--ease);
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.25px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  z-index: 110;
  top: 72px;
  left: 16px;
  right: 16px;
  max-height: calc(100dvh - 92px);
  overflow: auto;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--paper);
  box-shadow: 0 30px 80px rgba(18, 20, 28, 0.18);
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.mobile-nav.is-open {
  opacity: 1;
  transform: none;
}

.mobile-nav > a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 15px 4px;
  border-bottom: 1px solid var(--line-soft);
  font-size: clamp(25px, 6vw, 34px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.1;
  text-decoration: none;
}

.mobile-nav > a span {
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--accent-ink);
}

.mobile-nav-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 20px;
}

.mobile-email {
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
}

.nav-backdrop {
  position: fixed;
  z-index: 95;
  inset: 0;
  background: rgba(18, 20, 28, 0.28);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding-top: clamp(124px, 11vw, 158px);
  overflow: clip;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-glow {
  position: absolute;
  width: 760px;
  height: 760px;
  top: -260px;
  right: -160px;
  background: radial-gradient(circle, rgba(255, 77, 28, 0.16) 0%, rgba(255, 77, 28, 0) 64%);
  filter: blur(10px);
}

.hero-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(18, 20, 28, 0.16) 1px, transparent 1.1px);
  background-size: 25px 25px;
  opacity: 0.42;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 35%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse 80% 70% at 60% 35%, #000 0%, transparent 72%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
  min-height: 640px;
  padding-bottom: 34px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding-block: 16px 24px;
}

.eyebrow,
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow-mark {
  width: 7px;
  height: 7px;
  background: var(--accent);
  clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%);
  flex: none;
}

.kicker {
  color: var(--muted);
}

.kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--accent);
  clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%);
  flex: none;
}

h1 {
  max-width: 680px;
  margin: 22px 0 25px;
  font-size: clamp(47px, 7.1vw, 101px);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 0.89;
  text-wrap: balance;
}

.h1-accent {
  display: block;
  margin-top: 0.03em;
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.05em;
  letter-spacing: -0.025em;
  line-height: 0.9;
}

.lede {
  max-width: 535px;
  color: var(--ink-2);
  font-size: clamp(16px, 1.45vw, 19px);
  line-height: 1.55;
  letter-spacing: -0.015em;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 31px;
}

.hero-facts {
  display: flex;
  align-items: flex-start;
  gap: 0;
  max-width: 590px;
  margin-top: 38px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.hero-facts > div {
  padding-right: 26px;
  margin-right: 26px;
  border-right: 1px solid var(--line);
}

.hero-facts > div:last-child {
  padding-right: 0;
  margin-right: 0;
  border-right: 0;
}

.hero-facts dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 8px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hero-facts dd {
  font-size: 12.5px;
  font-weight: 550;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.fact-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.fact-live .live-dot {
  width: 5px;
  height: 5px;
  box-shadow: none;
}

.hero-art {
  position: relative;
  height: 660px;
  z-index: 1;
}

.hero-octa {
  position: absolute;
  top: 48%;
  left: 50%;
  width: min(610px, 108%);
  height: auto;
  color: rgba(18, 20, 28, 0.13);
  transform: translate(-50%, -50%);
}

.hero-orbit {
  position: absolute;
  top: 49%;
  left: 50%;
  width: 78%;
  aspect-ratio: 1;
  border: 1px solid rgba(18, 20, 28, 0.08);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
}

.device {
  position: absolute;
  overflow: hidden;
  border: 6px solid #11131a;
  border-radius: 37px;
  background: #11131a;
  box-shadow:
    0 28px 60px rgba(18, 20, 28, 0.22),
    0 4px 12px rgba(18, 20, 28, 0.16);
}

.device::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 32%);
  pointer-events: none;
}

.device img {
  width: 100%;
  height: auto;
  border-radius: 30px;
}

.hero-art .device--front {
  z-index: 4;
  top: 42px;
  left: 50%;
  width: 238px;
  transform: translateX(-50%) rotate(0.25deg);
}

.hero-art .device--left {
  z-index: 1;
  top: 148px;
  left: 2%;
  width: 204px;
  transform: rotate(-8deg);
}

.hero-art .device--right {
  z-index: 2;
  top: 118px;
  right: 0;
  width: 204px;
  transform: rotate(8deg);
}

.art-note {
  position: absolute;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 8px;
  letter-spacing: 0.1em;
  line-height: 1.3;
  text-transform: uppercase;
  white-space: nowrap;
}

.art-note i {
  display: inline-block;
  width: 26px;
  height: 1px;
  background: var(--accent);
}

.art-note--a {
  top: 26px;
  left: 0;
}

.art-vertical {
  position: absolute;
  top: 39%;
  right: -22px;
  z-index: 5;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 7.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.art-chip {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 7px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(247, 245, 239, 0.8);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--ink-2);
  font-family: "JetBrains Mono", monospace;
  font-size: 7.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transform: translateX(-50%);
  white-space: nowrap;
}

.art-chip .live-dot {
  width: 5px;
  height: 5px;
  box-shadow: none;
}

.hero-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 16px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 8.5px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hero-foot a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  text-decoration: none;
}

.hero-foot a svg {
  width: 12px;
  height: 12px;
  transition: transform 0.25s var(--ease);
}

.hero-foot a:hover svg {
  transform: translateY(3px);
}

/* ---------- Ticker ---------- */

.ticker {
  overflow: hidden;
  background: var(--ink);
  color: rgba(247, 245, 239, 0.72);
  padding-block: 15px;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 46s linear infinite;
  will-change: transform;
}

.ticker-group {
  display: flex;
  align-items: center;
  flex: none;
}

.ticker-group > span {
  display: inline-flex;
  align-items: center;
  gap: 30px;
  padding-right: 30px;
  font-family: "JetBrains Mono", monospace;
  font-size: 8.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker-sep {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--accent);
  clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%);
}

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

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

/* ---------- Shared section ---------- */

.section {
  padding-block: clamp(82px, 9.5vw, 132px);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: end;
  gap: clamp(28px, 5vw, 70px);
  margin-bottom: clamp(36px, 5vw, 58px);
}

.section-head h2 {
  margin-top: 17px;
}

h2 {
  font-size: clamp(40px, 5.1vw, 68px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.94;
  text-wrap: balance;
}

h2 .serif {
  display: inline-block;
  margin-top: 0.015em;
  font-size: 1.035em;
  line-height: 0.9;
}

.section-intro {
  justify-self: end;
  max-width: 390px;
  padding-bottom: 6px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: -0.01em;
}

/* ---------- Work ---------- */

.project {
  --p-soft: #ece5ff;
  --p-ink: #201548;
  --p-muted: #5b5278;
  --p-accent: #6b4bf4;
  --p-line: rgba(62, 40, 139, 0.16);
  position: relative;
  border: 1px solid var(--p-line);
  border-radius: var(--r-lg);
  background: var(--p-soft);
  color: var(--p-ink);
  overflow: hidden;
}

.project--quizoo {
  --p-soft: #ece5ff;
  --p-ink: #201548;
  --p-muted: #5b5278;
  --p-accent: #6b4bf4;
  --p-line: rgba(62, 40, 139, 0.17);
}

.project--slingtide {
  --p-soft: #fff1df;
  --p-ink: #0b3c5d;
  --p-muted: #4a5f70;
  --p-accent: #0b7a88;
  --p-line: rgba(11, 60, 93, 0.17);
}

.project--komet {
  --p-soft: #0a0e23;
  --p-ink: #f8fafc;
  --p-muted: #a9b2d9;
  --p-accent: #22d3ee;
  --p-line: rgba(255, 255, 255, 0.16);
}

.project-top {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 19px clamp(20px, 3.4vw, 32px);
  border-bottom: 1px solid var(--p-line);
}

.project-icon {
  width: 51px;
  height: 51px;
  border-radius: 14px;
  box-shadow: 0 5px 14px rgba(18, 20, 28, 0.18);
  flex: none;
}

.project-id {
  min-width: 0;
}

.project-name {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.project-cat {
  margin-top: 2px;
  color: var(--p-muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  padding: 7px 11px;
  border: 1px solid var(--p-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
  color: var(--p-muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 8px;
  letter-spacing: 0.09em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.project-status svg {
  width: 10px;
  height: 10px;
  opacity: 0;
  transform: translate(-3px, 3px);
  transition:
    opacity 0.2s ease,
    transform 0.25s var(--ease);
}

a.project-status:hover svg {
  opacity: 1;
  transform: none;
}

.project-status--live {
  color: #157347;
}

.project-status--live .status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(31, 157, 97, 0.13);
  flex: none;
}

.project-status--dev {
  color: var(--amber);
}

.project-status--dev .status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d98a00;
  box-shadow: 0 0 0 3px rgba(217, 138, 0, 0.13);
  flex: none;
}

.project--komet .project-status {
  background: rgba(255, 255, 255, 0.045);
}

.project--komet .project-status--dev {
  color: #fbbf24;
}

.project-body {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(22px, 4vw, 54px);
  padding: clamp(28px, 4vw, 52px) clamp(22px, 4vw, 48px);
}

.project-title {
  max-width: 13ch;
  margin-bottom: 17px;
  font-size: clamp(34px, 3.75vw, 51px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.97;
  text-wrap: balance;
}

.project-desc {
  max-width: 44ch;
  margin-bottom: 24px;
  color: var(--p-muted);
  font-size: 15.5px;
  line-height: 1.65;
  letter-spacing: -0.008em;
}

.stats {
  display: flex;
  align-items: stretch;
  gap: 18px;
  margin-bottom: 21px;
  padding-block: 17px;
  border-top: 1px solid var(--p-line);
  border-bottom: 1px solid var(--p-line);
}

.stats li {
  flex: 1;
  min-width: 0;
}

.stats b {
  display: block;
  font-size: clamp(23px, 2.35vw, 29px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stats span {
  display: block;
  margin-top: 5px;
  color: var(--p-muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 7.5px;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 25px;
}

.tags li {
  padding: 4px 8px;
  border: 1px solid var(--p-line);
  border-radius: 999px;
  color: var(--p-muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 7.5px;
  letter-spacing: 0.07em;
  line-height: 1.2;
  text-transform: uppercase;
}

.project-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px 16px;
}

.project .button--play {
  background: var(--ink);
  color: var(--paper);
}

.project .button--play:hover {
  background: var(--accent);
  color: var(--ink);
}

.project .button--ghost {
  min-height: 36px;
  padding: 8px 13px;
  border-color: var(--p-line);
  color: var(--p-ink);
  font-size: 11.5px;
}

.project .button--ghost:hover {
  background: var(--p-ink);
  color: var(--p-soft);
  border-color: var(--p-ink);
}

.project .text-link {
  color: var(--p-ink);
  border-color: var(--p-line);
}

.project .text-link:hover {
  color: var(--p-accent);
  border-color: var(--p-accent);
}

.project-art {
  position: relative;
  height: 560px;
  min-width: 0;
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.23);
  overflow: hidden;
  isolation: isolate;
}

.project-art--quizoo {
  background:
    radial-gradient(circle at 62% 45%, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 58%),
    rgba(255, 255, 255, 0.2);
}

.art-octa {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  width: 87%;
  height: auto;
  color: rgba(107, 75, 244, 0.14);
  transform: translate(-50%, -50%);
}

.art-block {
  position: absolute;
  z-index: 1;
  background: var(--accent);
  opacity: 0.8;
}

.art-block--a {
  top: 15%;
  right: 9%;
  width: 9px;
  height: 9px;
}

.art-block--b {
  bottom: 17%;
  left: 9%;
  width: 5px;
  height: 5px;
  opacity: 0.55;
}

.project-art .device {
  border-width: 5px;
  border-radius: 32px;
  box-shadow: 0 24px 46px rgba(42, 26, 97, 0.23);
}

.project-art .device img {
  border-radius: 27px;
}

.project-art .device--front {
  z-index: 3;
  bottom: 23px;
  left: 54%;
  width: var(--front-w, 228px);
  transform: translateX(-50%) rotate(1deg);
}

.project-art .device--back {
  z-index: 2;
  top: 44px;
  left: 11%;
  width: var(--back-w, 184px);
  transform: rotate(-7deg);
}


.project-art--slingtide {
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 194, 51, 0.34) 0%, rgba(255, 194, 51, 0) 34%),
    linear-gradient(180deg, rgba(11, 122, 136, 0.06), rgba(11, 122, 136, 0.12));
}

.sling-sun {
  position: absolute;
  z-index: 0;
  top: -60px;
  right: -40px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229, 83, 61, 0.42) 0%, rgba(229, 83, 61, 0) 67%);
  filter: blur(4px);
}

.sling-wave {
  position: absolute;
  z-index: 1;
  inset: auto 0 0;
  width: 100%;
  height: 28%;
  color: rgba(11, 60, 93, 0.28);
}

.project--slingtide .device {
  box-shadow: 0 24px 46px rgba(11, 60, 93, 0.26);
}

.project-art--komet {
  background:
    radial-gradient(circle at 72% 24%, rgba(251, 191, 36, 0.12) 0%, rgba(251, 191, 36, 0) 25%),
    radial-gradient(circle at 20% 80%, rgba(34, 211, 238, 0.1) 0%, rgba(34, 211, 238, 0) 30%),
    #080b1c;
}

.project-art--komet::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.6) 0.8px, transparent 0.9px),
    radial-gradient(rgba(255, 255, 255, 0.3) 0.7px, transparent 0.8px);
  background-size: 74px 74px, 113px 113px;
  background-position: 0 0, 34px 19px;
  opacity: 0.55;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, transparent 78%);
  mask-image: radial-gradient(ellipse at center, #000 0%, transparent 78%);
}

.komet-orbit {
  position: absolute;
  z-index: 0;
  top: 48%;
  left: 53%;
  border: 1px solid rgba(34, 211, 238, 0.14);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.komet-orbit--1 {
  width: 220px;
  height: 220px;
}

.komet-orbit--2 {
  width: 370px;
  height: 370px;
}

.komet-orbit--3 {
  width: 540px;
  height: 540px;
}

.komet-star {
  position: absolute;
  z-index: 0;
  top: 28%;
  left: 18%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fbbf24;
  box-shadow:
    0 0 12px 3px rgba(251, 191, 36, 0.32),
    0 0 34px 8px rgba(251, 191, 36, 0.16);
}

.project--komet .device {
  border-color: #05070f;
  background: #05070f;
  box-shadow:
    0 28px 54px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.07);
}

.project--komet .device::after {
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 32%);
}


/* Compact cards */

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
  align-items: stretch;
}

.project--compact {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project--compact .project-art {
  height: 400px;
  --front-w: 170px;
  --back-w: 142px;
  border-radius: 0;
  border-bottom: 1px solid var(--p-line);
}

.project--compact .project-body {
  display: flex;
  flex: 1;
  padding: 25px clamp(20px, 3vw, 30px) 27px;
}

.project--compact .project-copy {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.project--compact .project-title {
  margin-bottom: 13px;
  font-size: clamp(29px, 2.9vw, 37px);
}

.project--compact .project-desc {
  margin-bottom: 18px;
  font-size: 14.5px;
  line-height: 1.6;
}

.project--compact .stats {
  margin-bottom: 16px;
  padding-block: 14px;
}

.project--compact .stats b {
  font-size: 22px;
}

.project--compact .stats span {
  font-size: 7px;
}

.project--compact .tags {
  margin-bottom: 20px;
}

.project--compact .project-actions {
  margin-top: auto;
  gap: 9px 14px;
}

.project--compact .text-link {
  font-size: 12px;
}

.next-project {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 24px;
  padding: 27px 32px;
  border: 1px dashed var(--line);
  border-radius: 28px;
  color: var(--ink);
  text-decoration: none;
  transition:
    background 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.next-project:hover {
  background: rgba(255, 255, 255, 0.45);
  border-color: var(--accent);
}

.next-mark {
  display: inline-flex;
  width: 44px;
  height: 44px;
  color: var(--ink);
  flex: none;
}

.next-mark svg {
  width: 100%;
  height: 100%;
}

.next-copy {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.next-copy .kicker {
  font-size: 8px;
}

.next-title {
  font-size: clamp(21px, 2.5vw, 29px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.next-arrow {
  margin-left: auto;
  color: var(--ink);
  flex: none;
  transition: transform 0.3s var(--ease);
}

.next-arrow svg {
  width: 32px;
  height: 32px;
}

.next-project:hover .next-arrow {
  transform: translate(3px, -3px);
  color: var(--accent-ink);
}

/* ---------- Studio ---------- */

.studio {
  background: var(--paper-2);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(42px, 8vw, 110px);
  align-items: start;
}

.studio-sticky {
  position: sticky;
  top: 118px;
}

.studio-sticky h2 {
  margin-top: 18px;
}

.studio-mark {
  width: 132px;
  height: 132px;
  margin-top: clamp(34px, 5vw, 62px);
  color: var(--ink);
  opacity: 0.92;
}

.studio-note {
  max-width: 250px;
  margin-top: 34px;
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-size: clamp(20px, 1.75vw, 25px);
  letter-spacing: -0.02em;
  line-height: 1.28;
  color: var(--ink-2);
  opacity: 0.8;
}

.studio-content {
  padding-top: 4px;
}

.studio-lede {
  max-width: 620px;
  margin-bottom: 22px;
  font-size: clamp(21px, 2.25vw, 28px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.34;
  text-wrap: pretty;
}

.studio-content > p:not(.studio-lede) {
  max-width: 620px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.7;
}

.principles {
  margin-top: clamp(34px, 4.5vw, 48px);
  border-top: 1px solid var(--line);
}

.principle {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 18px;
  padding-block: 23px;
  border-bottom: 1px solid var(--line);
}

.principle-num {
  padding-top: 4px;
  color: var(--accent-ink);
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
}

.principle h3 {
  margin-bottom: 5px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.principle p {
  max-width: 470px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}

.studio-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: clamp(34px, 4.5vw, 48px);
  padding-top: 25px;
  border-top: 1px solid var(--line);
}

.studio-stats dt {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-size: clamp(44px, 5vw, 60px);
  line-height: 0.9;
  letter-spacing: -0.02em;
}

.studio-stats dd {
  max-width: 120px;
  margin-top: 10px;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 7.5px;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
}

/* ---------- Craft ---------- */

.craft-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(34px, 7vw, 90px);
  align-items: start;
}

.octa-wrap {
  position: sticky;
  top: 118px;
}

.octa {
  position: relative;
  width: min(100%, 450px);
  aspect-ratio: 1;
}

.octa-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.octa-base,
.octa-inner {
  fill: none;
  stroke: rgba(18, 20, 28, 0.16);
  stroke-width: 1;
}

.octa-inner {
  stroke-width: 0.55;
  stroke-dasharray: 2 4;
  opacity: 0.9;
}

.octa-sides line {
  stroke: transparent;
  stroke-width: 6;
  stroke-linecap: round;
  transition:
    stroke 0.28s var(--ease),
    opacity 0.28s var(--ease);
}

.octa-sides line.is-on {
  stroke: var(--accent);
  filter: drop-shadow(0 0 8px rgba(255, 77, 28, 0.35));
}

.octa-nodes circle {
  fill: var(--paper);
  stroke: rgba(18, 20, 28, 0.3);
  stroke-width: 0.8;
}

.octa-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 25%;
  text-align: center;
}

.octa-num {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-size: clamp(52px, 6.5vw, 76px);
  line-height: 0.8;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.octa-label {
  max-width: 150px;
  margin-top: 14px;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 8px;
  letter-spacing: 0.12em;
  line-height: 1.55;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.octa.is-active .octa-label {
  color: var(--accent-ink);
}

.octa-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.octa-hint-mark {
  width: 22px;
  height: 1px;
  background: var(--accent);
}

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

.capability {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 20px;
  align-items: start;
  gap: 12px;
  padding: 21px 10px;
  border-bottom: 1px solid var(--line);
  transition:
    background 0.28s var(--ease),
    padding 0.28s var(--ease);
}

.capability.is-active,
.capability:hover {
  padding-left: 18px;
  padding-right: 18px;
  background: rgba(255, 77, 28, 0.045);
}

.cap-num {
  padding-top: 4px;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 8.5px;
  letter-spacing: 0.08em;
  transition: color 0.2s ease;
}

.capability.is-active .cap-num {
  color: var(--accent-ink);
}

.cap-body h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.cap-body p {
  max-width: 460px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
}

.cap-arrow {
  padding-top: 1px;
  color: var(--accent-ink);
  font-size: 14px;
  line-height: 1;
  opacity: 0;
  transform: translate(-4px, 4px);
  transition:
    opacity 0.2s ease,
    transform 0.3s var(--ease);
}

.capability.is-active .cap-arrow,
.capability:hover .cap-arrow {
  opacity: 1;
  transform: none;
}

/* ---------- Process ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3.2vw, 40px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.step {
  position: relative;
  min-width: 0;
}

.step::before {
  content: "";
  position: absolute;
  top: -28.5px;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--accent);
  clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%);
}

.step-num {
  display: block;
  margin-bottom: 18px;
  color: var(--accent);
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-size: 48px;
  line-height: 0.8;
  letter-spacing: -0.02em;
}

.step h3 {
  margin-bottom: 7px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.step p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}

.process-note {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 44px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- Contact ---------- */

.contact {
  position: relative;
  overflow: hidden;
  padding-top: clamp(88px, 10vw, 132px);
  padding-bottom: clamp(70px, 8vw, 104px);
  background: var(--ink);
  color: var(--paper);
}

.contact::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: -220px;
  right: -80px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(255, 77, 28, 0.16) 0%, rgba(255, 77, 28, 0) 65%);
  pointer-events: none;
}

.contact-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(0, 0.76fr);
  gap: clamp(42px, 7vw, 100px);
  align-items: end;
}

.contact .kicker {
  color: rgba(247, 245, 239, 0.64);
}

.contact h2 {
  margin: 18px 0 24px;
  font-size: clamp(47px, 6.4vw, 86px);
  color: var(--paper);
}

.contact h2 .serif {
  color: var(--accent);
}

.contact-lede {
  max-width: 470px;
  color: rgba(247, 245, 239, 0.65);
  font-size: clamp(14.5px, 1.25vw, 16.5px);
  line-height: 1.65;
}

.email-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 33px;
}

.email {
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(247, 245, 239, 0.32);
  color: var(--paper);
  font-size: clamp(19px, 2.5vw, 29px);
  font-weight: 550;
  letter-spacing: -0.035em;
  line-height: 1.25;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition:
    color 0.25s ease,
    border-color 0.25s ease;
}

.email:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 33px;
  padding: 7px 11px;
  border: 1px solid rgba(247, 245, 239, 0.18);
  border-radius: 999px;
  background: transparent;
  color: rgba(247, 245, 239, 0.72);
  font-family: "JetBrains Mono", monospace;
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.copy-btn svg {
  width: 12px;
  height: 12px;
}

.copy-btn:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.contact-availability {
  margin-top: 22px;
  color: rgba(247, 245, 239, 0.58);
}

.contact-side {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding-bottom: 4px;
}

.contact-group .side-label {
  display: block;
  margin-bottom: 8px;
  color: rgba(247, 245, 239, 0.6);
  font-family: "JetBrains Mono", monospace;
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-group a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid rgba(247, 245, 239, 0.12);
  color: rgba(247, 245, 239, 0.82);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.contact-group a:hover {
  color: var(--accent);
  border-color: rgba(255, 77, 28, 0.45);
}

.contact-octa {
  position: absolute;
  z-index: 1;
  right: -150px;
  bottom: -190px;
  width: 650px;
  height: 650px;
  color: rgba(247, 245, 239, 0.09);
  pointer-events: none;
}

.contact-octa svg {
  width: 100%;
  height: 100%;
}

/* ---------- Footer ---------- */

.footer {
  background: var(--ink);
  color: var(--paper);
  border-top: 1px solid rgba(247, 245, 239, 0.12);
  padding: 50px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.45fr repeat(3, minmax(0, 0.75fr));
  gap: 30px;
}

.footer .brand {
  color: var(--paper);
}

.footer .brand-mark {
  width: 30px;
  height: 30px;
  color: var(--paper);
}

.footer-brand p {
  margin-top: 17px;
  color: rgba(247, 245, 239, 0.62);
  font-size: 12.5px;
  line-height: 1.65;
}

.footer-col h2 {
  margin-bottom: 15px;
  color: rgba(247, 245, 239, 0.6);
  font-family: "JetBrains Mono", monospace;
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.footer-col a {
  display: block;
  width: fit-content;
  padding: 4px 0;
  color: rgba(247, 245, 239, 0.72);
  font-size: 13px;
  letter-spacing: -0.005em;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px 30px;
  flex-wrap: wrap;
  margin-top: 44px;
  padding-top: 18px;
  border-top: 1px solid rgba(247, 245, 239, 0.12);
  color: rgba(247, 245, 239, 0.6);
  font-family: "JetBrains Mono", monospace;
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-note {
  color: rgba(247, 245, 239, 0.7);
}

.footer-legal {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-legal a {
  color: rgba(247, 245, 239, 0.62);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: var(--accent);
}

/* ---------- Lightbox ---------- */

.lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--paper);
  overflow: hidden;
}

.lightbox::backdrop {
  background: rgba(8, 9, 13, 0.91);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.lightbox-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 54px 84px;
  pointer-events: none;
}

.lightbox-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  max-height: 100%;
  min-height: 0;
  pointer-events: auto;
}

.lightbox-img {
  width: auto;
  max-width: min(420px, calc(100vw - 210px));
  max-height: calc(100dvh - 158px);
  border: 6px solid #0c0e14;
  border-radius: 31px;
  background: #0c0e14;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.lightbox-caption {
  max-width: 480px;
  color: rgba(247, 245, 239, 0.72);
  font-family: "JetBrains Mono", monospace;
  font-size: 8.5px;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-align: center;
  text-transform: uppercase;
}

.lightbox-count {
  color: rgba(247, 245, 239, 0.36);
  font-family: "JetBrains Mono", monospace;
  font-size: 8px;
  letter-spacing: 0.12em;
}

.lightbox-close,
.lightbox-nav {
  position: fixed;
  z-index: 2;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(247, 245, 239, 0.2);
  border-radius: 50%;
  background: rgba(247, 245, 239, 0.06);
  color: var(--paper);
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.lightbox-close {
  top: 20px;
  right: 22px;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 22px;
}

.lightbox-next {
  right: 22px;
}

.lightbox-close svg,
.lightbox-nav svg {
  width: 19px;
  height: 19px;
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  z-index: 400;
  left: 50%;
  bottom: 24px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.26);
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 14px);
  transition:
    opacity 0.25s ease,
    transform 0.3s var(--ease);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- Reveal & load motion ---------- */

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

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.hero-load {
  opacity: 0;
  transform: translateY(18px);
  animation: hero-in 0.9s var(--ease) forwards;
}

.hero-load--1 {
  animation-delay: 0.04s;
}
.hero-load--2 {
  animation-delay: 0.1s;
}
.hero-load--3 {
  animation-delay: 0.17s;
}
.hero-load--4 {
  animation-delay: 0.24s;
}
.hero-load--5 {
  animation-delay: 0.31s;
}
.hero-load--art {
  animation-delay: 0.2s;
  animation-duration: 1.05s;
}

@keyframes hero-in {
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 404 ---------- */

.error-page {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-block: 100px;
  position: relative;
  overflow: hidden;
}

.error-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr);
  gap: 40px;
  align-items: center;
}

.error-code {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-size: clamp(120px, 24vw, 280px);
  line-height: 0.72;
  letter-spacing: -0.06em;
  color: var(--ink);
}

.error-copy h1 {
  max-width: 560px;
  margin: 18px 0 20px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.error-copy p {
  max-width: 440px;
  margin-bottom: 28px;
  color: var(--muted);
}

.error-art {
  color: rgba(18, 20, 28, 0.14);
}

.error-art svg {
  width: 100%;
  height: auto;
}

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
  .nav .availability {
    display: none;
  }
  .art-note--a,
  .art-vertical {
    display: none;
  }
  .hero-art .device--front {
    width: 226px;
  }
  .hero-art .device--left,
  .hero-art .device--right {
    width: 190px;
  }
}

@media (max-width: 1020px) {
  .nav-links {
    gap: 22px;
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding-bottom: 10px;
  }
  .hero-copy {
    max-width: 720px;
  }
  h1 {
    max-width: 730px;
  }
  .hero-art {
    width: min(100%, 650px);
    height: 650px;
    margin: 10px auto 0;
  }
  .project-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .project-copy {
    order: 2;
  }
  .project-art--quizoo {
    order: 1;
    height: 520px;
    --front-w: 210px;
    --back-w: 170px;
  }
  .project-art .device--front {
    bottom: 26px;
  }
  .project-art .device--back {
    top: 38px;
  }
  .studio-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }
  .studio-sticky {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 24px;
  }
  .studio-sticky .kicker {
    grid-column: 1 / -1;
  }
  .studio-mark {
    margin: 0;
    width: 108px;
    height: 108px;
  }
  .craft-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .octa-wrap {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 8px;
  }
  .octa {
    width: min(100%, 360px);
  }
  .octa-center {
    padding: 28%;
  }
  .octa-hint {
    display: none;
  }
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 42px;
  }
  .contact-side {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
    align-items: start;
  }
}

@media (max-width: 900px) {
  .nav-links,
  .nav-cta {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
  .nav-actions {
    margin-left: auto;
  }
  .step-num {
    font-size: 42px;
  }
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 28px;
  }
  .step:nth-child(3)::before,
  .step:nth-child(4)::before {
    display: none;
  }
  .step:nth-child(3),
  .step:nth-child(4) {
    padding-top: 28px;
    border-top: 1px solid var(--line-soft);
  }
  .project-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .project--compact .project-art {
    height: 430px;
    --front-w: 180px;
    --back-w: 150px;
  }
  .project--compact .project-title {
    font-size: clamp(31px, 4.4vw, 39px);
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .hero-art {
    height: 588px;
  }
  .hero-art .device--front {
    width: 208px;
    top: 32px;
  }
  .hero-art .device--left {
    width: 170px;
    top: 132px;
    left: -2%;
  }
  .hero-art .device--right {
    width: 170px;
    top: 110px;
    right: -2%;
  }
  .art-chip {
    bottom: 2px;
  }
  .hero-foot {
    gap: 10px;
    font-size: 7.5px;
  }
  .hero-foot span:nth-child(2) {
    display: none;
  }
  .hero-facts {
    flex-wrap: wrap;
    gap: 16px 0;
  }
  .hero-facts > div {
    padding-right: 18px;
    margin-right: 18px;
  }
  .hero-facts > div:nth-child(3) {
    flex-basis: 100%;
    padding-top: 10px;
    padding-right: 0;
    margin-right: 0;
    border-right: 0;
  }
  .project-top {
    flex-wrap: wrap;
    gap: 12px;
  }
  .project-status {
    margin-left: 0;
  }
  .project-id {
    flex: 1;
  }
  .project-body {
    padding-top: 26px;
  }
  .project-art--quizoo {
    height: 450px;
    --front-w: 180px;
    --back-w: 142px;
  }
  .project-art .device--front {
    bottom: 22px;
    left: 55%;
  }
  .project-art .device--back {
    top: 34px;
    left: 7%;
  }
  .project--compact .project-art {
    height: 370px;
    --front-w: 155px;
    --back-w: 129px;
  }
  .project--compact .project-body {
    padding: 22px 20px 24px;
  }
  .next-project {
    gap: 14px;
    padding: 22px 20px;
  }
  .next-mark {
    width: 36px;
    height: 36px;
  }
  .next-arrow svg {
    width: 26px;
    height: 26px;
  }
  .studio-sticky {
    display: block;
  }
  .studio-mark {
    margin-top: 28px;
    width: 88px;
    height: 88px;
  }
  .studio-lede {
    font-size: 21px;
  }
  .studio-stats {
    gap: 12px;
  }
  .studio-stats dt {
    font-size: 42px;
  }
  .studio-stats dd {
    font-size: 7px;
  }
  .contact-side {
    gap: 22px;
  }
  .footer-bottom {
    justify-content: flex-start;
  }
  .footer-note {
    order: 3;
    flex-basis: 100%;
  }
  .footer-legal {
    order: 2;
  }
  .lightbox-inner {
    padding: 54px 20px 78px;
  }
  .lightbox-img {
    max-width: calc(100vw - 46px);
    max-height: calc(100dvh - 190px);
  }
  .lightbox-nav {
    top: auto;
    bottom: 18px;
    transform: none;
  }
  .lightbox-prev {
    left: 20px;
  }
  .lightbox-next {
    right: 20px;
  }
  .lightbox-close {
    top: 14px;
    right: 14px;
  }
  .error-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .error-art,
  .contact-octa {
    display: none;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding-block: 12px;
  }
  .brand-mark {
    width: 26px;
    height: 26px;
  }
  .brand-word {
    font-size: 18px;
  }
  .mobile-nav {
    top: 64px;
  }
  .hero {
    padding-top: 108px;
  }
  .hero-grid {
    gap: 8px;
  }
  h1 {
    font-size: clamp(44px, 14.2vw, 62px);
  }
  .hero-art {
    height: 500px;
  }
  .hero-art .device--front {
    width: 188px;
    top: 28px;
  }
  .hero-art .device--left {
    width: 148px;
    top: 116px;
    left: -7%;
  }
  .hero-art .device--right {
    width: 148px;
    top: 96px;
    right: -7%;
  }
  .art-chip {
    font-size: 6.5px;
    padding: 7px 10px;
  }
  .eyebrow {
    font-size: 8px;
  }
  .lede {
    font-size: 15.5px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .button {
    width: 100%;
    white-space: nowrap;
  }
  .hero-facts dt {
    font-size: 7.5px;
  }
  .hero-facts dd {
    font-size: 11.5px;
  }
  .section-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    margin-bottom: 32px;
  }
  .section-intro {
    justify-self: start;
    padding-bottom: 0;
  }
  h2 {
    font-size: clamp(37px, 11.4vw, 52px);
  }
  .project-top {
    padding: 16px 18px;
  }
  .project-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }
  .project-name {
    font-size: 15px;
  }
  .project-cat {
    font-size: 7.5px;
  }
  .project-status {
    font-size: 6.8px;
    padding: 6px 9px;
  }
  .project-body {
    padding: 24px 18px 26px;
    gap: 22px;
  }
  .project-title {
    font-size: 33px;
  }
  .project-desc {
    font-size: 14.5px;
  }
  .stats {
    gap: 10px;
  }
  .stats b {
    font-size: 22px;
  }
  .stats span {
    font-size: 6.8px;
  }
  .tags {
    gap: 5px;
  }
  .tags li {
    font-size: 6.8px;
    padding: 3px 6px;
  }
  .project-actions {
    gap: 10px 14px;
  }
  .project .button--play {
    width: 100%;
  }
  .project-art--quizoo {
    height: 390px;
    --front-w: 156px;
    --back-w: 123px;
  }
  .project-art .device--front {
    bottom: 18px;
    left: 55%;
  }
  .project-art .device--back {
    top: 30px;
    left: 7%;
  }
  .project--compact .project-art {
    height: 350px;
    --front-w: 140px;
    --back-w: 116px;
  }
  .project--compact .project-title {
    font-size: 29px;
  }
  .project--compact .project-desc {
    font-size: 14px;
  }
  .next-project {
    gap: 13px;
    padding: 20px 17px;
  }
  .next-title {
    font-size: 20px;
  }
  .next-copy .kicker {
    font-size: 7px;
  }
  .next-arrow {
    display: none;
  }
  .studio-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .studio-stats dt {
    font-size: 36px;
  }
  .studio-stats dd {
    font-size: 6.5px;
  }
  .principle {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
  }
  .principle h3 {
    font-size: 18px;
  }
  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding-top: 0;
  }
  .step {
    padding: 26px 0 27px;
    border-top: 1px solid var(--line-soft);
  }
  .step:first-child {
    border-top: 0;
  }
  .step::before,
  .step:nth-child(2)::before,
  .step:nth-child(3)::before,
  .step:nth-child(4)::before {
    display: block;
    top: -4.5px;
  }
  .step:nth-child(2),
  .step:nth-child(3),
  .step:nth-child(4) {
    padding-top: 26px;
    border-top: 1px solid var(--line-soft);
  }
  .step-num {
    font-size: 40px;
    margin-bottom: 12px;
  }
  .process-note {
    flex-direction: column;
    gap: 4px;
  }
  .contact h2 {
    font-size: clamp(42px, 12.5vw, 58px);
  }
  .email {
    font-size: 18px;
  }
  .contact-side {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .footer {
    padding-top: 38px;
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 20px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-bottom {
    font-size: 8px;
    gap: 12px 16px;
  }
  .footer-legal {
    gap: 10px;
  }
}

@media (max-width: 380px) {
  .hero-art {
    height: 454px;
  }
  .hero-art .device--front {
    width: 172px;
  }
  .hero-art .device--left,
  .hero-art .device--right {
    width: 132px;
  }
  .hero-actions .button {
    min-width: 100%;
  }
  h1 {
    font-size: 43px;
  }
  .project-art--quizoo {
    height: 350px;
    --front-w: 140px;
    --back-w: 112px;
  }
  .project--compact .project-art {
    height: 310px;
    --front-w: 116px;
    --back-w: 96px;
  }
}

@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;
  }
  .hero-load,
  .js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
  .ticker-track {
    animation: none;
  }
}
