:root {
  --bg: #f0f0ec;
  --bg-2: #e4e5df;
  --surface: #ffffff;
  --ink: #0b0b0c;
  --ink-2: #1c1d20;
  --ink-3: #2a2b2f;
  --muted: #6b6e73;
  --line: rgba(11, 11, 12, 0.12);
  --accent: #c6ff3a;
  --accent-2: #b2e62e;
  --white: #ffffff;
  --dark: #0b0b0c;
  --radius: 20px;
  --radius-sm: 14px;
  --pad-x: max(5vw, 20px);
  --pad-y: clamp(18px, 2.4vw, 36px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);
  --font: 'Geist', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', monospace;
  --header-h: calc(var(--pad-y) * 2 + 44px);
}

@view-transition { navigation: auto; }

::view-transition-group(root) { animation: none; }
::view-transition-image-pair(root) { isolation: auto; }
::view-transition-old(root),
::view-transition-new(root) {
  mix-blend-mode: normal;
  animation-duration: 1.1s;
  animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1);
  animation-fill-mode: both;
}
::view-transition-old(root) { animation-name: vt-leave; }
::view-transition-new(root) { animation-name: vt-arrive; }
@keyframes vt-leave {
  to { transform: translateY(-24%) scale(0.96); filter: brightness(0.35); }
}
@keyframes vt-arrive {
  from { transform: translateY(100%); clip-path: inset(0 round 40px 40px 0 0); }
  to { transform: translateY(0); clip-path: inset(0 round 0); }
}
html:active-view-transition-type(back)::view-transition-old(root) { animation-name: vt-leave-back; }
html:active-view-transition-type(back)::view-transition-new(root) { animation-name: vt-arrive-back; }
@keyframes vt-leave-back {
  to { transform: translateY(24%) scale(0.96); filter: brightness(0.35); }
}
@keyframes vt-arrive-back {
  from { transform: translateY(-100%); clip-path: inset(0 round 0 0 40px 40px); }
  to { transform: translateY(0); clip-path: inset(0 round 0); }
}
::view-transition-group(project-media) {
  animation-duration: 0.9s;
  animation-timing-function: var(--ease-io);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
html.has-sbar { scrollbar-width: none; }
html.has-sbar::-webkit-scrollbar, html.has-sbar body::-webkit-scrollbar { display: none; }
.sbar {
  position: fixed;
  right: 10px;
  top: 50%;
  z-index: 57;
  width: 16px;
  height: clamp(120px, 26vh, 240px);
  translate: 0 -50%;
  cursor: pointer;
  touch-action: none;
  transition: opacity 0.4s var(--ease), translate 0.5s var(--ease);
  animation: sbar-in 0.9s var(--ease) 0.6s both;
}
.sbar::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  margin-left: -1px;
  border-radius: 2px;
  background: rgba(128, 128, 128, 0.35);
  transition: background-color 0.3s var(--ease), width 0.25s var(--ease), margin 0.25s var(--ease);
}
.sbar-thumb {
  position: absolute;
  left: 50%;
  top: 0;
  width: 4px;
  margin-left: -2px;
  border-radius: 4px;
  background: var(--ink);
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.75);
  will-change: transform;
  transition: width 0.25s var(--ease), margin 0.25s var(--ease), background-color 0.3s var(--ease);
}
.sbar:hover::before, .sbar.is-drag::before { width: 4px; margin-left: -2px; }
.sbar:hover .sbar-thumb, .sbar.is-drag .sbar-thumb { width: 6px; margin-left: -3px; }
.sbar.is-drag { cursor: grabbing; }
.sbar.is-dark::before { background: rgba(255, 255, 255, 0.2); }
.sbar.is-dark .sbar-thumb { background: var(--white); box-shadow: 0 0 0 1.5px rgba(11, 11, 12, 0.5); }
.sbar.is-out { opacity: 0; translate: 12px -50%; pointer-events: none; }
@keyframes sbar-in { from { opacity: 0; transform: scaleY(0.4); } }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; font-weight: 400; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
main { position: relative; z-index: 1; }

.ribbon-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}

.logo-mark {
  display: inline-block;
  width: 28px;
  aspect-ratio: 1;
  background: currentColor;
  -webkit-mask: url('/logos/logo_svg.svg') center / contain no-repeat;
  mask: url('/logos/logo_svg.svg') center / contain no-repeat;
}

.display {
  font-size: clamp(54px, 9.4vw, 172px);
  line-height: 0.94;
  letter-spacing: -0.05em;
}
.display-md {
  font-size: clamp(44px, 6.6vw, 120px);
  line-height: 0.95;
  letter-spacing: -0.045em;
}
.lead {
  font-size: clamp(17px, 1.45vw, 22px);
  line-height: 1.38;
  letter-spacing: -0.01em;
}
.caption, .mono {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.line { padding-bottom: 0.06em; margin-bottom: -0.06em; }
.serif {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.hud { font-family: var(--mono); font-size: 11px; text-transform: uppercase; white-space: nowrap; font-variant-numeric: tabular-nums; }

.pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  transition: transform 0.25s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.pill:active { transform: scale(0.96); }
.pill--dark { background: var(--ink-2); color: var(--white); }
.pill--dark:hover { background: var(--ink); }
.pill--light { background: var(--bg-2); color: var(--ink); }
.pill--light:hover { background: #d9dad3; }
.pill--white { background: var(--white); color: var(--ink); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04); }
.pill--white:hover { background: var(--accent); }
.roll { position: relative; display: inline-grid; overflow: hidden; height: 1.3em; line-height: 1.3em; }
.roll > span { grid-area: 1 / 1; transition: transform 0.5s var(--ease); }
.roll > span:last-child { transform: translateY(110%); }
a:hover > .roll > span:first-child, button:hover > .roll > span:first-child { transform: translateY(-110%); }
a:hover > .roll > span:last-child, button:hover > .roll > span:last-child { transform: translateY(0); }
.menu-open .menu-btn .roll > span:first-child { transform: translateY(-110%); }
.menu-open .menu-btn .roll > span:last-child { transform: translateY(0); }
.icon-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-2);
  color: var(--ink);
  transition: transform 0.25s var(--ease), background-color 0.3s;
}
.icon-btn:hover { background: #d9dad3; }
.icon-btn:active { transform: scale(0.92); }

.hd {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--pad-y) var(--pad-x);
  pointer-events: none;
}
.hd > * { pointer-events: auto; }
.hd-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  transition: color 0.4s var(--ease);
}
.hd-fly { display: grid; will-change: transform; }
.hd.is-loading { z-index: 101; }
.hd-mark { display: grid; place-items: center; width: 44px; height: 44px; margin: -7px -4px -7px -7px; will-change: transform; }
.hd-mark canvas { width: 44px; height: 44px; }
.hd-logo .logo-mark { width: 30px; transition: transform 0.6s var(--ease); }
.hd-logo:hover .logo-mark { transform: rotate(-12deg) scale(1.08); }
.hd.is-dark .hd-logo { color: var(--white); }
.hd-actions { display: flex; align-items: center; gap: 10px; }
.sound-bars { display: flex; align-items: center; gap: 2.5px; height: 14px; }
.sound-bars i {
  display: block;
  width: 2px;
  height: 100%;
  border-radius: 2px;
  background: currentColor;
  transform: scaleY(0.14);
  transition: transform 0.4s var(--ease);
}
.sound-btn.is-on .sound-bars i { animation: bars 1s var(--ease) infinite alternate; }
.sound-btn.is-on .sound-bars i:nth-child(2) { animation-delay: -0.4s; }
.sound-btn.is-on .sound-bars i:nth-child(3) { animation-delay: -0.75s; }
.sound-btn.is-on .sound-bars i:nth-child(4) { animation-delay: -0.2s; }
.sound-btn.is-on .sound-bars i:nth-child(5) { animation-delay: -0.55s; }
@keyframes bars { from { transform: scaleY(0.2); } to { transform: scaleY(1); } }

.menu-veil {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(240, 240, 236, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
}
/* backdrop blur trop lourd en mode léger (firefox) */
html.perf-low .menu-veil {
  background: rgba(240, 240, 236, 0.82);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.menu {
  position: fixed;
  z-index: 58;
  top: calc(var(--pad-y) + 54px);
  right: var(--pad-x);
  width: min(330px, calc(100vw - 2 * var(--pad-x)));
  display: grid;
  gap: 8px;
}
.menu-card {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 14px;
  box-shadow: 0 20px 50px -24px rgba(0, 0, 0, 0.25);
}
.menu-nav { padding: 10px; }
.menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 19px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  transition: background-color 0.3s var(--ease);
}
.menu-link:hover { background: var(--bg); }
.menu-ico { display: grid; place-items: center; width: 20px; height: 20px; }
.menu-ico svg { width: 18px; opacity: 0; transform: translateX(-10px); transition: transform 0.4s var(--ease), opacity 0.3s; }
.menu-link:hover .menu-ico svg { opacity: 1; transform: none; }
.menu-cur { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
.menu-mail { padding: 22px; }
.menu-title { font-size: 26px; line-height: 1.05; letter-spacing: -0.03em; margin-bottom: 18px; }
.field {
  display: flex;
  align-items: center;
  height: 48px;
  padding: 0 6px 0 18px;
  border-radius: 12px;
  background: var(--bg);
  transition: box-shadow 0.3s var(--ease), background-color 0.3s;
}
.field:focus-within { box-shadow: 0 0 0 2px var(--ink); background: var(--white); }
.field input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
}
.field input::placeholder { color: var(--muted); }
.field button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  transition: background-color 0.3s, transform 0.25s var(--ease);
}
.field button svg { width: 18px; transition: transform 0.4s var(--ease); }
.field button:hover { background: var(--accent); }
.field button:hover svg { transform: translateX(3px); }
.field button:active { transform: scale(0.9); }
.menu-photo {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  background: var(--ink);
  color: var(--white);
  font-size: 19px;
  text-transform: uppercase;
}
.menu-photo-ico svg { width: 22px; }
.menu-photo-arrow { margin-left: auto; }
.menu-photo-arrow svg { width: 20px; transition: transform 0.4s var(--ease); }
.menu-photo:hover .menu-photo-arrow svg { transform: translate(3px, -3px); }
.menu-photo:hover .menu-photo-ico svg { animation: snap 0.5s var(--ease); }
@keyframes snap { 40% { transform: scale(0.85) rotate(-8deg); } }

.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #000;
  color: var(--white);
  clip-path: inset(0 0 0 0);
}
.loader-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  justify-items: center;
  gap: 16px;
}
.loader-dither {
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(12px, 1.1vw, 16px);
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--accent);
}
.loader-step {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  min-height: 1.4em;
}
.loader-meta {
  position: absolute;
  right: var(--pad-x);
  top: var(--pad-y);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  text-align: right;
  color: rgba(255, 255, 255, 0.5);
}
.loader-count {
  position: absolute;
  left: max(1vw, 8px);
  bottom: -0.12em;
  font-size: clamp(64px, 9vw, 150px);
  line-height: 1;
  letter-spacing: -0.04em;
}
.odo { display: inline-flex; overflow: hidden; height: 1em; line-height: 1; }
.odo-col { display: block; height: 1em; overflow: hidden; }
.odo-strip { display: flex; flex-direction: column; will-change: transform; }
.odo-strip > span { display: block; height: 1em; }


.hero { position: relative; padding-top: calc(var(--pad-y) + 4px); }
.hero-tagline {
  margin-left: 27.5%;
  width: 38vw;
  font-size: clamp(20px, 2.5vw, 36px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  min-height: 3.4em;
  margin-bottom: clamp(24px, 3vw, 44px);
}
.hero-card {
  position: relative;
  margin: 0 var(--pad-x);
  height: calc(100svh - var(--pad-y) - 3.4 * clamp(20px, 2.5vw, 36px) - clamp(24px, 3vw, 44px) - 64px);
  min-height: 380px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #111214;
  cursor: grab;
  touch-action: pan-y;
}
.hero-card:active { cursor: grabbing; }
.hero-card canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-foot {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 64px;
  padding: 0 var(--pad-x);
}
.hero-foot > :nth-child(1) { justify-self: start; }
.hero-foot > :nth-child(3) { justify-self: end; }
.hero-scroll { justify-self: center; font-family: var(--mono); font-size: 11px; text-transform: uppercase; white-space: nowrap; }

.intro { position: relative; padding: clamp(120px, 22vh, 260px) var(--pad-x) clamp(200px, 32vh, 320px); }
.intro-title { display: flex; flex-direction: column; }
.intro-indent { padding-left: 16.5%; }
.svc { position: relative; padding: clamp(40px, 6vh, 90px) var(--pad-x) clamp(80px, 12vh, 150px); background: var(--dark); color: var(--white); }
.svc-edge {
  position: absolute;
  left: 0;
  bottom: calc(100% - 1px);
  width: 100%;
  height: clamp(160px, 26vh, 260px);
  display: block;
  pointer-events: none;
}
.svc-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: clamp(48px, 7vw, 100px); }
.svc-intro { max-width: 560px; }
.svc-intro .pill { margin-top: 28px; }
.svc-list { border-top: 1px solid rgba(255, 255, 255, 0.14); }
.svc-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(220px, 30vw, 420px);
  gap: clamp(20px, 3vw, 48px);
  align-items: center;
  padding: clamp(24px, 3vw, 44px) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.svc-row::before {
  content: '';
  position: absolute;
  inset: 0 calc(var(--pad-x) * -1);
  background: rgba(255, 255, 255, 0.035);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.svc-row:hover::before { opacity: 1; }
.svc-title {
  margin: 0 0 14px;
  font-size: clamp(36px, 4.6vw, 80px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.045em;
  transition: transform 0.5s var(--ease);
}
.svc-row:hover .svc-title { transform: translateX(10px); }
.svc-text { max-width: 44ch; margin: 0 0 20px; color: rgba(255, 255, 255, 0.62); font-size: 16px; }
.svc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.svc-tags li {
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.svc-row:hover .svc-tags li { border-color: rgba(198, 255, 58, 0.45); }
.svc-art { width: 100%; aspect-ratio: 26 / 16; display: block; }
.svc-tags { margin-bottom: 26px; }
.svc-more { gap: 12px; }
.svc-count:empty { display: none; }
.svc-count {
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
}


.work { position: relative; padding: clamp(120px, 18vh, 220px) 0 clamp(80px, 12vh, 140px); }
.work-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding: 0 var(--pad-x);
  margin-bottom: clamp(40px, 6vw, 80px);
}
.grid-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 1.1vw;
  row-gap: clamp(48px, 6vw, 96px);
}
.card { display: block; }
.card-media {
  position: relative;
  aspect-ratio: 1.72;
  overflow: hidden;
  background: var(--bg-2);
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(var(--hover-s, 1)) skewY(var(--warp-k, 0deg)) scaleY(var(--warp-sy, 1));
  transition: transform 0.7s var(--ease), filter 0.6s;
}
.card.is-hover .card-media img { --hover-s: 1.05; }
.pd-media img,
.pd-track img,
.pd-track video {
  transform: skewY(var(--warp-k, 0deg)) scaleY(var(--warp-sy, 1));
  transition: transform 0.7s var(--ease);
}
.pixels {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  pointer-events: none;
}
.card-view {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  transform: translateY(14px) scale(0.9);
  opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.35s;
}
.card-view svg { width: 14px; }
.card.is-hover .card-view { transform: none; opacity: 1; }
.card-info { padding-top: 16px; }
.grid-cards .card:nth-child(odd) .card-info { padding-left: var(--pad-x); }
.card-tags { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; margin-bottom: 6px; color: var(--ink-3); }
.card-tags i { font-style: normal; opacity: 0.6; }
.card-title {
  display: flex;
  align-items: center;
  font-size: clamp(24px, 2.4vw, 42px);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.card-arrow { display: inline-flex; width: 0; overflow: hidden; transition: width 0.5s var(--ease); }
.card-arrow svg { flex: none; width: 0.85em; margin-right: 0.4em; transform: translateX(-100%); transition: transform 0.5s var(--ease); }
.card.is-hover .card-arrow { width: 1.25em; }
.card.is-hover .card-arrow svg { transform: none; }
.work-more { display: flex; justify-content: center; margin-top: clamp(60px, 8vw, 110px); }

.dive { position: relative; }
.dive-head { padding: clamp(60px, 10vh, 120px) var(--pad-x) clamp(40px, 6vh, 80px); }
.dive-head h2 { max-width: 11.5ch; }
.dive-stage { position: relative; height: 560vh; }
.dive-sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; perspective: 1800px; }
.dive-text {
  position: absolute;
  top: 20vh;
  left: 56%;
  right: var(--pad-x);
  max-width: 470px;
  display: grid;
  gap: 1.2em;
  font-size: clamp(16px, 1.25vw, 19px);
}
.device {
  --bezel: 22px;
  --radius: 44px;
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: #0c0c0d;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.45);
  transform-style: preserve-3d;
  will-change: transform;
}
.device-screen {
  position: absolute;
  inset: var(--bezel);
  border-radius: max(0px, calc(var(--radius) - var(--bezel) * 0.6));
  overflow: hidden;
  background: #030304;
}
.device-canvas { position: absolute; inset: calc(var(--bezel) * -1); }
.device-canvas canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.dive-words { position: absolute; inset: 0; pointer-events: none; color: var(--white); }
.dive-phrase {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1vw;
  padding: 0 var(--pad-x);
  opacity: 0;
  perspective: 800px;
}
.dive-phrase { align-items: center; text-align: center; gap: 0; }
.dive-phrase span {
  display: block;
  font-size: clamp(44px, 7.2vw, 128px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.04em;
}
.dive-cards { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.dive-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(160px, 20vw, 320px);
  aspect-ratio: 16 / 10;
  margin: calc(clamp(160px, 20vw, 320px) * -0.3125) 0 0 calc(clamp(160px, 20vw, 320px) * -0.5);
  border-radius: 14px;
  overflow: hidden;
  opacity: 0;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
  will-change: transform, opacity;
}
.dive-card img { width: 100%; height: 100%; object-fit: cover; }
.dive-card span {
  position: absolute;
  left: 10px;
  bottom: 8px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(11, 11, 12, 0.75);
  color: #fff;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
}
.dive-phrase b { display: inline-block; font-weight: inherit; }
.dive-wipe { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }

.cta {
  position: relative;
  height: max(100svh, 680px);
  background: var(--dark);
  color: var(--white);
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}
.cta-terminal { position: absolute; inset: 0; z-index: 0; overflow: hidden; opacity: 0.35; }
.faulty-terminal-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.cta-inner {
  position: relative;
  z-index: 2;
  pointer-events: none;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 var(--pad-x);
}
.cta-kicker { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; margin-bottom: 2.2vw; }
.cta-title {
  pointer-events: auto;
  width: 100%;
  font-size: clamp(64px, 11.5vw, 210px);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.05em;
}
.cta-line { display: block; width: 100%; }
.cta-line.tech-text { height: 1.1em; }
.cta-line.tech-text + .cta-line.tech-text { margin-top: -0.16em; }
.tech-text { position: relative; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.tech-text-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.cta-scroll {
  position: absolute;
  left: 50%;
  bottom: 5vh;
  z-index: 4;
  transform: translateX(-50%);
}
.cta-scroll:active { transform: translateX(-50%) scale(0.96); }
.cta-scroll i svg { width: 13px; }
.cta-scroll:hover i svg { animation: drop 0.9s var(--ease) infinite; }
@keyframes drop { 0% { transform: translateY(-6px); opacity: 0; } 50% { opacity: 1; } 100% { transform: translateY(6px); opacity: 0; } }

.ft { position: relative; z-index: 1; background: var(--bg); padding: clamp(80px, 14vh, 160px) var(--pad-x) var(--pad-y); }
.ft-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 40px;
  font-size: 15px;
}
.ft-col { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.ft-col p { color: var(--ink); }
.ft-gap { height: 26px; }
.ft-label { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; color: var(--muted) !important; margin-bottom: 2px; }
.link { position: relative; display: inline-flex; align-items: center; gap: 8px; }
.link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.link:hover::after { transform: scaleX(1); transform-origin: left; }
.copy-ico { display: grid; place-items: center; width: 16px; }
.copy-ico svg { width: 15px; }
.copy-mail.is-copied { color: #4a7a00; }
.ft-title { font-size: clamp(36px, 3.6vw, 60px); line-height: 1; letter-spacing: -0.04em; margin-bottom: 28px; }
.field--big { height: 60px; max-width: 480px; background: var(--bg-2); }
.field--big input { font-size: 15px; }
.ft-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  align-items: center;
  gap: 20px;
  margin-top: clamp(80px, 12vh, 140px);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
}
.ft-bottom .top-btn { justify-self: end; }
.ft-copy { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; }
.ft-end { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.lang-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  align-self: center;
  width: fit-content;
  padding: 4px;
  border-radius: 12px;
  background: var(--bg-2);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  white-space: nowrap;
}
.lang-pill {
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 0;
  border-radius: 8px;
  background: var(--ink);
  transition: transform 0.45s cubic-bezier(0.65, 0, 0.25, 1), width 0.45s cubic-bezier(0.65, 0, 0.25, 1);
}
.lang-pill.is-instant { transition: none; }
.lang-opt {
  position: relative;
  z-index: 1;
  padding: 7px 11px;
  border-radius: 8px;
  color: var(--muted);
  transition: color 0.3s var(--ease), transform 0.2s var(--ease);
}
.lang-opt:hover, .lang-opt:focus-visible { color: var(--ink); }
.lang-opt[aria-current] { color: var(--bg); cursor: default; }
.lang-opt:active:not([aria-current]) { transform: scale(0.94); }
.top-btn {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  transition: transform 0.3s var(--ease), background-color 0.3s;
}
.top-btn svg { width: 18px; transition: transform 0.4s var(--ease); }
.top-btn:hover { background: var(--accent); color: var(--ink); }
.top-btn:hover svg { transform: translateY(-3px); }
.top-btn:active { transform: scale(0.9); }

.next { position: relative; z-index: 1; height: 220vh; background: var(--bg); color: var(--ink); }
.next-sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.next-stage { position: absolute; inset: 0; background: var(--dark); will-change: clip-path; }
.next-canvas { display: block; width: 100%; height: 100%; }
.next-ring {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  width: 0;
  height: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.next-ring::before {
  content: '';
  position: absolute;
  left: -7px;
  top: -7px;
  width: 14px;
  height: 14px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  animation: next-ping 1.8s var(--ease) infinite;
}
.next.is-started .next-ring { opacity: 0; }
.next.is-full .next-hud { color: #fff; }
.next.is-full .next-title { color: #fff; text-shadow: 0 0.03em 0.25em rgba(11, 11, 12, 0.5); }
@keyframes next-ping {
  from { transform: scale(1); opacity: 0.8; }
  to { transform: scale(3.4); opacity: 0; }
}
.next-hud {
  position: absolute;
  left: var(--pad-x);
  right: var(--pad-x);
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--ink);
  transition: color 0.3s var(--ease);
}
.next-hud--top { top: calc(var(--header-h) + 8px); }
.next-hud--bottom { bottom: 36px; }
.next-kicker { flex: 1; }
.next-load {
  flex: none;
  display: inline-flex;
  gap: 12px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--dark);
  color: var(--accent);
  white-space: nowrap;
}
.next-hud--bottom .next-kicker, .next-hud--bottom .next-go { flex: 1 1 0; }
.next-dither { letter-spacing: 0.04em; }

.prev-pull {
  --pull: 0;
  position: fixed;
  top: calc(var(--header-h) + 10px);
  left: 50%;
  z-index: 58;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px 9px 12px;
  border-radius: 999px;
  background: var(--dark);
  color: var(--white);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, calc(-14px + var(--pull) * 26px)) scale(calc(0.94 + var(--pull) * 0.06));
  transition: opacity 0.3s var(--ease);
}
.prev-pull.is-on, .prev-pull.is-peek, .prev-pull.is-go { opacity: 1; }
.prev-pull.is-peek:not(.is-on) { transform: translate(-50%, 0); transition: opacity 0.3s var(--ease), transform 0.5s var(--ease); }
.prev-pull-ico { display: grid; width: 14px; height: 14px; color: var(--accent); }
.prev-pull-ico svg { width: 100%; height: 100%; }
.prev-pull-bar { color: var(--accent); letter-spacing: 0.04em; }
.next-go {
  flex: 1;
  display: inline-flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.next-go span { position: relative; }
.next-go span::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.next-go:hover span::after { transform: scaleX(1); transform-origin: left; }
.next-go svg { width: 14px; transition: transform 0.3s var(--ease); }
.next-go:hover svg { transform: translateX(4px); }
.next-title {
  position: absolute;
  left: 50%;
  top: 34%;
  z-index: 2;
  translate: -50% -50%;
  font-size: clamp(56px, 12vw, 230px);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.05em;
  white-space: nowrap;
  color: var(--ink);
  transition: color 0.4s var(--ease), text-shadow 0.4s var(--ease);
}


.ab-hero { position: relative; height: 240vh; background: var(--dark); color: var(--white); }
.ab-sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.ab-canvas { position: absolute; inset: 0; }
.ab-shade { position: absolute; inset: 0; background: #0b0b0c; opacity: 0; pointer-events: none; }
.ab-scroll { position: absolute; left: 50%; bottom: 5vh; z-index: 3; translate: -50% 0; }
.ab-scroll i svg { width: 13px; }
.ab-scroll:hover i svg { animation: drop 0.9s var(--ease) infinite; }
.ab-statement {
  position: absolute;
  left: var(--pad-x);
  right: var(--pad-x);
  bottom: 9vh;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  font-size: clamp(26px, 3.4vw, 60px);
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  pointer-events: none;
}
.ab-statement p { display: flex; flex-direction: column; }
.ab-right { text-align: right; text-transform: none; font-size: 1.15em; }
.ab-statement .mask { display: block; overflow: hidden; padding-bottom: 0.08em; }
.ab-statement .mask > span { display: block; }
.ab-bio { position: relative; padding: clamp(120px, 20vh, 240px) var(--pad-x); display: grid; grid-template-columns: 1fr 3fr; gap: 30px; }
.ab-bio-label { padding-top: 1em; }
.ab-bio-text { font-size: clamp(28px, 3.6vw, 62px); line-height: 1.08; letter-spacing: -0.035em; }
.ab-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1vw; padding: 0 var(--pad-x) clamp(100px, 16vh, 200px); }
.stat { position: relative; padding-top: 22px; }
.stat-line { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--ink); transform-origin: left; }
.stat-num { font-size: clamp(64px, 8vw, 150px); line-height: 1; letter-spacing: -0.05em; }
.stat-label { display: flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--muted); transition: color 0.3s var(--ease); }
.stat-arrow { display: grid; width: 12px; opacity: 0; transform: translate(-6px, 6px); transition: opacity 0.3s var(--ease), transform 0.4s var(--ease); }
.stat-arrow svg { width: 12px; }
.stat:hover .stat-label { color: var(--ink); }
.stat:hover .stat-arrow { opacity: 1; transform: none; }
.stat-num { transition: transform 0.5s var(--ease); }
.stat:hover .stat-num { transform: translateX(8px); }
.ab-stack { padding-bottom: clamp(100px, 14vh, 180px); overflow: hidden; }
.ab-stack-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; padding: 0 var(--pad-x); margin-bottom: 50px; }
.ab-stack-head .caption { max-width: 28ch; padding-bottom: 0.8em; }
.marquee { overflow: hidden; padding: 0.06em 0; border-top: 1px solid var(--line); }
.marquee:last-child { border-bottom: 1px solid var(--line); }
.marquee-track { display: flex; align-items: center; width: max-content; will-change: transform; }
.marquee-item { font-size: clamp(48px, 7vw, 128px); letter-spacing: -0.045em; line-height: 1.1; padding: 0 0.3em; white-space: nowrap; }
.marquee-sep {
  width: 0.5em;
  height: 0.5em;
  font-size: clamp(48px, 7vw, 128px);
  background: var(--accent);
  -webkit-mask: radial-gradient(circle, #000 34%, transparent 36%) 0 0 / 33.33% 33.33%;
  mask: radial-gradient(circle, #000 34%, transparent 36%) 0 0 / 33.33% 33.33%;
  flex: none;
}
.ab-skills { padding: 0 var(--pad-x) clamp(120px, 18vh, 220px); }
.ab-skills-title { max-width: 14ch; margin-bottom: clamp(50px, 6vw, 90px); }
.skills-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1vw; }
.skill { display: flex; flex-direction: column; gap: 18px; }
.skill-tile {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--accent);
  overflow: hidden;
  transition: transform 0.6s var(--ease), border-radius 0.6s var(--ease);
}
.skill:hover .skill-tile { transform: translateY(-6px); border-radius: 40px; }
.skill-num { position: absolute; left: 18px; top: 16px; color: rgba(255, 255, 255, 0.5); }
.dot-icon { width: 46%; }
.dot-icon circle {
  fill: currentColor;
  opacity: 0.12;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0.7);
  transition: opacity 0.35s var(--ease), transform 0.45s var(--ease);
  transition-delay: calc(var(--i) * 9ms);
}
.dot-icon circle.on { opacity: 1; transform: scale(1); }
.skill:hover .dot-icon circle { opacity: 0.12; transform: scale(0.7); }
.skill:hover .dot-icon circle.alt { opacity: 1; transform: scale(1.1); }
.skill-title { font-size: clamp(26px, 2.4vw, 40px); letter-spacing: -0.03em; }
.skill-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; color: var(--ink-3); }
.skill-list li { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.skill-list li::before { content: ''; width: 5px; height: 5px; background: var(--accent); outline: 1px solid var(--ink); flex: none; }

.pj-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: calc(var(--header-h) + 6vh) var(--pad-x) 4vh;
}
.pj-title { font-size: clamp(72px, 15vw, 280px); line-height: 0.84; letter-spacing: -0.06em; text-transform: uppercase; }
.pj-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; align-self: stretch; padding-top: 2vw; }
.pj-count { font-size: clamp(28px, 3vw, 52px); letter-spacing: -0.03em; }
.pj-arrow svg { width: clamp(40px, 5vw, 90px); stroke-width: 1.2; }
.pj-filters { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 var(--pad-x) clamp(30px, 4vw, 60px); }
.chip {
  display: inline-flex;
  align-items: flex-start;
  gap: 4px;
  height: 44px;
  padding: 0 18px;
  align-items: center;
  border-radius: 999px;
  background: var(--bg-2);
  font-size: 15px;
  transition: background-color 0.3s var(--ease), color 0.3s, transform 0.25s var(--ease);
}
.chip sup { font-family: var(--mono); font-size: 9.5px; align-self: flex-start; margin-top: 11px; }
.chip:hover { background: #d9dad3; }
.chip:active { transform: scale(0.95); }
.chip.is-active { background: var(--ink); color: var(--white); }
.chip--special { box-shadow: inset 0 0 0 1.5px var(--ink); }
.chip--special.is-active { background: var(--accent); color: var(--ink); }
.grid-cards--rounded { padding: 0 var(--pad-x) clamp(100px, 14vh, 180px); column-gap: 1.4vw; }
.grid-cards--rounded .card-media { border-radius: var(--radius); }
.grid-cards--rounded .card:nth-child(odd) .card-info { padding-left: 0; }
.work .grid-cards--rounded { padding-bottom: 0; }
.card[hidden] { display: none; }

.is-dark-page {
  --bg: #0b0b0c;
  --bg-2: #1c1d20;
  --surface: #151517;
  --ink: #f0f0ec;
  --ink-2: #f0f0ec;
  --ink-3: #c8cac4;
  --muted: #8a8d93;
  --line: rgba(240, 240, 236, 0.14);
  --project: #c6ff3a;
}
.is-dark-page .pill--light:hover, .is-dark-page .icon-btn:hover { background: #2a2b2f; }
.is-dark-page .pill--dark { color: var(--ink); background: #2a2b2f; }
.is-dark-page .menu-veil { background: rgba(11, 11, 12, 0.6); }
html.perf-low .is-dark-page .menu-veil { background: rgba(11, 11, 12, 0.85); }
.is-dark-page .menu-photo { background: var(--accent); color: #0b0b0c; }
.is-dark-page .field--big { background: var(--bg-2); }
.is-dark-page .top-btn { background: var(--ink); color: var(--dark); }
.pd-hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) 1.6fr;
  gap: clamp(30px, 4vw, 70px);
  align-items: center;
  padding: calc(var(--header-h) + 2vh) var(--pad-x) 9vh;
}
.pd-back { justify-self: start; margin-bottom: clamp(24px, 4vh, 60px); }
.pd-back-ico svg { width: 15px; }
.pd-back:hover .pd-back-ico svg { animation: back 0.6s var(--ease); }
@keyframes back { 40% { transform: translateX(-4px); } }
.pd-info { display: flex; flex-direction: column; align-items: flex-start; }
.pd-type { color: var(--project); margin-bottom: 14px; }
.pd-type-link { display: inline-flex; align-items: center; gap: 6px; }
.pd-type-link i { display: grid; width: 11px; transition: transform 0.35s var(--ease); }
.pd-type-link i svg { width: 11px; }
.pd-type-link:hover i { transform: translate(2px, -2px); }
.pd-type-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.pd-title { font-size: clamp(48px, 5.6vw, 104px); line-height: 0.95; letter-spacing: -0.05em; margin-bottom: 24px; }
.pd-desc { font-size: 16px; line-height: 1.5; color: var(--ink-3); max-width: 46ch; margin-bottom: 30px; }
.pd-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; width: 100%; margin-bottom: 34px; font-size: 14px; }
.pd-stack { list-style: none; padding: 0; margin: 0; display: grid; gap: 3px; }
.pd-launch { background: var(--project); color: #0b0b0c; }
.pd-launch:hover { background: var(--white); }
.pd-media {
  view-transition-name: project-media;
  position: relative;
  aspect-ratio: 16 / 10.5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-2);
}
.pd-media img { width: 100%; height: 100%; object-fit: cover; }
.pd-scroll { position: absolute; right: var(--pad-x); bottom: 3vh; color: var(--project); }
.pd-gallery { position: relative; }
.pd-sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; align-items: center; }
.pd-track { display: flex; align-items: center; gap: 1.6vw; padding: 0 var(--pad-x); will-change: transform; }
.pd-block { flex: none; height: 72vh; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); }
.pd-block--image img, .pd-block--video video { height: 100%; width: auto; max-width: none; }
.pd-block--video { aspect-ratio: 16 / 9; }
.pd-block--video video { width: 100%; object-fit: cover; }
.pd-block--site { display: flex; flex-direction: column; aspect-ratio: 16 / 10.6; background: #1a1b1e; border: 1px solid var(--line); }
.pd-chrome { display: flex; align-items: center; gap: 14px; height: 42px; padding: 0 14px; flex: none; }
.pd-dots { display: flex; gap: 6px; }
.pd-dots i { width: 10px; height: 10px; border-radius: 50%; background: #3a3b40; }
.pd-dots i:first-child { background: var(--project); }
.pd-url {
  flex: 1;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #0f0f11;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}
.pd-open { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; transition: background-color 0.3s; }
.pd-open svg { width: 15px; }
.pd-open:hover { background: var(--project); color: #0b0b0c; }
.pd-frame { position: relative; flex: 1; background: #111214; overflow: hidden; }
.pd-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
.pd-frame.is-live iframe { pointer-events: auto; }
.pd-frame.is-locked iframe { pointer-events: none !important; }
.pd-interact, .pd-load { position: absolute; right: 16px; bottom: 16px; z-index: 2; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5); }
.pd-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; z-index: 1; transition: opacity 0.5s var(--ease); }
.pd-frame.is-loading .pd-poster { opacity: 0.4; }
.pd-frame.is-loading::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 50%;
  border: 2px solid var(--project);
  border-right-color: transparent;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.pd-interact svg { width: 16px; }
.pd-block--text {
  width: min(60vh, 80vw);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(24px, 3vw, 44px);
  background: var(--project);
  color: #0b0b0c;
}
.pd-block--text p { font-size: clamp(26px, 2.6vw, 44px); line-height: 1.05; letter-spacing: -0.03em; }
.pd-text-link { align-self: flex-start; background: #0b0b0c; color: var(--white); }
.pd-text-link svg { width: 14px; }

.ribbons { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.ribbons-canvas { display: block; width: 100%; height: 100%; }
.ribbon-layer { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

.fluid-glass {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.fluid-glass__canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.fluid-glass__handle {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
}

.fluid-glass[data-interaction='drag'] .fluid-glass__handle {
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
}

.fluid-glass[data-grabbing] .fluid-glass__handle {
  cursor: grabbing;
}

.fluid-glass[data-interaction='static'][data-clickable] .fluid-glass__handle {
  pointer-events: auto;
  cursor: pointer;
}

.fluid-glass__label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: pre-line;
}

.fluid-glass__content {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.fluid-glass__content > * {
  pointer-events: auto;
}

.ct-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: calc(var(--header-h) + 6vh) var(--pad-x) 5vh;
}
.ct-title { font-size: clamp(64px, 13vw, 250px); line-height: 0.86; letter-spacing: -0.06em; }
.ct-status { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; padding-bottom: 1.2vw; }
.ct-live { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; }
.ct-live i { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #5d9a00; }
.ct-live i::after {
  content: '';
  position: absolute;
  inset: -4px;
  border: 1px solid #5d9a00;
  border-radius: 50%;
  animation: ct-ping 1.8s var(--ease) infinite;
}
@keyframes ct-ping { from { transform: scale(0.6); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }

.ct-body {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: clamp(32px, 6vw, 110px);
  padding: 2vh var(--pad-x) clamp(80px, 10vw, 160px);
  border-top: 1px solid var(--line);
  padding-top: clamp(32px, 4vw, 60px);
}
.ct-aside { position: sticky; top: calc(var(--header-h) + 20px); align-self: start; display: grid; gap: clamp(32px, 4vw, 56px); }
.ct-lead { font-size: clamp(24px, 2.3vw, 38px); line-height: 1.12; letter-spacing: -0.03em; }
.ct-steps { list-style: none; margin: 0; padding: 0; display: grid; }
.ct-steps li { display: flex; align-items: baseline; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
.ct-steps li:first-child { border-top: 1px solid var(--line); }
.ct-steps .hud { color: var(--muted); }
.ct-direct { display: grid; gap: 14px; }
.ct-label { color: var(--muted); }
.ct-mail {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: fit-content;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  font-size: clamp(16px, 1.3vw, 20px);
  letter-spacing: -0.01em;
  transition: background-color 0.3s var(--ease), transform 0.25s var(--ease);
}
.ct-mail:hover { background: var(--accent); }
.ct-mail:active { transform: scale(0.97); }
.ct-mail-ico { display: grid; place-items: center; width: 18px; }
.ct-mail-ico svg { width: 16px; }
.ct-mail.is-copied { background: var(--accent); }
.ct-socials { display: flex; flex-wrap: wrap; gap: 18px; font-size: 15px; }

.ct-form {
  display: grid;
  gap: clamp(28px, 3vw, 44px);
  padding: clamp(22px, 3vw, 44px);
  border-radius: var(--radius);
  background: var(--surface);
}
.ct-group { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: 16px; }
.ct-group legend {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 0;
  margin-bottom: 16px;
  font-size: clamp(20px, 1.6vw, 26px);
  letter-spacing: -0.02em;
}
.ct-group legend .hud { color: var(--muted); }
.ct-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ct-chip { position: relative; cursor: pointer; }
.ct-chip input { position: absolute; opacity: 0; pointer-events: none; }
.ct-chip span {
  display: inline-flex;
  align-items: center;
  height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--bg-2);
  font-size: 15px;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.25s var(--ease);
}
.ct-chip:hover span { background: #d9dad3; }
.ct-chip:active span { transform: scale(0.95); }
.ct-chip input:checked + span { background: var(--ink); color: var(--white); }
.ct-chip input:focus-visible + span { box-shadow: 0 0 0 2px var(--accent), 0 0 0 4px var(--ink); }

.ct-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ct-field { position: relative; display: grid; }
.ct-field input,
.ct-field textarea {
  width: 100%;
  padding: 26px 18px 10px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  outline: none;
  resize: vertical;
  transition: box-shadow 0.25s var(--ease), background-color 0.25s var(--ease);
}
.ct-field textarea { min-height: 180px; line-height: 1.5; }
.ct-field input:focus,
.ct-field textarea:focus { background: var(--white); box-shadow: 0 0 0 2px var(--ink); }
.ct-field > span {
  position: absolute;
  left: 18px;
  top: 18px;
  color: var(--muted);
  font-size: 16px;
  pointer-events: none;
  transform-origin: left top;
  transition: transform 0.3s var(--ease), color 0.3s var(--ease);
}
.ct-field input:focus + span,
.ct-field input:not(:placeholder-shown) + span,
.ct-field textarea:focus + span,
.ct-field textarea:not(:placeholder-shown) + span { transform: translateY(-10px) scale(0.72); color: var(--ink); }
.ct-count { position: absolute; right: 14px; bottom: 12px; color: var(--muted); font-style: normal; }
.ct-field.has-error input,
.ct-group.has-error textarea { box-shadow: 0 0 0 2px #d6452f; }
.ct-error { margin: 0; min-height: 0; color: #c23a24; font-size: 13px; }
.ct-error:empty { display: none; }
.ct-field .ct-error { margin-top: 8px; }
.ct-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.ct-submit-row { display: flex; align-items: center; justify-content: flex-end; gap: 20px; flex-wrap: wrap; }
.ct-error--global { flex: 1; }
.ct-submit { height: 60px; padding: 0 28px; font-size: 12.5px; gap: 14px; }
.ct-submit-ico { display: grid; place-items: center; width: 18px; }
.ct-submit-ico svg { width: 18px; transition: transform 0.3s var(--ease); }
.ct-submit:hover .ct-submit-ico svg { transform: translateX(4px); }
.ct-submit:hover { background: var(--ink); }
.ct-submit-load { display: none; color: var(--accent); letter-spacing: 0.06em; }
.ct-submit.is-loading { cursor: progress; }
.ct-submit.is-loading .ct-submit-label, .ct-submit.is-loading .ct-submit-ico { display: none; }
.ct-submit.is-loading .ct-submit-load { display: inline; }

.ct-done { display: grid; justify-items: start; gap: 16px; padding: clamp(20px, 3vw, 40px) 0; }
.ct-done-art { margin: 0 0 8px; font-family: var(--mono); font-size: 14px; line-height: 1; color: #5d9a00; }
.ct-done-title { font-size: clamp(40px, 4.4vw, 76px); line-height: 1; letter-spacing: -0.05em; }
.ct-done-text { max-width: 34ch; color: var(--muted); font-size: 17px; }

.lg-hero { padding: calc(var(--header-h) + 8vh) var(--pad-x) 6vh; }
.lg-title { font-size: clamp(44px, 8vw, 150px); line-height: 0.92; letter-spacing: -0.05em; max-width: 14ch; }
.lg-updated { display: block; margin-top: 22px; color: var(--muted); }
.lg-toc { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 34px; font-size: 14px; }
.lg-body { display: grid; gap: clamp(56px, 8vh, 96px); max-width: 860px; padding: 2vh var(--pad-x) 16vh; }
.lg-section { scroll-margin-top: calc(var(--header-h) + 20px); }
.lg-section h2 { display: flex; align-items: baseline; gap: 14px; font-size: clamp(26px, 3vw, 40px); letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 8px; }
.lg-section h2 .hud { color: var(--muted); }
.lg-section h3 { font-size: 17px; margin: 30px 0 0; }
.lg-section p { margin: 12px 0 0; font-size: 15px; line-height: 1.65; color: var(--ink-3); max-width: 68ch; }
.lg-section strong { color: var(--ink); }
.lg-section a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color 0.25s var(--ease); }
.lg-section a:hover { color: var(--muted); }
.lg-section code { font-family: var(--mono); font-size: 0.9em; }
.lg-table { margin-top: 18px; overflow-x: auto; }
.lg-table table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; }
.lg-table th, .lg-table td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.lg-table th { font-family: var(--mono); font-size: 11px; font-weight: 500; text-transform: uppercase; color: var(--muted); }

@media (max-width: 900px) {
  .ft-grid { grid-template-columns: 1fr 1fr; }
  .ft-form { grid-column: 1 / -1; }
  .ft-bottom { grid-template-columns: 1fr 1fr auto; }
}

@media (max-width: 767px) {
  .ct-hero { flex-direction: column; align-items: flex-start; }
  .ct-status { align-items: flex-start; }
  .ct-body { grid-template-columns: 1fr; }
  .ct-aside { position: static; }
  .ct-row { grid-template-columns: 1fr; }
  .ct-submit { width: 100%; justify-content: center; }
  .next-hud--bottom .next-kicker { display: none; }
  .next-hud--bottom .next-go { flex: none; }
  .next-hud--bottom { justify-content: space-between; }
  .hd-word { display: none; }
  .hd .pill--dark { display: none; }
  .hero-tagline { margin-left: 0; padding: 0 var(--pad-x); width: auto; font-size: 22px; margin-top: calc(var(--header-h) - var(--pad-y)); min-height: 0; }
  .hero-card { height: 62svh; min-height: 0; }
  .hero-foot { display: flex; justify-content: space-between; }
  .hero-foot .hero-scroll { display: none; }
  .intro-indent { padding-left: 0; }
  .svc-head { grid-template-columns: 1fr; }
  .svc-row { grid-template-columns: 1fr; gap: 18px; }
  .svc-art { max-width: 420px; }
  .work-head { flex-direction: column; align-items: flex-start; }
  .grid-cards { grid-template-columns: 1fr; row-gap: 44px; }
  .grid-cards .card .card-info { padding-left: var(--pad-x) !important; padding-right: var(--pad-x); }
  .grid-cards--rounded .card .card-info { padding-left: 0 !important; padding-right: 0; }
  .card-view { display: none; }
  .dive-text { left: var(--pad-x); top: auto; bottom: 8vh; }
  .dive-stage { height: 460vh; }
    .ft-grid { grid-template-columns: 1fr; }
  .ft-bottom { grid-template-columns: 1fr auto auto; }
  .ft-end { display: contents; }
  .ft-bottom .lang-switch { grid-column: 1 / -1; order: 1; }
  .ab-statement { flex-direction: column; align-items: flex-start; bottom: 22vh; }
  .ab-right { text-align: left; }
  .ab-bio { grid-template-columns: 1fr; }
  .ab-stats { grid-template-columns: 1fr; row-gap: 40px; }
  .ab-stack-head { flex-direction: column; align-items: flex-start; }
  .skills-grid { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .pj-hero { padding-top: calc(var(--header-h) + 4vh); }
  .pd-hero { grid-template-columns: 1fr; padding-bottom: 12vh; }
  .pd-media { order: -1; margin-top: 0; }
  .pd-sticky { position: static; height: auto; display: block; }
  .pd-track { flex-direction: column; align-items: stretch; gap: 16px; }
  html.perf-low .pd-track { will-change: auto; }
  .pd-block { height: auto; }
  .pd-block--image img, .pd-block--video video { width: 100%; height: auto; }
  .pd-block--site { aspect-ratio: 9 / 14; }
  .pd-block--text { width: auto; min-height: 260px; }
  .menu-link { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .next-ring::before { animation: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  .device { transform: none; --bezel: 0px; --radius: 0px; }
  .dive-stage { height: 100svh; }
}
