/* ═══════════════════════════════════════════
   NIKHIL MORE — PORTFOLIO
   Reset + Tokens + All Sections
═══════════════════════════════════════════ */

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

/* ── Skip link ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  padding: 10px 20px;
  background: #111;
  color: #fff;
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }
}

:root {
  --coral:  #ed7a54;
  --c800:   #292929;
  --c700:   #454545;
  --c600:   #616161;
  --c500:   #949494;
  --c100:   #f5f5f5;
  --c50:    #fafafa;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  background: white;
  color: black;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { display: block; }

/* Prevent I-beam cursor on decorative large text */
.hero-heading, .hero-sub,
.hp-text p,
.work-heading,
.skills-heading,
.about-text,
.footer-heading, .footer-tagline, .footer-phone {
  cursor: default;
}


/* ═══════════════════════════════════════════
   NAV
═══════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 42px;
  left: 60px;
  right: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
  border-radius: 100px;
  padding: 0;
  transition: top 0.45s cubic-bezier(.25,.46,.45,.94),
              background 0.45s ease,
              box-shadow 0.45s ease,
              padding 0.45s ease,
              left 0.45s ease,
              right 0.45s ease;

  opacity: 0;
  animation: a-down 0.55s cubic-bezier(.25,.46,.45,.94) forwards 0.1s;
}

.nav.nav--scrolled {
  top: 16px;
  left: 40px;
  right: 40px;
  background: rgba(252, 252, 252, 0.82);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  box-shadow:
    0 1px 1px rgba(0,0,0,0.03),
    0 4px 14px rgba(0,0,0,0.06),
    0 20px 48px rgba(0,0,0,0.07),
    inset 0 0 0 1px rgba(0,0,0,0.07);
  padding: 12px 28px;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo img {
  height: 44px;
  width: auto;
  display: block;
}

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

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  font-size: 18px;
  font-weight: 400;
  color: var(--c800);
  letter-spacing: -0.18px;
  transition: opacity .2s;
}
.nav-links a:hover { opacity: .5; }
.nav-links a.is-active {
  color: var(--coral);
  opacity: 1;
}

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

.social-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c800);
  opacity: .75;
  transition: opacity .2s, transform .2s cubic-bezier(.34,1.56,.64,1);
}
.social-btn:hover { opacity: 1; transform: scale(1.22); }
.social-btn svg { width: 26px; height: 26px; fill: currentColor; display: block; }
.social-btn img { width: 26px; height: 26px; display: block; }

.btn-connect {
  background: var(--coral);
  border: 2px solid black;
  border-radius: 30px;
  padding: 10px 30px;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--c800);
  letter-spacing: -0.18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: transform .15s, box-shadow .15s;
}
.btn-connect:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(237,122,84,.35);
}


/* ═══════════════════════════════════════════
   HERO  — vw-based so it scales at any width
   Base values match 1440px canvas exactly.
═══════════════════════════════════════════ */
.hero {
  position: relative;
  width: 100%;
  height: 52.64vw;        /* 758 / 1440 × 100 */
  background: white;
  overflow: visible;      /* allow bottom cards to bleed into next section */
  z-index: 2;             /* sit above helping-products so cards overlap it */
}

/* Heading — 70px gutter, stretches proportionally with viewport */
.hero-heading {
  position: absolute;
  left: 4.86vw;           /* 70 / 1440 */
  top: 9.65vw;            /* 139 / 1440 */
  font-family: 'Merriweather', serif;
  font-size: 8.33vw;      /* 120 / 1440 */
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.14vw;
  color: black;
  white-space: nowrap;

  opacity: 0;
  animation: a-up 0.85s cubic-bezier(.25,.46,.45,.94) forwards 0.35s;
}

/* Center photo */
.hero-photo {
  position: absolute;
  left: calc(50% - 9.21vw);  /* centered — half of 18.42vw */
  top: 23.13vw;
  width: 18.42vw;            /* 204 × 1.3 */
  height: 27.72vw;           /* 307 × 1.3 */
  z-index: 1;
  cursor: pointer;

  opacity: 0;
  animation: a-scale 0.9s cubic-bezier(.34,1.56,.64,1) forwards 0.85s;
}

/* Gentle float on the center image */
.hero-photo-float {
  width: 100%;
  height: 100%;
  animation: bob-gentle 6s ease-in-out infinite 1.8s;
  position: relative;
}

/* Both layers: identical geometry — zero shift between states */
.hero-photo-base,
.hero-photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  display: block;
  pointer-events: none;
  transform: translateZ(0);
}

/* stays image — always underneath sketch */
.hero-photo-base { z-index: 0; }

/* sketch — default visible layer, mask punched by JS on hover */
.hero-photo-img  {
  z-index: 1;
  -webkit-mask-image: none;
  mask-image: none;
  transition: opacity 0.6s ease;
}

.hero-photo.is-revealed { cursor: default; }

/* Sub-text — right edge aligns with heading right gutter */
.hero-sub {
  position: absolute;
  right: 4.86vw;          /* mirrors heading's 70px left gutter */
  top: 41.39vw;           /* 596 / 1440 */
  width: 34.24vw;         /* 493 / 1440 */
  font-family: 'Merriweather', serif;
  font-size: 2.22vw;      /* 32 / 1440 */
  font-weight: 400;
  line-height: 3.4vw;     /* 49 / 1440 */
  color: black;
  text-align: left;

  opacity: 0;
  animation: a-up 0.75s cubic-bezier(.25,.46,.45,.94) forwards 1.65s;
}


/* Floating card shells — vw-based, scale with viewport */
.fp-type    { left: 37.57vw; top:  6.04vw; width:  7.92vw; height:  7.43vw; }
.fp-chart   { left:  2.64vw; top: 14.72vw; width: 23.13vw; height: 18.68vw; }
.fp-profile { left: 64.51vw; top: 22.50vw; width: 18.96vw; height: 15.83vw; }
.fp-journey { left: 84.79vw; top: 14.31vw; width: 14.10vw; height: 12.92vw; }
.fp-graph   { left: 25.63vw; top: 37.15vw; width: 11.46vw; height: 11.60vw; }
.card-img   { width: 100% !important; }


/* ═══════════════════════════════════════════
   FLOATING IMAGE CARDS

   Each card uses 3 wrappers so rotation,
   float-bob and entrance-fade never fight:

   .fp   → absolute bounding-box shell
   .fw   → opacity entrance fade
   .fb   → continuous translateY bob
   img   → the svg card

   Positions are vw-based (see hero section above).
═══════════════════════════════════════════ */

/* Bounding-box shells */
.fp {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  pointer-events: none;   /* mouse events pass through to hero-heading below */
  transition: opacity 0.4s ease;
}

/* Dim cards when reading the heading or sub-text */
.hero-heading:hover ~ .fp,
.hero-sub:hover ~ .fp { opacity: 0.15; }


/* Entrance fade wrapper */
.fw {
  opacity: 0;
  animation: a-fade 0.7s ease forwards;
  display: inline-block;
  line-height: 0;
}

/* Staggered entrance delays per card */
.fw-type    { animation-delay: 1.10s; }
.fw-chart   { animation-delay: 1.20s; }
.fw-profile { animation-delay: 1.30s; }
.fw-journey { animation-delay: 1.40s; }
.fw-graph   { animation-delay: 1.25s; }


/* Bob wrappers */
.fb {
  display: inline-block;
  line-height: 0;
}
.fb-up  { animation: bob-up   4.0s ease-in-out infinite; }
.fb-dn  { animation: bob-down 5.0s ease-in-out infinite; }
.fb-up2 { animation: bob-up   4.5s ease-in-out infinite; }
.fb-dn2 { animation: bob-down 3.8s ease-in-out infinite; }
.fb-up3 { animation: bob-up   5.2s ease-in-out infinite; }

/* Bob delays per card */
.fb-type    { animation-delay: 0s;    }
.fb-chart   { animation-delay: 0.5s;  }
.fb-profile { animation-delay: 1.0s;  }
.fb-journey { animation-delay: 0.3s;  }
.fb-graph   { animation-delay: 0.8s;  }


/* Card SVGs */
.card-img {
  display: block;
  height: auto;
  overflow: visible;
}


/* ═══════════════════════════════════════════
   KEYFRAMES
═══════════════════════════════════════════ */
@keyframes a-down {
  from { opacity: 0; transform: translateY(-18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes a-up {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes a-scale {
  from { opacity: 0; transform: scale(0.86); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes a-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes bob-up {
  0%,  100% { transform: translateY(0);     }
  50%        { transform: translateY(-11px); }
}
@keyframes bob-down {
  0%,  100% { transform: translateY(0);    }
  50%        { transform: translateY(11px); }
}

/* Gentle float for center image — smaller range, slower */
@keyframes bob-gentle {
  0%,  100% { transform: translateY(0);   }
  50%        { transform: translateY(-8px); }
}



/* ═══════════════════════════════════════════
   HELPING PRODUCTS — cursor-spawn image interaction
═══════════════════════════════════════════ */
.helping-products {
  position: relative;
  background: var(--c50);
  padding-top: 120px;
  overflow: hidden;
  z-index: 1;
}


.hp-text {
  padding: 0 255px 60px;
  position: relative;
  z-index: 10;
}

.hp-text p {
  font-family: 'Merriweather', serif;
  font-size: 60px;
  font-weight: 400;
  line-height: 75px;
  letter-spacing: -1px;
  text-align: center;
  color: #292929;
  width: 100%;
  max-width: 100%;
}

/* ─ Achievement ticker ──────────────────────────────── */
.ach-marquee {
  overflow: hidden;
  position: relative;
  z-index: 10;
}

.ach-track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.ach-items {
  display: flex;
  align-items: center;
  gap: 70px;
  padding: 44px 70px 44px 0;
  list-style: none;
  flex-shrink: 0;
}

.ach-item {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

.ach-icon { width: 20px; height: 20px; flex-shrink: 0; }
.ach-icon-circle { fill: var(--coral); }

.ach-item span {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--c800);
  line-height: 1;
}


/* ═══════════════════════════════════════════
   WORK — DRAGGABLE CARD CAROUSEL
═══════════════════════════════════════════ */
.work-section {
  background: #f5f5f5;
  padding: 120px 0;
}

.work-heading {
  font-family: 'Merriweather', serif;
  font-size: 80px;
  font-weight: 400;
  line-height: normal;
  color: var(--c800);
  text-align: center;
  letter-spacing: -2.4px;
  margin-bottom: 40px;
}

.work-carousel {
  overflow: hidden;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.work-carousel.is-dragging { cursor: grabbing; }

.work-track {
  display: flex;
  gap: 30px;
  padding: 10px 120px 30px;
  will-change: transform;
}

/* ─ Card ─────────────────────────────────── */
.work-card {
  background: white;
  border-radius: 10px;
  padding: 30px;
  width: 700px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.wc-body {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  flex: 1;
}

.wc-image {
  width: 266px;
  height: 298px;
  background: linear-gradient(145deg, #ececec 0%, #e0e0e0 100%);
  border-radius: 10px;
  flex-shrink: 0;
  overflow: hidden;
}

.wc-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
}

.wc-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.wc-title {
  font-family: 'Merriweather', serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 32px;
  color: black;
  letter-spacing: -0.02em;
}

.wc-desc {
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: #616161;
}

.wc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.wc-tag {
  background: #f5f5f5;
  border-radius: 40px;
  padding: 5px 20px;
  font-size: 14px;
  line-height: 22px;
  color: #949494;
  white-space: nowrap;
}

.wc-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 30px;
  background: var(--coral);
  border: 2px solid var(--c800);
  border-radius: 30px;
  font-size: 18px;
  font-weight: 700;
  color: var(--c800);
  letter-spacing: -0.18px;
  text-decoration: none;
  text-align: center;
  transition: opacity 0.15s;
}

.wc-cta:hover { opacity: 0.85; }
.work-carousel.is-dragging .wc-cta { pointer-events: none; }

/* ─ Coming Soon card ─────────────────────── */
.work-card.is-coming-soon {
  position: relative;
}

.work-card.is-coming-soon::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.65);
  border-radius: 10px;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 2;
  pointer-events: none;
}

.wc-coming-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  background: var(--c800);
  color: white;
  padding: 10px 32px;
  border-radius: 30px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 4px 20px rgba(41, 41, 41, 0.25);
}

.wc-cta--disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}


/* ═══════════════════════════════════════════
   SKILLS
═══════════════════════════════════════════ */
.skills-section {
  background: #fff;
  padding: 120px 135px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  position: relative;
  overflow: hidden;
}

#skills-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.skills-heading,
.skills-row {
  position: relative;
  z-index: 1;
}

.skills-heading {
  font-family: 'Merriweather', serif;
  font-size: 60px;
  font-weight: 400;
  line-height: normal;
  color: var(--c800);
  text-align: center;
  letter-spacing: -1.8px;
  margin-bottom: 10px;
}

.skills-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(6px, 0.55vw, 10px);
  max-width: 1200px;
}

.sk-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--c100);
  border: 1px solid black;
  border-radius: 40px;
  padding: 5px clamp(14px, 1.67vw, 24px);
  white-space: nowrap;
  /* 3D tilt */
  position: relative;
  overflow: hidden;
  will-change: transform;
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow 0.55s cubic-bezier(0.23, 1, 0.32, 1),
              border-color 0.25s ease;
  cursor: default;
  isolation: isolate;
}

/* cursor-tracked gloss shimmer */
.sk-pill::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle at var(--gx, 50%) var(--gy, 50%),
    rgba(255,255,255,0.55) 0%,
    rgba(255,255,255,0.1) 40%,
    transparent 65%
  );
  opacity: var(--gloss, 0);
  transition: opacity 0.2s ease;
  pointer-events: none;
  z-index: 1;
}

/* coral edge glow on hover */
.sk-pill:hover {
  border-color: var(--coral);
  background: white;
}

/* icon pop + spin on hover */
.sk-pill:hover .sk-icon {
  transform: scale(1.25) rotate(12deg);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sk-icon {
  width: 20px; height: 20px; flex-shrink: 0;
  transition: transform 0.35s ease;
}
.sk-icon-circle  { fill: var(--coral); }

.sk-pill span {
  font-size: 14px;
  font-weight: 400;
  line-height: 32px;
  color: var(--c800);
  position: relative;
  z-index: 2;
}


/* ═══════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════ */
.about-section {
  background: var(--c100);
  position: relative;
  height: 74vw;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
  width: 100%;
}

.about-heading {
  font-family: 'Merriweather', serif;
  font-size: clamp(40px, 5.56vw, 80px);
  font-weight: 400;
  line-height: normal;
  color: var(--c800);
  text-align: center;
  letter-spacing: -2.4px;
}

.about-text-wrap {
  width: 51.39vw;
  text-align: center;
}

.about-text {
  font-family: 'Merriweather', serif;
  font-size: clamp(16px, 1.67vw, 24px);
  font-weight: 400;
  line-height: clamp(26px, 2.78vw, 40px);
  color: var(--c800);
  letter-spacing: -0.72px;
}

/* ─ Stacked gallery ──────────────────────────── */
.photo-fan {
  position: relative;
  width: 100%;
  height: 410px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.35s ease;
}

/* Fade photos when hovering the heading or body text — mirrors hero effect */
.about-inner:has(.about-heading:hover) .photo-fan,
.about-inner:has(.about-text-wrap:hover) .photo-fan {
  opacity: 0.12;
}

.photo-fan-stack {
  position: relative;
  width: 308px;
  height: 350px;
  flex-shrink: 0;
}

.pf-card {
  position: absolute;
  inset: 0;
  width: 308px;
  height: 350px;
  border-radius: 30px;
  border: 2px solid white;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  will-change: transform;
  box-shadow: 0 12px 24px rgba(0,0,0,0.22);
}

.pf-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}


/* ═══════════════════════════════════════════
   FOOTER / CONNECT
═══════════════════════════════════════════ */
/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.footer-section {
  background: white;
  position: relative;
  height: 972px;
  overflow: hidden;
}

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */

.footer-dots-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.footer-content {
  position: absolute;
  top: 356px;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 110px;
  padding: 0 10px;
}

.footer-content-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.footer-heading {
  font-family: 'Merriweather', serif;
  font-size: 120px;
  font-weight: 400;
  line-height: 120px;
  color: #292929;
  letter-spacing: -3.6px;
  text-align: center;
  max-width: 832px;
}

.footer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 30px;
  background: white;
  border: 2px solid var(--c800);
  border-radius: 30px;
  font-size: 18px;
  font-weight: 700;
  color: var(--c800);
  letter-spacing: -0.18px;
  text-decoration: none;
  transition: opacity 0.15s;
}

.footer-cta:hover { opacity: 0.85; }

.footer-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-socials {
  display: flex;
  gap: 10px;
  align-items: center;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.footer-social-link:hover { opacity: 1; }

.footer-social-icon {
  width: 32px;
  height: 32px;
  display: block;
  filter: brightness(0) opacity(0.85);
}

.footer-phone {
  font-size: 20px;
  font-weight: 400;
  line-height: 24px;
  color: #292929;
  white-space: nowrap;
}

.footer-tagline {
  font-size: 16px;
  font-weight: 400;
  line-height: 36px;
  color: #292929;
}

/* ═══════════════════════════════════════════
   HAMBURGER BUTTON (hidden on desktop)
═══════════════════════════════════════════ */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  color: var(--c800);
  align-items: center;
  justify-content: center;
  line-height: 0;
  position: relative;
  z-index: 60; /* above hero content */
}
.nav-hamburger svg { width: 22px; height: 16px; display: block; }


/* ═══════════════════════════════════════════
   MOBILE MENU OVERLAY
═══════════════════════════════════════════ */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: white;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.mobile-menu.is-open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 27px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--c800);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.mobile-menu-close svg { width: 14px; height: 14px; display: block; }

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}
.mobile-menu-link {
  font-size: 16px;
  font-weight: 400;
  color: var(--c800);
  letter-spacing: -0.16px;
  text-align: center;
  transition: opacity .2s;
}
.mobile-menu-link:hover { opacity: .5; }

.mobile-menu-socials {
  display: flex;
  gap: 10px;
  align-items: center;
}

.mobile-menu-connect {
  width: 100%;
  justify-content: center;
  font-size: 16px;
  letter-spacing: -0.16px;
}


/* ═══════════════════════════════════════════
   RESPONSIVE — fluid scaling (Forbes approach)
   Each value = Figma_px ÷ base_width × 100vw
   so everything scales proportionally at any size.

   Zone A  769–1440 px → base 1440px desktop
   Zone B  481–768 px  → base 744px iPad Figma
   Zone C  ≤ 480 px    → exact Figma mobile values
═══════════════════════════════════════════ */

/* ─── Zone A: 769–1440 px ─── */
/* Base CSS already uses vw values — this block overrides nav/hero to stay consistent */
@media (min-width: 769px) and (max-width: 1440px) {
  .hero-heading { left: 4.86vw; }   /* 70px gutter at 1440px */

  .hero-sub { right: 4.86vw; left: auto; top: 41.39vw; width: 34.24vw;
              font-size: 2.22vw; line-height: 3.4vw; text-align: left; }

  .helping-products { padding-top: 8.33vw; }
  .hp-text          { padding: 0 17.71vw clamp(32px, 4.17vw, 60px); }
  .hp-text p        { font-size: 4.17vw; line-height: 5.21vw; letter-spacing: -0.07vw; width: 100%; }
  .ach-items        { gap: 5vw; padding: 3.47vw 5vw 3.47vw 0; }

  /* Work — Zone A */
  .work-section  { padding: 8.33vw 0; }
  .work-track    { padding: 10px 8.33vw 30px; }
  .work-heading  { font-size: clamp(48px, 5.56vw, 80px); letter-spacing: -0.167vw; }
  .work-card     { width: clamp(500px, 48.61vw, 700px); }

  /* Skills — Zone A */
  .skills-section  { padding: 8.33vw 9.38vw; }
  .skills-heading  { font-size: clamp(36px, 4.17vw, 60px); letter-spacing: -0.125vw; }

  /* Footer — Zone A */
  .footer-section      { height: auto; min-height: 800px; }
  .footer-content      { position: relative; top: auto; padding: 8.33vw 5vw 6vw; }
  .footer-heading      { font-size: clamp(60px, 8.33vw, 120px); line-height: clamp(60px, 8.33vw, 120px); letter-spacing: -0.25vw; }

  /* About — Zone A: all dimensions use vw so no overrides needed */
}

/* ─── Zone B: 481–768 px (base 744px iPad Figma) ─── */
@media (min-width: 481px) and (max-width: 768px) {
  .hero         { height: 87.50vw; }               /* 651/744 */

  /* Nav — fluid so it fits at narrower tablets */
  .nav          { top: clamp(18px,4.03vw,30px); left: clamp(14px,2.55vw,19px); right: clamp(14px,2.55vw,19px); }
  .nav.nav--scrolled { top: 12px; left: 16px; right: 16px; padding: clamp(8px,1.34vw,12px) clamp(14px,2.69vw,20px); }
  .nav-logo     { font-size: clamp(14px,2.42vw,18px); }
  .nav-links    { gap: clamp(14px,4.03vw,30px); }
  .nav-links a  { font-size: clamp(11px,2.15vw,16px); }
  .nav-right    { gap: clamp(18px,5.38vw,40px); }
  .social-btn svg,
  .social-btn img { width: clamp(18px,1.81vw,26px); height: clamp(18px,1.81vw,26px); }
  .btn-connect  { font-size: clamp(11px,2.15vw,16px);
                  padding: clamp(6px,1.34vw,10px) clamp(14px,4.03vw,30px);
                  border-radius: clamp(20px,4.03vw,30px); }

  .hero-heading { font-size: clamp(30px,8.06vw,60px);  /* 60/744 */
                  left: 9.27vw; top: 38.84vw;          /* 69 / 289 */
                  right: 10px; white-space: normal; line-height: 1;
                  letter-spacing: -0.24vw; }

  .hero-photo   { left: calc(50% - 10.66vw); top: 21.51vw;
                  width: 21.32vw; height: 32.15vw; }    /* 122/184 × 1.3 */

  .hero-sub     { left: 0; right: 0; width: 100%; padding: 0 20px;
                  top: 76.61vw;                         /* 570/744 */
                  font-size: clamp(13px,2.42vw,18px); line-height: 1.7;
                  text-align: center; white-space: normal; }

  .fp-type    { left: 58.87vw; top: 14.52vw; width:  9.14vw; height:  8.47vw; }
  .fp-chart   { left:  3.76vw; top: 29.84vw; width: 26.75vw; height: 21.64vw; }
  .fp-profile { left: 70.03vw; top: 51.75vw; width: 22.04vw; height: 18.28vw; }
  .fp-journey { left: 73.79vw; top: 27.28vw; width: 16.26vw; height: 14.78vw; }
  .fp-graph   { left: 43.82vw; top: 55.65vw; width: 13.31vw; height: 13.31vw; }
  .card-img   { width: 100% !important; }

  /* Helping products — tablet */
  .helping-products { padding-top: 64px; }
  .hp-text          { padding: 0 48px 40px; }
  .hp-text p        { font-size: clamp(28px, 4.17vw, 44px); line-height: 1.25;
                      letter-spacing: -0.5px; width: 100%; max-width: 100%; }
  .ach-items        { gap: clamp(32px, 5.38vw, 40px); padding-right: clamp(32px, 5.38vw, 40px); }

  /* Work — tablet */
  .work-section  { padding: 64px 0; }
  .work-track    { padding: 10px 48px 30px; gap: 24px; }
  .work-card     { width: 520px; }
  .wc-image      { width: 200px; height: 240px; }
  .wc-title      { font-size: 18px; line-height: 28px; }

  /* Skills — tablet */
  .skills-section { padding: 64px 40px; }
  .skills-heading { font-size: 40px; letter-spacing: -1.2px; }
  .sk-pill        { padding: 5px 12px; }
  .sk-pill span   { font-size: 13px; }

  /* Footer — tablet */
  .footer-section      { height: auto; min-height: auto; }
  .footer-content      { position: relative; top: auto; padding: 64px 48px 64px; gap: 60px; }
  .footer-content-group { gap: 24px; }
  .footer-heading      { font-size: 60px; line-height: 64px; letter-spacing: -1.8px; }

  /* About — tablet: vw layout still works, just tighten text wrap */
  .about-text-wrap { width: 70vw; }
  .about-text      { font-size: clamp(16px, 2.42vw, 20px); line-height: clamp(26px, 3.76vw, 32px); }
}

/* ─── Zone C: ≤ 480 px — exact Figma mobile ─── */
@media (max-width: 480px) {
  .hero { height: 590px; }

  .nav           { top: 20px; left: 20px; right: 20px; }
  .nav.nav--scrolled { top: 10px; left: 12px; right: 12px; padding: 8px 16px; }
  .nav-right     { gap: 16px; }
  .nav-links     { display: none; }
  .nav-socials   { display: none; }
  .nav-hamburger { display: flex; }
  .btn-connect   { font-size: 16px; letter-spacing: -0.16px; }

  .hero-heading  { left: 33px; right: 33px; width: auto;
                   top: 99px; font-size: 40px; line-height: 38px;
                   letter-spacing: -1.2px; text-align: center; white-space: normal; }

  .hero-photo    { left: calc(50% - 79px); top: 215px; width: 159px; height: 239px; }

  .hero-sub      { left: 0; right: 0; width: 100%; padding: 0 20px;
                   top: 437px; font-size: 18px; line-height: 32px;
                   text-align: center; white-space: normal; }

  .fp-type    { left: 256px; top: 155px; width:  34px; height:  32px; }
  .fp-chart   { left:  14px; top: 178px; width:  99px; height:  80px; }
  .fp-profile { left: 263px; top: 333px; width:  82px; height:  68px; }
  .fp-journey { left: 261px; top: 228px; width:  61px; height:  55px; }
  .fp-graph   { left: 113px; top: 328px; width:  49px; height:  49px; }

  .card-img.type    { width:  34px; }
  .card-img.chart   { width:  99px; }
  .card-img.profile { width:  82px; }
  .card-img.journey { width:  61px; }
  .card-img.graph   { width:  49px; }

  /* Helping products — mobile */
  .helping-products { padding-top: 56px; }
  .hp-text          { padding: 0 24px 32px; }
  .hp-text p        { font-size: 24px; line-height: 32px;
                      letter-spacing: -0.4px; width: 100%; max-width: 100%; }
  .ach-items        { gap: 32px; padding: 32px 32px 32px 0; }
  .ach-item span    { font-size: 15px; }
  .ach-track        { animation-duration: 18s; }

  /* Work — mobile: stack image above content */
  .work-section  { padding: 56px 0; }
  .work-heading  { font-size: 36px; letter-spacing: -1.08px; margin-bottom: 28px; }
  .work-track    { padding: 10px 20px 30px; gap: 20px; }
  .work-card     { width: 320px; padding: 24px; gap: 20px; }
  .wc-body       { flex-direction: column; gap: 20px; }
  .wc-image      { width: 100%; height: 180px; }
  .wc-title      { font-size: 17px; line-height: 26px; }
  .wc-desc       { font-size: 14px; line-height: 22px; }
  .wc-cta        { font-size: 16px; padding: 10px 20px; }

  /* Skills — mobile */
  .skills-section { padding: 56px 20px; gap: 14px; }
  .skills-heading { font-size: 32px; letter-spacing: -0.96px; margin-bottom: 6px; }
  .sk-pill        { padding: 5px 10px; white-space: nowrap; gap: 6px; }
  .sk-pill span   { font-size: 12px; line-height: 28px; }

  /* Footer — mobile */
  .footer-section      { height: auto; min-height: auto; }
  .footer-content      { position: relative; top: auto; padding: 56px 24px 56px; gap: 48px; }
  .footer-content-group { gap: 20px; }
  .footer-heading      { font-size: 48px; line-height: 52px; letter-spacing: -1.44px; max-width: 100%; }
  .footer-cta          { font-size: 16px; padding: 10px 24px; }
  .footer-phone        { font-size: 16px; }

  /* About — mobile: stack text + horizontal scroll strip */
  .about-section   { height: auto; padding: 64px 0 64px; overflow: visible; }
  .about-text-wrap { width: 100%; padding: 0 24px; }
  .about-text      { font-size: 18px; line-height: 28px; letter-spacing: -0.36px; }

  .photo-fan {
    display: flex;
    overflow-x: auto;
    overflow-y: visible;
    height: auto;
    padding: 4px 24px 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    padding-top: 0;
  }
  .photo-fan::-webkit-scrollbar { display: none; }

  .photo-fan-stack {
    display: flex;
    flex-direction: row;
    gap: 10px;
    position: static;
    width: max-content;
    height: 170px;
    flex-shrink: 0;
  }

  .pf-card {
    position: relative !important;
    inset: auto !important;
    width: 140px !important;
    height: 160px !important;
    flex-shrink: 0;
    transform: none !important;
    border-radius: 20px;
  }
}
