/* Greenland Mines: shared chrome (tokens, nav, buttons, footer, widget). Page-specific styles stay in each page. */
:root {
  --ice: #EEF2F5; --ice-2: #E2E8ED; --gabbro: #171C22; --gabbro-2: #232A32; --rock: #3C4650; --slate: #6B7580; --mist: #A9B4BE;
  --sky: #5EB8FF; --fjord: #2A6FA8; --gold: #C9A227; --gold-soft: rgba(201,162,39,0.18); --palladium: #AEB6BF; --platinum: #D9DFE4;
  --sans: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif; --serif: "Source Serif 4", Georgia, "Times New Roman", serif; --max: 1240px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ice); color: var(--gabbro); font-family: var(--serif); font-size: 18px; line-height: 1.55; -webkit-font-smoothing: antialiased; padding-bottom: 0; }
h1, h2, h3, h4 { font-family: var(--sans); margin: 0; font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }
a { color: var(--fjord); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 2px; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.num { font-family: var(--sans); font-variant-numeric: tabular-nums; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 50px; padding: 0 24px; font-family: var(--sans); font-weight: 600; font-size: 16px; border-radius: 4px; border: 1.5px solid transparent; white-space: nowrap; background: transparent; }
.btn:hover { text-decoration: none; }
.btn-gold { background: var(--gold); color: var(--gabbro); }
.btn-gold:hover { background: #D9B33A; }
.btn-line-light { border-color: rgba(255,255,255,0.35); color: #fff; }
.btn-line-light:hover { border-color: #fff; }
.btn-line-dark { border-color: var(--rock); color: var(--gabbro); }
.btn-line-dark:hover { background: var(--gabbro); color: #fff; }

/* spotlight: how the page points at things */
section, .spot-target { scroll-margin-top: 24px; }
.spot { position: relative; }
.spot::after { content: ""; position: absolute; inset: -14px; border: 2px solid var(--gold); pointer-events: none; animation: spot 2600ms ease-out both; }
@keyframes spot { 0% { opacity: 0; box-shadow: 0 0 0 0 var(--gold-soft); } 15% { opacity: 1; box-shadow: 0 0 0 18px var(--gold-soft); } 100% { opacity: 0; box-shadow: 0 0 0 0 transparent; } }

/* Nav: floating frosted glass */
.nav { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); width: min(1240px, calc(100% - 32px)); z-index: 40; color: #fff;
  background: rgba(23,28,34,0.5); -webkit-backdrop-filter: blur(20px) saturate(150%); backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.14); border-radius: 18px; box-shadow: 0 20px 50px -30px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.08); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; gap: 24px; padding: 0 12px 0 20px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.brand:hover { text-decoration: none; }
.brand img { height: 24px; width: auto; }
.brand span { font-family: var(--sans); font-weight: 700; font-size: 17px; letter-spacing: 0.08em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 28px; font-family: var(--sans); font-size: 15px; font-weight: 500; }
.nav-links a { color: rgba(255,255,255,0.82); }
.nav-links a:hover { color: #fff; text-decoration: none; }
.nav-right { display: flex; align-items: center; gap: 16px; }
.ticker { font-family: var(--sans); font-size: 14px; color: var(--mist); display: inline-flex; align-items: center; gap: 8px; }
.ticker b { color: #fff; font-weight: 600; }
.ticker i { width: 7px; height: 7px; border-radius: 50%; background: var(--sky); display: inline-block; }
.ticker:hover { text-decoration: none; }
.ticker .px { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.ticker .chg { font-variant-numeric: tabular-nums; }
.ticker.up i, .ticker.up .chg { color: #6FD39A; } .ticker.up i { background: #6FD39A; }
.ticker.down i, .ticker.down .chg { color: #F08A8A; } .ticker.down i { background: #F08A8A; }
.ticker.open i { animation: livepulse 1.8s ease-out infinite; }
@keyframes livepulse { 0% { box-shadow: 0 0 0 0 currentColor; opacity: 1; } 70% { box-shadow: 0 0 0 7px transparent; opacity: 0.85; } 100% { box-shadow: 0 0 0 0 transparent; opacity: 1; } }
.spark { width: 80px; height: 22px; display: none; overflow: visible; }
.ticker.has-spark .spark { display: block; }
.spark-line { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.spark-fill { fill: currentColor; opacity: 0.14; }
.spark-dot { fill: currentColor; }
.ticker.up .spark { color: #6FD39A; } .ticker.down .spark { color: #F08A8A; } .ticker .spark { color: var(--mist); }
.ticker.open .spark-dot { animation: dotpulse 1.8s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes dotpulse { 0% { transform: scale(1); opacity: 1; } 70% { transform: scale(2.4); opacity: 0.2; } 100% { transform: scale(1); opacity: 1; } }
.ticker .px { transition: color 200ms; }
.ticker.flash-up .px { color: #6FD39A; } .ticker.flash-down .px { color: #F08A8A; }
@media (prefers-reduced-motion: reduce) { .ticker.open i, .ticker.open .spark-dot { animation: none; } }
.nav .btn { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 12px; }
.fine { margin-top: 24px; font-family: var(--sans); font-size: 13.5px; color: var(--slate); max-width: 100ch; }
footer { background: var(--gabbro-2); color: var(--mist); font-family: var(--sans); font-size: 14px; }
footer .wrap { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; padding-top: 56px; padding-bottom: 40px; }
footer h5 { margin: 0 0 12px; color: #fff; font-size: 15px; font-weight: 600; }
footer a { color: #E3E8ED; }
footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
footer .legal { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 13px; line-height: 1.5; color: #8F9AA5; max-width: 110ch; }
.btn-talk { height: 56px; padding: 0 26px 0 22px; font-size: 17px; border-radius: 16px; gap: 10px; background: var(--gold); color: var(--gabbro); }
.btn-talk:hover { background: #D9B33A; }
.btn-glass { height: 56px; padding: 0 22px; font-size: 16px; border-radius: 16px; color: #fff; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.22); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.btn-glass:hover { background: rgba(255,255,255,0.18); }

.voice-log { position: fixed; left: 24px; bottom: 24px; z-index: 50; max-width: 380px; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.voice-log div { background: var(--gabbro); color: #E3E8ED; border: 1px solid rgba(255,255,255,0.14); border-radius: 12px; padding: 10px 14px; font-family: var(--serif); font-size: 15px; line-height: 1.45; animation: rise 300ms ease-out both; }
.voice-log div b { font-family: var(--sans); font-size: 12px; color: var(--gold); display: block; margin-bottom: 4px; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
  .nav-links, .nav .ticker .spark, .nav .ticker .chg { display: none; }
  .nav .ticker { font-size: 13px; gap: 6px; white-space: nowrap; } .nav .ticker span { white-space: nowrap; } .nav .ticker.has-spark .spark { display: none; }
  .nav-right { gap: 10px; }
  .nav { top: 10px; width: calc(100% - 20px); border-radius: 14px; }
  .nav .wrap { height: 56px; padding: 0 8px 0 14px; gap: 12px; }
  .brand img { height: 20px; } .brand span { font-size: 13px; letter-spacing: 0.06em; white-space: nowrap; }
  .nav .btn { height: 36px; padding: 0 14px; font-size: 13px; }
  footer .wrap { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 360px) { .brand span { display: none; } }
