/* ================= About page ================= */
/* scroll reveal (only when JS is running, so content never stays hidden) */
.js-anim .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.2,1) var(--d, 0s), transform .8s cubic-bezier(.2,.7,.2,1) var(--d, 0s); }
.js-anim .reveal.in { opacity: 1; transform: none; }

/* ---------- hero ---------- */
.ab-hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #050a16 0%, #0a1426 45%, #12223f 100%); color: #cbd5e1; padding: 84px 0 0; }
.ab-aurora { position: absolute; inset: -20% -10% auto; height: 120%; pointer-events: none; filter: blur(60px); opacity: .75; }
.ab-aurora span { position: absolute; border-radius: 50%; mix-blend-mode: screen; animation: aurora 14s ease-in-out infinite alternate; }
.ab-aurora span:nth-child(1) { width: 60%; height: 45%; left: 5%; top: 0; background: radial-gradient(closest-side, rgba(132,204,22,.55), transparent); }
.ab-aurora span:nth-child(2) { width: 50%; height: 40%; right: 0; top: 8%; background: radial-gradient(closest-side, rgba(45,212,191,.42), transparent); animation-duration: 18s; animation-delay: -4s; }
.ab-aurora span:nth-child(3) { width: 45%; height: 35%; left: 35%; top: 22%; background: radial-gradient(closest-side, rgba(163,230,53,.35), transparent); animation-duration: 22s; animation-delay: -9s; }
@keyframes aurora { 0% { transform: translate(0, 0) scale(1) rotate(0deg); } 50% { transform: translate(6%, 4%) scale(1.15) rotate(8deg); } 100% { transform: translate(-5%, -3%) scale(.95) rotate(-6deg); } }
.ab-stars { position: absolute; inset: 0; background-image: radial-gradient(1.5px 1.5px at 12% 18%, #fff8, transparent), radial-gradient(1px 1px at 28% 42%, #fff6, transparent), radial-gradient(1.5px 1.5px at 52% 12%, #fff7, transparent), radial-gradient(1px 1px at 68% 30%, #fff5, transparent), radial-gradient(1.5px 1.5px at 84% 16%, #fff8, transparent), radial-gradient(1px 1px at 92% 44%, #fff5, transparent), radial-gradient(1px 1px at 40% 26%, #fff6, transparent); animation: twinkle 6s ease-in-out infinite alternate; }
@keyframes twinkle { from { opacity: .5; } to { opacity: 1; } }
.ab-hero-inner { position: relative; z-index: 2; padding-bottom: max(250px, 28vw); }
.ab-hero-copy { max-width: 640px; }
.ab-flag-badge { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 8px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); color: #fff; font-weight: 650; font-size: .85rem; margin-bottom: 22px; }
.ab-flag-badge svg { width: 26px; height: 19px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255,255,255,.2); }
.ab-hero h1 { color: #fff; font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.04; margin-bottom: 22px; letter-spacing: -.04em; }
.ab-grad { background: linear-gradient(90deg, #d9f99d, #84cc16 45%, #2dd4bf); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% 100%; animation: shine 6s ease-in-out infinite alternate; }
@keyframes shine { from { background-position: 0% 0; } to { background-position: 100% 0; } }
.ab-lede { font-size: 1.15rem; max-width: 560px; color: #cbd5e1; margin-bottom: 30px; }
.ab-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- numbers ---------- */
.ab-numbers { position: relative; z-index: 3; margin-top: -40px; }
.ab-num-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ab-num { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px 24px; box-shadow: var(--shadow); text-align: center; transition: transform .25s, box-shadow .25s; }
.ab-num:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.ab-num strong { display: block; font-size: 2.8rem; line-height: 1; font-weight: 800; letter-spacing: -.04em; color: var(--ink); margin-bottom: 8px; background: linear-gradient(180deg, #0b1324, #4d7c0f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ab-num span { color: var(--muted); font-size: .92rem; font-weight: 550; }

/* ---------- sections ---------- */
.ab-section { padding: 96px 0; }
.ab-story { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: center; }
.ab-story-text p { color: #475569; font-size: 1.06rem; }
.ab-story-text h2 { margin-bottom: 18px; }
.ab-story-card { position: relative; }
.ab-story-card::before { content: ''; position: absolute; inset: -18px 18px 18px -18px; border-radius: 26px; background: linear-gradient(135deg, var(--lime-100), #ccfbf1); transform: rotate(-3deg); }
.ab-quote { position: relative; background: var(--ink); color: #fff; border-radius: 24px; padding: 42px 38px; box-shadow: var(--shadow-lg); }
.ab-quote svg { width: 42px; height: 42px; color: var(--lime); margin-bottom: 14px; }
.ab-quote p { font-size: 1.45rem; line-height: 1.35; font-weight: 650; letter-spacing: -.02em; margin-bottom: 18px; }
.ab-quote span { color: #94a3b8; font-size: .9rem; }

.ab-values-wrap { background: linear-gradient(180deg, var(--bg-soft), #fff); }
.ab-values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ab-value { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px 24px; overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s; }
.ab-value::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--lime-500), #2dd4bf); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.ab-value:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--lime-100); }
.ab-value:hover::after { transform: scaleX(1); }
.ab-value .ic { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--lime-50); color: var(--lime-700); border: 1px solid var(--lime-100); margin-bottom: 18px; transition: transform .3s; }
.ab-value:hover .ic { transform: rotate(-8deg) scale(1.08); }
.ab-value .ic svg { width: 24px; height: 24px; }
.ab-value p { color: var(--muted); font-size: .94rem; margin: 0; }

.ab-process { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
.ab-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; position: relative; }
.ab-steps::before { content: ''; position: absolute; left: 31px; top: 30px; bottom: 30px; width: 2px; background: linear-gradient(var(--lime-500), #2dd4bf); opacity: .35; }
.ab-steps li { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px 20px 0; transition: border-color .2s, transform .2s; }
.ab-steps li:hover { border-color: var(--lime-500); transform: translateX(6px); }
.ab-steps .n { justify-self: center; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--ink); color: var(--lime); font-weight: 800; font-size: .92rem; position: relative; z-index: 1; }
.ab-steps h3 { margin: 4px 0 4px; font-size: 1.05rem; }
.ab-steps p { margin: 0; color: var(--muted); font-size: .94rem; }

/* ---------- Norway band ---------- */
.ab-norway { background: radial-gradient(800px 380px at 80% 50%, rgba(132,204,22,.18), transparent 60%), var(--ink); color: #cbd5e1; padding: 90px 0; overflow: hidden; }
.ab-norway-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
.ab-norway h2 { color: #fff; }
.ab-norway p { font-size: 1.06rem; color: #94a3b8; }
.ab-ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.ab-ticks li { display: flex; gap: 10px; align-items: center; color: #e2e8f0; }
.ab-ticks svg { width: 20px; height: 20px; color: var(--lime); }
.ab-compass { position: relative; justify-self: center; width: 300px; height: 300px; display: grid; place-items: center; }
.ab-compass .ring { position: absolute; border-radius: 50%; border: 1px solid rgba(163,230,53,.35); animation: pulse 4s ease-out infinite; }
.ab-compass .r1 { inset: 0; }
.ab-compass .r2 { inset: 40px; animation-delay: -1.3s; }
.ab-compass .r3 { inset: 80px; animation-delay: -2.6s; }
@keyframes pulse { 0% { transform: scale(.85); opacity: 0; } 30% { opacity: 1; } 100% { transform: scale(1.12); opacity: 0; } }
.ab-compass .rose { width: 150px; height: 150px; animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ab-compass .label { position: absolute; bottom: 18px; font-weight: 700; letter-spacing: .3em; font-size: .8rem; color: var(--lime); }

@media (prefers-reduced-motion: reduce) {
  .ab-aurora span, .ab-stars, .ab-grad, .ab-compass .ring, .ab-compass .rose, .ab-scene * { animation: none !important; }
  .fj-salmon, .fj-ripple, .fj-drops { opacity: 0 !important; }
  .js-anim .reveal { opacity: 1; transform: none; transition: none; }
}
@media (max-width: 1000px) {
  .ab-hero-inner, .ab-story, .ab-process, .ab-norway-inner { grid-template-columns: 1fr; }
    .ab-num-grid, .ab-values { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .ab-hero { padding-top: 64px; }
  .ab-num-grid, .ab-values { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ab-num strong { font-size: 2.1rem; }
  .ab-section { padding: 64px 0; }
}

/* ---------- fjord scene ---------- */
.ab-hero svg.ab-scene { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: max(320px, 44.45vw); z-index: 1; display: block; }
.ab-scene .fj-far, .ab-scene .fj-central, .ab-scene .fj-left, .ab-scene .fj-right, .ab-scene .fj-near { transition: transform .6s ease-out; }
.fj-moon-glow { animation: moonglow 6s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
@keyframes moonglow { from { opacity: .12; transform: scale(.92); } to { opacity: .26; transform: scale(1.08); } }
.fj-shimmer path { stroke-dasharray: 40 22; animation: shimmer 5s linear infinite; }
@keyframes shimmer { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -124; } }
.fj-glitter path { opacity: .45; stroke-dasharray: 14 6; animation: glitter 3.5s ease-in-out infinite alternate; }
.fj-glitter path.lamp { opacity: .4; animation: glitter-lamp 4s ease-in-out infinite; }
@keyframes glitter { from { opacity: .25; stroke-dashoffset: 0; } to { opacity: .6; stroke-dashoffset: 20; } }
@keyframes glitter-lamp { 0%, 100% { opacity: .15; } 50% { opacity: .55; } }
.fj-window { animation: flicker 5s ease-in-out infinite; }
.fj-window.w2 { animation-delay: -2.2s; }
@keyframes flicker { 0%, 100% { opacity: 1; } 45% { opacity: .75; } 50% { opacity: .95; } }
/* the salmon leap: 7s loop, airborne roughly 1.6s */
.fj-salmon { transform-box: view-box; animation: leap 7s cubic-bezier(.4,0,.6,1) infinite; opacity: 0; }
@keyframes leap {
  0%, 8% { transform: translate(0, 14px) rotate(-62deg); opacity: 0; }
  10% { transform: translate(6px, -6px) rotate(-55deg); opacity: 1; }
  18% { transform: translate(48px, -96px) rotate(-20deg); opacity: 1; }
  23% { transform: translate(78px, -116px) rotate(4deg); opacity: 1; }
  28% { transform: translate(110px, -92px) rotate(30deg); opacity: 1; }
  34% { transform: translate(146px, -4px) rotate(58deg); opacity: 1; }
  36%, 100% { transform: translate(152px, 14px) rotate(64deg); opacity: 0; }
}
.fj-ripple { transform-box: fill-box; transform-origin: center; opacity: 0; }
.fj-ripple.r-a { animation: ripple 7s ease-out infinite; animation-delay: .62s; }
.fj-ripple.r-b { animation: ripple 7s ease-out infinite; animation-delay: 2.35s; }
@keyframes ripple { 0% { opacity: .9; transform: scale(.3); } 20% { opacity: 0; transform: scale(2.4); } 100% { opacity: 0; transform: scale(2.4); } }
.fj-drops { opacity: 0; animation: drops 7s ease-out infinite; animation-delay: .6s; }
@keyframes drops { 0% { opacity: 1; transform: translateY(0); } 8% { opacity: 0; transform: translateY(-14px); } 100% { opacity: 0; } }
/* detail layers: mist, waterfall, lighthouse, stars */
.fj-mist ellipse { fill: #cbd5e1; opacity: .08; filter: url(#fj-blur); }
.fj-mist { animation: mist 26s ease-in-out infinite alternate; }
.fj-mist.m2 { animation-duration: 34s; animation-direction: alternate-reverse; }
@keyframes mist { from { transform: translateX(-40px); } to { transform: translateX(40px); } }
.fj-fall { fill: none; stroke: #e2e8f0; stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 7 3 12 4; opacity: .7; animation: fall 1s linear infinite; }
.fj-fall.thin { stroke-width: 1.2; opacity: .5; animation-duration: .9s; }
.fj-fall-glow { fill: none; stroke: #cbd5e1; stroke-width: 8; stroke-linecap: round; opacity: .12; }
@keyframes fall { to { stroke-dashoffset: -26; } }
.fj-spray { fill: #e2e8f0; opacity: .3; filter: url(#fj-soft); transform-box: fill-box; transform-origin: center; animation: spray 2.4s ease-in-out infinite alternate; }
@keyframes spray { from { opacity: .18; transform: scale(.85); } to { opacity: .4; transform: scale(1.15); } }
.fj-lamp { animation: lamp 4s ease-in-out infinite; }
@keyframes lamp { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.fj-beam { fill: url(#fj-beam-g); transform-box: fill-box; transform-origin: center; animation: beam 4s ease-in-out infinite; }
@keyframes beam { 0%, 100% { opacity: .15; transform: scaleX(.4); } 50% { opacity: .8; transform: scaleX(1); } }
.fj-stars circle:nth-child(3n) { animation: twinkle 3.2s ease-in-out infinite alternate; }
.fj-stars circle:nth-child(5n) { animation: twinkle 4.6s ease-in-out infinite alternate-reverse; }
@keyframes twinkle { from { opacity: .15; } to { opacity: .95; } }
@media (max-width: 560px) { .ab-hero-inner { padding-bottom: 230px; } .ab-hero svg.ab-scene { height: 300px; } }
@media (prefers-reduced-motion: reduce) { .ab-scene * { animation: none !important; } .fj-salmon, .fj-ripple, .fj-drops { opacity: 0 !important; } }
/* long words (e.g. Swedish "Verksamhetsområden") must not push the stat cards off small screens */
.ab-num { min-width: 0; overflow-wrap: break-word; hyphens: auto; }
