/* ════════════════════════════════════════════════════════
   VAIBHAV SAWANT — SHARED STYLES
   ════════════════════════════════════════════════════════ */

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

/* ─── Content protection (friction layer) ──
   Disables text selection by default; .is-selectable opt-in
   for things users genuinely need to copy (email, phone). */
body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.is-selectable,
.is-selectable * {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}
input, textarea, select {
  -webkit-user-select: text;
  user-select: text;
}
img {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  pointer-events: none;
}
.img-protect { position: relative; display: inline-block; }
.img-protect img { display: block; }
.img-protect__shield { cursor: inherit; }

:root {
  --paper: #efece6;
  --paper-2: #e6e2d9;
  --ink: #1a1816;
  --ink-soft: #4a4641;
  --ink-faint: #8b8680;
  --line: rgba(26, 24, 22, 0.14);
  --line-soft: rgba(26, 24, 22, 0.08);
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Inter Tight', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', 'Courier New', monospace;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── Three-body cursor ────────────────────── */
@media (hover: hover) and (pointer: fine) {
  html, body { cursor: none; }
  a, button, input, textarea, [role="button"] { cursor: none; }
}

.three-body {
  position: fixed;
  top: 0; left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
  /* difference blend so dots stay visible on every background:
     they appear dark on cream paper, light on dark sections */
  mix-blend-mode: difference;
}

.three-body .body {
  position: absolute;
  top: 0; left: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  will-change: transform, width, height;
  transition: width 0.4s ease, height 0.4s ease;
  /* white fill — under difference blend this becomes near-black on
     light backgrounds and near-white on dark ones */
  background: #efece6;
}

/* Sizes — lead is largest and solid; satellites are 70% / 50% of lead */
.three-body .body.b1 { width: 14px; height: 14px; background: transparent; border: 1.5px solid #efece6; }
.three-body .body.b2 { width: 10px; height: 10px; }   /* ~70% */
.three-body .body.b3 { width: 7px;  height: 7px;  }   /* ~50% */

/* Hover scaling */
.three-body.is-hover .body.b1 { width: 20px; height: 20px; background: transparent; }
.three-body.is-hover .body.b2 { width: 14px; height: 14px; }
.three-body.is-hover .body.b3 { width: 10px; height: 10px; }

.three-body-trail {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.45;
  mix-blend-mode: difference;
}

@media (hover: none), (pointer: coarse) {
  .three-body, .three-body-trail { display: none; }
}

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ─── NAV ────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 48px;
  height: 72px;
  background: rgba(239, 236, 230, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line-soft);
  transition: all 0.4s ease;
}

.nav-left {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  text-transform: uppercase;
}

.nav-mark { text-align: center; }

.nav-mark a {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  font-style: italic;
}

.nav-mark a span { font-style: normal; font-weight: 300; }

.nav-right {
  display: flex;
  justify-content: flex-end;
  gap: 32px;
}

.nav-right a {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.3s;
  position: relative;
}

.nav-right a:hover { color: var(--ink); }

.nav-right a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--ink);
  transition: width 0.3s ease;
}

.nav-right a:hover::after,
.nav-right a.is-active::after { width: 100%; }
.nav-right a.is-active { color: var(--ink); }

/* ─── COMMON SECTION HEADERS ───────────────── */
.section-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: flex;
  align-items: center;
  gap: 16px;
}

.section-label::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--ink-faint);
}

/* ─── PAGE INTRO (used on every inner page) ─── */
.page-intro {
  padding: 180px 48px 100px;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.page-intro-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: end;
}

.page-intro-meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-faint);
  line-height: 1.8;
}

.page-intro-meta .roman {
  display: block;
  font-family: var(--serif);
  font-size: 14px;
  font-style: italic;
  text-transform: none;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  margin-top: 8px;
}

.page-intro-title {
  font-family: var(--serif);
  font-size: clamp(48px, 7vw, 110px);
  font-weight: 300;
  line-height: 0.96;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.page-intro-title em { font-style: italic; color: var(--ink-soft); }

.page-intro-sub {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 300;
  font-style: italic;
  line-height: 1.5;
  color: var(--ink-soft);
  margin-top: 24px;
  max-width: 720px;
}

/* ─── FOOTER ──────────────────────────────────── */
footer {
  padding: 64px 48px 32px;
  background: var(--ink);
  color: var(--paper);
}

.footer-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(239, 236, 230, 0.12);
  margin-bottom: 32px;
}

.footer-mark {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 12px;
}

.footer-mark em { font-style: italic; }

.footer-tagline {
  font-family: var(--serif);
  font-size: 14px;
  font-style: italic;
  color: rgba(239, 236, 230, 0.5);
  max-width: 360px;
  line-height: 1.6;
}

.footer-col-title {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(239, 236, 230, 0.4);
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }

.footer-col li {
  font-size: 13px;
  line-height: 2;
  color: rgba(239, 236, 230, 0.7);
}

.footer-col a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-col a:hover { color: var(--paper); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(239, 236, 230, 0.35);
}

/* ─── ANIMATIONS ─────────────────────────────── */
@keyframes rise {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: translateY(0); }
}

.rise { opacity: 0; animation: rise 1.2s cubic-bezier(0.2, 0.7, 0.3, 1) forwards; }
.rise-1 { animation-delay: 0.05s; }
.rise-2 { animation-delay: 0.2s; }
.rise-3 { animation-delay: 0.35s; }
.rise-4 { animation-delay: 0.5s; }
.rise-5 { animation-delay: 0.65s; }
.rise-6 { animation-delay: 0.8s; }

/* ─── RESPONSIVE BASE ────────────────────────── */
@media (max-width: 980px) {
  nav { padding: 0 24px; }
  .nav-left { display: none; }
  nav { grid-template-columns: 1fr auto; }
  .nav-right { gap: 18px; }
  .nav-right a { font-size: 10px; }
  .page-intro { padding: 130px 24px 64px; }
  .page-intro-inner { grid-template-columns: 1fr; gap: 32px; }
  .page-intro-sub { font-size: 18px; }
  footer { padding: 48px 24px 24px; }
  .footer-row { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; align-items: flex-start; }
}
