/* ── Self-hosted General Sans (variable font — covers all weights) ── */
@font-face {
  font-family: 'General Sans';
  src: url('./fonts/GeneralSans-Variable.woff2') format('woff2'),
       url('./fonts/GeneralSans-Variable.woff')  format('woff');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'General Sans';
  src: url('./fonts/GeneralSans-VariableItalic.woff2') format('woff2'),
       url('./fonts/GeneralSans-VariableItalic.woff')  format('woff');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* ── Google Fonts: Roboto for body text ── */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600&display=swap');

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

/* ── Screen-reader only (visually hidden but accessible + indexed) ── */
.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;
}

:root {
  --black: #161518;
  --white: #ffffff;
  --green: #c7d59f;
  --dark-card: #282826;
  --muted: #b9b9ba;
  --content-width: 1200px;
  /* auto-centers 1200px content; collapses to 20px on small viewports */
  --side-pad: clamp(20px, calc((100vw - var(--content-width)) / 2), 500px);
}

html, body {
  background: var(--black);
  color: var(--white);
  font-family: 'Roboto', sans-serif;
  min-height: 100vh;
  overflow-x: clip; /* clip doesn't create a scroll container — hidden does and breaks position:sticky */
}

/* ── HEADER ── */
.header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 40px var(--side-pad);
}

/* Shared header behavior: stays out of the way while reading and returns on scroll-up. */
.header.site-header-solid {
  background: var(--black);
}

.header.site-header-autohide {
  position: sticky;
  top: 0;
  z-index: 1200;
  animation: none;
  transform: translateY(0);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.header.site-header-autohide.is-header-hidden {
  transform: translateY(-100%);
}

body.header-is-hidden .sp-sidebar {
  top: 24px;
}

@media (prefers-reduced-motion: reduce) {
  .header.site-header-autohide { transition: none; }
}

.nav {
  display: flex;
  gap: 40px;
  align-items: center;
}

.nav-link {
  color: var(--muted);
  font-size: 16px;
  font-weight: 400;
  text-decoration: none;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--white); }

.logo-dot {
  width: 20px;
  height: 20px;
  background: var(--green);
  border-radius: 5px;
  flex-shrink: 0;
  cursor: pointer;
  transform-origin: center;
  display: block;        /* works whether div or <a> */
  text-decoration: none; /* reset if used as <a> */
}
.logo-dot:hover {
  animation: box-jump 0.85s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.header-right {
  display: flex;
  justify-content: flex-end;
}

.btn-dark {
  background: var(--dark-card);
  color: var(--white);
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  height: 48px;
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.btn-dark:hover { background: #333330; }
.btn-dark:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }

.email-toast {
  position: fixed;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  z-index: 20000;
  max-width: calc(100vw - 32px);
  padding: 10px 16px;
  border: none;
  border-radius: 12px;
  background: var(--white);
  color: var(--black);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  font-size: 14px;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 8px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}
.email-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) {
  .email-toast { transition: none; }
}

/* ── HERO ── */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px var(--side-pad) 80px;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
  width: 100%;
  max-width: var(--content-width);
}

.hero-name {
  color: var(--muted);
  font-size: 18px;
  font-weight: 400;
  text-align: center;
  line-height: 1.5;
}

.hero-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding-bottom: 4px;
}

.heading-top {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin-bottom: -4px;
  position: relative;
  z-index: 2; /* sits above .heading-bottom so icon labels are never buried */
}

.heading-text {
  font-family: 'General Sans', 'DM Sans', 'Inter', sans-serif;
  font-size: clamp(28px, 3.5vw, 64px);
  font-weight: 500;
  line-height: 1.1;
  color: var(--white);
  white-space: nowrap;
}

.heading-bottom {
  font-family: 'General Sans', 'DM Sans', 'Inter', sans-serif;
  font-size: clamp(28px, 3.5vw, 64px);
  font-weight: 500;
  line-height: 1.1;
  color: var(--white);
  text-align: center;
  width: 100%;
}

/* ── Icon badges ── */
.heading-icons {
  display: flex;
  align-items: center;
  padding-right: 25.6px;
  position: relative;
  z-index: 30; /* sits above heading text so labels are never buried */
}

.icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  cursor: pointer;
}

.icon-wrap--1 { width: 67.7px; height: 67.7px; margin-right: -25.6px; z-index: 3; }
.icon-wrap--2 { width: 71.1px; height: 71.1px; margin-right: -25.6px; z-index: 2; }
.icon-wrap--3 { width: 64px;   height: 64px;   margin-right: -25.6px; z-index: 1; }
.icon-wrap:hover { z-index: 100; }

/* Label below icon */
.icon-label {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: var(--white);
  color: var(--black);
  border-radius: 20px;
  padding: 5px 13px;
  font-family: 'Roboto', sans-serif;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.21s ease, transform 0.21s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
  z-index: 200;
}
.icon-wrap:hover .icon-label {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Base badge */
.icon-badge {
  width: 60px;
  height: 60px;
  border-radius: 34.3px;
  position: relative;
  flex-shrink: 0;
  transition: transform 0.23s ease;
}

/* Figma — black circle, border, sprite-cropped logo */
.icon-badge--figma {
  background: #000;
  border: 0.8px solid rgba(255,255,255,0.2);
  overflow: hidden;
  transform: rotate(-8deg);
}
.icon-wrap--1:hover .icon-badge--figma { transform: rotate(-8deg) scale(1.15); }

.icon-inner-figma {
  position: absolute;
  left: 2.37px;
  top: 2.37px;
  width: 55.217px;
  height: 55.217px;
  overflow: hidden;
  pointer-events: none;
}
.icon-inner-figma-clip {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.icon-inner-figma-clip img {
  position: absolute;
  left: -33.33%;
  top: -33.33%;
  width: 166.67%;
  height: 166.67%;
  max-width: none;
}

/* Codex — no background, full image */
.icon-badge--codex {
  border-radius: 50%;
  overflow: hidden;
  transform: rotate(12deg);
}
.icon-wrap--2:hover .icon-badge--codex { transform: rotate(12deg) scale(1.15); }

.icon-badge--codex img {
  position: absolute;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
}

/* Webflow — blue circle, image covers */
.icon-badge--webflow {
  background: #146ef5;
  overflow: hidden;
  transform: rotate(4deg);
}
.icon-wrap--3:hover .icon-badge--webflow { transform: rotate(4deg) scale(1.15); }

.icon-inner-webflow {
  position: absolute;
  left: 2.67px;
  top: 0.05px;
  width: 60px;
  height: 60px;
}
.icon-inner-webflow img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: none;
  pointer-events: none;
}

/* ── Custom I-beam cursors ──
   Green over white text, white over the underlined green spans
─────────────────────────────────────────── */
:root {
  --cursor-green: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='20'%3E%3Cline x1='2' y1='1' x2='10' y2='1' stroke='%23c7d59f' stroke-width='2' stroke-linecap='round'/%3E%3Cline x1='6' y1='1' x2='6' y2='19' stroke='%23c7d59f' stroke-width='2'/%3E%3Cline x1='2' y1='19' x2='10' y2='19' stroke='%23c7d59f' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") 6 10, text;
  --cursor-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='20'%3E%3Cline x1='2' y1='1' x2='10' y2='1' stroke='%23ffffff' stroke-width='2' stroke-linecap='round'/%3E%3Cline x1='6' y1='1' x2='6' y2='19' stroke='%23ffffff' stroke-width='2'/%3E%3Cline x1='2' y1='19' x2='10' y2='19' stroke='%23ffffff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") 6 10, text;
}

/* Green I-beam on all white text in hero + about sections */
.hero-name,
.heading-text,
.heading-bottom,
.hero-sub,
.about-text {
  cursor: var(--cursor-green);
}

/* White I-beam on the underlined green spans */
.about-green,
.gif-trigger {
  cursor: var(--cursor-white);
}

/* ── Hero subtitle / Supercluster link ── */
.hero-sub {
  color: var(--muted);
  font-size: 18px;
  font-weight: 400;
  text-align: center;
  line-height: 1.5;
}

.supercluster-link {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}
.supercluster-link:hover { color: var(--white); }

.underline-link,
a.underline-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── SLIDER SECTION ── */
.slider-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  padding: 0 var(--side-pad);
}

/* Project card */
.project-card {
  width: 100%;
  max-width: var(--content-width);
  height: clamp(320px, 56vw, 674px);
  border-radius: 40px;
  overflow: hidden;
  background: #161414;
  position: relative;
  flex-shrink: 0;
  cursor: none;
}

.card-content {
  position: absolute;
  inset: 0;
  transition: opacity 0.25s ease;
}
.project-card.is-switching .card-content { opacity: 0; }

.project-card-bg {
  position: absolute;
  inset: 0;
}

.project-bg-media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}
.project-bg-media[hidden] { display: none; }

/* Dark gradient so bottom text is always readable */
.card-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 30%,
    rgba(0, 0, 0, 0.55) 65%,
    rgba(0, 0, 0, 0.85) 100%
  );
  pointer-events: none;
}

/* Custom cursor — green "View Project" pill */
.project-cursor {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  z-index: 20;
  top: 0;
  left: 0;
  background: #c7d59f;
  color: #161518;
  border-radius: 100px;
  padding: 7px 16px;
  font-family: 'Roboto', sans-serif;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}
.project-card:hover .project-cursor {
  opacity: 1;
}

/* ── GIF cursor follower ── */
.gif-follower {
  position: fixed;
  top: 0;
  left: 0;
  width: 240px;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transform: translate(20px, 20px) scale(0.9);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 9999;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}
.gif-follower.visible {
  opacity: 1;
  transform: translate(20px, 20px) scale(1);
}
.gif-follower img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* Project info */
.project-info {
  position: absolute;
  bottom: 52px;
  left: 52px;
  width: 469px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Card icon — base 36x36 circle */
.project-icon {
  width: 36px;
  height: 36px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}

/* Frame (Hooker) — plain avatar image */
.project-icon.icon--frame {
  background: transparent;
}
.project-icon.icon--frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Laurel — green bg, sprite crop matching Figma */
.project-icon.icon--laurel {
  background: #405b4f;
  padding: 4px;
}
.card-icon-inner-laurel {
  width: 27px;
  height: 12px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.card-icon-inner-laurel img {
  position: absolute;
  height: 400%;
  left: -51.28%;
  top: -152.94%;
  width: 202.56%;
  max-width: none;
  pointer-events: none;
}

/* Fuel Results project badge */
.project-icon.icon--sc {
  background: #f4511e;
  padding: 0;
}
.card-icon-inner-sc {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.card-icon-inner-sc img {
  position: absolute;
  height: 100%;
  left: 0;
  top: 0;
  width: 100%;
  max-width: none;
  pointer-events: none;
}

.project-title {
  font-family: 'General Sans', 'DM Sans', 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--white);
  line-height: 1.1;
  white-space: nowrap;
}

.project-desc {
  color: var(--muted);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

/* ── Slider controls ── */
.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.slider-pill {
  background: #222124;
  border-radius: 2000px;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.slider-count {
  color: var(--muted);
  font-size: 16px;
  font-weight: 400;
  white-space: nowrap;
  line-height: 1.5;
  min-width: 38px;
}

/* Avatar stack */
.slider-avatars {
  display: flex;
  align-items: center;
  padding-right: 10px;
  position: relative;
}

.avatar-btn {
  position: relative;
  cursor: pointer;
  margin-right: -10px;
  flex-shrink: 0;
}

/* Z-index stack — fixed order */
.avatar-btn:nth-child(1) { z-index: 3; }
.avatar-btn:nth-child(2) { z-index: 2; }
.avatar-btn:nth-child(3) { z-index: 1; }

/* Active: bring to front + green ring */
.avatar-btn.active { z-index: 5; }
.avatar-btn.active .avatar-circle {
  box-shadow: 0 0 0 2.5px var(--green);
}

/* Hover: bring to front so label isn't clipped */
.avatar-btn:hover { z-index: 6; }

/* Hover label — appears BELOW the avatar */
.avatar-label {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: var(--white);
  color: var(--black);
  border-radius: 20px;
  padding: 5px 13px;
  font-family: 'Roboto', sans-serif;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
  z-index: 10;
}
.avatar-btn:hover .avatar-label {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Make sure slider-controls doesn't clip the labels */
.slider-controls,
.slider-pill,
.slider-avatars {
  overflow: visible;
}

/* Avatar circle base */
.avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: box-shadow 0.2s ease;
}

/* Frame10 (Hooker) — plain img */
.avatar-circle--frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Laurel — green bg, border, sprite crop */
.avatar-circle--laurel {
  background: #405b4f;
  border: 2px solid #222124;
  padding: 4px;
}
.avatar-inner-laurel {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* 25x11px visible window, same crop as Figma */
.avatar-crop-laurel {
  width: 25px;
  height: 11px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.avatar-crop-laurel img {
  position: absolute;
  height: 400%;
  left: -51.28%;
  top: -152.94%;
  width: 202.56%;
  max-width: none;
  pointer-events: none;
}

/* Fuel Results selector badge */
.avatar-circle--sc {
  background: #f4511e;
  border: 2px solid #222124;
  padding: 0;
}
.avatar-inner-sc {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* 23x16px window, same as Figma */
.avatar-crop-sc {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.avatar-crop-sc img {
  position: absolute;
  height: 100%;
  left: 0;
  top: 0;
  width: 100%;
  max-width: none;
  pointer-events: none;
}

/* ── ABOUT SECTION ── */
.about-section {
  display: flex;
  flex-direction: column;
  gap: 80px;
  align-items: center;
  padding: 100px var(--side-pad);
}

.about-text {
  font-family: 'General Sans', 'DM Sans', 'Inter', sans-serif;
  font-size: clamp(20px, 2.2vw, 32px);
  font-weight: 500;
  line-height: 1.35;
  color: var(--white);
  text-align: center;
  width: min(794px, 100%);
  /* entrance — triggered by JS */
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease-out-expo), transform 1s var(--ease-out-expo);
}
.about-text.in-view {
  opacity: 1;
  transform: translateY(0);
}

.about-white { color: var(--white); }

.about-green {
  color: var(--green);
}

/* ── METRICS ── */
.metrics {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-right: 92px;
  position: relative;
}

.metric-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 315px;
  height: 420px;
  margin-right: -92px;
  flex-shrink: 0;
}

/* Static tilt per card type */
.metric-wrap--tilt-left  .metric { transform: rotate(-4deg) translateY(0); }
.metric-wrap--tilt-right .metric { transform: rotate(4deg)  translateY(0); }

.metric {
  width: 288px;
  height: 400px;
  border-radius: 36px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 40px;
  /* pre-entrance state — JS adds .in-view to trigger the transition */
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Entrance: simple fade-up, no rotation change */
.metric-wrap--tilt-left.in-view  .metric { opacity: 1; transform: rotate(-4deg) translateY(0); }
.metric-wrap--tilt-right.in-view .metric { opacity: 1; transform: rotate(4deg)  translateY(0); }

/* Pre-entrance offset — overrides the tilt rule above until in-view */
.metric-wrap--tilt-left:not(.in-view)  .metric { transform: rotate(-4deg) translateY(32px); }
.metric-wrap--tilt-right:not(.in-view) .metric { transform: rotate(4deg)  translateY(32px); }

.metric--green { background: var(--green); }
.metric--dark  { background: var(--dark-card); }

.metric-number {
  font-family: 'General Sans', 'DM Sans', 'Inter', sans-serif;
  font-size: 48px;
  font-weight: 500;
  line-height: 1;
  width: 100%;
}

.metric--green .metric-number { color: var(--black); }
.metric--dark  .metric-number { color: var(--white); }

.metric-label {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  width: 100%;
}

.metric--green .metric-label { color: rgba(22,21,24,0.7); }
.metric--dark  .metric-label { color: rgba(255,255,255,0.6); }

/* ─────────────────────────────────────────────
   Entrance animations  (all durations ×1.5)
───────────────────────────────────────────── */
@keyframes fade-down {
  from { opacity: 0; transform: translateY(-18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

:root { --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1); }

.header        { animation: fade-down 0.98s var(--ease-out-expo) both; }
.hero-name     { animation: fade-up   0.9s  var(--ease-out-expo) 0.12s both; }
.heading-top   { animation: fade-up   0.98s var(--ease-out-expo) 0.27s both; }
.heading-bottom{ animation: fade-up   0.98s var(--ease-out-expo) 0.42s both; }
.hero-sub      { animation: fade-up   0.9s  var(--ease-out-expo) 0.57s both; }
.slider-section{ animation: fade-up   1.1s  var(--ease-out-expo) 0.75s both; }


/* ─────────────────────────────────────────────
   CTA Section
───────────────────────────────────────────── */
.cta-section {
  padding: 120px var(--side-pad) 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  /* entrance state — JS adds .in-view */
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease-out-expo), transform 1s var(--ease-out-expo);
}
.cta-section.in-view {
  opacity: 1;
  transform: translateY(0);
}

.cta-label {
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.cta-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--content-width);
  padding: 32px 40px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: var(--white);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.35s var(--ease-out-expo),
              border-color 0.35s var(--ease-out-expo),
              color 0.35s var(--ease-out-expo);
}
.cta-btn:hover {
  background: var(--green);
  border-color: transparent;
  color: var(--black);
}

.cta-btn-text {
  font-family: 'General Sans', 'DM Sans', 'Inter', sans-serif;
  font-size: clamp(32px, 5vw, 72px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
}

.cta-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid currentColor;
  transition: transform 0.35s var(--ease-out-expo);
}
.cta-btn:hover .cta-btn-icon {
  transform: rotate(45deg);
}
.cta-btn-icon svg {
  width: 24px;
  height: 24px;
}

/* ─────────────────────────────────────────────
   Footer
───────────────────────────────────────────── */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px var(--side-pad);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  gap: 24px;
}

.footer-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  color: var(--muted);
}

.footer-email {
  appearance: none;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.footer-email:hover { color: var(--white); }
.footer-email:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }

.footer-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--dark-card);
  color: var(--white);
  text-decoration: none;
  border: none;
  flex-shrink: 0;
  transition: background 0.2s;
}
.footer-icon-link:hover { background: #333330; }

/* ─────────────────────────────────────────────
   Mobile hamburger menu
───────────────────────────────────────────── */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  flex-shrink: 0;
}
.menu-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.25s ease;
  transform-origin: center;
}
.menu-toggle.is-open .menu-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle.is-open .menu-toggle-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.menu-toggle.is-open .menu-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Full-screen mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 800;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 40px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.32s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.32s;
  pointer-events: none;
}
.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: all;
}
.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.mobile-menu-link {
  font-family: 'General Sans', 'DM Sans', 'Inter', sans-serif;
  font-size: clamp(40px, 12vw, 64px);
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  display: block;
  opacity: 0;
  transform: translateX(-20px);
  transition: color 0.2s,
              opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-menu-link:last-child { border-bottom: none; }
.mobile-menu-link:hover,
.mobile-menu-link.active { color: var(--white); }
.mobile-menu.is-open .mobile-menu-link {
  opacity: 1;
  transform: translateX(0);
}
.mobile-menu.is-open .mobile-menu-link:nth-child(1) { transition-delay: 0.08s; }
.mobile-menu.is-open .mobile-menu-link:nth-child(2) { transition-delay: 0.14s; }
.mobile-menu.is-open .mobile-menu-link:nth-child(3) { transition-delay: 0.20s; }

/* Always hide on desktop */
@media (min-width: 769px) {
  .mobile-menu  { display: none !important; }
  .menu-toggle  { display: none !important; }
}

/* btn-dark works as <a> tag too */
a.btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* ─────────────────────────────────────────────
   Responsive layout
───────────────────────────────────────────── */

/* ── Tablet ≤ 1100px ── */
@media (max-width: 1100px) {
  /* Metrics: reduce card size so the row fits */
  .metrics        { padding-right: 60px; }
  .metric-wrap    { width: 260px; height: 360px; margin-right: -60px; }
  .metric         { width: 238px; height: 340px; padding: 28px; }
  .metric-number  { font-size: 40px; }
}

/* ── Tablet ≤ 1024px ── */
@media (max-width: 1024px) {
  .header { padding: 32px var(--side-pad); }

  /* Hero icons — scale down proportionally */
  .icon-badge     { width: 48px; height: 48px; border-radius: 26px; }
  .icon-wrap--1   { width: 54px; height: 54px; margin-right: -20px; }
  .icon-wrap--2   { width: 57px; height: 57px; margin-right: -20px; }
  .icon-wrap--3   { width: 51px; height: 51px; margin-right: -20px; }
  .heading-icons  { padding-right: 20px; }
  .icon-inner-figma  { width: 44px; height: 44px; }
  .icon-inner-webflow{ width: 48px; height: 48px; }

  /* Project info — tighter padding inside card */
  .project-info   { bottom: 36px; left: 36px; width: calc(100% - 72px); }
}

/* ── Mobile ≤ 768px ── */
@media (max-width: 768px) {
  :root { --side-pad: 20px; }

  /* Header */
  .header       { padding: 24px 20px; position: relative; z-index: 850; }
  .header-right { width: auto; }
  .btn-dark     { padding: 10px 18px; height: 42px; font-size: 14px; }
  /* Mobile nav: hide links, show hamburger */
  .nav          { gap: 0; }
  .nav-link     { display: none; }
  .menu-toggle  { display: flex; }

  /* Hero */
  .hero         { padding-bottom: 48px; }
  .hero-inner   { gap: 20px; }
  .hero-name    { font-size: 16px; }
  .hero-sub     { font-size: 16px; max-width: 260px; }

  /* Icon badges */
  .icon-badge     { width: 42px; height: 42px; border-radius: 22px; }
  .icon-wrap--1   { width: 48px; height: 48px; margin-right: -16px; }
  .icon-wrap--2   { width: 50px; height: 50px; margin-right: -16px; }
  .icon-wrap--3   { width: 44px; height: 44px; margin-right: -16px; }
  .heading-icons  { padding-right: 16px; }
  .icon-inner-figma  { width: 38px; height: 38px; }
  .icon-inner-webflow{ width: 42px; height: 42px; }

  /* Project card */
  .project-info   { bottom: 24px; left: 24px; width: calc(100% - 48px); }
  .project-title  { font-size: 17px; }
  .project-desc   { font-size: 14px; }

  /* Slider pill */
  .slider-pill    { padding: 8px 14px; gap: 16px; }

  /* About */
  .about-section  { padding-top: 64px; padding-bottom: 64px; gap: 48px; }

  /* CTA */
  .cta-section    { padding: 80px var(--side-pad) 64px; }
  .cta-btn        { padding: 24px 28px; }
  .cta-btn-icon   { width: 44px; height: 44px; }

  /* Footer */
  .footer         { flex-direction: column; align-items: flex-start; gap: 20px; }

  /* Metrics — 2×2 grid on mobile */
  .metrics        { display: grid; grid-template-columns: 1fr 1fr; padding-right: 0; gap: 12px; }
  .metric-wrap    { width: 100%; max-width: none; height: 200px; margin-right: 0; margin-bottom: 0; }
  .metric-wrap:last-child { margin-bottom: 0; }
  /* No tilt on mobile */
  .metric-wrap--tilt-left  .metric,
  .metric-wrap--tilt-left.in-view  .metric,
  .metric-wrap--tilt-left:not(.in-view)  .metric { transform: none; }
  .metric-wrap--tilt-right .metric,
  .metric-wrap--tilt-right.in-view .metric,
  .metric-wrap--tilt-right:not(.in-view) .metric { transform: none; }
  /* Opacity entrance still works */
  .metric-wrap--tilt-left:not(.in-view)  .metric,
  .metric-wrap--tilt-right:not(.in-view) .metric { opacity: 0; }
  .metric-wrap--tilt-left.in-view  .metric,
  .metric-wrap--tilt-right.in-view .metric  { opacity: 1; }
  /* Card fills its grid cell, number bottom-left at 16px */
  .metric         { width: 100%; height: 200px; padding: 16px; border-radius: 20px; }
  .metric-number  { font-size: 32px; }
}

/* ── Small mobile ≤ 480px ── */
@media (max-width: 480px) {
  .nav          { gap: 16px; }
  .nav-link     { font-size: 13px; }
  .btn-dark     { padding: 8px 14px; font-size: 13px; height: 38px; }

  .hero-inner   { gap: 16px; }

  /* Badges */
  .icon-badge     { width: 36px; height: 36px; border-radius: 19px; }
  .icon-wrap--1   { width: 41px; height: 41px; margin-right: -13px; }
  .icon-wrap--2   { width: 43px; height: 43px; margin-right: -13px; }
  .icon-wrap--3   { width: 38px; height: 38px; margin-right: -13px; }
  .heading-icons  { padding-right: 13px; }
  .icon-inner-figma  { width: 32px; height: 32px; }
  .icon-inner-webflow{ width: 36px; height: 36px; }

  /* Project info */
  .project-info  { bottom: 20px; left: 20px; width: calc(100% - 40px); }

  /* Metrics */
  .metric-wrap   { max-width: 100%; }

  /* CTA */
  .cta-section   { padding: 60px var(--side-pad) 48px; gap: 20px; }
  .cta-btn       { padding: 20px 22px; border-radius: 28px; }
  .cta-btn-icon  { width: 36px; height: 36px; }
  .cta-btn-icon svg { width: 18px; height: 18px; }
}


/* ─────────────────────────────────────────────
   About page
───────────────────────────────────────────── */
.about-page-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: calc(100vh - 120px);
  padding: 40px var(--side-pad);
  text-align: center;
}

.about-page-heading {
  font-family: 'General Sans', 'DM Sans', 'Inter', sans-serif;
  font-size: clamp(48px, 6vw, 96px);
  font-weight: 500;
  color: var(--white);
  line-height: 1;
  animation: fade-up 0.98s var(--ease-out-expo) 0.18s both;
}

.about-page-hero .hero-name {
  animation: fade-up 0.9s var(--ease-out-expo) 0.08s both;
}

.about-page-hero .hero-sub {
  animation: fade-up 0.9s var(--ease-out-expo) 0.3s both;
}


/* ─────────────────────────────────────────────
   Shared jump + rotate keyframe
   Used by both .logo-dot hover and the page-transition box
───────────────────────────────────────────── */
@keyframes box-jump {
  0%   { transform: translateY(0)    rotate(0deg); }
  40%  { transform: translateY(-18px) rotate(180deg); }
  100% { transform: translateY(0)    rotate(360deg); }
}


/* ─────────────────────────────────────────────
   Page transition overlay
───────────────────────────────────────────── */
#page-transition {
  position: fixed;
  inset: 0;
  background: var(--green);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* ─────────────────────────────────────────────
   Music Player
───────────────────────────────────────────── */
/* ── Shared rise animation ── */
@keyframes bar-rise {
  from { opacity: 0; transform: translateX(-50%) translateY(16px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ── Bottom bar: fixed centered flex row ── */
.bottom-bar {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 500;
  animation: bar-rise 0.7s 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ── Scatter button — sits inside .bottom-bar flex container ── */
.scatter-btn {
  position: static;
  height: 48px;
  padding: 0 24px;
  background: var(--dark-card);
  color: rgba(255, 255, 255, 0.65);
  font-family: 'Roboto', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.18s, color 0.18s, transform 0.18s;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
.scatter-btn:hover {
  background: #333330;
  color: var(--white);
  transform: scale(1.04);
}
.scatter-btn:active {
  transform: scale(0.97);
}

/* ── Music player — desktop: fixed at bottom ── */
.music-player {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--dark-card);
  border: none;
  border-radius: 100px;
  padding: 0 20px 0 16px;
  height: 48px;
  min-width: 380px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
  animation: bar-rise 0.7s 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.mp-controls {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.mp-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: color 0.15s, background 0.15s;
  padding: 0;
  flex-shrink: 0;
}
.mp-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}
.mp-btn--play {
  width: 34px;
  height: 34px;
  background: var(--green);
  color: var(--black) !important;
  border-radius: 50%;
  margin: 0 3px;
}
.mp-btn--play:hover { background: #d4f57e; }

.mp-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
  width: 130px; /* fixed — player width never shifts with text */
}
.mp-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1;
  text-align: center;
}
.mp-artist {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.38);
  white-space: nowrap;
  line-height: 1;
  text-align: center;
}
.mp-divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}
.mp-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.mp-time {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.mp-bar {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  min-width: 80px;
}
.mp-bar:hover .mp-fill { background: #d4f57e; }
.mp-fill {
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  background: var(--green);
  border-radius: 3px;
  width: 0%;
  pointer-events: none;
  transition: width 0.25s linear;
}

@media (max-width: 768px) {
  /* Bottom bar: smaller gap + lower on mobile */
  .bottom-bar {
    bottom: 16px;
    gap: 8px;
    animation: bar-rise 0.7s 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .music-player {
    position: static;
    bottom: auto;
    left: auto;
    transform: none;
    animation: none;
    min-width: unset;
    width: auto;
    padding: 0 12px;
    gap: 4px;
  }
  .mp-info,
  .mp-divider,
  .mp-progress {
    display: none;
  }
}

/* Same size and shape as the header logo-dot */
.transition-box {
  width: 20px;
  height: 20px;
  background: var(--black);
  border-radius: 5px;
  transform-origin: center;
  flex-shrink: 0;
}


/* ── Mobile: icon-only buttons ── */
@media (max-width: 768px) {
  .scatter-btn .btn-text { display: none; }
  .scatter-btn {
    width: 48px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .scatter-btn .btn-icon { font-size: 20px; line-height: 1; }
}

/* ── Quiz overlay ── */
.quiz-overlay {
  position: fixed;
  inset: 0;
  background: rgba(22, 21, 24, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fade-in 0.28s ease both;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.quiz-card {
  background: #222124;
  border-radius: 24px;
  padding: 36px;
  max-width: 540px;
  width: 100%;
  box-shadow: 0 24px 64px rgba(0,0,0,0.65);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.quiz-close-btn {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.25);
  font-size: 22px;
  cursor: pointer;
  padding: 4px 6px;
  line-height: 1;
  transition: color 0.15s;
}
.quiz-close-btn:hover { color: rgba(255,255,255,0.65); }

.quiz-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.quiz-counter {
  font-family: 'Roboto', sans-serif;
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.quiz-prog-wrap {
  flex: 1;
  height: 2px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
}
.quiz-prog-fill {
  height: 100%;
  background: var(--green, #c7d59f);
  border-radius: 2px;
  transition: width 0.35s ease;
  width: 0%;
}
.quiz-score-display {
  font-family: 'Roboto', sans-serif;
  font-size: 11px;
  color: var(--green, #c7d59f);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.quiz-q {
  font-family: 'General Sans', 'DM Sans', sans-serif;
  font-size: 21px;
  font-weight: 600;
  color: white;
  line-height: 1.35;
  margin-bottom: 24px;
}
.quiz-opts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.quiz-opt {
  padding: 14px 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.quiz-opt:hover:not(:disabled) {
  background: rgba(255,255,255,0.08);
  color: white;
  border-color: rgba(255,255,255,0.16);
}
.quiz-opt.is-correct {
  background: rgba(199, 213, 159, 0.12);
  border-color: var(--green, #c7d59f);
  color: var(--green, #c7d59f);
}
.quiz-opt.is-wrong {
  background: rgba(220, 70, 70, 0.1);
  border-color: rgba(220, 70, 70, 0.35);
  color: rgba(220, 100, 100, 0.9);
}
.quiz-opt:disabled { cursor: default; }

/* Results */
.quiz-results { text-align: center; padding: 12px 0; }
.quiz-big-score {
  font-family: 'General Sans', 'DM Sans', sans-serif;
  font-size: 80px;
  font-weight: 700;
  color: var(--green, #c7d59f);
  line-height: 1;
  margin-bottom: 4px;
}
.quiz-big-score span { font-size: 32px; color: rgba(255,255,255,0.25); }
.quiz-score-label {
  display: block;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 32px;
}
.quiz-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.quiz-act-btn {
  padding: 12px 22px;
  border-radius: 100px;
  font-family: 'Roboto', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: transform 0.15s;
}
.quiz-act-btn:hover { transform: scale(1.04); }
.quiz-act-btn--green { background: var(--green, #c7d59f); color: #161518; }
.quiz-act-btn--dark {
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.65);
  border: 1px solid rgba(255,255,255,0.1);
}

/* Print results */
#quizPrint { display: none; }
@media print {
  body > *:not(#quizPrint) { display: none !important; }
  #quizPrint { display: block !important; }
}

/* Mobile quiz */
@media (max-width: 768px) {
  .quiz-card { padding: 24px 18px; border-radius: 20px; }
  .quiz-q { font-size: 17px; }
  .quiz-opt { font-size: 13px; padding: 12px 14px; }
  .quiz-big-score { font-size: 60px; }
}
