/* Shadows of Cardonia — V2.6 "the site of a world". Loaded after styles.css (the V2.2 artistic reference).
   New: the hero readable at once (CSS only), chapter numerals, I · the four laws, VI · the Philosophy of Shadows with
   its light, the one who struggles, VII · the Manifesto as a film with words under the voice, VIII · the Chronicle,
   the last screen's spark. Colour rule from the Manifesto film: the world is cold; only what burns is warm. */

/* `hidden` must win over .btn / video / .mfilm__bar display rules (the YouTube overlay, the lit spark) */
[hidden] { display: none !important; }

/* ---------------- the hero: readable in the first second, without scripts ---------------- */
.v26 .hero__copy { max-width: 1000px; }
.v26 .hero__title { animation: v26-title 2.4s var(--ease-out) .05s both; }
.v26 .hero__title.is-replay { animation: v26-title-again 3.4s var(--ease-out) .25s both; }
.v26 .hero .fade-up { transition: none; animation: v26-up 1.3s var(--ease-out) var(--d, .4s) both; }
.v26 .hero__kicker { --d: .1s; }
.v26 .hero__lead { --d: .5s; }
.v26 .hero__pitch { --d: .75s; }
.v26 .hero__cta { --d: .95s; }
.v26 .hero__status { --d: 1.15s; }
.v26 .hero .hero__cue { --d: 1.8s; animation-name: v26-fade; }
@keyframes v26-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes v26-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes v26-title { from { opacity: 0; filter: blur(16px); transform: scale(1.04); } to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes v26-title-again { from { opacity: 0; filter: blur(18px); transform: scale(1.06); } to { opacity: 1; filter: blur(0); transform: none; } }
.hero__kicker { margin-bottom: clamp(14px, 1.8vw, 24px); font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--bone-2); }
.hero__kicker i { font-style: normal; color: var(--ember-hot); margin: 0 .5em; }
.v26 .hero__lead { font-size: clamp(21px, 2.2vw, 33px); }
.hero__pitch { margin-top: 14px; max-width: 46em; font-size: clamp(15px, 1.15vw, 18px); line-height: 1.62; color: var(--bone-2); text-shadow: 0 0 24px rgba(0, 0, 0, .8); }
.v26 .hero__cta { margin-top: clamp(26px, 3.4vw, 44px); }
.btn small { font-size: 9.5px; letter-spacing: .18em; opacity: .62; font-weight: 400; }
.btn__play { width: 14px; height: 14px; flex: none; }
.hero__status { margin-top: 22px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--bone-3); }
.hero__status a { color: var(--bone-2); text-decoration: none; border-bottom: 1px solid rgba(231, 225, 214, .2); padding: 6px 0 2px; transition: color .3s, border-color .3s; }
.hero__status a:hover, .hero__status a:focus-visible { color: var(--bone); border-color: var(--ember-hot); }
.hero__status i { font-style: normal; align-self: center; color: var(--ember-hot); }

/* the opening on request: the V2.2 smoke under the lines */
.gate.is-ritual { z-index: 185; }
.prologue.is-ritual { background: transparent; }
html.is-ritual .nav { opacity: 0 !important; pointer-events: none; }

/* ---------------- chapter numerals ---------------- */
.numeral { font-family: var(--serif); font-weight: 500; font-size: 15px; letter-spacing: .08em; color: var(--ember-hot); }

/* ---------------- I · the world ---------------- */
.about--world { padding-bottom: clamp(96px, 13vh, 170px); }
.world-intro .display { max-width: 16ch; }
.lead--wide { max-width: 66ch; font-size: clamp(17px, 1.3vw, 21px); }
.lead em { font-family: var(--serif); font-style: italic; font-size: 1.18em; color: var(--bone); }
.laws { margin-top: clamp(48px, 7vh, 90px); border-top: 1px solid var(--hair); }
.law { display: grid; grid-template-columns: 96px minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(16px, 3vw, 48px); align-items: baseline; padding: clamp(22px, 3vh, 34px) 0; border-bottom: 1px solid var(--hair); }
.law__n { font-family: var(--serif); font-weight: 300; font-size: clamp(34px, 3vw, 48px); line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(240, 176, 122, .75); }
.law__title { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.2vw, 34px); line-height: 1.1; letter-spacing: .01em; }
.law p { font-size: 16px; line-height: 1.6; color: var(--bone-2); max-width: 54ch; }
.epigraph { margin: clamp(60px, 9vh, 110px) auto 0; max-width: 920px; text-align: center; }
.epigraph p { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(24px, 2.5vw, 40px); line-height: 1.22; color: var(--bone); }
.epigraph figcaption { margin-top: 16px; font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--bone-3); }

/* ---------------- IV · beyond the valley ---------------- */
.world__beyond { margin-top: clamp(26px, 4vh, 40px); font-family: var(--serif); font-style: italic; font-size: clamp(19px, 1.6vw, 25px); color: var(--bone-2); max-width: 60ch; }
.world__beyond span { display: block; margin-top: 6px; font-family: var(--sans); font-style: normal; font-size: 12.5px; letter-spacing: .04em; color: var(--bone-3); }

/* ---------------- VI · the philosophy of shadows ---------------- */
.philosophy { background: radial-gradient(ellipse at 22% 0%, rgba(143, 160, 174, .06), transparent 55%), #040405; }
.shadows { position: relative; isolation: isolate; overflow: hidden; min-height: min(84vh, 800px); border: 1px solid var(--hair); background: #000; padding: clamp(18px, 2.6vw, 40px); display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 1fr auto; grid-template-areas: "tabs tabs" ". ." "text nav"; gap: 20px; touch-action: pan-y; cursor: crosshair; }
.shadows__bg { position: absolute; inset: 0; z-index: -2; }
.shadows__img, .shadows__lamp { position: absolute; inset: 0; background-position: 62% 40%; background-size: cover; background-repeat: no-repeat; transform: scale(1.03); }
.shadows__img { filter: grayscale(.92) brightness(.22) contrast(1.25); opacity: 0; transition: opacity 1.4s var(--ease-out); }
.shadows__img.is-on { opacity: 1; }
.shadows__lamp { filter: grayscale(.45) sepia(.3) brightness(.92) contrast(1.06); -webkit-mask-image: radial-gradient(circle var(--lr, 10vmin) at var(--lx, 68%) var(--ly, 42%), #000 0%, rgba(0, 0, 0, .6) 42%, transparent 100%); mask-image: radial-gradient(circle var(--lr, 10vmin) at var(--lx, 68%) var(--ly, 42%), #000 0%, rgba(0, 0, 0, .6) 42%, transparent 100%); transition: background-image .8s; }
.shadows::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, rgba(0, 0, 0, .86) 0%, rgba(0, 0, 0, .6) 34%, rgba(0, 0, 0, 0) 66%), linear-gradient(rgba(0, 0, 0, .5), transparent 22%, transparent 58%, rgba(0, 0, 0, .7)); }
.shadows__tabs { grid-area: tabs; display: flex; flex-wrap: wrap; gap: 4px 26px; }
.shadows__tab { display: inline-flex; align-items: baseline; gap: 10px; min-height: 44px; padding: 8px 0; border-bottom: 1px solid transparent; color: var(--bone-3); transition: color .4s, border-color .4s; cursor: pointer; }
.shadows__tab b { font-family: var(--serif); font-weight: 500; font-size: 20px; letter-spacing: .06em; }
.shadows__tab span { font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; }
.shadows__tab:hover { color: var(--bone-2); }
.shadows__tab[aria-selected="true"] { color: var(--bone); border-color: var(--ember-hot); }
.shadows__tab[aria-selected="true"] b { color: var(--ember-hot); }
.shadow { grid-area: text; align-self: end; max-width: 640px; cursor: auto; opacity: 0; transform: translateY(8px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.shadow.is-on { opacity: 1; transform: none; }
.shadow__title { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.2vw, 52px); line-height: 1.06; letter-spacing: .005em; color: var(--bone); text-wrap: balance; }
.shadow__text { margin-top: 20px; font-size: clamp(15.5px, 1.15vw, 18px); line-height: 1.66; color: var(--bone-2); max-width: 56ch; }
.shadow__game { margin-top: 20px; padding-left: 16px; border-left: 1px solid rgba(240, 176, 122, .55); font-size: 15px; line-height: 1.55; color: var(--bone); max-width: 52ch; }
.shadow__game span { display: block; margin-bottom: 4px; font-size: 10px; letter-spacing: .28em; text-transform: uppercase; color: var(--ember-hot); }
.shadow__whose { margin-top: 22px; min-height: 40px; padding: 8px 0; font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--bone-3); border-bottom: 1px solid rgba(231, 225, 214, .25); transition: color .3s, border-color .3s; }
.shadow__whose:hover, .shadow__whose:focus-visible { color: var(--bone); border-color: var(--ember-hot); }
.shadow__author { margin-top: 10px; font-family: var(--serif); font-style: italic; font-size: clamp(20px, 1.7vw, 26px); color: var(--ember-hot); opacity: 0; filter: blur(6px); transition: opacity 1.2s var(--ease-out), filter 1.2s; }
.shadow__author.is-on { opacity: 1; filter: none; }
.shadows__nav { grid-area: nav; align-self: end; display: flex; align-items: center; gap: 8px; }
.shadows__count { min-width: 64px; text-align: center; font-family: var(--serif); font-size: 17px; letter-spacing: .1em; color: var(--bone-3); }
.philosophy .note { margin-top: 14px; }

/* the one who struggles */
.struggle { margin-top: clamp(80px, 12vh, 150px); display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 90px); align-items: start; }
.struggle__head .display { max-width: 18ch; }
.struggle__rules { border-bottom: 1px solid var(--hair); }
.struggle__rules li { display: grid; grid-template-columns: 54px 1fr; gap: 18px; padding: 26px 0; border-top: 1px solid var(--hair); }
.struggle__rules span { font-family: var(--serif); font-weight: 300; font-size: 46px; line-height: .9; color: var(--ember-hot); }
.struggle__rules p { font-size: 16px; line-height: 1.62; color: var(--bone-2); }
.struggle__rules b { display: block; margin-bottom: 8px; font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2vw, 30px); line-height: 1.14; color: var(--bone); }

/* ---------------- VII · the manifesto ---------------- */
.v26 .manifesto__excerpt p { font-size: inherit; }
.letter-teaser { margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--hair-2); }
.letter-teaser p { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 1.7vw, 27px); line-height: 1.3; color: var(--bone); }
.letter-teaser figcaption { margin-top: 12px; font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; }
.letter-teaser a { color: var(--ember-hot); text-decoration: none; border-bottom: 1px solid rgba(240, 176, 122, .35); padding-bottom: 2px; }
.letter-teaser a:hover { border-color: var(--ember-hot); }

/* the film over the page, the words under the voice */
.mfilm__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; cursor: pointer; }
.mfilm__cap { position: absolute; z-index: 3; left: 50%; bottom: calc(max(22px, env(safe-area-inset-bottom)) + 70px); transform: translateX(-50%); width: min(1100px, 92vw); text-align: center; font-family: var(--serif); font-weight: 400; font-size: clamp(21px, 2.3vw, 37px); line-height: 1.2; color: rgba(236, 232, 226, .95); text-shadow: 0 0 18px rgba(0, 0, 0, .95), 0 0 4px rgba(0, 0, 0, .9); opacity: 0; filter: blur(3px); transition: opacity .45s ease, filter .6s ease; pointer-events: none; text-wrap: balance; }
.mfilm__cap.is-on { opacity: 1; filter: none; }
.mfilm__cap .fire { font-style: normal; color: var(--ember-hot); text-shadow: 0 0 24px rgba(240, 140, 70, .6), 0 0 4px rgba(0, 0, 0, .9); }
.mfilm--video .mfilm__bar { padding: 10px 12px; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); }
.mfilm__langs { display: flex; gap: 2px; }
.mfilm__lang { min-height: 36px; min-width: 42px; padding: 6px 10px; font-size: 10.5px; letter-spacing: .2em; color: var(--bone-3); border: 1px solid transparent; transition: color .3s, border-color .3s; }
.mfilm__lang:hover { color: var(--bone-2); }
.mfilm__lang[aria-pressed="true"] { color: var(--bone); border-color: var(--hair); }
.mfilm--video:fullscreen { width: 100%; height: 100%; }

/* ---------------- VIII · the chronicle ---------------- */
.chron__era { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 20px; padding: 0 0 18px; border-bottom: 1px solid var(--hair); font-family: var(--serif); font-style: italic; font-size: clamp(19px, 1.7vw, 25px); color: var(--bone-2); }
.chron__era b { font-style: normal; font-weight: 300; font-size: clamp(44px, 4.4vw, 70px); line-height: .9; letter-spacing: .04em; color: var(--bone); }
.chron__era--old { margin-top: clamp(60px, 9vh, 100px); }
.chron__era--old b { color: var(--bone-3); }
.chron__item { display: grid; grid-template-columns: 132px 220px minmax(0, 1fr); gap: clamp(16px, 2.6vw, 40px); align-items: center; padding: 22px 0; border-bottom: 1px solid var(--hair-2); }
.chron__date { font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--bone-3); font-variant-numeric: tabular-nums; }
.chron__media { position: relative; display: block; width: 220px; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink-3); border: 1px solid var(--hair-2); transition: border-color .4s; }
.chron__item--short .chron__media { width: 92px; aspect-ratio: 9 / 16; margin-left: 64px; }
.chron__media img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.76) saturate(.85); transition: filter .6s, transform 1.2s var(--ease-out); }
.chron__media:hover, .chron__media:focus-visible { border-color: rgba(240, 176, 122, .5); }
.chron__media:hover img, .chron__media:focus-visible img { filter: brightness(.95) saturate(.95); transform: scale(1.04); }
.chron__play { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; transform: translate(-50%, -50%); border-radius: 50%; border: 1px solid rgba(231, 225, 214, .7); background: rgba(5, 5, 6, .5) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7v10l8-5z' fill='%23e7e1d6'/%3E%3C/svg%3E") 54% 50% / 18px no-repeat; transition: background-color .4s, border-color .4s; }
.chron__item--short .chron__play { width: 38px; height: 38px; background-size: 15px; }
.chron__media:hover .chron__play, .chron__media:focus-visible .chron__play { background-color: rgba(208, 138, 78, .55); border-color: var(--ember-hot); }
.chron__media--plain { display: grid; place-items: center; background: radial-gradient(ellipse at 50% 30%, rgba(208, 138, 78, .1), transparent 62%), #08080a; }
.chron__mark { position: absolute; left: 12px; top: 8px; font-family: var(--serif); font-size: 18px; letter-spacing: .12em; color: var(--bone-3); }
.chron__kind { margin-bottom: 6px; font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--ember-hot); }
.chron__body h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2vw, 30px); line-height: 1.1; }
.chron__body p:not(.chron__kind) { margin-top: 6px; font-size: 15px; line-height: 1.55; color: var(--bone-2); max-width: 66ch; }
.chron__yt { display: inline-block; margin-top: 8px; padding: 6px 0; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--bone-3); text-decoration: none; transition: color .3s; }
.chron__yt:hover, .chron__yt:focus-visible { color: var(--bone); }
.chron__list--old .chron__item { opacity: .82; }
.chron__follow { margin-top: clamp(40px, 6vh, 64px); display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.chron__follow .note { margin-top: 0; max-width: 52ch; }

/* YouTube inside the film overlay — created only on request */
.vfilm__yt { position: absolute; z-index: 2; inset: 64px var(--gutter) 72px; display: grid; place-items: center; }
.vfilm__yt[hidden] { display: none; }
.vfilm__yt iframe { width: min(100%, calc((100vh - 150px) * 16 / 9)); aspect-ratio: 16 / 9; height: auto; border: 0; background: #000; }
.vfilm__yt.is-vertical iframe { width: min(100%, calc((100vh - 150px) * 9 / 16)); aspect-ratio: 9 / 16; }
.vfilm__ytlink { position: absolute; z-index: 3; left: var(--gutter); top: 58px; padding: 6px 0; font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--bone-3); text-decoration: none; text-shadow: 0 0 10px #000; }
.vfilm__ytlink:hover { color: var(--bone); }
.vfilm.is-yt .vfilm__ytlink { top: auto; bottom: max(26px, env(safe-area-inset-bottom)); }

/* ---------------- the last screen: strike a spark ---------------- */
.final__sparks { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }
.final__warmth { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; background: radial-gradient(ellipse at 50% 60%, rgba(240, 150, 80, .26), rgba(208, 110, 50, .08) 40%, transparent 72%); mix-blend-mode: screen; }
.v26 .final__copy { gap: 14px; }
.v26 .final__sub { margin-bottom: 4px; }
.spark { display: grid; justify-items: center; gap: 16px; margin: 10px 0 8px; min-height: 128px; align-content: center; }
.spark__line { font-family: var(--serif); font-style: italic; font-size: clamp(17px, 1.5vw, 22px); color: var(--bone-2); max-width: 44ch; }
.spark.is-miss .spark__btn { animation: v26-miss .45s ease; }
@keyframes v26-miss { 0%, 100% { transform: none; } 30% { transform: translateX(-4px); } 60% { transform: translateX(3px); } }
.spark__lit { font-family: var(--serif); font-weight: 300; font-size: clamp(28px, 3.4vw, 54px); line-height: 1.08; text-transform: uppercase; letter-spacing: .06em; color: var(--ember-hot); opacity: 0; filter: blur(8px); transition: opacity 2.6s var(--ease-out), filter 2.6s var(--ease-out); text-shadow: 0 0 34px rgba(240, 140, 70, .4); }
.spark__lit.is-on { opacity: 1; filter: none; }
.final__cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 24px; }
.final.is-lit .final__cta .btn--solid { box-shadow: 0 0 46px rgba(240, 150, 80, .28); }

/* ---------------- smaller screens ---------------- */
@media (max-width: 1100px) {
  .struggle { grid-template-columns: 1fr; }
  .law { grid-template-columns: 70px minmax(0, 1fr); }
  .law p { grid-column: 2; }
  .chron__item { grid-template-columns: 110px 180px minmax(0, 1fr); }
  .chron__media { width: 180px; }
  .chron__item--short .chron__media { margin-left: 44px; }
}
@media (max-width: 700px) {
  .hero__kicker { font-size: 9.5px; letter-spacing: .2em; line-height: 1.8; padding: 0 6px; }
  .hero__kicker i { margin: 0 .3em; }
  .hero__pitch { font-size: 14.5px; line-height: 1.55; }
  .hero__status { font-size: 9.5px; letter-spacing: .14em; gap: 2px 10px; }
  .v26 .hero__cta .btn small { display: none; }
  .law { grid-template-columns: 44px minmax(0, 1fr); gap: 12px 14px; }
  .law__n { font-size: 28px; }
  .law p { font-size: 15px; }
  .shadows { min-height: 0; padding: 16px; grid-template-columns: 1fr; grid-template-rows: auto minmax(42vh, 1fr) auto auto; grid-template-areas: "tabs" "." "text" "nav"; cursor: auto; }
  .shadows__tabs { gap: 2px 18px; }
  .shadows__tab span { display: none; }
  .shadows__tab b { font-size: 22px; }
  .shadows__img, .shadows__lamp { background-position: 60% 30%; }
  .shadows::after { background: linear-gradient(rgba(0, 0, 0, .55), transparent 18%, transparent 34%, rgba(0, 0, 0, .9) 58%, #000); }
  .shadow__title { font-size: clamp(26px, 7.4vw, 34px); }
  .shadows__nav { justify-content: space-between; }
  .struggle__rules li { grid-template-columns: 40px 1fr; gap: 12px; }
  .struggle__rules span { font-size: 36px; }
  .chron__item { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 22px 0 24px; }
  .chron__media { width: 100%; }
  .chron__item--short .chron__media { width: 132px; margin-left: 0; }
  .mfilm__cap { bottom: calc(max(22px, env(safe-area-inset-bottom)) + 84px); font-size: 20px; }
  .mfilm--video .mfilm__bar { flex-wrap: wrap; gap: 6px; }
  .mfilm--video .player__time { display: none; }
  .vfilm__yt { inset: 96px 10px 80px; }
  .vfilm__ytlink { top: 52px; }
  .spark { min-height: 140px; }
}
