/* ============================================================
   NORLAN SOLUTIONS — front page
   Replaces the five-beat fixed-stage journey with a normal scrolling
   page. The aurora, the masked line-wipe and the progress rail all
   survive; the scroll hijack does not.

   Layout rule: the HERO is centred (Linear/Antigravity both are, and
   it suits a single declarative line). Every section BELOW it is
   left-aligned, which is what /turnus and /daniel-norlan already do.
   ============================================================ */

/* ---------- fixed sky ---------- */
/* Fjellhall-platen. Erstatter WebGL-nordlyset: shaderen kjørte på intensity
   0.40 og renderScale 0.66 og var i praksis usynlig bak scrimet. Platen ligger
   som bakgrunn på selve laget, canvaset er skrudd av under. Beholdt i DOM så
   aurora.js kan slås på igjen uten markup-endring. */
.sky-layer { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: image-set(url("/assets/hero/fjellhall.v1.avif") type("image/avif"),
                              url("/assets/hero/fjellhall.v1.webp") type("image/webp"));
  background-size: cover; background-position: center bottom;
  background-color: var(--bg); }
.sky-layer canvas { display: none; }
/* The old scrim fell to 0.12 alpha at mid-screen, which let the lit aurora
   drag muted text down to 2.14:1. This holds a floor under the text column
   and fades the sky out entirely by the time content starts. */
.sky-scrim { position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(115% 62% at 50% 30%, rgba(6,24,31,0.72) 0%, rgba(6,24,31,0.56) 46%, transparent 78%),
    linear-gradient(180deg,
      rgba(6,24,31,0.52) 0%, rgba(6,24,31,0.58) 26%,
      rgba(6,24,31,0.74) 62%, #06181F 92%); }
/* Målt på fjellhall-platen med teksten skjult: ledeteksten lå på 0,96x av
   WCAG-kravet, altså under. Den er #93abb0, en dempet grå som starter lavt, og
   den står nettopp der fjellveggene lysner. Radialen og 26 %-stoppet er hevet
   til den klarer kravet med margin. */
main { position: relative; z-index: 2; }
/* ---------- hero ---------- */
/* Deliberately shorter than the viewport so the top of the product frame
   breaks the fold. The cut-off frame is the scroll affordance — it does the
   job the old "Bla — og tenn himmelen" hint was doing with words. */
.hero {
  min-height: clamp(520px, 76svh, 820px);
  display: grid; align-content: center; justify-items: center; text-align: center;
  max-width: var(--maxw); margin: 0 auto;
  padding: calc(var(--nav-h) + 4vh) var(--pad) clamp(20px, 3vh, 40px);
}
/* Optical grouping: the label belongs to the headline, the CTA does not belong
   to the prose. The old page put a flat 24px between all four. */
.hero .eyebrow { margin-bottom: 10px; }
.hero h1 { max-width: 11em; margin-bottom: 26px; letter-spacing: -0.03em; }
.hero .lede { max-width: 58ch; margin-bottom: 34px; }
.hero .btn-row { justify-content: center; margin-bottom: 42px; }
.proofrow {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0;
  list-style: none; margin: 0 0 16px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 14px 0; max-width: 100%;
}
.proofrow li {
  display: flex; align-items: baseline; gap: 7px;
  padding: 2px clamp(12px, 2.2vw, 28px);
  font-family: var(--font-mono); font-size: 11.5px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ghost);
}
.proofrow li + li { border-left: 1px solid var(--line); }
.proofrow b {
  font-family: var(--font-ui); font-size: 16.5px; font-weight: 680;
  letter-spacing: -0.01em; color: var(--ink); text-transform: none;
}
@media (max-width: 560px) {
  .proofrow { border: 0; padding: 0; gap: 10px 0; }
  .proofrow li { flex: 1 1 50%; justify-content: center; padding: 10px 6px;
    border-top: 1px solid var(--line); }
  .proofrow li + li { border-left: 0; }
}
/* ---------- the product frame ----------
   The single substantive addition: the company page for a scheduling
   product now shows a schedule. Real solver output, real names, real
   metrics, drawn in the brand's own colour ramp. */
.showcase { padding: 0 var(--pad) clamp(70px, 11vh, 130px); }
.showcase-inner { max-width: var(--maxw); margin: 0 auto; }
.frame {
  border: 1px solid var(--line-strong); border-radius: 16px;
  background: linear-gradient(180deg, var(--s3), var(--s2));
  box-shadow: var(--glow-frame);
  overflow: hidden;
}
/* translateY only — no scale. Scaling a ~570px frame changes which of its
   children fall inside the viewport, and the legend at the frame's foot was
   being counted as a layout shift (0.0108) when the entrance ran. Vertical
   travel alone reads the same and costs nothing. */
.js .frame { opacity: 0; transform: translateY(24px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease); }
.js .frame.in { opacity: 1; transform: none; }
.frame-bar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 11px 16px; background: rgba(6, 24, 31, 0.55);
  border-bottom: 1px solid var(--line);
}
.frame-bar i.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); flex: none; }
.frame-bar .url {
  margin-left: 8px; font-family: var(--font-mono); font-size: 11.5px; color: var(--ghost);
  background: rgba(6, 24, 31, 0.6); border: 1px solid var(--line);
  border-radius: 6px; padding: 3px 12px;
}
.frame-bar .meta {
  margin-left: auto; display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--ghost);
}
.frame-bar .meta i { width: 6px; height: 6px; border-radius: 50%; background: var(--a3); flex: none; }
.fr-readouts { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--line);
  background: rgba(6, 24, 31, 0.28); }
.fr-ro { flex: 1 1 auto; min-width: 118px; padding: 13px clamp(14px, 2vw, 26px); display: grid; gap: 3px; }
.fr-ro + .fr-ro { border-left: 1px solid var(--line); }
.fr-ro span { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--ghost); }
.fr-ro b { font-size: clamp(17px, 1.7vw, 22px); font-weight: 660; letter-spacing: -0.015em;
  font-variant-numeric: tabular-nums; }
.fr-ro.good b { color: var(--a3); }
@media (max-width: 700px) {
  .fr-ro { flex: 1 1 50%; min-width: 50%; }
  .fr-ro:nth-child(odd) { border-left: 0; }
  .fr-ro:nth-child(n+3) { border-top: 1px solid var(--line); }
}
.fr-body { padding: 16px clamp(12px, 1.6vw, 20px) 14px; overflow-x: auto; }
.fr-body:focus-visible { outline: 2px solid var(--a2); outline-offset: -2px; }
/* Rutenettet står tomt i HTML-en og fylles av home.js. Selv om det bygges
   synkront, kjører skriptet etter første layout — så rammen vokste 363px ved
   ~110ms og dyttet .fr-legend ut av viewporten (målt layout shift 0,0108–0,0268
   like over folden). Høyden reserveres nå i CSS.

   Radhøyden må deklareres, ikke utledes: over ~1000px styres den av .rc-cellen,
   under styres den av navnekolonnens linjehøyde (11,5px x 1,6 = 18,4px). max()
   dekker begge, og både raden og reservasjonen leser den samme variabelen, så
   de kan ikke komme i utakt. */
.rost {
  --rost-gap: 3px;
  --rost-head-h: 15px;
  --rost-row-h: max(19px, clamp(15px, 1.85vw, 26px));
  display: grid; gap: var(--rost-gap); min-width: 660px;
  min-height: calc(var(--rost-head-h) + 12 * var(--rost-row-h) + 12 * var(--rost-gap));
}
.rost-row { display: grid; grid-template-columns: 136px repeat(28, 1fr); gap: 3px; align-items: center;
  height: var(--rost-row-h); }
.rost-row:first-child { height: var(--rost-head-h); }
.rost-name { font-size: 11.5px; color: var(--muted); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; padding-right: 8px; }
.rost-name em { font-style: normal; font-family: var(--font-mono); font-size: 9.5px;
  color: var(--ghost); letter-spacing: 0.08em; margin-left: 5px; }
.rost-day { font-family: var(--font-mono); font-size: 9px; color: var(--ghost); text-align: center; }
.rost-day.we { color: var(--a2); }
/* Shift type is carried by the letter as well as the colour — colour alone
   would fail WCAG 1.4.1, and it is how Varden's own demo grid does it. */
.rc {
  /* Explicit height, not aspect-ratio. With aspect-ratio the row height derived
     from the resolved column width, which settles asynchronously — the frame
     grew ~6px after first paint and pushed .fr-legend out of the viewport
     (0.0108 layout shift, visible only over a real network). A declared height
     makes the frame's geometry deterministic at first layout. */
  height: clamp(15px, 1.85vw, 26px);
  border-radius: 3px; background: rgba(147, 171, 176, 0.07);
  display: grid; place-items: center; line-height: 1;
  font-family: var(--font-mono); font-size: 10px; font-weight: 500;
  color: rgba(6, 24, 31, 0.78);
  /* background is set instantly; only opacity + transform tween. 336 cells
     transitioning a paint property together was a repaint storm on load. */
  transition: opacity var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
}
.js .rc { transform: scale(0.82); opacity: 0.35; }
.js .rost.solved .rc { transform: none; opacity: 1; }
.rc.d { background: var(--dag); }
.rc.k { background: var(--kveld); }
.rc.n { background: var(--natt); color: rgba(233, 242, 242, 0.92); }
@media (max-width: 900px) { .rc { font-size: 0; } }
.fr-legend {
  display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center;
  padding: 12px clamp(14px, 2vw, 22px) 14px; border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--muted);
}
.fr-legend .lg { display: inline-flex; align-items: center; gap: 7px; }
.fr-legend .sw { width: 10px; height: 10px; border-radius: 2px; }
.fr-legend .sw.d { background: var(--dag); } .fr-legend .sw.k { background: var(--kveld); }
.fr-legend .sw.n { background: var(--natt); } .fr-legend .sw.o { background: rgba(147, 171, 176, 0.14); }
.fr-legend .note { margin-left: auto; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.07em; color: var(--ghost); }
.framecap { margin: 16px auto 0; max-width: 74ch; text-align: center;
  font-size: 13.5px; color: var(--ghost); line-height: 1.65; }
/* ---------- sections ---------- */
.band { position: relative; padding: clamp(64px, 10vh, 118px) var(--pad); }
.band + .band { border-top: 1px solid var(--line); }
.band-inner { max-width: var(--maxw); margin: 0 auto; }
/* ch resolves against the head's own 16px font, not the 50px h2 inside it, so
   62ch was capping the heading at ~496px and forcing a three-line rag. */
.band-head { max-width: 780px; margin-bottom: clamp(32px, 5vh, 54px); }
.band-head .lede { max-width: 58ch; }
.band-head .eyebrow { margin-bottom: 12px; }
.band-head h2 { margin-bottom: 22px; }
.band-head .lede { margin: 0; }
/* commitments + value cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.cardx {
  border: 1px solid var(--line); border-radius: var(--r-m);
  background: linear-gradient(180deg, var(--s3), var(--s2));
  padding: 24px 22px; display: grid; gap: 9px; align-content: start;
  transition: border-color var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
}
.cardx:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.cardx .ref {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--ghost);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cardx h3 { font-size: 16.5px; font-weight: 640; letter-spacing: -0.01em; }
.cardx p { font-size: 14px; color: var(--muted); line-height: 1.62; }
/* research band */
.band--proof .stats { margin-top: 6px; }
.band--proof .strap { margin-top: 26px; display: block; }
/* product band */
.product-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 940px) { .product-grid { grid-template-columns: 1fr; } }
.product-list { list-style: none; display: grid; gap: 0; margin: 26px 0 30px; }
.product-list li {
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: baseline;
  padding: 14px 0; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--muted);
}
.product-list li:last-child { border-bottom: 1px solid var(--line); }
.product-list b { color: var(--ink); font-weight: 600; font-size: 15px; }
.product-list .n { font-family: var(--font-mono); font-size: 11px; color: var(--a2); letter-spacing: 0.1em; }
.shot {
  border: 1px solid var(--line-strong); border-radius: var(--r-m); overflow: hidden;
  background: var(--s2); box-shadow: var(--glow-frame);
}
.shot img, .shot picture { width: 100%; height: auto; display: block; }
.shot figcaption {
  padding: 11px 16px; border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ghost);
}
/* founder band */
.founder-grid { display: grid; grid-template-columns: 208px 1fr; gap: clamp(24px, 4vw, 46px); align-items: start; }
@media (max-width: 720px) { .founder-grid { grid-template-columns: 1fr; } }
.founder-photo { border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; background: var(--s2); }
.founder-photo picture { display: block; }
.founder-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.founder-facts { display: grid; gap: 0; margin: 22px 0 26px; }
.founder-facts > div { display: grid; grid-template-columns: 156px 1fr; gap: 16px;
  padding: 13px 0; border-top: 1px solid var(--line); }
.founder-facts > div:last-child { border-bottom: 1px solid var(--line); }
.founder-facts dt { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ghost); padding-top: 3px; }
.founder-facts dd { font-size: 14.5px; color: var(--muted); line-height: 1.6; }
@media (max-width: 560px) { .founder-facts > div { grid-template-columns: 1fr; gap: 4px; } }
/* pilot steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px; margin: 0 0 32px; }
.steps li { border: 1px solid var(--line); border-radius: var(--r-m); padding: 22px 20px;
  display: grid; gap: 8px; align-content: start; background: var(--s2); }
.steps .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--a2); }
.steps b { font-size: 15.5px; font-weight: 640; }
.steps p { font-size: 14px; color: var(--muted); line-height: 1.6; }
/* ---------- scroll-spy rail (desktop only) ----------
   Same visual language as the old route rail, but it now REPORTS position
   instead of driving it. Hidden below 900px, where it used to sit on top
   of the headline. */
.spy {
  position: fixed; right: clamp(12px, 2vw, 26px); top: 50%; z-index: 30;
  transform: translateY(-50%); display: none; flex-direction: column; gap: 18px;
  padding: 16px 8px;
}
@media (min-width: 901px) and (hover: hover) { .spy { display: flex; } }
.spy::before { content: ''; position: absolute; left: 50%; top: 18px; bottom: 18px; width: 1px;
  transform: translateX(-50%); background: var(--line-strong); }
/* 24x24 hit area (WCAG 2.5.8); the dot itself stays 7px */
.spy a { position: relative; width: 24px; height: 24px; display: grid; place-items: center; }
.spy a i { width: 7px; height: 7px; border-radius: 50%; background: rgba(147, 171, 176, 0.42);
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease); }
.spy a:hover i { background: var(--a2); transform: scale(1.3); }
.spy a.is-active i { background: var(--a3); transform: scale(1.4); box-shadow: 0 0 0 5px rgba(61, 232, 160, 0.14); }
.spy a span {
  position: absolute; right: 22px; top: 50%; transform: translateY(-50%) translateX(6px);
  white-space: nowrap; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); background: rgba(6, 24, 31, 0.86);
  border: 1px solid var(--line); padding: 5px 10px; border-radius: 6px;
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.spy a:hover span, .spy a:focus-visible span {
  opacity: 1; transform: translateY(-50%) translateX(0);
}
/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .sky-layer canvas { display: none; }
  .js .frame { opacity: 1 !important; transform: none !important; transition: none !important; }
  .js .rc { opacity: 1 !important; transform: none !important; transition: none !important; }
}
/* Rullefelt i produktrammen — samme behandling som på vardenturnus.no. */
.fr-body { scrollbar-width: thin; scrollbar-color: rgba(233, 242, 242, 0.24) transparent; }
.fr-body::-webkit-scrollbar { height: 10px; }
.fr-body::-webkit-scrollbar-track { background: rgba(6, 24, 31, 0.55); border-radius: 999px; margin: 0 2px; }
.fr-body::-webkit-scrollbar-thumb {
  background: rgba(233, 242, 242, 0.22); border-radius: 999px;
  border: 2px solid transparent; background-clip: content-box;
  transition: background-color var(--dur-fast) var(--ease);
}
.fr-body::-webkit-scrollbar-thumb:hover { background: rgba(61, 232, 160, 0.55); background-clip: content-box; }

/* Mobil: egen 9:16-utsnitt. Et midtstilt utsnitt av 16:9-platen mister
   fjellveggene som rammer inn overskriften, og da faller motivet fra hverandre.
   Utsnittet er valgt ved å måle den mørkeste 9:16-stripen over tekstsonen. */
@media (max-width: 760px) {
  .sky-layer {
    background-image: image-set(url("/assets/hero/fjellhall-mobil.v1.avif") type("image/avif"),
                                url("/assets/hero/fjellhall-mobil.v1.webp") type("image/webp"));
  }
}


