/*
 * Nordkapp Web — nk-web.css
 * Design tokens and components extracted from the nordkapp.fi Framer project ("Nordkapp 2026").
 * Values are copied from Framer; see references/tokens.json and references/components.md.
 * Do not edit per site. Per-site changes go in site.css (accent colours only, see references/subbrand.md).
 */

/* ---------- Fonts ---------- */
@font-face { font-family: "APK Protocol"; src: url("fonts/APKProtocol-Light.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "APK Protocol"; src: url("fonts/APKProtocol-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "APK Protocol"; src: url("fonts/APKProtocol-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  /* Framer colour tokens */
  --nk-black: rgb(10, 10, 10);
  --nk-white: rgb(255, 255, 255);
  --nk-gray: rgb(245, 245, 245);       /* page ground */
  --nk-dark: rgb(18, 18, 18);          /* layout template background */
  --nk-ink: rgb(9, 9, 9);              /* text colour used in most text styles */
  --nk-muted: rgba(10, 10, 10, 0.6);   /* secondary text (opacity .6 in Framer) */
  --nk-faint: rgba(10, 10, 10, 0.5);   /* tiny labels */
  --nk-dot: rgb(233, 233, 233);        /* inactive step dots, light dividers */
  --nk-line: rgba(10, 10, 10, 0.15);   /* animated line colour */
  --nk-on-dark-muted: rgba(255, 255, 255, 0.6);

  /* Subsite accent (references/subbrand.md). Defaults keep nordkapp.fi monochrome. */
  --nk-accent: var(--nk-black);
  --nk-accent-ink: var(--nk-white);    /* text/icons on accent */
  --nk-accent-soft: var(--nk-white);   /* tinted card surface */
  --nk-accent-2: var(--nk-accent);

  /* Type */
  --nk-font: "APK Protocol", "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --nk-gutter: 36px;                   /* section side padding: 36 / 30 / 20 */
  --nk-container: 1520px;              /* inner container max width */
  --nk-gap: 4px;                       /* the grid gutter between tiles everywhere */
  --nk-section-gap: 200px;             /* space between sections: 200 / 120 / 50 */
  --nk-radius-card: 18px;
  --nk-radius-card-s: 16px;
  --nk-radius-media: 24px;
  --nk-radius-pill: 50px;
  --nk-nav-h: 88px;

  /* Motion: tweens copied from Framer */
  --nk-ease-text: cubic-bezier(0.44, 0, 0.13, 0.96);       /* text reveal tween, 0.9s */
  --nk-ease-card: cubic-bezier(0.82, 0.11, 0.37, 0.82);    /* card hover tween, 0.45s */
  --nk-ease-sheet: cubic-bezier(0.96, -0.02, 0.38, 1.01);  /* menu open/close tween, 0.5s */
  --nk-ease-link: cubic-bezier(0.44, 0, 0.56, 1);          /* link colour tween, 0.2s */
  /* spring presets: generated by scripts/spring_to_css.py --all (do not edit by hand) */
  /* spring 1.2s bounce .1 (in-view appear): k=49.9 d=12.7 m=1.0; CSS duration 0.82s */
  --nk-spring-appear: linear(0, 0.0124, 0.0451, 0.0919, 0.1482, 0.2102, 0.2749, 0.3401, 0.4041, 0.4658, 0.5242, 0.5788, 0.6293, 0.6755, 0.7176, 0.7554, 0.7893, 0.8195, 0.8461, 0.8696, 0.89, 0.9078, 0.9232, 0.9365, 0.9478, 0.9574, 0.9656, 0.9725, 0.9782, 0.983, 0.987, 0.9902, 0.9928, 0.995, 0.9967, 1);
  --nk-spring-appear-dur: 0.82s;
  /* spring .39s bounce .35 (buttons): k=709.3 d=34.6 m=1.0; CSS duration 0.37s */
  --nk-spring-button: linear(0, 0.0348, 0.1223, 0.2406, 0.3726, 0.5054, 0.63, 0.7408, 0.8348, 0.9108, 0.9694, 1.0122, 1.041, 1.0583, 1.0665, 1.0679, 1.0643, 1.0577, 1.0493, 1.0402, 1.0312, 1.023, 1.0158, 1.0097, 1.0049, 1.0012, 0.9985, 0.9968, 0.9958, 0.9954, 0.9954, 0.9957, 0.9962, 0.9968, 0.9974, 1);
  --nk-spring-button-dur: 0.37s;
  /* spring .4s bounce .2 (small UI): k=505.6 d=36.0 m=1.0; CSS duration 0.36s */
  --nk-spring-ui: linear(0, 0.0233, 0.0822, 0.1633, 0.2561, 0.353, 0.4486, 0.5389, 0.6217, 0.6957, 0.7603, 0.8155, 0.8619, 0.9001, 0.9309, 0.9553, 0.9742, 0.9884, 0.9987, 1.0059, 1.0107, 1.0135, 1.0149, 1.0152, 1.0147, 1.0137, 1.0125, 1.011, 1.0096, 1.0081, 1.0068, 1.0055, 1.0044, 1.0035, 1.0027, 1);
  --nk-spring-ui-dur: 0.36s;
  /* stiffness 210 damping 30 mass 1 (menu items): k=210.0 d=30.0 m=1; CSS duration 0.64s */
  --nk-spring-menu: linear(0, 0.0292, 0.0982, 0.1863, 0.2809, 0.3742, 0.4616, 0.541, 0.6115, 0.6731, 0.7263, 0.7717, 0.8102, 0.8426, 0.8698, 0.8925, 0.9114, 0.927, 0.94, 0.9507, 0.9596, 0.9668, 0.9728, 0.9777, 0.9818, 0.9851, 0.9878, 0.99, 0.9918, 0.9933, 0.9946, 0.9955, 0.9964, 0.997, 0.9976, 1);
  --nk-spring-menu-dur: 0.64s;
  /* stiffness 120 damping 25 mass .3 (hero after preloader): k=120.0 d=25.0 m=0.3; CSS duration 1.23s */
  --nk-spring-hero: linear(0, 0.1104, 0.2532, 0.3757, 0.4783, 0.564, 0.6357, 0.6956, 0.7456, 0.7874, 0.8224, 0.8516, 0.876, 0.8964, 0.9134, 0.9276, 0.9395, 0.9495, 0.9578, 0.9647, 0.9705, 0.9754, 0.9794, 0.9828, 0.9856, 0.988, 0.99, 0.9916, 0.993, 0.9941, 0.9951, 0.9959, 0.9966, 0.9971, 0.9976, 1);
  --nk-spring-hero-dur: 1.23s;
  /* end spring presets */
}

@media (max-width: 1199.98px) {
  :root { --nk-gutter: 30px; --nk-section-gap: 120px; }
}
@media (max-width: 809.98px) {
  :root { --nk-gutter: 20px; --nk-section-gap: 50px; --nk-nav-h: 88px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--nk-gray);
  color: var(--nk-ink);
  font-family: var(--nk-font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, h5, h6, p, figure, blockquote, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--nk-black); color: var(--nk-white); }
:focus-visible { outline: 2px solid var(--nk-accent); outline-offset: 3px; border-radius: 4px; }
.nk-sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nk-skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--nk-black); color: var(--nk-white); padding: 10px 16px; border-radius: var(--nk-radius-pill); }
.nk-skip:focus { top: 12px; }

/* ---------- Typography (Framer text styles, desktop / tablet / phone) ---------- */
.nk-display-l { font-size: 157px; line-height: 0.96; letter-spacing: -0.06em; font-weight: 400; }
.nk-display-s { font-size: 118px; line-height: 0.92; letter-spacing: -0.06em; font-weight: 400; }
.nk-title-l   { font-size: 67px;  line-height: 1.1;  letter-spacing: -0.06em; font-weight: 400; }
.nk-title-m   { font-size: 50px;  line-height: 1.1;  letter-spacing: -0.04em; font-weight: 400; }
.nk-title-s   { font-size: 38px;  line-height: 1.1;  letter-spacing: -0.04em; font-weight: 400; }
.nk-para-l    { font-size: 28px;  line-height: 1.2;  letter-spacing: 0; }
.nk-para-m    { font-size: 21px;  line-height: 1.2;  letter-spacing: 0; }
.nk-para-s    { font-size: 16px;  line-height: 1.3;  letter-spacing: 0; }
.nk-para-xs   { font-size: 14px;  line-height: 1.3;  letter-spacing: 0; }
.nk-card-title { font-size: 18px; line-height: 1.3;  font-weight: 700; }
.nk-label     { font-size: 10px;  line-height: 1.1;  letter-spacing: -0.06em; font-weight: 700; color: var(--nk-faint); }
.nk-caption   { font-size: 12px;  line-height: 1.3;  letter-spacing: -0.04em; color: var(--nk-muted); }
.nk-muted     { color: var(--nk-muted); }
.nk-on-dark .nk-muted, .nk-dark .nk-muted { color: var(--nk-on-dark-muted); }
.nk-dark .nk-tile .nk-muted, .nk-dark .nk-contact-card .nk-muted { color: var(--nk-muted); }
/* Long-form (blog) styles */
.nk-prose { font-size: 17px; line-height: 1.4; letter-spacing: -0.04em; color: var(--nk-muted); max-width: 720px; }
.nk-prose h1 { font-size: 60px; line-height: 1.1; letter-spacing: -0.06em; font-weight: 700; color: var(--nk-ink); }
.nk-prose h2 { font-size: 23px; line-height: 1.3; letter-spacing: -0.04em; font-weight: 700; color: var(--nk-black); margin: 30px 0 12px; }
.nk-prose h3 { font-size: 18px; line-height: 1.4; letter-spacing: -0.04em; font-weight: 700; color: var(--nk-black); margin: 30px 0 10px; }
.nk-prose p + p { margin-top: 20px; }
.nk-prose ul { list-style: disc; padding-left: 1.2em; margin: 20px 0; }
.nk-prose ol { list-style: decimal; padding-left: 1.2em; margin: 20px 0; }
.nk-prose a, .nk-link { color: var(--nk-black); text-decoration: underline; text-underline-offset: 2px; transition: color 0.2s var(--nk-ease-link); }
.nk-prose a:hover, .nk-link:hover { color: rgba(10, 10, 10, 0.8); text-decoration: none; }
.nk-dark .nk-link, .nk-on-dark .nk-link { color: var(--nk-white); }
.nk-balance { text-wrap: balance; }
.nk-pretty { text-wrap: pretty; }

@media (max-width: 1199.98px) {
  .nk-display-l { font-size: 118px; }
  .nk-display-s { font-size: 99px; }
  .nk-title-l   { font-size: 50px; }
  .nk-title-s   { font-size: 28px; }
  .nk-para-l    { font-size: 21px; }
  .nk-prose { font-size: 16px; }
  .nk-prose h1 { font-size: 50px; }
  .nk-prose h2 { font-size: 22px; }
  .nk-prose h3 { font-size: 17px; }
}
@media (max-width: 809.98px) {
  .nk-display-l { font-size: 67px; }
  .nk-display-s { font-size: 62px; }
  .nk-title-m   { font-size: 38px; }
  .nk-para-m    { font-size: 16px; }
  .nk-para-s    { font-size: 14px; }
  .nk-prose { font-size: 15px; }
  .nk-prose h1 { font-size: 36px; }
  .nk-prose h2 { font-size: 20px; line-height: 1.2; }
  .nk-prose h3 { font-size: 16px; line-height: 1.2; }
}

/* ---------- Layout ---------- */
.nk-page { display: flex; flex-direction: column; min-height: 100vh; overflow-x: clip; }
.nk-main { display: flex; flex-direction: column; gap: var(--nk-section-gap); background: var(--nk-gray); padding-bottom: var(--nk-section-gap); }
.nk-section { padding-inline: var(--nk-gutter); }
.nk-section--pad { padding-block: 200px; }
.nk-container { width: 100%; max-width: var(--nk-container); margin-inline: auto; }
.nk-stack { display: flex; flex-direction: column; }
.nk-stack-120 { display: flex; flex-direction: column; gap: 120px; }
.nk-stack-100 { display: flex; flex-direction: column; gap: 100px; }
.nk-stack-60 { display: flex; flex-direction: column; gap: 60px; }
.nk-stack-40 { display: flex; flex-direction: column; gap: 40px; }
.nk-stack-20 { display: flex; flex-direction: column; gap: 20px; }
.nk-row { display: flex; gap: var(--nk-gap); align-items: flex-start; }
.nk-row--between { justify-content: space-between; align-items: flex-end; }

/* The 4-column grid. Columns butt together with 4px gaps. */
.nk-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--nk-gap); }
.nk-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nk-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nk-grid--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.nk-span-2 { grid-column: span 2; }
.nk-span-3 { grid-column: span 3; }
.nk-span-all { grid-column: 1 / -1; }
.nk-col-2 { grid-column-start: 2; }
.nk-col-4 { grid-column-start: 4; }

/* Section header: label in column 1, heading spanning columns 2–4 (or the full width). */
.nk-head { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--nk-gap); align-items: start; }
.nk-head__label { display: flex; align-items: center; gap: 9px; max-width: 250px; padding-top: 0.4em; }
.nk-head__title { grid-column: 2 / -1; position: relative; }
.nk-head--full .nk-head__title { grid-column: 1 / -1; }
.nk-head__count { position: absolute; top: 0; font-size: 37px; opacity: 0.4; margin-left: 12px; }

/* Text block on the grid: lead text in columns 2–3, side note in column 4. */
.nk-textgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--nk-gap); }
.nk-textgrid__aside { font-size: 14px; line-height: 1.3; color: var(--nk-muted); max-width: 300px; }
.nk-textgrid__lead { grid-column: 2 / span 2; max-width: 780px; }
.nk-textgrid__side { grid-column: 4; font-size: 14px; color: var(--nk-muted); max-width: 300px; }

@media (max-width: 1199.98px) {
  .nk-grid--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nk-grid--2.nk-grid--collapse-tablet { grid-template-columns: 1fr; }
  .nk-grid--4-to-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nk-stack-120 { gap: 90px; }
  .nk-stack-100 { gap: 60px; }
  .nk-section--pad { padding-block: 100px; }
}
@media (max-width: 809.98px) {
  .nk-grid, .nk-grid--2, .nk-grid--3, .nk-grid--4-to-2 { grid-template-columns: 1fr; }
  .nk-grid--6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nk-grid--numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .nk-span-2, .nk-span-3, .nk-col-2, .nk-col-4 { grid-column: auto; }
  .nk-head, .nk-textgrid { grid-template-columns: 1fr; gap: 16px; }
  .nk-head__title, .nk-textgrid__lead, .nk-textgrid__side { grid-column: auto; }
  .nk-stack-120 { gap: 40px; }
  .nk-stack-100, .nk-stack-60 { gap: 40px; }
  .nk-section--pad { padding-block: 50px; }
}

/* ---------- Surfaces ---------- */
.nk-dark { background: var(--nk-black); color: var(--nk-white); }
.nk-white { background: var(--nk-white); }
.nk-accent { background: var(--nk-accent); color: var(--nk-accent-ink); }
.nk-tile {
  background: var(--nk-white);
  border-radius: var(--nk-radius-card);
  padding: 30px;
  display: flex; flex-direction: column; gap: 30px;
  overflow: hidden;
}
.nk-tile--40 { padding: 40px; }
.nk-tile--tall { min-height: 326px; justify-content: space-between; }
.nk-tile--accent { background: var(--nk-accent-soft); }
.nk-tile--dark { background: var(--nk-black); color: var(--nk-white); }

/* Grain overlay (Framer "Grain", opacity .05) */
.nk-grain { position: absolute; inset: 0; pointer-events: none; opacity: 0.05; mix-blend-mode: normal;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- Icons ---------- */
.nk-plus { position: relative; display: inline-block; width: 16px; height: 16px; flex: none; color: currentColor; transition: transform var(--nk-spring-ui-dur) var(--nk-spring-ui); }
.nk-plus::before, .nk-plus::after { content: ""; position: absolute; left: 7px; top: 0; width: 2px; height: 16px; background: currentColor; }
.nk-plus::after { transform: rotate(90deg); }
.nk-plus--faint { opacity: 0.3; }
.nk-plus-dot { position: relative; display: inline-block; width: 16px; height: 16px; border-radius: 50%; background: var(--nk-black); flex: none; transition: transform var(--nk-spring-ui-dur) var(--nk-spring-ui); }
.nk-plus-dot::before, .nk-plus-dot::after { content: ""; position: absolute; left: 7px; top: 4px; width: 2px; height: 8px; background: var(--nk-white); }
.nk-plus-dot::after { transform: rotate(90deg); }
.nk-arrow-ne { width: 10px; height: 10px; opacity: 0.3; flex: none; }

/* ---------- Buttons ---------- */
/* Label roll: the visible label slides up and an identical copy comes in from below. */
.nk-roll { position: relative; display: inline-grid; overflow: hidden; }
.nk-roll > span { grid-area: 1 / 1; transition: transform var(--nk-spring-button-dur) var(--nk-spring-button); }
.nk-roll > span + span { transform: translateY(110%); }
a:hover .nk-roll > span:first-child, button:hover .nk-roll > span:first-child { transform: translateY(-110%); }
a:hover .nk-roll > span + span, button:hover .nk-roll > span + span { transform: translateY(0); }

.nk-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 58px; padding: 15px 25px; border-radius: var(--nk-radius-pill);
  background: var(--nk-black); color: var(--nk-white);
  font-size: 18px; font-weight: 700; letter-spacing: -0.04em; line-height: 1;
  white-space: nowrap; transition: background-color var(--nk-spring-button-dur) var(--nk-spring-button), color 0.39s;
}
.nk-btn--wide { min-width: 200px; }
.nk-btn--block { width: 100%; }
.nk-btn--light { background: var(--nk-white); color: var(--nk-black); }
.nk-btn--accent { background: var(--nk-accent); color: var(--nk-accent-ink); }
.nk-btn:hover { background: rgb(0, 0, 0); }
.nk-btn--light:hover { background: var(--nk-white); }
.nk-btn--accent:hover { background: var(--nk-accent); filter: brightness(0.95); }

.nk-btn-s {
  display: inline-flex; align-items: center; gap: 34px;
  padding: 12px 24px; border-radius: var(--nk-radius-pill);
  background: var(--nk-black); color: var(--nk-white);
  font-size: 16px; line-height: 1.3; white-space: nowrap;
}
.nk-btn-s--light { background: var(--nk-white); color: var(--nk-black); }
.nk-btn-s--accent { background: var(--nk-accent); color: var(--nk-accent-ink); }
.nk-btn-s__dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
@media (max-width: 809.98px) { .nk-btn-s { font-size: 14px; } }

/* Small link: Para M label + diagonal arrow that swaps on hover */
.nk-slink { display: inline-flex; align-items: center; gap: 10px; font-size: 21px; line-height: 1.2; }
.nk-slink--s { font-size: 14px; }
.nk-slink__arrow { position: relative; width: 10px; height: 11px; overflow: hidden; flex: none; }
.nk-slink__arrow svg { position: absolute; left: 0; top: 0; width: 10px; height: 10px; opacity: 0.3; transition: transform var(--nk-spring-button-dur) var(--nk-spring-button); }
.nk-slink__arrow svg + svg { transform: translate(-16px, 16px); }
.nk-slink:hover .nk-slink__arrow svg:first-child { transform: translate(16px, -16px); }
.nk-slink:hover .nk-slink__arrow svg + svg { transform: translate(0, 0); }
@media (max-width: 809.98px) { .nk-slink { font-size: 16px; } }

/* List link (footer / menu lists): a dot fades in on the left on hover */
.nk-llink { position: relative; display: inline-flex; align-items: center; gap: 4px; font-size: 21px; line-height: 1.2; transition: gap var(--nk-spring-button-dur) var(--nk-spring-button); }
.nk-llink::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--nk-black); opacity: 0; position: absolute; left: -12px; transition: opacity 0.39s, left var(--nk-spring-button-dur) var(--nk-spring-button); }
.nk-llink:hover { gap: 7px; }
.nk-llink:hover::before { opacity: 0.25; position: relative; left: 0; }
.nk-on-dark .nk-llink::before, .nk-dark .nk-llink::before { background: var(--nk-white); }
@media (max-width: 809.98px) { .nk-llink { font-size: 16px; } }

/* Email link: plus dot + Para L address with 2px underline */
.nk-email { display: inline-flex; align-items: center; gap: 7px; font-size: 28px; line-height: 1.2; }
.nk-email__addr { position: relative; padding-bottom: 6px; }
.nk-email__addr::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: currentColor; transition: opacity var(--nk-spring-ui-dur) var(--nk-spring-ui); }
.nk-email:hover .nk-plus-dot { transform: rotate(90deg); }
.nk-email:hover .nk-email__addr::after { opacity: 0; }
@media (max-width: 1199.98px) { .nk-email { font-size: 21px; } }

.nk-chip { display: inline-flex; padding: 9px 12px; border-radius: var(--nk-radius-pill); background: var(--nk-white); font-size: 12px; line-height: 1; }
.nk-chip--accent { background: var(--nk-accent); color: var(--nk-accent-ink); }

/* ---------- Navigation ---------- */
.nk-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: var(--nk-gray);   /* solid, as in Framer. No backdrop-filter: it would trap the fixed menu sheet. */
  padding: 19px var(--nk-gutter);
  transition: background-color 0.5s var(--nk-ease-sheet);
}
.nk-nav.is-open { background: var(--nk-white); }
.nk-nav__bar { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.nk-nav__badge { display: block; width: 40px; height: 40px; flex: none; }
.nk-nav__badge img { width: 40px; height: 40px; }
.nk-nav__links { display: flex; align-items: center; justify-content: space-between; flex: 1; max-width: 960px; margin-inline: auto; padding-inline: 40px; }
.nk-nav__links a { font-size: 16px; line-height: 1.3; position: relative; }
.nk-nav__links a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor; }
.nk-nav__links .nk-nav__num { position: absolute; top: -1px; right: -14px; font-size: 9px; font-weight: 700; opacity: 0.6; letter-spacing: -0.04em; }
.nk-burger { position: relative; width: 59px; height: 30px; display: flex; flex-direction: column; justify-content: center; gap: 8px; flex: none; }
.nk-burger span { display: block; width: 59px; height: 2px; background: var(--nk-black); transition: transform var(--nk-spring-ui-dur) var(--nk-spring-ui); }
.nk-nav.is-open .nk-burger span { position: absolute; left: 0; top: 14px; }
.nk-nav.is-open .nk-burger span:first-child { transform: rotate(10deg); }
.nk-nav.is-open .nk-burger span:last-child { transform: rotate(-10deg); }

/* Full-screen menu sheet */
.nk-sheet {
  position: fixed; inset: 0; z-index: 1;
  background: var(--nk-white);
  padding: calc(var(--nk-nav-h) + 120px) var(--nk-gutter) 36px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 120px;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.5s var(--nk-ease-sheet), visibility 0s linear 0.5s;
  visibility: hidden; overflow-y: auto;
}
.nk-nav.is-open .nk-sheet { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 0.5s var(--nk-ease-sheet), visibility 0s; }
.nk-sheet__menu { display: flex; flex-direction: column; align-items: center; }
.nk-sheet__menu a { font-size: 60px; line-height: 1.2; font-weight: 700; letter-spacing: -0.06em; opacity: 0; transform: translateY(-40px); }
.nk-nav.is-open .nk-sheet__menu a { opacity: 1; transform: none; transition: opacity var(--nk-spring-menu-dur) var(--nk-spring-menu), transform var(--nk-spring-menu-dur) var(--nk-spring-menu); }
.nk-nav.is-open .nk-sheet__menu li:nth-child(2) a { transition-delay: 0.06s; }
.nk-nav.is-open .nk-sheet__menu li:nth-child(3) a { transition-delay: 0.12s; }
.nk-nav.is-open .nk-sheet__menu li:nth-child(4) a { transition-delay: 0.18s; }
.nk-nav.is-open .nk-sheet__menu li:nth-child(5) a { transition-delay: 0.18s; }
.nk-nav.is-open .nk-sheet__menu li:nth-child(n+6) a { transition-delay: 0.24s; }
.nk-sheet__bottom { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 10px; }
.nk-sheet__contact { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.nk-sheet__tel { font-size: 18px; letter-spacing: -0.04em; text-decoration: underline; text-underline-offset: 2px; }
.nk-sheet__legal { display: flex; gap: 42px; font-size: 16px; }
.nk-sheet__legal a { text-decoration: underline; text-underline-offset: 2px; }
.nk-sheet__wordmark { justify-self: end; width: 182px; }
html.nk-menu-open { overflow: hidden; }

@media (max-width: 1199.98px) {
  .nk-nav { padding: 19px 32px; }
  .nk-nav__links { display: none; }
  .nk-sheet { padding-top: calc(var(--nk-nav-h) + 110px); gap: 110px; }
  .nk-sheet__bottom { grid-template-columns: 1fr; justify-items: center; gap: 40px; }
  .nk-sheet__contact { align-items: center; }
  .nk-sheet__legal { flex-direction: column; align-items: center; gap: 10px; }
  .nk-sheet__wordmark { justify-self: center; }
}
@media (max-width: 809.98px) {
  .nk-nav { padding: 19px 20px; }
  .nk-sheet { padding: calc(var(--nk-nav-h) + 70px) 20px 40px; gap: 70px; }
  .nk-sheet__menu { gap: 4px; }
  .nk-sheet__menu a { font-size: 40px; }
  .nk-sheet__bottom { gap: 36px; }
}

/* ---------- Hero ---------- */
.nk-hero { height: 100vh; min-height: 640px; padding: 75px 4px 4px; display: flex; }
.nk-hero__panel { position: relative; flex: 1; border-radius: var(--nk-radius-media); overflow: hidden; background: var(--nk-black); color: var(--nk-white); display: flex; }
.nk-hero__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nk-hero__media--dim { opacity: 0.7; filter: grayscale(1); }
.nk-hero__content { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; padding: 90px 36px; }
.nk-hero__marks { display: flex; justify-content: space-between; opacity: 0.6; }
.nk-hero__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.nk-hero__intro { max-width: 480px; font-size: 16px; line-height: 1.3; }
.nk-hero__card { background: var(--nk-white); color: var(--nk-black); border-radius: var(--nk-radius-card-s); padding: 24px; display: flex; flex-direction: column; gap: 20px; max-width: 410px; }
.nk-hero--light .nk-hero__panel { background: var(--nk-white); color: var(--nk-black); }
.nk-hero--accent .nk-hero__panel { background: var(--nk-accent); color: var(--nk-accent-ink); }
@media (max-width: 1199.98px) { .nk-hero__content { padding: 60px 30px; } }
@media (max-width: 809.98px) {
  .nk-hero { height: auto; min-height: 92vh; }
  .nk-hero__content { padding: 40px 20px 20px; gap: 40px; }
  .nk-hero__marks { display: none; }
  .nk-hero__bottom { flex-direction: column; align-items: stretch; }
}

/* Plain page intro (inner pages, e.g. /ai): big title, then a text grid */
.nk-intro { padding: 300px var(--nk-gutter) 0; }
@media (max-width: 1199.98px) { .nk-intro { padding-top: 220px; } }
@media (max-width: 809.98px) { .nk-intro { padding-top: 150px; } }

/* ---------- Media ---------- */
.nk-media { position: relative; overflow: hidden; border-radius: var(--nk-radius-card); background: var(--nk-dot); }
.nk-media img, .nk-media video { width: 100%; height: 100%; object-fit: cover; }
.nk-media--wide { aspect-ratio: 16 / 8; }
.nk-media--card { aspect-ratio: 1.37; }
.nk-media--gray img { filter: grayscale(1); }

/* ---------- Cards ---------- */
.nk-logos { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--nk-gap); }
.nk-logo-card { background: var(--nk-white); border-radius: 14px; aspect-ratio: 1.6; display: grid; place-items: center; position: relative; }
.nk-logo-card img { width: 50%; max-width: 120px; max-height: 54px; object-fit: contain; filter: grayscale(1); }
@media (max-width: 1199.98px) { .nk-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 809.98px) { .nk-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Expertise / service card (nordkapp.fi "Our Expertise") */
.nk-service { background: var(--nk-white); border-radius: var(--nk-radius-card); padding: 30px; display: flex; flex-direction: column; gap: 20px; min-height: 360px; }
.nk-service__title { font-size: 28px; line-height: 1.2; letter-spacing: -0.04em; }
.nk-service__text { font-size: 14px; line-height: 1.3; color: var(--nk-muted); max-width: 320px; }
.nk-service__cta { margin-top: auto; }
.nk-service .nk-btn-s { width: 100%; justify-content: center; }
@media (max-width: 809.98px) { .nk-service { min-height: 260px; } }
/* Put an element first on phones (e.g. the "Let’s talk" heading before its form) */
@media (max-width: 809.98px) { .nk-phone-first { order: -1; } }

/* Project card: white header strip + image body; image grows on hover */
.nk-project { display: flex; flex-direction: column; border-radius: var(--nk-radius-card-s); color: inherit; }
.nk-project__head { background: var(--nk-white); border-radius: 18px 18px 0 0; height: 58px; padding: 18px 24px; display: flex; align-items: center; gap: 18px; }
.nk-project__body { position: relative; background: var(--nk-white); border-radius: 0 0 18px 18px; aspect-ratio: 1.37; overflow: hidden; }
.nk-project__img { position: absolute; inset: 4px; border-radius: var(--nk-radius-card-s); overflow: hidden; transition: inset 0.45s var(--nk-ease-card), border-radius 0.45s var(--nk-ease-card); }
.nk-project__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s var(--nk-ease-card); }
.nk-project__img::after { content: ""; position: absolute; inset: 0; background: var(--nk-black); opacity: 0.15; transition: opacity 0.45s var(--nk-ease-card); }
.nk-project__logo { position: absolute; inset: 0; margin: auto; width: 25%; height: auto; z-index: 1; filter: brightness(0) invert(1); transition: transform 0.45s var(--nk-ease-card); }
.nk-project:hover .nk-project__img { inset: 0; border-radius: 0; }
.nk-project:hover .nk-project__img img { transform: scale(1.13); }
.nk-project:hover .nk-project__img::after { opacity: 0.2; }
.nk-project:hover .nk-project__logo { transform: scale(0.8); }

/* Article card (small) */
.nk-article { background: var(--nk-white); border-radius: var(--nk-radius-card-s); padding: 10px; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; min-height: 520px; position: relative; }
.nk-article__img { height: 225px; border-radius: var(--nk-radius-card-s); overflow: hidden; background: var(--nk-dot); }
.nk-article__img img { width: 100%; height: 100%; object-fit: cover; }
.nk-article__text { padding: 20px; display: flex; flex-direction: column; gap: 10px; transition: gap 0.45s var(--nk-ease-card); }
.nk-article__title { font-size: 20px; line-height: 1.3; letter-spacing: -0.04em; }
.nk-article__intro { font-size: 16px; line-height: 1.3; color: var(--nk-muted); }
.nk-article .nk-plus-dot { position: absolute; top: 20px; right: 20px; }
.nk-article:hover .nk-plus-dot { transform: rotate(90deg); }
.nk-article:hover .nk-article__text { gap: 6px; }

/* Article card (large, image with gradient) */
.nk-article-l { position: relative; border-radius: var(--nk-radius-card); overflow: hidden; min-height: 520px; display: flex; flex-direction: column; justify-content: flex-end; color: var(--nk-white); background: var(--nk-black); }
.nk-article-l__img { position: absolute; inset: 0; }
.nk-article-l__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s var(--nk-ease-card), filter 0.45s var(--nk-ease-card); }
.nk-article-l__text { position: relative; padding: 40px; display: flex; flex-direction: column; gap: 20px; background: linear-gradient(180deg, rgba(10, 10, 10, 0) 0%, rgba(10, 10, 10, 0.95) 100%); border-radius: 12px; }
.nk-article-l__title { font-size: 38px; line-height: 1.1; letter-spacing: -0.04em; max-width: 400px; }
.nk-article-l__intro { font-size: 16px; line-height: 1.3; color: var(--nk-on-dark-muted); max-width: 400px; }
.nk-article-l:hover .nk-article-l__img img { transform: scale(1.1); filter: blur(5px); }
@media (max-width: 1199.98px) { .nk-article-l__title { font-size: 28px; } }

/* Number item (counter + caption) */
.nk-number { display: flex; flex-direction: column; gap: 18px; }
.nk-number__value { font-size: 67px; line-height: 1; letter-spacing: -0.06em; font-variant-numeric: tabular-nums; }
.nk-number__label { font-size: 16px; line-height: 1.3; color: var(--nk-muted); max-width: 140px; }
@media (max-width: 1199.98px) { .nk-number__value { font-size: 50px; } }

/* Stat card (two stacked tiles) */
.nk-stat { display: flex; flex-direction: column; gap: var(--nk-gap); }
.nk-stat__top { background: var(--nk-white); border-radius: var(--nk-radius-card); padding: 30px; display: flex; justify-content: space-between; align-items: flex-start; }
.nk-stat__value { font-size: 50px; line-height: 1; letter-spacing: -0.06em; font-weight: 700; }
.nk-stat__bottom { background: var(--nk-white); border-radius: var(--nk-radius-card); padding: 30px; min-height: 326px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.nk-stat__text { align-self: flex-end; max-width: 200px; font-size: 16px; line-height: 1.3; }

/* Step card + step dots */
.nk-step { background: var(--nk-white); border-radius: var(--nk-radius-card); padding: 30px; display: flex; flex-direction: column; gap: 30px; }
.nk-step__top { display: flex; gap: 20px; justify-content: space-between; }
.nk-step__body { display: flex; gap: 20px; align-items: flex-start; }
.nk-step__img { width: 51px; height: 51px; border-radius: 7px; flex: none; object-fit: cover; background: var(--nk-dot); }
.nk-step__text { font-size: 16px; line-height: 1.3; }
.nk-dots { display: flex; gap: 3px; }
.nk-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--nk-dot); }
.nk-dots i.is-on { background: var(--nk-accent); }

/* Testimonial */
.nk-quote { display: flex; flex-direction: column; gap: var(--nk-gap); height: 100%; }
.nk-quote__who { background: var(--nk-white); border-radius: var(--nk-radius-card); padding: 30px; display: flex; gap: 16px; align-items: center; }
.nk-quote__img { width: 46px; height: 46px; border-radius: 7px; object-fit: cover; flex: none; }
.nk-quote__body { background: var(--nk-white); border-radius: var(--nk-radius-card); padding: 30px; flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 120px; }
.nk-quote__text { font-size: 28px; line-height: 1.2; }
@media (max-width: 1199.98px) { .nk-quote__text { font-size: 21px; } }

/* Contact card / person */
.nk-contact-card { background: var(--nk-white); border-radius: var(--nk-radius-card-s); padding: 24px; display: flex; flex-direction: column; gap: 20px; max-width: 410px; color: var(--nk-black); }
.nk-contact-card__name { font-size: 28px; line-height: 1.2; }
.nk-person { display: flex; gap: 14px; align-items: center; }
.nk-person__img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; filter: grayscale(1); flex: none; }
.nk-person__name { font-size: 16px; line-height: 1.3; }
.nk-person__role { font-size: 16px; line-height: 1.3; color: var(--nk-muted); }

/* List rows (services / awards table): 12-col grid, line under each row */
.nk-rows { display: flex; flex-direction: column; }
.nk-rowitem { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; padding: 26px 0; font-size: 16px; line-height: 1.3; }
.nk-rowitem > :first-child { grid-column: span 2; color: var(--nk-muted); }
.nk-rowitem > :nth-child(2) { grid-column: span 6; }
.nk-rowitem > :nth-child(3) { grid-column: span 4; color: var(--nk-muted); }
.nk-rowitem::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--nk-line); transform-origin: left; }
.nk-dark .nk-rowitem::after { background: rgba(255, 255, 255, 0.2); }
@media (max-width: 809.98px) { .nk-rowitem { grid-template-columns: 1fr; gap: 6px; padding: 20px 0; } .nk-rowitem > * { grid-column: auto !important; } }

/* Simple column list (e.g. service lists on /ai) */
.nk-list { display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.3; }

/* FAQ (native details/summary) */
.nk-faq { display: flex; flex-direction: column; }
.nk-faq details { position: relative; border-bottom: 1px solid var(--nk-line); }
.nk-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 0; font-size: 21px; line-height: 1.2; }
.nk-faq summary::-webkit-details-marker { display: none; }
.nk-faq details[open] .nk-plus { transform: rotate(45deg); }
.nk-faq__answer { padding: 0 0 26px; font-size: 16px; line-height: 1.3; color: var(--nk-muted); max-width: 640px; }

/* Animated line (draws left to right when in view) */
.nk-line { height: 1px; background: var(--nk-line); transform-origin: left; }
.nk-dark .nk-line, .nk-on-dark .nk-line { background: rgba(255, 255, 255, 0.3); }

/* ---------- Forms ---------- */
.nk-form { display: flex; flex-direction: column; gap: 16px; }
.nk-field { position: relative; display: flex; flex-direction: column; }
.nk-input {
  width: 100%; border: 0; border-radius: 0; background: transparent; color: var(--nk-black);
  font: 400 18px/1.2 var(--nk-font); letter-spacing: -0.04em;
  padding: 0 0 20px; border-bottom: 1px solid var(--nk-line); outline: none;
  transition: border-color var(--nk-spring-ui-dur) var(--nk-spring-ui);
}
.nk-input::placeholder { color: var(--nk-muted); }
.nk-input:focus { border-bottom-color: var(--nk-black); }
textarea.nk-input { min-height: 150px; resize: vertical; }
/* Boxed variant (form inside the white "Let's talk" card) */
.nk-input--box { background: var(--nk-gray); border: 0; border-radius: 12px; padding: 18px 16px; min-height: 58px; }
.nk-input--box:focus { outline: 1px solid var(--nk-black); }
.nk-field__label { font-size: 14px; line-height: 1.3; margin-bottom: 10px; }
.nk-form__terms { font-size: 14px; line-height: 1.3; color: var(--nk-muted); }
.nk-form__terms a { color: var(--nk-black); text-decoration: underline; }
.nk-form__status { font-size: 14px; }

/* ---------- Footer ---------- */
.nk-footer { background: var(--nk-gray); }
.nk-footer__top { padding: 200px var(--nk-gutter) 100px; }
.nk-footer__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--nk-gap); max-width: var(--nk-container); margin-inline: auto; }
.nk-footer__col { display: flex; flex-direction: column; gap: 80px; padding-right: 80px; }
.nk-footer__group { display: flex; flex-direction: column; gap: 4px; }
.nk-footer__label { font-size: 16px; line-height: 1.3; color: var(--nk-muted); margin-bottom: 10px; }
.nk-footer__tel, .nk-footer__address a { font-size: 16px; line-height: 1.5; text-decoration: underline; text-underline-offset: 2px; }
.nk-footer__links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--nk-gap); }
.nk-footer__links ul { display: flex; flex-direction: column; gap: 8px; }
.nk-footer__ext { display: inline-flex; align-items: center; gap: 10px; }
.nk-footer__wordmark { width: 100%; max-width: 520px; }
.nk-footer__bottom { padding: 42px var(--nk-gutter); background: linear-gradient(90deg, var(--nk-black) 0%, rgb(5, 5, 5) 85%); color: var(--nk-white); }
.nk-footer__bottom-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--nk-gap); max-width: var(--nk-container); margin-inline: auto; align-items: center; font-size: 16px; line-height: 1.3; }
.nk-footer__legal { display: flex; gap: 40px; flex-wrap: wrap; }
.nk-footer__legal a:hover { color: rgba(255, 255, 255, 0.8); }
@media (max-width: 1199.98px) {
  .nk-footer__top { padding: 140px 30px 100px; }
  .nk-footer__col { gap: 70px; padding-right: 30px; }
  .nk-footer__bottom { padding: 42px 30px; }
}
@media (max-width: 809.98px) {
  .nk-footer__top { padding: 50px 20px; }
  .nk-footer__grid, .nk-footer__bottom-grid { grid-template-columns: 1fr; gap: 40px; }
  .nk-footer__col { gap: 40px; padding-right: 0; }
  .nk-footer__bottom { padding: 40px 24px; }
  .nk-footer__legal { flex-direction: column; gap: 12px; }
}

/* ---------- Preloader ---------- */
.nk-preloader { position: fixed; inset: 0; z-index: 200; background: var(--nk-black); color: var(--nk-white); display: grid; place-items: center; font-size: 38px; letter-spacing: -0.04em; transition: transform 1.1s cubic-bezier(0.7, 0, 0.2, 1); }
.nk-preloader.is-done { transform: translateY(-100%); }
.nk-preloader span { display: inline-block; opacity: 0; transform: translateY(0.4em); transition: opacity 0.5s var(--nk-ease-text), transform 0.5s var(--nk-ease-text); }
.nk-preloader.is-in span { opacity: 1; transform: none; }
@media (max-width: 809.98px) { .nk-preloader { font-size: 28px; } }

/* ---------- Motion states (driven by nk-motion.js) ---------- */
/* Hidden states apply only when JS is running (html.nk-js) and motion is allowed. */
@media (prefers-reduced-motion: no-preference) {
  .nk-js [data-nk-appear] { opacity: 0; transition: opacity var(--nk-spring-appear-dur) var(--nk-spring-appear), transform var(--nk-spring-appear-dur) var(--nk-spring-appear); transition-delay: var(--nk-delay, 0s); }
  .nk-js [data-nk-appear="up"] { transform: translateY(20px); transition-duration: 0.8s; }
  .nk-js [data-nk-appear].is-in { opacity: 1; transform: none; }

  .nk-js [data-nk-text] .nk-w { display: inline-block; opacity: 0; transform: translateY(10px); transition: opacity 0.9s var(--nk-ease-text), transform 0.9s var(--nk-ease-text); transition-delay: calc(var(--nk-delay, 0s) + var(--i) * 0.02s); }
  .nk-js [data-nk-text].is-in .nk-w { opacity: 1; transform: none; }

  .nk-js [data-nk-line] { transform: scaleX(0); transition: transform 1.2s var(--nk-ease-text); }
  .nk-js [data-nk-line].is-in, .nk-js .is-in > [data-nk-line], .nk-js .is-in [data-nk-line] { transform: scaleX(1); }
  .nk-js .nk-rowitem[data-nk-appear]::after { transform: scaleX(0); transition: transform 1.2s var(--nk-ease-text) 0.2s; }
  .nk-js .nk-rowitem.is-in::after { transform: scaleX(1); }

  .nk-js .nk-dots[data-nk-appear] i { opacity: 0; transition: opacity var(--nk-spring-appear-dur) var(--nk-spring-appear); }
  .nk-js .nk-dots.is-in i { opacity: 1; }
  .nk-js .nk-dots.is-in i:nth-child(1) { transition-delay: 0.8s; }
  .nk-js .nk-dots.is-in i:nth-child(2) { transition-delay: 1s; }
  .nk-js .nk-dots.is-in i:nth-child(3) { transition-delay: 1.2s; }
  .nk-js .nk-dots.is-in i:nth-child(4) { transition-delay: 1.4s; }

  .nk-js [data-nk-hero] { opacity: 0; transform: translateY(400px); }
  .nk-js [data-nk-hero].is-in { opacity: 1; transform: none; transition: opacity var(--nk-spring-hero-dur) var(--nk-spring-hero), transform var(--nk-spring-hero-dur) var(--nk-spring-hero); transition-delay: var(--nk-delay, 0s); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .nk-preloader { display: none; }
}
