/* styles.css — monochrome, Helvetica, light→pitch-black descent */
:root {
  --bg: #cdd0cf;
  --shaft: 1;        /* light-shaft opacity, driven by scroll */
  --grain: 0.04;
}
* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  margin: 0;
  font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
  background: #cdd0cf;
  color: #14181b;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* dedicated backdrop layer — JS sets its colour directly (robust vs var() freeze) */
#bgfill {
  z-index: 0;
  background-color: #cdd0cf;
  transition: background-color .14s linear;
}

/* ---------------- fixed overlays ---------------- */
.fx { position: fixed; inset: 0; pointer-events: none; z-index: 1; }
#shafts {
  opacity: var(--shaft);
  background:
    linear-gradient(180deg, rgba(255,255,255,.45), rgba(255,255,255,0) 55%),
    repeating-linear-gradient(101deg,
      rgba(255,255,255,0) 0 60px,
      rgba(255,255,255,.07) 60px 78px,
      rgba(255,255,255,0) 78px 150px);
  mix-blend-mode: screen;
  transition: opacity .3s linear;
}
#vignette {
  box-shadow: inset 0 0 220px 60px rgba(0,0,0,.55);
  opacity: calc(1 - var(--shaft) * 0.7);
}
#snow { z-index: 2; }

/* ---------------- HUD ---------------- */
.hud { position: fixed; z-index: 30; pointer-events: none; }
#meter { top: 26px; left: 28px; }
#meter .depth {
  font-size: 58px; font-weight: 700; letter-spacing: -.03em; line-height: .9;
  font-variant-numeric: tabular-nums;
}
#meter .depth .u { font-size: 20px; font-weight: 400; opacity: .6; margin-left: 6px; }
#meter .zname { font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin-top: 12px; }
#meter .zsci { font-size: 11px; letter-spacing: .12em; opacity: .55; margin-top: 3px; }
#meter .light { font-size: 11px; letter-spacing: .04em; opacity: .55; margin-top: 12px; font-variant-numeric: tabular-nums; }
.hud, #meter .depth, #meter .zname { color: var(--ink-hud, #14181b); transition: color .3s linear; }

/* depth gauge, right edge */
#gauge { top: 0; right: 0; height: 100vh; width: 88px; }
#gauge .rail { position: absolute; right: 30px; top: 8%; bottom: 8%; width: 1px; background: currentColor; opacity: .3; }
#gauge .tick { position: absolute; right: 22px; transform: translateY(-50%); pointer-events: auto; cursor: pointer; }
#gauge .tick i { position: absolute; right: -8px; top: 50%; width: 9px; height: 1px; background: currentColor; opacity: .5; transform: translateY(-50%); }
#gauge .tick span { font-size: 10px; letter-spacing: .08em; opacity: .55; white-space: nowrap; transform: translateX(-14px); display: inline-block; }
#gauge .tick:hover span { opacity: 1; }
#gauge .marker { position: absolute; right: 26px; width: 9px; height: 9px; border: 1.5px solid currentColor; border-radius: 50%; transform: translate(50%, -50%); background: var(--bg); }
#gauge { color: var(--ink-hud, #14181b); transition: color .3s linear; }

/* sound + help buttons */
.btn {
  position: fixed; z-index: 31; pointer-events: auto; cursor: pointer;
  background: none; border: 1px solid currentColor; color: var(--ink-hud, #14181b);
  font-family: inherit; font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  padding: 9px 14px; border-radius: 40px; opacity: .75; transition: opacity .2s, color .3s linear, background .2s;
}
.btn:hover { opacity: 1; }
#sound { top: 26px; right: 28px; }

/* ---------------- sections ---------------- */
main { position: relative; z-index: 5; }
.zone { position: relative; width: 100%; }
.zone .zintro {
  position: absolute; left: 50%; top: 7%; transform: translateX(-50%);
  width: min(760px, 86vw); text-align: center; z-index: 6;
  color: var(--zink); opacity: 0; translate: 0 26px; transition: opacity .9s ease, translate .9s ease;
}
.zone .zintro.in { opacity: 1; translate: 0 0; }
.zintro .kick { font-size: 12px; letter-spacing: .28em; text-transform: uppercase; opacity: .6; }
.zintro h2 { font-size: clamp(34px, 6vw, 72px); font-weight: 700; letter-spacing: -.03em; margin: 12px 0 4px; }
.zintro .sci { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; opacity: .5; }
.zintro p { font-size: clamp(15px, 1.5vw, 19px); line-height: 1.55; max-width: 60ch; margin: 22px auto 0; opacity: .82; text-wrap: pretty; }
.zintro .year { display: inline-block; margin-top: 22px; font-size: 12px; letter-spacing: .04em; opacity: .6;
  border-top: 1px solid currentColor; padding-top: 12px; max-width: 52ch; }

/* big typographic factline */
.factline { position: absolute; z-index: 6; color: var(--zink); width: max-content; max-width: 40vw;
  opacity: 0; translate: 0 24px; transition: opacity 1s ease, translate 1s ease; }
.factline.in { opacity: 1; translate: 0 0; }
.factline .big { font-size: clamp(60px, 11vw, 150px); font-weight: 700; letter-spacing: -.04em; line-height: .85; }
.factline .sub { font-size: 14px; letter-spacing: .02em; opacity: .7; margin-top: 14px; max-width: 28ch; text-wrap: pretty; }

/* ---------------- sprites ---------------- */
.sprite {
  position: absolute; border: 0; background: none; padding: 0; margin: 0; cursor: pointer;
  display: block; line-height: 0; z-index: 6;
  animation: var(--drift) var(--dur, 14s) ease-in-out infinite;
  will-change: transform; -webkit-tap-highlight-color: transparent;
}
.sprite .spr { width: 100%; height: auto; display: block; transition: transform .25s ease, filter .25s ease; overflow: visible; }
.sprite:focus-visible { outline: none; }
.sprite:hover .spr { transform: scale(1.06); }
.zone[data-render] .sprite:hover .spr { filter: drop-shadow(0 0 14px var(--halo)); }
.sprite.sel .spr { transform: scale(1.08); filter: drop-shadow(0 0 18px var(--halo)); }
.sprite.sel::after {
  content: ""; position: absolute; inset: -14px; border: 1px solid var(--zink);
  border-radius: 50%; opacity: .5; animation: ring 2.4s ease-in-out infinite;
}
@keyframes ring { 0%,100% { transform: scale(1); opacity: .5; } 50% { transform: scale(1.08); opacity: .15; } }

/* render modes */
.zone .spr { color: var(--zink); }
.zone .bd { fill: currentColor; stroke: none; }
.zone .ln { fill: none; stroke: currentColor; stroke-width: 2.4; vector-effect: non-scaling-stroke;
  stroke-linecap: round; stroke-linejoin: round; }
.zone .ey { fill: currentColor; }
.zone .lo { fill: currentColor; }

.zone[data-render="stroke"] .bd { fill: none; stroke: currentColor; stroke-width: 2.4;
  vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.zone[data-render="stroke"] .lo { filter: drop-shadow(0 0 5px currentColor) drop-shadow(0 0 13px currentColor);
  animation: pulse 3.2s ease-in-out infinite; }
.zone[data-render="stroke"] .ey { filter: drop-shadow(0 0 3px currentColor); }
@keyframes pulse { 0%,100% { opacity: .55; } 50% { opacity: 1; } }

/* zone ink colours */
.zone[data-id="sunlight"] { --zink:#14181b; --halo: rgba(0,0,0,.4); }
.zone[data-id="twilight"] { --zink:#1b2025; --halo: rgba(0,0,0,.5); }
.zone[data-id="midnight"] { --zink:#e8eef2; --halo: rgba(230,240,245,.6); }
.zone[data-id="abyss"]    { --zink:#e8eef2; --halo: rgba(230,240,245,.6); }
.zone[data-id="trench"]   { --zink:#eef3f6; --halo: rgba(238,243,246,.7); }

/* drift keyframes */
@keyframes driftA { 0%,100% { transform: translate(0,0) rotate(0); } 50% { transform: translate(16px,-12px) rotate(1.5deg); } }
@keyframes driftB { 0%,100% { transform: translate(0,0) rotate(0); } 33% { transform: translate(-14px,9px) rotate(-1deg); } 66% { transform: translate(11px,-7px) rotate(1deg); } }
@keyframes bob   { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }
@keyframes jelly { 0%,100% { transform: translateY(0) scaleY(1); } 50% { transform: translateY(-22px) scaleY(.9); } }
@keyframes sway  { 0%,100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
.sprite[style*="sway"], .zone .sprite { transform-origin: center; }

/* ---------------- intro / outro ---------------- */
#intro { position: relative; z-index: 6; height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; color: #14181b; }
#intro .eyebrow { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; opacity: .55; }
#intro h1 { font-size: clamp(48px, 10vw, 132px); font-weight: 700; letter-spacing: -.045em; line-height: .9; margin: 18px 0 0; }
#intro .lede { font-size: clamp(15px, 1.7vw, 20px); line-height: 1.5; max-width: 46ch; margin: 26px auto 0; opacity: .75; text-wrap: pretty; }
.scrollhint { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase; opacity: .6;
  display: flex; flex-direction: column; align-items: center; gap: 10px; }
.scrollhint .ar { width: 1px; height: 34px; background: currentColor; animation: drop 1.8s ease-in-out infinite; }
@keyframes drop { 0% { transform: scaleY(0); transform-origin: top; opacity: 0; } 40% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); transform-origin: bottom; opacity: 0; } }

#outro { position: relative; z-index: 6; min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; color: #eef3f6; padding: 60px 24px 120px; }
#outro .num { font-size: clamp(64px, 13vw, 180px); font-weight: 700; letter-spacing: -.04em; line-height: .85; }
#outro .num .u { font-size: .26em; font-weight: 400; opacity: .6; }
#outro h3 { font-size: 13px; letter-spacing: .28em; text-transform: uppercase; opacity: .6; margin: 18px 0 0; font-weight: 700; }
#outro p { font-size: clamp(15px, 1.6vw, 19px); line-height: 1.55; max-width: 52ch; margin: 26px auto 0; opacity: .8; text-wrap: pretty; }
#rise { margin-top: 40px; color: #eef3f6; }

/* ---------------- info panel ---------------- */
#panel {
  position: fixed; top: 0; right: 0; height: 100vh; width: min(390px, 92vw); z-index: 40;
  background: #0c0e10; color: #eef3f6; transform: translateX(105%); transition: transform .5s cubic-bezier(.5,0,.2,1);
  display: flex; flex-direction: column; box-shadow: -30px 0 80px rgba(0,0,0,.5);
}
#panel.open { transform: translateX(0); }
#panel .close { position: absolute; top: 18px; right: 18px; z-index: 2; background: none; border: 0;
  color: #eef3f6; font-size: 22px; cursor: pointer; opacity: .6; line-height: 1; padding: 6px; }
#panel .close:hover { opacity: 1; }
#panel .icon { height: 200px; display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid rgba(255,255,255,.12); padding: 30px; flex: none; }
#panel .icon .spr { width: auto; max-width: 78%; max-height: 140px; color: #eef3f6; }
#panel .icon .bd { fill: none; stroke: currentColor; stroke-width: 2.2; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
#panel .icon .ln { fill: none; stroke: currentColor; stroke-width: 2.2; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
#panel .icon .ey, #panel .icon .lo { fill: currentColor; }
#panel .icon .lo { filter: drop-shadow(0 0 6px currentColor); }
#panel .body { padding: 28px 30px 40px; overflow-y: auto; flex: 1; }
#panel .nm { font-size: 30px; font-weight: 700; letter-spacing: -.02em; line-height: 1; }
#panel .sci { font-size: 12px; letter-spacing: .04em; font-style: italic; opacity: .55; margin-top: 8px; }
#panel .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 24px 0; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.12); }
#panel .cell { background: #0c0e10; padding: 13px 14px; }
#panel .cell .k { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; opacity: .5; }
#panel .cell .v { font-size: 16px; font-weight: 700; margin-top: 5px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
#panel .fact { font-size: 15.5px; line-height: 1.6; margin: 6px 0 0; text-wrap: pretty; }
#panel .impact { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); }
#panel .impact .k { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; opacity: .5; }
#panel .impact p { font-size: 14px; line-height: 1.55; margin: 8px 0 0; opacity: .82; text-wrap: pretty; }

@media (prefers-reduced-motion: reduce) {
  .sprite { animation: none !important; }
  .zone .zintro, .factline { transition: none; opacity: 1; translate: 0 0; }
  .scrollhint .ar, .zone[data-render="stroke"] .lo, .sprite.sel::after { animation: none; }
}
@media (max-width: 720px) {
  #meter .depth { font-size: 42px; }
  #gauge { display: none; }
  .factline { max-width: 78vw; }
  .factline .big { font-size: clamp(48px, 18vw, 90px); }
  #topnav { top: 16px; }
  #meter { top: 18px; }
}

/* ---------------- top nav ---------------- */
#topnav {
  top: 30px; left: 50%; transform: translateX(-50%);
  z-index: 33; display: flex; align-items: center; gap: 14px; pointer-events: auto;
  color: var(--ink-hud, #14181b); transition: color .3s linear;
}
#topnav .navlink {
  background: none; border: 0; cursor: pointer; color: inherit; font-family: inherit;
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase; opacity: .7;
  padding: 6px 2px; position: relative; transition: opacity .2s;
}
#topnav .navlink::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 1px; height: 1px;
  background: currentColor; transition: right .25s ease;
}
#topnav .navlink:hover { opacity: 1; }
#topnav .navlink:hover::after { right: 0; }
#topnav .navsep { opacity: .35; font-size: 11px; }

/* ---------------- overlays (Creator / Newsletter) ---------------- */
.overlay {
  position: fixed; inset: 0; z-index: 60; background: rgba(5,7,9,.96);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  color: #eef3f6; display: flex; align-items: center; justify-content: center;
  padding: 80px 24px; opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility .45s;
}
.overlay.open { opacity: 1; visibility: visible; }
.overlay .ov-close {
  position: fixed; top: 26px; right: 28px; background: none; border: 1px solid currentColor;
  color: #eef3f6; width: 38px; height: 38px; border-radius: 50%; font-size: 16px; cursor: pointer;
  opacity: .65; transition: opacity .2s, transform .3s; line-height: 1;
}
.overlay .ov-close:hover { opacity: 1; transform: rotate(90deg); }
.overlay .ov-inner {
  width: min(640px, 100%); transform: translateY(18px); transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.overlay.open .ov-inner { transform: translateY(0); }
.ov-kick { font-size: 12px; letter-spacing: .28em; text-transform: uppercase; opacity: .5; }
.ov-portrait {
  width: 92px; height: 92px; border-radius: 50%; overflow: hidden; margin: 20px 0 6px;
  border: 1px solid rgba(255,255,255,.22); box-shadow: 0 12px 40px rgba(0,0,0,.5);
}
.ov-portrait img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: grayscale(1) contrast(1.05); transition: filter .4s ease;
}
.ov-portrait:hover img { filter: grayscale(0) contrast(1); }
.ov-inner h2 { font-size: clamp(34px, 6vw, 60px); font-weight: 700; letter-spacing: -.03em; line-height: 1; margin: 16px 0 0; }
.ov-inner p { font-size: clamp(15px, 1.6vw, 18px); line-height: 1.65; opacity: .82; margin: 22px 0 0; max-width: 56ch; text-wrap: pretty; }
.ov-inner p .hl { color: #fff; opacity: 1; border-bottom: 1px solid rgba(255,255,255,.4); }

/* creator links */
.ov-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.ov-links a {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #eef3f6;
  border: 1px solid rgba(255,255,255,.3); border-radius: 40px; padding: 11px 20px;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; transition: background .2s, border-color .2s;
}
.ov-links a:hover { background: #eef3f6; color: #07090b; border-color: #eef3f6; }
.ov-links a:hover .glyph { border-color: #07090b; }
.glyph {
  width: 22px; height: 22px; border: 1.4px solid currentColor; border-radius: 5px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; letter-spacing: 0; line-height: 1;
}
.glyph.round { border-radius: 50%; font-style: italic; }

/* newsletter */
.nl-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 1px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.12); }
.nl-list li { background: #07090b; padding: 14px 18px; font-size: 15px; line-height: 1.4;
  display: flex; align-items: baseline; gap: 14px; }
.nl-list li b { font-size: 11px; letter-spacing: .1em; opacity: .5; min-width: 18px; font-variant-numeric: tabular-nums; }
.nl-form { display: flex; gap: 10px; margin-top: 30px; flex-wrap: wrap; }
.nl-form input {
  flex: 1 1 220px; background: none; border: 0; border-bottom: 1px solid rgba(255,255,255,.4);
  color: #fff; font-family: inherit; font-size: 17px; padding: 12px 2px; outline: none; transition: border-color .2s;
}
.nl-form input::placeholder { color: rgba(255,255,255,.4); }
.nl-form input:focus { border-color: #fff; }
.nl-form button {
  background: #eef3f6; color: #07090b; border: 0; border-radius: 40px; cursor: pointer;
  font-family: inherit; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; padding: 0 26px; transition: opacity .2s;
}
.nl-form button:hover { opacity: .85; }
.nl-msg { font-size: 14px; line-height: 1.5; margin-top: 16px; min-height: 20px; opacity: 0; transition: opacity .3s; }
.nl-msg.show { opacity: .85; }
.nl-msg.err { color: #ff9a8a; }

/* ---------------- site footer ---------------- */
#sitefooter {
  position: relative; z-index: 6; background: #07090b; color: #aeb6bb;
  padding: 70px 24px 90px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 26px;
  border-top: 1px solid rgba(255,255,255,.08);
}
#sitefooter .ft-line { font-size: 13px; letter-spacing: .26em; text-transform: uppercase; opacity: .6; }
#sitefooter .ft-social { display: flex; gap: 16px; }
#sitefooter .ft-ic {
  width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; color: #eef3f6;
  text-decoration: none; font-size: 15px; font-weight: 700; transition: background .2s, color .2s, transform .3s;
}
#sitefooter .ft-ic.med { font-style: italic; }
#sitefooter .ft-ic:hover { background: #eef3f6; color: #07090b; transform: translateY(-3px); }
#sitefooter .ft-fine { font-size: 12px; letter-spacing: .04em; opacity: .4; max-width: 40ch; line-height: 1.5; }

/* ---------------- direct-edit accents ---------------- */
#zones [aria-label="Blue whale"] .bd:nth-child(1) { fill: rgb(1, 49, 86); }
#zones [aria-label="Blue whale"] polygon.bd { fill: rgb(2, 54, 93); }
#zones [aria-label="Giant kelp"] [d="M32,318 C20,250 44,200 30,140 C18,90 40,50 32,6"] { stroke: rgb(236, 251, 245); }

/* ---------------- overlay framing: always fit + scroll on small screens ----------------
   align-items:flex-start + margin:auto keeps the panel centred when it fits the
   viewport but lets the top stay reachable (scrollable) when content is taller. */
.overlay { overflow-y: auto; align-items: flex-start; }
.overlay .ov-inner { margin: auto; }

/* résumé button — small, top-right, only visible while the creator overlay is open */
.ov-resume {
  position: fixed; top: 28px; right: 78px; z-index: 61;
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
  border: 1px solid rgba(255,255,255,.3); border-radius: 40px; color: #eef3f6;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  padding: 8px 16px; opacity: .8; transition: background .2s, color .2s, opacity .2s, transform .3s;
}
.ov-resume:hover { background: #eef3f6; color: #07090b; opacity: 1; transform: translateY(-1px); }

/* ---------------- creator mini chatbot ---------------- */
.ov-chat {
  margin-top: 34px; padding: 16px 16px 18px; border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px; background: rgba(255,255,255,.02);
}
.cb-head { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; opacity: .6;
  display: flex; align-items: center; gap: 8px; }
.cb-dot { width: 7px; height: 7px; border-radius: 50%; background: #eef3f6;
  box-shadow: 0 0 8px rgba(238,243,246,.85); animation: cbpulse 2.4s ease-in-out infinite; }
@keyframes cbpulse { 0%,100% { opacity: .5; } 50% { opacity: 1; } }
.cb-log { margin-top: 14px; max-height: 240px; overflow-y: auto; padding-right: 4px;
  display: flex; flex-direction: column; gap: 10px; }
.cb-msg { font-size: 14px; line-height: 1.5; max-width: 90%; padding: 9px 13px;
  border-radius: 13px; text-wrap: pretty; }
.cb-msg.bot { align-self: flex-start; background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.08); border-bottom-left-radius: 4px; }
.cb-msg.user { align-self: flex-end; background: #eef3f6; color: #07090b; border-bottom-right-radius: 4px; }
.cb-msg a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.cb-typing { display: inline-flex; gap: 5px; }
.cb-typing i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .4;
  animation: cbblink 1s infinite; }
.cb-typing i:nth-child(2) { animation-delay: .18s; }
.cb-typing i:nth-child(3) { animation-delay: .36s; }
@keyframes cbblink { 0%,100% { opacity: .25; transform: translateY(0); } 50% { opacity: .9; transform: translateY(-2px); } }
.cb-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.cb-chip { background: none; border: 1px solid rgba(255,255,255,.25); border-radius: 40px; cursor: pointer;
  color: #eef3f6; font-family: inherit; font-size: 11px; letter-spacing: .04em; padding: 7px 13px;
  opacity: .8; transition: background .2s, color .2s, opacity .2s; }
.cb-chip:hover { background: #eef3f6; color: #07090b; opacity: 1; }
.cb-form { display: flex; gap: 10px; margin-top: 14px; align-items: center; }
.cb-form input { flex: 1; background: none; border: 0; border-bottom: 1px solid rgba(255,255,255,.4);
  color: #fff; font-family: inherit; font-size: 15px; padding: 9px 2px; outline: none; transition: border-color .2s; }
.cb-form input::placeholder { color: rgba(255,255,255,.4); }
.cb-form input:focus { border-color: #fff; }
.cb-form button { flex: none; width: 38px; height: 38px; border: 0; border-radius: 50%; cursor: pointer;
  background: #eef3f6; color: #07090b; font-size: 18px; line-height: 1; transition: opacity .2s; }
.cb-form button:hover { opacity: .85; }

/* ---------------- extra responsive framing ---------------- */
@media (max-width: 720px) {
  .overlay { padding: 64px 18px; }
  .overlay .ov-close { top: 16px; right: 16px; width: 34px; height: 34px; }
  .ov-resume { top: 17px; right: 62px; padding: 7px 12px; font-size: 10px; letter-spacing: .1em; }
  .ov-portrait { width: 78px; height: 78px; }
  .ov-chat { margin-top: 26px; padding: 13px 13px 15px; }
  .cb-log { max-height: 200px; }
}
@media (max-width: 480px) {
  #meter .depth { font-size: 34px; }
  #meter .zsci { display: none; }
  .ov-links { gap: 10px; }
  .ov-links a { padding: 10px 16px; font-size: 11px; }
}
