:root {
  --bg: #f5f6f8;
  --ink: #14161a;
  --muted: #676c76;
  --line: #dfe2e7;
  --accent: #c9372c;
  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
}

h1, h2 {
  font-family: var(--sans);
  margin: 0;
  letter-spacing: -0.01em;
}

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; margin: 0; padding: 0; }

img { max-width: 100%; display: block; }

.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;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

/* ---------- Top bar ---------- */

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 28px 48px;
}

.wordmark {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.toplinks {
  display: flex;
  gap: 12px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.toplinks a {
  color: var(--muted);
  padding-bottom: 3px;
  transition: color 0.15s ease;
}

.toplinks a:hover {
  color: var(--ink);
}

.toplinks a.active {
  color: var(--accent);
}

/* ---------- Landing ---------- */

.landing-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.bio-blurb {
  max-width: 420px;
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.landing {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px 48px 64px;
}

.landing-bottom {
  display: flex;
  align-items: flex-end;
  gap: 28px;
}

.landing-wordmark {
  flex: 1 1 auto;
  min-width: 0;
  font-size: clamp(56px, 11vw, 220px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.landing-avatar {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  margin-bottom: 16px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--line);
}

.landing-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(2.1);
  transform-origin: 56% 40%;
}

/* ---------- Page / sections ---------- */

.page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px;
}

.intro {
  padding: 96px 0 72px;
}

.intro-sm {
  padding: 56px 0 40px;
}

.eyebrow {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 16px;
}

.intro h1 {
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 700;
  line-height: 1.15;
}

.block {
  padding: 56px 0;
}

.block + .block {
  border-top: 1px solid var(--line);
}

.block-title {
  font-size: 11px;
  font-family: var(--sans);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 28px;
}

/* ---------- Work photo grid ---------- */

.work-grid-section {
  padding: 56px 0;
}

.work-grid-section + .block {
  border-top: 1px solid var(--line);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 24px;
}

.work-tile {
  margin: 0;
}

.work-tile img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 2px;
}

.carousel-frame {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
}

button.carousel-frame {
  cursor: pointer;
}

.carousel-shade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 56px;
  border-radius: 0 0 2px 2px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent);
  pointer-events: none;
}

.carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transition: background 0.15s ease;
}

.dot.active {
  background: #fff;
}

.work-tile figcaption {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.work-tile .row-meta {
  font-size: 12.5px;
}

/* ---------- Information grid ---------- */

.info-grid {
  display: grid;
  grid-template-columns: 1.2fr 104px 1fr 24px 1fr;
  padding: 56px 0;
}

.info-col:nth-child(1) { grid-column: 1; }
.info-col:nth-child(2) { grid-column: 3; }
.info-col:nth-child(3) { grid-column: 5; }

.info-col-title {
  font-size: 9px;
  font-family: var(--sans);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 18px;
}

.info-col p {
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 12px;
  max-width: 440px;
}

.info-col p:last-child { margin-bottom: 0; }

.info-entry {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 4px;
}

.info-entry:last-child { margin-bottom: 0; }

.info-entry-title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
}

.info-entry-link:hover { text-decoration: underline; }

/* ---------- Shared title / meta (photo captions) ---------- */

.row-title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
}

.row-meta {
  font-size: 14px;
  color: var(--muted);
}

/* ---------- CV list ---------- */

.cv-list {
  display: flex;
  flex-direction: column;
}

.cv-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: baseline;
  gap: 8px 24px;
  padding: 6px 0;
  border-top: 1px solid var(--line);
}

.cv-row:first-child { border-top: none; }

.cv-year {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  text-align: right;
}

/* ---------- Footer ---------- */

.footer {
  padding: 48px 0 96px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  margin-top: 48px;
}

/* ---------- Responsive ---------- */

@media (max-width: 700px) {
  .info-grid { grid-template-columns: 1fr; gap: 0; padding: 40px 0; }
  .info-col:nth-child(1),
  .info-col:nth-child(2),
  .info-col:nth-child(3) { grid-column: 1; }
  .info-col { padding-top: 24px; border-top: 1px solid var(--line); }
  .info-col:first-child { padding-top: 0; border-top: none; }
}

@media (max-width: 640px) {
  .topbar { padding: 20px 20px; }
  .page { padding: 0 20px; }
  .intro { padding: 64px 0 48px; }
  .work-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .cv-row { grid-template-columns: 1fr; gap: 4px; }
  .cv-year { text-align: left; }

  .landing-body {
    min-height: 100svh;
    flex-direction: column-reverse;
    justify-content: space-between;
  }
  .landing-topbar {
    padding-top: 0;
  }
  .bio-blurb { display: none; }
  .landing-topbar .toplinks {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    font-size: 18px;
  }
  .landing {
    justify-content: flex-start;
    padding: 40px 20px 0;
  }
  .landing-bottom {
    align-items: center;
    gap: 12px;
  }
  .landing-avatar { width: 44px; height: 44px; margin-bottom: 0; }
  .landing-wordmark {
    font-size: clamp(28px, 11vw, 44px);
    white-space: nowrap;
  }
}
