:root {
  color-scheme: light;
  --ink: #191713;
  --mono: 'Courier New', Courier, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body { margin: 0; background: #fff; color: var(--ink); font-family: Arial, Helvetica, sans-serif; }
body.viewer-open { overflow: hidden; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible { outline: 2px solid #9f392b; outline-offset: 6px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: -80px; left: 20px; z-index: 100; background: white; padding: 16px; }
.skip-link:focus { top: 20px; }
.page-progress { position: fixed; top: 0; left: 0; width: 100%; height: 2px; background: #963b2e; transform: scaleX(0); transform-origin: left; z-index: 40; }

/* Each scene keeps its viewport in place while scroll drives the animation. */
.scroll-scene { position: relative; }
/* overflow: clip stops focus from scrolling the pinned stage internally. */
.sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; overflow: clip; }
.opening { height: 250svh; }
.opening-stage { background: #fff; }
.hero-frame {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100vw, 132.8021svh);
  aspect-ratio: 2000 / 1506;
  transform: translate(-50%, -50%);
}
.hero-frame > img { width: 100%; height: 100%; }
/* A sliver of blank paper from this same image covers the photographed letters. */
.title-veil {
  display: none;
  position: absolute;
  left: 39.2%; top: 51.1%; width: 30.4%; height: 5.1%;
  background-image: linear-gradient(to bottom, transparent, rgba(100,50,0,.1)), url('assets/offtgherecordPrint.jpg');
  background-size: 100% 100%, 328.95% auto;
  background-position: 0 0, 56.3% 46%;
  mask-image: linear-gradient(to right, transparent, #000 1%, #000 99%, transparent);
}
.js .title-veil { display: block; }
.scroll-hint, .sound-toggle {
  position: absolute;
  bottom: 28px;
  z-index: 2;
  font: 12px/1 var(--mono);
  color: #fff;
  text-shadow: 0 1px 8px #000;
  padding: 10px 0;
}
.scroll-hint { left: 32px; }
.sound-toggle { right: 32px; border: 0; background: transparent; }

/* The project, in three statements. No tint over the supplied paper. */
.intro { height: 240svh; }
.intro-stage {
  display: grid;
  place-items: center;
  background: #fff url('assets/textures/paper-texture.jpg') center / cover no-repeat;
}
.intro-copy {
  width: min(1180px, 86vw);
  transform-origin: center;
  will-change: transform;
}
.intro-copy h2, .intro-copy p {
  margin: 0 0 .65em;
  font-size: clamp(36px, min(6.7vw, 10svh), 100px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -.055em;
}
.intro-copy p:last-child { margin-bottom: 0; }

/* A plain-language introduction, followed by a typed project chronology. */
.project-explained { padding: 110px 8vw 80px; background: #fff; }
.section-label { font: 12px/1.5 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.project-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 8vw; margin: 0 0 70px; }
.project-layout h2 { margin: 0; font-size: clamp(48px, 6.5vw, 100px); line-height: .98; font-weight: 400; letter-spacing: -.06em; }
.project-description { max-width: 560px; }
.project-description p { margin: 0 0 24px; font-size: 18px; line-height: 1.65; }
.project-description .project-lead { font-size: clamp(23px, 2.2vw, 32px); line-height: 1.35; letter-spacing: -.025em; }
.project-link { display: inline-block; margin-top: 12px; padding-bottom: 7px; border-bottom: 1px solid #963b2e; font: 14px/1.5 var(--mono); }
.project-link span { color: #963b2e; margin-left: 12px; }
.project-divider { margin: 0; border: 0; border-top: 1px solid #d9d4ca; }
.creative-timeline { --timeline-paper: url('assets/textures/paper-texture.jpg'); padding: 110px 8vw 70px; background-color: #f4f0e7; background-image: var(--timeline-paper); background-position: center; background-size: cover; }
.timeline-heading { max-width: 900px; margin-bottom: 72px; }
.timeline-heading h2 { margin: 34px 0 28px; font: 400 clamp(43px, 6.8vw, 100px)/1.02 var(--mono); letter-spacing: -.075em; }
.timeline-heading h2 span, .timeline-postscript span { color: #963b2e; }
.timeline-list { position: relative; padding: 0; margin: 0; list-style: none; }
.timeline-entry { position: relative; display: grid; grid-template-columns: 210px 1fr; gap: 70px; padding: 0 0 56px 46px; }
.timeline-entry::before { content: ''; position: absolute; left: 6px; top: 9px; bottom: -9px; border-left: 1px solid #9b7568; }
.timeline-entry::after { content: ''; position: absolute; left: 0; top: 4px; width: 13px; height: 13px; border: 1px solid #963b2e; border-radius: 50%; background: #963b2e; }
.timeline-date { padding-top: 2px; font: 17px/1.4 var(--mono); }
.timeline-copy { max-width: 660px; padding-bottom: 30px; border-bottom: 1px solid #b3a38b66; }
.timeline-copy h3 { margin: 0 0 16px; font: 400 clamp(26px, 3vw, 42px)/1.1 var(--mono); letter-spacing: -.05em; }
.timeline-copy p { max-width: 560px; margin: 0; color: #514b42; font-size: 18px; line-height: 1.65; }
.timeline-status { display: inline-block; margin-bottom: 18px; padding: 5px 8px; border: 1px solid #963b2e; color: #963b2e; font: 11px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; transform: rotate(-3deg); }
.timeline-current::after { box-shadow: 0 0 0 5px #963b2e20; }
.timeline-upcoming::before, .timeline-future::before { border-left-style: dashed; }
.timeline-upcoming::after, .timeline-future::after { background: #f4f0e7; }
.timeline-future { padding-bottom: 12px; }
.timeline-future::before { bottom: 0; }
.timeline-future .timeline-copy { border-bottom: 0; }
.timeline-postscript { margin: 35px 0 0 46px; color: #6c6257; font: 14px/1.5 var(--mono); }
.timeline-scroll-note { display: none; }

@media (min-width: 701px) {
  .creative-timeline {
    /* Paper texture strength: 0 = plain paper color, 1 = full original texture. */
    --timeline-paper-strength: .36;
    --timeline-paper: linear-gradient(rgba(250, 247, 239, calc(1 - var(--timeline-paper-strength))), rgba(250, 247, 239, calc(1 - var(--timeline-paper-strength)))), url('assets/textures/paper-texture.jpg');
    font-family: var(--mono);
  }
  .timeline-heading h2 { margin: 0; font-size: clamp(36px, 4vw, 56px); letter-spacing: -.05em; }
  .timeline-date {
    justify-self: start; align-self: start; width: fit-content;
    padding: 10px 14px; background: #e9d9b6; color: #292219;
    font: 700 clamp(20px, 1.8vw, 24px)/1.25 var(--mono);
    letter-spacing: -.035em;
  }
  .timeline-copy h3 { font-size: clamp(28px, 2.6vw, 36px); letter-spacing: -.04em; }
  .timeline-copy p { font: 18px/1.6 var(--mono); color: #39342d; }
}

/* Desktop scroll moves the paper chronology through a stationary viewport.
   The connecting line stays continuous while the type gently changes scale. */
@media (min-width: 701px) and (min-height: 640px) and (prefers-reduced-motion: no-preference) {
  .js .creative-timeline { position: relative; padding: 0; }
  .js .timeline-stage {
    position: sticky; top: 0; height: 100svh;
    display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto;
    padding: clamp(24px, 4svh, 48px) 0 24px;
    overflow: clip;
    background-color: #f4f0e7; background-image: var(--timeline-paper); background-position: center; background-size: cover;
  }
  .js .timeline-heading {
    display: block;
    max-width: none; margin: 0 8vw; padding: 22px 0 0;
    border-top: 1px solid #963b2e55;
  }
  .js .timeline-heading h2 { margin: 0; font-size: clamp(36px, 4vw, 56px); }
  .js .timeline-window { display: flex; align-items: center; min-width: 0; min-height: 0; }
  .js .timeline-list {
    --timeline-card-width: clamp(330px, 40vw, 570px);
    --timeline-gap: clamp(64px, 10vw, 160px);
    display: flex; gap: var(--timeline-gap); width: max-content;
    padding: 0; will-change: transform;
  }
  .js .timeline-entry {
    display: block; flex: 0 0 var(--timeline-card-width);
    width: var(--timeline-card-width); padding: 34px 0 0;
  }
  .js .timeline-entry::before {
    top: 0; bottom: auto; left: 0; width: calc(100% + var(--timeline-gap));
    border-left: 0; border-top: 1px solid #9b7568;
  }
  .js .timeline-entry::after { top: -6px; left: 0; }
  .js .timeline-upcoming::before, .js .timeline-future::before { border-top-style: dashed; }
  .js .timeline-future::before { width: 100%; }
  .js .timeline-copy {
    opacity: var(--timeline-opacity, 1);
    transform: scale(var(--timeline-scale, 1));
    transform-origin: center top;
    will-change: transform, opacity;
  }
  .js .timeline-date { margin-bottom: 28px; }
  .js .timeline-copy { position: relative; padding: 0; border: 0; }
  .js .timeline-copy h3 { font-size: clamp(28px, 2.6vw, 36px); }
  .js .timeline-copy p { font-size: 18px; line-height: 1.6; }
  .js .timeline-status { margin: 0 0 14px; font-size: 14px; letter-spacing: 0; text-transform: none; transform: none; }
  .js .timeline-footer {
    display: flex; justify-content: space-between; align-items: center;
    margin: 0 8vw; padding: 0 0 18px; border-bottom: 1px solid #963b2e55;
  }
  .js .timeline-postscript { margin: 0; }
  .js .timeline-scroll-note { display: flex; gap: 24px; margin: 0; color: #6c6257; font: 12px/1.5 var(--mono); }
  .js .timeline-scroll-note span { color: #963b2e; }
}

/* Natural image ratios with quiet white mounts and generous spacing. */
.gallery { background: #fff; }
.gallery-header {
  position: absolute;
  left: 0; right: 0; top: 0;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100px;
  padding: 0 4vw;
  background: #fff;
}
.gallery-header h2 { margin: 0; font-size: 28px; font-weight: 400; letter-spacing: -.045em; }
.gallery-header span { font: 12px var(--mono); color: #666; }
.masonry { display: flex; gap: 44px; padding: 122px 4vw 60px; align-items: flex-start; }
.masonry-column { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 44px; }
.gallery-item {
  display: block;
  width: 100%;
  padding: 12px;
  border: 1px solid #e8e8e5;
  background: #fff;
  box-shadow: 0 2px 4px #00000005, 0 8px 20px #00000008;
  transition: transform .35s ease, box-shadow .35s ease;
  cursor: zoom-in;
}
.gallery-item img { width: 100%; height: auto; }
.gallery-item:hover, .gallery-item:focus-visible { transform: translateY(-6px) scale(1.012); box-shadow: 0 6px 10px #00000008, 0 18px 30px #00000015; z-index: 2; }
/* Without JavaScript the entire gallery stays readable. */
html:not(.js) .gallery-stage { height: auto; overflow: visible; }
html:not(.js) .masonry { display: block; columns: 3; }
html:not(.js) .gallery-item { break-inside: avoid; margin-bottom: 44px; }

/* Original darkroom and closing typography. */
.darkroom { height: 300svh; background: #030303; }
.darkroom-stage { background: #030303; }
.developing-print { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.darkness, .red-light { position: absolute; inset: 0; pointer-events: none; }
.darkness { background: #020202; opacity: 0; }
.red-light { background: radial-gradient(circle at 50% 42%, rgba(175,16,8,.48), rgba(112,5,3,.5) 35%, rgba(48,0,0,.8)); mix-blend-mode: screen; opacity: 0; }
.darkroom-copy { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4vh; padding: 0 5vw; color: #eee7db; text-align: center; font: clamp(20px,3.4vw,52px) var(--mono); text-shadow: 0 2px 25px #0005; }
.end { min-height: 120vh; display: flex; align-items: center; padding: 15vh 8vw; background: #171612; color: #ebe5d9; }
.end-inner { width: min(1100px,90vw); margin: auto; }
.end-small { margin-bottom: 9vh; color: #a29c90; font: 12px var(--mono); letter-spacing: .16em; }
.end h2 { max-width: 950px; margin: 0 0 7vh; font-size: clamp(55px,9vw,135px); font-weight: 700; line-height: .84; letter-spacing: -.07em; }
.end p { max-width: 580px; margin: 0 0 6vh; color: #bbb4a9; font-size: clamp(17px,1.6vw,22px); line-height: 1.55; }
.end-invitation { display: block; margin-top: 1.4em; color: #ebe5d9; }
.end .end-contact { margin-bottom: 14vh; color: #ebe5d9; }
.end-contact a { border-bottom: 1px solid #ebe5d980; }
.end-contact a:hover, .end-contact a:focus-visible { border-bottom-color: #ebe5d9; }
.end-title { padding-top: 7vh; border-top: 1px solid #ebe5d940; font: clamp(34px,6vw,90px) var(--mono); letter-spacing: -.04em; }
.credit { margin-top: 5vh; color: #a29c90; font: 12px/1.6 var(--mono); letter-spacing: .15em; }

/* A simple full-screen image viewer. */
#viewer { width: 100%; max-width: none; height: 100svh; max-height: none; margin: 0; padding: 70px 80px; border: 0; background: #fff; overflow: hidden; }
#viewer::backdrop { background: #fff; }
#viewer[open] { display: flex; justify-content: center; align-items: center; }
.viewer-image { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.viewer-close, .viewer-arrow { position: absolute; border: 0; background: #ffffffde; font-weight: 300; line-height: 1; width: 48px; height: 48px; }
.viewer-close { right: 20px; top: 16px; font-size: 40px; }
.viewer-arrow { top: calc(50% - 24px); font-size: 26px; }
.previous { left: 16px; }
.next { right: 16px; }
.viewer-count { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); max-width: 70vw; text-align: center; font: 12px var(--mono); color: #666; }

@media (max-width: 700px) {
  .project-explained, .creative-timeline { padding: 70px 6vw 56px; }
  .project-layout { grid-template-columns: 1fr; gap: 36px; margin: 0 0 44px; }
  .project-layout h2 { font-size: clamp(48px, 11vw, 76px); }
  .project-description p, .timeline-copy p { font-size: 17px; }
  .timeline-heading { margin-bottom: 48px; }
  .timeline-heading h2 { font-size: clamp(34px, 8.5vw, 58px); }
  .timeline-entry { grid-template-columns: 1fr; gap: 22px; padding-left: 30px; padding-bottom: 38px; }
  .timeline-copy h3 { font-size: 28px; }
  .timeline-postscript { margin-left: 30px; }
  .hero-frame { transform: translate(-54.4%, -50%); }
  .scroll-hint { left: 20px; }
  .sound-toggle { right: 20px; }
  .scroll-hint, .sound-toggle { bottom: 18px; font-size: 12px; }
  .intro-copy { width: 88vw; }
  .intro-copy h2, .intro-copy p { font-size: clamp(32px,8.6vw,60px); line-height: 1.08; margin-bottom: .85em; }
  .gallery-header { height: 76px; padding: 0 5vw; }
  .gallery-header h2 { font-size: 24px; }
  .masonry { padding: 92px 5vw 36px; gap: 20px; }
  .masonry-column { gap: 20px; }
  .gallery-item { padding: 6px; }
  html:not(.js) .masonry { columns: 2; }
  .darkroom-copy { font-size: clamp(18px,4.6vw,30px); }
  .end { padding: 12vh 6vw; min-height: 100svh; }
  .end h2 { font-size: clamp(50px,11vw,76px); }
  .end-title { font-size: clamp(30px,7vw,50px); }
  #viewer { padding: 70px 16px 90px; }
  .viewer-arrow { top: auto; bottom: 14px; }
  .previous { left: 20px; }
  .next { right: 20px; }
  .viewer-close { right: 10px; top: 8px; }
  .viewer-count { bottom: 70px; max-width: 90vw; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .opening, .intro, .darkroom { height: auto; }
  .sticky { position: relative; }
  .js .title-veil { display: none; }
  .intro-copy { transform: none !important; will-change: auto; }
  .gallery-stage { height: auto; }
  .masonry { transform: none !important; }
}
