:root {
  --bg: #ffffff;
  --bg-alt: #f6f6f4;
  --ink: #111111;
  --ink-soft: #333333;
  --muted: #6b6b6b;
  --accent: #0a3d62;
  --accent-hover: #06304e;
  --rule: #e4e4e0;
  --card: #ffffff;
  --max: 1080px;
  --narrow: 720px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
a:hover { color: var(--accent-hover); }

h1, h2, h3 {
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--ink);
}

h1 {
  font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
  font-size: 1.95rem;
  line-height: 1.1;
  margin: 0 0 0.9rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  position: relative;
  padding-top: 0.65rem;
}
h1::before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 2.4rem;
  height: 2px;
  background: var(--accent);
}
h2 {
  font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
  font-size: 1.95rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  line-height: 1.2;
}
h3 {
  font-size: 1.02rem;
  margin: 0 0 0.4rem;
  line-height: 1.35;
}
@media (max-width: 600px) {
  h1, h2 { font-size: 1.6rem; }
}

p { margin: 0 0 1rem; color: var(--ink-soft); }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container.narrow { max-width: var(--max); }
.container.narrow > p,
.container.narrow > .lede,
.container.narrow > .section-lede,
.container.narrow > .schedule,
.container.narrow > .callout,
.container.narrow > .goals,
.container.narrow > .schedule-note,
.container.narrow > .goals-heading {
  max-width: 70ch;
}

/* HERO */
.hero {
  position: relative;
  padding: 4.5rem 0 3rem;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}
.hero .container { position: relative; z-index: 1; padding-right: 300px; }
.hero-illustration {
  position: absolute;
  top: 0.5rem;
  right: 6rem;
  width: 270px;
  height: auto;
  pointer-events: none;
  opacity: 0.92;
  z-index: 0;
}
@media (max-width: 820px) {
  .hero .container { padding-right: 180px; }
  .hero-illustration { width: 160px; right: 3rem; }
}
@media (max-width: 500px) {
  .hero .container { padding-right: 1.5rem; }
  .hero-illustration { width: 130px; right: 1rem; opacity: 0.85; }
}
.kicker {
  display: block;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin: 0 0 1.2rem;
  text-transform: none;
  background: none;
  padding: 0;
  border-radius: 0;
}
.subtitle {
  font-family: "IBM Plex Sans", sans-serif;
  font-style: normal;
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 52ch;
  margin: 0 0 2rem;
  line-height: 1.45;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem 2.8rem;
  padding: 1.2rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin: 0 0 2rem;
}
.meta-item { display: flex; flex-direction: column; }
.meta-label {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-transform: none;
  margin-bottom: 0.25rem;
}
.meta-value {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 1rem;
  color: var(--ink);
}

.cta { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.btn {
  display: inline-block;
  padding: 0.55rem 1rem;
  font-size: 0.92rem;
  font-weight: 500;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  border-radius: 0;
  transition: background 120ms ease, color 120ms ease;
}
.btn:hover { background: var(--ink); color: #fff; }
.btn.primary { background: var(--ink); color: #fff; }
.btn.primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* SECTIONS */
.section {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--rule);
}
.section.alt { background: var(--bg-alt); }
.section-lede {
  font-size: 1.02rem;
  color: var(--ink-soft);
  margin: -0.2rem 0 1.8rem;
  max-width: 70ch;
}
.lede {
  font-family: "IBM Plex Sans", sans-serif;
  font-style: normal;
  font-size: 1.05rem;
  color: var(--ink);
  font-weight: 500;
  border-left: 0;
  padding: 0;
  margin: 1.2rem 0 0;
}

/* GRIDS */
.grid { display: grid; gap: 1.4rem; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); }
.grid.five { grid-template-columns: repeat(5, 1fr); gap: 1.2rem; }

@media (max-width: 820px) {
  .grid.two, .grid.three, .grid.four, .grid.five { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 821px) and (max-width: 1040px) {
  .grid.four { grid-template-columns: repeat(2, 1fr); }
  .grid.five { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 500px) {
  .grid.two, .grid.three, .grid.four, .grid.five { grid-template-columns: 1fr; }
}

.card {
  background: var(--card);
  padding: 1.4rem;
  border: 1px solid var(--rule);
  border-radius: 0;
}
.card h3 {
  font-weight: 600;
  font-size: 0.98rem;
  margin-bottom: 0.5rem;
}
.card p { margin: 0; font-size: 0.95rem; }

.person { text-align: left; padding: 0; }
.avatar {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0 0 0.9rem;
  border-radius: 50%;
  overflow: hidden;
  background: #ededed;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  border: 1px solid var(--rule);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-initials {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--muted);
  z-index: 0;
}
.avatar img { position: relative; z-index: 1; }
.avatar.avatar-fallback .avatar-initials { z-index: 2; }
.person h3 {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 1rem;
  margin: 0 0 0.2rem;
  font-weight: 600;
}
.person .role {
  margin: 0 0 0.1rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.4;
}
.person .affil {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0;
}

@media (max-width: 820px) {
  .avatar { width: 84px; height: 84px; }
}

.goals-heading {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-transform: none;
  margin: 2.2rem 0 0.7rem;
}
.goals { margin: 0; padding-left: 1.2rem; }
.goals li { margin-bottom: 0.35rem; color: var(--ink-soft); }

/* SCHEDULE */
.schedule {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.schedule li {
  display: flex;
  gap: 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
}
.schedule .slot {
  flex: 0 0 100px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
  padding-top: 0.2rem;
}
.schedule .slot-body { flex: 1 1 auto; }
.schedule .slot-body h3 {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 1rem;
  margin: 0 0 0.2rem;
  font-weight: 600;
}
.schedule .slot-meta { margin: 0; font-size: 0.88rem; color: var(--muted); }
.schedule-note {
  font-size: 0.85rem;
  color: var(--muted);
  font-style: normal;
  margin-top: 1.2rem;
}
.schedule-note code {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  background: var(--bg-alt);
  padding: 0.1rem 0.35rem;
  border-radius: 0;
  font-size: 0.85em;
  color: var(--ink);
}

@media (max-width: 600px) {
  .schedule li { flex-direction: column; gap: 0.3rem; }
  .schedule .slot { flex: none; }
}

.callout {
  background: var(--bg-alt);
  padding: 1.3rem 1.5rem;
  border: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
  border-radius: 0;
  margin-top: 1.4rem;
}
.callout p { margin: 0 0 0.4rem; }
.callout p:last-child { margin-bottom: 0; }
.register-steps { margin-top: 0.6rem !important; }
.register-steps-list {
  margin: 0.4rem 0 0;
  padding-left: 1.3rem;
  color: var(--ink-soft);
}
.register-steps-list li { margin-bottom: 0.3rem; }
.register-steps-list li:last-child { margin-bottom: 0; }

/* DATA SECTION */
.iv-subheading {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--muted);
  margin: 2.5rem 0 0.9rem;
}
.iv-row {
  display: grid;
  gap: 1.5rem;
  margin: 0;
}
.iv-row-camera { grid-template-columns: 1fr 1.4fr; }
.iv-row-frames { grid-template-columns: 1fr 1fr; }
.iv-row-papers { grid-template-columns: repeat(3, 1fr); }

.iv-row figure {
  margin: 0;
  display: flex;
  flex-direction: column;
}
.iv-row figure img {
  width: 100%;
  border-radius: 0;
  border: 1px solid var(--rule);
  background: #fff;
  display: block;
}
.iv-camera-figure img {
  aspect-ratio: 4 / 3;
  object-fit: contain;
  padding: 1rem;
}
.iv-frame img {
  aspect-ratio: 3 / 5;
  height: auto;
  object-fit: contain;
  background: var(--bg-alt);
}
.iv-paper img {
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #fff;
  padding: 0.5rem;
  transition: border-color 120ms ease;
}
.iv-paper a {
  display: block;
  border: 0;
  text-decoration: none;
}
.iv-paper a:hover img { border-color: var(--ink); }
.iv-row figcaption {
  margin-top: 0.6rem;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}
.iv-row figcaption a { color: var(--accent); }

@media (max-width: 820px) {
  .iv-row-camera, .iv-row-frames { grid-template-columns: 1fr; }
  .iv-row-papers { grid-template-columns: 1fr; }
}

.inline-link { font-weight: 500; }

/* FOOTER */
footer {
  padding: 2.5rem 0 3rem;
  background: var(--bg);
  color: var(--muted);
  border-top: 1px solid var(--rule);
}
footer p { color: var(--muted); margin: 0 0 0.35rem; }
footer .small { font-size: 0.85rem; color: var(--muted); }
footer a { color: var(--accent); }
footer a:hover { color: var(--accent-hover); }

/* Responsive tweaks */
@media (max-width: 600px) {
  .hero { padding: 3rem 0 2.5rem; }
  .section { padding: 2.5rem 0; }
  .meta { gap: 1rem 2rem; }
}
