/* ============================================================
   SCANBYGG — Warm Scandinavian design system
   Palette: cream + sand + sage + terracotta accent
   Type:    Fraunces (display, variable) + Inter (UI)
   ============================================================ */

:root {
  /* Warm earth palette */
  --cream:        #FAF6EE;
  --cream-2:      #F5F0E1;
  --sand:         #ECE2CD;
  --sand-2:       #DCCDAE;
  --stone:        #C9B89A;
  --ink:          #221C12;
  --ink-2:        #3A2F22;
  --muted:        #6F6450;
  --muted-2:      #8C8068;

  --sage:         #5C6B4F;
  --sage-deep:    #404C36;
  --sage-soft:    #B7C0A6;

  --terracotta:   #C67B5C;
  --terracotta-2: #B16846;

  /* Semantic */
  --bg:           var(--cream);
  --bg-soft:      var(--cream-2);
  --bg-sand:      var(--sand);
  --text:         var(--ink);
  --text-soft:    var(--muted);
  --line:         rgba(60, 45, 30, 0.12);
  --line-strong:  rgba(60, 45, 30, 0.22);

  /* Layout */
  --radius-sm:    8px;
  --radius:       16px;
  --radius-lg:    24px;
  --radius-xl:    32px;

  --shadow-sm:    0 1px 2px rgba(60, 45, 30, 0.06), 0 1px 1px rgba(60, 45, 30, 0.04);
  --shadow:       0 8px 24px -8px rgba(60, 45, 30, 0.18), 0 2px 6px rgba(60, 45, 30, 0.06);
  --shadow-lg:    0 24px 60px -16px rgba(60, 45, 30, 0.28), 0 4px 12px rgba(60, 45, 30, 0.08);

  /* Animation */
  --ease:         cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-soft:    cubic-bezier(0.4, 0, 0.2, 1);

  /* Typography */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-ui:      'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --container:    1200px;
  --container-narrow: 760px;
  --nav-height:   72px;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; padding: 0; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }

::selection { background: var(--sage); color: var(--cream); }

/* Skip link */
.skip-link {
  position: absolute; top: -100px; left: 1rem; padding: .6rem 1rem;
  background: var(--ink); color: var(--cream); border-radius: 8px; z-index: 100;
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
}
h2 em, h1 em, h3 em {
  font-style: italic;
  font-weight: 500;
  color: var(--sage);
  font-variation-settings: 'SOFT' 100, 'WONK' 0;
}
p { margin: 0; }

.eyebrow {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
}
.eyebrow--light { color: var(--sage-soft); }
.eyebrow__line { display: inline-block; width: 36px; height: 1px; background: currentColor; opacity: .6; }

/* ============================================================
   LAYOUT PRIMITIVES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}
.container--narrow { max-width: var(--container-narrow); }

.section {
  padding: clamp(72px, 10vw, 132px) 0;
  position: relative;
}
.section--cream { background: var(--cream); }
.section--sand  { background: var(--sand); }
.section--sage  { background: var(--sage-deep); color: var(--cream); }
.section--tight { padding-top: 0; }
.section--cta { padding-bottom: clamp(80px, 10vw, 140px); }

.section--sage h2, .section--sage h3, .section--sage h4 { color: var(--cream); }
.section--sage h2 em { color: var(--sage-soft); }

.section-head {
  max-width: 720px;
  margin: 0 auto clamp(48px, 7vw, 84px);
  text-align: center;
}
.section-head--narrow { max-width: 560px; }
.section-title {
  font-size: clamp(38px, 5.6vw, 72px);
  font-weight: 400;
  margin: 0 0 22px;
  letter-spacing: -0.022em;
  line-height: 1.02;
}
.section-lede {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--text-soft);
  line-height: 1.6;
  max-width: 56ch;
  margin: 0 auto;
}
.section-lede--light { color: rgba(245, 240, 225, 0.78); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), box-shadow .35s var(--ease),
              transform .35s var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn svg { transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn--primary {
  background: var(--ink);
  color: var(--cream);
}
.btn--primary:hover {
  background: var(--sage-deep);
  box-shadow: 0 10px 30px -10px rgba(34, 28, 18, 0.45);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

.section--sage .btn--ghost { color: var(--cream); border-color: rgba(245, 240, 225, 0.3); }
.section--sage .btn--ghost:hover { background: var(--cream); color: var(--ink); }

.btn--lg { padding: 16px 28px; font-size: 16px; }
.btn--block { width: 100%; }

/* ============================================================
   ANNOUNCE BAR
   ============================================================ */
.announce {
  background: var(--ink);
  color: var(--cream);
  font-size: 13.5px;
  letter-spacing: 0.01em;
}
.announce__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 10px clamp(20px, 4vw, 40px);
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}
.announce__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--terracotta);
  box-shadow: 0 0 0 0 var(--terracotta);
  animation: pulse 2.2s infinite var(--ease);
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(198, 123, 92, 0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(198, 123, 92, 0); }
  100% { box-shadow: 0 0 0 0 rgba(198, 123, 92, 0); }
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 238, 0.85);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background-color .3s var(--ease), border-color .3s var(--ease),
              box-shadow .3s var(--ease);
}
.nav.is-scrolled {
  background: rgba(250, 246, 238, 0.92);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 20px -16px rgba(60, 45, 30, 0.18);
}
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 40px);
}
.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.nav__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: transform .4s var(--ease);
}
.nav__logo:hover .nav__mark { transform: translateY(-1px); }
.nav__name {
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.nav__links {
  display: flex;
  gap: clamp(18px, 2.4vw, 30px);
  margin-left: auto;
  margin-right: auto;
  font-size: 15px;
  font-weight: 500;
}
.nav__links a {
  position: relative;
  padding: 8px 2px;
  color: var(--ink-2);
  transition: color .2s var(--ease);
}
.nav__links a::after {
  content: ''; position: absolute;
  left: 0; right: 100%; bottom: 4px;
  height: 1px; background: var(--ink);
  transition: right .35s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { right: 0; }

.nav__cta { margin-left: auto; }
.nav__menu {
  display: none;
  width: 44px; height: 44px;
  margin-left: auto;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border-radius: 12px;
  cursor: pointer;
}
.nav__menu span {
  display: block; width: 22px; height: 1.6px; background: var(--ink);
  border-radius: 2px; transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav__menu[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.nav__menu[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__menu[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 16px clamp(20px, 4vw, 40px) 22px;
  border-top: 1px solid var(--line);
  background: rgba(250, 246, 238, 0.98);
}
.nav__mobile a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 17px; font-weight: 500; }
.nav__mobile a:last-child { border-bottom: 0; margin-top: 8px; justify-content: center; }
.nav__mobile.is-open { display: flex; }

@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__menu { display: inline-flex; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-height) - 36px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(120px, 18vw, 220px) 0 clamp(120px, 14vw, 180px);
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
  color: var(--cream);
}
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  overflow: hidden;
}
.hero__bg img {
  width: 100%; height: 115%;
  object-fit: cover;
  object-position: center 55%;
  transform: translateY(0) scale(1.04);
  will-change: transform;
  filter: saturate(0.95) brightness(0.86);
}
.hero__veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(34, 28, 18, 0.55) 0%, rgba(34, 28, 18, 0.15) 40%, rgba(34, 28, 18, 0.65) 100%),
    linear-gradient(95deg, rgba(34, 28, 18, 0.5) 0%, rgba(34, 28, 18, 0.15) 70%, rgba(34, 28, 18, 0) 100%);
}
.hero__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
  width: 100%;
  position: relative;
}
.eyebrow--hero { color: var(--cream); opacity: .92; }
.eyebrow--hero .eyebrow__line { background: var(--cream); }
.hero__title {
  font-size: clamp(54px, 9vw, 124px);
  font-weight: 400;
  max-width: 16ch;
  margin: 0 0 26px;
  letter-spacing: -0.025em;
  line-height: 0.98;
  color: var(--cream);
  text-shadow: 0 1px 30px rgba(34, 28, 18, 0.18);
}
.hero__title em {
  color: var(--cream);
  font-style: italic;
  font-weight: 400;
  font-variation-settings: 'SOFT' 100, 'WONK' 0;
  opacity: .96;
}
.hero__lede {
  font-size: clamp(17px, 1.5vw, 21px);
  color: rgba(250, 246, 238, 0.96);
  max-width: 48ch;
  line-height: 1.55;
  margin-top: 28px;
  text-shadow: 0 1px 24px rgba(15, 12, 8, 0.45), 0 1px 3px rgba(15, 12, 8, 0.4);
}
.hero__cta {
  display: flex; flex-wrap: wrap; gap: 28px;
  align-items: center;
  margin-top: 40px;
}
.hero .btn--primary {
  background: var(--cream);
  color: var(--ink);
}
.hero .btn--primary:hover {
  background: var(--sage-soft);
  color: var(--ink);
}
.hero__sec {
  color: var(--cream);
  font-size: 15px;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
  border-bottom: 1px solid rgba(250, 246, 238, 0.45);
  transition: border-color .25s var(--ease), color .25s var(--ease);
}
.hero__sec:hover { border-color: var(--cream); }
.hero__meta {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 26px 0;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 12, 8, 0.78) 60%, rgba(15, 12, 8, 0.92) 100%);
  z-index: 1;
}
.hero__meta-inner {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  color: rgba(250, 246, 238, 0.96);
  font-size: 13px;
  letter-spacing: 0.08em;
  font-weight: 500;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}
.hero__meta-item { display: inline-flex; align-items: center; gap: 6px; }
.hero__meta-sep { color: rgba(250, 246, 238, 0.55); }

@media (max-width: 640px) {
  .hero__meta {
    position: static;
    padding: 22px 0;
    background: var(--ink);
  }
  .hero__meta-inner {
    gap: 10px 14px;
    font-size: 11.5px;
    text-shadow: none;
  }
}

.hero__scroll {
  display: none;
}
.hero__scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(180deg, var(--ink) 0%, transparent 100%);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: ''; position: absolute;
  top: -50%; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(180deg, transparent, var(--ink));
  animation: scrollHint 2.4s infinite var(--ease);
}
@keyframes scrollHint {
  0%   { top: -50%; }
  60%  { top: 100%; }
  100% { top: 100%; }
}

/* ============================================================
   SERVICES
   ============================================================ */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ============================================================
   SERVICE HERO — single-service feature layout
   ============================================================ */
.service-hero {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 0;
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02), 0 28px 56px -38px rgba(34, 28, 18, 0.22);
}
.service-hero__content {
  padding: 56px 56px 52px;
  display: flex;
  flex-direction: column;
}
.service-hero__icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--sage-soft);
  color: var(--sage-deep);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
}
.service-hero__content h3 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.15;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.service-hero__lede {
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 52ch;
}
.service-hero__list {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
}
.service-hero__list li {
  position: relative;
  padding-left: 22px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
}
.service-hero__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 11px;
  width: 12px; height: 1px;
  background: var(--sage);
}

.service-hero__panel {
  background: var(--ink);
  color: var(--cream);
  padding: 56px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.service-hero__price-eyebrow {
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 240, 225, 0.6);
  margin-bottom: 12px;
}
.service-hero__price {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.4vw, 44px);
  line-height: 1.1;
  font-weight: 400;
  color: var(--cream);
  margin: 0 0 4px;
}
.service-hero__price strong {
  font-weight: 600;
  color: var(--sage-soft);
}
.service-hero__price-note {
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(245, 240, 225, 0.7);
  margin-bottom: 28px;
  max-width: 28ch;
}
.service-hero__cta {
  background: var(--cream) !important;
  color: var(--ink) !important;
  margin-bottom: 28px;
}
.service-hero__cta:hover {
  background: var(--sage-soft) !important;
  color: var(--ink) !important;
}
.service-hero__perks {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.service-hero__perks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(245, 240, 225, 0.88);
}
.service-hero__perks svg {
  color: var(--sage-soft);
  flex-shrink: 0;
}

@media (max-width: 880px) {
  .service-hero { grid-template-columns: 1fr; }
  .service-hero__content { padding: 40px 32px 36px; }
  .service-hero__panel { padding: 40px 32px; }
  .service-hero__list { grid-template-columns: 1fr; }
}
.service {
  position: relative;
  padding: 36px 32px 32px;
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s var(--ease);
  will-change: transform;
}
.service:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service__icon {
  width: 56px; height: 56px;
  background: var(--sage);
  color: var(--cream);
  border-radius: 16px;
  display: grid; place-items: center;
  margin-bottom: 22px;
  transition: transform .5s var(--ease);
}
.service:hover .service__icon { transform: rotate(-4deg) scale(1.05); }
.service h3 {
  font-size: 24px;
  margin-bottom: 10px;
  font-weight: 500;
}
.service p {
  color: var(--text-soft);
  font-size: 15.5px;
  line-height: 1.6;
}
.service__list {
  list-style: none; padding: 0; margin: 22px 0 0;
  border-top: 1px solid var(--line);
}
.service__list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--ink-2);
  position: relative;
  padding-left: 22px;
}
.service__list li::before {
  content: ''; position: absolute;
  left: 0; top: 18px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--terracotta);
}
.service__list li:last-child { border-bottom: 0; }

.service--feature {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}
.service--feature h3 { color: var(--cream); }
.service--feature p { color: rgba(245, 240, 225, 0.78); }
.service--feature .service__list { border-color: rgba(245, 240, 225, 0.15); }
.service--feature .service__list li {
  color: rgba(245, 240, 225, 0.85);
  border-color: rgba(245, 240, 225, 0.12);
}
.service--feature .service__icon { background: var(--terracotta); }
.service__badge {
  position: absolute;
  top: 24px; right: 24px;
  background: var(--terracotta);
  color: var(--cream);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}

@media (max-width: 900px) {
  .services { grid-template-columns: 1fr; }
}

/* ============================================================
   PROCESS
   ============================================================ */
.process {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  counter-reset: step;
  position: relative;
}
.process::before {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(100% / 6); right: calc(100% / 6);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}
.process__step {
  padding: 0 20px;
  position: relative;
  background: var(--sand);
}
.process__num {
  display: grid; place-items: center;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid var(--line-strong);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--sage);
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
.process__step:hover .process__num {
  background: var(--sage);
  color: var(--cream);
}
.process__step h3 { font-size: 22px; margin-bottom: 8px; }
.process__step p {
  font-size: 15px;
  color: var(--text-soft);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .process { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .process::before { display: none; }
}
@media (max-width: 540px) {
  .process { grid-template-columns: 1fr; gap: 32px; }
}

/* ============================================================
   SECTION HEAD — SPLIT (title left, lede right)
   ============================================================ */
.section-head--split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  text-align: left;
  align-items: end;
  max-width: var(--container);
}
.section-head--split .section-lede--right {
  margin: 0;
  text-align: left;
  max-width: 44ch;
  padding-bottom: 8px;
}
@media (max-width: 900px) {
  .section-head--split { grid-template-columns: 1fr; align-items: start; }
}

/* ============================================================
   LISTINGS — luxury property cards
   ============================================================ */
.section--projects { padding-top: clamp(96px, 12vw, 160px); }
.listings {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(40px, 5vw, 72px) clamp(32px, 4vw, 56px);
}
.listing {
  display: block;
  position: relative;
  color: var(--ink);
  transition: transform .5s var(--ease);
}
.listing:hover { transform: translateY(-3px); }
.listing__media {
  position: relative;
  margin: 0 0 24px;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 4 / 3;
  background: var(--sand);
}
.listing__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease), filter .6s var(--ease);
  will-change: transform;
}
.listing:hover .listing__media img { transform: scale(1.05); filter: saturate(1.06); }
.listing__badge {
  position: absolute;
  top: 16px; left: 16px;
  background: rgba(250, 246, 238, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 7px 12px;
  border-radius: 2px;
}
.listing__meta { padding: 0 4px; }
.listing__head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.listing__head h3 {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0;
  position: relative;
  display: inline;
  background-image: linear-gradient(var(--ink), var(--ink));
  background-repeat: no-repeat;
  background-size: 0 1px;
  background-position: 0 100%;
  transition: background-size .5s var(--ease);
}
.listing:hover .listing__head h3 { background-size: 100% 1px; }
.listing__loc {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
  white-space: nowrap;
  flex-shrink: 0;
}
.listing__specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 0;
}
.listing__specs > div {
  display: flex; flex-direction: column;
  gap: 2px;
}
.listing__specs dt {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.listing__specs dd {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.01em;
}

.listings__more {
  display: flex; justify-content: flex-start;
  margin-top: clamp(40px, 6vw, 64px);
  padding-top: clamp(40px, 6vw, 64px);
  border-top: 1px solid var(--line);
}

/* ============================================================
   FEATURED LISTING — live Matterport embed + metadata
   ============================================================ */
.featured { margin-top: clamp(24px, 4vw, 56px); }
.featured + .featured {
  margin-top: clamp(72px, 10vw, 140px);
  padding-top: clamp(48px, 6vw, 80px);
  border-top: 1px solid var(--line);
  position: relative;
}
.featured + .featured::before {
  content: '';
  position: absolute;
  top: -1px; left: 0;
  width: 0;
  height: 1px;
  background: var(--sage);
  transition: width 1.2s var(--ease);
}
.featured + .featured.is-visible::before { width: clamp(60px, 12vw, 140px); }

.featured__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.featured__head .eyebrow { margin-bottom: 10px; }
.featured__head h3 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
}
.featured__loc {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
  white-space: nowrap;
  flex-shrink: 0;
  padding-bottom: 6px;
}

.featured__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--ink);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.featured__media iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.featured__specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 3vw, 32px);
  margin: clamp(28px, 4vw, 40px) 0 16px;
  padding-top: clamp(20px, 3vw, 28px);
  border-top: 1px solid var(--line);
}
.featured__specs > div { display: flex; flex-direction: column; gap: 4px; }
.featured__specs dt {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.featured__specs dd {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 500;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.01em;
}

.featured__note {
  font-size: 13.5px;
  color: var(--text-soft);
  letter-spacing: 0.01em;
}

@media (max-width: 640px) {
  .featured__head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .featured__media { aspect-ratio: 4 / 3; }
  .featured__specs { grid-template-columns: 1fr 1fr; gap: 18px 14px; }
}

@media (max-width: 800px) {
  .listings { grid-template-columns: 1fr; gap: 44px; }
}

/* ============================================================
   EDITORIAL SPLIT — full-bleed
   ============================================================ */
.editorial {
  background: var(--sand);
  padding: clamp(100px, 12vw, 160px) 0;
  overflow: hidden;
}
.editorial__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 100px);
  align-items: center;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}
.editorial__media {
  margin: 0;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 5 / 6;
  background: var(--sand);
}
.editorial__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.6s var(--ease);
}
.editorial__media:hover img { transform: scale(1.03); }
.editorial__copy { max-width: 52ch; }
.editorial__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 4.6vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 28px;
}
.editorial__title em {
  font-style: italic;
  color: var(--sage-deep);
  font-variation-settings: 'SOFT' 100, 'WONK' 0;
}
.editorial__lede {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--ink-2);
  line-height: 1.6;
  margin-bottom: 18px;
}
.editorial__copy .link--arrow { margin-top: 18px; }

@media (max-width: 900px) {
  .editorial__inner { grid-template-columns: 1fr; }
  .editorial__media { aspect-ratio: 4 / 3; max-height: 60vh; }
}

/* ============================================================
   LINK — editorial arrow style
   ============================================================ */
.link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--ink);
  transition: gap .35s var(--ease), color .25s var(--ease);
}
.link svg { transition: transform .35s var(--ease); }
.link:hover { gap: 16px; }
.link:hover svg { transform: translateX(2px); }
.link--arrow { /* alias for editorial use */ }
.section--sage .link { color: var(--cream); border-color: var(--cream); }

/* ============================================================
   STAT CARDS — dark, on sage section
   ============================================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 1.6vw, 24px);
}
.stat-card {
  position: relative;
  background: rgba(245, 240, 225, 0.05);
  border: 1px solid rgba(245, 240, 225, 0.12);
  border-radius: 6px;
  padding: clamp(26px, 2.6vw, 36px) clamp(22px, 2.2vw, 30px) clamp(28px, 2.8vw, 36px);
  overflow: hidden;
  transition: background-color .35s var(--ease),
              transform .45s var(--ease),
              border-color .35s var(--ease);
  isolation: isolate;
}
.stat-card::after {
  content: '';
  position: absolute;
  top: -40%; right: -30%;
  width: 60%; height: 100%;
  background: radial-gradient(circle, rgba(198, 123, 92, 0.18) 0%, transparent 60%);
  z-index: -1;
  opacity: 0;
  transition: opacity .5s var(--ease);
}
.stat-card:hover {
  background: rgba(245, 240, 225, 0.08);
  border-color: rgba(245, 240, 225, 0.2);
  transform: translateY(-3px);
}
.stat-card:hover::after { opacity: 1; }

.stat-card__chip {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 240, 225, 0.55);
  background: rgba(245, 240, 225, 0.06);
  border: 1px solid rgba(245, 240, 225, 0.12);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 26px;
}
.stat-card__num {
  font-family: var(--font-display);
  font-size: clamp(34px, 3.6vw, 48px);
  font-weight: 400;
  line-height: 1;
  color: var(--cream);
  letter-spacing: -0.02em;
  margin: 0 0 22px;
}
.stat-card__label {
  font-family: var(--font-display);
  font-size: clamp(17px, 1.5vw, 20px);
  font-weight: 500;
  color: var(--cream);
  margin: 0 0 10px;
  line-height: 1.2;
}
.stat-card__sub {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(245, 240, 225, 0.7);
  margin: 0;
}

@media (max-width: 1000px) {
  .stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .stats { grid-template-columns: 1fr; }
}

/* ============================================================
   USE CASES — Salg / Utleie / Takst
   ============================================================ */
.cases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2vw, 28px);
  align-items: stretch;
}
.case {
  position: relative;
  padding: clamp(28px, 3vw, 40px) clamp(24px, 2.4vw, 34px) clamp(28px, 3vw, 36px);
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex; flex-direction: column;
  transition: transform .5s var(--ease),
              box-shadow .5s var(--ease),
              border-color .35s var(--ease);
}
.case:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.case__icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--sage-deep);
  margin-bottom: 24px;
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
.case:hover .case__icon { background: var(--sage-deep); color: var(--cream); }
.case h3 {
  font-size: clamp(22px, 2vw, 26px);
  font-weight: 500;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.case__lede {
  font-size: 15px;
  color: var(--text-soft);
  margin: 0 0 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  line-height: 1.5;
}
.case__list {
  list-style: none; padding: 0; margin: 0;
}
.case__list li {
  position: relative;
  padding: 8px 0 8px 26px;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.45;
}
.case__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 14px;
  width: 12px; height: 7px;
  border-left: 1.6px solid var(--terracotta);
  border-bottom: 1.6px solid var(--terracotta);
  transform: rotate(-45deg);
}
.cases__note {
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: clamp(24px, 3vw, 32px);
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--text-soft);
}

@media (max-width: 900px) {
  .cases { grid-template-columns: 1fr; }
}

/* ============================================================
   COMPARE — Tradisjonell vs Digibygg
   ============================================================ */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 2.4vw, 32px);
  max-width: 920px;
  margin: 0 auto;
}
.compare__card {
  padding: clamp(28px, 3vw, 40px) clamp(24px, 2.4vw, 36px);
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  transition: transform .5s var(--ease), border-color .35s var(--ease);
}
.compare__card header {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.compare__card h3 {
  font-family: var(--font-ui);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin: 0;
}
.compare__icon {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  flex-shrink: 0;
}
.compare__card--old .compare__icon {
  background: rgba(0,0,0,0.05);
  color: var(--muted);
}
.compare__card--old { background: var(--cream); }
.compare__card--old h3 { color: var(--muted); }

.compare__card--new {
  background: var(--cream-2);
  border-color: var(--terracotta);
  box-shadow: 0 12px 40px -16px rgba(198, 123, 92, 0.35);
}
.compare__card--new::before {
  content: '';
  position: absolute;
  top: -40%; right: -30%;
  width: 60%; height: 100%;
  background: radial-gradient(circle, rgba(198, 123, 92, 0.18) 0%, transparent 60%);
  z-index: 0;
  pointer-events: none;
}
.compare__card--new > * { position: relative; z-index: 1; }
.compare__card--new .compare__icon {
  background: rgba(198, 123, 92, 0.15);
  color: var(--terracotta-2);
}
.compare__card--new h3 { color: var(--ink); }

.compare__list {
  list-style: none; padding: 0; margin: 0;
}
.compare__list li {
  position: relative;
  padding: 9px 0 9px 26px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-2);
}
.compare__card--old .compare__list li { color: var(--muted); }
.compare__card--old .compare__list li::before {
  content: '';
  position: absolute;
  left: 2px; top: 17px;
  width: 11px; height: 11px;
  border-radius: 50%;
  border: 1.4px solid currentColor;
  opacity: .5;
}
.compare__card--old .compare__list li::after {
  content: '';
  position: absolute;
  left: 4.5px; top: 21.5px;
  width: 6px; height: 1.4px;
  background: currentColor;
  opacity: .5;
  transform: rotate(45deg);
}
.compare__card--new .compare__list li::before {
  content: '';
  position: absolute;
  left: 2px; top: 15px;
  width: 12px; height: 7px;
  border-left: 1.8px solid var(--terracotta);
  border-bottom: 1.8px solid var(--terracotta);
  transform: rotate(-45deg);
}

@media (max-width: 760px) {
  .compare { grid-template-columns: 1fr; }
}

/* ============================================================
   BOOK / FORM
   ============================================================ */
.book {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.book__copy .section-title { font-size: clamp(30px, 4vw, 46px); }
.book__perks {
  list-style: none; padding: 0; margin: 36px 0 0;
  display: grid; gap: 14px;
  font-size: 15.5px;
  color: var(--ink-2);
}
.book__perks li {
  display: flex; align-items: center; gap: 12px;
}
.book__perks svg { color: var(--sage); flex-shrink: 0; }

.book__form {
  background: var(--cream);
  padding: 36px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  position: relative;
}
.book__title {
  font-size: 24px;
  margin-bottom: 22px;
}
.field { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label {
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-2);
}
.field__hint { color: var(--text-soft); font-weight: 400; }
.field input,
.field select,
.field textarea {
  padding: 12px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 15px;
  transition: border-color .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease);
  font-family: var(--font-ui);
  color: var(--ink);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--sage);
  background: var(--cream);
  box-shadow: 0 0 0 3px rgba(92, 107, 79, 0.15);
}
.field textarea { resize: vertical; min-height: 80px; }
.select-wrap { position: relative; }
.select-wrap select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  padding-right: 38px;
}
.select-wrap svg {
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--text-soft);
}
.book__fineprint {
  text-align: center;
  font-size: 13px;
  color: var(--text-soft);
  margin-top: 16px;
}

.book__success {
  position: absolute; inset: 0;
  background: var(--cream);
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 40px;
  animation: reveal-fade .4s var(--ease);
}
.book__success[hidden],
.book__error[hidden] { display: none; }
.book__success svg { color: var(--sage); margin-bottom: 16px; }
.book__success h4 { font-size: 22px; margin-bottom: 8px; }
.book__success p { color: var(--text-soft); max-width: 32ch; }

.book__error {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 14px;
  padding: 14px 16px;
  background: rgba(198, 123, 92, 0.10);
  border: 1px solid rgba(198, 123, 92, 0.35);
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
}
.book__error svg { color: var(--terracotta-2); flex-shrink: 0; margin-top: 1px; }
.book__error a { color: var(--terracotta-2); text-decoration: underline; }

.book__submit[disabled] { opacity: .7; cursor: progress; }

.book__honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

@keyframes reveal-fade {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .book { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .book__form { padding: 26px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--ink);
  color: rgba(245, 240, 225, 0.75);
  padding: 80px 0 32px;
  font-size: 14.5px;
}
.footer .nav__logo { color: var(--cream); }
.footer .nav__name { color: var(--cream); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(245, 240, 225, 0.12);
}
.footer__brand p {
  max-width: 30ch;
  margin-top: 16px;
  line-height: 1.55;
}
.footer__col h4 {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 16px;
}
.footer__col ul { list-style: none; padding: 0; margin: 0; }
.footer__col li { padding: 6px 0; }
.footer__col a { transition: color .2s var(--ease); }
.footer__col a:hover { color: var(--cream); }
.footer__bottom {
  padding-top: 28px;
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
  font-size: 13.5px;
  color: rgba(245, 240, 225, 0.5);
}
.footer__bottom a:hover { color: var(--cream); }

@media (max-width: 760px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer__brand { grid-column: span 2; }
}
@media (max-width: 460px) {
  .footer__grid { grid-template-columns: 1fr; }
  .footer__brand { grid-column: span 1; }
}

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   POLISH LAYER — film grain, cursor spotlight, word reveal,
   animated hairlines. Subtle by default.
   ============================================================ */

/* Film grain — fixed, full viewport, sits above content but below modals */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 80;
  opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.6 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  background-size: 200px 200px;
  mix-blend-mode: multiply;
}

/* Cursor spotlight — warm halo following the cursor over the hero */
.hero {
  --mx: 50%;
  --my: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    420px circle at var(--mx) var(--my),
    rgba(255, 226, 187, 0.18),
    rgba(255, 226, 187, 0.06) 22%,
    transparent 55%
  );
  opacity: 0;
  transition: opacity .6s var(--ease);
  mix-blend-mode: screen;
}
.hero:hover::after { opacity: 1; }
.hero__inner, .hero__meta { position: relative; z-index: 1; }

@media (hover: none) {
  .hero::after { display: none; }
}

/* Cursor halo on editorial section — soft trailing warmth */
.editorial {
  --mx: 50%;
  --my: 50%;
  position: relative;
}
.editorial::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    360px circle at var(--mx) var(--my),
    rgba(92, 107, 79, 0.10),
    transparent 50%
  );
  opacity: 0;
  transition: opacity .8s var(--ease);
  z-index: 0;
}
.editorial:hover::before { opacity: 1; }
.editorial__inner { position: relative; z-index: 1; }
@media (hover: none) {
  .editorial::before { display: none; }
}

/* Word-by-word reveal — used on hero headline */
.hero__title--words .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.5em);
  transition:
    opacity 1s var(--ease),
    transform 1.1s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
  will-change: opacity, transform;
}
.hero__title--words.is-visible .word {
  opacity: 1;
  transform: translateY(0);
}

/* Animated section hairlines — thin sage line that scales in on view */
.section,
.editorial {
  position: relative;
}
.section::before,
.editorial::after {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  width: clamp(40px, 8vw, 96px);
  height: 1px;
  background: var(--sage);
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 1.2s var(--ease) .15s;
}
.section--sage::before { background: var(--sage-soft); }
.section.is-in::before,
.editorial.is-in::after { transform: translateX(-50%) scaleX(1); }
/* Don't draw hairline above the cream section that immediately follows the hero */
.hero + .section::before { content: none; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__scroll { display: none; }
  .hero__title--words .word { opacity: 1; transform: none; }
  .hero::after, .editorial::before { display: none; }
  body::after { display: none; }
}

/* ============================================================
   KLARGJØRING — prep cards
   ============================================================ */
.section--bone { background: #EFE7D6; }

.prep-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 56px;
}
.prep-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px 30px;
  position: relative;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02), 0 18px 40px -32px rgba(34, 28, 18, 0.18);
}
.prep-card__num {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.16em;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 14px;
}
.prep-card h3 {
  font-size: 19px;
  line-height: 1.3;
  margin-bottom: 14px;
  color: var(--ink);
}
.prep-card p {
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 10px;
}
.prep-card ul {
  list-style: none;
  padding: 0; margin: 0;
}
.prep-card li {
  position: relative;
  padding-left: 22px;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 6px;
}
.prep-card li::before {
  content: '';
  position: absolute;
  left: 0; top: 11px;
  width: 12px; height: 1px;
  background: var(--sage);
}
.prep-card__note {
  margin-top: 16px;
  padding: 14px 16px;
  background: rgba(218, 165, 32, 0.08);
  border-left: 2px solid #B07A2A;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
}
.prep-card__note strong { color: #8A5A18; }

/* ============================================================
   HVORFOR BOLIGSCANNING — value cards + examples
   ============================================================ */
.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  margin-top: 56px;
}
.value-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02), 0 20px 44px -34px rgba(34, 28, 18, 0.2);
}
.value-card--wide { grid-column: 1 / -1; }
.value-card__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--sage-soft);
  color: var(--sage-deep);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.value-card h3 {
  font-size: 21px;
  line-height: 1.3;
  margin-bottom: 12px;
  color: var(--ink);
}
.value-card p {
  color: var(--text-soft);
  font-size: 15.5px;
  line-height: 1.65;
  margin-bottom: 12px;
}
.value-card ul {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 6px 16px;
}
.value-card li {
  position: relative;
  padding-left: 22px;
  color: var(--ink);
  font-size: 14.5px;
  line-height: 1.55;
}
.value-card li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 12px; height: 1px;
  background: var(--sage);
}

.examples {
  margin-top: 60px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}
.examples__title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.25;
  margin-bottom: 32px;
  color: var(--ink);
  max-width: 32ch;
}
.examples__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.example {
  background: var(--cream);
  border-left: 2px solid var(--sage);
  border-radius: 4px 12px 12px 4px;
  padding: 20px 22px 22px;
}
.example__chip {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-deep);
  background: var(--sage-soft);
  padding: 5px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.example p {
  color: var(--text-soft);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 760px) {
  .value-grid { grid-template-columns: 1fr; }
  .value-card { padding: 28px 24px; }
  .examples { margin-top: 44px; padding-top: 36px; }
  .examples__title { margin-bottom: 24px; }
  .prep-card { padding: 26px 22px 24px; }
}

/* ============================================================
   SUBPAGE — Forberedelse / standalone pages
   ============================================================ */
.subpage-hero { padding-top: clamp(80px, 12vw, 140px); }
.subpage-hero .section-title { font-size: clamp(36px, 5vw, 64px); }
.subpage-cta {
  margin-top: 64px;
  text-align: center;
  border-top: 1px solid var(--line);
  padding-top: 48px;
}
.subpage-cta p {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 26px);
  color: var(--ink);
  margin-bottom: 22px;
}
.nav__links a[aria-current="page"] { color: var(--ink); font-weight: 500; }
.nav__mobile a[aria-current="page"] { color: var(--ink); font-weight: 500; }

/* ============================================================
   CHATBOT WIDGET
   ============================================================ */
.chatbot {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9000;
  font-family: var(--font-ui);
}
.chatbot__toggle {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
  position: relative;
  z-index: 1;
}
.chatbot__toggle:hover { transform: scale(1.06); background: var(--sage-deep); }
.chatbot__icon { display: block; }
.chatbot__icon--close { display: none; }
.chatbot.is-open .chatbot__icon--chat { display: none; }
.chatbot.is-open .chatbot__icon--close { display: block; }

.chatbot__panel {
  position: absolute;
  bottom: 76px;
  right: 0;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 520px;
  max-height: calc(100vh - 140px);
  background: var(--cream);
  border-radius: 16px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 18px 50px -10px rgba(34, 28, 18, 0.28);
  animation: chatbotIn 0.22s var(--ease);
}
.chatbot__panel[hidden] { display: none; }
@keyframes chatbotIn {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}
.chatbot__header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--sand);
}
.chatbot__brand-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.chatbot__brand-sub {
  font-size: 12px;
  color: var(--text-soft);
  margin-top: 2px;
  letter-spacing: 0.02em;
}

.chatbot__messages {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 18px 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chatbot__msg {
  max-width: 88%;
  padding: 11px 15px;
  border-radius: 16px;
  font-size: 14.5px;
  line-height: 1.5;
  word-wrap: break-word;
}
.chatbot__msg p { margin: 0; }
.chatbot__msg p + p { margin-top: 8px; }
.chatbot__msg strong { font-weight: 600; }
.chatbot__msg a { color: inherit; text-decoration: underline; }

.chatbot__msg--bot {
  align-self: flex-start;
  background: rgba(92, 107, 79, 0.12);
  color: var(--ink);
  border-bottom-left-radius: 4px;
}
.chatbot__msg--user {
  align-self: flex-end;
  background: var(--ink);
  color: var(--cream);
  border-bottom-right-radius: 4px;
}
.chatbot__msg--error {
  align-self: stretch;
  background: rgba(178, 60, 60, 0.1);
  color: #7a2e2e;
  font-size: 13px;
  text-align: center;
  border-radius: 8px;
}
.chatbot__msg--typing {
  align-self: flex-start;
  background: rgba(92, 107, 79, 0.12);
  border-bottom-left-radius: 4px;
  padding: 14px 18px;
}
.chatbot__msg--typing span {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--sage-deep);
  border-radius: 50%;
  margin: 0 2px;
  animation: chatbotDot 1.2s infinite;
}
.chatbot__msg--typing span:nth-child(2) { animation-delay: 0.2s; }
.chatbot__msg--typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes chatbotDot {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-4px); }
}

.chatbot__form {
  border-top: 1px solid var(--line);
  padding: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
  background: var(--cream);
}
.chatbot__hp {
  position: absolute;
  left: -9999px;
  top: -9999px;
}
.chatbot__input {
  flex: 1;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14.5px;
  font-family: inherit;
  background: var(--bg-soft);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
  min-width: 0;
}
.chatbot__input:focus {
  border-color: var(--sage);
  background: var(--cream);
  box-shadow: 0 0 0 3px rgba(92, 107, 79, 0.12);
}
.chatbot__send {
  width: 40px; height: 40px;
  border: none;
  background: var(--ink);
  color: var(--cream);
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s var(--ease);
}
.chatbot__send:hover { background: var(--sage-deep); }
.chatbot__send:disabled { opacity: 0.45; cursor: not-allowed; }

@media (max-width: 480px) {
  .chatbot { bottom: 16px; right: 16px; }
  .chatbot__panel {
    bottom: 72px;
    right: -8px;
    width: calc(100vw - 16px);
    height: calc(100vh - 110px);
    max-height: 600px;
  }
}

/* ============================================================
   INTRO VIDEO
   ============================================================ */
.intro-video {
  padding: clamp(60px, 8vw, 100px) 0;
  background: var(--sand);
}
.intro-video__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.05;
  color: var(--ink);
  letter-spacing: -0.02em;
  text-align: center;
  margin: 0 auto 40px;
}
.intro-video__frame {
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(34, 28, 18, 0.4);
  background: #fff;
  position: relative;
  max-width: 960px;
  aspect-ratio: 16 / 9;
}
.intro-video__frame[data-orientation="tablet"] {
  max-width: 540px;
  aspect-ratio: 1080 / 1440;
  border-radius: 14px;
}
.intro-video__frame[data-orientation="mobile"] {
  max-width: 360px;
  aspect-ratio: 9 / 16;
  border-radius: 18px;
}
.intro-video__player {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

@media (max-width: 640px) {
  .intro-video {
    padding: clamp(48px, 12vw, 80px) 0 clamp(60px, 8vw, 100px);
    scroll-margin-top: 80px;
  }
  .intro-video__title {
    margin-bottom: 28px;
    padding-top: 8px;
  }
  .intro-video__frame[data-orientation="mobile"] {
    max-width: min(340px, calc(100vw - 48px));
    border-radius: 14px;
    margin-top: 8px;
  }
}
