:root {
  --night: #100C0B;
  --bone: #EFE6D8;
  --rose: #E8A0A4;
  --ink: #1B1714;

  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, sans-serif;
  --roman: "Cinzel", "Trajan Pro", Georgia, serif;
  --venice: "Cormorant Garamond", Garamond, Georgia, serif;
  --fell: "IM Fell French Canon", Georgia, serif;
  --script: "Pinyon Script", "Snell Roundhand", cursive;
  --type: "Courier Prime", "Courier New", monospace;
  --grot: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --vt: "VT323", ui-monospace, Menlo, monospace;
  --law: "Source Serif 4", Georgia, serif;
  --ui: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(16px, 4.5vw, 80px);
  --rail-w: 120px;
  --bar-h: 72px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --fg: var(--bone);
  --z-bar: 30; --z-cursor: 50; --z-intro: 60;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--night);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body[data-tone="light"] { --fg: var(--ink); }
body.is-loading { overflow: hidden; }

button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 4px; border-radius: 4px; }
body[data-tone="light"] :focus-visible { outline-color: #B3262E; }
p { margin: 0; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.intro {
  position: fixed; inset: 0; z-index: var(--z-intro);
  background: var(--night); color: var(--bone);
  display: grid; place-items: center; align-content: center; gap: 12px;
}
.intro-count { font-family: var(--display); font-style: italic; font-size: clamp(3.4rem, 9vw, 8rem); line-height: 1; font-variant-numeric: tabular-nums lining-nums; }
.ic-pre { font-size: .5em; opacity: .55; }
.intro-word { font-size: .75rem; letter-spacing: .3em; text-transform: uppercase; opacity: .5; }
.intro-word span { opacity: .6; }
html:not(.js) .intro { display: none; }
html:not(.js) body.is-loading { overflow: auto; }

.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor { display: block; position: fixed; left: 0; top: 0; z-index: var(--z-cursor); pointer-events: none; }
  .c-dot {
    position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%;
    background: var(--fg);
    transition: transform .35s var(--ease), background-color .3s ease, opacity .3s ease;
  }
  .c-label {
    position: absolute; left: 0; top: 0; transform: translate(-50%, -50%) scale(.6);
    font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600;
    color: var(--night); white-space: nowrap; opacity: 0;
    transition: opacity .25s ease, transform .35s var(--ease);
  }
  body[data-tone="light"] .c-label { color: #fff; }
  .cursor.has-label .c-dot { transform: scale(8.6); }
  .cursor.has-label .c-label { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  .cursor.is-hidden .c-dot, .cursor.is-hidden .c-label { opacity: 0; }
}

.bar {
  position: fixed; inset: 0 0 auto; z-index: var(--z-bar);
  height: var(--bar-h);
  padding: env(safe-area-inset-top) var(--gutter) 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  color: var(--fg);
  transition: color .25s ease;
  pointer-events: none;
}
.bar > * { pointer-events: auto; }
.logo { font-family: var(--display); font-style: italic; font-size: 1.45rem; color: inherit; text-decoration: none; letter-spacing: -.01em; }
.logo span { font-style: normal; opacity: .5; }
.now { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; opacity: .7; display: none; font-variant-numeric: tabular-nums; }
.bar-r { display: flex; align-items: center; gap: 10px; }

.sound {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid color-mix(in srgb, var(--fg) 25%, transparent); border-radius: 999px;
  background: none; cursor: pointer; padding: 0 14px; min-height: 40px;
  font-size: .75rem; letter-spacing: .08em; font-weight: 500;
}
.eq { display: flex; align-items: flex-end; gap: 2px; height: 12px; }
.eq i { width: 2px; height: 3px; background: currentColor; border-radius: 1px; }
.sound[aria-pressed="true"] .eq i { animation: eq 1s ease-in-out infinite; }
.sound[aria-pressed="true"] .eq i:nth-child(2) { animation-delay: -.3s; }
.sound[aria-pressed="true"] .eq i:nth-child(3) { animation-delay: -.6s; }
.sound[aria-pressed="true"] .eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 12px; } }

.lang { display: flex; gap: 2px; border: 1px solid color-mix(in srgb, var(--fg) 25%, transparent); border-radius: 999px; padding: 3px; }
.lang button {
  border: 0; background: none; cursor: pointer;
  font-size: .75rem; letter-spacing: .08em; font-weight: 500;
  padding: 7px 12px; min-height: 32px; border-radius: 999px;
  opacity: .6; transition: opacity .25s ease, background-color .25s ease, color .25s ease;
}
.lang button[aria-pressed="true"] { opacity: 1; background: var(--fg); color: var(--night); }

.rail {
  position: fixed; right: var(--gutter); top: 50%; z-index: var(--z-bar);
  transform: translateY(-50%);
  color: var(--fg); transition: color .5s ease, opacity .5s ease;
  display: grid; grid-template-columns: auto 1px; gap: 14px;
}
.rail ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-column: 1; grid-row: 1; }
.rail-track { grid-column: 2; grid-row: 1; background: color-mix(in srgb, var(--fg) 20%, transparent); position: relative; }
.rail-track i { position: absolute; left: 0; top: 0; width: 1px; height: 100%; background: currentColor; transform-origin: 50% 0; transform: scaleY(var(--rp, 0)); }
.rail a {
  display: grid; grid-template-columns: 30px 40px; align-items: baseline; justify-items: end;
  color: inherit; text-decoration: none;
  font-size: .72rem; letter-spacing: .06em; font-variant-numeric: tabular-nums;
  opacity: .66; transition: opacity .3s ease;
  min-height: 24px;
}
@media (hover: hover) { .rail a:hover { opacity: .8; } }
.rail a[aria-current="true"] { opacity: 1; font-weight: 600; }
.r-n { font-family: var(--display); font-style: italic; font-size: .85rem; }
body[data-era="night"] .rail { opacity: 0; pointer-events: none; }

.era-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: clamp(24px, 4vh, 48px); }
.era-n { font-family: var(--display); font-style: italic; font-size: 1.3rem; opacity: .6; }
.era-date { margin: 0; font-weight: 400; font-size: clamp(2.2rem, 4.6vw, 4.4rem); line-height: 1; letter-spacing: -.01em; }
.fact { font-size: clamp(1.02rem, 1.2vw, 1.15rem); max-width: 34rem; text-wrap: pretty; }
.fact-2 { margin-top: 14px; opacity: .78; }
.hint { margin-top: 22px; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; opacity: .6; }

.era { position: relative; padding: calc(var(--bar-h) + 6vh) calc(var(--gutter) + var(--rail-w)) 12vh var(--gutter); }

.pro {
  min-height: 100svh;
  padding: calc(var(--bar-h) + 6vh) var(--gutter) max(32px, env(safe-area-inset-bottom));
  display: grid; grid-template-rows: auto 1fr auto; gap: 32px;
}
.pro-k { font-size: .75rem; letter-spacing: .24em; text-transform: uppercase; opacity: .6; }
.pro-title {
  align-self: center; margin: 0;
  font-family: var(--display); font-weight: 400; font-optical-sizing: auto;
  font-size: clamp(3.4rem, 10.5vw, 11.5rem); line-height: .92; letter-spacing: -.035em;
}
.pro-title .line { display: block; overflow: hidden; padding-bottom: .08em; }
.pro-title .line > span { display: inline-block; will-change: transform; }
.pro-title em { color: var(--rose); }
.pro-foot { display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: end; border-top: 1px solid color-mix(in srgb, var(--bone) 18%, transparent); padding-top: 20px; }
.pro-def { max-width: 30rem; font-size: .95rem; opacity: .8; }
.pro-word { font-family: var(--display); font-style: italic; font-size: 1.25rem; margin-right: 4px; }
.pro-dates { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; max-width: 36rem; justify-content: flex-end; }
.pro-dates a { color: inherit; text-decoration: none; font-family: var(--display); font-size: 1.25rem; opacity: .5; transition: opacity .25s ease, color .25s ease; display: inline-block; padding: 6px 0; }
@media (hover: hover) { .pro-dates a:hover { opacity: 1; color: var(--rose); } }

.rome {
  padding: 0;
  color: #2A251E;
  background-color: #D6CDBE;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .09' numOctaves='4' seed='3'/%3E%3CfeColorMatrix values='0 0 0 0 .45  0 0 0 0 .41  0 0 0 0 .35  0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 .3  0 0 0 0 .27  0 0 0 0 .22  0 0 0 .35 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}
.rome-scroll { height: 280vh; }
.rome-pin {
  position: sticky; top: 0; height: 100svh;
  padding: calc(var(--bar-h) + 4vh) calc(var(--gutter) + var(--rail-w)) 6vh var(--gutter);
  display: grid; grid-template-rows: auto 1fr auto; align-items: center;
}
.rome .era-date { font-family: var(--roman); font-weight: 500; letter-spacing: .06em; font-size: clamp(1.8rem, 3.6vw, 3.4rem); }
.stone {
  position: relative; margin: 0; padding: clamp(20px, 4vw, 56px) clamp(16px, 4vw, 64px);
  box-shadow: inset 0 0 0 1px rgba(80, 70, 56, .28), inset 0 0 0 9px rgba(80, 70, 56, .0), inset 0 0 0 10px rgba(80, 70, 56, .16);
  text-align: center;
}
.carve {
  overflow-wrap: anywhere;
  font-family: var(--roman); font-weight: 600;
  font-size: clamp(1.15rem, 3.7vw, 3.9rem); line-height: 1.32; letter-spacing: .07em; word-spacing: -.3em;
  color: transparent; text-wrap: balance;
}
.carve .w { white-space: nowrap; }
.carve .lt { display: inline-block; color: #D6CDBE; transform: translateY(.05em); transition: color .5s ease, text-shadow .5s ease, transform .5s var(--ease); }
.carve .lt.cut { color: #5A5042; transform: none; text-shadow: 0 1px 0 rgba(255, 255, 255, .6), 0 -1px 0 rgba(40, 32, 24, .45); }
.carve .dot { color: #5A5042; }
.dust { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.stone-cap { margin-top: 18px; font-family: var(--roman); font-size: clamp(.7rem, 1vw, .85rem); letter-spacing: .3em; color: #5A5144; }
.rome-copy { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 56px; align-items: start; }
.tr { font-family: var(--display); font-style: italic; font-size: clamp(1.25rem, 2vw, 1.8rem); line-height: 1.22; text-wrap: balance; }
.rome .fact { color: #3A332A; }

.tips { padding: 8vh calc(var(--gutter) + var(--rail-w)) 14vh var(--gutter); }
.tips-k { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: #5A5144; margin-bottom: 22px; }
.tablets { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 28px); }
.tablet { width: 100%; aspect-ratio: 4 / 5; border: 0; padding: 0; background: none; cursor: pointer; perspective: 1200px; display: block; }
.tb-in { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .9s var(--ease); }
.tablet[aria-pressed="true"] .tb-in { transform: rotateY(180deg); }
.tb-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 6px; display: grid; place-items: center; padding: 14%; }
.tb-front {
  background: radial-gradient(120% 90% at 40% 30%, #4A3420 0%, #2E1F12 100%);
  box-shadow: inset 0 0 0 12px #6B4A2B, inset 0 0 0 13px #2A1A0E, inset 0 0 0 14px #7A5634, 0 18px 30px -16px rgba(40, 28, 16, .7);
  grid-template-rows: 1fr auto;
}
.tb-la { font-family: var(--roman); font-weight: 600; font-size: clamp(1rem, 2.2vw, 2rem); letter-spacing: .14em; color: #CDB98E; text-shadow: 0 1px 0 rgba(0, 0, 0, .6), 0 -1px 0 rgba(255, 230, 180, .15); }
.tb-n { font-family: var(--roman); font-size: .9rem; color: #A88F63; letter-spacing: .2em; }
.tb-back { transform: rotateY(180deg); background: #EFE7D6; color: #2A251E; box-shadow: inset 0 0 0 1px rgba(80, 70, 56, .25), 0 18px 30px -16px rgba(40, 28, 16, .5); text-align: left; align-content: center; }
.tb-t { font-family: var(--display); font-style: italic; font-size: clamp(1rem, 1.5vw, 1.35rem); line-height: 1.3; text-wrap: pretty; }
@media (hover: hover) { .tablet:not([aria-pressed="true"]):hover .tb-in { transform: rotateY(-10deg) rotateX(4deg); } }
.exile { margin-top: 44px; max-width: 42rem; font-family: var(--display); font-size: clamp(1.3rem, 2.2vw, 2rem); line-height: 1.25; color: #3A332A; text-wrap: balance; }

.venise { padding: 0; background: #0B0A12; color: #EADFC8; }
.ven-stage { position: relative; min-height: 110svh; overflow: hidden; display: grid; align-items: center; padding: calc(var(--bar-h) + 6vh) calc(var(--gutter) + var(--rail-w)) 16vh var(--gutter); }
.mask-art {
  position: absolute; right: calc(var(--gutter) + var(--rail-w)); top: 50%; width: min(50vw, 760px); transform: translateY(-50%);
  fill: none; stroke: #C9A45C; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
}
.mask-art .eye { fill: #0B0A12; }
.mask-art .orn, .mask-art .ribbon { stroke-width: 1; opacity: .7; }
.ven-copy { position: relative; z-index: 3; max-width: 36rem; }
.venise .era-date { font-family: var(--venice); font-weight: 500; font-style: italic; font-size: clamp(2.8rem, 6vw, 6rem); color: #E7C98A; }
.venise .era-n { color: #C9A45C; }
.ven-lead { font-family: var(--venice); font-style: italic; font-weight: 500; font-size: clamp(1.5rem, 2.6vw, 2.4rem); line-height: 1.15; margin-bottom: 22px; text-wrap: balance; }
.venise .fact { color: #CFC4AE; }
.dark {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: #07060C;
  -webkit-mask-image: radial-gradient(circle var(--lr, 200px) at var(--lx, 30%) var(--ly, 50%), transparent 0%, transparent 52%, rgba(0, 0, 0, .86) 90%, rgba(0, 0, 0, .93) 100%);
          mask-image: radial-gradient(circle var(--lr, 200px) at var(--lx, 30%) var(--ly, 50%), transparent 0%, transparent 52%, rgba(0, 0, 0, .86) 90%, rgba(0, 0, 0, .93) 100%);
  transition: opacity .9s ease;
}
.ven-stage.is-lit .dark { opacity: 0; }
.light-all {
  position: absolute; z-index: 3; left: var(--gutter); bottom: 6vh;
  border: 1px solid rgba(201, 164, 92, .5); background: rgba(11, 10, 18, .6); color: #E7C98A;
  border-radius: 999px; padding: 0 18px; min-height: 44px; cursor: pointer;
  font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  transition: background-color .25s ease, transform .15s var(--ease);
}
.light-all:active { transform: scale(.97); }
@media (hover: hover) { .light-all:hover { background: rgba(201, 164, 92, .15); } }

.lettres {
  min-height: 100svh;
  background: radial-gradient(120% 80% at 70% 40%, #3A201B 0%, #2A1714 55%, #1D100E 100%);
  color: #EFE2CC;
}
.lettres .era-date { font-family: var(--fell); font-style: italic; font-size: clamp(2.6rem, 5.4vw, 5.2rem); }
.let-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px; align-items: center; }
.letter { --h: max(40rem, min(78vh, 640px)); position: relative; justify-self: center; width: min(100%, 500px); height: var(--h); perspective: 1400px; }
.sheet {
  position: absolute; inset: 0;
  padding: 11% 11% 9%;
  color: #2A1A12;
  background-color: #EADCBF;
  background-image:
    repeating-linear-gradient(90deg, rgba(120, 96, 60, .07) 0 1px, transparent 1px 38px),
    radial-gradient(120% 90% at 50% 50%, transparent 60%, rgba(120, 86, 40, .25) 100%);
  clip-path: inset(33.333% 0 33.333% 0);
  transition: clip-path .9s var(--ease) .25s;
  display: flex; flex-direction: column; gap: 20px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6);
}
.sheet > * { opacity: 0; transition: opacity .6s ease .7s; }
.sheet-head { font-family: var(--fell); font-size: 1rem; line-height: 1.4; }
.sheet-body { font-family: var(--fell); font-style: italic; font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.12; margin-top: auto; }
.sheet-tr { font-family: var(--fell); font-size: 1rem; opacity: .75; }
.sheet-sign { font-family: var(--script); font-size: clamp(2rem, 3.4vw, 2.6rem); line-height: 1; align-self: flex-end; color: #3B2414; transform: rotate(-4deg); }
.flap { position: absolute; left: 0; right: 0; height: 33.333%; transform-style: preserve-3d; transition: transform 1s var(--ease); pointer-events: none; }
.flap::before {
  content: ""; position: absolute; inset: 0;
  background-color: #E3D3B2;
  background-image: repeating-linear-gradient(90deg, rgba(120, 96, 60, .08) 0 1px, transparent 1px 38px), linear-gradient(rgba(0, 0, 0, .04), rgba(0, 0, 0, 0));
  backface-visibility: hidden; transform: rotateX(180deg);
}
.flap-top { top: 0; transform-origin: 50% 100%; transform: rotateX(-180deg); }
.flap-bottom { bottom: 0; transform-origin: 50% 0; transform: rotateX(180deg); }
.addr {
  position: absolute; inset: 0; display: grid; place-items: center; z-index: 1;
  font-family: var(--script); font-size: clamp(1.4rem, 2.6vw, 2rem); color: #3B2414;
  transform: rotateX(180deg); backface-visibility: hidden;
  padding: 0 10% 18%; text-align: center;
}
.seal {
  position: absolute; left: 50%; top: 50%; z-index: 3;
  width: 92px; height: 92px; margin: -46px 0 0 -46px;
  border: 0; padding: 0; background: none; cursor: pointer; border-radius: 50%;
  transition: transform .2s var(--ease);
}
@media (hover: hover) { .seal:hover { transform: scale(1.05) rotate(-4deg); } }
.seal:active { transform: scale(.94); }
.seal-l, .seal-r {
  position: absolute; inset: 0; border-radius: 47% 53% 50% 48% / 52% 46% 54% 48%;
  background: radial-gradient(circle at 38% 34%, #C23A35 0%, #8E1B1B 46%, #5E0E0F 100%);
  box-shadow: 0 2px 0 #4A0A0B, 0 8px 18px rgba(0, 0, 0, .45), inset 0 0 0 9px rgba(0, 0, 0, .12);
  transition: transform .8s var(--ease), opacity .8s ease;
}
.seal-l { clip-path: polygon(0 0, 54% 0, 46% 38%, 56% 62%, 47% 100%, 0 100%); }
.seal-r { clip-path: polygon(54% 0, 100% 0, 100% 100%, 47% 100%, 56% 62%, 46% 38%); }
.seal-m { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--fell); font-style: italic; font-size: 2.6rem; color: #5E0E0F; text-shadow: 0 1px 0 rgba(255, 140, 130, .35); transition: opacity .3s ease; }
.letter[data-open="true"] .sheet { clip-path: inset(0 0 0 0); }
.letter[data-open="true"] .sheet > * { opacity: 1; }
.letter[data-open="true"] .flap-top, .letter[data-open="true"] .flap-bottom { transform: rotateX(0deg); }
.letter[data-open="true"] .seal { pointer-events: none; }
.letter[data-open="true"] .seal-l { transform: translate(-70px, -24px) rotate(-34deg); opacity: 0; }
.letter[data-open="true"] .seal-r { transform: translate(70px, 34px) rotate(28deg); opacity: 0; }
.letter[data-open="true"] .seal-m { opacity: 0; }
.let-copy .hint { transition: opacity .4s ease; }
.lettres.is-open .let-copy .hint { opacity: 0; }

.kinsey { height: 240vh; padding: 0; background: #EFEBDD; color: #1E1C18; }
.kin-pin {
  position: sticky; top: 0; height: 100svh;
  padding: calc(var(--bar-h) + 4vh) calc(var(--gutter) + var(--rail-w)) 6vh var(--gutter);
  display: grid; grid-template-rows: auto 1fr;
}
.kinsey .era-date { font-family: var(--type); font-weight: 400; font-size: clamp(1.8rem, 3.6vw, 3.4rem); letter-spacing: -.03em; }
.kinsey .era-n { font-family: var(--type); font-style: normal; font-size: 1.1rem; }
.kin-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.report {
  background: #FBF9F2; padding: clamp(22px, 3.4vw, 48px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .06), 0 30px 60px -36px rgba(40, 32, 20, .45);
  font-family: var(--type); font-size: clamp(.95rem, 1.25vw, 1.15rem); line-height: 1.6;
  min-height: 16em;
}
.rep-h { font-size: .72rem; letter-spacing: .14em; color: #7A2F1F; margin-bottom: 1.6em; }
.rep-typed { white-space: pre-wrap; }
.caret { display: inline-block; width: .55em; height: 1em; vertical-align: -.12em; background: #1E1C18; animation: blink 1s steps(1) infinite; }
.stats { display: grid; gap: 34px; }
.st-n { font-family: var(--type); font-size: clamp(4rem, 9vw, 8.5rem); line-height: .9; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.st-l { font-family: var(--type); font-size: .95rem; margin-top: 10px; }
.halves { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; max-width: 360px; }
.halves i { aspect-ratio: 1; border-radius: 50%; border: 1.5px solid #1E1C18; transition: background-color .35s ease, border-color .35s ease, transform .35s var(--ease); }
.halves i.on { background: #B33A26; border-color: #B33A26; transform: scale(1.06); }
.st-note { font-size: .82rem; opacity: .65; max-width: 26rem; }

.pilule { height: 360vh; padding: 0; background: #F1EFE8; color: #1F3B4D; }
.pil-pin {
  position: sticky; top: 0; height: 100svh;
  padding: calc(var(--bar-h) + 4vh) calc(var(--gutter) + var(--rail-w)) 6vh var(--gutter);
  display: grid; grid-template-rows: auto 1fr;
}
.pilule .era-date { font-family: var(--grot); font-weight: 800; font-stretch: 112%; font-size: clamp(1rem, 1.6vw, 1.35rem); text-transform: uppercase; letter-spacing: .01em; }
.pilule .era-n { font-family: var(--grot); font-style: normal; font-weight: 800; font-size: 1.1rem; }
.pil-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.pil-year { font-family: var(--grot); font-weight: 800; font-stretch: 70%; font-size: clamp(6rem, 17vw, 17rem); line-height: .8; letter-spacing: -.02em; overflow: hidden; padding-bottom: .04em; font-variant-numeric: tabular-nums; }
.py { display: inline-block; }
.pil-fact { margin-top: 28px; font-family: var(--grot); font-size: clamp(1.1rem, 1.6vw, 1.4rem); line-height: 1.3; max-width: 30rem; min-height: 5.4em; text-wrap: pretty; }
.pil-fact cite { display: block; margin-top: 10px; font-style: normal; font-size: .78em; opacity: .8; }
.dial-wrap { display: grid; justify-items: center; gap: 22px; }
.dial { width: min(100%, 440px); height: auto; overflow: visible; }
.dial-case { fill: #FAFAF6; stroke: #1F3B4D; stroke-width: 2; }
.dial-ring { fill: none; stroke: rgba(31, 59, 77, .14); stroke-width: 40; }
.dial-hub { fill: #1F3B4D; }
.dial-txt { fill: #F1EFE8; font-family: var(--grot); font-weight: 700; font-size: 40px; }
.pill { fill: #E86A4B; stroke: #C4543A; stroke-width: 1; transition: fill .3s ease, stroke .3s ease; }
.pill.out { fill: #F1EFE8; stroke: rgba(31, 59, 77, .35); stroke-dasharray: 2 3; }
.dial-steps { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.dial-steps button {
  border: 1.5px solid #1F3B4D; background: transparent; cursor: pointer;
  font-family: var(--grot); font-weight: 700; font-size: .9rem; font-variant-numeric: tabular-nums;
  padding: 9px 14px; min-height: 44px; border-radius: 999px;
  transition: background-color .25s ease, color .25s ease, transform .15s var(--ease);
}
.dial-steps button:active { transform: scale(.96); }
.dial-steps button[aria-pressed="true"] { background: #1F3B4D; color: #F1EFE8; }

.minitel { min-height: 100svh; background: #1A1613; color: #E8DFCF; }
.minitel .era-date { font-family: var(--vt); font-size: clamp(2.6rem, 5vw, 4.6rem); letter-spacing: .02em; }
.minitel .era-n { font-family: var(--vt); font-style: normal; font-size: 1.6rem; }
.min-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: center; }
.term {
  justify-self: center; width: min(100%, 620px);
  background: linear-gradient(#D8CBB0, #C9BB9E);
  border-radius: 22px 22px 14px 14px; padding: 26px 26px 20px;
  box-shadow: 0 2px 0 #B5A685 inset, 0 40px 80px -30px rgba(0, 0, 0, .7);
}
.crt { background: #2A2620; border-radius: 16px; padding: 16px; box-shadow: inset 0 3px 8px rgba(0, 0, 0, .6); }
.screen {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden; container-type: inline-size;
  background: #0B0F0B; border-radius: 22px / 28px;
  box-shadow: inset 0 0 60px rgba(0, 0, 0, .9), inset 0 0 8px rgba(160, 255, 200, .08);
}
.screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .28) 0 1px, transparent 1px 3px); }
.screen.flash .scr { animation: crt-on .45s ease-out; }
@keyframes crt-on { 0% { filter: brightness(3); transform: scaleY(.04); } 60% { transform: scaleY(1.03); } 100% { filter: none; transform: none; } }
.scr { margin: 0; padding: 6% 7%; font-family: var(--vt); color: #F2F2F2; font-size: 5.6cqi; line-height: 1.1; white-space: pre-wrap; word-break: break-word; text-shadow: 0 0 6px rgba(255, 255, 255, .35); }
.scr .m { color: #FF5FD2; } .scr .c { color: #5FF2FF; } .scr .y { color: #FFF15F; }
.scr .inv { background: #FF5FD2; color: #0B0F0B; text-shadow: none; }
.blink { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.keys { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; margin-top: 16px; }
.code { min-width: 0; min-height: 46px; border: 0; border-radius: 6px; padding: 0 14px; font-family: var(--vt); font-size: 1.6rem; letter-spacing: .12em; background: #2A2620; color: #F2F2F2; box-shadow: inset 0 2px 4px rgba(0, 0, 0, .6); }
.code::placeholder { color: rgba(242, 242, 242, .55); }
.key { min-height: 46px; border: 0; border-radius: 6px; cursor: pointer; padding: 0 14px; font-family: var(--grot); font-size: .78rem; font-weight: 700; letter-spacing: .04em; background: #EFE6D2; color: #2A2620; box-shadow: 0 3px 0 #A8987A, 0 4px 6px rgba(0, 0, 0, .25); transition: transform .08s ease, box-shadow .08s ease; }
.key:active { transform: translateY(3px); box-shadow: 0 0 0 #A8987A, 0 1px 2px rgba(0, 0, 0, .25); }
.key-send { background: #2E6B4F; color: #fff; box-shadow: 0 3px 0 #1C4532, 0 4px 6px rgba(0, 0, 0, .25); }
.key-send:active { box-shadow: 0 0 0 #1C4532; }

.loi { height: 230vh; padding: 0; background: #FAF8F2; color: #111; }
.loi-pin { position: sticky; top: 0; height: 100svh; padding: calc(var(--bar-h) + 4vh) calc(var(--gutter) + var(--rail-w)) 6vh var(--gutter); display: grid; grid-template-rows: auto 1fr; }
.loi .era-date { font-family: var(--law); font-weight: 400; font-size: clamp(2.2rem, 4.4vw, 4.2rem); letter-spacing: -.02em; }
.page { align-self: center; max-width: 56rem; border-top: 2px solid #111; padding-top: 22px; }
.page-ref { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 28px; }
.page-text { font-family: var(--law); font-optical-sizing: auto; font-size: clamp(2rem, 4.6vw, 4.6rem); line-height: 1.08; letter-spacing: -.02em; text-wrap: pretty; }
.hl {
  color: inherit;
  background: linear-gradient(transparent 8%, #F3E36B 8%, #F3E36B 88%, transparent 88%) no-repeat 0 0 / var(--hl, 0%) 100%;
  padding: 0 .06em; margin: 0 -.06em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.page-note { margin-top: 32px; max-width: 34rem; font-size: clamp(1rem, 1.2vw, 1.12rem); color: #3A3A3A; }

.swipe { min-height: 100svh; background: #E9E5DF; color: #111; }
.swipe .era-date { font-family: var(--ui); font-weight: 800; letter-spacing: -.04em; font-size: clamp(2.6rem, 6vw, 5.6rem); }
.swipe .era-n { font-family: var(--ui); font-style: normal; font-weight: 700; font-size: 1rem; }
.sw-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 56px; align-items: center; }
.sw-grid { perspective: 1600px; }
.phone {
  position: relative; justify-self: center;
  width: min(84vw, 330px); aspect-ratio: 330 / 674;
  background: linear-gradient(145deg, #2B2B2D, #0E0E0F 40%, #1C1C1E);
  border-radius: 52px; padding: 9px;
  box-shadow: inset 0 0 0 1.5px #3A3A3C, inset 0 0 0 3px #0A0A0A, 0 50px 90px -40px rgba(0, 0, 0, .55), 0 18px 30px -18px rgba(0, 0, 0, .35);
  transform-style: preserve-3d; will-change: transform;
}
.phone::before, .phone::after { content: ""; position: absolute; right: -3px; width: 3px; border-radius: 0 2px 2px 0; background: #2A2A2C; }
.phone::before { top: 22%; height: 12%; }
.phone::after { top: 37%; height: 7%; }
.ph-screen {
  position: relative; height: 100%; border-radius: 44px; overflow: hidden; isolation: isolate;
  background: #FAFAFA;
  display: grid; grid-template-rows: auto auto 1fr auto auto;
}
.ph-island { position: absolute; top: 10px; left: 50%; width: 31%; height: 28px; transform: translateX(-50%); border-radius: 20px; background: #000; z-index: 40; }
.ph-status { display: flex; justify-content: space-between; align-items: center; padding: 14px 26px 0 30px; height: 46px; font-family: var(--ui); font-size: .82rem; font-weight: 600; color: #111; letter-spacing: -.01em; }
.ph-icons { display: flex; align-items: flex-end; gap: 2px; }
.ph-icons i { width: 3px; background: #111; border-radius: 1px; }
.ph-icons i:nth-child(1) { height: 5px; } .ph-icons i:nth-child(2) { height: 7px; } .ph-icons i:nth-child(3) { height: 9px; }
.ph-icons b { width: 20px; height: 10px; margin-left: 5px; border-radius: 3px; border: 1.5px solid #111; position: relative; }
.ph-icons b::after { content: ""; position: absolute; inset: 1px 4px 1px 1px; background: #111; border-radius: 1px; }
.ph-head { display: flex; justify-content: center; padding: 2px 0 8px; }
.ph-logo { font-family: var(--display); font-style: italic; font-size: 1.15rem; color: #D8475A; letter-spacing: -.01em; }
.stack { position: relative; margin: 0 10px; }
.ph-home { justify-self: center; width: 34%; height: 5px; border-radius: 3px; background: #111; margin: 4px 0 8px; opacity: .85; }
.sw-end { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 2px; text-align: center; font-family: var(--ui); font-weight: 800; font-size: 2rem; line-height: 1.05; letter-spacing: -.03em; color: #111; }
.again { margin-top: 18px; border: 0; background: #111; color: #fff; border-radius: 999px; padding: 0 18px; min-height: 40px; font-family: var(--ui); font-size: .85rem; font-weight: 600; letter-spacing: 0; cursor: pointer; }
.card { position: absolute; inset: 0; border-radius: 22px; overflow: hidden; display: grid; grid-template-rows: 1fr auto; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; box-shadow: 0 6px 18px rgba(0, 0, 0, .12); will-change: transform; }
.card:active { cursor: grabbing; }
.card-art { display: grid; place-items: center; padding: 18px; text-align: center; }
.card-info { padding: 14px 18px 18px; background: #fff; color: #111; font-family: var(--ui); }
.card-name { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; }
.card-meta { font-size: .85rem; color: #666; font-variant-numeric: tabular-nums; }
.card-bio { margin-top: 6px; font-size: .95rem; }
.stamp { position: absolute; top: 22px; padding: 4px 10px; border: 3px solid; border-radius: 8px; font-family: var(--ui); font-weight: 900; font-size: 1.6rem; letter-spacing: .06em; opacity: 0; pointer-events: none; }
.stamp-yes { left: 18px; color: #1FA35C; transform: rotate(-14deg); }
.stamp-no { right: 18px; color: #E0403A; transform: rotate(14deg); }
.k-stone { background-color: #D6CDBE; color: #6E6556; font-family: var(--roman); font-size: 2.6rem; font-weight: 600; letter-spacing: .1em; line-height: 1.1; }
.k-mask { background: #0B0A12; }
.k-mask svg { width: 82%; fill: none; stroke: #C9A45C; stroke-width: 3; }
.k-paper { background: #EADCBF; color: #2A1A12; font-family: var(--script); font-size: 3.2rem; line-height: 1; }
.k-type { background: #FBF9F2; color: #1E1C18; font-family: var(--type); font-size: 2.8rem; letter-spacing: -.05em; }
.k-swiss { background: #F1EFE8; }
.k-swiss svg { width: 70%; }
.k-crt { background: #0B0F0B; color: #FF5FD2; font-family: var(--vt); font-size: 4.2rem; text-shadow: 0 0 10px rgba(255, 95, 210, .5); }
.k-law { background: #FAF8F2; color: #111; font-family: var(--law); font-size: 2.4rem; line-height: 1.05; }
.k-law mark { background: #F3E36B; color: inherit; padding: 0 .1em; }
.ph-actions { display: flex; justify-content: center; gap: 26px; padding: 14px 0 6px; }
.act { width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; background: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .14); transition: transform .15s var(--ease), opacity .2s ease; }
.act:active { transform: scale(.9); }
.act svg { width: 26px; height: 26px; fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.act-no svg { stroke: #E0403A; }
.act-yes svg { stroke: #1FA35C; fill: #1FA35C; }
.act[disabled] { opacity: .3; cursor: default; }

.poster { height: 220vh; padding: 0; background: #FFD83D; color: #111; }
.pos-pin { position: sticky; top: 0; height: 100svh; grid-template-columns: minmax(0, 1fr); padding: calc(var(--bar-h) + 4vh) calc(var(--gutter) + var(--rail-w)) 6vh var(--gutter); display: grid; grid-template-rows: auto 1fr auto; }
.poster .era-date { font-family: var(--grot); font-weight: 800; font-stretch: 112%; text-transform: uppercase; font-size: clamp(1rem, 1.6vw, 1.35rem); }
.poster .era-n { font-family: var(--grot); font-style: normal; font-weight: 800; font-size: 1.1rem; }
.pos-big {
  align-self: center;
  font-family: var(--grot); font-weight: 900; font-stretch: var(--st, 62%);
  text-transform: uppercase; line-height: .86; letter-spacing: -.02em;
  font-size: clamp(3rem, 8vw, 9.2rem); text-wrap: balance;
}
.pos-cap { font-family: var(--grot); font-size: .9rem; max-width: 34rem; }

.epi { min-height: 90svh; padding: 18vh var(--gutter) max(28px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; justify-content: flex-end; gap: 36px; position: relative; }
.epi-line { font-family: var(--display); font-size: clamp(1.8rem, 3.6vw, 3.4rem); line-height: 1.12; max-width: 24ch; letter-spacing: -.02em; }
.epi-line em { color: var(--rose); }
.epi-mark { font-family: var(--display); font-style: italic; font-size: clamp(3.2rem, 14.5vw, 15rem); line-height: .85; letter-spacing: -.045em; }
.epi-mark span { font-style: normal; opacity: .4; }
.epi-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; border-top: 1px solid color-mix(in srgb, var(--bone) 18%, transparent); padding-top: 18px; }
.src { font-size: .8rem; opacity: .55; max-width: 48rem; }

body { background-color: var(--page-bg, #100C0B); }
.bar { --fg: var(--bone); }
.bar[data-tone="light"] { --fg: var(--ink); }
.bar .lang button[aria-pressed="true"] { color: var(--night); }
.bar[data-tone="light"] .lang button[aria-pressed="true"] { color: #fff; }
.bar[data-tone="light"] :focus-visible { outline-color: #B3262E; }

@media (max-width: 1100px) {
  :root { --rail-w: 0px; }
  .rail { display: none; }
  .now { display: block; }
}

@media (max-width: 860px) {
  :root { --bar-h: 60px; }
  .bar { background: var(--page-bg, #100C0B); transition: color .25s ease, background-color .25s ease; }
  .logo { font-size: 1.25rem; }
  .sound { padding: 0 11px; }
  .sound-l { display: none; }
  .pro-foot { grid-template-columns: 1fr; }
  .pro-dates { justify-content: flex-start; }
  .pro-dates a { font-size: 1.1rem; }

  .rome-copy { grid-template-columns: 1fr; gap: 14px; }
  .rome .fact { font-size: .95rem; }
  .tr { font-size: 1.15rem; }
  .stone { padding: 16px 10px; }
  .tablets { grid-template-columns: 1fr; max-width: 340px; }
  .tablet { aspect-ratio: 5 / 3; }

  .mask-art { width: 96vw; right: -8vw; top: 26%; opacity: .5; }
  .ven-stage { align-items: end; }

  .let-grid, .min-grid, .sw-grid, .kin-grid { grid-template-columns: 1fr; gap: 26px; }
  .letter { --h: max(40rem, min(72vh, 560px)); }

  .kin-pin { padding-top: calc(var(--bar-h) + 3vh); }
  .kin-grid { align-content: start; }
  .report { min-height: 13em; font-size: .88rem; padding: 18px; }
  .st-n { font-size: clamp(3rem, 16vw, 4.6rem); }
  .stats { gap: 16px; }
  .halves { max-width: 260px; gap: 4px; }
  .st-note { display: block; }

  .pil-grid { grid-template-columns: 1fr; gap: 12px; align-content: start; }
  .pil-year { font-size: clamp(5rem, 30vw, 8rem); }
  .pil-fact { margin-top: 12px; font-size: 1rem; min-height: 7.6em; }
  .dial { width: min(56vw, 270px); }
  .dial-wrap { gap: 12px; }

  .keys { grid-template-columns: 1fr 1fr; }
  .code { grid-column: 1 / -1; }
  .term { padding: 16px 14px 14px; border-radius: 16px; }
  .crt { padding: 10px; }

  .page-text { font-size: clamp(1.7rem, 8vw, 2.6rem); }
  .pos-big { font-size: clamp(2.2rem, 11vw, 4rem); }
}

@media (min-width: 1700px) {
  body { font-size: 1.125rem; }
  .fact { max-width: 38rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .dark { display: none; }
}

.pro, .epi { background: var(--night); }

.rome .era-n { opacity: .8; }

.intro { animation: intro-fail 0s 7s forwards; }
body.is-loading { animation: unlock 0s 7s forwards; }
.intro-run .intro, .intro-run body.is-loading { animation: none; }
@keyframes intro-fail { to { visibility: hidden; } }
@keyframes unlock { to { overflow: auto; } }

html:is(.no-st, :not(.js)) .rome-scroll, html:is(.no-st, :not(.js)) .kinsey, html:is(.no-st, :not(.js)) .pilule, html:is(.no-st, :not(.js)) .loi, html:is(.no-st, :not(.js)) .poster { height: auto; }
html:is(.no-st, :not(.js)) .rome-pin, html:is(.no-st, :not(.js)) .kin-pin, html:is(.no-st, :not(.js)) .pil-pin, html:is(.no-st, :not(.js)) .loi-pin, html:is(.no-st, :not(.js)) .pos-pin { position: static; height: auto; min-height: 100svh; }
.rome-pin, .kin-pin, .pil-pin, .loi-pin { grid-template-columns: minmax(0, 1fr); }

/* Content remains available when scripts fail or motion is paused. */
.skip { position: fixed; left: 16px; top: 8px; z-index: 100; padding: 12px 18px; background: #EFE6D8; color: #1B1714; transform: translateY(-160%); }
.skip:focus { transform: none; }
:where(main, section, .sheet) { scroll-margin-top: calc(var(--bar-h) + 16px); }
.bar { background: var(--page-bg, var(--night)); }
.motion { min-height: 40px; padding: 6px 12px; border: 1px solid currentColor; border-radius: 999px; background: transparent; cursor: pointer; font-size: .75rem; }
.motion:disabled { cursor: default; }
.legal-links { display: flex; flex-wrap: wrap; gap: 16px 28px; margin-block: 32px; }
.legal-links a, .source-link { color: inherit; text-underline-offset: 4px; }
.simulation { font-size: .9rem; line-height: 1.5; margin-block: 16px; }
.term .simulation { color: #2A2118; }
.src { opacity: .8; }
.pro-dates a { opacity: .8; }
.hint, .pro-k, .st-note { opacity: .8; }
.phone { width: min(84vw, 330px); }
.sw-end[aria-hidden="true"] { visibility: hidden; }
.sw-end[aria-hidden="false"] { visibility: visible; }
.pil-fallback { padding-left: 1.2em; }
.pil-fallback li { margin-block: 16px; }
.js .pil-fallback { display: none; }
html:not(.js) .pil-copy > .pil-year, html:not(.js) .pil-copy > .pil-fact,
html:not(.js) :is(.sound, .motion, .lang, .light-all, .seal, .flap, .phone, .dial-wrap, .keys, .cursor) { display: none; }
html:not(.js) .dark { display: none; }
html:not(.js) .carve { color: #514737; }
html:not(.js) .letter { height: auto; }
html:not(.js) .sheet { position: relative; clip-path: none; min-height: 36rem; }
html:not(.js) .sheet > * { opacity: 1; }
html:not(.js) .tablet { aspect-ratio: auto; }
html:not(.js) .tb-in { display: grid; }
html:not(.js) .tb-face { position: relative; backface-visibility: visible; transform: none; padding: 28px; }
html:not(.js) .tb-front { gap: 20px; }
.motion-reduced *, .motion-reduced *::before, .motion-reduced *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
.motion-reduced :is(.cursor, .dark) { display: none; }
@media (max-width: 620px) {
  :root { --bar-h: 108px; }
  .bar { display: grid; grid-template-columns: 1fr auto; grid-template-rows: 48px 44px; gap: 0 12px; padding-block: 8px; }
  .bar-r { display: contents; }
  .bar .logo { grid-area: 1 / 1; }
  .bar .lang { grid-area: 1 / 2; }
  .bar .motion { grid-area: 2 / 1; justify-self: start; }
  .bar .sound { grid-area: 2 / 2; justify-self: end; min-width: 44px; justify-content: center; }
  .now { display: none; }
  .era-head { flex-wrap: wrap; gap: 12px; }
  .let-grid, .min-grid, .sw-grid { gap: 32px; }
  .page { padding: 24px 20px; }
}

.act, .again { scroll-margin-block: calc(var(--bar-h) + 16px) 16px; }

.era-n { opacity: .8; }
.lang button:not([aria-pressed="true"]) { opacity: .8; }
.epi { --fg: var(--bone); }
