/* ============================================================
   Somali Youth Resilience — futuristisk, profesjonelt designsystem
   Svart · somalisk flaggblå · hvit · oransje
   ============================================================ */
:root {
  --bg: #05070B;            /* nesten svart */
  --bg-alt: #0A0E15;        /* vekslende seksjoner */
  --panel: #0E131C;         /* kort */
  --panel-2: #131A26;
  --white: #FFFFFF;
  --blue: #4189DD;          /* somalisk flaggblå */
  --blue-bright: #6AA6EE;
  --blue-deep: #1D4F8F;
  --blue-soft: rgba(65, 137, 221, .14);
  --orange: #F5821F;
  --orange-bright: #FF9B42;
  --orange-soft: rgba(245, 130, 31, .14);
  --text: #F4F7FB;
  --text-dim: #B9C3D1;
  --text-faint: #7D8899;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .18);
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .6);
  --glow-blue: 0 0 0 1px rgba(65,137,221,.45), 0 0 30px rgba(65,137,221,.25);
  --f-display: 'Space Grotesk', 'Segoe UI', Arial, sans-serif;
  --f-body: 'Inter', 'Segoe UI', Arial, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; background: var(--bg); }
body {
  font-family: var(--f-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--blue); color: var(--white); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

/* ============ TOPPMENY (3 knapper, øverst til høyre) ============ */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: 72px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 clamp(16px, 3vw, 40px);
  background: transparent; border: 0;
}
.tb-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--f-display); font-weight: 700; font-size: 17px; color: var(--white); flex-shrink: 0; }
.tb-brand img { width: 48px; height: 48px; object-fit: contain; background: none; }
.tb-brand span { text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.tb-nav { display: flex; gap: 8px; margin-left: auto; }
.tb-nav a {
  white-space: nowrap; text-decoration: none; font-family: var(--f-display); font-size: 15px; font-weight: 600;
  padding: 10px 18px; border-radius: 999px; color: var(--text-dim);
  border: 1px solid var(--line-strong); background: rgba(5,7,11,.35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: color .2s, border-color .2s, background .2s, box-shadow .2s;
}
.tb-nav a:hover { color: var(--white); border-color: var(--blue); }
.tb-nav a[aria-current="page"] { color: var(--white); background: var(--blue); border-color: var(--blue); box-shadow: 0 0 18px rgba(65,137,221,.4); }
.tb-nav a.tb-contact:not([aria-current]) { border-color: var(--orange); color: var(--white); }
.tb-nav a.tb-contact:not([aria-current]):hover { background: var(--orange); }
.tb-nav .short { display: none; }

/* ============ HOVEDINNHOLD ============ */
main, .site-footer { position: relative; z-index: 1; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
.slide { position: relative; padding: clamp(72px, 11vh, 120px) 0; }
.slide:nth-of-type(even) { background: var(--bg-alt); }
.slide:nth-of-type(even)::before { content: ''; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(65,137,221,.45), transparent); }

.slide-index {
  font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  color: var(--orange); display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px;
}
.slide-index::before { content: ''; width: 28px; height: 1px; background: var(--orange); box-shadow: 0 0 8px var(--orange); }
.slide-index[data-n]::after { content: attr(data-n); color: var(--text-faint); letter-spacing: .08em; }

h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; line-height: 1.15; color: var(--white); letter-spacing: -.01em; }
.title { font-size: clamp(30px, 3.8vw, 50px); max-width: 22ch; margin-bottom: 22px; letter-spacing: -.02em; }
.title em { font-style: normal; color: var(--blue); }
.lead { font-size: clamp(17px, 1.3vw, 19px); color: var(--text-dim); max-width: 64ch; }
p + p { margin-top: 1em; }
.prose p { color: var(--text-dim); }
.prose strong { color: var(--white); }

/* Knapper */
.btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; cursor: pointer;
  font-family: var(--f-body); font-weight: 600; font-size: 15px; padding: 14px 26px; border-radius: 999px;
  border: 1px solid transparent; transition: background .2s, border-color .2s, color .2s, box-shadow .25s, transform .2s;
}
.btn .arr { transition: transform .2s; }
.btn:hover .arr { transform: translateX(4px); }
.btn-sun { background: var(--orange); color: #111; }
.btn-sun:hover { background: var(--orange-bright); box-shadow: 0 0 30px rgba(245,130,31,.45); }
.btn-ghost { border-color: var(--line-strong); color: var(--white); background: rgba(255,255,255,.03); }
.btn-ghost:hover { border-color: var(--blue); box-shadow: var(--glow-blue); }
.link-arrow { font-weight: 600; font-size: 15px; color: var(--blue-bright); text-decoration: none; display: inline-flex; gap: 8px; margin-top: 16px; }
.link-arrow:hover { color: var(--orange); }

/* Merkelapper */
.tag { display: inline-block; font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; margin-bottom: 14px; }
.tag-sun { color: var(--orange-bright); background: var(--orange-soft); border: 1px solid rgba(245,130,31,.35); }
.tag-sky { color: var(--blue-bright); background: var(--blue-soft); border: 1px solid rgba(65,137,221,.4); }
.tag-mint { color: var(--white); background: rgba(255,255,255,.06); border: 1px solid var(--line-strong); }
.tag-rose { color: var(--white); background: var(--blue-deep); border: 1px solid var(--blue); }

/* Kort */
.glass {
  position: relative; background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  transition: box-shadow .3s, transform .3s var(--ease), border-color .3s;
}
.glass::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(65,137,221,.12), transparent 60%);
}
.glass:hover::after { opacity: 1; }
.lift:hover { transform: translateY(-4px); border-color: rgba(65,137,221,.45); box-shadow: var(--shadow-lg); }

/* Bilder */
.frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: #0B0F16; }
.frame img, .frame video { width: 100%; height: 100%; object-fit: cover; }
.frame .badge { position: absolute; left: 14px; bottom: 14px; z-index: 2; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: rgba(5,7,11,.75); backdrop-filter: blur(6px); color: var(--white); border: 1px solid var(--line-strong); }
.frame.illus { background: #F4EEE2; }
.frame.illus img { object-fit: contain; }

/* ============ FORSIDE: VIDEOHODE ============ */
.hero { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 110px 0 70px; overflow: hidden; background: #000; isolation: isolate; }
.hero-video { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-video video { width: 100%; height: 100%; object-fit: cover; opacity: .42; filter: saturate(1.1) contrast(1.05); }
.hero-video::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.55) 50%, rgba(0,0,0,.25) 100%),
    linear-gradient(0deg, #000 0%, transparent 35%),
    radial-gradient(900px 500px at 85% 20%, rgba(65,137,221,.28), transparent 70%);
}
.hero-grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .35;
  background-image: linear-gradient(rgba(65,137,221,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(65,137,221,.12) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse at 70% 40%, #000 10%, transparent 70%);
}
.hero-star { position: absolute; right: clamp(-120px, -4vw, -40px); top: 50%; transform: translateY(-50%); width: min(46vw, 620px); z-index: -1; opacity: .09; pointer-events: none; }
.hero-inner { position: relative; z-index: 2; }
.hero-tag { font-family: var(--f-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--blue-bright); display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-tag span { display: inline-flex; align-items: center; gap: 12px; }
.hero-tag span + span::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 8px var(--orange); }
.hero h1 { font-size: clamp(42px, 6.4vw, 92px); line-height: 1.02; max-width: 15ch; letter-spacing: -.035em; font-weight: 700; }
.hero h1 .line { display: block; }
.hero h1 .glow { color: var(--blue); text-shadow: 0 0 40px rgba(65,137,221,.45); }
.hero h1 .accent { color: var(--orange); }
.hero .lead { margin-top: 26px; max-width: 56ch; color: #D4DCE7; font-size: clamp(17px, 1.4vw, 20px); }

.video-ctrl {
  position: absolute; right: clamp(56px, 6vw, 80px); bottom: 28px; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  padding: 8px 14px; border-radius: 999px; color: var(--text-dim);
  background: rgba(0,0,0,.5); border: 1px solid var(--line-strong); backdrop-filter: blur(6px);
}
.video-ctrl:hover { color: var(--white); border-color: var(--blue); }
.video-ctrl .rec { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 8px var(--orange); animation: pulse 1.6s infinite; }
.video-ctrl.paused .rec { animation: none; background: var(--text-faint); box-shadow: none; }
@keyframes pulse { 50% { opacity: .3; } }

.stats { margin-top: clamp(48px, 8vh, 84px); display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); overflow: hidden; background: rgba(5,7,11,.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.stat { padding: 22px 26px; position: relative; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-num { font-family: var(--f-display); font-size: clamp(24px, 2.4vw, 34px); font-weight: 700; display: block; color: var(--white); letter-spacing: -.02em; }
.stat-lbl { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); }
.stat::after { content: ''; position: absolute; left: 26px; top: 0; width: 28px; height: 2px; background: var(--blue); box-shadow: 0 0 10px var(--blue); }
.stat:nth-child(even)::after { background: var(--orange); box-shadow: 0 0 10px var(--orange); }

/* ============ SIDEHODE (undersider) ============ */
.page-hero { min-height: 0; display: flex; align-items: flex-end; padding: 150px 0 80px; background: #000; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(700px 360px at 85% 10%, rgba(65,137,221,.3), transparent 70%),
    radial-gradient(500px 260px at 5% 110%, rgba(245,130,31,.16), transparent 70%);
}
.page-hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .3;
  background-image: linear-gradient(rgba(65,137,221,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(65,137,221,.12) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.page-hero h1 { font-size: clamp(40px, 5.6vw, 76px); color: var(--white); max-width: 18ch; margin-bottom: 18px; letter-spacing: -.03em; font-weight: 700; }
.page-hero .lead { color: var(--text-dim); }
.page-hero .bg-word { display: none; }

/* Sidehode med bakgrunnsbilde (Om organisasjonen) */
.page-hero-photo { min-height: 100vh; min-height: 100svh; isolation: isolate; }
.page-hero-photo .page-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; z-index: -2; }
.page-hero-photo::before {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.15) 35%, rgba(0,0,0,.55) 70%, rgba(0,0,0,.88) 100%),
    linear-gradient(90deg, rgba(0,0,0,.55) 0%, transparent 65%);
}
.page-hero-photo::after { display: none; }
.page-hero-photo h1, .page-hero-photo .lead { text-shadow: 0 2px 18px rgba(0,0,0,.6); }
.page-hero-photo .lead { color: #E6ECF3; }
/* Lysere variant: bildet skal synes tydelig (Styret) */
.page-hero-clear .page-hero-bg { object-position: center 20%; }
.page-hero-clear::before {
  background: linear-gradient(180deg, transparent 0%, transparent 45%, rgba(0,0,0,.35) 65%, rgba(0,0,0,.75) 100%);
}

/* ============ OPPSETT ============ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 80px); align-items: center; }
.split.wide-left { grid-template-columns: 1.15fr .85fr; }
.split .frame { aspect-ratio: 4/3.4; box-shadow: var(--shadow-lg); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; margin-bottom: 48px; }
.head-row .title { margin-bottom: 0; }
.head-row .lead { max-width: 46ch; }

/* Programkort */
.prog { overflow: hidden; display: flex; flex-direction: column; }
.prog .frame { border-radius: 0; aspect-ratio: 16/10; }
.prog .frame img { transition: transform .6s var(--ease); }
.prog:hover .frame img { transform: scale(1.05); }
.prog-body { padding: 24px 24px 28px; display: flex; flex-direction: column; flex: 1; border-top: 1px solid var(--line); }
.prog-body h3 { font-size: 21px; margin-bottom: 10px; }
.prog-body p { color: var(--text-dim); font-size: 15.5px; flex: 1; }
.prog-idx { position: absolute; top: 14px; right: 16px; z-index: 2; font-family: var(--f-mono); font-size: 12px; color: var(--white); background: rgba(0,0,0,.55); border: 1px solid var(--line-strong); padding: 3px 9px; border-radius: 999px; }

/* Hvorfor */
.why-quote { font-family: var(--f-display); font-size: clamp(24px, 2.8vw, 38px); font-weight: 500; line-height: 1.35; max-width: 34ch; color: var(--white); letter-spacing: -.015em; }
.why-quote .hl { color: var(--blue); }
.realities { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 44px 0 34px; }
.reality { padding: 24px 22px; }
.reality .r-n { font-family: var(--f-mono); font-size: 11px; color: var(--orange); letter-spacing: .14em; text-transform: uppercase; }
.reality h3 { font-size: 18px; margin-top: 10px; line-height: 1.35; }
.reality .r-bar { height: 2px; margin-top: 18px; background: linear-gradient(90deg, var(--blue), transparent); }

/* Visjon (hva vi ønsker) */
.vision-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 8px; }
.vision { padding: 28px 26px; }
.vision .v-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px; background: var(--blue-soft); border: 1px solid rgba(65,137,221,.4); color: var(--blue-bright); font-family: var(--f-mono); font-size: 13px; }
.vision:nth-child(even) .v-ico { background: var(--orange-soft); border-color: rgba(245,130,31,.4); color: var(--orange-bright); }
.vision h3 { font-size: 20px; margin-bottom: 8px; }
.vision p { color: var(--text-dim); font-size: 15.5px; }

/* Fremtid – veikart */
.roadmap { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 10px; }
.roadmap::before { content: ''; position: absolute; left: 0; right: 0; top: 27px; height: 1px; background: linear-gradient(90deg, var(--blue), var(--orange), transparent); }
.phase { position: relative; padding-top: 64px; }
.phase .node { position: absolute; top: 18px; left: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); border: 2px solid var(--blue); box-shadow: 0 0 14px var(--blue); }
.phase:nth-child(2) .node { border-color: var(--white); box-shadow: 0 0 14px rgba(255,255,255,.6); }
.phase:nth-child(3) .node { border-color: var(--orange); box-shadow: 0 0 14px var(--orange); }
.phase .when { font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-bright); margin-bottom: 8px; }
.phase:nth-child(3) .when { color: var(--orange-bright); }
.phase h3 { font-size: 22px; margin-bottom: 16px; }
.phase ul { list-style: none; display: grid; gap: 10px; }
.phase li { padding: 14px 16px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); color: var(--text-dim); font-size: 15px; line-height: 1.5; }
.phase li strong { display: block; color: var(--white); font-family: var(--f-display); font-weight: 600; font-size: 16px; margin-bottom: 2px; }

/* Utvalgt arbeid */
.feature { display: grid; grid-template-columns: 1.2fr 1fr; overflow: hidden; }
.feature .media { position: relative; min-height: 480px; }
.feature .media .frame { position: absolute; inset: 0; border-radius: 0; }
.feature .info { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; }
.feature .info h3 { font-size: clamp(24px, 2.3vw, 32px); margin-bottom: 16px; }
.feature .info p { color: var(--text-dim); }
.feature-label { position: absolute; top: 18px; left: 18px; z-index: 3; font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; background: var(--orange); color: #111; }
.kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 24px 0 6px; }
.kv div { background: var(--bg); padding: 12px 14px; }
.kv dt { font-family: var(--f-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--blue-bright); }
.kv dd { font-weight: 600; font-size: 14.5px; margin-top: 2px; }
.thumbs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; margin-top: 22px; }
.thumbs .frame { aspect-ratio: 1; border-radius: 10px; }

.act { display: grid; grid-template-columns: 280px 1fr; gap: 0; overflow: hidden; margin-top: 22px; }
.act .frame { border-radius: 0; min-height: 220px; }
.act .act-body { padding: 26px 30px; }
.act h3 { font-size: 20px; margin-bottom: 10px; }
.act p { color: var(--text-dim); font-size: 15.5px; }

.date { font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; color: var(--text-faint); margin-bottom: 12px; display: flex; gap: 8px; align-items: center; align-self: flex-start; }
.date::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 8px var(--orange); }

/* Verdier / ikonkort */
.icard { padding: 30px 26px; }
.icard .ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; background: var(--blue-soft); border: 1px solid rgba(65,137,221,.35); margin-bottom: 20px; }
.icard h3 { font-size: 19px; margin-bottom: 10px; }
.icard p { color: var(--text-dim); font-size: 15.5px; }
.icard .foot-tag { margin-top: 18px; margin-bottom: 0; }
.icard .num { position: absolute; top: 22px; right: 22px; font-family: var(--f-mono); font-size: 12px; color: var(--text-faint); }

/* Tidslinje */
.timeline { position: relative; margin-top: 50px; padding-left: 40px; }
.timeline::before { content: ''; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 1px; background: linear-gradient(var(--blue), var(--orange)); }
.tl { position: relative; padding: 24px 28px; margin-bottom: 18px; }
.tl::after { content: ''; position: absolute; left: -38px; top: 30px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid var(--orange); box-shadow: 0 0 10px var(--orange); }
.tl-year { font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-bright); margin-bottom: 6px; }
.tl h3 { font-size: 20px; margin-bottom: 8px; }
.tl p { color: var(--text-dim); font-size: 15.5px; }

/* Partnere */
.partner { display: flex; gap: 20px; padding: 28px; }
.partner .ico { flex-shrink: 0; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; background: var(--blue-soft); border: 1px solid rgba(65,137,221,.35); }
.partner h3 { font-size: 18px; margin-bottom: 8px; }
.partner p { color: var(--text-dim); font-size: 15.5px; }
.partner.invite { border: 1px dashed var(--orange); }

/* Lister */
.checks { list-style: none; margin-top: 22px; display: grid; gap: 12px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; color: var(--text-dim); }
.checks li::before { content: '✓'; flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--orange-soft); border: 1px solid var(--orange); color: var(--orange-bright); font-size: 12px; font-weight: 700; display: grid; place-items: center; margin-top: 3px; }

/* Filterlinje */
.filter { position: sticky; top: 72px; z-index: 20; background: rgba(5,7,11,.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.filter .wrap { display: flex; gap: 8px; overflow-x: auto; padding-top: 12px; padding-bottom: 12px; scrollbar-width: none; }
.filter a, .filter button { white-space: nowrap; text-decoration: none; font-family: var(--f-body); font-size: 14px; font-weight: 600; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text-dim); background: transparent; cursor: pointer; transition: all .2s; }
.filter a:hover, .filter button:hover { color: var(--white); border-color: var(--blue); }
.filter a.active, .filter button.active { color: var(--white); background: var(--blue); border-color: var(--blue); box-shadow: 0 0 18px rgba(65,137,221,.4); }

/* Aktivitetsblokker (Vårt arbeid) */
.block { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; margin-top: 26px; scroll-margin-top: 90px; }
.block.reverse .media { order: 2; }
.block .media { position: relative; min-height: 420px; }
.block .media .frame { position: absolute; inset: 0; border-radius: 0; }
.block .body { padding: clamp(28px, 4vw, 48px); }
.block h3 { font-size: clamp(22px, 2vw, 28px); margin-bottom: 14px; }
.block p { color: var(--text-dim); }
/* Liggende bilde som vises i sin helhet (Jigjiga-laget) */
.block.block-wide { grid-template-columns: 1fr; }
.block .media.media-landscape { min-height: 0; order: 0; }
.block .media.media-landscape .frame { position: relative; inset: auto; aspect-ratio: 3 / 2; }
.act .frame.frame-landscape { min-height: 0; aspect-ratio: 3 / 2; align-self: center; }

/* Fremhevet blokk (Jigjiga) */
.spot { display: grid; grid-template-columns: 1.1fr .9fr; overflow: hidden; border-left: 2px solid var(--orange); }
.spot .body { padding: clamp(30px, 4vw, 52px); }
.spot h3 { font-size: clamp(24px, 2.2vw, 30px); margin-bottom: 14px; }
.spot p { color: var(--text-dim); }
.spot .media { position: relative; min-height: 400px; }
.spot .media .frame { position: absolute; inset: 0; border-radius: 0; }

/* Store tall */
.bignums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; }
.bignum { padding: 30px 26px; text-align: center; }
.bignum .n { font-family: var(--f-display); font-size: clamp(38px, 4vw, 56px); font-weight: 700; line-height: 1; color: var(--blue); text-shadow: 0 0 30px rgba(65,137,221,.35); }
.bignum:nth-child(even) .n { color: var(--orange); text-shadow: 0 0 30px rgba(245,130,31,.3); }
.bignum .l { margin-top: 14px; color: var(--text-dim); font-size: 15.5px; }

/* Oppfordring */
.cta { text-align: center; }
.cta .glass { padding: clamp(50px, 7vw, 90px) clamp(24px, 5vw, 70px); overflow: hidden; border-color: rgba(65,137,221,.35);
  background: radial-gradient(600px 300px at 50% 0%, rgba(65,137,221,.28), transparent 70%), radial-gradient(500px 240px at 50% 110%, rgba(245,130,31,.18), transparent 70%), var(--panel); }
.cta h2 { font-size: clamp(30px, 4vw, 52px); max-width: 22ch; margin: 0 auto 16px; letter-spacing: -.02em; }
.cta p { color: var(--text-dim); max-width: 58ch; margin: 0 auto; font-size: 18px; }
.cta .btns { justify-content: center; }

/* ============ GALLERI ============ */
.gallery { columns: 3 300px; column-gap: 18px; }
.g-item { break-inside: avoid; margin-bottom: 18px; position: relative; border-radius: var(--radius-lg); overflow: hidden; cursor: zoom-in; border: 1px solid var(--line); background: #0B0F16; display: block; width: 100%; padding: 0; text-align: left; color: inherit; font: inherit; transition: border-color .3s, box-shadow .3s, transform .3s var(--ease); }
.g-item img { width: 100%; height: auto; transition: transform .7s var(--ease), filter .4s; }
.g-item.illus { background: #F4EEE2; }
.g-item:hover { border-color: rgba(65,137,221,.6); box-shadow: 0 0 0 1px rgba(65,137,221,.3), 0 20px 50px rgba(0,0,0,.6); }
.g-item:hover img { transform: scale(1.04); }
.g-cap { position: absolute; inset: auto 0 0; padding: 40px 18px 16px; background: linear-gradient(transparent, rgba(0,0,0,.88)); }
.g-cap strong { display: block; font-family: var(--f-display); font-size: 17px; font-weight: 600; color: var(--white); line-height: 1.3; }
.g-cap span { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-bright); }
.g-item.hide { display: none; }
.g-video { break-inside: avoid; margin-bottom: 18px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid rgba(65,137,221,.45); position: relative; background: #000; }
.g-video video { width: 100%; height: auto; }
.g-video .g-cap { pointer-events: none; }

.lightbox { position: fixed; inset: 0; z-index: 80; display: none; place-items: center; padding: 40px clamp(16px, 6vw, 90px); background: rgba(0,0,0,.92); backdrop-filter: blur(6px); }
.lightbox.open { display: grid; }
.lightbox figure { max-width: 1200px; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.lightbox img { max-height: 78vh; width: auto; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.8); }
.lightbox img.illus { background: #F4EEE2; }
.lightbox figcaption { text-align: center; color: var(--text-dim); font-size: 15px; max-width: 70ch; }
.lightbox figcaption strong { display: block; color: var(--white); font-family: var(--f-display); font-size: 20px; font-weight: 600; }
.lb-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; font-size: 22px; color: var(--white); background: rgba(255,255,255,.06); border: 1px solid var(--line-strong); transition: border-color .2s, background .2s; }
.lb-btn:hover { border-color: var(--blue); background: var(--blue-soft); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; top: 32px; left: 24px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; color: var(--text-faint); }

/* ============ SKJEMA ============ */
.form-card { padding: clamp(26px, 3.5vw, 40px); }
.form-card h3 { font-size: 24px; margin-bottom: 6px; }
.form-card > p { color: var(--text-dim); margin-bottom: 24px; font-size: 15.5px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line-strong);
  background: rgba(0,0,0,.35); color: var(--text); font-family: var(--f-body); font-size: 16px; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--blue) 50%), linear-gradient(135deg, var(--blue) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field select option { background: var(--panel); color: var(--text); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(65,137,221,.25); }
.field input::placeholder, .field textarea::placeholder { color: #6B7585; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.submit { width: 100%; justify-content: center; margin-top: 8px; border: 0; }
.note { font-size: 13px; color: var(--text-faint); margin-top: 14px; text-align: center; }
.success { display: none; margin-top: 16px; padding: 14px 18px; border-radius: 10px; background: rgba(46,160,90,.12); border: 1px solid rgba(46,160,90,.5); color: #8FE0AE; font-size: 15px; }
.error-msg { display: none; margin-top: 12px; padding: 12px 16px; border-radius: 10px; background: rgba(220,70,60,.12); border: 1px solid rgba(220,70,60,.5); color: #FFA79E; font-size: 15px; }

.amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 20px; }
.amount { padding: 12px 6px; border-radius: 10px; border: 1px solid var(--line-strong); background: rgba(0,0,0,.3); color: var(--text); font-family: var(--f-body); font-weight: 700; font-size: 16px; cursor: pointer; transition: all .2s; }
.amount:hover { border-color: var(--blue); }
.amount.selected { background: var(--blue); color: var(--white); border-color: var(--blue); box-shadow: 0 0 18px rgba(65,137,221,.4); }

.roles { margin-top: 24px; display: grid; gap: 10px; }
.role { display: flex; gap: 16px; align-items: center; padding: 14px 18px; border-radius: 10px; }
.role .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 8px var(--orange); flex-shrink: 0; }
.role strong { display: block; font-size: 16px; }
.role span { color: var(--text-faint); font-size: 14.5px; }

.info-cards { display: grid; gap: 12px; margin-top: 28px; }
.info { display: flex; gap: 18px; align-items: center; padding: 16px 20px; }
.info .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: var(--blue-soft); border: 1px solid rgba(65,137,221,.35); flex-shrink: 0; }
.info h4 { font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-bright); }
.info p, .info a { font-weight: 600; text-decoration: none; }
.info a:hover { color: var(--orange); }

/* ============ BUNNTEKST ============ */
.site-footer { background: #000; color: var(--white); padding: 72px 0 28px; border-top: 1px solid var(--line); }
.site-footer::before { content: ''; position: absolute; top: -1px; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--blue) 0%, var(--white) 50%, var(--orange) 100%); opacity: .8; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.foot-brand img { width: 72px; margin-bottom: 16px; }
.foot-brand p { color: var(--text-dim); font-size: 15.5px; max-width: 34ch; }
.site-footer h4 { font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); margin-bottom: 16px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer ul a { text-decoration: none; color: var(--text-dim); font-size: 15px; transition: color .2s; }
.site-footer ul a:hover { color: var(--white); }
.foot-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--text-faint); }
.foot-bottom a { color: var(--text-faint); text-decoration: none; }
.foot-bottom a:hover { color: var(--white); }

/* ============ INNTONING ============ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }

.hero h1 .line > span { display: inline-block; animation: rise 1s var(--ease) both; }
.hero h1 .line:nth-child(2) > span { animation-delay: .12s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(30px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============ RESPONSIVT ============ */
@media (max-width: 1180px) {
  .realities, .bignums, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .feature { grid-template-columns: 1fr; }
  .feature .media { min-height: 360px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  .page-hero { padding-top: 120px; }
  .hero { padding-top: 110px; }
  .split, .split.wide-left, .block, .spot { grid-template-columns: 1fr; }
  .block.reverse .media { order: 0; }
  .block .media, .spot .media { min-height: 280px; }
  .grid-3, .roadmap { grid-template-columns: 1fr 1fr; }
  .act { grid-template-columns: 1fr; }
  .hero-star { display: none; }
}
@media (max-width: 640px) {
  .topbar { height: 64px; padding: 0 12px; gap: 8px; }
  .tb-brand span { display: none; }
  .tb-brand img { width: 36px; height: 36px; }
  .tb-nav { gap: 6px; }
  .tb-nav a { font-size: 13px; padding: 8px 12px; }
  .tb-nav .long { display: none; }
  .tb-nav .short { display: inline; }
  .filter { top: 64px; }
  html { scroll-padding-top: 80px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .grid-3, .grid-2, .grid-4, .realities, .bignums, .row2, .foot-grid, .vision-list, .roadmap { grid-template-columns: 1fr; }
  .roadmap::before { display: none; }
  .amounts { grid-template-columns: 1fr 1fr; }
  .kv { grid-template-columns: 1fr; }
  .partner { flex-direction: column; }
  .timeline { padding-left: 30px; }
  .tl::after { left: -28px; }
  .video-ctrl { right: 16px; bottom: 16px; }
  .lb-prev, .lb-next { top: auto; bottom: 20px; transform: none; }
}

.hero > .wrap, .page-hero > .wrap { width: 100%; }

/* ============ DONASJON (kontakt) ============ */
.donate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 44px; }
.donate { padding: clamp(26px, 3vw, 38px); display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden; }
.donate::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; }
.donate.so::before { background: linear-gradient(90deg, var(--blue), var(--white)); }
.donate.no::before { background: linear-gradient(90deg, #FF5B24, var(--orange)); }
.donate .d-flag { font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); }
.donate h3 { font-family: var(--f-display); font-size: clamp(22px, 2.4vw, 28px); color: var(--white); line-height: 1.2; }
.donate p { color: var(--text-dim); }
.d-details { display: grid; gap: 10px; margin: 6px 0; }
.d-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: rgba(255,255,255,.02); }
.d-row dt { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); }
.d-row dd { font-family: var(--f-display); font-weight: 600; color: var(--white); text-align: right; }
.d-row dd.big { font-size: clamp(24px, 3vw, 32px); letter-spacing: .04em; color: var(--orange); }
.d-pending { padding: 18px; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--text-dim); font-size: 15px; }
.copy-btn { align-self: flex-start; }
.copy-ok { font-size: 14px; color: var(--blue-bright); min-height: 1.4em; }
.steps { list-style: none; counter-reset: s; display: grid; gap: 8px; margin-top: 4px; }
.steps li { counter-increment: s; display: flex; gap: 12px; color: var(--text-dim); font-size: 15px; }
.steps li::before { content: counter(s); flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-mono); font-size: 12px; background: var(--orange-soft); color: var(--orange); }
@media (max-width: 980px) { .donate-grid { grid-template-columns: 1fr; } }

/* Galleri-filter inne i seksjonen */
.filter.g-filter { top: 72px; background: rgba(5,7,11,.85); border: 1px solid var(--line); border-radius: 999px; margin: 0 0 28px; }
.g-filter-row { display: flex; gap: 8px; overflow-x: auto; padding: 10px 12px; scrollbar-width: none; }
@media (max-width: 640px) { .filter.g-filter { top: 64px; border-radius: 14px; } }
.d-row dd a { color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.d-row dd a:hover { color: var(--orange); }

/* ============ STYRET ============ */
.members { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.member { overflow: hidden; display: flex; flex-direction: column; }
.m-photo { aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 12px, transparent 12px 24px), #0B0F16; border-bottom: 1px dashed var(--line-strong); }
.m-photo span { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; font-size: 36px; background: var(--blue-soft); border: 1px dashed rgba(65,137,221,.5); opacity: .8; }
.m-photo small { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); }
.m-body { padding: 22px 22px 26px; }
.m-num { font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--orange); margin-bottom: 16px; }
.m-fields { display: grid; gap: 14px; }
.m-fields dt { font-family: var(--f-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--blue-bright); margin-bottom: 6px; }
.m-empty { min-height: 34px; border-radius: 8px; border: 1px dashed var(--line-strong); background: rgba(255,255,255,.02); }
.m-about .m-empty { min-height: 96px; }
.split-success { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.split-success .checks { margin-top: 0; }
@media (max-width: 980px) { .members { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 980px) { .split-success { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .members { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .tb-nav { gap: 4px; } .tb-nav a { font-size: 12px; padding: 7px 9px; } }
.m-photo.has-img { padding: 0; border-bottom: 1px solid var(--line-strong); background: #0B0F16; overflow: hidden; }
.m-photo.has-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; }
.m-fields dd { line-height: 1.55; }
.team-intro { max-width: 820px; margin: 56px auto 0; text-align: center; }
.team-intro h3 { font-size: clamp(22px, 2.4vw, 30px); margin-bottom: 14px; }
.team-intro p { color: var(--text-dim); font-size: 17px; line-height: 1.7; }
.photo-pair { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 48px; align-items: start; }
.photo-pair .frame { margin: 0; box-shadow: var(--shadow-lg); }
.photo-pair .frame img { display: block; height: auto; object-fit: contain; image-rendering: auto; }
@media (max-width: 760px) { .photo-pair { grid-template-columns: 1fr; } }
.video-embed { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 32px; }
.local-video-frame { width: min(100%, 960px); aspect-ratio: 16/9; border-radius: var(--radius-lg); overflow: hidden; background: #0B0F16; box-shadow: var(--shadow-lg); border: 1px solid var(--line-strong); }
.local-video-frame video { width: 100%; height: 100%; display: block; object-fit: contain; background: #000; }
