@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;
}
@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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --graphite-top: #2a2f36;
  --graphite: #1f2328;
  --graphite-deep: #141719;
  --surface: #2a2f36;
  --surface-deep: #1a1e23;
  --surface-raised: rgba(255, 255, 255, 0.06);
  --text: #eef0f2;
  --text-2: #b4bac1;
  --muted: #99a2ab;
  --label: #99a2ab;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --card-border: rgba(255, 255, 255, 0.08);
  --shadow-card: 0 12px 32px rgba(0, 0, 0, 0.35);
  --white: #ffffff;
  --orange: #f08a3c;
  --orange-hover: #f79a55;
  --on-orange: #1a0d02;
  --font: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 4vw, 40px);
  --max: 1120px;
  --radius: 16px;
  --radius-card: 20px;
  --section: clamp(56px, 8vw, 112px);
  --head-gap: clamp(32px, 4vw, 56px);
  --overlap: clamp(72px, 10vw, 150px);
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* One ground for the whole page: a little lighter under the opening, a little deeper under the
   closing band, and a long fade between, so no section ever starts with a colour step. */
body {
  margin: 0;
  background-color: var(--graphite);
  background-image: linear-gradient(180deg, var(--graphite-top) 0, var(--graphite) 820px, var(--graphite) calc(100% - 720px), var(--graphite-deep) 100%);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.025em; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; height: auto; }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  background: var(--orange);
  color: var(--on-orange);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  text-decoration: none;
  z-index: 10;
}
.skip:focus { top: 1rem; }

.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 50px;
  padding: 0 1.5rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}
.btn-primary { background: var(--orange); border-color: var(--orange); color: var(--on-orange); }
.btn-primary:hover { background: var(--orange-hover); border-color: var(--orange-hover); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.4); color: var(--text); }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.btn-sm { height: 40px; padding: 0 1.1rem; font-size: 0.92rem; }
.textlink { font-weight: 600; }

.site-header {
  position: relative;
  z-index: 3;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.045em;
  line-height: 1;
  text-decoration: none;
  padding-bottom: 0.15em;
}
.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav a:not(.btn) {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  opacity: 0.85;
}
.site-nav a:not(.btn):hover { opacity: 1; }

.hero {
  position: relative;
  overflow: hidden;
}
.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding-block: clamp(3.5rem, 8vw, 6.5rem) calc(clamp(160px, 20vw, 290px) + var(--overlap) * 0.35);
}
.hero h1 {
  font-size: clamp(2.5rem, 1.9rem + 3.4vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  max-width: 14ch;
}
.hero h1 .sub {
  display: block;
  margin-top: 0.45em;
  font-size: 0.5em;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text-2);
  max-width: 100%;
}
.lede {
  margin-top: 1.5rem;
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.2rem);
  line-height: 1.5;
  color: var(--text-2);
  max-width: 48ch;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* The network dissolves into the ground on its left and at its foot, which is the hero's
   hand-over to the content now that both sit on the same ground. */
.net {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(58%, 900px);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 40%), linear-gradient(to bottom, #000 0%, #000 62%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0%, #000 40%), linear-gradient(to bottom, #000 0%, #000 62%, transparent 100%);
  mask-composite: intersect;
}
.net line, .net .hub {
  stroke: var(--white);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.net .lines line { stroke-opacity: 0.17; }
.net .hub { fill: none; stroke-opacity: 0.4; }
.net .dot { fill: var(--white); fill-opacity: 0.75; }
.net .fade-a { stop-color: var(--graphite-top); stop-opacity: 1; }
.net .fade-m { stop-color: var(--graphite-top); stop-opacity: 0.7; }
.net .fade-b { stop-color: var(--graphite-top); stop-opacity: 0; }
.net .sig {
  stroke-opacity: 0.8;
  stroke-width: 1.5;
  stroke-linecap: round;
  animation: signal linear infinite;
}
@keyframes signal {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: calc(var(--p) * -1px); }
}
@media (prefers-reduced-motion: reduce) {
  .net .sig { display: none; }
}

.label {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--label);
  margin-bottom: 0.75rem;
}
h2 {
  font-size: clamp(1.9rem, 1.4rem + 2.2vw, 3rem);
  line-height: 1.08;
  max-width: 24ch;
}
.intro {
  margin-top: 1rem;
  max-width: 56ch;
  color: var(--text-2);
  font-size: 1.1rem;
}
.sub-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-top: 3rem;
}

.card-surface {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.usp {
  position: relative;
  z-index: 2;
  margin-top: calc(-1 * var(--overlap));
  padding-bottom: var(--section);
}
.usp-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 2rem 4rem;
  align-items: start;
  padding: clamp(1.75rem, 3.5vw, 3rem) clamp(1.5rem, 3.5vw, 3rem);
}
.points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}
.points li {
  position: relative;
  padding-left: 2.2rem;
  color: var(--text-2);
}
.points li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: var(--label);
}
.points strong {
  display: block;
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 0.35rem;
}

.services { padding-block: 0 var(--section); }
.cards {
  list-style: none;
  margin: var(--head-gap) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 1.5rem;
}
.card .icon {
  display: block;
  width: 32px;
  height: 32px;
  margin-bottom: 1.5rem;
  fill: none;
  stroke: var(--text);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card h3 {
  font-size: 1.2rem;
  line-height: 1.2;
  margin-bottom: 0.6rem;
}
.card p { color: var(--text-2); font-size: 1rem; }

.projects { padding-block: 0 var(--section); }
.cases {
  list-style: none;
  margin: var(--head-gap) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.case {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.case-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 1.25rem;
  min-height: 320px;
  padding: 3.5rem 2rem 0;
  background-image: linear-gradient(180deg, var(--surface-deep) 0%, var(--surface-deep) 55%, var(--surface) 100%);
  overflow: hidden;
}
.case-visual img:not(.case-badge) {
  display: block;
  width: 44%;
  max-width: 220px;
  height: auto;
  max-height: 300px;
  object-fit: cover;
  object-position: top;
  filter: drop-shadow(0 20px 36px rgba(0, 0, 0, 0.55));
}
.case-visual img:nth-of-type(3) { margin-top: 2.5rem; }
.case-badge {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  width: 48px;
  height: 48px;
  border-radius: 11px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.case-body { padding: clamp(1.5rem, 3vw, 2.5rem); }
.case-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.case h3 {
  font-size: clamp(1.5rem, 1.25rem + 1.2vw, 2.1rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}
.case p { color: var(--text-2); max-width: 52ch; }
.case p + p { margin-top: 0.75rem; }
/* A single case lays out wide; the row layout above applies from the second card on. */
.case:only-child {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}
.case:only-child .case-visual {
  min-height: 100%;
  padding-top: 3rem;
  background-image: linear-gradient(90deg, var(--surface-deep) 0%, var(--surface-deep) 60%, var(--surface) 100%);
}
.case:only-child .case-visual img:not(.case-badge) { max-height: none; width: 46%; max-width: 230px; }
.chips {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.chips li {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-2);
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
}
.stores {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 3rem;
}
.stores a { display: inline-flex; }
.stores img { display: block; width: auto; }
.stores .badge-appstore { height: 48px; }
.stores .badge-play { height: 56px; margin-inline: -8px; }
.stores .textlink { margin-left: 0.5rem; }
.stores-sm { margin-top: 1.5rem; }
.stores-sm .badge-appstore { height: 40px; }
.stores-sm .badge-play { height: 47px; margin-inline: -7px; }
.note {
  margin-top: 0.75rem;
  max-width: 60ch;
  color: var(--text-2);
}
.refs {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
}
.refs li {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 0.5rem 3rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}
.refs li:last-child { border-bottom-color: var(--line-strong); }
.refs strong { display: block; color: var(--text); font-weight: 700; }
.ref-head span { display: block; color: var(--text-2); }
.ref-head span + span { color: var(--muted); font-size: 0.95rem; margin-top: 0.25rem; }
.refs p { color: var(--text-2); max-width: 60ch; }

.about { padding-block: 0 var(--section); }
.about-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem 4rem;
  align-items: end;
}
.about-head .intro { margin-top: 0; }
.about-photo {
  margin: var(--head-gap) 0 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 2 / 1;
}
.about-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.principles {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
}
.principles li {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 0.35rem 3rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-2);
}
.principles li:last-child { border-bottom-color: var(--line-strong); }
.principles strong {
  color: var(--text);
  font-weight: 700;
  padding-left: 1.8rem;
  position: relative;
}
.principles strong::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--label);
}
.people {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem 1.5rem;
}
.people li {
  border-top: 1px solid var(--line-strong);
  padding-top: 1.25rem;
}
.people img {
  display: block;
  width: 112px;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  background: var(--surface);
}
.people strong {
  display: block;
  color: var(--text);
  font-weight: 700;
}
.people span { display: block; color: var(--text-2); }
.people span + span { color: var(--muted); font-size: 0.95rem; }

.contact { padding-block: clamp(3rem, 6vw, 5rem) clamp(4rem, 8vw, 7rem); }
.contact .label { color: var(--label); }
.contact h2 { font-size: clamp(2.2rem, 1.6rem + 3vw, 3.8rem); max-width: 16ch; }
.contact p {
  margin-top: 1.25rem;
  color: var(--text-2);
  max-width: 50ch;
  font-size: 1.1rem;
}
.contact .actions { align-items: center; gap: 1rem 1.5rem; }
.contact .mail {
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  padding-bottom: 0.1em;
  overflow-wrap: anywhere;
}
.contact .mail:hover { border-bottom-color: #fff; }

.site-footer {
  color: var(--text-2);
  font-size: 0.9rem;
  border-top: 1px solid var(--line);
  padding-block: 1.5rem 2.5rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
}
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

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

@media (max-width: 859px) {
  .hero-copy { padding-bottom: calc(clamp(15rem, 44vw, 19rem) + var(--overlap) * 0.3); }
  .net {
    top: auto;
    bottom: -4%;
    right: -6%;
    width: 112%;
    height: clamp(17rem, 50vw, 22rem);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 50%, #000 78%, transparent 100%);
    -webkit-mask-composite: source-over;
    mask-image: linear-gradient(to bottom, transparent 0%, #000 50%, #000 78%, transparent 100%);
    mask-composite: add;
  }
  .net .fade { display: none; }
  .usp-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .cards { grid-template-columns: 1fr; }
  .people { grid-template-columns: repeat(2, 1fr); }
  .case:only-child { grid-template-columns: 1fr; }
  .case:only-child .case-visual {
    min-height: 0;
    padding-top: 2.5rem;
    background-image: linear-gradient(180deg, var(--surface-deep) 0%, var(--surface-deep) 55%, var(--surface) 100%);
  }
  .case:only-child .case-visual img:not(.case-badge) { max-height: 260px; width: 44%; }
  .case-visual { min-height: 0; }
  .about-head { grid-template-columns: 1fr; gap: 1rem; }
  .principles li { grid-template-columns: 1fr; gap: 0.25rem; }
  .refs li { grid-template-columns: 1fr; gap: 0.5rem; }
  .principles span { padding-left: 1.8rem; }
}

@media (max-width: 719px) {
  .site-header .wrap { height: 64px; }
  .brand { font-size: 1.45rem; }
  .site-nav { gap: 1rem; }
  .site-nav a:not(.btn) { font-size: 0.9rem; }
  .actions .btn { flex: 1 1 auto; }
  .contact .actions .btn { flex: 0 0 auto; }
  .hero h1 .sub { font-size: 0.55em; }
  .people img { width: 96px; }
}

@media (max-width: 359px) {
  .site-nav a:not(.btn) { display: none; }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
