/* ==========================================================================
   GJ-INVEST AS — Premium corporate stylesheet
   Heritage-luxury editorial system. Delt designgrunnlag; prosjektsidene
   (Festningsgata 16) bygger videre på denne via festningsgata.css.
   Display: Fraunces · Body: Hanken Grotesk · Accent: antique brass
   NB: Google Fonts lastes via <link> i HTML (ikke @import) for raskere render.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
    /* Pine / forest greens */
    --pine-950: #10211a;
    --pine-900: #14271d;
    --pine-850: #183022;
    --pine-800: #1d3a2a;
    --pine-700: #244833;
    --pine-600: #2c5a40;
    --pine-500: #356b4c;
    --pine-400: #5a8a6f;
    --moss:     #8fb29a;

    /* Antique brass accent */
    --brass-700: #8a6a35;
    --brass-600: #a07c41;
    --brass:     #b88f54;
    --brass-400: #cdab74;
    --brass-300: #e0c79b;
    /* Mørk brass for liten TEKST på lys bakgrunn (WCAG AA ≥ 4,5:1) */
    --brass-text: #7d5e2c;

    /* Warm neutrals / paper */
    --bone:      #faf7f1;
    --paper:     #f3eee3;
    --paper-2:   #ece4d6;
    --line:      #ddd4c4;
    --line-soft: #e9e1d3;

    /* Ink */
    --ink:       #20201a;
    --ink-soft:  #5c574a;
    --ink-faint: #6f6a5c;

    --white: #ffffff;

    --font-display: 'Fraunces', 'Playfair Display', Georgia, serif;
    --font-sans: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Shadows — soft, warm, layered */
    --sh-sm: 0 1px 2px rgba(32, 32, 26, 0.05), 0 2px 6px rgba(32, 32, 26, 0.05);
    --sh-md: 0 4px 10px rgba(32, 32, 26, 0.06), 0 12px 28px rgba(32, 32, 26, 0.08);
    --sh-lg: 0 10px 24px rgba(20, 39, 29, 0.10), 0 30px 60px rgba(20, 39, 29, 0.14);
    --sh-xl: 0 24px 50px rgba(20, 39, 29, 0.16), 0 50px 100px rgba(20, 39, 29, 0.18);

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --maxw: 1240px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-sans);
    color: var(--ink);
    background: var(--bone);
    line-height: 1.7;
    font-weight: 400;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--brass-300); color: var(--pine-950); }

/* Paper grain — subtle texture layered over everything */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: none;
    opacity: 0.45;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
}

/* Scroll progress bar */
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 2px;
    width: 0;
    background: linear-gradient(90deg, var(--brass-600), var(--brass-300));
    z-index: 10000;
    transition: width 0.1s linear;
}

/* ---------- Shared layout helpers ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 2.5rem; }

/* Visuelt skjult, men tilgjengelig for skjermleser */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}
.section { padding: clamp(5rem, 11vw, 9rem) 0; position: relative; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--brass-text);
}
.eyebrow::before {
    content: '';
    width: 28px;
    height: 1px;
    background: var(--brass);
}
.eyebrow.is-center::after {
    content: '';
    width: 28px;
    height: 1px;
    background: var(--brass);
}

.display {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.04;
    letter-spacing: -0.015em;
    font-optical-sizing: auto;
}

.section-head { max-width: 720px; }
.section-head.is-center { max-width: 760px; margin-inline: auto; text-align: center; }
.section-head .display {
    font-size: clamp(2rem, 4.4vw, 3.25rem);
    margin: 1.1rem 0 1.1rem;
}
.section-head p {
    color: var(--ink-soft);
    font-size: 1.06rem;
    max-width: 60ch;
}
.section-head.is-center p { margin-inline: auto; }

.lede { font-size: 1.15rem; }

/* ---------- Buttons ---------- */
.btn {
    --btn-bg: var(--pine-700);
    --btn-fg: var(--bone);
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.95rem 1.8rem;
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 1px solid transparent;
    border-radius: 2px;
    background: var(--btn-bg);
    color: var(--btn-fg);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
    overflow: hidden;
    isolation: isolate;
}
.btn svg { width: 16px; height: 16px; transition: transform 0.4s var(--ease); }
.btn:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); }
.btn:hover svg { transform: translateX(4px); }
.btn:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

.btn-primary { --btn-bg: var(--pine-700); --btn-fg: var(--bone); }
.btn-primary:hover { background: var(--pine-800); }

.btn-brass { --btn-bg: var(--brass-600); --btn-fg: #fff; }
.btn-brass:hover { background: var(--brass-700); }

.btn-ghost {
    background: transparent;
    color: currentColor;
    border-color: rgba(255, 255, 255, 0.35);
}
.btn-ghost.on-dark { color: var(--bone); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.6); }

.btn-outline-ink {
    background: transparent;
    color: var(--pine-700);
    border-color: var(--line);
}
.btn-outline-ink:hover { background: var(--pine-700); color: var(--bone); border-color: var(--pine-700); }

/* Text link with animated arrow */
.txtlink {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.86rem;
    letter-spacing: 0.04em;
    color: var(--pine-700);
    position: relative;
    width: max-content;
}
.txtlink::after {
    content: '';
    position: absolute;
    left: 0; bottom: -3px;
    height: 1px; width: 100%;
    background: var(--brass);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease);
}
.txtlink svg { width: 15px; height: 15px; transition: transform 0.4s var(--ease); }
.txtlink:hover::after { transform: scaleX(1); }
.txtlink:hover svg { transform: translateX(5px); }

/* ==========================================================================
   HEADER / NAV
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.4rem 0;
    transition: background 0.4s var(--ease), padding 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
    border-bottom: 1px solid transparent;
}
.site-header.scrolled {
    background: rgba(250, 247, 241, 0.85);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    padding: 0.85rem 0;
    box-shadow: 0 1px 0 rgba(20, 39, 29, 0.06), 0 10px 30px rgba(20, 39, 29, 0.07);
    border-bottom-color: var(--line-soft);
}
.nav-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

/* Wordmark logo built in type */
.brand { display: flex; align-items: center; gap: 0.85rem; }
.brand-mark {
    width: 42px; height: 42px;
    flex-shrink: 0;
    border-radius: 3px;
    display: grid;
    place-items: center;
    background: var(--pine-800);
    color: var(--bone);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.02rem;
    letter-spacing: 0.01em;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
    transition: background 0.4s var(--ease);
}
.scrolled .brand-mark { background: var(--pine-700); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.18rem;
    letter-spacing: 0.02em;
    color: var(--bone);
    transition: color 0.4s var(--ease);
}
.brand-sub {
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: rgba(250, 247, 241, 0.6);
    margin-top: 0.35rem;
    transition: color 0.4s var(--ease);
}
.scrolled .brand-name { color: var(--pine-900); }
.scrolled .brand-sub { color: var(--brass-text); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.2rem;
    list-style: none;
}
.nav-links a {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(250, 247, 241, 0.82);
    position: relative;
    padding: 0.2rem 0;
    transition: color 0.3s var(--ease);
}
.nav-links a::after {
    content: '';
    position: absolute;
    left: 0; bottom: -2px;
    width: 100%; height: 1px;
    background: var(--brass);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); }
.scrolled .nav-links a { color: var(--ink-soft); }
.scrolled .nav-links a:hover { color: var(--pine-700); }

.nav-actions { display: flex; align-items: center; gap: 1.1rem; }

.lang-toggle {
    background: transparent;
    border: 1px solid rgba(250, 247, 241, 0.35);
    color: var(--bone);
    padding: 0.4rem 0.75rem;
    border-radius: 2px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    transition: all 0.3s var(--ease);
}
.lang-toggle:hover { background: rgba(250, 247, 241, 0.12); border-color: rgba(250,247,241,0.6); }
.scrolled .lang-toggle { border-color: var(--line); color: var(--ink-soft); }
.scrolled .lang-toggle:hover { background: var(--pine-700); color: var(--bone); border-color: var(--pine-700); }

.nav-cta {
    padding: 0.55rem 1.15rem;
    font-size: 0.74rem;
    border-radius: 2px;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    /* ≥44×44 px touch-mål (26 px strek + padding) */
    padding: 14px 9px;
    margin: -8px -4px;
    z-index: 1002;
}
.hamburger span {
    width: 26px; height: 2px;
    background: var(--bone);
    transition: all 0.35s var(--ease);
}
.scrolled .hamburger span { background: var(--pine-900); }
.menu-open .hamburger span { background: var(--pine-900); }
.menu-open .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .hamburger span:nth-child(2) { opacity: 0; }
.menu-open .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 1001;
    background: var(--bone);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.5rem;
    gap: 0.4rem;
    transform: translateY(-100%);
    transition: transform 0.55s var(--ease);
    visibility: hidden;
    overflow-y: auto;
}
/* Lav skjerm (telefon i landskap): ikke sentrer — la menyen scrolle fra toppen */
@media (max-height: 520px) {
    .mobile-menu { justify-content: flex-start; padding-top: 4.5rem; }
}
.menu-open .mobile-menu { transform: translateY(0); visibility: visible; }
.mobile-menu a {
    font-family: var(--font-display);
    font-size: clamp(2rem, 9vw, 3rem);
    font-weight: 500;
    color: var(--pine-900);
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--line-soft);
    display: flex;
    align-items: baseline;
    gap: 1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), color 0.3s var(--ease);
}
.mobile-menu a .idx {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--brass-text);
}
.menu-open .mobile-menu a { opacity: 1; transform: translateY(0); }
.menu-open .mobile-menu a:nth-child(1) { transition-delay: 0.12s; }
.menu-open .mobile-menu a:nth-child(2) { transition-delay: 0.18s; }
.menu-open .mobile-menu a:nth-child(3) { transition-delay: 0.24s; }
.menu-open .mobile-menu a:nth-child(4) { transition-delay: 0.30s; }
.mobile-menu a:hover { color: var(--brass-600); }
.mobile-menu .lang-toggle {
    align-self: flex-start;
    margin-top: 2rem;
    border-color: var(--line);
    color: var(--ink-soft);
    font-size: 0.8rem;
    padding: 0.6rem 1.1rem;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow: hidden;
    background: var(--pine-950);
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center 60%;
    transform: scale(1.12);
    animation: kenburns 22s var(--ease-out) forwards;
}
@keyframes kenburns {
    from { transform: scale(1.12) translateY(0); }
    to   { transform: scale(1.0) translateY(-1.5%); }
}
.hero-media::after {
    content: '';
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(16, 33, 26, 0.55) 0%, rgba(16, 33, 26, 0.15) 32%, rgba(16, 33, 26, 0.45) 68%, rgba(16, 33, 26, 0.92) 100%),
        linear-gradient(100deg, rgba(16, 33, 26, 0.8) 0%, rgba(16, 33, 26, 0.18) 55%, rgba(16, 33, 26, 0) 80%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: var(--maxw);
    margin: auto auto 0;
    width: 100%;
    padding: clamp(6.5rem, 16vh, 9rem) 2.5rem clamp(3.5rem, 8vh, 6rem);
    color: var(--bone);
}
.hero .eyebrow { color: var(--brass-300); }
.hero .eyebrow::before { background: var(--brass-300); }
.hero-title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(2.8rem, 8vw, 6rem);
    line-height: 0.98;
    letter-spacing: -0.02em;
    margin: 1.4rem 0 1.5rem;
    max-width: 16ch;
    text-shadow: 0 2px 40px rgba(0,0,0,0.25);
}
.hero-title em {
    font-style: italic;
    font-weight: 400;
    color: var(--brass-300);
}
.hero-desc {
    font-size: clamp(1.02rem, 1.5vw, 1.22rem);
    font-weight: 300;
    line-height: 1.7;
    max-width: 52ch;
    color: rgba(250, 247, 241, 0.9);
    margin-bottom: 2.4rem;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

/* Hero meta row (bottom strip) */
.hero-meta {
    margin-top: clamp(2.5rem, 6vh, 4rem);
    padding-top: 1.6rem;
    border-top: 1px solid rgba(250, 247, 241, 0.18);
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem 3.5rem;
}
.hero-meta-item { display: flex; flex-direction: column; gap: 0.2rem; }
.hero-meta-item .k {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--bone);
}
.hero-meta-item .l {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(250, 247, 241, 0.6);
}

/* Scroll cue */
.scroll-cue {
    position: absolute;
    right: 2.5rem;
    bottom: clamp(3.5rem, 8vh, 6rem);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    color: rgba(250, 247, 241, 0.7);
    font-size: 0.66rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    writing-mode: vertical-rl;
}
.scroll-cue .line {
    width: 1px; height: 56px;
    background: linear-gradient(var(--brass-300), transparent);
    position: relative;
    overflow: hidden;
}
.scroll-cue .line::after {
    content: '';
    position: absolute; top: -50%; left: 0;
    width: 1px; height: 50%;
    background: var(--brass-300);
    animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue {
    0% { top: -50%; } 100% { top: 100%; }
}

/* ==========================================================================
   MANIFESTO
   ========================================================================== */
.manifesto { background: var(--bone); }
.manifesto-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: start;
}
.manifesto .mark {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 8vw, 6rem);
    line-height: 0.7;
    color: var(--brass);
    font-weight: 600;
}
.manifesto blockquote {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(1.5rem, 3.3vw, 2.5rem);
    line-height: 1.32;
    letter-spacing: -0.01em;
    color: var(--ink);
}
.manifesto blockquote .hl { color: var(--pine-600); font-style: italic; }
.manifesto cite {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-top: 2rem;
    font-style: normal;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    color: var(--ink-soft);
}
.manifesto cite::before { content: ''; width: 32px; height: 1px; background: var(--brass); }
.manifesto cite strong { color: var(--ink); font-weight: 700; }

/* ==========================================================================
   STATS BAND
   ========================================================================== */
.stats {
    background: var(--pine-900);
    color: var(--bone);
    position: relative;
    overflow: hidden;
}
.stats::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(120% 80% at 100% 0%, rgba(184, 143, 84, 0.14), transparent 55%),
        radial-gradient(80% 60% at 0% 100%, rgba(90, 138, 111, 0.18), transparent 60%);
    pointer-events: none;
}
.stats-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(250, 247, 241, 0.12);
    border: 1px solid rgba(250, 247, 241, 0.12);
}
.stat {
    background: var(--pine-900);
    padding: clamp(2rem, 4vw, 3.2rem) clamp(1.4rem, 2.5vw, 2.2rem);
}
.stat .num {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 5vw, 3.8rem);
    font-weight: 600;
    line-height: 1;
    color: var(--bone);
    display: flex;
    align-items: baseline;
    gap: 0.1em;
}
.stat .num .suffix { color: var(--brass-400); font-size: 0.7em; }
.stat .label {
    margin-top: 0.9rem;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    color: rgba(250, 247, 241, 0.62);
    line-height: 1.5;
}

/* ==========================================================================
   PROJECTS
   ========================================================================== */
.projects { background: var(--paper); }
.projects-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 3.5rem;
}
.group-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 4.5rem 0 2rem;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-soft);
}
.group-label::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.group-label .count {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--brass-text);
    font-weight: 600;
}

/* Featured project — editorial split */
.feature {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    background: var(--bone);
    border: 1px solid var(--line-soft);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--sh-md);
    transition: box-shadow 0.5s var(--ease), transform 0.5s var(--ease);
}
.feature:hover { box-shadow: var(--sh-xl); transform: translateY(-4px); }
.feature-media { position: relative; overflow: hidden; min-height: 420px; }
.feature-media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 1.1s var(--ease);
}
.feature:hover .feature-media img { transform: scale(1.05); }
.feature-media .badge { position: absolute; top: 1.4rem; left: 1.4rem; }
.feature-num {
    position: absolute;
    bottom: 1.2rem; left: 1.6rem;
    font-family: var(--font-display);
    font-size: 3.2rem;
    font-weight: 600;
    color: rgba(250, 247, 241, 0.9);
    line-height: 1;
    text-shadow: 0 4px 24px rgba(0,0,0,0.4);
}
.feature-body {
    padding: clamp(2.2rem, 4vw, 3.5rem);
    display: flex;
    flex-direction: column;
}
.feature-body .place {
    display: inline-flex; align-items: center; gap: 0.45rem;
    font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--brass-text);
    margin-bottom: 1rem;
}
.feature-body .place svg { width: 14px; height: 14px; }
.feature-body h3 {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3.5vw, 2.6rem);
    font-weight: 600;
    line-height: 1.05;
    margin-bottom: 1.1rem;
}
.feature-body p { color: var(--ink-soft); margin-bottom: 1.6rem; }
.feature-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.6rem 2.2rem;
    margin: 0.4rem 0 1.8rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
}
.feature-stats div { display: flex; flex-direction: column; gap: 0.15rem; }
.feature-stats .v {
    font-family: var(--font-display);
    font-size: 1.4rem; font-weight: 600; color: var(--pine-700);
}
.feature-stats .k {
    font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint);
}
.feature-body .txtlink { margin-top: auto; }

/* Project cards grid */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}
.card {
    background: var(--bone);
    border: 1px solid var(--line-soft);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); border-color: var(--line); }
.card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--pine-900); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.card:hover .card-media img { transform: scale(1.06); }
.card-media::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(16, 33, 26, 0.45), transparent 45%);
    opacity: 0;
    transition: opacity 0.5s var(--ease);
}
.card:hover .card-media::after { opacity: 1; }
.card-num {
    position: absolute;
    top: 1rem; right: 1.2rem;
    font-family: var(--font-display);
    font-size: 1.1rem; font-weight: 600;
    color: rgba(250, 247, 241, 0.85);
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.card-body { padding: 1.7rem 1.7rem 1.9rem; display: flex; flex-direction: column; flex: 1; }
.card-body .place {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--brass-text); margin-bottom: 0.7rem;
}
.card-body .place svg { width: 13px; height: 13px; }
.card-body h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; margin-bottom: 0.7rem; }
.card-body p { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.65; margin-bottom: 1.2rem; flex: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.4rem; }
.chip {
    font-size: 0.72rem; font-weight: 600;
    background: var(--paper-2);
    color: var(--ink-soft);
    padding: 0.32rem 0.7rem;
    border-radius: 2px;
    border: 1px solid var(--line-soft);
}
.card-links { display: flex; flex-direction: column; gap: 0.6rem; }

/* Status badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.85rem;
    border-radius: 2px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: rgba(250, 247, 241, 0.92);
    color: var(--pine-800);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    box-shadow: var(--sh-sm);
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pine-500); }
.badge.is-ongoing .dot { background: var(--pine-500); box-shadow: 0 0 0 3px rgba(53, 107, 76, 0.25); }
.badge.is-sale { color: var(--brass-700); }
.badge.is-sale .dot { background: var(--brass); box-shadow: 0 0 0 3px rgba(184, 143, 84, 0.25); }
.badge.is-sold { color: var(--ink-faint); }
.badge.is-sold .dot { background: var(--ink-faint); box-shadow: none; }

/* ==========================================================================
   APPROACH / PROCESS
   ========================================================================== */
.approach { background: var(--bone); }
.pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.6rem;
    margin-top: 3.5rem;
}
.pillar {
    padding: 2.4rem 2rem 2.6rem;
    border: 1px solid var(--line-soft);
    border-radius: 4px;
    background: linear-gradient(180deg, var(--bone), var(--paper) 220%);
    transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
    position: relative;
    overflow: hidden;
}
.pillar::before {
    content: '';
    position: absolute; top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--brass-600), var(--brass-300));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.55s var(--ease);
}
.pillar:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); border-color: var(--line); }
.pillar:hover::before { transform: scaleX(1); }
.pillar-icon {
    width: 56px; height: 56px;
    border-radius: 4px;
    display: grid; place-items: center;
    background: var(--pine-800);
    color: var(--brass-300);
    margin-bottom: 1.5rem;
}
.pillar-icon svg { width: 26px; height: 26px; }
.pillar h3 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; margin-bottom: 0.7rem; }
.pillar p { font-size: 0.95rem; color: var(--ink-soft); line-height: 1.7; }

/* Process timeline */
.process {
    margin-top: 4.5rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    counter-reset: step;
}
.step { position: relative; padding-top: 2.4rem; }
.step::before {
    counter-increment: step;
    content: counter(step, decimal-leading-zero);
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--brass-600);
    position: absolute; top: 0; left: 0;
}
.step::after {
    content: '';
    position: absolute; top: 0.55rem; left: 2.6rem; right: 0;
    height: 1px;
    background: var(--line);
}
.step:last-child::after { display: none; }
.step h4 { font-family: var(--font-display); font-size: 1.18rem; font-weight: 600; margin-bottom: 0.5rem; }
.step p { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.6; }

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about { background: var(--pine-900); color: var(--bone); position: relative; overflow: hidden; }
.about::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(90% 70% at 85% 10%, rgba(184,143,84,0.12), transparent 60%);
    pointer-events: none;
}
.about-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2.5rem, 6vw, 5.5rem);
    align-items: center;
}
.about .eyebrow { color: var(--brass-300); }
.about .eyebrow::before { background: var(--brass-300); }
.about h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    line-height: 1.1;
    margin: 1.2rem 0 1.6rem;
}
.about h2 em { font-style: italic; color: var(--brass-300); }
.about-text p { color: rgba(250, 247, 241, 0.78); margin-bottom: 1.2rem; }
.about-text p:last-of-type { margin-bottom: 0; }
.about-figure {
    position: relative;
    border-radius: 4px;
}
.about-figure img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: var(--sh-xl);
}
.about-figure::after {
    content: '';
    position: absolute;
    inset: 18px -18px -18px 18px;
    border: 1px solid var(--brass);
    border-radius: 4px;
    z-index: -1;
}
.about-figure .tag {
    position: absolute;
    left: -18px; bottom: 28px;
    background: var(--brass-600);
    color: #fff;
    padding: 1rem 1.4rem;
    border-radius: 3px;
    box-shadow: var(--sh-lg);
    max-width: 200px;
}
.about-figure .tag .v { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; line-height: 1; }
.about-figure .tag .k { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.9; margin-top: 0.3rem; }

.about-meta {
    margin-top: 2.4rem;
    display: flex;
    align-items: center;
    gap: 1.1rem;
    padding-top: 1.6rem;
    border-top: 1px solid rgba(250, 247, 241, 0.16);
}
.about-meta .badge-group {
    font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase;
    color: rgba(250,247,241,0.55);
}
.about-meta .badge-group strong { color: var(--bone); font-weight: 700; }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact { background: var(--bone); }
.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(2.5rem, 5vw, 4.5rem);
    align-items: start;
}
.people { display: grid; gap: 1.3rem; }
.person {
    display: flex;
    gap: 1.2rem;
    align-items: center;
    padding: 1.4rem 1.5rem;
    border: 1px solid var(--line-soft);
    border-radius: 4px;
    background: var(--bone);
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.person:hover { transform: translateX(4px); box-shadow: var(--sh-md); border-color: var(--line); }
.person-avatar {
    width: 64px; height: 64px;
    flex-shrink: 0;
    border-radius: 50%;
    display: grid; place-items: center;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--bone);
    background: radial-gradient(circle at 30% 25%, var(--pine-600), var(--pine-850));
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12), 0 0 0 4px var(--paper);
}
.person-info { flex: 1; }
.person-info h4 { font-family: var(--font-display); font-size: 1.18rem; font-weight: 600; }
.person-info .role { font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brass-text); margin: 0.15rem 0 0.6rem; }
.person-info a {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-size: 0.92rem; font-weight: 600; color: var(--pine-700);
    transition: color 0.3s var(--ease);
}
.person-info a svg { width: 15px; height: 15px; color: var(--brass-600); }
.person-info a:hover { color: var(--brass-700); }

/* Contact form / card */
.contact-card {
    background: var(--pine-900);
    color: var(--bone);
    border-radius: 4px;
    padding: clamp(2rem, 4vw, 3rem);
    box-shadow: var(--sh-lg);
    position: relative;
    overflow: hidden;
}
.contact-card::before {
    content: '';
    position: absolute; top: 0; right: 0;
    width: 200px; height: 200px;
    background: radial-gradient(circle at 100% 0%, rgba(184,143,84,0.22), transparent 70%);
    pointer-events: none;
}
.contact-card h3 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; margin-bottom: 0.5rem; position: relative; }
.contact-card .sub { color: rgba(250,247,241,0.7); font-size: 0.95rem; margin-bottom: 1.8rem; position: relative; }
.field { margin-bottom: 1.1rem; position: relative; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field label {
    display: block;
    font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
    color: rgba(250,247,241,0.6);
    margin-bottom: 0.45rem;
}
.field input, .field textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(250, 247, 241, 0.06);
    border: 1px solid rgba(250, 247, 241, 0.18);
    border-radius: 3px;
    color: var(--bone);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: border-color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(250,247,241,0.35); }
.field input:focus, .field textarea:focus {
    outline: none;
    border-color: var(--brass);
    background: rgba(250, 247, 241, 0.1);
    box-shadow: 0 0 0 3px rgba(184, 143, 84, 0.18);
}
.field textarea { min-height: 110px; resize: vertical; }
.contact-card .btn { width: 100%; justify-content: center; margin-top: 0.5rem; }
.form-note { font-size: 0.78rem; color: rgba(250,247,241,0.6); margin-top: 1rem; text-align: center; position: relative; }
.form-privacy { font-size: 0.75rem; text-align: center; margin-top: 0.5rem; position: relative; }
.form-privacy a { color: rgba(250, 247, 241, 0.72); text-decoration: underline; text-underline-offset: 2px; }
.form-privacy a:hover { color: var(--bone); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--pine-950); color: rgba(250, 247, 241, 0.7); padding: clamp(3.5rem, 7vw, 5.5rem) 0 2rem; }
.footer-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(250, 247, 241, 0.12);
}
.footer-brand .brand-name { color: var(--bone); }
.footer-brand .brand-sub { color: var(--brass-400); }
.footer-brand p { margin-top: 1.3rem; font-size: 0.92rem; max-width: 34ch; line-height: 1.7; }
.footer-col h5 {
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--bone); margin-bottom: 1.2rem;
}
.footer-col a, .footer-col p { display: block; font-size: 0.92rem; line-height: 1.6; margin-bottom: 0.6rem; color: rgba(250,247,241,0.7); transition: color 0.3s var(--ease); }
.footer-col a:hover { color: var(--brass-300); }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 2rem;
    font-size: 0.8rem;
    color: rgba(250, 247, 241, 0.65);
}
.footer-bottom .parent {
    display: inline-flex; align-items: center; gap: 0.5rem;
}
.footer-bottom .parent strong { color: rgba(250,247,241,0.75); font-weight: 600; }

/* ==========================================================================
   REVEAL ANIMATIONS
   ========================================================================== */
[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
    transition-delay: var(--reveal-delay, 0s);
    will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal="fade"] { transform: none; }
[data-reveal="left"] { transform: translateX(-32px); }
[data-reveal="right"] { transform: translateX(32px); }
[data-reveal="scale"] { transform: scale(0.96); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1040px) {
    .feature { grid-template-columns: 1fr; }
    .feature-media { min-height: 320px; }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem 2.5rem; }
    .footer-brand { grid-column: 1 / -1; }
    /* Nav-lenkene får ikke plass på nettbrett (FG16-sidene trenger ~1000px) —
       bytt til hamburger her, men behold CTA-knappen synlig. */
    .nav-links, .nav-actions .lang-toggle.is-desktop { display: none; }
    .hamburger { display: flex; }
}

@media (max-width: 920px) {
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .pillars { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
    .process { grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; }
    .step::after { display: none; }
    .about-grid { grid-template-columns: 1fr; }
    .about-figure { max-width: 420px; margin: 0 auto; order: -1; }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    .wrap, .nav-inner, .hero-inner { padding-left: 1.4rem; padding-right: 1.4rem; }
    /* Primær-CTA beholdes synlig på mobil — kompakt variant ved siden av hamburgeren */
    .nav-cta { padding: 0.5rem 0.85rem; font-size: 0.66rem; letter-spacing: 0.04em; }
    .nav-actions { gap: 0.7rem; }
    .manifesto-inner { grid-template-columns: 1fr; gap: 1rem; }
    .manifesto .mark { font-size: 4rem; }
    .scroll-cue { display: none; }
    .hero-meta { gap: 1.6rem 2.5rem; }
    .field-row { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .cards { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; }
    .hero-title { font-size: clamp(2.4rem, 11vw, 3.2rem); }
}

/* ==========================================================================
   FORM — honeypot + status messages (shared)
   ========================================================================== */
/* Honeypot: visuelt skjult uten å påvirke layout (clip-teknikk, ikke
   display:none — botter som hopper over display:none fyller den fortsatt). */
.hp-field {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.form-status {
    margin-top: 1rem;
    padding: 0.85rem 1.1rem;
    border-radius: 3px;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.45;
    text-align: center;
    position: relative;
}
/* Live-regionen blir værende i DOM (for pålitelig opplesing) men kollapser
   visuelt når den er tom. */
.form-status:empty { margin: 0; padding: 0; border: 0; height: 0; overflow: hidden; }
/* Dark variant (GJ-Invest contact card on pine background) */
.form-status.is-success {
    background: rgba(95, 174, 116, 0.18);
    color: #cde7d3;
    border: 1px solid rgba(95, 174, 116, 0.55);
}
.form-status.is-error {
    background: rgba(204, 84, 64, 0.16);
    color: #f1c9c0;
    border: 1px solid rgba(204, 84, 64, 0.5);
}
.contact-card .btn[disabled] { opacity: 0.7; cursor: progress; transform: none; box-shadow: none; }

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    .hero-media img { transform: scale(1); animation: none; }
    [data-reveal] { opacity: 1 !important; transform: none !important; }
}
