/* ═══════════════════════════════════════════════════════════
   MARK-ANTHONY CAMBRIA — Portfolio v13
   style.css
   Design system: Paper White · Geist · Editorial Minimal
═══════════════════════════════════════════════════════════ */

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

/* ─────────────────────────────────────────
   DESIGN TOKENS
───────────────────────────────────────── */
:root {
  /* Palette */
  --ink:      #121212;   /* deep ink — primary text */
  --ink-mid:  #666666;   /* secondary text, sub-heads */
  --ink-dim:  #aaaaaa;   /* metadata, numbers, hints */
  --line:     rgba(18, 18, 18, 0.08);
  --accent:   #E8FF00;   /* volt yellow — used sparingly */
  --card-bg:  #0E0E0E;   /* dark island surface */
  --surface:  #F5F5F7;   /* light page background */
  --footer-bg: #ffffff;  /* reveal footer background */

  /* Typography */
  --head: 'Geist', 'Inter', system-ui, sans-serif;
  --body: 'Inter', 'Geist', system-ui, sans-serif;

  /* Layout */
  --pad-x: clamp(24px, 4.5vw, 68px);
  --max-w: 1440px;
}

/* ─────────────────────────────────────────
   BASE
───────────────────────────────────────── */
html, body {
  height: 100%;
  overflow: hidden; /* Lenis-style: scroll is handled by JS transform */
}

body {
  /* Paper white radial gradient — bright hotspot behind the name,
     warm paper tone at edges. background-attachment:fixed keeps it
     stationary as #scroll-root translates. */
  background: radial-gradient(
    circle at 50% 40%,
    #ffffff 0%,
    #f5f5f5 70%,
    #e8e8e8 100%
  );
  background-attachment: fixed;

  color: var(--ink);
  font-family: var(--body);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Scroll root — JS applies translateY() here */
#scroll-root {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  will-change: transform;
  z-index: 1;
  background: var(--surface);
}
/* ─────────────────────────────────────────
   REVEAL FOOTER — sits behind scroll-root
───────────────────────────────────────── */
.reveal-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 0;
  background: var(--footer-bg);
  border: none;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(60px, 10vh, 120px) var(--pad-x);
}
.reveal-footer-inner {
  text-align: center;
  max-width: var(--max-w);
  width: 100%;
  padding: 0 var(--pad-x);
}
.reveal-footer-heading {
  font-family: var(--head);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: #1D1D1F;
  margin-bottom: clamp(32px, 5vh, 56px);
}
.reveal-footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 3vw, 40px);
  flex-wrap: wrap;
  margin-bottom: clamp(40px, 6vh, 72px);
}
.reveal-footer-links a {
  font-family: var(--head);
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #424245;
  text-decoration: none;
  transition: color 0.2s ease;
}
.reveal-footer-links a:hover {
  color: #1D1D1F;
}
.reveal-footer .footer-copy {
  font-family: var(--body);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: #86868b;
}

/* ─────────────────────────────────────────
   FILM GRAIN OVERLAY
   SVG feTurbulence fractal noise, tiled at 300px.
   mix-blend-mode: multiply → darkens INTO the paper
   rather than sitting as digital dust on top.
   opacity: 0.05 — felt but not seen.
───────────────────────────────────────── */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9990;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23grain)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 300px 300px;
  opacity: 0.05;
  mix-blend-mode: multiply;
}

/* ─────────────────────────────────────────
   CUSTOM CURSOR — single volt-yellow circle
   z-index 99999: above grain (9990) and preview layer (450).
   pointer-events: none so it never blocks clicks.
   mix-blend-mode: difference inverts colours beneath it —
   white paper → dark circle, dark card → yellow circle.
───────────────────────────────────────── */
.custom-cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);       /* #E8FF00 volt yellow */
  pointer-events: none;
  z-index: 99999;

  /* Centre on the mouse point */
  transform: translate(-50%, -50%);

  /* mix-blend-mode: difference flips colours it passes over */
  mix-blend-mode: difference;

  /* Scale on hover: 0.1s — instant snap feel.
     Opacity for hide/show: 0.2s — smooth but not slow. */
  transition:
    transform 0.1s ease,
    opacity   0.2s ease;

  will-change: transform, left, top;
}

/* Hover state — scale 3× + 30% opacity = "highlighter" effect */
.custom-cursor.is-hovering {
  transform: translate(-50%, -50%) scale(3);
  opacity: 0.3;
}

/* VIEW state — yellow pill on project card hover */
.custom-cursor.is-view {
  width: auto;
  height: auto;
  mix-blend-mode: normal;
  background: var(--accent);
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 8px 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  transition:
    transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity   0.15s ease;
}

/* Pop-in: scale from 0 when entering tile */
.custom-cursor.is-view {
  animation: cursor-pop 0.22s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes cursor-pop {
  from { transform: translate(-50%, -50%) scale(0); }
  to   { transform: translate(-50%, -50%) scale(1); }
}

.cursor-label {
  display: none;
  font-family: var(--head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.custom-cursor.is-view .cursor-label {
  display: block;
}

/* Hide system cursor on project tiles (fine pointer only) */
@media (pointer: fine) {
  .proj-card { cursor: none !important; }
  .proj-card * { cursor: none !important; }
}

/* ─────────────────────────────────────────
   NAV
───────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.80);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px var(--pad-x);
}

.nav-mark {
  font-family: var(--head);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav-mark:hover { color: var(--ink-mid); }

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

.nav-link {
  font-family: var(--head);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.nav-link:hover { opacity: 0.55; }

.nav-cta {
  font-family: var(--head);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #f5f5f5;
  background: var(--ink);
  padding: 12px 24px;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.22s ease, color 0.22s ease;
}
.nav-cta:hover {
  background: var(--accent);
  color: var(--ink);
}

/* ─────────────────────────────────────────
   HERO
───────────────────────────────────────── */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px var(--pad-x) 0;
  position: relative;
  background: #ffffff;
}

/* Hero dotted grid canvas */
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.hero-headline,
.hero-frame {
  z-index: 1;
}

/* Hero headline — single centred statement */
.hero-headline {
  font-family: var(--head);
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 600;
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: #000000;
  width: 100%;
  max-width: var(--max-w);
  animation: reveal-name 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Inline profile avatar */
.hero-avatar {
  display: inline-block;
  width: 1em;
  height: 1em;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: middle;
  margin: 0 0.08em;
}

.avail-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
  50%       { box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.18); }
}

/* Scroll whisker */
.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--body);
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  animation: reveal-sub 1s 0.72s both;
}

.scroll-bar {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--ink-dim), transparent);
  transform-origin: top;
  transform: scaleY(0);
  animation: whisker 1.8s 1.5s ease-in-out infinite;
}

@keyframes whisker {
  0%   { transform: scaleY(0); transform-origin: top;    opacity: 1; }
  50%  { transform: scaleY(1); transform-origin: top;    opacity: 1; }
  100% { transform: scaleY(1); transform-origin: bottom; opacity: 0; }
}

/* Load animations */
@keyframes reveal-name {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}

@keyframes reveal-sub {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Animated underline on key phrases */
.hover-link {
  display: inline-block;
  position: relative;
}
.hover-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 100%;
  height: 2px;
  background: #000000;
  transform: scaleX(0);
  transform-origin: bottom left;
  transition: transform 0.3s ease-out;
}
.hover-link:hover::after {
  transform: scaleX(1);
}

/* ─────────────────────────────────────────
   HERO FRAME — info bar at bottom of hero viewport
───────────────────────────────────────── */
.hero-frame {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 var(--pad-x) 32px;
  animation: reveal-sub 1.2s 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-bio {
  font-family: var(--body);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
  color: rgba(0, 0, 0, 0.55);
  text-align: center;
  max-width: 560px;
  margin: 0 auto clamp(24px, 3vh, 40px);
}
.hero-frame-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-w);
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  padding-top: 16px;
}
.hero-frame-left,
.hero-frame-right {
  font-family: var(--body);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.4);
}
.hero-frame-right {
  text-decoration: none;
  transition: color 0.2s ease;
}
.hero-frame-right:hover {
  color: #000000;
}

/* ─────────────────────────────────────────
   DESIGN WORK — editorial section header + card grid
───────────────────────────────────────── */
.work {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(64px, 10vh, 120px) var(--pad-x) clamp(64px, 10vh, 112px);
}
#work-grid {
  scroll-margin-top: 80px;
}

/* Header: massive editorial "DESIGN WORK / '25" */
.work-header {
  display: flex;
  align-items: baseline;
  justify-content: center;
  margin-bottom: clamp(32px, 5vh, 56px);
}

.work-title {
  font-family: var(--head);
  font-size: clamp(44px, 8.5vw, 120px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.85;
  color: var(--ink);
  text-transform: uppercase;
}


/* Project grid — 3-col desktop, 1-col mobile */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* ── Card — deep charcoal container ── */
.proj-card {
  display: flex;
  flex-direction: column;
  background: #111111;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s ease;
}
.proj-card:hover {
  border-color: rgba(255, 255, 255, 0.10);
}

/* ── Image wrapper — 14px inset mat, clips the zoom ── */
.proj-card-img-wrap {
  margin: 8px;
  border-radius: 12px;
  overflow: hidden;   /* clips scale(1.02) cleanly within rounded corners */
  flex-shrink: 0;
}

/* ── Image — zooms on hover only ── */
.proj-card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  transform: scale(1);
  transform-origin: center center;
  transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}
.proj-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.proj-card:hover .proj-card-img {
  transform: scale(1.02);
}

/* Subtle grain on image */
.proj-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23g)' opacity='0.10'/%3E%3C/svg%3E");
  background-size: 200px;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

/* Per-project gradient backgrounds */
.proj-img-espn      { background: linear-gradient(140deg, #07003a, #3a1fa8 55%, #7b2fff); }
.proj-img-score     { background: linear-gradient(140deg, #000d22, #0a3a6e 55%, #1a6fc4); }
.proj-img-alliance  { background: linear-gradient(140deg, #000510, #0d2b5e 55%, #1a4a8a); }
.proj-img-dort      { background: linear-gradient(140deg, #120000, #5a0000 55%, #9b1a1a); }
.proj-img-parade    { background: linear-gradient(140deg, #0e0800, #5a3000 55%, #c47a10); }
.proj-img-hoop      { background: linear-gradient(140deg, #120500, #6b2800 55%, #c45200); }
.proj-img-cp3       { background: linear-gradient(140deg, #12000a, #6b0030 55%, #c40060); }
.proj-img-brookwood { background: linear-gradient(140deg, #001210, #003d2d 55%, #006b4a); }
.proj-img-personal  { background: linear-gradient(140deg, #0a0800, #2e1a00 55%, #5c3800); }

/* ── Card footer: [title + service] left / [year] right ── */
.proj-card-foot {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px 14px;
}

/* Left column: title stacked above service */
.proj-meta-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

/* Title — full white */
.proj-card-name {
  font-family: var(--head);
  font-size: clamp(12px, 1.0vw, 14px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.95);
}

/* Service — dimmed */
.proj-card-service {
  font-family: var(--body);
  font-size: clamp(10px, 0.8vw, 11px);
  font-weight: 300;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.40);
}

/* Year — full white, right-aligned, top-aligned with title */
.proj-card-year {
  font-family: var(--head);
  font-size: clamp(12px, 1.0vw, 14px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.95);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ─────────────────────────────────────────
   ABOUT SECTION — Dousan-style split layout
───────────────────────────────────────── */
.about-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(80px, 10vh, 140px) var(--pad-x) 0;
  text-align: center;
  border-top: 1px solid #e5e5e5;
}

.about-title {
  font-family: var(--head);
  font-size: clamp(44px, 8.5vw, 120px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.85;
  color: var(--ink);
  text-transform: uppercase;
  margin-bottom: clamp(40px, 6vh, 64px);
}

.about-content {
  width: 100%;
}

.about-text {
  font-family: var(--head);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: -0.01em;
  color: #1D1D1F;
  margin-bottom: 28px;
  text-align: center;
}
.about-text:last-of-type {
  margin-bottom: 0;
}

/* Chips groups */
.about-chips-group {
  margin-top: clamp(48px, 6vh, 72px);
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.about-chips-label {
  font-family: var(--body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #86868b;
  display: block;
  margin-bottom: 14px;
}
.about-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.about-chip {
  font-family: var(--head);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: #424245;
  border: 1px solid #e5e5e5;
  padding: 6px 16px;
  border-radius: 999px;
}

/* Scroll-reveal animation */
.reveal-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── EXPERIENCE LIST ─────────────────────────────────── */
.exp-list {
  margin-top: clamp(48px, 6vh, 72px);
}
.exp-row {
  cursor: pointer;
  margin-left: -1.5rem;
  margin-right: -1.5rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  border-radius: 12px;
  transition: background-color 0.3s ease;
}
.exp-row + .exp-row {
  border-top: 1px solid #e5e5e5;
}
.exp-list > .exp-row:first-child {
  border-top: 1px solid #e5e5e5;
}
.exp-list > .exp-row:last-child {
  border-bottom: 1px solid #e5e5e5;
}
.exp-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
}
.exp-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}
.exp-company {
  font-family: var(--head);
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #1D1D1F;
}
.exp-role {
  font-family: var(--body);
  font-size: 15px;
  font-weight: 400;
  color: #424245;
}
.exp-date {
  font-family: var(--body);
  font-size: 13px;
  font-weight: 300;
  color: #86868b;
  letter-spacing: 0.02em;
}
.exp-toggle {
  font-family: var(--head);
  font-size: 28px;
  font-weight: 300;
  color: #86868b;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  user-select: none;
}
.exp-row.is-open .exp-toggle {
  transform: rotate(45deg);
}
.exp-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s ease;
}
.exp-row.is-open .exp-body {
  grid-template-rows: 1fr;
}
.exp-body > p {
  overflow: hidden;
  font-family: var(--body);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
  color: #424245;
  text-align: left;
  padding: 0 0 0;
}
.exp-row.is-open .exp-body > p {
  padding: 0 0 24px;
  margin-top: -12px;
}

/* Resume CTA — matches .nav-cta */
.exp-cta-row {
  display: flex;
  justify-content: center;
  padding: clamp(60px, 8vh, 100px) 0;
}
.exp-cta {
  font-family: var(--head);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #f5f5f5;
  background: var(--ink);
  padding: 12px 24px;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.22s ease, color 0.22s ease;
}
.exp-cta:hover {
  background: var(--accent);
  color: var(--ink);
}

/* ─────────────────────────────────────────
   DARK ISLAND — Statement / Services (legacy)
───────────────────────────────────────── */
.about-card {
  max-width: calc(var(--max-w) - var(--pad-x) * 2);
  margin: 0 auto 120px;
  background: var(--card-bg);
  border-radius: 40px;
  padding: clamp(48px, 6vw, 80px);
  position: relative;
  overflow: hidden;

  box-shadow:
    0  1px  0 rgba(255, 255, 255, 0.04) inset,
    0 40px 80px rgba(0, 0, 0, 0.08),
    0  8px 24px rgba(0, 0, 0, 0.06);
}

/* Interior grain */
.about-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23grain)'/%3E%3C/svg%3E");
  background-size: 300px;
  opacity: 0.035;
  mix-blend-mode: overlay;
  border-radius: 40px;
  pointer-events: none;
  z-index: 0;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr 0.6fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
  position: relative;
  z-index: 1;
}

.card-eyebrow {
  font-family: var(--body);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 1.00);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-eyebrow::before {
  content: '—';
  font-weight: 300;
  color: rgba(255, 255, 255, 0.40);
  letter-spacing: 0;
}

.card-body-text {
  font-family: var(--head);
  font-size: clamp(20px, 2.4vw, 32px);
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 24px;
}
.card-body-text:last-of-type { margin-bottom: 0; }
.card-body-text em {
  font-style: normal;
  color: #ffffff;
  font-weight: 600;
}

.card-cta-row {
  margin-top: clamp(32px, 4vw, 48px);
  display: flex;
  align-items: center;
  gap: 20px;
}

.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--head);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--card-bg);
  background: rgba(255, 255, 255, 0.9);
  padding: 12px 24px;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.22s ease, color 0.22s ease, gap 0.2s ease;
}
.card-cta:hover {
  background: var(--accent);
  color: var(--card-bg);
  gap: 14px;
}

.card-link {
  font-family: var(--body);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  transition: color 0.2s ease;
}
.card-link:hover { color: var(--accent); }

/* ── Details table (right column) ────── */
.card-details {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-top: 4px;
  justify-content: space-between;
}

/* Expertise block */
.expertise-label {
  font-family: var(--body);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.22);
  margin-bottom: 14px;
}

.expertise-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.expertise-tag {
  font-family: var(--head);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.70);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 5px 13px;
  border-radius: 999px;
}

.details-table {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.details-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.details-key {
  font-family: var(--body);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.28);
  flex-shrink: 0;
}

.details-val {
  font-family: var(--head);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.78);
  text-align: right;
  display: flex;
  align-items: center;
  gap: 7px;
}

/* Green dot next to "Available for Work" */
.details-avail-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  animation: pulse-dot 2.4s ease-in-out infinite;
}

/* Connect row */
.details-connect {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.details-connect-label {
  font-family: var(--body);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.22);
}

.details-connect-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.details-link {
  display: inline-flex;
  align-items: center;
  font-family: var(--head);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.70);
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}
.details-link:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.20);
  color: rgba(255, 255, 255, 1.00);
}

/* Card bottom strip */
.card-bottom {
  margin-top: clamp(36px, 5vw, 52px);
  padding-top: clamp(24px, 3vw, 32px);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.card-bottom-note,
.card-bottom-year {
  font-family: var(--body);
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.18);
}
.card-bottom-year { font-family: var(--head); letter-spacing: 0.08em; }

/* ─────────────────────────────────────────
   TECHNOGRAPHIC FOOTER
───────────────────────────────────────── */
.site-footer {
  padding: 0;
}

/* Full-width connect pill row */
.connect-row {
  display: flex;
  gap: 12px;
  margin-top: 60px;
  margin-bottom: 40px;
  padding: 0 var(--pad-x);
}

.connect-pill {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--head);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  padding: 40px 0;
  border-radius: 999px;
  border: 1px solid rgba(18, 18, 18, 0.12);
  background: #f5f5f5;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.connect-pill:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}

/* Copyright strip */

/* Top CTA row */
.footer-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: clamp(56px, 8vh, 96px);
}

.footer-kicker {
  font-family: var(--body);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 14px;
}

.footer-head {
  font-family: var(--head);
  font-size: clamp(36px, 5.5vw, 80px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.86;
  color: var(--ink);
}

.footer-btn {
  flex-shrink: 0;
  font-family: var(--body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #f5f5f5;
  background: var(--ink);
  padding: 14px 32px;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.22s ease, color 0.22s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.footer-btn:hover {
  background: var(--accent);
  color: var(--ink);
}

/* Stack grid */
.footer-stack {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 4vw, 48px);
  border-top: 1px solid var(--line);
  padding-top: clamp(32px, 5vh, 48px);
  margin-bottom: clamp(32px, 5vh, 48px);
}

.stack-label {
  font-family: var(--body);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 16px;
}

.stack-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stack-list li {
  font-family: var(--head);
  font-size: clamp(12px, 1.1vw, 14px);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink-mid);
  transition: color 0.2s ease;
}
.stack-list li:hover { color: var(--ink); }

.stack-links a {
  text-decoration: none;
  color: var(--ink-mid);
  transition: color 0.2s ease;
}
.stack-links a:hover { color: var(--ink); }

/* Bottom strip */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 24px var(--pad-x) 40px;
}

.footer-copy,
.footer-version,
.footer-top {
  font-family: var(--body);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--ink-dim);
}

.footer-top {
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-top:hover { color: var(--ink); }

/* ─────────────────────────────────────────
   RESPONSIVE — collapse nav + footer on mobile
───────────────────────────────────────── */

/* Tablet — 2-col grid */
@media (max-width: 1100px) {
  .proj-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

/* Mobile */
@media (max-width: 768px) {
  html, body { overflow: auto; } /* native scroll on mobile */
  #scroll-root { position: static; transform: none !important; background: none; }
  .reveal-footer { position: static; }
  .reveal-footer-links { flex-direction: column; gap: 16px; }


  .card-grid { grid-template-columns: 1fr; }
  .about-section { padding-top: 10vh; }
  .details-connect-links { flex-wrap: wrap; gap: 8px; }
  .connect-row { flex-direction: column; }
  .connect-pill { flex: unset; width: 100%; }

  .footer-cta   { flex-direction: column; align-items: flex-start; }
  .footer-stack { grid-template-columns: repeat(2, 1fr); }

  .proj-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* ── HAMBURGER MENU ─────────────────────────────────── */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-burger.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-burger.is-active span:nth-child(2) {
  opacity: 0;
}
.nav-burger.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9998;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.mobile-menu.is-open {
  display: flex;
}
.mobile-menu-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.mobile-menu-links a {
  font-family: var(--head);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.mobile-menu-links a:hover {
  opacity: 0.5;
}

@media (max-width: 768px) {
  .nav-burger { display: flex; }
  .nav-links { display: none; }
}

/* ── DISABLE CUSTOM CURSOR ON TOUCH / SMALL SCREENS ── */
@media (max-width: 1024px), (pointer: coarse) {
  html, body { cursor: auto; }
  * { cursor: auto !important; }
  .custom-cursor { display: none !important; }
}
