/* ------------------------------------------------------------
   Adit Arya: personal site
   Dark charcoal with a warm gold accent (same family as Palate).
   Plain CSS, no build step.
------------------------------------------------------------ */

:root {
  --bg: #0b0b0c;
  --surface: #151517;
  --surface-2: #1c1c1f;
  --line: #2a2a2e;
  --text: #f4f2ee;
  --muted: #a09d96;
  --gold: #c8a66f;
  --gold-soft: rgba(200, 166, 111, .14);
  --radius: 16px;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  font: 17px/1.65 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11, 11, 12, .82);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .9rem; padding-bottom: .9rem; flex-wrap: wrap; }
.brand { color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: -.01em; }
.brand span { color: var(--gold); }
.site-header ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.5rem; flex-wrap: wrap; }
.site-header ul a { color: var(--muted); text-decoration: none; font-size: .92rem; font-weight: 500; }
.site-header ul a:hover, .site-header ul a[aria-current="page"] { color: var(--text); }

/* ---------- Buttons & chips ---------- */
.buttons { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.75rem; }
.button {
  display: inline-block; padding: .7rem 1.3rem; border-radius: 999px;
  font-weight: 600; font-size: .95rem; text-decoration: none;
  border: 1px solid var(--line); color: var(--text);
  transition: border-color .15s, background .15s, color .15s;
}
.button:hover { border-color: var(--gold); color: var(--gold); }
.button.primary { background: var(--gold); border-color: var(--gold); color: #17130c; }
.button.primary:hover { background: var(--text); border-color: var(--text); color: #17130c; }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li { margin: 0; padding: .3rem .8rem; border: 1px solid var(--line); border-radius: 999px; font-size: .88rem; color: var(--muted); background: var(--surface); }

/* ---------- Hero ---------- */
.hero { padding: 5rem 0 3.5rem; }
.hero .wrap { display: grid; grid-template-columns: 1.6fr 1fr; gap: 3.5rem; align-items: center; }
.eyebrow { color: var(--gold); font-weight: 600; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 1.25rem; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.2rem); line-height: 1.05; letter-spacing: -.035em; font-weight: 800; margin: 0 0 1.5rem; }
h1 em { font-style: normal; color: var(--gold); }
.lead { font-size: 1.15rem; color: var(--muted); margin: 0; max-width: 34em; }
.lead strong { color: var(--text); font-weight: 600; }
.portrait { position: relative; }
.portrait::before {
  content: ""; position: absolute; inset: -14px 14px 14px -14px; border-radius: 24px;
  border: 1px solid var(--gold); opacity: .55;
}
.portrait img { position: relative; border-radius: 22px; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; width: 100%; height: auto; background: var(--surface); }

/* ---------- Proof strip ---------- */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.stats ul { list-style: none; margin: 0 auto; padding: 0; max-width: var(--max); display: grid; grid-template-columns: repeat(4, 1fr); }
.stats li { padding: 1.75rem 1.5rem; border-left: 1px solid var(--line); }
.stats li:first-child { border-left: none; }
.stats b { display: block; font-size: 2rem; line-height: 1.1; letter-spacing: -.03em; font-weight: 800; color: var(--text); }
.stats span { display: block; margin-top: .35rem; color: var(--muted); font-size: .88rem; line-height: 1.4; }

/* ---------- Sections ---------- */
section { padding: 5rem 0 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); line-height: 1.15; letter-spacing: -.025em; font-weight: 800; margin: 0; }
.kicker { color: var(--gold); font-weight: 600; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 .6rem; }
.section-head p { margin: .5rem 0 0; color: var(--muted); max-width: 36em; }
.more { font-weight: 600; font-size: .95rem; text-decoration: none; white-space: nowrap; }
.more:hover { text-decoration: underline; }

/* ---------- Venture cards ---------- */
.studio {
  display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center;
  padding: 2rem; margin-bottom: 1.25rem; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--gold-soft), transparent 60%), var(--surface);
  border: 1px solid var(--line);
}
.studio h3 { font-size: 1.6rem; letter-spacing: -.02em; margin: 0 0 .4rem; }
.studio p { margin: 0; color: var(--muted); max-width: 36em; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.card {
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface);
  color: var(--text); text-decoration: none;
  transition: transform .18s, border-color .18s;
}
.card:hover { transform: translateY(-4px); border-color: var(--gold); color: var(--text); }
.card .thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .thumb img[src$="glug.jpg"] { object-position: center 70%; }
.card .body { display: flex; flex-direction: column; gap: .4rem; padding: 1.25rem 1.35rem 1.4rem; flex: 1; }
.tag { color: var(--gold); font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.card h3 { font-size: 1.3rem; letter-spacing: -.02em; margin: 0; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.55; flex: 1; }
.card .go { margin-top: .6rem; color: var(--gold); font-weight: 600; font-size: .92rem; }
.card:hover .go { color: var(--text); }
.card.text-only .body { padding-top: 1.5rem; }

/* ---------- Background / timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline > li { display: grid; grid-template-columns: 9rem 1fr; gap: 2rem; padding: 1.75rem 0; border-top: 1px solid var(--line); }
.timeline > li:last-child { border-bottom: 1px solid var(--line); }
.when { color: var(--muted); font-size: .92rem; font-variant-numeric: tabular-nums; padding-top: .2rem; }
.timeline h3 { font-size: 1.25rem; letter-spacing: -.015em; margin: 0; }
.org-meta { color: var(--muted); font-size: .92rem; margin: .15rem 0 .6rem; }
.role { font-weight: 600; margin: .9rem 0 0; }
.role small { color: var(--muted); font-weight: 400; margin-left: .4rem; }
.timeline p { margin: .4rem 0 0; }
.timeline ul { margin: .5rem 0 0; padding-left: 1.15rem; color: var(--muted); }
.timeline li li { margin-bottom: .4rem; }
.timeline b, .timeline strong { color: var(--text); font-weight: 600; }
.timeline .summary { color: var(--text); }

details { margin-top: .9rem; }
summary { cursor: pointer; color: var(--gold); font-weight: 600; font-size: .9rem; list-style: none; width: fit-content; }
summary::-webkit-details-marker { display: none; }
summary::before { content: "+"; display: inline-block; width: 1.1em; }
details[open] summary::before { content: "–"; }
summary:hover { color: var(--text); }

/* ---------- Beyond work ---------- */
.panels { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.panel { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.panel h3 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 0 0 .9rem; font-weight: 600; }
.panel p { margin: 0; color: var(--muted); }

/* ---------- Contact ---------- */
.contact { text-align: center; padding: 6rem 0 5rem; }
.contact h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); letter-spacing: -.03em; }
.contact p { color: var(--muted); max-width: 30em; margin: 1rem auto 0; }
.contact .buttons { justify-content: center; }

footer { border-top: 1px solid var(--line); padding: 1.75rem 0 2.5rem; color: var(--muted); font-size: .88rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
footer a { color: var(--muted); }
footer a:hover { color: var(--gold); }

/* ---------- Projects page ---------- */
.page-title { padding-top: 4.5rem; }
.page-title h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 1rem; }
.group-title { margin: 0 0 1.25rem; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.group { padding-top: 3.5rem; }
.group:last-of-type { padding-bottom: 5rem; }
.grid.two { grid-template-columns: repeat(2, 1fr); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { padding: 3rem 0 2.5rem; }
  .hero .wrap { grid-template-columns: 1fr; gap: 2.5rem; }
  .portrait { max-width: 320px; order: -1; margin-left: 14px; }
  .grid { grid-template-columns: 1fr; }
  .grid.two { grid-template-columns: 1fr; }
  .studio { grid-template-columns: 1fr; gap: 1rem; }
  .stats ul { grid-template-columns: repeat(2, 1fr); }
  .stats li:nth-child(3) { border-left: none; }
  .stats li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .timeline > li { grid-template-columns: 1fr; gap: .35rem; }
  .panels { grid-template-columns: 1fr; }
  section { padding-top: 3.5rem; }
}
@media (max-width: 560px) {
  .site-header ul { gap: 1rem; }
}
