/* ============================================================
   SHREYA GULATI — PORTFOLIO
   Editorial system: warm ivory, ink, vermillion accent
   ============================================================ */

:root {
  --ivory: #faf6ee;
  --cream: #f1e9da;
  --sand: #e6dcca;
  --ink: #1c1712;
  --ink-soft: #4a4238;
  --stone: #8a8177;
  --accent: #d9411e;
  --accent-deep: #b23315;
  --line: rgba(28, 23, 18, 0.14);

  --serif: "Fraunces", "Playfair Display", Georgia, serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;

  --max: 1200px;
  --pad: clamp(20px, 5vw, 64px);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--ivory);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: var(--ivory); }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ---------- typography ---------- */

h1, h2, h3, .serif {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.display {
  font-size: clamp(44px, 7.2vw, 92px);
  font-weight: 480;
}

.display em, .h-lg em, .quote em {
  font-style: italic;
  font-weight: 420;
  color: var(--accent);
}

.h-lg { font-size: clamp(34px, 4.6vw, 60px); font-weight: 500; }
.h-md { font-size: clamp(26px, 3.2vw, 40px); font-weight: 500; }
.h-sm { font-size: clamp(20px, 2.2vw, 26px); font-weight: 550; }

.kicker {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
}

.lede {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--ink-soft);
  max-width: 62ch;
}

.muted { color: var(--stone); }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 238, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.logo span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  font-weight: 550;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active { color: var(--ink); }

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1.5px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 26px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--ivory);
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s;
}

.btn:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-2px); }

.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--ivory); }

.btn.sm { padding: 10px 20px; }

.nav .btn { padding: 11px 20px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px; height: 40px;
  position: relative;
}

.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  position: absolute;
  left: 8px;
  width: 24px; height: 2px;
  background: var(--ink);
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle span { top: 19px; }
.nav-toggle span::before { left: 0; top: -7px; }
.nav-toggle span::after { left: 0; top: 7px; }

/* ---------- hero ---------- */

.hero {
  padding: clamp(72px, 11vh, 140px) 0 clamp(56px, 8vh, 100px);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: 40px;
}

.hero .display { max-width: 14ch; }

.hero-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 48px;
}

.hero-sub .lede { max-width: 52ch; }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 36px; }

.hero-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(36px, 6vw, 90px);
  align-items: center;
}

/* faint window-light shadow echoing the deck covers */
.hero::before {
  content: "";
  position: absolute;
  top: -30%; right: -12%;
  width: 55%; height: 160%;
  background: linear-gradient(115deg, transparent 42%, rgba(28,23,18,0.05) 43%, rgba(28,23,18,0.05) 55%, transparent 56%, transparent 64%, rgba(28,23,18,0.045) 65%, rgba(28,23,18,0.045) 78%, transparent 79%);
  transform: rotate(4deg);
  pointer-events: none;
}

/* ---------- photo treatments ---------- */

.photo-stack { position: relative; }

.photo-stack::before {
  content: "";
  position: absolute;
  top: 20px; right: -20px; bottom: -20px; left: 20px;
  background: var(--sand);
  border: 1px solid var(--line);
}

.photo-stack.accent::before { background: var(--accent); border-color: var(--accent); }

.photo-stack img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--line);
}

.photo-stack.landscape img { aspect-ratio: 5 / 4; }

/* crop wrapper for straightening tilted photos */
.photo-crop {
  position: relative;
  overflow: hidden;
}

.photo-crop img.straighten {
  transform: rotate(2.7deg) scale(1.12);
}

.photo-caption {
  position: relative;
  margin-top: 34px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--stone);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
}

.split.flip { grid-template-columns: 1.1fr 1fr; }

.cta-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
  text-align: left;
}

.cta-grid .display { margin: 18px 0; max-width: 14ch; }

/* ---------- marquee ---------- */

.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 18px 0;
  background: var(--cream);
}

.marquee-track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.marquee-track span {
  font-family: var(--serif);
  font-size: 17px;
  font-style: italic;
  color: var(--ink-soft);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 56px;
}

.marquee-track span::after {
  content: "✦";
  font-style: normal;
  color: var(--accent);
  font-size: 12px;
}

@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-left: 1px solid var(--line);
}

.stat {
  border-right: 1px solid var(--line);
  padding: 36px 28px;
}

.stat-num {
  font-family: var(--serif);
  font-size: clamp(38px, 4.5vw, 60px);
  font-weight: 480;
  color: var(--ink);
  line-height: 1;
}

.stat-num sup { font-size: 0.5em; color: var(--accent); }

.stat-label {
  margin-top: 12px;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone);
  font-weight: 550;
}

/* ---------- sections ---------- */

.section { padding: clamp(72px, 10vh, 130px) 0; }

.section.tint { background: var(--cream); }
.section.dark { background: var(--ink); color: var(--ivory); }
.section.dark .lede { color: rgba(250,246,238,0.72); }
.section.dark .kicker { color: var(--accent); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: clamp(40px, 6vh, 72px);
}

.section-head .h-lg { max-width: 20ch; margin-top: 18px; }

/* ---------- services ---------- */

.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(28px, 3.5vw, 48px);
  position: relative;
  transition: background 0.3s;
}

.service:hover { background: rgba(217, 65, 30, 0.045); }

.service-index {
  font-family: var(--serif);
  font-style: italic;
  color: var(--accent);
  font-size: 15px;
}

.service h3 { margin: 14px 0 12px; font-size: clamp(21px, 2.4vw, 28px); }

.service p { color: var(--ink-soft); font-size: 15px; max-width: 44ch; }

.service ul {
  margin-top: 18px;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service ul li {
  font-size: 12px;
  font-weight: 550;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 5px 12px;
}

/* ---------- work cards ---------- */

.cases { display: grid; gap: clamp(48px, 7vh, 88px); }

.case-card {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}

.case-card:nth-child(even) .case-media { order: 2; }

.case-media {
  position: relative;
  overflow: hidden;
  background: var(--sand);
  border: 1px solid var(--line);
}

.case-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.case-card:hover .case-media img { transform: scale(1.035); }

.case-tag {
  position: absolute;
  top: 16px; left: 16px;
  background: var(--ivory);
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 7px 12px;
}

.case-info .kicker { margin-bottom: 16px; }

.case-info h3 { font-size: clamp(26px, 3.2vw, 40px); max-width: 16ch; }

.case-info p { margin: 18px 0 22px; color: var(--ink-soft); max-width: 50ch; }

.case-metrics {
  display: flex;
  gap: 32px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}

.case-metrics div strong {
  display: block;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  line-height: 1;
  color: var(--accent);
}

.case-metrics div span {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone);
  font-weight: 550;
}

.text-link {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1.5px solid var(--accent);
  padding-bottom: 4px;
  transition: gap 0.25s, color 0.25s;
}

.text-link:hover { gap: 16px; color: var(--accent); }

/* ---------- about strip ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 90px);
  align-items: start;
}

.quote {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.3;
  font-weight: 450;
}

.about-facts { display: grid; gap: 0; border-top: 1px solid var(--line); }

.fact {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.fact dt { color: var(--stone); font-weight: 550; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; padding-top: 2px; }
.fact dd { text-align: right; max-width: 34ch; }

/* ---------- process ---------- */

.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.step { background: var(--ivory); padding: 32px 26px 40px; }
.section.tint .step { background: var(--cream); }

.step-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 40px;
  color: var(--accent);
  line-height: 1;
}

.step h3 { font-size: 19px; margin: 18px 0 10px; }
.step p { font-size: 14px; color: var(--ink-soft); }

/* ---------- CTA / footer ---------- */

.cta { text-align: center; }

.cta .display { margin: 22px auto 18px; max-width: 16ch; }

.cta .lede { margin: 0 auto 40px; }

.site-footer {
  background: var(--ink);
  color: var(--ivory);
  padding: 56px 0 40px;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.footer-links { display: flex; gap: 28px; list-style: none; flex-wrap: wrap; }

.footer-links a {
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 550;
  color: rgba(250,246,238,0.7);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--accent); }

.footer-meta { font-size: 13px; color: rgba(250,246,238,0.45); margin-top: 34px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ---------- case study pages ---------- */

.case-hero { padding: clamp(64px, 9vh, 120px) 0 0; }

.case-hero .display { max-width: 18ch; margin-top: 22px; }

.case-hero .lede { margin-top: 26px; }

.case-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: clamp(40px, 6vh, 64px) 0 0;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.case-meta div span {
  display: block;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
  font-weight: 600;
  margin-bottom: 8px;
}

.case-meta div p { font-size: 15px; font-weight: 500; }

.case-cover { margin-top: clamp(40px, 6vh, 64px); border: 1px solid var(--line); }

.case-cover img { width: 100%; }

.prose { max-width: 720px; }

.prose h2 { font-size: clamp(28px, 3.4vw, 42px); margin-bottom: 22px; }

.prose h3 { font-size: 21px; margin: 34px 0 12px; }

.prose p { color: var(--ink-soft); margin-bottom: 18px; font-size: 16.5px; }

.prose ul { margin: 0 0 18px 20px; color: var(--ink-soft); }
.prose ul li { margin-bottom: 8px; }
.prose strong { color: var(--ink); }

.two-col {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.two-col .sticky-label { position: sticky; top: 110px; }

.result-band { background: var(--ink); color: var(--ivory); }

.result-band .stats { border-color: rgba(250,246,238,0.16); }
.result-band .stat { border-color: rgba(250,246,238,0.16); }
.result-band .stat-num { color: var(--ivory); }
.result-band .stat-num sup { color: var(--accent); }
.result-band .stat-label { color: rgba(250,246,238,0.55); }

/* gallery */

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2.5vw, 32px);
}

.gallery figure {
  border: 1px solid var(--line);
  background: #fff;
  cursor: zoom-in;
  overflow: hidden;
}

.gallery img { transition: transform 0.5s ease; width: 100%; }

.gallery figure:hover img { transform: scale(1.02); }

.gallery figure.wide { grid-column: 1 / -1; }

/* lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(20, 16, 12, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4vmin;
  cursor: zoom-out;
}

.lightbox.open { display: flex; }

.lightbox img { max-width: 100%; max-height: 100%; box-shadow: 0 24px 80px rgba(0,0,0,0.5); }

/* next case */

.next-case {
  border-top: 1px solid var(--line);
  padding: clamp(56px, 8vh, 90px) 0;
}

.next-case a { display: block; }

.next-case .h-lg { margin-top: 14px; transition: color 0.25s; }

.next-case a:hover .h-lg { color: var(--accent); }

/* ---------- reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .stats { grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
  .hero-split { grid-template-columns: 1fr; }
  .hero-split .photo-stack { max-width: 420px; }
  .split, .split.flip { grid-template-columns: 1fr; }
  .split .photo-stack { max-width: 420px; }
  .cta-grid { grid-template-columns: 1fr; }
  .cta-grid .photo-stack { max-width: 380px; margin: 0 auto; }
  .photo-stack::before { top: 14px; right: -14px; bottom: -14px; left: 14px; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .case-card { grid-template-columns: 1fr; }
  .case-card:nth-child(even) .case-media { order: 0; }
  .about-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .two-col .sticky-label { position: static; }
  .case-meta { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--ivory);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px var(--pad) 32px;
    gap: 20px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav > .btn { display: none; }
  .services { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .fact { flex-direction: column; gap: 6px; }
  .fact dd { text-align: left; }
}
