/* ─────────────────────────────────────────────────────────────
   styles.css — visual design
   Dark, atmospheric, editorial. Change the tokens below to
   re-theme the whole site.
   ───────────────────────────────────────────────────────────── */

:root {
  /* Colors — change these values to re-theme everything */
  --bg:        #0b0a0a;                       /* charcoal black */
  --bg-2:      #141110;                       /* slightly lifted panels */
  --ink:       #e9e7df;                       /* bone white text */
  --dim:       rgba(233, 231, 223, 0.58);     /* secondary text */
  --faint:     rgba(233, 231, 223, 0.34);     /* tertiary text */
  --line:      rgba(233, 231, 223, 0.13);     /* hairlines */
  --accent:    #ff3a47;                       /* signal red */
  --accent-15: rgba(255, 58, 71, 0.15);
  --accent-50: rgba(255, 58, 71, 0.5);
  --on-accent: #ffffff;                       /* text on top of the accent */

  /* Type */
  --font-display: "Syne", sans-serif;
  --font-body:    "Space Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  /* Layout */
  --pad:    clamp(20px, 4.5vw, 64px);
  --radius: clamp(14px, 2vw, 24px);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Reset / base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scrollbar-color: rgba(233, 231, 223, 0.25) var(--bg);
}
html.is-loading { overflow: hidden; }
html.menu-open  { overflow: hidden; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

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

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(233, 231, 223, 0.18); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: rgba(233, 231, 223, 0.3); }

/* Hide the native cursor only when the custom one is active (JS sets the class) */
@media (hover: hover) and (pointer: fine) {
  html.js-cursor, html.js-cursor a, html.js-cursor button,
  html.js-cursor input, html.js-cursor label { cursor: none; }
}

/* ── Utilities ── */
.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--dim);
  margin-bottom: 22px;
}
.eyebrow .dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 2px;
  transform: rotate(45deg);
  flex: none;
}

h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
}

/* Accent chip used inside the hero title (from data.js) */
.lime-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.22em;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 999px;
  padding: 0.02em 0.34em 0.08em;
  transform: rotate(-2deg);
  line-height: 1.1;
}
.lime-chip .ball {
  width: 0.32em;
  height: 0.32em;
  background: var(--on-accent);
  border-radius: 50%;
  animation: ballPulse 2.2s ease-in-out infinite;
}
@keyframes ballPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(0.55); opacity: 0.6; }
}

/* Outlined pill used in the About title (from data.js) */
.lime-pill {
  display: inline-block;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  border-radius: 999px;
  padding: 0 0.32em 0.06em;
  transform: rotate(2deg);
  line-height: 1.15;
}

.wave {
  display: inline-block;
  animation: wave 2.4s ease-in-out infinite;
  transform-origin: 70% 70%;
}
@keyframes wave {
  0%, 55%, 100% { transform: rotate(0deg); }
  10% { transform: rotate(16deg); }
  20% { transform: rotate(-7deg); }
  30% { transform: rotate(14deg); }
  40% { transform: rotate(-4deg); }
}

.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  flex: none;
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--accent-15); }
  50%      { opacity: 0.5; box-shadow: 0 0 0 5px rgba(255, 58, 71, 0); }
}

/* ── Film grain ── */
.grain {
  position: fixed;
  inset: 0;
  z-index: 94;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 240px 240px;
}

/* ── Loader ── */
.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  display: grid;
  place-items: center;
  clip-path: inset(0 0 0 0);
  transition: clip-path 0.9s cubic-bezier(0.83, 0, 0.17, 1);
}
.loader.done { clip-path: inset(0 0 100% 0); pointer-events: none; }
.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.loader-name { color: var(--faint); }
.loader-count {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(64px, 12vw, 130px);
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.loader-count::after { content: "%"; font-size: 0.35em; color: var(--accent); margin-left: 0.1em; }
.loader-bar {
  width: min(320px, 60vw);
  height: 1px;
  background: var(--line);
  overflow: hidden;
}
.loader-bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--accent);
}
.loader-hint { color: var(--faint); }

/* ── Custom cursor ── */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 96;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out),
              background 0.3s, border 0.3s, opacity 0.3s;
  will-change: transform;
}
.cursor.on { opacity: 1; }
.cursor.hover {
  width: 52px;
  height: 52px;
  background: var(--accent-15);
  border: 1px solid var(--accent-50);
}
.cursor.view {
  width: 88px;
  height: 88px;
  background: var(--accent);
  border: none;
}
.cursor-label {
  display: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-accent);
  white-space: nowrap;
}
.cursor.view .cursor-label { display: block; }

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px var(--pad);
  transition: background 0.4s, border-color 0.4s, padding 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(11, 10, 10, 0.72);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
  padding-top: 12px;
  padding-bottom: 12px;
}

.nav-brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.nav-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.nav-role {
  font-size: 10px;
  color: var(--faint);
  border-left: 1px solid var(--line);
  padding-left: 12px;
  margin-left: 3px;
  white-space: nowrap;
}

.nav-links { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
.nav-links > a {
  font-size: 14px;
  font-weight: 500;
  color: var(--dim);
  position: relative;
  transition: color 0.3s;
}
.nav-links > a:hover { color: var(--ink); }
.nav-links > a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.nav-links > a:not(.nav-cta):hover::after { transform: scaleX(1); transform-origin: left; }

.nav-cta {
  border: 1px solid var(--accent-50);
  color: var(--accent) !important;
  border-radius: 999px;
  padding: 10px 20px;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.nav-cta:hover { background: var(--accent); color: var(--on-accent) !important; border-color: var(--accent); }

.nav-lang {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 15px;
  transition: color 0.3s, border-color 0.3s;
}
.nav-lang:hover { color: var(--ink); border-color: var(--accent-50); }
.nav-lang .globe { color: var(--accent); font-size: 13px; }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 7px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  flex: none;
}
.burger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.35s var(--ease-out);
}
.burger.open span:nth-child(1) { transform: translateY(4.25px) rotate(45deg); }
.burger.open span:nth-child(2) { transform: translateY(-4.25px) rotate(-45deg); }

/* ── Mobile menu ── */
.menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(11, 10, 10, 0.96);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8vh;
  padding: var(--pad);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s, visibility 0.45s;
}
.menu.open { opacity: 1; visibility: visible; }
.menu-links { display: flex; flex-direction: column; }
.menu-links a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(38px, 10vw, 64px);
  line-height: 1.1;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.menu.open .menu-links a { opacity: 1; transform: none; }
.menu.open .menu-links a:nth-child(2) { transition-delay: 0.06s; }
.menu.open .menu-links a:nth-child(3) { transition-delay: 0.12s; }
.menu-links a .mono { color: var(--accent); font-size: 13px; }
.menu-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.menu-mail { font-size: 14px; color: var(--dim); text-decoration: underline; text-underline-offset: 4px; }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(110% 70% at 50% 100%, #1d1415 0%, rgba(29, 20, 21, 0) 60%),
    radial-gradient(60% 40% at 75% 90%, rgba(255, 58, 71, 0.06) 0%, rgba(255, 58, 71, 0) 70%),
    var(--bg);
}
.hero-bg canvas {
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 1.6s ease;
}
.hero-bg.on canvas { opacity: 1; }

.hero-fade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(11, 10, 10, 0.7) 0%,
    rgba(11, 10, 10, 0) 22%,
    rgba(11, 10, 10, 0) 62%,
    var(--bg) 100%);
}

.hero-frame { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hero-frame .hf {
  position: absolute;
  top: 92px;
  color: var(--faint);
  font-size: 11px;
}
.hero-frame .tl { left: var(--pad); }
.hero-frame .tr { right: var(--pad); }

.hero-inner {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: clamp(28px, 5vh, 56px);
  padding: 120px var(--pad) clamp(28px, 5vh, 52px);
}

.hero-greet {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  max-width: 100%;
}
.hero-greet > span:last-child { flex: 1 1 0; min-width: 0; }
@media (max-width: 520px) {
  .hero-greet { font-size: 10.5px; }
}

/* Giant split-letter title */
.hero-giant {
  margin: auto 0;
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(2.2rem, 8vw, 8rem);
  line-height: 0.94;
  letter-spacing: -0.02em;
  -webkit-user-select: none;
  user-select: none;
}
.hero-giant .line {
  display: block;
  overflow: hidden;
  padding: 0.05em 0;
  white-space: nowrap;
}
.hero-giant .l2 {
  display: flex;
  align-items: center;
  gap: 0.22em;
}
.hero-giant .ch { display: inline-block; will-change: transform; }
.hero-giant .split.outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--ink);
}
.hero-giant .split.outline:hover { -webkit-text-stroke-color: var(--accent); }
.chip3d {
  flex: none;
  font-family: var(--font-mono);
  font-size: 0.14em;
  font-weight: 500;
  letter-spacing: 0.14em;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 999px;
  padding: 0.55em 0.95em;
  transform: rotate(-6deg);
}

.hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  border-top: 1px solid var(--line);
  padding-top: clamp(20px, 3vh, 32px);
  padding-right: clamp(120px, 14vw, 200px);   /* room for the orbit badge */
}
.hero-blurb {
  max-width: 46ch;
  font-size: 15px;
  color: var(--dim);
}
.hero-blurb b { color: var(--ink); font-weight: 600; }
.hero-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  flex: none;
}
.hero-meta .row {
  display: flex;
  gap: 10px;
  color: var(--faint);
  font-size: 11px;
}
.hero-meta .row b { color: var(--dim); font-weight: 500; }
.hero-hint {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  color: var(--dim);
}
.hero-hint .hint-ico {
  color: var(--accent);
  animation: pulse 1.8s ease-in-out infinite;
  box-shadow: none;
}
@media (hover: none) {
  .hero-hint { display: none; }   /* "move your cursor" makes no sense on touch */
}

/* Rotating orbit badge → #work */
.orbit-badge {
  position: absolute;
  right: calc(var(--pad) + 4px);
  bottom: calc(var(--pad) + 78px);
  z-index: 3;
  width: clamp(96px, 10vw, 136px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.orbit-badge svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  animation: orbitSpin 16s linear infinite;
}
.orbit-badge text {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  fill: var(--dim);
}
.orbit-arrow {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 18px;
  color: var(--accent);
  background: rgba(11, 10, 10, 0.4);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.orbit-badge:hover .orbit-arrow {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}
@keyframes orbitSpin { to { transform: rotate(360deg); } }

/* ── Marquee ── */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  overflow: hidden;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee var(--marquee-dur, 36s) linear infinite;
}
.mq-group { display: flex; align-items: center; flex: none; }
.mq-item {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 48px);
  padding-right: clamp(24px, 3vw, 48px);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(16px, 2vw, 24px);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--dim);
  white-space: nowrap;
}
.mq-item .sep { color: var(--accent); font-size: 0.7em; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Work ── */
.work { padding: clamp(80px, 12vh, 140px) var(--pad) clamp(60px, 8vh, 100px); }
.work-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(36px, 5vh, 60px);
}

.filter { display: flex; gap: 8px; flex-wrap: wrap; }
.filter button {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 20px;
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}
.filter button:hover { color: var(--ink); border-color: var(--faint); }
.filter button.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.work-grid {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 40px);
}

/* Horizontal pinned gallery (JS adds .is-horizontal on desktop) */
.work.is-horizontal {
  overflow: hidden;
  padding-top: clamp(60px, 8vh, 96px);
  padding-bottom: 48px;
}
.work.is-horizontal .work-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  will-change: transform;
  --tile-h: min(48vh, 520px);
}
.work.is-horizontal .tile.big {
  flex: none;
  height: var(--tile-h);
  aspect-ratio: 16 / 9;
  width: auto;
}
.work.is-horizontal .tile.split {
  flex: none;
  display: flex;
  gap: clamp(20px, 3vw, 40px);
}
.work.is-horizontal .tile-cell {
  height: var(--tile-h);
  aspect-ratio: 4 / 5;
  width: auto;
}
.work.is-horizontal .tile-img-inner { inset: -4% -8%; }

/* Tiles */
.tile { position: relative; display: block; }
.tile.big {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-2);
}
.tile.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 40px);
}
.tile-cell {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-2);
}

.tile-img { position: absolute; inset: 0; overflow: hidden; }
.tile-img-inner { position: absolute; inset: -8% 0; will-change: transform; }
.tile-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.9s ease, transform 1.4s var(--ease-out);
}
.tile-slide.active { opacity: 1; }
@media (hover: hover) {
  .tile.big:hover .tile-slide, .tile-cell:hover .tile-slide { transform: scale(1.045); }
}

.tile-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 7, 5, 0.25) 0%, rgba(5, 7, 5, 0) 30%, rgba(5, 7, 5, 0) 52%, rgba(5, 7, 5, 0.62) 100%);
}

.tile-meta {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: clamp(16px, 2vw, 26px);
}
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag, .tile-meta .year {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(11, 10, 10, 0.5);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(233, 231, 223, 0.16);
  border-radius: 999px;
  padding: 7px 13px;
  white-space: nowrap;
}
.tile-meta .year { color: var(--dim); }

.tile-foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(16px, 2vw, 26px);
}
.tile-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 32px);
  line-height: 1.1;
}
.tile-sub { color: var(--dim); font-size: 14px; margin-top: 4px; }
.tile-arrow {
  width: 46px;
  height: 46px;
  flex: none;
  border: 1px solid rgba(233, 231, 223, 0.25);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 17px;
  background: rgba(11, 10, 10, 0.4);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.4s var(--ease-out);
}
.tile.big:hover .tile-arrow, .tile-cell:hover .tile-arrow {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
  transform: rotate(45deg);
}

/* Slideshow controls */
.tile-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(233, 231, 223, 0.2);
  background: rgba(11, 10, 10, 0.45);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.3s, background 0.3s, border-color 0.3s;
}
.tile-nav-btn.prev { left: 16px; }
.tile-nav-btn.next { right: 16px; }
.tile.big:hover .tile-nav-btn, .tile-cell:hover .tile-nav-btn { opacity: 1; }
.tile-nav-btn:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
@media (hover: none) {
  .tile-nav-btn { opacity: 1; }
}

.tile-dots {
  position: absolute;
  bottom: clamp(70px, 9vw, 96px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 6px;
}
.tile-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(233, 231, 223, 0.35);
  transition: background 0.3s, width 0.3s;
}
.tile-dot.active { background: var(--accent); width: 20px; }

/* Studio render placeholder (projects without media yet) */
.studio-render {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(55% 45% at var(--sr-x) var(--sr-y), var(--sr-c1) 0%, transparent 70%),
    radial-gradient(50% 42% at var(--sr-x2) var(--sr-y2), var(--sr-c2) 0%, transparent 72%),
    linear-gradient(160deg, var(--sr-bg1) 0%, var(--sr-bg2) 100%);
}
.studio-render::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(233, 231, 223, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(233, 231, 223, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(80% 80% at 50% 50%, black 30%, transparent 100%);
  mask-image: radial-gradient(80% 80% at 50% 50%, black 30%, transparent 100%);
}
.sr-tag {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(233, 231, 223, 0.55);
  border: 1px solid rgba(233, 231, 223, 0.18);
  border-radius: 999px;
  padding: 9px 18px;
  background: rgba(11, 10, 10, 0.3);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* ── About ── */
.about { padding: clamp(80px, 12vh, 150px) var(--pad); }
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.about-visual { position: relative; }
.portrait { position: sticky; top: 110px; }
.portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  filter: saturate(0.92);
}
.portrait figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
  color: var(--faint);
  font-size: 11px;
}

.about-main { display: flex; flex-direction: column; gap: 28px; }
.about-main h2 { margin-bottom: 26px; }
.about-p {
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.65;
  color: var(--dim);
  max-width: 58ch;
}
.about-p + .about-p { margin-top: 16px; }
.about-p b { color: var(--ink); font-weight: 600; }

.about-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-2);
  padding: clamp(20px, 2.4vw, 28px);
}
.about-card h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 18px;
}
.about-card h4 .ico { color: var(--accent); }

.tool-grid { display: flex; flex-wrap: wrap; gap: 9px; }
.tool-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  font-weight: 500;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  transition: border-color 0.3s, transform 0.3s var(--ease-out), background 0.3s;
}
.tool-pill:hover { border-color: var(--accent-50); background: rgba(255, 58, 71, 0.07); transform: translateY(-2px); }
.tool-pill .ico { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.tool-pill.expert .ico { background: var(--accent); }
.tool-pill.adv .ico { background: var(--faint); }

.now-list { display: flex; flex-direction: column; }
.now-row {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.now-row:last-child { border-bottom: none; padding-bottom: 0; }
.now-row:first-child { padding-top: 0; }
.now-row .num { font-family: var(--font-mono); font-size: 11px; color: var(--accent); flex: none; }
.now-row .txt { font-size: 14.5px; color: var(--dim); }
.now-row .txt b { color: var(--ink); font-weight: 600; }

/* Floating tool-logo card following the cursor */
.cursor-logo {
  position: fixed;
  z-index: 80;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 16px)) scale(0.85);
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s var(--ease-out);
  background: #f2f0e9;
  border-radius: 14px;
  padding: 11px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}
.cursor-logo.on { opacity: 1; transform: translate(-50%, calc(-100% - 16px)) scale(1); }
.cursor-logo img { width: 46px; height: 46px; object-fit: contain; }

/* ── Contact ── */
.contact {
  padding: clamp(90px, 14vh, 170px) var(--pad);
  border-top: 1px solid var(--line);
}
.contact-inner {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.contact-title {
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  margin-bottom: clamp(30px, 5vh, 48px);
}
.contact-title a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.12em;
  transition: background 0.3s, color 0.3s;
  border-radius: 0.15em;
}
.contact-title a:hover { background: var(--accent); color: var(--on-accent); text-decoration: none; }

.contact-cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  padding: 17px 28px;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s, background 0.3s, border-color 0.3s, color 0.3s;
}
.cta .ico { font-size: 13px; }
.cta.primary { background: var(--accent); color: var(--on-accent); }
.cta.primary:hover { transform: translateY(-3px); box-shadow: 0 14px 38px rgba(255, 58, 71, 0.28); }
.cta.ghost { border: 1px solid var(--line); color: var(--dim); }
.cta.ghost:hover { border-color: var(--faint); color: var(--ink); }
.cta.ghost .ico { color: var(--accent); }
.cta.disabled { opacity: 0.45; pointer-events: none; }

.contact-side { display: grid; gap: 14px; }
.contact-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 22px;
  transition: background 0.3s, border-color 0.3s, transform 0.35s var(--ease-out);
}
a.contact-card:hover { background: var(--bg-2); border-color: var(--faint); transform: translateY(-3px); }
.contact-card h5 {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 8px;
}
.contact-card p { font-size: 17px; font-weight: 600; }
.contact-card .small { display: block; font-size: 12px; color: var(--dim); margin-top: 3px; }

/* ── Footer ── */
.foot { border-top: 1px solid var(--line); overflow: hidden; }
.foot-giant {
  padding: clamp(28px, 5vh, 56px) 0 0;
  text-align: center;
  white-space: nowrap;
}
.foot-giant span {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(64px, 14.5vw, 230px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(233, 231, 223, 0.22);
  transition: color 0.6s;
}
.foot-giant:hover span { color: var(--accent); -webkit-text-stroke-color: var(--accent); }

.foot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
  flex-wrap: wrap;
  padding: 28px var(--pad) 36px;
  font-size: 13px;
  color: var(--dim);
}
.foot-time { display: inline-flex; align-items: center; gap: 9px; color: var(--faint); font-size: 11px; }
.socials { display: flex; gap: 22px; }
.socials a { color: var(--dim); transition: color 0.3s; }
.socials a:hover { color: var(--accent); }
.to-top { color: var(--dim); transition: color 0.3s; }
.to-top:hover { color: var(--ink); }

/* ── Scroll reveal (IntersectionObserver adds .in) ── */
.fx.armed, .fx-stagger.armed > * {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.fx.armed.in, .fx-stagger.armed.in > * { opacity: 1; transform: none; }
.fx-stagger.armed.in > *:nth-child(2) { transition-delay: 0.1s; }
.fx-stagger.armed.in > *:nth-child(3) { transition-delay: 0.2s; }
.fx-stagger.armed.in > *:nth-child(4) { transition-delay: 0.3s; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; }
  .portrait { position: relative; top: 0; max-width: 440px; }
  .contact-inner { grid-template-columns: 1fr; gap: 56px; }
  .hero-title { font-size: clamp(2.4rem, 8.5vw, 5.4rem); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .burger { display: flex; }
  .nav-role { display: none; }
  .hero-frame { display: none; }
  .hero-inner { padding-top: 100px; }
  .hero-bottom { flex-direction: column; align-items: flex-start; gap: 24px; padding-right: 0; }
  .hero-meta { align-items: flex-start; }
  .orbit-badge { display: none; }
  .work-head { flex-direction: column; align-items: flex-start; }
  .tile.big { aspect-ratio: 4 / 3; }
  .tile.split { grid-template-columns: 1fr; }
  .tile-cell { aspect-ratio: 4 / 3; }
  .tile-dots { bottom: clamp(76px, 22vw, 96px); }
  .foot-row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 520px) {
  .hero-giant { font-size: clamp(2rem, 11.5vw, 3rem); }
  .hero-giant .split.outline { -webkit-text-stroke-width: 1.2px; }
  h2 { font-size: clamp(1.7rem, 7.8vw, 2.4rem); }
  .contact-title { font-size: clamp(1.9rem, 8.8vw, 2.8rem); }
  .contact-cta-row { flex-direction: column; align-items: stretch; }
  .cta { justify-content: center; }
  .tile-foot { flex-wrap: wrap; }
  .cta.primary { font-size: 13.5px; }   /* long email addresses must fit */
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .marquee-track { animation: none; }
  .orbit-badge svg { animation: none; }
  .fx.armed, .fx-stagger.armed > * { opacity: 1; transform: none; }
}
