/* ========================================
   PN KAPOOR — SHARED DESIGN SYSTEM
   Edit colors, fonts, spacing here and 
   it updates across every page.
   ======================================== */

:root {
  /* Color */
  --cream: #F2EBDD;
  --cream-deep: #ECE3D0;
  --cream-soft: #F7F1E4;
  --ink: #16140E;
  --ink-soft: #2A2620;
  --ink-mute: #5B554A;
  --ink-faint: #8A8472;
  --line: #D8CFB9;
  --line-soft: #E5DDC8;
  --paper: #FFFBF1;

  /* Accents */
  --forest: #2A3F2A;
  --forest-deep: #1B2C1B;
  --brass: #B8893F;
  --brass-soft: #D4A85A;
  --terracotta: #B85240;
  --rose: #E8C8B5;
  --sage: #A8B89C;
  --citrus: #C9B458;

  /* Type */
  --display: 'Instrument Serif', 'Times New Roman', serif;
  --body: 'Geist', -apple-system, sans-serif;
  --mono: 'Geist Mono', monospace;

  /* Layout */
  --max: 1280px;
  --gutter: clamp(20px, 4vw, 60px);
  --radius: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* ========== TYPOGRAPHY ========== */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
}
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: -0.01em; line-height: 1.04; }
.h-display { font-size: clamp(48px, 7vw, 96px); line-height: 0.98; letter-spacing: -0.025em; }
.h1 { font-size: clamp(40px, 5.2vw, 72px); line-height: 1.02; letter-spacing: -0.02em; }
.h2 { font-size: clamp(32px, 3.8vw, 54px); line-height: 1.05; }
.h3 { font-size: clamp(22px, 2vw, 30px); line-height: 1.2; }
.italic { font-style: italic; }
.lede { font-size: clamp(17px, 1.4vw, 21px); line-height: 1.5; color: var(--ink-soft); font-weight: 400; max-width: 60ch; }
.body-sm { font-size: 14px; color: var(--ink-mute); }

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: transform .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: var(--cream); }
.btn-primary:hover { background: var(--forest-deep); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn-tonal { background: var(--paper); color: var(--ink); border: 1px solid var(--line); }
.btn-tonal:hover { background: var(--cream-deep); }
.btn-arrow svg { transition: transform .25s ease; }
.btn-arrow:hover svg { transform: translateX(3px); }

/* ========== LAYOUT ========== */
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: clamp(56px, 6.2vw, 92px) 0; position: relative; }
.section-head {
  margin-bottom: clamp(34px, 4vw, 56px);
  max-width: 800px;
}
.section-head .eyebrow { margin-bottom: 16px; }

/* ========== NAV ========== */
.nav-wrap {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 1320px;
  z-index: 100;
  background: rgba(247, 241, 228, 0.78);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border: 1px solid rgba(216, 207, 185, 0.6);
  border-radius: 22px;
  box-shadow: 0 6px 24px -8px rgba(22,20,14,0.08), 0 2px 8px -4px rgba(22,20,14,0.04);
  transition: box-shadow .3s, background .3s, border-color .3s;
}
.nav-wrap.scrolled {
  background: rgba(247, 241, 228, 0.92);
  box-shadow: 0 12px 32px -10px rgba(22,20,14,0.12), 0 4px 12px -4px rgba(22,20,14,0.06);
}
.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
  letter-spacing: 0.04em;
}
.brand-name { font-family: var(--display); font-size: 24px; font-weight: 400; letter-spacing: 0.02em; }
.brand-sub { font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-mute); margin-top: 3px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  font-size: 14.5px;
  color: var(--ink-soft);
  font-weight: 450;
  transition: color .2s;
  position: relative;
  padding: 4px 0;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); font-weight: 500; }
.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--forest);
  border-radius: 2px;
}
.nav-cta { display: flex; gap: 10px; align-items: center; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: none; }
}

/* ========== PAGE HERO (sub-pages) ========== */
.page-hero {
  padding: clamp(120px, 12vw, 180px) 0 clamp(60px, 8vw, 100px);
  position: relative;
  overflow: hidden;
}
.page-hero-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .8;
  mix-blend-mode: multiply;
  background-image: url("images/grain-blue.png");
  background-repeat: repeat;
  background-size: 240px 240px;
}
.page-hero-inner { position: relative; z-index: 1; }
.crumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 32px;
}
.crumb a { transition: color .2s; }
.crumb a:hover { color: var(--ink); }
.crumb .sep { color: var(--ink-faint); }
.crumb .current { color: var(--ink); }

/* ========== FOOTER ========== */
footer {
  background: var(--ink);
  color: var(--cream);
  padding: 80px 0 40px;
}
.ft-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 50px;
  padding-bottom: 60px;
  border-bottom: 1px solid #2D2A22;
}
.ft-brand-block .brand-name { font-size: 32px; color: var(--cream); }
.ft-brand-block .brand-sub { color: var(--brass-soft); }
.ft-tagline {
  margin-top: 20px;
  font-size: 14px;
  color: #A8A293;
  line-height: 1.6;
  max-width: 32ch;
}
.ft-socials { display: flex; gap: 12px; margin-top: 24px; }
.ft-social {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform .2s, filter .2s, box-shadow .2s;
}
.ft-social svg { width: 20px; height: 20px; }
.ft-social[href*="instagram"] { background: linear-gradient(45deg, #F09433 0%, #E6683C 25%, #DC2743 50%, #CC2366 75%, #BC1888 100%); }
.ft-social[href*="linkedin"] { background: #0A66C2; }
.ft-social:hover { transform: translateY(-3px); filter: brightness(1.08); box-shadow: 0 12px 26px -12px rgba(0,0,0,.55); }
.ft-col h5 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brass-soft);
  margin-bottom: 18px;
  font-weight: 500;
}
.ft-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ft-col a {
  font-size: 14px;
  color: #C9C2AE;
  transition: color .2s;
}
.ft-col a:hover { color: var(--cream); }
.ft-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 30px;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--ink-faint);
}
.ft-bottom a { color: var(--ink-faint); margin-left: 18px; }
.ft-bottom a:hover { color: var(--cream); }
.ft-wordmark {
  font-family: var(--display);
  font-size: clamp(80px, 18vw, 240px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: #322C1C;
  text-align: center;
  margin-top: 60px;
  padding-bottom: 20px;
  user-select: none;
}

@media (max-width: 900px) {
  .ft-top { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 500px) {
  .ft-top { grid-template-columns: 1fr; }
}

/* ========== UTILITIES ========== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease, transform .5s cubic-bezier(.2,.7,.2,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== FINAL CTA (shared) ========== */
.final-cta {
  background: var(--cream);
  text-align: center;
}
.final-cta-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(60px, 8vw, 100px) clamp(30px, 5vw, 60px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.final-cta-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at top right, rgba(184,137,63,.08), transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(42,63,42,.08), transparent 50%);
}
.final-cta-decoration {
  position: absolute;
  top: 30px;
  right: 30px;
  font-family: var(--display);
  font-size: 24px;
  color: var(--brass);
  opacity: .6;
}
.final-cta-decoration.left { right: auto; left: 30px; }
.final-cta .h-display { margin-bottom: 24px; }
.final-cta .h-display .italic { color: var(--forest); }
.final-cta .lede { margin: 0 auto; }
.final-cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }
.final-cta-meta {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  gap: 24px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  flex-wrap: wrap;
}
.final-cta-meta span { display: flex; align-items: center; gap: 8px; }
.final-cta-meta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--forest); }

/* ========================================
   SECTION COLOR VARIANTS
   ======================================== */
.sec-cream { background: var(--cream); }
.sec-cream-deep { background: var(--cream-deep); }
.sec-paper { background: var(--paper); }
.sec-ink { background: var(--ink); color: var(--cream); }
.sec-forest { background: var(--forest-deep); color: var(--cream); }
.sec-sage { background: #DDE5D5; }
.sec-rose { background: #F0DDD5; }
.sec-mint { background: #D5E5DC; }
.sec-stone { background: #D8D2C0; }

.sec-ink h1, .sec-ink h2, .sec-ink h3,
.sec-forest h1, .sec-forest h2, .sec-forest h3 { color: var(--cream); }
.sec-ink .eyebrow,
.sec-forest .eyebrow { color: var(--brass-soft); }
.sec-ink .lede,
.sec-forest .lede { color: #C9C2AE; }

/* ---- Cloudy textured backgrounds (Trupeer-inspired, brand-tuned) ---- */
.sec-cloud-blue, .sec-cloud-clay, .sec-ember { position: relative; isolation: isolate; }
.sec-cloud-blue {
  background:
    radial-gradient(ellipse 40% 34% at 24% 28%, rgba(255,255,255,0.92), transparent 70%),
    radial-gradient(ellipse 46% 38% at 68% 20%, rgba(255,255,255,0.78), transparent 72%),
    radial-gradient(ellipse 36% 30% at 48% 66%, rgba(255,255,255,0.65), transparent 70%),
    radial-gradient(ellipse 58% 44% at 88% 82%, rgba(255,255,255,0.55), transparent 72%),
    radial-gradient(ellipse 70% 58% at 82% 10%, rgba(196,221,238,0.9), transparent 66%),
    linear-gradient(165deg, #D0E2F1 0%, #BAD4E9 55%, #A6C7E2 100%);
}
.sec-cloud-clay {
  background:
    radial-gradient(ellipse 55% 50% at 16% 20%, rgba(255,248,242,0.60), transparent 60%),
    radial-gradient(ellipse 52% 46% at 84% 14%, rgba(232,196,180,0.72), transparent 62%),
    radial-gradient(ellipse 60% 55% at 74% 88%, rgba(206,140,120,0.48), transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 86%, rgba(236,210,196,0.70), transparent 60%),
    linear-gradient(160deg, #F0DACF 0%, #E9D0C4 55%, #E0C2B4 100%);
}
.sec-ember {
  background:
    radial-gradient(ellipse 46% 42% at 22% 30%, rgba(255,221,160,0.9), transparent 66%),
    radial-gradient(ellipse 52% 44% at 80% 20%, rgba(223,92,62,0.55), transparent 62%),
    radial-gradient(ellipse 50% 48% at 64% 82%, rgba(244,150,72,0.6), transparent 65%),
    radial-gradient(ellipse 44% 40% at 16% 86%, rgba(214,78,68,0.42), transparent 62%),
    linear-gradient(155deg, #F4DCBC 0%, #EEB98E 46%, #E29A78 100%);
}
.sec-cloud-blue::before, .sec-cloud-clay::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: url("images/grain-blue.png");
  background-repeat: repeat; background-size: 240px 240px;
  opacity: 0.5; mix-blend-mode: multiply;
}

/* ========================================
   IMAGE HOLDERS (for real photos)
   ======================================== */
.img-holder {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--cream-deep);
  background-size: cover;
  background-position: center;
}
.img-holder.tinted::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(22,20,14,.4));
  pointer-events: none;
}

/* ========================================
   SUBPAGE HERO — cloudy blue backdrop (Trupeer-style pop)
   ======================================== */
.page-hero {
  background:
    radial-gradient(ellipse 42% 44% at 18% 20%, rgba(255,255,255,0.92), transparent 70%),
    radial-gradient(ellipse 48% 40% at 80% 12%, rgba(255,255,255,0.78), transparent 72%),
    radial-gradient(ellipse 40% 36% at 52% 88%, rgba(255,255,255,0.6), transparent 70%),
    radial-gradient(ellipse 66% 56% at 86% 78%, rgba(150,200,235,0.85), transparent 66%),
    linear-gradient(165deg, #A6D3F2 0%, #86C2EA 55%, #6FB6E6 100%);
}

/* ========================================
   SCROLL REVEAL — stagger helper (used site-wide via reveal.js)
   ======================================== */
.reveal { will-change: opacity, transform; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ========================================
   MOBILE NAV (hamburger + slide-down menu)
   ======================================== */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  width: 44px; height: 44px; align-items: center; justify-content: center;
  border-radius: 12px; background: transparent; cursor: pointer;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .2s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu {
  position: fixed; top: 76px; left: 14px; right: 14px; z-index: 99;
  background: #F6EAE2; border: 1px solid var(--line); border-radius: 20px;
  padding: 14px; display: flex; flex-direction: column; gap: 4px;
  box-shadow: 0 30px 70px -30px rgba(22,20,14,.45);
  opacity: 0; transform: translateY(-10px); pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  overflow: hidden;
}
.mobile-menu::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("images/grain-warm.png"); background-repeat: repeat; background-size: 240px 240px;
  opacity: .38; mix-blend-mode: multiply;
}
.mobile-menu > * { position: relative; z-index: 1; }
.mobile-menu.open { opacity: 1; transform: none; pointer-events: auto; }
.mobile-menu .mm-link { padding: 13px 14px; border-radius: 12px; font-size: 16px; color: var(--ink-soft); }
.mobile-menu .mm-link:hover { background: var(--cream-deep); color: var(--ink); }
.mobile-menu .btn { margin-top: 8px; justify-content: center; width: 100%; }
@media (max-width: 860px) { .nav-toggle { display: flex; } }



/* ======================================================
   MOBILE RESPONSIVE PASS — desktop design unchanged
   ====================================================== */
@media (max-width: 860px) {
  .nav { padding: 12px 14px; gap: 12px; }
  .brand-name { font-size: 20px; }
  .brand-sub { font-size: 9px; letter-spacing: .14em; }
  .nav-cta .btn-primary { padding: 10px 15px; font-size: 13px; }
  .nav-cta .btn-primary svg { display: none; }
}
@media (max-width: 600px) {
  section { padding: 54px 0; }
  .page-hero { padding: 96px 0 44px; }
  .section-head { margin-bottom: 36px; }
  .h-display { font-size: clamp(30px, 9vw, 50px); }
  .h1 { font-size: clamp(26px, 8vw, 42px); }
  .h2 { font-size: clamp(23px, 7vw, 36px); }
  .h3 { font-size: clamp(19px, 5vw, 26px); }
  .lede { font-size: 15.5px; }
  .ft-top { grid-template-columns: 1fr 1fr; gap: 30px; padding-bottom: 38px; }
  .ft-wordmark { font-size: clamp(40px, 13vw, 90px); margin-top: 34px; }
  footer { padding: 54px 0 32px; }
  .final-cta-actions { flex-direction: column; }
  .final-cta-actions .btn { width: 100%; }
  .final-cta-inner { padding: 44px 24px; }
  .crumb { margin-bottom: 22px; flex-wrap: wrap; }
}
@media (max-width: 420px) {
  .ft-top { grid-template-columns: 1fr; }
  .btn { padding: 12px 18px; }
}

@media (max-width: 860px) { .brand-sub { white-space: nowrap; } }


/* centered section headers (grid sections) */
.section-head.centered { text-align: center; margin-left: auto; margin-right: auto; }
.section-head.centered .lede { margin-left: auto; margin-right: auto; }

/* mobile: slimmer floating nav (single-line brand) */
@media (max-width: 600px) {
  .brand-sub { display: none; }
  .nav { padding: 8px 12px; }
  .nav-wrap { top: 10px; }
  .nav-cta .btn-primary { padding: 9px 14px; font-size: 12.5px; }
}


/* ===== Grain: subtle on dark bands; tooth on green/pink tints ===== */
.sec-ink, .sec-forest, .process-overview, footer, .cat-stats,
.sec-sage, .sec-rose, .sec-mint { position: relative; }
/* Dark bands: dialed-down warm grain */
.sec-ink::after, .sec-forest::after, .process-overview::after, footer::after, .cat-stats::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("images/grain-light.png");
  background-repeat: repeat; background-size: 240px 240px;
  border-radius: inherit;
  opacity: .28; mix-blend-mode: screen;
}
/* Green / pink tints: gentle tooth */
.sec-sage::after, .sec-mint::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("images/grain-blue.png");
  background-repeat: repeat; background-size: 240px 240px;
  border-radius: inherit;
  opacity: .3; mix-blend-mode: multiply;
}
.sec-rose::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("images/grain-warm.png");
  background-repeat: repeat; background-size: 240px 240px;
  border-radius: inherit;
  opacity: .42; mix-blend-mode: multiply;
}
/* Keep real content above the grain */
.sec-ink > *, .sec-forest > *, .process-overview > *, footer > *, .cat-stats > *,
.sec-sage > *, .sec-rose > *, .sec-mint > * { position: relative; z-index: 1; }
