:root {
  --ground: #16120e;
  --ground-deep: #0b0907;
  --ground-glow: #241a12;
  --sky-ground-top: 42, 33, 24;
  --sky-ground-bottom: 21, 15, 10;
  --sky-glow: 60, 42, 26;
  --sky-light: 255, 206, 140;
  --sky-light-alpha: 0.11;
  --sky-vignette: 8, 6, 4;
  --sky-vignette-alpha: 0.58;
  --sky-tint: 255, 212, 152;
  --sky-tint-alpha: 0.05;
  --sky-brightness: 0.96;
  --sky-saturation: 1;
  --sky-hue: 0deg;
  --paper: #f5eddc;
  --paper-edge: #e2d1b2;
  --paper-crease: rgba(120, 92, 56, 0.16);
  --bark-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='b'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85 0.015' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23b)' opacity='0.62'/%3E%3C/svg%3E");
  --bark-face: #33251a;
  --bark-deep: #1d150e;
  --bark-lit: #5b422a;
  --paper-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23g)' opacity='0.5'/%3E%3C/svg%3E");
  --ink: #2a2119;
  --ink-soft: #63523f;
  --ink-faint: #8a7862;
  --amber: #c8752b;
  --rust: #a3471f;
  --ochre: #d59b3c;
  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --sheet-radius: 3px 7px 4px 8px / 7px 4px 8px 3px;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: var(--sans);
  color: #d9cdbb;
  background:
    radial-gradient(120% 90% at 50% 8%, var(--ground-glow) 0%, transparent 55%),
    linear-gradient(180deg, var(--ground) 0%, var(--ground-deep) 100%);
  background-attachment: fixed;
  transition: background-color 400ms linear;
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 16px;
  background: var(--paper);
  color: var(--ink);
  font: 600 14px/1 var(--sans);
  border-radius: 0 0 6px 0;
}

.skip-link:focus {
  left: 0;
}

.leaf-field {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Shares a stacking level with .vignette and precedes it in the document, so the
   wisps sit above the leaves and still take the vignette's darkening at the edges. */
.wind-field {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.daylight {
  display: none;
}

.vignette {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(130% 95% at 50% 46%, transparent 46%, rgba(6, 5, 4, 0.62) 100%),
    linear-gradient(180deg, rgba(6, 5, 4, 0.58) 0%, transparent 24%);
}

.masthead {
  position: relative;
  z-index: 3;
  width: max-content;
  max-width: min(92vw, 560px);
  margin: clamp(24px, 4vw, 44px) clamp(20px, 6vw, 72px) 0;
  padding: 18px 26px 20px;
  background-image:
    var(--paper-grain),
    linear-gradient(152deg, rgba(34, 25, 17, 0.95) 0%, rgba(15, 11, 8, 0.92) 100%);
  background-blend-mode: overlay, normal;
  border: 1px solid rgba(199, 160, 104, 0.24);
  border-radius: 2px 7px 3px 8px / 7px 3px 8px 2px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5), 0 1px 0 rgba(255, 236, 205, 0.08) inset;
}

.masthead__name {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #f4e9d6;
}

.masthead__name::after {
  content: '';
  display: block;
  width: 34px;
  height: 1px;
  margin-top: 12px;
  background: linear-gradient(90deg, var(--rust), rgba(163, 71, 31, 0));
}

.masthead__title {
  margin: 12px 0 0;
  font-size: clamp(12px, 1.6vw, 15px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ochre);
}

.scenes {
  position: relative;
  z-index: 3;
  padding: clamp(24px, 4vw, 48px) clamp(20px, 6vw, 72px) 120px;
  max-width: 1200px;
  margin: 0 auto;
}

.scenes__hint,
.scenes__notice {
  margin: 0 0 32px;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}

[data-motion-only] {
  display: none;
}

.scene {
  margin: 0 0 clamp(40px, 7vw, 84px);
}

.scene__title {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 500;
  color: #efe2ce;
}

.scene__title::after {
  content: '';
  display: block;
  width: 54px;
  height: 2px;
  margin-top: 10px;
  background: var(--rust);
}

.scene__papers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sheet {
  position: relative;
  height: 100%;
  padding: 22px 22px 24px;
  background-image:
    var(--paper-grain),
    radial-gradient(120% 90% at 12% -10%, rgba(255, 253, 247, 0.95) 0%, rgba(255, 253, 247, 0) 58%),
    radial-gradient(80% 70% at 108% 112%, rgba(150, 112, 62, 0.2) 0%, rgba(150, 112, 62, 0) 60%),
    linear-gradient(158deg, var(--paper) 0%, var(--paper-edge) 100%);
  background-blend-mode: soft-light, normal, normal, normal;
  color: var(--ink);
  border-radius: var(--sheet-radius);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.45),
    0 1px 0 rgba(255, 255, 255, 0.45) inset,
    0 -1px 0 var(--paper-crease) inset;
}

.sheet__heading {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}

.sheet__trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
  color: inherit;
  font: inherit;
}

.sheet__trigger:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 4px;
}

.sheet__eyebrow {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rust);
}

.sheet__eyebrow::after {
  content: '';
  display: block;
  width: 26px;
  height: 1px;
  margin-top: 9px;
  background: linear-gradient(90deg, var(--rust), rgba(163, 71, 31, 0));
}

.sheet__name {
  display: block;
  margin-top: 11px;
  font-family: var(--serif);
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink);
}

.sheet__note {
  display: none;
}

.sheet__lines {
  display: none;
}

.sheet__cue {
  display: none;
}

.sheet__body {
  margin-top: 16px;
}

.sheet__lead {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.sheet__meta {
  margin: 0 0 12px;
  font-size: 13.5px;
}

.sheet__row {
  display: grid;
  grid-template-columns: minmax(84px, max-content) 1fr;
  gap: 4px 18px;
  padding: 8px 0;
  border-top: 1px solid rgba(42, 33, 25, 0.14);
}

.sheet__row dt {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-top: 2px;
}

.sheet__row dd {
  margin: 0;
  color: var(--ink);
}

.sheet__prose {
  margin: 14px 0 0;
  font-size: 14.5px;
  line-height: 1.68;
  color: #3d3227;
}

.sheet__subheading {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.sheet__links {
  margin-top: 14px;
}

.sheet__linklist {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
}

.sheet__link {
  color: var(--rust);
  font-size: 13.5px;
  word-break: break-word;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(163, 71, 31, 0.4);
  transition: text-decoration-color 200ms ease;
}

.sheet__link:hover,
.sheet__link:focus-visible {
  text-decoration-color: var(--rust);
}

.sheet__entries {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.sheet__entry {
  display: grid;
  gap: 2px;
  padding-top: 12px;
  border-top: 1px solid rgba(42, 33, 25, 0.13);
}

.sheet__entryTitle {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink);
}

.sheet__entryMeta {
  font-size: 13px;
  color: var(--ink-soft);
}

.contact {
  display: grid;
  gap: 10px;
}

.contact__row {
  display: grid;
  gap: 2px;
  padding: 10px 0;
  border-top: 1px solid rgba(42, 33, 25, 0.13);
}

.contact__label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.contact__link {
  font-family: var(--serif);
  font-size: clamp(17px, 1.4vw, 22px);
  color: var(--rust);
  text-decoration: none;
  line-height: 1.35;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  overflow-wrap: anywhere;
}

.contact__link:hover,
.contact__link:focus-visible {
  text-decoration: underline;
}

.contact__value {
  font-size: 16px;
  color: var(--ink);
}

.sheet__close {
  display: none;
}

.scene-nav {
  position: relative;
  z-index: 3;
  padding: 0 clamp(20px, 6vw, 72px) 56px;
  max-width: 1200px;
  margin: 0 auto;
}

.scene-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 0;
  padding: 22px 0 0;
  list-style: none;
  border-top: 1px solid rgba(217, 205, 187, 0.16);
}

.scene-nav__link {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-decoration: none;
}

.scene-nav__link {
  position: relative;
  padding-bottom: 5px;
}

.scene-nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--rust);
  transition: right 260ms ease;
}

.scene-nav__link:hover,
.scene-nav__link:focus-visible {
  color: var(--ochre);
}

.scene-nav__link:hover::after {
  right: 0;
}

.scene-nav__link[aria-current='true'] {
  color: #f0e2cb;
}

.scene-nav__link[aria-current='true']::after {
  right: 0;
}

.scene-nav__link:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 5px;
}

html[data-motion='on'],
html[data-motion='on'] body {
  height: 100%;
  overflow: hidden;
}

html[data-motion='on'] .leaf-field,
html[data-motion='on'] .wind-field,
html[data-motion='on'] .vignette {
  display: block;
}

html[data-motion='on'] body {
  background:
    radial-gradient(120% 90% at 50% 8%, rgb(var(--sky-glow)) 0%, transparent 55%),
    linear-gradient(180deg, rgb(var(--sky-ground-top)) 0%, rgb(var(--sky-ground-bottom)) 100%);
  background-attachment: fixed;
}

/* One filter on the leaf canvas re-lights every leaf at once, which a field of
   baked sprites could not otherwise do. */
html[data-motion='on'] .leaf-field {
  filter:
    brightness(var(--sky-brightness))
    saturate(var(--sky-saturation))
    hue-rotate(var(--sky-hue));
}

/* A flat wash of the hour's colour over the whole field. The filter above can dim
   the leaves but cannot cool them, so the temperature is laid on top instead. */
html[data-motion='on'] .vignette {
  background:
    linear-gradient(
      rgba(var(--sky-tint), var(--sky-tint-alpha)),
      rgba(var(--sky-tint), var(--sky-tint-alpha))
    ),
    radial-gradient(
      130% 95% at 50% 46%,
      transparent 46%,
      rgba(var(--sky-vignette), var(--sky-vignette-alpha)) 100%
    ),
    linear-gradient(180deg, rgba(var(--sky-vignette), var(--sky-vignette-alpha)) 0%, transparent 24%);
}

html[data-motion='on'] .daylight {
  display: block;
  position: fixed;
  inset: -25%;
  z-index: 2;
  pointer-events: none;
}

html[data-motion='on'] .daylight::before,
html[data-motion='on'] .daylight::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}

html[data-motion='on'] .daylight::before {
  left: 6%;
  top: 4%;
  width: 58%;
  height: 66%;
  background: radial-gradient(
    closest-side,
    rgba(var(--sky-light), var(--sky-light-alpha)),
    rgba(var(--sky-light), 0) 72%
  );
  animation: daylight-drift-a 68s ease-in-out infinite alternate;
}

html[data-motion='on'] .daylight::after {
  right: 8%;
  bottom: 6%;
  width: 46%;
  height: 54%;
  background: radial-gradient(
    closest-side,
    rgba(var(--sky-light), calc(var(--sky-light-alpha) * 0.72)),
    rgba(var(--sky-light), 0) 72%
  );
  animation: daylight-drift-b 91s ease-in-out infinite alternate;
}

@keyframes daylight-drift-a {
  from {
    transform: translate3d(-7%, -5%, 0) scale(1);
  }
  to {
    transform: translate3d(11%, 7%, 0) scale(1.18);
  }
}

@keyframes daylight-drift-b {
  from {
    transform: translate3d(6%, 4%, 0) scale(1.12);
  }
  to {
    transform: translate3d(-9%, -6%, 0) scale(1);
  }
}

html[data-motion='on'] .leaf-field,
html[data-motion='on'] .wind-field,
html[data-motion='on'] .daylight,
html[data-motion='on'] .masthead,
html[data-motion='on'] .scenes,
html[data-motion='on'] .scene-nav {
  opacity: 0;
  transition: opacity 800ms ease;
}

html[data-motion='on'][data-ready='true'] .leaf-field,
html[data-motion='on'][data-ready='true'] .wind-field,
html[data-motion='on'][data-ready='true'] .daylight,
html[data-motion='on'][data-ready='true'] .masthead,
html[data-motion='on'][data-ready='true'] .scenes,
html[data-motion='on'][data-ready='true'] .scene-nav {
  opacity: 1;
}

html[data-motion='on'] [data-motion-only] {
  display: block;
}

html[data-motion='on'] [data-static-only] {
  display: none;
}

html[data-motion='on'] .scenes {
  position: fixed;
  inset: 0;
  max-width: none;
  padding: 0;
}

html[data-motion='on'] .scenes__hint {
  position: fixed;
  top: clamp(24px, 3.5vw, 44px);
  right: clamp(20px, 4vw, 52px);
  width: min(240px, 34vw);
  margin: 0;
  text-align: right;
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0.08em;
  color: rgba(217, 205, 187, 0.5);
  text-shadow: 0 1px 10px rgba(6, 5, 4, 0.95), 0 0 24px rgba(6, 5, 4, 0.85);
  pointer-events: none;
}

html[data-motion='on'] .scene {
  position: absolute;
  inset: 0;
  margin: 0;
}

html[data-motion='on'] .scene[data-active='false'] {
  visibility: hidden;
}

html[data-motion='on'] .scene-nav__link {
  text-shadow: 0 1px 8px rgba(6, 5, 4, 0.95);
}

html[data-motion='on'] .scene__title {
  position: absolute;
  top: clamp(24px, 3.6vh, 46px);
  left: 50%;
  transform: translateX(-50%);
  isolation: isolate;
  margin: 0;
  padding: 0 26px;
  font-family: var(--serif);
  font-size: clamp(24px, 3.2vw, 42px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.05em;
  color: #f3e7d3;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
}

html[data-motion='on'] .scene__title::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: -1;
  width: 210%;
  height: 340%;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    ellipse at center,
    rgba(9, 7, 5, 0.88) 0%,
    rgba(9, 7, 5, 0.6) 42%,
    rgba(9, 7, 5, 0) 72%
  );
}

html[data-motion='on'] .scene__title::after {
  content: '';
  display: block;
  width: 58px;
  height: 1px;
  margin: 14px auto 0;
  background: linear-gradient(90deg, rgba(163, 71, 31, 0), var(--rust) 50%, rgba(163, 71, 31, 0));
}

html[data-motion='on'] .scene__papers {
  display: block;
  position: absolute;
  inset: 0;
  gap: 0;
}

html[data-motion='on'] .paper {
  position: absolute;
  top: 0;
  left: 0;
  width: calc(var(--slot-width) * 1px);
  max-width: 82vw;
  cursor: pointer;
  will-change: transform;
}

/* A slab of fallen bark lying in the hollow the wind scoured out. Three sets of
   near-vertical ridges at slightly different angles and periods, over a fibrous
   noise stretched along the grain. */
html[data-motion='on'] .sheet {
  height: auto;
  min-height: 0;
  padding: 20px 22px 22px;
  text-align: center;
  background-color: var(--bark-deep);
  background-image:
    linear-gradient(
      180deg,
      rgba(9, 6, 3, 0.62) 0%,
      rgba(9, 6, 3, 0.42) 46%,
      rgba(9, 6, 3, 0) 78%
    ),
    linear-gradient(
      rgba(var(--sky-light), calc(var(--sky-light-alpha) * 0.85)),
      rgba(var(--sky-light), calc(var(--sky-light-alpha) * 0.25))
    ),
    var(--bark-grain),
    repeating-linear-gradient(91deg, rgba(10, 6, 3, 0.5) 0 1px, rgba(10, 6, 3, 0) 1px 6px),
    repeating-linear-gradient(88.4deg, rgba(126, 92, 58, 0.22) 0 2px, rgba(126, 92, 58, 0) 2px 13px),
    repeating-linear-gradient(90.8deg, rgba(8, 5, 3, 0.42) 0 3px, rgba(8, 5, 3, 0) 3px 19px),
    linear-gradient(163deg, var(--bark-lit) 0%, var(--bark-face) 38%, var(--bark-deep) 100%);
  background-blend-mode: normal, overlay, soft-light, normal, normal, normal, normal;
  border-radius: 5px 12px 6px 13px / 11px 5px 14px 6px;
  box-shadow:
    0 22px 44px rgba(0, 0, 0, 0.72),
    0 6px 14px rgba(0, 0, 0, 0.6),
    0 1px 0 rgba(163, 121, 76, 0.3) inset,
    0 -2px 0 rgba(0, 0, 0, 0.55) inset;
  transition: box-shadow 260ms ease, filter 260ms ease;
}

html[data-motion='on'] .paper:hover .sheet {
  filter: brightness(1.09);
  box-shadow:
    0 30px 58px rgba(0, 0, 0, 0.78),
    0 8px 18px rgba(0, 0, 0, 0.62),
    0 1px 0 rgba(196, 148, 94, 0.4) inset,
    0 -2px 0 rgba(0, 0, 0, 0.55) inset;
}

html[data-motion='on'] .sheet__lines {
  display: none;
}

html[data-motion='on'] .sheet__eyebrow {
  font-size: 10px;
  letter-spacing: 0.28em;
  color: #eab65c;
  text-shadow: 0 1px 2px rgba(4, 3, 1, 1);
}

html[data-motion='on'] .sheet__eyebrow::after {
  width: 30px;
  margin: 9px auto 0;
  background: linear-gradient(90deg, rgba(224, 169, 80, 0), #e0a950 50%, rgba(224, 169, 80, 0));
}

html[data-motion='on'] .sheet__name {
  margin-top: 12px;
  font-size: clamp(19px, 2.1vw, 26px);
  line-height: 1.2;
  color: #f6ecda;
  text-shadow: 0 1px 3px rgba(6, 4, 2, 0.8);
  transition: color 220ms ease;
}

html[data-motion='on'] .paper:hover .sheet__name {
  color: #fff6e6;
}

html[data-motion='on'] .sheet__note {
  display: block;
  margin-top: 10px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 13.5px;
  line-height: 1.45;
  color: #ecdcbc;
  text-shadow: 0 1px 2px rgba(4, 3, 1, 1), 0 2px 8px rgba(4, 3, 1, 0.9);
}

html[data-motion='on'] .sheet__body {
  display: none;
}

html[data-motion='on'] .sheet__cue {
  display: block;
  margin-top: 14px;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #cdb489;
  text-shadow: 0 1px 2px rgba(4, 3, 1, 1);
  transition: color 200ms ease;
}

html[data-motion='on'] .sheet__cue::after {
  content: '→';
  display: inline-block;
  margin-left: 6px;
  transition: transform 220ms ease;
}

html[data-motion='on'] .paper:hover .sheet__cue {
  color: var(--ochre);
}

html[data-motion='on'] .paper:hover .sheet__cue::after {
  transform: translateX(4px);
}

html[data-motion='on'] .paper.is-open {
  z-index: 60;
  width: min(660px, 88vw);
  max-width: min(660px, 88vw);
  cursor: default;
  transition: transform 460ms cubic-bezier(0.22, 0.9, 0.24, 1), width 460ms cubic-bezier(0.22, 0.9, 0.24, 1);
}

html[data-motion='on'] .paper.is-returning {
  z-index: 59;
  transition: transform 460ms cubic-bezier(0.22, 0.9, 0.24, 1), width 460ms cubic-bezier(0.22, 0.9, 0.24, 1);
}

html[data-motion='on'] .paper.is-open .sheet {
  background-image:
    linear-gradient(180deg, rgba(9, 6, 3, 0.5) 0%, rgba(9, 6, 3, 0.44) 100%),
    linear-gradient(
      rgba(var(--sky-light), calc(var(--sky-light-alpha) * 0.85)),
      rgba(var(--sky-light), calc(var(--sky-light-alpha) * 0.25))
    ),
    var(--bark-grain),
    repeating-linear-gradient(91deg, rgba(10, 6, 3, 0.5) 0 1px, rgba(10, 6, 3, 0) 1px 6px),
    repeating-linear-gradient(88.4deg, rgba(126, 92, 58, 0.22) 0 2px, rgba(126, 92, 58, 0) 2px 13px),
    repeating-linear-gradient(90.8deg, rgba(8, 5, 3, 0.42) 0 3px, rgba(8, 5, 3, 0) 3px 19px),
    linear-gradient(163deg, var(--bark-lit) 0%, var(--bark-face) 38%, var(--bark-deep) 100%);
  max-height: 84vh;
  overflow-y: auto;
  padding: clamp(26px, 4vw, 42px);
  text-align: left;
}

html[data-motion='on'] .paper.is-open .sheet__eyebrow::after {
  margin-left: 0;
  width: 40px;
  background: linear-gradient(90deg, var(--rust), rgba(163, 71, 31, 0));
}

html[data-motion='on'] .paper.is-open .sheet__name {
  font-size: clamp(23px, 2.6vw, 31px);
}

html[data-motion='on'] .paper.is-open .sheet__note {
  display: none;
}

html[data-motion='on'] .paper.is-open .sheet__cue {
  display: none;
}

html[data-motion='on'] .paper.is-open .sheet__body {
  display: block;
  margin-top: 22px;
  animation: sheet-reveal 520ms ease both;
}

/* Read straight off the ground: warm ink on soil, not dark ink on paper. */
html[data-motion='on'] .paper.is-open .sheet__lead {
  color: #f2e6d1;
}

html[data-motion='on'] .paper.is-open .sheet__prose,
html[data-motion='on'] .paper.is-open .contact__value,
html[data-motion='on'] .paper.is-open .sheet__entryTitle {
  color: #e6d8c0;
}

html[data-motion='on'] .paper.is-open .sheet__row dd {
  color: #e2d3ba;
}

html[data-motion='on'] .paper.is-open .sheet__row dt,
html[data-motion='on'] .paper.is-open .sheet__subheading,
html[data-motion='on'] .paper.is-open .contact__label,
html[data-motion='on'] .paper.is-open .sheet__entryMeta {
  color: rgba(199, 176, 140, 0.72);
}

html[data-motion='on'] .paper.is-open .sheet__row,
html[data-motion='on'] .paper.is-open .contact__row,
html[data-motion='on'] .paper.is-open .sheet__entry {
  border-top-color: rgba(226, 205, 173, 0.18);
}

html[data-motion='on'] .paper.is-open .sheet__link,
html[data-motion='on'] .paper.is-open .contact__link {
  color: var(--ochre);
  text-decoration-color: rgba(213, 155, 60, 0.45);
}

html[data-motion='on'] .paper.is-open .sheet__link:hover,
html[data-motion='on'] .paper.is-open .contact__link:hover {
  color: #f0c877;
  text-decoration-color: #f0c877;
}

html[data-motion='on'] .paper.is-open .sheet__close {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  padding: 11px 20px;
  border: 1px solid rgba(213, 155, 60, 0.32);
  border-radius: 2px 5px 3px 6px / 5px 3px 6px 2px;
  background: rgba(213, 155, 60, 0.06);
  color: var(--ochre);
  font: 600 11px/1 var(--sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease;
}

html[data-motion='on'] .paper.is-open .sheet__close::before {
  content: '←';
  font-size: 13px;
  letter-spacing: 0;
}

html[data-motion='on'] .paper.is-open .sheet__close:hover,
html[data-motion='on'] .paper.is-open .sheet__close:focus-visible {
  background: rgba(213, 155, 60, 0.14);
  border-color: var(--ochre);
  color: #f2d191;
}

@keyframes sheet-reveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

html[data-motion='on'] .scene-nav {
  opacity: 0;
  transition: opacity 800ms ease;
}

html[data-motion='on'][data-ready='true'] .leaf-field,
html[data-motion='on'][data-ready='true'] .wind-field,
html[data-motion='on'][data-ready='true'] .daylight,
html[data-motion='on'][data-ready='true'] .masthead,
html[data-motion='on'][data-ready='true'] .scenes,
html[data-motion='on'][data-ready='true'] .scene-nav {
  opacity: 1;
}

html[data-motion='on'] [data-motion-only] {
  display: block;
}

html[data-motion='on'] [data-static-only] {
  display: none;
}

/* Behind the sheets, not over them. The plaque is part of the ground, so a slab
   blowing past lies across it rather than vanishing underneath. */
html[data-motion='on'] .masthead {
  position: fixed;
  top: clamp(16px, 2.4vw, 30px);
  left: clamp(16px, 2.4vw, 30px);
  z-index: 2;
  margin: 0;
  pointer-events: none;
}

html[data-motion='on'] .scenes {
  position: fixed;
  inset: 0;
  max-width: none;
  padding: 0;
}

html[data-motion='on'] .scenes__hint {
  position: fixed;
  top: clamp(24px, 3.5vw, 44px);
  right: clamp(20px, 4vw, 52px);
  width: min(240px, 34vw);
  margin: 0;
  text-align: right;
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0.08em;
  color: rgba(217, 205, 187, 0.5);
  text-shadow: 0 1px 10px rgba(6, 5, 4, 0.95), 0 0 24px rgba(6, 5, 4, 0.85);
  pointer-events: none;
}

html[data-motion='on'] .scene {
  position: absolute;
  inset: 0;
  margin: 0;
}

html[data-motion='on'] .scene[data-active='false'] {
  visibility: hidden;
}

html[data-motion='on'] .scene-nav__link {
  text-shadow: 0 1px 8px rgba(6, 5, 4, 0.95);
}

html[data-motion='on'] .scene__title {
  position: absolute;
  top: clamp(24px, 3.6vh, 46px);
  left: 50%;
  transform: translateX(-50%);
  isolation: isolate;
  margin: 0;
  padding: 0 26px;
  font-family: var(--serif);
  font-size: clamp(24px, 3.2vw, 42px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.05em;
  color: #f3e7d3;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
}

html[data-motion='on'] .scene__title::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: -1;
  width: 210%;
  height: 340%;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    ellipse at center,
    rgba(9, 7, 5, 0.88) 0%,
    rgba(9, 7, 5, 0.6) 42%,
    rgba(9, 7, 5, 0) 72%
  );
}

html[data-motion='on'] .scene__title::after {
  content: '';
  display: block;
  width: 58px;
  height: 1px;
  margin: 14px auto 0;
  background: linear-gradient(90deg, rgba(163, 71, 31, 0), var(--rust) 50%, rgba(163, 71, 31, 0));
}

html[data-motion='on'] .scene__papers {
  display: block;
  position: absolute;
  inset: 0;
  gap: 0;
}

html[data-motion='on'] .paper {
  position: absolute;
  top: 0;
  left: 0;
  width: calc(var(--slot-width) * 1px);
  max-width: 82vw;
  cursor: pointer;
  will-change: transform;
}

html[data-motion='on'] .sheet {
  height: auto;
  min-height: calc(var(--slot-width) * 1.28px);
  padding: 20px 20px 22px;
  box-shadow:
    0 26px 52px rgba(0, 0, 0, 0.72),
    0 6px 14px rgba(0, 0, 0, 0.5),
    0 1px 0 rgba(255, 255, 255, 0.5) inset,
    0 -1px 0 var(--paper-crease) inset;
  transition: box-shadow 260ms ease, filter 260ms ease;
}

html[data-motion='on'] .paper:hover .sheet {
  filter: brightness(1.035);
  box-shadow:
    0 34px 64px rgba(0, 0, 0, 0.78),
    0 8px 18px rgba(0, 0, 0, 0.55),
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 -1px 0 var(--paper-crease) inset;
}

html[data-motion='on'] .sheet__lines {
  display: block;
  margin-top: 18px;
  height: 58px;
  background-image:
    linear-gradient(rgba(58, 46, 34, 0.15), rgba(58, 46, 34, 0.15)),
    linear-gradient(rgba(58, 46, 34, 0.13), rgba(58, 46, 34, 0.13)),
    linear-gradient(rgba(58, 46, 34, 0.1), rgba(58, 46, 34, 0.1)),
    linear-gradient(rgba(58, 46, 34, 0.075), rgba(58, 46, 34, 0.075));
  background-size: 94% 2px, 100% 2px, 82% 2px, 56% 2px;
  background-position: 0 0, 0 15px, 0 30px, 0 45px;
  background-repeat: no-repeat;
}

html[data-motion='on'] .paper.is-open .sheet__lines {
  display: none;
}

html[data-motion='on'] .sheet__body {
  display: none;
}

html[data-motion='on'] .sheet__note {
  display: block;
  margin-top: 10px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink-soft);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

html[data-motion='on'] .paper.is-open .sheet__note {
  display: none;
}

html[data-motion='on'] .sheet__cue {
  position: absolute;
  left: 20px;
  bottom: 18px;
  display: block;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  transition: color 200ms ease;
}

html[data-motion='on'] .sheet__cue::after {
  content: '→';
  display: inline-block;
  margin-left: 4px;
  transition: transform 220ms ease;
}

html[data-motion='on'] .paper:hover .sheet__cue {
  color: var(--rust);
}

html[data-motion='on'] .paper:hover .sheet__cue::after {
  transform: translateX(4px);
}

html[data-motion='on'] .scene-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  padding: 64px clamp(12px, 4vw, 40px) 22px;
  max-width: none;
  background: linear-gradient(to top, rgba(6, 5, 4, 0.94) 22%, rgba(6, 5, 4, 0));
}

html[data-motion='on'] .scene-nav__list {
  justify-content: center;
  border: 0;
  padding: 0;
}

@media (max-width: 768px) {
  html[data-motion='on'] .scene__title {
    font-size: clamp(20px, 6vw, 28px);
    top: clamp(122px, 17vh, 168px);
    letter-spacing: 0.04em;
    white-space: normal;
    max-width: 78vw;
  }

  html[data-motion='on'] .paper {
    width: 44vw;
    max-width: 44vw;
  }

  html[data-motion='on'] .sheet__name {
    font-size: 15px;
  }

  html[data-motion='on'] .sheet__eyebrow {
    font-size: 9px;
  }

  html[data-motion='on'] .paper.is-open .sheet__name {
    font-size: 22px;
  }

  html[data-motion='on'] .paper.is-open .sheet__eyebrow {
    font-size: 11px;
  }

  html[data-motion='on'] .scenes__hint {
    display: none;
  }

  html[data-motion='on'] .scene-nav__list {
    gap: 8px 16px;
  }

  html[data-motion='on'] .scene-nav__link {
    font-size: 11px;
  }
}


