/* Pass Duke Elder — homepage. An editorial layout on near-black, built around the rendered eye.
   The revision app keeps its own restrained styles (styles.css); nothing here applies to it. */
html:has(body.home) { background: #06080b; color-scheme: dark; }
body.home {
  --bg: #06080b; --surface: #0c1015; --surface-2: #131920; --ink: #f0ebdf; --muted: #adb0b7; --code: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace; --mono: var(--sans);
  --line: rgba(236, 231, 219, .16); --accent: #e2a646; --accent-ink: #0b0906; --accent-soft: rgba(226, 166, 70, .13);
  --teal: #58bdb4; --amber: #f0a45a; --amber-soft: #3a2a17; --good: #5fd08c; --good-soft: #10291c; --bad: #f08a80; --bad-soft: #331715;
  --shadow: none; --radius: 2px; --gut: clamp(18px, 4.4vw, 72px);
  background: var(--bg); color: var(--ink);
}
.home .mono { font: 500 .84rem/1.5 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.home em { font-style: italic; }
.home ::selection { background: var(--accent); color: var(--accent-ink); }

/* header: same markup as every page, set as a quiet masthead */
.home .site-head { position: fixed; inset: 0 0 auto 0; background: linear-gradient(#06080b, rgba(6, 8, 11, 0)); border: 0; backdrop-filter: none; }
.home .site-head .wrap { width: auto; margin: 0; padding: 0 var(--gut); min-height: 68px; }
.home .brand { font: 500 .84rem var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.home .brand svg { width: 22px; height: 22px; }
.home .nav a { font: 500 .84rem var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); border-radius: 0; padding: 8px 12px; }
.home .nav a:hover { background: none; color: var(--ink); }
.home .nav a.cta { background: none; color: var(--ink); border: 1px solid var(--line); margin-left: 8px; }
.home .nav a.cta:hover { border-color: var(--accent); color: var(--accent); }
.home #theme { display: none; }

/* ---------- hero ---------- */
.ed-hero { height: 230vh; position: relative; }
.ed-pin { --p: 0; position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.ed-eye { position: absolute; top: 50%; right: calc(-30vh + var(--p) * (50vw - 32vh)); width: 128vh; aspect-ratio: 1; transform: translateY(-50%) scale(calc(1 - var(--p) * .2));
  -webkit-mask-image: radial-gradient(circle at calc(32% + var(--p) * 18%) 49%, #000 24%, rgba(0, 0, 0, .34) 43%, transparent 66%);
          mask-image: radial-gradient(circle at calc(32% + var(--p) * 18%) 49%, #000 24%, rgba(0, 0, 0, .34) 43%, transparent 66%); }
.ed-eye img, .ed-eye canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ed-eye canvas { opacity: 0; }
.ed-eye.seq canvas { opacity: 1; }
.ed-eye.seq img { opacity: 0; }

.ed-copy { position: absolute; left: var(--gut); bottom: clamp(92px, 15vh, 150px); max-width: 66vw; opacity: calc(1 - var(--p, 0) * 2.4); transform: translateY(calc(var(--p, 0) * -60px)); }
.ed-kicker { display: flex; flex-wrap: wrap; gap: 0; margin: 0 0 clamp(18px, 3vh, 34px); }
.ed-kicker span + span::before { content: "/"; margin: 0 .9em; color: var(--accent); }
.ed-hero h1 { font: 400 clamp(3.1rem, 7.1vw, 8.6rem)/.92 var(--serif); letter-spacing: -.025em; margin: 0 0 clamp(18px, 3.2vh, 36px); }
.ed-hero h1 em { color: color-mix(in srgb, var(--ink) 62%, transparent); }
.ed-lede { font-size: clamp(1rem, 1.25vw, 1.2rem); color: var(--muted); max-width: 30em; margin: 0 0 clamp(20px, 3.4vh, 38px); }
.ed-cta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.ed-btn { display: inline-flex; align-items: center; gap: 18px; font: 500 .84rem var(--mono); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--accent-ink); background: var(--ink); padding: 17px 24px; transition: background .2s ease, gap .2s ease; }
.ed-btn:hover { background: var(--accent); gap: 28px; }
.ed-after { position: absolute; left: 0; right: 0; bottom: 17vh; margin: 0; text-align: center; font: italic 400 clamp(2rem, 4.6vw, 4.4rem)/1 var(--serif); opacity: calc(var(--p, 0) * 3.2 - 2.1); pointer-events: none; }

.ed-index { position: absolute; left: var(--gut); right: var(--gut); bottom: 0; margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--line); }
.ed-index a { display: block; padding: 16px 0 20px; color: var(--muted); text-decoration: none; transition: color .2s ease; }
.ed-index a:hover { color: var(--ink); }
.ed-index b { font-weight: 500; color: var(--accent); margin-right: .7em; }

.ed-scale { position: absolute; right: var(--gut); top: 50%; height: 44vh; transform: translateY(-50%); display: flex; flex-direction: column; align-items: flex-end; gap: 10px; color: #fff !important; mix-blend-mode: difference; opacity: calc(.9 - var(--p, 0) * 3); }
.ed-scale i { flex: 1; width: 9px; border-right: 1px solid #fff; background: repeating-linear-gradient(to bottom, #fff 0 1px, transparent 1px calc(100% / 24)); }
.ed-fig { position: absolute; right: var(--gut); top: 92px; margin: 0; text-align: right; color: #fff !important; mix-blend-mode: difference; opacity: calc(.9 - var(--p, 0) * 3); }

/* ---------- sections ---------- */
.ed-sec { padding: clamp(72px, 13vh, 170px) var(--gut) 0; position: relative; }
.ed-head { display: grid; grid-template-columns: minmax(120px, 1fr) 5fr; column-gap: 24px; align-items: start; border-top: 1px solid var(--line); padding-top: 18px; margin-bottom: clamp(34px, 6vh, 76px); }
.ed-head h2 { grid-column: 2; font: 400 clamp(2.6rem, 6.4vw, 6.6rem)/.95 var(--serif); letter-spacing: -.02em; margin: 0; }
.ed-head h2 em { color: color-mix(in srgb, var(--ink) 58%, transparent); }
.ed-head p { grid-column: 2; max-width: 34em; color: var(--muted); margin: clamp(16px, 2.4vh, 28px) 0 0; font-size: 1.05rem; }
.ed-head a { color: var(--ink); }

/* method: three full-width rows */
.ed-rows { border-bottom: 1px solid var(--line); }
.ed-row { display: grid; grid-template-columns: minmax(120px, 1fr) 2.6fr 1.6fr .8fr 40px; column-gap: 24px; align-items: baseline; padding: clamp(22px, 3.6vh, 44px) 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; position: relative; }
.ed-row::before { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 0; background: var(--accent); transition: width .5s cubic-bezier(.2, .7, .2, 1); }
.ed-row:hover::before, .ed-row:focus-visible::before { width: 100%; }
.ed-row-k { color: var(--accent) !important; }
.ed-row-t { font: 400 clamp(2rem, 4.6vw, 4.8rem)/1 var(--serif); letter-spacing: -.02em; transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.ed-row:hover .ed-row-t { transform: translateX(14px); font-style: italic; }
.ed-row-d { color: var(--muted); max-width: 30em; }
.ed-row-a { font-size: 1.6rem; text-align: right; transition: transform .35s cubic-bezier(.2, .7, .2, 1), color .2s ease; }
.ed-row:hover .ed-row-a { transform: translateX(8px); color: var(--accent); }

/* split sections: heading on the left, matter on the right */
.ed-split { display: grid; grid-template-columns: 5fr 6fr; column-gap: clamp(28px, 6vw, 110px); align-items: start; }
.ed-split .ed-head { grid-template-columns: 1fr; position: sticky; top: 96px; margin-bottom: 0; }
.ed-split .ed-head h2, .ed-split .ed-head p { grid-column: 1; }
.ed-split .ed-head h2 { margin-top: clamp(20px, 4vh, 48px); font-size: clamp(2.6rem, 5.2vw, 5.4rem); }

/* the specimen question keeps the app's question styles, squared off */
.home .qcard { border-radius: 0; border-color: var(--line); background: var(--surface); padding: clamp(20px, 3vw, 40px); }
.home .stem { font: 400 clamp(1.3rem, 1.9vw, 1.7rem)/1.3 var(--serif); margin-bottom: 26px; }
.home .opt { border-radius: 0; border-width: 1px; background: transparent; }
.home .opt .letter { border-radius: 0; background: transparent; border: 1px solid var(--line); font: 500 .84rem var(--mono); }
.home .explain { border-radius: 0; background: var(--surface-2); }
.home .explain h3 { font: 400 1.5rem var(--serif); }
.home .explain .btn { border-radius: 0; background: var(--ink); color: var(--accent-ink); box-shadow: none; }
.home .empty { border-radius: 0; }

/* anatomy plate */
.plate { display: grid; grid-template-columns: 7fr 4fr; column-gap: clamp(24px, 5vw, 90px); align-items: center; }
.plate-fig { margin: 0; position: relative; }
.plate-fig img { width: 100%; height: auto; display: block; }
.plate-fig figcaption { margin-top: 6px; max-width: 46em; }
.plate-dots { position: absolute; inset: 0 0 auto 0; aspect-ratio: 1; }
.plate-dot { position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .75); background: rgba(6, 8, 11, .62); color: #fff; font: 500 .84rem/1 var(--mono); cursor: pointer; padding: 0; transition: background .2s ease, transform .2s ease, border-color .2s ease; }
.plate-dot:hover { transform: scale(1.12); }
.plate-dot[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); transform: scale(1.18); }
.plate-note { min-height: 15.5em; border-top: 1px solid var(--accent); padding-top: 14px; }
.plate-note .mono { color: var(--accent); }
.plate-note h3 { font: 400 clamp(2rem, 3.4vw, 3.4rem)/1 var(--serif); margin: 10px 0 14px; }
.plate-note p { color: var(--muted); font-size: 1.04rem; margin: 0; }
.plate-list { list-style: none; margin: 26px 0 0; padding: 0; columns: 2; column-gap: 20px; }
.plate-list button { all: unset; cursor: pointer; display: block; width: 100%; box-sizing: border-box; padding: 7px 0; border-top: 1px solid var(--line); color: var(--muted); }
.plate-list button:hover, .plate-list button[aria-pressed="true"] { color: var(--ink); }
.plate-list button[aria-pressed="true"] b { color: var(--accent); }
.plate-list button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.plate-list b { font-weight: 500; margin-right: .8em; }
.plate-more { display: flex; justify-content: space-between; gap: 16px; margin-top: 26px; padding: 16px 18px; border: 1px solid var(--line); color: var(--ink) !important; text-decoration: none; transition: border-color .2s ease, color .2s ease; }
.plate-more:hover { border-color: var(--accent); color: var(--accent) !important; }

/* optics */
.optics { display: grid; grid-template-columns: 7fr 4fr; column-gap: clamp(24px, 5vw, 90px); align-items: center; }
.optics svg { width: 100%; height: auto; display: block; border: 1px solid var(--line); background: linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 10%, linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 5% 100%; background-color: rgba(255, 255, 255, .012); }
.o-axis { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 2 5; }
.o-globe { fill: rgba(6, 8, 11, .7); stroke: var(--ink); stroke-width: 1.5; }
.o-cornea { fill: none; stroke: var(--teal); stroke-width: 3; stroke-linecap: round; }
.o-lens { fill: rgba(88, 189, 180, .14); stroke: var(--teal); stroke-width: 1.2; }
.o-spec { fill: rgba(226, 166, 70, .16); stroke: var(--accent); stroke-width: 1.4; }
.o-ray { stroke: var(--accent); stroke-width: 1.3; fill: none; opacity: .9; }
.o-blur { stroke: var(--bad); stroke-width: 5; stroke-linecap: round; }
.o-focus { fill: var(--accent); }
.o-lab { fill: var(--muted); font-size: 11px; }
.o-ticks line { stroke: var(--muted); stroke-width: 1; }
.o-ticks text { fill: var(--muted); font-size: 9px; text-anchor: middle; }
.optics-panel label { display: block; }
.optics-read { display: flex; align-items: baseline; gap: 10px; }
.optics-read b { font: 400 clamp(3.4rem, 6vw, 6rem)/1 var(--serif); font-variant-numeric: tabular-nums; }
.optics-panel input[type="range"] { width: 100%; accent-color: var(--accent); margin: 14px 0 26px; }
.optics-panel h3 { font: 400 clamp(1.7rem, 2.6vw, 2.5rem)/1 var(--serif); margin: 0 0 10px; }
.optics-panel p { color: var(--muted); min-height: 4.8em; }
.optics-check { display: flex !important; gap: 10px; align-items: center; cursor: pointer; color: var(--ink) !important; border-top: 1px solid var(--line); padding-top: 16px; }
.optics-check input { accent-color: var(--accent); width: 16px; height: 16px; }
.optics-rule { min-height: 0 !important; margin: 14px 0 0; }

/* syllabus index */
.ed-toc { columns: 2; column-gap: clamp(28px, 6vw, 110px); counter-reset: toc; border-bottom: 1px solid var(--line); }
.home .ed-toc .topic { counter-increment: toc; display: flex; align-items: baseline; gap: 18px; break-inside: avoid; background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 15px 0; font: 400 clamp(1.25rem, 1.9vw, 1.75rem)/1.15 var(--serif); color: var(--ink); transition: color .2s ease, padding .3s ease; }
.home .ed-toc .topic::before { content: counter(toc, decimal-leading-zero); font: 500 .84rem var(--mono); letter-spacing: .09em; color: var(--accent); min-width: 2.2em; }
.home .ed-toc .topic span { flex: 1; }
.home .ed-toc .topic small { font: 500 .84rem var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.home .ed-toc .topic:hover { transform: none; padding-left: 12px; font-style: italic; }

/* exam specification */
.ed-spec { margin: 0; border-bottom: 1px solid var(--line); }
.ed-spec div { display: grid; grid-template-columns: 9em 1fr; column-gap: 20px; align-items: baseline; border-top: 1px solid var(--line); padding: 18px 0; }
.ed-spec dd { margin: 0; font-size: 1.08rem; }
.ed-spec b { font: 400 2.5rem/1 var(--serif); margin-right: .12em; }

.ed-faq { border-bottom: 1px solid var(--line); }
.ed-faq details { border-top: 1px solid var(--line); }
.ed-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; align-items: baseline; padding: 20px 0; font: 400 clamp(1.3rem, 2vw, 1.8rem)/1.2 var(--serif); }
.ed-faq summary::-webkit-details-marker { display: none; }
.ed-faq summary::after { content: "+"; font: 400 1.2rem var(--code); color: var(--accent); transition: transform .25s ease; }
.ed-faq details[open] summary::after { transform: rotate(45deg); }
.ed-faq p { color: var(--muted); max-width: 40em; margin: 0 0 24px; }

/* close */
.ed-end { position: relative; margin-top: clamp(80px, 14vh, 180px); min-height: 92vh; display: grid; place-items: end start; padding: 0 var(--gut) clamp(48px, 9vh, 110px); overflow: hidden; border-top: 1px solid var(--line); }
.ed-end img { position: absolute; left: 50%; top: 50%; width: min(150vh, 150vw); height: auto; transform: translate(-50%, -50%); opacity: .5;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 22%, transparent 58%); mask-image: radial-gradient(circle at 50% 50%, #000 22%, transparent 58%); }
.ed-end > div { position: relative; }
.ed-end h2 { font: 400 clamp(5rem, 19vw, 19rem)/.8 var(--serif); letter-spacing: -.04em; margin: 14px 0 clamp(26px, 5vh, 54px); }

.home .site-foot { margin-top: 0; }
.home .site-foot .wrap { width: auto; margin: 0; padding: 0 var(--gut); }

/* ---------- smaller screens ---------- */
@media (max-width: 900px) {
  .ed-hero { height: auto; }
  .ed-pin { position: relative; height: auto; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; }
  .ed-eye { top: 0; right: -34vw; width: 128vw; transform: translateY(-9%); }
  .ed-copy { position: relative; left: auto; bottom: auto; max-width: none; padding: 78vw var(--gut) 28px; opacity: 1; transform: none; }
  .ed-hero h1 { font-size: clamp(2.9rem, 13.2vw, 5.4rem); }
  .ed-after, .ed-scale, .ed-fig { display: none; }
  .ed-kicker span:first-child { display: none; }
  .ed-kicker span + span::before { content: none; }
  .ed-index { position: relative; left: auto; right: auto; margin: 0 var(--gut); grid-template-columns: repeat(3, 1fr); }
  .ed-index a { padding: 12px 0; }
  .ed-head { grid-template-columns: 1fr; }
  .ed-head h2, .ed-head p { grid-column: 1; }
  .ed-head h2 { margin-top: 18px; }
  .ed-row { grid-template-columns: 2.2em 1fr 30px; row-gap: 10px; }
  .ed-row-d { grid-column: 2 / 3; }
  .ed-row-m { grid-column: 2 / 3; }
  .ed-row-a { grid-row: 1; grid-column: 3; }
  .ed-split, .plate, .optics { grid-template-columns: 1fr; row-gap: 30px; }
  .ed-split .ed-head { position: static; }
  .ed-toc { columns: 1; }
  .plate-note { min-height: 0; }
  .plate-dot { width: 24px; height: 24px; margin: -12px 0 0 -12px; font-size: .92rem; }
  .ed-spec div { grid-template-columns: 1fr; row-gap: 4px; }
  .home .nav a.hide-sm { display: none; }
  .home .site-head .wrap { min-height: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  .ed-hero { height: auto; }
  .ed-pin { position: relative; }
}

/* ====================================================================================================
   Second pass. Each section has its own composition, so the page does not repeat one formula;
   anything a reader needs is set at reading size, and the very small mono is kept for labels only.
   ==================================================================================================== */
body.home { --muted: #a6a9b1; font-size: 17px; }
.home .mono { font-size: .92rem; }
.home .brand { font-size: .92rem; }
.home .nav a { font-size: .92rem; padding: 9px 13px; }
.ed-lede { font-size: clamp(1.1rem, 1.35vw, 1.3rem); }
.ed-cta .mono { color: var(--ink); }
.ed-row-d { font-size: 1.1rem; line-height: 1.5; color: var(--ink); opacity: .78; }
.ed-row-m { font-size: .92rem !important; }
.ed-index a { font-size: .92rem; }
.ed-fig { font-size: .92rem !important; }

/* 01 method: no display heading; one plain statement, then the three rows carry the section */
.v-method-lead { display: grid; grid-template-columns: minmax(120px, 1fr) 5fr; column-gap: 24px; border-top: 1px solid var(--line); padding-top: 18px; margin-bottom: clamp(30px, 5vh, 60px); }
.v-method-lead h2 { font: 400 clamp(1.5rem, 2.5vw, 2.4rem)/1.22 var(--serif); letter-spacing: -.005em; max-width: 24em; margin: 0; }

/* 02 specimen: a sheet of paper laid on the dark page. The question is the centrepiece. */
.v-paper { margin-top: clamp(80px, 14vh, 180px); background: #efe9db; color: #14161a; padding: clamp(36px, 7vh, 96px) var(--gut) clamp(48px, 9vh, 120px);
  --surface: transparent; --surface-2: #e3dccb; --ink: #14161a; --muted: #5d6068; --line: rgba(20, 22, 26, .22); --accent: #8a5a0a; --accent-ink: #efe9db;
  --good: #17643a; --good-soft: #d5e6d3; --bad: #a12b22; --bad-soft: #f0d5cc; }
.v-paper-in { max-width: 1060px; margin: 0 auto; }
.v-paper-head { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: clamp(28px, 5vh, 56px); }
.v-paper .mono { color: var(--muted); }
.home .v-paper .qcard { border: 0; background: none; padding: 0; animation: none; }
.home .v-paper .stem { font: 400 clamp(1.7rem, 3.3vw, 3.2rem)/1.14 var(--serif); letter-spacing: -.012em; max-width: 22em; margin-bottom: clamp(26px, 4.5vh, 50px); }
.home .v-paper .options { gap: 0; border-top: 1px solid var(--line); }
.home .v-paper .opt { border: 0; border-bottom: 1px solid var(--line); padding: 20px 14px 20px 6px; gap: 22px; font-size: 1.22rem; line-height: 1.4; align-items: baseline; transition: background .15s ease, padding .2s ease; }
.home .v-paper .opt:hover:not([disabled]) { transform: none; background: rgba(20, 22, 26, .05); padding-left: 16px; }
.home .v-paper .opt .letter { width: auto; height: auto; border: 0; background: none; font: 500 .84rem var(--mono); color: var(--accent); min-width: 1.6em; }
.home .v-paper .opt.correct { background: var(--good-soft); padding-left: 16px; animation: none; }
.home .v-paper .opt.correct .letter { background: none; color: var(--good); }
.home .v-paper .opt.correct .letter::after { content: " \2713"; }
.home .v-paper .opt.wrong { background: var(--bad-soft); padding-left: 16px; }
.home .v-paper .opt.wrong .letter { background: none; color: var(--bad); }
.home .v-paper .opt.wrong .letter::after { content: " \2717"; }
.home .v-paper .opt .note { font-size: 1rem; margin-top: 6px; color: var(--muted); max-width: 46em; }
.home .v-paper .explain { background: none; border-radius: 0; padding: 0; margin-top: clamp(26px, 4vh, 44px); display: grid; grid-template-columns: minmax(120px, 1fr) 4fr; column-gap: 24px; row-gap: 14px; }
.home .v-paper .explain h3 { font: 400 clamp(1.5rem, 2.2vw, 2.1rem)/1.1 var(--serif); margin: 0; }
.home .v-paper .explain p { font-size: 1.14rem; line-height: 1.6; max-width: 38em; margin: 0; grid-column: 2; }
.home .v-paper .explain .btn { grid-column: 2; justify-self: start; background: #14161a; color: #efe9db; font: 500 .84rem var(--mono); letter-spacing: .12em; text-transform: uppercase; padding: 15px 22px; }
.home .v-paper .empty { border-color: var(--line); color: var(--muted); }

/* 03 anatomy: the plate bleeds off the left edge; its heading sits beside it, not above */
.v-anatomy { padding-left: 0; }
.v-anatomy .plate { grid-template-columns: minmax(0, 8fr) minmax(0, 5fr); column-gap: clamp(20px, 3.5vw, 64px); align-items: center; }
.v-anatomy .plate-fig { margin-left: -4vw; }
.v-anatomy-head h2 { font: 400 clamp(2.8rem, 5.6vw, 6rem)/.93 var(--serif); letter-spacing: -.02em; margin: 14px 0 clamp(26px, 5vh, 54px); }
.v-anatomy-head h2 em { color: color-mix(in srgb, var(--ink) 58%, transparent); }
.plate-note { min-height: 13.5em; }
.plate-note p { font-size: 1.14rem; line-height: 1.55; color: var(--ink); opacity: .82; }
.plate-list { columns: 2; font: 400 1rem/1.3 var(--sans); }
.plate-list button { padding: 9px 0; }
.plate-list b { font: 500 .84rem var(--mono); letter-spacing: .06em; color: var(--muted); }
.plate-more { font: 500 1rem var(--sans); }
.plate-cap { color: var(--muted); font-size: .92rem; margin: 18px 0 0; }
.plate-dot { width: 34px; height: 34px; margin: -17px 0 0 -17px; font-size: .92rem; }

/* 04 optics: controls first, figure second; no display heading */
.v-optics .optics { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); border-top: 1px solid var(--line); padding-top: 18px; align-items: start; }
.v-optics .optics-panel h2 { font: 400 clamp(1.5rem, 2.3vw, 2.2rem)/1.2 var(--serif); margin: clamp(18px, 3vh, 34px) 0 clamp(26px, 5vh, 50px); }
.optics-read span { font: 500 1rem var(--code); color: var(--muted); }
.optics-panel p { font-size: 1.1rem; color: var(--ink); opacity: .8; min-height: 6.4em; }
.optics-check { font: 500 1.05rem var(--sans) !important; text-transform: none !important; letter-spacing: 0 !important; }
.optics-rule { font-size: .95rem !important; color: var(--muted) !important; opacity: 1 !important; }
.v-optics svg { align-self: center; }
.o-lab { font-size: 13px; }
.o-ticks text { font-size: 11px; }

/* 05 syllabus: a narrow fixed column of text, and the index as one long list */
.v-syllabus { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: clamp(28px, 6vw, 110px); align-items: start; }
.v-side { position: sticky; top: 100px; border-top: 1px solid var(--line); padding-top: 18px; }
.v-side h2 { font: 400 clamp(3.4rem, 7vw, 7.4rem)/.9 var(--serif); letter-spacing: -.03em; margin: clamp(18px, 3vh, 34px) 0 clamp(16px, 3vh, 30px); }
.v-side p { color: var(--ink); opacity: .78; font-size: 1.1rem; max-width: 24em; }
.v-syllabus .ed-toc { columns: 1; }
.home .v-syllabus .ed-toc .topic { font-size: clamp(1.5rem, 2.5vw, 2.4rem); padding: 17px 0; }
.home .ed-toc .topic::before, .home .ed-toc .topic small { font-size: .92rem; }

/* 06 the exam: the facts are the headline */
.v-exam > h2 { font: 400 clamp(2.6rem, 7.4vw, 8.2rem)/.96 var(--serif); letter-spacing: -.03em; margin: clamp(20px, 4vh, 44px) 0 clamp(40px, 8vh, 96px); max-width: 13em; }
.v-exam > h2 b { font-weight: 400; color: var(--accent); }
.v-exam > h2 em { color: color-mix(in srgb, var(--ink) 58%, transparent); }
.v-exam .ed-spec { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: clamp(20px, 4vw, 60px); border-bottom: 0; }
.v-exam .ed-spec div { grid-template-columns: 1fr; row-gap: 8px; padding: 18px 0 26px; }
.v-exam .ed-spec dd { font-size: 1.14rem; line-height: 1.45; }
.v-exam .ed-spec a { color: var(--ink); }

/* 07 questions: a single reading column in the middle of the page */
.v-faq { max-width: 900px; margin: 0 auto; }
.v-faq > .mono { display: block; margin-bottom: 18px; }
.ed-faq p { font-size: 1.12rem; line-height: 1.6; color: var(--ink); opacity: .8; }

@media (max-width: 900px) {
  .v-method-lead, .v-syllabus, .v-optics .optics, .v-anatomy .plate { grid-template-columns: 1fr; row-gap: 26px; }
  .v-side { position: static; }
  .v-anatomy { padding-left: var(--gut); }
  .v-anatomy .plate-fig { margin-left: -8vw; margin-right: -8vw; }
  .v-exam .ed-spec { grid-template-columns: 1fr; }
  .home .v-paper .explain { grid-template-columns: 1fr; }
  .home .v-paper .explain p, .home .v-paper .explain .btn { grid-column: 1; }
  .home .v-paper .opt { font-size: 1.1rem; gap: 14px; }
  .plate-dot { width: 26px; height: 26px; margin: -13px 0 0 -13px; font-size: .92rem; }
  .plate-list { columns: 2; font-size: .95rem; }
}

/* the masthead stays legible over the light specimen sheet */
.home .site-head { background: rgba(6, 8, 11, .9); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(236, 231, 219, .08); }
.home .v-paper .opt .letter { white-space: nowrap; min-width: 2.8em; text-align: left; display: block; }
.v-exam .ed-spec { align-items: start; }
.v-anatomy { padding-left: var(--gut); }
.v-anatomy .plate-fig { margin-left: calc(var(--gut) * -0.6); }
@media (max-width: 900px) { .v-anatomy .plate-fig { margin-left: -4vw; margin-right: -4vw; } }

/* The first screen is one screen: no pinned scrolling. The eye animates on its own (home.js). */
.ed-hero { height: auto; }
.ed-pin { position: relative; height: 100vh; height: 100svh; min-height: 560px; }
.ed-eye { --m: 0; right: -30vh; transform: translateY(-50%);
  -webkit-mask-image: radial-gradient(circle at calc(32% + var(--m) * 18%) 49%, #000 24%, rgba(0, 0, 0, .34) 43%, transparent 66%);
          mask-image: radial-gradient(circle at calc(32% + var(--m) * 18%) 49%, #000 24%, rgba(0, 0, 0, .34) 43%, transparent 66%); }
.ed-copy { opacity: 1; transform: none; animation: ed-rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.ed-index { animation: ed-rise .9s .25s cubic-bezier(.2, .7, .2, 1) both; }
.ed-scale, .ed-fig { opacity: .9; }
@keyframes ed-rise { from { opacity: 0; transform: translateY(18px); } }
@media (max-width: 900px) {
  .ed-pin { height: auto; min-height: 100svh; }
  .ed-eye { right: -34vw; transform: translateY(-9%); }
}
@media (prefers-reduced-motion: reduce) { .ed-copy, .ed-index { animation: none; } }

.home .menu-btn { border-radius: 0; font: 500 .84rem var(--mono); letter-spacing: .09em; text-transform: uppercase; padding: 9px 13px; }
@media (max-width: 900px) {
  .home .site-head .wrap { gap: 8px; }
  .home .site-head.menu-open { background: #06080b; }
  .home .site-head.menu-open .nav a.in-menu { font: 400 1.5rem var(--serif); letter-spacing: 0; text-transform: none; color: var(--ink); padding: 14px 0; }
  .ed-labels a:nth-child(-n+3) { display: none; }
}
@media (max-width: 440px) { .home .brand { font-size: .92rem; letter-spacing: .1em; } .home .nav a.cta { margin-left: 0; } }
.optics-rule a { color: var(--ink); }

/* ---------- the opening figure: eye, turn, scan, section ---------- */
.ed-eye { --t: 0; --s: 0; right: calc(-30vh + var(--t) * 18vh); transform: translateY(-50%) scale(calc(1 - var(--t) * .2)); -webkit-mask-image: none; mask-image: none; }
.ed-eye > img, .ed-eye > canvas {
  -webkit-mask-image: radial-gradient(circle at calc(32% + var(--t) * 18%) 49%, #000 calc(24% + var(--t) * 26%), rgba(0, 0, 0, .34) calc(43% + var(--t) * 14%), transparent calc(66% + var(--t) * 10%));
          mask-image: radial-gradient(circle at calc(32% + var(--t) * 18%) 49%, #000 calc(24% + var(--t) * 26%), rgba(0, 0, 0, .34) calc(43% + var(--t) * 14%), transparent calc(66% + var(--t) * 10%)); }
.ed-eye > canvas { clip-path: inset(0 0 0 calc(var(--s) * 100%)); }
.ed-eye.static > canvas, .ed-eye.static > #eye-still { display: none; }
.ed-cut { position: absolute; inset: 0; visibility: hidden; clip-path: inset(0 calc((1 - var(--s)) * 100%) 0 0); }
.ed-eye.cut .ed-cut { visibility: visible; }
.ed-cut img { position: absolute; inset: 0; width: 100%; height: 100%; }
.ed-scan { position: absolute; top: 4%; bottom: 4%; left: calc(var(--s) * 100%); width: 2px; background: var(--accent); box-shadow: 0 0 18px 3px rgba(226, 166, 70, .55); opacity: 0; pointer-events: none; }
.ed-eye.cut:not(.labelled) .ed-scan { opacity: 1; }
.ed-labels { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ed-labels a { opacity: 0; transition: opacity .6s ease; text-decoration: none; }
.ed-eye.labelled .ed-labels a { opacity: 1; }
.ed-labels a:nth-child(2) { transition-delay: .15s; } .ed-labels a:nth-child(3) { transition-delay: .3s; } .ed-labels a:nth-child(4) { transition-delay: .45s; } .ed-labels a:nth-child(5) { transition-delay: .6s; } .ed-labels a:nth-child(6) { transition-delay: .75s; }
.ed-labels line { stroke: var(--ink); stroke-width: .14; opacity: .8; }
.ed-labels circle { fill: var(--accent); }
.ed-labels text { fill: var(--ink); font: 500 1.75px var(--mono); letter-spacing: .14px; text-transform: uppercase; }
.ed-labels a:hover text, .ed-labels a:focus text { fill: var(--accent); }
.ed-labels a:hover line { stroke: var(--accent); }
.ed-fig { mix-blend-mode: normal; color: var(--muted) !important; z-index: 2; }
.ed-fig a, .ed-fig button { color: var(--ink); font: inherit; letter-spacing: inherit; text-transform: inherit; background: none; border: 0; border-bottom: 1px solid var(--accent); padding: 0 0 1px; cursor: pointer; text-decoration: none; margin-left: 10px; }
.ed-fig a:hover, .ed-fig button:hover { color: var(--accent); }
.ed-scale { display: none; }
.ed-copy { z-index: 2; }
@media (max-width: 900px) {
  .ed-eye { right: calc(-34vw + var(--t) * 30vw); transform: translateY(calc(-9% + var(--t) * 6%)) scale(calc(1 - var(--t) * .22)); }
  .ed-fig { display: block; position: relative; right: auto; top: auto; text-align: left; padding: 0 var(--gut) 18px; font-size: .92rem !important; }
  .ed-labels text { font-size: 2.6px; }
  .ed-labels line { stroke-width: .22; }
}
.ed-eye.seq .ed-cut img { opacity: 1; }
.ed-eye.seq > #eye-still { opacity: 0; }
.ed-fig { top: auto; bottom: 74px; background: rgba(6, 8, 11, .78); padding: 10px 12px; }
.ed-labels text { paint-order: stroke; stroke: rgba(6, 8, 11, .7); stroke-width: .5px; }
@media (max-width: 900px) { .ed-fig { bottom: auto; background: none; padding: 0 var(--gut) 18px; } }

/* at rest the eye is the hero: the sharp still shows, and the frames take over only while it moves */
.ed-eye:not(.seq) > canvas { opacity: 0; }
.ed-eye:not(.seq) > #eye-still { opacity: 1; }

/* ---------- opening figure, second build: every moving part is a transform or an opacity, so it runs on the
   compositor and stays smooth. No animated masks or clip-paths. ---------- */
.ed-eye { --shift: -18vh; --shrink: .2; right: -30vh; transform: translate(calc(var(--t) * var(--shift)), -50%) scale(calc(1 - var(--t) * var(--shrink))); will-change: transform; }
.ed-win, .ed-in, .ed-scanwrap { position: absolute; inset: 0; will-change: transform; }
.ed-win { overflow: hidden; }
.ed-win-eye { transform: translateX(calc(var(--s) * 100%)); }
.ed-win-eye > .ed-in { transform: translateX(calc(var(--s) * -100%)); }
.ed-win-cut { transform: translateX(calc((var(--s) - 1) * 100%)); visibility: hidden; }
.ed-win-cut > .ed-in { transform: translateX(calc((1 - var(--s)) * 100%)); }
.ed-eye.cut .ed-win-cut { visibility: visible; }
.ed-cut { clip-path: none; visibility: inherit; }
.ed-eye .ed-in > img, .ed-eye .ed-in > canvas { -webkit-mask-image: none; mask-image: none; clip-path: none; }
/* the soft fall-off round the iris is a fixed overlay in the page colour that fades out as the eye turns */
.ed-vignette { position: absolute; inset: 0; background: radial-gradient(circle at 32% 49%, rgba(6, 8, 11, 0) 24%, rgba(6, 8, 11, .66) 43%, #06080b 66%); opacity: calc(1 - var(--t) * 1.6); will-change: opacity; }
.ed-eye:not(.seq) #eye-seq { opacity: 0; } .ed-eye:not(.seq) #eye-still { opacity: 1; }
.ed-eye.seq #eye-seq { opacity: 1; } .ed-eye.seq #eye-still { opacity: 0; }
.ed-eye.static .ed-win-eye { visibility: hidden; }
.ed-scanwrap { transform: translateX(calc(var(--s) * 100%)); pointer-events: none; }
.ed-scan { left: 0; }
/* labels in the site's own type: the sans used for reading text, sentence case, no outline */
.ed-labels text { font: 500 2.05px var(--sans); letter-spacing: 0; text-transform: none; stroke: none; paint-order: normal; fill: var(--ink); }
.ed-labels line { stroke: var(--ink); stroke-width: .11; opacity: .65; }
.ed-labels circle { r: .55px; }
@media (max-width: 900px) {
  .ed-eye { --shift: 30vw; --shrink: .22; right: -34vw; top: 0; transform: translate(calc(var(--t) * var(--shift) * -1), calc(-9% + var(--t) * 6%)) scale(calc(1 - var(--t) * var(--shrink))); }
  .ed-labels text { font-size: 3px; }
}

/* ---------- opening figure as a video clip. The frame is 1264 x 1100; the finished section sits at
   x 120..1000, y 110..990 of it, which is where the label overlay goes. ---------- */
.ed-clip { position: absolute; top: 50%; right: -30vh; height: 128vh; aspect-ratio: 1264 / 1100; transform: translateY(-50%); }
.ed-clip video { width: 100%; height: 100%; display: block; object-fit: cover;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%), linear-gradient(transparent 0, #000 5%, #000 95%, transparent 100%); -webkit-mask-composite: source-in;
          mask-image: linear-gradient(90deg, transparent 0, #000 5%), linear-gradient(transparent 0, #000 5%, #000 95%, transparent 100%); mask-composite: intersect; }
.ed-clip .ed-labels { position: absolute; left: 9.494%; top: 10%; width: 69.62%; height: 80%; inset: auto; left: 9.494%; top: 10%; }
.ed-clip.labelled .ed-labels a { opacity: 1; }
@media (max-width: 900px) {
  .ed-clip { top: 0; right: -34vw; height: 128vw; transform: translateY(-9%); }
}

/* ---- legibility pass: labels are set in the sans (the monospace was hard to read small), a proper masthead, calmer links ---- */
.home { font-size: 1.0625rem; }
.home .mono, .eyebrow { font: 600 .84rem/1.4 var(--sans); letter-spacing: .08em; }
.dash-grid .eyebrow { background: none; padding: 0; border-radius: 0; color: var(--muted); }
.home .site-head .wrap { min-height: 72px; }
.home .brand { font: 400 1.62rem/1 var(--serif); letter-spacing: -.01em; text-transform: none; color: var(--ink); gap: 12px; display: inline-flex; align-items: center; text-decoration: none; }
.home .brand em { font-style: italic; color: var(--accent); }
.home .brand svg { width: 34px; height: 34px; flex: none; }
.home .nav a { font: 500 .98rem var(--sans); letter-spacing: 0; text-transform: none; color: rgba(240, 235, 223, .78); padding: 10px 13px; }
.home .nav a:hover, .home .nav a[aria-current="page"] { color: var(--ink); }
.home .nav a.cta { font: 600 .95rem var(--sans); letter-spacing: 0; text-transform: none; color: var(--accent-ink); background: var(--ink); border-color: var(--ink); padding: 11px 18px; }
.home .nav a.cta:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.home .btn { font: 600 .92rem var(--sans); letter-spacing: .02em; text-transform: none; }
.home .btn-sm { font-size: .88rem; }
.home .rowlink, .home .rowlink b { text-decoration: none; color: var(--ink); }
.home .rowlink .muted { color: var(--muted); text-decoration: none; }
.app-page main, .prose-page main { padding-top: 72px; }
@media (max-width: 900px) { .home .brand { font-size: 1.32rem; gap: 9px; } .home .brand svg { width: 28px; height: 28px; } .home .site-head .wrap { min-height: 58px; } .app-page main, .prose-page main { padding-top: 58px; } }
@media (max-width: 440px) { .home .brand { font-size: 1.2rem; letter-spacing: 0; } }

.home .brand { font-size: 1.9rem; gap: 13px; }
.home .brand svg { width: 38px; height: 38px; }
@media (max-width: 900px) { .home .brand { font-size: 1.4rem; gap: 9px; } .home .brand svg { width: 30px; height: 30px; } }
@media (max-width: 440px) { .home .brand { font-size: 1.24rem; } }

/* sign up and log in */
.home .nav a.cta { margin-left: 6px; }
.ed-cta { flex-wrap: wrap; gap: 12px 14px; }
.ed-btn-2 { background: transparent !important; color: var(--ink) !important; border: 1px solid rgba(240, 235, 223, .4); }
.ed-btn-2:hover { border-color: var(--ink); }
.ed-cta .mono { flex-basis: 100%; }
.ed-cta .mono a { color: var(--accent); }
