/* Hypatia story page */
.hy { --hy-text: #ddd6c4; }
.hy .eyebrow { color: var(--gold); }

/* opening */
.hy-open { padding: 56px 0 40px; background: radial-gradient(ellipse at 30% 10%, #1a2445 0%, var(--ink-1) 65%); }
.hy-open-grid { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 56px; align-items: center; }
.hy-portrait { margin: 0; }
.hy-frame { position: relative; padding: 14px; background: linear-gradient(145deg, #3a2f18, #c9a24a 30%, #7a6128 55%, #e2c77f 75%, #5b4a22); border-radius: 3px; box-shadow: 0 30px 60px rgba(0,0,0,.55), 0 0 0 1px rgba(0,0,0,.6); transform: rotate(-.6deg); }
.hy-frame::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(11,16,32,.55); pointer-events: none; }
.hy-frame img { display: block; width: 100%; height: auto; box-shadow: inset 0 0 40px rgba(0,0,0,.25); filter: sepia(.08) contrast(1.02); }
.hy-portrait figcaption { margin-top: 18px; text-align: center; font-family: var(--heading-font); font-style: italic; font-size: 18px; color: #a9a293; }
.hy-title h1 { font-family: var(--heading-font); font-weight: 500; font-size: 66px; line-height: 1.02; color: var(--parchment); margin: 10px 0 18px; }
.hy-title h1 em { color: var(--gold-soft); display: block; }
.hy-dek { font-size: 21px; color: #c9c2b0; max-width: 520px; }
.hy-facts { display: flex; gap: 10px; flex-wrap: wrap; margin: 26px 0 30px; max-width: 520px; }
.hy-facts div { flex: 1 1 0; border: 1px solid rgba(201,162,74,.28); border-radius: 3px; padding: 10px 14px; min-width: 120px; }
.hy-facts b { display: block; font-family: var(--heading-font); font-size: 30px; color: var(--gold-soft); line-height: 1.1; }
.hy-facts span { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #9a9383; }
.hy-begin { color: var(--parchment); letter-spacing: .14em; text-transform: uppercase; font-size: 13px; border-bottom: 1px solid var(--gold); padding-bottom: 4px; }
.hy-begin:hover { color: var(--gold-soft); }
.hy-begin i { display: inline-block; animation: hybob 1.8s ease-in-out infinite; }
@keyframes hybob { 50% { transform: translateY(4px); } }

/* story */
.hy-story { padding: 40px 0 30px; }
.hy-narrow { max-width: 780px; }
.hy-story p { font-family: var(--heading-font); font-size: 22px; line-height: 1.62; color: var(--hy-text); margin: 0 0 20px; }
.hy-ch { font-family: var(--heading-font); font-weight: 500; font-size: 36px; color: var(--parchment); margin: 54px 0 18px; display: flex; align-items: baseline; gap: 16px; }
.hy-ch span { font-size: 15px; font-family: var(--heading-font); font-weight: 600; letter-spacing: .04em; color: var(--gold); border: 1px solid rgba(201,162,74,.45); border-radius: 50%; width: 46px; height: 46px; flex: none; display: grid; place-items: center; transform: translateY(-6px); }
.hy-ch:first-child { margin-top: 10px; }
.hy-drop::first-letter { float: left; font-size: 92px; line-height: .78; padding: 8px 12px 0 0; color: var(--gold-soft); font-weight: 600; }
.hy-quote { margin: 34px 0; padding: 26px 30px; border-left: 0; text-align: center; position: relative; }
.hy-quote::before, .hy-quote::after { content: ""; display: block; width: 120px; height: 1px; background: var(--gold); margin: 0 auto 18px; opacity: .6; }
.hy-quote::after { margin: 18px auto 0; }
.hy-quote p { font-size: 32px !important; font-style: italic; color: var(--parchment) !important; line-height: 1.3 !important; margin: 0 0 10px !important; }
.hy-quote cite { font-style: normal; font-size: 14px; letter-spacing: .08em; color: #9a9383; }
.hy-side { overflow: hidden; }
.hy-astro { float: right; width: 210px; margin: 6px 0 14px 28px; text-align: center; }
.hy-astro svg { width: 100%; height: auto; }
.hy-astro .hy-rete { transform-origin: 110px 118px; animation: hyspin 40s linear infinite; }
@keyframes hyspin { to { transform: rotate(360deg); } }
.hy-astro figcaption { font-size: 13px; color: #9a9383; font-style: italic; }
.hy-hush { font-style: italic; color: #c9b9a7 !important; border-left: 2px solid #d9788a; padding-left: 18px; }
.hy-close { font-size: 24px !important; color: var(--parchment) !important; }

/* panels */
.hy-panel { margin: 40px -60px; background: var(--ink-2); border: 1px solid rgba(201,162,74,.22); border-radius: 6px; padding: 26px 28px 22px; }
.hy-panel-head h3 { font-family: var(--heading-font); font-size: 30px; color: var(--parchment); margin: 0; }
.hy-story .hy-panel-head p { font-family: var(--default-font) !important; font-size: 16px !important; color: #a9a293 !important; margin: 4px 0 16px !important; }
.hy-panel figcaption { font-size: 15px; line-height: 1.5; color: #9a9383; margin-top: 14px; }
.cx-body { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cx-body canvas { display: block; width: 100%; background: #0a0f1e; border-radius: 4px; border: 1px solid rgba(232,225,207,.1); }
#cx-cone { cursor: grab; touch-action: none; }
#cx-cone:active { cursor: grabbing; }
.cx-ctl { display: flex; align-items: center; gap: 16px; margin-top: 16px; flex-wrap: wrap; }
.cx-ctl label { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: #a9a293; }
.cx-track { position: relative; flex: 1 1 220px; padding-bottom: 18px; --thumb: 16px; }
.cx-track input { width: 100%; accent-color: #c9a24a; height: 44px; margin: 0; position: relative; z-index: 1; }
.cx-notch { position: absolute; top: 6px; left: calc(var(--thumb) / 2 + (100% - var(--thumb)) * 60 / 85); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.cx-notch i { width: 2px; height: 32px; background: rgba(95,184,176,.55); border-radius: 1px; }
.cx-notch b { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(95,184,176,.85); margin-top: 2px; }
.cx-ctl output.snap { animation: cxsnap .45s ease-out; }
@keyframes cxsnap { 0% { transform: scale(1); text-shadow: none; } 35% { transform: scale(1.14); text-shadow: 0 0 14px rgba(95,184,176,.9); } 100% { transform: scale(1); text-shadow: none; } }
.cx-body.snapped canvas { border-color: rgba(95,184,176,.55); box-shadow: 0 0 0 1px rgba(95,184,176,.25); transition: border-color .2s, box-shadow .2s; }
.cx-ctl output { font-family: var(--heading-font); font-size: 30px; color: var(--gold-soft); min-width: 140px; text-align: right; display: inline-block; transform-origin: right center; }
.cx-pres { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.cx-pre { background: transparent; border: 1px solid rgba(232,225,207,.22); color: var(--parchment); border-radius: 22px; padding: 8px 18px; min-height: 44px; font-size: 15px; cursor: pointer; }
.cx-pre:hover { border-color: var(--gold); }
.cx-pre[aria-pressed="true"] { background: rgba(201,162,74,.16); border-color: var(--gold); color: var(--gold-soft); }
.hy-story .cx-hint { font-family: var(--default-font); font-size: 16px; line-height: 1.5; color: #c9c2b0; margin: 14px 0 0; min-height: 48px; }

/* map */
.mp-swipe { display: none; }
@media (max-width: 700px) { .mp-swipe { display: inline; } }
.mp-scroll { overflow-x: auto; border-radius: 4px; -webkit-overflow-scrolling: touch; }
.hy-map svg { width: 100%; min-width: 640px; height: auto; display: block; }
.mp-land { fill: #1c2238; stroke: #c9a24a; stroke-width: 1.4; }
.mp-lake { fill: #10233a; stroke: rgba(95,184,176,.55); stroke-width: 1.2; }
.mp-causeway { fill: #1c2238; stroke: #c9a24a; stroke-width: 1.2; }
.mp-sea { font-family: var(--heading-font); font-style: italic; font-size: 26px; fill: rgba(95,184,176,.6); text-anchor: middle; letter-spacing: .06em; }
.mp-water { font-family: var(--heading-font); font-style: italic; font-size: 19px; fill: rgba(95,184,176,.8); text-anchor: middle; }
.mp-isl { font-size: 11px; letter-spacing: .22em; fill: rgba(232,225,207,.55); text-anchor: middle; }
.mp-dist { font-size: 13px; letter-spacing: .32em; fill: rgba(201,162,74,.65); text-anchor: middle; }
.mp-small { font-family: var(--heading-font); font-style: italic; font-size: 16px; fill: rgba(232,225,207,.45); text-anchor: middle; }
.mp-gate { font-size: 12px; fill: rgba(232,225,207,.6); letter-spacing: .06em; }
.mp-note { font-size: 12px; fill: #7a7466; text-anchor: end; font-style: italic; }
.mp-pt { cursor: pointer; outline: none; }
.mp-pt text { font-family: var(--heading-font); font-size: 19px; fill: var(--parchment); text-anchor: middle; transition: fill .15s; }
.mp-pt text.mp-road { font-family: var(--default-font); font-size: 12px; letter-spacing: .28em; fill: rgba(232,225,207,.7); }
.mp-pt text.mp-tiny { font-family: var(--default-font); font-size: 10px; letter-spacing: .18em; fill: rgba(232,225,207,.6); }
.mp-pt text.mp-sm { font-size: 17px; }
.mp-pt text.mp-lakelabel { font-size: 22px; fill: rgba(95,184,176,.85); }
.mp-pt:hover text, .mp-pt:focus-visible text, .mp-pt.on text { fill: var(--gold-soft); }
.mp-pt:focus-visible .mp-ic, .mp-pt.on .mp-ic, .mp-pt:hover .mp-ic { filter: drop-shadow(0 0 6px rgba(226,199,127,.95)); }
.mp-glow { animation: hyglow 2.6s ease-in-out infinite; }
@keyframes hyglow { 50% { opacity: .35; } }
.mp-info { margin-top: 14px; min-height: 60px; font-size: 16px; line-height: 1.5; color: #c9c2b0; border-left: 2px solid var(--gold); padding: 4px 0 4px 14px; }
.mp-info b { color: var(--gold-soft); font-family: var(--heading-font); font-size: 21px; margin-right: 6px; }

.hy-lamp { text-align: center; margin: 46px 0 6px; }
.hy-lamp svg { width: 150px; height: auto; }
.hy-flame { transform-origin: 150px 72px; animation: hyflick 2.6s ease-in-out infinite; }
@keyframes hyflick { 20% { transform: scaleY(1.06) skewX(-2deg); } 45% { transform: scaleY(.95) skewX(2deg); } 70% { transform: scaleY(1.03) skewX(-1deg); } }

/* timeline */
.hy-time { padding: 50px 0 40px; background: linear-gradient(180deg, transparent, rgba(201,162,74,.05)); }
.hy-time h2 { font-family: var(--heading-font); font-size: 34px; color: var(--parchment); text-align: center; margin-bottom: 30px; }
.hy-line { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); position: relative; }
.hy-line::before { content: ""; position: absolute; left: 4%; right: 4%; top: 10px; height: 2px; background: linear-gradient(90deg, var(--gold) 0 64%, rgba(201,162,74,.25) 64% 66%, var(--gold) 66%); }
.hy-t { text-align: center; padding: 0 6px; position: relative; }
.hy-t b { display: block; font-family: var(--heading-font); font-size: 22px; color: var(--gold-soft); height: 36px; }
.hy-t::before { content: ""; display: block; width: 14px; height: 14px; border-radius: 50%; background: var(--ink-1); border: 2px solid var(--gold); margin: 3px auto 12px; position: relative; z-index: 1; }
.hy-t span { font-size: 14px; color: #b3ac9a; line-height: 1.35; display: block; }
.hy-t.dark::before { border-color: #d9788a; background: #d9788a; }
.hy-t.dark b { color: #e58f9d; }
.hy-t.gold::before { background: var(--gold); box-shadow: 0 0 0 5px rgba(201,162,74,.2); }

.hy-cta { padding: 50px 0 70px; }
.hy-cta-mark { width: 70px; height: 70px; margin-bottom: 10px; }
.hy-cta h2 { font-family: var(--heading-font); font-size: 42px; color: var(--parchment); }
.hy-cta p { color: #bdb6a4; font-size: 18px; margin-bottom: 22px; }
.hy-cta .gx-btn { margin: 4px; display: inline-block; }

@media (max-width: 991px) {
  .hy-open-grid { grid-template-columns: 1fr; gap: 34px; }
  .hy-portrait { max-width: 560px; margin: 0 auto; }
  .hy-title { text-align: center; }
  .hy-dek { margin: 0 auto; }
  .hy-facts { justify-content: center; }
  .hy-panel { margin: 36px 0; }
  .hy-line { grid-template-columns: 1fr; gap: 0; max-width: 460px; margin: 0 auto; }
  .hy-line::before { left: 21px; right: auto; top: 10px; bottom: 10px; width: 2px; height: auto; background: var(--gold); }
  .hy-t { display: grid; grid-template-columns: 44px 70px 1fr; align-items: center; text-align: left; padding: 8px 0; }
  .hy-t::before { margin: 0 auto; grid-row: 1; grid-column: 1; }
  .hy-t b { height: auto; font-size: 20px; }
}
@media (max-width: 640px) {
  .hy-title h1 { font-size: 46px; }
  .hy-story p { font-size: 20px; }
  .hy-ch { font-size: 30px; }
  .hy-astro { float: none; margin: 0 auto 10px; }
  .cx-body { grid-template-columns: 1fr; }
  .cx-ctl output { min-width: 0; font-size: 26px; }
  .hy-panel { padding: 20px 14px; }
  .hy-quote p { font-size: 26px !important; }
}
@media (prefers-reduced-motion: reduce) { .hy-rete, .hy-flame, .mp-glow, .hy-begin i { animation: none; } }
