/* IKI 6.8 — correspondence in indigo. The material moves; the reader rests.
   Do not flatten the preserve-3d sheet/flap with opacity, filter or clipping. */
.sample-page, #story-sample-dialog {
  --letter-ease: cubic-bezier(.22,.7,.16,1);
  --letter-paper: #eeeadf;
  --letter-fibre: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23777462' opacity='.16' filter='url(%23n)' d='M0 0h180v180H0z'/%3E%3C/svg%3E");
}
.sample-page { background: radial-gradient(ellipse at 50% 20%,#18313f 0%,#091720 55%,#060e15 100%); }
.sample-page-main { max-width: 1160px; padding: 22px 36px 30px; }
.sample-page-bar, .sample-page-footer { max-width: 1160px; }
#story-sample-dialog { width: min(1192px,calc(100vw - 40px)); max-height: calc(100dvh - 32px); border: 0; background: #091720; box-shadow: 0 40px 160px #000b; overflow-x: hidden; }
#story-sample-dialog::backdrop { background: #02080fe8; }
.sample-dialog-bar { min-height: 58px; padding: 8px 32px; background: #091720f7; border-bottom-color: #9ab4b025; }
.sample-dialog-bar button { min-height: 44px; }
#story-sample-dialog .sample-dialog-bar p { color: #adbfbe; font-size: 11px; letter-spacing: .055em; }
[data-story-sample-mount] { padding: 28px 44px 42px; background: radial-gradient(ellipse at 50% 25%,#233b4859,transparent 72%); }
[data-story-sample-mount][data-sample-state="loading"], [data-story-sample-mount][data-sample-state="error"] { min-height: min(780px,calc(100dvh - 90px)); }
.sample-loading { text-align: center; padding-top: 130px; }
.sample-loading::before { content: ""; display: block; width: 54px; height: 36px; margin: 0 auto 26px; border: 1px solid #adc4c180; background: linear-gradient(33deg,transparent 49%,#adc4c180 50%,transparent 52%) left top/50% 70% no-repeat,linear-gradient(-33deg,transparent 49%,#adc4c180 50%,transparent 52%) right top/50% 70% no-repeat; }
.sample-folio { grid-template-columns: 45% 55%; isolation: auto; perspective: 2200px; perspective-origin: 50% 40%; box-shadow: 0 24px 65px #0005,1px 1px 0 #eee9d9,3px 3px 0 #b1b0a3,5px 5px 0 #e9e5d9,7px 7px 0 #6a746f; }
#story-sample-dialog .sample-folio { box-shadow: 0 24px 65px #0005,1px 1px 0 #eee9d9,3px 3px 0 #b1b0a3,5px 5px 0 #e9e5d9,7px 7px 0 #6a746f; }
.sample-cover { z-index: 1; transform-origin: right center; backface-visibility: hidden; -webkit-backface-visibility: hidden; border: 1px solid #9db3b32e; }
.sample-cover::before { content: ""; position: absolute; z-index: 4; inset: 0 0 0 auto; width: 24px; background: linear-gradient(90deg,transparent,#0003 68%,#0007); pointer-events: none; }
.sample-cover::after { background: linear-gradient(180deg,#071822f5,#102b39d9 48%,#09192414); }
.sample-cover-content { padding: 36px 38px; }
.sample-cover-title { margin-top: 78px; }
.sample-cover h1 { font-size: clamp(48px,4.6vw,68px); }
.sample-cover-photo { object-position: 55% 80%; }
.sample-wordmark { letter-spacing: .22em; font-size: 9px; }
.sample-cover-rule { width: 66px; background: linear-gradient(90deg,#bdd5d6,transparent); }
.sample-paper { z-index: 2; padding: 30px 38px 25px; background: var(--letter-fibre),linear-gradient(100deg,#dad6c8 0,#e9e5d9 3%,#f4f0e5 24%,#eeeadf); box-shadow: inset 1px 0 0 #f9f5ed; transform-origin: left center; }
.sample-paper::before { background: linear-gradient(90deg,#40545018,transparent 7%); opacity: 1; }
.sample-paper::after { content: ""; position: absolute; top: 0; bottom: 0; left: 7px; width: 1px; background: #fff7; pointer-events: none; }
.sample-folio .sample-introduction { font-size: 11px; max-width: 350px; margin: 12px 0 16px; }
.sample-nav { gap: 15px; margin-bottom: 0; border-bottom-color: #8a9c9255; }
.sample-nav button { padding-top: 10px; min-height: 56px; font-size: 10px; }
.sample-nav button span { margin-bottom: 5px; font-size: 9px; }
.sample-chapters { position: relative; padding: 28px 24px; margin-inline: -24px; perspective: 1700px; perspective-origin: 0 45%; overflow: visible; }
[data-sample-ready="true"] .sample-chapters { min-height: 453px; }
.sample-chapter { position: relative; }
.sample-folio .sample-chapter h2 { font-size: clamp(33px,3.2vw,44px); margin-bottom: 23px; }
.sample-chapter > p:not(.sample-kicker) { font-size: 13px; line-height: 1.9; }
.sample-folio .sample-thought blockquote { font-size: 27px; }
.sample-notes > div { grid-template-columns: 88px 1fr; }
.sample-notes dd,.sample-serving dd { font-size: 12px; line-height: 1.85; }
.sample-serving > div { grid-template-columns: 68px 1fr; }
.sample-pagination { margin-top: 0; padding-top: 8px; gap: 14px; }
.sample-pagination [data-sample-next] { position: relative; padding-right: 27px; margin-left: auto; }
.sample-pagination [data-sample-next]::after { content: "↗"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font: 400 24px/1 var(--sample-serif); transition: transform 240ms var(--letter-ease); }
.sample-pagination [data-sample-next]:not(:disabled):hover::after { transform: translate(3px,calc(-50% - 3px)); }
.sample-pagination [data-sample-prev]:not(:disabled)::before { content: "← "; }
.letter-reader-tools { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--sample-line); padding-top: 7px; margin-top: 4px; }
.letter-reader-tools > span { color: #58706d; font: 400 9px/1.6 var(--sample-sans); letter-spacing: .07em; }
.letter-reader-tools button { min-height: 44px; padding: 5px 0 5px 12px; border: 0; background: none; color: #385762; font-size: 10px; text-align: right; }
.letter-reader-tools button::before { content: "↺"; margin-right: 7px; font-size: 16px; vertical-align: -1px; }
.sample-disclaimer { margin-top: 2px; padding-top: 11px; }
.sample-disclaimer p { font-size: 9px; line-height: 1.75; }
/* An envelope with separate construction planes: liner, letter, pocket,
   two-sided flap and seal. Clip only individual faces, never their 3D parent. */
.letter-opening { position: absolute; z-index: 30; inset: 0; display: flex; align-items: flex-start; justify-content: center; padding-top: clamp(110px,18vh,190px); pointer-events: none; perspective: 1800px; }
.letter-envelope { position: relative; width: min(600px,82%); aspect-ratio: 1.62; transform-style: preserve-3d; transform: rotateX(12deg) rotateY(-6deg) rotateZ(-3deg); transition: transform 900ms var(--letter-ease); }
.letter-envelope-back { position: absolute; inset: 0; background: var(--letter-fibre),#dfdaca; border: 1px solid #dedacb; box-shadow: 0 32px 55px #0007; transform: translateZ(-2px); }
.letter-envelope-back::after { content: ""; position: absolute; inset: 8px; background: repeating-linear-gradient(125deg,#142e3b,#142e3b 2px,#183441 2px,#183441 4px); border: 1px solid #c5c2b4; }
.letter-insert { position: absolute; inset: 7% 5% 4%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 15px; background: var(--letter-fibre),linear-gradient(115deg,#f4f0e5,#e6e1d4); color: #25424c; box-shadow: 1px 2px 0 #c6c4b5,3px 4px 0 #e6e2d5,0 8px 18px #04141d44; transform: translateZ(1px); transition: transform 820ms var(--letter-ease); font: 400 13px/1.6 var(--sample-sans); letter-spacing: .19em; }
.letter-insert img { width: 60px; height: 60px; opacity: .7; }
.letter-insert span { font-size: 10px; }
.letter-envelope-pocket { position: absolute; inset: 0; transform: translateZ(4px); background: var(--letter-fibre),linear-gradient(150deg,#e9e4d6,#ddd7c8); clip-path: polygon(0 0,50% 55%,100% 0,100% 100%,0 100%); }
.letter-envelope-pocket::after { content: ""; position: absolute; inset: 0; background: var(--letter-fibre),linear-gradient(175deg,#f0ebde,#e0dacc); clip-path: polygon(0 100%,0 91%,50% 42%,100% 91%,100% 100%); }
.letter-envelope-pocket::before { content: ""; position: absolute; inset: 0; background: linear-gradient(35deg,transparent 49.8%,#b8b8a56e 50%,transparent 50.3%) left bottom/51% 60% no-repeat,linear-gradient(-35deg,transparent 49.8%,#b8b8a56e 50%,transparent 50.3%) right bottom/51% 60% no-repeat; z-index: 1; }
.letter-envelope-flap { position: absolute; top: 0; left: 0; width: 100%; height: 58%; transform-origin: center top; transform-style: preserve-3d; transform: translateZ(6px) rotateX(0deg); transition: transform 780ms cubic-bezier(.3,.5,.15,1); }
.letter-flap-face { position: absolute; inset: 0; clip-path: polygon(0 0,100% 0,50% 100%); backface-visibility: hidden; -webkit-backface-visibility: hidden; background: var(--letter-fibre),linear-gradient(170deg,#f3eee1,#d5cfbf); }
.letter-flap-front { transform: translateZ(.6px); }
.letter-flap-back { transform: rotateX(180deg) translateZ(.6px); clip-path: polygon(0 100%,100% 100%,50% 0); background: var(--letter-fibre),linear-gradient(#d1cbbc,#e7e1d3); }
.letter-envelope-seal { position: absolute; left: 50%; top: 47%; width: 64px; height: 64px; border: 1px solid #b1b6a985; border-radius: 50%; display: grid; place-items: center; background: var(--letter-fibre),linear-gradient(140deg,#f5f1e6,#d8d3c6); box-shadow: 1px 2px 5px #132d3a27,inset 0 1px 1px #fff; transform: translate3d(-50%,-10%,9px); transition: transform 400ms var(--letter-ease),opacity 260ms ease; }
.letter-envelope-seal img { width: 42px; height: 42px; opacity: .54; }
.letter-envelope-address { position: absolute; z-index: 6; left: 0; right: 0; bottom: 14%; transform: translateZ(6px); color: #576a69; font: 400 9px/1.5 var(--sample-sans); letter-spacing: .22em; text-align: center; }
.letter-insert .letter-insert-mark { font: 400 48px/1 var(--sample-serif); letter-spacing: .12em; }
.letter-insert-rule { width: 34px; height: 1px; background: #6b827a55; }
.letter-insert .letter-insert-note { font: italic 400 17px/1.5 var(--sample-serif); letter-spacing: 0; }
.sample-folio .letter-opening-caption { position: absolute; top: calc(clamp(110px,18vh,190px) + min(370px,50vw) + 45px); left: 0; right: 0; color: #a7bcbd; text-align: center; font: italic 400 22px/1.5 var(--sample-serif); letter-spacing: .025em; }
.letter-verso { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.letter-verso-mark { font: 400 42px/1 var(--sample-serif); letter-spacing: .12em; color: #829187; }
.letter-verso-rule { width: 34px; height: 1px; background: #87988a55; }
.letter-verso-number { font: italic 400 26px/1 var(--sample-serif); margin-top: 20px; color: #8c968b; }
[data-letter-state="sealed"], [data-letter-state="unsealing"], [data-letter-state="unfolding"] { box-shadow: none !important; }
[data-letter-state="sealed"] > .sample-cover, [data-letter-state="unsealing"] > .sample-cover,
[data-letter-state="sealed"] > .sample-paper, [data-letter-state="unsealing"] > .sample-paper { visibility: hidden; }
[data-letter-state="unsealing"] .letter-envelope { transform: rotateX(4deg) rotateY(3deg) rotateZ(-1deg) translateY(-8px); }
[data-letter-state="unsealing"] .letter-envelope-seal,
[data-letter-state="unfolding"] .letter-envelope-seal { opacity: 0; transform: translate3d(-50%,-45%,85px) rotateZ(-12deg); }
[data-letter-state="unsealing"] .letter-envelope-flap,
[data-letter-state="unfolding"] .letter-envelope-flap { transform: translateZ(6px) rotateX(178deg); }
[data-letter-state="unfolding"] .letter-insert { transform: translate3d(0,-75%,90px) rotateX(-9deg); }
[data-letter-state="unfolding"] .letter-envelope { transform: translateY(90px) rotateX(18deg) scale(.93); }
[data-letter-state="unfolding"] .letter-opening { animation: letter-envelope-away 840ms var(--letter-ease) both; }
[data-letter-state="unfolding"] .letter-insert > *,
[data-letter-state="unfolding"] .letter-envelope-address,
[data-letter-state="unfolding"] .letter-opening-caption { animation: letter-envelope-ink-away 840ms linear both; }
[data-letter-state="unfolding"] > .sample-cover { animation: letter-cover-unfold 840ms var(--letter-ease) both; }
[data-letter-state="unfolding"] > .sample-paper { animation: letter-paper-settle 840ms var(--letter-ease) both; }
[data-letter-state="open"] .letter-opening { display: none; }
@keyframes letter-envelope-away { 0%,30% { opacity: 1; } 70%,100% { opacity: 0; } }
@keyframes letter-envelope-ink-away { 0% { opacity: 1; } 16%,100% { opacity: 0; } }
@keyframes letter-cover-unfold { 0%,34% { transform: rotateY(166deg); visibility: hidden; } 35% { visibility: visible; } 100% { transform: rotateY(0); visibility: visible; } }
@keyframes letter-paper-settle { 0%,34% { opacity: 0; transform: translateY(32px) rotateY(-12deg); } 70% { opacity: 1; } 100% { opacity: 1; transform: none; } }
/* Each moving leaf owns a readable front and a different, blank verso. */
.letter-turn-sheet { position: absolute; left: 0; top: 0; z-index: 5; transform-origin: left center; transform-style: preserve-3d; pointer-events: none; }
.letter-turn-face { position: absolute; inset: 0; padding: 28px 24px; background: var(--letter-fibre),linear-gradient(105deg,#e4dfd2,#f3efe4 22%,#eeeade); backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 0 0 1px #b8baa63b,8px 10px 22px #15252a20; }
.letter-turn-front { transform: translateZ(.7px); }
.letter-turn-back { transform: rotateY(180deg) translateZ(.7px); background: var(--letter-fibre),linear-gradient(95deg,#eeeade,#e1dccf); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; color: #55706d; font: 400 10px/1.7 var(--sample-sans); letter-spacing: .15em; text-align: center; }
.letter-turn-back::before { content: ""; position: absolute; inset: 16px; border: 1px solid #87988a26; }
.letter-turn-back img { width: 54px; height: 54px; opacity: .34; }
.letter-turn-back p { max-width: 170px; }
.letter-turn-underlay { position: absolute; z-index: 2; inset: 0; padding: 28px 24px; pointer-events: none; background: var(--letter-fibre),#eeeadf; }
.letter-turn-shadow { position: absolute; z-index: 1; inset: 0; pointer-events: none; background: linear-gradient(90deg,#162c395c,transparent 70%); opacity: 0; }
.letter-turn-glint { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg,transparent,#fff7 43%,#0001 70%,transparent); transform: translateZ(1.5px); backface-visibility: hidden; -webkit-backface-visibility: hidden; opacity: 0; }
.story-card-media .sample-open-label { padding: 11px 15px; letter-spacing: .03em; }
.story-card-media[data-story-sample-open] .media-inspect { transition: transform 320ms var(--letter-ease,cubic-bezier(.22,.7,.16,1)),background 320ms ease; }
.story-card-media[data-story-sample-open]:is(:hover,:focus-visible) .media-inspect { transform: translate(2px,-2px); background: #16333f; }
@media (max-width: 1000px) and (min-width: 761px) {
  [data-story-sample-mount] { padding: 25px 30px 36px; }
  .sample-folio { grid-template-columns: 40% 60%; }
  .sample-cover-content { padding: 30px 25px; }
  .sample-cover h1 { font-size: 48px; }
  .sample-paper { padding-inline: 30px; }
  .sample-folio .sample-chapter h2 { font-size: 35px; }
}
@media (max-width: 760px) {
  #story-sample-dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); }
  .sample-dialog-bar { min-height: 54px; padding: 6px 16px; gap: 12px; }
  #story-sample-dialog .sample-dialog-bar p { font-size: 10px; line-height: 1.6; max-width: 205px; }
  [data-story-sample-mount] { padding: 14px 12px 22px; }
  .sample-page-main { padding: 8px 17px 20px; }
  .sample-folio { grid-template-columns: 1fr; perspective-origin: 0 20%; }
  .sample-cover { transform-origin: center bottom; }
  .sample-cover::before { inset: auto 0 0; width: 100%; height: 15px; background: linear-gradient(0deg,#0005,transparent); }
  .sample-cover::after { background: linear-gradient(90deg,#081e2af5,#0a2230db 50%,#091d2740); }
  .sample-cover-content { padding: 22px 25px 26px; min-height: 253px; }
  .sample-cover-title { margin: 25px 0 0; }
  .sample-cover h1 { font-size: 43px; margin-top: 12px; line-height: .98; }
  .sample-wordmark { font-size: 8px; gap: 11px; }
  .sample-cover .sample-kicker { font-size: 9px; }
  .sample-paper { padding: 24px 25px 22px; }
  .sample-paper::after { display: none; }
  .sample-nav { gap: 10px; }
  .sample-nav button { font-size: 11px; }
  .sample-chapters { padding: 27px 20px 26px; margin-inline: -20px; perspective: 1100px; perspective-origin: 0 35%; }
  [data-sample-ready="true"] .sample-chapters { min-height: 0; }
  .sample-folio .sample-chapter h2 { font-size: 36px; }
  .sample-chapter > p:not(.sample-kicker) { font-size: 15px; line-height: 1.85; }
  .sample-notes > div, .sample-serving > div { grid-template-columns: 1fr; }
  .sample-notes dd,.sample-serving dd { font-size: 14px; }
  .sample-folio [data-sample-temperature-note] { font-size: 13px; }
  .sample-disclaimer p { font-size: 10px; }
  .sample-pagination { gap: 10px; flex-wrap: nowrap; }
  .sample-pagination button { font-size: 10px; }
  .sample-pagination [data-sample-position] { font-size: 9px; margin-left: 0; }
  .sample-pagination [data-sample-next] { padding-right: 22px; }
  .letter-reader-tools > span { font-size: 8px; }
  .letter-opening { padding-top: min(170px,24vh); }
  .letter-envelope { width: 89%; }
  .letter-envelope-seal { width: 42px; height: 42px; }
  .letter-envelope-seal img { width: 28px; height: 28px; }
  .letter-insert { gap: 10px; font-size: 10px; }
  .letter-insert img { width: 36px; height: 36px; }
  .letter-insert span { font-size: 8px; }
  .letter-insert .letter-insert-mark { font-size: 29px; }
  .letter-insert .letter-insert-note { font-size: 12px; }
  .letter-envelope-address { font-size: 7px; }
  .sample-folio .letter-opening-caption { top: calc(min(170px,24vh) + 55vw + 20px); font-size: 19px; }
  .letter-turn-face,.letter-turn-underlay { padding: 27px 20px 26px; }
  [data-letter-state="unfolding"] > .sample-cover { animation-name: letter-cover-mobile; }
  @keyframes letter-cover-mobile { 0%,34% { transform: rotateX(-105deg); visibility: hidden; } 35% { visibility: visible; } 100% { transform: rotateX(0); visibility: visible; } }
}
@media (max-width: 359px) {
  [data-story-sample-mount] { padding-inline: 8px; }
  .sample-cover-content,.sample-paper { padding-inline: 20px; }
  .sample-folio .sample-chapter h2 { font-size: 31px; }
  .sample-cover h1 { font-size: 40px; }
  .sample-pagination { gap: 7px; }
  .sample-pagination [data-sample-next] { padding-right: 19px; }
}
/* The opening object, including its raised flap, fits short laptop/landscape
   screens too. Reading itself keeps native scrolling and full-sized text. */
@media (max-height: 620px) {
  .letter-opening { --letter-short-height: min(260px,calc((100dvh - 144px) / 1.65),calc((100vw - 96px) / 1.62)); padding-top: calc(var(--letter-short-height) * .58 + 18px); }
  .letter-envelope { width: calc(var(--letter-short-height) * 1.62); }
  .sample-folio .letter-opening-caption { top: calc(var(--letter-short-height) * 1.58 + 36px); font-size: 18px; }
  .letter-insert { gap: 8px; }
  .letter-insert .letter-insert-mark { font-size: 31px; }
  .letter-insert .letter-insert-note { font-size: 12px; }
  .letter-envelope-address { font-size: 7px; }
  .letter-envelope-seal { width: 42px; height: 42px; }
  .letter-envelope-seal img { width: 28px; height: 28px; }
}
@media (max-height: 450px) { .sample-folio .letter-opening-caption, .letter-insert .letter-insert-note { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .letter-opening,.letter-turn-sheet,.letter-turn-underlay,.letter-turn-shadow { display: none !important; }
  .sample-folio > .sample-cover,.sample-folio > .sample-paper { visibility: visible !important; transform: none !important; }
}
html:is(.motion-off,.is-motion-still) .letter-opening { display: none; }
@media print {
  .letter-opening,.letter-turn-sheet,.letter-turn-underlay,.letter-turn-shadow,.letter-reader-tools { display: none !important; }
  .sample-folio,.sample-paper,.sample-cover { transform: none !important; visibility: visible !important; box-shadow: none !important; }
  [data-story-sample-mount] { padding: 0; background: white; }
  .sample-chapters { padding: 20px 0; margin: 0; }
}

/* V6.8: a fixed, generous hit plane contains a separate dimensional object.
   No preserve-3d ancestor may own this link. Every decorative child is inert
   to pointer hit-testing, including the arrow and the projected photo edge. */
.v65 .story-card-media[data-story-sample-open] {
  position: relative; display: block; padding: 0; border: 0; overflow: visible;
  transform: none !important; perspective: none; transform-style: flat;
  isolation: isolate; cursor: pointer; touch-action: manipulation;
  background: transparent; box-shadow: none; -webkit-tap-highlight-color: #b8c9cc25;
}
.v65 .story-card-media[data-story-sample-open]::after {
  content: ""; position: absolute; z-index: 9; inset: -12px;
  background: transparent; pointer-events: auto;
}
.v65 .story-card-media[data-story-sample-open] * { pointer-events: none !important; }
.v65 .story-card-media .card-folio { perspective: 1700px; }
.v65 .story-card-media .card-folio-object { border: 1px solid #aab9b153; background: #07111b; }
.v65 .story-card-media .card-folio-object picture { position: relative; z-index: 1; display: block; overflow: hidden; transform: translateZ(1px); }
.v65.motion-ready .story-card-figure .story-card-media .card-folio-object img,
.v65 .story-card-media .card-folio-object img { display: block; width: 100%; height: auto; transform: none !important; animation: none !important; scale: none; translate: none; }
.v65 .story-card-media .card-folio-light { top: 0; bottom: 0; width: 80%; clip-path: inset(0); }
.v65 .story-card-media .card-folio-inspection { pointer-events: none; }
/* Explicit depth AND paint order: WebKit must not paint the paper back over
   an unpositioned photograph when the semantic link is outside the 3D object. */
.v65 .story-card-media .card-folio-object::before { z-index: 0; transform: translate3d(5px,5px,-4px); background: repeating-linear-gradient(0deg,#b9b7a8 0 1px,#747f79 1px 2px,#dfdacc 2px 3px); }
.v65 .story-card-media .card-folio-object::after { z-index: 0; transform: translate3d(2px,2px,-2px); background: #d3d0c1; }
.card-folio-cut-edge { position: absolute; z-index: 2; inset: 0; transform: translateZ(2px); border-top: 1px solid #dce1d78c; border-right: 1px solid #f0eddf5c; box-shadow: inset -2px 0 2px #0710166b; }
.card-folio-light-clip { position: absolute; z-index: 3; inset: 0; transform: translateZ(3px); overflow: hidden; pointer-events: none; }
.v65 .story-card-media[data-story-sample-open]:focus-visible { outline: 2px solid #e2e9df; outline-offset: 10px; }
.v65 .story-card-media .sample-open-label { z-index: 6; left: 24px; bottom: 25px; right: 98px; padding: 13px 17px; background: #07131ef2; border: 1px solid #b8c9cc80; box-shadow: 0 5px 20px #0004; font-size: 12px; line-height: 1.5; }
.sample-open-hint { display: block; margin-top: 5px; color: #b3c5cc; font-size: 9px; letter-spacing: .035em; }
.sample-open-hint::after { content: "Click anywhere to unfold"; }
.v65 .story-card-media .media-inspect { z-index: 6; bottom: 25px; right: 24px; width: 50px; height: 50px; display: grid; place-items: center; border-color: #a7bdc299; color: #e0e8e3; background: #0b1c27ed; }
.v65 .story-card-media:hover .sample-open-label,
.v65 .story-card-media:focus-visible .sample-open-label { border-color: #dce7df; background: #102934; }
.v65 .story-card-media:active .media-inspect { background: #c7d5d1; color: #112630; }

/* Fibres are painted once. Fine grain belongs to the reading plane; longer
   kozo-like fibres and scoring are concentrated on unprinted construction. */
.sample-page, #story-sample-dialog {
  --letter-long-fibre: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='224' height='208' viewBox='0 0 224 208'%3E%3Cg fill='none' stroke='%237e8471' stroke-width='.65' opacity='.19'%3E%3Cpath d='M8 26q6-3 17-1m18 55q13-5 29-2m71-55q8 4 20 2M102 135q16-5 31-2M12 168q10 5 27 3M177 179q16-4 31-2M57 198q10-3 20-2M201 77q9-3 17-1M93 48l10-2M64 118l12 1'/%3E%3C/g%3E%3Cg stroke='%23fffdf5' stroke-width='.8' opacity='.4'%3E%3Cpath d='M16 49l17-2m81 53 22 2m46-52 14-2M31 150l24 2m108 2 13-1M86 183l22-3'/%3E%3C/g%3E%3C/svg%3E");
}
.sample-paper { background: var(--letter-fibre),linear-gradient(90deg,#d4cebd 0,#e1dccc 1.2%,#f2eee2 6%,#f3efe5 60%,#e8e3d5); box-shadow: inset 1px 0 #fffaf0,inset -1px 0 #b5b7a08c; }
.sample-paper::before { background: linear-gradient(90deg,#263d4230,transparent 3.6%,transparent 96%,#7680710c); }
.sample-paper::after { width: 3px; left: 8px; background: linear-gradient(90deg,#fff8,transparent); }
.sample-folio, #story-sample-dialog .sample-folio { box-shadow: 0 24px 65px #0006,1px 1px 0 #fff9e7,2px 2px 0 #9d9f91,3px 3px 0 #e9e4d6,4px 4px 0 #7f897e,5px 5px 0 #ddd8c8,7px 7px 0 #68766e; }
.sample-cover::before { width: 28px; background: linear-gradient(90deg,transparent,#0002 42%,#07101799 88%,#d6e1d652 96%,#09151faa); }
.sample-wordmark img { filter: drop-shadow(0 1px 0 #fff3) drop-shadow(0 -1px 1px #0009); }
.letter-envelope-back, .letter-envelope-pocket, .letter-envelope-flap, .letter-insert { --letter-fibre: var(--letter-long-fibre); }
.letter-envelope-back { box-shadow: 0 34px 52px #0007,0 9px 14px #0006,1px 2px 0 #b7b4a4; }
.letter-envelope-back::after { background: repeating-linear-gradient(125deg,#142d39 0 1px,#193542 1px 3px),#102733; box-shadow: inset 0 2px 8px #0006; border: 1px solid #9ba897; }
.letter-insert { border-top: 1px solid #fffbed; border-right: 1px solid #fffbedb3; box-shadow: 1px 1px 0 #b3b29e,2px 3px 0 #ede7d8,3px 4px 0 #939b8d,0 12px 22px #03111b52; }
.letter-insert::before { content: ""; position: absolute; inset: 14px; border: 1px solid #89978240; pointer-events: none; }
.letter-insert::after { content: ""; position: absolute; left: 0; right: 0; top: 52%; height: 2px; background: linear-gradient(#9e9b871b,#fff6); pointer-events: none; }
.letter-flap-front { box-shadow: inset 0 1px 0 #fff9; background: var(--letter-long-fibre),linear-gradient(170deg,#f7f2e5,#e7e0cf 54%,#bdbba96e); }
.letter-flap-back { background: var(--letter-long-fibre),linear-gradient(0deg,#b8b8a7,#e6dfcf 10%,#ece6d7 64%,#ccc6b5); }
.letter-envelope-seal { background: var(--letter-long-fibre),radial-gradient(ellipse at 32% 22%,#faf7ec,#d7d5c7 78%); border-color: #b1b8a6; box-shadow: 1px 3px 6px #162d3938,inset 0 1px 1px #fff,inset 0 -2px 3px #7e897038; }
.letter-envelope-seal::after { content: ""; position: absolute; inset: 4px; border: 1px solid #a1ad9645; border-top-color: #fff9; border-radius: 50%; pointer-events: none; }
.letter-envelope-seal img { opacity: .7; filter: drop-shadow(0 1px 0 #fff9); }
.letter-turn-face { background: var(--letter-fibre),linear-gradient(100deg,#d7d2c3,#f2eee2 8%,#f2eee3 83%,#e4dece); }
.letter-turn-back { background: var(--letter-long-fibre),var(--letter-fibre),linear-gradient(95deg,#e2ddcd,#f2ecde 35%,#d9d4c5); }
.letter-turn-shadow { z-index: 3; transform-origin: left center; background: linear-gradient(90deg,#162831ad, #1b2a336b 28%,transparent 100%); }
.letter-turn-glint { background: linear-gradient(90deg,transparent 60%,#fbf8e969 87%,#c1c0ad4d 99%); }
.letter-leaf-curl { position: absolute; z-index: 2; top: 0; bottom: 0; right: 0; width: 10px; pointer-events: none; transform-origin: left center; background: var(--letter-long-fibre),linear-gradient(90deg,#e6e0ce00,#e1dcc9 36%,#fff8e7 68%,#b7bcaa 100%); }
.letter-leaf-edge { position: absolute; z-index: 3; right: 0; top: 0; bottom: 0; width: 2px; pointer-events: none; background: repeating-linear-gradient(0deg,#eae7d7 0 2px,#bcbdaa 2px 3px,#fcf6e8 3px 5px); box-shadow: 1px 0 0 #a1ab993d; }
.letter-turn-back .letter-leaf-curl,.letter-turn-back .letter-leaf-edge { left: 0; right: auto; transform-origin: right center; }
.letter-turn-back .letter-leaf-curl { background: var(--letter-long-fibre),linear-gradient(90deg,#a8b09d,#fcf4e3 35%,#e2dbc8 67%,#e2dbc800); }
.letter-turn-back-glint { position: absolute; inset: 0; background: linear-gradient(110deg,#fdf8e638,transparent 45%,#b9baa233); background-size: 160% 100%; pointer-events: none; opacity: 0; }
.sample-nav button { transition: color 220ms ease,background 220ms ease; }
.sample-nav button[aria-selected="true"] { background: linear-gradient(0deg,#718a8612,transparent 75%); }
.sample-pagination button { min-width: 52px; }
.sample-pagination button:focus-visible,.sample-nav button:focus-visible,.letter-reader-tools button:focus-visible { outline-offset: 2px; }
.sample-temperature button { min-height: 46px; }
.sample-dialog-bar { padding-top: max(8px,env(safe-area-inset-top)); }
@media (hover: none) { .sample-open-hint::after { content: "Tap anywhere to unfold"; } }
@media (max-width: 760px) {
  .v65 .story-card-media .sample-open-label { left: 15px; bottom: 18px; right: 80px; padding: 10px 13px; font-size: 11px; }
  .v65 .story-card-media .media-inspect { right: 15px; bottom: 18px; width: 46px; height: 46px; }
  .sample-open-hint { font-size: 9px; margin-top: 3px; }
  .sample-cover::before { width: 100%; height: 17px; background: linear-gradient(0deg,#0b192d66,transparent); }
  .sample-paper { background: var(--letter-fibre),linear-gradient(100deg,#e4dece,#f3efe4 7%,#eee9dc 95%,#ded9c9); }
  .letter-leaf-curl { width: 7px; }
  .letter-reader-tools { gap: 10px; }
  .letter-reader-tools > span { font-size: 9px; max-width: 140px; }
  .letter-reader-tools button { min-width: 84px; }
}
@media (max-width: 359px) {
  .v65 .story-card-media .sample-open-label { font-size: 10px; left: 12px; right: 70px; padding: 10px; }
  .v65 .story-card-media .media-inspect { right: 12px; }
}
@media (prefers-reduced-motion: reduce) { .v65 .story-card-media .card-folio-inspection,.v65 .story-card-media .card-folio-object { transition: none; } }
