/* IDAVIUM — idavium.com
   A house you walk into. Warm paper pages, crimson cloth, gold foil and one
   gesture that runs the brand: the thick gold block. It floats in the hero,
   falls into the ink, lights the books on the shelf and carries every page
   transition. */

@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/bricolage-latin.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  --sweep-shade: #561012;
  /* paper */
  --paper: #f4ede0;
  --paper-2: #fbf7ef;
  --bone: #ebe1cd;
  --sand: #d9c8a8;
  /* ink */
  --ink: #23150f;
  --ink-soft: #5d4739;
  --rule: color-mix(in srgb, var(--ink) 14%, transparent);
  /* crimson cloth */
  --deep: #7a1418;
  --deep-2: #561012;
  --deep-hi: #93231f;
  /* gold */
  --gold: #e4a83d;
  --gold-light: #f4d58c;
  --gold-deep: #8d5a14;
  /* hearth */
  --night: #1d120d;
  --night-2: #2b1a13;
  --label-on-dark: var(--gold-light);

  --font-serif: "Newsreader", "Iowan Old Style", "Palatino", Georgia, serif;
  --font-sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-logo: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  /* kept for older markup */
  --font-display: var(--font-serif);
  --font-body: var(--font-sans);

  --step-1: clamp(1.08rem, 1rem + .3vw, 1.22rem);
  --step-2: clamp(1.5rem, 1.2rem + 1vw, 2.1rem);
  --step-3: clamp(2rem, 1.3rem + 2.4vw, 3.4rem);
  --step-4: clamp(2.6rem, 1.3rem + 4.4vw, 5.4rem);
  --step-5: clamp(3.2rem, 1.2rem + 6.6vw, 8rem);

  --wrap: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 14px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.77, 0, .18, 1);

  /* textures */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='360'%3E%3Cfilter id='p' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch' result='n'/%3E%3CfeDiffuseLighting in='n' lighting-color='%23fff' surfaceScale='1.1'%3E%3CfeDistantLight azimuth='45' elevation='62'/%3E%3C/feDiffuseLighting%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E");
  --fibre: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='520'%3E%3Cfilter id='f' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.009' numOctaves='3' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .38 0 0 0 0 .2 0 0 0 .22 -.06'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
  --weave: repeating-linear-gradient(0deg, rgba(0, 0, 0, .075) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, rgba(255, 220, 190, .035) 0 1px, transparent 1px 3px);
  --foil: linear-gradient(100deg, #b47b25 0%, #f2cf7c 18%, #c48b2c 36%, #f7dd99 52%, #b98128 70%, #ecc66d 86%, #a8711e 100%);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html:not(.lenis) { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  font-family: var(--font-sans); font-size: 1.0625rem; line-height: 1.65; color: var(--ink);
  background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: clip;
  font-feature-settings: "ss01";
}
/* paper: a fixed layer of grain over everything, plus long fibres on the paper itself */
body::after { content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; background-image: var(--grain); opacity: .32; mix-blend-mode: multiply; }
.bg-paper, .bg-bone, .stage, .page-hero { background-image: var(--fibre); background-size: 520px 520px; }
img, video, canvas { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
section { scroll-margin-top: 84px; position: relative; }
:focus-visible { outline: 2px solid var(--deep); outline-offset: 3px; border-radius: 3px; }
::selection { background: var(--gold); color: var(--ink); }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; position: relative; z-index: 1; }
.skip-link { position: absolute; left: 1rem; top: -3rem; z-index: 400; background: var(--ink); color: var(--paper); padding: .6rem 1rem; border-radius: 6px; }
.skip-link:focus { top: 1rem; }

/* ---------- type ---------- */
.label { display: inline-flex; align-items: center; gap: .65rem; font-family: var(--font-sans); font-style: normal; font-size: .92rem; font-weight: 600; letter-spacing: .005em; color: var(--ink-soft); line-height: 1.2; }
.label::before { content: ""; width: 6px; height: 15px; background: var(--gold); flex: none; }
.display { font-family: var(--font-serif); font-weight: 400; letter-spacing: -.022em; line-height: 1.02; font-optical-sizing: auto; text-wrap: balance; }
h2.display { font-size: var(--step-4); }
.display em { font-style: italic; color: var(--deep); letter-spacing: -.012em; }
.lede { font-size: var(--step-1); line-height: 1.6; color: var(--ink-soft); max-width: 34em; }
.split-line { padding-bottom: .1em; margin-bottom: -.1em; }
.text-wrap-pretty, p { text-wrap: pretty; }

/* the hand-drawn gold underline: drawn once the words are on screen */
.hl, mark.hl {
  color: inherit; background-color: transparent; font-style: italic;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 24' preserveAspectRatio='none'%3E%3Cpath d='M3 15c58-7 130-11 196-9 66 1 128 4 198-3' fill='none' stroke='%23e4a83d' stroke-width='7' stroke-linecap='round'/%3E%3Cpath d='M30 20c70-4 160-6 250-3' fill='none' stroke='%23e4a83d' stroke-width='3' stroke-linecap='round' opacity='.7'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: left 96%; background-size: 0% .34em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; padding-bottom: .06em;
  transition: background-size 1.2s var(--ease-io);
}
.hl.is-on, mark.hl.is-on { background-size: 100% .34em; }
.display .hl, .display mark.hl { color: var(--deep); }

/* gold foil, for words set on the crimson cloth */
.foil {
  background-image: var(--foil); background-size: 220% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 rgba(40, 6, 6, .55));
  transition: background-position 2.4s var(--ease);
}
.foil.is-lit, .foil:hover { background-position: 0 0; }

.logo { display: inline-flex; align-items: baseline; font-family: var(--font-logo); font-weight: 800; letter-spacing: .01em; font-size: 1.32rem; line-height: 1; white-space: nowrap; font-variation-settings: "opsz" 24; }
.logo__block { display: inline-block; width: .3em; height: .74em; background: var(--gold); margin: 0 .07em; transform-origin: 50% 100%; transition: transform .6s var(--ease); }
a:hover > .logo .logo__block, .logo:hover .logo__block { transform: scaleY(1.18); }

/* ---------- buttons: the gold block slides in behind the words ---------- */
.btn { position: relative; display: inline-flex; align-items: center; gap: .7rem; padding: 1rem 1.45rem; border-radius: 10px; font-family: var(--font-sans); font-weight: 600; font-size: .98rem; line-height: 1; letter-spacing: -.005em; cursor: pointer; border: 0; overflow: hidden; isolation: isolate; transition: color .45s var(--ease), box-shadow .45s var(--ease); }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: translateX(-101%); transition: transform .6s var(--ease); }
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid::before { background: var(--gold); }
.btn--solid:hover { color: var(--ink); }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold::before { background: var(--paper-2); }
.btn--line { color: var(--ink); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ink) 28%, transparent); }
.btn--line::before { background: var(--ink); }
.btn--line:hover { color: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn .arrow { display: inline-block; transition: transform .45s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }

/* ---------- gold-block cursor (fine pointers only) ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 260; pointer-events: none; display: none; }
.has-cursor .cursor { display: block; }
.cursor__block { width: 8px; height: 22px; background: var(--gold); transform: translate(-50%, -50%); transition: width .4s var(--ease), height .4s var(--ease), border-radius .4s; display: grid; place-items: center; overflow: hidden; box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 18%, transparent); }
.cursor__text { font-size: .8rem; font-weight: 600; color: var(--ink); opacity: 0; transition: opacity .3s; white-space: nowrap; }
.cursor.is-link .cursor__block { width: 14px; height: 14px; }
.cursor.is-label .cursor__block { width: 92px; height: 92px; border-radius: 50%; }
.cursor.is-label .cursor__text { opacity: 1; }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 60; transition: background-color .45s var(--ease), box-shadow .45s var(--ease), transform .6s var(--ease); }
.nav.is-solid { background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: blur(14px) saturate(1.1); -webkit-backdrop-filter: blur(14px) saturate(1.1); box-shadow: 0 1px 0 var(--rule); }
.nav.is-hidden:not(.is-open) { transform: translateY(-100%); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 1.5rem; }
.nav__brand { position: relative; display: inline-flex; align-items: center; }
.nav__seal { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; pointer-events: none; opacity: 0; }
.nav__links { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2.1rem); list-style: none; }
.nav__links a:not(.btn) { font-size: .95rem; font-weight: 500; color: var(--ink-soft); position: relative; padding: .3rem 0; transition: color .3s; }
.nav__links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav__links a:not(.btn):hover, .nav__links a[aria-current]:not(.btn) { color: var(--ink); }
.nav__links a:not(.btn):hover::after, .nav__links a[aria-current]:not(.btn)::after { transform: scaleX(1); transform-origin: left; }
.nav .btn { padding: .72rem 1.1rem; font-size: .9rem; }
.nav__toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 7px auto; transition: transform .45s var(--ease); }
@media (max-width: 960px) {
  .nav__toggle { display: block; }
  .nav__links { position: fixed; inset: 76px 0 auto 0; height: calc(100svh - 76px); flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); padding: 1rem var(--gutter) 2rem; clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .7s var(--ease-io), visibility .7s; }
  .nav__links li { border-bottom: 1px solid var(--rule); }
  .nav__links li:last-child { border: 0; padding-top: 1.6rem; }
  .nav__links a:not(.btn) { display: block; padding: 1rem 0; font-family: var(--font-serif); font-weight: 400; letter-spacing: -.02em; font-size: 2.1rem; color: var(--ink); }
  .nav__links a:not(.btn)::after { display: none; }
  .nav__links .btn { width: 100%; justify-content: center; padding: 1.1rem; font-size: 1rem; }
  .nav.is-open { background: var(--paper); }
  .nav.is-open .nav__links { clip-path: inset(0 0 0 0); visibility: visible; }
  .nav.is-open .nav__toggle span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .nav.is-open .nav__toggle span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
}
/* over the crimson cloth the nav turns light */
.nav.on-cloth:not(.is-open) { color: var(--paper); }
.nav.on-cloth:not(.is-open) .nav__links a:not(.btn) { color: color-mix(in srgb, var(--paper) 78%, transparent); }
.nav.on-cloth:not(.is-open) .nav__links a:not(.btn):hover { color: var(--paper); }
.nav.on-cloth:not(.is-open) .btn--solid { background: var(--gold); color: var(--ink); }
.nav.on-cloth:not(.is-open) .nav__toggle span { background: var(--paper); }
.nav.on-cloth.is-solid:not(.is-open) { background: color-mix(in srgb, var(--deep-2) 82%, transparent); box-shadow: 0 1px 0 rgba(0, 0, 0, .2); }

/* ---------- rail ---------- */
.rail { display: none; }
@media (min-width: 1400px) {
  .rail { display: block; position: fixed; z-index: 40; left: 30px; top: 24vh; bottom: 24vh; width: 3px; background: var(--rule); pointer-events: none; }
  .rail::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform: scaleY(var(--progress, 0)); transform-origin: top; }
}

/* ---------- intro (first visit): crimson doors sealed with wax ---------- */
.intro { display: none; }
html.has-intro .intro { display: block; position: fixed; inset: 0; z-index: 310; perspective: 1100px; cursor: pointer; }
.intro__door { position: absolute; top: 0; bottom: 0; width: 50.2%; overflow: hidden; background-color: var(--deep); background-image: var(--weave), radial-gradient(130% 90% at 50% 45%, transparent 50%, rgba(20, 2, 2, .38)); backface-visibility: hidden; }
.intro__door::after { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: .45; mix-blend-mode: multiply; }
.intro__door--l { left: 0; transform-origin: 0 50%; }
.intro__door--r { right: 0; transform-origin: 100% 50%; }
.intro__door--l::before, .intro__door--r::before { content: ""; position: absolute; top: 22px; bottom: 22px; border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent); outline: 1px solid color-mix(in srgb, var(--gold) 30%, transparent); outline-offset: 6px; z-index: 1; }
.intro__door--l::before { left: 22px; right: 10px; border-right: 0; }
.intro__door--r::before { right: 22px; left: 10px; border-left: 0; }
.intro__shade { position: absolute; inset: 0; background: #000; opacity: 0; z-index: 2; }
.intro__seal { position: absolute; top: 50%; width: clamp(150px, 19vmin, 220px); height: clamp(150px, 19vmin, 220px); margin-top: calc(clamp(150px, 19vmin, 220px) / -2); z-index: 3; }
.intro__door--l .intro__seal { right: calc(clamp(150px, 19vmin, 220px) / -2); clip-path: inset(0 50% 0 0); }
.intro__door--r .intro__seal { left: calc(clamp(150px, 19vmin, 220px) / -2); clip-path: inset(0 0 0 50%); }
.intro__seal .seal { filter: drop-shadow(0 10px 14px rgba(20, 2, 2, .45)); }
.intro__light { position: absolute; left: 50%; top: 0; bottom: 0; width: 6px; margin-left: -3px; background: var(--gold); transform: scaleY(0); z-index: 1; }
.intro__skip { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 4; font-size: .85rem; color: color-mix(in srgb, var(--paper) 70%, transparent); opacity: 0; white-space: nowrap; }

/* ---------- the opening stage: hero, the floating block and the ink ---------- */
.stage { position: relative; z-index: 1; background-color: var(--paper); }
.stage__sticky { position: relative; }
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; padding: 120px 0 120px; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) clamp(180px, 26vw, 380px); gap: 2rem; align-items: center; }
.hero h1 { font-size: var(--step-5); margin: 1.3rem 0 1.6rem; max-width: 11.5ch; line-height: .98; }
.hero .lede { margin-bottom: 2.4rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero__block { justify-self: center; width: clamp(60px, 6.6vw, 104px); height: min(46vh, 440px); background: var(--gold); margin-top: -4vh; }
.hero__foot { position: absolute; left: 0; right: 0; bottom: 28px; z-index: 1; }
.hero__foot .wrap { display: flex; justify-content: space-between; align-items: end; gap: 1rem; }
.hero__markets { display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; font-size: .9rem; color: var(--ink-soft); }
.hero__markets span { display: inline-flex; align-items: center; gap: .5rem; }
.hero__markets span + span::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--sand); margin-right: .9rem; }
.hero__hint { display: inline-flex; align-items: center; gap: .7rem; font-size: .88rem; color: var(--ink-soft); }
.hero__hint i { position: relative; width: 2px; height: 34px; background: var(--rule); overflow: hidden; }
.hero__hint i::after { content: ""; position: absolute; left: 0; top: 0; width: 2px; height: 12px; background: var(--deep); animation: hint 2.2s var(--ease-io) infinite; }
@keyframes hint { 0% { transform: translateY(-14px); } 60%, 100% { transform: translateY(36px); } }
.stage__canvas { display: none; }
.stage__after { position: relative; color: var(--paper); background-color: var(--deep); background-image: var(--weave), radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(25, 3, 3, .32)); }
.stage__after .wrap { min-height: 100svh; display: grid; align-items: center; padding: 120px 0 100px; }
@media (max-width: 860px) {
  .hero { align-items: start; padding-top: 112px; padding-bottom: 150px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 9.6ch; }
  .hero__block { justify-self: end; width: 42px; height: 128px; margin-top: 1.6rem; margin-right: 8%; }
  .hero__hint { display: none; }
}
/* with motion the block and the ink are drawn on a canvas over the sticky stage */
.motion-ok .stage { height: calc(100svh + 150vh); }
.motion-ok .stage__sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.motion-ok .hero { height: 100svh; min-height: 0; }
.motion-ok .hero__block { visibility: hidden; }
.motion-ok .stage__canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.motion-ok .stage__after { position: absolute; inset: 0; z-index: 3; background: none; visibility: hidden; }
.motion-ok .stage__after .wrap { height: 100svh; min-height: 0; padding: 90px 0 70px; }

/* manifesto, written on the cloth */
.manifesto { display: grid; grid-template-columns: 1fr clamp(150px, 17vw, 230px); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.manifesto__text { font-family: var(--font-serif); font-weight: 400; letter-spacing: -.022em; font-size: clamp(2.4rem, 1rem + 4.1vw, 5.2rem); line-height: 1.02; max-width: 15em; text-wrap: balance; }
.manifesto__note { margin-top: 1.8rem; color: color-mix(in srgb, var(--paper) 80%, transparent); max-width: 36rem; font-size: 1.1rem; }
.manifesto .label { color: var(--gold-light); margin-bottom: 1.6rem; }
.manifesto__seal { will-change: transform; }
@media (max-width: 760px) { .manifesto { grid-template-columns: 1fr; } .manifesto__seal { width: 120px; order: -1; } }

/* ---------- sections ---------- */
.section { padding: clamp(5.5rem, 11vw, 9.5rem) 0; }
.section__head { display: grid; gap: 1.3rem; margin-bottom: clamp(3rem, 6vw, 5rem); max-width: 54rem; }
.bg-paper { background-color: var(--paper); }
.bg-bone { background-color: var(--bone); }
.bg-cloth, .bg-deep {
  background-color: var(--deep); color: var(--paper);
  background-image: var(--weave), radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(25, 3, 3, .32));
}
.bg-cloth .label, .bg-deep .label { color: var(--gold-light); }
.bg-cloth .display em, .bg-deep .display em { color: var(--gold-light); }
.bg-cloth .lede, .bg-deep .lede { color: color-mix(in srgb, var(--paper) 80%, transparent); }
.bg-night { background-color: var(--night); color: var(--paper); background-image: radial-gradient(120% 100% at 50% 0%, var(--night-2), transparent 70%); }
.bg-night .label { color: var(--gold-light); }
.bg-night .display em { color: var(--gold-light); }
.bricks { /* legacy hook */ }

/* ---------- pillars: five books on the shelf ---------- */
.build { position: relative; z-index: 2; background-color: var(--bone); background-image: var(--fibre); background-size: 520px 520px; }
.build__pin { min-height: 100vh; display: flex; align-items: center; padding: clamp(6rem, 10vw, 8rem) 0; }
.build__grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.build__title { font-size: var(--step-4); margin: 1.1rem 0 2.6rem; }
.shelf { position: relative; display: flex; align-items: flex-end; gap: 6px; height: clamp(250px, 38vh, 360px); padding: 0 6px; }
.shelf::after { content: ""; position: absolute; left: -14px; right: -14px; bottom: -14px; height: 14px; background: var(--night-2); border-radius: 2px; box-shadow: 0 18px 24px -14px rgba(30, 14, 8, .55), inset 0 2px 0 rgba(255, 220, 180, .12); }
.book {
  --c: var(--deep); --t: var(--gold-light);
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  width: var(--w, 60px); height: var(--h, 86%); padding: 16px 0 14px; border-radius: 3px 3px 1px 1px;
  background-color: var(--c); background-image: var(--weave), linear-gradient(90deg, rgba(0, 0, 0, .28), transparent 18%, rgba(255, 255, 255, .07) 48%, transparent 62%, rgba(0, 0, 0, .3));
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18), 6px 0 12px -8px rgba(30, 14, 8, .5);
  color: var(--t); transform-origin: 50% 100%; transition: transform .8s var(--ease), filter .8s var(--ease);
}
.book::before, .book::after { content: ""; position: absolute; left: 7px; right: 7px; height: 5px; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; opacity: .7; }
.book::before { top: 40px; }
.book::after { bottom: 34px; }
.book__n { font-family: var(--font-serif); font-style: italic; font-size: .95rem; line-height: 1; }
.book__t { writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--font-serif); font-size: clamp(1rem, .7rem + .6vw, 1.32rem); letter-spacing: .02em; white-space: nowrap; }
.book__mark { width: 8px; height: 18px; background: currentColor; }
.book--crimson { --c: var(--deep); --t: var(--gold-light); }
.book--night { --c: #2e1d15; --t: var(--gold); }
.book--linen { --c: #e6d8bc; --t: var(--deep); background-image: var(--weave), linear-gradient(90deg, rgba(0, 0, 0, .12), transparent 18%, rgba(255, 255, 255, .25) 48%, transparent 62%, rgba(0, 0, 0, .14)); }
.book--gold { --c: #c98f2e; --t: var(--ink); }
.book--wine { --c: var(--deep-2); --t: var(--gold-light); }
.shelf.is-reading .book { filter: saturate(.72) brightness(.9); }

.build__items { position: relative; }
.build__item { display: grid; gap: 1rem; }
.build__count { font-family: var(--font-sans); font-size: .92rem; font-weight: 600; color: var(--gold-deep); letter-spacing: .02em; }
.build__item h3 { font-family: var(--font-serif); font-weight: 400; letter-spacing: -.025em; line-height: .98; font-size: clamp(3rem, 1.4rem + 4.6vw, 6rem); }
.build__claim { font-family: var(--font-serif); font-size: clamp(1.4rem, 1.1rem + 1.1vw, 2.05rem); line-height: 1.15; color: var(--deep); letter-spacing: -.01em; }
.build__item p.text { color: var(--ink-soft); max-width: 32rem; font-size: 1.06rem; }
.chips-list { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; max-width: 36rem; margin-top: .4rem; }
.chips-list li { font-size: .92rem; font-weight: 500; padding: .55rem .9rem; border-radius: 8px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 18%, transparent); background: var(--paper-2); }
.build__outro .btn { justify-self: start; margin-top: .6rem; }
@media (min-width: 961px) {
  .motion-ok .build__pin { height: 100vh; padding: 0; }
  .motion-ok .build__items { height: 31rem; }
  .motion-ok .build__item { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); visibility: hidden; }
}
@media (max-width: 960px) {
  .build__grid { grid-template-columns: 1fr; }
  .shelf { height: 200px; max-width: 420px; }
  .book { width: calc(var(--w, 60px) * .8); padding: 12px 0 10px; }
  .book::before { top: 32px; }
  .book::after { bottom: 26px; }
  .book__t { font-size: .92rem; }
    .build__items { display: grid; gap: 3.5rem; margin-top: 2rem; }
  .build__item { padding-top: 2rem; border-top: 1px solid var(--ink); }
}

/* ---------- sectors: an index ---------- */
.sectors { list-style: none; border-top: 1px solid var(--ink); counter-reset: sector; }
.sector { counter-increment: sector; position: relative; display: grid; grid-template-columns: 3rem auto 1fr minmax(0, 24rem); gap: .6rem 1.2rem; align-items: baseline; padding: clamp(1rem, 1.8vw, 1.35rem) 0; border-bottom: 1px solid var(--rule); }
.sector::before { content: counter(sector, upper-roman); font-family: var(--font-serif); font-size: 1rem; color: var(--gold-deep); letter-spacing: .04em; }
.sector__name { font-family: var(--font-serif); font-weight: 400; letter-spacing: -.02em; line-height: 1.05; font-size: clamp(1.9rem, 1rem + 2.7vw, 3.4rem); color: var(--ink); transition: color .5s var(--ease), transform .6s var(--ease); }
.sector__dots { align-self: end; height: 1px; margin-bottom: .7em; background-image: radial-gradient(circle, color-mix(in srgb, var(--ink) 35%, transparent) 1px, transparent 1.4px); background-size: 9px 2px; background-repeat: repeat-x; }
.sector__line { color: var(--ink-soft); font-size: 1.02rem; text-align: right; }
.sector:hover .sector__name, .sector.is-active .sector__name { color: var(--deep); transform: translateX(.35rem); }
.sectors__note { margin-top: 1.8rem; color: var(--ink-soft); }
.sectors__note strong { color: var(--ink); font-weight: 600; }
@media (max-width: 860px) {
  .sector { grid-template-columns: 2.2rem 1fr; }
  .sector__dots { display: none; }
  .sector__line { grid-column: 2; text-align: left; }
}

/* ---------- the workshop: tools we make for ourselves ---------- */
.tools { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.6rem); }
.tool { position: relative; display: grid; grid-template-rows: auto 1fr; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); box-shadow: 0 0 0 1px var(--rule), 0 24px 40px -34px rgba(40, 20, 10, .5); transition: transform .7s var(--ease), box-shadow .7s var(--ease); }
.tool:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 22%, transparent), 0 34px 50px -34px rgba(40, 20, 10, .55); }
.tool__art { position: relative; aspect-ratio: 16 / 10; background-color: var(--c, var(--bone)); background-image: var(--fibre); background-size: 520px 520px; border-bottom: 1px solid var(--rule); }
.tool__art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.tool:nth-child(1) .tool__art { --c: #efd9a8; }
.tool:nth-child(2) .tool__art { --c: #ead2c5; }
.tool:nth-child(3) .tool__art { --c: #dfe0c8; }
.tool__body { padding: 1.5rem 1.6rem 1.8rem; }
.tool__mark { display: none; }
.tool h3 { font-family: var(--font-serif); font-weight: 400; letter-spacing: -.02em; font-size: var(--step-2); line-height: 1.1; margin-bottom: .6rem; }
.tool p { color: var(--ink-soft); font-size: .98rem; }
.tech__disclaimer, .tools__note { margin-top: 2.2rem; font-size: .92rem; color: var(--ink-soft); display: flex; align-items: center; gap: .7rem; }
.tools__note::before { content: ""; width: 6px; height: 14px; background: var(--gold); flex: none; }
.tech { /* legacy section hook */ }
@media (max-width: 900px) { .tools { grid-template-columns: 1fr; } }

/* ---------- the promise, on the cloth like a book cover ---------- */
.promise { overflow: hidden; }
.promise .wrap { position: relative; padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3.5rem); }
.promise .wrap::before { content: ""; position: absolute; inset: 0; pointer-events: none; border: 1.5px solid color-mix(in srgb, var(--gold) 70%, transparent); outline: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); outline-offset: -9px; }
.promise__list { list-style: none; display: grid; gap: .3rem; margin-top: clamp(2.2rem, 4.5vw, 3.4rem); }
.promise__list li { position: relative; justify-self: start; font-family: var(--font-serif); font-weight: 400; letter-spacing: -.02em; font-size: clamp(1.6rem, 1rem + 2.5vw, 3.2rem); line-height: 1.2; color: color-mix(in srgb, var(--paper) 92%, transparent); }
.promise__list .strike { position: absolute; left: -.08em; right: -.08em; top: 55%; height: .07em; background: var(--gold); transform-origin: left; border-radius: 2px; }
.promise__foot { margin-top: clamp(2.2rem, 4.5vw, 3.4rem); font-size: 1.15rem; max-width: 46rem; color: color-mix(in srgb, var(--paper) 86%, transparent); }
.promise__seal { position: absolute; right: clamp(1.5rem, 4vw, 3.5rem); top: clamp(2rem, 4vw, 3rem); width: clamp(130px, 17vw, 240px); transform: rotate(-10deg); }
@media (max-width: 760px) { .promise__seal { position: static; width: 120px; margin-bottom: 1.5rem; } }

/* ---------- method ---------- */
.method__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2.5rem, 7vw, 7rem); align-items: start; }
.method__head { position: sticky; top: 130px; display: grid; gap: 1.3rem; }
.steps { list-style: none; counter-reset: step; }
.step { counter-increment: step; position: relative; display: grid; grid-template-columns: auto 1fr; gap: 0 clamp(1.2rem, 3vw, 2.6rem); padding: clamp(2rem, 4vw, 3rem) 0; }
.step::before { content: counter(step, upper-roman); font-family: var(--font-serif); font-size: clamp(2.6rem, 2rem + 2vw, 3.8rem); line-height: .9; color: var(--gold-deep); grid-row: span 2; min-width: 1.6em; }
.step__line { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--rule); overflow: hidden; }
.step__line span { position: absolute; inset: 0; background: var(--ink); transform-origin: left; }
.step h3 { font-family: var(--font-serif); font-weight: 400; letter-spacing: -.02em; font-size: var(--step-2); line-height: 1.1; margin-bottom: .6rem; }
.step p { color: var(--ink-soft); max-width: 32rem; }
@media (max-width: 860px) { .method__grid { grid-template-columns: 1fr; } .method__head { position: static; } }

/* ---------- calculator ---------- */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.calc__form { display: grid; gap: 1.8rem; }
.calc__field { display: grid; gap: .7rem; }
.calc__field label { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-weight: 500; font-size: .98rem; }
.calc__field output { font-family: var(--font-serif); font-size: 1.35rem; letter-spacing: -.01em; white-space: nowrap; }
.calc input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 34px; background: transparent; cursor: pointer; }
.calc input[type="range"]::-webkit-slider-runnable-track { height: 4px; background: linear-gradient(var(--ink), var(--ink)) 0 / var(--fill, 50%) 100% no-repeat, color-mix(in srgb, var(--ink) 14%, transparent); border-radius: 2px; }
.calc input[type="range"]::-moz-range-track { height: 4px; background: color-mix(in srgb, var(--ink) 14%, transparent); border-radius: 2px; }
.calc input[type="range"]::-moz-range-progress { height: 4px; background: var(--ink); border-radius: 2px; }
.calc input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 30px; margin-top: -13px; background: var(--gold); border-radius: 2px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 30%, transparent), 0 6px 14px -6px rgba(0, 0, 0, .4); }
.calc input[type="range"]::-moz-range-thumb { width: 14px; height: 30px; background: var(--gold); border: 0; border-radius: 2px; }
.calc__result { color: var(--paper); border-radius: var(--radius); padding: clamp(2.2rem, 4vw, 3.4rem); display: grid; gap: 1rem; position: relative; overflow: hidden; background-color: var(--deep); background-image: var(--weave), radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(25, 3, 3, .32)); }
.calc__result::before { content: ""; position: absolute; inset: 12px; pointer-events: none; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent); }
.calc__result { overflow: visible; transform-origin: 8% 100%; }
.calc__result > .calc__bar { position: absolute; right: 26px; bottom: 26px; width: 14px; height: 30%; max-width: none; z-index: 3; background: var(--gold); box-shadow: inset -4px 0 0 rgba(120, 70, 10, .2); }
.calc__result > .calc__crack { position: absolute; left: 0; top: 0; width: 100%; height: 100%; max-width: none; z-index: 2; overflow: visible; pointer-events: none; }
.calc__crack path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.calc__result > .calc__mender { position: absolute; left: 0; top: 0; width: 9px; height: 24px; max-width: none; z-index: 6; background: var(--gold); box-shadow: 0 0 0 1px rgba(120, 70, 10, .35), 0 6px 12px -4px rgba(40, 10, 5, .5); opacity: 0; pointer-events: none; }
.calc__result > .calc__shard { position: absolute; left: 0; top: 0; width: 24px; height: 20px; max-width: none; z-index: 5; pointer-events: none; opacity: 0; background-color: var(--deep); background-image: var(--weave); }
.calc__result > * { position: relative; z-index: 1; max-width: 84%; }
.calc__amount { font-family: var(--font-serif); font-weight: 400; letter-spacing: -.02em; line-height: .95; font-size: clamp(2.8rem, 1.4rem + 4.2vw, 5.6rem); white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; color: var(--gold-light); }
.calc__sub { color: color-mix(in srgb, var(--paper) 82%, transparent); }
.calc__note { font-size: .86rem; color: color-mix(in srgb, var(--paper) 62%, transparent); }
.calc__result .btn { justify-self: start; margin-top: .5rem; }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } }

/* ---------- portals: framed and hung on the wall ---------- */
.portals__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.2rem, 4vw, 3.6rem) clamp(1.2rem, 3vw, 2.4rem); align-items: start; }
.portal { display: block; color: inherit; }
.portal:nth-child(even) { margin-top: clamp(0rem, 9vw, 8rem); }
.portal__frame { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 2px; background: var(--night); isolation: isolate; box-shadow: 0 0 0 10px var(--paper-2), 0 0 0 11px color-mix(in srgb, var(--ink) 12%, transparent), 0 0 0 17px #3a2418, 0 30px 50px -22px rgba(40, 18, 8, .55); margin: 17px; }
.portal__media { position: absolute; inset: -6% 0; width: 100%; height: 112%; object-fit: cover; transition: transform 1.2s var(--ease); }
.portal:hover .portal__media { transform: scale(1.05); }
.portal__block { position: absolute; z-index: 2; left: 0; top: 0; bottom: 0; width: 30%; background: var(--gold); transition: transform 1s var(--ease-io); }
.portal[data-edge="right"] .portal__block { left: auto; right: 0; }
.portal[data-edge="bottom"] .portal__block { top: auto; width: 100%; height: 26%; }
.portal[data-edge="top"] .portal__block { bottom: auto; width: 100%; height: 22%; }
.portal:hover .portal__block, .portal:focus-visible .portal__block { transform: translateX(-101%); }
.portal[data-edge="right"]:hover .portal__block, .portal[data-edge="right"]:focus-visible .portal__block { transform: translateX(101%); }
.portal[data-edge="bottom"]:hover .portal__block, .portal[data-edge="bottom"]:focus-visible .portal__block { transform: translateY(101%); }
.portal[data-edge="top"]:hover .portal__block, .portal[data-edge="top"]:focus-visible .portal__block { transform: translateY(-101%); }
.portal__veil { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 50%, rgba(29, 18, 13, .45)); }
.portal__tag { position: absolute; z-index: 3; left: .9rem; bottom: .9rem; background: var(--paper-2); color: var(--ink); border-radius: 6px; font-size: .78rem; font-weight: 600; padding: .4rem .65rem; }
.portal__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin: 1.2rem 17px 0; }
.portal__meta h3 { font-family: var(--font-serif); font-weight: 400; letter-spacing: -.02em; font-size: var(--step-2); line-height: 1.1; }
.portal__meta span { font-size: .92rem; font-weight: 500; color: var(--ink-soft); white-space: nowrap; }
.portal__desc { margin: .5rem 17px 0; color: var(--ink-soft); font-size: .98rem; max-width: 30rem; }
.portal--next .portal__frame { display: grid; place-items: center; background-color: var(--deep); background-image: var(--weave); }
.portal--next .portal__block { left: 0; right: 0; top: auto; bottom: 0; width: 100%; height: 22%; transition: height 1s var(--ease-io); }
.portal--next:hover .portal__block { transform: none; height: 100%; }
.portal__next-copy { position: relative; z-index: 3; text-align: center; color: var(--paper); padding: 2rem; transition: color .6s; }
.portal--next:hover .portal__next-copy { color: var(--ink); }
.portal__next-copy strong { display: block; font-family: var(--font-serif); font-weight: 400; letter-spacing: -.02em; font-size: clamp(2rem, 1.2rem + 2.6vw, 3.4rem); line-height: 1.05; margin-bottom: 1rem; }
.portal__next-copy span { font-size: .95rem; font-weight: 600; color: var(--gold-light); transition: color .6s; }
.portal--next:hover .portal__next-copy span { color: var(--ink); }
.portals__note { margin-top: clamp(2.5rem, 5vw, 4rem); font-size: .95rem; color: var(--ink-soft); max-width: 44rem; }
.portal-zoom { position: fixed; z-index: 295; background: var(--gold); pointer-events: none; }
@media (max-width: 700px) { .portals__grid { grid-template-columns: 1fr; } .portal:nth-child(even) { margin-top: 0; } }
.portals__grid--teaser { grid-template-columns: repeat(3, 1fr); gap: clamp(1.4rem, 2.6vw, 2.4rem); }
.portals__grid--teaser .portal { margin-top: 0 !important; }
.portals__grid--teaser .portal__frame { aspect-ratio: 3 / 4; }
.teaser__foot { margin-top: clamp(2.4rem, 4vw, 3.4rem); display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.teaser__foot p { color: var(--ink-soft); font-size: .98rem; max-width: 34rem; }
@media (max-width: 900px) { .portals__grid--teaser { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .portals__grid--teaser { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.faq__list { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.3rem 0; font-family: var(--font-serif); font-weight: 400; letter-spacing: -.015em; font-size: clamp(1.3rem, 1.05rem + .9vw, 1.75rem); line-height: 1.2; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 8px; height: 20px; background: var(--gold); flex: none; transition: transform .5s var(--ease); }
.faq details[open] summary::after { transform: rotate(90deg); }
.faq details p { color: var(--ink-soft); padding: 0 0 1.5rem; max-width: 38rem; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2.5rem, 7vw, 6rem); align-items: start; }
.contact__title { font-size: var(--step-5) !important; margin: 1.3rem 0 1.4rem; }
.contact__aside > p { color: var(--ink-soft); max-width: 28rem; font-size: 1.06rem; }
.contact__direct { margin-top: 2.4rem; display: grid; gap: .5rem; }
.contact__direct a { font-family: var(--font-serif); font-weight: 400; letter-spacing: -.015em; font-size: var(--step-2); justify-self: start; background: linear-gradient(var(--gold), var(--gold)) left bottom / 100% 3px no-repeat; transition: background-size .5s var(--ease); padding: 0 .1em .15rem; }
.contact__direct a:hover { background-size: 100% 100%; }
.form { display: grid; gap: 1.2rem; background: var(--paper-2); padding: clamp(1.5rem, 4vw, 2.8rem); border-radius: var(--radius); box-shadow: 0 0 0 1px var(--rule), 0 40px 80px -60px color-mix(in srgb, var(--ink) 50%, transparent); }
.field { display: grid; gap: .5rem; }
.field label, .field legend { font-size: .9rem; font-weight: 600; }
.field input, .field textarea { width: 100%; padding: .95rem 1.05rem; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); background: var(--paper); transition: border-color .3s, box-shadow .3s, background-color .3s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 35%, transparent); }
.field textarea { min-height: 136px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
fieldset.field { border: 0; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .25rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-block; padding: .55rem .95rem; border-radius: 8px; font-size: .9rem; font-weight: 500; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 22%, transparent); transition: background-color .3s, color .3s, box-shadow .3s; }
.chip:hover span { box-shadow: inset 0 0 0 1px var(--ink); }
.chip input:checked + span { background: var(--gold); color: var(--ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 30%, transparent); }
.chip input:focus-visible + span { outline: 2px solid var(--deep); outline-offset: 2px; }
.form__hint { font-size: .86rem; color: var(--ink-soft); }
.form__hint a { border-bottom: 2px solid var(--gold); }
.form .btn { justify-self: start; }
@media (max-width: 860px) { .contact__grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }

/* ---------- closing band ---------- */
.cta-band__grid { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: end; }
.cta-band h2 { font-size: var(--step-5); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.cta-band .btn--line { color: var(--paper); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--paper) 40%, transparent); }
.cta-band .btn--line::before { background: var(--paper); }
.cta-band .btn--line:hover { color: var(--ink); }
.cta-band .btn--gold::before { background: var(--paper); }
@media (max-width: 760px) { .cta-band__grid { grid-template-columns: 1fr; } }

/* ---------- footer: the hearth ---------- */
.footer { background-color: var(--night); color: color-mix(in srgb, var(--paper) 72%, transparent); padding: clamp(4rem, 8vw, 6rem) 0 2rem; font-size: .95rem; overflow: hidden; }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2.5rem; }
.footer__cta { font-family: var(--font-serif); font-weight: 400; letter-spacing: -.02em; font-size: var(--step-3); color: var(--paper); line-height: 1.05; max-width: 12em; }
.footer__cta .dot-block { background: var(--gold); }
.footer__cols { display: flex; flex-wrap: wrap; gap: clamp(2rem, 6vw, 5rem); }
.footer__cols h4 { font-family: var(--font-sans); font-weight: 600; font-size: .9rem; color: var(--gold-light); margin-bottom: .9rem; }
.footer__cols ul { list-style: none; display: grid; gap: .55rem; }
.footer__cols a:hover { color: var(--paper); }
.footer__giant { margin-top: clamp(3rem, 8vw, 6rem); font-family: var(--font-logo); font-weight: 800; color: var(--paper); font-size: clamp(4rem, 21vw, 21rem); line-height: .78; letter-spacing: -.02em; align-items: flex-end; display: flex; justify-content: space-between; overflow: hidden; padding-top: .06em; user-select: none; }
.footer__giant span { display: inline-block; }
.footer__giant .is-gold { width: .3em; height: .72em; background: var(--gold); margin-bottom: .02em; }
.footer__bottom { margin-top: 2.2rem; padding-top: 1.4rem; border-top: 1px solid color-mix(in srgb, var(--paper) 12%, transparent); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .85rem; color: color-mix(in srgb, var(--paper) 52%, transparent); }

/* ---------- mobile CTA ---------- */
.mobile-cta { display: none; }
@media (max-width: 760px) {
  .mobile-cta { display: flex; position: fixed; left: .75rem; right: .75rem; bottom: .75rem; z-index: 55; border-radius: 12px; overflow: hidden; box-shadow: 0 16px 34px -14px color-mix(in srgb, var(--night) 60%, transparent); transform: translateY(150%); transition: transform .6s var(--ease); }
  .mobile-cta.is-shown { transform: none; }
  .mobile-cta a { flex: 1; text-align: center; padding: 1rem; font-weight: 600; font-size: .95rem; }
  .mobile-cta a:first-child { background: var(--ink); color: var(--paper); }
  .mobile-cta a:last-child { background: var(--gold); color: var(--ink); }
  .footer { padding-bottom: 6.5rem; }
}

/* ---------- legal pages ---------- */
.legal { padding: 150px 0 6rem; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-family: var(--font-serif); font-weight: 400; letter-spacing: -.02em; font-size: var(--step-4); line-height: 1.02; margin: 1rem 0 2rem; }
.legal h2 { font-family: var(--font-serif); font-weight: 400; letter-spacing: -.015em; font-size: var(--step-2); margin: 2.4rem 0 .8rem; }
.legal p, .legal li { color: var(--ink-soft); }
.legal p + p { margin-top: .9rem; }
.legal a { border-bottom: 2px solid var(--gold); }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1.5rem; margin-top: 1rem; }
.legal dt { font-weight: 600; }
.legal dd { color: var(--ink-soft); }
@media (max-width: 560px) { .legal dl { grid-template-columns: 1fr; } .legal dd { margin-bottom: .6rem; } }
.legal-foot { background: var(--night); color: color-mix(in srgb, var(--paper) 55%, transparent); padding: 1.6rem 0; font-size: .85rem; }
.legal-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.legal-foot a:hover { color: var(--paper); }

/* ---------- the seal ---------- */
.seal { display: block; width: 100%; height: auto; overflow: visible; }
.seal--deep { --seal-wax: var(--deep); --seal-ink: var(--gold-light); --seal-block: var(--gold); }
.seal--night { --seal-wax: var(--night); --seal-ink: var(--gold); --seal-block: var(--gold); }
.seal--gold { --seal-wax: var(--gold); --seal-ink: var(--ink); --seal-block: var(--deep); }

/* ---------- cursor portal: hold over a service to peek at a sketch ---------- */
.chips-list li[data-sketch] { position: relative; isolation: isolate; overflow: hidden; cursor: pointer; transition: color .3s, box-shadow .3s; }
.chips-list li[data-sketch]::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.chips-list li[data-sketch].is-charging::before { transform: scaleX(1); transition: transform .45s linear; }
.chips-list li[data-sketch].is-open::before { transform: scaleX(1); }
.chips-hint { font-size: .86rem; color: var(--ink-soft); display: inline-flex; align-items: center; gap: .5rem; }
.chips-hint::before { content: ""; width: 5px; height: 12px; background: var(--gold); }
.peek { position: fixed; left: 0; top: 0; z-index: 270; width: 260px; pointer-events: none; visibility: hidden; }
.peek__win { background: var(--paper-2); border-radius: 10px; overflow: hidden; box-shadow: 0 30px 60px -24px color-mix(in srgb, var(--night) 50%, transparent), 0 0 0 1px color-mix(in srgb, var(--ink) 30%, transparent); transform-origin: 50% 100%; }
.peek__art svg { display: block; width: 100%; height: auto; }
.peek__cap { padding: .6rem .9rem; font-size: .84rem; font-weight: 600; border-top: 1px solid var(--rule); background: var(--paper); }

/* ---------- sectors: the floating card with what we build ---------- */
.sector[data-sector] { cursor: default; }
.sector__detail { display: none; grid-column: 2 / -1; grid-template-columns: minmax(0, 220px) 1fr; gap: 1.2rem; align-items: center; padding: .6rem 0 .4rem; }
.sector__art svg { display: block; width: 100%; height: auto; border-radius: 8px; background: var(--paper-2); box-shadow: 0 0 0 1px var(--rule); }
.sector__offer { list-style: none; display: grid; gap: .45rem; font-size: 1rem; }
.sector__offer li { display: flex; align-items: baseline; gap: .6rem; }
.sector__offer li::before { content: ""; flex: none; width: 6px; height: 13px; background: var(--gold); transform: translateY(1px); }
@media (hover: none), (max-width: 760px) {
  .sector[data-sector] { cursor: pointer; }
  .sector.is-open .sector__detail { display: grid; }
}
@media (max-width: 520px) { .sector__detail { grid-template-columns: 1fr; grid-column: 1 / -1; } }
.speek { position: fixed; left: 0; top: 0; z-index: 270; width: 340px; pointer-events: none; visibility: hidden; }
.speek__win { background: var(--paper-2); border-radius: 12px; overflow: hidden; box-shadow: 0 40px 80px -30px color-mix(in srgb, var(--night) 55%, transparent), 0 0 0 1px color-mix(in srgb, var(--ink) 25%, transparent); }
.speek__art svg { display: block; width: 100%; height: auto; }
.speek__body { padding: 1rem 1.1rem 1.15rem; border-top: 1px solid var(--rule); }
.speek__title { font-family: var(--font-serif); font-size: 1.15rem; margin-bottom: .55rem; color: var(--deep); }

/* ---------- inner pages ---------- */
.page-hero { position: relative; overflow: hidden; padding: clamp(150px, 20vh, 210px) 0 clamp(4rem, 8vw, 6rem); background-color: var(--paper); }
.page-hero h1 { font-size: var(--step-5); margin: 1.2rem 0 1.4rem; max-width: 13ch; line-height: .98; }
.page-hero__block { position: absolute; right: clamp(4%, 9vw, 12%); top: 0; width: clamp(56px, 6vw, 96px); height: 62%; background: var(--gold); transform-origin: 50% 0; }
@media (max-width: 760px) { .page-hero__block { right: 0; width: 34px; height: 110px; top: 76px; } }
.contact-page .contact__grid { align-items: start; }
.contact__seal { width: 150px; margin-top: 2.6rem; }

/* ---------- workshop vignettes (svg built in sketches.js) ---------- */
.vg * { transform-box: fill-box; transform-origin: center; animation-play-state: paused; }
.tool__art.is-playing .vg * { animation-play-state: running; }
.vg-dot { animation: vg-pop 6.4s var(--ease) var(--d, 0s) infinite both; }
.vg-dot--pick { animation: vg-pop 6.4s var(--ease) var(--d, 0s) infinite both, vg-pick 6.4s linear infinite; }
@keyframes vg-pop { 0% { transform: scale(0); } 5% { transform: scale(1.3); } 9%, 86% { transform: scale(1); } 94%, 100% { transform: scale(0); } }
@keyframes vg-pick { 0%, 40% { fill: var(--paper-2); } 46%, 88% { fill: var(--gold); } 96%, 100% { fill: var(--paper-2); } }
.vg-scan { opacity: 0; animation: vg-scan 3.2s cubic-bezier(.2, .6, .3, 1) infinite; }
.vg-scan--late { animation-delay: 1.1s; }
@keyframes vg-scan { 0% { transform: scale(.08); opacity: .9; } 70% { opacity: .35; } 100% { transform: scale(1.7); opacity: 0; } }
.vg-card { opacity: 0; animation: vg-card 6.4s var(--ease) infinite; }
@keyframes vg-card { 0%, 48% { opacity: 0; transform: translateY(10px); } 55%, 86% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; transform: translateY(-4px); } }
.vg-tick { stroke-dasharray: 1; stroke-dashoffset: 1; animation: vg-draw 6s var(--ease) var(--d, 0s) infinite; }
@keyframes vg-draw { 0%, 3% { stroke-dashoffset: 1; } 10%, 84% { stroke-dashoffset: 0; } 92%, 100% { stroke-dashoffset: 1; } }
.vg-bar { transform-origin: center bottom; transform: scaleY(0); animation: vg-grow 6s var(--ease) infinite; }
@keyframes vg-grow { 0%, 46% { transform: scaleY(0); } 62%, 88% { transform: scaleY(1); } 96%, 100% { transform: scaleY(0); } }
.vg-drop { animation: vg-drop 6.8s var(--d, 0s) infinite both; }
@keyframes vg-drop {
  0% { transform: translateY(-150px); opacity: 0; animation-timing-function: cubic-bezier(.55, 0, 1, .45); }
  1% { opacity: 1; }
  9% { transform: translateY(0) scaleY(.9); animation-timing-function: cubic-bezier(.2, .8, .3, 1); }
  13% { transform: translateY(-10px); }
  17%, 86% { transform: none; opacity: 1; }
  94%, 100% { transform: none; opacity: 0; }
}
.vg-in { animation: vg-in 6.8s var(--ease) var(--d, 0s) infinite both; }
@keyframes vg-in { 0% { opacity: 0; transform: translateX(-14px); } 7%, 80% { opacity: 1; transform: none; } 88%, 100% { opacity: 0; transform: none; } }
.vg-rise { animation: vg-rise 6.8s var(--ease) var(--d, 0s) infinite both; }
@keyframes vg-rise { 0% { opacity: 0; transform: translateY(16px); } 8%, 76% { opacity: 1; transform: none; } 84%, 100% { opacity: 0; transform: none; } }


/* ---------- shelf v2: books are buttons, the gold block is the bookend ---------- */
.book { border: 0; font: inherit; cursor: pointer; }
.book:hover { transform: translateY(-8px) rotate(-1.2deg); }
.book:focus-visible { outline: 2px solid var(--deep); outline-offset: 4px; }
.book__ribbon { position: absolute; left: 50%; top: 0; width: 9px; height: 0; margin-left: -4.5px; background: var(--gold); box-shadow: 0 0 0 1px rgba(60, 30, 5, .25); transition: height .6s var(--ease), transform .6s var(--ease); }
.book.is-open { filter: none !important; transform: translateY(-10px); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18), 0 18px 24px -12px rgba(30, 14, 8, .55); }
.book.is-open .book__ribbon { height: 26px; transform: translateY(-20px); }
.shelf__end { position: relative; align-self: flex-end; width: 26px; height: 46%; margin-left: 10px; background: var(--gold); box-shadow: inset -6px 0 0 rgba(120, 70, 10, .18); }
.shelf__hint { margin-top: 2.6rem; font-size: .92rem; color: var(--ink-soft); display: inline-flex; align-items: center; gap: .6rem; }
.shelf__hint::before { content: ""; width: 5px; height: 12px; background: var(--gold); }
.build__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.4rem; margin-top: .6rem; }
.btn--sm { padding: .72rem 1rem; font-size: .9rem; }
/* the paper sheet slides over the crimson: torn top edge and its shadow */
.build::before { content: ""; position: absolute; left: 0; right: 0; top: -13px; height: 14px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 14' preserveAspectRatio='none'%3E%3Cpath d='M0 14V7l18-2 22 3 26-4 30 3 20-3 34 4 24-2 30 1 22-4 28 3 36-2 18 3 30-4 26 2 34 1 20-3 28 2 32-3 22 4 30-2 24-1 36 3 18-4 30 2 26 2 30-3 22 1 34 2 28-4 20 3 36-1 24-2 30 3 26-3 32 2 18 2 34-4 28 3 22-1 30 2 26-3 36 3 20-2 28 1 34-3 24 2 32 2 18-3 30 1 36 3 22-4 28 2 26 1 30-2 24 3 32-3 20 2 28 1 30-4 V14Z' fill='%23ebe1cd'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
  filter: drop-shadow(0 -6px 10px rgba(25, 3, 3, .35)); }
.stage__dim { display: none; }
.motion-ok .stage { height: calc(100svh + 250vh); }
.motion-ok .stage__dim { display: block; position: absolute; inset: 0; z-index: 4; background: #0e0605; opacity: 0; pointer-events: none; }
.motion-ok .build { margin-top: -100vh; }

/* ---------- heading details instead of italics ---------- */
.ink { position: relative; display: inline-block; white-space: nowrap; }
.ink__svg { position: absolute; pointer-events: none; overflow: visible; }
.ink__svg path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ink[data-ink="strike"] .ink__svg { left: -4%; width: 108%; top: 38%; height: .32em; }
.ink[data-ink="strike"] .ink__svg path { stroke: var(--deep); stroke-width: 5; }
.ink[data-ink="roof"] .ink__svg { left: 0; width: 100%; bottom: 54%; height: .36em; }
.ink[data-ink="roof"] .ink__svg path { stroke: var(--ink); stroke-width: 3.2; }
.ink[data-ink="roof"] .ink__svg .smoke { stroke: var(--gold-deep); stroke-width: 2.2; }
.dot-block { display: inline-block; width: .2em; height: .58em; margin-left: .08em; background: var(--gold); vertical-align: baseline; transform-origin: 50% 100%; }

/* ---------- the gold thread that sews the page together ---------- */
.thread { position: absolute; left: 0; top: 0; z-index: 50; pointer-events: none; overflow: visible; }
.thread__line { fill: none; stroke: var(--gold); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 1px 0 rgba(110, 60, 8, .35)); }
.thread__needle path { fill: #f3d88f; stroke: #8d5a14; stroke-width: .8; }
.thread__needle .eye { fill: var(--paper); stroke: none; }
.thread__knot { fill: var(--gold); stroke: #8d5a14; stroke-width: .8; transition: opacity .3s; }
.thread__needle, .thread__bobbin { transition: opacity .28s; }
.thread__bobbin { opacity: 0; filter: drop-shadow(0 2px 2px rgba(80, 40, 5, .3)); }
.footer__giant .is-gold { transform-origin: 50% 100%; transition: transform .9s cubic-bezier(.34, 1.56, .64, 1), box-shadow .9s; }
.footer__giant.is-tied .is-gold { transform: scaleY(1.08); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 35%, transparent); }

/* ---------- the reader: a book taken off the shelf ---------- */
.reader { position: fixed; inset: 0; z-index: 280; display: none; }
.reader.is-open { display: block; }
.reader__desk { position: absolute; inset: 0; background: radial-gradient(90% 80% at 50% 45%, rgba(43, 26, 19, .86), rgba(14, 7, 5, .94)); opacity: 0; }
.reader__stage { position: absolute; inset: 0; display: grid; place-items: center; perspective: 2400px; }
.rbook { position: relative; width: calc(var(--pw) * 2); height: var(--ph); transform-style: preserve-3d; --fs: calc(var(--pw) / 24); }
.rbook__base { position: absolute; top: 0; height: 100%; width: 50%; border-radius: 4px; background: #3a2418; box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .8); }
.rbook__base--l { left: 0; border-radius: 6px 2px 2px 6px; }
.rbook__base--r { right: 0; border-radius: 2px 6px 6px 2px; }
.rbook__base::after { content: ""; position: absolute; inset: 6px 0 6px 0; background: repeating-linear-gradient(90deg, #efe6d3 0 1px, #d9ccb1 1px 2px); }
.rbook__base--l::after { right: 0; left: 6px; border-radius: 2px 0 0 2px; }
.rbook__base--r::after { left: 0; right: 6px; border-radius: 0 2px 2px 0; }
.leaf { position: absolute; left: 50%; top: 6px; width: calc(50% - 6px); height: calc(100% - 12px); transform-origin: 0 50%; transform-style: preserve-3d; }
.leaf__face { position: absolute; inset: 0; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.leaf__face--back { transform: rotateY(180deg); }
.leaf__face::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(0, 0, 0, var(--shade, 0)), transparent 70%); }
.leaf--cover { top: 0; height: 100%; width: 50%; }
.page { position: absolute; inset: 0; padding: calc(var(--fs) * 3) calc(var(--fs) * 2.6) calc(var(--fs) * 3.2); background-color: #f7f0e1; background-image: var(--fibre); background-size: 520px 520px; color: var(--ink); font-family: var(--font-serif); font-size: var(--fs); line-height: 1.58; }
.leaf__face--front .page { box-shadow: inset 18px 0 22px -16px rgba(60, 35, 15, .45); }
.leaf__face--back .page { box-shadow: inset -18px 0 22px -16px rgba(60, 35, 15, .45); }
.page__run { position: absolute; top: calc(var(--fs) * 1.4); left: calc(var(--fs) * 2.6); right: calc(var(--fs) * 2.6); display: flex; justify-content: space-between; font-family: var(--font-sans); font-size: calc(var(--fs) * .62); font-weight: 600; letter-spacing: .04em; color: color-mix(in srgb, var(--ink) 45%, transparent); }
.page__num { position: absolute; bottom: calc(var(--fs) * 1.3); left: 0; right: 0; text-align: center; font-size: calc(var(--fs) * .78); color: color-mix(in srgb, var(--ink) 55%, transparent); }
.page h3 { font-weight: 400; font-size: calc(var(--fs) * 1.75); line-height: 1.08; letter-spacing: -.015em; margin-bottom: calc(var(--fs) * .9); color: var(--ink); }
.page h3::after { content: ""; display: block; width: calc(var(--fs) * .38); height: calc(var(--fs) * .9); background: var(--gold); margin-top: calc(var(--fs) * .55); }
.page p { margin-bottom: calc(var(--fs) * .62); text-wrap: pretty; hyphens: auto; }
.page .bk-lead { font-size: calc(var(--fs) * 1.16); line-height: 1.38; color: var(--deep); }
.page .bk-list, .page .bk-steps { margin: 0 0 calc(var(--fs) * .6) 0; padding-left: 1.1em; display: grid; gap: calc(var(--fs) * .38); }
.page .bk-list { list-style: none; padding-left: 0; }
.page .bk-list li { position: relative; padding-left: 1.05em; }
.page .bk-list li::before { content: ""; position: absolute; left: 0; top: .48em; width: .3em; height: .62em; background: var(--gold); }
.page .bk-steps li::marker { font-weight: 600; color: var(--gold-deep); }
.page strong { font-weight: 600; }
.page .bk-note { position: absolute; left: calc(var(--fs) * 2.6); right: calc(var(--fs) * 2.6); bottom: calc(var(--fs) * 3); font-family: var(--font-sans); font-size: calc(var(--fs) * .7); line-height: 1.45; color: color-mix(in srgb, var(--ink) 62%, transparent); border-top: 1px solid var(--rule); padding-top: calc(var(--fs) * .45); margin: 0; }
.page sup { font-family: var(--font-sans); font-size: .6em; color: var(--gold-deep); font-weight: 700; margin-left: .1em; }
.page .bk-drop::first-letter { float: left; font-size: 3.3em; line-height: .82; padding: .06em .1em 0 0; color: var(--deep); }
.page .bk-art { margin-top: calc(var(--fs) * .6); max-width: 62%; }
.page .bk-art svg { width: 100%; height: auto; }
.page--title { display: grid; place-content: center; text-align: center; gap: calc(var(--fs) * 1); }
.page--title .t-n { font-family: var(--font-sans); font-size: calc(var(--fs) * .72); font-weight: 600; letter-spacing: .08em; color: var(--gold-deep); }
.page--title .t-title { font-size: calc(var(--fs) * 3.1); line-height: 1; letter-spacing: -.02em; }
.page--title .t-claim { font-size: calc(var(--fs) * 1.1); color: var(--deep); max-width: 16em; margin: 0 auto; }
.page--title .t-mark { width: calc(var(--fs) * .5); height: calc(var(--fs) * 1.4); background: var(--gold); margin: calc(var(--fs) * .6) auto 0; }
.page--title .t-house { position: absolute; left: 0; right: 0; bottom: calc(var(--fs) * 2.4); text-align: center; font-family: var(--font-sans); font-size: calc(var(--fs) * .66); font-weight: 600; letter-spacing: .06em; color: color-mix(in srgb, var(--ink) 50%, transparent); }
.page--end { display: grid; align-content: center; justify-items: center; text-align: center; gap: calc(var(--fs) * 1); }
.page--end .e-seal { width: calc(var(--fs) * 7); }
.page--end .e-fin { font-size: calc(var(--fs) * 1.6); }
.page--end p { max-width: 18em; margin: 0 auto; color: var(--ink-soft); hyphens: manual; }
.page--end .btn { font-size: calc(var(--fs) * .82); padding: .8em 1.1em; }
.page--end .e-next { font-family: var(--font-sans); font-size: calc(var(--fs) * .8); font-weight: 600; color: var(--deep); background: none; border: 0; cursor: pointer; border-bottom: 2px solid var(--gold); padding-bottom: 2px; }
.page--endpaper { background-color: #ead9b5; background-image: radial-gradient(circle at 50% 50%, transparent 60%, rgba(120, 70, 20, .12)), repeating-linear-gradient(45deg, transparent 0 22px, rgba(141, 90, 20, .1) 22px 24px), repeating-linear-gradient(-45deg, transparent 0 22px, rgba(141, 90, 20, .1) 22px 24px); display: grid; place-items: center; }
.page--endpaper .ex { width: 46%; display: grid; justify-items: center; gap: calc(var(--fs) * .5); font-family: var(--font-sans); font-size: calc(var(--fs) * .66); font-weight: 600; letter-spacing: .08em; color: var(--gold-deep); }
.cover { position: absolute; inset: 0; border-radius: 2px 6px 6px 2px; color: var(--gold-light); display: grid; place-content: center; justify-items: center; gap: calc(var(--fs) * 1.2); text-align: center; background-color: var(--c, var(--deep)); background-image: var(--weave), linear-gradient(90deg, rgba(0, 0, 0, .35), transparent 8%, rgba(255, 255, 255, .06) 9%, transparent 14%), radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(25, 3, 3, .35)); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25); }
.cover::before { content: ""; position: absolute; inset: calc(var(--fs) * 1.2); border: 1px solid currentColor; outline: 1px solid currentColor; outline-offset: -6px; opacity: .5; }
.cover .c-n { font-family: var(--font-sans); font-size: calc(var(--fs) * .78); font-weight: 600; letter-spacing: .14em; }
.cover .c-title { font-family: var(--font-serif); font-size: calc(var(--fs) * 3); line-height: 1; letter-spacing: -.01em; }
.cover .c-mark { width: calc(var(--fs) * .55); height: calc(var(--fs) * 1.6); background: currentColor; }
.cover .c-house { position: absolute; bottom: calc(var(--fs) * 2.6); left: 0; right: 0; font-family: var(--font-logo); font-weight: 800; font-size: calc(var(--fs) * .9); letter-spacing: .06em; }
.cover--crimson { --c: var(--deep); }
.cover--night { --c: #2e1d15; }
.cover--linen { --c: #e6d8bc; color: var(--deep); background-image: var(--weave), linear-gradient(90deg, rgba(0, 0, 0, .15), transparent 8%, rgba(255, 255, 255, .2) 9%, transparent 14%); }
.cover--gold { --c: #c98f2e; color: var(--ink); }
.cover--wine { --c: var(--deep-2); }
.rbook__ribbon { position: absolute; bottom: calc(100% - 4px); left: 88%; width: 12px; height: 0; background: var(--gold); box-shadow: 0 0 0 1px rgba(60, 30, 5, .3); transform: translateZ(2px); }
.reader__bar { position: absolute; left: 50%; bottom: max(18px, 3vh); transform: translateX(-50%); display: flex; align-items: center; gap: 1rem; color: var(--paper); font-family: var(--font-sans); font-size: .9rem; opacity: 0; }
.reader__bar button, .reader__close { width: 44px; height: 44px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--paper) 30%, transparent); background: color-mix(in srgb, var(--night) 60%, transparent); color: var(--paper); cursor: pointer; font-size: 1.1rem; display: grid; place-items: center; transition: background-color .3s, border-color .3s; }
.reader__bar button:hover, .reader__close:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.reader__bar button:disabled { opacity: .3; pointer-events: none; }
.reader__count { min-width: 5.5em; text-align: center; font-variant-numeric: tabular-nums; }
.reader__close { position: absolute; top: 18px; right: 18px; opacity: 0; }
.reader.is-single .rbook { width: var(--pw); }
.reader.is-single .rbook__base--l { display: none; }
.reader.is-single .rbook__base--r { width: 100%; }
.sheet { position: absolute; inset: 0; transform-origin: 0 50%; backface-visibility: hidden; }
.page--title .t-art { width: 62%; max-width: none; margin: calc(var(--fs) * .4) auto 0; }
.page--title .t-art svg { border-radius: 6px; }
.sheet .cover, .sheet .page { border-radius: 4px; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  html.has-intro .intro { display: none; }
  .hl, mark.hl { background-size: 100% .34em; }
  .foil { background-position: 0 0; }
  .portal__block { display: none; }
}
