/* ═══════════════════════════════════════════════════════════════
   style.css — mergen.design
   "Behavioral Dark Mode"
══════════════════════════════════════════════════════════════ */

/* ─── 0. CSS Custom Properties ─────────────────────────────── */
:root {
  --grad-start:  #FFD44D;
  --grad-end:    #FF6B00;
  --grad-brand:  linear-gradient(to right, #FFD44D, #FF6B00);

  --black:        #000000;
  --white:        #ffffff;
  --white-dim:    rgba(255, 255, 255, 0.55);
  --white-ghost:  rgba(255, 255, 255, 0.08);
  --white-edge:   rgba(255, 255, 255, 0.14);

  --font-display: 'Plus Jakarta Sans', 'Helvetica Neue', sans-serif;
  --font-serif:   'Cormorant', 'Georgia', serif;
  --font-body:    'Onest', 'Helvetica Neue', sans-serif;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

/* ─── 1. Reset & Base ───────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  background-color: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  cursor: none; /* replaced by custom cursor */
}

main {
  background: #0c0c0c;
}

/* keep native cursor for touch devices */
@media (hover: none) {
  body { cursor: auto; }
  .cursor,
  .cursor-follower { display: none; }
}

/* ─── 2. Custom Cursor ──────────────────────────────────────── */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--white);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.08s var(--ease-out-expo),
              opacity   0.2s ease;
  will-change: transform;
}

.cursor-follower {
  position: fixed;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border: 1px solid var(--white-edge);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.35s var(--ease-out-expo),
              width     0.3s var(--ease-out-quart),
              height    0.3s var(--ease-out-quart),
              border-color 0.3s ease,
              opacity   0.2s ease;
  will-change: transform;
}

/* cursor hover state — applied via JS on interactive elements */
body.cursor-hover .cursor {
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
}
body.cursor-hover .cursor-follower {
  width: 60px;
  height: 60px;
  border-color: rgba(255, 255, 255, 0.35);
}

/* ─── 3. Site Header ────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 1.6rem clamp(2rem, 6vw, 7rem);
  /* subtle fade-in from top */
  animation: headerFadeIn 1s var(--ease-out-expo) 0.6s both;
}

@keyframes headerFadeIn {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  outline-offset: 6px;
}

.site-logo img {
  height: 32px;
  width: auto;
  display: block;
  /* keep SVG crisp on all densities */
  image-rendering: auto;
  filter: brightness(1);
  transition: opacity 0.3s ease;
}

.site-logo:hover img {
  opacity: 0.7;
}

/* ─── 4. Hero Scroll Track ─────────────────────────────────── */
.hero-track {
  /* wrapper kept for structure, no scroll range needed */
}

/* ─── 4b. Hero Section ──────────────────────────────────────── */
#hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  display: flex;
  align-items: center;
  background-color: var(--black);
}

/* ── 3a. Background Layer ───────────────────────────────────── */
/*
   The image lives on .hero-bg — never on the section itself.
   background-size: auto 100% keeps the 3D scene full-height
   and anchored to the right edge, so nothing gets cropped.
*/
.hero-bg {
  position: absolute;
  inset: 0;
  background-color: var(--black);
  z-index: 0;
  overflow: hidden;
}

.hero-bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 100%;
  width: auto;
  min-width: 100%;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
  user-select: none;
}

/*
   Gradient overlay: hard black on the left fading to
   transparent at ~58% — seamlessly merging image into bg.
*/
.hero-bg-blend {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    #000000 0%,
    #000000 35%,
    rgba(0, 0, 0, 0.85) 50%,
    rgba(0, 0, 0, 0.4)  60%,
    transparent         72%
  );
  z-index: 1;
}

/* ── 3b. Mouse Spotlight Layer ──────────────────────────────── */
.hero-spotlight {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  /* initial state: invisible — JS populates the radial-gradient */
  background: transparent;
  transition: background 0.05s linear;
  mix-blend-mode: screen;
}

/* ── 3c. Hero Content ───────────────────────────────────────── */
.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;

  /* keep text in the left ~50% — never overlapping the 3D icons */
  width: 100%;
  max-width: 52%;
  padding: 0 0 0 clamp(2rem, 6vw, 7rem);
  margin-top: -16px;

  /* entrance animation */
  opacity: 0;
  transform: translateY(28px);
  animation: heroFadeUp 1.1s var(--ease-out-expo) 0.3s forwards;
}

@keyframes heroFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Hero Brand row (logo + divider + socials) ──────────────── */
.hero-brand {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 2.5rem;
}

.hero-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  outline-offset: 6px;
}

.hero-logo img {
  height: 40px;
  width: auto;
  display: block;
}

.hero-brand-divider {
  display: block;
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
}

.hero-socials {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
  outline-offset: 6px;
}

.hero-social-link:hover {
  transform: translateY(-2px);
}

.hero-social-link img,
.hero-social-link svg {
  width: 22px;
  height: 22px;
  display: block;
}

/* ── Burger button (hidden on desktop) ──────────────────────── */
.burger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: none;
  padding: 6px;
  margin-left: auto;
  flex-shrink: 0;
}

.burger-btn span {
  display: block;
  width: 26px;
  height: 2px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              opacity   0.25s ease,
              width     0.3s ease;
  transform-origin: center;
}

.burger-btn.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.burger-btn.is-open span:nth-child(2) {
  opacity: 0;
  width: 0;
}
.burger-btn.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 768px) {
  .hero-socials,
  .hero-brand-divider {
    display: none;
  }
  .burger-btn {
    display: flex;
  }
}

html.nav-open,
html.nav-open body {
  overflow: hidden;
  touch-action: none;
}

/* ── Close button inside overlay ───────────────────────────── */
.mobile-nav-close {
  position: absolute;
  top: clamp(1.2rem, 4vh, 2rem);
  right: clamp(2rem, 6vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: none;
  transition: color 0.2s ease;
}

.mobile-nav-close:hover {
  color: #fff;
}

/* ── Mobile Nav Overlay ─────────────────────────────────────── */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(4, 4, 4, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  padding: clamp(5rem, 12vh, 7rem) clamp(2rem, 6vw, 3rem) 3rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav.is-open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
  height: 100%;
}

.mobile-nav-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.28);
  text-align: right;
}

/* Nav links */
.mobile-nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-nav-links li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-nav-link {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 7vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  padding: 0.65rem 0;
  text-align: right;
  transition: color 0.2s ease;
}

.mobile-nav-link:hover {
  color: #fff;
}

/* Social links in nav */
.mobile-nav-socials {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

.mobile-nav-social {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.mobile-nav-social:hover {
  opacity: 0.7;
}

.mobile-nav-social img,
.mobile-nav-social svg {
  width: 24px;
  height: 24px;
  display: block;
  flex-shrink: 0;
}

.mobile-nav-social span {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
}

/* CTA */
.mobile-nav-cta {
  display: inline-block;
  margin-top: auto;
  align-self: flex-end;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  background: linear-gradient(to right, #FFD44D, #ff8228);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding-bottom: 0.1em;
}


.hero-headline {
  font-size: clamp(2.4rem, 4.8vw, 5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--white);
  margin: 0;
  overflow: visible; /* prevent descender clipping */
}

/* Sans-serif part — clean, structural */
.headline-sans {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-style: normal;
  letter-spacing: -0.02em;
  color: var(--white);
  line-height: 1.0;
}

/* Serif italic part — the emotional punch */
.headline-serif {
  display: block;
  width: fit-content; /* gradient spans only the text width, not the container */
  font-family: var(--font-serif);
  font-weight: 600;
  font-style: italic;
  font-size: 1.3em;
  letter-spacing: -0.01em;
  line-height: 1.0;
  margin-top: -0.7em;
  padding-bottom: 0.12em;
  background: linear-gradient(to right, #FFD44D, #ff8228);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Sub-headline ───────────────────────────────────────────── */
.hero-sub {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--white-dim);
  max-width: 550px;
}

/* ── CTA Actions row ────────────────────────────────────────── */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

/* ── Primary CTA Button ─────────────────────────────────────── */
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.9rem;
  border: 1px solid var(--white-edge);
  background: transparent;
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: clamp(0.72rem, 1vw, 0.82rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  transition:
    border-color 0.35s ease,
    box-shadow   0.35s ease,
    color        0.35s ease;
}

/* fill sweep on hover */
.cta-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s var(--ease-out-expo);
  z-index: 0;
}

.cta-btn .cta-label,
.cta-btn .cta-arrow {
  position: relative;
  z-index: 1;
  transition: color 0.35s ease;
}

.cta-btn:hover {
  border-color: var(--white);
  color: var(--black);
}

.cta-btn:hover::before {
  transform: scaleX(1);
}

.cta-arrow {
  display: flex;
  align-items: center;
  transition: transform 0.3s var(--ease-out-expo);
}

.cta-btn:hover .cta-arrow {
  transform: translateX(4px);
}

/* ── Ghost link ─────────────────────────────────────────────── */
.ghost-link {
  font-family: var(--font-body);
  font-size: clamp(0.72rem, 1vw, 0.82rem);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-dim);
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

.ghost-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--white);
  transition: width 0.4s var(--ease-out-expo);
}

.ghost-link:hover {
  color: var(--white);
}

.ghost-link:hover::after {
  width: 100%;
}

/* ── Hero Stack (tool list) — bottom right ──────────────────── */
.hero-stack {
  position: absolute;
  bottom: clamp(3rem, 3.5vh, 3.5rem);
  left: 52%;
  width: 50%;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  pointer-events: none;
}

.hero-stack-label {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.28);
  white-space: nowrap;
}

.hero-stack-list {
  list-style: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0;
  pointer-events: all;
}

.hero-stack-list li {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.38);
  padding: 0 0.75rem;
  position: relative;
  transition: color 0.25s ease;
  white-space: nowrap;
}

.hero-stack-list li + li::before {
  content: '·';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.2);
}

.hero-stack-list li:last-child {
  padding-right: 0;
}

.hero-stack-list li:hover {
  color: rgba(255, 255, 255, 0.75);
}

/* ── Scroll Hint ────────────────────────────────────────────── */
.hero-scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 1rem;
}

.scroll-line {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--white-dim), transparent);
  animation: scrollLineAnim 2s ease-in-out infinite;
}

@keyframes scrollLineAnim {
  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; }
}

.scroll-text {
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white-dim);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

/* ─── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: #000;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: clamp(4rem, 8vh, 6rem) clamp(2rem, 6vw, 7rem) 0;
}

.footer-inner {
  max-width: 1600px;
  margin: 0 auto;
}

/* ── Top row ──────────────────────────────────────────────── */
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr 1.4fr;
  gap: 48px;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* ── Brand col ────────────────────────────────────────────── */
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.footer-logo {
  height: 32px;
  width: auto;
  display: block;
  align-self: flex-start;
}

.footer-tagline {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.45);
  max-width: 320px;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.footer-socials a:hover {
  transform: translateY(-2px);
}

.footer-socials img,
.footer-socials svg {
  width: 20px;
  height: 20px;
  display: block;
}

/* ── Content cols ─────────────────────────────────────────── */
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 4px;
}

.footer-col-label {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.28);
  margin-bottom: 4px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a,
.footer-col ul li span {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s ease;
  line-height: 1.4;
}

.footer-col ul li a:hover {
  color: rgba(255, 255, 255, 0.9);
}

.footer-cta {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  background: linear-gradient(to right, #FFD44D, #ff8228);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: opacity 0.2s ease;
}

.footer-cta:hover {
  opacity: 0.75;
}

/* ── Bottom bar ───────────────────────────────────────────── */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0 2rem;
}

.footer-copy,
.footer-made {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 540px) {
  .footer-link-sub {
    display: none;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-top > .footer-col:last-child {
    grid-column: 1 / -1;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

/* ─── Next Section placeholder ──────────────────────────────── */
.next-section {
  min-height: 100vh;
  background: var(--black);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.placeholder-inner {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity   0.9s var(--ease-out-expo),
    transform 0.9s var(--ease-out-expo);
}

.placeholder-inner.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.placeholder-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white-dim);
  margin-bottom: 1.5rem;
}

.placeholder-headline {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 4.2rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--white);
}

/* ─── Works Deck ─────────────────────────────────────────────── */
#works-deck {
  height: 720vh;
  background: var(--black);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 0;
}

/* ── Philosophy — Scroll-scrubbed text reveal ─────────────── */
#philosophy {
  height: 200vh;
  background: #0c0c0c;
}

.philosophy-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(1.5rem, 5vw, 7rem);
  overflow: hidden;
}

.reveal-text {
  text-align: center;
  max-width: 980px;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

/* Breather lines — Cormorant italic, elegant + smaller */
.text-line.line-1,
.text-line.line-3 {
  font-family: 'Cormorant', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.75rem, 4.5vw, 3.4rem);
  letter-spacing: -0.01em;
  line-height: 1.25;
}

/* Impact lines — Plus Jakarta Sans, massive + heavy */
.text-line.line-2,
.text-line.line-4 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 9vw, 7rem);
  letter-spacing: -0.045em;
  line-height: 1.0;
}

@media (max-width: 480px) {
  .text-line.line-1,
  .text-line.line-3 {
    font-size: 1.5rem;
  }
  .text-line.line-2,
  .text-line.line-4 {
    font-size: 2.75rem;
  }
  .reveal-text {
    gap: 0.5rem;
  }
}

.reveal-word {
  color: #333333;
  transition: color 0.1s ease-out;
  display: inline;
}

/* ── Arsenal Grid ───────────────────────────────────────────── */
#arsenal-grid {
  background: #0a0a0a;
  padding: clamp(5rem, 10vw, 8rem) clamp(2rem, 6vw, 7rem);
  position: relative;
}

@media (min-width: 601px) {
  #arsenal-grid {
    border-radius: 50% 50% 0 0 / 160px 160px 0 0;
  }
}

.arsenal-header {
  padding-top: 64px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 3rem;
}

.arsenal-label {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.28);
}

.arsenal-title {
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
}

.arsenal-title-sans {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-style: normal;
  color: var(--white);
}

.arsenal-title-serif {
  display: block;
  font-family: var(--font-serif);
  font-weight: 600;
  font-style: italic;
  font-size: calc(clamp(1.8rem, 3.2vw, 3rem) + 16px);
  letter-spacing: -0.01em;
  line-height: 1.05;
  width: fit-content;
  background: linear-gradient(to right, #FFD44D, #ff8228);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bento-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.bento-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  background-color: #0a0a0c;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  overflow: hidden;
  min-height: 250px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.bento-card-img {
  flex: 1;
  overflow: hidden;
  display: block;
  min-width: 0;
}

.bento-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bento-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.card-content-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
  width: 370px;
  padding: 32px;
  text-align: left;
  gap: 1.25rem;
}

.bento-card-inner {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.bento-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.bento-desc {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  color: #A0A0A0;
}

.bento-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.bento-pill {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 0.28rem 0.72rem;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .bento-container {
    grid-template-columns: 1fr;
  }

  /* Mobile: stack text on top, image below */
  .bento-card {
    flex-direction: column;
    min-height: auto;
  }

  .card-content-left {
    width: 100%;
    padding: 28px 24px 24px;
    justify-content: flex-start;
  }

  .bento-card-img {
    padding-top: 16px;
    width: 100%;
    height: auto;
    flex: none;
  }

  .bento-card-img img {
    width: 100%;
    height: auto;
    object-fit: unset;
  }
}

/* ── Skill Cloud ────────────────────────────────────────────── */
#skill-cloud {
  background: #0a0a0a;
  padding: clamp(5rem, 10vw, 8rem) clamp(2rem, 6vw, 7rem);
}

.skill-cloud-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 3rem;
}

.skill-cloud-label {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.28);
}

.skill-cloud-title {
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
}

.skill-cloud-title-sans {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-style: normal;
  color: var(--white);
}

.skill-cloud-title-serif {
  display: inline-block;
  font-family: var(--font-serif);
  font-weight: 600;
  font-style: italic;
  font-size: calc(clamp(1.8rem, 3.2vw, 3rem) + 16px);
  letter-spacing: -0.01em;
  line-height: 1.15;
  width: fit-content;
  padding-bottom: 0.1em;
  background: linear-gradient(to right, #FFD44D, #ff8228);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.skills-wrapper {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  width: 100%;
}

@media (max-width: 1849px) {
  .skills-wrapper {
    grid-template-columns: repeat(4, 320px);
    justify-content: center;
  }
}

@media (max-width: 1475px) {
  .skills-wrapper {
    grid-template-columns: repeat(3, 320px);
  }
}

@media (max-width: 1099px) {
  .skills-wrapper {
    grid-template-columns: repeat(2, 320px);
  }
}

.skill-mini-card {
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 20px;
  padding-right: 72px;
  background-color: rgba(255, 255, 255, 0.03);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  color: #E0E0E0;
  text-align: left;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.skill-mini-card span {
  max-width: 150px;
  display: block;
}

@media (max-width: 729px) {
  .desktop-br {
    display: none;
  }
}

.skill-mini-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

@media (max-width: 729px) {
  .skills-wrapper {
    grid-template-columns: 330px;
    justify-content: flex-start;
    gap: 16px;
  }
  .skills-wrapper .skill-mini-card:nth-child(9),
  .skills-wrapper .skill-mini-card:nth-child(10) {
    grid-column: auto;
  }
  .skill-mini-card {
    font-size: 14px;
    height: 96px;
    padding-right: 56px;
    background-size: cover;
  }
  .skill-mini-card span {
    max-width: 150px;
    display: block;
  }
}

/* ── About Section ─────────────────────────────────────────── */
#about-section {
  background: #0a0a0a;
  padding: clamp(5rem, 15vh, 9rem) clamp(2rem, 6vw, 7rem);
}

.about-container {
  display: grid;
  grid-template-columns: 4fr 6fr;
  gap: 64px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

/* ── Left Column — Image ──────────────────────────────────── */
.about-image-wrapper {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  position: relative;
}

.about-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.1);
  display: block;
}

/* ── Right Column — Content ───────────────────────────────── */
.about-title {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 32px;
}

.about-title-plain {
  color: #ffffff;
}

.about-title-gradient {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 64px;
  font-weight: 600;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1.1;
  padding-bottom: 0.05em;
  background: linear-gradient(to right, #FFD44D, #ff8228);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-stats {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #A0A0A0;
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.about-stats span {
  color: #ffffff;
  margin-right: 8px;
}

.about-bio {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.75;
  color: #C8C8C8;
}

/* ── About Certifications ────────────────────────────────── */
.about-certs {
  margin-top: 40px;
}

.about-certs-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.28);
  margin-bottom: 16px;
}

.about-certs-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.about-certs-list li {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.about-certs-list li:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.about-certs-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  text-decoration: none;
  transition: opacity 0.25s ease;
}

.about-certs-list a:hover {
  opacity: 0.7;
}

.about-certs-list a:hover .cert-arrow {
  transform: translate(2px, -2px);
}

.cert-name {
  flex: 1;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: #E0E0E0;
  line-height: 1.3;
}

.cert-meta {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.3);
  white-space: nowrap;
}

.cert-arrow {
  color: rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
  transition: transform 0.25s ease, color 0.25s ease;
}

.about-certs-list a:hover .cert-arrow {
  color: rgba(255, 255, 255, 0.7);
  transform: translate(2px, -2px);
}

@media (max-width: 768px) {
  .about-certs-list a {
    align-items: flex-start;
    gap: 8px;
  }

  .cert-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
  }

  .cert-name {
    white-space: normal;
  }

  .cert-meta {
    white-space: normal;
  }

  .cert-arrow {
    margin-top: 2px;
    flex-shrink: 0;
  }
}

/* image duplicate: visible only on mobile */
.about-image-mobile {
  display: none;
}

/* ── About — Mobile ──────────────────────────────────────── */
@media (max-width: 768px) {
  .about-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-col-left {
    display: none;
  }

  .about-col-right {
    order: 1;
  }

  .about-image-mobile {
    display: block;
    aspect-ratio: 4 / 3;
    max-width: 100%;
    margin-top: 24px;
    margin-bottom: 24px;
  }

  /* — All section headlines: white 28px, gradient 40px — */
  .arsenal-title,
  .skill-cloud-title {
    font-size: 28px;
  }

  .arsenal-title-serif,
  .skill-cloud-title-serif {
    font-size: 40px;
  }

  .about-title {
    font-size: 28px;
  }

  .about-title-gradient {
    font-size: 40px;
  }
}

.table-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2.5rem;
  overflow: hidden;
  padding: 0 clamp(2rem, 6vw, 7rem);
  /* needed for absolute sidebar */
  position: sticky;
}

/* ── Deck Sidebar (desktop only) ─────────────────────────────── */
.deck-sidebar {
  position: absolute;
  right: clamp(2rem, 6vw, 7rem);
  top: 50%;
  transform: translateY(calc(-50% + 80px));
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  padding: 1.25rem 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.deck-sidebar-item {
  width: 96px;
  height: 96px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.15; /* JS overrides this per-frame */
  transition:
    border-color  0.55s var(--ease-out-expo),
    background    0.55s var(--ease-out-expo),
    box-shadow    0.55s var(--ease-out-expo);
}

.deck-sidebar-item.is-active {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 24px rgba(255, 212, 77, 0.1);
}

.sidebar-logo {
  width: 68px;
  height: 68px;
  object-fit: contain;
  display: block;
}

.sidebar-logo-placeholder {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 1024px) {
  .deck-sidebar { display: none; }
}

/* ── Deck Heading ─────────────────────────────────────────────── */
.deck-heading {
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.deck-label {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
}

.deck-title {
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
}

.deck-title-sans {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-style: normal;
  color: var(--white);
}

.deck-title-serif {
  display: block;
  font-family: var(--font-serif);
  font-weight: 600;
  font-style: italic;
  font-size: calc(clamp(1.8rem, 3.2vw, 3rem) + 16px);
  letter-spacing: -0.01em;
  line-height: 1.05;
  width: fit-content;
  background: linear-gradient(to right, #FFD44D, #ff8228);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.deck-container {
  position: relative;
  width: 100%;
  max-width: 1100px;
  height: 600px;
  overflow: visible;
}

/* Shrink deck on mid-range desktops so it never overlaps the sidebar */
@media (max-width: 1550px) {
  .deck-container {
    max-width: min(1100px, calc(100vw - clamp(2rem, 6vw, 7rem) * 2 - 240px - 2.5rem));
  }
  .deck-heading {
    max-width: min(1100px, calc(100vw - clamp(2rem, 6vw, 7rem) * 2 - 240px - 2.5rem));
  }
}

/* ── Work Cards ───────────────────────────────────────────────── */
.work-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0c0c0c;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 32px 96px rgba(0, 0, 0, 0.7),
    0 8px 32px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  will-change: transform;
  backface-visibility: hidden;
}

/* Stacking order — card 5 on top, JS sets initial translateY dynamically */
.work-card:nth-child(1) { z-index: 1; }
.work-card:nth-child(2) { z-index: 2; }
.work-card:nth-child(3) { z-index: 3; }
.work-card:nth-child(4) { z-index: 4; }
.work-card:nth-child(5) { z-index: 5; }
.work-card:nth-child(6) { z-index: 6; }

/* ── Card Header ──────────────────────────────────────────────── */
.card-header {
  height: 70px;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.02);
  flex-shrink: 0;
}

.card-num {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.28);
}

.card-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--white);
  flex: 1;
}

.card-tag {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  padding: 0.3em 0.9em;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  white-space: nowrap;
}

/* Year in card header — hidden on desktop, shown on mobile */
.card-header-year {
  display: none;
}

/* ── Card Content ─────────────────────────────────────────────── */
.card-content {
  position: relative;
  display: flex;
  height: calc(100% - 70px);
  padding: 2.5rem 2rem 2rem;
  gap: 2rem;
}

.card-content-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.card-desc {
  font-family: var(--font-body);
  font-size: clamp(0.88rem, 1.4vw, 1rem);
  font-weight: 300;
  line-height: 1.75;
  color: var(--white-dim);
  max-width: 460px;
}

.card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

/* ── Card CTA link ────────────────────────────────────────────── */
.card-cta {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.5rem;
  margin-top: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
  padding: 8px 17.6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
}

.card-cta::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: linear-gradient(to right, #FFD44D, #ff8228);
  transition: width 0.4s var(--ease-out-expo);
}

.card-cta:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.card-cta:hover::after {
  width: 100%;
}

.card-cta svg {
  transition: transform 0.3s var(--ease-out-expo);
}

.card-cta:hover svg {
  transform: translateX(4px);
}

.card-year {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.28);
}

.card-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.card-skills span {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.07em;
  color: rgba(255, 255, 255, 0.42);
  padding: 0.28em 0.75em;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 4px;
}

/* ── Card Visual (right column) ───────────────────────────────── */
.card-visual {
  /* maintain original 1720×900 proportion */
  width: min(600px, 55%);
  aspect-ratio: 1720 / 900;
  flex-shrink: 1;
  align-self: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: block;
  margin-top: -160px; /* lift image up on desktop */
  transition: border-color 0.3s ease;
}

.card-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  border-radius: 10px;
  transition: transform 0.5s var(--ease-out-expo);
}

.card-visual:hover img {
  transform: scale(1.04);
}

/* Hover overlay */
.card-visual-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(0, 0, 0, 0);
  transition: background 0.35s ease, opacity 0.35s ease;
  opacity: 0;
  z-index: 2;
  border-radius: 10px;
}

.card-visual:hover .card-visual-overlay {
  background: rgba(0, 0, 0, 0.55);
  opacity: 1;
}

.card-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 212, 77, 0.07) 0%,
    rgba(255, 107, 0, 0.05) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.card-visual::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 180, 50, 0.12) 0%,
    transparent 70%
  );
  z-index: 1;
  pointer-events: none;
}

/* ── Card Big Number (decorative) ─────────────────────────────── */
.card-big-num {
  position: absolute;
  bottom: 1.5rem;
  right: 2.5rem;
  font-family: var(--font-display);
  font-size: clamp(6rem, 11vw, 10rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  color: rgba(255, 255, 255, 0.03);
  user-select: none;
  pointer-events: none;
  z-index: 0;
}

/* ─── 5. Responsive ─────────────────────────────────────────── */

/* Tablet */
@media (max-width: 1024px) {
  .hero-content {
    max-width: 70%;
  }
}

/* Large phones / small tablets */
@media (max-width: 768px) {
  body { cursor: auto; }
  .cursor,
  .cursor-follower { display: none; }

  /* ── Hero layout ──────────────────────────────────────────── */
  #hero {
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
  }

  /* ── Video: show only right half, bottom-aligned ─────────── */
  .hero-bg {
    position: absolute;
    inset: 0;
    background-color: var(--black);
    overflow: hidden;
  }

  .hero-bg-video {
    position: absolute;
    right: -24px;
    left: auto;
    top: auto;
    bottom: 0;
    transform: none;
    height: 55%;
    width: auto;
    min-width: 0;
    object-fit: cover;
    object-position: right bottom;
  }

  /* gradient: removed on mobile so video shows naturally */
  .hero-bg-blend {
    background: none;
  }

  /* ── Content ──────────────────────────────────────────────── */
  .hero-content {
    position: relative;
    z-index: 10;
    max-width: 100%;
    padding: 2.5rem 1.5rem 0;
    gap: 1.2rem;
    justify-content: flex-start;
    flex: 1;
  }

  /* ── Logo: left-aligned ──────────────────────────────────── */
  .hero-logo {
    display: inline-flex;
    justify-content: flex-start;
    width: auto;
    margin-bottom: 0;
  }

  .hero-logo img {
    height: 32px;
  }

  /* ── Headline sizes ───────────────────────────────────────── */
  .headline-sans {
    margin-top: -12px;
    font-size: 36px;
    line-height: 1.05;
  }

  .headline-serif {
    font-size: 52px !important;
    line-height: 1.0;
    margin-top: -0.5em;
  }

  /* ── Paragraph ────────────────────────────────────────────── */
  .hero-sub {
    font-size: 16px;
    max-width: 100%;
  }

  /* ── Hide works-with on mobile ────────────────────────────── */
  .hero-stack {
    display: none;
  }

  /* ── Scroll hint ──────────────────────────────────────────── */
  .hero-scroll-hint {
    margin-top: auto;
    padding-bottom: 1.5rem;
  }

  /* ── Works Deck ───────────────────────────────────────────── */
  .table-sticky {
    padding: 0 1.25rem;
    justify-content: center;
    align-items: stretch;
    gap: 1.5rem;
  }

  .deck-heading {
    max-width: 100%;
  }

  .deck-container {
    max-width: 100%;
    width: 100%;
    height: 600px;
  }

  .card-content {
    flex-direction: column;
    overflow-y: auto;
    padding: 1.25rem 1.25rem 1.5rem;
    gap: 1rem;
    padding-bottom: 3rem; /* extra space for absolute CTA */
    height: auto;
    position: relative; /* anchor for absolute CTA */
  }

  .card-header {
    height: 56px;
    padding: 0 1.25rem;
  }

  .card-visual {
    width: 100%;
    aspect-ratio: 1720 / 900;
    align-self: stretch;
    flex-shrink: 0;
    margin-top: 0; /* reset desktop lift */
  }

  /* reset so CTA anchors to card-content, not this box */
  .card-content-inner {
    position: static;
  }

  /* CTA: absolute bottom-left, anchored to card-content, overlaps image */
  .card-cta {
    position: absolute;
    bottom: calc(1.5rem + 1rem); /* 1.5rem = card-content padding-bottom; +1rem = inside image */
    left: 1.25rem;
    margin: 0;
    width: fit-content;
    display: inline-flex;
    padding: 0.5rem 1.1rem;
    background: rgba(10, 10, 10, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    z-index: 3;
  }

  /* Year in card header — visible on mobile */
  .card-header-year {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.6rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.28);
    margin-right: 0.25rem;
  }

  /* Hide year from card-meta on mobile (shown in header instead) */
  .card-year {
    display: none;
  }

  .card-big-num {
    display: none;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .hero-actions {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }

  .cta-btn {
    width: auto;
  }
}

/* Very small phones ≤ 398px */
@media (max-width: 398px) {
  .cta-btn {
    padding: 0.75rem 1.1rem;
    font-size: 0.7rem;
  }

  .ghost-link {
    font-size: 0.7rem;
  }

  .hero-actions {
    gap: 2rem;
    margin-bottom: -0.5rem;
  }
}
