/* ── Rohan Raj Kulkarni — portfolio in the Vaksy design system ──
   Editorial × Tactile × Restrained Indian Modernism.
   White paper, ink scale, saffron used only as punctuation.
   Tokens mirror vaksy/01-prototypes-html + src/theme/tokens.ts.  */

:root {
  --bg:          #FFFFFF;
  --soft:        #FAFAFA;
  --ink:         #0A0B0F;
  --ink-80:      rgba(10,11,15,0.80);
  --ink-60:      rgba(10,11,15,0.55);
  --ink-40:      rgba(10,11,15,0.40);
  --line:        rgba(10,11,15,0.06);
  --line-strong: rgba(10,11,15,0.14);

  --saffron:      #EA580C;
  --saffron-deep: #C2410C;

  --shadow-md: 0 4px 24px rgba(10,11,15,0.05), 0 1px 4px rgba(10,11,15,0.04);
  --shadow-lg: 0 20px 60px rgba(10,11,15,0.10), 0 4px 12px rgba(10,11,15,0.06);

  --sans:  "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono:  "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;

  --radius:    18px;
  --radius-sm: 14px;
  --pad: clamp(20px, 4vw, 48px);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

:focus-visible { outline: 2px solid var(--saffron); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* ── shared type idioms ─────────────────────────────────────── */
.display {
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.display em, .pull em, .cta em {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.04em;
  letter-spacing: -0.01em;
}
.serif { font-family: var(--serif); font-size: 1.08em; color: var(--ink); }
.flow-eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--saffron);
  margin-bottom: 18px;
}
.arr { color: var(--saffron); transition: transform 0.15s ease; display: inline-block; }
a:hover .arr, button:hover .arr { transform: translate(2px, -1px); }

.live {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--saffron);
  box-shadow: 0 0 8px rgba(234,88,12,0.45);
  display: inline-block;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.45; } }

/* ── topbar ─────────────────────────────────────────────────── */
.topbar {
  position: fixed; inset: 0 0 auto; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--pad);
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: transform 0.3s ease;
}
body.scrolled-down .topbar { transform: translateY(-100%); }
.mark {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 600; letter-spacing: 0.02em; font-size: 15px;
}
.mark .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--saffron);
}
.topbar nav { display: flex; gap: 26px; }
.topbar nav a { font-size: 14px; font-weight: 500; color: var(--ink-60); transition: color 0.15s; }
.topbar nav a:hover { color: var(--ink); }
.ig { font-family: var(--mono); font-size: 12px; color: var(--ink-80); }

/* ── hero ───────────────────────────────────────────────────── */
.hero {
  min-height: 92vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 140px var(--pad) 72px;
}
.avatar {
  width: 112px; height: 112px; border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-md);
  margin-bottom: 30px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 28px;
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255,255,255,0.7);
  font-size: 13.5px; font-weight: 500;
  color: var(--ink-80);
}
.eyebrow .serif { font-size: 15px; }
.hero h1 {
  font-size: clamp(42px, 7.4vw, 92px);
  margin-bottom: 26px;
  max-width: 16ch;
}
.hero-sub {
  font-size: clamp(17px, 1.5vw, 19.5px);
  color: var(--ink-60);
  max-width: 48ch;
  text-wrap: pretty;
  margin-bottom: 40px;
}
.cta-row { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.btn {
  padding: 14px 26px; min-height: 44px;
  border-radius: 999px;
  font-size: 15px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 10px;
  transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary .arr { color: #fff; opacity: 0.8; }
.btn-primary:hover { transform: translateY(-1px); background: #050505; box-shadow: 0 8px 24px rgba(10,11,15,0.18); }
.btn-secondary { background: #fff; border: 1px solid var(--line-strong); }
.btn-secondary:hover { background: var(--soft); }
.cta-meta { margin-top: 18px; font-size: 13px; color: var(--ink-40); letter-spacing: 0.01em; }
.cta-meta a { text-decoration: underline; text-underline-offset: 2px; color: var(--ink-80); }

/* ── marquee ────────────────────────────────────────────────── */
.marquee {
  border-block: 1px solid var(--line);
  overflow: hidden;
  padding: 13px 0;
  background: var(--soft);
}
.marquee-track {
  display: inline-flex; align-items: center; gap: 28px;
  width: max-content;
  animation: slide 46s linear infinite;
  font-family: var(--mono);
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--ink-40);
  white-space: nowrap;
}
.marquee-track b { color: var(--saffron); font-weight: 500; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ── featured film ──────────────────────────────────────────── */
.feature {
  display: grid; grid-template-columns: minmax(280px, 400px) 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(64px, 9vw, 120px) var(--pad);
  max-width: 1160px; margin: 0 auto;
}
.feature .frame {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lg);
  transition: transform 0.2s ease;
  padding: 0;
}
.feature .frame:hover { transform: translateY(-3px); }
.feature .tag {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono);
  font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--saffron);
  margin-bottom: 16px;
}
.feature h3 {
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 400; letter-spacing: -0.03em; line-height: 1.1;
  margin-bottom: 14px;
  max-width: 22ch;
}
.feature .sub { color: var(--ink-60); font-size: 16.5px; max-width: 46ch; margin-bottom: 30px; }

/* ── section heads ──────────────────────────────────────────── */
.work, .stills, .impact, .about { padding: clamp(64px, 9vw, 120px) var(--pad); max-width: 1160px; margin: 0 auto; }
.section-head { max-width: 680px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { font-size: clamp(34px, 4.8vw, 56px); margin-bottom: 16px; }
.section-sub { color: var(--ink-60); font-size: 16.5px; text-wrap: pretty; }

/* filters */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 26px; }
.filters button {
  padding: 9px 16px; min-height: 38px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: 13.5px; font-weight: 500;
  background: #fff;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.filters button:hover { background: var(--soft); }
.filters button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ── reel cards ─────────────────────────────────────────────── */
.reel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
}
.card {
  text-align: left;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  padding: 0;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.shot { position: relative; overflow: hidden; background: var(--soft); }
.shot img { width: 100%; height: auto; }
.shot video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 0.25s ease;
}
.card.playing video { opacity: 1; }
.idx, .badge {
  position: absolute; top: 10px;
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  color: var(--ink-80);
}
.idx { left: 10px; }
.badge { right: 10px; }
.shot .cap {
  position: absolute; inset: auto 0 0;
  padding: 44px 16px 14px;
  background: linear-gradient(transparent, rgba(10,11,15,0.72));
  color: #fff;
  font-size: 15px; font-weight: 500; letter-spacing: -0.01em;
  line-height: 1.3;
}
.card .foot {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ink-40);
}
.card .foot .rule { flex: 1; border-top: 1px solid var(--line); }

/* ── stills ─────────────────────────────────────────────────── */
.still-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 24px;
  align-items: start;
}
.still { text-align: left; padding: 0; }
.still .shot {
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.still:hover .shot { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.still .cap { margin-top: 12px; font-size: 14.5px; font-weight: 500; letter-spacing: -0.01em; }
.still .foot {
  margin-top: 4px;
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ink-40);
}

/* ── series + experience + camera + press ───────────────────── */
.series, .xp, .camera, .press { padding: clamp(64px, 9vw, 120px) var(--pad); max-width: 1160px; margin: 0 auto; }
.series .cta-meta:first-of-type { margin-top: 20px; }
.series .cta-row { margin-top: 22px; }
.xp-list { list-style: none; max-width: 760px; position: relative; padding-left: 28px; }
.xp-list::before {
  content: "";
  position: absolute;
  left: 9px; top: 6px; bottom: 6px;
  width: 2px;
  background: var(--line-strong);
}
.xp-list li {
  display: grid; grid-template-columns: 150px 1fr;
  gap: 8px 32px;
  border-top: 1px solid var(--line-strong);
  padding: 18px 0;
  position: relative;
}
.xp-list li:first-child { border-top: none; }
.xp-list li::before {
  content: "";
  position: absolute;
  left: -23px; top: 24px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--saffron);
  box-shadow: 0 0 0 4px #fff, 0 0 8px rgba(234,88,12,0.4);
}
.xp-list .when {
  font-family: var(--mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--saffron-deep);
  padding-top: 3px;
}
.xp-list h3 { font-size: 16.5px; font-weight: 500; letter-spacing: -0.01em; }
.xp-list p { font-size: 13.5px; color: var(--ink-60); margin-top: 2px; }

/* camera cards */
.yt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}
.yt-card {
  display: block;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.yt-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.yt-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.yt-body { padding: 14px 16px 16px; }
.yt-src {
  font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--saffron-deep);
  margin-bottom: 7px;
}
.yt-body h3 { font-size: 15.5px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.35; }
.yt-more { margin-top: 34px; }

/* press cards */
.press-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.press-card {
  position: relative;
  display: block;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  padding: 26px 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.press-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.press-card h3 {
  font-size: 19px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.3;
  margin-bottom: 10px;
  max-width: 30ch;
}
.press-sub { font-size: 14px; color: var(--ink-60); max-width: 52ch; }
.press-card .arr { position: absolute; top: 24px; right: 26px; font-size: 17px; }
.press-card-link { display: block; }
.press-also { margin-top: 14px; font-size: 12.5px; color: var(--ink-40); }
.press-also a { text-decoration: underline; text-underline-offset: 2px; color: var(--ink-80); }

/* ── on the ground (impact) ──────────────────────────────────── */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.impact-card {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  padding: 28px 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.impact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.impact-num {
  font-size: clamp(32px, 3.6vw, 44px);
  font-weight: 400; letter-spacing: -0.03em; line-height: 1;
  margin-bottom: 18px;
}
.impact-num small {
  display: block;
  font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--saffron-deep);
  margin-top: 8px;
}
.impact-card h3 { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.3; margin-bottom: 10px; }
.impact-card p { font-size: 14px; color: var(--ink-60); text-wrap: pretty; }

/* ── about ──────────────────────────────────────────────────── */
.pull {
  font-family: var(--serif);
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.18; letter-spacing: -0.015em;
  max-width: 22ch;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.pull em { color: var(--saffron); }
.creds {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.creds > div { border-top: 1px solid var(--line-strong); padding-top: 16px; }
.creds span {
  font-family: var(--mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--saffron);
  display: block; margin-bottom: 8px;
}
.creds p { font-size: 16px; font-weight: 500; letter-spacing: -0.01em; }
.creds i { font-style: normal; color: var(--ink-40); font-size: 13.5px; }

/* ── footer ─────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--line); margin-top: clamp(32px, 6vw, 64px); }
footer .cta {
  display: block;
  text-align: center;
  font-size: clamp(38px, 6.4vw, 76px);
  padding: clamp(64px, 9vw, 120px) var(--pad);
}
footer .cta:hover em { color: var(--saffron); }
.foot-row {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px 24px;
  border-top: 1px solid var(--line);
  padding: 20px var(--pad);
  font-family: var(--mono); font-size: 12px;
  color: var(--ink-40);
}
.foot-row a:hover { color: var(--ink); }

/* ── lightbox ───────────────────────────────────────────────── */
dialog {
  border: 0; padding: 0;
  background: transparent;
  max-width: 100vw; max-height: 100vh;
  width: 100vw; height: 100vh;
  display: grid; place-items: center;
  color: #fff;
}
dialog:not([open]) { display: none; }
dialog::backdrop { background: rgba(10,11,15,0.88); backdrop-filter: blur(10px); }
.stage { display: grid; place-items: center; max-width: min(92vw, 900px); }
.stage video, .stage img {
  max-height: 76vh; max-width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
dialog .meta { margin-top: 18px; text-align: center; padding: 0 16px; }
dialog .meta h3 { font-weight: 500; font-size: 17px; letter-spacing: -0.01em; margin-bottom: 6px; }
dialog .meta .m {
  font-family: var(--mono); font-size: 11.5px;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: rgba(255,255,255,0.6);
  margin: 0 8px;
}
dialog .meta a {
  display: inline-block; margin-top: 12px;
  font-size: 13.5px; font-weight: 500;
  padding: 9px 18px;
  border: 1px solid rgba(255,255,255,0.3); border-radius: 999px;
  transition: background 0.15s;
}
dialog .meta a:hover { background: rgba(255,255,255,0.12); }
dialog .close, dialog .nav {
  position: fixed; z-index: 2;
  font-family: var(--mono); font-size: 12.5px;
  padding: 10px 16px; min-height: 44px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.25);
  transition: background 0.15s;
}
dialog .close:hover, dialog .nav:hover { background: rgba(255,255,255,0.22); }
dialog .close { top: 20px; right: 20px; }
dialog .nav { top: 50%; transform: translateY(-50%); }
dialog .nav.prev { left: 16px; }
dialog .nav.next { right: 16px; }

/* ── custom cursor chip ─────────────────────────────────────── */
.cursor {
  position: fixed; left: var(--x, -100px); top: var(--y, -100px);
  z-index: 30; pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
  width: 62px; height: 62px; border-radius: 50%;
  background: var(--ink); color: #fff;
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em;
  transition: transform 0.18s ease;
}
body.cursor-hot .cursor { transform: translate(-50%, -50%) scale(1); }

@media (prefers-reduced-motion: reduce) {
  .marquee-track, .live { animation: none; }
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; }
}

/* ── responsive ─────────────────────────────────────────────── */
@media (max-width: 960px) {
  .topbar .ig { display: none; }
}
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature .frame { max-width: 420px; }
  .creds { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .topbar nav { display: none; }
  .topbar .ig { display: block; }
  .hero { padding-top: 118px; }
  dialog .nav { top: auto; bottom: 18px; transform: none; }
}
