/* Swissnord — single dark look, matching the white-on-black brand mark.
   Layout: one left-aligned 1120px column; sections separated by space and fine rules; the 5D method is the one bold moment. */
:root {
  --ink: #000000;          /* page ground, same black as the logo */
  --ink-raised: #0c0e10;   /* panels, form fields */
  --paper: #eef0ee;        /* primary text */
  --mist: #9ba3a8;         /* secondary text */
  --line: rgba(238, 240, 238, 0.14);
  --glacier: #a9c1d6;      /* single cool accent */
  --font: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.75rem;
  --step-3: 2.5rem;
  --step-4: clamp(2.6rem, 6.5vw, 5rem);
  --wrap: 70rem;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--glacier); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* Header */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 21; background: var(--ink); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; font-weight: 600; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand img { height: 30px; width: auto; }
.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a { text-decoration: none; color: var(--mist); font-size: var(--step--1); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--paper); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.85rem 1.5rem;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--paper); border-radius: 999px;
  font: 600 var(--step--1) / 1 var(--font);
  text-decoration: none; cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.btn:hover { background: transparent; color: var(--paper); }
.nav .btn { color: var(--ink); padding: 0.6rem 1.1rem; }
.nav .btn:hover { color: var(--paper); }

/* Sections */
.section { padding-block: clamp(4rem, 9vw, 7rem); border-top: 1px solid var(--line); }
.section:first-of-type { border-top: 0; }
.eyebrow { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--glacier); margin-bottom: 1rem; }
.section-head { display: grid; gap: 1.25rem; max-width: 44rem; margin-bottom: 3rem; }
.section-head h2 { font-size: var(--step-3); }
.lede { color: var(--mist); font-size: var(--step-1); line-height: 1.5; max-width: 40rem; }
.prose { display: grid; gap: 1.1rem; max-width: 40rem; color: var(--mist); }
.prose p:first-child { color: var(--paper); }

/* Hero */
.hero { padding-block: clamp(4.5rem, 12vw, 9rem) clamp(3.5rem, 8vw, 6rem); }
.hero h1 { font-size: var(--step-4); max-width: 15ch; letter-spacing: -0.035em; }
.hero .lede { margin-top: 1.75rem; }
.hero .btn { margin-top: 2.25rem; }

/* Hero light effect (home): red-orange and blue light seen through ribbed glass */
.hero--fx {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(18% 55% at 28% 20%, rgba(235, 22, 30, 0.55), transparent 70%),
    radial-gradient(22% 60% at 62% 30%, rgba(30, 45, 255, 0.55), transparent 70%),
    radial-gradient(14% 50% at 86% 55%, rgba(235, 22, 30, 0.5), transparent 70%),
    #03040a;
  padding-block: clamp(9rem, 20vw, 13rem) clamp(5rem, 10vw, 8rem);
}
.hero-fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; display: block; }
.hero--fx::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.2) 45%, rgba(0, 0, 0, 0) 65%),
    linear-gradient(180deg, rgba(0, 0, 0, 0) 60%, var(--ink) 100%);
}
.hero--fx .lede { color: #c9cfd3; }

/* Header floats over the effect on the home page, then turns solid on scroll */
.has-fx .site-header { position: fixed; left: 0; right: 0; background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; transition: background 0.3s, border-color 0.3s; }
.has-fx .site-header.is-solid { background: rgba(0, 0, 0, 0.82); border-bottom-color: var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.has-fx .nav a:not(.btn) { color: rgba(238, 240, 238, 0.85); }

.statement {
  font-size: var(--step-2); line-height: 1.3; max-width: 34ch; font-weight: 500; letter-spacing: -0.015em;
}

/* 5D method: a real sequence, so it is numbered */
.method { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.method li { padding: 1.75rem 1.5rem 0 0; display: grid; gap: 0.6rem; align-content: start; position: relative; }
.method li + li { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.method .num { font-size: 3.25rem; font-weight: 300; line-height: 1; color: var(--glacier); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.method .tag { font-size: var(--step--1); color: var(--mist); }
.method h3 { font-size: var(--step-1); }
.method p { color: var(--mist); font-size: 0.95rem; }
.pull { margin-top: 3.5rem; font-size: var(--step-1); max-width: 36rem; padding-left: 1.25rem; border-left: 2px solid var(--glacier); }

/* Industries */
.industries { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.industries li { padding: 0.7rem 1.2rem; border: 1px solid var(--line); border-radius: 999px; color: var(--paper); font-size: var(--step--1); }

/* Feature grid (experience, values) */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 2.5rem 3rem; }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 2.5rem 2rem; }
.grid article { display: grid; gap: 0.6rem; align-content: start; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.grid h3 { font-size: var(--step-1); }
.grid p { color: var(--mist); font-size: 0.97rem; }
.icon { width: 28px; height: 28px; color: var(--glacier); margin-bottom: 0.5rem; }

.stats { display: flex; flex-wrap: wrap; gap: 3rem; margin-top: 3.5rem; }
.stat strong { display: block; font-size: var(--step-3); font-weight: 400; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat span { color: var(--mist); font-size: var(--step--1); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.portrait { aspect-ratio: 1088 / 1118; max-width: 100%; border-radius: 6px; background: var(--ink-raised); border: 1px solid var(--line); display: grid; place-items: center; color: var(--mist); font-size: var(--step--1); overflow: hidden; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }

/* FAQ */
.faq { border-top: 1px solid var(--line); max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.4rem; font-size: var(--step-1); font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 300; font-size: 1.6rem; color: var(--glacier); transition: transform 0.2s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--mist); padding-bottom: 1.5rem; max-width: 44rem; }

/* CTA */
.cta { text-align: left; }
.cta h2 { font-size: var(--step-3); max-width: 20ch; margin-bottom: 2rem; }

/* Contact */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact-layout h1 { font-size: var(--step-3); }
.note { margin-top: 1.75rem; padding: 1rem 1.25rem; border-left: 2px solid var(--glacier); color: var(--paper); }
.form { display: grid; gap: 1.25rem; background: var(--ink-raised); border: 1px solid var(--line); border-radius: 8px; padding: clamp(1.25rem, 4vw, 2.25rem); }
.field { display: grid; gap: 0.45rem; min-width: 0; }
.field label { font-size: var(--step--1); color: var(--mist); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--paper); background: var(--ink);
  border: 1px solid var(--line); border-radius: 6px; padding: 0.8rem 0.9rem;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--glacier); }
.form .btn { justify-self: start; }
.form-status { font-size: var(--step--1); color: var(--glacier); min-height: 1.4em; }
.hp { position: absolute; left: -9999px; }

/* Legal page */
.legal { max-width: 46rem; padding-block: clamp(3.5rem, 8vw, 6rem); }
.legal h1 { font-size: var(--step-3); margin-bottom: 0.5rem; }
.legal h2 { font-size: var(--step-1); margin-top: 2.5rem; margin-bottom: 0.75rem; }
.legal p, .legal li { color: var(--mist); }
.legal p + p { margin-top: 0.8rem; }
.legal strong { color: var(--paper); font-weight: 600; }
.legal ul { padding-left: 1.2rem; display: grid; gap: 0.4rem; margin: 0.75rem 0; }
.legal a { color: var(--glacier); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 3.5rem 2rem; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 1.5rem; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.5rem; font-size: var(--step--1); color: var(--mist); }
.footer-links a { color: var(--mist); text-decoration: none; }
.footer-links a:hover { color: var(--paper); }
.wordmark { display: block; margin-top: 3rem; }
.wordmark img { width: 100%; height: auto; }
.copyright { margin-top: 1.5rem; font-size: 0.8rem; color: var(--mist); }

.not-found { padding-block: clamp(5rem, 14vw, 10rem); }
.not-found h1 { font-size: var(--step-4); margin-bottom: 1.5rem; }

/* Motion, matching the SwissNord short. Only applies when html.anim is set (motion allowed, JS running). */
@keyframes sn-rise { from { opacity: 0; transform: translateY(1.25rem); } to { opacity: 1; transform: none; } }
.anim .hero--fx .wrap > * { opacity: 0; animation: sn-rise 0.9s cubic-bezier(.2,.7,.2,1) forwards; }
.anim .hero--fx .wrap > :nth-child(1) { animation-delay: 0.15s; }
.anim .hero--fx .wrap > :nth-child(2) { animation-delay: 0.45s; }
.anim .hero--fx .wrap > :nth-child(3) { animation-delay: 0.75s; }

.method li::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 2px; background: var(--paper); opacity: 0.55; transform-origin: left center; }
.method li:last-child::before { background: #ff1a10; opacity: 1; }
.method li + li::before { left: 0; }
.anim .method li::before { transform: scaleX(0); transition: transform 0.9s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--d, 0) * 0.35s); }
.anim .method li > * { opacity: 0; transform: translateY(1rem); transition: opacity 0.7s ease, transform 0.8s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--d, 0) * 0.35s + 0.15s); }
.anim .method li.is-in::before { transform: scaleX(1); }
.anim .method li.is-in > * { opacity: 1; transform: none; }
.anim .method + .pull { opacity: 0; transform: translateY(1rem); transition: opacity 0.8s ease, transform 0.9s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--d, 0) * 0.35s); }
.anim .method + .pull.is-in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .method { grid-template-columns: 1fr; }
  .method li, .method li + li { padding: 1.5rem 0; border-left: 0; border-bottom: 1px solid var(--line); grid-template-columns: 4.5rem 1fr; column-gap: 1rem; }
  .method .num { grid-row: span 3; font-size: 2.6rem; }
  .split, .contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .nav { gap: 1.1rem; }
  .brand img { height: 22px; }
  .nav .btn { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
