:root {
  --bg: #061e20;
  --primary: #00e6c2;
  --secondary: #00b89c;
  --tertiary: #005f56;
  --text: #e6f7f5;
  --muted: #7a8f9a;
  --line: rgba(0, 230, 194, 0.22);
  --font: "Montserrat", system-ui, sans-serif;
  --max: 1120px;
  --nav-h: 76px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  z-index: 0;
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(ellipse 50% 40% at 100% 0%, rgba(0, 184, 156, 0.16), transparent 55%),
    var(--bg);
  line-height: 1.6;
  color-scheme: dark;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

button,
.btn,
a,
input,
textarea {
  cursor: pointer;
}

::selection {
  background: var(--primary);
  color: var(--bg);
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--primary);
  color: var(--bg);
  padding: 0.75rem 1rem;
  z-index: 100;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
}

[data-lang] {
  display: none;
}

[data-lang].active {
  display: inline;
}

p[data-lang].active,
h1[data-lang].active,
h2[data-lang].active,
h3[data-lang].active,
li[data-lang].active {
  display: block;
}

main,
.footer {
  position: relative;
  z-index: 1;
}

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  background: var(--bg);
  box-shadow: 0 0 36px 28px var(--bg);
}

/* Nav */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(6, 30, 32, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 230, 194, 0.12);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  padding: 0.85rem 0;
}

.brand {
  flex-shrink: 0;
}

.brand img {
  width: 168px;
  height: auto;
}

.nav-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.85rem 1.35rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.35rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
}

.nav-links a,
.nav-cta,
.footer-links a {
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.nav-links a:hover,
.nav-cta:hover,
.footer-links a:hover {
  color: var(--text);
  background: rgba(6, 30, 32, 0.85);
  box-shadow: 0 0 0 1px rgba(230, 247, 245, 0.35), 0 0 16px rgba(0, 230, 194, 0.22);
}

.lang {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.lang button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 0;
  background: transparent;
  padding: 0.35rem 0.65rem;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  min-height: 32px;
}

.flag {
  width: 16px;
  height: 11px;
  border-radius: 1px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.28);
}

.lang button.active {
  background: var(--primary);
  color: var(--bg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn::after,
.service a::after {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M4 11h11.2l-3.8-3.8 1.4-1.4L19.8 12l-7 7-1.4-1.4 3.8-3.8H4z'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M4 11h11.2l-3.8-3.8 1.4-1.4L19.8 12l-7 7-1.4-1.4 3.8-3.8H4z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(100deg, #7dfff0 0%, var(--primary) 42%, var(--secondary) 100%);
  color: #062422;
  box-shadow: 0 0 28px rgba(0, 230, 194, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 0 36px rgba(0, 230, 194, 0.45);
}

.btn-ghost {
  background: transparent;
  border-color: var(--primary);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(0, 230, 194, 0.08);
}

.nav-cta {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.92rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
  background:
    linear-gradient(90deg, var(--bg) 0%, transparent 52%),
    url("../assets/hero.jpg") right center / cover no-repeat;
}

.hero-visual {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse 42% 55% at 82% 48%, rgba(0, 230, 194, 0.16), transparent 62%),
    radial-gradient(ellipse 30% 40% at 10% 90%, rgba(0, 95, 86, 0.45), transparent 70%);
}

.hero-drift {
  position: absolute;
  left: -8%;
  top: -18%;
  width: 150%;
  height: 150%;
}

.arc {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0.72;
}

.hero-visual svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  transform-origin: 78% 46%;
  transform: scale(var(--hero-zoom, 1));
  transition: transform 0.45s ease;
}

.hero-inner {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  padding: 5.5rem 0 4.5rem;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 58rem;
}

.hero h1 {
  margin: 1.35rem 0 1.15rem;
  font-size: clamp(1.85rem, 3.3vw, 2.85rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}

.hero h1 [data-lang].active {
  display: block;
}

.hero-accent {
  color: var(--primary);
}

.hero-logo {
  width: min(100%, 26rem);
  height: auto;
}

.hero-lead {
  margin: 0 0 2rem;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* Sections */
.section {
  padding: 5.5rem 0;
  scroll-margin-top: var(--nav-h);
}

.section-head {
  margin-bottom: 1.75rem;
  max-width: 40rem;
}

.eyebrow {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
}

.process .section-head {
  max-width: none;
}

.process .eyebrow {
  white-space: nowrap;
  font-size: clamp(0.62rem, 1.55vw, 1.15rem);
  letter-spacing: 0.08em;
}

.services {
  display: grid;
  gap: 1rem;
}

.service {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem 1.4rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(0, 95, 86, 0.55), rgba(0, 40, 38, 0.35)),
    var(--bg);
  box-shadow: 0 0 0 14px var(--bg);
}

.service-icon {
  width: 28px;
  height: 28px;
  color: var(--primary);
}

.service h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.service p {
  margin: 0;
  color: var(--muted);
  flex: 1;
}

.service a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.92rem;
  width: fit-content;
}

.service a:hover {
  color: var(--text);
}

/* Process */
.process {
  background:
    radial-gradient(ellipse 40% 80% at 0% 50%, rgba(0, 184, 156, 0.1), transparent 60%),
    transparent;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.75rem;
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.85rem;
  align-items: start;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.step-num {
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--primary);
  line-height: 1;
  padding-top: 0.12rem;
}

.steps h3 {
  margin: 0 0 0.4rem;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.steps p {
  margin: 0;
  color: var(--muted);
}

/* About */
.about-layout {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.about-copy p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.about-person {
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 0.85rem;
  width: fit-content;
}

.about-photo {
  width: 220px;
  height: auto;
  aspect-ratio: 3 / 4;
  border-radius: 20px;
  border: 1px solid var(--line);
  object-fit: cover;
  box-shadow: 0 0 0 14px var(--bg);
}

.about-person figcaption {
  text-align: center;
}

.about-person strong {
  display: block;
  font-weight: 600;
}

.about-person figcaption span {
  color: var(--muted);
  font-size: 0.92rem;
}

.partners {
  margin-top: 3.25rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--line);
}

.partners .eyebrow {
  margin-bottom: 1.35rem;
}

.logo-banner {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  justify-items: center;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.logo-banner li {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.logo-banner img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 36px;
}

.logo-banner .logo-su {
  max-height: 76px;
}

.logo-banner .logo-halden {
  max-height: 58px;
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 2.5rem;
}

.contact-copy {
  display: flex;
  flex-direction: column;
}

.contact-copy .section-head {
  margin-bottom: 0.85rem;
}

.contact-lead {
  margin: 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.6;
}

.contact-meta {
  display: grid;
  gap: 0.85rem;
  margin-top: 2.75rem;
}

.contact-meta a {
  color: var(--primary);
  font-weight: 600;
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0;
  color: var(--muted);
}

.contact-meta svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 0.2em;
  color: var(--primary);
}

.form {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.5rem;
  background:
    linear-gradient(180deg, rgba(0, 95, 86, 0.4), rgba(0, 40, 38, 0.2)),
    var(--bg);
  box-shadow: 0 0 0 14px var(--bg);
}

.form-group {
  margin-bottom: 1rem;
}

.form label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}

.form input,
.form textarea {
  width: 100%;
  border: 1px solid rgba(0, 230, 194, 0.18);
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  font: inherit;
  color: var(--text);
  background: rgba(6, 30, 32, 0.65);
}

.form input:focus,
.form textarea:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 230, 194, 0.18);
}

.form textarea {
  min-height: 140px;
  resize: vertical;
}

.form .btn {
  width: 100%;
  margin-top: 0.35rem;
}

.form-status {
  margin-top: 0.9rem;
  font-size: 0.9rem;
  display: none;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-ok {
  color: var(--primary);
}

.form-status.is-err {
  color: #ff8d7a;
}

.form-note {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

/* Footer */
.footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(0, 230, 194, 0.14);
  padding: 2.2rem 0 2.4rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer::after {
  content: "";
  position: absolute;
  right: -8%;
  bottom: -40%;
  width: min(520px, 70vw);
  height: 180px;
  border: 1.5px solid rgba(0, 230, 194, 0.45);
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(0, 230, 194, 0.25);
  pointer-events: none;
}

.footer-top {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.4rem;
}

.footer-brand img {
  width: 220px;
  height: auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.35rem;
}

.footer-meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(0, 230, 194, 0.12);
}

.footer-meta a {
  color: var(--primary);
}

@media (min-width: 800px) {
  .services {
    grid-template-columns: 1fr 1fr;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .steps li {
    border-top: 0;
    padding-top: 0;
    border-left: 1px solid var(--line);
    padding-left: 1.35rem;
  }

  .steps li:first-child {
    border-left: 0;
    padding-left: 0;
  }

  .about-layout {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0;
  }

  .about-person {
    margin-left: 4.5rem;
    padding-left: 4.5rem;
    border-left: 1px solid var(--line);
  }

  .contact-grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: stretch;
  }

  .contact-copy {
    padding: 1.75rem 0;
  }

  .contact-meta {
    margin-top: auto;
    padding-top: 2.5rem;
  }

  .form {
    padding: 1.75rem;
  }
}

@media (max-width: 720px) {
  :root {
    --nav-h: 96px;
  }

  .nav-inner {
    flex-wrap: wrap;
    row-gap: 0.1rem;
    padding: 0.45rem 0 0.35rem;
  }

  .nav-right {
    display: contents;
  }

  .brand {
    order: 1;
  }

  .brand img {
    width: 112px;
  }

  .lang {
    order: 2;
    margin-left: auto;
  }

  .nav-inner::after {
    content: "";
    order: 2;
    flex-basis: 100%;
    height: 0;
  }

  .nav-links {
    order: 3;
    flex: 1;
    gap: 0.15rem 0.7rem;
  }

  .nav-cta {
    order: 3;
  }

  .lang button {
    padding: 0.28rem 0.42rem;
    gap: 0.25rem;
  }

  .hero {
    align-items: flex-start;
    min-height: 100svh;
    background:
      linear-gradient(180deg, rgba(6, 30, 32, 0.25) 0%, rgba(6, 30, 32, 0.72) 46%, rgba(6, 30, 32, 0.94) 100%),
      linear-gradient(90deg, rgba(6, 30, 32, 0.94) 0%, rgba(6, 30, 32, 0.78) 70%, rgba(6, 30, 32, 0.5) 100%),
      url("../assets/hero.jpg") 70% center / cover no-repeat;
  }

  .hero-inner {
    padding: 0.85rem 0 2.25rem;
  }

  .hero-logo {
    width: min(100%, 15rem);
  }

  .hero h1 {
    margin: 0.85rem 0 0.7rem;
  }

  .hero-lead {
    margin-bottom: 1.15rem;
    color: #d5e8e5;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .section {
    padding: 3.25rem 0;
  }

  .about-person {
    justify-self: center;
  }

  .process .eyebrow {
    white-space: normal;
    font-size: 0.95rem;
  }

  .logo-banner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.35rem 1.6rem;
  }

  .logo-banner li {
    flex: 0 1 auto;
  }

  .logo-banner img {
    max-width: 132px;
    max-height: 26px;
  }

  .logo-banner .logo-su {
    max-height: 42px;
  }

  .logo-banner .logo-halden {
    max-width: 46px;
    max-height: 54px;
  }
}

@media (max-width: 380px) {
  :root {
    --nav-h: 124px;
  }

  .brand img {
    width: 96px;
  }

  .lang button {
    padding: 0.2rem 0.28rem;
    font-size: 0.68rem;
    gap: 0.18rem;
  }

  .flag {
    width: 13px;
    height: 9px;
  }

  .nav-links,
  .nav-cta {
    font-size: 0.8rem;
  }

  .nav-links {
    gap: 0.1rem 0.4rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
