/* Ocula 2: paper, serif, one glossy character. Same family as the first Ocula, new colours. */
:root {
  --serif: "Instrument Serif", Georgia, serif; --sans: "Inter Tight", system-ui, "Segoe UI", Arial, sans-serif; --mono: ui-monospace, Consolas, monospace;
  --ink: #14202b; --ink2: #5a6770; --paper: #f2f0e8; --card: #fffefa; --line: rgba(20,32,43,.12); --soft: #e6e8e1;
  --ind: #6d5cff; --blu: #3f8cff; --tea: #12b8a6; --sun: #ffc533; --ora: #ff9a3d; --pin: #ff7aa8;
  --sh: 0 24px 60px -24px rgba(20,50,90,.38), 0 0 0 1px var(--line);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font: 400 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; background: var(--paper); overflow-x: hidden; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
small { font-weight: 400; color: var(--ink2); font-size: .86em; }
code { font-family: var(--mono); font-size: .92em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 20; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--ind); outline-offset: 2px; }

/* ---------- the stage (first screen) ---------- */
.stage { position: relative; height: 100vh; min-height: 640px; overflow: hidden;
  background: radial-gradient(38% 30% at 50% 60%, rgba(63,140,255,.17), transparent 70%), radial-gradient(30% 26% at 62% 54%, rgba(18,184,166,.16), transparent 70%), radial-gradient(34% 30% at 38% 50%, rgba(109,92,255,.14), transparent 70%), radial-gradient(22% 18% at 56% 74%, rgba(255,197,51,.14), transparent 70%), radial-gradient(120% 90% at 50% 40%, #faf9f4 0%, #ebe9e0 100%); }
#gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: pointer; touch-action: manipulation; }
nav { position: absolute; z-index: 4; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 22px; padding: 18px 26px; pointer-events: none; }
nav > * { pointer-events: auto; }
.brand { font: 400 30px/1 var(--serif); letter-spacing: -.01em; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.brand i { width: 12px; height: 12px; border-radius: 50%; background: conic-gradient(var(--ind), var(--blu), var(--tea), var(--sun), var(--ind)); }
.brand sup { font: 600 12px/1 var(--sans); background: var(--ink); color: #fff; border-radius: 999px; padding: 3px 7px; margin-left: -2px; align-self: flex-start; }
nav .sp { flex: 1; pointer-events: none; }
nav .lk { text-decoration: none; color: var(--ink2); font-size: 14px; }
nav .lk:hover { color: var(--ink); }
nav .lk b { display: inline-block; margin-left: 6px; min-width: 18px; padding: 0 5px; border-radius: 999px; background: var(--ind); color: #fff; font-size: 11.5px; font-weight: 600; text-align: center; }

.bubble { position: absolute; z-index: 3; left: calc(50% + min(21vh, 210px)); top: 15%; width: min(340px, 32vw); background: var(--card); border-radius: 18px 18px 18px 4px; padding: 16px 18px; box-shadow: 0 18px 50px -18px rgba(20,50,90,.35), 0 0 0 1px var(--line); font-size: 15.5px; line-height: 1.45; min-height: 58px; }
.bubble em { font: italic 400 1.2em/1 var(--serif); }
.bubble b { font-weight: 600; }
.cur { display: inline-block; width: 8px; height: 1em; background: var(--ink); vertical-align: -2px; margin-left: 2px; animation: bl 1s steps(1) infinite; }
@keyframes bl { 50% { opacity: 0; } }
@keyframes up { from { opacity: 0; transform: translateY(10px); } }

.intro { position: absolute; z-index: 2; left: 26px; top: 15%; width: min(410px, 31vw); }
.read.on + .intro { display: none; }
.eyebrow { margin-bottom: 14px; font-size: 11.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink2); }
.intro h1 { font: 400 clamp(2.3rem, 4.5vw, 4.8rem)/.95 var(--serif); letter-spacing: -.02em; }
h1 em, .bh h2 em { font-style: italic; background: linear-gradient(95deg, var(--ind), var(--blu) 50%, var(--tea)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .08em; }
.lede { margin-top: 18px; font-size: 16px; line-height: 1.5; color: var(--ink2); max-width: 26em; }
.lede b { color: var(--ink); font-weight: 600; }
.pts { margin-top: 22px; border-top: 1px solid var(--line); }
.pts li { display: grid; grid-template-columns: 30px 1fr; gap: 4px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.4; color: var(--ink2); }
.pts i { font: italic 400 19px/1.1 var(--serif); color: var(--ind); }
.pts b { display: block; color: var(--ink); font-weight: 600; }

.now { position: absolute; z-index: 2; left: calc(50% + 31vh + 16px); bottom: 24%; width: min(270px, calc(50vw - 31vh - 34px)); }
.now h2 { margin-bottom: 4px; font-size: 11.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink2); display: flex; align-items: center; gap: 8px; }
.now h2::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--tea); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.now div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.now dt { font-size: 13px; color: var(--ink2); }
.now dd { font: 400 26px/1 var(--serif); letter-spacing: -.01em; text-align: right; font-variant-numeric: tabular-nums; }
.now p { margin-top: 10px; font: italic 400 16px/1.3 var(--serif); color: var(--ink2); }
.foot { position: absolute; z-index: 2; left: 26px; bottom: 30px; font-size: 11.5px; color: var(--ink2); max-width: 220px; line-height: 1.4; }

/* the short reading, beside the character */
.read { position: absolute; z-index: 3; left: 26px; top: 86px; width: min(360px, 31vw); max-height: calc(100vh - 120px); overflow: auto; background: var(--card); border-radius: 20px; padding: 18px; box-shadow: var(--sh); display: none; }
.read.on { display: block; animation: up .35s ease both; }
.head { display: flex; gap: 12px; align-items: center; }
.pic { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; background: var(--soft); flex: none; }
.ph { background: var(--soft) radial-gradient(circle at 50% 50%, var(--ind) 0 22%, transparent 23%); display: inline-block; }
.ht { min-width: 0; flex: 1; }
.head h2 { font: 400 26px/1.05 var(--serif); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.head p { margin-top: 2px; font-size: 12.5px; color: var(--ink2); }
.x { margin-left: auto; align-self: flex-start; width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--soft); font-size: 14px; line-height: 1; flex: none; }
.x:hover { background: var(--ink); color: #fff; }
.bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; margin: 16px 0 8px; background: var(--soft); }
.bar i { display: block; height: 100%; min-width: 0; }
.c1 { background: var(--ind); } .c2 { background: var(--tea); } .c0 { background: var(--soft); } .c3 { background: var(--sun); } .c4 { background: var(--tea); } .c5 { background: var(--ora); }
.key { display: flex; gap: 4px 12px; font-size: 12px; color: var(--ink2); flex-wrap: wrap; }
.key b { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; }
.read dl, .card dl { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px 12px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13.5px; }
dt { color: var(--ink2); }
dd { text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; }
dd small { display: block; }
.acts { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.btn { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 500; text-decoration: none; white-space: nowrap; transition: border-color .15s, background .15s, color .15s; }
.btn:hover { border-color: var(--ink); }
.btn.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.dark:hover { background: #000; }
.btn[disabled] { opacity: .55; cursor: wait; }
.src { margin-top: 12px; font-size: 11.5px; color: var(--ink2); }
.lnk { background: none; border: 0; padding: 0; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* the dock: lists, the input, shortcuts */
.dock { position: absolute; z-index: 4; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; width: min(720px, calc(100vw - 28px)); pointer-events: none; }
.dock > * { pointer-events: auto; }
.tray { width: 100%; background: var(--card); border-radius: 22px; padding: 10px 12px; box-shadow: var(--sh); animation: up .25s ease both; }
.tray[hidden] { display: none; }
.found p { font-size: 13px; color: var(--ink2); margin: 2px 4px 8px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips[hidden] { display: none; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 13.5px; font-weight: 500; max-width: 100%; transition: border-color .15s, transform .15s; }
.chip:hover { border-color: var(--ink); transform: translateY(-2px); }
.chip b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 9em; }
.ci { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; background-color: var(--soft); flex: none; vertical-align: middle; }
.loading { font-size: 13.5px; color: var(--ink2); padding: 5px 6px; }
.ask { display: flex; gap: 8px; width: 100%; background: var(--card); border-radius: 999px; padding: 6px; box-shadow: var(--sh); }
.ask input { flex: 1; min-width: 0; height: 46px; padding: 0 16px; border-radius: 999px; border: 1px solid transparent; background: transparent; font-size: 15px; }
.ask input:focus { outline: none; border-color: var(--ind); background: #fff; }
.ask.busy input { background: linear-gradient(90deg, transparent, rgba(63,140,255,.18), transparent) 0 0 / 200% 100%; animation: sweep 1.1s linear infinite; }
@keyframes sweep { to { background-position: -200% 0; } }
.go { height: 46px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; white-space: nowrap; }
.go:hover { background: #000; } .go[disabled] { opacity: .6; cursor: wait; }
.tools { display: flex; gap: 2px; align-items: center; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tools::-webkit-scrollbar { display: none; }
.tools button, .tools a { border: 0; background: none; padding: 6px 12px; border-radius: 999px; font-size: 13.5px; white-space: nowrap; text-decoration: none; color: var(--ink2); }
.tools button:hover, .tools a:hover { background: rgba(20,32,43,.07); color: var(--ink); }
.tools button[aria-pressed=true] { background: var(--ink); color: #fff; }
.tools #chipsRe { padding: 6px 9px; font-size: 15px; }
.tools a:first-of-type { margin-left: 10px; }

/* ---------- below the stage ---------- */
.below { width: min(1160px, calc(100vw - 32px)); margin: 0 auto; padding-bottom: 10px; }
.block { margin-top: 56px; scroll-margin-top: 20px; }
.block[hidden] { display: none; }
.reading { animation: up .4s ease both; }
.bh { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.bh h2, .rt h2 { font: 400 clamp(2rem, 4vw, 3.2rem)/1 var(--serif); letter-spacing: -.02em; }
.bh .btn { margin-left: auto; }
.note { font-size: 14.5px; color: var(--ink2); max-width: 62em; margin-top: 6px; }
.note b { color: var(--ink); }
.hint { margin-top: 10px; font-weight: 500; min-height: 1.5em; }
.below .ask { max-width: 720px; margin-top: 16px; }

.rhead { display: flex; gap: 16px; align-items: flex-start; }
.rhead .pic { width: 68px; height: 68px; border-radius: 18px; box-shadow: var(--sh); }
.rt { min-width: 0; flex: 1; }
.rt h2 { overflow-wrap: anywhere; }
.rt p { margin-top: 6px; color: var(--ink2); }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.tag { border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; font-size: 12.5px; font-weight: 500; background: #fff; }
.t-new { background: #fff4cf; border-color: #f0d67a; } .t-graduating { background: #ffe6cc; border-color: #f3bd84; } .t-graduated { background: #d7f5ef; border-color: #8fd9cd; } .t-off { background: var(--ind); color: #fff; border-color: var(--ind); }
.tag.addr { font-family: var(--mono); } .tag.addr:hover { border-color: var(--ink); }
.rhead .x { width: 38px; height: 38px; font-size: 15px; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.card { background: var(--card); border-radius: 20px; padding: 18px; box-shadow: var(--sh); min-width: 0; }
.card h3 { font: 400 23px/1.1 var(--serif); margin-bottom: 12px; }
.card .bar { margin-top: 4px; }
.card dl { font-size: 14px; }
.why { margin-top: 12px; font-size: 12.5px; line-height: 1.4; color: var(--ink2); }
.big { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.big b { font: 400 54px/.9 var(--serif); letter-spacing: -.02em; } .big span { font-size: 13.5px; color: var(--ink2); }
.c-check { background: var(--ink); color: #fff; box-shadow: 0 24px 60px -24px rgba(20,50,90,.55); }
.c-check .why { color: rgba(255,255,255,.65); }
.chk li { position: relative; padding: 0 0 10px 20px; font-size: 14px; line-height: 1.45; color: rgba(255,255,255,.86); }
.chk li::before { content: ""; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); }
.chk b { color: #fff; font-weight: 600; border-bottom: 2px solid var(--sun); }
.who li { display: grid; grid-template-columns: 16px minmax(0, 1fr) 64px 48px; gap: 8px; align-items: center; padding: 3px 0; font-size: 13px; font-variant-numeric: tabular-nums; }
.who em { font-style: normal; color: var(--ink2); font-size: 11.5px; }
.who code, .tape2 code { color: var(--ink2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
u { text-decoration: none; color: var(--ind); font: 600 11px var(--sans); margin-left: 6px; }
.who span { height: 6px; border-radius: 3px; background: var(--soft); overflow: hidden; }
.who span i { display: block; height: 100%; background: var(--tea); border-radius: 3px; }
.who b { text-align: right; font-weight: 500; }
.tape2 li { display: grid; grid-template-columns: 44px auto minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 4px 0; font-size: 13px; font-variant-numeric: tabular-nums; }
.tape2 b { border-radius: 6px; text-align: center; font-size: 10.5px; font-weight: 600; letter-spacing: .04em; padding: 2px 0; }
.tape2 .buy { background: #d7f5ef; color: #0a6e63; } .tape2 .sell { background: #ffe6cc; color: #9a4a00; }
.tape2 span { font-weight: 500; white-space: nowrap; }
.tape2 code { font-size: 12px; text-align: right; }
.tape2 time { color: var(--ink2); font-size: 12px; text-align: right; min-width: 40px; }
.reading > .acts { margin-top: 20px; }
.reading > .src { font-size: 12.5px; }

.tw { overflow-x: auto; margin-top: 16px; border-radius: 20px; background: var(--card); box-shadow: var(--sh); }
.cmp { border-collapse: collapse; width: 100%; font-size: 14px; font-variant-numeric: tabular-nums; }
.cmp th, .cmp td { padding: 10px 16px; text-align: right; border-bottom: 1px solid var(--line); }
.cmp tbody th { text-align: left; font-weight: 400; color: var(--ink2); position: relative; padding-left: 28px; }
.cmp thead th { font: 400 22px var(--serif); white-space: nowrap; }
.cmp thead .ci { margin-right: 8px; }
.cmp td { font-weight: 500; }
.cmp tr.dif th::before { content: ""; position: absolute; left: 12px; top: 50%; width: 7px; height: 7px; margin-top: -4px; border-radius: 50%; background: var(--ind); }
.cmp tr:last-child th, .cmp tr:last-child td { border-bottom: 0; }

.empty { margin-top: 16px; border: 1px dashed rgba(20,32,43,.3); border-radius: 20px; padding: 20px; font-size: 14.5px; color: var(--ink2); max-width: 720px; }
.empty b { color: var(--ink); }
.wrow { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border-radius: 20px; padding: 16px; margin-top: 14px; box-shadow: var(--sh); }
.wb { flex: 1; min-width: 0; }
.wb h3 { font: 400 24px/1.1 var(--serif); overflow-wrap: anywhere; }
.wb h3 small { font: 400 12px var(--mono); }
.wd { font-size: 13.5px; color: var(--ink2); margin-top: 4px; } .wd b { color: var(--ink); }
.wl { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.wl li { font-size: 13px; background: var(--paper); border-radius: 999px; padding: 3px 11px; }
.wl b { font-weight: 600; }
.wa { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

.defs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; margin-top: 18px; border-top: 1px solid var(--line); }
.defs div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.defs h3, .limits h3, .two h3, .past h3 { font: 400 22px/1.15 var(--serif); margin-bottom: 4px; }
.defs p { font-size: 14px; line-height: 1.45; color: var(--ink2); }
.limits { margin-top: 26px; background: var(--ink); color: rgba(255,255,255,.82); border-radius: 22px; padding: 22px 24px; }
.limits h3 { color: #fff; font-style: italic; }
.limits li { padding: 6px 0 6px 20px; position: relative; font-size: 14.5px; }
.limits li::before { content: ""; position: absolute; left: 0; top: 14px; width: 7px; height: 7px; border-radius: 50%; background: var(--sun); }
.limits b { color: #fff; font-weight: 600; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.two > div { background: var(--card); border-radius: 20px; padding: 18px; box-shadow: var(--sh); }
.two li { padding: 4px 0 4px 24px; position: relative; font-size: 14.5px; color: var(--ink2); }
.two li b { color: var(--ink); }
.yes li::before { content: "✓"; position: absolute; left: 0; font-weight: 600; color: var(--tea); }
.no li::before { content: "✕"; position: absolute; left: 0; font-weight: 600; color: var(--ora); }
.past { margin-top: 16px; border: 1px dashed rgba(20,32,43,.3); border-radius: 20px; padding: 18px; }
.past p { font-size: 14.5px; margin-top: 6px; max-width: 64em; color: var(--ink2); }
.past b { color: var(--ink); }
footer { display: flex; gap: 18px; align-items: center; padding: 50px 0 40px; flex-wrap: wrap; }
footer p { font-size: 12.5px; color: var(--ink2); flex: 1; min-width: 240px; }

/* ---------- narrow screens: the stage becomes a column ---------- */
@media (max-width: 1100px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .stage { height: auto; min-height: 0; overflow: visible; display: flex; flex-direction: column; padding: 0 14px 22px; }
  nav { position: static; padding: 14px 0 0; gap: 14px; order: 0; } nav .lk[href="#how"] { display: none; }
  #gl { position: static; order: 1; height: 300px; margin-top: -6px; }
  .bubble { position: static; order: 2; width: auto; border-radius: 4px 18px 18px 18px; font-size: 15px; margin-top: -8px; }
  .intro { position: static; order: 3; width: auto; margin-top: 22px; }
  .read.on + .intro { display: block; }
  .intro h1 { font-size: clamp(2.2rem, 11vw, 3rem); }
  .lede { font-size: 15px; margin-top: 12px; }
  .eyebrow, .pts, .foot, .read, .read.on { display: none; }
  .dock { position: static; order: 4; transform: none; width: 100%; margin-top: 20px; flex-direction: column-reverse; align-items: stretch; }
  .tools { order: 1; } .tools a { display: none; }
  .now { position: static; order: 5; width: auto; margin-top: 26px; }
  .now dl { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
  .now dd { font-size: 22px; } .now dt { font-size: 12px; }
  .below { width: calc(100vw - 28px); }
  .block { margin-top: 40px; }
  .defs { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .ask { border-radius: 26px; } .ask input { font-size: 14px; padding: 0 10px; } .go { padding: 0 16px; }
  .cards, .defs, .two { grid-template-columns: 1fr; }
  .rhead .pic { width: 52px; height: 52px; border-radius: 14px; }
  .reading > .acts .btn { flex: 1 1 100%; white-space: normal; padding: 10px 14px; }
  .wrow { flex-wrap: wrap; } .wa { width: 100%; justify-content: flex-start; }
  .cmp { table-layout: fixed; } .cmp th:first-child { width: 42%; }
  .cmp th, .cmp td { padding: 9px 8px; font-size: 13px; overflow-wrap: anywhere; } .cmp thead th { white-space: normal; font-size: 18px; } .cmp tbody th { padding-left: 20px; } .cmp tr.dif th::before { left: 6px; }
  .who li { grid-template-columns: 14px minmax(0, 1fr) 34px 46px; gap: 6px; }
}
@media (max-height: 700px) and (min-width: 901px) { .intro { top: 76px; } .pts li { padding: 8px 0; } .now { bottom: 26%; } .now p { display: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .read.on, .tray, .reading, .now h2::before, .ask.busy input { animation: none !important; }
}
