:root {
  --black: #020202;
  --black-soft: #090806;
  --ink: #11100d;
  --ivory: #f4f0e8;
  --ivory-muted: #aaa59c;
  --gold: #f0b84b;
  --gold-hot: #ffd786;
  --gold-dark: #755017;
  --green: #54e899;
  --line: rgba(240, 184, 75, 0.22);
  --line-soft: rgba(244, 240, 232, 0.13);
  --page-x: clamp(20px, 4vw, 64px);
  --header-h: 92px;
  --ease-out: cubic-bezier(0.2, 0.75, 0.2, 1);
}

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

html {
  background: var(--black);
  color: var(--ivory);
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--black);
  color: var(--ivory);
  font-family: "Avenir Next", Avenir, Inter, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.intro-running {
  overflow: hidden;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--gold-hot);
  outline-offset: 5px;
}

[hidden] {
  display: none !important;
}

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

.skip-link {
  position: fixed;
  z-index: 1200;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  color: var(--black);
  background: var(--gold-hot);
  transform: translateY(-180%);
  transition: transform 180ms var(--ease-out);
}

.skip-link:focus {
  transform: translateY(0);
}

/* Terminal opening */
.cinematic-intro {
  position: fixed;
  z-index: 1000;
  inset: 0;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: #000;
  color: var(--green);
  opacity: 1;
  transition: opacity 520ms var(--ease-out), visibility 520ms linear;
}

.cinematic-intro.is-collapsing {
  background: #010100;
}

.cinematic-intro.is-ending {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.terminal-scan {
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background-size: 100% 5px;
  background-image: linear-gradient(to bottom, transparent 0, transparent 3px, rgba(84, 232, 153, 0.08) 4px, transparent 5px);
  animation: scan-drift 9s linear infinite;
  pointer-events: none;
}

.terminal-shell {
  position: absolute;
  top: clamp(108px, 15vh, 168px);
  left: clamp(24px, 7vw, 112px);
  width: min(820px, calc(100vw - 48px));
  min-height: min(610px, 72vh);
  padding: 20px 0 24px;
  border-top: 1px solid rgba(84, 232, 153, 0.26);
  border-bottom: 1px solid rgba(84, 232, 153, 0.16);
  transform-origin: 70% 56%;
  transition: opacity 440ms ease, transform 720ms cubic-bezier(0.6, 0, 0.85, 0.2);
}

.is-collapsing .terminal-shell {
  opacity: 0;
  transform: translate3d(42vw, 12vh, 0) scale(0.08);
}

.terminal-meta,
.terminal-status {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: rgba(84, 232, 153, 0.52);
  font: 600 10px/1.2 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  letter-spacing: 0.18em;
}

.terminal-output {
  display: grid;
  align-content: start;
  gap: clamp(20px, 2.8vh, 34px);
  min-height: min(500px, 59vh);
  padding: clamp(34px, 6vh, 70px) 0 42px;
}

.terminal-line {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: baseline;
  color: rgba(84, 232, 153, 0.88);
  font: 500 clamp(14px, 1.25vw, 18px)/1.45 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.terminal-line.is-active {
  color: #8cffbb;
  text-shadow: 0 0 22px rgba(84, 232, 153, 0.16);
}

.terminal-line.is-complete {
  color: rgba(84, 232, 153, 0.58);
}

.terminal-prompt {
  color: rgba(84, 232, 153, 0.34);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.terminal-text {
  display: inline-flex;
  flex-wrap: wrap;
  min-height: 1.45em;
  white-space: pre-wrap;
}

.terminal-glyph {
  display: inline-block;
  transform: translate3d(0, 0, 0);
  will-change: transform, opacity;
}

.terminal-glyph.is-glitching {
  color: var(--ivory);
  transform: translate3d(1px, -1px, 0);
}

.is-collapsing .terminal-glyph {
  opacity: 0;
  transform: translate3d(var(--glyph-x, 0), var(--glyph-y, 0), 0) scale(0.05) rotate(var(--glyph-r, 0deg));
  transition: transform 680ms cubic-bezier(0.7, 0, 0.8, 0.2) var(--glyph-delay, 0ms), opacity 520ms ease var(--glyph-delay, 0ms);
}

.terminal-line--wake {
  margin-bottom: clamp(10px, 2.2vh, 24px);
  color: var(--ivory);
  font-size: clamp(38px, 5.9vw, 88px);
  font-weight: 650;
  line-height: 0.95;
  letter-spacing: -0.035em;
}

.terminal-line--wake .terminal-prompt {
  align-self: center;
}

.terminal-line--wake.is-active,
.terminal-line--wake.is-complete {
  color: var(--ivory);
  text-shadow: none;
}

.terminal-cursor {
  display: none;
  width: 0.48em;
  height: 0.9em;
  margin-left: 0.12em;
  vertical-align: -0.06em;
  background: var(--green);
  animation: cursor-blink 620ms steps(1, end) infinite;
}

.terminal-line--wake.is-active .terminal-cursor,
.terminal-line--wake.is-complete .terminal-cursor {
  display: inline-block;
}

.intro-core {
  position: absolute;
  top: 55%;
  left: 68%;
  width: clamp(58px, 7vw, 104px);
  aspect-ratio: 1;
  border: 1px solid rgba(240, 184, 75, 0.42);
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.12);
  transition: opacity 280ms ease, transform 780ms cubic-bezier(0.1, 0.75, 0.2, 1);
}

.intro-core::before,
.intro-core::after,
.intro-core span {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.intro-core::before {
  inset: 14%;
  border: 1px solid rgba(255, 215, 134, 0.68);
}

.intro-core::after {
  inset: 35%;
  background: var(--gold-hot);
  box-shadow: 0 0 36px 10px rgba(240, 184, 75, 0.32);
}

.intro-core span {
  inset: -24%;
  border: 1px solid rgba(240, 184, 75, 0.15);
}

.is-collapsing .intro-core {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.intro-skip {
  position: absolute;
  right: max(24px, calc(env(safe-area-inset-right) + 24px));
  bottom: max(22px, calc(env(safe-area-inset-bottom) + 20px));
  min-width: 84px;
  min-height: 44px;
  border: 1px solid rgba(84, 232, 153, 0.28);
  color: rgba(84, 232, 153, 0.74);
  background: #000;
  font: 600 11px/1 ui-monospace, "SFMono-Regular", Menlo, monospace;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.intro-skip:hover {
  color: var(--green);
  border-color: var(--green);
  transform: translateY(-2px);
}

@keyframes cursor-blink {
  0%, 48% { opacity: 1; }
  49%, 100% { opacity: 0; }
}

@keyframes scan-drift {
  to { background-position-y: 100px; }
}

/* Header */
.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: height 260ms var(--ease-out), background-color 260ms ease, border-color 260ms ease;
}

.site-header.is-scrolled {
  height: 72px;
  border-color: var(--line-soft);
  background: rgba(2, 2, 2, 0.9);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  padding: 0 var(--page-x);
}

.wordmark {
  color: var(--gold);
  font-size: clamp(18px, 1.9vw, 25px);
  font-weight: 650;
  letter-spacing: 0.33em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3.2vw, 54px);
}

.site-nav a {
  position: relative;
  padding: 14px 0;
  color: rgba(244, 240, 232, 0.78);
  font-size: 14px;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 7px;
  left: 0;
  height: 1px;
  background: var(--gold);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 240ms var(--ease-out);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.motion-toggle {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(244, 240, 232, 0.2);
  color: rgba(244, 240, 232, 0.62);
  background: rgba(2, 2, 2, 0.42);
  font: 600 9px/1 ui-monospace, "SFMono-Regular", Menlo, monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.motion-toggle:hover,
.motion-toggle[aria-pressed="true"] {
  color: var(--gold-hot);
  border-color: rgba(240, 184, 75, 0.55);
  background: rgba(240, 184, 75, 0.08);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-soft);
  background: transparent;
}

.menu-toggle > span:not(.sr-only) {
  position: absolute;
  left: 11px;
  width: 20px;
  height: 1px;
  background: var(--ivory);
  transition: transform 220ms ease, top 220ms ease;
}

.menu-toggle > span:nth-of-type(2) { top: 17px; }
.menu-toggle > span:nth-of-type(3) { top: 25px; }
.menu-toggle[aria-expanded="true"] > span:nth-of-type(2) { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] > span:nth-of-type(3) { top: 21px; transform: rotate(-45deg); }

/* Signal journey */
.signal-journey {
  position: relative;
  background: var(--black);
}

.journey-anchor {
  position: absolute;
  top: 100vh;
  top: 100svh;
}

.signal-stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--black);
}

.signal-poster,
.signal-canvas,
.signal-depth {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100svh;
}

.signal-poster {
  z-index: 0;
  opacity: 0.62;
  transition: opacity 700ms ease;
}

.signal-poster::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 2, 2, 1) 0%, rgba(2, 2, 2, 0.92) 35%, rgba(2, 2, 2, 0.12) 72%, rgba(2, 2, 2, 0.48) 100%);
  content: "";
}

.signal-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.signal-canvas {
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  touch-action: pan-y;
  transition: opacity 700ms ease;
}

.webgl-ready .signal-canvas { opacity: 1; }
.webgl-ready .signal-poster { opacity: 0.2; }

.signal-depth {
  z-index: 2;
  pointer-events: none;
  perspective: 900px;
}

.signal-depth span {
  position: absolute;
  top: 50%;
  left: 69%;
  width: min(38vw, 540px);
  aspect-ratio: 1;
  border: 1px solid rgba(240, 184, 75, 0.13);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotateX(69deg);
  animation: depth-orbit 13s linear infinite;
}

.signal-depth span:nth-child(2) {
  width: min(48vw, 690px);
  animation-duration: 19s;
  animation-direction: reverse;
}

.signal-depth span:nth-child(3) {
  width: min(58vw, 830px);
  border-color: rgba(240, 184, 75, 0.07);
  animation-duration: 27s;
}

@keyframes depth-orbit {
  to { transform: translate(-50%, -50%) rotateX(69deg) rotateZ(360deg); }
}

.journey-copy {
  position: relative;
  z-index: 5;
}

.journey-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  width: min(720px, 52vw);
  padding: calc(var(--header-h) + 52px) 0 112px var(--page-x);
}

.journey-panel:not(.journey-panel--hero) {
  margin-left: var(--page-x);
}

.journey-panel h1,
.journey-panel h2,
.section-heading h2,
.work-header h2,
.about-copy h2,
.contact-section h2 {
  color: var(--ivory);
  font-weight: 500;
  letter-spacing: -0.052em;
}

.journey-panel h1 {
  max-width: 780px;
  margin-top: 22px;
  font-size: clamp(58px, 6.8vw, 104px);
  line-height: 0.94;
}

.journey-panel h2 {
  margin-top: 22px;
  font-size: clamp(48px, 5.6vw, 84px);
  line-height: 0.98;
}

.mask-line {
  display: block;
  overflow: hidden;
}

.mask-line > span {
  display: block;
  transform: translate3d(0, 0, 0);
}

.signal-label,
.section-kicker,
.capability-index {
  color: var(--gold);
  font: 600 11px/1.3 ui-monospace, "SFMono-Regular", Menlo, monospace;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.signal-label {
  color: var(--green);
}

.signal-label > span {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 12px;
  background: currentColor;
  box-shadow: 0 0 20px rgba(84, 232, 153, 0.28);
}

.hero-description,
.journey-panel:not(.journey-panel--hero) > p:last-child {
  max-width: 670px;
  margin-top: 28px;
  color: rgba(244, 240, 232, 0.73);
  font-size: clamp(17px, 1.35vw, 21px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 24px;
  gap: 28px;
  border: 1px solid var(--line);
  font-size: 15px;
  transition: color 220ms ease, background-color 220ms ease, border-color 220ms ease, transform 220ms var(--ease-out);
  will-change: transform;
  transform: translate3d(var(--magnetic-x, 0px), var(--magnetic-y, 0px), 0);
}

.button--primary {
  min-width: 230px;
  color: var(--black);
  border-color: var(--gold);
  background: var(--gold);
}

.button--quiet {
  min-width: 230px;
  color: var(--ivory);
  border-color: rgba(244, 240, 232, 0.3);
  background: rgba(2, 2, 2, 0.4);
}

.button:hover {
  transform: translate3d(var(--magnetic-x, 0px), calc(var(--magnetic-y, 0px) - 3px), 0);
}

.magnetic:not(.button) {
  transform: translate3d(var(--magnetic-x, 0px), var(--magnetic-y, 0px), 0);
}

.button--primary:hover { background: var(--gold-hot); border-color: var(--gold-hot); }
.button--quiet:hover { color: var(--gold-hot); border-color: var(--gold); }

.hero-note {
  margin-top: 24px;
  color: rgba(244, 240, 232, 0.42);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.journey-stage-label {
  position: absolute;
  z-index: 6;
  top: 50%;
  right: var(--page-x);
  display: grid;
  grid-template-columns: auto 68px auto;
  align-items: center;
  gap: 12px;
  color: rgba(240, 184, 75, 0.64);
  font: 600 9px/1 ui-monospace, monospace;
  letter-spacing: 0.18em;
  transform: rotate(90deg) translateX(50%);
  transform-origin: right center;
}

.journey-stage-label i {
  display: block;
  height: 1px;
  background: var(--line);
}

.journey-progress {
  position: absolute;
  z-index: 6;
  right: var(--page-x);
  bottom: 30px;
  left: var(--page-x);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line-soft);
  list-style: none;
}

.journey-progress li {
  position: relative;
  padding: 14px 12px 0 0;
  color: rgba(244, 240, 232, 0.3);
  font: 500 10px/1.2 ui-monospace, monospace;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  transition: color 280ms ease;
}

.journey-progress li::before {
  position: absolute;
  top: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  content: "";
  transition: width 420ms var(--ease-out);
}

.journey-progress li.is-active { color: var(--gold-hot); }
.journey-progress li.is-active::before { width: 76%; }
.journey-progress span { margin-right: 7px; color: rgba(240, 184, 75, 0.52); }

.js.motion-ready .signal-journey {
  height: 520vh;
  height: 520svh;
}

.js.motion-ready .signal-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
}

.js.motion-ready .journey-panel {
  position: absolute;
  inset: 0 auto 0 0;
  margin-left: 0;
  opacity: 0;
  pointer-events: none;
  clip-path: inset(18% 0 18% 0);
  transform: translate3d(0, 72px, -160px) scale(0.97);
  transition: opacity 520ms ease, transform 820ms var(--ease-out), clip-path 820ms var(--ease-out);
}

.js.motion-ready .journey-panel .mask-line > span {
  transform: translate3d(0, 110%, 0);
  transition: transform 820ms var(--ease-out);
}

.js.motion-ready .journey-panel.is-active {
  opacity: 1;
  pointer-events: auto;
  clip-path: inset(0 0 0 0);
  transform: translate3d(0, 0, 0) scale(1);
}

.js.motion-ready .journey-panel.is-active .mask-line > span {
  transform: translate3d(0, 0, 0);
}

.js.motion-ready .journey-panel.is-before {
  opacity: 0;
  clip-path: inset(0 0 100% 0);
  transform: translate3d(0, -86px, -220px) scale(0.94);
}

/* Process */
.process-section {
  position: relative;
  padding: clamp(120px, 15vw, 210px) var(--page-x);
  overflow: hidden;
  border-top: 1px solid var(--line-soft);
  background: #050504;
}

.process-section::before {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-size: 52px 52px;
  background-image: linear-gradient(rgba(240, 184, 75, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(240, 184, 75, 0.08) 1px, transparent 1px);
  content: "";
  pointer-events: none;
}

.section-heading,
.work-header {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.5fr);
  gap: 42px 80px;
  align-items: end;
  max-width: 1380px;
  margin: 0 auto;
}

.section-heading .section-kicker,
.work-header .section-kicker {
  grid-column: 1 / -1;
}

.section-kicker span {
  margin-right: 18px;
  color: rgba(240, 184, 75, 0.76);
}

.section-heading h2,
.work-header h2 {
  font-size: clamp(48px, 6vw, 90px);
  line-height: 0.98;
}

.section-heading > p:last-child,
.work-header > p:last-child {
  color: var(--ivory-muted);
  font-size: 17px;
  line-height: 1.6;
}

.process-blueprint {
  position: relative;
  z-index: 1;
  max-width: 1380px;
  margin: clamp(80px, 10vw, 150px) auto 0;
}

.process-line {
  position: absolute;
  top: 16px;
  right: 0;
  left: 0;
  height: 1px;
  overflow: hidden;
  background: rgba(244, 240, 232, 0.12);
}

.process-line span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--gold);
  transform: scaleX(var(--process-progress, 0));
  transform-origin: left;
}

.process-blueprint ol {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 0;
  margin: 0;
  list-style: none;
}

.process-blueprint li {
  min-height: 330px;
  padding: 0 clamp(18px, 2vw, 34px) 32px 0;
  opacity: 0.35;
  transform: translate3d(0, 28px, 0);
  transition: opacity 420ms ease, transform 620ms var(--ease-out);
}

.process-blueprint li.is-active {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.process-node {
  display: block;
  width: 10px;
  height: 10px;
  margin: 11px 0 70px;
  border: 2px solid #050504;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
}

.process-blueprint li > p {
  color: var(--gold);
  font: 600 10px/1 ui-monospace, monospace;
  letter-spacing: 0.16em;
}

.process-blueprint h3 {
  margin-top: 20px;
  color: var(--ivory);
  font-size: clamp(24px, 2.2vw, 34px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.process-blueprint small {
  display: block;
  margin-top: 18px;
  color: var(--ivory-muted);
  font-size: 14px;
  line-height: 1.55;
}

/* Independent work scenes */
.work-section {
  background: var(--black);
}

.work-header {
  padding: clamp(120px, 14vw, 210px) var(--page-x);
}

.project-scene {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(420px, 1.18fr);
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + 40px) var(--page-x) 70px;
  overflow: hidden;
  border-top: 1px solid currentColor;
  isolation: isolate;
}

.project-scene--kien { color: #342f27; background: #e8e0d2; }
.project-scene--lexitrek { color: #a8edf0; background: #071315; }
.project-scene--izler { color: #ff9f6f; background: #130906; }
.project-scene--datele { color: #4c2727; background: #e7c8bc; }

.project-index {
  position: absolute;
  top: calc(var(--header-h) + 26px);
  right: var(--page-x);
  font: 600 10px/1 ui-monospace, monospace;
  letter-spacing: 0.16em;
  opacity: 0.86;
}

.project-copy {
  position: relative;
  z-index: 3;
  max-width: 560px;
  padding-right: clamp(30px, 7vw, 110px);
  transform: translate3d(0, var(--copy-shift, 0), 0);
  will-change: transform;
}

.project-copy > p:first-child {
  font: 600 10px/1.3 ui-monospace, monospace;
  letter-spacing: 0.17em;
}

.project-copy h3 {
  margin-top: 24px;
  font-size: clamp(47px, 5.2vw, 82px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.052em;
}

.project-copy h3 + p {
  margin-top: 28px;
  font-size: 17px;
  line-height: 1.6;
  opacity: 0.78;
}

.project-copy > a {
  display: inline-flex;
  align-items: center;
  gap: 30px;
  min-height: 44px;
  margin-top: 30px;
  border-bottom: 1px solid currentColor;
  font-size: 14px;
  font-weight: 600;
}

.project-name {
  position: absolute;
  z-index: -1;
  right: -0.04em;
  bottom: -0.12em;
  max-width: 100%;
  overflow: hidden;
  font-size: clamp(110px, 22vw, 340px);
  font-weight: 650;
  line-height: 0.8;
  letter-spacing: -0.075em;
  opacity: 0.075;
  white-space: nowrap;
  transform: translate3d(var(--project-shift, 0), 0, 0);
  will-change: transform;
}

.project-media {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: min(68vh, 680px);
  perspective: 1400px;
  opacity: 1;
  transform: translate3d(0, var(--asset-shift, 0), 0) rotateY(var(--media-tilt, 0deg));
  transform-origin: center;
  will-change: transform, opacity, clip-path;
}

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

.project-media::before {
  z-index: -1;
  inset: 10% 5%;
  background: radial-gradient(circle at 48% 45%, currentColor 0, transparent 64%);
  filter: blur(72px);
  opacity: 0.14;
  transform: translate3d(0, 0, -80px) scale(0.92);
}

.project-media::after {
  right: 0;
  bottom: 7%;
  left: 0;
  height: 1px;
  opacity: 0.22;
  background: linear-gradient(90deg, transparent, currentColor 24%, currentColor 76%, transparent);
  transform: scaleX(var(--media-reveal, 0.76));
}

.media-note {
  position: absolute;
  z-index: 8;
  top: 12px;
  right: 12px;
  padding: 8px 10px;
  border: 1px solid currentColor;
  background: color-mix(in srgb, currentColor 8%, transparent);
  font: 650 8px/1 ui-monospace, "SFMono-Regular", Menlo, monospace;
  letter-spacing: 0.13em;
  opacity: 0.72;
  backdrop-filter: blur(12px);
}

.kien-shot,
.phone-shot,
.dashboard-shot {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, currentColor 32%, transparent);
  background: #050504;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.25);
  will-change: transform;
}

.kien-shot img,
.phone-shot img,
.dashboard-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: media-breathe 12s var(--ease-out) infinite alternate;
  will-change: transform;
}

.kien-shot {
  top: 50%;
  right: 12%;
  width: min(330px, 48%);
  aspect-ratio: 390 / 844;
  border-radius: 22px;
  transform: translate3d(0, calc(-50% + var(--media-shift-a, 0px)), 35px) rotateY(-5deg) rotateZ(1.2deg);
}

.kien-shot img { object-position: top center; }

.project-media--kien::before {
  inset: 12% 3% 0 35%;
  opacity: 0.2;
}

.phone-gallery,
.dashboard-gallery {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

.phone-shot {
  top: 4%;
  bottom: 3%;
  width: min(330px, 47%);
  border-color: rgba(168, 237, 240, 0.3);
  border-radius: 27px;
}

.phone-shot--words {
  z-index: 3;
  right: 11%;
  transform: translate3d(0, var(--media-shift-a, 0px), 46px) rotateY(-5deg) rotateZ(1deg);
}

.phone-shot--library {
  z-index: 2;
  top: 11%;
  bottom: 10%;
  left: 7%;
  opacity: 0.68;
  transform: translate3d(0, var(--media-shift-b, 0px), -22px) rotateY(8deg) rotateZ(-2.6deg);
}

.phone-shot--library img { animation-delay: -4s; }

.dashboard-shot {
  border-color: rgba(255, 159, 111, 0.25);
  border-radius: 9px;
}

.dashboard-shot--dashboard {
  z-index: 4;
  top: 20%;
  left: 7%;
  width: 86%;
  aspect-ratio: 1440 / 780;
  transform: translate3d(0, var(--media-shift-a, 0px), 54px) rotateX(2.4deg) rotateY(-2.4deg);
}

.dashboard-shot--pos,
.dashboard-shot--salon {
  width: 61%;
  aspect-ratio: 1440 / 780;
  opacity: 0.54;
}

.dashboard-shot--pos {
  z-index: 2;
  top: 2%;
  right: 0;
  transform: translate3d(0, var(--media-shift-b, 0px), -40px) rotateY(-8deg) rotateZ(0.8deg);
}

.dashboard-shot--salon {
  z-index: 1;
  bottom: 1%;
  left: 0;
  transform: translate3d(0, var(--media-shift-c, 0px), -65px) rotateY(8deg) rotateZ(-0.8deg);
}

.dashboard-shot--pos img { animation-delay: -3s; }
.dashboard-shot--salon img { animation-delay: -7s; }

.js.motion-ready .project-media {
  clip-path: inset(7% 4% 7% 4%);
  opacity: 0.58;
  transition: opacity 900ms ease, clip-path 1100ms var(--ease-out);
}

.js.motion-ready .project-scene.is-inview .project-media {
  clip-path: inset(0 0 0 0);
  opacity: 1;
}

.project-scene--text-only {
  grid-template-columns: minmax(0, 860px);
  min-height: 86vh;
  min-height: 86svh;
}

.project-scene--text-only .project-copy {
  max-width: 760px;
}

@keyframes media-breathe {
  from { transform: scale(1.005) translate3d(0, 0, 0); }
  to { transform: scale(1.035) translate3d(0, -1.2%, 0); }
}

.motion-paused .signal-depth span,
.motion-paused .project-media img,
.motion-paused .terminal-scan,
.motion-paused .terminal-cursor {
  animation-play-state: paused;
}

.availability {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 22px;
  font: 600 11px/1.45 ui-monospace, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.availability span {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin-top: 4px;
  border-radius: 50%;
  background: currentColor;
}

.availability--development { max-width: 450px; }

/* About and contact */
.about-section {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  gap: clamp(60px, 10vw, 160px);
  padding: clamp(130px, 16vw, 230px) var(--page-x);
  border-top: 1px solid var(--line-soft);
  background: #060605;
}

.about-copy h2 {
  max-width: 980px;
  margin-top: 32px;
  font-size: clamp(48px, 6.3vw, 94px);
  line-height: 0.98;
}

.about-copy > p:not(.section-kicker) {
  max-width: 800px;
  margin-top: 30px;
  color: var(--ivory-muted);
  font-size: 17px;
  line-height: 1.7;
}

.people-links {
  align-self: end;
  border-top: 1px solid var(--line-soft);
}

.people-links a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 24px;
  min-height: 114px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line-soft);
  will-change: transform;
}

.people-links span { font-size: 21px; }
.people-links small { color: var(--ivory-muted); }
.people-links i { grid-row: 1 / 3; grid-column: 2; align-self: center; color: var(--gold); font-style: normal; }

.contact-section {
  position: relative;
  min-height: 92vh;
  min-height: 92svh;
  padding: clamp(130px, 16vw, 230px) var(--page-x);
  overflow: hidden;
  background: var(--gold);
  color: var(--black);
}

.contact-section .signal-label { color: #123924; }

.contact-section h2 {
  max-width: 1240px;
  margin-top: 34px;
  color: var(--black);
  font-size: clamp(58px, 8.2vw, 126px);
  line-height: 0.92;
}

.contact-section > p:not(.signal-label) {
  max-width: 600px;
  margin-top: 34px;
  font-size: 18px;
  line-height: 1.55;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 34px;
  min-height: 54px;
  margin-top: 46px;
  border-bottom: 2px solid currentColor;
  font-size: clamp(20px, 2.2vw, 32px);
  font-weight: 600;
  will-change: transform;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 50px;
  min-height: 150px;
  padding: 30px var(--page-x);
  background: var(--black);
}

.site-footer nav {
  display: flex;
  gap: 30px;
  color: var(--ivory-muted);
  font-size: 13px;
}

.site-footer p {
  color: rgba(244, 240, 232, 0.64);
  font: 500 11px/1 ui-monospace, monospace;
}

/* Motion-ready supporting reveals */
.js.motion-ready .process-section .mask-line > span,
.js.motion-ready .work-header .mask-line > span,
.js.motion-ready .about-section .mask-line > span,
.js.motion-ready .contact-section .mask-line > span {
  transform: translate3d(0, 105%, 0);
  transition: transform 900ms var(--ease-out);
}

.js.motion-ready .is-inview .mask-line > span,
.js.motion-ready .process-section.is-inview .mask-line > span,
.js.motion-ready .work-header.is-inview .mask-line > span,
.js.motion-ready .about-section.is-inview .mask-line > span,
.js.motion-ready .contact-section.is-inview .mask-line > span {
  transform: translate3d(0, 0, 0);
}

@media (max-width: 1020px) {
  :root { --header-h: 76px; }

  .site-nav { gap: 20px; }
  .site-nav a { font-size: 12px; }
  .motion-toggle { padding-right: 9px; padding-left: 9px; font-size: 8px; }

  .journey-panel { width: min(680px, 63vw); }
  .journey-stage-label { display: none; }

  .section-heading,
  .work-header {
    grid-template-columns: 1fr;
  }

  .section-heading > p:last-child,
  .work-header > p:last-child {
    max-width: 620px;
  }

  .process-blueprint ol {
    grid-template-columns: 1fr;
  }

  .process-line {
    top: 0;
    left: 4px;
    width: 1px;
    height: 100%;
  }

  .process-line span {
    transform: scaleY(var(--process-progress, 0));
    transform-origin: top;
  }

  .process-blueprint li {
    min-height: 210px;
    padding-left: 46px;
  }

  .process-node {
    position: absolute;
    left: 0;
    margin-top: 0;
  }

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

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

  .people-links { max-width: 650px; }
}

@media (max-width: 760px) {
  :root {
    --page-x: 20px;
    --header-h: 68px;
  }

  .site-header.is-scrolled { height: 64px; }
  .wordmark { font-size: 18px; }
  .menu-toggle { position: relative; display: block; }

  .site-header.is-menu-open .wordmark,
  .site-header.is-menu-open .menu-toggle {
    position: relative;
    z-index: 101;
  }

  .site-nav {
    position: fixed;
    z-index: 95;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    padding: 84px var(--page-x) 46px;
    background: rgba(2, 2, 2, 0.98);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 240ms ease, visibility 240ms linear;
  }

  .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    width: 100%;
    padding: 16px 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: clamp(28px, 9vw, 42px);
    letter-spacing: -0.04em;
  }

  .motion-toggle {
    width: 100%;
    min-height: 48px;
    margin-top: 20px;
    text-align: left;
  }

  .terminal-shell {
    top: max(92px, calc(env(safe-area-inset-top) + 68px));
    left: 20px;
    width: calc(100vw - 40px);
    min-height: 67vh;
    min-height: 67svh;
  }

  .terminal-meta { font-size: 8px; }
  .terminal-meta span:last-child { display: none; }
  .terminal-output { gap: 18px; min-height: 54vh; min-height: 54svh; padding: 34px 0 24px; }
  .terminal-line { grid-template-columns: 28px minmax(0, 1fr); font-size: 11px; letter-spacing: 0.07em; }
  .terminal-line--wake { margin: 0 0 10px; font-size: clamp(36px, 12.7vw, 54px); }
  .terminal-status { font-size: 8px; }
  .intro-core { top: 58%; left: 72%; }

  .signal-poster::after {
    background: linear-gradient(to bottom, rgba(2, 2, 2, 0.92) 0%, rgba(2, 2, 2, 0.72) 45%, rgba(2, 2, 2, 0.25) 75%, rgba(2, 2, 2, 0.88) 100%);
  }

  .signal-depth span {
    top: 39%;
    left: 66%;
    width: 84vw;
  }

  .journey-panel {
    justify-content: flex-start;
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    padding: max(116px, calc(env(safe-area-inset-top) + 104px)) var(--page-x) 132px;
  }

  .journey-panel:not(.journey-panel--hero) {
    justify-content: flex-end;
    width: 100%;
    margin: 0;
  }

  .journey-panel h1 { margin-top: 18px; font-size: clamp(47px, 14vw, 66px); }
  .journey-panel h2 { font-size: clamp(42px, 12vw, 58px); }
  .hero-description,
  .journey-panel:not(.journey-panel--hero) > p:last-child { margin-top: 20px; font-size: 15px; line-height: 1.5; }

  .hero-actions { align-items: stretch; flex-direction: column; gap: 10px; margin-top: 25px; }
  .button { width: 100%; min-width: 0; min-height: 52px; }
  .hero-note { display: none; }

  .journey-progress {
    bottom: max(18px, calc(env(safe-area-inset-bottom) + 12px));
    gap: 4px;
  }

  .journey-progress li {
    overflow: hidden;
    padding-top: 10px;
    font-size: 0;
  }

  .journey-progress li span { font-size: 9px; }
  .js.motion-ready .signal-journey { height: 460vh; height: 460svh; }

  .process-section { padding-top: 110px; padding-bottom: 110px; }
  .section-heading h2,
  .work-header h2 { font-size: clamp(46px, 13vw, 62px); }
  .section-heading > p:last-child,
  .work-header > p:last-child { font-size: 15px; }
  .process-blueprint { margin-top: 70px; }
  .process-blueprint li { min-height: 230px; padding-right: 0; }

  .work-header { padding-top: 110px; padding-bottom: 110px; }

  .project-scene {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 40px;
    min-height: 100vh;
    min-height: 100svh;
    padding-top: 110px;
    padding-bottom: 50px;
  }

  .project-copy { padding-right: 0; }
  .project-copy h3 { font-size: clamp(45px, 12vw, 60px); }
  .project-copy h3 + p { margin-top: 20px; font-size: 15px; }
  .project-copy > a { margin-top: 22px; }
  .project-media { min-height: min(54vh, 460px); }
  .media-note { top: 6px; right: 6px; font-size: 7px; }
  .kien-shot { top: 50%; right: 13%; width: min(205px, 58%); border-radius: 18px; }
  .phone-shot { top: 0; bottom: 0; width: min(230px, 58%); border-radius: 20px; }
  .phone-shot--words { right: 4%; }
  .phone-shot--library { top: 9%; bottom: 8%; left: 2%; }
  .project-media--izler { min-height: min(44vh, 350px); }
  .dashboard-shot--dashboard { top: 22%; left: 3%; width: 94%; }
  .dashboard-shot--pos,
  .dashboard-shot--salon { width: 68%; }
  .project-scene--text-only { min-height: 76vh; min-height: 76svh; }
  .project-name { top: 50%; bottom: auto; font-size: 36vw; transform: translate3d(var(--project-shift, 0), -50%, 0); }

  .about-section { padding-top: 120px; padding-bottom: 120px; }
  .about-copy h2 { font-size: clamp(47px, 13vw, 64px); }
  .about-copy > p:not(.section-kicker) { font-size: 15px; }

  .contact-section { min-height: 84vh; min-height: 84svh; padding-top: 120px; padding-bottom: 120px; }
  .contact-section h2 { font-size: clamp(52px, 14vw, 72px); }
  .contact-section > p:not(.signal-label) { font-size: 16px; }

  .site-footer {
    grid-template-columns: 1fr auto;
    gap: 30px;
    min-height: 190px;
  }

  .site-footer nav { grid-column: 1 / -1; grid-row: 2; flex-wrap: wrap; gap: 16px 24px; }
}

@media (max-width: 390px) {
  .journey-panel h1 { font-size: 46px; }
  .hero-description { font-size: 14px; }
  .button { font-size: 14px; }
  .terminal-line { font-size: 10px; }
}

@media (hover: none), (pointer: coarse) {
  .button:hover,
  .intro-skip:hover { transform: none; }
}

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

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

  .signal-canvas { display: none; }
  .signal-poster { opacity: 0.44; }
  .signal-depth { display: none; }
  .project-name,
  .project-copy,
  .project-media,
  .phone-shot,
  .dashboard-shot,
  .project-media img { transform: none !important; }

  .kien-shot { transform: translateY(-50%) !important; }

  .project-media img { animation: none !important; }

  .motion-toggle { display: none; }
}

@media (forced-colors: active) {
  .signal-canvas,
  .signal-depth,
  .terminal-scan { display: none; }

  .button,
  .intro-skip,
  .project-media,
  .kien-shot,
  .phone-shot,
  .dashboard-shot { border: 1px solid CanvasText; }

  .signal-label > span,
  .process-node,
  .availability span { background: CanvasText; }
}
