@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/assets/fonts/schibsted-grotesk.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #101935;
  --navy-2: #1A2550;
  --navy-line: #2C3868;
  --cobalt: #2643E9;
  --cobalt-dk: #1B32BE;
  --mint: #5FD3AE;
  --paper: #F3F4F7;
  --white: #FFFFFF;
  --ink: #101935;
  --slate: #5B6275;
  --line: #D6DAE3;
  --on-navy: #E6E9F4;
  --on-navy-dim: #A6AEC9;

  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 76rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --sec: clamp(4rem, 9vw, 7.5rem);
  --r-sm: 6px;
  --r: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0;
  font: 400 1.0625rem/1.6 var(--font);
  color: var(--ink);
  background: var(--white);
  font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; line-height: 1.12; font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--cobalt); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--cobalt-dk); }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 2px; }
.hero :focus-visible, .top :focus-visible, .cta :focus-visible, .foot :focus-visible { outline-color: var(--mint); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 50; background: var(--white); color: var(--ink); padding: .6rem 1rem; border-radius: var(--r-sm); }
.skip:focus { top: 1rem; }
.muted { color: var(--slate); }

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3rem; padding: .7rem 1.35rem;
  background: var(--cobalt); color: var(--white);
  font: 600 1rem/1 var(--font); text-decoration: none;
  border: 0; border-radius: var(--r-sm); cursor: pointer;
  transition: background-color .15s ease;
}
.btn:hover { background: var(--cobalt-dk); color: var(--white); }
.btn-small { min-height: 2.5rem; padding: .55rem 1rem; font-size: .95rem; }
.link-light { color: var(--on-navy); font-weight: 500; }
.link-light:hover { color: var(--white); }

/* Header */
.top { background: var(--navy); color: var(--on-navy); position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--navy-line); }
.top-in { display: flex; align-items: center; justify-content: space-between; min-height: 4.25rem; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: inherit; text-decoration: none; font-weight: 750; font-size: 1.2rem; letter-spacing: -0.02em; }
.brand:hover { color: var(--white); }
.mark { width: 2.25rem; height: 2.25rem; flex: none; object-fit: contain; }
.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a:not(.btn) { color: var(--on-navy); text-decoration: none; font-weight: 500; padding: .4rem 0; border-bottom: 2px solid transparent; }
.nav a:not(.btn):hover { color: var(--white); }
.nav a[aria-current="page"]:not(.btn) { color: var(--white); border-bottom-color: var(--mint); }
.menu { display: none; }

@media (max-width: 760px) {
  .menu {
    display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1rem;
    background: transparent; color: var(--on-navy); border: 1px solid var(--navy-line); border-radius: var(--r-sm);
    font: 600 .95rem var(--font); cursor: pointer;
  }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy); border-bottom: 1px solid var(--navy-line); padding: .5rem var(--gutter) 1.25rem;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: .9rem 0; border-bottom: 1px solid var(--navy-line); font-size: 1.1rem; }
  .nav a[aria-current="page"]:not(.btn) { border-bottom-color: var(--navy-line); color: var(--mint); }
  .nav .btn { margin-top: 1rem; min-height: 3rem; }
}

/* Hero (navy) */
.hero { background: var(--navy); color: var(--on-navy); padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3.5rem, 7vw, 6rem); }
.hero-short { padding-bottom: clamp(3rem, 6vw, 4.5rem); }
.hero-head { max-width: 46rem; }
.hero h1 { color: var(--white); font-size: clamp(2.2rem, 5.4vw, 4.1rem); font-weight: 750; letter-spacing: -0.035em; }
.hero-head p { margin-top: 1.25rem; font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--on-navy-dim); max-width: 40rem; }
.hero-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2.5rem; }

/* The product index: the portfolio as type */
.ix { margin-top: clamp(2.5rem, 6vw, 4.5rem); border-top: 1px solid var(--navy-line); counter-reset: ix; }
.ix-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 10.5rem; align-items: center; gap: .25rem 2rem; border-bottom: 1px solid var(--navy-line); }
.ix-link {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 21rem); align-items: center; gap: .35rem 2.5rem;
  padding: clamp(.9rem, 2vw, 1.35rem) 0; color: var(--white); text-decoration: none;
}
.ix-name {
  font-size: clamp(2.2rem, 5vw, 4.5rem); font-weight: 750; letter-spacing: -0.045em; line-height: 1; overflow-wrap: anywhere;
  color: var(--white); transition: color .2s ease, transform .25s ease;
}
.ix-meta { display: flex; flex-direction: column; gap: .15rem; }
.ix-area { color: var(--white); font-weight: 600; font-size: 1.02rem; }
.ix-line { color: var(--on-navy-dim); font-size: .98rem; line-height: 1.45; }
.ix-domain {
  justify-self: end; display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap;
  color: var(--on-navy-dim); text-decoration: none; font-size: .95rem; padding: .5rem 0;
}
.ix-domain::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 3px rgba(95, 211, 174, .18); }
.ix-domain:hover { color: var(--white); text-decoration: underline; }
.ix-link:hover .ix-name, .ix-link:focus-visible .ix-name { color: var(--mint); transform: translateX(.35rem); }

@media (max-width: 1100px) {
  .ix-link { grid-template-columns: minmax(0, 1fr) minmax(0, 18rem); }
}
@media (max-width: 860px) {
  .ix-link { grid-template-columns: 1fr; }
  .ix-domain { justify-self: start; }
  .ix-row { grid-template-columns: 1fr; }
  .ix-domain { padding: 0 0 1rem; margin-top: -.35rem; }
}

/* One orchestrated moment: the index sets itself on page load */
@media (prefers-reduced-motion: no-preference) {
  .ix-row { opacity: 0; transform: translateY(14px); animation: ix-in .6s cubic-bezier(.2, .7, .2, 1) forwards; animation-delay: calc(80ms * var(--i) + 120ms); }
  @keyframes ix-in { to { opacity: 1; transform: none; } }
}

/* Sections */
.sec { padding: var(--sec) 0; }
.sec + .sec:not(.sec-tint) { padding-top: 0; }
.sec-tint { background: var(--paper); }
.sec.sec-tint + .sec:not(.sec-tint) { padding-top: var(--sec); }
.sec-head { max-width: 44rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.sec h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
.sec-head p, .split-head p { margin-top: 1rem; color: var(--slate); font-size: 1.12rem; }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: start; }
.split-head { position: sticky; top: 6.5rem; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split-head { position: static; } }

/* Integration wall */
.int { border-top: 2px solid var(--ink); }
.int-group { display: grid; grid-template-columns: 11rem 1fr; gap: .5rem 1.5rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.int-group h3 { font-size: .95rem; font-weight: 600; color: var(--slate); letter-spacing: 0; padding-top: .3rem; }
.int-group p { display: flex; flex-wrap: wrap; gap: .1rem 0; font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 650; letter-spacing: -0.02em; line-height: 1.35; }
.int-group span:not(:last-child)::after { content: "/"; margin: 0 .55rem; color: var(--line); font-weight: 400; }
@media (max-width: 560px) { .int-group { grid-template-columns: 1fr; } }

/* Services */
.svcs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 5vw, 4rem); }
.svc { padding: 2rem 0; border-top: 2px solid var(--ink); }
.svc h2, .svc h3 { font-size: clamp(1.35rem, 2.2vw, 1.65rem); }
.svc > p { margin-top: .7rem; color: var(--slate); max-width: 34rem; }
.svc ul { margin-top: 1.1rem; display: grid; gap: .45rem; }
.svc li { position: relative; padding-left: 1.4rem; }
.svc li::before { content: ""; position: absolute; left: 0; top: .62em; width: .55rem; height: .55rem; border-radius: 2px; background: var(--cobalt); }
@media (max-width: 760px) { .svcs { grid-template-columns: 1fr; } }

/* Process: a real sequence, so it's numbered */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; counter-reset: step; }
.steps li { counter-increment: step; padding-top: 1.25rem; border-top: 2px solid var(--ink); }
.steps li::before { content: counter(step); display: block; font-size: 2.6rem; font-weight: 750; line-height: 1; color: var(--cobalt); letter-spacing: -0.04em; margin-bottom: 1rem; }
.steps h3 { font-size: 1.2rem; }
.steps p { margin-top: .5rem; color: var(--slate); }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Stack line */
.stack { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem 1.5rem; align-items: baseline; }
.stack h2 { font-size: 1.05rem; color: var(--slate); font-weight: 600; letter-spacing: 0; }
.stack p { display: flex; flex-wrap: wrap; gap: .5rem; }
.stack span, .tech span {
  display: inline-block; padding: .35rem .75rem; border: 1px solid var(--line); border-radius: 999px;
  font-size: .92rem; font-weight: 500; color: var(--ink); background: var(--white);
}
@media (max-width: 560px) { .stack { grid-template-columns: 1fr; } }

/* Product pages */
.crumb { color: var(--on-navy-dim); font-size: .98rem; }
.crumb a { color: var(--on-navy); }
.prod-name { margin-top: 1.5rem; font-size: clamp(3.2rem, 11vw, 8.5rem) !important; letter-spacing: -0.055em !important; line-height: .95 !important; }
.prod-line { margin-top: 1.25rem; font-size: clamp(1.15rem, 2vw, 1.5rem); color: var(--on-navy); max-width: 38rem; }
.prod-op { margin-top: .9rem; color: var(--on-navy-dim); font-size: .98rem; }
.tech { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.75rem !important; }
.feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2.5rem; border-top: 2px solid var(--ink); }
.feat { padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.feat h3 { font-size: 1.15rem; }
.feat p { margin-top: .4rem; color: var(--slate); }
@media (max-width: 640px) { .feats { grid-template-columns: 1fr; } }

.more { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .75rem; }
.more li { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.more a { display: flex; flex-direction: column; gap: .2rem; height: 100%; padding: 1.25rem 1.35rem; background: var(--white); color: var(--ink); text-decoration: none; }
.more a strong { font-size: 1.3rem; letter-spacing: -0.02em; }
.more a span { color: var(--slate); font-size: .95rem; }
.more a:hover strong { color: var(--cobalt); }
.more li:has(a:hover) { border-color: var(--cobalt); }

/* Prose (about, privacy) */
.prose { max-width: 44rem; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 2.75rem; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-top: 1rem; font-size: 1.12rem; }
.beliefs { margin-top: 1.25rem; display: grid; gap: .9rem; }
.beliefs li { padding-left: 1.4rem; position: relative; font-size: 1.1rem; }
.beliefs li::before { content: ""; position: absolute; left: 0; top: .6em; width: .55rem; height: .55rem; border-radius: 2px; background: var(--cobalt); }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1.25rem; }
.field { display: flex; flex-direction: column; gap: .45rem; }
.field-wide { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .98rem; }
.opt { font-weight: 400; color: var(--slate); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 3rem; padding: .7rem .85rem;
  font: 400 1rem/1.4 var(--font); color: var(--ink);
  background: var(--white); border: 1px solid #B9C0CF; border-radius: var(--r-sm);
}
.field textarea { resize: vertical; min-height: 10rem; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid rgba(38, 67, 233, .35); outline-offset: 0; border-color: var(--cobalt); }
.field [aria-invalid="true"] { border-color: #C2253A; }
.form-end { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.form-status { font-weight: 500; }
.form-status.err { color: #B01F33; }
.form-status.ok { color: #116B4F; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-side { padding: 1.75rem; background: var(--paper); border-radius: var(--r); }
.contact-side h2 { font-size: 1.05rem; margin-top: 1.5rem; }
.contact-side h2:first-child { margin-top: 0; }
.contact-side p { margin-top: .35rem; }
.next { counter-reset: n; margin-top: .6rem; display: grid; gap: .6rem; }
.next li { counter-increment: n; position: relative; padding-left: 2rem; }
.next li::before { content: counter(n); position: absolute; left: 0; top: .05rem; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--navy); color: var(--white); font-size: .8rem; font-weight: 700; display: grid; place-items: center; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

/* Call to action band */
.cta { background: var(--cobalt); color: var(--white); padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.cta h2 { font-size: clamp(1.9rem, 4vw, 3rem); max-width: 40rem; letter-spacing: -0.03em; }
.cta p { margin-top: 1rem; font-size: 1.15rem; max-width: 38rem; color: #E4E8FF; }
.cta .cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2rem; }
.cta .btn { background: var(--white); color: var(--cobalt); }
.cta .btn:hover { background: var(--navy); color: var(--white); }
.cta .link-light { color: var(--white); }

/* Footer */
.foot { background: var(--navy); color: var(--on-navy-dim); padding: 4rem 0 2rem; }
.foot-in { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; }
.foot-brand p { margin-top: 1rem; }
.foot-brand .brand { color: var(--white); }
.foot a { color: var(--on-navy); text-decoration: none; }
.foot a:hover { color: var(--white); text-decoration: underline; }
.foot h2 { font-size: .98rem; color: var(--white); font-weight: 600; letter-spacing: 0; }
.foot ul { margin-top: .9rem; display: grid; gap: .45rem; }
.foot-legal { margin-top: 3rem; font-size: .92rem; }
.foot-legal p { padding-top: 1.5rem; border-top: 1px solid var(--navy-line); }
@media (max-width: 760px) { .foot-in { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .top, .cta, .foot, .menu { display: none; }
  .hero { background: none; color: #000; }
  .hero h1, .ix-name, .ix-area { color: #000; }
}
