:root {
  --bg: #14181a;
  --bg-2: #1b2123;
  --bg-3: #222b2c;
  --ink: #ece7dc;
  --head: #f6f1e7;
  --muted: #9ba39f;
  --line: rgba(236, 231, 220, 0.14);
  --deep: #0e1213;
  --accent: #c2794c;
  --accent-2: #caa566;
  --accent-soft: rgba(194, 121, 76, 0.16);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(60vw 60vw at 102% -10%, rgba(194, 121, 76, 0.14), transparent 60%),
    radial-gradient(55vw 55vw at -12% 108%, rgba(54, 84, 81, 0.22), transparent 62%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(15, 19, 20, 0.62);
  border-bottom: 1px solid rgba(236, 231, 220, 0.08);
  backdrop-filter: blur(20px) saturate(150%);
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2) 55%, rgba(154, 168, 155, 0.6));
}

.site-header.scrolled {
  background: rgba(13, 17, 18, 0.9);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
  padding-top: 11px;
  padding-bottom: 11px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--head);
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: 7px;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.01em;
}

.nav a {
  position: relative;
  padding: 6px 1px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav a:not(.nav-cta):hover {
  color: var(--head);
}

.nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav a:not(.nav-cta):hover::after {
  transform: scaleX(1);
}

.nav .nav-cta {
  padding: 9px 18px;
  color: #14181a;
  background: var(--accent);
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 6px 18px rgba(194, 121, 76, 0.28);
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav .nav-cta:hover {
  background: var(--accent-2);
  transform: translateY(-1px);
}

.hero {
  min-height: calc(100svh - 71px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.85fr);
  align-items: stretch;
  border-bottom: 1px solid var(--line);
}

.hero-media {
  position: relative;
  min-height: 560px;
  padding: clamp(18px, 3vw, 34px);
  background: linear-gradient(160deg, var(--bg-2), var(--deep));
}

.hero-frame {
  position: relative;
  height: 100%;
  min-height: 520px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(236, 231, 220, 0.12);
  box-shadow: var(--shadow);
}

.hero-frame img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.hero-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 12, 12, 0) 40%, rgba(8, 12, 12, 0.62) 100%);
  pointer-events: none;
}

.hero-badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  border-radius: 999px;
  background: rgba(14, 18, 19, 0.72);
  color: var(--head);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid rgba(236, 231, 220, 0.16);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}

.hero-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(194, 121, 76, 0.22);
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  padding: clamp(34px, 6vw, 82px);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(194, 121, 76, 0.12), transparent 58%),
    var(--bg);
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--head);
  letter-spacing: 0;
}

h1 {
  margin-bottom: 0;
  max-width: 11ch;
  font-size: clamp(3.4rem, 7.5vw, 7rem);
  line-height: 0.98;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2.3rem, 4.4vw, 3.7rem);
  line-height: 1.02;
}

h3 {
  margin-bottom: 8px;
  color: var(--head);
  font-family: var(--sans);
  font-size: 1.08rem;
  font-weight: 600;
}

.lead {
  max-width: 36rem;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.32rem);
}

.hero-actions,
.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.button.primary {
  color: #14181a;
  background: var(--accent);
  border-color: var(--accent);
}

.button.primary:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
  transform: translateY(-1px);
}

.button.secondary {
  color: var(--head);
  background: transparent;
  border-color: rgba(236, 231, 220, 0.32);
}

.button.secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.section {
  padding: clamp(58px, 9vw, 112px) clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 38px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
}

/* Facts */
.facts {
  background:
    radial-gradient(90% 130% at 100% -25%, rgba(154, 168, 155, 0.14), transparent 55%),
    radial-gradient(70% 120% at 0% 125%, rgba(194, 121, 76, 0.16), transparent 55%),
    var(--bg-2);
  color: var(--head);
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
}

.fact-grid article {
  min-height: 150px;
  padding: 26px;
  border-right: 1px solid var(--line);
}

.fact-grid article:nth-child(4n),
.fact-grid article:last-child {
  border-right: 0;
}

.fact-grid span {
  display: block;
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.fact-grid strong {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  line-height: 1.12;
}

.split {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(30px, 7vw, 90px);
}

.sticky-heading {
  position: sticky;
  top: 104px;
  align-self: start;
}

.content-stack {
  display: grid;
  gap: 26px;
  color: var(--muted);
  font-size: 1.05rem;
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline article {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.timeline span {
  color: var(--accent);
  font-weight: 700;
}

/* Build story */
.build-story {
  background: var(--bg);
}

.story-list {
  display: grid;
  gap: clamp(28px, 5vw, 60px);
}

.story-item {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(24px, 5vw, 62px);
}

.story-item.reverse {
  direction: rtl;
}

.story-item.reverse > * {
  direction: ltr;
}

.story-item figure {
  margin: 0;
}

.story-item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

/* Stående bilder beholder mer av motivet */
.story-item img.portrait {
  aspect-ratio: 4 / 5;
}

.story-text {
  max-width: 40ch;
}

.story-step {
  display: inline-block;
  margin-bottom: 10px;
  font-family: var(--serif);
  font-style: italic;
  color: var(--accent);
  font-size: 2rem;
  font-weight: 600;
}

.story-text h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  color: var(--head);
}

.story-text p {
  color: var(--muted);
  font-size: 1.06rem;
}

/* Quality */
.quality {
  background: var(--bg-2);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  min-height: 230px;
  padding: 28px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.card p {
  color: var(--muted);
}

/* Gallery */
.gallery-section {
  background: var(--bg);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.gallery.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-item {
  margin: 0;
}

.gallery-item.large {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.gallery-item.large img {
  height: 100%;
  min-height: 100%;
  aspect-ratio: auto;
}

figcaption {
  margin-top: 11px;
  color: var(--muted);
  font-size: 0.9rem;
}

.image-placeholder {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  min-height: 230px;
  padding: 22px;
  color: var(--head);
  text-align: center;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-weight: 700;
}

.image-placeholder small {
  color: var(--muted);
  font-weight: 500;
}

/* Documents */
.documents {
  background: var(--bg-2);
}

.document-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.document-list a {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  min-height: 88px;
  padding: 22px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.document-list a:not([aria-disabled="true"]):hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.document-list a[aria-disabled="true"] {
  opacity: 0.62;
}

.document-list span {
  color: var(--head);
  font-weight: 600;
}

.document-list small {
  max-width: 250px;
  color: var(--muted);
  text-align: right;
}

/* Neighborhood */
.muted {
  background: var(--bg);
}

.neighborhood-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.neighborhood-grid div {
  min-height: 116px;
  display: grid;
  place-items: center;
  padding: 16px;
  color: var(--head);
  background: rgba(236, 231, 220, 0.04);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* FAQ */
.faq {
  background: var(--bg-2);
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 920px;
}

details {
  padding: 20px 22px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 10px;
}

summary {
  cursor: pointer;
  color: var(--head);
  font-weight: 600;
}

details p {
  margin: 14px 0 0;
  color: var(--muted);
}

/* Sales */
.sales-links {
  background:
    radial-gradient(80% 130% at 0% 0%, rgba(194, 121, 76, 0.2), transparent 55%),
    radial-gradient(70% 130% at 100% 120%, rgba(154, 168, 155, 0.14), transparent 55%),
    var(--bg-2);
  color: var(--head);
}

.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: var(--bg);
}

.contact div {
  max-width: 760px;
}

.contact p:not(.eyebrow) {
  color: var(--muted);
}

/* Footer */
.footer {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  padding: 30px clamp(18px, 5vw, 72px);
  color: var(--muted);
  background:
    radial-gradient(60% 220% at 100% 0%, rgba(194, 121, 76, 0.14), transparent 55%),
    var(--deep);
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

.footer p {
  margin: 0;
}

@media (max-width: 980px) {
  /* Skjul lenkene, men behold Salg-CTA-en */
  .nav a:not(.nav-cta) {
    display: none;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .hero-media {
    min-height: 360px;
    order: 2;
  }

  .hero-frame,
  .hero-frame img {
    min-height: 340px;
  }

  .hero-content {
    order: 1;
  }

  .fact-grid,
  .card-grid,
  .document-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fact-grid article:nth-child(2) {
    border-right: 0;
  }

  .fact-grid article {
    border-bottom: 1px solid var(--line);
  }

  .split {
    grid-template-columns: 1fr;
  }

  .story-item,
  .story-item.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .sticky-heading {
    position: static;
  }

  .gallery,
  .gallery.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .neighborhood-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 12px 16px;
  }

  .brand {
    font-size: 1.2rem;
  }

  .hero-content {
    padding: 36px 18px 30px;
  }

  .hero-media {
    padding: 14px;
  }

  .hero-actions,
  .link-row {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .fact-grid,
  .card-grid,
  .document-list,
  .gallery,
  .gallery.three,
  .neighborhood-grid {
    grid-template-columns: 1fr;
  }

  .fact-grid article {
    border-right: 0;
  }

  .gallery-item.large {
    grid-column: auto;
    grid-row: auto;
  }

  .document-list a,
  .contact,
  .footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .document-list small {
    text-align: left;
  }
}

/* ============ Premium polish ============ */

/* Editorial aksent-strek foran overlinjer */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

/* Rolig bilde-zoom ved hover (byggehistorikk + galleri) */
.story-item figure,
.gallery-item {
  overflow: hidden;
  border-radius: 10px;
}

.story-item img,
.gallery-item img {
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

@media (hover: hover) {
  .story-item figure:hover img,
  .gallery-item:hover img {
    transform: scale(1.045);
  }
}

/* Filmkorn — taktil, redaksjonell dybde */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

@media (prefers-reduced-motion: no-preference) {
  /* Scroll-reveal — gli-fade inn ved visning */
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .reveal.in {
    opacity: 1;
    transform: none;
  }

  /* Subtil Ken Burns på hero-bildet */
  .hero-frame img {
    animation: kenburns 24s ease-in-out infinite alternate;
  }

  @keyframes kenburns {
    from {
      transform: scale(1);
    }
    to {
      transform: scale(1.06);
    }
  }
}
