/* =========================
   Fonts
========================= */
@font-face {
  font-family: "Mont";
  src: url("Assets/Fonts/Mont/Mont-Regular.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Mont";
  src: url("Assets/Fonts/Mont/Mont-Bold.otf") format("opentype");
  font-weight: 900;
  font-display: swap;
}

/* =========================
   Global Reset
========================= */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Native smooth scrolling */
html {
  scroll-behavior: smooth;
}

html, body { overflow-x: hidden !important; }
body {
  font-family: "Mont", sans-serif;
  overflow: hidden;
  overflow-y: hidden; /* Explicit for JSDOM compatibility */
} /* Hide scrollbar but allow scrolling */
html,
body {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge */
}

body.scrollable {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
/* Hide all scroll content until intro finishes */
body.intro-loading .scroll-section,
body.intro-loading #story,
body.intro-loading .scroll-content {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Keep intro layers visible */
body.intro-loading .intro,
body.intro-loading .intro-background,
body.intro-loading .intro-content,
body.intro-loading #whiteSection {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* =========================
   Intro Section
========================= */
.intro {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* 🔥 FIXED background video (key change) */
.intro-background {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  background: #000;
  z-index: 1;
  overflow: hidden;
}

.intro-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.intro-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s ease;
}

body.canvas-active .intro-canvas {
  opacity: 1;
}

.intro-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 3;
}

/* =========================
   Intro Content
========================= */
.intro-content {
  position: relative;
  z-index: 10;
  inset: 0;
  top: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.intro-text {
  position: relative;
  width: 100%;
}

/* =========================
   Hello Text
========================= */
.hello {
  position: absolute;
  inset: 0;
  font-size: 9rem; /* Fallback for clamp() */
  font-size: clamp(3rem, 15vw, 15rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: 8px;
  opacity: 0;
  max-width: 90vw;
  margin: auto;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 60px rgba(255, 255, 255, 0.3);
}

.hello.last-text {
  font-size: 3rem; /* Fallback for clamp() */
  font-size: clamp(1.5rem, 8vw, 4.5rem);
  letter-spacing: 3px;
  white-space: normal;
}

@media (min-width: 1024px) {
  .hello.last-text {
    white-space: nowrap;
  }
}

/* =========================
   Feather Elements
========================= */
.feather-left,
.feather-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feather-left {
  right: calc(50% + 450px);
}

.feather-right {
  left: calc(50% + 450px);
  transform: translateY(-50%) scaleX(-1);
}

.feather-svg {
  width: 100px;
  height: 100px;
  opacity: 0.6;
  filter: grayscale(100%) brightness(1.3)
    drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
}

/* =========================
   White Section (GSAP)
========================= */
.white-section {
  position: absolute;
  z-index: 20;
  background: transparent; /* important: SVG is the white panel now */
  opacity: 0;
  transform-origin: bottom center;
  overflow: hidden;
  isolation: isolate;
}

.hidden {
  display: block !important;
}

/* =========================
   Scroll Content Section
========================= */
.scroll-section {
  position: relative;
  z-index: 30;
  padding: 0px 40px;
  background: transparent; /* 🔥 NO BG */
}

.scroll-content {
  margin: 0 auto;
  color: #fff; /* readable over video */
}

.scroll-section h2 {
  font-size: 2.75rem; /* Fallback for clamp() */
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 20px;
  font-weight: 900;
}

.scroll-section p {
  font-size: 1.8rem;
  line-height: 1.8;
}

/* =========================
   Masked Image
========================= */
.masked-content {
  position: absolute;
  bottom: -2%;
  left: 0;
  right: 0;
  width: 95%;
  height: auto;
  margin: auto;
  pointer-events: none;
}

/* =========================
   Responsive
========================= */
@media (max-width: 992px) {
  .feather-svg {
    width: 70px;
    height: 70px;
  }

  .feather-left {
    right: calc(50% + 320px);
  }

  .feather-right {
    left: calc(50% + 320px);
  }
}

@media (max-width: 768px) {
  .hello {
    font-size: 5rem; /* Fallback for clamp() */
    font-size: clamp(2rem, 12vw, 8rem);
    letter-spacing: 4px;
  }

  .feather-svg {
    width: 50px;
    height: 50px;
  }

  .feather-left {
    right: calc(50% + 230px);
  }

  .feather-right {
    left: calc(50% + 230px);
  }

  .scroll-section {
    padding: 80px 20px;
  }
}

@media (max-width: 480px) {
  .hello {
    font-size: 3.25rem; /* Fallback for clamp() */
    font-size: clamp(1.5rem, 10vw, 5rem);
    letter-spacing: 2px;
  }

  .hello.last-text {
    font-size: 2.1rem; /* Fallback for clamp() */
    font-size: clamp(1.2rem, 7vw, 3rem);
  }

  .feather-svg {
    width: 35px;
    height: 35px;
  }

  .feather-left {
    right: calc(50% + 150px);
  }

  .feather-right {
    left: calc(50% + 150px);
  }
}
/* =========================
   Story Section (cinematic word reveal)
========================= */

/* Center the whole story block in the viewport */
#story.story-section {
  min-height: 100vh; /* gives room to center vertically */
  display: flex;
  align-items: center; /* vertical center */
  justify-content: center; /* horizontal center */
  padding: 0 40px;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto; /* keep side spacing */
}

.story-line {
  font-size: 2.9rem; /* Fallback for clamp() */
  font-size: clamp(1.25rem, 6.6vw, 4.55rem); /* a bit larger */
  line-height: 1.55;
  font-weight: 600; /* bolder, not crazy */
  letter-spacing: 0.2px;
  color: #fff;
  padding: 0 12px;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* words will be wrapped by JS */
.story-line .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  filter: blur(8px);
  will-change: transform, opacity, filter;
}

/* highlight should apply to each word span, not the wrapper */
.story-line .hl {
  /* keep wrapper visually neutral (important when it contains multiple words) */
  background: none;
  outline: none;
  padding: 0;
  border-radius: 0;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

/* actual pill highlight is on each generated word */
.story-line .word.hl {
  display: inline-block;
  padding: 0.08em 0.38em;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  outline: 1px solid rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  margin: 0.4rem 0em;
}

/* image stacks (2–3 images overlapped, slightly rotated) */
.img-stack {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin: 0 0.32em;
  transform: translateY(-0.06em);
  will-change: transform, opacity, filter;
}

.img-stack img {
  width: 39px; /* Fallback for clamp() */
  width: clamp(30px, 3.3vw, 48px);
  height: 39px; /* Fallback for clamp() */
  height: clamp(30px, 3.3vw, 48px);
  border-radius: 14px;
  object-fit: cover;
  outline: 1px solid rgba(255, 255, 255, 0.38);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.38);
  transform: rotate(var(--r, 0deg)) translate(var(--tx, 0px), var(--ty, 0px));
  transition: transform 240ms ease, outline-color 240ms ease, filter 240ms ease;
  filter: saturate(1.08);
  position: relative;
}

/* overlap */
.img-stack img + img {
  margin-left: -12px; /* Fallback for clamp() */
  margin-left: clamp(-10px, -1.2vw, -14px);
}

/* --- Individual image hover (not whole stack) --- */
.img-stack img {
  cursor: pointer;
  z-index: 1; /* baseline */
  transform: rotate(var(--r, 0deg)) translate(var(--tx, 0px), var(--ty, 0px));
}

/* keep your overlap rule */
.img-stack img + img {
  margin-left: -12px; /* Fallback for clamp() */
  margin-left: clamp(-10px, -1.2vw, -14px);
}

/* REMOVE any ".img-stack:hover img" rules and use this instead */
.img-stack img:hover,
.img-stack img:active {
  z-index: 999; /* comes above other images */
  transform: rotate(var(--r, 0deg))
    translate(var(--tx, 0px), calc(var(--ty, 0px) - 10px)) scale(1.12);
  outline-color: rgba(255, 255, 255, 0.85);
  filter: saturate(1.25);
}

/* optional: smooth stacking when hovering a middle image */
.img-stack:hover img:not(:hover),
.img-stack:active img:not(:active) {
  filter: saturate(1.05);
}

@media (max-width: 768px) {
  .story-section {
    padding-top: 36px;
  }
  .story-line {
    line-height: 1.65;
  }
}

/* =========================
   Video Background (Scrubbing)
========================= */
body.intro-loading .intro-video {
  opacity: 1;
}
body.canvas-active .intro-video {
  opacity: 1;
  pointer-events: none;
}
/* White panel is painted by the SVG so the name becomes a real hole */
#whiteSection {
  background: transparent !important;
  overflow: hidden;
  isolation: isolate;
}

/* SVG fills the full panel */
.white-cutout {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 0;
}

/* Keep your hello + feathers above the white panel */
.intro-content {
  position: relative;
  z-index: 5;
}
#whiteSection .masked-content {
  display: none;
}
/* Never allow intro text/feathers to show through the cutout hole */
body.white-panel-active .intro-content {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
/* After the curtain reveal, feathers should never appear again */
body.after-reveal #featherLeft,
body.after-reveal #featherRight,
body.after-reveal #helloText{
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Responsive white panel radius */
:root {
  --panel-radius: 44px; /* Fallback for clamp() */
  --panel-radius: clamp(24px, 7vw, 64px); /* resting radius */
  --panel-radius-open: 48px; /* Fallback for clamp() */
  --panel-radius-open: clamp(24px, 10vw, 72px); /* during expand */
}

/* Make sure the panel + SVG inherit it */
#whiteSection {
  border-radius: var(--panel-radius);
}
#whiteSection,
#whiteSection .white-cutout {
  border-radius: inherit;
}
/* =========================================================
   BUTTON COMPONENTS (matches your component set)
========================================================= */

:root {
  --btn-h: 56px;
  --btn-h-sm: 46px;
  --btn-radius: 999px;

  --btn-black: #242424;
  --btn-white: #ffffff;

  --btn-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

/* Base */
.c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;

  height: var(--btn-h);
  padding: 0 26px;

  border-radius: var(--btn-radius);
  border: 2px solid transparent;

  text-decoration: none;
  font-family: "Mont", sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 1;
  white-space: nowrap;

  user-select: none;
  -webkit-tap-highlight-color: transparent;

  transition: background-color 200ms ease, color 200ms ease,
    border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.c-btn:hover {
  transform: translateY(-1px);
}
.c-btn:active {
  transform: translateY(0px) scale(0.99);
}
.c-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.75);
  outline-offset: 4px;
}

.c-btn--sm {
  height: var(--btn-h-sm);
  padding: 0 18px;
  font-size: 16px;
}

/* Icon slot */
.c-btn__icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  transition: background-color 200ms ease, border-color 200ms ease,
    transform 200ms ease;
}

.c-btn__label {
  display: inline-block;
}

/* Arrow icon */
.c-btn__icon svg {
  width: 18px;
  height: 18px;
}

/* -------- Primary Black (normal: dark pill + white circle icon left) -------- */
.c-btn--primary-black {
  background: var(--btn-black);
  color: rgba(255, 255, 255, 0.92);
  box-shadow: var(--btn-shadow);
}

.c-btn--primary-black .c-btn__icon {
  background: var(--btn-white);
  color: var(--btn-black);
}

/* Hover: outlined white pill + arrow moves to right (like your image) */
.c-btn--primary-black:hover,
.c-btn--primary-black:active {
  background: var(--btn-white);
  color: var(--btn-black);
  border-color: var(--btn-black);
  box-shadow: none;
}

.c-btn--primary-black:hover .c-btn__icon,
.c-btn--primary-black:active .c-btn__icon {
  background: transparent;
  border: 0;
  transform: translateX(0);
  order: 3;
  width: auto;
  height: auto;
}

/* -------- Secondary Black (dark pill, no icon) -------- */
.c-btn--secondary-black {
  background: var(--btn-black);
  color: rgba(255, 255, 255, 0.92);
  box-shadow: var(--btn-shadow);
}

.c-btn--secondary-black:hover,
.c-btn--secondary-black:active {
  background: var(--btn-white);
  color: var(--btn-black);
  border-color: rgba(0, 0, 0, 0.35);
  box-shadow: none;
}

/* -------- Primary White (white pill + black circle icon left) -------- */
.c-btn--primary-white {
  background: rgba(255, 255, 255, 0.96);
  color: var(--btn-black);
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: var(--btn-shadow);
}

.c-btn--primary-white .c-btn__icon {
  background: var(--btn-black);
  color: rgba(255, 255, 255, 0.95);
}

/* Hover: filled black pill + arrow at right */
.c-btn--primary-white:hover,
.c-btn--primary-white:active {
  background: var(--btn-black);
  color: rgba(255, 255, 255, 0.95);
  border-color: transparent;
  box-shadow: var(--btn-shadow);
}

.c-btn--primary-white:hover .c-btn__icon,
.c-btn--primary-white:active .c-btn__icon {
  background: transparent;
  order: 3;
  width: auto;
  height: auto;
}

/* -------- Secondary White (white pill, no icon) -------- */
.c-btn--secondary-white {
  background: rgba(255, 255, 255, 0.96);
  color: var(--btn-black);
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: var(--btn-shadow);
}

.c-btn--secondary-white:hover,
.c-btn--secondary-white:active {
  background: var(--btn-black);
  color: rgba(255, 255, 255, 0.95);
  border-color: transparent;
}

/* -------- Icon button (Instagram) -------- */
.c-icon-btn {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 6px solid rgba(0, 0, 0, 0.55);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  transition: border-color 200ms ease, transform 200ms ease;
}
.c-icon-btn:hover,
.c-icon-btn:active {
  border-color: rgba(0, 0, 0, 0.95);
  transform: translateY(-1px);
}

/* =========================================================
   BOTTOM NAV (no wrap on mobile, shrink instead)
========================================================= */

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 60;
  pointer-events: none;
  opacity: 0;
  transition: opacity 240ms ease, transform 240ms ease;
}

/* appears only after intro unlock */
body.scrollable .bottom-nav {
  opacity: 1;
}

.bottom-nav__pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;

  padding: 10px 12px;
  border-radius: 999px;

  background: rgba(50, 50, 50, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);

  flex-wrap: nowrap; /* ✅ never wrap */
  white-space: nowrap; /* ✅ never wrap */
  max-width: min(92vw, 560px);
}

.bottom-nav__link {
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 999px;

  font-family: "Mont", sans-serif;
  font-weight: 500;
  font-size: 16px;

  text-decoration: none;
  color: rgba(255, 255, 255, 0.72);
  transition: color 180ms ease, background-color 180ms ease,
    transform 180ms ease;
  white-space: nowrap;
}

.bottom-nav__link:hover,
.bottom-nav__link:active {
  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.bottom-nav__link.is-active {
  color: rgba(255, 255, 255, 0.95);
}

/* hide/show state */
.bottom-nav.is-hidden {
  transform: translateX(-50%)
    translateY(calc(150% + env(safe-area-inset-bottom)));
  opacity: 0;
}

/* Mobile: shrink everything (no wrap) */
@media (max-width: 480px) {
  .bottom-nav__pill {
    gap: 8px;
    padding: 8px 10px;
  }
  .bottom-nav__link {
    height: 40px;
    padding: 0 10px;
    font-size: 14px;
  }
  .c-btn--sm {
    height: 40px;
    padding: 0 14px;
    font-size: 14px;
  }
}
/* Story: slightly smaller text on small screens */
@media (max-width: 480px) {
  .story-line {
    font-size: 1.625rem !important; /* Fallback for clamp() */
    font-size: clamp(1.05rem, 5vw, 2.2rem) !important;
    line-height: 1.6;
  }
}
/* Story: reduce side padding on small screens */
@media (max-width: 480px) {
  #story.story-section {
    padding: 0 18px;
  }

  .story-line {
    padding: 0 6px;
  }
}
/* Nav icons: default OFF (text-only on desktop) */
.bottom-nav__link .nav-ico,
.c-btn--navicon .btn-ico {
  display: none;
}

.bottom-nav__link .nav-txt,
.c-btn--navicon .btn-txt {
  display: inline;
}

/* icon sizing (used only on mobile) */
.bottom-nav__link .nav-ico svg,
.c-btn--navicon .btn-ico svg {
  width: 18px;
  height: 18px;
}

/* Small mobile: ICON ONLY (no text anywhere in nav) */
@media (max-width: 375px) {
  .bottom-nav__link .nav-txt,
  .c-btn--navicon .btn-txt {
    display: none !important;
  }

  .bottom-nav__link .nav-ico,
  .c-btn--navicon .btn-ico {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }

  /* tighten link hitboxes so the pill fits */
  .bottom-nav__link {
    padding: 0 10px; /* previously 0 10px, keep tight */
    min-width: 40px; /* consistent tap area */
  }

  /* make resume become icon-button sized */
  .c-btn--navicon {
    padding: 0 12px;
    gap: 0;
    min-width: 44px;
  }
}
/* =========================
   HERO OVERLAY (TOP, RESPONSIVE, NON-BREAKING)
========================= */

/* Hidden until reveal finishes (prevents fighting with hello/feathers) */
#whiteSection .hero-overlay {
  opacity: 0;
  transition: opacity 300ms ease;
}

/* Show only after the curtain reveal */
body.after-reveal #whiteSection .hero-overlay {
  opacity: 1;
}

/* Main overlay layer */
#whiteSection .hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;            /* above the cutout svg */
  pointer-events: none;  /* never blocks scroll/click */
  overflow: hidden;      /* keep decor inside panel */
}

/* Responsive layout: two columns on desktop, one column on mobile */
#whiteSection .hero-overlay {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-content: start;
  gap: 17px; /* Fallback for clamp() */
  gap: clamp(10px, 2vw, 24px);

  /* Always keep content at the TOP of the panel */
  padding: 35px; /* Fallback for clamp() */
  padding: clamp(14px, 2.8vw, 56px);
  padding-top: calc(env(safe-area-inset-top) + 35px); /* Fallback */
  padding-top: calc(env(safe-area-inset-top) + clamp(14px, 2.8vw, 56px));
}

/* Your panel ends at y:-6vh after reveal — counter it so content sits at the top of the screen */
body.after-reveal #whiteSection .hero-overlay {
  transform: translateY(6vh);
}

/* Copy blocks */
#whiteSection .hero-copy {
  color: #111;
  text-rendering: geometricPrecision;
}

#whiteSection .hero-copy-left {
  justify-self: start;
  text-align: left;
}

#whiteSection .hero-copy-right {
  justify-self: end;
  text-align: right;
}

#whiteSection .hero-kicker {
  font-size: 15px; /* Fallback for clamp() */
  font-size: clamp(12px, 1.2vw, 18px);
  font-weight: 500;
  opacity: 0.7;
  line-height: 1.1;
  margin-bottom: 6px;
}

#whiteSection .hero-head {
  font-size: 19px; /* Fallback for clamp() */
  font-size: clamp(16px, 1.9vw, 2.2vw);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

/* Decorative assets (centered + responsive) */
#whiteSection .hero-hands {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: min(72vw, 820px);
  height: auto;
  opacity: 0.35;
  z-index: 0;
  object-fit: contain;
}

#whiteSection .hero-line {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: min(86vw, 1050px);
  height: auto;
  z-index: 0;
  object-fit: contain;
  opacity: 0.9;
}

#whiteSection .hero-line-main {
  top: 124px; /* Fallback for clamp() */
  top: clamp(78px, 10.5vw, 170px);
}

#whiteSection .hero-line-overflow {
  top: 146px; /* Fallback for clamp() */
  top: clamp(92px, 12vw, 200px);
  opacity: 0.85;
}

#whiteSection .hero-feather {
  position: absolute;
  top: 135px; /* Fallback for clamp() */
  top: clamp(84px, 10.5vw, 185px);
  right: 41px; /* Fallback for clamp() */
  right: clamp(12px, 2.6vw, 70px);
  width: 67px; /* Fallback for clamp() */
  width: clamp(38px, 6vw, 96px);
  height: auto;
  z-index: 1;
  object-fit: contain;
}

/* =========================================================
   HERO MOBILE LAYOUT (<= 768px)
   Match reference image exactly
========================================================= */
@media (max-width: 768px) {
  /* Force hero content to visually center */
  #whiteSection .hero-overlay {
    grid-template-columns: 1fr;
    justify-items: center;
    align-content: center;        /* ⬅️ CENTER vertically */
    padding-top: 115px; /* Fallback for clamp() */
    padding-top: clamp(90px, 14vw, 140px); /* space for hands */
  }

  /* Stack + center text */
  #whiteSection .hero-copy {
    text-align: center;
    justify-self: center;
  }

  #whiteSection .hero-copy-left,
  #whiteSection .hero-copy-right {
    max-width: 32ch;
  }

  /* Typography scaling for mobile */
  #whiteSection .hero-kicker {
    font-size: 14px;
  }

  #whiteSection .hero-head {
    font-size: 21px; /* Fallback for clamp() */
    font-size: clamp(18px, 5vw, 24px);
    line-height: 1.2;
  }

  /* Hands move to TOP like reference */
  #whiteSection .hero-hands {
    width: min(92vw, 520px);
    opacity: 0.25;
  }

  /* Hide decorative lines on mobile (clean look) */
  #whiteSection .hero-line-main,
  #whiteSection .hero-line-overflow {
    display: none !important;
  }

  /* Feather stays top-right, smaller */
  #whiteSection .hero-feather {
    top: 32px;
    width: 48px;
    right: 16px;
  }
}
/* =========================================================
   MAIN LINE "COMES FROM CUTOUT" EFFECT (ALL SCREENS)
========================================================= */

/* Shared tuning knobs (easy to tweak) */
#whiteSection {
  --mainline-rot: -10deg;
  --mainline-y: 83px; /* Fallback for clamp() */
  --mainline-y: clamp(46px, 7vw, 120px);
  --mainline-x: 0px;
}

/* Apply SAME transform to both copies so they align */
#whiteSection .hero-line-main {
  top: var(--mainline-y);
  transform: translateX(-50%) rotate(var(--mainline-rot)) translateX(var(--mainline-x));
  transform-origin: left center;
}

/* The behind copy: sits UNDER the SVG white panel
   -> only visible through punched-out "SAGAR" letters */
#whiteSection .hero-line-under {
  z-index: -1;         /* behind the svg (svg is z-index: 0) */
  opacity: 0;          /* hidden until after reveal */
  filter: blur(0.15px) contrast(1.05) saturate(1.05);
}

/* Ensure the top copy stays above */
#whiteSection .hero-overlay .hero-line-main {
  z-index: 0;
}

/* Show both only after reveal (prevents intro overlap) */
body.after-reveal #whiteSection .hero-line-under {
  opacity: 0.95;
}

/* ---- Mobile: DO NOT hide the main line anymore (only hide overflow line) ---- */
@media (max-width: 768px) {
  /* override your earlier "display:none !important" */
  #whiteSection .hero-line-main {
    display: block !important;
  }
  #whiteSection .hero-line-overflow {
    display: none !important;
  }

  /* tweak for mobile so it visibly starts near the cutout */
  #whiteSection {
    --mainline-rot: -8deg;
    --mainline-y: 114px; /* Fallback for clamp() */
    --mainline-y: clamp(88px, 14vw, 140px);
    --mainline-x: -8px;
  }
}
/* =========================================================
   LINE EMERGING FROM "SAGAR" CUTOUT (SVG-INTERNAL, FOOL-PROOF)
========================================================= */

/* tuning knobs (desktop default) */
#whiteSection {
  --ml-rot: -10deg;
  --ml-tx: 0%;
  --ml-ty: 0%;
  --ml-scale: 1;
}

/* the line that lives INSIDE the svg */
#whiteSection .white-cutout .mask-line {
  opacity: 0; /* hidden until reveal finishes */
  transform-box: fill-box;
  transform-origin: left center;
  transform: translate(var(--ml-tx), var(--ml-ty)) rotate(var(--ml-rot))
    scale(var(--ml-scale));
  filter: saturate(1.05) contrast(1.05);
}

/* show only after the curtain reveal */
body.after-reveal #whiteSection .white-cutout .mask-line {
  opacity: 1;
}

/* ---- Mobile adjustments (<= 768px) ---- */
@media (max-width: 768px) {
  #whiteSection {
    --ml-rot: -7deg;
    --ml-tx: -2%;
    --ml-ty: 8%;
    --ml-scale: 1.02;
  }
}

/* ---- Very large screens: keep it looking intentional ---- */
@media (min-width: 1400px) {
  #whiteSection {
    --ml-rot: -11deg;
    --ml-tx: 0%;
    --ml-ty: -2%;
    --ml-scale: 1;
  }
}
/* =========================================================
   PROJECTS SECTION
========================================================= */

.projects-section {
  position: relative;
  z-index: 35; /* above background video/canvas */
  padding: 92px 40px; /* Fallback for clamp() */
  padding: clamp(64px, 8vw, 120px) 40px;
}

.projects-wrap {
  max-width: 1180px;
  margin: 0 auto;
}

.projects-head {
  text-align: center;
  margin-bottom: 34px; /* Fallback for clamp() */
  margin-bottom: clamp(24px, 4vw, 44px);
}

.projects-title {
  font-size: 2.8rem; /* Fallback for clamp() */
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
}

.projects-subtitle {
  margin-top: 10px;
  font-size: 1.125rem; /* Fallback for clamp() */
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  color: rgba(255, 255, 255, 0.75);
}

.projects-grid {
  display: grid;
  gap: 27px; /* Fallback for clamp() */
  gap: clamp(20px, 3.2vw, 34px);
}

/* Card */
.project-card {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 19px; /* Fallback for clamp() */
  gap: clamp(14px, 2.4vw, 24px);
  padding: 18px; /* Fallback for clamp() */
  padding: clamp(14px, 2.6vw, 22px);
  border-radius: 4rem;

  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.project-card.is-reverse .project-detail {
  order: 2;
}
.project-card.is-reverse .project-media {
  order: 1;
}

/* Left detail */
.project-detail {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 3rem;
  padding: 23px; /* Fallback for clamp() */
  padding: clamp(18px, 3vw, 28px);
  color: #111;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.65);
}

.meta-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  display: inline-block;
}

.meta-year {
  margin-left: auto;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(0, 0, 0, 0.06);
  color: rgba(0, 0, 0, 0.7);
}

.project-h3 {
  margin-top: 10px;
  font-size: 1.5rem; /* Fallback for clamp() */
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 900;
  letter-spacing: -0.01em;
}

.project-p {
  margin-top: 10px;
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.62);
}

.project-tags {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tag {
  font-size: 12px;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.tag-blue {
  background: rgba(40, 105, 255, 0.12);
  color: rgba(40, 105, 255, 0.92);
}
.tag-orange {
  background: rgba(255, 140, 0, 0.12);
  color: rgba(255, 140, 0, 0.92);
}
.tag-green {
  background: rgba(15, 170, 90, 0.12);
  color: rgba(15, 170, 90, 0.9);
}

/* Right media (carousel) — Pixel-perfect layout */
.project-media {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;

  /* keeps it visually tall like the mock */
  min-height: 420px;
}

/* remove arrow columns — design shows none */
.carousel {
  position: relative;
  display: block;
}

/* hide prev/next buttons (design has none) */
.car-btn {
  display: none;
}

/* INNER LIGHT GREY PANEL (the big grey area inside) */
.car-viewport {
  overflow: hidden;
  border-radius: 3rem;
}

.car-track {
  display: flex;
  transition: transform 360ms ease;
  will-change: transform;
}

/* Read More button style & exact center */
.car-cta {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);

  padding: 14px 26px;
  border-radius: 999px;

  background: rgba(0, 0, 0, 0.92);
  color: #fff;
  text-decoration: none;
  font-weight: 600;

  /* match the soft shadow in your closeup */
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);

  transition: transform 180ms ease, filter 180ms ease;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.car-viewport:hover .car-cta,
.car-viewport:focus-within .car-cta {
  opacity: 1;
  pointer-events: auto;
}

.car-cta:hover,
.car-cta:active {
  transform: translate(-50%, -50%) scale(1.03);
}


/* Responsive */
@media (max-width: 992px) {
  .project-card {
    grid-template-columns: 1fr;
  }
  .project-card.is-reverse .project-detail,
  .project-card.is-reverse .project-media {
    order: initial;
  }
}

/* =========================================================
   PROJECTS: Prevent overflow + equal split
   Put this at the END of style.css (so it overrides duplicates)
========================================================= */

.projects-section {
  width: 100%;
  overflow-x: clip; /* hard stop any accidental horizontal scroll */
}

.projects-wrap {
  width: 100%;
  max-width: min(1180px, calc(100vw - 80px)); /* respects your 40px side padding */
  margin: 0 auto;
}

.projects-grid,
.project-card {
  width: 100%;
}

/* Equal columns + stop grid children from pushing width */
.project-card {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); /* equal space */
}

/* Critical for overflow in CSS grid layouts */
.project-detail,
.project-media {
  min-width: 0;
}

/* =========================================================
   CAROUSEL: Strict 16:9 + hide non-active slides completely
========================================================= */

/* Ensure the media panel itself never leaks content */
.project-media {
  overflow: hidden;
}

/* Viewport must clip the moving track */
.car-viewport {
  overflow: hidden;
}

/* Force perfect slide math: each slide exactly 100% */
.car-track {
  display: flex;
  width: 100%;
  transform: translate3d(0, 0, 0);
}

.product-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.4rem;
}

.car-slide {
  position: relative;
  flex: 0 0 100%;
  min-width: 100%;
  padding-bottom: 56.25%; /* 9/16 * 100% = 56.25% for 16:9 fallback */
  height: 0;
  aspect-ratio: 16 / 9; /* ✅ strict 16:9 main image */
  border-radius: 18px;
  overflow: hidden;
}

/* Main focused image */
.car-slide img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover; /* use contain ONLY if you want letterboxing */
}

/* =========================================================
   THUMBNAILS: Full-width pill indicators with blurred images
========================================================= */

.car-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  margin-top: 16px;
}

/* Pill-shaped indicator button - takes equal space */
.car-thumb {
  flex: 1;
  height: 60px;
  border-radius: 100rem;
  border: 3px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  position: relative;
  overflow: hidden;
}

/* Blurred image inside pill */
.car-thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: blur(8px) brightness(0.6);
  transition: all 0.3s ease;
}

/* Active state - clear image with white border */
.car-thumb.is-active {
  border-color: rgba(255, 255, 255, 0.95);
  border-width: 4px;
}

.car-thumb.is-active img {
  filter: blur(0px) brightness(1);
}

/* Hover effect */
.car-thumb:hover {
  border-color: rgba(255, 255, 255, 0.6);
  transform: scale(1.02);
}

.car-thumb:hover img {
  filter: blur(4px) brightness(0.8);
}

.car-thumb.is-active:hover img {
  filter: blur(0px) brightness(1);
}


/* Detail button spacing */
.proj-readmore {
  margin-top: 16px;
  align-self: flex-start;
  display: none;
}

/* =========================================================
   PROJECTS — RESPONSIVE (place at END of style.css)
========================================================= */

/* Tablet: stack, keep same feel, reduce radii/padding */
@media (max-width: 992px) {
  .projects-section {
    padding: 80px 20px;
  }

  .projects-wrap {
    max-width: calc(100vw - 40px);
  }

  .project-card {
    grid-template-columns: 1fr; /* stack */
    border-radius: 36px;
    padding: 16px;
    gap: 16px;
  }

  .project-detail {
    border-radius: 28px;
    padding: 18px;
    min-height: auto; /* let it grow naturally */
  }

  .project-media {
    min-height: auto; /* remove fixed height on smaller screens */
    gap: 14px;
  }

  /* Keep main gallery always 16:9 even when stacked */
  .car-slide {
    padding-bottom: 56.25%; /* 9/16 * 100% = 56.25% for 16:9 fallback */
    height: 0;
    aspect-ratio: 16 / 9;
    border-radius: 18px;
  }

  .car-viewport {
    border-radius: 28px;
  }
}

/* Small screens: tighter typography + thumb bar becomes scrollable */
@media (max-width: 576px) {
  .projects-title {
    font-size: 2.2rem; /* Fallback for clamp() */
    font-size: clamp(1.8rem, 7vw, 2.6rem);
  }

  .projects-subtitle {
    font-size: 1rem;
    line-height: 1.4;
  }

  .project-h3 {
    font-size: 1.25rem;
  }

  .project-p {
    font-size: 0.98rem;
  }

  /* Make the pill indicators scrollable on small screens */
  .car-dots {
    justify-content: flex-start;
    gap: 8px;
    padding: 10px 14px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }

  .car-dots::-webkit-scrollbar {
    display: none;
  }

  .car-thumb {
    flex: 0 0 auto;
    min-width: 100px;
    height: 50px;
    scroll-snap-align: start;
  }
}

/* Very small phones: reduce thumb size slightly */
@media (max-width: 480px) {
  .project-card {
    border-radius: 28px;
    padding: 14px;
  }

  .project-detail {
    border-radius: 22px;
    padding: 16px;
  }

  .car-thumb {
    min-width: 80px;
    height: 40px;
  }

  /* Mobile safety: prevent pill overflow */
  .projects-wrap {
    max-width: calc(100vw - 40px);
  }

  .car-thumb {
    min-width: 70px;
    height: 35px;
  }
}
/* =========================================================
   PROJECTS — MOBILE UX RULES (END of style.css)
========================================================= */

/* Mobile: image first for ALL projects (including is-reverse) */
@media (max-width: 992px) {
  .project-card {
    grid-template-columns: 1fr;
  }
.product-info {
  gap: 0.6rem;
}
  /* Force image first, details second (always) */
  .project-media { order: 1 !important; }
  .project-detail { order: 2 !important; 
  gap: 2rem;}
  
  /* Hide thumbnail pill completely */
  .project-media .car-dots {
    display: none !important;
  }
  
  /* Hide hover-based CTA on image (hover UX is bad on mobile) */
  .project-media .car-cta {
    display: none !important;
  }
  
  /* Make sure only the FIRST slide is shown (no sideways peek risk) */
  .project-media .car-track {
    transform: translate3d(0,0,0) !important;
  }

  /* Detail button spacing */
  .proj-readmore {
    margin-top: 16px;
    align-self: flex-start;
    display: flex;
  }

}
/* =========================
   Curious Section
========================= */
.curious-section {
  width: 100%;
  position: relative;
  z-index: 30; /* above background video/canvas */
  padding: 66px 0; /* Fallback for clamp() */
  padding: clamp(48px, 6vw, 84px) 0;
  background: #00000000; /* matches your black section headers */
}

.curious-head {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto 36px; /* Fallback for clamp() */
  margin: 0 auto clamp(28px, 3vw, 44px);
  text-align: center;
}

.curious-head h2 {
  margin: 0 0 10px;
  font-size: 49px; /* Fallback for clamp() */
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.05;
  color: #fff;
  font-weight: 700;
}

.curious-head p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 16px; /* Fallback for clamp() */
  font-size: clamp(14px, 1.5vw, 18px);
}

.curious-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.curious-divider {
  display: none !important;
  height: 0 !important;
}

.curious-row {
  width: 100%;
  background: #ffffff;          /* ✅ row is the white strip */
  overflow: hidden;
}

/* Inner container (content width + grid) */
.curious-card {
  width: min(1320px, calc(100% - 80px));
  margin: 0 auto;
  background: transparent;    /* ✅ no “card” feel */
  border-radius: 0;           /* ✅ no rounding */
  padding: 51px 0; /* Fallback for clamp() */
  padding: clamp(38px, 4vw, 64px) 0;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 31px; /* Fallback for clamp() */
  gap: clamp(18px, 3vw, 44px);
  align-items: center;
}

.curious-text h3 {
  margin: 0 0 10px;
  font-size: 27px; /* Fallback for clamp() */
  font-size: clamp(20px, 2.2vw, 34px);
  line-height: 1.2;
  color: #111;
  font-weight: 650;
}

.curious-text p {
  margin: 0;
  color: rgba(0, 0, 0, 0.55);
  font-size: 16px; /* Fallback for clamp() */
  font-size: clamp(14px, 1.35vw, 18px);
  line-height: 1.5;
  max-width: 52ch;
}

.curious-text--right {
  text-align: right;
  justify-self: end;
}

.curious-text--right p {
  margin-left: auto;
}

/* Collage */
.curious-collage {
  position: relative;
  top: 0rem;
  left: -2rem;
  width: 100%;
  min-height: 265px; /* Fallback for clamp() */
  min-height: clamp(210px, 22vw, 320px);
}

.curious-img {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transition: transform 220ms ease, filter 220ms ease, box-shadow 220ms ease;
  will-change: transform, filter;
    cursor: pointer;
  transform: translate(-50%, -50%) rotate(var(--r));
  width: clamp(88px, 11vw, 160px);
  height: clamp(88px, 11vw, 160px); /* 1:1 fallback for aspect-ratio */
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: clamp(18px, 2vw, 28px);
  background: #f4f4f4;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Hover brings image to front + focuses it */
.curious-img:hover,
.curious-img:active,
.curious-img:focus-visible {
  z-index: 50; /* comes in front */
  filter: saturate(1.2) contrast(1.05);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.28);
  transform: translate(-50%, -50%) rotate(var(--r)) scale(1.08);
  outline: none;
}

/* Optional: de-emphasize others when hovering collage */
.curious-collage:hover .curious-img:not(:hover),
.curious-collage:active .curious-img:not(:active) {
  filter: saturate(1) opacity(0.75);
}
/* Mobile: collage first then text (for ALL rows) */
@media (max-width: 768px) {
  .curious-section {
    padding: 44px 0;
  }

  .curious-card {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 28px 0; /* ✅ strip padding, not a card padding */
    width: calc(100% - 40px);
  }

  /* Make collage a horizontal strip instead of scattered absolute */
  .curious-collage {
    display: flex;
    align-items: center;
    gap: 12px;
    top: -3rem;
    left: 0;
    padding: 10px 4px;
    justify-content: center;
    /* prevent scrollbars */
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  .curious-collage::-webkit-scrollbar {
    display: none;
  }

  .curious-text {
    order: 1;
    text-align: left;
    justify-self: start;
  }

  .curious-text p {
    max-width: 60ch;
  }

  .curious-img {
    position: relative;
    left: auto;
    top: auto;

    flex: 0 0 auto;

    /* keep your random rotation */
    transform: rotate(var(--r));

    /* but still looks layered */
    margin-left: -18px; /* overlap like a deck */
  }

  /* First image shouldn't be pulled left */
  .curious-img:first-child {
    margin-left: 0;
  }

  /* Hover on mobile isn't reliable; keep a tap-friendly focus */
  .curious-img:active {
    z-index: 50;
    transform: rotate(var(--r)) scale(1.06);
  }
}

/* Tiny screens: reduce side padding */
@media (max-width: 576px) {
  .curious-card {
    width: calc(100% - 36px);
  }
  .curious-img{
    width: clamp(80px, 15vw, 140px);
    height: clamp(80px, 15vw, 140px);
  }
  .curious-collage{
    top: 0rem;
    min-height: clamp(120px, 20vw, 240px);
  }
}
/* Tiny screens: reduce side padding */
@media (max-width: 480px) {
  .curious-img{
    width: clamp(64px, 12vw, 100px);
    height: clamp(64px, 12vw, 100px);
  }
}
/* Tiny screens: reduce side padding */
@media (max-width: 375px) {
  .curious-img{
    width: clamp(52px, 10vw, 88px);
    height: clamp(52px, 10vw, 88px);
  }
  .curious-collage{
    top: 0rem;
    min-height: clamp(100px, 20vw, 240px);
  }
}
/* =========================================================
   TYPOGRAPHY SYSTEM (Consistency for all headings/subheadings)
   Put this at the END of style.css so it overrides old rules
========================================================= */

:root {
  /* Section titles (H2) */
  --t-h2-size: clamp(2rem, 5vw, 3.6rem);
  --t-h2-weight: 900;
  --t-h2-letter: -0.02em;
  --t-h2-line: 1.05;

  /* Section subtitles (lead text under H2) */
  --t-sub-size: clamp(1rem, 1.8vw, 1.25rem);
  --t-sub-weight: 500;
  --t-sub-line: 1.45;
  --t-sub-color: rgba(255, 255, 255, 0.75);

  /* Card titles (H3 in cards) */
  --t-h3-size: clamp(1.25rem, 2.2vw, 2rem);
  --t-h3-weight: 900;
  --t-h3-letter: -0.01em;
  --t-h3-line: 1.2;

  /* Body text in cards */
  --t-body-size: 1rem;
  --t-body-line: 1.5;
}

/* ---------- Global defaults (optional but helps) ---------- */
h1, h2, h3 {
  font-family: "Mont", sans-serif;
  text-rendering: geometricPrecision;
}
/* ---------- Universal section title/subtitle (CONSISTENT everywhere) ---------- */
.section-title{
  font-size: var(--t-h2-size);
  font-weight: var(--t-h2-weight);
  letter-spacing: var(--t-h2-letter);
  line-height: var(--t-h2-line);
  margin-bottom: 10px;
}

.section-subtitle{
  font-size: var(--t-sub-size);
  font-weight: var(--t-sub-weight);
  line-height: var(--t-sub-line);
  color: var(--t-sub-color);
  margin-top: 10px;
}

/* ---------- Section headings (unify ALL H2 titles) ---------- */
/* Applies to: .scroll-section h2, .projects-title, .curious-head h2 */
.scroll-section h2,
.projects-title,
.curious-head h2,
.testimonials-head .section-title {
  font-size: var(--t-h2-size);
  font-weight: var(--t-h2-weight);
  letter-spacing: var(--t-h2-letter);
  line-height: var(--t-h2-line);
}

/* ---------- Section subtitles (unify ALL subhead text under H2) ---------- */
/* Applies to: .projects-subtitle, .curious-head p */
/* (If you add a subtitle in scroll section later, reuse .section-subtitle class) */
.projects-subtitle,
.curious-head p,
.testimonials-head .section-subtitle {
  font-size: var(--t-sub-size);
  font-weight: var(--t-sub-weight);
  line-height: var(--t-sub-line);
  color: var(--t-sub-color);
}

/* ---------- Card headings (unify ALL H3 titles inside sections) ---------- */
/* Applies to: project card title + curious row title */
.project-h3,
.curious-text h3 {
  font-size: var(--t-h3-size);
  font-weight: var(--t-h3-weight);
  letter-spacing: var(--t-h3-letter);
  line-height: var(--t-h3-line);
}

/* ---------- Card body text (unify) ---------- */
.project-p,
.curious-text p {
  font-size: var(--t-body-size);
  line-height: var(--t-body-line);
}

/* ---------- Ensure no random margins break rhythm ---------- */
.scroll-section h2,
.projects-title,
.curious-head h2 {
  margin-bottom: 10px;
}

.projects-subtitle,
.curious-head p {
  margin-top: 10px;
}

/* Mobile tuning (keeps consistent scale) */
@media (max-width: 576px) {
  :root {
    --t-h2-size: 2.2rem; /* Fallback for clamp() */
    --t-h2-size: clamp(1.8rem, 7vw, 2.6rem);
    --t-sub-size: 1rem;
    --t-h3-size: 1.25rem;
  }
}

/* =========================================================
   PROFESSIONAL EXPERIENCE SECTION (Uses projects structure)
========================================================= */

.experience-section .project-company {
  font-size: clamp(16px, 1.5vw, 20px);
  color: rgba(0, 0, 0, 0.65);
  margin: 4px 0 12px 0;
  font-weight: 500;
}

/* Logo container (replaces carousel) */
.exp-logo-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 3rem;
  padding: clamp(32px, 5vw, 64px);
  min-height: 300px;
}

.exp-logo-container img {
  width: 100%;
  height: 100%;
  max-width: 320px;
  max-height: 320px;
  object-fit: contain;
  display: block;
}

@media (max-width: 992px) {
  .exp-logo-container {
    border-radius: 28px;
    padding: 40px;
    min-height: 240px;
  }

  .exp-logo-container img {
    max-width: 240px;
    max-height: 240px;
  }
}

@media (max-width: 768px) {
  .exp-logo-container {
    border-radius: 22px;
    padding: 32px;
    min-height: 200px;
  }

  .exp-logo-container img {
    max-width: 180px;
    max-height: 180px;
  }
}

/* =========================================================
   LIFE EXPERIENCE SECTION
========================================================= */

.life-experience-section {
  position: relative;
  z-index: 30;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 40px;
}

.life-wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  height: 95vh;
  max-height: 900px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 4rem;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(26px, 4vw, 56px);
}

.life-head {
  text-align: center;
  margin-bottom: clamp(18px, 3vw, 28px);
}

.life-head .section-title {
  font-size: var(--t-h2-size);
  font-weight: var(--t-h2-weight);
  letter-spacing: var(--t-h2-letter);
  line-height: var(--t-h2-line);
  margin: 0 0 10px;
  color: #111;
}

.life-head .section-subtitle {
  font-size: var(--t-sub-size);
  font-weight: var(--t-sub-weight);
  line-height: var(--t-sub-line);
  color: rgba(0, 0, 0, 0.55);
  margin: 10px 0 0;
}

.life-text-main {
  text-align: center;
  max-width: 800px;
  margin: 0 auto clamp(24px, 3vw, 40px);
}

.life-description {
  font-size: clamp(16px, 1.8vw, 22px);
  color: rgba(0, 0, 0, 0.65);
  line-height: 1.6;
  margin: 0;
}

/* Scattered image container - organic collage */
.life-scattered-container {
  position: relative;
  width: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Inner collage wrapper for absolute positioning */
.life-scattered-container::before {
  content: '';
  position: absolute;
  width: 100%;
  max-width: 700px;
  height: 100%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* Scattered images - absolute positioning for true collage */
.life-scattered-item {
  position: absolute;
  width: clamp(85px, 10vw, 120px);
  height: clamp(85px, 10vw, 120px);
  object-fit: cover;
  border-radius: clamp(18px, 2.2vw, 26px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border: 3px solid rgba(255, 255, 255, 0.95);
  transition: transform 0.3s ease, box-shadow 0.3s ease, z-index 0.3s ease;
  opacity: 1;
}

/* Organic scattered positioning - center-focused collage */
.life-scattered-item:nth-child(1) {
  left: 15%;
  top: 10%;
  transform: rotate(-12deg);
  z-index: 3;
}

.life-scattered-item:nth-child(2) {
  left: 28%;
  top: 8%;
  transform: rotate(8deg);
  z-index: 5;
}

.life-scattered-item:nth-child(3) {
  left: 45%;
  top: 5%;
  transform: rotate(-5deg);
  z-index: 2;
}

.life-scattered-item:nth-child(4) {
  left: 62%;
  top: 12%;
  transform: rotate(15deg);
  z-index: 4;
}

.life-scattered-item:nth-child(5) {
  left: 75%;
  top: 8%;
  transform: rotate(-8deg);
  z-index: 3;
}

.life-scattered-item:nth-child(6) {
  left: 10%;
  top: 35%;
  transform: rotate(10deg);
  z-index: 4;
}

.life-scattered-item:nth-child(7) {
  left: 25%;
  top: 38%;
  transform: rotate(-15deg);
  z-index: 6;
}

.life-scattered-item:nth-child(8) {
  left: 42%;
  top: 32%;
  transform: rotate(6deg);
  z-index: 7;
}

.life-scattered-item:nth-child(9) {
  left: 58%;
  top: 36%;
  transform: rotate(-10deg);
  z-index: 5;
}

.life-scattered-item:nth-child(10) {
  left: 72%;
  top: 40%;
  transform: rotate(12deg);
  z-index: 4;
}

.life-scattered-item:nth-child(11) {
  left: 18%;
  top: 65%;
  transform: rotate(-7deg);
  z-index: 3;
}

.life-scattered-item:nth-child(12) {
  left: 33%;
  top: 68%;
  transform: rotate(14deg);
  z-index: 5;
}

.life-scattered-item:nth-child(13) {
  left: 48%;
  top: 62%;
  transform: rotate(-11deg);
  z-index: 6;
}

.life-scattered-item:nth-child(14) {
  left: 64%;
  top: 70%;
  transform: rotate(9deg);
  z-index: 4;
}

.life-scattered-item:nth-child(15) {
  left: 78%;
  top: 66%;
  transform: rotate(-13deg);
  z-index: 3;
}

.life-scattered-item:hover {
  transform: scale(1.2) rotate(0deg) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  z-index: 100 !important;
}

@media (max-width: 992px) {
  .life-experience-section {
    padding: 0 20px;
  }

  .life-wrap {
    border-radius: 36px;
  }

  .life-scattered-item {
    width: clamp(70px, 12vw, 100px);
    height: clamp(70px, 12vw, 100px);
  }
}

@media (max-width: 768px) {
  .life-wrap {
    height: 85vh;
  }

  .life-scattered-item {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    border-width: 2px;
  }

  /* Adjust positions for smaller screens */
  .life-scattered-item:nth-child(1) { left: 12%; top: 8%; }
  .life-scattered-item:nth-child(2) { left: 26%; top: 6%; }
  .life-scattered-item:nth-child(3) { left: 43%; top: 4%; }
  .life-scattered-item:nth-child(4) { left: 60%; top: 10%; }
  .life-scattered-item:nth-child(5) { left: 76%; top: 7%; }
  .life-scattered-item:nth-child(6) { left: 8%; top: 32%; }
  .life-scattered-item:nth-child(7) { left: 23%; top: 35%; }
  .life-scattered-item:nth-child(8) { left: 40%; top: 30%; }
  .life-scattered-item:nth-child(9) { left: 57%; top: 34%; }
  .life-scattered-item:nth-child(10) { left: 74%; top: 38%; }
  .life-scattered-item:nth-child(11) { left: 15%; top: 62%; }
  .life-scattered-item:nth-child(12) { left: 31%; top: 65%; }
  .life-scattered-item:nth-child(13) { left: 47%; top: 60%; }
  .life-scattered-item:nth-child(14) { left: 63%; top: 67%; }
  .life-scattered-item:nth-child(15) { left: 79%; top: 64%; }
}

@media (max-width: 576px) {
  .life-wrap {
    border-radius: 28px;
    padding: 22px;
    height: 80vh;
  }

  .life-scattered-item {
    width: 75px;
    height: 75px;
    border-radius: 14px;
  }
}

/* =========================================================
   QUOTE SECTION (with scroll animation like story)
========================================================= */

.quote-section {
  position: relative;
  z-index: 30;
  width: 100%;
  min-height: 100vh;
  padding: clamp(80px, 10vw, 140px) 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quote-wrap {
  width: min(1100px, calc(100% - 80px));
  margin: 0 auto;
  text-align: center;
}

.main-quote {
  margin: 0;
  padding: 0;
}

.quote-text {
  font-size: clamp(28px, 4.5vw, 56px);
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin: 0;
  letter-spacing: -0.02em;
}

.quote-text .word {
  display: inline-block;
  white-space: pre-wrap;
}

@media (max-width: 768px) {
  .quote-section {
    min-height: 80vh;
    padding: clamp(60px, 10vw, 100px) 0;
  }

  .quote-wrap {
    width: calc(100% - 40px);
  }
}

/* =========================================================
   TESTIMONIALS SECTION (match Story width + 100vh + semi-orbit)
========================================================= */

.testimonials-section{
  position: relative;
  z-index: 35;
  width: 100%;
  min-height: 100vh;          /* ✅ full viewport height */
  display: flex;
  align-items: center;
  padding: 0 40px;
}

/* ✅ MATCH STORY WIDTH (Story uses max-width:1180px) */
.testimonials-wrap{
  width: 100%;
  max-width: 1180px;          /* ✅ same as story/projects */
  margin: 0 auto;

  height: 95vh;              /* ✅ the panel is 100vh */
  max-height: 900px;          /* ✅ optional safety for huge screens */
  background: rgba(255,255,255,0.96);
  border-radius: 4rem;
  box-shadow: 0 30px 90px rgba(0,0,0,0.28);
  overflow: hidden;

  display: flex;
  flex-direction: column;
  justify-content: flex-start;

  padding: clamp(26px, 4vw, 56px);
}

.testimonials-head{
  text-align: center;
  margin-bottom: clamp(18px, 3vw, 28px);
  /* ✅ No padding-top on desktop - keep original position */
}

/* ✅ Make subtitle/title match your typography system on dark sections,
   but with black text here */
.testimonials-head .section-title{
  color: #111;
  margin-bottom: 12px;
}
.testimonials-head .section-subtitle{
  color: rgba(0,0,0,0.55);
}

/* stage fills remaining height */
.t-stage{
  position: relative;
  flex: 1;
  width: 100%;
}

/* ✅ MASK: only show TOP HALF (semi-circle reveal) */
.t-orbit-mask{
  position: absolute;
  left: 0;
  right: 0;

  bottom: 0;      /* ✅ mask starts at bottom */
  height: 55%;    /* ✅ shows upper half nicely */
  pointer-events: none;
}


/* ✅ actual circle - LARGER */
.t-orbit{
  position: absolute;
  left: 50%;
  bottom: 0;                  /* ✅ anchor to bottom of panel */
  width: min(1100px, 95vw, 900px); /* ✅ INCREASED from 900px to 1100px */
  padding-bottom: min(1100px, 95vw, 900px); /* 1:1 fallback for aspect-ratio */
  height: 0;
  aspect-ratio: 1 / 1;

  /* ✅ put the circle center exactly on the bottom edge */
  transform: translate(-50%, 50%) rotate(0deg);
  transform-origin: 50% 50%;
}


/* faces placed by JS in a ring */
.t-face{
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(10rem, 10.5vw, 170px); /* ✅ bigger + responsive */
  height: clamp(10rem, 10.5vw, 170px); /* 1:1 fallback for aspect-ratio */
  aspect-ratio: 1 / 1;
  object-fit: cover;
  will-change: transform, opacity;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transform-origin: 50% 50%;
  border-radius: 28px;
  transform: translate(-50%, -50%);
  background: #f4f4f4;
  border: 1px solid rgba(0,0,0,0.10);
  box-shadow: 0 18px 40px rgba(0,0,0,0.14);
  opacity: 0.95;
}

/* quote sits ABOVE the orbit */
.t-quote{
  position: absolute;
  left: 50%;
  bottom: clamp(22px, 4vw, 44px);
  transform: translateX(-50%);
  width: 50%; /* ✅ INCREASED from 40% to 50% for longer testimonials */
  max-width: 600px; /* ✅ Added max-width for better readability */
  text-align: center;
  z-index: 5;
}

.t-quote-text{
  font-size: clamp(14px, 1.3vw, 17px); /* ✅ Slightly smaller for longer text */
  line-height: 1.65; /* ✅ Better line height for readability */
  color: rgba(0,0,0,0.65); /* ✅ Slightly darker for better contrast */
}

.t-quote-by{
  margin-top: 12px;
  font-weight: 800;
  font-size: clamp(12px, 1.1vw, 14px);
  color: rgba(0,0,0,0.85);
}

/* Responsive */
@media (max-width: 1200px){
  .t-orbit{
    width: min(950px, 92vw, 800px); /* ✅ Slightly smaller on medium screens */
    padding-bottom: min(950px, 92vw, 800px);
  }
}

@media (max-width: 992px){
  .testimonials-section{ padding: 0 20px; }
  .testimonials-wrap{ 
    border-radius: 36px;
    height: 90vh; /* ✅ Slightly shorter on tablets */
  }
  .testimonials-head{
    padding-top: clamp(35px, 5vh, 60px); /* ✅ START lowering heading on tablets */
  }
  .t-face{ 
    border-radius: 22px;
    width: clamp(9rem, 12vw, 150px); /* ✅ Better sizing for tablets */
    height: clamp(9rem, 12vw, 150px);
  }
  .t-orbit{
    width: min(800px, 90vw, 700px); /* ✅ Smaller orbit on tablets */
    padding-bottom: min(800px, 90vw, 700px);
  }
  .t-quote{
    width: 60%; /* ✅ Wider on tablets */
    bottom: clamp(30px, 5vw, 50px); /* ✅ Better positioning */
  }
}

@media (max-width: 768px){
  .testimonials-wrap{
    height: 85vh;
  }
  .testimonials-head{
    padding-top: clamp(30px, 4vh, 50px); /* ✅ Lower on smaller tablets */
  }
  .t-orbit{
    width: min(700px, 88vw, 600px); /* ✅ Even smaller on smaller tablets */
    padding-bottom: min(700px, 88vw, 600px);
  }
  .t-orbit-mask{ 
    bottom: 10%; 
    height: 60%; /* ✅ Show more of the circle */
  }
  .t-quote{
    width: 65%;
    bottom: clamp(25px, 4vw, 40px);
  }
}

@media (max-width: 576px){
  .testimonials-wrap{
    border-radius: 28px;
    padding: 20px;
    max-height: none;
    height: 82vh;
  }
  .testimonials-head{
    padding-top: 25px; /* ✅ Lower heading on mobile */
    margin-bottom: 15px;
  }
  .t-face{ 
    width: clamp(7.5rem, 20vw, 120px); /* ✅ Better mobile sizing */
    height: clamp(7.5rem, 20vw, 120px);
    border-radius: 18px;
    /* Mobile transform fixes for rotation bug */
    transform-style: flat;
    backface-visibility: visible;
    transform-origin: 50% 50%;
    will-change: transform, opacity;
  }
  .t-orbit{
    width: min(600px, 85vw, 500px); /* ✅ Mobile-optimized orbit */
    padding-bottom: min(600px, 85vw, 500px);
  }
  .t-orbit-mask{ 
    bottom: 20%; 
    height: 65%; 
  }
  .t-quote{
    width: 75%; /* ✅ Wider on mobile */
    bottom: 20px;
  }
  .t-quote-text{
    font-size: 13px; /* ✅ Smaller on mobile for longer text */
    line-height: 1.6;
  }
  .t-quote-by{
    font-size: 11px;
    margin-top: 8px;
  }
}

@media (max-width: 480px){
  .testimonials-wrap{
    height: 78vh;
    padding: 18px;
  }
  .testimonials-head{
    padding-top: 20px; /* ✅ Even lower on small phones */
  }
  .t-orbit{
    width: min(500px, 82vw, 450px); /* ✅ Smaller for small phones */
    padding-bottom: min(500px, 82vw, 450px);
  }
  .t-orbit-mask{ 
    bottom: 25%; 
    height: 70%; 
  }
  .t-face{ 
    width: clamp(6.5rem, 22vw, 110px); /* ✅ Adjusted for small screens */
    height: clamp(6.5rem, 22vw, 110px);
    border-radius: 16px;
    /* Mobile transform fixes for rotation bug */
    transform-style: flat;
    backface-visibility: visible;
    transform-origin: 50% 50%;
  }
  .t-quote{
    width: 85%; /* ✅ Almost full width on small phones */
    bottom: 15px;
  }
  .t-quote-text{
    font-size: 12px;
  }
}

@media (max-width: 380px){
  .testimonials-wrap{
    height: 75vh;
  }
  .testimonials-head{
    padding-top: 15px; /* ✅ Minimal padding on very small phones */
  }
  .t-orbit{
    width: min(420px, 80vw, 400px); /* ✅ Very small phones */
    padding-bottom: min(420px, 80vw, 400px);
  }
  .t-face{ 
    width: clamp(5.5rem, 24vw, 100px);
    height: clamp(5.5rem, 24vw, 100px);
    /* Mobile transform fixes for rotation bug */
    transform-style: flat;
    backface-visibility: visible;
    transform-origin: 50% 50%;
  }
  .t-quote{
    width: 90%;
  }
  .t-quote-text{
    font-size: 11px;
    line-height: 1.55;
  }
}

/* =========================================================
   SCRATCH SECTION (Reward / Personal message)
========================================================= */

.scratch-section{
  position: relative;
  z-index: 35;
  width: 100%;
  padding: clamp(64px, 8vw, 110px) 40px;
}

.scratch-wrap{
  width: 100%;
  max-width: 1180px; /* ✅ match Story/Projects/Testimonials width */
  margin: 0 auto;
  text-align: center;
}

/* Head matches your typography system; just force white */
.scratch-head .section-title{ color: #fff; }
.scratch-head .section-subtitle{ color: rgba(255,255,255,0.75); }

.scratch-card{
  margin: clamp(22px, 3vw, 34px) auto 0;
  width: 100%;
  border-radius: 4rem;

  /* Golden coupon/gift card aesthetic */
  background: linear-gradient(135deg, 
    #f4e4c1 0%, 
    #e8d4a0 25%, 
    #f0ddb0 50%, 
    #d4b87c 75%, 
    #f4e4c1 100%
  );
  border: 2px solid #d4af37;
  box-shadow: 
    0 8px 32px rgba(212, 175, 55, 0.3),
    0 2px 8px rgba(212, 175, 55, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  
  padding: clamp(14px, 2.6vw, 22px);
  position: relative;
  overflow: hidden;
}

/* Golden shimmer effect */
.scratch-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 70%
  );
  animation: shimmer 3s infinite;
  pointer-events: none;
}

@keyframes shimmer {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* Decorative corner patterns */
.scratch-card::after {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(212, 175, 55, 0.4);
  border-radius: 3.5rem;
  pointer-events: none;
}

.scratch-reveal{
  width: 100%;
  height: clamp(420px, 55vh, 680px);
  border-radius: 3rem;
  /* Warm golden background for revealed content */
  background: linear-gradient(135deg, #fffef7 0%, #fff9e6 100%);
  color: #2c2416;
  display: grid;
  place-content: center;
  padding: clamp(18px, 3vw, 34px);
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 2px 8px rgba(212, 175, 55, 0.15);
}

/* Subtle pattern overlay */
.scratch-reveal::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(212, 175, 55, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.scratch-reveal__badge{
  display: inline-flex;
  margin: 0 auto 14px;
  padding: 8px 14px;
  border-radius: 999px;
  /* Golden badge */
  background: linear-gradient(135deg, #d4af37 0%, #f4e4c1 100%);
  color: #2c2416;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
  position: relative;
  z-index: 1;
}

.scratch-reveal__quote{
  font-size: clamp(18px, 2.2vw, 34px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 38ch;
  margin: 0 auto;
  color: #2c2416;
  position: relative;
  z-index: 1;
}

.scratch-reveal__by{
  margin-top: 14px;
  font-weight: 700;
  color: #8b7355;
  position: relative;
  z-index: 1;
}

/* Canvas overlay */
.scratch-top{
  position: absolute;
  inset: clamp(14px, 2.6vw, 22px);
  border-radius: 3rem;
  overflow: hidden;
  pointer-events: auto;
}

.scratch-canvas{
  width: 100%;
  height: 100%;
  display: block;
}

/* Center hint text */
.scratch-hint{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-weight: 900;
  font-size: clamp(16px, 2vw, 26px);
  /* Golden text on scratch surface */
  color: #8b6914;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
}

/* Reset button */
.scratch-reset{
  margin: 14px auto 0;
}

/* When scratched enough */
.scratch-card.is-revealed .scratch-hint{
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.98);
}
.scratch-card.is-revealed .scratch-top{
  pointer-events: none; /* stop scratching after reveal */
}

/* Responsive */
@media (max-width: 992px){
  .scratch-section{ padding: 80px 20px; }
  .scratch-card{ border-radius: 36px; }
  .scratch-reveal{ border-radius: 28px; }
  .scratch-top{ border-radius: 28px; }
}
@media (max-width: 576px){
  .scratch-card{ border-radius: 28px; }
  .scratch-reveal{ height: clamp(380px, 55vh, 620px); border-radius: 22px; }
  .scratch-top{ border-radius: 22px; }
}

/* Reward animation baseline */
.scratch-reveal__badge,
.scratch-reveal__quote,
.scratch-reveal__by{
  will-change: transform, opacity, filter;
}

/* Start state for reveal animation (JS will trigger) */
.scratch-card:not(.is-revealed) .scratch-reveal__badge,
.scratch-card:not(.is-revealed) .scratch-reveal__quote,
.scratch-card:not(.is-revealed) .scratch-reveal__by{
  transform: translateY(10px) scale(0.98);
  filter: blur(6px);
}
@media (max-width: 576px){
  .scratch-section{ padding: 70px 16px; }
  .scratch-reveal{ padding: 18px; }
  .scratch-reveal__quote{ max-width: 28ch; }
}
.scratch-card.is-revealed .scratch-top{
  pointer-events: none;
}

body{
  font-family: "Mont", sans-serif;
  overflow-x: hidden;
  /* overflow-y: auto removed - conflicts with Lenis smooth scroll */
  /* Lenis requires overflow: hidden (set earlier in this file) */
  -webkit-overflow-scrolling: touch;
}

/* support browsers where <html> is the scroller */
html.intro-loading,
body.intro-loading{
  overflow: hidden !important;
  height: 100%;
}

html.scrollable,
body.scrollable{
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  height: auto;
}

/* =========================
   Footer (Hero-style Full Width + SAGAR Cutout)
   Paste at END of style.css
========================= */

/* Hide footer during intro lock (fits your site behavior) */
body.intro-loading #siteFooter {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.site-footer {
  width: 100%;
  align-self: center;
  justify-items: center;
  position: relative;
  z-index: 30;
  margin-top: clamp(80px, 12vh, 150px); /* ✅ Add more space above footer */
}

/* ===== Make footer plate FULL-WIDTH like hero ===== */
.footer-card {
  width: 95vw !important;
  margin: 0 !important;
  border-radius: 50px 50px 0 0; /* Fallback for clamp() */
  border-radius: clamp(28px, 4vw, 72px) clamp(28px, 4vw, 72px) 0 0;
  overflow: hidden;
  background: transparent !important; /* IMPORTANT: cutout must reveal moving bg behind */
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
}

/* Top layout */
.footer-top {
  background: #fff; /* keep white plate */
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 35px; /* Fallback for clamp() */
  padding: clamp(22px, 3vw, 48px);
}

.footer-left {
  flex: 1;
  min-width: 0;
}

.footer-title {
  margin: 0;
  font-weight: 800;
  color: #111;
  font-size: clamp(22px, 2.2vw, 36px);
  line-height: 1.15;
}

.footer-subtitle {
  margin: 10px 0 0;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.45);
  font-size: clamp(18px, 1.6vw, 30px);
  line-height: 1.22;
  max-width: 56ch;
}

/* Social row */
.footer-social {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
}

/* Icon buttons */
.icon-btn {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #fff;
  box-shadow: 0 0px 0 4px rgba(0, 0, 0, 0.35);
  color: #111;
  text-decoration: none;
  transform: translateY(0);
  transition: transform 180ms ease, box-shadow 180ms ease,
    background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.icon-btn .social {
  width: 24px;
  height: 24px;
  opacity: 0.5;
}

/* FIX: don't turn icon white on white background */
.icon-btn:hover,
.icon-btn:active,
.icon-btn:focus-visible {
  background: #fff;
  opacity: 1;         
  box-shadow: 0 0px 0 2px rgba(0, 0, 0, 0.85);
  box-shadow: 0px 0px 2px 3px rgb(0 0 0 / 30%);
  scale: 105%;
  outline: none;
  transition: all 180ms ease;
}
.icon-btn:hover .social,
.icon-btn:active .social,
.icon-btn:focus-visible .social {
  scale: 120%;
  opacity: 1;
    transition: all 180ms ease;

}
.icon-btn:active {
  scale: 90%;
  opacity: 1;
  box-shadow: 0 0px 0 6px rgba(0, 0, 0, 0.85);
    transition: all 180ms ease;

}

/* Right meta */
.footer-right {
  flex: 0 0 auto;
  display: flex;
  align-items: end;
  justify-content: flex-end;
  min-width: 260px;
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(0, 0, 0, 0.55);
  font-weight: 700;
  font-size: 18px;
  white-space: nowrap;
}

.meta-sep {
  opacity: 0.45;
}

.footer-heart {
  width: 2rem;
}

.footer-feather {
  width: 22px;
  height: auto;
  margin-left: 6px;
  opacity: 0.85;
}

/* =========================
   SAGAR Cutout Area (Hero vibe)
========================= */
.footer-word-wrap {
  position: relative;
  width: 100%;
  height: 100px; /* base height for reveal */
  background: transparent; /* must be transparent for reveal */
}

/* SVG draws the white plate + hole */
.footer-cutout {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  transform-origin: 50% 100%;
  will-change: transform, opacity, filter;
}

/* Match your intro typography vibe */
.footer-cutout-text {
  font-family: inherit;
  font-weight: 900;
  letter-spacing: -0.08em;
  font-size: 340px; /* base for 1200x420 viewBox */
}

/* Responsive behavior */
@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-right {
    min-width: 0;
    width: 100%;
    justify-content: flex-start;
    margin-top: 10px;
  }

  .footer-meta {
    flex-wrap: wrap;
    white-space: normal;
    gap: 10px;
  }

  .meta-sep {
    display: none;
  }

  .footer-subtitle {
    max-width: 100%;
  }

  .footer-word-wrap {
    height: 30vh;
  }

  .footer-cutout-text {
    font-size: 280px;
  }
}

@media (max-width: 480px) {
  .icon-btn {
    width: 54px;
    height: 54px;
  }
  .footer-social {
    gap: 14px;
  }
  .footer-cutout-text {
    font-size: 240px;
  }
}
.footer-word-wrap{
  height: 520px !important; /* Fallback for clamp() */
  height: clamp(220px, 24vw, 820px) !important;
}
/* =========================
   Footer responsive layout (matches provided screenshots)
   Paste at END of style.css
========================= */

#siteFooter .footer-top{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(14px, 2vw, 28px);
}

/* Left content */
#siteFooter .footer-left{
  flex: 1 1 auto;
  min-width: 0;
}

#siteFooter .footer-title{
  margin: 0;
  font-weight: 800;
  color: #111;
  font-size: clamp(22px, 2.2vw, 36px);
  line-height: 1.12;
}

#siteFooter .footer-subtitle{
  margin: 10px 0 0;
  font-weight: 600;
  color: rgba(0,0,0,.45);
  font-size: clamp(18px, 1.6vw, 30px);
  line-height: 1.22;
  max-width: 58ch;
}

/* Social row */
#siteFooter .footer-social{
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
}

/* Right meta: desktop aligns right */
#siteFooter .footer-right{
  flex: 0 0 auto;
  min-width: 320px;              /* keeps it from wrapping too early */
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

#siteFooter .footer-meta{
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 14px;
  color: rgba(0,0,0,.55);
  font-weight: 400;
  font-size: 0.8rem;
  white-space: nowrap;
}

#siteFooter .meta-sep{
  opacity: .45;
}


/* ============ BREAKPOINTS ============ */

/* -------- Large desktop: keep exactly 1-line meta -------- */
@media (min-width: 1100px){
  #siteFooter .footer-right{ min-width: 360px; }
  #siteFooter .footer-meta{ white-space: nowrap; }
}

/* -------- Medium screens: allow meta to shrink a bit -------- */
@media (max-width: 1099px) and (min-width: 821px){
  #siteFooter .footer-right{ min-width: 260px; }
  #siteFooter .footer-meta{ font-size: 0.8rem; gap: 12px; }
}

/* -------- Tablet / small: STACK like screenshot -------- */
@media (max-width: 768px){
  #siteFooter .footer-top{
    flex-direction: column;
    align-items: flex-start;
  }

  #siteFooter .footer-right{
    width: 100%;
    min-width: 0;
    justify-content: flex-start;     /* meta moves under icons, left aligned */
    margin-top: 10px;
  }

  #siteFooter .footer-meta{
    width: 100%;
    justify-content: flex-start;
    white-space: normal;             /* allow wrap */
    flex-wrap: wrap;
    gap: 10px;
  }

  #siteFooter .meta-sep{
    display: none;                   /* matches screenshot: no separators on small */
  }

  #siteFooter .footer-subtitle{
    max-width: 100%;
  }
}

/* -------- Mobile: meta becomes 2-line, exactly like your images -------- */
@media (max-width: 576px){
  #siteFooter .footer-meta{
    display: grid;                   /* forces neat two-line stacking */
    grid-template-columns: 1fr;
    row-gap: 10px;
    font-size: 0.8rem;
  }

  /* Put the heart/feather at end visually without weird spacing */
  #siteFooter .footer-heart,
  #siteFooter .footer-feather{
    margin-left: 6px;
  }

  /* Social buttons fit nicely */
  #siteFooter .footer-social{
    gap: 14px;
  }
  #siteFooter .icon-btn{
    width: 54px;
    height: 54px;
  }
}
.divider{
  height: 1px;
  width: 94%;
  align-self: center;
  margin: 0 auto;
  justify-self: center;
  background-color: #0000005d;
  border-radius: 2rem;
}
.divider-container{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
}

/* =========================================================
   PLAYGROUND SECTION (stable + GSAP-friendly)
========================================================= */
.playground-section{
  position: relative;
  z-index: 34;
  width: 100%;

  /* Keep same “panel-in-viewport” behavior as testimonials */
  min-height: 100vh;
  display: flex;
  align-items: center;

  /* matches your testimonials padding rhythm */
  padding: 0 40px;
}

/* Playground styles moved to playground-slider.css */
    top: 12px;
  }
  
  .pg-item img {
    border-radius: 12px;
  }
}
