/* ============================================
   REGNESTYKKET BAK SLAGORDET — Editorial overrides
   Flaggskip-essay: TID, PLASS, ROLLE
   Prefix: .str-
   ============================================ */

/* ---- Sticky scene requires overflow-x: clip ---- */
html, body {
  overflow-x: clip;
}

.art-sticky-scene__media {
  height: 100vh;
  max-height: none;
}

/* ---- Video hero support (shared CSS only styles img) ---- */
.art-hero__media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
  will-change: transform;
  animation: artHeroKB 30s ease-out forwards;
}

/* ---- Lighten overlay: keep bottom darkness for title legibility, clear the rest ---- */
.art-hero__overlay {
  background: linear-gradient(180deg,
    rgba(10, 22, 40, 0) 0%,
    rgba(10, 22, 40, 0) 55%,
    rgba(10, 22, 40, 0.55) 75%,
    rgba(10, 22, 40, 0.92) 90%,
    rgba(10, 22, 40, 1) 100%
  );
}
.art-hero__overlay::before {
  display: none;
}

/* Respect user preference for reduced motion — stop video autoplay behavior visually */
@media (prefers-reduced-motion: reduce) {
  .art-hero__media video {
    animation: none;
  }
}

/* ============================================
   STR-CHAPTER-GATE — Dramatic chapter opener
   ============================================ */
.str-chapter-gate {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0;
  margin: 0 auto clamp(20px, 3vh, 32px);
  max-width: 720px;
}

.str-chapter-gate__label {
  font-family: var(--font-body, 'Glacial Indifference', sans-serif);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--color-gold, #c4918a);
  margin: 0 0 clamp(14px, 2vh, 22px);
  display: inline-flex;
  align-items: center;
  gap: clamp(12px, 1.5vw, 18px);
}

.str-chapter-gate__label::before,
.str-chapter-gate__label::after {
  content: '';
  display: inline-block;
  width: clamp(32px, 4vw, 56px);
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.str-chapter-gate__number {
  font-family: var(--font-display, serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(5rem, 3rem + 6vw, 10rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: #faf8f5;
  margin: 0 0 clamp(10px, 1.6vh, 18px);
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.35);
}

/* On light section backgrounds */
.art-section--cream .str-chapter-gate__number,
.art-section--light .str-chapter-gate__number {
  color: var(--color-text-primary, #18442b);
  text-shadow: none;
}

.str-chapter-gate__tagline {
  font-family: var(--font-display, serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.05rem, 0.85rem + 0.6vw, 1.35rem);
  line-height: 1.4;
  color: rgba(250, 248, 245, 0.8);
  max-width: 560px;
  margin: 0;
}

.art-section--cream .str-chapter-gate__tagline,
.art-section--light .str-chapter-gate__tagline {
  color: var(--color-text-secondary, #5a6472);
}

/* ============================================
   STR-CLOCKS — Two clock-face comparison (Oslo vs Lister commute)
   ============================================ */
.str-clocks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 72px);
  max-width: 640px;
  margin: clamp(40px, 6vh, 72px) auto clamp(12px, 1.6vh, 18px);
  padding: 0;
}

.str-clock {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(6px, 1vh, 10px);
  text-align: center;
  margin: 0;
}

.str-clock__label {
  order: -1;
  font-family: var(--font-body, 'Glacial Indifference', sans-serif);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(250, 248, 245, 0.82);
  margin-bottom: clamp(8px, 1.2vh, 14px);
}

.art-section--cream .str-clock__label,
.art-section--light .str-clock__label {
  color: var(--color-text-secondary, #5a6472);
}

.str-clock__face {
  width: 100%;
  max-width: 220px;
  height: auto;
  display: block;
}

.str-clock__ticks line {
  stroke: rgba(250, 248, 245, 0.32);
  stroke-width: 1.5;
  stroke-linecap: round;
}

.art-section--cream .str-clock__ticks line,
.art-section--light .str-clock__ticks line {
  stroke: rgba(10, 22, 40, 0.32);
}

.str-clock__ring {
  fill: none;
  stroke: rgba(250, 248, 245, 0.1);
  stroke-width: 1.5;
}

.art-section--cream .str-clock__ring,
.art-section--light .str-clock__ring {
  stroke: rgba(10, 22, 40, 0.1);
}

.str-clock__arc {
  fill: none;
  stroke: var(--color-gold, #c4918a);
  stroke-width: 5;
  stroke-linecap: round;
}

.str-clock__hand {
  stroke: rgba(250, 248, 245, 0.82);
  stroke-width: 2;
  stroke-linecap: round;
}

.art-section--cream .str-clock__hand,
.art-section--light .str-clock__hand {
  stroke: rgba(10, 22, 40, 0.75);
}

.str-clock__hub {
  fill: var(--color-gold, #c4918a);
}

.str-clock__time {
  font-family: var(--font-display, serif);
  font-size: clamp(1.5rem, 1.15rem + 0.9vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: #faf8f5;
  margin-top: clamp(10px, 1.6vh, 16px);
}

.art-section--cream .str-clock__time,
.art-section--light .str-clock__time {
  color: var(--color-text-primary, #18442b);
}

.str-clock__unit {
  font-family: var(--font-display, serif);
  font-style: italic;
  font-size: 0.95rem;
  color: rgba(250, 248, 245, 0.7);
}

.art-section--cream .str-clock__unit,
.art-section--light .str-clock__unit {
  color: var(--color-text-secondary, #5a6472);
}

.str-clocks__note {
  font-family: var(--font-body, 'Glacial Indifference', sans-serif);
  font-style: italic;
  font-size: 0.85rem;
  text-align: center;
  color: rgba(250, 248, 245, 0.55);
  margin: 0 auto clamp(28px, 4vh, 48px);
  max-width: 540px;
}

.art-section--cream .str-clocks__note,
.art-section--light .str-clocks__note {
  color: var(--color-text-muted, #888);
}

@media (max-width: 640px) {
  .str-clocks {
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 300px;
  }
}

/* ============================================
   STR-PROOF-CARD — Mini card linking to folk-stories (with portrait)
   ============================================ */
.str-proof-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(16px, 2vw, 24px);
  max-width: 920px;
  margin: clamp(32px, 4vh, 48px) auto;
}

.str-proof-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: rgba(250, 248, 245, 0.04);
  border: 1px solid rgba(250, 248, 245, 0.1);
  border-radius: var(--radius-lg, 12px);
  text-decoration: none;
  transition: background 400ms cubic-bezier(0.22, 1, 0.36, 1),
              border-color 400ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 400ms cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 400ms cubic-bezier(0.22, 1, 0.36, 1);
}

.art-section--cream .str-proof-card,
.art-section--light .str-proof-card {
  background: rgba(10, 22, 40, 0.02);
  border-color: rgba(10, 22, 40, 0.08);
}

.str-proof-card:hover,
.str-proof-card:focus-visible {
  background: rgba(250, 248, 245, 0.08);
  border-color: rgba(196, 145, 138, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.art-section--cream .str-proof-card:hover,
.art-section--light .str-proof-card:hover {
  background: rgba(196, 145, 138, 0.06);
}

.str-proof-card__image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: rgba(250, 248, 245, 0.04);
}

.str-proof-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.str-proof-card:hover .str-proof-card__image img,
.str-proof-card:focus-visible .str-proof-card__image img {
  transform: scale(1.05);
}

.str-proof-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: clamp(18px, 2.4vw, 24px);
  flex: 1;
}

.str-proof-card__title {
  font-family: var(--font-display, serif);
  font-size: clamp(1.05rem, 0.9rem + 0.4vw, 1.2rem);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: #faf8f5;
  margin: 0;
  transition: color 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.art-section--cream .str-proof-card__title,
.art-section--light .str-proof-card__title {
  color: var(--color-text-primary, #18442b);
}

.str-proof-card:hover .str-proof-card__title,
.str-proof-card:focus-visible .str-proof-card__title {
  color: var(--color-gold, #c4918a);
}

.str-proof-card__excerpt {
  font-family: var(--font-body, 'Glacial Indifference', sans-serif);
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(250, 248, 245, 0.7);
  margin: 0;
}

.art-section--cream .str-proof-card__excerpt,
.art-section--light .str-proof-card__excerpt {
  color: var(--color-text-secondary, #5a6472);
}

.str-proof-card__arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 10px;
  font-family: var(--font-body, 'Glacial Indifference', sans-serif);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-gold, #c4918a);
  transition: gap 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.str-proof-card:hover .str-proof-card__arrow,
.str-proof-card:focus-visible .str-proof-card__arrow {
  gap: 12px;
}

/* ============================================
   STR-BIG-STAT — Single prominent statistic
   ============================================ */
.str-big-stat {
  max-width: 620px;
  margin: clamp(40px, 6vh, 72px) auto;
  padding: clamp(36px, 5vw, 56px) clamp(28px, 3.5vw, 40px);
  text-align: center;
  background: linear-gradient(180deg, rgba(196, 145, 138, 0.06) 0%, rgba(196, 145, 138, 0.12) 100%);
  border-top: 1px solid rgba(196, 145, 138, 0.3);
  border-bottom: 1px solid rgba(196, 145, 138, 0.3);
}

.str-big-stat__label {
  display: block;
  font-family: var(--font-body, 'Glacial Indifference', sans-serif);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-gold, #c4918a);
  margin-bottom: clamp(14px, 2vh, 20px);
}

.str-big-stat__number {
  font-family: var(--font-display, serif);
  font-weight: 300;
  font-size: clamp(3rem, 2rem + 4vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--color-text-primary, #18442b);
  display: block;
  margin: 0 auto clamp(14px, 2vh, 22px);
}

.art-section--dark .str-big-stat__number {
  color: #faf8f5;
}

.str-big-stat__caption {
  font-family: var(--font-display, serif);
  font-style: italic;
  font-size: clamp(1.05rem, 0.9rem + 0.4vw, 1.25rem);
  line-height: 1.45;
  color: var(--color-text-secondary, #5a6472);
  max-width: 480px;
  margin: 0 auto;
}

.art-section--dark .str-big-stat__caption {
  color: rgba(250, 248, 245, 0.8);
}

/* ============================================
   STR-CALCULATOR — Interactive regnestykke
   ============================================ */
.str-calculator {
  max-width: 760px;
  margin: clamp(40px, 6vh, 72px) auto;
  padding: clamp(32px, 4vw, 56px) clamp(28px, 3.5vw, 48px);
  background: rgba(250, 248, 245, 0.05);
  border: 1px solid rgba(196, 145, 138, 0.3);
  border-radius: var(--radius-xl, 16px);
}

.str-calculator__inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 40px);
  padding-bottom: clamp(28px, 3.5vh, 44px);
  margin-bottom: clamp(28px, 3.5vh, 44px);
  border-bottom: 1px solid rgba(250, 248, 245, 0.12);
}

.str-calculator__input-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.str-calculator__label {
  font-family: var(--font-body, 'Glacial Indifference', sans-serif);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(250, 248, 245, 0.72);
}

.str-calculator__input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 2px solid rgba(196, 145, 138, 0.4);
  padding: 6px 0;
  transition: border-color 200ms cubic-bezier(0.22, 1, 0.36, 1);
}

.str-calculator__input-wrap:focus-within {
  border-bottom-color: var(--color-gold, #c4918a);
}

.str-calculator__input-wrap input {
  font-family: var(--font-display, serif);
  font-size: clamp(1.6rem, 1.1rem + 1.2vw, 2.1rem);
  font-weight: 400;
  line-height: 1;
  color: var(--color-gold, #c4918a);
  background: transparent;
  border: none;
  outline: none;
  width: 3.2ch;
  flex: 0 0 auto;
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
}

.str-calculator__steppers {
  display: inline-flex;
  gap: 6px;
  margin-left: auto;
}

.str-calculator__stepper {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(196, 145, 138, 0.32);
  border-radius: 999px;
  color: rgba(250, 248, 245, 0.75);
  font-family: var(--font-body, 'Glacial Indifference', sans-serif);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: background 200ms cubic-bezier(0.22, 1, 0.36, 1),
              border-color 200ms cubic-bezier(0.22, 1, 0.36, 1),
              color 200ms cubic-bezier(0.22, 1, 0.36, 1);
}

.str-calculator__stepper:hover {
  border-color: var(--color-gold, #c4918a);
  color: var(--color-gold, #c4918a);
  background: rgba(196, 145, 138, 0.12);
}

.str-calculator__stepper:focus-visible {
  outline: 2px solid var(--color-gold, #c4918a);
  outline-offset: 2px;
}

.str-calculator__input-wrap input::-webkit-outer-spin-button,
.str-calculator__input-wrap input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.str-calculator__input-unit {
  font-family: var(--font-body, 'Glacial Indifference', sans-serif);
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(250, 248, 245, 0.6);
  white-space: nowrap;
}

.str-calculator__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.str-calculator__chip {
  font-family: var(--font-body, 'Glacial Indifference', sans-serif);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(250, 248, 245, 0.72);
  background: transparent;
  border: 1px solid rgba(196, 145, 138, 0.32);
  border-radius: 999px;
  padding: 7px 13px;
  cursor: pointer;
  transition: background 200ms cubic-bezier(0.22, 1, 0.36, 1),
              border-color 200ms cubic-bezier(0.22, 1, 0.36, 1),
              color 200ms cubic-bezier(0.22, 1, 0.36, 1);
}

.str-calculator__chip:hover {
  border-color: rgba(196, 145, 138, 0.7);
  color: #faf8f5;
}

.str-calculator__chip:focus-visible {
  outline: 2px solid var(--color-gold, #c4918a);
  outline-offset: 2px;
}

.str-calculator__chip.is-selected {
  background: rgba(196, 145, 138, 0.18);
  border-color: var(--color-gold, #c4918a);
  color: var(--color-gold, #c4918a);
}

.str-calculator__disclaimer {
  font-family: var(--font-body, 'Glacial Indifference', sans-serif);
  font-size: 0.78rem;
  font-style: italic;
  line-height: 1.55;
  color: rgba(250, 248, 245, 0.5);
  text-align: center;
  max-width: 540px;
  margin: clamp(18px, 2.4vh, 26px) auto 0;
}

.str-calculator__results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 3.5vw, 48px);
}

.str-calculator__result-block {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.4vh, 14px);
}

.str-calculator__result-label {
  font-family: var(--font-body, 'Glacial Indifference', sans-serif);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-gold, #c4918a);
}

.str-calculator__result-value {
  font-family: var(--font-display, serif);
  font-size: clamp(1.8rem, 1.35rem + 1.4vw, 2.6rem);
  font-weight: 300;
  line-height: 1;
  color: #faf8f5;
  letter-spacing: -0.015em;
}

.str-calculator__examples {
  list-style: none;
  padding: 0;
  margin: clamp(12px, 1.8vh, 18px) 0 0;
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 1vh, 10px);
}

.str-calculator__examples li {
  font-family: var(--font-display, serif);
  font-style: italic;
  font-size: clamp(0.98rem, 0.88rem + 0.25vw, 1.1rem);
  color: rgba(250, 248, 245, 0.78);
}

.str-calculator__examples li strong {
  font-family: var(--font-display, serif);
  font-style: normal;
  font-weight: 400;
  color: #faf8f5;
  margin-right: 4px;
}

.str-calculator__space-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(14px, 2vw, 20px);
  margin-top: clamp(4px, 0.8vh, 8px);
}

.str-calculator__space-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: clamp(14px, 2vw, 20px);
  background: rgba(250, 248, 245, 0.03);
  border-radius: var(--radius-md, 8px);
  border: 1px solid rgba(250, 248, 245, 0.06);
}

.str-calculator__space-col--highlight {
  background: rgba(196, 145, 138, 0.1);
  border-color: rgba(196, 145, 138, 0.3);
}

.str-calculator__space-place {
  font-family: var(--font-body, 'Glacial Indifference', sans-serif);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(250, 248, 245, 0.7);
  margin-bottom: 4px;
}

.str-calculator__space-col--highlight .str-calculator__space-place {
  color: var(--color-gold, #c4918a);
}

.str-calculator__space-kvm {
  font-family: var(--font-display, serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 1.2rem + 0.8vw, 1.9rem);
  line-height: 1;
  letter-spacing: -0.01em;
  color: #faf8f5;
  margin-bottom: 6px;
}

.str-calculator__space-detail {
  font-family: var(--font-body, 'Glacial Indifference', sans-serif);
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(250, 248, 245, 0.65);
}

@media (max-width: 640px) {
  .str-calculator__inputs,
  .str-calculator__results {
    grid-template-columns: 1fr;
  }
  .str-calculator__space-pair {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================
   STR-CLOSING-QUESTION — Final hanging question
   ============================================ */
.str-closing-question {
  font-family: var(--font-display, serif);
  font-style: italic;
  font-size: clamp(1.3rem, 1rem + 0.9vw, 1.85rem);
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--color-gold, #c4918a);
  text-align: center;
  max-width: 640px;
  margin: clamp(40px, 6vh, 72px) auto 0;
  padding: clamp(28px, 4vh, 48px) 0 0;
  border-top: 1px solid rgba(196, 145, 138, 0.25);
}

/* ============================================
   STR-STICKY-CREDIT — closing sticky scene caption
   ============================================ */
.str-sticky-credit {
  position: absolute;
  left: clamp(16px, 2vw, 28px);
  bottom: clamp(16px, 2vw, 28px);
  z-index: 3;
  font-family: var(--font-body, 'Glacial Indifference', sans-serif);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(250, 248, 245, 0.9);
  padding: 8px 14px;
  background: rgba(10, 22, 40, 0.55);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* ============================================================
   CI — "The Calculation" instrument calculator
   Self-contained, namespaced under .ci so it never collides with
   the surrounding article styles. Ported from the design handoff
   (direction-3), adapted from full-viewport to a contained block
   and made responsive. Math is identical to the original.
   Fonts: Cormorant Garamond + Glacial Indifference (already loaded)
   + IBM Plex Mono (linked from the page head).
   ============================================================ */
.ci {
  --ci-aurora: #7dd3c0;
  --ci-gold: #c4918a;
  --ci-gold-soft: rgba(196, 145, 138, 0.5);
  --ci-warm-white: #fbf9f6;
  --ci-mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --ci-display: 'Cormorant Garamond', Georgia, serif;
  --ci-body: 'Glacial Indifference', -apple-system, BlinkMacSystemFont, sans-serif;
  --ci-ease-spring: cubic-bezier(0.22, 1, 0.36, 1);

  position: relative;
  width: min(1080px, 94vw);
  /* Center a block that is wider than its 800px article column, using margin
     only (no transform) so the article's [data-reveal] fade — which animates
     `transform` and would otherwise clobber a transform-based centering — can
     coexist. 100% here resolves to the parent column width. */
  margin-left: calc((100% - min(1080px, 94vw)) / 2);
  margin-top: clamp(32px, 5vh, 56px);
  margin-bottom: clamp(32px, 5vh, 56px);
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: radial-gradient(120% 100% at 50% 0%, #0d1b2e, #070e1a 70%);
  color: var(--ci-warm-white);
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.85);
}
.ci *, .ci *::before, .ci *::after { box-sizing: border-box; }
.ci sup { vertical-align: super; }

.ci__bg {
  position: absolute; inset: 0; pointer-events: none;
  background: url('/assets/posts/regnestykket/plass.jpg') center 60% / cover no-repeat;
  opacity: 0.09; filter: blur(3px) saturate(0.8);
}
.ci__scan {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(0deg, rgba(125, 211, 192, 0.025) 0 1px, transparent 1px 3px);
}

.ci-tnum, .ci-tnum * { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* ---- top bar ---- */
.ci-topbar {
  position: relative; z-index: 2;
  display: flex; justify-content: space-between; align-items: center;
  gap: 14px 24px; flex-wrap: wrap;
  padding: 18px 32px; border-bottom: 1px solid rgba(125, 211, 192, 0.16);
}
.ci-topbar__title { display: flex; align-items: baseline; gap: 16px; }
.ci-topbar__title .t { font-family: var(--ci-display); font-style: italic; font-size: 26px; line-height: 1; }
.ci-topbar__title .s { font-family: var(--ci-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ci-aurora); }
.ci-topbar__read { font-family: var(--ci-mono); font-size: 12px; letter-spacing: .12em; color: rgba(251, 249, 246, 0.6); }
.ci-topbar__read b { color: var(--ci-gold); font-weight: 500; }

/* ---- grid ---- */
.ci-grid { position: relative; z-index: 2; flex: 1; display: grid; grid-template-columns: 0.95fr 1.05fr 1fr; }
.ci-panel { padding: 28px 32px; display: flex; flex-direction: column; min-width: 0; }
.ci-panel + .ci-panel { border-left: 1px solid rgba(255, 255, 255, 0.07); }
.ci-panel__label { font-family: var(--ci-mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: rgba(251, 249, 246, 0.5); }
.ci-panel__label b { color: var(--ci-aurora); font-weight: 500; }

/* ---- gauge ---- */
.ci-gauge-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-top: 12px; }
.ci-gauge { position: relative; width: 280px; max-width: 100%; aspect-ratio: 1; touch-action: none; cursor: grab; }
.ci-gauge:active { cursor: grabbing; }
.ci-gauge svg { display: block; width: 100%; height: 100%; overflow: visible; }
.ci-gauge__track { fill: none; stroke: rgba(255, 255, 255, 0.08); stroke-width: 6; stroke-linecap: round; }
.ci-gauge__fill { fill: none; stroke: var(--ci-aurora); stroke-width: 6; stroke-linecap: round; filter: drop-shadow(0 0 8px rgba(125, 211, 192, 0.5)); transition: stroke-dasharray .15s linear; }
.ci-gauge__lister { fill: none; stroke: var(--ci-gold); stroke-width: 6; stroke-linecap: round; opacity: .9; }
.ci-gauge__handle { fill: var(--ci-warm-white); stroke: var(--ci-aurora); stroke-width: 3; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6)); }
.ci-gauge__center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.ci-gauge__num { font-family: var(--ci-display); font-weight: 500; font-size: 88px; line-height: 0.8; }
.ci-gauge__unit { font-family: var(--ci-mono); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: rgba(251, 249, 246, 0.55); margin-top: 18px; }
.ci-saved { margin-top: 14px; text-align: center; }
.ci-saved__n { font-family: var(--ci-display); font-size: 40px; color: var(--ci-gold); }
.ci-saved__l { font-family: var(--ci-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(251, 249, 246, 0.5); }

/* ---- time bars ---- */
.ci-time-hero { margin: 18px 0 28px; display: flex; align-items: baseline; gap: 12px; }
.ci-time-hero .n { font-family: var(--ci-display); font-weight: 600; font-size: 80px; line-height: 0.8; }
.ci-time-hero .u { font-family: var(--ci-mono); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--ci-aurora); }
.ci-bars { display: flex; flex-direction: column; gap: 20px; }
.ci-bar__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.ci-bar__name { font-family: var(--ci-display); font-style: italic; font-size: 20px; }
.ci-bar__val { font-family: var(--ci-mono); font-size: 15px; color: var(--ci-gold); }
.ci-bar__track { height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.ci-bar__fill { height: 100%; border-radius: 3px; width: 0; background: linear-gradient(90deg, rgba(125, 211, 192, 0.5), var(--ci-aurora)); transition: width .6s var(--ci-ease-spring); box-shadow: 0 0 10px rgba(125, 211, 192, 0.4); }

/* ---- housing area diagram ---- */
.ci-house-stage {
  flex: 1; position: relative; min-height: 220px; margin-top: 18px;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 26px 26px; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 6px;
}
.ci-area { position: absolute; left: 26px; bottom: 26px; transition: width .6s var(--ci-ease-spring), height .6s var(--ci-ease-spring); }
.ci-area--lister { border: 1.5px solid var(--ci-aurora); background: rgba(125, 211, 192, 0.08); }
.ci-area--oslo { border: 1.5px solid var(--ci-gold); background: rgba(196, 145, 138, 0.14); }
.ci-area__tag { position: absolute; font-family: var(--ci-mono); font-size: 10.5px; letter-spacing: .08em; white-space: nowrap; }
.ci-area--lister .ci-area__tag { top: -20px; left: 0; color: var(--ci-aurora); }
.ci-area--oslo .ci-area__tag { right: 6px; bottom: 4px; color: var(--ci-gold); }
.ci-house-read { display: flex; justify-content: space-between; margin-top: 18px; gap: 12px; }
.ci-hr { flex: 1; min-width: 0; }
.ci-hr__place { font-family: var(--ci-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(251, 249, 246, 0.6); }
.ci-hr--lister .ci-hr__place { color: var(--ci-aurora); }
.ci-hr--oslo .ci-hr__place { color: var(--ci-gold); }
.ci-hr__kvm { font-family: var(--ci-display); font-weight: 600; font-size: 44px; line-height: 1; margin: 3px 0; color: var(--ci-warm-white); }
.ci-hr--lister .ci-hr__kvm { color: var(--ci-aurora); }
.ci-hr__kvm sup { font-size: 19px; }
.ci-hr__type { font-family: var(--ci-body); font-weight: 700; font-size: 14.5px; color: rgba(251, 249, 246, 0.95); line-height: 1.3; margin-top: 2px; }

/* ---- budget ruler ---- */
.ci-ruler { position: relative; z-index: 2; border-top: 1px solid rgba(125, 211, 192, 0.16); padding: 16px 40px 14px; display: flex; align-items: center; gap: 24px; }
.ci-ruler__label { font-family: var(--ci-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(251, 249, 246, 0.7); white-space: nowrap; }
.ci-ruler__scale { position: relative; flex: 1; height: 40px; }
.ci-ruler__line { position: absolute; left: 0; right: 0; top: 19px; height: 1px; background: rgba(255, 255, 255, 0.32); }
.ci-tick { position: absolute; top: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 7px; cursor: pointer; }
.ci-tick__mark { width: 1px; height: 14px; background: rgba(255, 255, 255, 0.5); transition: all .2s; }
.ci-tick__txt { font-family: var(--ci-mono); font-size: 12px; color: rgba(251, 249, 246, 0.72); transition: color .2s; white-space: nowrap; }
.ci-tick:hover .ci-tick__txt { color: var(--ci-warm-white); }
.ci-tick:hover .ci-tick__mark { background: rgba(255, 255, 255, 0.8); }
.ci-tick.is-on .ci-tick__txt { color: var(--ci-gold); }
.ci-tick.is-on .ci-tick__mark { height: 20px; background: var(--ci-gold); box-shadow: 0 0 8px var(--ci-gold-soft); }
.ci-knob { position: absolute; top: 12px; width: 16px; height: 16px; border-radius: 50%; background: var(--ci-gold); border: 3px solid #070e1a; box-shadow: 0 0 0 1px var(--ci-gold); transform: translateX(-50%); transition: left .35s var(--ci-ease-spring); pointer-events: none; }

.ci__foot { position: relative; z-index: 2; padding: 14px 40px 18px; text-align: center; font-family: var(--ci-display); font-style: italic; font-size: 13px; color: rgba(251, 249, 246, 0.4); }

/* ---- responsive ---- */
@media (max-width: 900px) {
  .ci-grid { grid-template-columns: 1fr; }
  .ci-panel + .ci-panel { border-left: none; border-top: 1px solid rgba(255, 255, 255, 0.07); }
  .ci-gauge { width: 250px; }
  .ci-gauge__num { font-size: 78px; }
  .ci-time-hero .n { font-size: 70px; }
}
@media (max-width: 600px) {
  .ci-topbar { padding: 16px 20px; }
  .ci-topbar__title { gap: 12px; }
  .ci-topbar__title .t { font-size: 22px; }
  .ci-topbar__read { font-size: 10.5px; letter-spacing: .06em; }
  .ci-panel { padding: 24px 20px; }
  .ci-gauge { width: 220px; }
  .ci-gauge__num { font-size: 66px; }
  .ci-time-hero .n { font-size: 60px; }
  .ci-ruler { flex-direction: column; align-items: stretch; gap: 14px; padding: 18px 16px 16px; }
  .ci-ruler__scale { margin: 0 18px; }
  .ci-tick__txt { font-size: 9.5px; letter-spacing: 0; }
  .ci__foot { padding: 12px 18px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .ci-bar__fill, .ci-area, .ci-knob, .ci-gauge__fill { transition: none; }
}
