/* ==========================================================================
   Tilsig D3 — single-viewport one-pager

   Nordic modernism: a strict hairline grid, flat surfaces, no glow, and a
   cold landscape palette — snow, glacial ice, river, fjord depth, granite —
   with the device's blue status light as the single signal colour.
   ========================================================================== */

:root {
  /* ground */
  --bg:       #00095D;   /* Havblå — tilsig.com brand navy */
  --navy:     #00095D;   /* tilsig.com brand navy */
  --line:     rgba(241, 247, 255, .10);
  --line-2:   rgba(241, 247, 255, .2);

  /* type */
  --ink:      #F1F7FF;   /* tilsig.com ice white */
  --text:     #EEEEF0;
  --text-2:   #A0EFED;   /* Lys isblå — subtitles, secondary copy */
  --muted:    rgba(160,239,237,.72);   /* Lys isblå, quieter */

  /* landscape */
  --led:      #A0EFED;   /* tilsig.com mint — the status light */
  --ice:      #A0EFED;   /* tilsig.com mint */
  --water:    #5fb8c4;   /* river */
  --deep:     #00095D;   /* fjord depth = brand navy */
  --granite:  #6f7aa6;

  --pad: clamp(18px, 2.4vw, 34px);
  /* header + footer + padding + row gaps: everything that is not the hero */
  --chrome: clamp(162px, 24vh, 232px);
  --rule: clamp(10px, 1.6vh, 18px);

  --ease: cubic-bezier(.22, .9, .32, 1);

  --sans: "Raleway", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

html { scroll-behavior: smooth; }

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { background: none; border: 0; cursor: pointer; font: inherit; color: inherit; }

::selection { background: var(--ice); color: var(--navy); }
:focus-visible { outline: 1px solid var(--ice); outline-offset: 4px; }

.mono {
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: 0;
  font-weight: 400;
}


/* ==========================================================================
   BACKDROP — the fells, the river, the fjord
   ========================================================================== */
.backdrop {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}

/* a pool of shade under the words, so the landscape can stay rich */
.veil {
  position: fixed; inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(closest-side, rgba(0,9,93,.9), rgba(0,9,93,0) 76%) 4% 46% / 78% 98% no-repeat,
    linear-gradient(180deg, rgba(0,9,93,.55) 0%, rgba(0,9,93,0) 26%);
}

/* ==========================================================================
   STAGE — one screen, three rows
   ========================================================================== */
.stage {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(14px, 2vh, 30px);
  height: 100vh;
  height: 100dvh;
  padding: var(--pad) clamp(20px, 4vw, 56px);
  max-width: 1540px;
  margin-inline: auto;
}

/* ---------- the two rules that frame the page ---------- */
.bar {
  display: flex; align-items: center; gap: clamp(16px, 3vw, 40px);
  min-height: 0;
}
.bar--head {
  padding-bottom: var(--rule);
  border-bottom: 1px solid var(--line);
}
.bar--foot {
  padding-top: var(--rule);
  border-top: 1px solid var(--line);
  color: var(--muted);
  flex-wrap: wrap;
  row-gap: 12px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.brand__logo {
  /* width is stated outright: `width: auto` on an <svg> resolves to 100%,
     not from aspect-ratio, so the box would collapse in the flex row */
  --logo-h: clamp(21px, 2.9vh, 28px);
  height: var(--logo-h);
  width: calc(var(--logo-h) * 164 / 60);
  flex: none;
  color: var(--ink);
  fill: currentColor;      /* the extracted paths carry no fill of their own */
}
.nav { margin-left: auto; display: flex; gap: clamp(14px, 2vw, 28px); }
.nav a { color: var(--text-2); letter-spacing: .08em; text-transform: uppercase; font-size: .66rem; transition: color .2s; }
.nav a:hover { color: var(--ink); }

.brand__model {
  padding-left: 12px;
  border-left: 1px solid var(--line-2);
  color: var(--text-2);
  font-size: .76rem;
  letter-spacing: .1em;
}


/* ---------- buttons: flat, square-ish, no glow ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 10px 18px;
  border-radius: 7px;
  font-size: .87rem; font-weight: 500;
  letter-spacing: -.005em;
  white-space: nowrap;
  transition: background .2s, border-color .2s, color .2s;
}
.btn svg { width: 14px; height: 14px; }

.btn--primary { background: var(--led); color: var(--navy); font-weight: 600; }
.btn--primary:hover { background: #c3f6f4; }

.btn--ghost {
  border: 1px solid var(--line-2);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--ice); color: var(--ink); }

.btn--lg {
  padding: clamp(11px, 1.5vh, 14px) clamp(18px, 2vw, 26px);
  font-size: .92rem;
}

.chip {
  padding: 5px 11px;
  border-radius: 5px;
  border: 1px solid var(--line-2);
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--text-2);
  transition: .18s var(--ease);
}
.chip:hover { color: var(--ink); border-color: var(--line-2); background: rgba(241,247,255,.05); }
.chip.is-active {
  border-color: var(--ice);
  color: var(--ice);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
  min-height: 0;
}

.hero__copy { min-width: 0; }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 13px;
  border: 1px solid var(--line-2);
  border-radius: 5px;
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .04em;
  color: var(--text-2);
  margin-bottom: clamp(16px, 2.6vh, 30px);
}
.pill__dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--led);
  animation: pulse 3s var(--ease) infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.hero__title {
  font-size: clamp(1.9rem, 1.9vw + 2.1vh, 3.85rem);
  line-height: 1.06;
  letter-spacing: -.035em;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: clamp(12px, 2vh, 22px);
}
.hero__title .grad { color: var(--ice); font-weight: 400; }

/* Made in Norway® mark, on its own tile, beside the product name */
.hero__name { display: inline-flex; align-items: center; gap: .4em; }
.mino {
  height: 1em;
  width: auto;
  flex: none;
  border-radius: .08em;
}

.hero__lede {
  color: var(--text-2);
  font-size: clamp(.94rem, .35vw + .55vh, 1.06rem);
  max-width: 46ch;
  margin-bottom: clamp(18px, 3vh, 34px);
}

.hero__actions {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: clamp(18px, 3.4vh, 40px);
}

/* ---------- the photograph: the device on its pole, in the field ---------- */
.hero__shot {
  position: relative;
  height: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  /* shifted a little left of its column, toward the copy */
  padding-right: clamp(32px, 5vw, 96px);
}
.hero__shot > * { position: relative; z-index: 1; }

.shot {
  display: block;
  line-height: 0;            /* no inline baseline gap under the image */
  position: relative;
}
.shot img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(calc(100vh - var(--chrome)), 62vh);
  max-height: min(calc(100dvh - var(--chrome)), 62dvh);
  /* the device is opaque, the forest behind it is not: the valley shows
     through the photo, so no frame or shadow — it would outline the fade */
  border-radius: 10px;
}

/* ---------- "there is more": a quiet cue at the foot of the intro ---------- */
.scroll-hint {
  position: absolute;
  left: 50%; bottom: calc(var(--pad) * .8);
  transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 18px;
  border: 1px solid var(--ice);
  border-radius: 999px;
  background: rgba(0, 9, 93, .6);
  color: var(--ice);
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  transition: opacity .4s var(--ease), background .2s, color .2s;
}
.scroll-hint svg { width: 18px; height: 18px; animation: nudge 1.6s var(--ease) infinite; }
.scroll-hint:hover { background: var(--ice); color: var(--navy); }
@keyframes nudge { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(4px); } }
/* once the reader has started scrolling the cue has done its job */
.is-scrolled .scroll-hint { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .scroll-hint svg { animation: none; } }

/* ==========================================================================
   SECTIONS — one per point, under the intro; the valley scrolls behind
   ========================================================================== */
.sections {
  position: relative;
  z-index: 2;
  max-width: 1540px;
  margin-inline: auto;
  padding: 0 clamp(20px, 4vw, 56px);
}
.sec {
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: clamp(56px, 10vh, 120px) 0;
  border-top: 1px solid var(--line);
}
.sec__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  width: 100%;
}
.sec__inner--stack { grid-template-columns: 1fr; gap: clamp(24px, 4vh, 44px); }
.sec--flip .sec__text { order: 2; }
.sec__text { min-width: 0; max-width: 60ch; }
.sec__kicker {
  color: var(--ice);
  letter-spacing: .17em; text-transform: uppercase; font-size: .64rem;
  margin-bottom: 14px;
}
.sec__title {
  font-size: clamp(1.6rem, 2.6vw, 2.5rem);
  line-height: 1.08; letter-spacing: -.03em; font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  text-wrap: balance;
}
.sec__sub {
  color: var(--text-2);
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  margin-bottom: 4px;
}
.sec__body {
  margin-top: 18px;
  color: var(--text-2);
  font-size: clamp(.95rem, 1vw, 1.05rem);
}
.sec__body p + p { margin-top: 1em; }
.sec__body--wide { max-width: 60ch; }
.todo { color: var(--muted); font-style: italic; }
.sec__cta { margin-top: 26px; }

/* photographs from the field, framed like the hero shot */
.sec__fig { margin: 0; min-width: 0; }
.sec__fig img {
  width: 100%; height: auto;
  max-height: 68vh; object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
}
/* tall shots where the subject sits in the upper part of the frame */
.sec__fig--high img { object-position: 50% 22%; }
/* shots that must stay whole: scale to the height budget instead of cropping */
.sec__fig--fit { display: flex; justify-content: center; }
.sec__fig--fit img { width: auto; max-width: 100%; }
.sec__fig--mark { display: flex; justify-content: center; }
.sec__fig--mark img { width: min(48%, 220px); border: 0; border-radius: 6px; }

/* the "how does it work" box on the first section */
.sec__note {
  margin-top: 26px;
  padding: 18px 20px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  color: var(--text-2);
  font-size: .92rem;
}
.sec__note h3 { color: var(--ink); font-size: 1rem; font-weight: 600; margin-bottom: 6px; }
.more {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 12px;
  color: var(--ice); font-weight: 500;
}
.more svg { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.more:hover svg { transform: translateX(3px); }

/* the four-step flow: point → mesh → extender → platform */
.flow {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  counter-reset: flow;
}
.flow li {
  position: relative;
  padding: 20px 18px 22px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  display: flex; flex-direction: column; gap: 6px;
  color: var(--text-2);
  font-size: .92rem;
}
.flow li strong { color: var(--ink); font-weight: 600; font-size: 1.02rem; }
.flow__n {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--ice); color: var(--navy);
  font-size: .74rem;
  margin-bottom: 6px;
}
/* a thin line joins the steps, the same as the relay across the valley */
.flow li + li::before {
  content: "";
  position: absolute; left: -14px; top: 33px;
  width: 14px; height: 1px;
  background: var(--ice); opacity: .6;
}

/* callout chips */
.tags { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  padding: 6px 12px;
  border: 1px solid var(--ice);
  border-radius: 999px;
  color: var(--ice);
  font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
}

/* applications */
.uses {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 20px;
  max-width: 820px;
}
.uses li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-weight: 500;
  font-size: 1.02rem;
}
.uses li::before { content: "— "; color: var(--ice); }
/* the same list, single column, beside a photo */
.uses--col { grid-template-columns: 1fr; gap: 0; max-width: none; margin-top: 22px; }
.uses--col li:last-child { border-bottom: 1px solid var(--line); }
.sec__closing {
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  line-height: 1.3; letter-spacing: -.02em;
  color: var(--ink);
  max-width: 34ch;
  text-wrap: balance;
}

.foot {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding: var(--rule) 0 clamp(24px, 4vh, 40px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.foot a:hover { color: var(--ink); }

@media (max-width: 900px) {
  .sec { min-height: 0; }
  .sec__inner { grid-template-columns: 1fr; gap: 24px; }
  .sec--flip .sec__text { order: 0; }
  .sec__fig { order: -1; }
  .sec__fig img { max-height: 52vh; }
  .flow { grid-template-columns: 1fr 1fr; }
  .flow li + li::before { display: none; }
  .uses { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .flow, .uses { grid-template-columns: 1fr; }
}

/* ==========================================================================
   ENTRANCE
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--d, 0ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .pill__dot { animation: none !important; }
}

/* ==========================================================================
   RESPONSIVE
   Below this size one screen can no longer hold it honestly, so the page
   is allowed to flow and scroll.
   ========================================================================== */
@media (max-width: 900px), (max-height: 600px) {
  .stage {
    height: auto;
    min-height: 100dvh;
    grid-template-rows: auto auto;
    gap: 26px;
    padding-block: 18px 40px;
  }
  .hero { grid-template-columns: 1fr; gap: 28px; }


  /* the device is the hook: show it first, and let the copy follow */
  .hero__shot {
    order: -1;
    height: auto;
    padding-right: 0;
  }
  .shot img { max-height: min(46vh, 420px); }

  /* the valley stays, but steps back so the text reads cleanly over it */
  .backdrop { opacity: .8; }
  .veil {
    background:
      linear-gradient(180deg, rgba(0,9,93,.6) 0%, rgba(0,9,93,.35) 45%, rgba(0,9,93,0) 100%);
  }

  .bar { flex-wrap: wrap; row-gap: 14px; }

  .nav { width: 100%; margin-left: 0; flex-wrap: wrap; gap: 12px 18px; }
}

@media (max-width: 560px) {
  .stage { padding-inline: 18px; }
  .hero__title { font-size: clamp(1.75rem, 8.5vw, 2.4rem); letter-spacing: -.03em; }
  .hero__lede { font-size: .95rem; max-width: none; }
  .pill { margin-bottom: 14px; }

  /* one tap target per row, full width, thumb-sized */
  .hero__actions { flex-direction: column; gap: 10px; }
  .btn--lg { width: 100%; padding: 14px 18px; font-size: 1rem; }


  .brand__logo { --logo-h: 20px; }
}

/* short landscape phones: keep the device from eating the screen */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: start; }
  .hero__shot { order: 0; }
  .shot img { max-height: 70vh; }
}

/* ==========================================================================
   CONTACT MODAL — a flat card on the fjord, same hairlines as the page
   ========================================================================== */
.modal {
  position: fixed; inset: 0;
  margin: auto;
  width: min(100% - 32px, 620px);
  max-height: min(100dvh - 32px, 860px);
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--navy);
  color: var(--text);
  overflow: auto;
}
.modal::backdrop { background: rgba(0, 9, 93, .72); backdrop-filter: blur(4px); }
.modal[open] { animation: modal-in .32s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.modal__close {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 7px;
  color: var(--text-2);
}
.modal__close:hover { color: var(--ink); background: rgba(241,247,255,.06); }
.modal__close svg { width: 16px; height: 16px; }

.cform { position: relative; padding: clamp(26px, 4vw, 40px); }
.cform__kicker { color: var(--ice); letter-spacing: .17em; text-transform: uppercase; font-size: .64rem; margin-bottom: 10px; }
.cform__title { font-size: clamp(1.5rem, 2.4vw, 1.9rem); line-height: 1.1; letter-spacing: -.03em; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.cform__lede { color: var(--text-2); font-size: .95rem; margin-bottom: 24px; }

/* contact people: round portrait, name and direct lines, two abreast on desktop */
.cform__people {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
  margin: 0 0 26px;
}
.cform__person { display: flex; align-items: center; gap: 16px; min-width: 0; }
.cform__person-body { min-width: 0; }
.cform__photo {
  flex: none;
  width: 92px; height: 92px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line-2);
  box-shadow: 0 0 0 4px rgba(160,239,237,.08);
}
.cform__person-name { color: var(--ink); font-weight: 700; font-size: 1.02rem; letter-spacing: -.01em; margin-bottom: 6px; }
.cform__line {
  display: flex; align-items: center; gap: 8px;
  padding: 2px 0;
  color: var(--text); font-size: .9rem;
  text-decoration: none;
  transition: color .2s;
}
.cform__line svg { flex: none; width: 14px; height: 14px; color: var(--ice); }
.cform__line span { border-bottom: 1px solid transparent; transition: border-color .2s; overflow-wrap: anywhere; }
.cform__line:hover { color: var(--ink); }
.cform__line:hover span { border-color: var(--ice); }
.cform__line:focus-visible { outline: 1px solid var(--ice); outline-offset: 2px; border-radius: 3px; }

/* the form is the alternative route: collapsed until asked for */
.cform__alt { border-top: 1px solid var(--line-2); padding-top: 18px; }
.cform__alt-toggle {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  color: var(--ink); font-weight: 600; font-size: .95rem;
  border-radius: 7px;
}
.cform__alt-toggle::-webkit-details-marker { display: none; }
.cform__alt-toggle:hover { color: var(--ice); }
.cform__alt-toggle:focus-visible { outline: 1px solid var(--ice); outline-offset: 6px; }
.cform__alt-toggle svg { width: 16px; height: 16px; flex: none; color: var(--text-2); transition: transform .25s var(--ease); }
.cform__alt[open] .cform__alt-toggle svg { transform: rotate(180deg); }
.cform__alt[open] .cform__alt-toggle { margin-bottom: 18px; }
.cform__alt .cform__lede { margin-bottom: 18px; }

.cform__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.field { display: block; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field > span {
  display: block;
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 6px;
}
.field input, .field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line-2);
  border-radius: 7px;
  background: rgba(241,247,255,.04);
  color: var(--ink);
  font: inherit; font-size: .95rem;
  transition: border-color .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ice); background: rgba(241,247,255,.06); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #ff9d9d; }

.cform__error { margin-top: 14px; color: #ffb4b4; font-size: .88rem; }
.cform__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* the send button shows a quiet blinking dot while the request is out */
.cform__busy { display: none; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 1s var(--ease) infinite; }
.cform.is-busy .cform__busy { display: block; }
.cform.is-busy button[type="submit"] { pointer-events: none; opacity: .8; }

.cform.is-done > :not(.cform__done):not(.modal__close) { display: none; }
.cform__done[hidden] { display: none; }

@media (max-width: 560px) {
  .cform__people { grid-template-columns: 1fr; gap: 16px; }
  .cform__photo { width: 76px; height: 76px; }
  .cform__grid { grid-template-columns: 1fr; }
  .cform__actions .btn--lg { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .modal[open] { animation: none; }
  .cform__busy { animation: none; }
  .cform__alt-toggle svg { transition: none; }
}

/* ==========================================================================
   PAGE LAYOUT — the tilsig.com-style layout (formerly styles2.css)

   Everything above supplies the reset, tokens, buttons, .mono, the brand
   mark, [data-reveal] and the contact modal. Everything below is prefixed
   .lp- and was layered on top of it when the page was still index2.html.
   ========================================================================== */

:root {
  --cyan:      #3FD9F2;             /* the mockup's accent: icons, numbers, arcs */
  --cyan-deep: #0E8FB0;             /* the same accent, legible on ice white */
  --navy-2:    #0A1468;             /* a lighter navy for layered surfaces */
  --ink-navy:  #00095D;             /* text on the light band */
  --slate:     #4B5377;             /* secondary text on the light band */
  --wrap:      1240px;
  --gutter:    clamp(20px, 4vw, 56px);
}

/* nothing on this page may widen the viewport. Safari ignores overflow-x on <body>
   alone, so it goes on <html> too, and `clip` keeps neither from becoming a scroll
   container (with `hidden` as the fallback for older browsers) */
html, body { overflow-x: hidden; overflow-x: clip; }
svg { max-width: 100%; }

.lp-wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

/* ==========================================================================
   HEADER — floats over the hero
   ========================================================================== */
.lp-head {
  position: absolute; inset: 0 0 auto 0;
  z-index: 5;
  padding-top: clamp(16px, 2.4vw, 28px);
}
.lp-head__row {
  display: flex; align-items: center;
  gap: clamp(16px, 3vw, 40px);
}
.lp-head .brand__logo { --logo-h: clamp(24px, 2.6vw, 32px); }
.lp-nav {
  display: flex; gap: clamp(16px, 2.6vw, 34px);
  margin-left: clamp(80px, 20vw, 360px);   /* midway between the logo and the device in the hero photo */
}
.lp-nav a {
  color: var(--ink);
  font-size: .8rem; font-weight: 500;
  opacity: .9;
  transition: opacity .2s, color .2s;
}
.lp-nav a:hover { opacity: 1; color: var(--cyan); }
.btn--outline {
  border: 1px solid rgba(241,247,255,.55);
  color: var(--ink);
  font-family: var(--mono);
  font-size: .66rem; letter-spacing: .14em; text-transform: uppercase;
  padding: 9px 18px;
  border-radius: 4px;
}
.btn--outline:hover { border-color: var(--cyan); color: var(--cyan); }

/* ==========================================================================
   HERO — copy on navy, the field photo bleeding in from the right
   ========================================================================== */
.lp-hero {
  position: relative;
  /* the hero and the three challenges share one viewport: both scale with vh */
  min-height: clamp(340px, 46vh, 520px);
  display: flex; align-items: center;
  padding: clamp(66px, 9vh, 88px) 0 clamp(20px, 3vh, 36px);
  background: var(--navy);
  overflow: hidden;
}
.lp-hero__img {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 84%;
  z-index: 0;
}
.lp-hero__img img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 72% 63%;   /* the device, on its rock, right of the copy */
}
/* the photo fades into the navy under the copy, and into the next band;
   the fade spans the same screen width as before, the photo just reaches
   further left behind it */
.lp-hero__img::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--navy) 0%, rgba(0,9,93,.94) 24%, rgba(0,9,93,.55) 44%, rgba(0,9,93,.06) 62%, rgba(0,9,93,0) 72%),
    linear-gradient(180deg, rgba(0,9,93,.5) 0%, rgba(0,9,93,.06) 24%, rgba(0,9,93,0) 75%, rgba(0,9,93,.3) 100%);
}
.lp-hero__copy { position: relative; z-index: 1; max-width: 620px; }
/* the product name leads: white, well above the other kickers, with its tagline under it */
.lp-hero .lp-kicker--hero {
  color: var(--ink);
  font-size: clamp(1.3rem, 1.7vw, 1.8rem);
  letter-spacing: .2em;
  margin-bottom: 4px;
}
.lp-hero__sub {
  color: var(--text-2);
  font-size: clamp(1.1rem, 1.35vw, 1.4rem);
}
/* the name and its tagline, with the Made in Norway mark beside them, as tall as both lines */
.lp-hero__name {
  display: flex; align-items: center; gap: clamp(14px, 1.6vw, 22px);
  margin-bottom: clamp(10px, 1.8vh, 18px);
}
.lp-hero__mark {
  height: clamp(56px, 5.4vw, 76px); width: auto;
  flex: none;
  border-radius: 4px;
}

.lp-kicker {
  color: var(--cyan);
  letter-spacing: .22em; text-transform: uppercase; font-size: .66rem;
  margin-bottom: 18px;
}
.lp-hero__title {
  font-size: clamp(1.5rem, 1.6vw + 1vh, 2.5rem);
  line-height: 1.02; letter-spacing: -.035em; font-weight: 600;
  color: var(--ink);
  margin-bottom: clamp(10px, 1.6vh, 18px);
  text-wrap: balance;
}
.lp-hero__lede {
  color: var(--text-2);
  font-size: clamp(.88rem, .95vw, .98rem);
  line-height: 1.5;
  max-width: 52ch;
  margin-bottom: clamp(14px, 2.2vh, 24px);
}
.lp-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn--cyan { background: var(--cyan); color: var(--navy); font-weight: 600; border-radius: 4px; }
.btn--cyan:hover { background: #7ae7f7; }
.btn--line { border: 1px solid rgba(241,247,255,.6); color: var(--ink); border-radius: 4px; }
.btn--line:hover { border-color: var(--ink); background: rgba(241,247,255,.06); }

/* ==========================================================================
   LIGHT BAND — three challenges, three answers
   ========================================================================== */
.lp-light {
  background: #F1F7FF;
  color: var(--ink-navy);
  padding: clamp(22px, 3.2vh, 44px) 0 clamp(22px, 3.2vh, 44px);
}
.lp-light ::selection { background: var(--navy); color: var(--ice); }
.lp-light .lp-kicker { color: var(--cyan-deep); text-align: center; margin-bottom: 10px; }
.lp-title {
  font-size: clamp(1.5rem, 1.6vw + 1.2vh, 2.6rem);
  line-height: 1.1; letter-spacing: -.03em; font-weight: 600;
  text-align: center;
  margin-bottom: clamp(16px, 3vh, 36px);
  text-wrap: balance;
}
.lp-cols {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.lp-col {
  padding: 0 clamp(20px, 3.4vw, 48px);
  border-left: 1px solid rgba(0,9,93,.14);
}
.lp-col:first-child { padding-left: 0; border-left: 0; }
.lp-col:last-child { padding-right: 0; }
.lp-col__n {
  font-size: clamp(1.8rem, 1.6vw + 1.6vh, 3.2rem);
  line-height: 1; letter-spacing: -.04em; font-weight: 500;
  color: var(--ink-navy);
  margin-bottom: clamp(8px, 1.4vh, 16px);
}
.lp-col__icon {
  height: clamp(40px, 6vh, 56px); width: auto;
  color: var(--cyan);
  margin-bottom: clamp(10px, 1.8vh, 18px);
}
.lp-col__q {
  font-size: clamp(.98rem, 1.1vw, 1.12rem);
  line-height: 1.3; letter-spacing: -.015em;
  color: var(--ink-navy);
  margin-bottom: 10px;
}
.lp-col__q strong { display: block; font-weight: 700; }
.lp-col__body { color: var(--slate); font-size: .95rem; line-height: 1.5; }

/* ==========================================================================
   THE CHALLENGE — copy on navy, the device on its pole beside it
   ========================================================================== */
.lp-feature {
  background: var(--navy);
  padding: clamp(48px, 6vw, 88px) 0;
}
.lp-feature__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
}
.lp-feature .lp-title { text-align: left; color: var(--ink); margin-bottom: 18px; }
.lp-feature__body { color: var(--text-2); font-size: clamp(1rem, 1.1vw, 1.08rem); line-height: 1.6; }
.lp-feature__body p + p { margin-top: .9em; }
.lp-feature__fig { margin: 0; min-width: 0; }
.lp-feature__fig img {
  width: 100%; height: auto;
  max-height: 560px; object-fit: cover; object-position: 50% 35%;
  border-radius: 10px;
  border: 1px solid var(--line);
}
/* the "how does it work" box, as on the live page */
.lp-note {
  margin-top: 28px;
  padding: 20px 22px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  color: var(--text-2);
  font-size: .98rem; line-height: 1.55;
}
.lp-note h3 { color: var(--ink); font-size: 1.05rem; font-weight: 600; margin-bottom: 6px; }
.lp-note__more {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 12px;
  color: var(--cyan); font-weight: 600;
}
.lp-note__more svg { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.lp-note__more:hover svg { transform: translateX(3px); }

/* the same section on ice white */
.lp-feature--light { background: #F1F7FF; color: var(--ink-navy); }
.lp-feature--light ::selection { background: var(--navy); color: var(--ice); }
.lp-feature--light .lp-kicker { color: var(--cyan-deep); }
.lp-feature--light .lp-title { color: var(--ink-navy); }
.lp-feature--light .lp-feature__body { color: var(--slate); }
.lp-feature--light .lp-feature__fig img { border-color: rgba(0,9,93,.1); }
/* photo on the left */
.lp-feature--flip .lp-feature__text { order: 2; }
.lp-feature__text--wide { max-width: 64ch; }
.lp-feature__body--after { margin-top: 28px; max-width: 64ch; }
/* tall shots where the subject sits in the upper part of the frame */
.lp-feature__fig--high img { object-position: 50% 22%; }
/* shots that must stay whole */
.lp-feature__fig--fit { display: flex; justify-content: center; }
.lp-feature__fig--fit img { width: auto; max-width: 100%; }

/* the four-step flow */
.lp-flow {
  list-style: none; padding: 0; margin: 32px 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.lp-flow li {
  position: relative;
  padding: 20px 18px 22px;
  border: 1px solid rgba(0,9,93,.14);
  border-radius: 10px;
  background: rgba(255,255,255,.5);
  display: flex; flex-direction: column; gap: 6px;
  color: var(--slate);
  font-size: .95rem; line-height: 1.5;
}
.lp-flow li strong { color: var(--ink-navy); font-weight: 600; font-size: 1.05rem; }
.lp-flow__n {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--cyan); color: var(--navy);
  font-size: .74rem;
  margin-bottom: 6px;
}
.lp-flow li + li::before {
  content: "";
  position: absolute; left: -14px; top: 33px;
  width: 14px; height: 1px;
  background: var(--cyan);
}

/* callout chips */
.lp-tags { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lp-tags li {
  padding: 7px 13px;
  border: 1px solid var(--cyan);
  border-radius: 999px;
  color: var(--cyan);
  font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
}
.lp-feature--light .lp-tags li { border-color: var(--cyan-deep); color: var(--cyan-deep); }

/* a plain list of benefits */
.lp-list { list-style: none; padding: 0; margin: 20px 0 0; }
.lp-list li {
  padding: 13px 0;
  border-top: 1px solid var(--line-2);
  color: var(--ink);
  font-weight: 500; font-size: 1.05rem;
}
.lp-list li:last-child { border-bottom: 1px solid var(--line-2); }
.lp-list li::before { content: "— "; color: var(--cyan); }
.lp-feature--light .lp-list li { color: var(--ink-navy); border-color: rgba(0,9,93,.14); }

/* ==========================================================================
   DIAGRAM BAND — the valley photo, with the mesh drawn over it
   ========================================================================== */
.lp-dark { position: relative; background: var(--navy); }
.lp-scene {
  position: relative;
  aspect-ratio: 3 / 1;
  min-height: 440px;
  background: var(--navy) url("../img/d3-valley.jpg") center / cover no-repeat;
  overflow: hidden;
}
/* a pool of navy under the heading so it reads over the far peaks */
.lp-scene::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,9,93,.78) 0%, rgba(0,9,93,.35) 30%, rgba(0,9,93,0) 55%);
}
.lp-scene__copy {
  position: absolute; left: 0; right: 0;
  top: clamp(28px, 4.5vw, 60px);
  z-index: 2;
}
.lp-dark .lp-title { text-align: left; color: var(--ink); margin-bottom: 8px; }
.lp-dark__lede { color: var(--text-2); max-width: 52ch; font-size: clamp(.9rem, 1vw, 1rem); }

.lp-diagram {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 1;
}
.lp-diagram text {
  font-family: var(--sans);
  font-size: 24px; font-weight: 600;
  fill: var(--ink);
  /* a thin navy halo keeps the labels legible over snow and rock */
  paint-order: stroke;
  stroke: rgba(0,9,93,.65); stroke-width: 6px; stroke-linejoin: round;
}
.lp-diagram .node { fill: none; stroke: rgba(241,247,255,.92); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.lp-diagram .led { fill: var(--cyan); stroke: none; }
.lp-diagram .screen { fill: rgba(0,9,93,.6); }
.lp-diagram .trace { stroke: var(--cyan); stroke-width: 2.4; }
.lp-diagram .arc {
  fill: none;
  stroke: var(--cyan); stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 2 11;
  animation: lp-flow 1.6s linear infinite;
}
.lp-diagram .arc--2 { animation-delay: .4s; }
.lp-diagram .arc--3 { animation-delay: .8s; }
@keyframes lp-flow { to { stroke-dashoffset: -26; } }
/* the phone diagram: its own 400 x 250 grid, labels sized for it */
.lp-diagram--m { display: none; }
.lp-diagram--m text { font-size: 13px; stroke-width: 4px; }
.lp-diagram--m .node { stroke-width: 1.8; }
.lp-diagram--m .arc { stroke-width: 2; stroke-dasharray: 2 8; }
.lp-diagram--m .trace { stroke-width: 2; }

/* ==========================================================================
   SPLIT — the field photo and the people behind the device
   ========================================================================== */
.lp-split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  background: #F1F7FF;
  color: var(--ink-navy);
}
/* the photo is cropped to the copy: its top edge lines up with the title and
   its bottom edge with the link, the same vertical inset as the text block */
.lp-split__fig {
  position: relative;
  margin: clamp(44px, 6vw, 96px) 0;
}
.lp-split__fig img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 68%;   /* keep the two on the rock in frame */
}
.lp-split__text {
  padding: clamp(44px, 6vw, 96px) var(--gutter) clamp(44px, 6vw, 96px) clamp(32px, 4.5vw, 72px);
  width: 100%;
}
.lp-split__title {
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
  line-height: 1.1; letter-spacing: -.03em; font-weight: 600;
  margin-bottom: 20px;
  text-wrap: balance;
}
.lp-split__body { color: var(--slate); font-size: clamp(1rem, 1.15vw, 1.1rem); line-height: 1.6; }
.lp-split__body p + p { margin-top: .9em; }
.lp-split__lead {
  color: var(--ink-navy);
  font-size: clamp(1.12rem, 1.5vw, 1.4rem);
  line-height: 1.35; letter-spacing: -.015em; font-weight: 500;
  text-wrap: balance;
}
/* the Made in Norway mark, large, on the right; its line on the left */
.lp-mark {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  margin-top: 32px; padding-top: 24px;
  border-top: 1px solid rgba(0,9,93,.12);
  color: var(--ink-navy);
  font-size: clamp(1rem, 1.15vw, 1.1rem); font-weight: 500;
}
.lp-mark img {
  width: clamp(84px, 8vw, 112px); height: auto; border-radius: 6px; flex: none;
  margin-right: clamp(16px, 2.4vw, 36px);   /* a step in from the right edge of the column */
}
.lp-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 28px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--cyan);
  color: var(--ink-navy);
  font-weight: 600; font-size: .95rem;
}
.lp-link svg { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.lp-link:hover svg { transform: translateX(3px); }

/* ==========================================================================
   APPLICATIONS — the deck's list, on navy
   ========================================================================== */
/* real-time data and applications side by side, the dam photo cropped to their height */
.lp-duo {
  background: var(--navy);
  padding: clamp(32px, 4vw, 56px) 0;
}
.lp-duo__inner {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(24px, 3.5vw, 56px);
  align-items: stretch;
}
.lp-duo .lp-title { text-align: left; color: var(--ink); margin-bottom: 8px; }
.lp-duo__fig { position: relative; margin: 0; min-height: 260px; }
.lp-duo__fig img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 45%;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.lp-duo .lp-list { margin-top: 12px; }
.lp-duo .lp-list li { padding: 10px 0; font-size: 1rem; }
.lp-uses-lede { color: var(--text-2); max-width: 60ch; font-size: .98rem; margin-bottom: 4px; }

/* ==========================================================================
   CTA — contour lines on navy
   ========================================================================== */
.lp-cta {
  position: relative;
  background: var(--navy);
  padding: clamp(56px, 8vw, 96px) 0;
  text-align: center;
  overflow: hidden;
  border-top: 1px solid var(--line);
}
.lp-cta__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  fill: none; stroke: rgba(160,239,237,.18); stroke-width: 1;
  pointer-events: none;
}
.lp-cta .lp-wrap { position: relative; }
.lp-cta__title {
  font-size: clamp(1.5rem, 2.8vw, 2.3rem);
  line-height: 1.15; letter-spacing: -.025em; font-weight: 500;
  color: var(--ink);
  margin-bottom: 28px;
  text-wrap: balance;
}

.lp-foot {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding: 18px 0 clamp(24px, 4vh, 40px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.lp-foot a:hover { color: var(--ink); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
  .lp-nav { display: none; }
  /* phones and tablets: the copy sits at the top and the device shows below it,
     the photo full strength under a top-heavy navy fade */
  .lp-hero { min-height: min(72vh, 640px); align-items: flex-start; padding-top: 104px; }
  .lp-hero__img { width: 100%; }
  .lp-hero__img img { object-position: 70% 88%; }
  .lp-hero__img::after {
    background:
      linear-gradient(180deg, rgba(0,9,93,.94) 0%, rgba(0,9,93,.82) 38%, rgba(0,9,93,.3) 68%, rgba(0,9,93,.12) 100%);
  }
  .lp-cols { grid-template-columns: 1fr; gap: 40px; }
  .lp-col { padding: 0; border-left: 0; }
  .lp-col__body { max-width: none; }
  .lp-split { grid-template-columns: 1fr; }
  .lp-feature__inner { grid-template-columns: 1fr; gap: 28px; }
  .lp-feature--flip .lp-feature__text { order: 0; }
  .lp-feature__fig img { max-height: 60vw; }
  .lp-duo__inner { grid-template-columns: 1fr 1fr; }
  .lp-duo__fig { grid-column: 1 / -1; min-height: 0; height: 48vw; max-height: 320px; }
  .lp-flow { grid-template-columns: 1fr 1fr; }
  .lp-flow li + li::before { display: none; }
  .lp-split__fig { margin: 0; height: min(60vh, 480px); }
  .lp-split__text { padding: 40px var(--gutter) 56px; max-width: none; }
  /* the copy moves above the picture; the whole panorama stays visible and the
     labels grow so they still read at a third of the size */
  .lp-scene { min-height: 0; }
  .lp-scene__copy { position: static; padding: 36px 0 20px; }
  .lp-scene::before { background: linear-gradient(180deg, rgba(0,9,93,.6) 0%, rgba(0,9,93,0) 40%); }
  .lp-diagram text { font-size: 38px; stroke-width: 9px; }
  .lp-diagram .node { stroke-width: 3.2; }
  .lp-diagram .arc { stroke-width: 3.4; stroke-dasharray: 3 14; }
  .lp-diagram--m text { font-size: 13px; stroke-width: 4px; }
  .lp-diagram--m .node { stroke-width: 1.8; }
  .lp-diagram--m .arc { stroke-width: 2; stroke-dasharray: 2 8; }
}
@media (max-width: 700px) {
  /* phones: the device would end up behind the buttons, so the photo becomes its
     own band under the copy, cropped to the device on its rock */
  .lp-hero { display: block; min-height: 0; padding: 76px 0 32px; }
  .lp-hero > .lp-wrap { padding-top: 24px; }
  .lp-hero__img { position: relative; inset: auto; width: 100%; height: 60vw; }
  .lp-hero__img img { object-position: 72% 60%; }
  .lp-hero__img::after {
    background: linear-gradient(180deg, var(--navy) 0%, rgba(0,9,93,0) 32%, rgba(0,9,93,0) 100%);
  }
  /* on a phone the panorama would be a sliver, so the photo becomes a backdrop
     cropped to 8:5 and the phone diagram takes over from the panorama one */
  .lp-scene { aspect-ratio: 8 / 5; height: auto; min-height: 0; background-position: 50% 60%; }
  .lp-scene::before { background: linear-gradient(180deg, rgba(0,9,93,.55) 0%, rgba(0,9,93,.35) 100%); }
  .lp-diagram { display: none; }
  .lp-diagram--m { display: block; }
}
@media (max-width: 560px) {
  .lp-hero__title { font-size: clamp(1.6rem, 7.5vw, 2rem); }
  .lp-duo__inner { grid-template-columns: 1fr; }
  .lp-hero__actions { flex-direction: column; }
  .lp-hero__actions .btn { width: 100%; }
  .lp-flow { grid-template-columns: 1fr; }
  .lp-mark { flex-direction: column-reverse; align-items: flex-start; gap: 14px; }
  .lp-mark img { margin-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .lp-diagram .arc { animation: none; }
  .lp-link svg { transition: none; }
}
