/* Project display font: update the Google Fonts family below and this variable. */
@import url('https://fonts.googleapis.com/css2?family=Bitter:wght@400;500;600&display=swap');

* { box-sizing: border-box; }
:root {
  --project-display-font: "Bitter";
  --paper: #fff;
  --ink: #222321;
  --muted: #656762;
  --line: #e2e3df;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
body { margin: 0; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 5px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
.page { max-width: 1160px; padding: 40px 44px 60px; margin: auto; }
.masthead { height: 94px; display: flex; align-items: center; justify-content: space-between; }
.brand { font-size: 17px; font-weight: 700; letter-spacing: -.5px; }
.brand-dot { color: var(--muted); }
.masthead-label, .eyebrow { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; letter-spacing: .07em; }
.masthead-label { color: var(--muted); }
.intro { text-align: center; padding-top: 35px; }
.eyebrow { color: var(--muted); margin: 0 0 23px; text-transform: uppercase; }
.eyebrow span { padding: 0 10px; color: #a4a6a1; }
h1 { font-family: var(--project-display-font), Georgia, serif; font-size: clamp(32px, 4vw, 51px); line-height: 1.22; letter-spacing: -.045em; font-weight: 500; max-width: 760px; margin: 0 auto 23px; text-wrap: balance; }
.author { font-size: 15px; margin: 0 0 22px; }
.summary { font-size: 16px; line-height: 1.7; max-width: 570px; margin: 0 auto; color: var(--muted); text-wrap: pretty; }
.resources { display: flex; justify-content: center; gap: 10px; margin-top: 27px; }
.resources a { border: 1px solid var(--line); padding: 11px 21px; font-size: 13px; }
.resources a:hover { background: #f7f7f5; }
.demo { max-width: 790px; margin: 52px auto 0; }
.demo img { display: block; width: 100%; height: auto; }
figcaption { display: flex; justify-content: flex-end; align-items: center; margin-top: 13px; color: var(--muted); font-size: 11px; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 5px; }
button:hover { color: var(--ink); }
footer { margin-top: 70px; padding: 23px 0 28px; border-top: 1px solid var(--line); display: flex; justify-content: center; gap: 6px; color: var(--muted); font: 11px ui-monospace, monospace; }
.research, .extra-section { max-width: 790px; margin: 88px auto 0; border-top: 1px solid var(--line); padding-top: 32px; }
.extra-section { line-height: 1.7; }
.research h2, .extra-section h2 { font-family: var(--project-display-font), Georgia, serif; font-size: 24px; line-height: 1.3; font-weight: 600; color: var(--ink); margin: 0 0 32px; }
.extra-section > a { display: inline-block; margin-right: 25px; text-decoration: underline; }
iframe { display: block; width: 100%; aspect-ratio: 16/9; border: 0; margin-top: 20px; }

/* A / Quiet: project overview followed by independent research works. */
.intro { padding-top: 42px; }
h1 { max-width: 760px; }
.work + .work { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 28px; }
.work-label { font: 12px ui-monospace, monospace; color: var(--muted); margin: 0 0 10px; }
.work h3 { font-family: var(--project-display-font), Georgia, serif; font-size: clamp(19px, 2.3vw, 24px); line-height: 1.5; font-weight: 500; letter-spacing: -.045em; margin: 0 0 12px; text-wrap: balance; }
.work-meta { color: var(--muted); font-size: 14px; margin: 0; }
.work-links { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 20px; font-size: 13px; color: var(--ink); }
.work-links a { text-decoration: underline; text-underline-offset: 5px; }
@media (max-width: 800px) {
  .page { padding: 0 24px; }
  .masthead { height: 78px; }
  .intro { padding-top: 25px; }
  h1 { font-size: clamp(32px, 8vw, 39px); }
  .summary { font-size: 15px; }
  .demo { margin-top: 38px; }
  footer { margin-top: 38px; }
}
@media (max-width: 380px) {
  .brand { font-size: 15px; }
  h1 { font-size: 35px; }
}

/* LaCAM: retain the quiet layout while accommodating the research collection. */
.affiliation { font-size: 12px; line-height: 1.6; color: var(--muted); margin: 9px auto 24px; max-width: 600px; }
.summary { max-width: 680px; }
.resources { flex-wrap: wrap; }
.demo video { display: block; width: 100%; height: auto; aspect-ratio: 804 / 308; background: #f5f5f3; }
.demo figcaption { display: block; font-size: 12px; line-height: 1.7; }
.section-note { font-size: 12px; color: var(--muted); margin: -10px 0 32px; }
.research-group + .research-group { margin-top: 64px; }
.group-title { font-size: 14px; font-weight: 600; margin: 0 0 25px; }
.work h4 { font-family: var(--project-display-font), Georgia, serif; font-size: clamp(16px, 1.8vw, 18px); line-height: 1.5; font-weight: 500; letter-spacing: -.035em; margin: 0 0 12px; text-wrap: pretty; }
.work-meta { line-height: 1.7; }
.embed + .embed { margin-top: 32px; }
.embed h3, .video-heading { font-size: 14px; font-weight: 500; }
.video-heading { margin-top: 36px; }
.video-grid, .gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.video-grid { grid-template-columns: 1fr; }
.video-grid iframe { margin: 0; }
.work .gallery-grid { margin: 24px 0 0; gap: 0; align-items: start; }
.gallery-grid figure { margin: 0; min-width: 0; }
.gallery-grid video, .gallery-grid img { display: block; width: 100%; height: auto; }
.gif-toggle { display: block; margin: 0; padding: 5px 0; font-size: 11px; background: none; color: var(--ink); }
pre { padding: 20px; background: #f6f6f4; overflow-x: auto; font-size: 12px; line-height: 1.7; }
footer { flex-wrap: wrap; }
@media (max-width: 600px) {
  .page { padding: 0 20px; }
  .intro { padding-top: 48px; }
  .research, .extra-section { margin-top: 64px; padding-top: 24px; }
  .research h2, .extra-section h2 { font-size: 22px; margin-bottom: 28px; }
  .video-grid, .gallery-grid { grid-template-columns: 1fr; }
  .work-links { gap: 16px; }
  .resources a { padding: 11px 15px; }
}

/* Native disclosure keeps research titles visible without JavaScript. */
.work > summary { display: grid; grid-template-columns: minmax(0, 1fr) 16px; column-gap: 16px; row-gap: 6px; align-items: start; cursor: pointer; list-style: none; }
.work > summary::-webkit-details-marker { display: none; }
.work > summary h4 { grid-column: 1; margin: 0; }
.work-venue { grid-column: 1; font-size: 13px; line-height: 1.5; color: var(--muted); }
.work > summary::after { content: ''; grid-column: 2; grid-row: 1; width: 7px; height: 7px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(-45deg); margin-top: 8px; }
.work[open] > summary::after { transform: rotate(45deg); }
.work-body { padding-top: 16px; }
details.work + details.work { margin-top: 20px; padding-top: 20px; }
