@font-face {
  font-family: "War Slab";
  src: url("assets/fonts/roboto-slab-800.ttf") format("truetype");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --paper: #eee8dc;
  --gold: #c7a36a;
  --background: #080b0c;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
body {
  margin: 0;
  background: var(--background);
  color: var(--paper);
  font-family: "Times New Roman", Times, serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 2px solid #efc98b; outline-offset: 5px; }
.skip-link:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed; top: 8px; left: 8px; z-index: 10;
  padding: 12px; background: #e2bf85; color: #111;
}
/* A standalone original logo and four real text links. */
.masthead {
  height: 4.94791667vw;
  min-height: 62px;
  padding: 0 12.35% 0 11.85%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: radial-gradient(ellipse at 32% 0, #171a18 0, #0a0c0c 48%, #060808 100%);
  border-bottom: 1px solid #8f78514d;
  position: relative;
  z-index: 1;
}
.masthead::after {
  content: ""; position: absolute; bottom: -1px; left: 9%; right: 9%; height: 1px;
  background: linear-gradient(90deg, transparent, #c2a47388, #aa8b5566, transparent);
  pointer-events: none;
}
.brand { display: block; width: 9.375vw; min-width: 112px; height: 100%; flex-shrink: 0; }
.brand-logo { display: block; width: 100%; height: 100%; object-fit: contain; }
.navigation { display: flex; align-items: center; gap: 2.4vw; font-size: max(15px,1.04166667vw); }
.navigation a { padding: 14px 0; transition: color .15s; }
.navigation a:hover { color: #e5c18a; }
/* Only the supplied clean banner is used as the scene. */
.hero {
  height: 29.1666667vw;
  min-height: 348px;
  position: relative;
  isolation: isolate;
  background: #070a0b url("assets/banner.png") center center / cover no-repeat;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, #0204051f, transparent 60%);
  pointer-events: none;
}
.hero-copy { position: absolute; left: 10.221354%; top: 5.46875vw; }
.eyebrow {
  margin: 0 0 1.10677083vw;
  display: flex;
  align-items: center;
  gap: .84635417vw;
  font: 400 .71614583vw/1.1 Arial, sans-serif;
  letter-spacing: .32552083vw;
  text-transform: uppercase;
  color: #e5cb98;
}
.eyebrow::before { content: ""; width: 3.05989583vw; height: 1px; background: #c5a167; }
#hero-title {
  margin: 0;
  font-family: "War Slab", Georgia, serif;
  font-size: 5.01302083vw;
  font-weight: 800;
  line-height: .99;
  letter-spacing: .015em;
  text-transform: uppercase;
  filter: drop-shadow(0 3px 2px #000c);
}
#hero-title > span { display: block; width: max-content; white-space: nowrap; transform: scaleX(.93); transform-origin: left center; }
.metal-silver, .metal-gold {
  color: #dcd2ba;
  background-image: url("assets/metal-grain.svg"), linear-gradient(180deg,
    #fff8e7 0%, #b1aa97 18%, #efe6d4 29%, #bbb2a0 51%,
    #e4d9c3 53%, #867b65 77%, #d3c5a7 93%, #6e6048 100%);
  background-size: 240px 110px, 100% 100%;
  background-blend-mode: soft-light, normal;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: .45px #e9d8b080;
  paint-order: stroke fill;
}
.metal-gold {
  background-image: url("assets/metal-grain.svg"), linear-gradient(180deg,
    #e6c182 0%, #aa7238 21%, #d2a35f 40%, #9c6831 56%,
    #cba061 59%, #7e542e 78%, #bc9253 94%, #6e4621 100%);
  -webkit-text-stroke-color: #d7b67c8c;
}
.hero-wordmark {
  position: absolute; top: -.05vw; left: 62.55%;
  font-family: "War Slab", Georgia, serif;
  font-size: 3.32vw; line-height: 1.12; font-weight: 800;
  text-transform: uppercase; letter-spacing: .02em;
  filter: drop-shadow(0 2px 2px #000c);
}
.hero-wordmark::after {
  content: ""; position: absolute; left: 8%; right: 8%; bottom: -.45vw; height: 1px;
  background: linear-gradient(90deg, #c0a271, transparent 30%, transparent 70%, #c0a271);
}
.hero-actions { display: flex; gap: 1.23697917vw; margin-top: 1.85vw; }
.button {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.1em; min-height: 3.25520833vw;
  padding: .55em 1.1em; border: 1px solid #a58a59;
  border-radius: 3px;
  background: linear-gradient(145deg, #131616, #070a0a 60%, #131513);
  color: var(--paper); font-size: 1.04166667vw; line-height: 1.1;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px #080b0b, inset 0 1px 3px #f6deb31c, 0 2px 5px #0004;
  transition: filter .16s, box-shadow .16s, transform .16s;
}
.button:hover { filter: brightness(1.15); box-shadow: 0 0 16px #ae824530, inset 0 0 0 1px #ddbf7b40; }
.button:active { transform: translateY(1px); }
.primary {
  color: #150f08;
  border-color: #d3ae70;
  background: #b18c54 url("assets/gold-surface.svg") center / 100% 100% no-repeat;
  box-shadow: inset 0 1px #f6e2b9b3, inset 0 -1px #6a4b2ab3, 0 2px 5px #0005;
}
.arrow { font-size: 1.3em; font-weight: normal; color: var(--gold); line-height: 1; }
.primary .arrow { color: #382410; }
.hero-actions .button { min-height: 3.3203125vw; font-size: 1.3671875vw; padding: .55em 1.7em; }
.start-reading { width: 16.341146vw; }
.about-book { width: 12.955729vw; }
/* Annotation is selectable HTML; decorative rules and icons are independent. */
.about {
  padding: .9vw 0 1.6vw;
  background: radial-gradient(ellipse at 50% 30%, #101313 0, #0b0e0e 46%, #070a0b 100%);
}
.section-heading { display: flex; align-items: center; justify-content: center; gap: 1.45vw; margin: 0 auto 1vw; width: 80%; }
.section-heading > span { height: 1px; flex: 1; background: linear-gradient(90deg, transparent, #b99254); }
.section-heading > span:last-child { transform: rotate(180deg); }
h2 { font-size: 2.99479vw; line-height: 1.2; font-weight: normal; margin: 0; white-space: nowrap; }
.synopsis { width: 60.8072917%; margin: 0 auto; font-size: 1.33463542vw; line-height: 1.25; }
.synopsis p { margin: 0 0 1.04166667vw; }
.synopsis p:last-of-type { margin-bottom: 1.3671875vw; }
#world, #read { scroll-margin-top: 24px; }
.reading-actions { display: grid; grid-template-columns: 278fr 340fr 280fr; gap: 1.236979vw; }
.icon { width: 1.82291667vw; height: 1.82291667vw; flex-shrink: 0; fill: none; stroke: var(--gold); stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }
.primary .icon { stroke: #251a0e; }
.reading-actions .button { padding: .55em 1.1em; white-space: nowrap; }
dialog { width: min(460px,calc(100% - 32px)); border: 1px solid #a08454; border-radius: 4px; background: #101414; color: var(--paper); padding: 36px; box-shadow: 0 20px 90px #000b; }
dialog::backdrop { background: #000b; backdrop-filter: blur(4px); }
dialog h2 { font-size: 30px; white-space: normal; }
dialog p { font-size: 19px; line-height: 1.5; }
dialog .button { font-size: 17px; min-height: 48px; }
.dialog-close { position: absolute; right: 12px; top: 8px; border: 0; background: none; color: var(--paper); font-size: 28px; cursor: pointer; }
@media (max-width: 1100px) and (min-width: 901px) {
  .hero-copy { top: 67px; }
  .hero-wordmark { top: 8px; }
  .hero-actions .button { min-height: 42px; }
}
@media (max-width: 900px) {
  html { scroll-padding-top: 16px; }
  .masthead { height: 88px; padding: 7px 24px; gap: 20px; }
  .brand { width: 144px; min-width: 0; }
  .navigation { gap: 24px; font-size: 17px; }
  .navigation a { padding: 12px 0; }
  .hero { height: 590px; min-height: 0; background-size: auto 390px; background-position: 66% bottom; }
  .hero-copy { position: static; padding: 37px 7vw 0; }
  .hero-wordmark { display: none; }
  .eyebrow { gap: 13px; font-size: 10px; letter-spacing: 4px; margin-bottom: 20px; }
  .eyebrow::before { width: 38px; }
  #hero-title { font-size: clamp(32px,5.7vw,51px); line-height: 1.08; letter-spacing: 0; }
  .hero-actions { margin-top: 25px; gap: 14px; }
  .hero-actions .button { min-height: 48px; font-size: 18px; padding: 13px 18px; width: auto; min-width: 160px; }
  .about { padding: 27px 24px 32px; }
  .section-heading { width: 100%; gap: 15px; margin-bottom: 22px; }
  h2 { font-size: clamp(28px,4.1vw,40px); white-space: normal; text-align: center; }
  .section-heading > span { min-width: 20px; flex: .25; }
  .synopsis { width: min(100%,680px); font-size: 20px; line-height: 1.45; }
  .synopsis p { margin-bottom: 18px; }
  .synopsis p:last-of-type { margin-bottom: 26px; }
  .reading-actions { grid-template-columns: 1fr; gap: 12px; }
  .button, .reading-actions .button { min-height: 54px; padding: 12px 18px; font-size: 18px; }
  .icon { width: 27px; height: 27px; }
  .reading-actions .button span:not(.arrow) { flex: 1; text-align: center; }
}
@media (max-width: 540px) {
  .masthead { height: auto; padding: 9px 18px 8px; flex-direction: column; gap: 0; }
  .brand { width: 132px; height: 66px; }
  .navigation { width: 100%; justify-content: space-between; gap: 16px; font-size: 16px; }
  .navigation a { padding: 9px 0; }
  .hero { height: 520px; background-size: auto 285px; background-position: 68% bottom; }
  .hero-copy { padding: 32px 22px 0; }
  .eyebrow { font-size: 9px; letter-spacing: 3px; margin-bottom: 19px; }
  #hero-title { font-size: clamp(26px,7.35vw,39px); line-height: 1.12; letter-spacing: -.015em; }
  .hero-actions { margin-top: 24px; gap: 12px; }
  .hero-actions .button { min-width: 0; font-size: 17px; padding: 12px 15px; gap: 20px; }
  .about { padding: 24px 22px 28px; }
  h2 { font-size: 30px; line-height: 1.13; }
  .section-heading { gap: 10px; }
  .section-heading > span { min-width: 12px; }
  .synopsis { font-size: 19px; line-height: 1.42; }
}
@media (max-width: 380px) {
  .hero-actions .button { font-size: 15px; padding: 12px; gap: 10px; }
  .navigation { gap: 12px; }
  .reading-actions .button { font-size: 16px; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
@media print {
  .masthead,.hero-actions,.reading-actions,.hero-wordmark,dialog,.skip-link { display: none; }
  body,.about { background: white; color: black; }
  .hero { height: auto; min-height: 0; background: none; }
  .hero-copy { position: static; }
  #hero-title { font-size: 24pt; filter: none; }
  .metal-silver,.metal-gold { background: none; -webkit-text-fill-color: black; -webkit-text-stroke: 0; }
  .synopsis { width: 90%; font-size: 12pt; }
  h2 { font-size: 22pt; }
}

/* Scroll scene: independent source artwork, simulated water and live interface. */
html { scroll-padding-top: 100px; }
.masthead { position:fixed; inset:0 0 auto; height:80px; min-height:0; z-index:20; padding:0 8%; background:linear-gradient(#080b0cf0,#080b0ce8); }
.brand { width:146px; min-width:0; }
.navigation { gap:clamp(20px,3vw,46px); font-size:17px; }
.experience { height:100svh; min-height:640px; position:relative; }
.scene-stage { position:sticky; top:0; height:100svh; min-height:640px; overflow:hidden; isolation:isolate; background:#06090b; }
.lake-scene, .backdrop-layer, .water-layer, .scene-vignette, .binary-code { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; }
.lake-scene { z-index:0; }
.backdrop-layer { z-index:0; }
.water-layer { z-index:1; }
.emblem-object { --emblem-h:48svh; --emblem-x:50vw; --emblem-foot:68.5714svh; position:absolute; z-index:2; left:var(--emblem-x); top:calc(var(--emblem-foot) - var(--emblem-h)); height:var(--emblem-h); width:calc(var(--emblem-h) * 489 / 887); transform:translateX(-50%); overflow:hidden; filter:drop-shadow(0 0 18px #a2692815); }
.emblem-object img { display:block; max-width:none; height:100%; width:auto; position:absolute; top:0; left:calc(var(--emblem-h) * -96 / 887); }
.scene-vignette { z-index:3; background:radial-gradient(ellipse at 50% 42%,transparent 26%,#02030644 84%),linear-gradient(0deg,#080b0c 0%,transparent 17%,transparent 88%,#04070866 100%); }
.binary-code { z-index:1; overflow:hidden; opacity:.8; }
.code-bank { position:absolute; top:6%; bottom:4%; width:104px; overflow:hidden; mask-image:linear-gradient(transparent,#000 18%,#000 80%,transparent); }
.code-bank--left { left:3.1%; }
.code-bank--right { right:3.1%; }
.code-track { animation:code-stream 65s linear infinite; will-change:transform; }
.code-bank--right .code-track { animation-duration:71s; animation-direction:reverse; }
.code-sequence { padding-bottom:24px; }
.code-byte { display:flex; justify-content:space-between; height:26px; color:#c09458; font:12px/26px "Courier New",monospace; text-shadow:0 0 8px #b8884135; opacity:.42; }
.code-byte:nth-child(4n) { opacity:.78; }
.code-byte:nth-child(3n) { opacity:.23; }
.code-byte span { animation:code-glow 7s ease-in-out infinite alternate; animation-delay:calc(var(--bit) * -.7s); }
@keyframes code-stream { to { transform:translateY(-50%); } }
@keyframes code-glow { from { color:#80633b; } to { color:#ddbb7f; } }
.hero-copy { position:absolute; z-index:4; left:10.2%; top:27%; padding:0; width:54%; }
.eyebrow { font-size:11px; letter-spacing:4px; gap:13px; margin-bottom:22px; }
.eyebrow::before { width:47px; }
#hero-title { font-size:clamp(38px,4.25vw,76px); line-height:1.06; letter-spacing:.005em; }
#hero-title > span { transform:scaleX(.93); }
.hero-actions { margin-top:32px; gap:18px; }
.hero-actions .button { font-size:20px; min-height:52px; padding:14px 26px; width:auto; min-width:192px; }
.hero-actions .start-reading { min-width:242px; }
.scroll-cue { position:absolute; z-index:5; bottom:6%; left:50%; transform:translateX(-50%); display:flex; align-items:center; flex-direction:column; gap:18px; color:#c7b391; font:10px/1.2 Arial,sans-serif; text-transform:uppercase; letter-spacing:3px; padding:12px 24px; white-space:nowrap; }
.scroll-cue-line { display:block; width:1px; height:38px; background:linear-gradient(#c19d62,transparent); transform-origin:top; animation:cue 2.4s ease-in-out infinite; }
@keyframes cue { 0%,100% { transform:scaleY(.6); opacity:.4; } 50% { transform:scaleY(1); opacity:1; } }
.motion-ready .experience { height:240svh; }
.motion-ready { --title-reveal:0; --actions-reveal:0; --header-reveal:0; --cue-opacity:1; }
.motion-ready .masthead { opacity:var(--header-reveal); transform:translateY(calc((1 - var(--header-reveal)) * -20px)); }
.motion-ready .hero-copy .eyebrow, .motion-ready #hero-title { opacity:var(--title-reveal); transform:translateY(calc((1 - var(--title-reveal)) * 32px)); }
.motion-ready .hero-actions { opacity:var(--actions-reveal); transform:translateY(calc((1 - var(--actions-reveal)) * 24px)); }
.motion-ready .scroll-cue { opacity:var(--cue-opacity); }
.scene-paused .code-track,.scene-paused .code-byte span { animation-play-state:paused; }
.about { position:relative; z-index:2; padding:56px 0 64px; border-top:1px solid #ac895c22; }
.section-heading { margin-bottom:30px; }
h2 { font-size:clamp(30px,3vw,46px); }
.synopsis { max-width:934px; font-size:clamp(19px,1.35vw,22px); line-height:1.5; }
.synopsis p { margin-bottom:22px; }
#world,#read { scroll-margin-top:112px; }
.reading-actions { margin-top:32px; }
.reading-actions .button { font-size:16px; min-height:52px; }
@media (min-width:701px) and (max-width:1100px) {
  .hero-copy { top:28%; width:57%; left:9%; }
  #hero-title { font-size:4.6vw; }
  .hero-actions .button { font-size:17px; min-width:140px; padding:12px 18px; }
  .hero-actions .start-reading { min-width:186px; }
  .code-bank { width:64px; }
  .code-byte { font-size:9px; }
  .code-bank--left { left:1.5%; }.code-bank--right { right:1.5%; }
  .synopsis { width:78%; }
}
@media (max-width:700px) {
  html { scroll-padding-top:106px; }
  .masthead { height:100px; padding:7px 20px 5px; flex-direction:column; gap:0; }
  .brand { width:112px; height:56px; }
  .navigation { font-size:15px; gap:20px; width:min(100%,360px); justify-content:space-between; }
  .navigation a { padding:8px 0; }
  .experience,.scene-stage { min-height:560px; }
  .hero-copy { left:0; width:100%; top:17%; padding:0 22px; text-align:center; }
  .eyebrow { justify-content:center; font-size:8px; letter-spacing:3px; margin-bottom:14px; gap:9px; }
  .eyebrow::before { width:28px; }
  #hero-title { font-size:clamp(25px,7.3vw,47px); line-height:1.07; letter-spacing:0; }
  #hero-title > span { margin:0 auto; transform:scaleX(.95); transform-origin:center; }
  .hero-actions { justify-content:center; margin-top:20px; gap:12px; }
  .hero-actions .button,.hero-actions .start-reading { min-width:0; min-height:44px; font-size:16px; padding:11px 17px; gap:14px; }
  .code-bank { width:48px; top:30%; bottom:2%; }
  .code-bank--left { left:3%; }.code-bank--right { right:3%; }
  .code-byte { font-size:8px; height:24px; line-height:24px; }
  .binary-code { opacity:.67; }
  .scroll-cue { bottom:5%; font-size:9px; }
  .about { padding:38px 22px 40px; }
  .section-heading { margin-bottom:25px; }
  h2 { font-size:29px; }
  .synopsis { width:100%; font-size:19px; line-height:1.5; }
  .reading-actions .button { font-size:17px; }
}
@media (max-width:360px) {
 .hero-copy { padding:0 14px; }
 .hero-actions .button,.hero-actions .start-reading { font-size:14px; padding:11px 12px; gap:9px; }
 .reading-actions .button { font-size:15px; gap:9px; padding:12px; }
}
@media (prefers-reduced-motion:reduce) {
 .experience,.motion-ready .experience { height:100svh; }
 .code-track,.code-byte span,.scroll-cue-line { animation:none; }
 .scroll-cue { display:none; }
}
@media print {
 .experience { height:auto!important; min-height:0; }
 .scene-stage { position:static; height:auto; min-height:0; }
 .lake-scene,.binary-code,.scroll-cue { display:none; }
 .hero-copy { position:static; width:100%; padding:20px; }
 .motion-ready #hero-title,.motion-ready .hero-copy .eyebrow { opacity:1; transform:none; }
 .about { padding:20px; }
}

.emblem-object { width:calc(var(--emblem-h) * 489 / 840); }
.emblem-object img { height:calc(var(--emblem-h) * 887 / 840); left:calc(var(--emblem-h) * -96 / 840); top:calc(var(--emblem-h) * -12 / 840); }

.scene-loading .masthead,.scene-loading .hero-copy { opacity:0; }
.scene-unavailable .lake-scene { background:#090b0c url(assets/lake-environment.png) 65% center / cover; }
.scene-unavailable .emblem-object,.scene-unavailable canvas,.scene-unavailable .scroll-cue { display:none; }

/* Revision 4: horizontal brand, delayed emblem title. */
.brand { display:flex; align-items:center; gap:14px; width:auto; height:68px; }
.brand-symbol { position:relative; display:block; flex:0 0 auto; height:58px; width:calc(58px * 489 / 840); overflow:hidden; }
.brand-symbol img { position:absolute; display:block; max-width:none; height:calc(58px * 887 / 840); width:auto; top:calc(58px * -12 / 840); left:calc(58px * -96 / 840); }
.brand-name { white-space:nowrap; font-family:"War Slab",Georgia,serif; font-size:27px; font-weight:800; letter-spacing:.035em; line-height:1.2; filter:drop-shadow(0 2px 2px #000); }
.emblem-caption { position:absolute; z-index:3; left:72%; top:23%; margin:0; transform:translate(-50%,-100%); font-family:"War Slab",Georgia,serif; font-weight:800; font-size:clamp(26px,3.1vw,48px); line-height:1.2; letter-spacing:.055em; white-space:nowrap; filter:drop-shadow(0 3px 3px #000); }
.emblem-caption::after { content:""; position:absolute; left:8%; right:8%; bottom:-9px; height:1px; background:linear-gradient(90deg,transparent,#bfa16f88,transparent); }
.motion-ready .emblem-caption { opacity:var(--emblem-title-reveal,0); transform:translate(-50%,calc(-100% + (1 - var(--emblem-title-reveal,0)) * 12px)); }
.scene-loading .emblem-caption,.scene-unavailable .emblem-caption { opacity:0; }
@media (max-width:700px) {
 .brand { height:53px; gap:10px; }
 .brand-symbol { height:46px; width:calc(46px * 489 / 840); }
 .brand-symbol img { height:calc(46px * 887 / 840); top:calc(46px * -12 / 840); left:calc(46px * -96 / 840); }
 .brand-name { font-size:23px; }
 .emblem-caption { font-size:24px; letter-spacing:.045em; }
}
@media (max-width:700px) and (max-height:699px) {
 .hero-copy { top:18%; }
 .eyebrow { font-size:7px; margin-bottom:10px; }
 #hero-title { font-size:clamp(23px,6.5vw,33px); }
 .hero-actions { margin-top:14px; }
 .hero-actions .button { min-height:38px; padding:9px 14px; font-size:14px; }
 .emblem-caption { font-size:21px; }
}
