/* ===========================================================
   Megha Gupta — Portfolio (Light theme)
   Palette: Warm white / Ink / Deep gold, faceted-diamond signature motif
   =========================================================== */

:root{
  --paper: #fbfaf7;
  --paper-dim: #f2efe8;
  --ink: #1c1e24;
  --ink-soft: #4a4d57;
  --ink-faint: #8a8d97;
  --gold: #a6813f;
  --gold-deep: #83652f;
  --gold-tint: #f3ead9;
  --line: rgba(28,30,36,0.10);
  --line-strong: rgba(28,30,36,0.16);

  --serif: 'Fraunces', 'Liberation Serif', Georgia, serif;
  --sans: 'Inter', 'Liberation Sans', Arial, sans-serif;

  --max: 1440px;
  --pad: clamp(20px, 5vw, 64px);
  --section-y: clamp(72px, 9vw, 128px);

  --ease: cubic-bezier(.22,.61,.36,1);
  --radius: 6px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin:0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a{ color: inherit; text-decoration: none; }
h1,h2,h3{ font-family: var(--serif); font-weight: 500; margin: 0; letter-spacing: -0.01em; color: var(--ink); }
p{ margin: 0; }

.ink-serif{ font-style: italic; color: var(--gold); }

::selection{ background: var(--gold-tint); color: var(--ink); }

a:focus-visible, button:focus-visible{
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* reveal-on-scroll (progressive enhancement) */
.reveal{ opacity: 1; transform: none; }
.js-reveal .reveal{
  opacity: 0; transform: translateY(16px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.js-reveal .reveal.in{ opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .reveal{ opacity: 1; transform: none; transition: none; }
}

/* ===========================================================
   Header
   =========================================================== */
.site-header{
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--pad);
  background: rgba(251,250,247,0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand{ display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1.05rem; letter-spacing: 0.01em; color: var(--ink); }
.brand-mark{ width: 19px; height: 19px; color: var(--gold); }

.site-nav{ display: flex; align-items: center; gap: 8px; font-size: 0.86rem; }
.site-nav a{ color: var(--ink-soft); padding: 9px 16px; border-radius: 999px; transition: background .2s var(--ease), color .2s var(--ease); }
.site-nav a:hover{ background: var(--gold-tint); color: var(--gold-deep); }
.resume-link{ border: 1px solid var(--line-strong) !important; margin-left: 8px; color: var(--ink) !important; }
.resume-link:hover{ border-color: var(--gold) !important; background: var(--gold-tint) !important; color: var(--gold-deep) !important; }

.nav-toggle{ display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span{ width: 22px; height: 1.3px; background: var(--ink); display: block; }

.mobile-nav{
  display: none; flex-direction: column;
  position: sticky; top: 65px; z-index: 99;
  background: var(--paper); border-bottom: 1px solid var(--line);
  padding: 6px var(--pad) 18px;
}
.mobile-nav a{ padding: 14px 0; font-size: 0.95rem; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.mobile-nav.open{ display: flex; }

/* ===========================================================
   Buttons / CTAs
   =========================================================== */
.btn{
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.86rem; font-weight: 500; letter-spacing: 0.01em;
  padding: 14px 26px; border-radius: 999px;
  transition: all .22s var(--ease);
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn-primary{ background: var(--ink); color: var(--paper); }
.btn-primary:hover{ background: var(--gold-deep); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(131,101,47,0.22); }
.btn-ghost{ border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover{ border-color: var(--gold); color: var(--gold-deep); background: var(--gold-tint); }
.btn-ghost svg{ transition: transform .25s var(--ease); }
.btn-ghost:hover svg{ transform: translateX(3px); }

/* ===========================================================
   Hero
   =========================================================== */
.hero{
  position: relative;
  max-width: var(--max); margin: 0 auto;
  padding: clamp(56px,10vh,104px) var(--pad) 0;
  overflow: hidden;
}
.hero-inner{ max-width: 720px; position: relative; z-index: 2; }
.eyebrow{
  font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--gold-deep); margin-bottom: 18px; font-weight: 600;
}
.hero h1{
  font-size: clamp(2.1rem, 5vw, 3.7rem);
  line-height: 1.12;
}
.hero-sub{
  margin-top: 24px; max-width: 500px;
  font-size: 1.05rem; color: var(--ink-soft);
}
.hero-cta{ margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }

.hero-facet{
  position: absolute; top: -8%; right: -14%; width: 42%; max-width: 440px; height: auto;
  color: var(--gold); opacity: 0.16; z-index: 1;
  animation: facetDrift 18s ease-in-out infinite;
}
@keyframes facetDrift{
  0%,100%{ transform: translateY(0) rotate(0deg); }
  50%{ transform: translateY(-12px) rotate(1.2deg); }
}

.hero-stats{
  margin-top: 68px; padding: 32px 0; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(4,1fr); gap: 28px;
  position: relative; z-index: 2;
}
.stat{ display: flex; flex-direction: column; gap: 6px; }
.stat-num{ font-family: var(--serif); font-size: clamp(1.4rem,2.4vw,1.9rem); color: var(--gold-deep); }
.stat-label{ font-size: 0.79rem; color: var(--ink-faint); line-height: 1.35; max-width: 20ch; }

.hero-visual {
  position: absolute;
  right: 2%;
  top: 10%;
  transform: translateY(-50%);
  width: min(48vw, 760px);
  z-index: 1;
  pointer-events: none;
}

.hero-visual img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .hero-visual {
    position: relative;
    right: 10%;
    top: auto;
    transform: none;
    width: 100%;
    margin: 40px auto 0;
    max-width: 500px;
  }
}

/* ===========================================================
   Section shared / alignment system
   =========================================================== */
section{ padding: var(--section-y) var(--pad); max-width: var(--max); margin: 0 auto; }
.section-head{ max-width: 700px; margin-bottom: 52px; }
.section-head h2{ font-size: clamp(1.7rem,3.2vw,2.4rem); margin-top: 12px; }
.section-sub{ margin-top: 16px; color: var(--ink-soft); font-size: 1rem; }

/* ===========================================================
   Work — asymmetric image-block case study grid
   =========================================================== */
/* .work{ background: var(--paper); }
.case-grid{
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px;
  align-items: start;
}
.case-col{ display: flex; flex-direction: column; gap: 28px; }
.case-col--offset{ margin-top: 64px; }

.case-block{
  display: block; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  transition: box-shadow .3s var(--ease), transform .3s var(--ease), border-color .3s var(--ease);
}
.case-block:hover{
  box-shadow: 0 20px 44px rgba(28,30,36,0.10);
  transform: translateY(-4px);
  border-color: var(--line-strong);
}

.case-cover{
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, var(--gold-tint), var(--paper-dim));
  position: relative;
}
.case-block--tall .case-cover{ aspect-ratio: 4/3; }
.case-cover--alt{ background: linear-gradient(150deg, #fff, var(--gold-tint)); }
.case-cover--dark{ background: linear-gradient(160deg, var(--ink), #33363f); }
.case-cover svg{ width: 62%; height: 62%; color: var(--gold); opacity: .8; }
.case-cover--dark svg{ color: var(--gold); opacity: .9; }

.case-cover-word{
  font-family: var(--serif); font-size: 34px; letter-spacing: 0.02em;
  fill: var(--gold-deep); opacity: .85; font-style: italic;
}
.case-cover-word--light{ fill: var(--paper); opacity: .92; }

.case-caption{ padding: 22px 24px 26px; }
.case-caption h3{
  font-size: 1.15rem; line-height: 1.32; max-width: 26ch;
  transition: color .25s var(--ease);
}
.case-block:hover .case-caption h3{ color: var(--gold-deep); }
.case-meta{ display: block; margin-top: 10px; font-size: 0.82rem; color: var(--ink-faint); }

.case-cover {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.case-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}*/

/* ===========================================================
   Work — asymmetric image-block case study grid
   =========================================================== */

.work {
  background: var(--paper);
}

.case-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.case-col {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.case-col--offset {
  margin-top: 64px;
}


/* ===========================================================
   Case Study Card
   =========================================================== */

.case-block {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;

  transition:
    box-shadow 0.3s var(--ease),
    transform 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.case-block:hover {
  box-shadow: 0 20px 44px rgba(28, 30, 36, 0.10);
  transform: translateY(-4px);
  border-color: var(--line-strong);
}


/* ===========================================================
   Case Study Cover
   =========================================================== */

.case-cover {
  position: relative;

  /* Keeps every cover at 4:3 */
  aspect-ratio: 4 / 3;

  width: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;

  background:
    linear-gradient(
      150deg,
      var(--gold-tint),
      var(--paper-dim)
    );
}


/* Tall card — still maintains 4:3 */
.case-block--tall .case-cover {
  aspect-ratio: 4 / 3;
}


/* Alternate cover backgrounds */

.case-cover--alt {
  background:
    linear-gradient(
      150deg,
      #fff,
      var(--gold-tint)
    );
}

.case-cover--dark {
  background:
    linear-gradient(
      160deg,
      var(--ink),
      #33363f
    );
}


/* ===========================================================
   Case Study Cover Image
   =========================================================== */

.case-cover img {
  display: block;

  width: 100%;
  height: 100%;

  /*
   * Cover fills the complete 4:3 container.
   * Since your PDP cover is also 4:3,
   * there should be no meaningful cropping.
   */
  object-fit: cover;

  object-position: center;
}


/* ===========================================================
   Existing SVG Covers
   =========================================================== */

.case-cover svg {
  width: 62%;
  height: 62%;

  color: var(--gold);
  opacity: 0.8;
}

.case-cover--dark svg {
  color: var(--gold);
  opacity: 0.9;
}


/* ===========================================================
   Cover Typography
   =========================================================== */

.case-cover-word {
  font-family: var(--serif);
  font-size: 34px;
  letter-spacing: 0.02em;

  fill: var(--gold-deep);
  opacity: 0.85;

  font-style: italic;
}

.case-cover-word--light {
  fill: var(--paper);
  opacity: 0.92;
}


/* ===========================================================
   Case Study Caption
   =========================================================== */

.case-caption {
  padding: 22px 24px 26px;
}

.case-caption h3 {
  font-size: 1.15rem;
  line-height: 1.32;

  max-width: 26ch;

  transition:
    color 0.25s var(--ease);
}

.case-block:hover .case-caption h3 {
  color: var(--gold-deep);
}

.case-meta {
  display: block;

  margin-top: 10px;

  font-size: 0.82rem;
  color: var(--ink-faint);
}


/* ===========================================================
   Responsive
   =========================================================== */

@media (max-width: 900px) {

  .case-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .case-col--offset {
    margin-top: 0;
  }

}


@media (max-width: 600px) {

  .case-caption {
    padding: 18px 20px 22px;
  }

  .case-caption h3 {
    font-size: 1.05rem;
  }

}

/* ===========================================================
   About
   =========================================================== */
.about{ background: var(--paper-dim); border-radius: var(--radius); }
.about-grid{ display: grid; grid-template-columns: 440px 1fr; gap: 60px; align-items: start; }
/* .portrait-frame{
  aspect-ratio: 1 / 1.5; border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--gold-tint), #fff);
}
.portrait-frame svg{ display: block;

  width: 100%;
  height: 100%;

  /*
   * Cover fills the complete 4:3 container.
   * Since your PDP cover is also 4:3,
   * there should be no meaningful cropping.
   */
  object-fit: cover;

  object-position: center; } */
.portrait-frame {
  aspect-ratio: 2 / 3;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--gold-tint), #fff);
  overflow: hidden;
}

.portrait-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

.about-copy h2{ font-size: clamp(1.6rem,2.8vw,2.1rem); margin-top: 12px; max-width: 100ch; }
.about-copy p{ margin-top: 18px; color: var(--ink-soft); font-size: 1rem; max-width: 100ch; }
.about-facts{
  margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 26px;
  border-top: 1px solid var(--line-strong); padding-top: 26px;
}
.about-facts div{ font-size: 0.92rem; color: var(--ink); }
.about-facts span{ display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--gold-deep); margin-bottom: 6px; font-weight: 600; }

/* ===========================================================
   Process
   =========================================================== */
.process-grid{ display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.process-card{ background: #fff; padding: 32px 26px; }
.process-num{ font-family: var(--serif); color: var(--gold); font-size: 0.95rem; }
.process-card h3{ margin-top: 12px; font-size: 1.1rem; }
.process-card p{ margin-top: 10px; font-size: 0.89rem; color: var(--ink-soft); }

/* ===========================================================
   Services
   =========================================================== */
.services-grid{ display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.service-card{ background: #fff; padding: 36px; }
.service-index{ font-family: var(--serif); color: var(--gold); font-size: 0.95rem; }
.service-card h3{ margin-top: 14px; font-size: 1.25rem; }
.service-card p{ margin-top: 12px; font-size: 0.93rem; color: var(--ink-soft); max-width: 46ch; }
.service-card ul{ margin: 18px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.service-card li{ font-size: 0.84rem; color: var(--ink-soft); padding-left: 16px; position: relative; }
.service-card li::before{ content: ''; position: absolute; left: 0; top: 8px; width: 7px; height: 1.4px; background: var(--gold); }

/* ===========================================================
   Philosophy
   =========================================================== */
.philosophy{ background: var(--ink); border-radius: var(--radius); color: var(--paper); }
.philosophy .eyebrow{ color: var(--gold); opacity: .95; }
.philosophy-grid h2{ font-size: clamp(1.7rem,3.2vw,2.4rem); margin-top: 12px; max-width: 18ch; color: var(--paper); }
.philosophy-points{ margin-top: 42px; display: grid; grid-template-columns: repeat(2,1fr); gap: 18px 36px; }
.philosophy-points p{ font-family: var(--serif); font-size: 1.1rem; color: var(--paper); opacity: .92; border-top: 1px solid rgba(251,250,247,0.16); padding-top: 16px; }

/* ===========================================================
   Testimonials
   =========================================================== */
.testimonial-grid{ display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.testimonial-card{ border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; background: #fff; }
.testimonial-card p{ font-family: var(--serif); font-size: 1.05rem; line-height: 1.55; color: var(--ink); font-style: italic; }
.testimonial-author{ margin-top: 22px; display: flex; flex-direction: column; gap: 3px; }
.testimonial-author .name{ font-size: 0.89rem; color: var(--gold-deep); font-weight: 500; }
.testimonial-author .role{ font-size: 0.8rem; color: var(--ink-faint); }

/* ===========================================================
   FAQ
   =========================================================== */
.faq-list{ display: flex; flex-direction: column; }
.faq-item{ border-top: 1px solid var(--line); padding: 22px 0; }
.faq-item:last-child{ border-bottom: 1px solid var(--line); }
.faq-item summary{
  cursor: pointer; list-style: none; font-family: var(--serif); font-size: 1.08rem;
  color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 20px;
}
.faq-item summary::-webkit-details-marker{ display: none; }
.faq-item summary::after{ content: '+'; font-family: var(--sans); font-size: 1.3rem; color: var(--gold); transition: transform .3s var(--ease); flex-shrink: 0; }
.faq-item[open] summary::after{ transform: rotate(45deg); }
.faq-item[open] summary{ color: var(--gold-deep); }
.faq-item p{ margin-top: 14px; font-size: 0.94rem; color: var(--ink-soft); max-width: 62ch; }

/* ===========================================================
   Contact
   =========================================================== */
.contact{
  position: relative; text-align: center; overflow: hidden;
  padding-top: clamp(80px,11vw,128px); padding-bottom: clamp(80px,11vw,128px);
}
.contact-facet{ position: absolute; top: 50%; left: 50%; width: 120%; max-width: 820px; transform: translate(-50%,-50%); color: var(--gold); opacity: 0.08; z-index: 0; }
.contact .eyebrow, .contact h2, .contact-sub, .contact-links{ position: relative; z-index: 1; }
.contact h2{ font-size: clamp(1.9rem,4.2vw,3rem); margin-top: 12px; }
.contact-sub{ margin: 20px auto 0; max-width: 46ch; color: var(--ink-soft); }
.contact-links{ margin-top: 36px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===========================================================
   Footer
   =========================================================== */
.site-footer{
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  padding: 26px var(--pad) 40px; max-width: var(--max); margin: 0 auto;
  font-size: 0.8rem; color: var(--ink-faint);
  border-top: 1px solid var(--line);
}
.site-footer a:hover{ color: var(--gold-deep); }

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 980px){
  .hero-stats{ grid-template-columns: repeat(2,1fr); }
  .about-grid{ grid-template-columns: 1fr; }
  .portrait-frame{ max-width: 280px; }
  .process-grid{ grid-template-columns: repeat(2,1fr); }
  .services-grid{ grid-template-columns: 1fr; }
  .philosophy-points{ grid-template-columns: 1fr; }
  .testimonial-grid{ grid-template-columns: 1fr; }
  .case-col--offset{ margin-top: 0; }
}

@media (max-width: 720px){
  .site-nav{ display: none; }
  .nav-toggle{ display: flex; }
  .hero-facet{ opacity: 0.12; right: -30%; }
  .hero-stats{ grid-template-columns: 1fr 1fr; row-gap: 26px; }
  .process-grid{ grid-template-columns: 1fr; }
  .case-grid{ grid-template-columns: 1fr; }
  .case-col--offset{ margin-top: 0; }
  .project-card{ flex-basis: 82vw; }
  .site-footer{ flex-direction: column; align-items: flex-start; }
}
