/* TetraWave — shared styles for every page.
   Layout: one centred 980px column (the width of the old Wix pages) over a fixed video sky. */
:root {
  /* LETTERING STANDARD (see LETTERING-STANDARDS.txt)
     Section heading   30 pt (40 px)  Cinzel, Medium   gold
     Paragraph heading 24 pt (32 px)  Cinzel, Regular  pale gold
     Sub-section       18 pt (24 px)  Cinzel, Regular  pale gold
     Paragraph         12 pt (16 px)  Source Sans 3, Regular, light grey
     Small paragraph   10 pt (13.3 px) Source Sans 3, Regular, light grey */
  --fs-section: 40px; --fs-phead: 32px; --fs-sub: 24px; --fs-para: 16px; --fs-small: 13.33px;
  --ink: #06070c;          /* page ground behind the video */
  --text: #dcdcdc;         /* body text (Wix used #DBDBDB) */
  --gold: #f5ca97;         /* titles, links */
  --pale: #f9e2ba;         /* secondary headings */
  --muted: #8f8b98;        /* captions, credit line */
  --line: rgba(245, 202, 151, .28);
  --panel: rgba(8, 9, 16, .94);
  --display: "Cinzel", "Trajan Pro", Georgia, serif;
  --body: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--text); font: 18px/1.6 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration-color: var(--line); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--gold); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Background video, dimmed on reading pages */
.bg { position: fixed; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.veil { position: fixed; inset: 0; z-index: -1; background: radial-gradient(ellipse at 50% 30%, rgba(6,7,12,.45), rgba(6,7,12,.8)); }
.home .veil { background: radial-gradient(ellipse at 50% 45%, rgba(6,7,12,.05), rgba(6,7,12,.55)); }

/* Top bar */
.bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px max(16px, env(safe-area-inset-right)) 12px max(16px, env(safe-area-inset-left));
  background: linear-gradient(rgba(6,7,12,.92), rgba(6,7,12,.7)); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.bar-home { position: fixed; inset: 0 0 auto; display: block; padding: 0; background: none; border: 0; backdrop-filter: none; }

.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--gold); line-height: 1.1; }
.brand span { font: 600 24px/1 var(--display); letter-spacing: .06em; }
.brand small { font: 400 12px/1.4 var(--display); letter-spacing: .08em; color: var(--pale); margin-top: 4px; }
.toc-open, .toc-close { font: 600 13px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--gold);
  background: rgba(6,7,12,.5); border: 1px solid var(--line); border-radius: 2px; padding: 10px 14px; cursor: pointer; }
.toc-open:hover, .toc-close:hover { border-color: var(--gold); }

/* Contents overlay */
.toc { position: fixed; inset: 0; z-index: 20; background: var(--panel); overflow-y: auto; }
.toc-inner { width: max-content; max-width: min(760px, 100%); margin: 0 auto; padding: 28px max(16px, env(safe-area-inset-right)) 60px max(16px, env(safe-area-inset-left)); }
.toc-close { float: right; text-decoration: none; }
.toc-title { font: 600 28px/1.2 var(--display); color: var(--gold); letter-spacing: .08em; margin: 4px 0 24px; }
.toc-part { border-top: 1px solid var(--line); padding: 14px 0 6px; }
.toc-part-name { font: 600 14px/1.3 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--pale); margin: 0 0 8px; }
.toc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc li a, .toc li.todo { display: flex; align-items: baseline; gap: 12px; padding: 6px 0; text-decoration: none; }
.toc li a[aria-current] { color: #fff; }
.toc li.todo { color: var(--muted); }
.toc li.todo em { margin-left: auto; font-size: 12px; font-style: normal; letter-spacing: .06em; text-transform: uppercase; }
.toc .k { flex: none; width: 72px; min-width: 0; }   /* same width for every key so the columns line up */
.toc .idx { flex: none; min-width: 1.4em; text-align: right; margin-right: -2px; font: 600 13px/1 var(--body); letter-spacing: .04em; color: var(--pale); font-variant-numeric: tabular-nums; }
.toc li.todo .idx { color: var(--muted); }
.k { font: 500 11px/1 var(--body); letter-spacing: .12em; color: var(--muted); border: 1px solid rgba(143,139,152,.45); padding: 3px 5px; border-radius: 2px; min-width: 58px; text-align: center; }

/* Reading column */
.page { max-width: 980px; margin: 0 auto; padding: 40px max(16px, env(safe-area-inset-right)) 32px max(16px, env(safe-area-inset-left)); }
.page-title { font: 500 clamp(26px, 4.4vw, var(--fs-section))/1.15 var(--display); color: var(--gold); text-align: center; letter-spacing: .05em; margin: 8px auto 40px; max-width: 800px; text-wrap: balance; }   /* every page title: Cinzel 30 pt, kept within the 800px margins (a longer title takes two balanced lines) */
.page-title .k { display: block; width: max-content; margin: 0 auto 14px; font-size: 11px; }
.page-title .t0 { display: block; font: 400 13.33px/1.2 var(--body); letter-spacing: .06em; color: var(--pale); margin-bottom: 2px; }   /* small line above a title, 10 pt Source Sans 3 */
.page-title .t2 { display: block; font-size: .5em; margin-top: .1em; }   /* second line of a title, half size (Part I, Section 1) */
.page-title .h1-sub { display: block; font-size: .5em; line-height: 1.3; margin-top: 2px; }   /* a second, half-size line under a page title */
.page-title .phi-sym { display: block; margin-top: 14px; font: 400 64px/1 "Times New Roman", Times, Georgia, serif; color: var(--gold); letter-spacing: 0; }   /* P2-S6: the Phi symbol under the title */
.page-title .subtitle { position: absolute; left: 0; right: 0; top: calc(100% + 10px); font: 400 var(--fs-sub)/1.2 var(--display); color: #ffffff; letter-spacing: .05em; }   /* P1-S4 subtitle: hangs below the title (closer to the title than to "Star Coil"), so nothing on the page moves */
@media (max-width: 699px) { .page-title .subtitle { position: static; display: block; margin-top: 10px; font-size: 19px; } }
.blk { width: min(100%, var(--w)); margin: 22px auto; min-width: 0; }
.cols { display: flex; gap: 28px; align-items: flex-start; margin: 22px 0; }
.cols > .col { min-width: 0; }
.cols .blk { width: 100%; margin: 0 0 22px; }
.txt p, .txt h2, .txt h3 { margin: 0 0 .7em; }
.txt h2, .txt h3.big { font-family: var(--display); font-weight: 400; color: var(--pale); line-height: 1.25; text-wrap: balance; }
.txt p { line-height: 1.6; }
.img { margin: 0; }
.img img { margin: 0 auto; }
.btnline { text-align: center; margin: 0; }

/* Top line (from the Wix header): About Me · Sound · Contact */
.topline { position: relative; display: flex; justify-content: center; align-items: flex-start; gap: clamp(28px, 7vw, 96px);
  padding: 14px max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left)); background: rgba(6,7,12,.92); }
.home .topline { background: none; }
.topline > .tl-link, .topline > .sound { position: relative; left: var(--tl-shift, 0px); }   /* nudged so the Sound button sits exactly on the page centre (js/site.js) */
.tl-link { font: 400 14px/1 var(--display); letter-spacing: .08em; color: #fff; text-decoration: none; padding: 10px 2px; }
.tl-link:hover, .tl-link[aria-current] { color: var(--gold); }
.sound { display: grid; justify-items: center; gap: 3px; }
.sound-btn { width: 34px; height: 34px; display: grid; place-items: center; padding: 0; cursor: pointer;
  background: #5a5a5a; border: 1px solid #8a8a8a; border-radius: 2px; }
.sound-btn svg { width: 18px; height: 18px; fill: #1a1a1a; }
.sound-btn .i-pause, .sound-btn[aria-pressed="true"] .i-play { display: none; }
.sound-btn[aria-pressed="true"] .i-pause { display: inline; }
.sound-btn:hover { background: #6e6e6e; }
.sound-label { font: 300 12px/1 var(--body); color: rgb(220,205,190); letter-spacing: .04em; }
.topline .toc-open { position: absolute; right: max(16px, env(safe-area-inset-right)); top: 14px; }
.links-page { display: grid; justify-items: center; gap: 28px; text-align: center; padding: 24px 0 64px; }
.links-page a { font: 400 clamp(20px, 3vw, 28px)/1.3 var(--display); letter-spacing: .04em; color: var(--pale); text-decoration: none; }
.links-page a:hover { color: var(--gold); text-decoration: underline; text-decoration-color: var(--line); }
.links-page a { text-shadow: 0 1px 12px rgba(6,7,12,.95), 0 0 3px rgba(6,7,12,.8); }
.links-page p { margin: 0; color: var(--muted); }
.about-links { position: relative; padding-top: 150px; min-height: 440px; align-content: start; }
.about-top { display: grid; justify-items: center; gap: 28px; margin-top: -5vh; }       /* top three lines, raised 5% of the screen */
.about-top a { font-size: clamp(15px, 2.25vw, 21px); }                                   /* 25% smaller */
.about-links .email-far { position: absolute; left: 0; right: 0; top: 371px; margin: 0; } /* email stays where it was */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Headings forced onto set lines (e.g. Tetrahedron Fascination) */
.blk.fit { container-type: inline-size; }
.txt .two-line { display: grid; }
.txt .two-line span { white-space: nowrap; font-size: min(32px, 7cqi); }   /* sized so the line always fits its column */
.txt .two-line .sub { font-size: min(var(--fs-sub), 5.3cqi); }              /* Sub-section size */
[data-key="TETRA"] .txt .two-line .sub { padding-left: 5px; }   /* nudged right, under the arm of the "T" of Tetrahedral */

.txt .year-title { display: grid; }
.txt .year-title span { white-space: nowrap; font-size: min(var(--fs-sub), 5.4cqi); }   /* Sub-section size; title always fits on one line */

/* Inner-page header: TetraWave block top-left, level with the Contents box; Part/Section address under Contents */
.bar-inner { display: block; padding: 0; }
.bar-inner .topline { background: none; min-height: 0; padding-bottom: 4px; }   /* header line just under the Sound caption */
.topline .brand { position: absolute; left: max(16px, env(safe-area-inset-left)); top: 14px; }
.toc-box { position: absolute; right: max(16px, env(safe-area-inset-right)); top: 14px; display: grid; gap: 5px; }
.toc-box .toc-open { position: static; }
.addr { margin: 0; width: 100%; text-align: center; white-space: nowrap;   /* same width as Contents, centred under it */
  font: 600 9.36px/1 var(--display); letter-spacing: 1.89px; margin-right: -1.89px; text-transform: uppercase; color: var(--pale);
  transform: scaleX(.845); transform-origin: 50% 50%; }   /* 20% larger again, letters condensed so it is no wider than before; spacing still 1.65px on screen */
@media (max-width: 900px) {
  .bar-inner .topline { padding-top: 76px; justify-content: center; }
}

/* Standard paragraph headings and paragraphs */
.txt .ph { font: 400 clamp(24px, 4.2vw, var(--fs-phead))/1.25 var(--display); color: var(--pale); margin: 0 0 .5em; text-wrap: balance; }
.txt p { font: 400 var(--fs-para)/1.6 var(--body); color: var(--text); }
.txt .ss { font: 400 clamp(20px, 3.2vw, var(--fs-sub))/1.3 var(--display); color: var(--pale); margin: 0 0 .5em; text-wrap: balance; }   /* Sub-section */
.txt p.small { font: 400 var(--fs-small)/1.55 var(--body); color: var(--text); }                                                          /* Small paragraph */

/* ToolBox: the working tools in one header menu, hidden unless switched on in this browser (js/toolbox.js) */
html:not(.tools-on) .tl-dev, html:not(.tools-on) .img-no, html:not(.tools-on) .foot .hint { display: none !important; }
html:not(.tools-on) .page-title .k { visibility: hidden; }                        /* page code tag: hidden, its space kept so nothing moves */
html:not(.tools-on) .toc .k, html:not(.tools-on) .toc li.todo { display: none; }   /* page codes and unfinished pages in Contents */
.tl-dev { position: absolute; right: calc(max(16px, env(safe-area-inset-right)) + 136px); top: 21px; }
.tb-btn { font: 400 11px/1 var(--body); letter-spacing: .06em; color: var(--muted); background: none; border: 1px dashed rgba(143,139,152,.55);
  border-radius: 3px; padding: 6px 9px; cursor: pointer; }
.tb-btn:hover, .tl-dev.open .tb-btn { color: var(--pale); border-color: var(--line); }
.tb-menu { display: none; position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 150px; padding: 6px 0;
  background: var(--panel); border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.tl-dev.open .tb-menu { display: grid; }
.tb-menu a { font: 400 12px/1 var(--body); letter-spacing: .05em; color: var(--text); text-decoration: none; padding: 8px 14px; white-space: nowrap; }
.tb-menu a:hover { color: var(--gold); background: rgba(245,202,151,.07); }
.tb-menu .tb-off { margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
@media (max-width: 1359px) {
  .tl-dev { right: calc(max(16px, env(safe-area-inset-right)) + 136px); }
}

.tl-dev.toc-dev { position: relative; right: auto; top: auto; display: inline-block; margin: -14px 0 20px; }
.tl-dev.toc-dev .tb-menu { left: 0; right: auto; }

/* Font Catalogue page */
.catalogue { display: grid; gap: 6px; max-width: 900px; margin: 0 auto; }
.cat-group { font: 600 13px/1 var(--display); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 34px 0 6px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.spec { padding: 14px 0 18px; border-bottom: 1px solid rgba(245,202,151,.12); min-width: 0; overflow-x: auto; }
.spec-meta { margin: 0 0 10px; font: 400 12px/1.4 var(--body); color: var(--muted); letter-spacing: .02em; }
.spec-meta b { color: var(--pale); font-weight: 600; }
.spec .page-title.spec-sample { margin: 0; text-align: left; }
.spec .txt > * { margin: 0; }
.spec-brand { display: block; }
.spec-inline { display: inline-block; }
.spec-addr { width: auto; text-align: left; transform-origin: 0 50%; }
.spec .hero-small, .spec .hero-title, .spec .hero-credit { display: block; margin: 0; text-align: left; justify-items: start; }

/* Wix-exact page layout (980px wide, scaled to fit narrower windows) */
.page:has(.canvas-wrap) { max-width: 980px; padding-left: 0; padding-right: 0; }
.canvas-wrap { position: relative; width: 100%; max-width: 980px; margin: 0 auto; }
.canvas-wrap { isolation: isolate; }                 /* page items always stay behind the header when scrolling */
.canvas > .el-D { z-index: 500 !important; }         /* PDF buttons sit above any text box overlapping them, so they can be clicked */
.canvas { position: relative; width: 980px; transform-origin: 0 0; isolation: isolate; }   /* own layer stack: items sent to the back stay on the page */
.canvas > .el { position: absolute; margin: 0; }
.canvas > figure.el { overflow: hidden; }
.canvas > figure.el img { position: absolute; max-width: none; display: block; }
.canvas > .el .txt > *:last-child { margin-bottom: 0; }
.canvas .txt p { line-height: 1.45; }                       /* close to Wix's text spacing, so pages keep their proportions */
.canvas .txt .ph-wix { line-height: 1.3; margin-bottom: .3em; }
html, body { overflow-x: clip; }                             /* items Wix parked off the side of the page stay out of view */
.canvas > .el-L hr { margin: 0; border: 0; border-top: 1px solid; position: absolute; inset: 50% 0 auto; }
.canvas > .el-L[style*="width:5px"] hr, .canvas > .el-L[style*="width:4px"] hr { inset: 0 auto 0 50%; border-top: 0; border-left: 1px solid; height: 100%; }
.canvas .rect { position: absolute; inset: 0; }
.canvas svg { display: block; width: 100%; height: 100%; }
.wbtn { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font: 400 16px/1.1 var(--display); color: #fff; text-decoration: none; text-align: center; }
a.wbtn:hover { color: var(--gold); }
.doc { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font: 400 16px/1.3 var(--body); color: var(--gold); }
.doc svg { height: 100%; width: auto; }
.doc img { height: 100%; width: auto; max-height: 58px; }
.doc-btn { flex-direction: column; justify-content: flex-start; gap: 0; padding-top: 5px; text-decoration: none; }
.doc-btn img { height: 51px; }
.doc-btn span { font: 400 15px/21px var(--body); color: #fff; white-space: nowrap; }
[data-key="COIL"] .doc-btn img { height: 41px; }                         /* StarCoil: icon 20% smaller */
[data-key="COIL"] .doc-btn span { font-size: 9px; line-height: 13px; color: #fff; }   /* title in bright white */
[data-key="COIL"] .doc-btn .l1 { font-size: 18px; line-height: 22px; }                  /* "Download" twice as big */
[data-key="COIL"] .doc-btn .l2 { font-size: 14.6px; line-height: 18px; }                /* "Narrative": 30% larger again (was 11.25px) */
[data-key="COIL"] .doc-btn img { opacity: .55; }                                         /* icon stays dimmed with the right column */
[data-key="COIL"] .doc-btn { justify-content: center; padding-top: 0; }    /* both stay centred where they were */
.doc-btn:hover span { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.el[data-gallery] .strip { display: flex; gap: 16px; height: calc(100% - 28px); overflow-x: auto; scroll-snap-type: x mandatory; }
.el[data-gallery] .strip img { height: 100%; width: auto; flex: none; scroll-snap-align: center; }
.strip-hint { margin: 6px 0 0; font: 400 12px/1 var(--body); color: var(--muted); text-align: center; }
@media (max-width: 699px) {
  .page:has(.canvas-wrap) { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  .canvas { width: auto; height: auto !important; display: grid; gap: 18px; }
  .canvas > .el { position: static !important; width: auto !important; height: auto !important; max-width: 100%; }
  .canvas > figure.el { aspect-ratio: var(--ar); width: 100% !important; }
  .canvas > .el-R, .canvas > .el-L, .canvas > .el-S { display: none; }
  .el[data-gallery] .strip { height: 70vw; }
}

/* Previous / next */
.pager { max-width: 980px; margin: 0 auto 24px; padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
  display: grid; grid-template-columns: repeat(2, minmax(0, 320px)); justify-content: center; gap: 16px; }   /* the pair sits at the bottom centre */
.pager a { display: block; padding: 16px 18px; border: 1px solid var(--line); background: rgba(6,7,12,.6); text-decoration: none; font-family: var(--display); }
.pager a:hover { border-color: var(--gold); }
.pager small { display: block; font: 600 11px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.pager .prev { text-align: right; }   /* Previous: right-justified, towards the centre */
.pager .next { text-align: left; }    /* Next: left-justified, towards the centre */
/* Small Previous / Next just under the header line */
.pager-top { position: sticky; top: var(--bar-h, 0px); height: 0; z-index: 4; }   /* floats just under the header while the page scrolls */
.pager-top a { position: absolute; top: 7px; max-width: calc(50% - 24px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font: 400 12px/1.4 var(--display); letter-spacing: .08em; color: var(--pale); text-decoration: none; opacity: .8; }
.pager-top a:hover { color: var(--gold); opacity: 1; }
.pager-top .prev { left: max(16px, env(safe-area-inset-left)); }
/* once the page has scrolled, the links get a soft dark backing so they stay readable over pictures and text */
.pager-top a { padding: 3px 8px; margin: -3px -8px; border-radius: 3px; transition: background-color .3s ease; }
html.scrolled .pager-top a { background: rgba(6, 7, 12, .72); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.pager-top a { display: flex; align-items: center; gap: 8px; }
.pager-top .arw { font-size: 3em; line-height: .6; position: relative; top: -.06em; }   /* arrows 3x the text size */
.pager-top .next { right: max(16px, env(safe-area-inset-right)); }
@media (max-width: 720px) { .pager-top a { font-size: 10px; } }
.foot { text-align: center; color: var(--muted); font-size: 14px; padding: 24px 16px 48px; }
.foot .hint { font-size: 12px; }
.foot code { color: var(--pale); }

/* Home */
.home .page { min-height: 100vh; display: grid; place-items: center; padding-top: 72px; }
.hero { text-align: center; display: grid; justify-items: center; gap: 10px; }
.hero-small { display: grid; justify-items: center; gap: 2px; font: 400 13px/1.4 var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--pale); margin: 0 0 8px; }
.hero-small span:not(.hs-big) { font-size: 19.5px; }   /* "&" and "The StarGate Poems": 50% larger than 13px */
.hero-small span:last-child:not(.hs-big) { font-size: 24px; }        /* "The StarGate Poems": 18 pt Cinzel */
.hero-small .hs-big { font-size: 33px; letter-spacing: .14em; line-height: 32.8px; }   /* "TetraWave": enlarged 10% twice; line height held at 32.8px */
.hero-small .hs-big .cap { font-size: 35.67px; font-weight: inherit; }   /* the T and the W of "TetraWave": 2 pt larger (26.75 pt against 24.75 pt) */
.hero-title { margin: 0; display: grid; justify-items: center; gap: 6px; font: 400 clamp(34px, 6.6vw, 64px)/1.08 var(--display); color: var(--gold); letter-spacing: .04em; text-wrap: balance; }
.hero-title .ht-2 { font-size: .75em; margin-top: -.29em; }   /* 25% smaller, 20px closer to "Discoveries" */
.hero-text { display: grid; justify-items: center; gap: 10px; transform: translateY(calc(-1 * var(--up, 0px))); }
.home .topline { margin-top: var(--down, 0px); }
.measure-original .hero-mark { --D: min(372px, 72vw, 44vh); }
.home .hero-mark, .home .hero-enter { position: relative; top: calc(-1 * var(--lift, 0px)); }  /* raise Spinor + Enter */
.hero-credit { font: 700 14.5px/1 var(--display);   /* 12% larger than the original 13px */
  letter-spacing: .16em; color: #ffffff; margin: 8px 0 22px; }   /* bold, pure white */
.hero { text-shadow: 0 1px 12px rgba(6,7,12,.9); }
.hero-mark { /* square frame exactly 1/16 inch (6 CSS px) outside the circle */
  --D: min(316px, 61vw, 37.4vh);               /* diameter of the gold circle (15% smaller than the first version) */
  position: relative; display: grid; place-items: center; overflow: hidden;
  width: calc(var(--D) + 12px); aspect-ratio: 1; background: #010703; }
.hero-mark img { position: absolute; left: 50%; top: 50%; translate: -50% -50%;   /* centred, even though it is wider than the frame */
  width: calc(var(--D) / .9208); max-width: none; height: auto; }            /* the gold circle is 92.08% of the picture's width (HOME-05: HOME-04 re-cropped to centre the Phi disc) */
.hero-enter { font: 600 14px/1 var(--display); letter-spacing: .3em; text-transform: uppercase; text-decoration: none; padding: 12px 18px; }

/* Entrance effects (match the Wix "Fade In" and "Spin In") */
.js [data-anim] { opacity: 0; }
.js [data-anim].in { opacity: 1; transition: opacity var(--dur, 1550ms) cubic-bezier(.445,.05,.55,.95) var(--d, 500ms); }
/* The Spinor: fades in over 9 s (5x the old 1.8 s); starts spinning ~5x faster than before
   (about 14 turns a second), then slows smoothly and comes to rest upright after 44 turns. */
.js [data-anim="spin"].in { transition: none; animation:
    spinor-fade 10500ms ease-in-out var(--d, 300ms) both,
    spinor-turn 9000ms cubic-bezier(.33, 1, .68, 1) var(--d, 300ms) both,
    spinor-grow 1800ms cubic-bezier(.2, .7, .2, 1) var(--d, 300ms) both; }
@keyframes spinor-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes spinor-turn { from { rotate: 15840deg; } to { rotate: 0deg; } }   /* counter-clockwise, like the galaxy */
@keyframes spinor-grow { from { scale: .25; } to { scale: 1; } }
@media (prefers-reduced-motion: reduce) {
  .js [data-anim] { opacity: 1 !important; animation: none !important; transition: none !important; }
  .bg { display: none; }
  body { background: var(--ink) url("../video/background-poster.jpg") center / cover fixed; }
}

/* "#files" mode: label every image with its file */
.show-files [data-file] { position: relative; outline: 1px dashed var(--gold); }
.show-files figure[data-file]::after, .show-files .hero-mark::after { content: attr(data-file) " " attr(data-shared); position: absolute; left: 0; bottom: 0;
  font: 12px/1.3 ui-monospace, Menlo, monospace; color: #111; background: var(--gold); padding: 3px 6px; max-width: 100%; word-break: break-all; }

@media (max-width: 720px) {
  .topline { justify-content: flex-start; gap: 22px; }
  .tl-link { font-size: 12px; }
  body { font-size: 17px; }
  .cols { flex-direction: column; gap: 0; }
  .cols > .col { flex: none !important; width: 100%; }
  .brand span { font-size: 20px; }
  .brand small { font-size: 10px; }
  .pager { grid-template-columns: minmax(0, 320px); }
  .pager .prev, .pager .next { text-align: center; }   /* stacked on phones: both centred */
  .pager > span { display: none; }
}

/* Home: the video is moved/zoomed by js so the galaxy's core sits behind the symbol */
.home .bg { width: auto; height: auto; max-width: none; inset: auto; object-fit: fill; }
.home .bg:not([style]) { inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Image index numbers (temporary, for calling out pictures): boxed number in each picture's top-left corner */
.img-no-wrap { position: relative; display: block; flex: none; height: 100%; }
.img-no-wrap > img { height: 100%; width: auto; display: block; }
.img-no { position: absolute; left: 6px; top: 6px; z-index: 3; min-width: 22px; padding: 2px 5px; text-align: center;
  font: 700 13px/1.2 "Source Sans 3", Arial, sans-serif; color: #fff; background: rgba(6,7,12,.78);
  border: 1.5px solid var(--gold); border-radius: 3px; pointer-events: auto; }

/* Slideshow gallery (from Wix slideshow galleries): one picture at a time, arrows to step through */
.el[data-slides] { overflow: hidden; }
.el[data-slides] .slide { position: absolute; inset: 0; margin: 0; overflow: hidden; opacity: 0; transition: opacity .6s ease; pointer-events: none; }
.el[data-slides] .slide.on { opacity: 1; pointer-events: auto; }
.el[data-slides] .slide img { position: absolute; max-width: none; display: block; }
.el[data-slides] button { position: absolute; top: 50%; translate: 0 -50%; z-index: 4; width: 44px; height: 64px; border: 0; cursor: pointer;
  font: 400 40px/1 var(--display); color: #fff; background: rgba(6,7,12,.45); }
.el[data-slides] button:hover { background: rgba(6,7,12,.75); color: var(--gold); }
.el[data-slides] .sl-prev { left: 0; } .el[data-slides] .sl-next { right: 0; }
.el[data-slides] .sl-count { position: absolute; right: 10px; bottom: 8px; z-index: 4; padding: 2px 8px; font: 600 12px/1.4 var(--body); color: #fff; background: rgba(6,7,12,.6); }
@media (max-width: 699px) { .canvas > .el[data-slides] { aspect-ratio: var(--ar); width: 100% !important; position: relative !important; } }

/* Text set in the Sound-label lettering (9 pt Source Sans 3 Light, warm grey): e.g. the 1994 paper on Part II, Section 1 */
.txt .paper p { font: 300 12px/1.5 var(--body); color: rgb(220,205,190); text-align: justify; text-indent: 0; margin: 0 0 1.1em; hyphens: auto; }
.txt .paper p.pt, .txt .paper p.pa, .txt .paper p.wc { text-indent: 0; text-align: left; }
.txt .paper p.pt { margin-bottom: .15em; letter-spacing: .02em; hyphens: manual; }
.txt .paper p.pt + p.pa { margin-top: 1.1em; }
.txt .paper p.wc { padding-left: 2em; text-indent: -2em; margin-bottom: .6em; }
.txt .paper p.pt1 { font: 700 18px/1.3 var(--body); color: #f0e4d4; margin-bottom: .35em; }   /* title, bold, as in the editing document */
.txt .paper p.pt2 { font: 700 13.5px/1.4 var(--body); color: #e6d8c6; }                       /* subtitle, bold */
.txt .paper p.wch { font: 700 15px/1.3 var(--body); color: #f0e4d4; margin-top: 1.6em; }       /* "Works Cited" heading */
.txt .paper p.src { margin-top: 1.4em; font-style: italic; color: #b9ab9a; }                     /* source line under the P2 excerpt */

/* StarCoil poem, revealed line by line (js/site.js) */
.js .poem-line { opacity: 0; }

/* StarCoil: the explosion of words over the galaxy, before the poem rolls down (js/site.js, wordBurst) */
.word-burst { position: fixed; inset: 0; z-index: 4; pointer-events: none; overflow: hidden; }
.word-burst > span { position: absolute; transform: translate(-50%, -50%); white-space: nowrap; opacity: 0;
  font: 400 16px/1 "Gill Sans", "Gill Sans MT", Calibri, var(--body); letter-spacing: .01em; color: #fff;
  text-shadow: 0 0 6px rgba(255,255,255,.35), 0 1px 10px rgba(6,7,12,.6); }
.word-burst span b { font-weight: 600; }
.word-burst span i { font-style: normal; font-size: 1.35em; }   /* the large "ssembles" of re(a)ssembles */
.tw-editing .canvas [data-fadeout] { opacity: 1 !important; }   /* faded-out items stay visible while editing */
.tw-editing .canvas [data-poem] { opacity: 1 !important; }   /* the poem shows fully while editing */

/* Home: black from the very first moment (removed by js/site.js when the opening starts, or replaced by the opening screen) */
#tw-cover { position: fixed; inset: 0; z-index: 2147483400; background: #05060b; transition: opacity 400ms ease; }
#tw-cover.out { opacity: 0; pointer-events: none; }
/* Home: opening screen (only when the browser will not play the soundtrack without a click) */
#tw-gate { position: fixed; inset: 0; z-index: 2147483500; display: grid; place-items: center; background: #05060b; cursor: pointer;
  opacity: 0; transition: opacity 500ms ease; }
#tw-gate.on, #tw-gate.now { opacity: 1; }
#tw-gate.now { transition: none; }
#tw-gate.out { opacity: 0; transition: opacity 800ms ease; pointer-events: none; }
#tw-gate:focus { outline: none; }
#tw-gate .g-in { text-align: center; }
#tw-gate .g-title { margin: 0; font: 400 clamp(34px, 6vw, 56px)/1.1 var(--display); letter-spacing: .14em; color: var(--gold); }
#tw-gate .g-sub { margin: 10px 0 0; font: 400 clamp(15px, 2vw, 20px)/1.2 var(--display); letter-spacing: .08em; color: var(--pale); }
#tw-gate .g-enter { margin: 46px 0 0; font: 600 13px/1 var(--display); letter-spacing: .3em; text-transform: uppercase; color: #fff;
  animation: g-pulse 2.4s ease-in-out infinite; }
@keyframes g-pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { #tw-gate .g-enter { animation: none; opacity: .8; } }

/* StarCoil: "Star" and "Coil" in the poem title closer together, matching the columns below */
[data-poem="title"] .txt { word-spacing: -4px; }
/* timed fade-ins run in CSS from the first moment the page draws (no script needed): times come from data attributes via --at/--dur */
@keyframes tw-in { from { opacity: 0; } to { opacity: var(--to, 1); } }
.canvas [data-late] { animation: tw-in var(--dur, 2s) ease-in-out var(--at, 7s) both; }
.canvas figure[data-stage] > img:not(.stage-1) { animation: tw-in var(--dur, 2s) ease-in-out var(--at, 3s) both; }
.canvas figure[data-stage] > img.stage-1 { animation: tw-in var(--dur, 0s) ease-in-out var(--at, 0s) both; }
/* the two-stage picture (P1-S5's napkin sketch) and the late pictures wait, held at their start, until the two-stage
   picture's own images have loaded (js/site.js adds html.stages-go); so the drawings always follow the napkin sketch */
html.js:not(.stages-go) .canvas figure[data-stage] > img, html.js:not(.stages-go) .canvas [data-late] { animation-play-state: paused; }
.tw-editing .canvas [data-late] { opacity: 1 !important; animation: none !important; }   /* late pictures show fully while editing */
.tw-editing .canvas [data-stage] img { opacity: 1 !important; animation: none !important; }   /* two-stage pictures show fully while editing */

/* ── Header standard (2026-11-14) ─────────────────────────────────────────────
   1. The header line is the same height on every page.
   2. About Me, Contact and Contents sit in identical rectangular blocks, in the style of the
      Previous / Next blocks at the foot of the page, all the size of the Contents box (116 × 35).
   3. Splash page: Contents is centred on the screen, just above the Sound button and label. */
:root { --nav-w: 116px; --nav-h: 35px; --hdr-h: 67px; }
.topline { height: var(--hdr-h); padding-top: 14px; padding-bottom: 4px; align-items: flex-start; }
.tl-link, .toc-open { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
  width: var(--nav-w); height: var(--nav-h); padding: 0 6px; white-space: nowrap;
  border: 1px solid var(--line); border-radius: 0; background: rgba(6,7,12,.6); }
.tl-link:hover, .toc-open:hover { border-color: var(--gold); }
.tl-link[aria-current] { border-color: var(--gold); }
.toc-box { width: var(--nav-w); justify-items: center; }
.toc-box { grid-template-columns: var(--nav-w); }
.toc-box .addr { width: calc(100% + 40px); margin: 0 -20px; }   /* the Part/Section line no longer widens the Contents box; still centred under it */
.tl-dev { right: calc(max(16px, env(safe-area-inset-right)) + var(--nav-w) + 20px); }
/* Splash page: "Enter" in the same rectangle as About Me / Contact; "Table Of Contents" (no box) centred under it */
.home .hero-enter { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
  width: var(--nav-w); height: var(--nav-h); padding: 0 6px 0 calc(6px + .3em);   /* extra left padding balances the letter-spacing */
  border: 1px solid var(--line); background: rgba(6,7,12,.6); color: #fff; }
.home .hero-enter:hover { border-color: var(--gold); color: var(--gold); }
.home .toc-home { width: auto; height: auto; border: 0; background: none; padding: 6px 4px; margin-top: 2px;
  font: 400 14px/1 var(--display); letter-spacing: .08em; text-transform: none; color: #fff;
  position: relative; top: calc(-1 * var(--lift, 0px)); }   /* rises with Enter */
.home .toc-home:hover { color: var(--gold); border: 0; }
@media (max-width: 900px) { .bar-inner .topline { height: auto; } }
@media (max-width: 720px) { :root { --nav-w: 104px; } .tl-link { font-size: 12px; } }

/* Page titles: one size on every page, set just small enough that the longest standard title
   (Part II, Section 1, "Geometric Unity Across Dimensions") stays on one line. js/site.js measures it
   in the real font and window and sets --fs-title; without the script the old size is used. */
.page-title { font-size: var(--fs-title, clamp(26px, 4.4vw, var(--fs-section))); }

/* Contents list: all lettering white; a link turns light gold when the pointer is over it,
   and the site's gold while it is being clicked */
.toc, .toc .toc-title, .toc .toc-part-name, .toc .idx, .toc li a, .toc li a[aria-current], .toc .toc-close { color: #fff; }
.toc li a:hover, .toc li a:hover .idx, .toc .toc-close:hover { color: var(--pale); }
.toc li a:active, .toc li a:active .idx, .toc .toc-close:active { color: var(--gold); }

/* Back / Next just under the header line: small rectangles, Back directly under "About Me", Next directly under
   "Contact" (same width, centred under them). The Sound button sits on the page centre, so each box is
   half the Sound button + the header gap + its own width from the centre. */
:root { --tl-gap: clamp(28px, 7vw, 96px); }
.topline { gap: var(--tl-gap); }
.pager-top a { top: 7px; width: var(--nav-w); height: 24px; max-width: none; padding: 0; margin: 0; box-sizing: border-box;
  justify-content: center; font: 400 12px/1 var(--display); letter-spacing: .08em; color: #fff; opacity: 1;
  border: 1px solid var(--line); border-radius: 0; background: rgba(6,7,12,.6); }
.pager-top a:hover { color: var(--gold); border-color: var(--gold); }
html.scrolled .pager-top a { background: rgba(6,7,12,.72); }
.pager-top .prev { left: calc(50% - 19px - var(--tl-gap) - var(--nav-w)); }
.pager-top .next { right: auto; left: calc(50% + 19px + var(--tl-gap)); }
.toc-box:not(:has(.toc-open)) .addr { margin-top: calc(var(--nav-h) + 5px); }   /* P1 S1 has no Contents box: the Part/Section line stays where it was */

/* Contents: "Back" left, "Contents" centred, "Next" right (the row is made by js/site.js) */
.toc-inner { width: min(760px, 100%); }
.toc-head { display: grid; grid-template-columns: var(--nav-w) 1fr var(--nav-w); align-items: center; gap: 12px; margin: 4px 0 24px; }
.toc-head .toc-title { margin: 0; text-align: center; }
.toc-nav { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: var(--nav-w); height: 24px;
  font: 400 12px/1 var(--display); letter-spacing: .08em; color: #fff; text-decoration: none; padding: 0; text-transform: none; border-radius: 0; float: none;
  border: 1px solid var(--line); background: rgba(6,7,12,.6); }
.toc .toc-nav:hover { color: var(--pale); border-color: var(--gold); }
.toc .toc-nav:active { color: var(--gold); }
.toc-nav.none { visibility: hidden; }

/* Back / Next under the header: outer edges on the page margins, 400px either side of the page centre
   (the dotted lines of the ToolBox "Margins" guide; they scale with the page on narrower windows) */
.pager-top .prev { left: calc(50% - min(400px, 40.8163%)); }
.pager-top .next { left: calc(50% + min(400px, 40.8163%) - var(--nav-w)); }

/* StarCoil: the opening line, shown alone for a few seconds before the explosion of words (js/site.js, COIL_INTRO).
   It is an ordinary text box on the page, so the Edit tool can move it and edit its words; its style is on the paragraph. */
.js .coil-intro { opacity: 0; pointer-events: none; }
.tw-editing .coil-intro { opacity: 1 !important; pointer-events: auto; }   /* always showing while editing */
.tw-editing .page-title { pointer-events: none; }   /* so the opening line under the title can be clicked while editing */
@media (prefers-reduced-motion: reduce) { .coil-intro { display: none; } }

/* Auto-scroll on/off (js/site.js): top right, just left of the ToolBox (where the ToolBox sits when it is hidden) */
.auto-btn { position: absolute; top: 21px; right: calc(max(16px, env(safe-area-inset-right)) + var(--nav-w) + 20px + var(--auto-shift, 0px));
  font: 400 11px/1 var(--body); letter-spacing: .06em; color: var(--pale); background: rgba(6,7,12,.6); border: 1px solid var(--line);
  border-radius: 3px; padding: 6px 9px; cursor: pointer; white-space: nowrap; }
.auto-btn:hover { border-color: var(--gold); color: #fff; }
.auto-btn.off { color: var(--muted); }
@media (min-width: 1240px) {   /* wide windows: centred directly above the Next box, still in the header */
  .auto-btn { right: auto; left: calc(50% + min(400px, 40.8163%) - var(--nav-w) / 2); transform: translateX(-50%); }
}   /* narrower windows keep it beside the ToolBox / Contents so it never runs into them */
@media (max-width: 699px) { .auto-btn { top: auto; bottom: -34px; right: 50%; transform: translateX(50%); z-index: 5; } }   /* phones: centred just under the header line, between Previous and Next */

/* P2-S5: the Tetrahelix Explorer (tetrahelix-explorer.html) embedded at the foot of the page */
.explorer { max-width: 1180px; margin: 40px auto 48px; padding: 0 max(16px, env(safe-area-inset-left)); text-align: center; }
.explorer-title { font: 400 clamp(24px, 4.2vw, var(--fs-phead))/1.25 var(--display); color: var(--gold); letter-spacing: .05em; margin: 0 0 8px; }
.explorer-sub { max-width: 800px; margin: 0 auto 16px; color: var(--pale); font-size: 15px; }
.explorer-sub a { color: var(--gold); white-space: nowrap; }
.explorer-frame { display: block; width: 100%; height: 760px; border: 1px solid var(--line); border-radius: 10px; background: #05060b; }
@media (max-width: 820px) { .explorer-frame { height: 1250px; } }

/* Unbroken music: the page that plays the music stays open underneath; the page you moved to fills the window in a frame */
#tw-frame { position: fixed; inset: 0; width: 100%; height: 100%; border: 0; margin: 0; padding: 0; z-index: 2147483647; background: #000; visibility: hidden; }
#tw-frame.on { visibility: visible; }
html.tw-hosting, html.tw-hosting body { overflow: hidden !important; }
html.tw-hosting body > :not(#tw-frame) { visibility: hidden !important; }

/* Prelude quiz (js/site.js): answer lines after the two questions, and "You may enter" in Greek over Pythagoras */
.quiz-in { font: 400 18px/1.2 var(--body); color: #fff; background: transparent; border: 0; border-bottom: 1px solid rgba(233,226,207,.7);
  width: 150px; padding: 2px 4px; outline: none; vertical-align: baseline; }
.quiz-in:focus { border-bottom-color: var(--gold); }
.quiz-in.ok { border-bottom: 2px solid var(--gold); color: var(--gold); }
.quiz .txt p { margin: 0 0 .35em; }
.quiz-win { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 14px; z-index: 3;
  background: rgba(5,6,11,.35); pointer-events: none; }
.quiz-win .qw-greek { font: 600 clamp(22px, 2.6vw, 34px)/1.1 var(--display); color: #ffd98a; letter-spacing: .06em; text-align: center;
  text-shadow: 0 0 12px rgba(0,0,0,.9), 0 0 24px rgba(239,176,58,.7); animation: qw-flash .55s ease-in-out 0s 5 alternate both; max-width: 75%; }
.quiz-win .qw-go { pointer-events: auto; font: 400 44px/1 var(--display); color: #ffd98a; text-decoration: none; border: 1px solid var(--gold);
  border-radius: 50%; width: 58px; height: 58px; display: grid; place-items: center; background: rgba(5,6,11,.75);
  animation: qw-flash .55s ease-in-out 0s 5 alternate both; }
.quiz-win .qw-go:hover { background: rgba(201,162,74,.25); }
@keyframes qw-flash { from { opacity: 0; } to { opacity: 1; } }
@keyframes qw-in { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
.tw-editing .quiz-win { display: none; }
.quiz-in.bonus { border-bottom: 2px solid #8fd3ff; color: #8fd3ff; }
.quiz-bonus .qw-bonus { color: #bfe6ff; text-shadow: 0 0 12px rgba(0,0,0,.9), 0 0 24px rgba(108,196,255,.8); }
.quiz-bonus .qw-bonus small { display: block; margin-top: 10px; font-size: .62em; letter-spacing: .04em; }
.quiz-bonus { animation: qw-fadeout .6s ease-in 3.6s both; }
@keyframes qw-fadeout { to { opacity: 0; } }
/* question rows: text flush left with the picture, answer lines flush right with it, both lines the same length
   (--quiz-line: the room left on the longer question after three spaces, measured in js/site.js) */
.quiz .txt p.quiz-q { display: flex; align-items: baseline; }
.quiz .txt p.quiz-q .quiz-in { margin-left: auto; flex: 0 0 auto; width: var(--quiz-line, 90px); min-width: 0; }
.quiz-url { }   /* a link stays until another answer is picked */
.qw-url { pointer-events: auto; font: 600 clamp(13px, 1.2vw, 17px)/1.3 var(--body); color: #ffd98a; text-align: center; overflow-wrap: anywhere;
  max-width: 94%; padding: 10px 12px; background: rgba(5,6,11,.8); border: 1px solid var(--gold); border-radius: 6px; text-decoration: none;
  animation: qw-in .3s ease-out both; }   /* the links simply appear (no blinking) */
.qw-url:hover { text-decoration: underline; }
.qw-cap { display: block; margin-bottom: 6px; font: 600 1.15em/1.2 var(--display); letter-spacing: .04em; color: #fff; }
.quiz-win:not(.quiz-url):not(.quiz-bonus) { flex-direction: column; gap: 18px; }
.quiz-win .qw-row { display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; }
.quiz-win .qw-read { animation: qw-in .6s ease-out 2.75s both; }
/* Prelude quiz: answers are chosen by clicking a choice line (no answer lines shown): light gold under the pointer,
   bold gold once a right answer is picked */
.quiz .quiz-in { display: none; }
.quiz .quiz-choice { cursor: pointer; transition: color .15s; }
.quiz .quiz-choice:hover, .quiz .quiz-choice:focus-visible, .quiz .quiz-choice.picked { color: #f3d9a0; outline: none; }
.quiz .quiz-choice.right { color: #e9b949; font-weight: 700; }
.tw-editing .quiz .quiz-choice { cursor: inherit; color: inherit; }
/* StarCoil: the secret "WORDS" button in the opening statement looks like the rest of the text */
.coil-intro .burst-key { pointer-events: auto; cursor: default; }
.tw-editing .coil-intro .burst-key { cursor: inherit; }
.quiz-win .qw-greek .qw-trans { display: block; margin-top: 8px; font: 400 .5em/1.2 var(--display); letter-spacing: .05em; color: #f3d9a0; }
.quiz-win .qw-go svg { display: block; }   /* a drawn arrow, exactly centred in its circle */
.quiz-win .qw-read { position: absolute; left: 0; right: 0; margin: 0 auto; bottom: 15px; width: max-content; max-width: 94%; }   /* bottoms line up at his toes; a taller box grows upwards   /* down at Pythagoras's toes */
/* the Greek words (and translation) simply appear; only the arrow blinks twice */
.quiz-win:not(.quiz-url):not(.quiz-bonus) .qw-greek { animation: qw-in .3s ease-out both; }
.quiz-win .qw-read { animation: qw-in .3s ease-out both; }
/* "You may Enter": the Greek (and translation) dead centre on the picture, the arrow centred just under it */
.quiz-win .qw-row { position: relative; display: block; width: auto; text-align: center; }
.quiz-win .qw-row .qw-greek { display: block; max-width: none; }
.quiz-win .qw-row .qw-go { position: absolute; top: calc(100% + 14px); left: 0; right: 0; margin: 0 auto; }
/* Prelude: the secret hot spot over the tetrahedron in Pythagoras's hand (js/site.js) - no sign of it at all */
.quiz-pic .tetra-key { position: absolute; left: 36%; top: 0; width: 22%; height: 9%;   /* the Tetractys over his head (21 Nov; was the tetrahedron in his hand) */ z-index: 4; cursor: default; }
.tw-editing .quiz-pic .tetra-key { display: none; }
/* Splash page: the word TetraWave at the top is also a way in (to the Prelude) */
.hero-small a.hs-big { color: inherit; text-decoration: none; }
html.nums-wait body:not(.tw-editing) .img-no { visibility: hidden; }   /* index numbers wait until the late pictures are all in (js/site.js) */
/* P2-S5: the compass-and-straightedge construction animation (tetra-construction.html), after the Explorer */
.anim-frame { height: 820px; background: #0c0e16; }
@media (max-width: 820px) { .anim-frame { height: 640px; } }
/* Prelude win (21 Nov): the Greek "You may Enter" and its translation flash like an arcade game, colours cycling
   in hard steps with a pulsing glow, until the page moves on */
.quiz-win:not(.quiz-url):not(.quiz-bonus) .qw-greek { animation: qw-in .3s ease-out both; }   /* the Greek stays steady (21 Nov) */
.quiz-win:not(.quiz-url):not(.quiz-bonus) .qw-greek .qw-trans { animation: qw-five-t 3s steps(1, end) .3s 1 both; }   /* "(You may Enter)" and the arrow flash 5 times together */
.quiz-win:not(.quiz-url):not(.quiz-bonus) .qw-go { animation: qw-in .3s ease-out both, qw-five-a 3s steps(1, end) .3s 1 both; }
@keyframes qw-five-t {
  0%  { color: #ffffff; text-shadow: 0 0 8px #fff, 0 0 22px #ffe680, 0 0 40px #ffd000; }
  10% { color: #6b5a3a; text-shadow: none; }
  20% { color: #ff4fd8; text-shadow: 0 0 6px #ff4fd8, 0 0 20px #c000ff, 0 0 36px #8000ff; }
  30% { color: #6b5a3a; text-shadow: none; }
  40% { color: #6ff3ff; text-shadow: 0 0 6px #6ff3ff, 0 0 20px #00b7ff, 0 0 36px #0060ff; }
  50% { color: #6b5a3a; text-shadow: none; }
  60% { color: #ffd98a; text-shadow: 0 0 6px #ffb300, 0 0 18px #ff8c00, 0 0 32px #ff5e00; }
  70% { color: #6b5a3a; text-shadow: none; }
  80% { color: #ffffff; text-shadow: 0 0 8px #fff, 0 0 22px #ffe680, 0 0 40px #ffd000; }
  90%, 100% { color: #f3d9a0; text-shadow: none; }
}
@keyframes qw-five-a {
  0%  { color: #ffffff; border-color: #ffffff; filter: drop-shadow(0 0 8px #ffe680) drop-shadow(0 0 16px #ffd000); }
  10% { color: #6b5a3a; border-color: #6b5a3a; filter: none; }
  20% { color: #ff4fd8; border-color: #ff4fd8; filter: drop-shadow(0 0 8px #ff4fd8) drop-shadow(0 0 16px #8000ff); }
  30% { color: #6b5a3a; border-color: #6b5a3a; filter: none; }
  40% { color: #6ff3ff; border-color: #6ff3ff; filter: drop-shadow(0 0 8px #6ff3ff) drop-shadow(0 0 16px #0060ff); }
  50% { color: #6b5a3a; border-color: #6b5a3a; filter: none; }
  60% { color: #ffd98a; border-color: #ffd98a; filter: drop-shadow(0 0 8px #ffb300) drop-shadow(0 0 16px #ff5e00); }
  70% { color: #6b5a3a; border-color: #6b5a3a; filter: none; }
  80% { color: #ffffff; border-color: #ffffff; filter: drop-shadow(0 0 8px #ffe680) drop-shadow(0 0 16px #ffd000); }
  90%, 100% { color: #ffd98a; border-color: var(--gold); filter: none; }
}
@keyframes qw-arcade {
  0%   { color: #ffd98a; text-shadow: 0 0 6px #ffb300, 0 0 18px #ff8c00, 0 0 32px #ff5e00; }
  25%  { color: #ffffff; text-shadow: 0 0 8px #fff, 0 0 22px #ffe680, 0 0 40px #ffd000; }
  50%  { color: #ff4fd8; text-shadow: 0 0 6px #ff4fd8, 0 0 20px #c000ff, 0 0 36px #8000ff; }
  75%  { color: #6ff3ff; text-shadow: 0 0 6px #6ff3ff, 0 0 20px #00b7ff, 0 0 36px #0060ff; }
}
@keyframes qw-arcade-t {
  0%   { color: #ffffff; } 25% { color: #ffd98a; } 50% { color: #6ff3ff; } 75% { color: #ff4fd8; }
}
@media (prefers-reduced-motion: reduce) { .quiz-win .qw-greek, .quiz-win .qw-greek .qw-trans, .quiz-win .qw-go { animation: none !important; } }
/* Prelude win (21 Nov): "(You may Enter)" and the arrow sit 35px lower; the Greek stays where it is */
.quiz-win .qw-greek .qw-trans { position: relative; top: 35px; }
.quiz-win .qw-row .qw-go { top: calc(100% + 49px); }
/* P2-S5 (22 Nov): the Tetrahelix Explorer and the construction animation as page items (el-F) the Edit tool can move
   and resize; the frame fills whatever is left under the title */
.canvas > .el-F { display: flex; }
.canvas > .el-F .explorer-in { display: flex; flex-direction: column; width: 100%; height: 100%; max-width: none; margin: 0; padding: 0; }
.canvas > .el-F .explorer-frame { flex: 1 1 auto; height: auto; min-height: 200px; }
.tw-editing .canvas > .el-F iframe { pointer-events: none; }   /* so the frame can be dragged while editing */
@media (max-width: 699px) { .canvas > .el-F { height: auto !important; } .canvas > .el-F .explorer-frame { height: 640px; flex: none; } }
.explorer-title .explorer-subline { display: block; margin-top: 6px; font-size: .55em; letter-spacing: .04em; color: var(--pale); }   /* P2-S5: a smaller line under a frame's title */
.canvas > .explorer-head { text-align: center; }   /* P2-S5: the Explorer's title and line, an editable text box above its frame */
.canvas > .explorer-head .explorer-sub { margin-bottom: 0; }
