/* @fonts-start: self-hosted Google Fonts (identical files, no third-party request) */
/* math */
@font-face {
  font-family: 'Bodoni Moda';
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url(assets/fonts/gf/bodoni-moda-i-math.woff2) format('woff2');
  unicode-range: U+0302-0303, U+0305, U+0307-0308, U+0310, U+0312, U+0315, U+031A, U+0326-0327, U+032C, U+032F-0330, U+0332-0333, U+0338, U+033A, U+0346, U+034D, U+0391-03A1, U+03A3-03A9, U+03B1-03C9, U+03D1, U+03D5-03D6, U+03F0-03F1, U+03F4-03F5, U+2016-2017, U+2034-2038, U+203C, U+2040, U+2043, U+2047, U+2050, U+2057, U+205F, U+2070-2071, U+2074-208E, U+2090-209C, U+20D0-20DC, U+20E1, U+20E5-20EF, U+2100-2112, U+2114-2115, U+2117-2121, U+2123-214F, U+2190, U+2192, U+2194-21AE, U+21B0-21E5, U+21F1-21F2, U+21F4-2211, U+2213-2214, U+2216-22FF, U+2308-230B, U+2310, U+2319, U+231C-2321, U+2336-237A, U+237C, U+2395, U+239B-23B7, U+23D0, U+23DC-23E1, U+2474-2475, U+25AF, U+25B3, U+25B7, U+25BD, U+25C1, U+25CA, U+25CC, U+25FB, U+266D-266F, U+27C0-27FF, U+2900-2AFF, U+2B0E-2B11, U+2B30-2B4C, U+2BFE, U+3030, U+FF5B, U+FF5D, U+1D400-1D7FF, U+1EE00-1EEFF;
}
/* symbols */
@font-face {
  font-family: 'Bodoni Moda';
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url(assets/fonts/gf/bodoni-moda-i-symbols.woff2) format('woff2');
  unicode-range: U+0001-000C, U+000E-001F, U+007F-009F, U+20DD-20E0, U+20E2-20E4, U+2150-218F, U+2190, U+2192, U+2194-2199, U+21AF, U+21E6-21F0, U+21F3, U+2218-2219, U+2299, U+22C4-22C6, U+2300-243F, U+2440-244A, U+2460-24FF, U+25A0-27BF, U+2800-28FF, U+2921-2922, U+2981, U+29BF, U+29EB, U+2B00-2BFF, U+4DC0-4DFF, U+FFF9-FFFB, U+10140-1018E, U+10190-1019C, U+101A0, U+101D0-101FD, U+102E0-102FB, U+10E60-10E7E, U+1D2C0-1D2D3, U+1D2E0-1D37F, U+1F000-1F0FF, U+1F100-1F1AD, U+1F1E6-1F1FF, U+1F30D-1F30F, U+1F315, U+1F31C, U+1F31E, U+1F320-1F32C, U+1F336, U+1F378, U+1F37D, U+1F382, U+1F393-1F39F, U+1F3A7-1F3A8, U+1F3AC-1F3AF, U+1F3C2, U+1F3C4-1F3C6, U+1F3CA-1F3CE, U+1F3D4-1F3E0, U+1F3ED, U+1F3F1-1F3F3, U+1F3F5-1F3F7, U+1F408, U+1F415, U+1F41F, U+1F426, U+1F43F, U+1F441-1F442, U+1F444, U+1F446-1F449, U+1F44C-1F44E, U+1F453, U+1F46A, U+1F47D, U+1F4A3, U+1F4B0, U+1F4B3, U+1F4B9, U+1F4BB, U+1F4BF, U+1F4C8-1F4CB, U+1F4D6, U+1F4DA, U+1F4DF, U+1F4E3-1F4E6, U+1F4EA-1F4ED, U+1F4F7, U+1F4F9-1F4FB, U+1F4FD-1F4FE, U+1F503, U+1F507-1F50B, U+1F50D, U+1F512-1F513, U+1F53E-1F54A, U+1F54F-1F5FA, U+1F610, U+1F650-1F67F, U+1F687, U+1F68D, U+1F691, U+1F694, U+1F698, U+1F6AD, U+1F6B2, U+1F6B9-1F6BA, U+1F6BC, U+1F6C6-1F6CF, U+1F6D3-1F6D7, U+1F6E0-1F6EA, U+1F6F0-1F6F3, U+1F6F7-1F6FC, U+1F700-1F7FF, U+1F800-1F80B, U+1F810-1F847, U+1F850-1F859, U+1F860-1F887, U+1F890-1F8AD, U+1F8B0-1F8BB, U+1F8C0-1F8C1, U+1F900-1F90B, U+1F93B, U+1F946, U+1F984, U+1F996, U+1F9E9, U+1FA00-1FA6F, U+1FA70-1FA7C, U+1FA80-1FA89, U+1FA8F-1FAC6, U+1FACE-1FADC, U+1FADF-1FAE9, U+1FAF0-1FAF8, U+1FB00-1FBFF;
}
/* latin-ext */
@font-face {
  font-family: 'Bodoni Moda';
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url(assets/fonts/gf/bodoni-moda-i-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Bodoni Moda';
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url(assets/fonts/gf/bodoni-moda-i-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* math */
@font-face {
  font-family: 'Bodoni Moda';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(assets/fonts/gf/bodoni-moda-math.woff2) format('woff2');
  unicode-range: U+0302-0303, U+0305, U+0307-0308, U+0310, U+0312, U+0315, U+031A, U+0326-0327, U+032C, U+032F-0330, U+0332-0333, U+0338, U+033A, U+0346, U+034D, U+0391-03A1, U+03A3-03A9, U+03B1-03C9, U+03D1, U+03D5-03D6, U+03F0-03F1, U+03F4-03F5, U+2016-2017, U+2034-2038, U+203C, U+2040, U+2043, U+2047, U+2050, U+2057, U+205F, U+2070-2071, U+2074-208E, U+2090-209C, U+20D0-20DC, U+20E1, U+20E5-20EF, U+2100-2112, U+2114-2115, U+2117-2121, U+2123-214F, U+2190, U+2192, U+2194-21AE, U+21B0-21E5, U+21F1-21F2, U+21F4-2211, U+2213-2214, U+2216-22FF, U+2308-230B, U+2310, U+2319, U+231C-2321, U+2336-237A, U+237C, U+2395, U+239B-23B7, U+23D0, U+23DC-23E1, U+2474-2475, U+25AF, U+25B3, U+25B7, U+25BD, U+25C1, U+25CA, U+25CC, U+25FB, U+266D-266F, U+27C0-27FF, U+2900-2AFF, U+2B0E-2B11, U+2B30-2B4C, U+2BFE, U+3030, U+FF5B, U+FF5D, U+1D400-1D7FF, U+1EE00-1EEFF;
}
/* symbols */
@font-face {
  font-family: 'Bodoni Moda';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(assets/fonts/gf/bodoni-moda-symbols.woff2) format('woff2');
  unicode-range: U+0001-000C, U+000E-001F, U+007F-009F, U+20DD-20E0, U+20E2-20E4, U+2150-218F, U+2190, U+2192, U+2194-2199, U+21AF, U+21E6-21F0, U+21F3, U+2218-2219, U+2299, U+22C4-22C6, U+2300-243F, U+2440-244A, U+2460-24FF, U+25A0-27BF, U+2800-28FF, U+2921-2922, U+2981, U+29BF, U+29EB, U+2B00-2BFF, U+4DC0-4DFF, U+FFF9-FFFB, U+10140-1018E, U+10190-1019C, U+101A0, U+101D0-101FD, U+102E0-102FB, U+10E60-10E7E, U+1D2C0-1D2D3, U+1D2E0-1D37F, U+1F000-1F0FF, U+1F100-1F1AD, U+1F1E6-1F1FF, U+1F30D-1F30F, U+1F315, U+1F31C, U+1F31E, U+1F320-1F32C, U+1F336, U+1F378, U+1F37D, U+1F382, U+1F393-1F39F, U+1F3A7-1F3A8, U+1F3AC-1F3AF, U+1F3C2, U+1F3C4-1F3C6, U+1F3CA-1F3CE, U+1F3D4-1F3E0, U+1F3ED, U+1F3F1-1F3F3, U+1F3F5-1F3F7, U+1F408, U+1F415, U+1F41F, U+1F426, U+1F43F, U+1F441-1F442, U+1F444, U+1F446-1F449, U+1F44C-1F44E, U+1F453, U+1F46A, U+1F47D, U+1F4A3, U+1F4B0, U+1F4B3, U+1F4B9, U+1F4BB, U+1F4BF, U+1F4C8-1F4CB, U+1F4D6, U+1F4DA, U+1F4DF, U+1F4E3-1F4E6, U+1F4EA-1F4ED, U+1F4F7, U+1F4F9-1F4FB, U+1F4FD-1F4FE, U+1F503, U+1F507-1F50B, U+1F50D, U+1F512-1F513, U+1F53E-1F54A, U+1F54F-1F5FA, U+1F610, U+1F650-1F67F, U+1F687, U+1F68D, U+1F691, U+1F694, U+1F698, U+1F6AD, U+1F6B2, U+1F6B9-1F6BA, U+1F6BC, U+1F6C6-1F6CF, U+1F6D3-1F6D7, U+1F6E0-1F6EA, U+1F6F0-1F6F3, U+1F6F7-1F6FC, U+1F700-1F7FF, U+1F800-1F80B, U+1F810-1F847, U+1F850-1F859, U+1F860-1F887, U+1F890-1F8AD, U+1F8B0-1F8BB, U+1F8C0-1F8C1, U+1F900-1F90B, U+1F93B, U+1F946, U+1F984, U+1F996, U+1F9E9, U+1FA00-1FA6F, U+1FA70-1FA7C, U+1FA80-1FA89, U+1FA8F-1FAC6, U+1FACE-1FADC, U+1FADF-1FAE9, U+1FAF0-1FAF8, U+1FB00-1FBFF;
}
/* latin-ext */
@font-face {
  font-family: 'Bodoni Moda';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(assets/fonts/gf/bodoni-moda-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Bodoni Moda';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(assets/fonts/gf/bodoni-moda-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: 'Imperial Script';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/gf/imperial-script-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Imperial Script';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/gf/imperial-script-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Imperial Script';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/gf/imperial-script-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/gf/instrument-serif-i-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/gf/instrument-serif-i-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/gf/instrument-serif-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/gf/instrument-serif-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(assets/fonts/gf/schibsted-grotesk-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(assets/fonts/gf/schibsted-grotesk-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(assets/fonts/gf/schibsted-grotesk-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(assets/fonts/gf/schibsted-grotesk-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(assets/fonts/gf/schibsted-grotesk-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(assets/fonts/gf/schibsted-grotesk-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(assets/fonts/gf/schibsted-grotesk-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(assets/fonts/gf/schibsted-grotesk-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* @fonts-end */
@font-face {
  font-family: 'Departure Mono';
  src: url('assets/fonts/DepartureMono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ============ TOKENS ============ */
:root {
  color-scheme: dark;
  --night: #0d0e0b;
  --night-2: #17180f;
  --paper: #dcdcd0;
  --paper-2: #e7e7dc;
  --cream: #f7f7ee;
  --ink: #292919;
  --muted: #5c5c4e;
  --faint: #909083;
  --gold: #e2b44a;
  --gold-deep: #b8862b;
  --hotrod: #a3161d;
  --signal: #ff2f3a;
  --hud: #8fd8ff;

  --f-title: 'Bodoni Moda', 'Bodoni 72', Didot, 'Times New Roman', serif;
  --f-display: 'Schibsted Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --f-serif: 'Instrument Serif', 'Times New Roman', Georgia, serif;
  --f-script: 'Imperial Script', 'Snell Roundhand', 'Brush Script MT', cursive;
  --f-mono: 'Departure Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --rail: 288px;
  --gutter: clamp(16px, 2.2vw, 28px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { overflow-x: hidden; scroll-behavior: smooth; }
body {
  font-family: var(--f-serif);
  background: var(--night);
  color: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--gold); color: var(--night); }

.mono { font-family: var(--f-mono); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ============ LOADER: the mark and the bar fill together, then the blueprint, then the walls open ============ */
.page-loader { position: fixed; inset: 0; z-index: 10000; overflow: hidden; pointer-events: auto; }
.page-loader.gone { display: none; }
html.intro-pre, html.intro-pre body { overflow: hidden; }
.wall { position: absolute; background: var(--night); will-change: transform; }
.wall-t { left: 0; right: 0; top: 0; height: var(--cy, 50%); box-shadow: inset 0 -1px 0 rgba(226,180,74,.0); }
.wall-b { left: 0; right: 0; bottom: 0; top: var(--cy, 50%); }
.wall-l { top: 0; bottom: 0; left: 0; width: var(--cx, 50%); }
.wall-r { top: 0; bottom: 0; right: 0; left: var(--cx, 50%); }
/* the inner edge of each wall is a gold construction line that travels with it */
.wall::after { content: ''; position: absolute; background: rgba(226,180,74,.9); box-shadow: 0 0 12px rgba(226,180,74,.6); opacity: 0; transition: opacity .3s ease; }
.wall-t::after { left: 0; right: 0; bottom: 0; height: 1px; }
.wall-b::after { left: 0; right: 0; top: 0; height: 1px; }
.wall-l::after { top: 0; bottom: 0; right: 0; width: 1px; }
.wall-r::after { top: 0; bottom: 0; left: 0; width: 1px; }
.page-loader.aperture .wall::after { opacity: 1; }
.page-loader.aperture .wall { transition: transform .75s cubic-bezier(.65,0,.35,1); }
.page-loader.aperture .wall-t { transform: translateY(calc(var(--hole) / -2)); }
.page-loader.aperture .wall-b { transform: translateY(calc(var(--hole) / 2)); }
.page-loader.aperture .wall-l { transform: translateX(calc(var(--hole) / -2)); }
.page-loader.aperture .wall-r { transform: translateX(calc(var(--hole) / 2)); }
.page-loader.open .wall { transition: transform 1.45s cubic-bezier(.76,0,.2,1); }
.page-loader.open .wall-t { transform: translateY(-101%); }
.page-loader.open .wall-b { transform: translateY(101%); }
.page-loader.open .wall-l { transform: translateX(-101%); }
.page-loader.open .wall-r { transform: translateX(101%); }

.construct { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; overflow: visible; pointer-events: none; transition: opacity .9s ease, transform 1.6s cubic-bezier(.3,0,.2,1); }
.construct .cl { fill: none; stroke: var(--gold); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: .38; stroke-dasharray: 1; stroke-dashoffset: 1; }
.construct .cl.hi { opacity: .85; }
.construct .cl.arc { opacity: .3; }
.construct .lbl { font-family: var(--f-mono); font-size: 10px; letter-spacing: .08em; fill: rgba(226,180,74,.75); opacity: 0; text-transform: uppercase; }
.construct .lbl.it { font-family: var(--f-title); font-style: italic; font-size: 13px; letter-spacing: 0; text-transform: none; fill: rgba(247,231,196,.8); }
.page-loader.construct-on .construct .cl { stroke-dashoffset: 0; transition: stroke-dashoffset var(--d, 1s) cubic-bezier(.55,0,.25,1) var(--w, 0s); }
.page-loader.construct-on .construct .lbl { opacity: 1; transition: opacity .6s ease var(--w, 0s); }
.page-loader.open .construct { opacity: 0; transform: scale(1.12); }

.loader-core { position: absolute; left: 50%; top: 50%; z-index: 3; width: 0; height: 0; }
.loader-mark { position: absolute; left: 0; top: 0; height: min(180px, 32vw); width: auto; transform: translate(-50%, -50%); overflow: visible; transition: filter .8s ease, transform .7s cubic-bezier(.65,0,.35,1), opacity .5s ease; }
.page-loader .loader-mark .mark-path { fill: var(--gold); fill-opacity: 0; stroke: var(--gold); stroke-width: 2; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 100; }
.page-loader.ready .loader-mark { filter: drop-shadow(0 0 22px rgba(226,180,74,.55)); }
.page-loader .loader-mark .mark-path { transition: fill .9s ease, stroke .9s ease; }
/* after loading, the mark flies up and becomes the header logo */
.page-loader.fly .loader-mark { transition: transform 1.25s cubic-bezier(.72,0,.18,1), filter .9s ease, opacity .45s ease; filter: drop-shadow(0 0 10px rgba(255,236,190,.55)); }
.page-loader.fly .loader-mark .mark-path { fill: var(--cream); stroke: var(--cream); }
.page-loader.landed .loader-mark { opacity: 0; }
.loader-meter, .loader-row { position: absolute; left: 0; transform: translateX(-50%); width: 190px; transition: opacity .35s ease; }
.loader-meter { top: calc(min(180px, 32vw) / 2 + 26px); height: 1px; background: rgba(247,247,238,.14); overflow: hidden; }
.loader-meter span { display: block; height: 100%; width: 0; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.loader-row { top: calc(min(180px, 32vw) / 2 + 38px); display: flex; justify-content: space-between; gap: 12px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; }
.loader-hud { color: rgba(247,247,238,.62); white-space: nowrap; }
.loader-pct { color: var(--gold); font-variant-numeric: tabular-nums; }
.page-loader.construct-on .loader-meter, .page-loader.construct-on .loader-row { opacity: 0; }
.page-loader.open { pointer-events: none; }

/* ============ HERO INTRO (plays once, right after the walls open) ============ */
.hero-flash {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; mix-blend-mode: screen;
  background: radial-gradient(60% 70% at 50% 50%, rgba(255,246,220,.95), rgba(255,210,120,.45) 35%, transparent 72%);
}
html.intro-pre .hero-bg img { transform: scale(1.35); filter: blur(16px) brightness(.3) saturate(.5); }
html.intro-pre #heroCanvas { opacity: 0; }
html.intro-pre .hero-angel img { transform: translate(-80vw, 22vh) rotate(-26deg) scale(.8); opacity: 0; }
html.intro-pre .title-card { clip-path: inset(0 50% 0 50%); opacity: 0; }
html.intro-pre .title-card h1 .ch { opacity: 0; transform: translateY(.6em) rotate(7deg); filter: blur(10px); }
html.intro-pre .title-card .tag span { opacity: 0; transform: translateY(14px); }
html.intro-pre .toc li { opacity: 0; transform: translateX(-16px); }
html.intro-pre .site-header { transform: translate(-50%, -180%); opacity: 0; }
html.intro-pre .audio-widget { transform: translate(-50%, 200%); opacity: 0; }
html.intro-pre .scroll-cue { opacity: 0; }
.title-card h1 .ch { display: inline-block; }
html.intro-go .hero-bg img { transition: transform 3.2s cubic-bezier(.16,1,.3,1) .1s, filter 2.2s ease .1s; }
html.intro-go #heroCanvas { transition: opacity 1.6s ease .7s; }
html.intro-go .hero-flash { animation: flash 1.7s ease-out .22s both; }
html.intro-go .hero-angel img { transition: transform 2s cubic-bezier(.16,1,.3,1) .5s, opacity .9s ease .5s; }
html.intro-go .title-card { transition: clip-path 1.15s cubic-bezier(.76,0,.24,1) 1.05s, opacity .3s ease 1.05s; }
html.intro-go .title-card h1 .ch { transition: opacity .7s ease, transform 1.1s cubic-bezier(.16,1,.3,1), filter .9s ease; transition-delay: calc(1.4s + var(--i) * 60ms); }
html.intro-go .title-card .tag span { transition: opacity .8s ease, transform .9s cubic-bezier(.16,1,.3,1); transition-delay: calc(2s + var(--i) * 120ms); }
html.intro-go .toc li { transition: opacity .6s ease, transform .8s cubic-bezier(.16,1,.3,1); transition-delay: calc(2.25s + var(--i) * 60ms); }
html.intro-go .site-header { transition: opacity .6s ease 1.15s; }
html.intro-go .audio-widget { transition: transform 1.1s cubic-bezier(.16,1,.3,1) 2.5s, opacity .7s ease 2.5s; }
html.intro-go .scroll-cue { transition: opacity 1.2s ease 3s; }
@keyframes flash { 0% { opacity: 0; } 14% { opacity: .9; } 100% { opacity: 0; } }
.mark-path:nth-child(1) { animation-delay: 0s; }
.mark-path:nth-child(2) { animation-delay: .1s; }
.mark-path:nth-child(3) { animation-delay: .2s; }
.mark-path:nth-child(4) { animation-delay: .3s; }
.mark-path:nth-child(5) { animation-delay: .4s; }
.mark-path:nth-child(6) { animation-delay: .5s; }
@keyframes mark-trace { 0% { stroke-dashoffset: 100 } 40% { stroke-dashoffset: 0 } 100% { stroke-dashoffset: 0 } }
@keyframes mark-draw  { 0% { stroke-dashoffset: 100 } 46%, 100% { stroke-dashoffset: 0 } }
@keyframes mark-flood { 0%, 34% { fill-opacity: 0 } 64%, 100% { fill-opacity: 1 } }
@keyframes mark-hair  { 0%, 46% { stroke-opacity: 1 } 76%, 100% { stroke-opacity: 0 } }

/* ============ HEADER (glass pill from the original site) ============ */
.site-header {
  --frost: 0;
  --fg: var(--cream);
  position: fixed;
  top: calc(16px + env(safe-area-inset-top, 0px));
  left: 50%; transform: translateX(-50%);
  width: min(1180px, calc(100% - 2 * var(--gutter)));
  z-index: 100;
  color: var(--fg);
  border-radius: 40px;
  background: linear-gradient(135deg,
    rgba(255,255,255, calc(.05 + var(--frost) * .12)),
    rgba(255,255,255, calc(.02 + var(--frost) * .04)) 60%,
    rgba(255,255,255, calc(.04 + var(--frost) * .08)));
  backdrop-filter: blur(calc(var(--frost) * 22px)) saturate(calc(100% + var(--frost) * 60%));
  -webkit-backdrop-filter: blur(calc(var(--frost) * 22px)) saturate(calc(100% + var(--frost) * 60%));
  border: 1px solid rgba(255,255,255, calc(.16 + var(--frost) * .16));
  box-shadow: inset 0 1px 0 rgba(255,255,255, calc(.16 + var(--frost) * .24));
  transition: color .4s ease, background .4s ease, border-color .4s ease, transform .55s var(--ease), opacity .4s ease;
}
body[data-tone="paper"] .site-header {
  --fg: var(--ink);
  background: rgba(231, 231, 220, calc(.35 + var(--frost) * .5));
  border-color: rgba(41, 41, 25, .14);
  box-shadow: none;
}
.header-inner {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 12px 12px 28px;
}
.logo {
  font-family: var(--f-mono); font-size: 19px; letter-spacing: 1px;
  color: var(--fg); text-decoration: none; white-space: nowrap;
}
.header-logo-mark {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  height: 24px; width: auto; color: var(--fg);
}
.header-logo-mark .mark-path {
  fill: currentColor; stroke: currentColor; stroke-width: 2; fill-opacity: 0;
  stroke-dasharray: 100; stroke-dashoffset: 100;
  animation: mark-draw 1.6s cubic-bezier(.45,.05,.3,1) .3s both, mark-flood 1.6s linear .3s both, mark-hair 1.6s linear .3s both;
}
.header-actions { display: flex; align-items: center; gap: 10px; }
.btn-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-display); font-weight: 600; font-size: 15px; letter-spacing: -.01em;
  padding: 10px 18px; border-radius: 999px; text-decoration: none; white-space: nowrap;
  background: var(--cream); color: var(--night); border: 0; cursor: pointer;
  transition: transform .25s var(--ease), background .25s ease;
}
.btn-pill:hover { transform: translateY(-1px); background: #fff; }
body[data-tone="paper"] .site-header .btn-pill { background: var(--ink); color: var(--cream); }
.menu-toggle {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid currentColor; background: transparent; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  opacity: .9;
}
.menu-toggle span { display: block; width: 16px; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .35s ease, opacity .25s ease; }
.menu-toggle.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.dropdown-menu {
  max-height: 0; overflow: hidden; opacity: 0; visibility: hidden;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0 28px;
  padding: 0 28px;
  transition: max-height .45s ease, opacity .3s ease, padding .45s ease, visibility 0s linear .45s;
}
.dropdown-menu.open { max-height: 480px; opacity: 1; visibility: visible; padding: 6px 28px 22px; transition-delay: 0s; }
/* an open menu always gets the full frosted glass, so its links stay readable over the hero title */
.site-header:has(.dropdown-menu.open) { --frost: 1 !important; }
.dropdown-menu a {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 10px 0; text-decoration: none;
  font-family: var(--f-display); font-weight: 600; font-size: 18px; letter-spacing: -.02em;
  border-bottom: 1px solid color-mix(in srgb, currentColor 16%, transparent);
}
.dropdown-menu a small { font-family: var(--f-serif); font-weight: 400; font-size: 15px; opacity: .6; }
.dropdown-menu a:hover { text-decoration: underline; text-underline-offset: 5px; }

/* ============ LEFT RAIL (Editions-style chapter index) ============ */
.rail {
  position: fixed; left: 0; top: 0; bottom: 0; width: 180px; z-index: 60;
  padding: calc(92px + env(safe-area-inset-top, 0px)) 0 calc(18px + env(safe-area-inset-bottom, 0px)) 14px;
  display: flex; flex-direction: column; justify-content: space-between;
  color: var(--cream); pointer-events: none;
  opacity: 0; visibility: hidden; transition: opacity .5s ease, color .4s ease, visibility 0s linear .5s;
}
body.past-hero .rail { opacity: 1; visibility: visible; transition-delay: 0s; }
body.at-footer .rail { opacity: 0; visibility: hidden; pointer-events: none; transition-delay: 0s, 0s, .5s; }
body[data-rail="paper"] .rail { color: var(--ink); }
.rail > * { pointer-events: auto; }
.rail-title {
  font-family: var(--f-title); font-weight: 700; font-size: 21px; line-height: .95; letter-spacing: -.02em;
  text-decoration: none;
}
.rail-title em { font-family: var(--f-script); font-weight: 400; font-style: normal; font-size: 1.12em; letter-spacing: 0; }
.rail-nav { display: grid; gap: 0; }
.rail-nav a {
  display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 6px;
  text-decoration: none; font-family: var(--f-display); font-weight: 700; font-size: 18px;
  line-height: 1.02; letter-spacing: -.035em; opacity: .42; transition: opacity .3s ease;
}
.rail-nav a::after { content: ''; order: 2; border-bottom: 1px dotted currentColor; transform: translateY(-4px); opacity: 0; transition: opacity .3s ease; }
.rail-nav a .num { order: 3; font-family: var(--f-serif); font-weight: 400; font-size: 12px; letter-spacing: 0; }
.rail-nav a:hover, .rail-nav a.active { opacity: 1; }
.rail-nav a.active::after { opacity: .7; }
.rail-foot { font-family: var(--f-serif); font-size: 11px; line-height: 1.2; opacity: .8; }
.rail-foot b { font-family: var(--f-display); font-weight: 700; }

/* ============ SHARED TYPE ============ */
.chapter-title {
  font-family: var(--f-title); font-weight: 700; font-optical-sizing: auto;
  font-size: clamp(64px, 12.4vw, 200px);
  line-height: .88; letter-spacing: -.035em;
  color: var(--cream);
  text-wrap: balance;
  background-image: linear-gradient(105deg, var(--cream) 0%, var(--cream) 40%, #fff7dc 46%, #f1d27f 50%, #fff7dc 54%, var(--cream) 60%, var(--cream) 100%);
  background-size: 260% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 28px rgba(0,0,0,.35));
  animation: glint 7s ease-in-out infinite;
  padding-bottom: .06em;
}
.chapter-title i, .finale-title i, .answer i, .title-card h1 i {
  font-style: italic; font-weight: 600;
  background-image: linear-gradient(180deg, #fff0bf 0%, #e8bd55 42%, #b8862b 70%, #8a5a14 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-right: .05em; margin-right: -.03em;
}
@keyframes glint { 0%, 58% { background-position: 100% 0; } 100% { background-position: 0% 0; } }
.lede {
  font-family: var(--f-serif); font-weight: 400;
  font-size: clamp(30px, 3.9vw, 58px); line-height: .98; letter-spacing: -.02em;
  max-width: 15.5em; text-wrap: balance;
}
.dc {
  font-family: var(--f-script); font-weight: 400; font-style: normal;
  font-size: 2.05em; line-height: 0; letter-spacing: 0;
  display: inline-block; vertical-align: baseline;
  margin-left: -.02em; margin-right: var(--ov, .06em);
}
/* Each script capital overhangs its own box by a different amount (measured from the
   glyph ink), so the gap after it is set per letter; Y also has a long tail, so it rides higher. */
.dc-B { --ov: .04em; }
.dc-F { --ov: .12em; }
.dc-T { --ov: .15em; }
.dc-Y { --ov: .1em; vertical-align: .24em; }
.dc-M { --ov: .14em; }
.dc-W { --ov: .17em; }
:is(p, h2, h3):has(> .dc) { padding-top: .5em; }
.subhead {
  font-family: var(--f-serif); font-weight: 400;
  font-size: clamp(40px, 5.4vw, 78px); line-height: .96; letter-spacing: -.035em;
  color: var(--ink); max-width: 13em; text-wrap: balance;
}
.label {
  font-family: var(--f-display); font-weight: 600; font-size: 17px; letter-spacing: -.02em;
}
.body-lg {
  font-family: var(--f-serif); font-size: clamp(22px, 2.15vw, 31px); line-height: 1.02; letter-spacing: -.015em;
  max-width: 21em; text-wrap: pretty;
}
.caption {
  font-family: var(--f-mono); font-size: 11.5px; line-height: 1.45; letter-spacing: .02em;
  max-width: 44ch; opacity: .78;
}
.caption b { font-weight: 400; opacity: 1; color: inherit; }
.chip-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f-display); font-weight: 600; font-size: 12.5px; letter-spacing: -.01em;
  padding: 5px 8px; border-radius: 3px; text-decoration: none;
  background: var(--paper-2); color: var(--ink);
  box-shadow: 0 0 0 1px rgba(41,41,25,.08);
}
.chip-link svg { width: 10px; height: 10px; }

/* ============ SECTIONS ============ */
main { position: relative; }
.section-inner { padding-inline: var(--gutter); }
@media (min-width: 1100px) {
  .section-inner { padding-left: var(--rail); padding-right: 12px; }
}

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden;
  display: grid; place-items: center; isolation: isolate;
  background: #0f1c1d;
}
.hero-bg, .hero-bg img {
  position: absolute; inset: -4% -2%; width: 104%; height: 108%; object-fit: cover; object-position: center 40%;
}
.hero-bg { z-index: -3; will-change: transform; }
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% 45%, transparent 35%, rgba(6,10,10,.65) 100%),
    linear-gradient(180deg, rgba(6,10,10,.55) 0%, transparent 22%, transparent 70%, rgba(6,8,8,.85) 100%);
}
#heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; }
.hero-angel {
  position: absolute; z-index: -1; left: 4%; top: 13%;
  height: min(78vh, 900px); width: auto;
  transform-origin: 60% 30%;
  animation: angel-float 9s ease-in-out infinite;
  filter: drop-shadow(0 30px 40px rgba(0,0,0,.45));
}
.hero-angel img { height: 100%; width: auto; transform: rotate(-9deg); }
@keyframes angel-float {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  50% { translate: 0 -18px; rotate: 1.5deg; }
}
@keyframes spin { to { rotate: 360deg; } }

.title-card {
  position: relative; z-index: 2;
  width: min(372px, calc(100% - 2 * var(--gutter)));
  border: 1px solid rgba(247,247,238,.55);
  padding: 20px 20px 18px;
  margin-top: 40px;
  background: rgba(10, 14, 14, .12);
  backdrop-filter: blur(1.5px);
  -webkit-backdrop-filter: blur(1.5px);
}
.title-card h1 {
  font-family: var(--f-title); font-weight: 700; font-size: 40px; line-height: .9; letter-spacing: -.03em;
}
.title-card h1 em { font-family: var(--f-script); font-weight: 400; font-style: normal; font-size: 1.16em; letter-spacing: 0; color: var(--gold); }
.title-card .tag {
  font-family: var(--f-serif); font-size: 20px; line-height: 1; letter-spacing: -.01em; margin-top: 70px;
}
.title-card .tag span { display: block; }
.toc { list-style: none; margin-top: 18px; display: grid; }
.toc a {
  display: grid; grid-template-columns: 1fr auto; align-items: baseline; text-decoration: none;
  font-family: var(--f-display); font-weight: 700; font-size: 19px; line-height: 1; letter-spacing: -.04em;
  padding: 2.5px 0; transition: color .2s ease, padding .3s var(--ease);
}
.toc a .num { font-family: var(--f-serif); font-weight: 400; font-size: 12px; letter-spacing: 0; opacity: .8; }
.toc a:hover { color: var(--gold); padding-left: 6px; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 102px; transform: translateX(-50%); z-index: 2;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .7;
}

/* ---------- CHAPTER OPENER (dark, full-bleed art) ---------- */
.opener {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 112vh; min-height: 112svh;
  display: flex; flex-direction: column; justify-content: space-between;
  padding-block: calc(96px + env(safe-area-inset-top, 0px)) 180px;
  background: var(--night);
}
.opener-art { position: absolute; inset: 0; z-index: -3; }
.opener-art img, .opener-art canvas { width: 100%; height: 100%; object-fit: cover; }
.hero-bg picture, .opener-art picture { display: contents; }   /* size-switching wrapper only; takes no space */
.opener-art canvas { position: absolute; inset: 0; }
.opener::before {
  content: ''; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: linear-gradient(180deg, rgba(8,9,7,.5) 0%, rgba(8,9,7,.06) 28%, rgba(8,9,7,.12) 48%, rgba(8,9,7,.7) 76%, rgba(8,9,7,.86) 100%);
}
.opener .fx { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.opener-foot { display: grid; gap: 22px; margin-top: auto; }
.opener .lede { text-shadow: 0 2px 30px rgba(0,0,0,.45); }
.opener .caption { color: var(--cream); }
.opener-head { display: grid; gap: 14px; }
.opener-head .kicker {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold);
}

/* ---------- PAPER (bone) ---------- */
.paper {
  position: relative; z-index: 3;
  background: var(--paper); color: var(--ink);
  padding-block: 120px 150px;
}
.paper::before, .paper::after {
  content: ''; position: absolute; left: 0; right: 0; height: 120px; pointer-events: none;
  background: url('assets/art/edge.png') repeat-x; background-size: auto 120px;
  image-rendering: pixelated;
}
.paper::before { bottom: calc(100% - 1px); }
.paper::after { top: calc(100% - 1px); transform: scaleY(-1); }
.paper .caption { color: var(--muted); opacity: 1; }
.stack { display: grid; gap: 28px; }
.block { display: grid; gap: 22px; margin-top: 150px; }
.block:first-child { margin-top: 0; }
.muted { color: var(--muted); }

/* reveal (content is visible at rest; JS only animates what is below the fold) */
.will-reveal { opacity: 0; transform: translateY(18px); filter: blur(4px); }
.will-reveal.is-visible { opacity: 1; transform: none; filter: none; transition: opacity .9s ease, transform .9s var(--ease), filter .9s ease; }

/* ---------- I. BABEL ---------- */
.babel-chips { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.bchip {
  position: absolute; left: var(--x); top: var(--y);
  font-family: var(--f-mono); font-size: clamp(10px, .95vw, 13px); letter-spacing: .02em; white-space: nowrap;
  padding: 6px 10px 6px 8px; border-radius: 6px;
  color: var(--ink); background: rgba(247,247,238,.9);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  display: inline-flex; align-items: center; gap: 8px;
  animation: drift var(--d, 9s) ease-in-out var(--delay, 0s) infinite alternate;
}
.bchip i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--signal)); flex: none; }
.bchip b { font-weight: 400; background: var(--signal); color: #fff; border-radius: 99px; padding: 0 6px; font-size: .9em; }
@keyframes drift {
  from { transform: translate(0, 0) rotate(var(--r, -2deg)); }
  to { transform: translate(var(--dx, 14px), var(--dy, -22px)) rotate(calc(var(--r, -2deg) * -1)); }
}
.crescendo { display: grid; gap: .08em; margin-top: 8px; }
.crescendo li {
  list-style: none; font-family: var(--f-title); font-weight: 700; letter-spacing: -.035em; line-height: .92;
  font-size: calc(var(--s) * 1px);
}
.crescendo li span { color: var(--faint); font-style: italic; font-weight: 500; }
.statement {
  font-family: var(--f-serif); font-size: clamp(44px, 6.6vw, 104px); line-height: .9; letter-spacing: -.04em;
  max-width: 11em; text-wrap: balance;
}
.not-list { display: flex; flex-wrap: wrap; gap: 10px 28px; font-family: var(--f-mono); font-size: 14px; color: var(--muted); }
.emph-line {
  font-family: var(--f-display); font-weight: 600; font-size: clamp(24px, 2.6vw, 38px); line-height: 1.02; letter-spacing: -.035em;
  max-width: 19em; text-wrap: balance;
}

/* ---------- II. WALLS ---------- */
.walls-open { justify-content: flex-start; min-height: auto; padding-bottom: 200px; }
.walls-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; align-items: end;
}
.frame {
  position: relative; border: 10px solid #2a2418;
  box-shadow: 0 0 0 1px #6b5a33, 0 40px 80px rgba(0,0,0,.55), inset 0 0 0 1px rgba(0,0,0,.4);
  background: #1a1a12;
}
.frame img { width: 100%; height: auto; }
.reticle { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; pointer-events: none; }
.reticle .ret-inner { fill: none; stroke: var(--gold); stroke-width: 1.4; vector-effect: non-scaling-stroke; opacity: .9; }
.reticle .ret-leader { stroke: rgba(247,231,196,.9); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 3 4; }
.loupe {
  position: absolute; transform: translate(-50%, -50%); aspect-ratio: 1; height: auto;
  padding: 0; border: 0; border-radius: 50%; background: #1b1710; cursor: pointer;
  box-shadow: 0 0 0 2px var(--gold), 0 0 0 5px rgba(20,16,10,.55), 0 0 0 6px rgba(247,231,196,.65), 0 20px 44px rgba(0,0,0,.6);
  transition: box-shadow .3s ease;
}
.loupe:hover { box-shadow: 0 0 0 2px #f0c763, 0 0 0 5px rgba(20,16,10,.55), 0 0 0 6px rgba(247,231,196,.9), 0 20px 44px rgba(0,0,0,.6), 0 0 36px rgba(226,180,74,.45); }
.loupe:focus-visible { outline: 2px solid #fff3d6; outline-offset: 8px; }
.loupe-lens { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; }
.frame .loupe-lens img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none;
  transform: rotate(-23.85deg) scale(5.56, 1.14);
  transition: transform 1.9s cubic-bezier(.7, 0, .2, 1);
}
.loupe.decoded .loupe-lens img { transform: none; }
.loupe-lens::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: radial-gradient(60% 45% at 32% 24%, rgba(255,255,255,.22), transparent 70%),
              radial-gradient(90% 90% at 50% 50%, transparent 62%, rgba(0,0,0,.35) 100%);
}
.loupe-tag {
  position: absolute; transform: translateX(-50%); white-space: nowrap; pointer-events: none;
  font-family: var(--f-title); font-style: italic; font-weight: 600; font-size: 13px;
  color: #3a2812; background: #efe4c8; padding: 5px 9px 6px;
  box-shadow: 0 6px 18px rgba(0,0,0,.4); border: 1px solid rgba(90,64,30,.3);
}
@media (max-width: 640px) { .loupe-tag { font-size: 11px; padding: 4px 7px; } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.06); opacity: .5; } }

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 16px; margin-top: 64px; }
.card { display: grid; gap: 10px; align-content: start; }
.card.wide { grid-column: 1 / -1; }
.card-art { position: relative; overflow: hidden; aspect-ratio: 6 / 5; background: #2a2a20; }
.card.wide .card-art { aspect-ratio: 2 / 1; }
.card-art img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover .card-art img { transform: scale(1.035); }
.ui {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(78%, 440px);
  font-family: var(--f-mono); font-size: 12.5px; color: #20201a;
  background: rgba(252, 252, 248, .9);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: 12px; padding: 12px 14px;
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 20px 50px rgba(0,0,0,.35), 0 0 0 1px rgba(0,0,0,.06);
  display: grid; gap: 8px;
}
.ui-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ui-row .k { color: #6d6d60; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ui .badge { background: var(--signal); color: #fff; border-radius: 99px; padding: 1px 7px; font-size: 11px; flex: none; }
.ui .bar { height: 6px; border-radius: 3px; background: #e4e4da; overflow: hidden; }
.ui .bar i { display: block; height: 100%; width: var(--p); background: linear-gradient(90deg, var(--gold), var(--hotrod)); }
.card h3 { font-family: var(--f-display); font-weight: 600; font-size: 17px; letter-spacing: -.02em; }
.card p { font-family: var(--f-display); font-weight: 500; font-size: 15px; line-height: 1.2; color: var(--muted); max-width: 36em; }
.card .caption { font-size: 10.5px; }

.ask {
  font-family: var(--f-title); font-weight: 700; font-size: clamp(36px, 5.8vw, 92px); line-height: .95; letter-spacing: -.035em;
  max-width: 12em; text-wrap: balance;
}
.glitch-word {
  position: relative; display: inline-block;
  color: var(--signal); text-decoration: line-through; text-decoration-thickness: .08em; text-decoration-color: var(--signal);
}
.glitch-word::before, .glitch-word::after {
  content: attr(data-text); position: absolute; left: 0; top: 0; width: 100%; overflow: hidden;
  text-decoration: line-through; text-decoration-thickness: .08em;
}
.glitch-word::before { color: #00e5ff; text-decoration-color: #00e5ff; clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%); animation: g1 2.2s infinite steps(2, end); }
.glitch-word::after  { color: #ff00e0; text-decoration-color: #ff00e0; clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%); animation: g2 2.6s infinite steps(2, end); }
@keyframes g1 { 0%,100% { transform: translate(-3px,-2px) } 20% { transform: translate(3px,1px) } 40% { transform: translate(-2px,2px) } 60% { transform: translate(2px,-2px) } 80% { transform: translate(-1px,1px) } }
@keyframes g2 { 0%,100% { transform: translate(3px,2px) } 25% { transform: translate(-3px,-1px) } 50% { transform: translate(2px,-2px) } 75% { transform: translate(-2px,2px) } }

.cloud { position: relative; height: 560px; margin-top: 40px; }
.cloud svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cloud svg line { stroke: rgba(41,41,25,.16); stroke-width: 1; }
.cloud .node {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
  font-family: var(--f-serif); font-size: calc(var(--s) * 1px); letter-spacing: -.03em; line-height: 1; white-space: nowrap;
  color: rgba(41,41,25,var(--o, 1));
  background: var(--paper); padding: 2px 6px;
  animation: bob var(--d, 7s) ease-in-out var(--delay, 0s) infinite alternate;
}
/* narrow screens: one chore per line, zig-zagging down the column (positions set in script.js) */
.cloud.stacked { margin-top: 28px; }
.cloud.stacked .node { font-size: clamp(15px, calc(var(--s) * .6px), 38px); padding: 3px 6px; animation-name: bob-s; }
@media (max-width: 640px) { .cloud.stacked .node { font-size: clamp(14px, calc(var(--s) * .46px), 29px); } }
@keyframes bob-s { to { translate: 0 -4px; } }
@keyframes bob { to { translate: 0 -10px; } }

/* ---------- III. VOICE ---------- */
.voice-open .opener-art img { object-position: 30% 50%; filter: saturate(.85) brightness(.62) sepia(.25); }
.voice-open::before { background: linear-gradient(180deg, rgba(12,8,4,.55) 0%, rgba(20,12,6,.1) 35%, rgba(12,8,4,.78) 100%); }
.demo {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 16px; margin-top: 56px; align-items: stretch;
}
.demo-art { position: relative; overflow: hidden; min-height: 620px; background: #22273a; }
.demo-art > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; }
.console {
  position: absolute; left: 5%; top: 50%; transform: translateY(-50%);
  width: min(430px, 88%);
  font-family: var(--f-mono); font-size: 13px; line-height: 1.5; color: #e9f6ff;
  background: rgba(8, 16, 24, .78);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(143,216,255,.35); border-radius: 14px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.3), 0 30px 80px rgba(0,0,0,.5), 0 0 40px rgba(143,216,255,.12);
  overflow: hidden;
}
.console-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px; border-bottom: 1px solid rgba(143,216,255,.2);
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--hud);
}
.console-head .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); animation: pulse 1.8s ease-in-out infinite; }
.console-body { padding: 14px; display: grid; gap: 12px; }
.msg-user {
  justify-self: end; background: var(--cream); color: var(--ink); padding: 7px 12px; border-radius: 12px 12px 3px 12px;
}
.msg-ai { display: grid; gap: 6px; }
.msg-ai .who { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.msg-ai ul { list-style: none; display: grid; gap: 5px; }
.msg-ai li { display: grid; grid-template-columns: 22px 1fr; align-items: start; }
.msg-ai li .ic { color: var(--hud); }
.msg-ai li.up .ic { color: #7de3a0; }
.msg-ai li.warn .ic { color: #ffb347; }
.msg-ai li.risk .ic { color: var(--signal); }
.msg-ai li.do { color: var(--cream); margin-top: 4px; padding-top: 8px; border-top: 1px dashed rgba(143,216,255,.3); }
.caret { display: inline-block; width: .6em; height: 1.1em; background: var(--hud); vertical-align: -.15em; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.console-foot { padding: 0 14px 14px; }
.console-foot button {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  background: transparent; color: var(--hud); border: 1px solid rgba(143,216,255,.4); border-radius: 6px; padding: 6px 10px; cursor: pointer;
}
.console-foot button:hover { background: rgba(143,216,255,.12); }
.demo-side { display: grid; align-content: space-between; gap: 30px; background: var(--paper-2); padding: 24px; }
.strike-list { list-style: none; display: grid; gap: 12px; }
.strike-list li { font-family: var(--f-mono); font-size: 14px; color: var(--muted); text-decoration: line-through; text-decoration-color: var(--hotrod); text-decoration-thickness: 2px; }
.answer { font-family: var(--f-title); font-weight: 700; font-size: clamp(54px, 6.6vw, 104px); line-height: .88; letter-spacing: -.04em; }
.voice-quote strong, .body-lg strong { font-weight: 400; font-style: italic; }

/* ---------- IV. UNDERSTANDING ---------- */
.oculus-open .opener-art img { object-position: center 45%; }
.constellation {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr);
  grid-template-areas: "map panel" "legend panel"; column-gap: 24px; row-gap: 18px; margin-top: 50px; align-items: center;
}
.cons-map { grid-area: map; position: relative; height: 620px; --fs: 13.5px; }
.cons-map > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.cnode { position: absolute; left: var(--x); top: var(--y); border: 0; cursor: pointer; font-family: var(--f-serif); -webkit-tap-highlight-color: transparent; }
.cnode:focus-visible { outline: 1px solid var(--hotrod); outline-offset: 3px; }

/* Desktop and tablet: the free constellation of commands (the original design). */
.cons-map.classic > svg line { stroke: rgba(41,41,25,.14); stroke-width: 1; transition: stroke .3s ease; }
.cons-map.classic > svg line.on { stroke: var(--hotrod); stroke-width: 1.4; }
.cons-map.classic .cnode {
  transform: translate(-50%, -50%); font-size: calc(var(--s) * var(--k, 1) * 1px); line-height: 1; letter-spacing: -.03em; white-space: nowrap;
  color: rgba(41,41,25,var(--o, .6)); background: var(--paper); padding: 3px 7px; transition: color .25s ease, background .25s ease;
}
.cons-map.classic .cnode .dot, .cons-map.classic .cnode .lbl svg { display: none; }
.cons-map.classic .cnode:hover { color: var(--ink); }
.cons-map.classic .cnode.active { background: var(--ink); color: var(--cream); }

/* Phones: the astrolabe. A hub, a ring of numbered capabilities, a slowly turning dial, and a key underneath. */
.cons-ring { fill: none; stroke: rgba(41,41,25,.2); stroke-width: 1; }
.cons-inner { fill: none; stroke: rgba(41,41,25,.13); stroke-width: 1; stroke-dasharray: 2 6; }
.cons-ticks { fill: none; stroke: rgba(41,41,25,.24); stroke-width: 7; stroke-dasharray: .3 4.7; transform-box: fill-box; transform-origin: center; animation: spin 160s linear infinite; }
.cons-spoke { stroke: rgba(41,41,25,.14); stroke-width: 1; transition: stroke .35s ease, stroke-width .35s ease; }
.cons-spoke.on { stroke: var(--hotrod); stroke-width: 1.4; }
.cons-spoke.soft { stroke: rgba(163,22,29,.42); }
.cons-pulse { fill: var(--hotrod); }
.cons-map.astro .cnode { width: 0; height: 0; padding: 0; background: none; overflow: visible; color: rgba(41,41,25,.6); }
.cons-map.astro .cnode:focus-visible { outline: none; }
.cons-map.astro .cnode:focus-visible .lbl, .cons-map.astro .cnode:focus-visible .dot { outline: 1px solid var(--hotrod); outline-offset: 3px; }
.cons-map.astro .cnode .dot {
  position: absolute; left: 0; top: 0; width: 26px; height: 26px; transform: translate(-50%, -50%); border-radius: 50%;
  background: var(--paper); border: 1px solid rgba(41,41,25,.6); display: grid; place-items: center;
  font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .02em; line-height: 1; color: var(--ink);
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease, color .3s ease;
}
.cons-map.astro .cnode:not(.hub) .lbl { display: none; }
.cons-map.astro .cnode.active .dot { background: var(--hotrod); border-color: var(--hotrod); color: var(--cream); box-shadow: 0 0 0 5px rgba(163,22,29,.14); }
.cons-map.astro .cnode.hub .lbl {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: .4em; white-space: nowrap;
  font-size: calc(var(--fs) * 1.3); line-height: 1.1; letter-spacing: -.02em; padding: .32em .6em .38em; background: var(--ink); color: var(--cream);
  box-shadow: 0 14px 30px -14px rgba(41,41,25,.6); transition: box-shadow .3s ease;
}
.cons-map.astro .cnode.hub .lbl svg { width: .72em; height: .72em; flex: none; }
.cons-map.astro .cnode.hub .lbl svg path { fill: var(--gold); stroke: none; }
.cons-map.astro .cnode.hub.active .lbl { box-shadow: 0 0 0 1px var(--hotrod), 0 0 0 6px rgba(163,22,29,.13), 0 14px 30px -14px rgba(41,41,25,.6); }
.cons-legend { grid-area: legend; display: none; list-style: none; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
.constellation.legend-mode .cons-legend { display: grid; }
.cons-legend button {
  display: flex; align-items: baseline; gap: 8px; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid rgba(41,41,25,.12);
  padding: 8px 0 7px; font-family: var(--f-serif); font-size: 16px; line-height: 1.1; letter-spacing: -.01em; color: rgba(41,41,25,.66); cursor: pointer;
}
.cons-legend .num { flex: none; min-width: 2.4em; font-family: var(--f-mono); font-size: 10px; letter-spacing: .04em; color: rgba(41,41,25,.5); }
.cons-legend button.active { color: var(--ink); font-style: italic; }
.cons-legend button.active .num { color: var(--hotrod); }
.cons-panel {
  grid-area: panel; align-self: center; background: var(--night); color: var(--cream); border-radius: 14px; padding: 18px;
  font-family: var(--f-mono); font-size: 13px; line-height: 1.5; display: grid; gap: 12px;
  box-shadow: 0 30px 60px rgba(41,41,25,.25);
}
.cons-panel .k { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--hud); }
.cons-panel .q { font-family: var(--f-serif); font-size: 30px; line-height: 1; letter-spacing: -.02em; color: var(--cream); }
.cons-panel .a { color: #dfe9e6; min-height: 7.5em; }
.cons-panel .note { font-size: 10.5px; color: var(--faint); }

/* ---------- V. LAYER ---------- */
.layer-open { min-height: 118vh; }
.layer-open .opener-art img { object-position: center 55%; }

/* ---------- VI. ORIGIN (Iron Man chapter) ---------- */
.origin-open {
  background:
    radial-gradient(60% 50% at 70% 45%, rgba(163,22,29,.35), transparent 70%),
    radial-gradient(40% 40% at 72% 40%, rgba(226,180,74,.18), transparent 70%),
    #0b0a08;
  min-height: 120vh;
}
.origin-open::before {
  background:
    linear-gradient(90deg, rgba(8,7,5,.9) 0%, rgba(8,7,5,.62) 34%, rgba(8,7,5,.12) 60%, rgba(8,7,5,0) 75%),
    linear-gradient(180deg, rgba(8,7,5,.55) 0%, transparent 24%, transparent 66%, rgba(8,7,5,.85) 100%);
}
.origin-open .opener-art img { object-position: 78% 36%; background-position: 78% 36%; }
@media (max-width: 900px) {
  .origin-open::before { background: linear-gradient(180deg, rgba(8,7,5,.6) 0%, rgba(8,7,5,.1) 30%, rgba(8,7,5,.35) 55%, rgba(8,7,5,.92) 82%); }
}
.not-suit { font-family: var(--f-serif); font-size: clamp(28px, 3vw, 44px); line-height: 1; letter-spacing: -.02em; }
.not-suit s { text-decoration-color: var(--signal); text-decoration-thickness: 3px; color: var(--faint); }
.not-suit b { display: block; font-family: var(--f-title); font-weight: 900; font-size: 2.4em; letter-spacing: -.02em; color: var(--gold); line-height: .9; margin-top: 8px; text-shadow: 0 0 40px rgba(226,180,74,.35); }

.story { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.story-art { position: sticky; top: 110px; display: grid; gap: 12px; }
.story-art .plate { position: relative; background: #efe7d2; width: min(100%, 52vh); }
.story-art .plate img { width: 100%; mix-blend-mode: multiply; }
.story-art .plate canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.story-text { display: grid; gap: 22px; }
.story-text p { font-family: var(--f-serif); font-size: clamp(22px, 2vw, 29px); line-height: 1.06; letter-spacing: -.015em; }
.story-text .big { font-family: var(--f-title); font-weight: 700; font-size: clamp(32px, 3.9vw, 60px); line-height: .95; letter-spacing: -.03em; }
.story-text .mono-list { list-style: none; display: grid; gap: 6px; font-family: var(--f-mono); font-size: 14px; color: var(--muted); border-left: 2px solid var(--hotrod); padding-left: 16px; }
.story-text .mono-list li::before { content: '> '; color: var(--hotrod); }
.inset-art { display: grid; gap: 10px; margin-block: 20px; }
.inset-art img { width: 100%; mix-blend-mode: multiply; }

/* ---------- VII. FUTURE ---------- */
.future-open .opener-art img { object-position: 48% 50%; }
.versus { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 30px; }
.versus > div { padding: 22px; display: grid; gap: 10px; align-content: start; }
.versus .old { background: var(--paper-2); color: var(--muted); }
.versus .new { background: var(--night); color: var(--cream); }
.versus .who { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.versus q { font-family: var(--f-serif); font-size: clamp(28px, 3vw, 44px); line-height: 1; letter-spacing: -.02em; quotes: '\201C' '\201D'; }
.finale { background: var(--night); color: var(--cream); padding-block: 140px 160px; position: relative; overflow: hidden; }
.finale-title { font-family: var(--f-title); font-weight: 700; font-size: clamp(50px, 8.4vw, 140px); line-height: .9; letter-spacing: -.035em; max-width: 9.5em; text-wrap: balance; }
.finale-sub { font-family: var(--f-serif); font-size: clamp(26px, 3vw, 44px); line-height: 1; letter-spacing: -.02em; margin-top: 30px; max-width: 18em; }
.finale-sub .dc { color: var(--gold); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 44px; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-display); font-weight: 600; font-size: 15px;
  padding: 10px 18px; border-radius: 999px; border: 1px solid rgba(247,247,238,.4); background: transparent; color: var(--cream); cursor: pointer; text-decoration: none;
}
.btn-ghost:hover { background: rgba(247,247,238,.08); }
.btn-gold { background: var(--gold); color: var(--night); }
.btn-gold:hover { background: #f0c763; }

/* ============ FOOTER (from the original site) ============ */
.site-footer { position: relative; background: var(--night); border-top: 1px solid rgba(255,255,255,.08); padding-top: 64px; overflow: hidden; }
.footer-logo-mark { position: absolute; top: 64px; left: 20px; height: 66px; width: auto; }
.footer-logo-mark .mark-path { fill: rgb(140,138,130); stroke: rgb(140,138,130); stroke-width: 2; fill-opacity: 0; stroke-dasharray: 100; stroke-dashoffset: 100; }
.footer-logo-mark.in-view .mark-path { animation: mark-trace 1.6s cubic-bezier(.45,.05,.3,1) both, mark-flood 1.6s linear .4s both; }
.footer-top { padding: 20px 20px 34px; font-family: var(--f-mono); }
.footer-links { display: flex; align-items: center; gap: 28px; margin-bottom: 18px; }
.footer-links a { font-size: 18px; color: rgba(255,255,255,.65); text-decoration: none; transition: color .25s ease; }
.footer-links a:hover { color: #fff; }
.footer-link-sep { color: rgba(255,255,255,.3); }
.footer-credit { font-size: 16px; color: rgba(255,255,255,.45); line-height: 1.5; }
.footer-credit .glitch-word { font-size: 1.8em; text-decoration-thickness: 3px; }
.footer-wordmark-wrap { width: 100%; padding: 0 0 20px; display: flex; justify-content: center; text-align: center; will-change: transform; }
.footer-wordmark { position: relative; display: inline-block; white-space: nowrap; font-family: var(--f-mono); font-size: 14vw; line-height: 1; letter-spacing: 2px; color: #fff; transform-origin: center; }
/* Reveal: a gold ground line is drawn, then the letters rise out of it like the walls going back up,
   still hot gold for a moment before they cool to white. */
.footer-wordmark .fl { display: inline-block; }
.js .footer-wordmark { clip-path: inset(-4% -1% 0 -1%); }
.js .footer-wordmark .fl {
  color: var(--gold); transform: translateY(104%);
  transition: transform 1s cubic-bezier(.16,1,.3,1) calc(.35s + var(--i) * .065s), color 1.6s ease calc(1s + var(--i) * .065s);
}
.js .footer-wordmark::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--gold) 10%, #fff3d0 50%, var(--gold) 90%, transparent);
  transform: scaleX(0); transform-origin: 0 50%; opacity: 0;
  transition: transform .9s cubic-bezier(.65,0,.35,1);
}
.js .footer-tagline { opacity: 0; transition: opacity 1s ease 1.5s; }
.site-footer.revealed .footer-wordmark .fl { transform: none; color: #fff; }
.site-footer.revealed .footer-wordmark::after { transform: scaleX(1); animation: rule-life 2.8s ease both; }
.site-footer.revealed .footer-tagline { opacity: 1; }
@keyframes rule-life { 0% { opacity: 0; } 8% { opacity: .95; } 42% { opacity: .9; } 100% { opacity: 0; } }
.footer-tagline { text-align: center; font-family: var(--f-mono); font-size: 13px; letter-spacing: 1px; color: rgba(255,255,255,.4); padding-bottom: 96px; }
.cursor-reveal {
  position: fixed; top: 0; left: 0; width: 240px; height: auto; z-index: 9998; pointer-events: none;
  opacity: 0; transform: translate(-9999px, -9999px); border-radius: 4px;
  box-shadow: 0 12px 40px rgba(0,0,0,.6); transition: opacity .25s ease;
}
.cursor-reveal.active { opacity: 1; }
.cursor-reveal figcaption { font-family: var(--f-mono); font-size: 10px; background: var(--cream); color: var(--ink); padding: 4px 6px; }

/* ============ AUDIO WIDGET (from the original site) ============ */
.audio-widget {
  position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 500;
  display: flex; align-items: center; gap: 13px; padding: 7px 18px 7px 7px;
  border: 1px solid rgba(247,247,238,.22); background: rgba(13,14,11,.76);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.7);
  color: var(--cream);
}
/* gold corner brackets, the same language as the blueprint and the lens */
.audio-widget::before, .audio-widget::after { content: ''; position: absolute; width: 9px; height: 9px; pointer-events: none; }
.audio-widget::before { left: -1px; top: -1px; border-left: 1px solid var(--gold); border-top: 1px solid var(--gold); }
.audio-widget::after { right: -1px; top: -1px; border-right: 1px solid var(--gold); border-top: 1px solid var(--gold); }

.audio-toggle {
  flex: none; position: relative; width: 44px; height: 44px; border: 0; padding: 0; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(226,180,74,.14), rgba(13,14,11,.9) 68%);
  cursor: pointer; display: grid; place-items: center; transition: box-shadow .6s ease;
}
.audio-dial { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.dial-ring { fill: none; stroke: rgba(226,180,74,.55); stroke-width: 1; }
.dial-ticks { fill: none; stroke: rgba(226,180,74,.42); stroke-width: 3; stroke-dasharray: .7 4.3; transform-origin: 22px 22px; }
.audio-widget.playing .dial-ticks { animation: spin 22s linear infinite; stroke: rgba(226,180,74,.7); }
.audio-widget.playing .audio-toggle { box-shadow: 0 0 0 1px rgba(226,180,74,.18), 0 0 22px -2px rgba(226,180,74,.45); }
.audio-glyph { position: relative; width: 14px; height: 12px; display: block; }
.audio-glyph::before, .audio-glyph::after { content: ''; position: absolute; inset: 0; background: var(--cream); transition: clip-path .35s var(--ease); }
/* play: two overlapping halves of one triangle; pause: the same two shapes become bars */
.audio-glyph::before { clip-path: polygon(3px 0, 8.75px 3.29px, 8.75px 8.71px, 3px 12px); }
.audio-glyph::after { clip-path: polygon(8.5px 3.14px, 13.5px 6px, 13.5px 6px, 8.5px 8.86px); }
.audio-widget.playing .audio-glyph::before { clip-path: polygon(2.75px 0, 6.25px 0, 6.25px 12px, 2.75px 12px); }
.audio-widget.playing .audio-glyph::after { clip-path: polygon(7.75px 0, 11.25px 0, 11.25px 12px, 7.75px 12px); }
.audio-toggle:hover .dial-ring, .audio-toggle:focus-visible .dial-ring { stroke: var(--gold); }
.audio-toggle:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }

.audio-info { display: grid; gap: 3px; min-width: 150px; }
.audio-title { font-family: var(--f-title); font-style: italic; font-size: 15px; line-height: 1.05; letter-spacing: -.01em; white-space: nowrap; color: var(--cream); }
.audio-title em { font-family: var(--f-script); font-style: normal; font-size: 1.3em; line-height: 0; color: var(--gold); margin-right: .02em; }
.audio-sub { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(226,180,74,.92); white-space: nowrap; font-variant-numeric: tabular-nums; }

.audio-eq { display: flex; align-items: flex-end; gap: 2px; height: 16px; margin-left: 2px; }
.audio-eq i { display: block; width: 2px; height: 2px; background: var(--gold); opacity: .45; transition: height .5s var(--ease), opacity .5s ease; }
.audio-eq i:nth-child(1) { height: 3px; } .audio-eq i:nth-child(2) { height: 6px; } .audio-eq i:nth-child(3) { height: 4px; } .audio-eq i:nth-child(4) { height: 8px; } .audio-eq i:nth-child(5) { height: 3px; }
.audio-widget.playing .audio-eq i { opacity: .9; animation: eq 1.1s ease-in-out infinite alternate; }
.audio-widget.playing .audio-eq i:nth-child(2) { animation-duration: .8s; animation-delay: -.3s; }
.audio-widget.playing .audio-eq i:nth-child(3) { animation-duration: 1.3s; animation-delay: -.6s; }
.audio-widget.playing .audio-eq i:nth-child(4) { animation-duration: .95s; animation-delay: -.2s; }
.audio-widget.playing .audio-eq i:nth-child(5) { animation-duration: 1.2s; animation-delay: -.9s; }
@keyframes eq { 0% { height: 3px; } 35% { height: 13px; } 60% { height: 6px; } 100% { height: 16px; } }

/* the seek line runs along the bottom edge */
.audio-progress { position: absolute; left: -1px; right: -1px; bottom: -1px; height: 1px; padding-top: 8px; box-sizing: content-box; background: rgba(247,247,238,.12); background-clip: content-box; cursor: pointer; }
.audio-progress-fill { height: 1px; width: 0%; background: var(--gold); box-shadow: 0 0 8px rgba(226,180,74,.8); }
.click-spark-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 9999; pointer-events: none; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1099px) {
  .rail { display: none; }
}
@media (max-width: 900px) {
  .walls-grid, .demo, .constellation, .story, .versus { grid-template-columns: minmax(0, 1fr); }
  .story-art { position: relative; top: 0; }
  .constellation { grid-template-areas: "map" "legend" "panel"; }
  .cons-map { height: 520px; }
}
@media (max-width: 640px) {
  .header-inner { padding: 8px 8px 8px 18px; }
  .logo { font-size: 16px; }
  .header-logo-mark { height: 20px; }
  .header-actions .btn-pill { display: none; }
  .hero-angel { left: -6%; top: 16%; height: 56vh; opacity: .9; }
  .title-card .tag { margin-top: 40px; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .card.wide .card-art { aspect-ratio: 6 / 5; }
  .ui { width: 88%; font-size: 11px; }
  .opener { min-height: 92svh; padding-bottom: 150px; }
  .paper { padding-block: 90px 120px; }
  .block { margin-top: 100px; }
  .cons-panel .q { font-size: 26px; }
  .demo-art { min-height: 560px; }
  .console { left: 50%; transform: translate(-50%, -50%); font-size: 12px; }
  .audio-info { min-width: 0; }
  .audio-title { font-size: 13.5px; }
  .audio-sub { font-size: 8.5px; letter-spacing: .12em; }
  .audio-widget { gap: 11px; padding: 6px 15px 6px 6px; }
  .audio-toggle { width: 40px; height: 40px; }
  .scroll-cue { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .will-reveal { opacity: 1; transform: none; filter: none; }
}

@media (max-width: 640px) { .m-hide { display: none; } }
.crescendo li { font-size: clamp(18px, calc(var(--s) * .085vw), calc(var(--s) * 1px)); }
.paper .answer i { background-image: linear-gradient(180deg, #c9952f 0%, #8a5a14 60%, #5e3a0a 100%); }
@media (max-width: 640px) { .bchip { left: min(var(--x), calc(100% - 200px)); } }

/* ============ IMAGE LOADING: blur-up placeholders ============ */
img.lq { background-size: cover; background-position: center; background-repeat: no-repeat; background-color: #2a2a20; }
.js img.lq { transition: filter .9s ease, transform .9s ease, opacity .9s ease; }
.js img.lq:not(.is-loaded) { filter: blur(16px) saturate(1.1); transform: scale(1.06); }
.inset-art { overflow: hidden; }
.frame img.lq:not(.is-loaded) { transform: none; }
.voice-open .opener-art img { background-position: 30% 50%; }
.oculus-open .opener-art img { background-position: center 45%; }
.layer-open .opener-art img { background-position: center 55%; }
.future-open .opener-art img { background-position: 48% 50%; }
.hero-bg img { background-position: center 40%; }
.demo-art > img { background-position: 70% 30%; }

/* ============ VII. SPARK between the fingers ============ */
.spark-dot {
  position: absolute; z-index: 1; left: 0; top: 0; width: 7px; height: 7px; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: #fffaf0;
  box-shadow: 0 0 10px 3px rgba(255,238,196,.95), 0 0 42px 16px rgba(226,180,74,.42), 0 0 110px 40px rgba(226,180,74,.16);
  animation: breathe 3.2s ease-in-out infinite;
}
.spark-dot::before, .spark-dot::after {
  content: ''; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: linear-gradient(90deg, transparent, rgba(255,242,210,.95), transparent);
}
.spark-dot::before { width: 96px; height: 1px; }
.spark-dot::after { width: 1px; height: 54px; background: linear-gradient(180deg, transparent, rgba(255,242,210,.9), transparent); }
@keyframes breathe { 0%, 100% { opacity: .85; scale: 1; } 50% { opacity: 1; scale: 1.25; } }
.spark-words {
  position: absolute; z-index: 1; left: 0; top: 0; display: grid; place-items: center; pointer-events: none;
  transform: translate(-50%, calc(-100% - 40px));
}
.spark-words::after {
  content: ''; position: absolute; left: 50%; top: calc(100% + 8px); width: 1px; height: 24px;
  background: linear-gradient(180deg, rgba(120,86,40,.55), transparent);
}
.spark-words .w {
  grid-area: 1 / 1; white-space: nowrap;
  font-family: var(--f-serif); font-style: italic; font-size: clamp(19px, 1.9vw, 28px); letter-spacing: -.01em;
  color: #34240f; text-shadow: 0 0 14px rgba(255,249,232,.95), 0 0 30px rgba(255,244,214,.8);
  opacity: 0; transform: translateY(6px); transition: opacity .9s ease, transform .9s ease;
}
.spark-words .w.on { opacity: 1; transform: none; }

/* ============ VI. STORY — centred column ============ */
@media (min-width: 1100px) { .center-inner { padding-left: 200px; padding-right: 200px; } }
.story { grid-template-columns: minmax(0, 1fr); max-width: 780px; margin-inline: auto; justify-items: center; gap: 64px; }
.story-art { position: static; top: auto; width: min(100%, 440px); justify-items: center; }
.story-art .plate { width: 100%; }
.story-art .caption, .inset-art .caption { text-align: center; margin-inline: auto; }
.story-text { text-align: center; justify-items: center; }
.story-text p { max-width: 30em; }
.story-text .mono-list { text-align: left; width: fit-content; max-width: 100%; }
.inset-art { width: min(100%, 620px); }

/* Chapter II: size the painting so the whole canvas (skull included) fits on one screen */
.walls-open { padding-bottom: 120px; }
.walls-grid { align-items: center; }
.walls-open .frame { width: min(100%, calc(100vh - 360px)); min-width: 340px; justify-self: end; }
@media (max-width: 900px) { .walls-open .frame { width: 100%; min-width: 0; justify-self: stretch; } }

/* Header lives in the hero only; past it, the left chapter rail takes over (desktop, where the rail exists) */
@media (min-width: 1100px) {
  body.past-hero .site-header { transform: translate(-50%, calc(-100% - 40px)); opacity: 0; pointer-events: none; }
  .rail { padding-top: calc(28px + env(safe-area-inset-top, 0px)); }
}

.title-card .tag .soon { color: rgba(247,247,238,.7); margin-top: 4px; }

/* ============ HERO: the second herald (Fra Angelico's tambourine angel) ============ */
.hero-angel-r { left: auto; right: 5%; top: 17%; height: min(66vh, 760px); transform-origin: 40% 30%; animation-duration: 10.5s; animation-delay: -5s; }
html.intro-pre .hero-angel-r img { transform: translate(80vw, 20vh) rotate(24deg) scale(.8); opacity: 0; }
html.intro-go .hero-angel-r img { transition: transform 2s cubic-bezier(.16,1,.3,1) .75s, opacity .9s ease .75s; }
@media (max-width: 900px) { .hero-angel-r { right: -4%; top: 24%; height: 52vh; } }
@media (max-width: 640px) { .hero-angel-r { left: auto; right: 0; top: 9%; bottom: auto; height: 19vh; } }
