/* ============ A7 MEDIA — global styles ============ */
:root {
  --bg: #0A0A0A;
  --bg-2: #121110;
  --bg-3: #1A1817;
  --ink: #F4F1EC;
  --ink-2: #C9C3B8;
  --ink-3: #7A7468;
  --line: rgba(244, 241, 236, 0.08);
  --line-2: rgba(244, 241, 236, 0.14);
  --gold: #D4AF6A;
  --gold-2: #E8C889;
  --gold-deep: #8B6F3D;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --f-display: "Cormorant Garamond", "Times New Roman", serif;
  --f-sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  /* film grain */
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

a { color: inherit; text-decoration: none; }

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 400;
}
.eyebrow .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  margin-right: 10px;
  transform: translateY(-2px);
  box-shadow: 0 0 10px var(--gold);
}

h1, h2, h3, .display {
  font-family: var(--f-display);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.02;
}
h2 { font-size: clamp(48px, 6.5vw, 96px); }
h3 { font-size: clamp(28px, 2.6vw, 40px); }

em, .italic { font-style: italic; color: var(--gold); font-weight: 300; }

/* ---------- Layout ---------- */
html, body { overflow-x: hidden; max-width: 100vw; }
.wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 48px;
}
@media (max-width: 768px) { .wrap { padding: 0 24px; } }
@media (max-width: 480px) { .wrap { padding: 0 20px; } }

section {
  position: relative;
  padding: 160px 0;
  border-top: 1px solid var(--line);
}
section:first-of-type { border-top: none; }

.section-head {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 64px;
  margin-bottom: 80px;
  align-items: start;
}
.section-head .meta { padding-top: 14px; }
.section-head .meta .num {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold);
  display: block;
  margin-bottom: 12px;
}
.section-head .meta .label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.section-head h2 { max-width: 16ch; }

@media (max-width: 900px) {
  .section-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 48px; }
  section { padding: 90px 0; }
}
@media (max-width: 600px) {
  section { padding: 72px 0; }
  .section-head { margin-bottom: 36px; }
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 24px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  mix-blend-mode: difference;
  color: #fff;
}
.nav .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.nav .brand img { 
  width: 34px; 
  height: 34px; 
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: filter 0.3s var(--ease);
}
.nav ul {
  display: flex;
  gap: 40px;
  list-style: none;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.nav ul a {
  opacity: 0.7;
  transition: opacity .3s var(--ease);
}
.nav ul a:hover { opacity: 1; }

.nav-cta {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 10px 18px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 999px;
  transition: all .3s var(--ease);
}
.nav-cta:hover { background: #fff; color: #000; border-color: #fff; }

/* ---------- Mobile burger button ---------- */
.nav-burger {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 44px;
  height: 44px;
  position: relative;
  z-index: 110;
  color: inherit;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  margin: 5px auto;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
  transform-origin: center;
}
.nav.open .nav-burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav.open .nav-burger span:nth-child(2) { opacity: 0; }
.nav.open .nav-burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Desktop: menu wrapper is transparent — children flow as siblings */
.nav-menu {
  display: contents;
}

@media (max-width: 900px) {
  .nav { padding: 18px 24px; }
  .nav-burger { display: block; }

  /* Menu becomes a full-screen overlay that slides in */
  .nav { mix-blend-mode: normal; }
  .nav-menu {
    display: flex;
    position: fixed;
    inset: 0;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 40px;
    padding: 80px 32px 40px;
    transform: translateX(100%);
    transition: transform .45s var(--ease);
    z-index: 100;
    pointer-events: none;
  }
  .nav.open .nav-menu {
    transform: none;
    pointer-events: auto;
  }
  .nav-menu ul {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
    letter-spacing: 0.24em;
    padding: 0;
    margin: 0;
    list-style: none;
  }
  .nav-menu ul li {
    border-bottom: 1px solid var(--line);
  }
  .nav-menu ul a {
    opacity: 1;
    display: block;
    padding: 22px 8px;
    font-family: var(--f-mono);
    text-transform: uppercase;
    color: var(--ink);
  }
  .nav-menu ul a:active { color: var(--gold); }
  .nav-menu .nav-cta {
    margin: 24px 8px 0;
    text-align: center;
    padding: 18px 24px;
    border: 1px solid var(--gold);
    background: var(--gold);
    color: #1a1405;
    border-radius: 0;
  }
  .nav-menu .nav-cta:hover,
  .nav-menu .nav-cta:active {
    background: var(--gold-2);
    color: #1a1405;
  }
  /* Prevent body scroll when menu is open (safeguard; also done in JS) */
  body.nav-locked { overflow: hidden; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 18px 28px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  transition: all .4s var(--ease);
  cursor: pointer;
  background: transparent;
  color: var(--ink);
}
.btn:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.btn.gold {
  background: var(--gold);
  color: #1a1405;
  border-color: var(--gold);
}
.btn.gold:hover {
  background: var(--gold-2);
  border-color: var(--gold-2);
}
.btn .arr {
  width: 14px; height: 14px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg) translate(-2px, 2px);
  transition: transform .4s var(--ease);
}
.btn:hover .arr { transform: rotate(45deg) translate(0, 0); }

/* ---------- Utility ---------- */
.divider {
  height: 1px;
  background: var(--line);
  width: 100%;
}
.gold-line {
  height: 1px;
  width: 48px;
  background: var(--gold);
}

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.fade-up.in { opacity: 1; transform: none; }

/* ================================================================
   MOBILE READABILITY — heve sm\u00e5 fonts, lysne svake gr\u00e5toner.
   Phones str\u00f8mmes ofte i sterkt sollys; sm\u00e5 11px-tekster i
   --ink-3 (#7A7468) eller mettet gull p\u00e5 m\u00f8rk er for lavt
   kontrast. Vi hever minimum-font og lysner --ink-3 under 720px.
   ================================================================ */
@media (max-width: 720px) {
  :root {
    --ink-3: #9C9485;       /* opp fra #7A7468 \u2014 ~+10% luminans */
    --line: rgba(244, 241, 236, 0.10);
    --line-2: rgba(244, 241, 236, 0.18);
  }

  /* Eyebrows + sm\u00e5 mono-labels: 11\u219213px, 10\u219212px */
  .eyebrow,
  .section-head .num,
  .foot-eyebrow,
  .legend-head,
  .map-readout,
  .scrub-labels,
  .blog-card .meta,
  .blog-card .read-more,
  .article-breadcrumbs,
  .article-byline,
  .article-hero figcaption,
  .related-head .back,
  .stats-row .stat .k,
  .blog-foot,
  .g-card-row,
  .g-card-sub,
  .g-foot-k,
  .g-stack-row .g-k,
  .g-thumb-idx,
  .g-thumb-sub,
  .g-lb-cat,
  .g-lb-info .k,
  .g-lb-info .v,
  .pb-name,
  .partner-mini .eyebrow,
  .top-chip .n,
  .map-stats-inline .k,
  .foot-h,
  .pkg-foot .pkg-price .from,
  .pkg-foot .pkg-price .kr {
    font-size: 12px !important;
    letter-spacing: 0.18em !important;
    line-height: 1.5 !important;
  }

  /* Btns p\u00e5 mobil: hev fra 11\u219212 + l\u00f8ftet line-height */
  .btn { font-size: 12px !important; line-height: 1.4 !important; }

  /* Sm\u00e5 mono-tekster i innholdet (10px) opp til 12 */
  .g-mode,
  .g-chip,
  .g-reel-count,
  .article-cta .eyebrow,
  .callout .cal-eyebrow,
  .article-body figure figcaption,
  .blog-card .meta,
  .blog-card.feature h2 + .meta,
  .stats-row .stat .k {
    font-size: 12px !important;
  }

  /* Gull-meta p\u00e5 mobil:
     beholde gull p\u00e5 lenker/aksenter, men bytte ren "tekst-meta"
     fra gull til ink-2 for bedre lesbarhet (typisk byline-blokker). */
  .article-byline .v { color: var(--ink) !important; }
  .article-byline .k { color: var(--ink-3) !important; opacity: 1 !important; }

  /* "Read more"-pilen p\u00e5 blogg-cards:
     hold fargen, men hev font + linjeavstand */
  .blog-card .read-more { font-size: 12px !important; line-height: 1.5 !important; }

  /* Ledetekst (lede / dek) p\u00e5 mobil \u2014 hev linjeh\u00f8yde litt */
  .lede, .hero-lede, .blog-hero .lede, .article-head .dek { line-height: 1.55 !important; }

  /* B\u00f8de bilde-meta-blokker (grid-card kapsel) f\u00e5r litt luft */
  .g-card-cap { padding: 18px 18px 20px !important; gap: 10px !important; }
  .g-card-title { font-size: 18px !important; }
}

/* ================================================================
   NABOSTRIPE / CITY-CLUSTER — felles stil for by-sider
   "Vi dekker ogs\u00e5" \u2014 2\u20133 nabobyer per side
   ================================================================ */
.city-neighbors {
  padding: 100px 0;
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.city-neighbors .nb-eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.city-neighbors h2 {
  font-family: var(--f-display);
  font-size: clamp(40px, 5vw, 56px);
  line-height: 1.05;
  font-weight: 300;
  margin-bottom: 16px;
  max-width: 22ch;
}
.city-neighbors h2 em {
  font-style: italic;
  color: var(--gold);
}
.city-neighbors .nb-lede {
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.6;
  max-width: 60ch;
  margin-bottom: 56px;
}
.nb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.nb-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.nb-card {
  display: block;
  background: var(--bg-2);
  padding: 36px 32px 32px;
  text-decoration: none;
  color: inherit;
  transition: background 0.3s var(--ease);
  position: relative;
}
.nb-card:hover { background: var(--bg-3); }
.nb-card:hover .nb-arrow { transform: translateX(6px); color: var(--gold); }
.nb-card:hover .nb-name em { color: var(--gold-2); }

.nb-num {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--ink-3);
  margin-bottom: 24px;
}
.nb-name {
  font-family: var(--f-display);
  font-size: 36px;
  line-height: 1.05;
  font-weight: 300;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.nb-name em {
  font-style: italic;
  color: var(--gold);
  transition: color 0.3s var(--ease);
}
.nb-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
  margin-bottom: 28px;
  max-width: 32ch;
}
.nb-arrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.3s var(--ease), color 0.3s var(--ease);
}

@media (max-width: 900px) {
  .city-neighbors { padding: 72px 0; }
  .nb-grid, .nb-grid.cols-2 { grid-template-columns: 1fr; }
  .nb-card { padding: 28px 24px; }
  .nb-name { font-size: 30px; }
}

