:root {
  color-scheme: light;
  --paper: #f5f1e8;
  --paper-strong: #fffaf0;
  --ink: #171411;
  --muted: #706a5d;
  --line: #d8ccbb;
  --brick: #9f3f2f;
  --olive: #526447;
  --blue: #24536a;
  --gold: #c59235;
  --shadow: 0 18px 55px rgba(48, 38, 26, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(23, 20, 17, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 20, 17, 0.025) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

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

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  margin: 14px auto 0;
  padding: 12px 14px;
  border: 1px solid rgba(23, 20, 17, 0.14);
  border-radius: 8px;
  background: rgba(245, 241, 232, 0.86);
  backdrop-filter: blur(18px);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.site-header.is-scrolled {
  box-shadow: var(--shadow);
  background: rgba(255, 250, 240, 0.93);
}

.brand {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 8px;
  justify-content: center;
  min-width: 0;
}

.nav-links a,
.header-action,
.primary-link,
.project-actions a,
.contact-actions a,
.site-footer a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(23, 20, 17, 0.18);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.86rem;
  font-weight: 700;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.nav-links a:hover,
.header-action:hover,
.primary-link:hover,
.project-actions a:hover,
.contact-actions a:hover,
.site-footer a:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper-strong);
  transform: translateY(-1px);
}

.header-action {
  background: var(--ink);
  color: var(--paper-strong);
}

.hero {
  position: relative;
  display: grid;
  width: min(1240px, calc(100% - 32px));
  min-height: calc(100svh - 72px);
  margin: 0 auto;
  padding: 78px 0 42px;
}

.hero-help {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-help a {
  border-bottom: 1px solid currentColor;
  color: var(--ink);
  font-weight: 700;
}

.hero-copy {
  z-index: 1;
  display: grid;
  justify-items: center;
  align-self: center;
  text-align: center;
}

.eyebrow,
.section-label p,
.detail-band span,
.notes-grid span,
.project-index {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 920px;
  margin: 14px 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 5.7rem;
  font-weight: 500;
  line-height: 0.92;
}

.hero-subtitle {
  max-width: 650px;
  margin: 0 0 26px;
  color: #3c372f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
}

.primary-link {
  min-width: 138px;
  background: var(--paper-strong);
}

.film-strip {
  display: grid;
  grid-template-columns: 1.05fr 0.82fr 0.95fr 0.72fr;
  gap: 14px;
  align-items: end;
  width: min(980px, 100%);
  margin: 24px auto 0;
}

.film-frame {
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(23, 20, 17, 0.18);
  border-radius: 8px;
  background: var(--paper-strong);
  box-shadow: var(--shadow);
}

.film-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.will-reveal {
  opacity: 0;
  transform: translateY(18px);
}

.will-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 520ms ease,
    transform 520ms ease;
}

.film-frame.tall {
  aspect-ratio: 7 / 9;
}

.film-frame.short {
  aspect-ratio: 8 / 6;
}

.film-frame.medium {
  aspect-ratio: 7 / 8;
}

.film-frame.narrow {
  aspect-ratio: 5 / 8;
}

.scroll-note {
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

section {
  scroll-margin-top: 92px;
}

.intro-section,
.work-section,
.timeline-section,
.notes-section,
.contact-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 86px 0;
}

.section-label {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 30px;
}

.section-label span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(23, 20, 17, 0.22);
  border-radius: 50%;
  color: var(--brick);
  font-size: 0.82rem;
  font-weight: 800;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(250px, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: start;
}

.intro-grid h2,
.section-heading h2,
.contact-panel h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.6rem;
  font-weight: 500;
  line-height: 0.95;
}

.intro-copy {
  display: grid;
  gap: 20px;
}

.intro-copy p,
.section-heading p {
  margin: 0;
  color: #3d3830;
  font-size: 1.08rem;
}

.detail-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-top: 64px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.detail-band article,
.notes-grid article {
  min-width: 0;
  padding: 26px;
  background: var(--paper-strong);
}

.detail-band h3,
.notes-grid h3,
.timeline-list h3,
.project-card h3 {
  margin: 10px 0 10px;
  font-size: 1.18rem;
  line-height: 1.15;
}

.detail-band p,
.notes-grid p,
.timeline-list p,
.project-card p {
  margin: 0;
  color: #514b42;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(250px, 0.9fr) minmax(0, 1fr);
  gap: 56px;
  align-items: end;
  margin-bottom: 34px;
}

.project-list {
  display: grid;
  gap: 12px;
}

.project-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 24px;
  border: 1px solid rgba(23, 20, 17, 0.16);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.72);
  transition:
    border-color 180ms ease,
    transform 180ms ease,
    background-color 180ms ease;
}

.project-card.featured {
  background: #f8dfb4;
}

.project-card:hover {
  border-color: rgba(23, 20, 17, 0.42);
  background: var(--paper-strong);
  transform: translateY(-2px);
}

.project-card span {
  display: inline-flex;
  margin-top: 14px;
  color: var(--blue);
  font-size: 0.86rem;
  font-weight: 800;
}

.project-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.project-actions a {
  min-width: 76px;
  background: transparent;
}

.image-break {
  width: min(1180px, calc(100% - 32px));
  margin: 14px auto 0;
  overflow: hidden;
  border: 1px solid rgba(23, 20, 17, 0.16);
  border-radius: 8px;
  background: var(--paper-strong);
  box-shadow: var(--shadow);
}

.image-break img {
  width: 100%;
  aspect-ratio: 16 / 6;
  object-fit: cover;
}

.timeline-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.timeline-list article {
  min-width: 0;
  padding: 28px;
  background: var(--paper-strong);
}

.timeline-list time {
  color: var(--brick);
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.notes-grid article {
  border: 1px solid rgba(23, 20, 17, 0.15);
  border-radius: 8px;
}

.notes-grid article:nth-child(1) {
  border-top: 8px solid var(--brick);
}

.notes-grid article:nth-child(2) {
  border-top: 8px solid var(--olive);
}

.notes-grid article:nth-child(3) {
  border-top: 8px solid var(--blue);
}

.contact-section {
  padding-bottom: 42px;
}

.contact-panel {
  padding: 42px;
  border: 1px solid rgba(23, 20, 17, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(159, 63, 47, 0.14), transparent 38%),
    linear-gradient(135deg, rgba(36, 83, 106, 0.14), transparent 54%),
    var(--paper-strong);
}

.contact-panel h2 {
  max-width: 820px;
  margin-top: 12px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.contact-actions a:first-child {
  background: var(--ink);
  color: var(--paper-strong);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 36px;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  min-height: 34px;
}

@media (max-width: 880px) {
  .site-header {
    grid-template-columns: auto 1fr;
  }

  .nav-links {
    order: 3;
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .header-action {
    justify-self: end;
  }

  .hero {
    min-height: auto;
    padding-top: 58px;
  }

  .hero h1 {
    font-size: 4.2rem;
  }

  .film-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intro-grid,
  .section-heading {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .detail-band,
  .notes-grid,
  .timeline-list {
    grid-template-columns: 1fr;
  }

  .project-card {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .project-actions {
    grid-column: 2;
    justify-content: flex-start;
  }

  .image-break img {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 560px) {
  .site-header {
    width: min(100% - 20px, 1180px);
    gap: 12px;
    margin-top: 10px;
  }

  .nav-links a,
  .header-action,
  .primary-link,
  .project-actions a,
  .contact-actions a,
  .site-footer a {
    min-height: 36px;
    padding: 7px 11px;
    font-size: 0.8rem;
  }

  .hero,
  .intro-section,
  .work-section,
  .timeline-section,
  .notes-section,
  .contact-section,
  .image-break,
  .site-footer {
    width: min(100% - 20px, 1180px);
  }

  .hero h1,
  .intro-grid h2,
  .section-heading h2,
  .contact-panel h2 {
    font-size: 3rem;
  }

  .hero-subtitle {
    font-size: 1.15rem;
  }

  .film-strip {
    gap: 10px;
  }

  .intro-section,
  .work-section,
  .timeline-section,
  .notes-section,
  .contact-section {
    padding: 62px 0;
  }

  .detail-band article,
  .notes-grid article,
  .timeline-list article,
  .project-card,
  .contact-panel {
    padding: 20px;
  }

  .project-card {
    gap: 14px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
