/* ===================================================================
   TRIVEDI.PRO — Design System
   Warm, gallery-led, editorial with pastel accents
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,300;1,9..144,400&family=Instrument+Sans:ital,wght@0,400;0,500;0,600;1,400&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Base */
  --bg: #faf6f1;
  --bg-tint: #f3ece2;
  --bg-deep: #ede4d4;
  --ink: #1f1d1a;
  --ink-soft: #4a4641;
  --ink-mute: #8b857d;
  --line: #e8dfd1;

  /* Pastels */
  --peach: #f7c5a8;
  --peach-deep: #ec9670;
  --sage: #c6d4b8;
  --sage-deep: #93ad7e;
  --lilac: #d4c5e0;
  --lilac-deep: #a892bf;
  --butter: #f4e3a1;
  --butter-deep: #d9bf5c;
  --sky: #b6d3dd;
  --sky-deep: #7fa8b6;

  /* Type */
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Instrument Sans', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Radii */
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 40px;

  /* Spacing */
  --gutter: 36px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Subtle grain texture overlay */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.32;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.1 0 0 0 0 0.1 0 0 0 0.08 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 2;
}

/* =========================================================
   NAV
   ========================================================= */
nav {
  position: sticky; top: 0;
  z-index: 50;
  background: rgba(250, 246, 241, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  max-width: 1280px; margin: 0 auto;
}
.logo {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 10px;
}
.logo-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--peach-deep);
  box-shadow: 0 0 0 4px var(--peach);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.logo:hover .logo-dot {
  background: var(--sage-deep);
  box-shadow: 0 0 0 4px var(--sage);
}
.nav-links {
  display: flex; gap: 32px;
  font-size: 14px;
  color: var(--ink-soft);
}
.nav-links a {
  position: relative;
  transition: color 0.2s ease;
  padding: 4px 0;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a::after {
  content: '';
  position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1.5px;
  background: var(--peach-deep);
  transition: width 0.3s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--ink); }

.nav-cta {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 9px 16px;
  border: 1px solid var(--ink);
  border-radius: 100px;
  transition: all 0.25s ease;
}
.nav-cta:hover {
  background: var(--ink);
  color: var(--bg);
}

/* =========================================================
   PLACEHOLDER PHOTO BLOCKS
   ========================================================= */
.photo {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-tint);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  text-align: center;
  padding: 24px;
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1);
}
.photo::before {
  content: '';
  position: absolute; inset: 12px;
  border: 1.5px dashed rgba(139, 133, 125, 0.35);
  border-radius: 12px;
  pointer-events: none;
}
.photo .label {
  position: relative;
  z-index: 2;
  background: var(--bg);
  padding: 8px 14px;
  border-radius: 100px;
  border: 1px solid var(--line);
}
.photo:hover { transform: scale(1.015); }

.photo.peach { background: linear-gradient(135deg, #fbe4d4 0%, var(--peach) 100%); }
.photo.sage  { background: linear-gradient(135deg, #dde8d2 0%, var(--sage) 100%); }
.photo.lilac { background: linear-gradient(135deg, #e6daf0 0%, var(--lilac) 100%); }
.photo.butter{ background: linear-gradient(135deg, #fbf1c4 0%, var(--butter) 100%); }
.photo.sky   { background: linear-gradient(135deg, #d5e6ec 0%, var(--sky) 100%); }

/* =========================================================
   DECORATIVE BLOBS
   ========================================================= */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}

/* =========================================================
   MARQUEE
   ========================================================= */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  overflow: hidden;
  position: relative;
  background: var(--bg-tint);
  z-index: 2;
}
.marquee-track {
  display: flex; gap: 60px;
  white-space: nowrap;
  animation: scroll 38s linear infinite;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  font-style: italic;
  color: var(--ink-soft);
  width: max-content;
}
.marquee-track span {
  display: flex; align-items: center; gap: 60px;
}
.marquee-track span::after {
  content: '✦';
  color: var(--peach-deep);
  font-style: normal;
  font-size: 18px;
}
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* =========================================================
   SECTIONS
   ========================================================= */
section { padding: 110px 0; position: relative; z-index: 2; }

.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 64px;
  flex-wrap: wrap; gap: 20px;
}
.section-num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-mute);
  letter-spacing: 0.12em;
}
.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: -0.025em;
  line-height: 1.05;
  flex: 1;
  max-width: 760px;
  font-variation-settings: "opsz" 144;
}
.section-title em {
  font-style: italic;
  color: var(--peach-deep);
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 28px;
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}
.btn-dark {
  background: var(--ink);
  color: var(--bg);
}
.btn-dark:hover {
  background: var(--peach-deep);
  transform: translateY(-2px);
}
.btn-light {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-light:hover {
  background: var(--ink);
  color: var(--bg);
}

/* =========================================================
   FOOTER
   ========================================================= */
footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
  z-index: 2;
}
.footer-inner {
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.footer-links { display: flex; gap: 22px; }
.footer-links a { transition: color 0.2s; }
.footer-links a:hover { color: var(--peach-deep); }

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   RESPONSIVE BASE
   ========================================================= */
@media (max-width: 900px) {
  :root { --gutter: 20px; }
  .nav-links { display: none; }
  section { padding: 72px 0; }
}
