/* ============================================================================
   Heldearly — story archive
   ----------------------------------------------------------------------------
   Built to Figma 607:2430 (1440w default): inset painterly hero, 280px rail,
   360 + 136 + 460 story columns, photo / extract / voice / gallery cards,
   and a closing CTA. Type scale: h1 68/56/48, h2 58/52/40, display 52/48/36.
   Shared ramps live in tokens.css. Values below are the frame-specific accents.
   ========================================================================== */

body.story-archive{
  --archive-paper:#f3efe5;
  --archive-ink:#022c22;
  --archive-forest:#064e3b;
  --archive-label:#65a30d;
  --archive-year:#4d7c0f;
  --archive-tab:rgba(2,44,34,.45);
  --archive-hair:rgba(10,10,10,.12);
  --archive-foot:rgba(10,10,10,.08);
  --archive-rail:rgba(77,124,15,.16);
  --archive-legal:rgba(2,44,34,.55);
  --archive-sans:var(--font-sans),system-ui,sans-serif;
  --archive-serif:var(--font-serif),Georgia,serif;
  --archive-story:956px;
  --archive-rail-w:280px;
  --archive-gap:100px;
  --archive-span:calc(var(--archive-rail-w) + var(--archive-gap) + var(--archive-story));
  --archive-pad:52px;
  --archive-tabs-h:58px;
  --archive-fs-h1:68px;
  --archive-fs-h2:58px;
  --archive-fs-display:52px;
  --archive-ease-out:cubic-bezier(.215,.61,.355,1);
}

body.story-archive,body.story-archive *{box-sizing:border-box}
html:has(body.story-archive){scroll-behavior:smooth}
html:has(body.archive-embed){min-height:100%}
html:has(body.archive-preview){
  overflow-x:hidden;
  overflow-y:auto;
  scrollbar-width:none;
  scroll-behavior:auto;
  height:auto;
}
html:has(body.archive-preview:not(.archive-phone)){overscroll-behavior:none}
html:has(body.archive-preview)::-webkit-scrollbar{display:none}
body.archive-embed{min-height:100%}
body.archive-embed .archive-hero{padding-top:20px}
body.archive-preview{
  overflow-x:hidden;
  overflow-y:auto;
  scrollbar-width:none;
  scroll-behavior:auto;
  height:auto;
  min-height:0;
}
body.archive-preview:not(.archive-phone){
  overflow-x:hidden;
  overflow-y:auto;
  overscroll-behavior:none;
  pointer-events:none;
}
body.archive-preview::-webkit-scrollbar{display:none}
body.archive-preview .archive-hero{padding:16px 16px 0}
body.archive-preview .archive-hero-card{
  min-height:0;
  padding:36px 56px 40px;
  gap:16px;
}
body.archive-preview .archive-cta,
body.archive-preview .archive-footer,
body.archive-preview .page-end,
body.archive-embed .site-footer.site-footer-figma,
body.archive-preview .archive-progress,
body.archive-preview riffs-widget,
body.archive-preview [class*="riffs"],
body.archive-embed riffs-widget,
body.archive-embed [class*="riffs"],
body.archive-modal-open riffs-widget,
body.archive-modal-open [class*="riffs"]{display:none !important}

html:has(body.archive-preview) nextjs-portal,
html:has(body.archive-embed) nextjs-portal,
html:has(body.archive-preview) [data-next-badge-root],
html:has(body.archive-embed) [data-next-badge-root],
html:has(body.archive-preview) [data-nextjs-dev-indicator],
html:has(body.archive-embed) [data-nextjs-dev-indicator],
html:has(body.archive-preview) [data-nextjs-toast],
html:has(body.archive-embed) [data-nextjs-toast]{display:none !important}

@media (max-width:600px){
  body.archive-preview .archive-hero{padding:10px 10px 0}
  body.archive-preview .archive-hero-card{padding:20px 20px 22px;gap:10px}
  body.archive-preview .archive-portrait,
  body.archive-preview .archive-portrait img{width:52px;height:52px}
  body.archive-preview .archive-hero-copy h1{font-size:32px}

  body.archive-preview.archive-phone .archive-hero{padding:16px 16px 0}
  body.archive-preview.archive-phone .archive-hero-card{padding:52px 24px;gap:24px}
  body.archive-preview.archive-phone .archive-portrait,
  body.archive-preview.archive-phone .archive-portrait img{width:100px;height:100px}
  body.archive-preview.archive-phone .archive-hero-copy h1{font-size:48px}

  body.archive-preview.archive-phone-fit .archive-hero{padding:64px 16px 0}
  body.archive-preview.archive-phone-fit .archive-hero-card{padding:52px 24px;gap:24px}
  body.archive-preview.archive-phone-fit .archive-portrait,
  body.archive-preview.archive-phone-fit .archive-portrait img{width:100px;height:100px}
  body.archive-preview.archive-phone-fit .archive-hero-copy h1{font-size:48px}
}

/* Phone-in-landing: leave room for the iPhone status bar / island / Safari. */
body.archive-preview.archive-phone{padding-top:54px;padding-bottom:82px}
body.story-archive{
  margin:0;
  background:var(--archive-paper);
  color:var(--archive-ink);
  font:400 16px/1.65 var(--archive-sans);
  -webkit-font-smoothing:antialiased;
}
img,video{display:block;max-width:100%}
p,figure,h1,h2,h3,ol,ul,dl,dt,dd{margin:0}
p,h1,h2,h3{text-wrap:pretty}
button{font:inherit;cursor:pointer;background:none;border:0;padding:0;color:inherit}
a{color:inherit}

/* ---- hero · inset mesh banner (same LandingShader as how-2) -------------- */
.archive-hero{padding:24px 24px 0}
.archive-hero-card{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:24px;
  width:100%;
  min-height:331px;
  padding:52px 100px;
  border-radius:24px;
  background:#022c22;
  color:#fff;
  text-align:center;
}
.archive-hero-paint{
  position:absolute;
  inset:0;
  z-index:0;
  width:100%;
  height:100%;
  overflow:hidden;
  pointer-events:none;
  background:#022c22;
}
.archive-hero-paint .landing-shader,
.archive-hero-paint .landing-shader-mesh,
.archive-hero-paint canvas{
  position:absolute;
  inset:0;
  display:block;
  width:100%;
  height:100%;
}
.archive-portrait,
.archive-hero-copy{position:relative;z-index:1}
.archive-portrait{
  width:100px;
  height:100px;
  flex:none;
  overflow:hidden;
  border-radius:50%;
  background:rgba(255,255,255,.12);
}
.archive-portrait img{
  width:100px;
  height:100px;
  object-fit:cover;
  object-position:center 20%;
}
.archive-hero-copy{width:min(533px,100%)}
.archive-hero-copy h1{
  position:relative;
  display:inline-block;
  font-family:var(--archive-serif);
  font-weight:400;
  font-size:var(--archive-fs-h1);
  line-height:1;
  color:#fff;
}
.archive-title-name,
.archive-title-rest{position:relative;z-index:1}
.archive-title-name{white-space:nowrap}
.archive-title-mark{
  position:absolute;
  left:0;
  top:0.84em;
  z-index:0;
  width:0;
  height:0.15em;
  min-height:10px;
  overflow:hidden;
  background:url("/marketing/timeline-v5/title-underline.svg") center / 100% 100% no-repeat;
  transform:rotate(1.25deg);
  transform-origin:center center;
  pointer-events:none;
}
.archive-hero-copy p{
  margin-top:8px;
  color:#fff;
  font-size:16px;
  line-height:1.7;
  opacity:.7;
}

/* ---- tabs --------------------------------------------------------------- */
.archive-tabs{
  position:sticky;
  top:0;
  z-index:20;
  border-bottom:.5px solid var(--archive-hair);
  background:var(--archive-paper);
}
.archive-tabs-inner{
  display:flex;
  gap:32px;
  width:100%;
  padding:0 var(--archive-pad);
}
.archive-tabs button{
  padding:16px 0 17px;
  color:var(--archive-tab);
  font-size:15px;
  font-weight:500;
  line-height:24.75px;
  white-space:nowrap;
  box-shadow:inset 0 -2px 0 transparent;
}
.archive-tabs button[aria-selected="true"]{
  color:var(--archive-ink);
  font-weight:600;
  box-shadow:inset 0 -2px 0 var(--archive-ink);
}

/* ---- archive: rail + stories -------------------------------------------- */
.archive-archive{
  display:flex;
  align-items:flex-start;
  justify-content:center;
  gap:var(--archive-gap);
  width:100%;
  padding:var(--archive-pad);
  padding-bottom:152px;
}
.archive-rail{
  position:sticky;
  top:calc(var(--archive-tabs-h) + 24px);
  width:var(--archive-rail-w);
  flex:none;
  align-self:start;
}
body.story-archive[data-view="album"] .archive-rail,
body.story-archive[data-view="thoughts"] .archive-rail{display:none}
body.story-archive[data-view="album"] .archive-main,
body.story-archive[data-view="thoughts"] .archive-main{max-width:var(--archive-span)}
.archive-rail-list{
  display:flex;
  flex-direction:column;
  gap:24px;
  padding:0;
  list-style:none;
}
.archive-chapter-btn{
  display:block;
  width:100%;
  text-align:left;
  color:var(--archive-ink);
  font-size:16px;
  font-weight:500;
  line-height:normal;
  opacity:.3;
  transition:opacity 220ms var(--archive-ease-out);
}
.archive-chapter.is-active .archive-chapter-btn{opacity:1}
.archive-chapter-fold{
  display:grid;
  grid-template-rows:0fr;
  opacity:0;
  transition:grid-template-rows 320ms var(--archive-ease-out), opacity 220ms var(--archive-ease-out);
}
.archive-chapter.is-active .archive-chapter-fold{
  grid-template-rows:1fr;
  opacity:1;
}
.archive-chapter-stories{
  --archive-rail-gap:16px;
  display:flex;
  position:relative;
  flex-direction:column;
  gap:16px;
  min-height:0;
  overflow:hidden;
  margin:0;
  padding:var(--archive-rail-gap) 0 0 27px;
  list-style:none;
}
.archive-chapter-stories::before{
  content:"";
  position:absolute;
  left:0;
  top:var(--archive-rail-gap);
  bottom:0;
  width:1px;
  background:var(--archive-rail);
}
@media (prefers-reduced-motion:reduce){
  .archive-chapter-btn,
  .archive-chapter-fold{transition:none}
}
.archive-story-link{
  position:relative;
  display:flex;
  flex-direction:column;
  gap:2px;
  text-decoration:none;
}
.archive-story-link small{
  color:var(--archive-year);
  font-size:12px;
  font-weight:500;
  line-height:normal;
  opacity:.4;
}
.archive-story-link span{
  color:var(--archive-ink);
  font-size:12px;
  font-weight:500;
  line-height:normal;
  opacity:.3;
}
.archive-story-link.is-current small,
.archive-story-link.is-current span{opacity:1}
.archive-rail-marker{
  position:absolute;
  left:0;
  top:0;
  width:2px;
  height:48px;
  background:var(--archive-label);
  border-radius:1px;
  transform-origin:top center;
  pointer-events:none;
  will-change:transform;
  transition:transform 220ms var(--archive-ease-out);
}

.archive-main{
  min-width:0;
  flex:1;
  max-width:var(--archive-story);
  container-type:inline-size;
}
body.story-archive.landing main.archive-main{
  width:auto !important;
  max-width:var(--archive-story) !important;
  margin:0 !important;
  background:transparent !important;
}
body.story-archive.landing[data-view="album"] main.archive-main,
body.story-archive.landing[data-view="thoughts"] main.archive-main{
  max-width:var(--archive-span) !important;
}
.archive-timeline{
  display:flex;
  flex-direction:column;
  gap:100px;
}

/* ---- story block · 360 / 136 / 460 -------------------------------------- */
.archive-story{
  display:flex;
  gap:136px;
  align-items:flex-start;
  width:100%;
  scroll-margin-top:calc(var(--archive-tabs-h) + 24px);
}
.archive-story-left{
  position:sticky;
  top:calc(var(--archive-tabs-h) + 24px);
  display:flex;
  flex-direction:column;
  gap:72px;
  width:360px;
  flex:none;
}
.archive-story-type{
  display:flex;
  flex-direction:column;
  gap:16px;
  width:100%;
}
.archive-meta{
  width:100%;
  color:var(--archive-label);
  font-size:12px;
  font-weight:600;
  letter-spacing:.48px;
  line-height:12px;
  text-transform:uppercase;
}
body.story-archive .archive-story-left h2{
  font-family:var(--archive-serif);
  font-weight:400;
  font-size:var(--archive-fs-h2);
  line-height:1;
  letter-spacing:0;
  color:var(--archive-ink);
  text-wrap:balance;
}
.archive-lede{
  width:100%;
  max-width:none;
  margin:0;
  color:var(--archive-forest);
  font-size:16px;
  line-height:1.65;
  text-wrap:pretty;
}
.archive-story-type .archive-lede{margin-top:8px}
.archive-copy{
  display:flex;
  flex-direction:column;
  gap:1.65em;
  width:100%;
}

.archive-oil{flex:none}
.archive-oil img{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
}
/* Product timeline graphics (generated object illustrations): one display
   box for every generated oil — story ids are uuids, so the per-fixture
   rules below can never size them. Kept below modal specificity. */
.archive-oil.archive-oil-generated{width:180px;height:150px}
.archive-oil[data-oil="1976-keys"]{width:83px;height:172px}
.archive-oil[data-oil="1983-notes"]{width:150px;height:96px}
.archive-oil[data-oil="1994-date"]{width:206px;height:124px}
.archive-oil[data-oil="1996-courthouse"]{width:127px;height:161px}
.archive-oil[data-oil="2003-school"]{width:137px;height:136px}
.archive-oil[data-oil="2004-drawing"]{width:176px;height:136px}

.archive-story-right{
  display:flex;
  flex:1 0 0;
  flex-direction:column;
  gap:52px;
  align-items:center;
  min-width:0;
  width:460px;
}
.archive-prose{
  display:flex;
  flex-direction:column;
  gap:1.65em;
  width:100%;
  color:var(--archive-forest);
  font-size:16px;
  line-height:1.65;
  text-wrap:pretty;
}

/* ---- media cards -------------------------------------------------------- */
.archive-photo,
.archive-extract,
.archive-voice-card,
.archive-gallery{
  width:100%;
  border-radius:24px;
  background:#fff;
  box-shadow:0 4px 6px rgba(0,0,0,.04);
}
.archive-photo,
.archive-gallery{
  display:flex;
  flex-direction:column;
  gap:2px;
  overflow:hidden;
  padding:2px;
}
.archive-photo-frame,
.archive-gallery-stage{
  position:relative;
  overflow:hidden;
  width:100%;
  border-radius:22px;
  background:#ebe5d8;
}
.archive-gallery-stage{aspect-ratio:692 / 452}
.archive-photo-frame img,
.archive-photo-frame video{
  display:block;
  width:100%;
  height:auto;
}
.archive-video .archive-photo-frame{
  aspect-ratio:16 / 9;
}
.archive-video .archive-photo-frame video{
  width:100%;
  height:100%;
  object-fit:cover;
}
.archive-gallery-slide{
  position:absolute;
  inset:0;
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  cursor:zoom-in;
}
.archive-gallery-nav,
.archive-gallery-dots{z-index:2}
.archive-photo.is-empty .archive-photo-frame{
  min-height:272px;
  background:#efe8d8;
}
.archive-photo figcaption,
.archive-gallery figcaption{
  display:flex;
  align-items:center;
  min-height:36px;
  padding:8px 16px;
  color:var(--archive-forest);
  font-size:14px;
  line-height:1;
}

.archive-extract,
.archive-voice-card{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:40px;
  text-align:center;
}
.archive-extract{gap:40px}
.archive-voice-card{gap:36px}
.archive-extract .head,
.archive-voice-card .head{
  display:flex;
  flex-direction:column;
  gap:12px;
  width:100%;
}
.archive-extract .label,
.archive-voice-card .label{
  color:var(--archive-label);
  font-size:12px;
  font-weight:600;
  line-height:1;
  text-transform:uppercase;
}
.archive-extract .display,
.archive-voice-card .display{
  font-family:var(--archive-serif);
  font-size:var(--archive-fs-display);
  line-height:1;
  color:var(--archive-ink);
}
.archive-extract .caption{
  color:var(--archive-forest);
  font-size:16px;
  line-height:1.65;
  width:100%;
}
.archive-extract-oil{
  display:block;
  object-fit:contain;
}
.archive-extract-oil[data-oil="shoes"]{width:256px;height:124px}
.archive-extract-oil[data-oil="glove"]{width:186px;height:140px}
.archive-extract-oil[data-oil="hat"]{width:212px;height:150px}
.archive-extract-oil[data-oil="notes"]{width:150px;height:96px}
.archive-extract-oil[data-oil="ring"]{width:127px;height:161px}
.archive-extract-oil[data-oil="mugs"]{width:256px;height:128px}
.archive-extract-oil[data-oil="plates"]{width:256px;height:138px}

.archive-voice-portrait{
  position:relative;
  width:156px;
  height:156px;
  flex:none;
}
.archive-voice-portrait img{
  width:156px;
  height:156px;
  border-radius:50%;
  object-fit:cover;
  object-position:center;
}
.archive-voice-badge{
  position:absolute;
  top:-12px;
  right:-8px;
  display:grid;
  place-items:center;
  width:60px;
  height:60px;
  border-radius:52px;
  background:var(--archive-forest);
  box-shadow:0 4px 6px rgba(0,0,0,.04);
  transform:rotate(-14deg);
}
.archive-voice-badge img{
  width:32px;
  height:32px;
  object-fit:contain;
}
.archive-voice-bar{
  display:flex;
  align-items:center;
  gap:12px;
  width:100%;
}
.archive-voice-bar button{
  position:relative;
  display:grid;
  place-items:center;
  width:40px;
  height:40px;
  flex:none;
  overflow:hidden;
}
/* Pause SVG used to pad its circle inside a 40 viewBox (~33px glyph)
   while play fills its box. Both imgs stay 40×40; the pause asset is
   cropped to the filled circle so the glyphs match. Do not shrink play. */
body.story-archive .archive-voice-bar button img{
  width:40px;
  height:40px;
  max-width:none;
  grid-area:1 / 1;
  object-fit:contain;
}
/* landing.css `body.story-archive img{display:block}` is (0,1,2) and
   beats a lone class `{display:none}` (0,1,0), so both glyphs stacked. */
body.story-archive .archive-voice-bar .archive-voice-pause-icon{display:none}
body.story-archive .archive-voice-bar.is-playing .archive-voice-play-icon{display:none}
body.story-archive .archive-voice-bar.is-playing .archive-voice-pause-icon{display:block}
.archive-voice-bar .time{
  flex:none;
  width:max-content;
  color:var(--archive-forest);
  font-size:16px;
  line-height:1.65;
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
}
.archive-voice-bar .track{
  position:relative;
  flex:1 1 auto;
  min-width:0;
  height:40px;
  cursor:pointer;
  touch-action:none;
}
.archive-voice-bar .track::before,
.archive-voice-bar .fill{
  position:absolute;
  left:0;
  top:50%;
  height:2px;
  margin-top:-1px;
  border-radius:4px;
}
.archive-voice-bar .track::before{
  content:"";
  right:0;
  background:rgba(6,78,59,.12);
}
.archive-voice-bar .fill{
  width:0;
  background:var(--archive-forest);
  pointer-events:none;
}

.archive-gallery-nav{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:16px;
  pointer-events:none;
}
.archive-gallery-nav button{
  pointer-events:auto;
  display:grid;
  place-items:center;
  width:40px;
  height:40px;
  flex:none;
  border-radius:24px;
  background:#fff;
  box-shadow:0 4px 6px rgba(0,0,0,.04);
}
.archive-gallery-nav button[disabled]{opacity:.3}
.archive-gallery-nav img{
  width:24px;
  height:24px;
  max-width:24px;
  object-fit:contain;
}
.archive-gallery-dots{
  position:absolute;
  left:50%;
  bottom:8px;
  z-index:1;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  height:18px;
  padding:0 6px;
  transform:translateX(-50%);
  border-radius:9px;
  background:rgba(0,0,0,.52);
  box-shadow:0 4px 12px rgba(0,0,0,.04);
}
.archive-gallery-dots button{
  flex:none;
  width:6px;
  height:6px;
  padding:0;
  border:0;
  border-radius:50%;
  background:rgba(255,255,255,.5);
}
.archive-gallery-dots button.is-active{background:#fff}

/* ---- Figma divider strokes (cycled from 612:2751) ----------------------- */
.archive-break{
  display:block;
  width:100%;
  max-width:var(--archive-story);
  margin:0;
  line-height:0;
  overflow:hidden;
  border:0;
  background:none;
}
.archive-break img{
  display:block;
  width:100%;
  height:auto;
}
.archive-break[data-orient="vert"]{
  display:flex;
  align-items:center;
  justify-content:center;
  height:9px;
}
.archive-break[data-orient="vert"] img{
  width:5px;
  height:976px;
  max-width:none;
  transform:rotate(90deg);
}

/* ---- album · Figma 614:2931 -------------------------------------------- */
.archive-album{
  display:flex;
  flex-direction:column;
  gap:24px;
}
.archive-album-filters{
  display:flex;
  align-items:flex-start;
  gap:12px;
}
.archive-album-filters button{
  padding:6px 12px;
  border-radius:16px;
  color:var(--archive-tab);
  font-size:15px;
  font-weight:500;
  line-height:24.75px;
}
.archive-album-filters button[aria-selected="true"]{
  color:var(--archive-ink);
  font-weight:600;
  background:rgba(2,44,34,.08);
}
.archive-album-grid,
.archive-thoughts-list{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:24px;
}
.archive-album-grid{align-items:stretch}
.archive-thoughts-list{align-items:stretch}
.archive-album-card,
.archive-album-voice{
  display:flex;
  width:100%;
  min-width:0;
  text-align:left;
  border-radius:24px;
  background:#fff;
  box-shadow:0 4px 6px rgba(0,0,0,.04);
  cursor:pointer;
}
.archive-album-voice{margin:0;cursor:default}
.archive-album-voice-open{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:16px;
  width:100%;
  padding:0;
  text-align:center;
}
.archive-voice-bar audio{display:none}
.archive-album-card{
  flex-direction:column;
  gap:2px;
  padding:2px;
}
.archive-album-card[hidden],
.archive-album-voice[hidden]{display:none}
.archive-album-frame{
  position:relative;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  flex:none;
  width:100%;
  height:272px;
  border-radius:22px;
  background:#ebe5d8;
}
.archive-album-card img,
.archive-album-card.is-video video{
  width:100%;
  height:100%;
  object-fit:cover;
}
.archive-album-card.is-oil .archive-album-frame{
  height:272px;
  background:#f9f7f2;
  padding:16px;
}
.archive-album-card.is-oil img{
  width:auto;
  height:auto;
  max-width:80%;
  max-height:204px;
  object-fit:contain;
}
.archive-album-card.is-video .archive-album-frame{
  background:#111;
}
.archive-album-caption{
  display:flex;
  flex:none;
  align-items:center;
  width:100%;
  min-height:36px;
  padding:8px 16px;
  color:var(--archive-forest);
  font-size:14px;
  line-height:1;
  text-align:left;
}
.archive-album-voice{
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:16px;
  height:314px;
  min-height:314px;
  padding:28px 40px;
  text-align:center;
}
.archive-album-voice .archive-voice-portrait,
.archive-album-voice .archive-voice-portrait img{
  width:88px;
  height:88px;
}
.archive-album-voice .archive-voice-badge{
  top:-8px;
  right:-6px;
  width:36px;
  height:36px;
}
.archive-album-voice .archive-voice-badge img{
  width:18px;
  height:18px;
}
.archive-thought{
  width:100%;
  height:100%;
  min-width:0;
  margin:0;
  cursor:pointer;
}
.archive-thought .archive-extract-oil[data-oil]{
  width:auto;
  height:161px;
  max-width:100%;
  object-fit:contain;
}

/* ---- story modal -------------------------------------------------------- */
body.archive-modal-open{overflow:hidden}
.archive-modal{
  position:fixed;
  inset:0;
  z-index:40;
  display:grid;
  align-items:safe center;
  justify-items:center;
  overflow:auto;
  padding:24px;
}
.archive-modal[hidden]{display:none}
.archive-modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(2,44,34,.36);
}
.archive-modal-dialog{
  position:relative;
  z-index:1;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  width:min(956px,100%);
  max-height:70vh;
  padding:0;
  border-radius:24px;
  background:var(--archive-paper);
  box-shadow:0 16px 48px rgba(2,44,34,.18);
  outline:none;
}
.archive-modal-body{
  display:flex;
  flex-direction:column;
  align-items:center;
  overflow:auto;
  min-height:0;
  padding:68px;
  container-type:inline-size;
}
.archive-modal-close,
.archive-lightbox-close{
  position:absolute;
  top:20px;
  right:20px;
  z-index:2;
  display:grid;
  place-items:center;
  width:36px;
  height:36px;
  padding:0;
  border-radius:50%;
  color:#002e20;
  background:#fff;
  box-shadow:0 3px 18px rgba(0,0,0,.12);
}
.archive-modal-close:hover,
.archive-lightbox-close:hover{transform:scale(1.04)}
.archive-modal-close svg,
.archive-lightbox-close svg{width:20px;height:20px}
.archive-modal-story{
  scroll-margin-top:0;
  flex-direction:column;
  align-items:center;
  gap:52px;
  width:100%;
  text-align:center;
}
.archive-modal-story .archive-story-left,
.archive-modal-story .archive-story-right{
  position:static;
  top:auto;
  flex:none;
  align-items:center;
  width:100%;
  max-width:none;
}
.archive-modal-story .archive-story-left{
  flex-direction:column;
  gap:36px;
}
.archive-modal-story .archive-story-type{
  flex:none;
  align-items:center;
}
.archive-modal-story .archive-lede{max-width:36em}
.archive-modal-story .archive-story-left .archive-oil,
.archive-modal-story .archive-oil[data-oil]{
  display:block;
  width:auto;
  height:min(200px, 20vh);
  max-height:20vh;
  align-self:center;
}
.archive-modal-story .archive-oil img{
  width:auto;
  height:min(200px, 20vh);
  max-height:20vh;
  object-fit:contain;
}
.archive-modal-story .archive-story-right{gap:40px}
.archive-modal-story .archive-story-right > .archive-photo,
.archive-modal-story .archive-story-right > .archive-video,
.archive-modal-story .archive-story-right > .archive-gallery,
.archive-modal-story .archive-story-right > .archive-extract,
.archive-modal-story .archive-story-right > .archive-voice-card{
  order:0;
  margin-bottom:0;
}
.archive-modal-story .archive-prose{
  align-items:center;
  max-width:580px;
  text-align:center;
}
.archive-modal-story .archive-photo,
.archive-modal-story .archive-extract,
.archive-modal-story .archive-voice-card,
.archive-modal-story .archive-gallery{width:100%}
.archive-modal-story .archive-photo figcaption,
.archive-modal-story .archive-gallery figcaption{justify-content:center;text-align:center}
.archive-modal-story .archive-photo-frame video{
  width:100%;
  height:auto;
}
.archive-modal-story .archive-video .archive-photo-frame video{
  width:100%;
  height:100%;
  object-fit:cover;
}

.archive-lightbox{
  position:fixed;
  inset:0;
  z-index:50;
  display:grid;
  place-items:center;
  padding:24px;
}
.archive-lightbox[hidden]{display:none}
.archive-lightbox-backdrop{
  position:absolute;
  inset:0;
  background:rgba(2,44,34,.5);
}
.archive-lightbox-dialog{
  position:relative;
  z-index:1;
  margin:0;
  max-width:min(960px,100%);
  max-height:calc(100vh - 48px);
}
.archive-lightbox-dialog img{
  display:block;
  max-width:100%;
  max-height:calc(100vh - 48px);
  width:auto;
  height:auto;
  border-radius:24px;
  background:#fff;
  box-shadow:0 16px 48px rgba(2,44,34,.18);
}

/* ---- closing CTA · same inset mesh card as `.archive-hero-card` ---------- */
.archive-cta{padding:24px}
body.archive-embed .archive-cta{padding:20px 20px 24px}
.archive-cta-card{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:40px;
  width:100%;
  min-height:0;
  padding:52px 100px;
  border-radius:24px;
  background:#022c22;
  color:#fff;
  text-align:center;
}
.archive-cta-paint{
  position:absolute;
  inset:0;
  z-index:0;
  width:100%;
  height:100%;
  overflow:hidden;
  pointer-events:none;
  background:#022c22;
}
.archive-cta-paint .landing-shader,
.archive-cta-paint .landing-shader-mesh,
.archive-cta-paint canvas{
  position:absolute;
  inset:0;
  display:block;
  width:100%;
  height:100%;
}
.archive-cta-paint .landing-shader::after{
  content:none;
  display:none;
}
.archive-cta-copy,
.archive-cta-well{position:relative;z-index:1}
.archive-cta-copy{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:40px;
  width:min(542px,100%);
  min-width:0;
}
.archive-cta-copy-top,
.archive-cta-copy-body{
  display:flex;
  flex-direction:column;
  align-items:center;
  width:100%;
  text-align:center;
}
.archive-cta-copy-top{gap:24px}
.archive-cta-copy-body{gap:12px}
.archive-cta-kicker{
  color:#fff;
  font-size:12px;
  font-weight:600;
  letter-spacing:.48px;
  line-height:12px;
  text-transform:uppercase;
}
.archive-cta-copy h2{
  position:relative;
  max-width:504px;
  margin-inline:auto;
  font-family:var(--archive-serif);
  font-weight:400;
  font-size:var(--archive-fs-h2);
  line-height:1;
  color:#fff;
  text-align:center;
  text-wrap:pretty;
}
.archive-cta-br-desk{display:none}
.archive-cta-br-mob{display:block}
.archive-cta-only-desk{display:none}
.archive-cta-only-mob{display:inline}
@media (min-width:901px){
  .archive-cta-br-desk{display:block}
  .archive-cta-br-mob{display:none}
  .archive-cta-only-desk{display:inline}
  .archive-cta-only-mob{display:none}
}
.archive-cta-accent{
  position:relative;
  z-index:0;
  display:inline-block;
  white-space:nowrap;
}
.archive-cta-mark{
  position:absolute;
  left:0;
  right:0;
  top:auto;
  bottom:-0.08em;
  z-index:-1;
  width:100%;
  height:0.16em;
  min-height:10px;
  background:url("/marketing/timeline-v7/cta-underline.svg") center / 100% 100% no-repeat;
  transform:rotate(1.53deg);
  pointer-events:none;
}
.archive-cta-copy-body p{
  max-width:542px;
  margin-inline:auto;
  color:#fff;
  font-size:16px;
  line-height:1.7;
  opacity:.7;
}
body.story-archive a.archive-cta-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-sizing:border-box;
  height:56px;
  min-height:56px;
  padding:20px 32px;
  border:0;
  border-radius:555px;
  background:#fff;
  color:#022c22;
  font:500 16px/1 var(--archive-sans);
  letter-spacing:0;
  white-space:nowrap;
  text-decoration:none;
  transition:transform .2s ease;
}
body.story-archive a.archive-cta-btn:hover{transform:translateY(-2px)}
body.story-archive a.archive-cta-btn:active{transform:scale(0.97)}
.archive-cta-well{
  flex:1;
  align-self:stretch;
  min-height:342px;
  border-radius:555px;
  background:#064e3b;
}

/* ---- footer · Figma 612:2907 ------------------------------------------- */
.archive-footer{
  position:relative;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  min-height:253px;
  padding:0;
  background:transparent;
  overflow:hidden;
}
.archive-footer-wordmark{
  position:absolute;
  inset:0;
  overflow:hidden;
  pointer-events:none;
}
.archive-footer-wordmark img{
  display:block;
  width:100%;
  height:auto;
  max-width:none;
}
.archive-footer-legal{
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  min-height:58px;
  padding:24px var(--archive-pad);
  background:transparent;
}
.archive-footer-legal nav{
  display:flex;
  align-items:center;
  gap:32px;
  flex:none;
}
.archive-footer-legal a,
.archive-footer-legal small,
.archive-footer-legal span{
  color:var(--archive-ink);
  font-size:12px;
  font-weight:500;
  line-height:1;
  text-decoration:none;
  opacity:.3;
}
.archive-footer-legal a:hover{opacity:1}

.archive-progress{display:none}

@media (max-width:1180px){
  body.story-archive{
    --archive-pad:36px;
    --archive-fs-h1:56px;
    --archive-fs-h2:52px;
    --archive-fs-display:48px;
  }
  .archive-hero-card{padding:44px 48px}
  .archive-tabs{
    position:relative;
    top:auto;
    transition:transform 220ms var(--archive-ease-out);
  }
  .archive-tabs-inner{padding:0 36px}
  body.story-archive.is-tabs-fixed .archive-tabs{
    position:fixed;
    top:0;
    left:0;
    right:0;
  }
  body.story-archive.is-tabs-hidden .archive-tabs{
    transform:translateY(-100%);
    pointer-events:none;
  }
  .archive-archive{flex-direction:column;align-items:stretch}
  .archive-rail{display:none}
  .archive-main{width:100%;max-width:none}
  body.story-archive.landing main.archive-main{
    width:100% !important;
    max-width:none !important;
  }
  .archive-story{
    flex-direction:column;
    align-items:stretch;
    gap:52px;
    scroll-margin-top:calc(var(--archive-tabs-h) + 24px);
  }
  .archive-story-left,
  .archive-story-right{
    position:static;
    flex:none;
    align-self:stretch;
    width:100%;
    max-width:none;
    min-width:0;
  }
  .archive-story-left{
    flex-direction:row;
    align-items:center;
    gap:72px;
  }
  .archive-story-type{flex:1;min-width:0}
  .archive-lede{max-width:none}
  .archive-story-right{
    align-items:stretch;
    gap:0;
  }
  .archive-story-right > .archive-photo,
  .archive-story-right > .archive-video,
  .archive-story-right > .archive-gallery,
  .archive-story-right > .archive-extract,
  .archive-story-right > .archive-voice-card{
    order:1;
    align-self:stretch;
    width:100%;
    max-width:none;
    margin-bottom:52px;
  }
  .archive-copy,
  .archive-prose-lead{order:2}
  .archive-prose-rest{order:3}
  .archive-prose{max-width:580px}
  .archive-prose-lead + .archive-prose-rest,
  .archive-copy + .archive-prose-rest{margin-top:1.65em}
  .archive-cta-card{padding:44px 48px}
  .archive-album-grid,
  .archive-thoughts-list{grid-template-columns:repeat(2,minmax(0,1fr))}
  .archive-progress{
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    z-index:21;
    background:var(--archive-paper);
    padding:12px var(--archive-pad) calc(12px + env(safe-area-inset-bottom,0px));
  }
  .archive-read{
    position:absolute;
    top:0;
    left:0;
    right:0;
    height:2px;
    background:var(--archive-hair);
    overflow:hidden;
    pointer-events:none;
  }
  .archive-read::after{
    content:"";
    display:block;
    width:calc(var(--archive-read,0) * 100%);
    height:100%;
    background:var(--archive-label);
  }
  body.story-archive.is-progress-on[data-view="timeline"] .archive-progress{display:block}
  body.story-archive.is-progress-on[data-view="timeline"]{padding-bottom:65px}
  .archive-progress-track{
    display:flex;
    gap:48px;
    overflow-x:auto;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior-x:contain;
    touch-action:pan-x;
    cursor:grab;
    user-select:none;
    mask-image:linear-gradient(to right,#000 84%,transparent);
  }
  .archive-progress-track.is-dragging{cursor:grabbing}
  .archive-progress-track.is-dragging .archive-progress-link{pointer-events:none}
  .archive-progress-track::-webkit-scrollbar{display:none}
  .archive-progress-link{
    display:flex;
    flex-direction:column;
    gap:2px;
    flex:none;
    padding:4px 0;
    text-decoration:none;
    white-space:nowrap;
    cursor:pointer;
  }
  .archive-progress-link[hidden]{display:none}
  .archive-progress-link small{
    color:var(--archive-year);
    font-size:12px;
    font-weight:500;
    line-height:normal;
    opacity:.4;
  }
  .archive-progress-link span{
    color:var(--archive-ink);
    font-size:12px;
    font-weight:500;
    line-height:normal;
    opacity:.3;
  }
  .archive-progress-link.is-current small,
  .archive-progress-link.is-current span{opacity:1}
}
@media (max-width:820px){
  .archive-hero{padding:16px 16px 0}
  .archive-hero-card{min-height:0;padding:40px 24px}
  .archive-cta{padding:16px}
  .archive-cta-card{padding:40px 24px}
  .archive-footer{min-height:180px}
  .archive-footer-legal{flex-wrap:wrap}
  .archive-album-grid,
  .archive-thoughts-list{grid-template-columns:1fr}
  .archive-album-voice{height:314px;min-height:314px;padding:40px}
  .archive-modal{padding:12px}
  .archive-modal-dialog{max-height:calc(100dvh - 48px)}
  .archive-modal-body{padding:20px}
  .archive-modal-close,
  .archive-lightbox-close{top:14px;right:14px}
  body.archive-embed .archive-modal{
    padding:72px 16px 16px;
    align-items:start;
  }
  body.archive-embed .archive-modal-dialog{
    width:calc(100% - 8px);
    max-height:calc(100% - 28px);
  }
  body.archive-embed .archive-modal-close,
  body.archive-embed .archive-lightbox-close{top:10px;right:10px}
}
@media (max-width:600px){
  body.story-archive{
    --archive-pad:24px;
    --archive-fs-h1:48px;
    --archive-fs-h2:40px;
    --archive-fs-display:36px;
  }
  .archive-hero{padding:16px 16px 0}
  .archive-hero-card{min-height:0;padding:52px 24px;gap:24px}
  .archive-hero-copy{
    display:flex;
    flex-direction:column;
    gap:16px;
    width:100%;
  }
  .archive-hero-copy p{margin-top:0;line-height:1.6}
  .archive-tabs-inner{padding:0 24px}
  .archive-archive{padding:40px 24px 152px}
  .archive-story{gap:32px}
  .archive-story-left{
    flex-direction:column;
    align-items:flex-start;
    gap:16px;
  }
  .archive-story-left .archive-oil{display:none}
  .archive-story-right{gap:32px}
  .archive-story-right > .archive-photo,
  .archive-story-right > .archive-video,
  .archive-story-right > .archive-gallery,
  .archive-story-right > .archive-extract,
  .archive-story-right > .archive-voice-card{margin-bottom:0}
  .archive-cta{padding:16px}
  .archive-cta-card{padding:52px 24px;gap:24px}
  .archive-cta-copy{gap:24px}
  .archive-cta-copy-top{gap:16px}
  .archive-cta-copy h2{line-height:1.1}
  body.story-archive a.archive-cta-btn{align-self:stretch;width:100%}
  .archive-footer{min-height:142px}
  .archive-footer-wordmark{
    position:relative;
    inset:auto;
    height:70px;
    width:100%;
  }
  .archive-footer-wordmark img{
    width:100%;
    height:118px;
  }
  .archive-footer-legal{
    display:grid;
    grid-template-columns:1fr 1fr;
    grid-template-areas:"about privacy" "copy terms";
    align-items:center;
    gap:12px;
    min-height:58px;
    padding:0 24px 24px;
  }
  .archive-footer-legal nav{display:contents}
  .archive-footer-legal span,
  .archive-footer-made{display:none}
  .archive-footer-legal small{grid-area:copy}
  .archive-footer-about{grid-area:about}
  .archive-footer-privacy{grid-area:privacy;justify-self:end}
  .archive-footer-terms{grid-area:terms;justify-self:end}
  .archive-progress{padding:12px 24px calc(12px + env(safe-area-inset-bottom,0px))}
}

@container (max-width:880px){
  .archive-story{
    --archive-fs-h2:52px;
    --archive-fs-display:48px;
    flex-direction:column;
    align-items:stretch;
    gap:52px;
  }
  .archive-story-left,
  .archive-story-right{
    position:static;
    flex:none;
    align-self:stretch;
    width:100%;
    max-width:none;
    min-width:0;
  }
  .archive-story-left{
    flex-direction:row;
    align-items:center;
    gap:72px;
  }
  .archive-story-type{flex:1;min-width:0}
  .archive-lede{max-width:none}
  .archive-story-right{
    align-items:stretch;
    gap:0;
  }
  .archive-story-right > .archive-photo,
  .archive-story-right > .archive-video,
  .archive-story-right > .archive-gallery,
  .archive-story-right > .archive-extract,
  .archive-story-right > .archive-voice-card{
    order:1;
    align-self:stretch;
    width:100%;
    max-width:none;
    margin-bottom:52px;
  }
  .archive-copy,
  .archive-prose-lead{order:2}
  .archive-prose-rest{order:3}
  .archive-prose{max-width:580px}
  .archive-prose-lead + .archive-prose-rest,
  .archive-copy + .archive-prose-rest{margin-top:1.65em}
}
@container (max-width:600px){
  .archive-story{
    --archive-fs-h2:40px;
    --archive-fs-display:36px;
    gap:32px;
  }
  .archive-story-left{
    flex-direction:column;
    align-items:flex-start;
    gap:16px;
  }
  .archive-story-left .archive-oil{display:none}
  .archive-story-right{gap:32px}
  .archive-story-right > .archive-photo,
  .archive-story-right > .archive-video,
  .archive-story-right > .archive-gallery,
  .archive-story-right > .archive-extract,
  .archive-story-right > .archive-voice-card{margin-bottom:0}
}
@media (max-width:600px){
  .archive-timeline{gap:52px}
  .archive-break,
  .archive-break[data-orient="vert"]{height:5px}
  .archive-story{gap:32px}
  .archive-story-right{gap:32px}
}

/* ---- /example-empty · Figma 1116:5381 ------------------------------------ */
body.story-archive.landing [data-example-empty]{
  min-height:100dvh;
}
.archive-empty-stage{
  position:relative;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  min-height:100dvh;
  background:var(--archive-paper);
}
.archive-empty-copy{
  position:absolute;
  top:0;
  right:0;
  bottom:calc(100vw * 1053 / 2880);
  left:0;
  z-index:2;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:32px;
  padding:52px;
  pointer-events:none;
}
.archive-empty-portrait{
  width:100px;
  height:100px;
  flex:none;
  border-radius:222px;
  object-fit:cover;
}
.archive-empty-heading-block{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:12px;
  width:min(1192px,100%);
}
body.story-archive [data-example-empty] .archive-empty-heading-block h1{
  position:relative;
  width:max-content;
  max-width:100%;
  margin:0;
  color:#022c22;
  font-family:var(--archive-serif);
  font-weight:400;
  font-size:min(72px,calc((100vw - 48px) / 8.57));
  line-height:1;
  text-align:center;
  white-space:nowrap;
}
.archive-empty-underline{
  position:absolute;
  left:calc(50% - 0.6626em);
  top:0.8322em;
  display:flex;
  align-items:center;
  justify-content:center;
  width:185.703px;
  height:14.277px;
  transform:translateX(-50%) scale(calc(1em / 72px));
  transform-origin:center center;
  pointer-events:none;
}
.archive-empty-underline img{
  display:block;
  max-width:none;
  transform:rotate(1.25deg);
}
body.story-archive [data-example-empty] .archive-empty-heading-block p{
  width:min(530px,100%);
  margin:0;
  color:#404040;
  font-size:16px;
  line-height:1.65;
  text-align:center;
}
.archive-empty-scene{
  position:relative;
  z-index:1;
  display:flex;
  align-items:flex-end;
  height:min(62dvh,calc(100vw * 1452 / 2880));
  overflow:hidden;
}
.archive-empty-desk{
  display:block;
  width:100%;
  height:100%;
  max-width:none;
  object-fit:cover;
  object-position:center bottom;
}
.archive-empty-footer{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  z-index:2;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:24px 52px;
  color:rgba(255,255,255,.6);
  font-size:14px;
  line-height:1;
}
.archive-empty-footer span,
.archive-empty-footer a{
  color:rgba(255,255,255,.6);
}
.archive-empty-footer nav{
  display:flex;
  align-items:center;
  gap:32px;
}
@media (hover:hover){
  .archive-empty-footer a:hover{
    color:#fff;
  }
}
@media (max-width:1100px){
  .archive-empty-copy{
    gap:28px;
    padding:40px 32px;
  }
  .archive-empty-footer{
    padding:18px 32px 20px;
  }
}
@media (max-width:720px){
  .archive-empty-stage{
    display:flex;
    flex-direction:column;
  }
  .archive-empty-copy{
    bottom:calc(30dvh * 1053 / 1452);
    justify-content:center;
    gap:20px;
    padding:24px 20px;
  }
  .archive-empty-portrait{
    width:72px;
    height:72px;
  }
  .archive-empty-scene{
    flex:none;
    height:30dvh;
    min-height:30dvh;
    margin-top:0;
  }
  .archive-empty-desk{
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center bottom;
  }
  .archive-empty-footer{
    flex-wrap:nowrap;
    gap:12px;
    padding:12px 16px 14px;
    font-size:12px;
  }
  .archive-empty-footer nav{
    gap:16px;
  }
}
