/* ── Tokens ──────────────────────────────────────────────────────────────── */
:root {
  --bg: #000;
  --text: #fff;
  --text-dim: rgba(255, 255, 255, 0.55);
  --text-mute: rgba(255, 255, 255, 0.32);
  --border: rgba(255, 255, 255, 0.1);

  --section-pad: clamp(80px, 10vw, 140px);
  --side-pad: clamp(24px, 5vw, 80px);
  --max-width: 1340px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Reset ───────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ── Utilities ───────────────────────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--side-pad);
}

/* Fade-in scroll animation — GPU-friendly properties only */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in.delay-1 {
  transition-delay: 0.12s;
}

.fade-in.delay-2 {
  transition-delay: 0.24s;
}

.fade-in.delay-3 {
  transition-delay: 0.36s;
}

/* ── Navigation ──────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px var(--side-pad);
  transition: background 0.5s ease, padding 0.4s ease, border-color 0.5s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 20px var(--side-pad);
  border-bottom-color: var(--border);
}

.nav__logo {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
}

.nav__logo-img {
  display: flex;
  align-items: center;
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.25s;
}

.nav__logo-img:hover {
  opacity: 1;
}

.nav__logo-img-el {
  height: 22px;
  width: auto;
  display: block;
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 0 var(--side-pad) clamp(52px, 8vh, 100px);
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Gradient darkens edges/bottom without killing the video */
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0) 35%, rgb(0, 0, 0) 100%),
    linear-gradient(to right, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0) 90%);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: min(1100px, 85%);
}

.hero__headline {
  font-size: clamp(32px, 4.8vw, 72px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.032em;
}

.hero__apply-link {
  display: inline-block;
  margin-top: 32px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.38);
  padding: 9px 24px;
  transition: border-color 0.25s, background 0.25s;
}

.hero__apply-link:hover {
  border-color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.hero__scroll-hint {
  position: absolute;
  bottom: clamp(28px, 4vh, 52px);
  right: var(--side-pad);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

.hero__scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0));
  animation: scroll-drop 2.2s ease-in-out infinite;
  transform-origin: top center;
}

@keyframes scroll-drop {
  0% {
    transform: scaleY(0);
    opacity: 0;
  }

  30% {
    opacity: 1;
  }

  100% {
    transform: scaleY(1);
    opacity: 0;
  }
}

/* ── Shared section styles ───────────────────────────────────────────────── */
.section {
  padding: var(--section-pad) 0;
}

.section--alt {
  background: #060606;
}

.section__eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 28px;
}

.section__headline {
  font-size: clamp(30px, 3.8vw, 58px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 36px;
}

.section__body {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.75;
  color: var(--text-dim);
  max-width: 660px;
}

/* ── Mission ─────────────────────────────────────────────────────────────── */
.section--mission {
  position: relative;
  padding-top: clamp(60px, 7vw, 100px);
  padding-bottom: clamp(60px, 7vw, 100px);
}

.section--mission .container {
  position: relative;
  z-index: 2;
}

.section--mission::before,
.section--mission::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 80px;
  pointer-events: none;
  z-index: 1;
}

.mission__quote {
  font-size: clamp(20px, 2.6vw, 38px);
  font-weight: 300;
  line-height: 1.55;
  letter-spacing: -0.012em;
  color: rgba(255, 255, 255, 0.88);
  font-style: normal;
  max-width: 920px;
}

/* ── Industrial (video background section) ───────────────────────────────── */
.section--industrial {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.section--industrial::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 80px;
  pointer-events: none;
  z-index: 3;
  background: linear-gradient(to top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 35%, rgb(0, 0, 0) 100%);
}

.section__bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.section__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.74);
  z-index: 1;
}

/* Cancel the inherited top fade on sections that don't need it */
.section--finland::before,
.section--builder::before,
.section--cta::before {
  content: none;
}

/* Per-section overlay variation — breaks the monotony of identical dark blocks */
.section--finland .section__overlay {
  background: rgba(0, 0, 0, 0.66);
}

.section--builder .section__overlay {
  background: rgba(0, 0, 0, 0.80);
}

.section--cta .section__overlay {
  background: rgba(0, 0, 0, 0.62);
}

.section--industrial .container {
  position: relative;
  z-index: 2;
}

.industrial__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 8vw, 120px);
  align-items: start;
}

.industrial__headline {
  font-size: clamp(36px, 5vw, 76px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-top: 48px;
  margin-bottom: 0;
  text-wrap: balance;
}

.industrial__body {
  font-size: clamp(16px, 1.45vw, 19px);
  line-height: 1.85;
  color: var(--text-dim);
  /* optically align first line of body with first line of headline */
  padding-top: calc(1em * 1.1 + 28px);
  text-align: justify;
}

@media (max-width: 800px) {
  .industrial__layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .industrial__body {
    padding-top: 0;
  }
}

/* ── Finland ─────────────────────────────────────────────────────────────── */
.finland__head {
  padding-bottom: 48px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.finland__headline {
  font-size: clamp(38px, 6vw, 88px);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -0.035em;
  margin-top: 16px;
  margin-bottom: 0;
}

.finland__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
}

.finland__col {
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.85;
  color: var(--text-dim);
  text-align: justify;
}

@media (max-width: 720px) {
  .finland__cols {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ── Builder ─────────────────────────────────────────────────────────────── */
.section--builder::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 80px;
  pointer-events: none;
  z-index: 3;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 50%, rgb(0, 0, 0) 100%);
}

.section--builder .section__headline {
  font-size: clamp(38px, 6vw, 88px);
  line-height: 1.03;
  letter-spacing: -0.035em;
  margin-bottom: 32px;
}

.builder__intro {
  font-size: clamp(17px, 1.7vw, 23px);
  font-weight: 300;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
  max-width: 700px;
  margin-bottom: 64px;
  text-align: justify;
}

.builder__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  margin-bottom: 64px;
}

.builder__item {
  padding: 36px 32px 36px 0;
  border-right: 1px solid var(--border);
}

.builder__item:last-child {
  border-right: none;
}

.builder__item:not(:first-child) {
  padding-left: 32px;
}

.builder__item-num {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--text-mute);
  margin-bottom: 24px;
}

.builder__item-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  color: var(--text);
}

.builder__item-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-dim);
  text-align: justify;
}

.builder__closing {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-dim);
  max-width: 660px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}

@media (max-width: 900px) {
  .builder__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .builder__item:nth-child(2) {
    border-right: none;
  }

  .builder__item:nth-child(3) {
    border-top: 1px solid var(--border);
    padding-left: 0;
  }

  .builder__item:nth-child(4) {
    border-top: 1px solid var(--border);
    border-right: none;
  }
}

@media (max-width: 540px) {
  .builder__grid {
    grid-template-columns: 1fr;
  }

  .builder__item {
    border-right: none;
    border-top: 1px solid var(--border);
    padding-left: 0;
  }

  .builder__item:first-child {
    border-top: none;
  }
}

/* ── Timeline ────────────────────────────────────────────────────────────── */
.section--timeline {
  position: relative;
}

.section--timeline .container {
  position: relative;
  z-index: 2;
}

.section--timeline::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 80px;
  pointer-events: none;
  z-index: 1;
}

.section--timeline::before {
  top: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0) 35%, rgb(0, 0, 0) 100%);
}

.timeline {
  margin-top: 20px;
  border-top: 1px solid var(--border);
}

.timeline__item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.timeline__date {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
  padding-top: 3px;
}

.timeline__title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.timeline__desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-dim);
  max-width: 520px;
}

/* ── CTA ─────────────────────────────────────────────────────────────────── */

.section--cta {
  text-align: center;
}

.section--cta .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta__headline {
  font-size: clamp(36px, 5.5vw, 88px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 20px;
}

.cta__sub {
  font-size: 15px;
  color: var(--text-dim);
  margin-bottom: 52px;
  letter-spacing: 0.02em;
}

.cta__btn {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #000;
  background: #fff;
  padding: 16px 52px;
  text-decoration: none;
  transition: background 0.25s, transform 0.25s;
}

.cta__btn:hover {
  background: rgba(255, 255, 255, 0.86);
  transform: translateY(-2px);
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.footer {
  padding: 36px 0;
  border-top: 1px solid var(--border);
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__logo {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

.footer__copy {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.2);
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .split-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .timeline__item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .timeline__date {
    margin-bottom: 10px;
  }
}

@media (max-width: 640px) {
  .hero__content {
    max-width: 100%;
  }

  .hero__scroll-hint {
    display: none;
  }

  .nav__cta {
    display: none;
  }

  .section__body {
    max-width: 100%;
  }
}

/* ── Reduced motion ──────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero__scroll-line {
    animation: none;
  }
}