/* Inter (SIL Open Font License), served from the site itself: @fontsource-variable/inter 5.1.1, latin. */
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
}

:root {
  --color-background: #f7f8f5;
  --color-surface: #ffffff;
  --color-text: #171a17;
  --color-text-muted: #5f665f;
  --color-green: #176b45;
  --color-green-dark: #105237;
  --color-yellow: #e9b949;
  --color-border: #dfe3dc;
  --color-dark: #18201c;
  --content-max-width: 1240px;
  --page-gutter: clamp(1.25rem, 4vw, 3rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--color-background);
  color: var(--color-text);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.site-header {
  position: relative;
  z-index: 10;
  background: var(--color-background);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - (2 * var(--page-gutter)), var(--content-max-width));
  min-height: 6rem;
  margin-inline: auto;
}

.logo {
  display: inline-flex;
  align-items: center;
}

.logo img {
  display: block;
  width: auto;
  height: 6.655rem; /* +10 % */
}

.primary-navigation ul {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.75rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-navigation a {
  position: relative;
  display: block;
  padding-block: 0.5rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 160ms ease;
}

.primary-navigation a:hover,
.primary-navigation a:focus-visible,
.primary-navigation a.is-active {
  color: var(--color-text);
}

.primary-navigation a.is-active::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--color-green);
  content: "";
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  overflow: hidden;
  background: var(--color-surface);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
  gap: clamp(2rem, 3vw, 3.25rem);
  align-items: center;
  width: min(100% - (2 * var(--page-gutter)), var(--content-max-width));
  margin-inline: auto;
  padding-top: clamp(2.75rem, 5vw, 4.5rem);
  padding-bottom: clamp(3.5rem, 5.5vw, 5rem);
}

.hero__content {
  max-width: 44rem;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.75rem, 4vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.02;
}

.hero__period {
  color: var(--color-yellow);
}

.hero__lead {
  max-width: 36rem;
  margin: 2rem 0 2.25rem;
  color: var(--color-text-muted);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.65;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 3.5rem;
  padding: 0.85rem 1.4rem;
  background: var(--color-green);
  color: #ffffff;
  font-weight: 700;
  transition: background-color 160ms ease, transform 160ms ease;
}

.button:hover {
  background: var(--color-green-dark);
  transform: translateY(-1px);
}

.button:focus-visible,
.menu-toggle:focus-visible,
.logo:focus-visible,
.primary-navigation a:focus-visible {
  outline: 3px solid var(--color-yellow);
  outline-offset: 4px;
}

.hero__media {
  width: 100%;
}

.hero__media video {
  display: block;
  width: 100%;
  height: auto;
  background: #ffffff;
  border: 1px solid var(--color-border);
}

.product-label {
  margin: 0 0 1.25rem;
  color: var(--color-green);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.about-hero .hero__inner {
  grid-template-columns: 1fr;
}

.about-hero .hero__content {
  max-width: 58rem;
}

.hero.about-hero h1 {
  font-size: clamp(2.2rem, 3.3vw, 3.15rem);
}

.about-hero .hero__lead {
  max-width: 48rem;
  margin-bottom: 0;
}

.about-hero .hero__lead + .hero__lead {
  margin-top: 1rem;
}

.about-section {
  border-top: 1px solid var(--color-border);
}

.about-section:nth-child(odd) {
  background: var(--color-surface);
}

.about-section__inner {
  width: min(100% - (2 * var(--page-gutter)), var(--content-max-width));
  margin-inline: auto;
  padding-block: clamp(4rem, 7vw, 6.5rem);
}

@media (min-width: 801px) {
  .about-section[aria-label="Kontaktinformasjon"] .about-section__inner {
    padding-top: 0;
  }
}

.about-section__content {
  max-width: 48rem;
}

.about-section h2 {
  margin: 0 0 1.5rem;
  font-size: clamp(2rem, 3.5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.about-section p {
  margin: 0 0 1rem;
  color: var(--color-text-muted);
  font-size: clamp(1rem, 1.25vw, 1.125rem);
  line-height: 1.75;
}

.pilot-section .button {
  margin-top: 0.75rem;
}

.about-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--color-green);
  font-weight: 700;
}

.about-link:hover {
  color: var(--color-green-dark);
}

.about-link:focus-visible {
  outline: 3px solid var(--color-yellow);
  outline-offset: 4px;
}

.founder-name {
  margin-bottom: 0.1rem !important;
  color: var(--color-text) !important;
  font-size: 1.25rem !important;
  font-weight: 700;
}

.founder-role {
  margin-bottom: 1.75rem !important;
  color: var(--color-green) !important;
  font-size: 0.95rem !important;
  font-weight: 700;
}

.process {
  background: var(--color-background);
  border-top: 1px solid var(--color-border);
}

.process__inner {
  width: min(100% - (2 * var(--page-gutter)), var(--content-max-width));
  margin-inline: auto;
  padding-block: clamp(5rem, 9vw, 8rem);
}

.process h2 {
  margin: 0;
  font-size: clamp(2rem, 3.5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  text-align: center;
}

.process__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(3rem, 7vw, 6rem);
  margin: clamp(3.5rem, 6vw, 5rem) 0 0;
  padding: 0;
  list-style: none;
}

.process__step {
  position: relative;
  min-width: 0;
}

.process__step:not(:last-child)::after {
  position: absolute;
  top: clamp(4rem, 6vw, 5.5rem);
  left: calc(100% + 1rem);
  color: var(--color-green-dark);
  content: "→";
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.process__visual {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

.process__visual img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.process__step h3 {
  margin: 1.4rem 0 0.4rem;
  font-size: 1.2rem;
  line-height: 1.3;
}

.process__step p {
  margin: 0;
  color: var(--color-text-muted);
  line-height: 1.65;
}

.ribbon-section {
  background: var(--color-background);
}

.ribbon-section__inner {
  width: min(100% - (2 * var(--page-gutter)), var(--content-max-width));
  margin-inline: auto;
  padding-block: clamp(4rem, 7vw, 6.5rem);
}

.ribbon-section h1 {
  margin: 0;
  font-size: clamp(2rem, 3.5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.ribbon-section__lead {
  max-width: 36rem;
  margin: 1rem 0 clamp(2rem, 4vw, 3rem);
  color: var(--color-text-muted);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.65;
}

.ribbon {
  overflow: hidden;
  background: #3b4453;
  color: #e6e9ee;
  border: 1px solid #2c333f;
}

.ribbon__tabs {
  display: flex;
  padding: 0.4rem 0.75rem 0;
}

.ribbon__tab {
  padding: 0.35rem 1rem;
  font-size: 0.95rem;
}

.ribbon__tab.is-active {
  background: #454f5e;
  color: #ffffff;
}

.ribbon__panel {
  display: inline-grid;
  justify-items: center;
  padding: 0.6rem 0.75rem 0.4rem;
  background: #454f5e;
  border-right: 1px solid #5a6474;
}

.ribbon__buttons {
  display: flex;
  gap: 0.25rem;
}

.ribbon__button {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  min-width: 6.5rem;
  padding: 0.6rem 0.75rem;
  background: transparent;
  color: inherit;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.ribbon__button img {
  width: 32px;
  height: 32px;
}

.ribbon__button:hover {
  background: #505b6c;
  border-color: #6b7689;
}

.ribbon__button[aria-selected="true"] {
  background: #56657a;
  border-color: #8fa3bd;
}

.ribbon__button:focus-visible,
.step-nav:focus-visible {
  outline: 3px solid var(--color-yellow);
  outline-offset: 2px;
}

.ribbon__panel-label {
  margin: 0.5rem 0 0;
  color: #b5bcc7;
  font-size: 0.8rem;
}

.step-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.75rem, 3vw, 2.5rem);
  padding: clamp(1.75rem, 4vw, 3rem);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 0;
}

.step-panel[hidden] {
  display: none;
}

.step-panel__content {
  max-width: 48rem;
}

.step-panel__count {
  margin: 0 0 0.75rem;
  color: var(--color-green);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.step-panel h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.step-panel__content p:not(.step-panel__count) {
  margin: 0 0 1rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.step-panel__list {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
  padding: 0 0 0 1.1rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.step-panel__list strong {
  color: var(--color-text);
}

.step-panel__content > p:last-child {
  margin-bottom: 0;
}

.step-panel__media video {
  display: block;
  width: 100%;
  height: auto;
  background: #ffffff;
  border: 1px solid var(--color-border);
}

.step-panel__nav {
  display: flex;
  grid-column: 1 / -1;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.step-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.7rem 1.25rem;
  background: var(--color-green);
  color: #ffffff;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  transition: background-color 160ms ease;
}

.step-nav:hover {
  background: var(--color-green-dark);
}

.step-nav--back {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.step-nav--back:hover {
  background: var(--color-background);
}

.site-footer a:focus-visible {
  outline: 3px solid var(--color-yellow);
  outline-offset: 4px;
}

.site-footer {
  background: var(--color-dark);
  color: #ffffff;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4rem;
  width: min(100% - (2 * var(--page-gutter)), var(--content-max-width));
  margin-inline: auto;
  padding-block: clamp(3.5rem, 6vw, 5rem) 2rem;
}

.site-footer__intro {
  max-width: 25rem;
}

.site-footer__logo {
  display: inline-flex;
  align-items: center;
}

.site-footer__logo img {
  display: block;
  width: auto;
  height: 7.3205rem; /* +10 % */
  filter: brightness(0) invert(1);
}

.site-footer__intro p {
  margin: 1.25rem 0 0;
  color: #aeb8b1;
  line-height: 1.65;
}

.site-footer__navigation ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(6rem, 1fr));
  gap: 0.75rem 2.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__navigation a {
  color: #d9dfdb;
  font-size: 0.95rem;
}

.site-footer__navigation a:hover {
  color: #ffffff;
}

.site-footer__copyright {
  grid-column: 1 / -1;
  margin: 1rem 0 0;
  padding-top: 1.5rem;
  color: #859087;
  font-size: 0.8rem;
  border-top: 1px solid #303a34;
}

@media (max-width: 800px) {
  .site-header__inner {
    min-height: 5rem;
  }

  .logo img {
    height: 5.65675rem; /* +10 % */
  }

  .menu-toggle {
    display: grid;
    gap: 0.4rem;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0.75rem 0.6rem;
    background: transparent;
    border: 1px solid var(--color-border);
    cursor: pointer;
  }

  .menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-text);
    transition: transform 160ms ease;
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }

  .primary-navigation {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    padding: 0.75rem var(--page-gutter) 1.5rem;
    background: var(--color-background);
    border-bottom: 1px solid var(--color-border);
  }

  .primary-navigation.is-open {
    display: block;
  }

  .primary-navigation ul {
    display: grid;
    gap: 0;
  }

  .primary-navigation a {
    padding-block: 0.85rem;
    border-bottom: 1px solid var(--color-border);
  }

  .primary-navigation a.is-active::after {
    right: auto;
    width: 2rem;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 3.5rem;
    padding-block: clamp(4rem, 12vw, 6rem);
  }

  .hero h1 {
    font-size: clamp(2.6rem, 11vw, 3.75rem);
  }

  .hero__lead {
    margin-block: 1.5rem 2rem;
  }

  .process__inner {
    padding-block: 4.5rem;
  }

  .process__steps {
    grid-template-columns: 1fr;
    gap: 3.5rem;
    margin-top: 3rem;
  }

  .process__step:not(:last-child)::after {
    top: auto;
    bottom: -2.4rem;
    left: 50%;
    transform: rotate(90deg);
  }

  .ribbon__panel {
    display: grid;
    border-right: 0;
  }

  .ribbon__buttons {
    width: 100%;
  }

  .ribbon__button {
    flex: 1;
    min-width: 0;
    padding-inline: 0.25rem;
    font-size: 0.85rem;
  }

  .step-nav {
    padding-inline: 1rem;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 2.75rem;
    padding-top: 3.5rem;
  }

  .site-footer__navigation ul {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .site-footer__navigation a {
    display: block;
    padding-block: 0.6rem;
  }

  .site-footer__copyright {
    grid-column: auto;
    margin-top: 0;
  }
}

@media (max-width: 360px) {
  .hero h1 {
    font-size: 2.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
