/* =========================================================
   Uditi Das — Portfolio
   Editorial × playful. Cream base, ink type, coral accent.
   ========================================================= */

:root {
  --cream: #f3efe6;
  --cream-2: #ebe5d6;
  --bone: #f8f5ec;
  --ink: #14110e;
  --ink-2: #2a241d;
  --muted: #7a6e5c;
  --line: #d8cfba;
  --accent: #e85c3a;      /* warm coral */
  --accent-deep: #c4421f;
  --serif: "Fraunces", "Times New Roman", serif;
  --sans: "Inter Tight", "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html, body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body { cursor: none; }
@media (hover: none) { body { cursor: auto; } }

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

/* ---------- Grain overlay ---------- */
.grain {
  pointer-events: none;
  position: fixed; inset: 0; z-index: 9999;
  opacity: 0.06;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- Custom cursor ---------- */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 10000;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.cursor-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ink);
  transition: opacity .2s, width .25s var(--ease), height .25s var(--ease), background .25s;
}
.cursor-ring {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid var(--ink);
  transition: width .35s var(--ease), height .35s var(--ease),
              background .35s, color .35s, border-color .35s, opacity .25s;
  display: grid; place-items: center;
  font-family: var(--sans);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: transparent;
  backdrop-filter: invert(1);
}
.cursor-ring.is-hover {
  width: 72px; height: 72px;
  background: var(--accent);
  border-color: var(--accent);
  color: var(--cream);
  backdrop-filter: none;
}
.cursor-dot.is-hover { opacity: 0; }
@media (hover: none) { .cursor-dot, .cursor-ring { display: none; } }

/* ---------- Type ---------- */
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; }
.serif-it { font-family: var(--serif); font-style: italic; font-weight: 300; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.025em; line-height: 1; }
h2 { font-size: clamp(48px, 7vw, 110px); }
h3 { font-size: clamp(28px, 3vw, 44px); }

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

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 64px); }
section { position: relative; padding: clamp(80px, 12vh, 160px) 0; }

/* Section eyebrow */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: ""; width: 28px; height: 1px; background: currentColor;
}

/* Section header */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 64px; }
.sec-head .lead { max-width: 520px; }
.sec-head .lead p { color: var(--muted); margin-top: 16px; font-size: 16px; }

/* Link with sliding underline */
.uline { position: relative; display: inline-block; }
.uline::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 1.5px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease);
}
.uline:hover::after { transform: scaleX(1); }

/* ---------- Header / Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(20px, 4vw, 64px);
  mix-blend-mode: difference;
  color: #f3efe6;
}
.nav .brand { font-family: var(--serif); font-size: 22px; letter-spacing: -0.02em; }
.nav .brand i { font-style: italic; }
.nav ul { display: flex; gap: 28px; list-style: none; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
.nav ul a { opacity: 0.85; }
.nav ul a:hover { opacity: 1; }
@media (max-width: 720px) { .nav ul { display: none; } .nav .clock { display: none; } }
.nav .clock { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; opacity: 0.7; }

/* ---------- Hero ---------- */
.hero { min-height: 100vh; padding-top: 120px; padding-bottom: 60px; position: relative; overflow: hidden; }
.hero-blob {
  position: absolute; pointer-events: none;
  width: 60vmax; height: 60vmax;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(232,92,58,0.35), rgba(232,92,58,0.0) 60%);
  filter: blur(40px);
  z-index: 0;
  transition: transform 1.2s var(--ease);
}

/* Text-only hero (portrait lives at the end) */
.hero--text { display: grid; place-items: center; min-height: 100vh; }
.hero-text {
  position: relative; z-index: 2;
  max-width: 1100px;
  padding: 80px 0 40px;
}
.hero--text h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(58px, 11vw, 192px);
  line-height: 0.92;
  letter-spacing: -0.035em;
}
.hero--text h1 .it { font-style: italic; font-weight: 300; color: var(--accent); }
.hero--text .lede { margin-top: 40px; max-width: 640px; color: var(--ink-2); font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; }
.hero--text .meta {
  display: flex; gap: 22px; margin-top: 48px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
}
.hero--text .meta span::before { content: "◆ "; color: var(--accent); margin-right: 6px; }
.hero-scroll {
  margin-top: 80px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
  animation: scroll-pulse 2s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%,100% { opacity: 0.6; transform: translateY(0); }
  50%     { opacity: 1;   transform: translateY(6px); }
}

/* legacy two-column hero kept for fallback */
.hero-grid {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
  min-height: calc(100vh - 180px);
}
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } }

.hero h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(56px, 10vw, 168px);
  line-height: 0.92;
  letter-spacing: -0.035em;
}
.hero h1 .it { font-style: italic; font-weight: 300; color: var(--accent); }
.hero .lede { margin-top: 28px; max-width: 460px; color: var(--ink-2); font-size: 18px; line-height: 1.45; }
.hero .meta { display: flex; gap: 22px; margin-top: 36px; flex-wrap: wrap; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.hero .meta span::before { content: "◆ "; color: var(--accent); margin-right: 6px; }

/* portrait disc */
.portrait-wrap {
  position: relative;
  width: min(520px, 90%);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  justify-self: center;
}
.portrait {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: var(--cream-2);
  isolation: isolate;
  box-shadow: 0 30px 60px -30px rgba(20,17,14,0.35);
}
.portrait img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity .7s var(--ease), filter .7s var(--ease), transform 1.2s var(--ease);
}
.portrait img.original { opacity: 1; transform: scale(1.02); }
.portrait img.animated { opacity: 0; transform: scale(1.06); }
.portrait::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, transparent 60%, rgba(20,17,14,0.18));
  pointer-events: none;
  z-index: 2;
}

/* hover effect — RGB split + dissolve */
.portrait:hover img.original {
  opacity: 0;
  filter: blur(8px) saturate(1.3);
  transform: scale(1.08);
}
.portrait:hover img.animated {
  opacity: 1;
  transform: scale(1.0);
  filter: drop-shadow(2px 0 0 rgba(232,92,58,0.7)) drop-shadow(-2px 0 0 rgba(58,140,232,0.5));
  animation: rgb-jitter 0.9s var(--ease);
}
@keyframes rgb-jitter {
  0% { filter: blur(10px) hue-rotate(-20deg); }
  40% { filter: drop-shadow(6px 0 0 rgba(232,92,58,0.8)) drop-shadow(-6px 0 0 rgba(58,140,232,0.6)); }
  100% { filter: drop-shadow(2px 0 0 rgba(232,92,58,0.7)) drop-shadow(-2px 0 0 rgba(58,140,232,0.5)); }
}

/* orbiting label */
.orbit {
  position: absolute; inset: -36px;
  pointer-events: none;
  animation: spin 22s linear infinite;
  opacity: 0.85;
}
.portrait-wrap:hover .orbit { animation-duration: 11s; opacity: 1; }
.orbit text { font-family: var(--serif); font-size: 13.5px; letter-spacing: 0.18em; fill: var(--ink); text-transform: uppercase; }
@keyframes spin { to { transform: rotate(360deg); } }

/* psst label */
.psst {
  position: absolute; right: -8px; bottom: 18px;
  background: var(--ink); color: var(--cream);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  padding: 10px 14px; border-radius: 999px;
  transform: rotate(-6deg);
  z-index: 3;
  animation: bob 3.5s ease-in-out infinite;
}
.psst .arrow { display: inline-block; margin-left: 6px; }
@keyframes bob { 0%,100%{ transform: rotate(-6deg) translateY(0);} 50% { transform: rotate(-4deg) translateY(-6px);} }

/* ---------- About chips ---------- */
.about { background: var(--bone); }
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; align-items: start; }
@media (max-width: 880px) { .about-grid { grid-template-columns: 1fr; gap: 40px; } }
.about-grid p.large { font-family: var(--serif); font-weight: 300; font-size: clamp(28px, 3.4vw, 48px); line-height: 1.15; letter-spacing: -0.02em; }
.about-grid p.large em { font-style: italic; color: var(--accent); }
.about-grid p.small { color: var(--muted); margin-top: 24px; font-size: 16px; line-height: 1.55; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 13px;
  background: transparent;
  transition: all .35s var(--ease);
  cursor: none;
}
.chip:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); transform: translateY(-2px); }
.chip.accent { background: var(--accent); color: var(--cream); border-color: var(--accent); }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--cream); }
.marquee.dark { background: var(--ink); color: var(--cream); border-color: var(--ink-2); }
.marquee .track { display: flex; gap: 40px; white-space: nowrap; animation: marquee 38s linear infinite; }
.marquee .track span { font-family: var(--serif); font-size: clamp(28px, 4vw, 56px); font-style: italic; font-weight: 300; }
.marquee .track .dot { color: var(--accent); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Branding section (editorial reveal) ---------- */
.branding-row {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  align-items: center;
  padding: 60px 0;
  border-top: 1px solid var(--line);
}
.branding-row:last-of-type { border-bottom: 1px solid var(--line); }
.branding-row.alt { grid-template-columns: 1.3fr 1fr; }
.branding-row.alt .copy { order: 2; }
.branding-row .copy h3 { margin-bottom: 14px; }
.branding-row .copy .num { font-family: var(--mono); font-size: 12px; color: var(--accent); margin-bottom: 24px; display: block; }
.branding-row .copy p { color: var(--muted); font-size: 15px; max-width: 360px; }
.branding-row .image-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--cream-2);
  overflow: hidden;
  border-radius: 4px;
}
.branding-row .image-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.branding-row:hover .image-frame img { transform: scale(1.04); }
.branding-row .tag { position: absolute; top: 18px; left: 18px; background: rgba(20,17,14,0.85); color: var(--cream); font-family: var(--mono); font-size: 10px; padding: 6px 10px; letter-spacing: 0.1em; border-radius: 3px; z-index: 2; }
@media (max-width: 840px) {
  .branding-row, .branding-row.alt { grid-template-columns: 1fr; gap: 24px; }
  .branding-row.alt .copy { order: 0; }
}

/* ---------- Banners (cinematic stack) ---------- */
.banners { background: var(--ink); color: var(--cream); }
.banners .eyebrow { color: var(--cream); opacity: 0.7; }
.banners h2 { color: var(--cream); }
.banner-stack { display: flex; flex-direction: column; gap: 40px; }
.banner {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  transition: transform .9s var(--ease);
  transform-style: preserve-3d;
}
.banner img { width: 100%; height: auto; display: block; transition: transform 1.4s var(--ease); }
.banner:hover img { transform: scale(1.03); }
.banner:nth-child(odd) { margin-right: 8%; }
.banner:nth-child(even) { margin-left: 8%; }
.banner .b-label { position: absolute; bottom: 18px; left: 22px; right: 22px; display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--cream); mix-blend-mode: difference; }
@media (max-width: 720px) { .banner:nth-child(odd), .banner:nth-child(even) { margin: 0; } }

/* ---------- Creatives bento ---------- */
.creatives { background: var(--bone); }
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 90px;
  gap: 14px;
}
.bento-item {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: var(--cream-2);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.bento-item img, .bento-item video { width: 100%; height: 100%; object-fit: cover; }
.bento-item:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -20px rgba(20,17,14,0.3); z-index: 2; }
.bento-item .badge {
  position: absolute; top: 12px; left: 12px;
  background: rgba(255,255,255,0.92); color: var(--ink);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em;
  padding: 5px 8px; border-radius: 3px;
}
.bento-item .play {
  position: absolute; bottom: 12px; right: 12px;
  background: var(--accent); color: var(--cream);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em;
  padding: 6px 10px; border-radius: 999px;
  opacity: 0; transform: translateY(6px); transition: all .4s var(--ease);
}
.bento-item:hover .play { opacity: 1; transform: translateY(0); }

@media (max-width: 760px) {
  .bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 100px; gap: 10px; }
  .bento-item { grid-column: span 2 !important; grid-row: span 2 !important; }
}

/* ---------- Moodboard corkboard ---------- */
.moodboard-stage {
  position: relative;
  min-height: 1100px;
  padding: 40px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 20% 20%, rgba(232,92,58,0.06), transparent 50%),
    repeating-linear-gradient(45deg, rgba(122,110,92,0.04) 0 2px, transparent 2px 6px),
    #ddd2b5;
  background-blend-mode: multiply;
  overflow: hidden;
  box-shadow: inset 0 0 80px rgba(20,17,14,0.15);
}
.pin-card {
  position: absolute;
  width: clamp(170px, 18vw, 280px);
  background: var(--bone);
  padding: 10px 10px 16px;
  box-shadow: 0 14px 28px -10px rgba(20,17,14,0.4), 0 2px 4px rgba(20,17,14,0.1);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), z-index 0s .5s;
  cursor: none;
}
.pin-card:hover {
  transform: rotate(0deg) scale(1.08) translateY(-12px) !important;
  box-shadow: 0 28px 50px -10px rgba(20,17,14,0.5);
  z-index: 50 !important;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), z-index 0s 0s;
}
.pin-card .pin {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  width: 18px; height: 18px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff8a72, #c0341b 70%, #6b1a09);
  box-shadow: 0 3px 4px rgba(0,0,0,0.4);
}
.pin-card img { width: 100%; height: auto; display: block; }
.pin-card .cap { font-family: var(--mono); font-size: 10px; color: var(--muted); margin-top: 8px; letter-spacing: 0.06em; }

@media (max-width: 760px) {
  .moodboard-stage { min-height: auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .pin-card { position: relative !important; left: 0 !important; top: 0 !important; width: 100% !important; transform: rotate(var(--r, 0deg)) !important; }
}

/* ---------- Social section ---------- */
.social .filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 40px; }
.social .filter-btn {
  border: 1px solid var(--line);
  background: transparent;
  font-family: var(--sans);
  font-size: 13px;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: none;
  transition: all .3s var(--ease);
  color: var(--ink-2);
}
.social .filter-btn:hover { border-color: var(--ink); }
.social .filter-btn.active { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.social .filter-btn .count { color: var(--muted); margin-left: 6px; font-size: 11px; }
.social .filter-btn.active .count { color: var(--cream); opacity: 0.6; }

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}
.social-card {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 6px;
  background: var(--cream-2);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.social-card.tall { aspect-ratio: 4 / 5; }
.social-card img, .social-card video { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.social-card:hover img, .social-card:hover video { transform: scale(1.06); }
.social-card:hover { transform: translateY(-4px); box-shadow: 0 22px 36px -18px rgba(20,17,14,0.35); }
.social-card::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 6px;
  background: linear-gradient(180deg, transparent 60%, rgba(232,92,58,0.45));
  opacity: 0;
  transition: opacity .5s var(--ease);
  pointer-events: none;
}
.social-card:hover::after { opacity: 1; }
.social-card .tag {
  position: absolute; bottom: 10px; left: 10px;
  font-family: var(--mono); font-size: 10px; color: var(--cream);
  letter-spacing: 0.1em; text-transform: uppercase;
  opacity: 0; transform: translateY(6px);
  transition: all .5s var(--ease) .05s;
  z-index: 2;
}
.social-card:hover .tag { opacity: 1; transform: translateY(0); }

.social .note { color: var(--muted); font-size: 15px; margin-top: 28px; font-style: italic; max-width: 520px; }

/* ---------- Reels (motion) ---------- */
.reels-section { background: var(--ink); color: var(--cream); overflow: hidden; }
.reels-section h2 { color: var(--cream); }
.reels-section .eyebrow { color: var(--cream); opacity: 0.7; }
.reels-section .lead p { color: rgba(243,239,230,0.6); }
.reels-lane {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 20px 4px 40px;
  margin: 0 -4px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}
.reels-lane::-webkit-scrollbar { height: 6px; }
.reels-lane::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }
.reels-lane::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); }
.reel-card {
  flex: 0 0 auto;
  width: clamp(220px, 22vw, 300px);
  aspect-ratio: 9 / 16;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  background: var(--ink-2);
  scroll-snap-align: start;
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
  cursor: none;
}
.reel-card video { width: 100%; height: 100%; object-fit: cover; }
.reel-card:hover { transform: translateY(-8px); box-shadow: 0 30px 50px -10px rgba(0,0,0,0.6); }
.reel-card .meta {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 18px 16px 14px;
  background: linear-gradient(0deg, rgba(0,0,0,0.7), transparent);
  font-size: 13px;
}
.reel-card .meta .t { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 18px; }
.reel-card .meta .c { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; opacity: 0.7; text-transform: uppercase; }
.reel-card .wave {
  position: absolute; top: 14px; right: 14px;
  display: flex; align-items: flex-end; gap: 2px; height: 18px;
  opacity: 0;
  transition: opacity .3s;
}
.reel-card:hover .wave { opacity: 1; }
.reel-card .wave span { width: 2px; background: var(--accent); border-radius: 2px; animation: wv 0.8s ease-in-out infinite alternate; }
.reel-card .wave span:nth-child(2) { animation-delay: 0.15s; }
.reel-card .wave span:nth-child(3) { animation-delay: 0.3s; }
.reel-card .wave span:nth-child(4) { animation-delay: 0.45s; }
@keyframes wv { from { height: 4px; } to { height: 18px; } }

.lane-hint { font-family: var(--mono); font-size: 11px; color: rgba(243,239,230,0.5); letter-spacing: 0.14em; margin-top: 12px; }

/* lightbox for reel */
.lightbox {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(10,8,6,0.92);
  display: grid; place-items: center;
  padding: 40px;
  opacity: 0; pointer-events: none;
  transition: opacity .35s var(--ease);
  backdrop-filter: blur(20px);
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox video {
  max-width: 380px; width: 100%; height: auto; max-height: 90vh;
  aspect-ratio: 9/16; object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.6);
}
.lightbox-close {
  position: absolute; top: 24px; right: 24px;
  background: transparent; border: 1px solid rgba(255,255,255,0.3);
  color: var(--cream); font-family: var(--mono); font-size: 11px;
  padding: 10px 14px; border-radius: 999px; cursor: none;
  letter-spacing: 0.1em;
}

/* ---------- Closing ---------- */
.closing { padding: 200px 0 120px; text-align: center; position: relative; }

.closing-portrait {
  position: relative;
  width: min(360px, 60%);
  aspect-ratio: 1 / 1;
  margin: 64px auto 56px;
}
.closing-portrait .portrait {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: var(--cream-2);
  isolation: isolate;
  box-shadow: 0 30px 60px -30px rgba(20,17,14,0.35);
}
.closing-portrait .portrait img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity .7s var(--ease), filter .7s var(--ease), transform 1.2s var(--ease);
}
.closing-portrait .portrait img.original { opacity: 1; transform: scale(1.02); }
.closing-portrait .portrait img.animated { opacity: 0; transform: scale(1.06); }
.closing-portrait .portrait::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, transparent 60%, rgba(20,17,14,0.18));
  pointer-events: none; z-index: 2;
}
.closing-portrait:hover .portrait img.original {
  opacity: 0; filter: blur(8px) saturate(1.3); transform: scale(1.08);
}
.closing-portrait:hover .portrait img.animated {
  opacity: 1; transform: scale(1.0);
  filter: drop-shadow(2px 0 0 rgba(232,92,58,0.7)) drop-shadow(-2px 0 0 rgba(58,140,232,0.5));
  animation: rgb-jitter 0.9s var(--ease);
}
.closing-portrait .orbit { position: absolute; inset: -28px; animation: spin 22s linear infinite; opacity: 0.85; pointer-events: none; }
.closing-portrait:hover .orbit { animation-duration: 11s; opacity: 1; }
.closing-portrait .orbit text { font-family: var(--serif); font-size: 13.5px; letter-spacing: 0.18em; fill: var(--ink); text-transform: uppercase; }
.closing-portrait .psst {
  position: absolute; right: -10px; bottom: 14px;
  background: var(--ink); color: var(--cream);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  padding: 10px 14px; border-radius: 999px;
  transform: rotate(-6deg); z-index: 3;
  animation: bob 3.5s ease-in-out infinite;
}

.closing .quote-small {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.022em;
  max-width: 880px;
  margin: 0 auto;
}
.closing .quote-small em { font-style: italic; color: var(--accent); }
.closing .quote {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(38px, 6vw, 96px);
  line-height: 1.05;
  letter-spacing: -0.028em;
  max-width: 1100px;
  margin: 0 auto;
}
.closing .quote em { font-style: italic; color: var(--accent); }
.closing .sign { margin-top: 36px; font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--muted); }

.closing-actions {
  margin-top: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}
.cta-secondary {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  padding: 4px 2px;
}

.cta-big {
  display: inline-block;
  padding: 22px 36px;
  background: var(--accent);
  color: var(--cream);
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(22px, 2.4vw, 32px);
  font-style: italic;
  letter-spacing: -0.01em;
  border-radius: 999px;
  cursor: none;
  border: none;
  transition: transform .35s var(--ease), background .35s;
}
.cta-big:hover { background: var(--accent-deep); }

/* ---------- Footer ---------- */
footer { padding: 80px 0 40px; border-top: 1px solid var(--line); }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr 1fr; } }
.foot h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.foot ul { list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.foot .end { font-family: var(--serif); font-size: clamp(32px, 4vw, 56px); font-weight: 300; letter-spacing: -0.02em; }
.foot .end em { font-style: italic; color: var(--accent); }
.foot-bottom { display: flex; justify-content: space-between; margin-top: 80px; font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: 0.1em; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-words .word { display: inline-block; overflow: hidden; }
.reveal-words .word i {
  display: inline-block; font-style: inherit; transform: translateY(110%);
  transition: transform 0.9s var(--ease);
}
.reveal-words.in .word i { transform: translateY(0); }
.reveal-words .word { margin-right: 0.22em; }

/* ---------- Global Lightbox ---------- */
.lb-overlay {
  position: fixed; inset: 0; z-index: 9998;
  background: rgba(10,8,6,0.94);
  display: grid; place-items: center;
  padding: 32px;
  opacity: 0; pointer-events: none;
  transition: opacity .35s var(--ease);
  backdrop-filter: blur(24px);
}
.lb-overlay.open { opacity: 1; pointer-events: auto; }
.lb-stage {
  max-width: min(1200px, 96vw);
  max-height: 90vh;
  display: flex; flex-direction: column; align-items: center;
  gap: 14px;
}
.lb-stage img, .lb-stage video {
  max-width: 100%; max-height: 80vh;
  width: auto; height: auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.6);
  background: #000;
}
.lb-stage--reel img, .lb-stage--reel video {
  max-width: min(400px, 92vw);
  aspect-ratio: 9 / 16;
  width: 100%; height: auto;
  object-fit: cover;
  border-radius: 18px;
}
.lb-caption {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(243,239,230,0.7);
  text-align: center;
}
.lb-close {
  position: fixed; top: 22px; right: 22px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--cream);
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.12em;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: none;
  z-index: 10001;
  transition: background .25s, border-color .25s;
}
.lb-close:hover { background: var(--accent); border-color: var(--accent); }

@media (hover: none) {
  .lb-close { cursor: pointer; }
}

/* ---------- Mobile / responsive tweaks ---------- */
@media (max-width: 760px) {
  body { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none; }

  section { padding: 72px 0; }
  .sec-head { margin-bottom: 36px; }

  /* Hero on mobile */
  .hero--text { padding-top: 80px; min-height: 90vh; }
  .hero--text h1 { font-size: clamp(44px, 13vw, 88px); line-height: 0.95; }
  .hero--text .lede { font-size: 16px; margin-top: 24px; }
  .hero--text .meta { margin-top: 28px; gap: 14px; }

  /* About */
  .about-grid p.large { font-size: 26px; line-height: 1.2; }

  /* Branding rows stack */
  .branding-row, .branding-row.alt { padding: 32px 0; }
  .branding-row .copy h3 { font-size: 26px; }
  .branding-row .image-frame { aspect-ratio: 4 / 3; }

  /* Banners */
  .banner img { border-radius: 4px; }

  /* Bento → simple 2-col masonry-ish on mobile (override large rowspans) */
  .bento {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto;
    gap: 10px;
  }
  .bento-item { grid-column: span 1 !important; grid-row: auto !important; aspect-ratio: 4/5; }
  .bento-item:nth-child(3n+1) { aspect-ratio: 1/1; }
  .bento-item:nth-child(5n+2) { grid-column: span 2 !important; aspect-ratio: 16/10; }

  /* Moodboard → flat grid */
  .moodboard-stage {
    min-height: auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 14px;
    padding: 24px 16px;
  }
  .pin-card {
    position: relative !important;
    left: 0 !important; top: 0 !important;
    width: 100% !important;
    transform: rotate(var(--r, 0deg)) !important;
  }

  /* Social grid → 2-col tight */
  .social-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .social-card .tag { font-size: 9px; bottom: 6px; left: 6px; }
  .social .filters { gap: 6px; }
  .social .filter-btn { padding: 8px 12px; font-size: 12px; }

  /* Reels */
  .reels-lane { padding: 12px 4px 28px; gap: 14px; }
  .reel-card { width: 70vw; max-width: 280px; }

  /* Closing portrait */
  .closing { padding: 110px 0 80px; }
  .closing-portrait { width: 70vw; margin: 40px auto 36px; }
  .closing .quote-small { font-size: 28px; }
  .closing-actions { gap: 16px; margin-top: 36px; }
  .cta-big { padding: 18px 26px; font-size: 22px; }

  /* Footer */
  .foot { grid-template-columns: 1fr 1fr; gap: 28px; }
  .foot .end { font-size: 30px; grid-column: span 2; }
  .foot-bottom { flex-direction: column; gap: 10px; margin-top: 48px; }

  /* Marquee a touch smaller */
  .marquee .track span { font-size: 30px; }
  .marquee { padding: 20px 0; }

  /* Nav: hide list, keep brand */
  .nav { padding: 16px 18px; }
  .nav .brand { font-size: 18px; }
}

/* very small phones */
@media (max-width: 420px) {
  .social-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .filters { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 8px; }
  .filters::-webkit-scrollbar { display: none; }
  .social .filter-btn { flex: 0 0 auto; }
}

/* ---------- Misc ---------- */
::selection { background: var(--accent); color: var(--cream); }
