/* Generative Flows AI — site styles (light) */

@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("/assets/fonts/sora-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("/assets/fonts/sora-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/assets/fonts/schibsted-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/assets/fonts/schibsted-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Paper and ink: the logo's white ground and the wordmark's charcoal */
  --paper: #ffffff;
  --mist: #f4f5f8;
  --ink: #16171d;
  --ink-2: #2a2c35;
  --graphite: #545867;
  --quiet: #6b6e7b;
  --line: #e3e5eb;
  --line-strong: #c9ccd6;

  /* Spectrum: sampled from the logo ribbon */
  --magenta: #de2d9a;
  --red: #eb2856;
  --orange: #f47c47;
  --amber: #f8b243;
  --green: #89d462;
  --teal: #3fb59a;
  --blue: #3b78f0;
  --violet: #6a5cf0;
  --spectrum: linear-gradient(90deg, var(--magenta) 0%, var(--red) 15%, var(--orange) 30%, var(--amber) 44%, var(--green) 60%, var(--teal) 74%, var(--blue) 88%, var(--violet) 100%);

  --display: "Sora", "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --body: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.375rem, 1.2rem + 0.6vw, 1.625rem);
  --step-3: clamp(1.875rem, 1.4rem + 1.6vw, 2.75rem);
  --step-4: clamp(2.25rem, 1.5rem + 2.8vw, 3.75rem);
  --step-5: clamp(2.75rem, 1.1rem + 5.6vw, 6.25rem);

  --gutter: clamp(1rem, 0.4rem + 3vw, 3rem);
  --max: 80rem;
  --measure: 36rem;
  --header-h: 4.5rem;
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  background: var(--paper);
}

body {
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }

::selection { background: rgba(248, 178, 67, 0.4); }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
}
.skip:focus { top: 0.75rem; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Header -------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.is-scrolled,
.site-header:has(.nav.is-open) { border-bottom-color: var(--line); }

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: var(--ink-2);
  text-decoration: none;
}
.brand img { height: 42px; width: auto; flex: none; }
.brand-short { display: none; }

.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav a {
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  color: var(--graphite);
  text-decoration: none;
  font-weight: 500;
}
.nav a:hover { color: var(--ink); background: var(--mist); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav .nav-cta {
  margin-left: 0.5rem;
  background: var(--ink);
  color: #fff;
  padding-inline: 1.15rem;
}
.nav .nav-cta:hover, .nav .nav-cta[aria-current="page"] { background: var(--ink-2); color: #fff; }

.nav-toggle {
  display: none;
  font: inherit;
  font-weight: 500;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.25rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.85rem 0; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav a:hover { background: none; }
  .nav .nav-cta { margin: 1rem 0 0; text-align: center; border-radius: 999px; border: 0; }
}
@media (max-width: 420px) {
  .brand-full { display: none; }
  .brand-short { display: inline; }
}

/* Hero ---------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  min-height: min(52rem, calc(100svh - var(--header-h)));
  display: flex;
  align-items: center;
  padding-block: clamp(4rem, 8vw, 7rem);
}
.hero canvas {
  position: absolute;
  top: 0;
  right: 0;
  width: 64%;
  height: 100%;
  -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent);
  mask-image: linear-gradient(180deg, #000 78%, transparent);
}
.hero .wrap { position: relative; }
.hero-copy { max-width: 46rem; }
.hero h1 {
  font-size: var(--step-5);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 600;
  max-width: 12ch;
}
.hero .lede {
  margin-top: 1.75rem;
  max-width: 34rem;
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--graphite);
}
.hero .actions { margin-top: 2.25rem; }
/* A soft white field behind the copy where it overlaps the ribbon */
.hero-copy > * { position: relative; }
.hero-copy::before {
  content: "";
  position: absolute;
  inset: -4rem -6rem -4rem -40vw;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.75) 60%, rgba(255, 255, 255, 0));
  pointer-events: none;
}
.hero-copy { position: relative; }

@media (max-width: 820px) {
  .hero { min-height: 0; align-items: flex-start; padding-top: 3rem; padding-bottom: 19rem; }
  .hero canvas { top: auto; bottom: 0; width: 100%; height: 22rem; }
  .hero-copy::before { display: none; }
}

/* Inner page intro ---------------------------------------------------- */

.page-intro {
  position: relative;
  overflow: hidden;
  padding-block: clamp(4rem, 9vw, 7.5rem) clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--line);
}
.page-intro canvas {
  position: absolute;
  top: 0;
  right: 0;
  width: 46%;
  height: 100%;
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent);
  mask-image: linear-gradient(180deg, #000 70%, transparent);
}
.page-intro .wrap { position: relative; }
.page-intro h1 {
  font-size: var(--step-4);
  line-height: 1.05;
  letter-spacing: -0.04em;
  max-width: 16ch;
}
.page-intro .lede {
  margin-top: 1.5rem;
  max-width: 38rem;
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--graphite);
}
@media (max-width: 820px) {
  .page-intro { padding-top: 13rem; }
  .page-intro canvas { width: 100%; height: 12rem; }
}
.page-intro.plain { padding-top: clamp(4rem, 8vw, 6.5rem); }

/* Buttons ------------------------------------------------------------- */

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-2); }
.btn-quiet { background: var(--paper); color: var(--ink); border-color: var(--line-strong); }
.btn-quiet:hover { border-color: var(--ink); }
.btn:active { transform: translateY(1px); }

/* Sections ------------------------------------------------------------ */

.section { padding-block: clamp(4.5rem, 9vw, 8rem); }
.section-mist { background: var(--mist); }
.section + .section:not(.section-mist):not(.section-ink) { border-top: 1px solid var(--line); }
.section-mist + .section { border-top: 0; }

.head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.h2 {
  font-size: var(--step-4);
  line-height: 1.05;
  letter-spacing: -0.04em;
}
.head .sub {
  margin-top: 1.25rem;
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--graphite);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(2rem, 5vw, 5rem);
}
.split > .key h2 { font-size: var(--step-3); line-height: 1.1; letter-spacing: -0.035em; }
.split > .key p { margin-top: 1rem; color: var(--graphite); max-width: 22rem; }
@media (min-width: 821px) { .split > .key { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; } }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

.statement {
  font-family: var(--display);
  font-size: var(--step-3);
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 500;
  max-width: 26ch;
}
.statement + p, .statement + .prose { margin-top: 1.5rem; }
.statement + .features { margin-top: 3rem; }

.prose { max-width: var(--measure); color: var(--graphite); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: var(--step-2); line-height: 1.25; margin-top: 2.2em; }
.prose h3 { font-size: var(--step-1); line-height: 1.35; margin-top: 1.8em; }
.prose a { color: var(--ink); }
.prose .muted { color: var(--quiet); }

/* Expertise index: rows whose rule picks up the ribbon colour in order */

.index { list-style: none; padding: 0; border-bottom: 1px solid var(--line); }
.index li {
  --hue: var(--magenta);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 0.75rem 3rem;
  padding-block: 1.75rem 2rem;
  border-top: 1px solid var(--line);
}
.index li::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 3.5rem;
  height: 2px;
  background: var(--hue);
}
.index li:nth-child(2) { --hue: var(--red); }
.index li:nth-child(3) { --hue: var(--orange); }
.index li:nth-child(4) { --hue: var(--amber); }
.index li:nth-child(5) { --hue: var(--green); }
.index li:nth-child(6) { --hue: var(--teal); }
.index li:nth-child(7) { --hue: var(--blue); }
.index li:nth-child(8) { --hue: var(--violet); }
.index h3 { font-size: var(--step-2); line-height: 1.2; letter-spacing: -0.03em; }
.index p { color: var(--graphite); max-width: 34rem; }
@media (max-width: 720px) { .index li { grid-template-columns: 1fr; } }

/* Lines of business --------------------------------------------------- */

.lines { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.line {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  text-decoration: none;
  transition: border-color 0.15s ease;
}
.line:hover { border-color: var(--ink); }
.line h3 { font-size: var(--step-2); line-height: 1.2; letter-spacing: -0.03em; }
.line p { color: var(--graphite); }
.line .go { margin-top: auto; padding-top: 0.75rem; font-weight: 600; text-decoration: underline; text-decoration-color: var(--line-strong); }
.line:hover .go { text-decoration-color: var(--ink); }
.line { position: relative; --hue: var(--magenta); }
.line::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 2rem;
  width: 3.5rem;
  height: 3px;
  background: var(--hue);
}
.line:nth-child(2) { --hue: var(--amber); }
.line:nth-child(3) { --hue: var(--blue); }
@media (max-width: 900px) { .lines { grid-template-columns: 1fr; } }

/* Ink band ------------------------------------------------------------ */

.section-ink {
  position: relative;
  background: var(--ink);
  color: #e9eaf0;
}
.section-ink::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--spectrum);
}
.section-ink h2, .section-ink h3 { color: #fff; }
.section-ink .head .sub, .section-ink .ops p { color: #a9acb8; }
.section-ink a { color: #fff; }

.ops { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 3rem; }
.ops > div { padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.ops h3 { font-size: var(--step-1); line-height: 1.3; }
.ops p { margin-top: 0.5rem; }
@media (max-width: 900px) { .ops { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .ops { grid-template-columns: 1fr; } }

/* Features: two columns of ruled items -------------------------------- */

.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem 3rem; }
.feature { padding-top: 1.25rem; border-top: 1px solid var(--line-strong); }
.feature h3 { font-size: var(--step-1); line-height: 1.3; }
.feature p { margin-top: 0.5rem; color: var(--graphite); }
@media (max-width: 720px) { .features { grid-template-columns: 1fr; } }

/* Steps: a real sequence, so numbered -------------------------------- */

.steps {
  list-style: none;
  padding: 0;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
}
.steps li { counter-increment: step; padding-top: 1.25rem; border-top: 2px solid var(--ink); }
.steps li::before {
  content: counter(step);
  display: block;
  font-family: var(--display);
  font-size: var(--step-3);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--quiet);
  margin-bottom: 1.25rem;
}
.steps h3 { font-size: var(--step-1); line-height: 1.3; }
.steps p { margin-top: 0.5rem; color: var(--graphite); }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Company facts ------------------------------------------------------- */

.facts {
  display: grid;
  grid-template-columns: minmax(10rem, 1fr) 2fr;
  border-top: 1px solid var(--ink);
}
.facts dt, .facts dd { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--graphite); padding-right: 1.5rem; }
.facts dd { font-weight: 500; }
@media (max-width: 560px) {
  .facts { grid-template-columns: 1fr; }
  .facts dt { padding-bottom: 0; border-bottom: 0; }
  .facts dd { padding-top: 0.2rem; }
}
.facts + .prose { margin-top: 3rem; }

/* Closing call to action ---------------------------------------------- */

.cta {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 2rem 4rem;
  align-items: end;
}
.cta .h2 { max-width: 14ch; }
.cta .sub { margin-top: 1.25rem; color: var(--graphite); font-size: var(--step-1); line-height: 1.55; max-width: 34rem; }
.cta .actions { justify-content: flex-end; }
@media (max-width: 820px) {
  .cta { grid-template-columns: 1fr; }
  .cta .actions { justify-content: flex-start; }
}

/* Contact: one row per topic, each opening a prefilled email */

.contacts li { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) auto; align-items: start; }
.contacts .btn { white-space: nowrap; }
@media (max-width: 720px) { .contacts li { grid-template-columns: 1fr; } .contacts .btn { justify-self: start; margin-top: 0.25rem; } }

/* Footer -------------------------------------------------------------- */

.site-footer {
  background: var(--mist);
  border-top: 1px solid var(--line);
  padding-block: 4rem 2rem;
  color: var(--graphite);
  font-size: var(--step--1);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
}
.footer-brand img { height: 56px; width: auto; }
.site-footer h2 {
  font-size: var(--step--1);
  letter-spacing: 0;
  margin-bottom: 0.9rem;
}
.site-footer ul { list-style: none; padding: 0; }
.site-footer li + li { margin-top: 0.45rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.footer-base {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-strong);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}
.swiss-made { display: inline-flex; align-items: center; gap: 0.5rem; }
.swiss-made svg { width: 14px; height: 14px; border-radius: 2px; }
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* 404 ----------------------------------------------------------------- */

.notfound { min-height: 70vh; display: flex; align-items: center; }
.notfound .actions { margin-top: 2rem; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
