/* Ojas Vishwakarma portfolio. Static, no external requests. */
:root {
  --bg: #0a0c10;
  --bg-alt: #0e1117;
  --surface: #131720;
  --surface-2: #1a1f2b;
  --line: #262d3b;
  --text: #e9ecf2;
  --muted: #9aa3b5;
  --accent: #ffb347;
  --accent-dim: #c98a2f;
  --ai: #7aa7ff;
  --live: #5ad19a;
  --exp: #c79bff;
  --radius: 16px;
  --max: 1120px;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: #ffd08a; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--accent); color: #111; padding: 10px 16px; border-radius: 8px; font-weight: 600;
  text-decoration: none; transition: top .15s;
}
.skip:focus { top: 12px; color: #111; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 12, 16, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: var(--max); margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 600; }
.brand:hover { color: var(--text); }
.brand-mark {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--line);
  font-family: var(--font-display); color: var(--accent); font-size: .95rem; letter-spacing: .02em;
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  display: inline-block; padding: 8px 14px; border-radius: 999px;
  color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 500;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-links a.nav-cta { background: var(--accent); color: #14100a; font-weight: 600; }
.nav-links a.nav-cta:hover { background: #ffc46f; color: #14100a; }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 0; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line); cursor: pointer; position: relative;
}
.nav-toggle .bars,
.nav-toggle .bars::before,
.nav-toggle .bars::after {
  content: ""; position: absolute; left: 12px; right: 12px; height: 2px; background: var(--text); border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.nav-toggle .bars { top: 21px; }
.nav-toggle .bars::before { left: 0; right: 0; top: -7px; }
.nav-toggle .bars::after { left: 0; right: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Layout ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: 96px 24px; }
.section.alt {
  max-width: none; background: var(--bg-alt);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding-left: max(24px, calc((100vw - var(--max)) / 2 + 24px));
  padding-right: max(24px, calc((100vw - var(--max)) / 2 + 24px));
}
.section-head { max-width: 720px; margin-bottom: 44px; }
.kicker {
  font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
  font-weight: 600; margin-bottom: 10px;
}
.section-head h2 { font-family: var(--font-display); font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 500; }
.sub { color: var(--muted); max-width: 62ch; }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--max); margin: 0 auto; padding: 72px 24px 56px;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px;
  padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--muted); font-size: .88rem; background: var(--surface);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 4px rgba(90, 209, 154, .18); }
.hero h1 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2.6rem, 7vw, 4.6rem); letter-spacing: -.01em; margin-bottom: .15em;
}
.role {
  font-size: clamp(1.15rem, 2.4vw, 1.5rem); color: var(--accent); font-weight: 600; margin-bottom: 18px;
}
.lead { color: #c4cad8; font-size: 1.15rem; max-width: 56ch; margin-bottom: 28px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }

.btn {
  display: inline-block; padding: 13px 24px; border-radius: 999px; font-weight: 600;
  text-decoration: none; border: 1px solid transparent; transition: transform .15s, background .15s, border-color .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #14100a; }
.btn-primary:hover { background: #ffc46f; color: #14100a; }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--text); }

.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stats li {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px;
}
.stats strong { display: block; font-family: var(--font-display); font-size: 1.6rem; font-weight: 500; color: var(--text); line-height: 1.1; }
.stats span { display: block; color: var(--muted); font-size: .86rem; line-height: 1.4; margin-top: 4px; }

.hero-photo { margin: 0; position: relative; }
.hero-photo img {
  width: 100%; max-width: 440px; margin-left: auto; aspect-ratio: 1; object-fit: cover;
  border-radius: 28px; border: 1px solid var(--line);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .8), 0 0 0 10px rgba(255, 179, 71, .05);
  filter: grayscale(1) contrast(1.05);
}
.hero-photo figcaption {
  max-width: 440px; margin: 14px 0 0 auto; color: var(--muted); font-size: .88rem; letter-spacing: .06em; text-align: right;
}

/* ---------- Honesty strip ---------- */
.honesty {
  max-width: var(--max); margin: 0 auto 8px; padding: 0 24px;
}
.honesty p {
  margin: 0; padding: 18px 22px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(122, 167, 255, .08), rgba(122, 167, 255, .03));
  border: 1px solid rgba(122, 167, 255, .28); color: #cfd8ee; font-size: .98rem;
}

/* ---------- Tags and chips ---------- */
.tag {
  display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .74rem; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; border: 1px solid; vertical-align: middle; line-height: 1.6;
}
.tag-ai { color: var(--ai); border-color: rgba(122, 167, 255, .5); background: rgba(122, 167, 255, .1); }
.tag-live { color: var(--live); border-color: rgba(90, 209, 154, .5); background: rgba(90, 209, 154, .1); }
.tag-exp { color: var(--exp); border-color: rgba(199, 155, 255, .5); background: rgba(199, 155, 255, .1); }
.tags { display: flex; gap: 8px; margin-bottom: 12px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 5px 13px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line);
  font-size: .9rem; color: #d3d8e4;
}
.chips.small li { font-size: .8rem; padding: 3px 11px; color: var(--muted); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.about-text p { color: #c4cad8; }
.about-text strong { color: var(--text); }
.facts { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 24px; }
.facts div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 4px; }
.facts dd { margin: 0; color: #d3d8e4; }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 20px; }
.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: rgba(255, 179, 71, .45); transform: translateY(-3px); }
.card h3, .card h4 { font-size: 1.15rem; margin-bottom: 14px; }
.card p { color: #bfc6d6; font-size: .97rem; }
.card .note { margin: 16px 0 0; font-size: .88rem; color: var(--muted); }
.card .meta { margin: 0; color: var(--muted); font-size: .85rem; display: flex; gap: 8px; align-items: center; }

/* ---------- Timeline ---------- */
.timeline { position: relative; max-width: 860px; }
.timeline::before {
  content: ""; position: absolute; left: 178px; top: 6px; bottom: 6px; width: 2px; background: var(--line);
}
.timeline > li { display: grid; grid-template-columns: 160px 1fr; gap: 40px; padding-bottom: 40px; position: relative; }
.timeline > li::before {
  content: ""; position: absolute; left: 172px; top: 8px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--accent);
}
.timeline > li:last-child { padding-bottom: 0; }
.when { color: var(--accent); font-weight: 600; font-size: .95rem; padding-top: 2px; }
.when span { color: var(--muted); font-weight: 400; font-size: .86rem; }
.what { padding-left: 14px; }
.what h3 { font-size: 1.25rem; margin-bottom: 4px; }
.where { color: var(--muted); font-size: .92rem; margin-bottom: 12px; }
.what ul { display: grid; gap: 8px; }
.what li { display: block; padding: 0 0 0 20px; position: relative; color: #c4cad8; font-size: 1rem; }
.what li::before { content: ""; position: absolute; left: 0; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-dim); border: 0; }

/* ---------- Projects ---------- */
.project {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 28px; margin-bottom: 28px;
}
.project.reverse { grid-template-columns: 1fr 1.1fr; }
.project.reverse .project-media { order: 2; }
.project-media { display: grid; gap: 14px; }
.project-media.phones { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
.shot {
  display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  background: var(--bg); cursor: zoom-in; transition: border-color .2s, transform .2s;
}
.shot:hover { border-color: var(--accent); transform: translateY(-2px); }
.shot img { width: 100%; height: auto; }
.phones .shot { border-radius: 16px; }
.project-body h3 { font-size: 1.55rem; font-family: var(--font-display); font-weight: 500; }
.project-body p { color: #bfc6d6; }
.bullets { display: grid; gap: 8px; margin-bottom: 16px; }
.bullets li { padding-left: 20px; position: relative; color: #c4cad8; font-size: .98rem; }
.bullets li::before { content: ""; position: absolute; left: 0; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-dim); }
.role-line {
  padding: 12px 16px; border-left: 3px solid var(--ai); background: rgba(122, 167, 255, .06);
  border-radius: 0 10px 10px 0; font-size: .95rem; margin: 16px 0;
}
.link { font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }
.experiments { margin-top: 56px; }
.experiments h3 { font-size: 1.35rem; display: flex; align-items: center; gap: 12px; }
.experiments .sub { margin-bottom: 22px; }

/* ---------- Creative / channels ---------- */
.channels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-bottom: 40px; }
.channel { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; }
.channel img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: center; border-bottom: 1px solid var(--line); background: var(--bg); }
.channel-body { padding: 24px 26px 18px; }
.channel-body h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; margin-bottom: 6px; }
.channel-stats { color: var(--muted); font-size: .94rem; }
.channel-stats strong { color: var(--text); }
.channel-body p { color: #bfc6d6; }

.process { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; counter-reset: step; }
.process li {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 14px;
  font-size: .9rem; color: #c4cad8; line-height: 1.4;
}
.process li span {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; margin-bottom: 10px;
  background: var(--accent); color: #14100a; font-weight: 700; font-size: .85rem;
}

/* ---------- Contact ---------- */
.contact { text-align: left; }
.contact-list {
  max-width: 640px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: 8px 28px; margin-bottom: 28px;
}
.contact-list li {
  display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line);
}
.contact-list li:last-child { border-bottom: 0; }
.label { color: var(--muted); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; padding-top: 4px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line); text-align: center; padding: 36px 24px 48px; color: var(--muted); font-size: .92rem;
}
.site-footer p { margin: 0 0 6px; }
.site-footer .fine { font-size: .84rem; max-width: 60ch; margin: 0 auto; }

/* ---------- Lightbox ---------- */
dialog#lightbox {
  border: 1px solid var(--line); border-radius: 18px; padding: 12px; background: var(--surface); color: var(--text);
  max-width: min(92vw, 1100px); max-height: 92vh; overflow: auto;
}
dialog#lightbox::backdrop { background: rgba(4, 5, 8, .88); }
dialog#lightbox img { max-height: 82vh; width: auto; margin: 0 auto; border-radius: 10px; }
dialog#lightbox form { position: sticky; top: 0; text-align: right; height: 0; z-index: 2; }
dialog#lightbox .close {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg);
  color: var(--text); font-size: 1.5rem; line-height: 1; cursor: pointer; transform: translateY(6px);
}

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .js .reveal { opacity: 1; transform: none; }
  .site-header, .nav-toggle { position: static; }
  body { background: #fff; color: #111; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 44px; }
  .hero-photo { order: -1; }
  .hero-photo img { max-width: 320px; margin: 0; }
  .hero-photo figcaption { margin: 12px 0 0; text-align: left; max-width: 320px; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .cards.three { grid-template-columns: 1fr; }
  .project, .project.reverse { grid-template-columns: 1fr; gap: 24px; padding: 20px; }
  .project.reverse .project-media { order: 0; }
  .channels { grid-template-columns: 1fr; }
  .process { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .section { padding: 72px 20px; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav { padding: 10px 16px; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 16px 18px;
    background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 14px 16px; border-radius: 12px; font-size: 1.02rem; }
  .nav-links a.nav-cta { text-align: center; margin-top: 6px; }
  .brand-name { display: none; }

  .timeline::before { left: 6px; }
  .timeline > li { grid-template-columns: 1fr; gap: 6px; padding-left: 30px; }
  .timeline > li::before { left: 0; }
  .what { padding-left: 0; }
  .contact-list li { grid-template-columns: 1fr; gap: 2px; }
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats strong { font-size: 1.4rem; }
}

@media (max-width: 520px) {
  body { font-size: 1rem; }
  .hero { padding: 32px 18px 40px; }
  .section { padding: 60px 18px; }
  .section.alt { padding-left: 18px; padding-right: 18px; }
  .honesty { padding: 0 18px; }
  .project-media.phones { gap: 8px; }
  .contact-list { padding: 4px 18px; }
  .btn { padding: 12px 20px; }
}
