/* ==========================================================================
   home — dark single-page landing (vanilla port of a React/Tailwind spec)
   Fonts: Inter (body) + DM Serif Display (display) — both self-hosted in
   /fonts/fonts.css. Instrument Serif is not in the repo; DM Serif Display is
   the closest self-hosted serif and is rendered oblique for the italic role.
   ========================================================================== */

:root {
  --bg: hsl(0 0% 4%);
  --surface: hsl(0 0% 8%);
  --text: hsl(0 0% 96%);
  --muted: hsl(0 0% 53%);
  --stroke: hsl(0 0% 12%);
  --accent: hsl(0 0% 96%);
  --accent-a: #89aacc;
  --accent-b: #4e85bf;
  --accent-gradient: linear-gradient(90deg, var(--accent-a) 0%, var(--accent-b) 100%);
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'DM Serif Display', 'Instrument Serif', Georgia, serif;
  --ease-out: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-power3: cubic-bezier(0.215, 0.61, 0.355, 1);
  --radius-pill: 999px;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

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

.font-display { font-family: var(--font-display); }
.italic { font-style: italic; }
.display-italic { font-family: var(--font-display); font-style: italic; font-weight: 400; }

.accent-gradient { background: var(--accent-gradient); }

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) { .container { padding: 0 40px; } }
@media (min-width: 1024px) { .container { padding: 0 64px; } }

/* --------------------------------------------------------------------------
   Keyframes
   -------------------------------------------------------------------------- */
@keyframes scroll-down {
  from { transform: translateY(-100%); }
  to { transform: translateY(200%); }
}
@keyframes role-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}
@keyframes ping {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(2.4); opacity: 0; }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes loader-word-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes loader-word-out {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-20px); }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-scroll-down { animation: scroll-down 1.5s ease-in-out infinite; }
.animate-role-fade-in { animation: role-fade-in 0.4s ease-out; }

/* --------------------------------------------------------------------------
   Gradient-ring buttons (shared by nav "Say hi", hero CTAs, section buttons)
   -------------------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.3s var(--ease-out), background-color 0.3s, color 0.3s, border-color 0.3s;
  isolation: isolate;
}
.btn .btn-ring {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: var(--accent-gradient);
  background-size: 200% 200%;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  /* Paint only the 2px ring: mask out the content box so the button's own
     background stays visible underneath. */
  padding: 2px;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}
.btn:hover .btn-ring,
.btn:focus-visible .btn-ring { opacity: 1; animation: gradient-shift 6s ease infinite; }
.btn:focus-visible { outline: 2px solid var(--accent-a); outline-offset: 3px; }

.btn-lg { padding: 14px 28px; }
.btn-lg:hover { transform: scale(1.05); }

.btn-solid { background: var(--text); color: var(--bg); }
.btn-solid:hover { background: var(--bg); color: var(--text); }

.btn-outline { background: var(--bg); color: var(--text); border: 2px solid var(--stroke); }
.btn-outline:hover { border-color: transparent; }

.btn-sm {
  padding: 10px 18px;
  font-size: 13px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--stroke);
}
.btn-sm:hover { border-color: transparent; }

.btn .arrow { transition: transform 0.3s var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }
.btn:hover .arrow-diag { transform: translate(2px, -2px); }

/* --------------------------------------------------------------------------
   Loading screen
   -------------------------------------------------------------------------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  color: var(--text);
  transition: opacity 0.6s var(--ease-out), visibility 0.6s;
}
.loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-label {
  position: absolute;
  top: 32px;
  left: 32px;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  animation: fade-up 0.8s var(--ease-out) both;
}
.loader-word-wrap {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.loader-word {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  line-height: 1;
  color: hsl(0 0% 96% / 0.8);
  animation: loader-word-in 0.4s var(--ease-out) both;
}
.loader-word.is-leaving { animation: loader-word-out 0.3s var(--ease-out) both; }

.loader-count {
  position: absolute;
  right: 32px;
  bottom: 40px;
  font-family: var(--font-display);
  font-size: clamp(3.75rem, 12vw, 8rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.loader-bar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: hsl(0 0% 12% / 0.5);
}
.loader-bar-fill {
  height: 100%;
  width: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: var(--accent-gradient);
  box-shadow: 0 0 8px rgba(137, 170, 204, 0.35);
}

/* --------------------------------------------------------------------------
   Navbar
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 16px 16px 0;
  pointer-events: none;
}
@media (min-width: 768px) { .nav { padding-top: 24px; } }

.nav-pill {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 8px;
  border-radius: var(--radius-pill);
  border: 1px solid hsl(0 0% 100% / 0.1);
  background: hsl(0 0% 8% / 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow 0.3s;
}
.nav-pill.is-scrolled { box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); }

.nav-logo {
  position: relative;
  width: 36px; height: 36px;
  border-radius: 50%;
  padding: 2px;
  background: var(--accent-gradient);
  display: grid;
  place-items: center;
  transition: transform 0.3s var(--ease-out), background 0.3s;
}
.nav-logo:hover { transform: scale(1.1); background: linear-gradient(270deg, var(--accent-a) 0%, var(--accent-b) 100%); }
.nav-logo span {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: var(--bg);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  color: var(--text);
}

.nav-divider { width: 1px; height: 20px; background: var(--stroke); margin: 0 4px; display: none; }
@media (min-width: 640px) { .nav-divider { display: block; } }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-link {
  display: inline-block;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  color: var(--muted);
  transition: color 0.2s, background-color 0.2s;
}
.nav-link:hover { color: var(--text); background: hsl(0 0% 12% / 0.5); }
.nav-link.is-active { color: var(--text); background: hsl(0 0% 12% / 0.5); }
@media (min-width: 640px) { .nav-link { font-size: 14px; padding: 8px 16px; } }

.nav-cta {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  background: hsl(0 0% 8%);
  backdrop-filter: blur(12px);
}
@media (min-width: 640px) { .nav-cta { font-size: 14px; padding: 8px 16px; } }
/* Four labels + logo must fit a 360px phone: tighten, and let the hero's own
   "Reach out…" button stand in for the nav CTA. */
@media (max-width: 479px) {
  .nav-pill { padding: 6px; }
  .nav-link { padding: 6px 9px; font-size: 11.5px; letter-spacing: -0.01em; }
  .nav-cta { display: none; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.bg-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}
.bg-media canvas {
  position: absolute;
  top: 50%; left: 50%;
  min-width: 100%; min-height: 100%;
  width: 100%; height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
}
.bg-media.is-flipped canvas { transform: translate(-50%, -50%) scaleY(-1); }
/* Video loop sits above the aurora canvas and fades in once it can play. */
.bg-media .bg-video {
  position: absolute;
  top: 50%; left: 50%;
  min-width: 100%; min-height: 100%;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 1.2s var(--ease-out);
}
.bg-media.is-flipped .bg-video { transform: translate(-50%, -50%) scaleY(-1); }
.bg-media.is-video-ready .bg-video { opacity: 1; }
.bg-overlay { position: absolute; inset: 0; background: rgb(0 0 0 / 0.2); }
/* The DNA loop is bright and busy: darken the centre behind the hero copy. */
.hero .bg-overlay {
  background:
    radial-gradient(ellipse 60% 55% at 50% 52%, rgb(0 0 0 / 0.62), rgb(0 0 0 / 0.30) 70%, rgb(0 0 0 / 0.18) 100%),
    rgb(0 0 0 / 0.22);
}
.bg-overlay.is-heavy { background: rgb(0 0 0 / 0.72); }
.hero-content { text-shadow: 0 2px 24px rgb(0 0 0 / 0.55); }
.bg-fade {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 192px;
  background: linear-gradient(to top, var(--bg), transparent);
}

.hero-content {
  position: relative;
  z-index: 10;
  padding: 120px 24px 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-eyebrow {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  margin-bottom: 32px;
}
.hero-name {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(3.75rem, 11vw, 8rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--text);
}
.hero-role {
  margin: 0 0 16px;
  font-size: clamp(1.125rem, 2.2vw, 1.5rem);
  color: hsl(0 0% 78%);
}
.hero-role .role {
  display: inline-block;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--text);
}
.hero-desc {
  margin: 0 0 48px;
  max-width: 28rem;
  font-size: 14px;
  color: hsl(0 0% 72%);
}
@media (min-width: 768px) { .hero-desc { font-size: 16px; } }

.hero-ctas { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 16px; }

/* Entrance states — JS adds .is-in on the hero after the loader finishes */
.name-reveal { opacity: 0; transform: translateY(50px); }
.blur-in { opacity: 0; filter: blur(10px); transform: translateY(20px); }
.hero.is-in .name-reveal {
  transition: opacity 1.2s var(--ease-power3) 0.1s, transform 1.2s var(--ease-power3) 0.1s;
  opacity: 1; transform: none;
}
.hero.is-in .blur-in {
  transition: opacity 1s var(--ease-power3), filter 1s var(--ease-power3), transform 1s var(--ease-power3);
  transition-delay: calc(0.3s + var(--i, 0) * 0.1s);
  opacity: 1; filter: blur(0); transform: none;
}

.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.2em;
}
.scroll-line {
  position: relative;
  width: 1px; height: 40px;
  background: var(--stroke);
  overflow: hidden;
}
.scroll-line span {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, var(--text), transparent);
}

/* --------------------------------------------------------------------------
   Section headers
   -------------------------------------------------------------------------- */
.section { background: var(--bg); }
.section-works { padding: 48px 0; }
.section-journal { padding: 64px 0; }
.section-stats { padding: 64px 0; }
@media (min-width: 768px) {
  .section-works { padding: 64px 0; }
  .section-journal, .section-stats { padding: 96px 0; }
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}
@media (min-width: 768px) {
  .section-head { flex-direction: row; align-items: flex-end; justify-content: space-between; margin-bottom: 48px; }
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 32px; height: 1px; background: var(--stroke); }
.section-title {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.section-sub { margin: 0; max-width: 32rem; color: var(--muted); font-size: 15px; }
.section-head .btn-sm { display: none; }
@media (min-width: 768px) { .section-head .btn-sm { display: inline-flex; } }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Selected works — bento grid
   -------------------------------------------------------------------------- */
.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 768px) {
  .bento { grid-template-columns: repeat(12, 1fr); gap: 24px; }
  .bento .span-7 { grid-column: span 7; }
  .bento .span-5 { grid-column: span 5; }
}

.card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--stroke);
  background: var(--surface);
  aspect-ratio: 4 / 3;
  isolation: isolate;
}
@media (min-width: 768px) {
  .card.span-7 { aspect-ratio: 16 / 10; }
  .card.span-5 { aspect-ratio: auto; height: 100%; }
}
.card img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}
.card:hover img { transform: scale(1.05); }
.card-halftone {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, #000 1px, transparent 1px);
  background-size: 4px 4px;
  opacity: 0.2;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.card-veil {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: hsl(0 0% 4% / 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}
.card:hover .card-veil, .card:focus-visible .card-veil { opacity: 1; }
.card-label {
  position: relative;
  padding: 2px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--accent-a), var(--accent-b), var(--accent-a));
  background-size: 200% 200%;
  animation: gradient-shift 6s ease infinite;
  transform: translateY(8px);
  transition: transform 0.4s var(--ease-out);
}
.card:hover .card-label { transform: none; }
.card-label span {
  display: block;
  padding: 10px 20px;
  border-radius: inherit;
  background: #fff;
  color: #0a0a0a;
  font-size: 14px;
}
.card-scrim {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 45%;
  background: linear-gradient(to top, rgb(0 0 0 / 0.72), rgb(0 0 0 / 0));
  pointer-events: none;
  transition: opacity 0.3s;
}
.card:hover .card-scrim { opacity: 0; }
.card-meta {
  position: absolute;
  left: 20px; bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: #fff;
  text-shadow: 0 1px 12px rgb(0 0 0 / 0.6);
  transition: opacity 0.3s;
}
.card:hover .card-meta { opacity: 0; }
.card-meta strong { font-weight: 500; font-size: 15px; }
.card-meta small { font-size: 12px; color: hsl(0 0% 100% / 0.7); }

/* --------------------------------------------------------------------------
   AI in practice
   -------------------------------------------------------------------------- */
.section-ai { padding: 64px 0; }
@media (min-width: 768px) { .section-ai { padding: 96px 0; } }
.ai-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 768px) { .ai-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.ai-card {
  position: relative;
  padding: 28px 24px 24px;
  border-radius: 24px;
  border: 1px solid var(--stroke);
  background: hsl(0 0% 8% / 0.4);
  transition: background-color 0.3s, border-color 0.3s, transform 0.3s var(--ease-out);
}
.ai-card:hover { background: var(--surface); border-color: hsl(0 0% 20%); transform: translateY(-3px); }
.ai-index {
  display: inline-block;
  margin-bottom: 22px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 28px;
  line-height: 1;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ai-card h3 { margin: 0 0 10px; font-size: 19px; font-weight: 500; letter-spacing: -0.01em; }
.ai-card p { margin: 0 0 18px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.ai-card small { font-size: 11px; color: hsl(0 0% 40%); text-transform: uppercase; letter-spacing: 0.14em; }
.ai-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  margin-top: 24px;
  padding: 18px 24px;
  border-radius: 40px;
  border: 1px solid var(--stroke);
  font-size: 13px;
  color: var(--muted);
}
.ai-tools-label { font-size: 11px; color: var(--text); text-transform: uppercase; letter-spacing: 0.2em; }
.ai-cert { margin-left: auto; color: hsl(0 0% 70%); }
@media (max-width: 767px) { .ai-tools { border-radius: 24px; } .ai-cert { margin-left: 0; } }

/* --------------------------------------------------------------------------
   Journal pills
   -------------------------------------------------------------------------- */
.journal-list { display: flex; flex-direction: column; gap: 16px; }
.journal-item {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px;
  border-radius: 40px;
  border: 1px solid var(--stroke);
  background: hsl(0 0% 8% / 0.3);
  transition: background-color 0.3s, border-color 0.3s, transform 0.3s var(--ease-out);
}
@media (min-width: 640px) { .journal-item { border-radius: var(--radius-pill); } }
.journal-item:hover { background: var(--surface); transform: translateX(4px); }
.journal-thumb {
  flex: 0 0 auto;
  width: 72px; height: 72px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--stroke);
}
@media (min-width: 640px) { .journal-thumb { width: 88px; height: 88px; } }
.journal-thumb img { width: 100%; height: 100%; object-fit: cover; }
.journal-body { flex: 1 1 auto; min-width: 0; }
.journal-title { margin: 0 0 6px; font-size: 17px; font-weight: 500; }
@media (min-width: 640px) { .journal-title { font-size: 20px; } }
.journal-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; }
.journal-arrow { flex: 0 0 auto; color: var(--muted); font-size: 20px; padding-right: 12px; transition: transform 0.3s var(--ease-out), color 0.3s; }
.journal-item:hover .journal-arrow { color: var(--text); transform: translate(3px, -3px); }

/* --------------------------------------------------------------------------
   Explorations — sticky centre + parallax columns
   -------------------------------------------------------------------------- */
.explore {
  position: relative;
  min-height: 300vh;
  background: var(--bg);
}
.explore-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  z-index: 10;
  display: grid;
  place-items: center;
  text-align: center;
  pointer-events: none;
}
.explore-pin > * { pointer-events: auto; }
.explore-pin .eyebrow { justify-content: center; }
.explore-pin .section-sub { margin: 0 auto 28px; }

.explore-layer {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
}
.explore-cols {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20vh 24px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
@media (min-width: 768px) { .explore-cols { gap: 160px; padding-top: 25vh; } }
.explore-col { display: flex; flex-direction: column; gap: 32vh; will-change: transform; }
.explore-col:nth-child(1) { align-items: flex-start; }
.explore-col:nth-child(2) { align-items: flex-end; padding-top: 40vh; }

.explore-card {
  pointer-events: auto;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: var(--surface);
  box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.8);
  transform: rotate(var(--rot, 0deg));
  transition: transform 0.5s var(--ease-out), border-color 0.3s;
}
.explore-card:hover { transform: rotate(0deg) scale(1.03); border-color: var(--accent-b); }
.explore-card img { width: 100%; height: 100%; object-fit: cover; }

/* On small screens there is no room for a pinned block with cards drifting past
   it (whichever is on top blocks the other), so the section falls back to normal
   flow: intro first, then a plain two-column grid of tappable cards.
   (Must come after the rules above so it overrides them.) */
@media (max-width: 767px) {
  .explore { min-height: 0; padding: 64px 0 24px; }
  .explore-pin { position: static; height: auto; display: block; text-align: center; padding: 0 24px; }
  .explore-layer { position: static; }
  .explore-cols { padding: 40px 24px 0; gap: 16px; }
  .explore-col { gap: 16px; padding-top: 0; align-items: stretch; transform: none !important; }
  .explore-card, .explore-card:hover { max-width: none; transform: none; }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgb(0 0 0 / 0.85);
  backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: min(100%, 1100px);
  max-height: 88vh;
  object-fit: contain;
  border-radius: 12px;
  transform: scale(0.96);
  transition: transform 0.3s var(--ease-out);
}
.lightbox.is-open img { transform: scale(1); }
.lightbox-close {
  position: absolute;
  top: 20px; right: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid hsl(0 0% 100% / 0.15);
  background: var(--surface);
  color: var(--text);
  font-size: 20px;
  display: grid;
  place-items: center;
}

/* --------------------------------------------------------------------------
   Stats
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  border-top: 1px solid var(--stroke);
  padding-top: 48px;
}
@media (min-width: 640px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat { text-align: center; padding: 24px 12px; }
.stat-value {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5rem);
  line-height: 1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.stat-label { margin-top: 12px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.2em; }
.stat-note { margin-top: 6px; font-size: 12px; color: hsl(0 0% 40%); }

/* --------------------------------------------------------------------------
   Contact / footer
   -------------------------------------------------------------------------- */
.contact {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  padding: 64px 0 32px;
}
@media (min-width: 768px) { .contact { padding: 80px 0 48px; } }
.contact-inner { position: relative; z-index: 10; }

.marquee {
  overflow: hidden;
  white-space: nowrap;
  margin-bottom: 48px;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: inline-flex;
  animation: marquee 40s linear infinite;
  will-change: transform;
}
.marquee-track span {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  line-height: 1;
  letter-spacing: 0.02em;
  padding-right: 0.4em;
  color: hsl(0 0% 96% / 0.9);
}

.contact-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  padding: 24px 0 72px;
}
.contact-cta h2 { margin: 0; font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 400; letter-spacing: -0.02em; }
.contact-cta p { margin: 0; color: var(--muted); max-width: 30rem; }

.footer-bar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid hsl(0 0% 100% / 0.08);
  font-size: 13px;
  color: var(--muted);
}
@media (min-width: 768px) { .footer-bar { flex-direction: row; justify-content: space-between; } }
.footer-social { display: flex; gap: 20px; }
.footer-social a { transition: color 0.2s; }
.footer-social a:hover { color: var(--text); }
.status { display: inline-flex; align-items: center; gap: 10px; }
.status-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #34d399; animation: pulse-dot 2s ease-in-out infinite; }
.status-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #34d399; animation: ping 2s ease-out infinite; }
.footer-copy { font-size: 12px; color: hsl(0 0% 40%); }

/* --------------------------------------------------------------------------
   Page transition veil (fade on leaving to another route, fade in on arrival)
   -------------------------------------------------------------------------- */
.page-veil {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: var(--bg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out), visibility 0.4s;
}
body.is-leaving .page-veil { opacity: 1; visibility: visible; pointer-events: auto; }

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  .name-reveal, .blur-in, .reveal { opacity: 1; transform: none; filter: none; }
  .explore-col { transform: none !important; }
}
