/* ============================================================
   port26 — Polina Bobrova · portfolio homepage
   Dark editorial theme. Fraunces (display) + Inter (text).
   ============================================================ */

:root {
  --bg:        #0b0b0f;
  --bg-soft:   #121218;
  --surface:   #16161d;
  --line:      rgba(255,255,255,.09);
  --line-2:    rgba(255,255,255,.16);
  --text:      #f4f2ee;
  --muted:     #9a97a3;
  --muted-2:   #6f6c78;
  --accent:    #8b5cf6;
  --max:       1180px;
  --ease:      cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

h1, h2, h3 { font-family: "Fraunces", Georgia, serif; font-weight: 500; }

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

/* ── layout helpers ───────────────────────────────────────── */
.hero, .work, .research, .about, .contact { padding-inline: clamp(20px, 6vw, 72px); }
.hero, .work, .research, .about { max-width: var(--max); margin-inline: auto; }
#work, #research, #about, #contact { scroll-margin-top: 84px; }

/* ── header ───────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 16px clamp(20px, 6vw, 72px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header__left {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 2;
  min-width: 0;
}
.site-header__end {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  flex-shrink: 0;
}
.safari-video-unlock {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 8px;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}
.wordmark {
  font-family: "Fraunces", serif; font-size: 18px; font-weight: 600;
  letter-spacing: .01em;
}
.nav { display: flex; align-items: center; font-size: 15px; }
.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
}
.nav-menu a { color: var(--muted); transition: color .2s var(--ease); }
.nav-menu a.is-active { color: var(--text); box-shadow: inset 0 -1px 0 var(--text); }
.nav-menu a:hover { color: var(--text); }
.nav a { color: var(--muted); transition: color .2s var(--ease); }
.nav a:hover { color: var(--text); }
.nav-toggle {
  display: none;
  appearance: none;
  border: none;
  background: none;
  color: var(--text);
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 100px;
  cursor: pointer;
}
.nav-toggle:hover {
  background: none;
}
.nav-toggle__icon {
  display: grid;
  gap: 5px;
  width: 16px;
  margin-inline: auto;
}
.nav-toggle__bar {
  display: block;
  height: 1.5px;
  border-radius: 1px;
  background: currentColor;
  transition: transform .22s var(--ease), opacity .22s var(--ease);
}
.site-header.is-open .nav-toggle__bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.site-header.is-open .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}
.site-header.is-open .nav-toggle__bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}
.nav-cta {
  color: var(--text) !important;
  border: 1px solid var(--line-2);
  padding: 7px 16px; border-radius: 100px;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.nav-cta:hover { background: var(--text); color: var(--bg) !important; border-color: var(--text); }

/* ── hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(32px, 5vw, 52px) clamp(40px, 6vw, 64px);
}

.hero-layout {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(20px, 3.5vw, 40px);
  align-items: center;
}

.hero-copy { max-width: 34rem; }

.eyebrow {
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 16px;
}
.hero-title {
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.08; letter-spacing: -.03em;
  margin: 0 0 16px; max-width: 14ch;
}
.hero-title em {
  font-style: italic; font-weight: 400;
  background: linear-gradient(108deg, #c4a8ff 0%, #e05cc8 48%, #ffa45c 92%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {
  font-size: clamp(15px, 1.7vw, 17px); color: var(--muted);
  max-width: 44ch; margin: 0 0 20px; line-height: 1.6;
}

/* credibility stats */
.hero-credibility {
  display: flex; align-items: stretch; gap: 8px;
  flex-wrap: wrap; list-style: none; margin: 0 0 22px; padding: 0;
}
.hero-credibility li {
  display: flex; flex-direction: column; gap: 1px;
  min-width: 0;
  flex: 1 1 78px;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: blur(10px);
}
.hero-credibility strong {
  font-family: "Fraunces", serif; font-size: 18px; font-weight: 500;
  color: var(--text); letter-spacing: -.02em; line-height: 1.1;
}
.hero-credibility span {
  font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted-2);
}

/* product stage */
.hero-stage {
  position: relative;
  min-height: clamp(368px, 46vw, 476px);
  perspective: 1000px;
}
.hero-shot {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform .55s var(--ease), filter .55s var(--ease);
  will-change: transform;
}
.hero-shot:hover { z-index: 5; }
.hero-shot-frame {
  position: relative;
  width: 100%;
  overflow: visible;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
}
.hero-shot-tagline {
  width: 100%;
  max-width: 15ch;
  margin: 10px 0 0;
  padding: 0 4px;
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(13px, 1.5vw, 17px);
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--text);
  text-align: center;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.hero-shot-arrow {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-top: 8px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(10px);
  font-size: 15px;
  line-height: 1;
  color: var(--text);
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.hero-shot:hover .hero-shot-tagline,
.hero-shot:focus-visible .hero-shot-tagline,
.hero-shot:hover .hero-shot-arrow,
.hero-shot:focus-visible .hero-shot-arrow {
  opacity: 1;
  transform: translateY(0);
}
.hero-shot-frame img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: clamp(314px, 40vw, 402px);
  height: auto;
  margin-inline: auto;
  object-fit: contain;
  padding: 0;
  border-radius: 0;
  transform: none;
  filter: drop-shadow(0 18px 36px rgba(0,0,0,.4));
  transition: filter .65s var(--ease);
}
.hero-shot:hover .hero-shot-frame img {
  transform: none;
  filter: drop-shadow(0 22px 42px rgba(0,0,0,.45));
}

.hero-shot--main {
  width: min(60%, 288px);
  left: 8%;
  top: 10%;
  transform: rotate(-6deg) translate3d(var(--tx, 0px), var(--ty, 0px), 0);
  z-index: 3;
}
.hero-shot--main .hero-shot-frame { aspect-ratio: auto; }
.hero-shot--main:hover {
  transform: rotate(-4deg) translate3d(var(--tx, 0px), calc(var(--ty, 0px) - 6px), 0) scale(1.02);
}

.hero-shot--alt {
  width: min(52%, 250px);
  left: 44%;
  top: 0;
  transform: rotate(7deg) translate3d(var(--tx, 0px), var(--ty, 0px), 0);
  z-index: 2;
}
.hero-shot--alt .hero-shot-frame {
  aspect-ratio: auto;
}
.hero-shot--alt:hover {
  transform: rotate(5deg) translate3d(var(--tx, 0px), calc(var(--ty, 0px) - 6px), 0) scale(1.02);
}

.hero.is-ready .hero-shot--alt .hero-shot-frame {
  animation: float-idle 8s ease-in-out -2.5s infinite;
}

.hero-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.hero-clients { font-size: 14px; color: var(--muted-2); }
.hero-clients b { color: var(--muted); font-weight: 500; }
.hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero.is-ready .hero-shot--main .hero-shot-frame {
  animation: float-idle 8s ease-in-out infinite;
}
.hero.is-ready .hero-shot--alt .hero-shot-frame {
  animation: float-idle 8s ease-in-out -2.5s infinite;
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--text); color: var(--bg);
  padding: 11px 20px; border-radius: 100px;
  font-size: 14px; font-weight: 500;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-2);
}
.btn--ghost:hover {
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  box-shadow: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(224,92,200,.25); }
.btn--ghost:hover { transform: translateY(-1px); }

/* ── marquee ──────────────────────────────────────────────── */
.marquee {
  border-block: 1px solid var(--line);
  padding-block: 12px; margin-block: clamp(8px, 2vw, 20px);
  overflow: hidden; white-space: nowrap;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: inline-flex; gap: 26px; align-items: center;
  animation: scroll 42s linear infinite;
  font-family: "Fraunces", serif; font-size: clamp(20px, 3vw, 32px);
  color: var(--muted);
}
.marquee-track span:nth-child(even) { color: var(--muted-2); }
@keyframes aurora-drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-4%, 6%, 0) scale(1.08); }
}
@keyframes float-idle {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
@keyframes scroll { to { transform: translateX(-50%); } }

/* ── section head ─────────────────────────────────────────── */
.section-head { margin-bottom: 44px; }
.section-head h2 { font-size: clamp(28px, 4vw, 44px); margin: 0 0 10px; letter-spacing: -.02em; }
.section-head p { color: var(--muted); margin: 0; max-width: 48ch; }

/* ── work grid ────────────────────────────────────────────── */
.work {
  padding-top: clamp(48px, 8vw, 88px);
  padding-bottom: clamp(48px, 8vw, 96px);
  border-top: 1px solid var(--line);
}
.work-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(18px, 2.2vw, 30px);
}
.card {
  --accent: #8b5cf6; --accent-2: #d6249f;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px; overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s var(--ease), background .4s var(--ease);
}
.card[hidden] { display: none !important; }
.card--feature { grid-column: span 2; }
.card:hover { transform: translateY(-4px); border-color: var(--line-2); background: var(--bg-soft); }

/* card visual */
.card-visual {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  background:
    radial-gradient(120% 120% at 20% 0%, color-mix(in srgb, var(--accent) 34%, transparent), transparent 60%),
    radial-gradient(120% 120% at 100% 100%, color-mix(in srgb, var(--accent-2) 30%, transparent), transparent 55%),
    #0e0e13;
}
.card--feature .card-visual { aspect-ratio: 21 / 8; }
.card-visual::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(11,11,15,.55));
}
.card:hover .card-visual > * { transform: scale(1.04); }
.card-visual > * { transition: transform .6s var(--ease); }
.card-preview-media {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  z-index: 1;
}
.card-preview-image,
.card-preview-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-preview-video {
  z-index: 1;
  transform: none;
  pointer-events: none;
}
/* Covers Safari's native play icon without breaking autoplay */
.card-preview-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
/* Evento preview — gradient stage only */
.card-visual[data-art="evento"] {
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(237, 210, 154, 0.32) 0%, transparent 52%),
    radial-gradient(110% 90% at 0% 100%, rgba(12, 108, 99, 0.5) 0%, transparent 55%),
    linear-gradient(148deg, #061c1a 0%, #0c4f48 42%, #0e635a 68%, #082e2a 100%);
}
.card-visual[data-art="evento"]::before,
.card-visual[data-art="evento"]::after {
  content: none;
}
.card-visual[data-art="evento"] .card-preview-media {
  transition: transform .7s var(--ease);
}
.card-visual[data-art="evento"] .card-preview-video {
  object-fit: cover;
  object-position: center;
  filter: none;
}
.card:hover .card-visual[data-art="evento"] .card-preview-media {
  transform: scale(1.04);
}

/* Mira preview: zoomed chat UI on a violet stage with logo marks. */
.card-visual[data-art="mira"] {
  background:
    radial-gradient(ellipse 90% 70% at 88% 12%, color-mix(in srgb, #9377e1 30%, transparent), transparent 58%),
    radial-gradient(ellipse 75% 60% at 8% 92%, color-mix(in srgb, var(--accent-2) 24%, transparent), transparent 62%),
    radial-gradient(ellipse 55% 45% at 50% 50%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%),
    linear-gradient(165deg, #1a1428 0%, #0b0b0f 100%);
}
.card-visual[data-art="mira"]::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 32px 32px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, #000 20%, transparent 75%);
  pointer-events: none;
}
.card-visual[data-art="mira"]::after {
  z-index: 2;
  background: linear-gradient(180deg, transparent 42%, rgba(11, 11, 15, 0.62));
}
.mira-card-deco {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.mira-card-logo {
  position: absolute;
  width: clamp(88px, 28%, 148px);
  height: auto;
  opacity: 0.18;
  mix-blend-mode: screen;
  filter: saturate(1.2);
  transition: none;
}
.mira-card-logo--1 {
  left: -10%;
  bottom: -16%;
  transform: rotate(-14deg);
  width: clamp(96px, 30%, 156px);
  opacity: 0.2;
}
.mira-card-logo--2 {
  right: -6%;
  top: -14%;
  transform: rotate(10deg);
  opacity: 0.17;
}
.card-visual[data-art="mira"] > .mira-card-deco {
  transition: none;
  transform: none;
}
.card:hover .card-visual[data-art="mira"] > .mira-card-deco {
  transform: none;
}
.card-visual[data-art="mira"] .card-preview-image {
  z-index: 1;
  object-fit: contain;
  object-position: 50% 100%;
  transform: scale(1.8) translateY(6%);
  transform-origin: 50% 100%;
  padding: 0 clamp(8px, 1.2vw, 14px);
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.45));
  transition: transform 0.7s var(--ease), filter 0.7s var(--ease);
}
.card:hover .card-visual[data-art="mira"] .card-preview-image {
  transform: scale(1.84) translateY(6%);
  filter: drop-shadow(0 22px 40px rgba(0, 0, 0, 0.52));
}

/* InTempo — rhythm stage */
.card-visual[data-art="intempo"] {
  background:
    radial-gradient(ellipse 80% 60% at 50% 110%, color-mix(in srgb, var(--accent-2) 28%, transparent), transparent 58%),
    radial-gradient(ellipse 70% 55% at 20% 0%, color-mix(in srgb, var(--accent) 32%, transparent), transparent 62%),
    linear-gradient(165deg, #16121f 0%, #0b0b0f 100%);
}
.card-visual[data-art="intempo"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.03) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.02) 0 1px, transparent 1px 32px);
  mask-image: radial-gradient(ellipse 85% 75% at 50% 50%, #000 25%, transparent 72%);
  pointer-events: none;
}
.card-visual[data-art="intempo"]::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(11,11,15,.45) 100%);
  pointer-events: none;
}
.card-visual[data-art="intempo"] .art-intempo { z-index: 1; }

/* InTempo card — faded hero sea + zoomed v2 screen overlay */
.art-intempo {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.it-card-sea {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.5;
  filter: saturate(0.92);
}
.it-card-sea canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}
.it-card-screen {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 100%;
  max-width: none;
  height: auto;
  transform: translate(-50%, -50%) scale(1.38);
  transform-origin: center center;
  border-radius: clamp(14px, 2.8vw, 20px);
  box-shadow:
    0 28px 64px rgba(0, 0, 0, 0.58),
    0 0 0 1px rgba(255, 255, 255, 0.09);
  pointer-events: none;
  transition: transform 0.7s var(--ease), box-shadow 0.7s var(--ease);
}
.card:hover .card-visual[data-art="intempo"] .it-card-screen {
  transform: translate(-50%, -50%) scale(1.44);
  box-shadow:
    0 34px 72px rgba(0, 0, 0, 0.62),
    0 0 0 1px rgba(255, 255, 255, 0.12);
}

/* CipherPal — Web3 health stage */
.card-visual[data-art="cipherpal"] {
  background:
    radial-gradient(ellipse 85% 70% at 88% 15%, color-mix(in srgb, var(--accent-2) 30%, transparent), transparent 52%),
    radial-gradient(ellipse 80% 65% at 10% 90%, color-mix(in srgb, var(--accent) 36%, transparent), transparent 55%),
    linear-gradient(155deg, #0e1018 0%, #0a0c12 50%, #120e16 100%);
}
.card-visual[data-art="cipherpal"]::before {
  content: none;
}
.card-visual[data-art="cipherpal"]::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(ellipse 100% 55% at 50% 110%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 62%),
    linear-gradient(180deg, transparent 62%, rgba(0,0,0,.14) 100%);
  pointer-events: none;
}
.card-visual[data-art="cipherpal"] .card-preview-media {
  background: url('assets/cipherpal-dashboard.png') center / cover no-repeat;
  transition: transform .7s var(--ease);
}
.card-visual[data-art="cipherpal"] .card-preview-image,
.card-visual[data-art="cipherpal"] .card-preview-video {
  object-fit: cover;
  object-position: center;
  filter: none;
  z-index: 1;
}
.card:hover .card-visual[data-art="cipherpal"] .card-preview-image,
.card:hover .card-visual[data-art="cipherpal"] .card-preview-media {
  transform: scale(1.04);
}

/* card body */
.card-body { padding: 22px clamp(20px, 2.4vw, 30px) clamp(22px, 2.4vw, 28px); }
.card-tags {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--muted); margin-bottom: 12px;
}
.card-tags > span:first-child {
  letter-spacing: .04em; text-transform: uppercase; font-size: 11.5px;
}
.card-tags .award, .card-tags .new, .card-tags .live,
.card-tags .metric, .card-tags .phd,
.meta-bar .live {
  padding: 3px 10px; border-radius: 100px; font-size: 11.5px;
  border: 1px solid var(--line-2); color: var(--text);
  text-transform: none; letter-spacing: 0;
}
.card-tags .award  { color: #ffd66b; border-color: rgba(255,214,107,.35); }
.card-tags .live, .meta-bar .live { color: #4ade80; border-color: rgba(74,222,128,.35); }
.card-tags .metric { color: #ffb37a; border-color: rgba(255,179,122,.35); }
.card-tags .new    { color: #b79cff; border-color: rgba(183,156,255,.4); }
.card-tags .phd    { color: #8eb4ff; border-color: rgba(142,180,255,.38); }

.card-project {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.card h3 {
  font-size: clamp(20px, 2.4vw, 28px); margin: 0 0 8px;
  letter-spacing: -.02em; line-height: 1.2;
  display: inline-flex; align-items: center; gap: 8px;
}
.card--feature h3 { font-size: clamp(26px, 3.4vw, 40px); }
.card h3 .ext { color: var(--muted); }
.card p { margin: 0 0 18px; color: var(--muted); font-size: 15.5px; max-width: 62ch; }
.card--feature p { font-size: 16.5px; }
.card-foot {
  display: flex; justify-content: space-between; gap: 16px;
  padding-top: 15px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted-2);
}

/* CipherPal — gradient orb */
.art-orb {
  position:absolute; top:50%; left:50%; width:44%; aspect-ratio:1;
  transform:translate(-50%,-50%); border-radius:50%;
  background:
    radial-gradient(circle at 32% 30%, #7aa2ff, transparent 45%),
    conic-gradient(from 210deg, #4f7cff, #9b5cff, #e05cc8, #4f7cff);
  filter: blur(.3px);
  box-shadow: 0 0 60px rgba(120,110,255,.4), inset 0 0 40px rgba(0,0,0,.35);
  animation: spin 18s linear infinite;
}
@keyframes spin { to { transform: translate(-50%,-50%) rotate(360deg); } }

/* Mira — masonry tiles */
.art-mira { position:absolute; inset:14% 20%; display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
.art-mira .tile { border-radius:8px; background:linear-gradient(160deg, color-mix(in srgb,var(--accent) 60%,#000), color-mix(in srgb,var(--accent-2) 60%,#000)); opacity:.9; }
.art-mira .tile:nth-child(2){ transform:translateY(14px) }
.art-mira .tile:nth-child(4){ transform:translateY(-10px) }
.art-mira .tile:nth-child(6){ transform:translateY(12px) }

/* Maya — provenance grid */
.art-maya { position:absolute; inset:0;
  background:
    linear-gradient(90deg, transparent 49%, color-mix(in srgb,var(--accent) 50%,transparent) 50%, transparent 51%) 0 0/40px 40px,
    linear-gradient(0deg, transparent 49%, color-mix(in srgb,var(--accent-2) 40%,transparent) 50%, transparent 51%) 0 0/40px 40px;
  mask-image: radial-gradient(60% 60% at 50% 50%, #000, transparent);
}

/* Evento — overlapping event chips */
.art-evento { position:absolute; inset:0; }
.art-evento::before, .art-evento::after {
  content:""; position:absolute; width:46%; aspect-ratio:1.6; border-radius:16px;
  border:1px solid rgba(255,255,255,.18);
  background: linear-gradient(140deg, color-mix(in srgb,var(--accent) 45%,#000), transparent);
}
.art-evento::before { left:20%; top:24%; }
.art-evento::after  { left:38%; top:40%; background: linear-gradient(140deg, color-mix(in srgb,var(--accent-2) 45%,#000), transparent); }

/* Claire — pulse line */
.art-claire { position:absolute; inset:0;
  background:
    radial-gradient(circle at 50% 50%, color-mix(in srgb,var(--accent) 30%,transparent), transparent 60%);
}
.art-claire::after {
  content:""; position:absolute; left:0; right:0; top:50%; height:2px;
  background: linear-gradient(90deg, transparent, var(--accent) 40%, var(--accent-2) 60%, transparent);
  clip-path: polygon(0 50%,30% 50%,34% 0,40% 100%,46% 20%,52% 50%,100% 50%,100% 55%,0 55%);
}

/* Taxi — road */
.art-taxi { position:absolute; inset:0;
  background: linear-gradient(180deg, color-mix(in srgb,var(--accent) 22%,#000), #0e0e13);
}
.art-taxi::after {
  content:""; position:absolute; left:50%; bottom:0; top:30%;
  width:24%; transform:translateX(-50%);
  background:
    linear-gradient(90deg, transparent 45%, rgba(255,255,255,.5) 45%, rgba(255,255,255,.5) 55%, transparent 55%) 0 0/100% 60px;
  clip-path: polygon(38% 0, 62% 0, 100% 100%, 0 100%);
  opacity:.55;
}

/* ── about ────────────────────────────────────────────────── */
.about { padding-block: clamp(56px, 9vw, 110px); border-top: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 80px); }
.about-lead h2 { font-size: clamp(28px, 4vw, 44px); margin: 0 0 22px; letter-spacing: -.02em; }
.about-lead p { color: var(--muted); margin: 0 0 18px; font-size: 17px; }
.about-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; align-content: start; }
.about-block h3 {
  font-family: "Inter", sans-serif; font-size: 12px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2);
  margin: 0 0 12px;
}
.about-block ul { list-style: none; margin: 0; padding: 0; }
.about-block li { padding: 5px 0; color: var(--muted); font-size: 15.5px; border-bottom: 1px solid var(--line); }
.about-block li b { color: var(--text); font-weight: 600; }

/* ── research ─────────────────────────────────────────────── */
.research {
  padding-block: clamp(48px, 8vw, 88px);
  border-top: 1px solid var(--line);
}
.research-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2vw, 24px);
}
.research-paper {
  padding: clamp(18px, 2.2vw, 24px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.research-paper:hover { border-color: var(--line-2); background: var(--bg-soft); }
.research-year {
  display: inline-block; font-size: 12px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted-2); margin-bottom: 10px;
}
.research-paper h3 {
  font-family: "Inter", sans-serif; font-size: 15.5px; font-weight: 500;
  line-height: 1.45; margin: 0 0 8px; letter-spacing: 0;
}
.research-paper h3 a {
  color: var(--text);
  transition: color .2s var(--ease);
}
.research-paper h3 a:hover { color: #e05cc8; }
.research-meta { margin: 0; font-size: 13px; color: var(--muted-2); }
.research-more { margin: 28px 0 0; font-size: 15px; }
.research-more a {
  color: var(--muted);
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 2px;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.research-more a:hover { color: var(--text); border-color: var(--text); }

/* ── contact ──────────────────────────────────────────────── */
.contact { text-align: center; padding-block: clamp(72px, 12vw, 150px); border-top: 1px solid var(--line); }
.contact h2 { font-size: clamp(28px, 5.5vw, 62px); letter-spacing: -.02em; margin: 0 0 28px; line-height: 1.08; }
.mail {
  display: inline-block; font-family: "Fraunces", serif;
  font-size: clamp(18px, 2.6vw, 26px);
  border-bottom: 1px solid var(--line-2); padding-bottom: 4px;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.mail:hover { color: #e05cc8; border-color: #e05cc8; }

/* ── footer ───────────────────────────────────────────────── */
.site-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: 26px clamp(20px, 6vw, 72px);
  border-top: 1px solid var(--line);
  font-size: 13.5px; color: var(--muted-2);
}
.foot-links { display: flex; gap: 22px; }
.foot-links a:hover { color: var(--text); }

/* ── reveal on scroll ─────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

.hero .reveal { transform: translateY(32px); }
.hero .hero-stage.reveal { transform: translateY(40px) scale(.97); }
.hero.is-ready .reveal { opacity: 1; transform: none; }
.hero.is-ready .hero-copy .eyebrow { transition-delay: .06s; }
.hero.is-ready .hero-copy .hero-title { transition-delay: .14s; }
.hero.is-ready .hero-copy .hero-sub { transition-delay: .22s; }
.hero.is-ready .hero-copy .hero-credibility { transition-delay: .3s; }
.hero.is-ready .hero-copy .hero-meta { transition-delay: .38s; }
.hero.is-ready .hero-stage { transition-delay: .18s; }

/* ── responsive ───────────────────────────────────────────── */
@media (max-width: 980px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: clamp(32px, 5.5vw, 44px);
  }
  .hero {
    padding-block: clamp(14px, 3vw, 24px) clamp(28px, 4vw, 44px);
  }
  .hero-stage {
    order: -1;
    min-height: clamp(284px, 56vw, 376px);
    margin-bottom: 8px;
  }
  .hero-shot-frame img {
    max-height: clamp(262px, 54vw, 332px);
  }
  .hero-title { max-width: none; }
}
@media (max-width: 820px) {
  .work-grid { grid-template-columns: 1fr; }
  .card--feature, .card--feature .card-visual { grid-column: auto; }
  .card--feature .card-visual { aspect-ratio: 16/9; }
  .research-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero {
    padding-block: 12px 28px;
  }
  .hero-layout { gap: 36px; }
  .eyebrow {
    font-size: 11px;
    letter-spacing: .16em;
    margin-bottom: 12px;
  }
  .hero-title {
    font-size: clamp(26px, 7vw, 32px);
    line-height: 1.08;
    margin-bottom: 12px;
  }
  .hero-sub {
    font-size: 15px;
    line-height: 1.55;
    margin-bottom: 14px;
  }
  .hero-credibility {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin-bottom: 16px;
  }
  .hero-credibility li {
    flex: 1 1 0;
    min-width: 0;
    padding: 8px 10px;
    border-radius: 11px;
  }
  .hero-credibility strong { font-size: 17px; }
  .hero-credibility span {
    font-size: 10px;
    letter-spacing: .05em;
  }
  .hero-stage { min-height: 260px; margin-bottom: 6px; }
  .hero-shot--main { width: 50%; left: 6%; top: 10%; }
  .hero-shot--alt { width: 44%; left: 42%; top: 2%; }
  .hero-shot-frame img { max-height: 250px; }
  .hero-meta { gap: 12px; }
  .hero-clients { font-size: 13px; line-height: 1.4; }
  .hero-actions { gap: 10px; width: 100%; }
  .hero-actions .btn {
    flex: 1;
    justify-content: center;
    padding: 10px 16px;
    font-size: 14px;
  }
}
@media (max-width: 768px) {
  .site-header { gap: 10px; }
  .site-header__end { gap: 0; }
  .nav-toggle { display: inline-grid; place-items: center; }
  .nav-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: clamp(20px, 6vw, 72px);
    right: auto;
    min-width: 168px;
    padding: 6px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    justify-self: auto;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(14px);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, .38);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
    z-index: 60;
  }
  .site-header.is-open .nav-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }
  .nav-menu a {
    padding: 10px 12px;
    border-radius: 8px;
  }
  .nav-menu a.is-active {
    box-shadow: none;
    color: var(--text);
    background: color-mix(in srgb, var(--surface) 88%, var(--text));
  }
  .nav-cta { padding: 7px 12px; font-size: 14px; }
}
@media (max-width: 480px) {
  .hero-stage { min-height: 240px; }
  .hero-shot-frame img { max-height: 228px; }
  .about-cols { grid-template-columns: 1fr; }
}

/* ── cookie consent ───────────────────────────────────────── */
.cookie-consent {
  position: fixed;
  bottom: clamp(18px, 4vw, 28px);
  right: clamp(18px, 4vw, 28px);
  z-index: 100;
  width: min(340px, calc(100vw - 36px));
  padding: 14px 16px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .42);
  animation: cookie-in .55s var(--ease) both;
}
.cookie-consent.is-closing {
  animation: cookie-out .35s var(--ease) forwards;
}
.cookie-consent__eyebrow {
  margin: 0 0 4px;
  font-family: "Fraunces", Georgia, serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--text);
}
.cookie-consent__text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
}
.cookie-consent__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 10px;
}
.cookie-consent__decline {
  appearance: none;
  background: none;
  border: none;
  padding: 6px 10px;
  font: inherit;
  font-size: 13px;
  color: var(--muted-2);
  cursor: pointer;
  border-radius: 100px;
  transition: color .2s var(--ease);
}
.cookie-consent__decline:hover { color: var(--text); }
.cookie-consent__accept {
  appearance: none;
  border: none;
  background: var(--text);
  color: var(--bg);
  padding: 6px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  border-radius: 100px;
  cursor: pointer;
  transition: opacity .2s var(--ease);
}
.cookie-consent__accept:hover { opacity: .88; }
.cookie-consent__accept:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--text) 40%, transparent);
  outline-offset: 2px;
}
@keyframes cookie-in {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
@keyframes cookie-out {
  from { opacity: 1; transform: none; }
  to   { opacity: 0; transform: translateY(8px) scale(.98); }
}
@media (max-width: 480px) {
  .cookie-consent {
    left: 18px;
    right: 18px;
    width: auto;
  }
}

/* ── reduced motion ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal, .hero .reveal { opacity: 1; transform: none; }
  .cookie-consent { animation: none; }
  .cookie-consent.is-closing { opacity: 0; }
}
