/* =========================================================
   Liatoppen — marketing site (v2, buyer-focused)
   ========================================================= */
:root {
  --ink:        #0E1B2B;
  --ink-soft:   #1B3147;
  --ink-mute:   #39526B;
  --line:       #D8D2C6;
  --line-soft:  #EAE4D8;
  --paper:      #F6F2EC;
  --paper-2:    #EFE8DA;
  --snow:       #FFFEFB;
  --brass:      #C89B6B;
  --brass-dk:   #A87C4F;
  --fjord:      #7FB8C7;
  --dusk:       #E9C6C0;
  --ok:         #7EA878;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius: 2px;
  --radius-lg: 8px;
  --maxw: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: var(--ink); color: var(--snow); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; background: var(--ink); color: var(--snow); padding: 8px 12px; z-index: 999; }

/* ---------- TYPE ---------- */
.h-display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.1rem, 4.2vw, 3.8rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  font-variation-settings: "opsz" 96;
}
.h-display em {
  font-style: italic; font-weight: 300;
  color: var(--ink-soft);
  font-variation-settings: "opsz" 144;
}
.eyebrow {
  font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase;
  font-weight: 500; color: var(--brass); margin: 0 0 1.25rem;
}
.eyebrow--dark { color: var(--brass-dk); }
.lede { font-size: clamp(1rem, 1.12vw, 1.1rem); color: var(--ink-mute); max-width: 58ch; margin: 0 0 1.25rem; }
.lede--center { margin-left:auto; margin-right:auto; text-align:center; }
.note { font-size: 13px; color: var(--ink-mute); letter-spacing: 0.04em; margin-top: 1.25rem; }
.note--dark { color: var(--ink-mute); }
.note--light { color: rgba(255,255,255,0.7); }
.disclaimer { font-size: 12.5px; color: var(--ink-mute); text-align: center; margin-top: 2rem; }

/* ---------- LAYOUT ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 3rem); }
.wrap--split {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 900px) {
  .wrap--split { grid-template-columns: 1fr 1fr; }
  .wrap--reverse .col--text { order: 2; }
  .wrap--reverse .col--media { order: 1; }
}
.section { padding: clamp(3rem, 7vw, 7rem) 0; }
.section__head { max-width: 780px; margin: 0 auto 3rem; text-align: center; }
.section__head--left { margin-left: 0; text-align: left; }

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(1.25rem, 4vw, 3rem);
  color: var(--snow);
  transition: background .25s ease, backdrop-filter .25s ease, box-shadow .25s ease, padding .25s ease;
}
.nav.is-scrolled {
  background: rgba(246, 242, 236, 0.92);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(14,27,43,0.08);
  padding: 12px clamp(1.25rem, 4vw, 3rem);
}
.logo { display: inline-flex; align-items: baseline; gap: 10px; font-family: var(--serif); font-size: 22px; }
.logo__mark { color: var(--brass); font-size: 18px; }
.nav__links { display: none; gap: 2rem; font-size: 14px; }
.nav__links a { position: relative; padding: 4px 0; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.nav__links a:hover::after { transform: scaleX(1); }
.nav__right { display: flex; align-items: center; gap: 1rem; }
.lang { font-size: 12px; letter-spacing: 0.1em; padding: 6px 10px; border: 1px solid currentColor; border-radius: 999px; opacity: 0.85; }
.lang:hover { opacity: 1; }
.lang__divider { opacity: 0.5; margin: 0 2px; }
.lang[data-active="en"] .lang__current { opacity: 0.5; }
.lang[data-active="en"] .lang__other   { opacity: 1; font-weight: 600; }
.lang[data-active="no"] .lang__current { opacity: 1; font-weight: 600; }
.lang[data-active="no"] .lang__other   { opacity: 0.5; }
@media (min-width: 960px) { .nav__links { display: inline-flex; } }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; font-size: 14px; letter-spacing: 0.04em; font-weight: 500;
  border-radius: 999px;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn--lg { padding: 16px 30px; font-size: 15px; }
.btn--primary { background: var(--ink); color: var(--snow); }
.btn--primary:hover { background: var(--ink-soft); transform: translateY(-1px); }
.btn--ghost { border: 1px solid currentColor; }
.btn--ghost:hover { background: currentColor; color: var(--ink); }
.nav .btn--primary { background: var(--snow); color: var(--ink); }
.nav .btn--primary:hover { background: var(--brass); color: var(--snow); }
.nav.is-scrolled .btn--primary { background: var(--ink); color: var(--snow); }
.nav.is-scrolled .btn--primary:hover { background: var(--brass); }

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: flex-end;
  color: var(--snow); overflow: hidden; isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg img,
.hero__bg video,
.hero__video {
  width: 100%; height: 100%; object-fit: cover; object-position: center 45%;
}
.hero__bg img { transform: scale(1.04); animation: heroZoom 16s ease-out forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .hero__video { display: none; }
  .hero__bg::before {
    content: ""; position: absolute; inset: 0;
    background: url(images/hero-poster.jpg) center/cover no-repeat;
  }
}
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,27,43,0.55) 0%, rgba(14,27,43,0.15) 25%, rgba(14,27,43,0.28) 55%, rgba(14,27,43,0.87) 100%);
}
.hero__inner {
  position: relative; width: 100%; max-width: var(--maxw);
  margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 3rem) clamp(3rem, 7vw, 5rem);
}
.hero__inner .eyebrow { color: var(--dusk); }
.hero__title {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 7.5vw, 6rem);
  line-height: 0.98; letter-spacing: -0.025em; font-weight: 300;
  margin: 0 0 1.75rem; max-width: 18ch;
}
.hero__line { display: block; }
.hero__line--2 { font-style: italic; color: var(--dusk); font-weight: 300; }
.hero__lede {
  max-width: 58ch; font-size: clamp(1rem, 1.15vw, 1.12rem);
  line-height: 1.6; color: rgba(255,255,255,0.85); margin: 0 0 2rem;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }
.hero .btn--primary { background: var(--snow); color: var(--ink); }
.hero .btn--primary:hover { background: var(--brass); color: var(--snow); }
.hero .btn--ghost { color: var(--snow); }

.hero__facts {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem; margin: 0; padding: 1.5rem 0 0;
  border-top: 1px solid rgba(255,255,255,0.25);
  max-width: 720px;
}
@media (min-width: 700px) { .hero__facts { grid-template-columns: repeat(4, 1fr); } }
.hero__facts dt {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.6); margin-bottom: 4px;
}
.hero__facts dd {
  font-family: var(--serif); margin: 0;
  font-size: clamp(1.4rem, 1.9vw, 1.7rem); font-weight: 400;
}

/* ---------- HVA DU FÅR (Math visual) ---------- */
.section--hva { background: var(--paper); }
.math {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: stretch;
  margin-top: 3rem;
  max-width: 1000px; margin-left: auto; margin-right: auto;
}
@media (min-width: 800px) {
  .math {
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: stretch;
  }
}
.math__item {
  background: var(--snow);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  display: flex; flex-direction: column; justify-content: center; gap: 2px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.math__item:hover { transform: translateY(-3px); box-shadow: 0 24px 50px -35px rgba(14,27,43,0.3); }
.math__item--hero {
  background: var(--ink); color: var(--snow);
  border-color: var(--ink);
  position: relative;
  box-shadow: 0 18px 50px -30px rgba(14,27,43,0.6);
}
.math__num {
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 4.8rem);
  font-weight: 300; line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variation-settings: "opsz" 144;
}
.math__item--hero .math__num { color: var(--brass); }
.math__unit {
  font-family: var(--serif); font-size: 1rem; color: var(--ink-mute);
  display: block; margin-top: -4px;
}
.math__item--hero .math__unit { color: rgba(255,255,255,0.6); }
.math__lbl {
  display: block; margin-top: 0.9rem;
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-mute);
}
.math__item--hero .math__lbl { color: rgba(255,255,255,0.8); }
.math__op {
  font-family: var(--serif);
  font-size: 2.4rem;
  text-align: center;
  align-self: center;
  color: var(--brass);
  font-weight: 300;
}

/* ---------- FELLESAREAL GALLERY ---------- */
.section--fellesareal { background: var(--ink); color: var(--snow); }
.section--fellesareal .h-display { color: var(--snow); }
.section--fellesareal .h-display em { color: var(--dusk); }

.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2rem;
}
@media (min-width: 800px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(280px, auto);
  }
  .gal--hero { grid-column: span 2; grid-row: span 2; }
  .gal--wide { grid-column: span 2; min-height: 400px; }
  .gal--full { grid-column: span 3; min-height: 420px; }
}
.gal { cursor: zoom-in; }
.gal {
  position: relative; margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 280px;
  background: #182a3e;
  isolation: isolate;
}
.gal img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s ease;
}
.gal:hover img { transform: scale(1.04); }
.gal figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 1.5rem 1.5rem 1.4rem;
  background: linear-gradient(180deg, transparent 0%, rgba(14,27,43,0.9) 80%);
  color: var(--snow);
}
.gal figcaption h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  letter-spacing: -0.005em;
  margin: 0 0 4px;
}
.gal figcaption p {
  font-size: 13.5px; line-height: 1.45; margin: 0;
  color: rgba(255,255,255,0.82);
  max-width: 44ch;
}

.extras {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 3rem 0 0;
}
@media (min-width: 700px) { .extras { grid-template-columns: repeat(4, 1fr); } }
.extras li {
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 13px; letter-spacing: 0.02em;
  text-align: center;
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.02);
}

.tour { margin: 5rem 0 0; }
.tour__head { max-width: 720px; margin: 0 auto 1.8rem; text-align: center; }
.tour__head .eyebrow { color: rgba(255,255,255,0.65); }
.tour__head .h-display { color: #fff; margin: 0.4rem 0 0.8rem; font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.tour__head .lede { color: rgba(255,255,255,0.78); margin: 0; }
.tour__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 80px -32px rgba(0,0,0,0.55);
  background: #0a1524;
}
.tour__frame iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* ---------- APARTMENT ---------- */
.section--apartment { background: var(--paper); }
.interiors {
  display: grid; grid-template-columns: 1fr; gap: 1rem;
  margin-top: 2rem;
}
@media (min-width: 700px) { .interiors { grid-template-columns: repeat(2, 1fr); } }
.interiors figure { margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--ink-soft); }
.interiors img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .6s ease; }
.interiors figure:hover img { transform: scale(1.03); }
.interiors figcaption {
  padding: 14px 18px;
  font-size: 13px; letter-spacing: 0.04em;
  color: var(--ink-mute);
  background: var(--snow);
  border: 1px solid var(--line-soft);
  border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.types {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}
@media (min-width: 900px) { .types { grid-template-columns: repeat(4, 1fr); } }
.type {
  background: var(--snow);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  display: flex; flex-direction: column; gap: 0;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.type:hover { transform: translateY(-3px); box-shadow: 0 28px 55px -35px rgba(14,27,43,0.28); border-color: var(--line); }
.type--featured { background: var(--ink); color: var(--snow); border-color: var(--ink); }
.type--featured .type__count,
.type--featured .type__range { color: rgba(255,255,255,0.65); }
.type--featured .type__price { color: var(--brass); }
.type--featured .type__suffix { color: rgba(255,255,255,0.55); }
.type--apt { background: var(--paper-2); }
.type h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: 1.35rem; margin: 0 0 4px; letter-spacing: -0.005em;
}
.type__count { font-size: 13px; color: var(--ink-mute); margin: 0 0 1.25rem; letter-spacing: 0.02em; }
.type__range {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--brass-dk); margin: 0 0 4px;
}
.type__price {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.5rem, 2vw, 1.85rem);
  letter-spacing: -0.01em;
  margin: 0 0 2px;
  color: var(--ink);
}
.type__suffix {
  font-size: 12px; letter-spacing: 0.1em;
  color: var(--ink-mute); margin: 0;
}

/* ---------- CALCULATOR ---------- */
.section--activities {
  background: var(--ink);
  color: var(--snow);
}
.section--activities .section__head { text-align: center; margin-bottom: 2.5rem; }
.section--activities .eyebrow { color: rgba(255,255,255,0.6); }
.section--activities .h-display { color: #fff; }
.section--activities .h-display em { color: var(--dusk, #d9b67a); font-style: normal; }
.section--activities .lede { color: rgba(255,255,255,0.78); }

.activities {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 1.5rem;
}
@media (min-width: 700px) { .activities { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .activities { grid-template-columns: repeat(4, 1fr); } }

.act {
  position: relative;
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 260px;
  transition: transform 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}
.act:hover { transform: translateY(-3px); border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.07); }

.act--photo { min-height: 340px; }
.act--photo img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

.act__icon {
  padding: 28px 24px 0;
  color: var(--dusk, #d9b67a);
  opacity: 0.9;
}

.act__body {
  padding: 18px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.act__season {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dusk, #d9b67a);
  font-weight: 500;
}
.act h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  margin: 0;
  color: #fff;
  letter-spacing: -0.005em;
}
.act p {
  font-size: 13.5px;
  line-height: 1.55;
  margin: 4px 0 0;
  color: rgba(255,255,255,0.72);
}

.section--calc { background: var(--paper-2); }
.wrap--calc { align-items: start; gap: clamp(2rem, 4vw, 4rem); }
.wrap--calc .col--text { position: sticky; top: 80px; }
@media (max-width: 899px) { .wrap--calc .col--text { position: static; } }

.calc {
  background: var(--snow);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 2.5vw, 2rem);
  display: flex; flex-direction: column;
  gap: 1.25rem;
  box-shadow: 0 40px 80px -60px rgba(14,27,43,0.3);
}

.slider { display: flex; flex-direction: column; gap: 6px; }
.slider label {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 13px; letter-spacing: 0.06em;
  color: var(--ink-mute);
}
.slider label span { text-transform: uppercase; font-size: 11px; letter-spacing: 0.2em; }
.slider output {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.slider input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px; border-radius: 3px;
  background: linear-gradient(90deg, var(--ink) var(--v, 30%), var(--line-soft) var(--v, 30%));
  outline: none; cursor: pointer;
}
.slider--accent input[type="range"] {
  background: linear-gradient(90deg, var(--brass) var(--v, 30%), var(--line-soft) var(--v, 30%));
}
.slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--snow);
  border: 2px solid var(--ink);
  cursor: grab;
  box-shadow: 0 4px 10px rgba(14,27,43,0.2);
  transition: transform .1s ease;
}
.slider--accent input[type="range"]::-webkit-slider-thumb { border-color: var(--brass); }
.slider input[type="range"]:active::-webkit-slider-thumb { cursor: grabbing; transform: scale(1.15); }
.slider input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--snow); border: 2px solid var(--ink);
  cursor: grab;
}
.slider--accent input[type="range"]::-moz-range-thumb { border-color: var(--brass); }
.slider__scale {
  display: flex; justify-content: space-between;
  font-size: 10px; letter-spacing: 0.08em; color: var(--ink-mute);
  padding: 0 4px;
}

.result {
  margin-top: 0.5rem;
  border-top: 1px solid var(--line-soft);
  padding-top: 1.25rem;
  display: flex; flex-direction: column; gap: 10px;
}
.result__row {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 14px; color: var(--ink-mute);
  letter-spacing: 0.02em;
}
.result__row > span:first-child { text-transform: uppercase; font-size: 11px; letter-spacing: 0.2em; }
.result__val { font-family: var(--serif); font-size: 1.05rem; color: var(--ink); }
.result__val--pos { color: var(--ok); }
.result__row--total {
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--ink);
}
.result__row--total > span:first-child { color: var(--ink); font-weight: 500; }
.result__row--total .result__val {
  font-size: clamp(1.7rem, 2.8vw, 2.2rem);
  letter-spacing: -0.01em; color: var(--ink);
}
.result__note { font-size: 12px; color: var(--ink-mute); margin: 14px 0 0; line-height: 1.5; }
.result__hint { font-size: 11px; color: var(--ink-mute); margin: -4px 0 6px; line-height: 1.45; font-style: italic; }

/* ---------- LOCATION ---------- */
.section--location { background: var(--paper); }
.section--location .col--media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: 0 24px 60px -28px rgba(14,27,43,0.35); }
.section--location figure { margin: 0; }
.section--location figcaption { margin-top: 1rem; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute); }
.distances { list-style: none; margin: 1.5rem 0; padding: 0; border-top: 1px solid var(--line); }
.distances li {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.distances__place { font-size: 15px; color: var(--ink); }
.distances__val {
  font-family: var(--serif); font-size: 1.15rem;
  color: var(--brass-dk); font-weight: 400;
}

/* ---------- TIMELINE ---------- */
.section--timeline { background: var(--paper-2); }
.timeline {
  list-style: none; padding: 0; margin: 3rem auto 0;
  position: relative; max-width: 820px;
}
.timeline::before {
  content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px;
  width: 1px; background: var(--line);
}
.timeline__item { position: relative; padding: 0 0 2rem 44px; }
.timeline__item::before {
  content: ""; position: absolute; left: 6px; top: 6px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--paper-2); border: 1px solid var(--line);
}
.timeline__item--done::before { background: var(--ink-mute); border-color: var(--ink-mute); }
.timeline__item--now::before { background: var(--brass); border-color: var(--brass); box-shadow: 0 0 0 6px rgba(200,155,107,0.15); }
.timeline__date { display: inline-block; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brass-dk); margin-bottom: 4px; }
.timeline__item h3 { font-family: var(--serif); font-weight: 400; font-size: 1.2rem; margin: 2px 0 4px; }
.timeline__item p { margin: 0; color: var(--ink-mute); font-size: 14.5px; }

/* ---------- CONTACT ---------- */
.section--contact { background: var(--ink); color: var(--snow); }
.section--contact .h-display { color: var(--snow); }
.section--contact .h-display em { color: var(--dusk); }
.section--contact .lede { color: rgba(255,255,255,0.75); }
.contact__direct { margin-top: 2rem; }
.contact__link {
  display: block; font-family: var(--serif); font-size: 1.35rem;
  padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.15);
}
.contact__link:hover { color: var(--brass); }

.col--form {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2.5rem);
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field > span {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}
.field input, .field select, .field textarea {
  font: inherit; color: var(--snow);
  background: transparent; border: none;
  border-bottom: 1px solid rgba(255,255,255,0.25);
  padding: 10px 0; outline: none;
  transition: border-color .2s ease;
  border-radius: 0;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brass); }
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, rgba(255,255,255,0.5) 50%),
                    linear-gradient(-45deg, transparent 50%, rgba(255,255,255,0.5) 50%);
  background-position: calc(100% - 15px) center, calc(100% - 10px) center;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
  padding-right: 28px;
}
.field select option { background: var(--ink); color: var(--snow); }
.check { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: rgba(255,255,255,0.7); line-height: 1.5; }
.check input { margin-top: 4px; accent-color: var(--brass); }
.col--form .btn { grid-column: 1 / -1; justify-self: start; }
.col--form .btn--primary { background: var(--brass); color: var(--ink); }
.col--form .btn--primary:hover { background: var(--snow); }
.form__status { grid-column: 1 / -1; margin: 0; font-size: 13px; color: var(--brass); min-height: 1.2em; }

/* ---------- FOOTER ---------- */
.foot { background: var(--paper-2); padding: 3rem 0 1.5rem; border-top: 1px solid var(--line); }
.foot__grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: center; }
@media (min-width: 800px) { .foot__grid { grid-template-columns: 1fr auto 1fr; } .foot__copy { text-align: right; } }
.foot__logo { font-family: var(--serif); font-size: 22px; margin: 0 0 4px; }
.foot__small { font-size: 12px; letter-spacing: 0.06em; color: var(--ink-mute); margin: 0; }
.foot__links { display: flex; gap: 1.5rem; font-size: 14px; justify-content: center; flex-wrap: wrap; }
.foot__links a:hover { color: var(--brass-dk); }

/* ---------- LIGHTBOX ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(8,14,22,0.94);
  display: none; align-items: center; justify-content: center;
  padding: clamp(1rem, 3vw, 2rem);
}
.lightbox.is-open { display: flex; }
.lightbox__stage {
  position: relative;
  max-width: min(1600px, 96vw);
  width: 100%;
  height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.lightbox__img {
  max-width: 100%;
  max-height: calc(100vh - 160px);
  width: auto; height: auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  user-select: none;
}
.lightbox__caption {
  margin-top: 1rem;
  max-width: 760px;
  text-align: center;
  color: var(--snow);
  padding: 0 1rem;
}
.lightbox__caption h3 {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  margin: 0 0 4px;
  color: var(--snow);
}
.lightbox__caption p {
  margin: 0;
  font-size: 14px;
  color: rgba(255,255,255,0.78);
  line-height: 1.5;
}
.lightbox__btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--snow);
  border: 1px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
  font-size: 0;
}
.lightbox__btn:hover { background: rgba(255,255,255,0.22); transform: translateY(-50%) scale(1.06); }
.lightbox__btn svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; }
.lightbox__btn--prev { left: clamp(0.5rem, 2vw, 2rem); }
.lightbox__btn--next { right: clamp(0.5rem, 2vw, 2rem); }
.lightbox__close {
  position: absolute;
  top: clamp(0.5rem, 2vw, 1.5rem);
  right: clamp(0.5rem, 2vw, 1.5rem);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--snow);
  border: 1px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.lightbox__close:hover { background: rgba(255,255,255,0.22); }
.lightbox__close svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; }
.lightbox__counter {
  position: absolute;
  top: clamp(0.5rem, 2vw, 1.5rem);
  left: clamp(0.5rem, 2vw, 1.5rem);
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  letter-spacing: 0.04em;
}
body.lightbox-open { overflow: hidden; }
@media (max-width: 700px) {
  .lightbox__btn { width: 42px; height: 42px; }
  .lightbox__img { max-height: calc(100vh - 200px); }
}

/* ---------- BOLIGVELGER ---------- */
.section--velger { background: var(--paper-2); }
.wrap--wide { max-width: 1440px; }

.velger { margin: 0 auto; }
.velger__controls {
  display: flex; flex-wrap: wrap; gap: 18px 28px;
  align-items: center; justify-content: space-between;
  margin-bottom: 1.5rem;
}
.velger__tabs {
  display: inline-flex;
  background: var(--snow);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  box-shadow: 0 2px 8px rgba(14,27,43,0.04);
}
.velger__tab {
  padding: 10px 24px;
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-mute);
  border-radius: 999px;
  transition: color .2s ease, background .2s ease;
}
.velger__tab:hover { color: var(--ink); }
.velger__tab.is-active {
  color: var(--snow);
  background: var(--ink);
}

.velger__legend {
  display: flex; gap: 1.5rem;
  list-style: none; padding: 0; margin: 0;
  font-size: 13px; color: var(--ink-mute);
  letter-spacing: 0.02em;
}
.velger__legend li { display: flex; align-items: center; gap: 8px; }
.dot {
  width: 14px; height: 14px; border-radius: 3px;
  display: inline-block;
  border: 1px solid rgba(14,27,43,0.22);
}
.dot--avail { background: rgba(213, 244, 253, 0.9); }
.dot--sold { background: rgba(220, 60, 60, 0.55); border-color: rgba(160,30,30,0.5); }

.velger__stage {
  position: relative;
  background: var(--snow);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 44px rgba(14,27,43,0.08);
  min-height: 320px;
}
.velger__loading {
  padding: 4rem 2rem;
  text-align: center;
  color: var(--ink-mute);
  font-size: 14px;
  letter-spacing: 0.04em;
}
.velger__floor { position: relative; display: none; }
.velger__floor.is-active { display: block; }
.velger__plan { display: block; width: 100%; height: auto; user-select: none; }
.velger__svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.apt-hit {
  fill: rgba(255,255,255,0);
  stroke: rgba(14,27,43,0);
  stroke-width: 8;
  cursor: pointer;
  pointer-events: all;
  transition: fill .18s ease, stroke .18s ease;
}
.apt-hit:hover {
  fill: rgba(200, 155, 107, 0.45);
  stroke: rgba(14,27,43,0.85);
}
.apt-hit.is-sold {
  fill: rgba(220, 60, 60, 0.45);
  stroke: rgba(160, 30, 30, 0.55);
}
.apt-hit.is-sold:hover {
  fill: rgba(220, 60, 60, 0.62);
  stroke: rgba(160, 30, 30, 0.95);
}
.apt-hit.is-active {
  fill: rgba(200, 155, 107, 0.55);
  stroke: rgba(14,27,43,0.9);
}

@media (max-width: 640px) {
  .velger__controls { gap: 12px; }
  .velger__tab { padding: 8px 14px; font-size: 11px; letter-spacing: 0.1em; }
  .velger__legend { gap: 1rem; font-size: 12px; }
}

/* ---------- APARTMENT MODAL ---------- */
.apt-modal {
  position: fixed; inset: 0;
  z-index: 120;
  display: grid; place-items: center;
  padding: clamp(12px, 3vw, 32px);
}
.apt-modal[hidden] { display: none; }
.apt-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(14, 27, 43, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: aptFade .2s ease;
}
.apt-modal__card {
  position: relative;
  background: var(--snow);
  border-radius: var(--radius-lg);
  width: min(960px, 100%);
  max-height: calc(100vh - 40px);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
  animation: aptPop .25s ease;
}
@keyframes aptFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes aptPop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }

.apt-modal__close {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--snow); color: var(--ink);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  transition: background .2s ease, border-color .2s ease;
}
.apt-modal__close:hover { background: var(--paper-2); border-color: var(--ink-mute); }

.apt-modal__grid {
  display: grid;
  grid-template-columns: 1fr;
  max-height: calc(100vh - 40px);
  overflow: auto;
}
@media (min-width: 760px) {
  .apt-modal__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
}
.apt-modal__plan {
  background: #F0E9DB;
  margin: 0;
  padding: clamp(1rem, 3vw, 2.25rem);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 1rem;
  min-height: 240px;
}
.apt-modal__plan img {
  width: 100%; height: auto;
  max-height: min(62vh, 520px);
  object-fit: contain;
  border-radius: 4px;
  background: var(--snow);
  box-shadow: 0 6px 20px rgba(14,27,43,0.08);
}
.apt-modal__plan-note {
  font-size: 12px; letter-spacing: 0.04em;
  color: var(--ink-mute);
  text-align: center;
  font-style: italic;
}
.apt-modal__body {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: flex; flex-direction: column;
}
.apt-modal__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: .35rem 0 .6rem;
}
.apt-modal__status {
  display: inline-block; align-self: flex-start;
  font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(126, 168, 120, 0.18);
  color: #4a6d47;
  margin-bottom: 1.25rem;
  font-weight: 500;
}
.apt-modal__status.is-sold {
  background: rgba(200, 60, 60, 0.14);
  color: #a52828;
}
.apt-modal__facts {
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line-soft);
}
.apt-modal__facts div {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
}
.apt-modal__facts div:nth-child(odd) { padding-right: 16px; border-right: 1px solid var(--line-soft); }
.apt-modal__facts div:nth-child(even) { padding-left: 16px; }
.apt-modal__facts dt { color: var(--ink-mute); margin: 0; }
.apt-modal__facts dd { color: var(--ink); font-weight: 500; margin: 0; }
@media (max-width: 480px) {
  .apt-modal__facts { grid-template-columns: 1fr; }
  .apt-modal__facts div:nth-child(odd) { padding-right: 0; border-right: none; }
  .apt-modal__facts div:nth-child(even) { padding-left: 0; }
}

.apt-modal__price {
  display: flex; flex-direction: column;
  gap: 2px;
  padding: 1rem 1.1rem;
  background: var(--paper);
  border-radius: 6px;
  margin-bottom: 1.25rem;
}
.apt-modal__price-lbl {
  font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-dk);
}
.apt-modal__price-val {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 400;
  color: var(--ink);
  display: flex; align-items: baseline; gap: 6px;
}
.apt-modal__price-val small {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-mute);
}
.apt-modal__cta { align-self: flex-start; }
body.apt-modal-open { overflow: hidden; }

/* ---------- REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  * { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
}
