@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,600;12..96,700;12..96,800&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

/* ============================================================
   SKOGBRUKERFORENINGEN — "Lyst feltatlas" design system (v4)
   Light birch background, dark forest text, readable grass-green
   accent + chlorophyll for graphics. Interactive 3D point-cloud
   spruce on the homepage hero.
   ============================================================ */

:root {
  /* Backgrounds (light) */
  --bg:        #f2efe4;   /* warm birch paper */
  --ink-2:     #fbf9f1;   /* card surface, near-white */
  --ink-3:     #e8ebd9;   /* inset / placeholder pale sage */
  --sand:      #e7ebd9;   /* alt light section bg */
  --sand-2:    #dde2c8;

  /* Forest greens */
  --green-900: #16331f;
  --green-700: #285a39;
  --green-500: #3a8a4f;

  /* Text (dark) */
  --ink:       #16241a;   /* primary dark / button text */
  --bone:      #2a3a2c;   /* body text (soft dark) */
  --beige:     #2a3a2c;   /* legacy alias → dark */
  --cream:     #15251a;   /* legacy alias → dark (headings) */
  --muted:     rgba(22, 36, 26, 0.62);
  --muted-2:   rgba(22, 36, 26, 0.42);
  --line:      rgba(22, 36, 26, 0.14);
  --line-strong: rgba(22, 36, 26, 0.28);

  /* Accents */
  --accent:        #2f7d3f;   /* readable grass-green (text/links/markers) */
  --accent-dim:    #5c9e4a;
  --accent-bright: #7fce3f;   /* chlorophyll (graphics, button fills, 3D tree) */
  --accent-rgb:    47, 125, 63;
  --bright-rgb:    127, 206, 63;
  --bark:          #2f6b43;   /* legacy alias */
  --brown:         #2f6b43;
  --brown-700:     #20492e;

  /* Type */
  --font-display: 'Bricolage Grotesque', 'Segoe UI', sans-serif;
  --font-body:    'Inter', 'Segoe UI', Arial, sans-serif;
  --font-mono:    'IBM Plex Mono', 'Consolas', 'Courier New', monospace;

  --ease:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-2:  cubic-bezier(0.65, 0, 0.35, 1);
  --maxw: 1320px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--bone);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: auto;
}

/* Grain overlay (very subtle on light) */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 9000; pointer-events: none; opacity: 0.03; mix-blend-mode: multiply;
  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.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===== TYPOGRAPHY HELPERS ===== */
.display { font-family: var(--font-display); font-weight: 800; line-height: 0.96; letter-spacing: -0.02em; }
.mono { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.7em;
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent);
}
.eyebrow::before { content: ""; width: 9px; height: 9px; background: var(--accent); display: inline-block; transform: rotate(45deg); }
.accent { color: var(--accent); }

/* ===== LAYOUT ===== */
.container { width: 90%; max-width: var(--maxw); margin-inline: auto; }
.container--narrow { max-width: 920px; }
.container--wide { max-width: 1480px; }

.section { padding: clamp(72px, 11vh, 150px) 0; position: relative; }
.section--light { background: var(--sand); color: var(--ink); }

/* Hairline grid decoration */
.gridlines {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 100% 56px, 56px 100%;
  opacity: 0.6;
  mask-image: linear-gradient(180deg, transparent, #000 16%, #000 84%, transparent);
}

/* ===== HUD PANEL (corner ticks) ===== */
.panel { position: relative; border: 1px solid var(--line); }
.panel::before, .panel::after { content: ""; position: absolute; width: 10px; height: 10px; border-color: var(--accent); border-style: solid; pointer-events: none; }
.panel::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.panel::after { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }

/* ===== CUSTOM CURSOR (spruce) ===== */
.cursor-spruce {
  position: fixed; top: 0; left: 0; z-index: 9500; width: 28px; height: 36px; pointer-events: none;
  translate: -50% -55%; opacity: 0; color: var(--accent);
  transition: opacity 0.3s var(--ease), transform 0.2s var(--ease), color 0.3s;
  filter: drop-shadow(0 1px 2px rgba(22,36,26,0.35));
}
.cursor-spruce svg { width: 100%; height: 100%; }
.cursor-spruce.is-hover { transform: scale(1.4) rotate(-6deg); }
.cursor-dot { position: fixed; top: 0; left: 0; z-index: 9501; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); pointer-events: none; translate: -50% -50%; opacity: 0; }
body.has-cursor { cursor: none; }
body.has-cursor a, body.has-cursor button, body.has-cursor input, body.has-cursor textarea, body.has-cursor select { cursor: none; }

/* ===== SCROLL PROGRESS ===== */
.scroll-progress { position: fixed; top: 0; left: 0; height: 2px; width: 0%; background: var(--accent); z-index: 1200; transition: width 0.1s linear; }

/* ===== HEADER ===== */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1100; padding: 20px 0; transition: padding 0.4s var(--ease), background 0.4s var(--ease), border-color 0.4s; border-bottom: 1px solid transparent; }
.site-header.scrolled { padding: 12px 0; background: rgba(242, 239, 228, 0.88); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark { width: 40px; height: 40px; color: var(--accent); flex-shrink: 0; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.02rem; letter-spacing: -0.01em; color: var(--ink); line-height: 1.05; }
.brand-name small { display: block; font-family: var(--font-mono); font-weight: 400; font-size: 0.54rem; letter-spacing: 0.18em; color: var(--accent); margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav a { position: relative; font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.03em; text-transform: uppercase; color: var(--muted); padding: 8px 13px; transition: color 0.3s; white-space: nowrap; }
.nav a:hover, .nav a.active { color: var(--ink); }
.nav a.active::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 1px; height: 2px; background: var(--accent); }

.nav-cta { margin-left: 12px; font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink); background: var(--accent-bright); padding: 10px 16px; border-radius: 2px; white-space: nowrap; transition: background 0.3s, transform 0.3s; }
.nav-cta:hover { background: var(--accent); color: #fff; transform: translateY(-1px); }

/* Hamburger */
.burger { display: none; width: 44px; height: 44px; position: relative; z-index: 1300; flex-shrink: 0; }
.burger span { position: absolute; left: 9px; width: 26px; height: 2px; background: var(--ink); transition: transform 0.35s var(--ease), opacity 0.2s; }
.burger span:nth-child(1) { top: 16px; } .burger span:nth-child(2) { top: 23px; } .burger span:nth-child(3) { top: 30px; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav { position: fixed; inset: 0; z-index: 1200; background: var(--bg); padding: 110px 8% 40px; display: flex; flex-direction: column; gap: 2px; transform: translateY(-100%); transition: transform 0.5s var(--ease); visibility: hidden; overflow-y: auto; }
.mobile-nav.open { transform: translateY(0); visibility: visible; }
.mobile-nav a { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 7vw, 2.8rem); color: var(--ink); padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; align-items: baseline; gap: 16px; transition: color 0.3s, padding-left 0.3s; }
.mobile-nav a .idx { font-family: var(--font-mono); font-size: 0.72rem; color: var(--accent); }
.mobile-nav a:hover, .mobile-nav a.active { color: var(--accent); padding-left: 12px; }
.mobile-nav .m-contact { margin-top: 28px; }
.mobile-nav .m-contact a { font-family: var(--font-mono); font-size: 0.85rem; border: none; padding: 4px 0; color: var(--muted); display: block; }

/* ===== BUTTONS ===== */
.btn { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 0.76rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; padding: 15px 24px; border-radius: 2px; transition: transform 0.3s var(--ease), background 0.3s, color 0.3s, border-color 0.3s; will-change: transform; }
.btn svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--primary { background: var(--green-700); color: #fff; }
.btn--primary:hover { background: var(--green-900); }
.btn--accent { background: var(--accent-bright); color: var(--ink); }
.btn--accent:hover { background: var(--accent); color: #fff; }
.btn--ghost { border: 1px solid var(--line-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ===== HERO ===== */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 140px 0 60px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -2; background: radial-gradient(70% 60% at 82% 18%, rgba(var(--bright-rgb), 0.16), transparent 60%), radial-gradient(70% 70% at 6% 96%, rgba(58, 138, 79, 0.12), transparent 60%), var(--bg); }
.hero-layout { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.hero-copy { min-width: 0; }

/* interactive 3D canvas — own grid column, never overlaps the title */
.hero-canvas { position: relative; width: 100%; height: clamp(360px, 58vh, 600px); touch-action: none; cursor: grab; }
.hero-canvas:active { cursor: grabbing; }
.hero-canvas canvas { width: 100%; height: 100%; display: block; }
.hero-canvas .canvas-hint { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); white-space: nowrap; pointer-events: none; }

.hero-eyebrow { margin-bottom: 26px; }
.hero-eyebrow .caret { width: 9px; height: 1.05em; background: var(--accent); display: inline-block; margin-left: 2px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.5rem, 5vw, 4.8rem); line-height: 0.96; letter-spacing: -0.02em; color: var(--ink); max-width: 16ch; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub { margin-top: 28px; max-width: 46ch; font-size: clamp(1rem, 1.5vw, 1.18rem); color: var(--muted); line-height: 1.7; }
.hero-actions { margin-top: 42px; display: flex; gap: 14px; flex-wrap: wrap; }

.hero-meta { margin-top: clamp(40px, 7vh, 80px); }
.hero-meta .container { display: flex; justify-content: space-between; gap: 22px 40px; flex-wrap: wrap; width: 90%; padding-top: 24px; border-top: 1px solid var(--line); }
.hero-meta dl { display: flex; flex-direction: column; gap: 3px; }
.hero-meta dt { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.14em; color: var(--accent); text-transform: uppercase; }
.hero-meta dd { font-family: var(--font-mono); font-size: 0.82rem; color: var(--muted); }
.scroll-cue { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2); display: flex; align-items: center; gap: 10px; }
.scroll-cue::after { content: ""; width: 1px; height: 30px; background: linear-gradient(var(--accent), transparent); animation: scrolldown 2s infinite; }
@keyframes scrolldown { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ===== MARQUEE (outlined text) ===== */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; overflow: hidden; background: var(--sand); white-space: nowrap; }
.marquee-track { display: inline-flex; gap: 0; animation: marquee 36s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.2rem, 2.6vw, 2.2rem); letter-spacing: -0.01em; color: transparent; -webkit-text-stroke: 1px var(--green-700); padding: 0 24px; display: inline-flex; align-items: center; gap: 48px; }
.marquee-track span::after { content: "△"; -webkit-text-stroke: 0; color: var(--accent); font-size: 0.5em; }
.marquee-track span:hover { color: var(--green-900); -webkit-text-stroke: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ===== STATEMENT ===== */
.statement h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.8rem, 4.6vw, 3.8rem); line-height: 1.06; letter-spacing: -0.02em; color: var(--ink); max-width: 22ch; }
.statement h2 .dim { color: var(--muted-2); }
.statement h2 em { font-style: normal; color: var(--accent); }
.statement-grid { margin-top: 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.statement-grid p { color: var(--muted); max-width: 60ch; font-size: 1.02rem; }
.statement-grid p + p { margin-top: 18px; }

/* ===== FEATURE ROWS ===== */
.features { margin-top: 36px; border-top: 1px solid var(--line); }
.feature { display: grid; grid-template-columns: 86px 1fr 1.1fr; gap: 40px; padding: 40px 0; border-bottom: 1px solid var(--line); transition: background 0.4s; align-items: start; }
.feature:hover { background: rgba(var(--accent-rgb), 0.05); }
.feature-num { font-family: var(--font-mono); font-size: 0.95rem; color: var(--accent); padding-top: 6px; }
.feature h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.3rem, 2.6vw, 2.05rem); line-height: 1.08; letter-spacing: -0.01em; color: var(--ink); }
.feature p { color: var(--muted); font-size: 1.02rem; }

/* ===== ACTIVITY INDEX ===== */
.index-list { border-top: 1px solid var(--line); }
.index-item { display: flex; align-items: center; gap: 28px; padding: clamp(20px, 3.2vw, 38px) 4px; border-bottom: 1px solid var(--line); position: relative; transition: padding-left 0.4s var(--ease), color 0.4s; color: var(--ink); }
.index-item .num { font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent); width: 44px; flex-shrink: 0; }
.index-item .title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 4.4vw, 3.1rem); line-height: 1; letter-spacing: -0.02em; flex: 1; transition: transform 0.4s var(--ease); }
.index-item .arrow { font-size: 1.4rem; opacity: 0; transform: translateX(-12px); transition: opacity 0.4s, transform 0.4s; color: var(--accent); }
.index-item:hover { padding-left: 22px; color: var(--accent); }
.index-item:hover .arrow { opacity: 1; transform: translateX(0); }
.index-item .tag { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green-700); border: 1px solid var(--line-strong); padding: 4px 10px; border-radius: 2px; }
.index-preview { position: fixed; z-index: 60; width: 300px; height: 210px; border-radius: 4px; overflow: hidden; pointer-events: none; translate: -50% -50%; opacity: 0; transform: scale(0.94) rotate(-2deg); transition: opacity 0.35s var(--ease), transform 0.35s var(--ease); box-shadow: 0 24px 50px rgba(22,36,26,0.22); border: 1px solid var(--line-strong); background: var(--ink-2); color: var(--accent); }
.index-preview.is-visible { opacity: 1; transform: scale(1) rotate(0); }
.index-preview .art { position: relative; width: 100%; height: 100%; }
.index-preview .art::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 24px 24px; opacity: 0.6; }
.index-preview .art svg { position: relative; width: 100%; height: 100%; display: block; }

/* ===== DATASHEET ===== */
.datasheet { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border: 1px solid var(--line); background: var(--ink-2); }
.datasheet .row { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.datasheet .row:nth-child(odd) { border-right: 1px solid var(--line); }
.datasheet .k { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.datasheet .v { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--ink); text-align: right; }

.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 1px; }
.kpi { background: var(--ink-2); padding: 34px 26px; }
.kpi .big { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem, 5vw, 3.8rem); color: var(--accent); line-height: 1; letter-spacing: -0.02em; }
.kpi .lbl { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 12px; }

/* ===== CTA BANNER (deep-green focal block) ===== */
.cta-band { background: linear-gradient(135deg, var(--green-700), var(--green-900)); color: #eef6e8; text-align: center; }
.cta-band h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 6vw, 4.6rem); line-height: 1.0; letter-spacing: -0.02em; color: #fff; }
.cta-band p { margin: 20px auto 36px; max-width: 48ch; color: rgba(255,255,255,0.82); }

/* ===== PAGE HERO ===== */
.page-hero { position: relative; padding: clamp(104px, 12vh, 142px) 0 clamp(16px, 2.5vh, 34px); overflow: hidden; }
.page-hero .eyebrow { margin-bottom: 22px; }
.page-hero h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.3rem, 4.8vw, 4.3rem); line-height: 0.98; letter-spacing: -0.02em; color: var(--ink); }
.page-hero .lead { margin-top: 24px; max-width: 58ch; color: var(--muted); font-size: 1.08rem; }
.page-hero .container { display: grid; grid-template-columns: 1fr clamp(280px, 36%, 500px); grid-auto-rows: min-content; column-gap: clamp(20px, 3vw, 48px); align-content: center; min-height: clamp(280px, 36vh, 380px); }
.page-hero .container > :not(.rings-deco) { grid-column: 1; min-width: 0; }
.page-hero .rings-deco { grid-column: 2; grid-row: 1 / span 50; order: 2; align-self: stretch; width: 100%; height: 100%; min-height: clamp(280px, 36vh, 380px); color: var(--accent); touch-action: none; cursor: grab; }
.page-hero .rings-deco:active { cursor: grabbing; }
.page-hero .rings-deco svg { width: 100%; height: auto; }
.page-hero .rings-deco canvas { width: 100%; height: 100%; display: block; }
.back-link { cursor: pointer; }
.back-link::before { display: none; }
.back-link:hover { color: var(--ink); }

/* ===== ABOUT ===== */
.about-lead { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 3.4vw, 2.6rem); line-height: 1.18; letter-spacing: -0.01em; color: var(--ink); max-width: 26ch; }
.about-body { columns: 2; column-gap: 56px; margin-top: 52px; }
.about-body p { color: var(--muted); margin-bottom: 18px; break-inside: avoid; font-size: 1.02rem; }
.about-body p strong, .about-body em { color: var(--ink); font-style: normal; font-weight: 600; }

/* ===== SECTION-LINK + PORTAL CARDS ===== */
.section-cards { display: grid; gap: 24px; margin-top: 44px; }
.section-card { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 28px; border: 1px solid var(--line); border-radius: 4px; background: var(--ink-2); padding: clamp(28px, 4vw, 46px); transition: border-color 0.4s, transform 0.4s var(--ease), box-shadow 0.4s; }
.section-card:hover { border-color: var(--accent-dim); transform: translateY(-3px); box-shadow: 0 18px 40px rgba(22,36,26,0.08); }
.section-card .sc-eyebrow { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.section-card h3 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 3.2vw, 2.4rem); color: var(--ink); margin: 12px 0 14px; letter-spacing: -0.01em; }
.section-card p { color: var(--muted); max-width: 60ch; font-size: 1.0rem; }
.section-card .sc-arrow { width: 58px; height: 58px; border-radius: 50%; border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: center; color: var(--accent); transition: background 0.4s, transform 0.4s var(--ease), border-color 0.4s; flex-shrink: 0; }
.section-card .sc-arrow svg { width: 22px; height: 22px; }
.section-card:hover .sc-arrow { background: var(--accent); color: #fff; border-color: var(--accent); transform: translateX(4px); }

.portal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 40px; }
.portal { position: relative; background: var(--ink-2); padding: clamp(28px, 3.4vw, 44px); display: flex; flex-direction: column; min-height: 220px; transition: background 0.4s; }
.portal:hover { background: #fff; }
.portal .p-ico { width: 42px; height: 42px; color: var(--accent); margin-bottom: 22px; }
.portal h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.3rem, 2.4vw, 1.8rem); color: var(--ink); letter-spacing: -0.01em; }
.portal p { color: var(--muted); margin-top: 12px; font-size: 0.96rem; }
.portal .p-go { margin-top: auto; padding-top: 20px; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); display: inline-flex; align-items: center; gap: 8px; transition: gap 0.3s; }
.portal:hover .p-go { gap: 14px; }

/* ===== CHAPTERS ===== */
.chapters { margin-top: 50px; border-top: 1px solid var(--line); }
.chapter { display: grid; grid-template-columns: 220px 1fr; gap: 44px; padding: 48px 0; border-bottom: 1px solid var(--line); align-items: start; transition: background 0.4s; }
.chapter:hover { background: rgba(var(--accent-rgb), 0.05); }
.chapter .ch-tag { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.chapter .ch-tag .big { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 2.8vw, 2.1rem); color: var(--ink); letter-spacing: -0.01em; margin-top: 12px; text-transform: none; }
.chapter .ch-body p { color: var(--muted); max-width: 64ch; font-size: 1.02rem; }
.chapter .ch-body p + p { margin-top: 14px; }

/* ===== TRADITIONS ===== */
.tradisjoner { margin-top: 48px; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.tradisjon { background: var(--ink-2); padding: 34px clamp(24px, 3vw, 40px); display: grid; grid-template-columns: 64px 1fr; gap: 26px; align-items: start; transition: background 0.4s; }
.tradisjon:hover { background: #fff; }
.tradisjon .t-ico { width: 48px; height: 48px; color: var(--accent); }
.tradisjon h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: var(--ink); letter-spacing: -0.01em; }
.tradisjon p { color: var(--muted); margin-top: 10px; font-size: 0.98rem; max-width: 70ch; }
.hogst-note { display: flex; gap: 14px; align-items: flex-start; margin-top: 28px; padding: 18px 22px; border-left: 3px solid var(--accent); background: var(--ink-2); color: var(--ink); font-size: 0.98rem; }
.hogst-note svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }

/* ===== EVENTS ===== */
.events { margin-top: 46px; border-top: 1px solid var(--line); }
.event { display: grid; grid-template-columns: 132px 1fr 210px; gap: 36px; padding: 34px 0; border-bottom: 1px solid var(--line); align-items: center; transition: background 0.4s; }
.event:hover { background: rgba(var(--accent-rgb), 0.05); }
.event .date { font-family: var(--font-mono); color: var(--accent); font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; }
.event .date .d { display: block; font-family: var(--font-display); font-weight: 800; font-size: 2.1rem; color: var(--ink); letter-spacing: -0.01em; }
.event h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.2rem, 2.2vw, 1.65rem); color: var(--ink); letter-spacing: -0.01em; }
.event p { color: var(--muted); margin-top: 8px; font-size: 0.96rem; }
.event .ev-meta { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); text-align: right; }
.event .ev-meta span { display: block; padding: 3px 0; }
.event .ev-meta span.accent { color: var(--accent); }

/* ===== POSTS ===== */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 46px; }
.post { background: var(--ink-2); padding: clamp(26px, 3vw, 38px); min-height: 290px; display: flex; flex-direction: column; transition: background 0.4s; }
.post:hover { background: #fff; }
.post .tag { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); border: 1px solid var(--line); padding: 4px 10px; border-radius: 2px; align-self: flex-start; }
.post h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.25rem, 2.2vw, 1.6rem); color: var(--ink); margin-top: auto; letter-spacing: -0.01em; }
.post p { color: var(--muted); margin-top: 12px; font-size: 0.96rem; }
.post .more { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); margin-top: 22px; display: inline-flex; align-items: center; gap: 8px; transition: gap 0.3s; }
.post:hover .more { gap: 14px; }

/* ===== ARCHIVE (Pan-posten) ===== */
.archive-featured { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 46px; }
.issue { border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--ink-2); transition: border-color 0.4s, transform 0.4s var(--ease), box-shadow 0.4s; display: flex; flex-direction: column; }
.issue:hover { border-color: var(--accent-dim); transform: translateY(-4px); box-shadow: 0 18px 40px rgba(22,36,26,0.08); }
.cover-ph { position: relative; aspect-ratio: 3 / 4; background: var(--ink-3); color: var(--accent); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.cover-ph::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 26px 26px; opacity: 0.6; }
.cover-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover-ph .cover-mark { position: relative; text-align: center; padding: 20px; }
.cover-ph .cover-mark svg { width: 56px; height: 56px; margin: 0 auto 14px; }
.cover-ph .cover-mark .ttl { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; color: var(--ink); }
.cover-ph .cover-mark .sub { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-top: 8px; }
.issue .issue-meta { padding: 20px 22px; }
.issue .issue-meta .it { font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; color: var(--ink); }
.issue .issue-meta .iv { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-top: 8px; display: flex; gap: 14px; flex-wrap: wrap; }
.issue .issue-meta .iv .accent { color: var(--accent); }

/* ===== DATA TABLE ===== */
.table-wrap { margin-top: 28px; border: 1px solid var(--line); border-radius: 4px; overflow-x: auto; background: var(--ink-2); }
table.data-table { width: 100%; border-collapse: collapse; font-size: 0.94rem; min-width: 560px; }
.data-table thead th { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); text-align: left; padding: 16px 22px; border-bottom: 1px solid var(--line-strong); background: var(--sand); white-space: nowrap; }
.data-table tbody td { padding: 15px 22px; border-bottom: 1px solid var(--line); color: var(--bone); vertical-align: middle; }
.data-table tbody tr { transition: background 0.3s; }
.data-table tbody tr[data-href] { cursor: pointer; }
.data-table tbody tr:hover { background: rgba(var(--accent-rgb), 0.06); }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table .td-title { font-family: var(--font-display); font-weight: 700; color: var(--ink); }
.data-table .td-mono { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); white-space: nowrap; }
.data-table a { color: var(--accent); display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.data-table a:hover { text-decoration: underline; }
.data-table .cat { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--green-700); }
.lvl { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-strong); white-space: nowrap; }
.lvl--1 { color: var(--accent); border-color: rgba(var(--accent-rgb), 0.45); }
.lvl--2 { color: #9a7d18; border-color: rgba(154,125,24,0.4); }
.lvl--3 { color: #b4531f; border-color: rgba(180,83,31,0.4); }

/* ===== GALLERY ===== */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 46px; }
.shot { position: relative; aspect-ratio: 4 / 3; background: var(--ink-3); overflow: hidden; color: var(--accent); display: flex; transition: background 0.4s; }
.shot::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 26px 26px; opacity: 0.6; }
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shot .shot-art { position: relative; width: 100%; height: 100%; padding: 26px; transition: transform 0.6s var(--ease); }
.shot:hover .shot-art { transform: scale(1.05); }
.shot .cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 18px; background: linear-gradient(transparent, rgba(232,235,217,0.96)); }
.shot .cap .ct { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.shot .cap .cd { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-top: 6px; }
.shot .cap .arrow { position: absolute; right: 18px; bottom: 18px; color: var(--accent); opacity: 0; transform: translateX(-6px); transition: opacity 0.4s, transform 0.4s; }
.shot:hover .cap .arrow { opacity: 1; transform: translateX(0); }

/* ===== ALBUM ===== */
.album-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 46px; }
.photo { border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--ink-2); }
.photo .ph-frame { position: relative; aspect-ratio: 3 / 2; background: var(--ink-3); color: var(--accent); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.photo .ph-frame::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 26px 26px; opacity: 0.6; }
.photo .ph-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo .ph-frame svg { position: relative; width: 56px; height: 56px; }
.photo .ph-cap { padding: 18px 20px; color: var(--muted); font-size: 0.92rem; border-top: 1px solid var(--line); }

/* ===== RESOURCE CARDS / TOOL CARDS ===== */
.res-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.res-card { border: 1px solid var(--line); border-radius: 4px; background: var(--ink-2); padding: 32px 30px; transition: border-color 0.4s, transform 0.4s var(--ease), box-shadow 0.4s; }
.res-card:hover { border-color: var(--accent-dim); transform: translateY(-3px); box-shadow: 0 18px 40px rgba(22,36,26,0.08); }
.res-card .rc-ico { width: 38px; height: 38px; color: var(--accent); margin-bottom: 20px; }
.res-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--ink); letter-spacing: -0.01em; }
.res-card .rc-sub { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); margin-top: 6px; }
.res-card ul { margin-top: 20px; border-top: 1px solid var(--line); }
.res-card li a, .res-card li span.dis { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--bone); font-size: 0.95rem; transition: padding-left 0.3s, color 0.3s; }
.res-card li a:hover { padding-left: 8px; color: var(--accent); }
.res-card li a .ext { color: var(--accent); font-size: 0.9rem; }
.res-card li span.dis { color: var(--muted); }
.res-card li span.dis .soon { font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-2); border: 1px solid var(--line); padding: 2px 8px; border-radius: 2px; }

/* search-source chips */
.source-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 36px; }
.source-chip { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--ink-2); padding: 16px 18px; font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink); transition: border-color 0.3s, transform 0.3s var(--ease), background 0.3s; }
.source-chip:hover { border-color: var(--accent); transform: translateY(-2px); background: #fff; }
.source-chip .ext { color: var(--accent); }

/* compact tool cards (software) */
.tool-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; }
.tool-card { position: relative; border: 1px solid var(--line); border-radius: 4px; background: var(--ink-2); padding: 26px 24px; transition: border-color 0.4s, transform 0.4s var(--ease), box-shadow 0.4s; display: flex; flex-direction: column; }
.tool-card:hover { border-color: var(--accent-dim); transform: translateY(-3px); box-shadow: 0 16px 36px rgba(22,36,26,0.08); }
.tool-card .tc-ico { width: 38px; height: 38px; color: var(--accent); margin-bottom: 16px; }
.tool-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--ink); letter-spacing: -0.01em; }
.tool-card .tc-sub { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-top: 6px; }
.tool-card p { color: var(--muted); margin-top: 12px; font-size: 0.9rem; flex: 1; }
.tool-card .tc-dl { margin-top: 18px; font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); display: inline-flex; align-items: center; gap: 7px; transition: gap 0.3s; }
.tool-card .tc-dl svg { width: 13px; height: 13px; }
.tool-card:hover .tc-dl { gap: 12px; }

/* square tool tiles */
.tool-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.tool-tile { border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--ink-2); display: flex; flex-direction: column; transition: border-color 0.4s, transform 0.4s var(--ease), box-shadow 0.4s; }
.tool-tile:hover { border-color: var(--accent-dim); transform: translateY(-3px); box-shadow: 0 16px 36px rgba(22,36,26,0.08); }
.tool-tile .tt-img { position: relative; aspect-ratio: 16 / 10; background: var(--ink-3); color: var(--accent); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.tool-tile .tt-img::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 22px 22px; opacity: 0.6; }
.tool-tile .tt-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tool-tile .tt-img svg { position: relative; width: 40px; height: 40px; }
.tool-tile .tt-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.tool-tile .tt-title { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tool-tile .tt-title .ext { color: var(--accent); font-size: 0.85rem; }
.tool-tile .tt-desc { color: var(--muted); font-size: 0.86rem; margin-top: 8px; }

/* ===== DISCIPLINE GROUPS ===== */
.disc-groups { display: grid; grid-template-columns: 1fr; gap: 28px; margin-top: 44px; }
.disc-group { border: 1px solid var(--line); border-radius: 4px; background: var(--ink-2); padding: 32px clamp(24px,3vw,36px); }
.disc-group .dg-num { font-family: var(--font-mono); font-size: 0.7rem; color: var(--accent); }
.disc-group h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--ink); margin-top: 8px; letter-spacing: -0.01em; }
.disc-group .dg-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.disc-group .dg-tags span { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.04em; color: var(--green-700); border: 1px solid var(--line); padding: 5px 10px; border-radius: 999px; }
.disc-group .table-wrap { background: var(--bg); }
.disc-group .empty { margin-top: 18px; color: var(--muted-2); font-family: var(--font-mono); font-size: 0.78rem; }

/* ===== JOB LISTINGS ===== */
.joblist { margin-top: 40px; display: grid; gap: 18px; }
.job { display: grid; grid-template-columns: 120px 1fr auto; gap: 26px; align-items: center; border: 1px solid var(--line); border-radius: 4px; background: var(--ink-2); padding: 22px 26px; transition: border-color 0.4s, transform 0.3s var(--ease), box-shadow 0.4s; }
.job:hover { border-color: var(--accent-dim); transform: translateX(4px); box-shadow: 0 14px 32px rgba(22,36,26,0.08); }
.job .job-logo { width: 120px; height: 88px; border: 1px solid var(--line); border-radius: 3px; background: var(--ink-3); color: var(--accent); display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.job .job-logo img { width: 100%; height: 100%; object-fit: cover; }
.job .job-logo svg { width: 36px; height: 36px; }
.job .job-main h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--ink); letter-spacing: -0.01em; }
.job .job-main .job-tagline { color: var(--muted); font-size: 0.94rem; margin-top: 6px; }
.job .job-main .job-facts { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px; }
.job .job-main .job-facts span { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.job .job-main .job-facts span svg { width: 13px; height: 13px; color: var(--accent); }
.job .job-arrow { color: var(--accent); flex-shrink: 0; }
.job .job-arrow svg { width: 22px; height: 22px; }

/* job detail */
.job-detail { display: grid; grid-template-columns: 1fr 320px; gap: 40px; margin-top: 44px; align-items: start; }
.job-detail .jd-body h2 { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: var(--ink); margin: 30px 0 12px; letter-spacing: -0.01em; }
.job-detail .jd-body h2:first-child { margin-top: 0; }
.job-detail .jd-body p, .job-detail .jd-body li { color: var(--muted); font-size: 1.0rem; }
.job-detail .jd-body ul { margin-top: 8px; }
.job-detail .jd-body li { position: relative; padding: 4px 0 4px 22px; }
.job-detail .jd-body li::before { content: "›"; position: absolute; left: 4px; color: var(--accent); }
.job-detail .jd-side { border: 1px solid var(--line); border-radius: 4px; background: var(--ink-2); padding: 28px 26px; position: sticky; top: 100px; }
.job-detail .jd-side .jd-key { padding: 14px 0; border-bottom: 1px solid var(--line); }
.job-detail .jd-side .jd-key:last-of-type { border-bottom: none; }
.job-detail .jd-side .jd-key .k { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); display: block; }
.job-detail .jd-side .jd-key .v { color: var(--ink); margin-top: 5px; font-size: 0.96rem; }

/* ===== ORG CHART ===== */
.orgchart { margin-top: 44px; display: flex; flex-direction: column; align-items: center; }
.org-node { width: min(330px, 100%); }
.org-link { width: 2px; height: 30px; background: linear-gradient(var(--accent), var(--line-strong)); }
.org-branch { position: relative; display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; padding-top: 30px; width: 100%; }
.org-branch::before { content: ""; position: absolute; top: 0; left: 50%; width: 2px; height: 15px; background: var(--line-strong); transform: translateX(-50%); }
.org-branch::after { content: ""; position: absolute; top: 15px; left: 16%; right: 16%; height: 2px; background: var(--line-strong); }
.org-branch .org-node { position: relative; width: min(300px, 100%); }
.org-branch .org-node::before { content: ""; position: absolute; top: -15px; left: 50%; width: 2px; height: 15px; background: var(--line-strong); transform: translateX(-50%); }
.org-pair { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; }
.org-pair .org-node { width: min(330px, 100%); }

/* ===== ROSTER / ROLE ===== */
.roster { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.role { background: var(--ink-2); padding: 32px 28px; transition: background 0.4s, border-color 0.4s, box-shadow 0.4s; cursor: pointer; text-align: left; width: 100%; display: block; border: 1px solid var(--line); border-radius: 4px; }
.role:hover { background: #fff; border-color: var(--accent-dim); box-shadow: 0 16px 36px rgba(22,36,26,0.08); }
.role .av { width: 84px; height: 84px; border-radius: 50%; border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: center; color: var(--accent); margin-bottom: 20px; overflow: hidden; background: var(--ink-3); }
.role .av img { width: 100%; height: 100%; object-fit: cover; }
.role .av svg { width: 36px; height: 36px; }
.role .r { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.role .n { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--ink); margin-top: 10px; letter-spacing: -0.01em; }
.role .x { color: var(--muted); font-size: 0.9rem; margin-top: 10px; }
.role .role-contact { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 6px; }
.role .role-contact span { font-family: var(--font-mono); font-size: 0.66rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.role .role-contact span svg { width: 13px; height: 13px; color: var(--accent); }
.role .role-more { margin-top: 16px; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); display: inline-flex; align-items: center; gap: 8px; transition: gap 0.3s; }
.role:hover .role-more { gap: 14px; }
.role-detail { display: none; }

/* ===== MODAL ===== */
.modal-overlay { position: fixed; inset: 0; z-index: 2000; background: rgba(22, 36, 26, 0.55); backdrop-filter: blur(5px); display: flex; align-items: center; justify-content: center; padding: 24px; opacity: 0; visibility: hidden; transition: opacity 0.35s var(--ease), visibility 0.35s; }
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal-card { position: relative; width: min(680px, 100%); max-height: 88vh; overflow-y: auto; background: var(--ink-2); border: 1px solid var(--line-strong); border-radius: 6px; padding: clamp(28px, 4vw, 52px); transform: translateY(20px) scale(0.98); transition: transform 0.35s var(--ease); box-shadow: 0 30px 70px rgba(22,36,26,0.2); }
.modal-overlay.open .modal-card { transform: none; }
.modal-close { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--ink); display: flex; align-items: center; justify-content: center; transition: border-color 0.3s, color 0.3s, transform 0.3s; }
.modal-close:hover { border-color: var(--accent); color: var(--accent); transform: rotate(90deg); }
.modal-close svg { width: 18px; height: 18px; }
.modal-head { display: flex; gap: 22px; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 24px; margin-bottom: 24px; }
.modal-head .m-av { width: 92px; height: 92px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--ink-3); display: flex; align-items: center; justify-content: center; color: var(--accent); flex-shrink: 0; overflow: hidden; }
.modal-head .m-av svg { width: 40px; height: 40px; }
.modal-head .m-av img { width: 100%; height: 100%; object-fit: cover; }
.modal-head .m-role { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.modal-head .m-name { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 3vw, 2rem); color: var(--ink); margin-top: 8px; letter-spacing: -0.01em; }
.modal-head .m-contact { margin-top: 12px; display: flex; gap: 18px; flex-wrap: wrap; }
.modal-head .m-contact a { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); display: inline-flex; align-items: center; gap: 7px; transition: color 0.3s; }
.modal-head .m-contact a:hover { color: var(--accent); }
.modal-head .m-contact a svg { width: 14px; height: 14px; color: var(--accent); }
.modal-body p { color: var(--muted); font-size: 1.0rem; margin-bottom: 14px; }
.modal-body p strong { color: var(--ink); font-weight: 600; }
.modal-body a:not(.btn) { color: var(--accent); border-bottom: 1px solid var(--accent-dim); }

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--ink-2); }
.contact-left { padding: clamp(34px, 4.5vw, 66px); background: var(--sand); }
.contact-left h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.9rem, 4vw, 3rem); color: var(--ink); letter-spacing: -0.01em; }
.contact-left .lead { color: var(--muted); margin: 16px 0 36px; max-width: 42ch; }
.contact-direct { border-top: 1px solid var(--line); }
.contact-direct a, .contact-direct .row { display: flex; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); transition: padding-left 0.3s, color 0.3s; }
.contact-direct a:hover { padding-left: 10px; color: var(--accent); }
.contact-direct svg { width: 18px; height: 18px; fill: var(--accent); flex-shrink: 0; }
.contact-direct .ck { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); display: block; }
.contact-direct .cv { font-size: 1.0rem; color: var(--ink); }

.contact-right { padding: clamp(34px, 4.5vw, 66px); background: var(--ink-2); }
.form-field { margin-bottom: 20px; }
.form-field label { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 9px; }
.form-field input, .form-field textarea, .form-field select { width: 100%; background: var(--bg); border: 1px solid var(--line-strong); border-radius: 2px; color: var(--ink); font: inherit; font-size: 1rem; padding: 12px 12px; transition: border-color 0.3s; }
.form-field select option { background: var(--ink-2); color: var(--ink); }
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--muted-2); }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: none; border-color: var(--accent); }
.form-field textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-status { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.04em; color: var(--muted); margin-top: 16px; min-height: 1.1em; }
.form-status.ok { color: var(--accent); }
.form-status.err { color: #c0492b; }

.map-panel { margin-top: 54px; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--ink-2); }
.map-head { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.map-head .map-coord { color: var(--muted); }
.map-wrap { position: relative; height: 480px; background: var(--ink-3); }
.map-wrap iframe { position: relative; z-index: 1; width: 100%; height: 100%; border: none; }
.map-fallback { position: absolute; inset: 0; z-index: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 24px; color: var(--muted); }
.map-fallback .k { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.map-fallback .addr { font-family: var(--font-display); font-size: 1.1rem; color: var(--ink); }

/* ===== PDF VIEWER ===== */
.pdf-frame { margin-top: 40px; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--ink-2); }
.pdf-head { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.pdf-wrap { position: relative; height: 78vh; min-height: 520px; background: var(--ink-3); }
.pdf-wrap object, .pdf-wrap iframe { width: 100%; height: 100%; border: none; }
.pdf-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; padding: 30px; color: var(--muted); }
.pdf-fallback svg { width: 56px; height: 56px; color: var(--accent); }
.pdf-fallback .pf-t { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--ink); }

/* ===== NOTICE ===== */
.notice { display: flex; gap: 14px; align-items: flex-start; margin-top: 28px; padding: 18px 20px; border: 1px dashed var(--line-strong); border-radius: 4px; color: var(--muted); font-size: 0.9rem; line-height: 1.6; background: var(--ink-2); }
.notice svg { width: 18px; height: 18px; stroke: var(--accent); fill: none; flex-shrink: 0; margin-top: 2px; }
.notice code { font-family: var(--font-mono); font-size: 0.86em; color: var(--ink); }
.notice a { color: var(--accent); }

/* ===== NOTE CARD / ACCORDION (how-to) ===== */
.note-card { border: 1px solid var(--line); border-radius: 4px; background: var(--ink-2); padding: 30px clamp(24px, 3vw, 38px); margin-top: 24px; }
.note-card h4 { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--ink); display: flex; align-items: center; gap: 12px; }
.note-card h4 svg { width: 20px; height: 20px; color: var(--accent); }

.acc-group-title { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin: 40px 0 4px; display: flex; align-items: center; gap: 0.7em; }
.acc-group-title::before { content: ""; width: 9px; height: 9px; background: var(--accent); transform: rotate(45deg); }
.accordion { border-top: 1px solid var(--line); margin-top: 12px; }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 4px; text-align: left; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--ink); cursor: pointer; transition: color 0.3s; }
.acc-head:hover { color: var(--accent); }
.acc-head .acc-ico { width: 24px; height: 24px; border: 1px solid var(--line-strong); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--accent); flex-shrink: 0; transition: transform .3s, background .3s, color .3s; }
.acc-head .acc-ico svg { width: 12px; height: 12px; }
.acc-item.open .acc-head .acc-ico { background: var(--accent); color: #fff; transform: rotate(45deg); }
.acc-body { display: none; padding: 0 4px 22px; }
.acc-item.open .acc-body { display: block; }
.acc-body > p { color: var(--muted); font-size: 0.95rem; max-width: 72ch; }
.acc-body ol { margin: 8px 0 0; padding-left: 0; counter-reset: step; list-style: none; }
.acc-body ol li { position: relative; padding: 7px 0 7px 38px; color: var(--muted); font-size: 0.94rem; border-bottom: 1px solid var(--line); }
.acc-body ol li:last-child { border-bottom: none; }
.acc-body ol li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 6px; width: 24px; height: 24px; border: 1px solid var(--accent-dim); border-radius: 50%; color: var(--accent); font-family: var(--font-mono); font-size: 0.68rem; display: flex; align-items: center; justify-content: center; }
.acc-body code { font-family: var(--font-mono); font-size: 0.86em; color: var(--ink); background: rgba(var(--accent-rgb), 0.12); padding: 1px 6px; border-radius: 3px; word-break: break-word; }
.acc-body strong { color: var(--ink); }

/* ===== FOOTER ===== */
.site-footer { background: var(--sand); border-top: 1px solid var(--line); padding-top: clamp(64px, 8vh, 110px); }
.footer-cta { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; padding-bottom: 64px; border-bottom: 1px solid var(--line); }
.footer-cta h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 5vw, 4rem); line-height: 1.0; letter-spacing: -0.02em; color: var(--ink); max-width: 18ch; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding: 52px 0; }
.footer-col h4 { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; }
.footer-col a, .footer-col p { color: var(--muted); font-size: 0.92rem; display: block; padding: 5px 0; transition: color 0.3s; }
.footer-col a:hover { color: var(--ink); }
.footer-nav-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.footer-brand .brand { display: inline-flex; align-items: center; gap: 12px; padding: 0; }
.footer-brand .brand-name { font-size: 1.05rem; }
.footer-brand p { max-width: 34ch; margin-top: 16px; }
.footer-socials { display: flex; gap: 10px; margin-top: 22px; }
.footer-socials a { width: 40px; height: 40px; border: 1px solid var(--line-strong); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; padding: 0; transition: border-color 0.3s, background 0.3s, transform 0.3s; }
.footer-socials a:hover { border-color: var(--accent); background: rgba(var(--accent-rgb), 0.1); transform: translateY(-2px); }
.footer-socials svg { width: 16px; height: 16px; fill: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 24px 0; border-top: 1px solid var(--line); }
.footer-bottom p, .footer-bottom a { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.06em; color: var(--muted-2); }
.footer-bottom a:hover { color: var(--accent); }

/* ===== REVEAL ===== */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; } .reveal.d2 { transition-delay: 0.16s; } .reveal.d3 { transition-delay: 0.24s; } .reveal.d4 { transition-delay: 0.32s; }
.line-grow { transform-origin: left; transform: scaleX(0); transition: transform 1s var(--ease); }
.line-grow.in { transform: scaleX(1); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1080px) {
  .nav, .nav-cta { display: none; }
  .burger { display: block; }
  .statement-grid { grid-template-columns: 1fr; gap: 30px; }
  .feature { grid-template-columns: 60px 1fr; }
  .feature p { grid-column: 2; }
  .contact-grid { grid-template-columns: 1fr; }
  .posts { grid-template-columns: 1fr 1fr; }
  .roster { grid-template-columns: 1fr 1fr; }
  .res-groups, .source-grid { grid-template-columns: 1fr 1fr; }
  .archive-featured { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .chapter { grid-template-columns: 1fr; gap: 16px; }
  .event { grid-template-columns: 110px 1fr; }
  .event .ev-meta { grid-column: 2; text-align: left; margin-top: 8px; }
  .section-card { grid-template-columns: 1fr; gap: 22px; }
  .tool-cards { grid-template-columns: 1fr 1fr; }
  .tool-grid { grid-template-columns: 1fr 1fr; }
  .portal-grid { grid-template-columns: 1fr; }
  .job-detail { grid-template-columns: 1fr; }
  .job-detail .jd-side { position: static; }
  /* hero canvas: stack below text on tablet/mobile */
  .hero { min-height: auto; padding-top: 120px; }
  .hero-layout { grid-template-columns: 1fr; gap: 14px; }
  .hero-canvas { height: 330px; max-width: 460px; margin: 8px auto 0; }
  .page-hero .container { grid-template-columns: 1fr; min-height: 0; }
  .page-hero .container > .rings-deco { grid-column: 1; grid-row: auto; order: 2; height: 320px; max-width: 460px; margin: 16px auto 0; }
  .page-hero .container > :not(.rings-deco) { order: 1; }
}
@media (max-width: 720px) {
  .about-body { columns: 1; }
  .datasheet { grid-template-columns: 1fr; }
  .datasheet .row:nth-child(odd) { border-right: none; }
  .kpis { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-cta { flex-direction: column; align-items: flex-start; }
  .hero-meta { display: none; }
  .posts { grid-template-columns: 1fr; }
  .roster { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .archive-featured { grid-template-columns: 1fr; }
  .tool-cards { grid-template-columns: 1fr 1fr; }
  .tool-grid { grid-template-columns: 1fr 1fr; }
  .source-grid { grid-template-columns: 1fr; }
  .album-grid { grid-template-columns: 1fr; }
  .tradisjon { grid-template-columns: 1fr; gap: 16px; }
  .event { grid-template-columns: 88px 1fr; gap: 18px; }
  .event .date .d { font-size: 1.7rem; }
  .modal-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .job { grid-template-columns: 72px 1fr; }
  .job .job-logo { width: 72px; height: 64px; }
  .job .job-arrow { display: none; }
  .org-branch { flex-direction: column; align-items: center; }
  .org-branch::after, .org-branch::before, .org-branch .org-node::before { display: none; }
  .org-branch .org-node { padding-top: 0; }
  .org-branch .org-node + .org-node { margin-top: 22px; }
}
@media (max-width: 520px) {
  .header-inner { gap: 12px; }
  .brand { min-width: 0; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-name { font-size: 0.94rem; }
  .brand-name small { display: none; }
  .tool-cards, .tool-grid { grid-template-columns: 1fr; }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  .hero-eyebrow .caret { animation: none; }
  body.has-cursor { cursor: auto; }
  .cursor-spruce, .cursor-dot { display: none; }
}
