/* ===== Tokens ===== */
:root {
  --paper: #f7f2e8;
  --paper-2: #efe7d5;
  --ink: #252525;
  --ink-soft: #6f6a5e;
  --emerald: #123c2f;
  --emerald-soft: rgba(18, 60, 47, .07);
  --gold: #b88a44;
  --gold-soft: rgba(184, 138, 68, .16);
  --line: #e0d6c2;
  --line-strong: #123c2f;
  --maxw: 1400px;
  --display: 'Cormorant Garamond', Georgia, serif;
  --serif: 'Spectral', Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
em { font-style: italic; }
img { max-width: 100%; display: block; }

.label, .num, .market {
  font-family: var(--serif);
  font-weight: 500;
  font-size: .74rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}

/* ===== Layout ===== */
.layout { max-width: var(--maxw); margin: 0 auto; }
@media (min-width: 900px) {
  .layout { display: grid; grid-template-columns: minmax(290px, 32%) 1fr; align-items: start; }
}

/* ===== Masthead ===== */
.masthead {
  padding: clamp(28px, 5vw, 56px) clamp(22px, 4vw, 46px);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 900px) {
  .masthead {
    position: sticky; top: 0;
    border-bottom: none; border-right: 1px solid var(--line);
    display: flex; flex-direction: column; min-height: 100vh;
  }
}
.name {
  display: inline-block;
  font-family: var(--display);
  font-weight: 600; font-size: clamp(3rem, 6.5vw, 4rem);
  line-height: .96; letter-spacing: -.01em; color: var(--emerald);
}
.role { margin: 20px 0 0; font-size: .96rem; line-height: 1.55; color: var(--ink-soft); max-width: 32ch; }
.market { margin: 16px 0 0; color: var(--emerald); font-weight: 600; }
.market__mark { display: inline-block; margin-right: 5px; color: var(--gold); }

.masthead__portrait { margin: 28px 0 0; }
.masthead__portrait img {
  width: 100%; max-width: 236px; height: auto;
  aspect-ratio: 4 / 5; object-fit: cover; object-position: center 25%;
  border: 1px solid var(--line);
  filter: grayscale(16%) contrast(1.02);
}

.masthead__nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 34px 0 0; }
.masthead__nav a { font-size: 1.02rem; color: var(--ink); display: inline-flex; align-items: baseline; gap: 10px; padding-bottom: 2px; border-bottom: 1px solid transparent; transition: border-color .2s; }
.masthead__nav a .num { color: var(--gold); letter-spacing: .08em; }
.masthead__nav a:hover { border-color: var(--emerald); }
@media (min-width: 900px) { .masthead__nav { flex-direction: column; gap: 13px; } }

.masthead__links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 30px 0 0; }
@media (min-width: 900px) { .masthead__links { margin-top: auto; padding-top: 34px; } }
.masthead__links a { font-size: .82rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: color .2s, border-color .2s; }
.masthead__links a:hover { color: var(--emerald); border-color: var(--emerald); }

/* ===== Content ===== */
.content { padding: clamp(28px, 5vw, 56px) clamp(22px, 4vw, 56px) 0; min-width: 0; }
.block { padding: clamp(30px, 4vw, 48px) 0; border-bottom: 1px solid var(--line); }
.block:first-child { padding-top: clamp(8px, 2vw, 18px); }
.block:last-of-type { border-bottom: none; }
.block__head { margin-bottom: clamp(20px, 3vw, 30px); display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.label { color: var(--gold); }
.label--hint { color: var(--ink-soft); opacity: .7; }

/* ===== Research index (accordion) ===== */
.index { list-style: none; margin: 0; padding: 0; }
.work {
  display: grid; grid-template-columns: 3.2rem 1fr; gap: clamp(10px, 2vw, 26px);
  padding: clamp(20px, 2.4vw, 28px) 0;
  border-top: 1px solid var(--line);
}
.work:first-child { border-top: 1.5px solid var(--line-strong); }
.work__no { font-family: var(--serif); font-weight: 500; font-size: .82rem; letter-spacing: .06em; color: var(--gold); padding-top: .5rem; }

.work__sum { position: relative; list-style: none; cursor: pointer; padding-right: 30px; }
.work__sum::-webkit-details-marker { display: none; }
.work__sum::after { content: "+"; position: absolute; right: 0; top: 0; font-family: var(--serif); font-size: 1.4rem; line-height: 1; color: var(--gold); transition: color .2s; }
details[open] > .work__sum::after { content: "\2013"; }
.work__sum:hover::after { color: var(--emerald); }

.work__flag { display: inline-block; font-family: var(--serif); font-weight: 500; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--paper); background: var(--emerald); padding: 4px 11px; margin-bottom: 13px; }
.work__title { display: block; font-family: var(--display); font-weight: 500; font-size: clamp(1.6rem, 3.4vw, 2.5rem); line-height: 1.1; letter-spacing: 0; color: var(--ink); transition: color .2s; }
.work--lead .work__title { font-weight: 600; }
.work__sum:hover .work__title { color: var(--emerald); }
.work__meta { display: block; margin: 12px 0 0; font-size: .98rem; font-style: italic; color: var(--ink-soft); }
.work__marks { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 12px; margin: 13px 0 0; }
.work__venue { font-style: italic; font-size: .92rem; color: var(--ink-soft); }

.badge { display: inline-block; font-family: var(--serif); font-weight: 500; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; padding: 4px 10px; border: 1px solid var(--line); color: var(--ink-soft); }
.badge--rr { background: var(--gold); border-color: var(--gold); color: var(--emerald); font-weight: 600; }

.work__reveal { margin: 16px 0 4px; }
details[open] .work__reveal { animation: reveal .3s ease; }
@keyframes reveal { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }
.work__note { margin: 0; font-size: 1.08rem; line-height: 1.55; color: var(--ink); max-width: 64ch; }
.work__awards { margin: 14px 0 0; font-size: .96rem; font-style: italic; color: var(--ink-soft); max-width: 64ch; }
.work__links { margin: 12px 0 0; font-size: .82rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.work__links a { color: var(--emerald); border-bottom: 1px solid var(--gold); }
.work__links a:hover { background: var(--gold-soft); }

/* ===== About ===== */
.prose { max-width: 66ch; }
.prose p { font-family: var(--serif); font-weight: 400; font-size: clamp(1.12rem, 1.5vw, 1.28rem); line-height: 1.58; margin: 18px 0 0; color: var(--ink); }
.prose p:first-child { margin-top: 0; }
.prose__lead { font-family: var(--display); font-weight: 500; font-size: clamp(1.5rem, 2.8vw, 2rem); line-height: 1.25; margin: 0; color: var(--ink); }
.qs { list-style: none; margin: clamp(24px, 3vw, 36px) 0 0; padding: 0; max-width: 720px; }
.qs li { position: relative; padding: 15px 0 15px 42px; border-top: 1px solid var(--line); font-size: 1.1rem; color: var(--ink); }
.qs li:last-child { border-bottom: 1px solid var(--line); }
.qs li::before { content: counter(list-item, decimal-leading-zero); position: absolute; left: 0; top: 18px; font-size: .74rem; font-weight: 500; letter-spacing: .06em; color: var(--gold); }

/* ===== Sitar video ===== */
.video { margin: clamp(22px, 3vw, 34px) 0 0; width: 100%; max-width: 620px; aspect-ratio: 16 / 9; border: 1px solid var(--line); background: var(--paper-2); }
.video iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ===== Contact ===== */
.contact__email { margin: 22px 0 0; }
.contact__email a { font-family: var(--display); font-weight: 500; font-size: clamp(1.6rem, 3.2vw, 2.4rem); color: var(--emerald); border-bottom: 2px solid var(--gold); padding-bottom: 2px; transition: background .2s; }
.contact__email a:hover { background: var(--gold-soft); }

/* ===== Footer ===== */
.foot {
  display: flex; flex-wrap: wrap; gap: 16px 28px; justify-content: space-between;
  padding: 34px 0; font-size: .78rem; font-weight: 500; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-soft);
}
.foot a { border-bottom: 1px solid var(--gold); color: var(--emerald); }
.foot a:hover { background: var(--gold-soft); }

/* ===== Reveal ===== */
.reveal { transition: opacity .5s ease, transform .5s ease; }
.js .reveal { opacity: 0; transform: translateY(14px); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .js .reveal { opacity: 1; transform: none; transition: none; }
  details[open] .work__reveal { animation: none; }
  html { scroll-behavior: auto; }
}
