:root {
  --bg: #0a0b0d;
  --bg-2: #111318;
  --ink: #ecebe6;
  --muted: #8d929b;
  --dim: #4d525b;
  --line: rgba(236, 235, 230, 0.1);
  --red: #ff5c5c;
  --red-ink: #1a0707;
  --display: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Consolas, monospace;
  --gutter: clamp(20px, 5vw, 72px);
  --col: 46vw;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  color-scheme: dark;
}

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

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--display);
  font-optical-sizing: auto;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

a {
  color: inherit;
}

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

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

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

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

.skip {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 50;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 13px;
  text-decoration: none;
}
.skip:focus {
  top: 16px;
}

/* ---------- Layers ---------- */

.layer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.layer-back {
  z-index: 0;
}
.layer-front {
  z-index: 11;
}
.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(0, 0, 0, 0.55));
}
.vignette::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.07;
  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.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main {
  position: relative;
  z-index: 2;
}

/* ---------- Top bar ---------- */

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 18px var(--gutter);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  background: linear-gradient(var(--bg) 20%, transparent);
  transition: background 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.topbar.is-solid {
  background: rgba(10, 11, 13, 0.86);
  border-color: var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.12em;
}
.mark-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(255, 92, 92, 0.18);
}
.nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
}
.nav a {
  display: inline-flex;
  gap: 6px;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s;
}
.nav a span {
  color: var(--dim);
  transition: color 0.2s;
}
.nav a i {
  font-style: normal;
}
.nav a:hover,
.nav a.is-active {
  color: var(--ink);
}
.nav a.is-active span {
  color: var(--red);
}
.lang {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}
.lang span {
  padding: 3px 8px;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}
html[lang="en"] .lang [data-lang="en"],
html[lang="tr"] .lang [data-lang="tr"] {
  background: var(--ink);
  color: var(--bg);
}

/* ---------- HUD ---------- */

.hud {
  position: fixed;
  inset: 0;
  z-index: 7;
  pointer-events: none;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}
.hud-live {
  position: absolute;
  left: var(--gutter);
  top: 86px;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.rec {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  animation: rec 1.6s steps(2, jump-none) infinite;
}
@keyframes rec {
  50% {
    opacity: 0.25;
  }
}
.classifier {
  position: absolute;
  left: var(--gutter);
  bottom: 26px;
  width: 210px;
  padding: 12px 12px 10px;
  border: 1px solid var(--line);
  background: rgba(10, 11, 13, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: opacity 0.4s;
}
.cls-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cls-head b {
  color: var(--ink);
  font-weight: 500;
}
.bars li {
  display: grid;
  grid-template-columns: 44px 1fr 32px;
  align-items: center;
  gap: 8px;
  height: 17px;
}
.bars i {
  display: block;
  height: 3px;
  background: var(--line);
  overflow: hidden;
}
.bars i::before {
  content: "";
  display: block;
  height: 100%;
  width: 100%;
  background: var(--muted);
  transform-origin: left;
  transform: scaleX(var(--v, 0));
}
.bars li.top {
  color: var(--ink);
}
.bars li.top i::before {
  background: var(--red);
}
.bars em {
  font-style: normal;
  text-align: right;
}
.hud-frame {
  position: absolute;
  right: var(--gutter);
  bottom: 26px;
  letter-spacing: 0.04em;
}
.rail {
  transition: opacity 0.4s;
  position: absolute;
  right: calc(var(--gutter) - 8px);
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  gap: 10px;
  pointer-events: auto;
}
.rail button {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 2px 0;
  border: 0;
  background: none;
  color: var(--dim);
  font: inherit;
  cursor: pointer;
}
.rail button::after {
  content: "";
  width: 14px;
  height: 1px;
  background: currentColor;
  transition: width 0.3s var(--ease), background 0.3s;
}
.rail button.is-active {
  color: var(--ink);
}
.rail button.is-active::after {
  width: 28px;
  background: var(--red);
}

/* ---------- Cursor follower ---------- */

.cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.cursor.is-on {
  opacity: 1;
}
.cursor-ring {
  position: absolute;
  left: -16px;
  top: -16px;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(236, 235, 230, 0.4);
  border-radius: 50%;
  transition: transform 0.35s var(--ease), border-color 0.35s, background 0.35s;
}
.cursor.is-link .cursor-ring {
  transform: scale(1.7);
  border-color: var(--red);
  background: rgba(255, 92, 92, 0.08);
}
.cursor-xy {
  position: absolute;
  left: 22px;
  top: 12px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--dim);
  white-space: nowrap;
}

/* ---------- Shared type ---------- */

.eyebrow {
  display: flex;
  gap: 14px;
  align-items: baseline;
  margin-bottom: 28px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow span:first-child {
  color: var(--red);
}
.title {
  font-size: clamp(2.4rem, 4.6vw, 4.6rem);
  font-weight: 650;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-bottom: 40px;
  text-wrap: balance;
}
.body {
  max-width: 38rem;
  color: #c9c8c2;
  font-size: 1.06rem;
  margin-bottom: 28px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 28px;
}
.chips li {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
}

/* Split headings: words rise out of a mask. */
.w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.w > span {
  display: inline-block;
  transform: translateY(105%);
  transition: transform 0.9s var(--ease);
  transition-delay: calc(var(--i) * 45ms);
}
.in .w > span,
.no-motion .w > span {
  transform: none;
}

/* Generic reveal. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.js [data-reveal].in {
  opacity: 1;
  transform: none;
}

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

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: 120px var(--gutter) 40px;
  display: flex;
  flex-direction: column;
}
.hero-top {
  max-width: 30rem;
  display: grid;
  gap: 22px;
}
.kicker {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.slash {
  color: var(--red);
  margin: 0 10px;
}
.lede {
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  line-height: 1.45;
  color: #d6d5cf;
  text-wrap: pretty;
}
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
.stores li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--red);
  vertical-align: 1px;
}
.js .hero [data-reveal]:nth-child(2) {
  transition-delay: 0.12s;
}
.js .hero [data-reveal]:nth-child(3) {
  transition-delay: 0.24s;
}
.js .hero [data-reveal]:nth-child(4) {
  transition-delay: 0.36s;
}
.name {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  font-size: clamp(5rem, 16.5vw, 19rem);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.055em;
  font-variation-settings: "opsz" 96;
}
.name span {
  display: block;
  white-space: nowrap;
}
.name span:last-child {
  padding-left: 0.42em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
}
.hint {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
}
.hint-line {
  position: relative;
  flex: 0 0 46px;
  height: 1px;
  background: var(--line);
  overflow: hidden;
}
.hint-line::after {
  content: "";
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 1px;
  background: var(--red);
  animation: drip 1.8s var(--ease) infinite;
}
@keyframes drip {
  to {
    left: 100%;
  }
}

/* ---------- Sections ---------- */

.sec {
  position: relative;
  padding: 22vh var(--gutter) 16vh;
}
.col {
  margin-left: var(--col);
  max-width: 44rem;
  margin-right: 80px;
}

/* About */
.statement {
  font-size: clamp(1.6rem, 2.6vw, 2.45rem);
  line-height: 1.22;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 64px;
}
.statement .sw {
  opacity: var(--o, 1);
  transition: opacity 0.25s linear;
}
.about-grid {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) 1fr;
  gap: 40px;
  align-items: start;
}
.portrait {
  position: relative;
  padding: 10px;
}
.portrait::before {
  content: "";
  position: absolute;
  inset: 0;
  --c: 18px;
  background:
    linear-gradient(var(--ink), var(--ink)) top left / var(--c) 1px,
    linear-gradient(var(--ink), var(--ink)) top left / 1px var(--c),
    linear-gradient(var(--ink), var(--ink)) top right / var(--c) 1px,
    linear-gradient(var(--ink), var(--ink)) top right / 1px var(--c),
    linear-gradient(var(--ink), var(--ink)) bottom left / var(--c) 1px,
    linear-gradient(var(--ink), var(--ink)) bottom left / 1px var(--c),
    linear-gradient(var(--ink), var(--ink)) bottom right / var(--c) 1px,
    linear-gradient(var(--ink), var(--ink)) bottom right / 1px var(--c);
  background-repeat: no-repeat;
  opacity: 0.6;
}
.portrait img {
  width: 100%;
  aspect-ratio: 8 / 9;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05) brightness(0.92);
  transition: filter 0.8s var(--ease);
}
.portrait:hover img {
  filter: none;
}
.portrait figcaption {
  position: absolute;
  left: 10px;
  top: -10px;
  padding: 2px 6px;
  background: var(--red);
  color: var(--red-ink);
  font-family: var(--mono);
  font-size: 10.5px;
}
.facts {
  display: grid;
  gap: 18px;
}
.facts div {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.facts dt {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.facts dd {
  font-size: 1.02rem;
}

/* Conversign */
.award {
  display: flex;
  align-items: center;
  gap: 26px;
  margin: 8px 0 44px;
}
.award-num {
  font-size: clamp(7rem, 13vw, 12rem);
  font-weight: 800;
  line-height: 0.78;
  letter-spacing: -0.07em;
  color: var(--red);
  font-variation-settings: "opsz" 96;
}
.award-num sup {
  font-size: 0.32em;
  letter-spacing: -0.02em;
  vertical-align: 1.75em;
  margin-left: 0.04em;
}
.award-text {
  display: grid;
  gap: 2px;
  font-size: 1.05rem;
  color: var(--muted);
}
.award-text strong {
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 600;
}

.pipeline {
  --p: 0;
  position: relative;
  display: grid;
  gap: 0;
  margin: 8px 0 40px;
  padding-left: 30px;
}
.pipeline::before,
.pipeline::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: var(--line);
}
.pipeline::after {
  background: var(--red);
  transform-origin: top;
  transform: scaleY(var(--p));
}
.pipeline li {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--dim);
  transition: color 0.4s;
}
.pipeline li::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 21px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid var(--dim);
  background: var(--bg);
  transition: background 0.4s, border-color 0.4s, box-shadow 0.4s;
}
.pipeline li.on {
  color: var(--ink);
}
.pipeline li.on::before {
  border-color: var(--red);
  background: var(--red);
  box-shadow: 0 0 0 5px rgba(255, 92, 92, 0.15);
}
.pipeline b {
  font-size: 1.25rem;
  font-weight: 600;
}
.pipeline span {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.tryit {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  margin: 12px 0 36px;
  padding: 26px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(255, 92, 92, 0.06), transparent 60%), var(--bg-2);
}
.tryit h3 {
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.tryit-copy p {
  color: #c9c8c2;
  margin-bottom: 20px;
}
.tryit-copy .fine {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
  margin: 16px 0 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font: 500 14px var(--display);
  cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.3s;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
}
.btn.is-on {
  background: var(--red);
  color: var(--red-ink);
}
.btn.is-on .btn-dot {
  background: var(--red-ink);
  animation: rec 1.2s steps(2, jump-none) infinite;
}
.tryit-view {
  position: relative;
  align-self: start;
  aspect-ratio: 4 / 3;
  background:
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(255, 255, 255, 0.02) 3px 4px),
    #07080a;
  border: 1px solid var(--line);
  overflow: hidden;
}
.tryit-view video,
.tryit-view canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tryit-view video {
  transform: scaleX(-1);
  opacity: 0.55;
  filter: grayscale(1);
}
.tryit-status {
  position: absolute;
  left: 10px;
  bottom: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

.more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 13px;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
  transition: border-color 0.3s, gap 0.3s var(--ease);
}
.more:hover {
  border-color: var(--red);
  gap: 16px;
}

/* ---------- Work (horizontal on wide screens) ---------- */

.work {
  position: relative;
}
.work-pin {
  position: relative;
}
.work-track {
  display: flex;
  flex-direction: column;
  gap: 18vh;
  padding: 22vh var(--gutter) 16vh;
}
.work-intro {
  margin-left: var(--col);
  max-width: 40rem;
}
.card {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) 1.15fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
.card-meta {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
.card-meta span:first-child {
  color: var(--red);
}
.card-name {
  font-size: clamp(2.6rem, 4.4vw, 4.4rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.045em;
  margin-bottom: 14px;
}
.card-tag {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 18px;
  max-width: 28rem;
}
.card-body {
  color: #bdbcb6;
  font-size: 0.98rem;
  margin-bottom: 22px;
  max-width: 34rem;
}
.card .chips {
  margin-bottom: 22px;
}
.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-family: var(--mono);
  font-size: 13px;
}
.card-links a {
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
  transition: border-color 0.3s;
}
.card-links a:hover {
  border-color: var(--red);
}
.card-note {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
.card-visual {
  position: relative;
  padding: 0 7% 9% 0;
}
.browser {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-2);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8);
}
.browser-bar {
  display: flex;
  gap: 6px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
}
.browser-bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dim);
}
.phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 27%;
  padding: 5px;
  border-radius: 22px;
  background: #1b1d22;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.9);
}
.phone img {
  border-radius: 17px;
}
.card-visual-wide {
  padding: 0;
}
.shot {
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8);
}
.card-visual-type {
  min-height: 300px;
  padding: 0;
  display: grid;
  align-content: center;
}
.redacted {
  display: grid;
  gap: 10px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
}
.redacted span {
  display: flex;
  align-items: center;
  gap: 14px;
}
.redacted span::after {
  content: "";
  flex: 1;
  height: 12px;
  background: repeating-linear-gradient(90deg, var(--line) 0 18px, transparent 18px 24px);
}
.ghost {
  position: absolute;
  right: -2%;
  bottom: -6%;
  font-size: clamp(5rem, 11vw, 10rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(236, 235, 230, 0.14);
  pointer-events: none;
}
.work-progress {
  display: none;
}

@media (min-width: 900px) {
  .horizontal .work-pin {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
  }
  .horizontal .work-track {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: max-content;
    flex-direction: row;
    align-items: center;
    gap: 9vw;
    padding: 0 12vw 0 var(--gutter);
    will-change: transform;
  }
  .horizontal .work-intro {
    flex: 0 0 auto;
    width: min(34rem, 40vw);
    margin-left: calc(var(--gutter) + 15vw);
  }
  .horizontal .card {
    flex: 0 0 auto;
    width: min(84vw, 1240px);
  }
  .horizontal .work-progress {
    display: block;
    position: absolute;
    left: var(--gutter);
    right: var(--gutter);
    bottom: 36px;
    height: 1px;
    background: var(--line);
    margin: 0 240px;
  }
  .horizontal .work-progress span {
    display: block;
    height: 100%;
    background: var(--red);
    transform-origin: left;
    transform: scaleX(var(--p, 0));
  }
}

@media (min-width: 900px) {
  html:not(.horizontal) .work-track > .card {
    margin-left: var(--col);
    max-width: 44rem;
    grid-template-columns: 1fr;
  }
  html:not(.horizontal) .card-visual {
    order: -1;
  }
}

/* ---------- Experience ---------- */

.timeline {
  --p: 0;
  position: relative;
  margin-bottom: 72px;
}
.timeline::before,
.timeline::after {
  content: "";
  position: absolute;
  left: 140px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--line);
}
.timeline::after {
  background: var(--red);
  transform-origin: top;
  transform: scaleY(var(--p));
}
.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 32px;
  padding: 0 0 34px;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: 135px;
  top: 7px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--dim);
  z-index: 1;
}
.timeline li.lit::before {
  background: var(--red);
  border-color: var(--red);
}
.when {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  padding-top: 3px;
}
.timeline h3 {
  font-size: 1.3rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.timeline h3 span {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--red);
  margin-top: 2px;
}
.timeline p {
  color: #bdbcb6;
  font-size: 0.98rem;
}
.toolbox,
.certs {
  margin-bottom: 56px;
}
.toolbox h3,
.certs h3 {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.toolbox dl > div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 32px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.toolbox dt {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  padding-top: 2px;
}
.toolbox dd {
  font-size: 1rem;
}
.certs li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 0.96rem;
}
.certs li span {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
}

/* ---------- Media ---------- */

.videos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.video-frame {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line);
}
.video-frame img,
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}
.video-frame img {
  filter: grayscale(0.6) brightness(0.75);
  transform: scale(1.02);
  transition: filter 0.6s var(--ease), transform 0.8s var(--ease);
}
.video-frame:hover img {
  filter: none;
  transform: scale(1.06);
}
.play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  border-radius: 50%;
  background: var(--red);
  transition: transform 0.4s var(--ease);
}
.play::after {
  content: "";
  position: absolute;
  left: 26px;
  top: 21px;
  border-left: 16px solid var(--red-ink);
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
}
.video-frame:hover .play {
  transform: scale(1.12);
}
.video figcaption {
  margin-top: 14px;
  font-size: 0.95rem;
  color: #bdbcb6;
}
.video figcaption b {
  color: var(--ink);
  font-weight: 600;
}

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

.contact {
  min-height: 100vh;
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
}
.contact-title {
  font-size: clamp(3.6rem, 9vw, 9rem);
  font-weight: 750;
  line-height: 0.9;
  letter-spacing: -0.055em;
  margin-bottom: 36px;
}
.email-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}
.email {
  position: relative;
  font-size: clamp(1.6rem, 3.4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.email::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--red);
  transform-origin: right;
  transform: scaleX(0.25);
  transition: transform 0.6s var(--ease);
}
.email:hover::after {
  transform-origin: left;
  transform: scaleX(1);
}
.copy {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font: 12px var(--mono);
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s;
}
.copy:hover,
.copy.done {
  border-color: var(--red);
  color: var(--ink);
}
.links {
  display: flex;
  gap: 28px;
  font-family: var(--mono);
  font-size: 13px;
}
.links a {
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
}
.links a:hover {
  border-color: var(--red);
}
.footer {
  margin-top: auto;
  margin-left: var(--col);
  max-width: 44rem;
  display: grid;
  gap: 4px;
  padding: 80px 0 30px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim);
}

/* ---------- Narrow screens ---------- */

@media (max-width: 1100px) {
  .nav i {
    display: none;
  }
  .nav {
    gap: 14px;
  }
}

@media (max-width: 899px) {
  :root {
    --col: 0px;
  }
  body {
    font-size: 16px;
  }
  .topbar {
    gap: 12px;
    padding: 14px 16px;
  }
  .nav {
    display: none;
  }
  .lang {
    margin-left: auto;
  }
  .hud-live,
  .classifier,
  .hud-frame,
  .rail {
    display: none;
  }
  .hero {
    padding: 92px 16px 28px;
  }
  .hero-top {
    margin-top: 36px;
    gap: 14px;
  }
  .name {
    order: -1;
    margin-top: 44vh;
    margin-top: 44svh;
    font-size: 23vw;
  }
  .sec {
    padding: 16vh 16px 10vh;
  }
  .col {
    margin: 0;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .portrait {
    max-width: 320px;
  }
  .award {
    gap: 18px;
  }
  .tryit {
    grid-template-columns: 1fr;
    padding: 18px;
  }
  .work-track {
    padding: 16vh 16px 10vh;
    gap: 12vh;
  }
  .card {
    grid-template-columns: 1fr;
  }
  .card-visual {
    order: -1;
  }
  .ghost {
    display: none;
  }
  .timeline::before,
  .timeline::after {
    left: 5px;
  }
  .timeline li {
    grid-template-columns: 1fr;
    gap: 4px;
    padding-left: 30px;
  }
  .timeline li::before {
    left: 0;
  }
  .toolbox dl > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .videos {
    grid-template-columns: 1fr;
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .w > span {
    transform: none;
    transition: none;
  }
  .rec,
  .hint-line::after,
  .btn.is-on .btn-dot {
    animation: none;
  }
  .statement .sw {
    opacity: 1 !important;
  }
}
