/* Home page, light edition. Loaded after styles.css on index.html only, so
   the other pages keep their look. The page is one calm light surface:
   sections are set apart by air rather than coloured bands, the product is
   shown in a grey panel right under the fold, and the dark navy is kept for
   the closing contact section. */
.home {
  --page: #ffffff;
  --panel: #edf0f3;
  --panel-deep: #dfe6ed;
  --ink: #101c28;
  --body: #56636f;
  --rule: #d9dfe5;
  --section: clamp(4rem, 8vw, 6.5rem);
  --ink-blue: #1458d0;
  --ink-blue-soft: #edf0f3;
  background: var(--page);
}
/* The page scrolls on html, so that is where the room for the sticky
   header goes; focus and anchors then land below it. */
html:has(> body.home) {
  scroll-padding-top: calc(76px + 1rem);
  scroll-padding-bottom: 1rem;
}
/* The light header and the skip link take the dark blue focus ring of the
   light sections; the pale one is for dark ground. */
.home .site-band,
.home .skip-link {
  --focus: #1458d0;
}
.home .band:not(.band-dark) {
  --bg: var(--page);
  --text: var(--ink);
  --muted: var(--body);
  --line: var(--rule);
}
.home main > .band:not(.band-dark) > .wrap {
  padding-block: 0;
}
.home main > .band:not(.band-dark) {
  padding-block: var(--section) 0;
}
.home main > .faq.band {
  padding-bottom: var(--section);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* The first visit opens on a white surface with small tokens in the
   logo's colours scattered over it, drawn here from the first paint
   (forside-tidlig.js puts html.is-opening on before it). Eleven of them
   are the real strokes and dots of the mark, shown at first as short
   tokens: a clip shows a short piece of each stroke, so the ends keep
   their exact rounding all the way home. forside.js only moves them. */
.opening {
  display: none;
}
/* The scroll is held while it plays, but the scrollbar's room stays, so
   the page does not shift sideways when the scrollbar comes back. */
html.is-opening {
  overflow: hidden;
  scrollbar-gutter: stable;
}
html.is-opening .opening {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: block;
  overflow: hidden;
  background: #ffffff;
  container-type: size;
  /* The logo's height, and a stroke's thickness at that size. */
  --H: clamp(72px, 9cqw, 128px);
  --t: calc(var(--H) * 58 / 523);
}
.opening-stage,
.opening-field {
  position: absolute;
  inset: 0;
}
.opening-stage {
  contain: strict;
}
.opening-token,
.opening-bar,
.opening-dot {
  position: absolute;
  display: block;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--g));
  will-change: transform, opacity;
  animation: opening-in 180ms var(--d) cubic-bezier(0.2, 0, 0.2, 1) backwards;
}
@keyframes opening-in {
  from {
    opacity: 0;
  }
}
/* The mark's colours: the gradient of each stroke, and the dots. */
.opening .g0 {
  --g: #0155fd, #0028fc;
}
.opening .g1 {
  --g: #0187fe, #0048fd;
}
.opening .g2 {
  --g: #019ffd, #0380fe;
}
.opening .g3 {
  --g: #01acfd, #0293fa;
}
.opening .g4 {
  --g: #00d3e8, #02c6ec;
}
.opening .g5 {
  --g: #02ecd3, #02e5d6;
}
.opening .g6 {
  --g: #03f8c3, #01f2cc;
}
.opening .d0 {
  --g: #0023fd, #0023fd;
}
.opening .d1 {
  --g: #003cfc, #003cfc;
}
.opening .d2 {
  --g: #0292fc, #0292fc;
}
.opening .d3 {
  --g: #01f9c3, #01f9c3;
}
/* The scatter, placed in % of the screen. Further out is nearer: larger
   and stronger. On a phone ten of them stay away. */
.opening-token {
  left: calc(var(--u) * 1%);
  top: calc(var(--v) * 1%);
  width: calc(var(--t) * var(--f) * var(--l));
  height: calc(var(--t) * var(--f));
  opacity: var(--o);
  transform: translate(-50%, -50%) rotate(var(--a));
}
@media (max-width: 640px) {
  .opening-token.wide {
    display: none;
  }
}
/* The logo in the middle: the mark, a gap of 0.19 of its height, the
   name. In units of the logo's height the whole is 3.417542 wide. */
.opening-logo {
  position: absolute;
  left: calc(50% - var(--H) * 1.708771);
  top: calc(50% - var(--H) / 2);
  width: calc(var(--H) * 3.417542);
  height: var(--H);
}
.opening-mark {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--H) * 496 / 523);
}
/* Each stroke and dot sits where it belongs in the mark (the numbers of
   sorted-tokens-merke.svg) and is moved out to its place in the scatter,
   (u, v) in % of the screen, by a transform worked out from its centre in
   the mark (cx, cy). */
.opening-bar,
.opening-dot {
  top: calc((var(--y) - 29) / 523 * 100%);
  height: calc(58 / 523 * 100%);
  transform: translate(
      calc((var(--u) - 50) * 1cqw + var(--H) * (1.708771 - var(--cx))),
      calc((var(--v) - 50) * 1cqh + var(--H) * (0.5 - var(--cy)))
    )
    rotate(var(--a)) scale(var(--s));
}
.opening-bar {
  top: calc(var(--y) / 523 * 100%);
  left: calc(var(--x) / 496 * 100%);
  width: calc(var(--w) / 496 * 100%);
  clip-path: inset(0 calc(var(--H) * var(--side)) 0 calc(var(--H) * var(--side)) round 999px);
}
.opening-dot {
  left: calc((var(--x) - 29) / 496 * 100%);
  width: calc(58 / 496 * 100%);
}
.opening-word {
  position: absolute;
  top: 0;
  left: calc(var(--H) * (496 / 523 + 0.19));
  width: calc(var(--H) * 492 / 216);
  max-width: none;
  height: var(--H);
}
/* The divider is the first 1.93% of the word image. */
.opening-rule {
  clip-path: inset(50% 98.07% 50% 0);
}
.opening-name {
  clip-path: inset(0 100% 0 1.93%);
}
/* The edge of the opening: one fine line, the same width all the way. */
.opening-ring {
  position: absolute;
  display: block;
  width: 0;
  height: 0;
  border: 1px solid #a9b7c5;
  border-radius: 50%;
  opacity: 0;
  translate: -50% -50%;
  pointer-events: none;
}
.opening-skip {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 2;
  min-height: 44px;
  padding: 0 0.75rem;
  border: 0;
  background: none;
  color: #56636f;
  font-size: 0.875rem;
  text-decoration: underline;
  text-decoration-color: #d9dfe5;
  text-underline-offset: 0.35em;
}
.opening-skip:hover {
  color: #101c28;
}

/* Header: light, and it stays at the top. A hairline fades in once the
   page has scrolled, where the browser can tie it to the scroll. */
.home .site-band {
  position: sticky;
  top: 0;
  z-index: 5;
  /* Quiet glass: the page shows through just enough to be felt, and the
     header stays a clean light surface over the photo and the dark
     sections too. Without backdrop-filter it is all but solid. */
  background: rgba(255, 255, 255, 0.97);
  color: var(--ink);
  border-bottom: 1px solid transparent;
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .home .site-band {
    background: rgba(255, 255, 255, 0.94);
    -webkit-backdrop-filter: blur(20px) saturate(1.6);
    backdrop-filter: blur(20px) saturate(1.6);
  }
}
@supports (animation-timeline: scroll()) {
  .home .site-band {
    animation: header-rule linear both;
    animation-timeline: scroll();
    animation-range: 0 120px;
  }
  @keyframes header-rule {
    to {
      border-bottom-color: var(--rule);
    }
  }
}
.home .site-header {
  min-height: 76px;
}
.brand {
  gap: 0;
}
/* The logo as in its master file: the mark, a gap of about a fifth of its
   height, then the thin word mark with its divider, a little shorter. */
.brand-mark {
  display: block;
  width: auto;
  height: 40px;
  overflow: visible;
}
/* The word mark is the logo's own: the divider and the name cut from
   logo.webp and inked dark for the light header. The mark beside it is
   the same strokes as SVG, so they can sort themselves in (forside.js). */
.brand .brand-word {
  display: block;
  width: auto;
  height: 37.5px;
  margin-left: 7.5px;
}
.home .site-header nav a:not(.header-contact) {
  color: var(--body);
}
.home .site-header nav a:not(.header-contact):hover {
  color: var(--ink);
}
.home .site-header nav .header-contact {
  min-height: 40px;
  padding: 0 1rem;
  border: 0;
  border-radius: var(--radius);
  background: #0a1520;
  color: #f3f6f9;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
@media (hover: hover) {
  .home .site-header nav .header-contact:hover {
    background: #172e4f;
    color: #fff;
  }
}

/* Buttons. The primary one is solid navy at rest; on hover the blue rises
   from the bottom and the label sorts itself (app.js). The soft one is a
   quiet grey block beside it. */
.home .band:not(.band-dark) {
  --btn-bg: linear-gradient(180deg, #13243a, #0a1520);
  --btn-line: #0a1520;
  --btn-fg: #f3f6f9;
  --btn-fill: linear-gradient(180deg, #2a4a7a, #172e4f);
  --btn-fill-fg: #ffffff;
}
/* A tap leaves :hover behind on touch screens, where the plain link hover
   (styles.css) would turn the label dark on the dark button; it keeps its
   own colour there, and the fill's colour where the fill rises. */
.home .button-primary:hover {
  color: var(--btn-fg);
}
@media (hover: hover) {
  .home .button-primary:hover {
    color: var(--btn-fill-fg);
  }
}
.home .site-header nav .header-contact:hover {
  color: #f3f6f9;
}
/* The fill rises like liquid: slowly, with waves on its surface that keep
   rolling while it rises, and it drains the same way. Two layers of the
   fill make the surface: the front one, and a paler one behind it that
   runs a little ahead and rolls the other way, so the crest never looks
   like one repeating line. The waves are a mask (assets/bolge.svg) over a
   fill taller than the button, so once it is full the crests sit above
   the top edge, out of sight. */
.home .button-primary::before,
.home .button-primary::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 135%;
  background: var(--btn-fill);
  transform: none;
  translate: 0 100%;
  -webkit-mask:
    url("assets/bolge.svg") 0 0 / 64px 18px repeat-x,
    linear-gradient(#000 0 0) 0 17px / 100% 100% no-repeat;
  mask:
    url("assets/bolge.svg") 0 0 / 64px 18px repeat-x,
    linear-gradient(#000 0 0) 0 17px / 100% 100% no-repeat;
  pointer-events: none;
}
.home .button-primary::before {
  transition: translate 2.9s cubic-bezier(0.45, 0.1, 0.4, 1);
  animation: wave-roll 2.2s linear infinite paused;
}
.home .button-primary::after {
  z-index: -2;
  opacity: 0.45;
  -webkit-mask-position: 22px 0, 0 17px;
  mask-position: 22px 0, 0 17px;
  transition: translate 2.6s cubic-bezier(0.45, 0.1, 0.4, 1);
  animation: wave-roll-back 3.1s linear infinite paused;
}
.home .button-primary:is(:hover, :focus-visible, :active)::before,
.home .button-primary:is(:hover, :focus-visible, :active)::after {
  animation-play-state: running;
}
.home .button-primary:hover::before,
.home .button-primary:focus-visible::before,
.home .button-primary:hover::after,
.home .button-primary:focus-visible::after {
  transform: none;
  translate: 0 0;
}
@media (hover: none) {
  .home .button-primary:active::before,
  .home .button-primary:active::after {
    translate: 0 0;
    transition-duration: 0.6s;
  }
}
@keyframes wave-roll {
  to {
    -webkit-mask-position: 64px 0, 0 17px;
    mask-position: 64px 0, 0 17px;
  }
}
@keyframes wave-roll-back {
  from {
    -webkit-mask-position: 22px 0, 0 17px;
    mask-position: 22px 0, 0 17px;
  }
  to {
    -webkit-mask-position: -42px 0, 0 17px;
    mask-position: -42px 0, 0 17px;
  }
}
.home .band:not(.band-dark) .button-primary {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 2px rgba(10, 21, 32, 0.18);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.button-soft {
  min-height: 54px;
  padding-inline: 1.4rem;
  border-radius: 4px;
  background: var(--panel);
  color: var(--ink);
  font-weight: 500;
}
.button-soft:hover {
  background: #e2e7ec;
  color: var(--ink);
}

/* Hero: the fjord and the industry by it, as on the live site, darkened
   where the text sits (styles.css). On it: the headline, the lead, a solid
   light button, a quiet glass one beside it, and a line that takes the
   risk out of the first step. The header sits above it, so the photo
   starts under the header rather than behind it. */
.home .hero {
  min-height: min(calc(100svh - 76px), 820px);
}
.home main > .hero > .hero-content {
  padding-block: clamp(4rem, 9vw, 7rem) clamp(3rem, 6vw, 4.5rem);
}
.home .hero h1 {
  max-width: 15ch;
}
.home .hero-description {
  max-width: 44ch;
}
.home .hero-actions {
  gap: 0.75rem;
}
/* The light button fills with a pale blue, so its dark label reads the
   whole way while the wave rises. */
.home .hero {
  --btn-bg: #f3f6f9;
  --btn-line: #f3f6f9;
  --btn-fg: #0a1520;
  --btn-fill: linear-gradient(180deg, #e6eefb, #cfdcf2);
  --btn-fill-fg: #0a1520;
}
/* The photo is darker behind the text than on the live site, so the
   headline and the lead read at every width: the sky behind them is the
   lightest part of the picture. */
.home .hero::before {
  background:
    linear-gradient(
      to top,
      rgba(10, 21, 32, 0.92) 0%,
      rgba(10, 21, 32, 0.7) 32%,
      rgba(10, 21, 32, 0.42) 62%,
      rgba(10, 21, 32, 0.6) 100%
    ),
    linear-gradient(to right, rgba(10, 21, 32, 0.8) 0%, rgba(10, 21, 32, 0.6) 40%, rgba(10, 21, 32, 0) 70%);
}
/* Phones, tablets and phones on their side: the text stands high in the
   picture, so the whole picture is evenly dark behind it. */
@media (max-width: 860px), (max-height: 500px) {
  .home .hero::before {
    background: linear-gradient(
      to bottom,
      rgba(10, 21, 32, 0.62) 0%,
      rgba(10, 21, 32, 0.76) 35%,
      rgba(10, 21, 32, 0.9) 100%
    );
  }
}
/* Low laptop screens: the buttons stay above the fold. */
@media (max-height: 700px) and (min-width: 861px) {
  .home main > .hero > .hero-content {
    padding-top: 2.5rem;
  }
  .home .hero h1 {
    font-size: clamp(2.75rem, min(5vw, 11vh), 4.5rem);
  }
}
.home .hero .button-primary {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.home .hero .button-soft {
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.08);
  color: #f3f6f9;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.home .hero .button-soft:hover {
  border-color: #f3f6f9;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}
/* The main action again where a section ends a train of thought. */
.section-cta {
  display: flex;
  justify-content: flex-start;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}


/* Problem: the statement and its text on the left, the globe on the
   right, on the same grid as the section heads below. */
.home .problem-body {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  grid-template-rows: auto 1fr;
  column-gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.home .problem-body > .globe {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
}
.home .problem .lead {
  max-width: 20ch;
  padding-top: 0;
  font-size: clamp(2.125rem, 3.4vw, 3rem);
  font-weight: 300;
  line-height: 1.167;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.home .problem-body > .problem-text {
  max-width: 38rem;
  margin-top: 1.5rem;
}
.home .globe {
  float: none;
  order: 0;
  width: min(100%, 24rem);
  margin: 0 auto;
}

/* Section heads: the heading on the left and its lead on the right, the
   same in every section after the problem statement, so the page reads
   left-aligned from here to the contact section. */
.home .section-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: start;
  gap: 1.25rem clamp(2rem, 5vw, 4.5rem);
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.home .section-head h2 {
  max-width: 16ch;
}
.home .section-head > p {
  max-width: 34rem;
  margin: 0.6rem 0 0;
  font-size: 1.0625rem;
}
.home .steps {
  counter-reset: step;
}
.home .steps li::before {
  content: counter(step, decimal-leading-zero);
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  margin-bottom: 1.25rem;
}
.home .steps h3 {
  font-size: clamp(1.375rem, 1.9vw, 1.625rem);
}
.home .strands canvas {
  height: clamp(15rem, 24vw, 21rem);
}
.home .strands-note {
  max-width: 24ch;
}

/* Services: the two ways of working side by side, built the same way, so
   they compare at a glance. */
.models {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto auto auto auto;
  gap: 0 1rem;
}
/* Each panel spans the same three rows (card, text, picture), so the two
   pictures line up even when one text runs longer. */
.home .model {
  grid-row: span 4;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: subgrid;
  align-items: start;
  gap: 2rem;
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
  border: 0;
  border-radius: 4px;
  background: var(--panel-deep);
  /* A fine light edge inside and a faint neutral shadow under: the panel
     reads as a sheet lying on the page, without any glow. */
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.65),
    0 1px 2px rgba(16, 28, 40, 0.04),
    0 14px 28px -22px rgba(16, 28, 40, 0.22);
}
.home .model:last-child {
  border: 0;
}
.home .model-card {
  --card: clamp(9.5rem, 12vw, 11rem);
}
.home .model-text {
  justify-self: start;
  max-width: 34rem;
  text-align: left;
}
/* A small line above each package that says what kind of offer it is. */
.home .model-text > p.model-kicker {
  margin: 0 0 0.5rem;
  color: var(--tone-text);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.home .model-lead {
  font-size: clamp(1.375rem, 2vw, 1.625rem);
}
.model-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
}
.home .model-cta {
  display: inline-block;
  margin: 0;
}
.home .model .button-soft {
  background: #ffffff;
  box-shadow: inset 0 0 0 1px var(--rule);
}
.home .model .button-soft:hover {
  background: #f4f6f8;
}
.model-more {
  border: 0;
  background: none;
  cursor: pointer;
}
.home .model > figure {
  grid-column: 1;
  align-self: stretch;
  max-width: none;
  width: 100%;
  padding: 1.25rem;
  border: 1px solid rgba(16, 28, 40, 0.09);
  border-radius: 3px;
  background: #ffffff;
  box-shadow:
    0 1px 1px rgba(16, 28, 40, 0.04),
    0 6px 14px -10px rgba(16, 28, 40, 0.16);
}
.home .model .boost-span {
  display: flex;
  flex-direction: column;
}
.home .model .boost-span ol {
  flex: 1;
  align-content: space-evenly;
}
.home .model .boost-span i {
  background: var(--tone);
}
/* Our Monday is a blue block set a little inside its cell, so the lines
   of the grid still show round it and the four Mondays read as four
   separate days, one in each week. */
.home .model .loop-month td.is-ours {
  border-color: var(--line);
  background: linear-gradient(var(--tone), var(--tone)) center / calc(100% - 8px) calc(100% - 8px) no-repeat #ffffff;
}
.home .model .loop-month {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.home .model .loop-month td:not(.is-ours) {
  background: #ffffff;
}

/* About: the face and the facts beside the story. */
@media (min-width: 861px) {
  .home .about .split {
    grid-template-columns: minmax(0, 22rem) minmax(0, 38rem);
    justify-content: start;
    align-items: center;
    gap: clamp(3rem, 8vw, 7rem);
  }
}
.home .about .section-intro > p {
  max-width: none;
}

/* Contact: the send button is filled, since this is where people act. */
.home .contact {
  --btn-bg: linear-gradient(180deg, #ffffff, #e8edf3);
  --btn-line: #ffffff;
  --btn-fg: #0a1520;
  --btn-fill: linear-gradient(180deg, #e6eefb, #cfdcf2);
  --btn-fill-fg: #0a1520;
}
.home .contact .button-primary {
  box-shadow: inset 0 -1px 0 rgba(10, 21, 32, 0.08);
}

.home .contact h2 {
  max-width: 13ch;
}
.home .next-steps li::before {
  content: counter(next, decimal-leading-zero);
  width: 1.5rem;
  font-size: 0.875rem;
  line-height: 1.7;
}

/* The mark beside the address. */
.contact-person {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}
.contact-mark {
  width: 52px;
}
.contact-person p {
  display: grid;
  gap: 0.1rem;
}


/* The lines that reassure people at the form, and the field labels, are
   read by many over 40: full body size, not small print. */
.home .contact label,
.home .field-help,
.home .form-explain {
  font-size: 1rem;
}

/* The message field grows with what is written, where the browser can;
   elsewhere it keeps its rows. */
@supports (field-sizing: content) {
  .home #message {
    field-sizing: content;
    min-height: 7.5rem;
    max-height: 22rem;
  }
}

/* Footer: the logo instead of the spaced word. */
.footer-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 0.75rem;
}
.footer-logo img {
  display: block;
  width: auto;
  height: 30px;
}
.footer-logo img + img {
  height: 28px;
}

/* The fishing trip: a small fish at the end of the footer row. */
.fish-egg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: -0.5rem;
  border: 0;
  border-radius: var(--radius);
  background: none;
  color: var(--muted);
  opacity: 0.55;
}
.fish-egg svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linejoin: round;
}
.fish-egg circle {
  fill: currentColor;
  stroke: none;
}
.fish-egg:hover,
.fish-egg:focus-visible {
  color: var(--mark);
  opacity: 1;
}

/* The hairlines that order the page draw themselves from the left when
   they come into view, like a row being sorted into place (forside.js marks
   them). Time-based, so a line never stops half-drawn; without the script
   or with reduced motion they simply stand. */
.home .draws {
  position: relative;
  border-top-color: transparent;
}
.home .next-steps li.draws {
  border-bottom-color: transparent;
}
.home .draws::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  border-top: 1px solid var(--line);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s var(--ease-out) var(--draw-delay, 0s);
}
.home .next-steps li.draws::after {
  top: auto;
  bottom: -1px;
}
.home .draws.is-drawn::after {
  transform: none;
}
@media print {
  .home .draws::after {
    transform: none;
    transition: none;
  }
}

/* The service cards come alive on hover (and, on touch screens, while the
   card is lit in view). Akselerator: the rocket rocks along its course
   while coloured streaks, in the colours of the strands figure, rush back
   from its tail, as if it is heading out into space. Puls: short rays in
   the same colours stand round the heart like a drawn sun and push out
   with each beat while the heart pumps in a heartbeat rhythm. */
.model-trail,
.model-beat {
  position: absolute;
  inset: -22%;
  width: 144%;
  height: 144%;
  overflow: visible;
  pointer-events: none;
  fill: none;
  stroke-linecap: round;
}
.model-trail path {
  stroke: var(--c);
  stroke-width: 1.6;
  stroke-dasharray: 5 15;
  stroke-dashoffset: 0;
  opacity: 0;
  transition: opacity 0.3s;
}
/* The rays stand just outside the heart, on almost the sign's own square. */
.model-beat {
  inset: -15%;
  width: 130%;
  height: 130%;
}
/* The cards are plainly clickable; the plus in the corner is not needed. */
.home .model-plus {
  display: none;
}
.model-beat path {
  stroke: var(--c);
  stroke-width: 1.5;
  opacity: 0;
  transform-box: view-box;
  transform-origin: 50% 50%;
}
.model-sign .model-icon {
  transform-box: fill-box;
  transform-origin: 50% 55%;
}
.model-card:hover .model-trail path {
  opacity: 0.9;
  animation: streak 0.8s linear var(--d) infinite;
}
.model-card:hover .model-trail + .model-icon {
  animation: rocket-fly 1.1s ease-in-out infinite alternate;
}
.model-card:hover .model-beat path {
  animation: beat-out 1.1s ease-out var(--d) infinite;
}
.model-card:hover .model-beat + .model-icon {
  animation: heartbeat 1.1s ease-in-out infinite;
}
@media (hover: none) {
  .model-card:has(.model-ring.is-lit) .model-trail path {
    opacity: 0.9;
    animation: streak 0.8s linear var(--d) infinite;
  }
  .model-card:has(.model-ring.is-lit) .model-trail + .model-icon {
    animation: rocket-fly 1.1s ease-in-out infinite alternate;
  }
  .model-card:has(.model-ring.is-lit) .model-beat path {
    animation: beat-out 1.1s ease-out var(--d) infinite;
  }
  .model-card:has(.model-ring.is-lit) .model-beat + .model-icon {
    animation: heartbeat 1.1s ease-in-out infinite;
  }
}
/* The packages share the site's one accent: the blue carries the sign, the
   edge on hover and the picture under the text, in all three. */
.home .model {
  --tone: #1560e6;
  --tone-text: #1458d0;
  --tone-glow: 21, 96, 230;
  --tone-soft: #eef4fd;
}
.home .model .model-icon {
  stroke: var(--tone);
}
/* The larger copy of the card that lifts off and turns over looks exactly
   like the card itself: white, a fine edge, no glow behind the sign and no
   deep shadow, so nothing changes as it lifts. The back is the same quiet
   white tile. */
.home .model-dialog .flip-front {
  border: 1px solid var(--rule);
  background: #ffffff;
  /* The card's own fine shadow first, then the lift, so the one can glide
     into the other as the copy lands (app.js). */
  box-shadow: 0 1px 2px rgba(16, 28, 40, 0.05), 0 40px 80px -30px rgba(10, 21, 32, 0.45);
}
.home .model-dialog .flip-front::before {
  content: none;
}
.home .model-dialog .flip-back {
  border: 1px solid var(--rule);
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(16, 28, 40, 0.06), 0 18px 40px -24px rgba(10, 21, 32, 0.35);
}

/* The cards are plain white tiles with a fine edge: no glow behind the
   sign, no sheen and no deep shadow, so the drawn sign carries them. */
.home .model .model-card {
  border: 1px solid var(--rule);
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(16, 28, 40, 0.05);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.home .model .model-card::before,
.home .model .model-card::after {
  content: none;
}
.home .model .model-card:hover,
.home .model .model-card:has(.model-open:focus-visible) {
  outline-color: var(--tone);
}
@media (hover: none) {
  .home .model .model-ring > span {
    background: repeating-conic-gradient(
      rgba(var(--tone-glow), 0) 0deg 70deg,
      rgba(var(--tone-glow), 0.25) 120deg,
      var(--tone) 172deg,
      rgba(var(--tone-glow), 0) 180deg
    );
  }
}
/* Vekst on hover: only the ground stays; the stem grows up from it and
   the leaves open, then sway. Short rays in the strand colours fall from
   the name above, like sunlight on the sprout. */
.model-sun {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  fill: none;
  stroke-linecap: round;
}
.model-sun path {
  stroke: var(--c);
  stroke-width: 1.05;
  stroke-dasharray: 100 100;
  stroke-dashoffset: 100;
  opacity: 0;
}
.model-vekst .sprout,
.model-vekst .leaf {
  transform-box: view-box;
}
.model-vekst .leaf-left {
  transform-origin: 24px 31px;
}
.model-vekst .leaf-right {
  transform-origin: 24px 23.5px;
}
.model-vekst .model-card:hover .model-sun path {
  animation: sun-fall 2.2s cubic-bezier(0.45, 0, 0.3, 1) calc(0.9s + var(--d)) infinite;
}
.model-vekst .model-card:hover .sprout {
  stroke-dasharray: 1;
  animation: sprout-draw 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}
.model-vekst .model-card:hover .leaf-left {
  animation:
    leaf-open 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.55s both,
    leaf-sway-left 2.4s ease-in-out 1.1s infinite alternate;
}
.model-vekst .model-card:hover .leaf-right {
  animation:
    leaf-open 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.7s both,
    leaf-sway-right 2.4s ease-in-out 1.25s infinite alternate;
}
@media (hover: none) {
  .model-vekst .model-card:has(.model-ring.is-lit) .model-sun path {
    animation: sun-fall 2.2s cubic-bezier(0.45, 0, 0.3, 1) calc(0.9s + var(--d)) infinite;
  }
  .model-vekst .model-card:has(.model-ring.is-lit) .sprout {
    stroke-dasharray: 1;
    animation: sprout-draw 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
  }
  .model-vekst .model-card:has(.model-ring.is-lit) .leaf-left {
    animation:
      leaf-open 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.55s both,
      leaf-sway-left 2.4s ease-in-out 1.1s infinite alternate;
  }
  .model-vekst .model-card:has(.model-ring.is-lit) .leaf-right {
    animation:
      leaf-open 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.7s both,
      leaf-sway-right 2.4s ease-in-out 1.25s infinite alternate;
  }
}
@keyframes sun-fall {
  0% {
    stroke-dashoffset: 100;
    opacity: 1;
  }
  35% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  70% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  100% {
    stroke-dashoffset: -100;
    opacity: 1;
  }
}
@keyframes sprout-draw {
  from {
    stroke-dashoffset: 1;
  }
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes leaf-open {
  from {
    scale: 0;
  }
  to {
    scale: 1;
  }
}
@keyframes leaf-sway-left {
  from {
    rotate: 0deg;
  }
  to {
    rotate: -7deg;
  }
}
@keyframes leaf-sway-right {
  from {
    rotate: 0deg;
  }
  to {
    rotate: 7deg;
  }
}
/* What Vekst covers: four areas, each a short name and what it means. */
.vekst-areas {
  margin: 0;
  font-size: 0.875rem;
}
.vekst-areas figcaption {
  margin-bottom: 0.75rem;
  color: var(--muted);
}
.vekst-areas ul {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}
.vekst-areas li {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.55rem 0;
  border-top: 1px solid var(--line);
}
.vekst-areas b {
  color: var(--tone-text);
  font-weight: 600;
}
.vekst-areas span {
  color: var(--text);
}

.home .model :is(.model-trail, .model-beat, .model-sun) path {
  stroke: var(--tone);
}
.home .model :is(.model-trail, .model-beat, .model-sun) path:nth-child(3n + 2) {
  stroke: #7fb0ff;
}
.home .model :is(.model-trail, .model-beat, .model-sun) path:nth-child(3n) {
  stroke: #0a1520;
}

@media (hover: none) {
  .home .model-card:has(.model-ring.is-lit) :is(.model-trail path, .model-trail + .model-icon, .model-beat path, .model-beat + .model-icon, .model-sun path) {
    animation-iteration-count: 3;
  }
  .home .model-card:has(.model-ring.is-lit) .leaf {
    animation-iteration-count: 1, 3;
  }
}

@keyframes streak {
  to {
    stroke-dashoffset: -20;
  }
}
@keyframes rocket-fly {
  from {
    translate: -1.5px 1.8px;
    rotate: -2deg;
  }
  to {
    translate: 2px -2.4px;
    rotate: 2deg;
  }
}
@keyframes beat-out {
  0%,
  70%,
  100% {
    opacity: 0.55;
    scale: 0.9;
  }
  14% {
    opacity: 1;
    scale: 1.08;
  }
  28% {
    opacity: 0.7;
    scale: 0.96;
  }
  42% {
    opacity: 1;
    scale: 1.05;
  }
}
@keyframes heartbeat {
  0%,
  100% {
    scale: 1;
  }
  14% {
    scale: 1.14;
  }
  28% {
    scale: 1;
  }
  42% {
    scale: 1.09;
  }
  70% {
    scale: 1;
  }
}

/* The two actions stack, so the three panels keep the same shape. */
.model-actions {
  flex-direction: column;
  align-items: flex-start;
}
.home .model-cta.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding-block: 0;
  padding-inline: 1.1rem;
  white-space: nowrap;
  transition:
    background-color 0.5s var(--ease-out),
    color 0.3s;
}
/* On hover the card's colour draws a frame round the button in one even
   sweep, from the top left corner and round, while a pale wash of the same
   colour comes in and a small arrow slides out. The frame is a whole border
   revealed by a turning mask, so the corners are always right; the mask
   starts at the angle of the button's own top left corner (--corner, set
   in forside.js from its width and height). */
@property --sweep {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
.home .model-cta.button::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1.5px solid var(--tone);
  border-radius: 4px;
  pointer-events: none;
  --sweep: 0deg;
  -webkit-mask: conic-gradient(from var(--corner, -80deg), #000 var(--sweep), transparent 0);
  mask: conic-gradient(from var(--corner, -80deg), #000 var(--sweep), transparent 0);
  transition: --sweep 0.45s cubic-bezier(0.4, 0, 0.6, 1);
}
.home .model-cta.button:is(:hover, :focus-visible)::before {
  --sweep: 360deg;
  transition-duration: 0.7s;
  transition-timing-function: cubic-bezier(0.45, 0, 0.25, 1);
}
.home .model-cta.button > .cta-arrow {
  flex: none;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  translate: -6px 0;
  transition:
    opacity 0.3s,
    translate 0.45s var(--ease-out);
}
/* With the keyboard the drawn frame is the focus mark, in the card's own
   colour, so no second ring in another colour stands round it. */
.home .model-cta.button:focus-visible {
  outline-color: var(--tone);
  outline-offset: 3px;
}
.home .model-cta.button:is(:hover, :focus-visible) {
  background: var(--tone-soft);
  color: var(--tone-text);
}
.home .model-cta.button:is(:hover, :focus-visible) > .cta-arrow {
  opacity: 1;
  translate: 0 0;
}
/* At rest the label sits in the middle; the arrow's room is beside it but
   empty. On hover the label moves over by half of that as the arrow comes. */
.home .model-cta.button > .cta-label {
  translate: calc((14px + 0.55rem) / 2) 0;
  transition: translate 0.45s var(--ease-out);
}
.home .model-cta.button:is(:hover, :focus-visible) > .cta-label {
  translate: 0 0;
}

.home .model-vekst {
  grid-column: 1 / -1;
  grid-row: auto;
  grid-template-rows: none;
  margin-top: 1rem;
  gap: 1.25rem;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
}
.home .model-vekst .model-card {
  --card: clamp(7rem, 8vw, 8rem);
  gap: 0.55rem;
}
/* The smaller card gets a smaller name and sign, with or without a mouse,
   so both sit well inside it. */
.home .model-vekst .model-card h3 {
  font-size: calc(var(--card) * 0.18);
}
.home .model-vekst .model-card .model-sign {
  width: calc(var(--card) * 0.4);
}
.home .model-vekst .model-lead {
  font-size: clamp(1.2rem, 1.6vw, 1.375rem);
}
/* KI-kurs has its own page: a slim panel under the packages leads there,
   built like the panels above it, with the same button as theirs. */
.home .course-entry {
  --tone: #1560e6;
  --tone-text: #1458d0;
  --tone-soft: #eef4fd;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem clamp(1.5rem, 4vw, 3rem);
  margin-top: 1rem;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  border-radius: 4px;
  background: var(--panel-deep);
  /* A fine light edge inside and a faint neutral shadow under: the panel
     reads as a sheet lying on the page, without any glow. */
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.65),
    0 1px 2px rgba(16, 28, 40, 0.04),
    0 14px 28px -22px rgba(16, 28, 40, 0.22);
}
.course-entry-text {
  max-width: 40rem;
}
.course-entry-kicker {
  margin-bottom: 0.5rem;
  color: #1458d0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.course-entry h3 {
  font-size: clamp(1.2rem, 1.6vw, 1.375rem);
  line-height: 1.2;
}
.course-entry-text > p:last-child {
  margin-top: 0.5rem;
  color: var(--muted);
}
.home .course-entry .button-soft {
  flex: none;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px var(--rule);
}
@media (max-width: 760px) {
  .home .course-entry {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (min-width: 761px) {
  .home .model-vekst {
    grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr);
    column-gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: center;
  }
  .home .model-vekst > .model-card {
    grid-column: 1;
    grid-row: 1 / span 2;
  }
  .home .model-vekst > .model-text,
  .home .model-vekst > .model-actions {
    grid-column: 2;
  }
  .home .model-vekst > figure {
    grid-column: 3;
    grid-row: 1 / span 2;
  }
}

@media (min-width: 761px) and (max-width: 1100px) {
  .home .model {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: clamp(2rem, 4vw, 3rem);
  }
  .home .model > .model-card,
  .home .model > .model-text,
  .home .model > .model-actions {
    grid-column: 1;
  }
  .home .model > figure {
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: center;
  }
}
@media (max-width: 1100px) {
  .models {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    gap: 1rem;
  }
  .home .model {
    grid-row: auto;
    grid-template-rows: none;
  }
}
@media (max-width: 860px) {
  .home .section-head {
    grid-template-columns: minmax(0, 1fr);
  }
  /* One axis below the hero: the problem and About us read left-aligned
     like the sections around them. */
  .home .problem-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .home .problem-body > .globe {
    grid-column: 1;
    grid-row: auto;
    margin-top: 2.5rem;
  }
  .home .about #about-title {
    align-self: flex-start;
    text-align: left;
  }
  .home .about .founder {
    margin-inline: 0;
    text-align: left;
  }
}
@media (max-width: 640px) {
  .home .site-header {
    min-height: 64px;
  }
  .brand-mark {
    height: 34px;
  }
  .brand .brand-word {
    height: 32px;
    margin-left: 6.5px;
  }
  .home .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 22rem;
  }
  .home .hero-actions .button {
    width: 100%;
  }
  .home .hero-actions .button-primary {
    justify-content: center;
  }
  .contact-email {
    font-size: 1.125rem;
    overflow-wrap: anywhere;
  }
  html:has(> body.home) {
    scroll-padding-top: calc(64px + 1rem);
  }
  .home .model-text {
    text-align: left;
  }
  .home .model-card {
    justify-self: start;
  }
  .home .steps li::before {
    margin: 0.2rem 0 0;
  }
}
/* Phones on their side: a low header, so the page itself has room. */
@media (max-height: 500px) and (orientation: landscape) {
  .home .site-header {
    min-height: 56px;
  }
  .brand-mark {
    height: 32px;
  }
  .brand .brand-word {
    height: 30px;
    margin-left: 6px;
  }
  html:has(> body.home) {
    scroll-padding-top: calc(56px + 1rem);
  }
}
/* Narrow phones: the e-mail address has the full width of the footer, and
   the fish sits beside «Til toppen». */
@media (max-width: 440px) {
  .home .site-footer > a[href^="mailto:"] {
    grid-column: 1 / -1;
  }
}
@media (max-width: 640px) {
  .home .globe {
    width: min(100%, 17rem);
  }
  .home .strands canvas {
    height: clamp(19rem, 92vw, 23rem);
  }
}
@media (max-width: 360px) {
  .home .hero h1 {
    font-size: 2.5rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .home .model-ring {
    display: none;
  }
}
