:root {
  --site-font: 'Montserrat', Arial, sans-serif;
  --section-title-size: clamp(24px, 3vw, 36px);
  --section-gap: clamp(104px, 12vw, 160px);
  --red: #8d1d30;
  --dark-red: #47101c;
  --burgundy: #32101c;
  --cream: #fff2df;
  --gold: #f5d899;
  --muted: #f0cbbf;
  --gold-rule: #e9bd72;
  --quiet-rule: rgb(240 198 124 / 44%);
  --frame-inset: clamp(5px, 1.15vw, 13px);
  --arch-depth: clamp(12px, 1.6vw, 18px);
  --arch-step: clamp(32px, 4.3vw, 48px);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  background: var(--red) linear-gradient(180deg,
    var(--red) 0%, #8b1d30 17%, #821c30 39%, #73192d 61%, #5d1629 82%, #461223 100%);
  color: var(--cream);
  font: 400 16px/1.6 var(--site-font);
}

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

button, input, textarea { font: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

button { cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 5px;
}

[hidden] { display: none !important; }

.entry-cover {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding-inline: 16px;
  background: #720e26;
  --entry-seal-size: min(68vw, 23rem, 51vh);
  --entry-seal-size: min(68vw, 23rem, 51svh);
  --entry-light-x: 48%;
  --entry-light-y: 36%;
}

.entry-primer,
.entry-curtain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.entry-primer {
  --entry-primer-sway: clamp(10px, 3.2vw, 18px);
  inset: -20px;
  width: calc(100% + 40px);
  height: calc(100% + 40px);
  animation: entry-primer-breeze 3.4s ease-in-out infinite;
  will-change: transform;
}

@keyframes entry-primer-breeze {
  0%, 100% { transform: translate3d(0, 0, 0); }
  20% { transform: translate3d(var(--entry-primer-sway), 1.5px, 0); }
  65% { transform: translate3d(calc(var(--entry-primer-sway) * -.65), -1px, 0); }
}

.entry-cover.is-suspended .entry-primer { animation-play-state: paused; }
.entry-cover.has-curtain .entry-primer { animation: none; will-change: auto; }

.entry-primer-frame {
  x: calc(50% - var(--entry-seal-size) / 2);
  y: calc(50% - var(--entry-seal-size) / 2);
  width: var(--entry-seal-size);
  height: var(--entry-seal-size);
}

.entry-primer-logo {
  x: calc(50% - var(--entry-seal-size) * .25);
  y: calc(50% - var(--entry-seal-size) * .3177746553);
  width: calc(var(--entry-seal-size) * .5);
  height: calc(var(--entry-seal-size) * .6355493106);
}

.entry-frame,
.entry-seal > .entry-emblem,
.entry-curtain {
  opacity: 0;
}

.entry-cover.has-curtain .entry-curtain { opacity: 1; }
.entry-cover.has-curtain .entry-primer,
.entry-cover.is-opening .entry-primer-gold { visibility: hidden; }
.entry-cover.has-curtain .entry-frame,
.entry-cover.has-curtain .entry-seal > .entry-emblem { opacity: 0; }
.entry-cover.has-curtain .entry-cue {
  text-shadow: 0 1px 5px #350914, 0 0 15px #350914;
}

.entry-active,
.entry-active body {
  overflow: hidden;
  overscroll-behavior: none;
  scroll-behavior: auto;
}

.entry-active .entry-cover {
  position: fixed;
  inset: 0;
  z-index: 10;
  touch-action: none;
  touch-action: pinch-zoom;
  user-select: none;
  transition: opacity .86s cubic-bezier(.5, .04, .24, 1);
}

.entry-seal {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--entry-seal-size);
  aspect-ratio: 1;
  transition: transform .77s cubic-bezier(.36, .12, .26, 1), filter .7s ease, opacity .7s ease;
}

.entry-cover.is-opening { background: transparent; }
.entry-cover.is-opening:not(.has-curtain) { opacity: 0; }

.entry-cover.is-opening .entry-seal {
  opacity: 0;
  transform: none;
  filter: none;
  transition: opacity .18s ease;
}

.entry-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  filter: drop-shadow(0 .5px 0 rgb(91 45 19 / 65%));
  transition: opacity .5s ease;
}

.entry-frame-fallback,
.frame-ornament {
  display: block;
  width: 100%;
  height: 100%;
}

.motion-paused { animation-play-state: paused !important; }

.ornament-sheen { mix-blend-mode: screen; }

.frame-ornament {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.frame.has-continuous-frame { border-color: transparent; }
.frame.has-continuous-frame::before,
.has-continuous-frame > .entry-frame-fallback,
.has-continuous-frame > .frame-edge { display: none; }

.entry-emblem {
  position: relative;
  display: block;
  width: 50%;
}

.entry-seal > .entry-emblem { transition: opacity .5s ease; }

.entry-emblem img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 1px 0 rgb(86 39 19 / 78%)) drop-shadow(0 6px 15px rgb(61 10 23 / 30%));
  transition: filter .45s ease-out;
}

.entry-cover.is-touchlit .entry-emblem img,
.entry-flight.is-touchlit img {
  filter: drop-shadow(0 1px 0 rgb(86 39 19 / 78%)) drop-shadow(0 0 14px rgb(248 187 84 / 37%));
  transition-duration: .1s;
}

@supports (mask-image: none) or (-webkit-mask-image: none) {
  .entry-emblem::before,
  .entry-emblem::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    -webkit-mask: url('assets/dr-paris-or.314422d321.svg') center / 100% 100% no-repeat;
    mask: url('assets/dr-paris-or.314422d321.svg') center / 100% 100% no-repeat;
  }

  .entry-emblem::after {
    background:
      radial-gradient(ellipse 60% 52% at var(--entry-light-x) var(--entry-light-y),
        rgb(255 249 215 / 96%) 0%, rgb(255 222 154 / 63%) 27%, transparent 73%),
      linear-gradient(121deg, transparent 35%, rgb(255 213 137 / 25%) 47%,
        rgb(255 244 194 / 66%) 53%, transparent 68%)
        calc(100% - var(--entry-light-x)) center / 215% 100% no-repeat;
  }

  .entry-emblem::before {
    z-index: 1;
    background: radial-gradient(ellipse 110% 85% at var(--entry-light-x) var(--entry-light-y),
      rgb(255 252 223 / 93%), rgb(255 222 147 / 48%) 46%, transparent 84%);
    opacity: 0;
    transition: opacity .48s ease-out;
  }

  .entry-cover.is-touchlit .entry-emblem::before,
  .entry-flight.is-touchlit::before {
    opacity: .82;
    transition-duration: .1s;
  }
}

.entry-cover.has-emblem-flight .entry-seal > .entry-emblem,
.folio.receiving-emblem .brand { visibility: hidden; }

.folio.receiving-emblem.settling-emblem .brand { visibility: visible; }

.entry-emblem.entry-flight {
  position: fixed;
  z-index: 11;
  pointer-events: none;
  transform-origin: 0 0;
  animation: entry-emblem-travel 2.15s both;
}

.entry-emblem.entry-flight.is-settling {
  animation: entry-emblem-settle .95s ease-in-out both;
}

.entry-flight::after,
.entry-flight.is-touchlit::before { animation: entry-foil-travel 2.15s ease-out both; }

.entry-flight.is-settling::after,
.entry-flight.is-settling.is-touchlit::before { animation: entry-foil-settle .95s ease-in-out both; }

@keyframes entry-emblem-travel {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: .62;
    filter: blur(1.1px);
    animation-timing-function: ease-out;
  }
  20% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
    filter: blur(0);
    animation-timing-function: cubic-bezier(.4, .04, .25, 1);
  }
  100% { transform: translate3d(var(--flight-x), var(--flight-y), 0) scale(var(--flight-scale)); opacity: 1; filter: blur(0); }
}

@keyframes entry-emblem-settle {
  0%, 100% {
    transform: translate3d(var(--flight-x), var(--flight-y), 0) scale(var(--flight-scale));
    filter: blur(0);
  }
  0% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes entry-foil-travel {
  0%, 69% { opacity: 1; }
  100% { opacity: .68; }
}

@keyframes entry-foil-settle {
  0% { opacity: .68; }
  55% { opacity: .3; }
  100% { opacity: 0; }
}

.entry-cue {
  position: absolute;
  top: calc(100% + clamp(17px, 3.5vh, 38px));
  left: 50%;
  translate: -50% 0;
  display: grid;
  justify-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 10px 12px;
  color: var(--gold);
  font-size: clamp(10px, 2.8vw, 12px);
  font-weight: 500;
  letter-spacing: .19em;
  text-transform: uppercase;
  white-space: nowrap;
  animation: entry-cue-in .75s ease-out .45s both;
}

.entry-cue::after {
  content: '';
  width: 6px;
  height: 6px;
  border: solid currentColor;
  border-width: 0 1px 1px 0;
  transform: rotate(45deg);
}

.entry-cue:hover { color: var(--cream); }
.entry-cue:focus-visible { animation: none; }

@keyframes entry-cue-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-height: 460px) {
  .entry-cue { top: calc(100% + 12px); }
}

.folio {
  position: relative;
  isolation: isolate;
  width: min(100%, 1200px);
  margin: 24px auto;
  padding: clamp(64px, 7.5vw, 100px) clamp(44px, 8.4vw, 112px) clamp(64px, 8vw, 108px);
  background:
    radial-gradient(ellipse at 50% 0, rgb(194 67 86 / 15%), transparent 38%),
    linear-gradient(90deg, rgb(53 11 26 / 12%), transparent 24% 76%, rgb(53 11 26 / 12%));
  box-shadow: 0 10px 60px #2a0812a6;
}

.frame {
  position: absolute;
  z-index: 2;
  inset: var(--frame-inset);
  border: 1px solid var(--gold-rule);
  pointer-events: none;
}

.frame::before {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1px solid var(--quiet-rule);
}

.frame-edge {
  position: absolute;
  display: block;
  background: var(--arch-shape) center / var(--arch-size) var(--arch-repeat);
  filter: drop-shadow(0 .55px 0 rgb(102 48 17 / 65%));
}

.frame-top, .frame-bottom {
  inset-inline: 5px;
  height: var(--arch-depth);
  --arch-shape: url('assets/folio-arch-horizontal.2430e427a9.svg');
  --arch-size: var(--arch-step) 100%;
  --arch-repeat: round no-repeat;
}

.frame-top { top: 6px; }
.frame-bottom { bottom: 6px; transform: scaleY(-1); }

.frame-left, .frame-right {
  inset-block: calc(var(--arch-depth) + 7px);
  width: var(--arch-depth);
  --arch-shape: url('assets/folio-arch-vertical.dec966d29c.svg');
  --arch-size: 100% var(--arch-step);
  --arch-repeat: no-repeat round;
}

.frame-left { left: 6px; transform: scaleX(-1); }
.frame-right { right: 6px; }

@supports (mask-image: none) or (-webkit-mask-image: none) {
  .frame-edge::after {
    content: '';
    position: absolute;
    inset: 0;
    -webkit-mask: var(--arch-shape) center / var(--arch-size) var(--arch-repeat);
    mask: var(--arch-shape) center / var(--arch-size) var(--arch-repeat);
  }

  .frame-top::after, .frame-bottom::after {
    background: linear-gradient(113deg,
      transparent 35%,
      rgb(126 67 23 / 45%) 43%,
      rgb(255 217 139 / 63%) 50%,
      #fff4c9 54%,
      rgb(255 224 151 / 62%) 59%,
      transparent 68%
    ) var(--gold-reflection, 90%) center / 245% 100% no-repeat;
  }

  .frame-left::after, .frame-right::after {
    background: linear-gradient(180deg,
      transparent 8%,
      rgb(128 68 24 / 39%) 29%,
      rgb(250 200 115 / 66%) 45%,
      #fff5ce 53%,
      rgb(255 223 154 / 68%) 61%,
      transparent 85%
    ) center var(--frame-travel, 0px) / 100% 360px repeat-y;
  }

  .frame-right::after { background-position-y: calc(var(--frame-travel, 0px) - 115px); }
}

.small {
  color: var(--gold);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  line-height: 1.55;
  text-transform: uppercase;
}

.masthead { text-align: center; }
.masthead h1[tabindex="-1"]:focus { outline: none; }

.brand {
  position: relative;
  display: inline-block;
  vertical-align: top;
}

.brand img {
  display: block;
  width: clamp(120px, 16vw, 170px);
  height: auto;
  filter:
    drop-shadow(0 -.5px 0 rgb(255 238 182 / 54%))
    drop-shadow(0 1px 0 rgb(113 62 20 / 88%))
    drop-shadow(0 4px 5px rgb(50 9 18 / 38%));
}

@supports (mask-image: none) or (-webkit-mask-image: none) {
  .brand::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(113deg,
      transparent 36%,
      rgb(128 68 24 / 27%) 44%,
      rgb(238 158 67 / 32%) 48%,
      rgb(255 228 157 / 68%) 52%,
      rgb(255 245 201 / 90%) 54%,
      rgb(255 209 125 / 49%) 58%,
      transparent 67%
    ) var(--gold-reflection, 90%) center / 245% 100% no-repeat;
    -webkit-mask: url('assets/dr-paris-or.314422d321.svg') center / 100% 100% no-repeat;
    mask: url('assets/dr-paris-or.314422d321.svg') center / 100% 100% no-repeat;
    /* End in the space between the monogram and PARIS. */
    clip-path: inset(0 0 14%);
  }
}

h1, h2, h3, p { margin-top: 0; }

h1, h2 {
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.055em;
}

h1 {
  margin: 36px 0 34px;
  font-size: clamp(43px, 8vw, 92px);
}

h1 em, h2 em {
  color: var(--gold);
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(34px, 5.2vw, 66px);
}

h3 {
  margin-bottom: 6px;
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 500;
  line-height: 1.25;
}

.materials {
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
  text-align: center;
}

.material-counts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  border-block: 1px solid var(--quiet-rule);
}

.material-counts > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  padding: 14px 6px 16px;
}

.material-counts > div + div { border-left: 1px solid var(--quiet-rule); }

.material-counts dt {
  order: 1;
  margin-top: 3px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.material-counts dd {
  margin: 0;
  font: 400 clamp(42px, 7.2vw, 66px)/1 Georgia, 'Times New Roman', serif;
  font-variant-numeric: lining-nums;
  letter-spacing: -.055em;
  white-space: nowrap;
}

.lede {
  max-width: 52ch;
  color: var(--cream);
  font-size: clamp(14px, 1.8vw, 17px);
  line-height: 1.7;
  margin-bottom: 23px;
}

.film, .filmDialog {
  --film-star-mask: url('assets/film-star-rounded.00ba9f3551.svg');
}

.film { display: block; width: 100%; margin: 12px 0 0; padding: 0; border: 0; background: transparent; color: var(--cream); text-align: center; }
.film-stage { position: relative; isolation: isolate; display: block; left: 50%; width: min(620px, calc(100% + 40px)); aspect-ratio: 1; transform: translateX(-50%); pointer-events: none; }
.film-stage::before { content: ''; position: absolute; inset: 8%; z-index: -1; border-radius: 50%; background: radial-gradient(ellipse, rgb(238 193 110 / 9%), transparent 69%); }
.film-star-window { position: absolute; inset: 0; display: block; overflow: hidden; -webkit-mask: var(--film-star-mask) center / 100% 100% no-repeat; mask: var(--film-star-mask) center / 100% 100% no-repeat; background: #544c41; }
.film-star-window > img, .film-star-window > video, .film-star-window > canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
#filmMeshCanvas { opacity: 0; }
#filmMeshCanvas.is-ready { opacity: 1; }
.film-stage.is-animating .filmPoster { animation: film-poster-drift 4s ease-in-out infinite alternate; }
.film-star-window:has(#filmMeshCanvas.is-ready) .filmPoster { animation-play-state: paused; }
@keyframes film-poster-drift {
  from { transform: scale(1.025) translateX(-.7%); }
  to { transform: scale(1.055) translateX(.7%); }
}
.film #filmBackground { opacity: 0; transition: opacity .65s ease; }
.film #filmBackground.is-playing { opacity: 1; }
.film-star-edge { position: absolute; inset: 0; display: block; width: 100%; height: 100%; pointer-events: none; filter: drop-shadow(0 2px 9px rgb(235 189 108 / 16%)); }
.film-rays { filter: drop-shadow(0 1px 4px rgb(239 195 107 / 30%)); }
.film-foil-catch { filter: drop-shadow(0 0 3px rgb(255 235 180 / 55%)); }
.film:focus-visible { outline: 0; }
.film:focus-visible .film-star-edge { filter: drop-shadow(0 0 7px var(--gold)); }
.film:disabled { cursor: default; }
.filmCaption { position: relative; display: block; margin-top: clamp(-42px, -6vw, -18px); padding-inline: 8px; text-align: center; }
.film-action { display: inline-block; margin-top: 20px; color: var(--gold); font-size: 11px; font-weight: 500; line-height: 1.8; letter-spacing: .1em; text-transform: uppercase; animation: film-invitation 2.8s ease-in-out infinite; }
@keyframes film-invitation {
  0%, 15%, 100% { opacity: 0; text-shadow: 0 0 0 transparent; }
  45%, 70% { opacity: 1; text-shadow: 0 0 12px rgb(245 216 153 / 55%); }
}

.workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
  gap: clamp(25px, 5.4vw, 66px);
  align-items: center;
  margin-top: clamp(25px, 4.2vw, 52px);
}

.process-sketch {
  margin: 0;
  padding: 8px 8px 9px;
  border: 1px solid var(--quiet-rule);
}

.sketch-art {
  position: relative;
  background: var(--burgundy);
}

.sketch-effects { position: absolute; }

.sketch-drawing {
  display: block;
  width: 100%;
  height: auto;
  clip-path: url('#sketch-cutout');
}

.sketch-logo {
  position: absolute;
  top: 3.5%;
  left: 51.9%;
  display: block;
  width: 14.5%;
  height: auto;
  transform: translateX(-50%);
}

.sketch-view-guides {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.sketch-view {
  position: absolute;
  top: 25.069%;
  display: block;
  height: 29.835%;
  object-fit: cover;
}

.sketch-view-face { left: 45.488%; width: 23.204%; }
.sketch-view-side { left: 79.318%; width: 11.381%; }

.process-sketch figcaption {
  padding: 8px 2px 0;
  text-align: center;
}

.assembly { margin: 0; padding: 0; list-style: none; }

.assembly li {
  display: block;
  padding: 17px 0;
  border-bottom: 1px solid var(--quiet-rule);
}

.assembly li:first-child { border-top: 1px solid var(--quiet-rule); }

.assembly h3 { font-size: clamp(15px, 1.8vw, 19px); text-transform: uppercase; }

.assembly p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.pieceText {
  margin-top: clamp(23px, 4vw, 43px);
  text-align: center;
}

.pieceText .lede {
  margin-inline: auto;
  margin-bottom: 0;
  font-size: clamp(13px, 1.8vw, 15px);
}

.pieceText .lede > span { display: block; white-space: nowrap; }

.object {
  position: relative;
  width: 100%;
  max-width: 780px;
  margin-inline: auto;
  text-align: center;
}

.model-stage {
  touch-action: pan-y;
  user-select: none;
  position: relative;
  overflow: hidden;
  height: clamp(320px, 60vh, 540px);
  height: clamp(320px, 60svh, 540px);
}

.model-stage > * {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.model-stage > img, .model-stage > canvas { object-fit: contain; transform: scale(var(--model-zoom, 1)); }
.model-stage > img { pointer-events: none; }
.model-stage.has-turntable, .model-stage.is-interactive { cursor: grab; }
.model-stage.is-touching { cursor: grabbing; }
.model-stage.is-interactive { touch-action: none; }
.model-stage canvas:focus-visible { outline-offset: -5px; }

model-viewer {
  background: transparent;
  opacity: 0;
  pointer-events: none;
  --poster-color: transparent;
  --progress-bar-height: 0px;
}

.model-stage.is-interactive model-viewer {
  opacity: 1;
  pointer-events: auto;
}

.quiet {
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: inherit;
  padding: 8px 0;
  font-size: 14px;
}

.quiet.model-retry {
  color: var(--gold);
  margin-top: .5rem;
}

.letter {
  position: relative;
  isolation: isolate;
  display: grid;
  justify-items: center;
  padding: clamp(188px, 28vw, 352px) 0 clamp(44px, 6vw, 72px);
  text-align: center;
}

.envelope-scene {
  --envelope-photo: url('assets/envelope-photo-v1.86ee0849a2.webp');
  --envelope-height: clamp(146px, 35vw, 250px);
  --flap-height: calc(var(--envelope-height) * .6);
  --note-rise: clamp(282px, 41vw, 330px);
  /* The paper extends beyond the pocket's V, so its bottom edge stays inside. */
  --card-height: calc(var(--note-rise) + var(--envelope-height) * .62);
  --letter-padding: clamp(24px, 2.8vw, 32px);
  --paper-clearance: 16px;
  --paper-curl: clamp(16px, 4.5vw, 26px);
  --dedication-size: clamp(48px, 5.4vw, 64px);
  position: relative;
  width: min(100%, 500px);
  height: calc(var(--envelope-height) + 52px);
  perspective: 1400px;
  overflow-anchor: none;
  transition: height 1s cubic-bezier(.22, .68, .2, 1);
}

.envelope-scene.is-open { height: calc(var(--envelope-height) + var(--note-rise) + 52px); transition-delay: .32s; }
.envelope-shell { position: absolute; inset: auto 0 52px; height: var(--envelope-height); perspective: 1400px; }
.envelope-back {
  position: absolute;
  inset: 0;
  border: 0;
  border-radius: 3px;
  background-image: var(--envelope-photo);
  background-size: 105.113% 210.050%;
  background-position: 49.180% 92.846%;
  background-repeat: no-repeat;
  box-shadow: 0 22px 38px rgb(23 3 12 / 35%), 0 3px 6px rgb(22 3 10 / 24%);
}
.envelope-paper-window {
  position: absolute;
  z-index: 1;
  inset: auto 0 0;
  height: var(--envelope-height);
  overflow: hidden;
  visibility: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--envelope-height)), 50% calc(100% - var(--envelope-height) / 2), 0 calc(100% - var(--envelope-height)));
  transition: height 0s 1.3s, visibility 0s 1.6s;
}
.is-open .envelope-paper-window { height: calc(var(--envelope-height) + var(--note-rise) + var(--paper-clearance)); visibility: visible; transition-delay: 0s, .52s; }
.letter-card {
  position: absolute;
  inset: auto 5% 8px;
  height: var(--card-height);
  padding: 0;
  border: 0;
  border-radius: 1px;
  color: #7b1e34;
  transform: translateY(calc(var(--card-height) - var(--envelope-height) / 2 + 40px));
  transition: transform 1.25s cubic-bezier(.16, .78, .2, 1);
}
.letter-card:focus { outline: none; }
.is-open .letter-card { transform: translateY(calc(var(--card-height) - var(--envelope-height) - var(--note-rise) + 8px)); transition-delay: .52s; }
.letter-sheet {
  position: absolute;
  inset: 0;
  transform-origin: 50% 92%;
  transform: perspective(1000px) rotateX(0deg) rotateY(0deg) rotateZ(0deg);
}
.letter-face {
  position: absolute;
  inset: 0;
  padding: var(--letter-padding) 12px 0;
  clip-path: polygon(.5% .4%, 16% .15%, 34% .4%, 58% .1%, calc(100% - var(--paper-curl)) .3%, 99.5% var(--paper-curl), 99.5% 24%, 99.8% 51%, 99.6% 76%, 99.8% 99.6%, 77% 99.8%, 52% 99.6%, 26% 99.9%, .3% 99.6%, .55% 74%, .2% 48%, .5% 23%);
}
.letter-face::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(93deg, rgb(127 89 39 / 10%), transparent 7%, transparent 93%, rgb(127 89 39 / 9%)), #f2e5c5 url('assets/letter-stock-v1.5721c414f3.webp') center / 102% 102% no-repeat;
  box-shadow: inset 0 0 9px rgb(145 111 63 / 14%);
  pointer-events: none;
}
.letter-face::after {
  --ribbon-x: clamp(12px, 1.5vw, 17px);
  --ribbon-y: clamp(13px, 1.7vw, 19px);
  --ribbon-width: clamp(4px, .5vw, 5px);
  content: '';
  position: absolute;
  inset: 0;
  background-color: #d6b267;
  background-image:
    linear-gradient(110deg, transparent 32%, rgb(255 249 207 / 12%) 40%, rgb(255 249 207 / 78%) 49%, rgb(255 249 207 / 15%) 56%, transparent 64%),
    linear-gradient(180deg, #bd9340, #eacb7d 20%, #f6df9f 38%, #cba14c 58%, #e9ca7a 78%, #b98c38);
  background-size: 300% 100%, 100% 300%;
  background-position: var(--paper-gold-x, 50%) center, center var(--paper-gold-y, 50%);
  background-repeat: no-repeat;
  clip-path: polygon(
    var(--ribbon-x) 100%,
    var(--ribbon-x) var(--ribbon-y),
    calc(100% - var(--ribbon-x)) var(--ribbon-y),
    calc(100% - var(--ribbon-x)) 100%,
    calc(100% - var(--ribbon-x) - var(--ribbon-width)) 100%,
    calc(100% - var(--ribbon-x) - var(--ribbon-width)) calc(var(--ribbon-y) + var(--ribbon-width)),
    calc(var(--ribbon-x) + var(--ribbon-width)) calc(var(--ribbon-y) + var(--ribbon-width)),
    calc(var(--ribbon-x) + var(--ribbon-width)) 100%
  );
  pointer-events: none;
}
.paper-curl {
  position: absolute;
  z-index: 2;
  top: .3%;
  right: .5%;
  width: var(--paper-curl);
  height: var(--paper-curl);
  background: linear-gradient(137deg, #c8ac7e 0%, #f8edd2 43%, #e8d9b7 65%, #bda274 100%);
  clip-path: polygon(0 0, 100% 100%, 0 100%);
  transform-origin: 50% 50%;
  transform: perspective(180px) rotate3d(1, 1, 0, -8deg);
  pointer-events: none;
}
.is-open .letter-sheet {
  animation: paper-unfurl 1.75s ease-out .52s backwards, paper-breathe 8s ease-in-out 2.27s infinite;
}
.is-open .paper-curl {
  animation: paper-curl-unfurl 1.75s ease-out .52s backwards, paper-curl-breathe 8s ease-in-out 2.27s infinite;
}
@keyframes paper-unfurl {
  0% { transform: perspective(1000px) translateY(7px) rotateX(-9deg) rotateY(3deg) rotateZ(1.1deg); }
  38% { transform: perspective(1000px) translateY(-3px) rotateX(3deg) rotateY(-1.8deg) rotateZ(-.65deg); }
  70% { transform: perspective(1000px) translateY(1px) rotateX(-1.4deg) rotateY(.7deg) rotateZ(.25deg); }
  100% { transform: perspective(1000px) translateY(0) rotateX(0deg) rotateY(0deg) rotateZ(0deg); }
}
@keyframes paper-breathe {
  0%, 100% { transform: perspective(1000px) rotateX(0deg) rotateY(0deg) rotateZ(0deg); }
  35% { transform: perspective(1000px) rotateX(.6deg) rotateY(-.35deg) rotateZ(-.12deg); }
  70% { transform: perspective(1000px) rotateX(-.4deg) rotateY(.3deg) rotateZ(.1deg); }
}
@keyframes paper-curl-unfurl {
  0% { transform: perspective(180px) rotate3d(1, 1, 0, -42deg); }
  45% { transform: perspective(180px) rotate3d(1, 1, 0, 15deg); }
  72% { transform: perspective(180px) rotate3d(1, 1, 0, -17deg); }
  100% { transform: perspective(180px) rotate3d(1, 1, 0, -8deg); }
}
@keyframes paper-curl-breathe {
  0%, 100% { transform: perspective(180px) rotate3d(1, 1, 0, -8deg); }
  38% { transform: perspective(180px) rotate3d(1, 1, 0, -20deg); }
  72% { transform: perspective(180px) rotate3d(1, 1, 0, -4deg); }
}
.envelope-pocket {
  position: absolute;
  z-index: 3;
  inset: 0;
  clip-path: polygon(0 0, 50% 50%, 100% 0, 100% 100%, 0 100%);
  background-image: var(--envelope-photo);
  background-size: 105.113% 210.050%;
  background-position: 49.180% 92.846%;
  background-repeat: no-repeat;
  filter: drop-shadow(0 -1px 2px rgb(32 4 13 / 23%));
  pointer-events: none;
}
.envelope-pocket > span { display: none; }
.envelope-flap {
  position: absolute;
  z-index: 4;
  inset: 0 0 auto;
  height: 60%;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  background: transparent;
  transform-origin: 50% 0;
  transform: rotateX(0deg);
  transition: transform .72s cubic-bezier(.35, .02, .25, 1) .8s, z-index 0s .8s;
  filter: drop-shadow(0 2px 1px rgb(35 4 16 / 22%));
}
.envelope-flap::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--envelope-photo);
  background-size: 105.113% 223.929%;
  background-position: 49.180% 7.205%;
  background-repeat: no-repeat;
  transform: scaleY(-1);
}
.is-open .envelope-flap { z-index: 0; transform: rotateX(180deg); transition-delay: .12s, .48s; }
.envelope-trigger { position: absolute; z-index: 6; inset: 0; width: 100%; padding: 0; border: 0; background: transparent; color: var(--gold); touch-action: manipulation; }
.envelope-trigger:focus-visible { outline: 1px solid var(--gold); outline-offset: 8px; }
.envelope-seal {
  position: absolute;
  top: 58%;
  left: 50%;
  display: block;
  width: clamp(48px, 8vw, 62px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%) rotate(-8deg);
  transition: opacity .24s ease 1.35s, visibility 0s 1.35s;
}
.envelope-seal img { display: block; width: 100%; height: 100%; }
.is-open .envelope-seal { opacity: 0; visibility: hidden; transition: none; }
.wax-fall {
  position: fixed;
  z-index: 90;
  pointer-events: none;
  contain: layout style;
  will-change: transform, opacity;
  animation: wax-drop 1.15s linear both;
}
.wax-fall img { display: block; width: 100%; height: 100%; }
@keyframes wax-drop {
  0% { transform: translate3d(0, 0, 0) rotate(-8deg); opacity: 1; }
  14% { transform: translate3d(-5px, -10px, 0) rotate(-18deg) scale(1.02); opacity: 1; }
  36% { transform: translate3d(2px, calc(var(--fall-distance) * .09), 0) rotate(4deg); opacity: 1; }
  64% { transform: translate3d(16px, calc(var(--fall-distance) * .38), 0) rotate(38deg); opacity: 1; }
  88% { transform: translate3d(26px, calc(var(--fall-distance) * .76), 0) rotate(81deg); opacity: 1; }
  100% { transform: translate3d(34px, var(--fall-distance), 0) rotate(108deg) scale(.94); opacity: 0; }
}
.letter-cue { position: absolute; inset: calc(100% + 25px) 0 auto; font-size: 9px; font-weight: 400; line-height: 1.5; letter-spacing: .15em; text-transform: uppercase; opacity: .8; animation: letter-invitation 3.2s ease-in-out infinite; }
.is-open .letter-cue { animation: none; opacity: .58; }
@keyframes letter-invitation { 0%, 100% { opacity: .18; } 50% { opacity: .84; } }

.photoBackground {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
  gap: 8px;
  opacity: .23;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 8%, rgb(0 0 0 / 65%) 38%, transparent 72%);
  mask-image: radial-gradient(ellipse at center, #000 8%, rgb(0 0 0 / 65%) 38%, transparent 72%);
}

.photoBackground:empty { display: none; }
.photoBackground img { width: 100%; height: 100%; min-height: 0; object-fit: cover; }

.letterContent {
  position: relative;
  min-width: 0;
  height: calc(var(--note-rise) - var(--letter-padding) - 12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  font-family: 'DR Calligraphy', 'DR Letter', cursive;
  font-style: normal;
  font-weight: 400;
  text-transform: none;
}

.dedication {
  margin: 0;
  width: 100%;
}

.dedication-greeting {
  display: block;
  font-size: var(--dedication-size);
  font-weight: 700;
  font-synthesis: weight;
  line-height: 1.25;
  padding-inline: .2em;
  letter-spacing: 0;
  white-space: nowrap;
}

.dedication-message {
  display: block;
  margin-top: 4px;
  color: #84534b;
  font-size: calc(var(--dedication-size) * .51);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0;
}

.dedication-greeting, .dedication-message, .signature-name {
  text-shadow: 0 .35px 0 rgb(255 249 216 / 55%);
}

.dedication-greeting { color: #7b1e34; }

.signature {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  margin: 25px 0 12px;
  color: #8b3f46;
  font-size: clamp(26px, 2.7vw, 32px);
  line-height: 1.2;
  transform: rotate(-5deg);
}

.signature-name { display: block; padding-inline: 5px 2px; }
.signature-heart { width: clamp(8px, 1vw, 10px); height: auto; fill: none; stroke: currentColor; stroke-width: 1.25; transform: rotate(9deg); }
.signature-flourish { position: absolute; inset: auto 3% -5px 1%; width: 94%; height: 8px; fill: none; stroke: currentColor; stroke-width: .6; }
.letterFoot {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: auto 0 12px;
  color: #951f36;
  font-family: 'DR Calligraphy', 'DR Letter', cursive;
  font-style: normal;
  font-size: clamp(16px, 1.5vw, 18px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
}

.letter-postscript {
  width: clamp(140px, 17vw, 180px);
  max-width: 76%;
  margin: 0 auto;
  color: #78634d;
  font-family: 'DR Letter', Georgia, serif;
  font-size: clamp(8.5px, .8vw, 9.5px);
  font-style: italic;
  line-height: 1.4;
}

.letter-postscript > span { display: block; white-space: nowrap; }

footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px 18px;
  padding: 0 0 3px;
  color: var(--muted);
  font-size: 8px;
  opacity: .45;
}

footer .small { font-size: 8px; font-weight: 400; letter-spacing: .22em; }

dialog {
  width: min(540px, 94vw);
  max-height: 90dvh;
  border: 1px solid var(--gold-rule);
  padding: 24px;
  background: #fff4e6;
  color: #34131b;
}

dialog::backdrop { background: #210710d9; }
dialog :focus-visible { outline-color: var(--red); }

.dialogHead { display: flex; gap: 16px; justify-content: space-between; align-items: center; }
.dialogHead h2 { margin: 0; font-size: 32px; }
dialog p, dialog label { font-size: 14px; }
dialog label { display: block; margin-top: 15px; }

dialog input, dialog textarea {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 8px;
  border: 1px solid #b59c96;
  background: transparent;
  color: inherit;
  font-size: 14px;
}

dialog textarea { resize: vertical; }

.solid {
  width: 100%;
  min-height: 42px;
  border: 0;
  background: var(--red);
  color: var(--cream);
  padding: 8px 12px;
}

.film-open, .film-open body { overflow: hidden; }
html.film-open { scrollbar-gutter: auto; }
.film-open body { padding-right: var(--film-scrollbar-gap, 0px); }
.filmDialog {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  padding: 0;
  overflow: hidden;
  background: #080708;
  color: var(--cream);
}
.filmDialog::backdrop { background: #080708; }
.filmDialog.is-entering { background: transparent; }
.filmDialog.is-entering::backdrop { background: rgb(8 7 8 / var(--film-darken, 0)); }
.filmDialog :focus-visible { outline-color: var(--gold); }
.filmPlayer { position: relative; width: 100%; height: 100%; background: #080708; }
.filmPlayer:fullscreen { width: 100vw; height: 100vh; height: 100dvh; background: #080708; }
.filmDialog.is-entering .filmPlayer, .filmPlayer:fullscreen::backdrop { background: transparent; }
.filmPlayer > video { display: block; width: 100%; height: 100%; max-height: none; aspect-ratio: auto; object-fit: contain; background: #080708; touch-action: manipulation; }
.filmPlayer > video:fullscreen { width: 100%; height: 100%; }
.filmPlayer.is-revealing > video { animation: film-picture-in .34s ease-out both; }
@keyframes film-picture-in { from { opacity: 0; } to { opacity: 1; } }

.filmPlayerBar { position: absolute; z-index: 5; inset: max(12px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) auto max(16px, env(safe-area-inset-left)); display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
.filmPlayerActions { display: flex; align-items: center; gap: 12px; }
.filmPlayerBar button, .nativeFilmLink { display: grid; place-items: center; min-width: 44px; min-height: 44px; border: 1px solid rgb(245 216 153 / 40%); border-radius: 50%; padding: 0; background: rgb(8 7 8 / 70%); color: var(--gold); backdrop-filter: blur(5px); pointer-events: auto; touch-action: manipulation; }
.filmPlayerBar button:hover, .nativeFilmLink:hover { border-color: var(--gold); background: rgb(8 7 8 / 90%); }
.nativeFilmLink { border-radius: 24px; padding: 8px 16px; font-size: 12px; }
#videoError { position: absolute; z-index: 4; inset: auto 20px 125px; margin: 0; color: var(--cream); font-size: 14px; text-align: center; }

.filmControls {
  position: absolute;
  z-index: 4;
  inset: auto max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  max-width: 820px;
  margin-inline: auto;
  padding: 7px 12px 9px;
  border: 1px solid rgb(242 216 161 / 26%);
  border-radius: 14px;
  background: rgb(15 11 13 / 92%);
  color: var(--cream);
  box-shadow: 0 8px 30px rgb(0 0 0 / 28%);
}
.filmControls[hidden], .filmBuffering[hidden] { display: none; }
.filmDialog.is-entering .filmControls { visibility: hidden; }
.filmTimeline {
  display: block;
  width: 100%;
  height: 32px;
  margin: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
}
.filmTimeline::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 8px;
  background: linear-gradient(to right, var(--gold) var(--film-progress, 0%), rgb(247 228 190 / 23%) var(--film-progress, 0%));
}
.filmTimeline::-moz-range-track {
  height: 4px;
  border-radius: 8px;
  background: linear-gradient(to right, var(--gold) var(--film-progress, 0%), rgb(247 228 190 / 23%) var(--film-progress, 0%));
}
.filmTimeline::-webkit-slider-thumb {
  appearance: none;
  width: 14px;
  height: 14px;
  margin-top: -5px;
  border: 0;
  border-radius: 50%;
  background: var(--gold);
}
.filmTimeline::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 0;
  border-radius: 50%;
  background: var(--gold);
}
.filmTimeline:disabled { cursor: default; }
.filmControlRow, .filmTransport { display: flex; align-items: center; }
.filmControlRow { justify-content: space-between; gap: 8px; }
.filmTransport { gap: 5px; }
.filmTransport button {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 5px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--cream);
  background: transparent;
}
.filmTransport button:enabled:hover, .filmTransport button:enabled:focus-visible {
  border-color: rgb(242 216 161 / 42%);
  background: rgb(242 216 161 / 8%);
}
.filmTransport button:disabled { opacity: .45; }
.filmTransport .filmPlay { color: var(--gold); }
.filmSkip, .filmTime { font-size: .82rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.filmPauseIcon, .filmSoundOff, .filmPlay[data-playing="true"] .filmPlayIcon,
.filmSound[data-muted="true"] .filmSoundWaves { display: none; }
.filmPlay[data-playing="true"] .filmPauseIcon, .filmSound[data-muted="true"] .filmSoundOff { display: inline; }
.filmBuffering {
  position: absolute;
  inset: auto 0 calc(100% + 6px) auto;
  padding: 5px 11px;
  border-radius: 6px;
  background: rgb(15 11 13 / 94%);
  color: var(--cream);
  font-size: .82rem;
}

.filmPortal { position: absolute; inset: 0; z-index: 3; overflow: hidden; pointer-events: none; }
.filmPortal .film-star-window {
  -webkit-mask-position: var(--film-aperture-x) var(--film-aperture-y);
  mask-position: var(--film-aperture-x) var(--film-aperture-y);
  -webkit-mask-size: var(--film-aperture-size);
  mask-size: var(--film-aperture-size);
}
.filmPortal .film-star-edge {
  inset: var(--film-aperture-y) auto auto var(--film-aperture-x);
  width: var(--film-aperture-size);
  height: var(--film-aperture-size);
}
.filmPortal .film-star-edge, .filmPortal .film-rays, .filmPortal .film-foil-catch { filter: none; }
.filmPortal.is-wide .film-star-edge { visibility: hidden; }
.filmPortal.is-wide .film-star-window, .filmPortal.uses-canvas-mask .film-star-window {
  -webkit-mask: none;
  mask: none;
  background: transparent;
}
.filmPortal #filmBackground, .filmPortal .filmPoster { visibility: hidden; }
.filmPortal.is-preview-travel .film-star-window {
  inset: var(--film-aperture-y) auto auto var(--film-aperture-x);
  width: var(--film-aperture-size);
  height: var(--film-aperture-size);
  -webkit-mask-position: center;
  mask-position: center;
}
.filmPortal.is-preview-travel .filmPoster { visibility: visible; }
.filmDialog.is-entering .filmPlayer > video { opacity: 0; pointer-events: none; animation: none; }
.filmDialog.is-entering .filmPlayerActions { visibility: hidden; }
@media (prefers-reduced-motion: reduce) {
  .filmPlayer.is-revealing > video { animation: none; }
}

@media (max-width: 700px) {
  .folio { margin: 0 auto; }
  .workbench { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .process-sketch { width: min(100%, 370px); margin-inline: auto; }
  .photoBackground { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 370px) {
  .folio { padding-inline: 40px; }
  h1 { font-size: clamp(31px, 11vw, 43px); }
  .small { letter-spacing: .13em; }
  }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .entry-primer { animation: none; }
  .frame-edge::after { display: none; }
  .entry-cue { animation: none; }
  .film-action { animation: none; }
  .film #filmBackground { transition: none; }
  .entry-active .entry-cover, .entry-seal { transition: none; }
  .entry-curtain, .entry-frame, .entry-seal > .entry-emblem { transition: none; }
  .entry-emblem.entry-flight, .entry-emblem.entry-flight.is-settling,
  .entry-flight::before, .entry-flight::after { animation: none; }
}

main {
  display: flex;
  flex-direction: column;
  gap: var(--section-gap);
  margin-bottom: clamp(184px, 24vw, 280px);
}

@media (prefers-reduced-motion: reduce) {
  .envelope-scene, .envelope-paper-window, .letter-card, .envelope-flap,
  .envelope-seal { transition: none; }
  .letter-cue, .is-open .letter-sheet, .is-open .paper-curl, .wax-fall { animation: none; }
}

.chapter, .letter { margin: 0; }

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 10px;
  margin-bottom: clamp(12px, 1.5vw, 18px);
  border-bottom: 1px solid rgb(240 198 124 / 27%);
}

.chapter-title {
  margin: 0;
  color: var(--gold);
  font-family: var(--site-font);
  font-size: var(--section-title-size);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: .12em;
  text-transform: uppercase;
}

@supports (background-clip: text) or (-webkit-background-clip: text) {
  .chapter-title {
    background-image:
      linear-gradient(112deg, transparent 38%, rgb(255 245 210 / 16%) 44%, rgb(255 248 219 / 84%) 49%, #fffbed 52%, rgb(255 242 199 / 42%) 57%, transparent 63%),
      linear-gradient(112deg, #d8a455 0%, #f3cf87 26%, #fff0c7 47%, #dfb572 72%, #f4d794 100%);
    background-size: 250% 100%, 100% 100%;
    background-position: var(--title-reflection, 105%) center, center;
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.section-heading > .small { flex-shrink: 0; text-align: right; }
.section-heading + .lede { margin-top: 0; }
.story-copy { max-width: 760px; }
.workbench { margin-top: 0; }
.story-copy, .identity-copy > p {
  color: var(--cream);
  font-family: var(--site-font);
  font-size: clamp(16px, 1.7vw, 18px);
  line-height: 1.9;
  letter-spacing: 0;
}
.story-copy p { margin: 0 0 1.6em; }
.story-copy p:last-child, .identity-copy > p { margin-bottom: 0; }

.identity-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(92px, 16vw, 180px);
  align-items: center;
  gap: clamp(16px, 4vw, 58px);
}

.identity-copy { min-width: 0; }
.identity-copy > p { margin: 0; }
.logo-figure { min-width: 0; margin: 0; }
.logo-transform {
  --logo-cycle: 4.8s;
  position: relative;
  isolation: isolate;
  display: block;
  width: 100%;
  height: 208px;
  margin-inline: auto;
  border: 0;
  padding: 0;
  overflow: visible;
  background: transparent;
  color: inherit;
  user-select: none;
}
.logo-layer {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.logo-lockup { display: flex; width: 100%; flex-direction: column; align-items: center; }
.logo-mark { display: grid; width: 100%; height: 142px; place-items: center; }
.logo-origin .logo-mark > img { display: block; width: 124px; max-width: 84%; height: auto; }
.logo-result { opacity: 0; }
.logo-name {
  display: block;
  margin-top: 14px;
  color: var(--cream);
  font-family: var(--site-font);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: .08em;
  white-space: nowrap;
}
.logo-result .logo-name { color: var(--gold); }
.logo-gold { position: relative; display: block; width: 122px; max-width: 84%; }
.logo-gold img { display: block; width: 100%; height: auto; filter: drop-shadow(0 1px 0 rgb(95 43 19 / 70%)) drop-shadow(0 7px 17px rgb(43 8 21 / 25%)); }
.logo-gold::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(114deg, transparent 36%, rgb(255 239 191 / 32%) 45%, #fff7d9 53%, rgb(255 226 151 / 65%) 58%, transparent 69%) 100% center / 250% 100% no-repeat;
  -webkit-mask: url('assets/dr-monogram-or.48886a764c.svg') center / 100% 100% no-repeat;
  mask: url('assets/dr-monogram-or.48886a764c.svg') center / 100% 100% no-repeat;
}
.logo-aura {
  position: absolute;
  z-index: 0;
  inset: 15% 5% 24%;
  opacity: 0;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgb(245 200 114 / 19%), transparent 69%);
  filter: blur(22px);
  pointer-events: none;
}
.logo-transform.is-looping .logo-origin { animation: logo-dissolve var(--logo-cycle) ease-in-out infinite; }
.logo-transform.is-looping .logo-result { animation: logo-form var(--logo-cycle) ease-in-out infinite; }
.logo-transform.is-looping .logo-gold::after { animation: logo-sheen var(--logo-cycle) ease-in-out infinite; }
.logo-transform.is-looping .logo-aura { animation: logo-glow var(--logo-cycle) ease-in-out infinite; }
.logo-transform.is-looping.is-paused *, .logo-transform.is-looping.is-paused *::after { animation-play-state: paused; }

@keyframes logo-dissolve {
  0%, 40%, 100% { opacity: 1; filter: blur(0); transform: scale(1); }
  50%, 90% { opacity: 0; filter: blur(6px); transform: scale(1.025); }
}
@keyframes logo-form {
  0%, 40%, 100% { opacity: 0; filter: blur(6px); transform: scale(.98); }
  50%, 90% { opacity: 1; filter: blur(0); transform: scale(1); }
}
@keyframes logo-sheen {
  0%, 45% { opacity: 0; background-position-x: 100%; }
  56% { opacity: .8; }
  76% { opacity: .45; }
  88%, 100% { opacity: 0; background-position-x: 0%; }
}
@keyframes logo-glow {
  0%, 40%, 94%, 100% { opacity: 0; }
  55%, 78% { opacity: .4; }
}

.logo-transform.is-static .logo-origin { opacity: 0; }
.logo-transform.is-static .logo-result { opacity: 1; }
.logo-transform.is-static *, .logo-transform.is-static *::after { animation: none; }

.piece-statement { margin-bottom: 14px; color: var(--gold); font-size: clamp(13px, 3.6vw, 16px); line-height: 1.55; letter-spacing: .04em; text-align: center; text-transform: uppercase; }
.piece-statement > span { display: block; white-space: nowrap; }
.piece-statement em { font-style: normal; }

@media (max-width: 700px) {
  .identity-body { grid-template-columns: minmax(0, 1fr) clamp(80px, 22vw, 96px); gap: 16px; }
  .identity-copy > p { font-size: 15px; line-height: 1.8; }
  .logo-transform { height: 156px; }
  .logo-mark { height: 100px; }
  .logo-origin .logo-mark > img, .logo-gold { width: 80px; }
  .logo-name { margin-top: 12px; font-size: 9px; letter-spacing: .02em; }
  .section-heading { position: relative; flex-wrap: nowrap; gap: 8px; }
  .chapter-title { flex-shrink: 0; max-width: 100%; white-space: nowrap; }
  .section-heading > .small { margin-left: auto; font-size: 7.5px; line-height: 1.4; letter-spacing: .06em; white-space: nowrap; }
}

@media (max-width: 385px) {
  :root { --section-title-size: 22px; }
  .section-heading { gap: 6px; }
}

@media (max-width: 350px) {
  :root { --section-title-size: 19px; }
  .chapter-title { letter-spacing: .08em; }
  .section-heading { gap: 4px; }
  .section-heading > .small { font-size: 7px; letter-spacing: .04em; }
}
