/* ============================================================
   Sahil Gohel — Analytics & AI Strategy — Portfolio
   Cinematic dark/red design system, referencing lukebaffait.fr
   ============================================================ */

:root {
  /* Palette — dark theme (default) */
  --bg: #0a0a0a;
  --bg-rgb: 10, 10, 10;
  --text: #ffffff;
  --text-rgb: 255, 255, 255;
  --text-muted: #888888;
  --text-soft: #d6d6d6;
  --border: #222222;
  --border-strong: #3a3a3a;
  --card-bg-1: #111111;
  --card-bg-2: #1a1a1a;
  --accent-1: #cc0000;
  --accent-1-rgb: 204, 0, 0;
  --accent-2: #ff3333;
  --accent-2-rgb: 255, 51, 51;
  --accent-text: #ff3333;
  --accent-grad: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  --header-bg: rgba(10, 10, 10, 0.55);
  --nav-chip-bg: rgba(10, 10, 10, 0.7);
  --theme-transition: 0.4s ease;
  color-scheme: dark;

  /* Type */
  --font-body: 'Inter', 'Geist Sans', -apple-system, sans-serif;
  --font-display: 'Inter', 'Geist Sans', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Geist Mono', monospace;

  --text-xs: clamp(0.72rem, 0.68rem + 0.2vw, 0.8rem);
  --text-sm: clamp(0.8rem, 0.78rem + 0.2vw, 0.95rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.15rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.1rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.2rem);
  --text-3xl: clamp(2.6rem, 1rem + 4.5vw, 5.4rem);
  --text-hero: clamp(3.2rem, 0.2rem + 9.5vw, 9.5rem);

  /* Spacing (4px system) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  --container: 1400px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
}

/* Palette — light theme override */
[data-theme='light'] {
  --bg: #f5f2ee;
  --bg-rgb: 245, 242, 238;
  --text: #0a0a0a;
  --text-rgb: 10, 10, 10;
  --text-muted: #6b6b6b;
  --text-soft: #2b2b2b;
  --border: #e3ddd4;
  --border-strong: #c9c0b3;
  --card-bg-1: #ffffff;
  --card-bg-2: #eeeae3;
  --accent-text: #cc0000;
  --header-bg: rgba(245, 242, 238, 0.7);
  --nav-chip-bg: rgba(255, 255, 255, 0.78);
  color-scheme: light;
}

/* ---------------- Theme transition ----------------
   Universal fallback: elements without their own transition
   declaration smoothly crossfade colors on theme switch.
   Elements with a more specific rule (e.g. .site-header,
   .section-nav-item) keep their own tuned transition list —
   the cascade lets class selectors override this entirely. */
*,
*::before,
*::after {
  transition: background-color var(--theme-transition), color var(--theme-transition), border-color var(--theme-transition);
}

html,
body {
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

body {
  cursor: none;
}

@media (hover: none), (pointer: coarse) {
  body {
    cursor: auto;
  }
}

.reduced-motion,
.reduced-motion * {
  cursor: auto !important;
}

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

.wrap {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------------- Custom cursor ---------------- */
#cursor-dot,
#cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
}
#cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--text);
  transition: opacity 0.2s var(--ease-out);
}
#cursor-ring {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(var(--text-rgb), 0.5);
  transition:
    width 0.25s var(--ease-out),
    height 0.25s var(--ease-out),
    border-color 0.25s var(--ease-out),
    background 0.25s var(--ease-out),
    opacity 0.2s var(--ease-out);
}
#cursor-ring.is-hover {
  width: 64px;
  height: 64px;
  border-color: var(--accent-2);
  background: rgba(var(--accent-1-rgb), 0.08);
}
#cursor-ring.is-text {
  width: 90px;
  height: 90px;
  border-color: rgba(var(--text-rgb), 0.35);
  background: rgba(var(--text-rgb), 0.03);
}
.no-cursor #cursor-dot,
.no-cursor #cursor-ring {
  display: none;
}

/* ---------------- Section Index (scrollspy) ---------------- */
.section-nav {
  position: fixed;
  top: 50%;
  right: var(--space-8);
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-5);
  pointer-events: auto;
}

.section-nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  transition: color 0.4s var(--ease-out);
}

.section-nav-label {
  opacity: 0;
  transform: translateX(6px);
  padding: 3px 8px;
  border-radius: 3px;
  background: transparent;
  backdrop-filter: none;
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out), color 0.4s var(--ease-out), background 0.4s var(--ease-out);
  white-space: nowrap;
}

.section-nav-item.is-active .section-nav-label {
  background: var(--nav-chip-bg);
  backdrop-filter: blur(6px);
}

.section-nav-item:hover .section-nav-label,
.section-nav-item.is-active .section-nav-label {
  opacity: 1;
  transform: translateX(0);
}

.section-nav-item.is-active {
  color: var(--text);
}

.section-nav-item:hover {
  color: var(--text-soft);
}

.section-nav-dot {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
  transition: background 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}

.section-nav-dot::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 0;
  background: var(--accent-2);
  transform: translate(-50%, -50%);
  transition: height 0.4s var(--ease-out);
}

.section-nav-item.is-active .section-nav-dot {
  background: var(--accent-2);
  transform: scale(1.6);
  box-shadow: 0 0 10px rgba(var(--accent-2-rgb), 0.6);
}

.section-nav-item:focus-visible {
  outline: 1px solid var(--accent-2);
  outline-offset: 4px;
  border-radius: 4px;
}

@media (max-width: 1024px) {
  .section-nav {
    right: var(--space-5);
    gap: var(--space-4);
  }
  .section-nav-label {
    display: none;
  }
}

@media (max-width: 720px) {
  .section-nav {
    display: none;
  }
}

/* ---------------- Header ---------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6) var(--gutter);
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transform: translateY(0);
  transition:
    transform 0.5s var(--ease-out),
    border-color 0.4s var(--ease-out),
    background 0.4s var(--ease-out);
}
.site-header.is-scrolled {
  border-color: var(--border);
}
.site-header.is-hidden {
  transform: translateY(-110%);
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-base);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.logo svg {
  width: 22px;
  height: 22px;
}
.logo-mark-text {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.03em;
  fill: var(--text);
}

.header-right {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.main-nav {
  display: flex;
  gap: var(--space-8);
}
.main-nav a {
  position: relative;
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  padding-bottom: 4px;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent-2);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.35s var(--ease-out);
}
.main-nav a:hover::after {
  transform: scaleX(1);
}

/* ---------------- Theme toggle ---------------- */
.theme-toggle {
  position: relative;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card-bg-1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--theme-transition), background-color var(--theme-transition), transform 0.2s var(--ease-out);
}
.theme-toggle:hover {
  border-color: var(--accent-2);
}
.theme-toggle:active {
  transform: scale(0.92);
}
.theme-toggle:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}

.theme-icon {
  position: absolute;
  width: 17px;
  height: 17px;
  color: var(--text);
  opacity: 0;
  transform: rotate(90deg) scale(0.4);
  transition: opacity var(--theme-transition), transform var(--theme-transition);
}
html[data-theme='dark'] .theme-icon-sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}
html[data-theme='light'] .theme-icon-moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}
html[data-theme='light'] .theme-icon-sun {
  transform: rotate(-90deg) scale(0.4);
}

@media (max-width: 480px) {
  .header-right {
    gap: var(--space-4);
  }
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: var(--bg);
}

/* Pinned zoom stage — this whole layer scales + fades on scroll (transform/opacity only). */
.hero-zoom {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: calc(var(--space-24) + var(--space-8));
  padding-bottom: var(--space-8);
  background: var(--bg);
  will-change: transform, opacity;
  transform-origin: 50% 50%;
  backface-visibility: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-glow {
  position: absolute;
  top: -10%;
  right: -10%;
  width: 70%;
  height: 90%;
  background: radial-gradient(closest-side, rgba(var(--accent-2-rgb), 0.25), rgba(var(--accent-1-rgb), 0.08) 55%, transparent 75%);
  filter: blur(40px);
  z-index: 1;
}

.hero-photo-wrap {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(46%, 620px);
  overflow: hidden;
  z-index: 2;
}
.hero-photo-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, var(--bg) 0%, transparent 30%);
}
.hero-photo-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.85) 100%);
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% center;
  transform: scale(1.08);
  opacity: 0;
  will-change: transform, opacity, filter;
}

.hero-top {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.hero-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  color: var(--text-muted);
  max-width: 24ch;
  overflow: hidden;
}
.hero-label span,
.hero-tagline span,
.hero-name span {
  display: inline-block;
}

.split-word {
  margin-right: 0.22em;
}
.hero-name .split-word {
  margin-right: 0.02em;
}

.hero-middle {
  position: relative;
  z-index: 3;
  margin-top: auto;
}

.hero-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-hero);
  letter-spacing: -0.04em;
  line-height: 0.94;
  filter: blur(8px);
  opacity: 0;
  will-change: filter, opacity;
}

.hero-tagline {
  margin-top: var(--space-6);
  max-width: 34ch;
  font-size: var(--text-lg);
  font-weight: 300;
  font-style: italic;
  color: var(--text-soft);
  line-height: 1.35;
  overflow: hidden;
}

.hero-statement {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--text-muted);
  overflow: hidden;
}

.hero-bottom {
  position: relative;
  z-index: 3;
  margin-top: var(--space-16);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.hero-version {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
}
.hero-social {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.hero-social a {
  position: relative;
}
.hero-social a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: var(--accent-2);
  transform: scaleX(0);
  transition: transform 0.35s var(--ease-out);
}
.hero-social a:hover::after {
  transform: scaleX(1);
}
.hero-social .divider {
  color: var(--border);
}
.hero-badge {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-align: right;
  color: var(--text-muted);
}
.hero-badge strong {
  color: var(--text);
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
}
.hero-location {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ---------------- Section scaffolding ---------------- */
section {
  position: relative;
  padding-block: clamp(var(--space-20), 10vw, var(--space-32));
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-8);
  margin-bottom: var(--space-16);
  flex-wrap: wrap;
}
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.section-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 10px var(--accent-2);
}
.section-title {
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  max-width: 18ch;
}
.section-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--text-muted);
}
.section-sub {
  max-width: 42ch;
  color: var(--text-muted);
  font-size: var(--text-base);
  line-height: 1.7;
}

/* reveal utility: opacity/clip-path only — CLS-safe */
.reveal {
  opacity: 0;
  clip-path: inset(0 0 12% 0);
  transition:
    opacity 0.9s var(--ease-out),
    clip-path 0.9s var(--ease-out);
  will-change: opacity, clip-path;
}
.reveal.is-visible {
  opacity: 1;
  clip-path: inset(0 0 0% 0);
}
.reduced-motion .reveal {
  transition: opacity 0.5s var(--ease-out);
  clip-path: none !important;
}

/* ---------------- Works ---------------- */
.works-list {
  display: flex;
  flex-direction: column;
}
.work-card {
  display: grid;
  grid-template-columns: 0.9fr 1.6fr auto;
  align-items: center;
  gap: var(--space-8);
  padding: var(--space-8) 0;
  border-top: 1px solid var(--border);
  cursor: pointer;
  overflow: hidden;
}
.works-list .work-card:last-child {
  border-bottom: 1px solid var(--border);
}

.work-meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.work-index {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
}
.work-name {
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.work-client {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.work-desc {
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: 1.7;
  max-width: 56ch;
}
.work-desc strong {
  color: var(--text);
  font-weight: 600;
}

.work-visual-col {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-6);
}
.work-thumb {
  width: 140px;
  height: 100px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card-bg-1);
  flex-shrink: 0;
}
.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.5s var(--ease-out),
    filter 0.5s var(--ease-out);
}
.work-card:hover .work-thumb img {
  transform: scale(1.06);
  filter: brightness(1.15);
}
.work-year {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--text-muted);
  width: 4.5ch;
}
.work-link {
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  white-space: nowrap;
  position: relative;
}
.work-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: var(--accent-2);
  transform: scaleX(0);
  transition: transform 0.35s var(--ease-out);
}
.work-card:hover .work-link::after {
  transform: scaleX(1);
}
.work-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s var(--ease-out);
}
.work-card:hover .work-link svg {
  transform: translateX(4px);
}

.work-card {
  transition:
    background 0.4s var(--ease-out),
    transform 0.4s var(--ease-out);
}
.work-card:hover {
  background: linear-gradient(90deg, rgba(var(--accent-2-rgb), 0.04), transparent 60%);
}

/* ---------------- Work wheel: circular revolving gallery ---------------- */
.work-wheel {
  position: relative;
  height: clamp(560px, 92vh, 780px);
  margin-top: var(--space-8);
  margin-bottom: var(--space-16);
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  cursor: grab;
  touch-action: none;
  background:
    radial-gradient(ellipse 60% 45% at 50% 78%, rgba(var(--accent-1-rgb), 0.08), transparent 70%);
}
.work-wheel.is-dragging {
  cursor: grabbing;
}
.work-wheel-hint {
  position: absolute;
  top: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
}
.work-wheel-hint.is-visible {
  opacity: 1;
}
.work-wheel-stage {
  position: absolute;
  inset: 0;
}
.ww-item {
  position: absolute;
  top: 0;
  left: 50%;
  width: 0;
  height: 0;
  will-change: transform;
}
.ww-card {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  width: min(340px, 78vw);
  padding: var(--space-5);
  border-radius: 14px;
  border: 1px solid var(--border);
  background: linear-gradient(160deg, var(--card-bg-2), var(--card-bg-1));
  transform: translate(-50%, -50%) scale(var(--ww-scale, 1));
  opacity: var(--ww-opacity, 1);
  will-change: transform, opacity;
  transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.ww-card:hover {
  border-color: rgba(var(--accent-2-rgb), 0.35);
  box-shadow: 0 20px 60px -20px rgba(var(--accent-1-rgb), 0.35);
}
.ww-thumb {
  width: 100%;
  aspect-ratio: 14 / 10;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card-bg-1);
  margin-bottom: var(--space-4);
}
.ww-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}
.ww-card:hover .ww-thumb img {
  transform: scale(1.06);
}
.ww-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.ww-index {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
}
.ww-title {
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.ww-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.5;
}
.ww-link {
  margin-top: var(--space-1);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-text);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.ww-link svg {
  width: 12px;
  height: 12px;
  transition: transform 0.3s var(--ease-out);
}
.ww-card:hover .ww-link svg {
  transform: translateX(4px);
}

/* Reduced motion: flat, static, horizontally scrollable strip — no wheel math */
.reduced-motion .work-wheel {
  height: auto;
  overflow-x: auto;
  overflow-y: hidden;
  padding: var(--space-8) var(--gutter);
  cursor: auto;
}
.reduced-motion .work-wheel-hint {
  display: none;
}
.reduced-motion .work-wheel-stage {
  position: relative;
  display: flex;
  gap: var(--space-6);
  inset: auto;
}
.reduced-motion .ww-item {
  position: relative;
  top: auto;
  left: auto;
  width: auto;
  height: auto;
  flex-shrink: 0;
}
.reduced-motion .ww-card {
  position: relative;
  top: auto;
  left: auto;
  transform: none !important;
  opacity: 1 !important;
}

@media (max-width: 1024px) {
  .work-wheel {
    height: clamp(480px, 86vh, 640px);
  }
  .ww-card {
    width: min(280px, 74vw);
    padding: var(--space-4);
  }
}

@media (max-width: 720px) {
  .work-wheel {
    height: clamp(440px, 78vh, 560px);
  }
  .ww-card {
    width: min(230px, 68vw);
    padding: var(--space-3);
  }
  .ww-title {
    font-size: var(--text-sm);
  }
  .ww-desc {
    display: none;
  }
}

/* ---------------- Statement / About ---------------- */
.statement {
  border-top: 1px solid var(--border);
}
.statement-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--space-16);
  align-items: start;
}
.statement-lead {
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.statement-lead em {
  font-style: italic;
  font-weight: 300;
  color: var(--text-muted);
}
.statement-body {
  margin-top: var(--space-8);
  max-width: 62ch;
  color: var(--text-soft);
  font-size: var(--text-base);
  line-height: 1.8;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.info-card {
  border: 1px solid var(--border);
  background: linear-gradient(160deg, var(--card-bg-1), var(--card-bg-2));
  border-radius: 14px;
  padding: var(--space-8);
}
.info-row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border);
  font-size: var(--text-sm);
}
.info-row:last-of-type {
  border-bottom: none;
}
.info-row .label {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.info-row .value {
  text-align: right;
  font-weight: 600;
}
.resume-btn {
  margin-top: var(--space-6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: 100%;
  padding: var(--space-4) var(--space-6);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition:
    border-color 0.3s var(--ease-out),
    box-shadow 0.3s var(--ease-out),
    background 0.3s var(--ease-out);
}
.resume-btn:hover {
  border-color: var(--accent-2);
  box-shadow: 0 0 24px rgba(var(--accent-2-rgb), 0.25);
  background: rgba(var(--accent-2-rgb), 0.06);
}

/* ---------------- Skills ---------------- */
.skills-cats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-12) var(--space-16);
}
.skills-cat-title {
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}
.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.pill {
  padding: var(--space-2) var(--space-5);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: var(--text-sm);
  color: var(--text-muted);
  background: var(--card-bg-1);
  transition:
    color 0.25s var(--ease-out),
    background 0.25s var(--ease-out),
    border-color 0.25s var(--ease-out),
    transform 0.25s var(--ease-out);
}
.pill:hover {
  color: var(--text);
  background: var(--card-bg-2);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

/* ---------------- Experience & Credentials rows ---------------- */
.rows-table {
  display: flex;
  flex-direction: column;
}
.row-item {
  display: grid;
  grid-template-columns: 1.4fr 1.6fr auto;
  gap: var(--space-6);
  align-items: baseline;
  padding: var(--space-5) 0;
  border-top: 1px solid var(--border);
}
.rows-table .row-item:last-child {
  border-bottom: 1px solid var(--border);
}
.row-title {
  font-weight: 700;
  font-size: var(--text-base);
}
.row-title span {
  color: var(--text-muted);
  font-weight: 400;
}
.row-org {
  color: var(--text-muted);
  font-size: var(--text-sm);
}
.row-date {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-align: right;
  white-space: nowrap;
}
.subsection-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
  margin-top: var(--space-16);
}
.subsection-label:first-child {
  margin-top: 0;
}

/* ---------------- Featured Showcase ---------------- */
.showcase {
  padding-block: 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.showcase-inner {
  position: relative;
  padding-block: clamp(var(--space-20), 10vw, var(--space-32));
}
.showcase-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-bottom: var(--space-8);
}
.showcase-media {
  position: relative;
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 16/9;
}
.showcase-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 1.2s var(--ease-out);
}
.showcase.is-visible .showcase-media img {
  transform: scale(1);
}
.showcase-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.65));
}
.showcase-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-8);
}
.showcase-title {
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ---------------- Contact / Footer ---------------- */
.contact {
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.contact-avail {
  max-width: 46ch;
  margin: 0 auto var(--space-10);
  color: var(--text-muted);
  font-size: var(--text-base);
}
.contact-email {
  font-size: clamp(1.6rem, 1rem + 4vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  display: inline-block;
  position: relative;
  word-break: break-word;
  max-width: 100%;
}
.contact-email::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.05em;
  height: 2px;
  background: var(--accent-grad);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.4s var(--ease-out);
}
.contact-email:hover::after {
  transform: scaleX(1);
}
.contact-links {
  margin-top: var(--space-10);
  display: flex;
  justify-content: center;
  gap: var(--space-6);
}
.contact-links a {
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  position: relative;
  padding-bottom: 4px;
}
.contact-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent-2);
  transform: scaleX(0);
  transition: transform 0.35s var(--ease-out);
}
.contact-links a:hover {
  color: var(--text);
}
.contact-links a:hover::after {
  transform: scaleX(1);
}

.site-footer {
  padding-block: var(--space-10);
}
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}
.footer-word {
  font-size: clamp(2.5rem, 1rem + 9vw, 8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
}
.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
}
.footer-counter {
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.footer-bottom {
  margin-top: var(--space-10);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ---------------- Responsive ---------------- */
@media (max-width: 1024px) {
  .statement-grid {
    grid-template-columns: 1fr;
  }
  .skills-cats {
    grid-template-columns: 1fr;
  }
  .work-card {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      'meta thumb'
      'desc desc'
      'link link';
  }
  .work-meta {
    grid-area: meta;
  }
  .work-visual-col {
    grid-area: thumb;
  }
  .work-desc {
    grid-area: desc;
  }
}

@media (max-width: 480px) {
  .contact-email {
    font-size: clamp(1.5rem, 7.2vw, 2.4rem);
    line-height: 1.15;
  }
}

@media (max-width: 720px) {
  body {
    cursor: auto;
  }
  #cursor-dot,
  #cursor-ring {
    display: none;
  }
  .main-nav {
    gap: var(--space-4);
  }
  .main-nav a {
    font-size: var(--text-xs);
  }
  .hero-zoom {
    padding-top: calc(var(--space-20) + var(--space-4));
  }
  .hero-photo-wrap {
    width: 100%;
    top: 0;
    bottom: 40%;
    opacity: 0.9;
  }
  .hero-photo-wrap::before {
    background: linear-gradient(180deg, var(--bg) 0%, transparent 40%);
  }
  .hero-photo-wrap::after {
    background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.95) 100%);
  }
  .hero-name {
    font-size: clamp(2.6rem, 5rem + 0vw, 5rem);
  }
  .hero-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-badge {
    text-align: left;
  }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .work-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      'thumb'
      'meta'
      'desc'
      'link';
    gap: var(--space-4);
  }
  .work-visual-col {
    justify-content: flex-start;
  }
  .work-thumb {
    width: 100%;
    height: 180px;
  }
  .row-item {
    grid-template-columns: 1fr;
    gap: var(--space-1);
  }
  .row-date {
    text-align: left;
  }
  .footer-row {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-6);
  }
  .footer-meta {
    align-items: flex-start;
  }
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-2);
  }
  .pill-group {
    gap: var(--space-2);
  }
}
