/* ==== fonts.css ==== */
/* Fonts, served from the site itself (no request to Google: faster, and nothing sent to a third party).
   Latin subset (Swedish and English), WOFF. Licences: assets/fonts/*-OFL.txt (SIL Open Font License). */

@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../assets/fonts/manrope.woff?v=2026.11.08.0812-06d9eb1") format("woff");
}

@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/instrument-serif-italic.woff?v=2026.11.08.0812-06d9eb1") format("woff");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/ibm-plex-mono.woff?v=2026.11.08.0812-06d9eb1") format("woff");
}

/* ==== base.css ==== */
/* Base: tokens, tones, reset, type, reveal */

:root {
  --brand-coral: #F0624D;      /* the logo's coral: logo, logo dot, every travelling or resting dot */
  --charcoal: #2A2A2A;
  --black: #050505;
  --soft: #111111;
  --light: #F4F2EF;
  --gutter: clamp(20px, 5vw, 96px);
  --container: 1320px;
  --edge: clamp(20px, 7vw, 150px);
  --pad: max(var(--gutter), calc((100vw - var(--container)) / 2));
  --nav-h: 96px;
  --vh: 100vh;
  color-scheme: light;
}

:root[data-theme="dark"] {
  color-scheme: dark;
}

/* Tones. Light theme: tone-b light, tone-a dark. Dark theme: both dark, tone-a slightly lighter.
   The floating nav and the open mobile menu always use the dark tokens. */
:root,
.tone-b {
  --bg: var(--light);
  --fg: var(--charcoal);
  --muted: #69665f;
  --line: rgba(42, 42, 42, .14);
  --rule: rgba(42, 42, 42, .22);
  --coral: #E8573F;            /* coral for text and UI on light backgrounds: 3.2:1 on --light (large text AA) */
  --accent: var(--charcoal);
  --guide: rgba(42, 42, 42, .4);
  --frame-rgb: 42, 42, 42;
  --is-light: 1;
}

.tone-a,
.nav.is-floating,
.is-menu-open .nav,
.mobile-menu,
.nav-services,
.footer,
.cookie,
:root[data-theme="dark"],
:root[data-theme="dark"] .tone-b {
  --bg: var(--black);
  --fg: var(--light);
  --muted: #a39f99;
  --line: rgba(244, 242, 239, .14);
  --rule: rgba(244, 242, 239, .22);
  --coral: var(--brand-coral);
  --accent: var(--coral);
  --guide: rgba(244, 242, 239, .45);
  --frame-rgb: 244, 242, 239;
  --is-light: 0;
}

:root[data-theme="dark"] .tone-a {
  --bg: var(--soft);
}

.tone-a,
.tone-b {
  background: var(--bg);
  color: var(--fg);
}

/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: Manrope, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

/* Type */
.mono {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.mono b {
  font-weight: 400;
}

em {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.01em;
}

h1 em,
h2 em {
  color: var(--coral);
}

/* Numbered section label: "01 / Name" */
.section-label {
  color: var(--muted);
}

.section-label b {
  color: var(--accent);
}

/* Reveal: text fades in from below (classes set by base.js) */
.motion .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 1.5s cubic-bezier(.4, 0, .2, 1),
    transform 1.4s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--reveal-delay, 0s);
}

.motion .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  :root {
    --nav-h: 72px;
  }
}

/* Accessibility helpers */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--coral);
  color: var(--charcoal);
  font-weight: 600;
  transform: translateY(-200%);
  transition: transform .2s;
}

.skip-link:focus {
  transform: none;
}

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

main:focus {
  outline: none;
}

/* Shared section heading block */
.section-head {
  max-width: 900px;
}

.section-head h2 {
  margin-top: 22px;
  font-weight: 300;
  font-size: clamp(40px, 5.6vw, 96px);
  line-height: 1.05;
  letter-spacing: -.045em;
}

.section-head .lead {
  margin-top: clamp(20px, 2.2vw, 30px);
}

.section-head--split {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(24px, 4vw, 80px);
  max-width: none;
}

.lead {
  max-width: 560px;
  color: var(--muted);
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .section-head--split {
    grid-template-columns: 1fr;
  }
}

/* Cross-page view transitions (supporting browsers); the logo dot is the shared element */
@view-transition {
  navigation: auto;
}

::view-transition-group(wf-dot) {
  animation-duration: .6s;
  animation-timing-function: cubic-bezier(.65, 0, .35, 1);
}

/* ==== components.css ==== */
/* Components: links, buttons, social icons */

/* Menu links (nav, mobile menu, footer): hover and current = coral, current underlined */
.nav ul a:hover,
.menu-link:hover,
.footer-cols a:hover,
.nav ul a.is-active,
.menu-link.is-active,
.footer-menu a.is-active {
  color: var(--coral);
}

.menu-link.is-active span,
.footer-menu a.is-active span {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

/* Button: label + arrow cell. Follows the section colors; only the border and the arrow are coral */
.btn {
  --btn-bg: var(--bg);
  --btn-fg: var(--fg);
  --btn-border: var(--coral);
  --btn-arrow: var(--coral);
  --btn-fill: var(--coral);
  --btn-arrow-hover: var(--bg);
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform .3s cubic-bezier(.2, .7, .2, 1);
}

.btn[hidden] {
  display: none;
}

.btn span {
  display: flex;
  align-items: center;
  padding: 16px 22px;
}

.btn i {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid var(--btn-border);
  padding: 16px 18px;
  color: var(--btn-arrow);
  font-style: normal;
  overflow: hidden;
  isolation: isolate;
  transition: color .3s;
}

/* arrow cell fill, rises from the bottom on hover */
.btn i::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--btn-fill);
  transform: scaleY(0);
  transform-origin: 50% 100%;
  transition: transform .4s cubic-bezier(.2, .7, .2, 1);
}

.btn i b {
  font-weight: inherit;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1);
}

.btn:hover {
  transform: scale(1.03);
}

.btn:hover i {
  color: var(--btn-arrow-hover);
}

.btn:hover i::before {
  transform: none;
}

.btn:hover i b {
  transform: translate(2px, -2px);
}

.btn:active {
  transform: scale(.97);
  transition-duration: .12s;
}

.btn:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 4px;
}

.btn--sm {
  height: 40px;
  font-size: 13px;
}

.btn--sm span {
  padding: 0 16px;
}

.btn--sm i {
  padding: 0 13px;
}

/* Text link */
/* Text link with an underline (e.g. "Se våra tjänster"): coral and a slight zoom on hover (desktop) or on tap */
.link {
  display: inline-block;
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
  transform-origin: left center;
  transition:
    color .3s,
    transform .3s cubic-bezier(.2, .7, .2, 1);
}

/* a.link: wins over section rules that set the link's resting color (e.g. .hero-copy .mono) */
@media (hover: hover) {
  a.link:hover {
    color: var(--coral);
    transform: scale(1.05);
  }
}

a.link:active,
a.link:focus-visible {
  color: var(--coral);
  transform: scale(1.05);
}

/* Social icons (filled from the template by social.js) */
.social {
  display: flex;
  align-items: center;
  gap: var(--social-gap, 26px);
}

.social--col {
  flex-direction: column;
}

.social a {
  display: grid;
  place-items: center;
  color: inherit;
  opacity: .85;
  transition: color .3s, opacity .3s;
}

.social a:hover {
  color: var(--coral);
  opacity: 1;
}

.social svg {
  display: block;
  width: var(--social-size, 30px);
  height: var(--social-size, 30px);
  fill: none;
  stroke: currentColor;
}

.social svg * {
  stroke-width: 1.6px;
  vector-effect: non-scaling-stroke;
}

@media (max-width: 900px) {
  .btn {
    font-size: 15px;
  }

  .btn span {
    padding: 19px 26px;
  }

  .btn i {
    padding: 19px 20px;
  }
}

@media (max-width: 900px) and (max-height: 820px) {
  .btn span {
    padding: 16px 24px;
  }

  .btn i {
    padding: 16px 18px;
  }
}

/* ==== nav.css ==== */
/* Nav: transparent over the hero, a dark floating rectangle once the logo faces the visitor (home) or from the first scroll */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 var(--edge);
  background: transparent;
  color: var(--fg);
  transition:
    background-color .4s,
    color .4s,
    top .6s cubic-bezier(.2, .7, .2, 1),
    left .6s cubic-bezier(.2, .7, .2, 1),
    right .6s cubic-bezier(.2, .7, .2, 1),
    height .6s cubic-bezier(.2, .7, .2, 1),
    padding .6s cubic-bezier(.2, .7, .2, 1);
}

/* Dark tokens for these states come from base.css */
.nav.is-floating {
  top: 16px;
  left: var(--pad);
  right: var(--pad);
  height: 72px;
  padding: 0 28px;
  background: color-mix(in srgb, var(--black) 84%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
}

/* Inner pages: before it floats, the nav sits on a 90% page-colored band so lines and text behind it stay apart */
.page:not(.page--home) .nav:not(.is-floating) {
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.page.is-menu-open .nav:not(.is-floating) {
  background: var(--black);
}

/* Logo: frame follows the text color, letters and dot are coral */
.brand {
  display: block;
  flex: none;
  line-height: 0;
}

.brand svg {
  display: block;
  width: auto;
  height: 40px;
}

.brand .logo-frame {
  fill: currentColor;
}

.brand .logo-word,
.brand .logo-dot {
  fill: var(--brand-coral);
}

/* Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 36px);
  list-style: none;
  font-size: 14px;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  color: var(--muted);
  font-size: 14px;
  transition: color .25s;
}

.nav-link:hover,
.nav-link.is-active,
.nav-link[aria-expanded="true"] {
  color: var(--coral);
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px;
  height: 1px;
  background: var(--coral);
}

.nav-caret {
  width: 6px;
  height: 6px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .3s;
}

[aria-expanded="true"] > .nav-caret {
  transform: translateY(1px) rotate(225deg);
}

/* Services dropdown (dark tokens from base.css) */
.nav-item--services {
  position: relative;
}

.nav-services {
  position: absolute;
  left: -24px;
  top: calc(100% + 18px);
  min-width: 300px;
  padding: 14px 24px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--black) 94%, transparent);
  color: var(--fg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition:
    opacity .25s,
    transform .25s,
    visibility .25s;
}

.nav-services.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.nav-services-list {
  list-style: none;
}

.nav-service {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  transition: color .25s;
}

.nav-services-list li:last-child .nav-service {
  border-bottom: 0;
}

.nav-service .mono,
.menu-service .mono {
  color: var(--coral);
}

.nav-service:hover,
.nav-service.is-active {
  color: var(--coral);
}

/* Actions: language, theme, CTA, menu */
.nav-actions {
  display: flex;
  flex: none;
  gap: 10px;
  align-items: center;
}

.lang-switch {
  display: flex;
  align-items: center;
  height: 40px;
  list-style: none;
  color: var(--muted);
}

.lang-switch li + li::before {
  content: "/";
  margin: 0 6px;
  opacity: .5;
}

.lang-switch a {
  transition: color .25s;
}

.lang-switch a:hover {
  color: var(--coral);
}

.lang-current {
  color: var(--fg);
}

.lang-off {
  opacity: .4;
}

.nav .lang-switch {
  padding: 0 6px;
}

/* Theme toggle: Auto / Light / Dark, one button */
.theme-toggle {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--rule);
  color: var(--fg);
  transition: transform .3s cubic-bezier(.2, .7, .2, 1);
}

.theme-toggle:hover {
  transform: scale(1.05);
}

.theme-toggle:active {
  transform: scale(.97);
}

.theme-toggle i {
  flex: none;
  width: 12px;
  height: 12px;
  border: 1px solid currentColor;
  background: linear-gradient(90deg, currentColor 50%, transparent 50%);
}

[data-mode="light"] .theme-toggle i {
  background: transparent;
}

[data-mode="dark"] .theme-toggle i {
  background: currentColor;
}

/* Mobile menu button */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--guide);
}

.menu-toggle i {
  width: 16px;
  height: 1px;
  background: var(--fg);
  box-shadow:
    0 5px 0 var(--fg),
    0 -5px 0 var(--fg);
}

/* Mobile menu (dark tokens from base.css) */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 59;
  max-height: calc(var(--vh) - var(--nav-h) - 12px);
  padding: 20px var(--edge) 32px;
  overflow-y: auto;
  border-top: 1px solid var(--line);
  background: var(--black);
  color: var(--fg);
}

.is-menu-open .mobile-menu {
  display: block;
}

.menu-link {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 30px;
  font-weight: 300;
  letter-spacing: -.02em;
}

.menu-link.is-active {
  color: var(--coral);
}

.menu-heading {
  margin-top: 18px;
  color: var(--muted);
}

.menu-services {
  padding: 6px 0 12px;
  border-bottom: 1px solid var(--line);
  list-style: none;
}

.menu-service {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 7px 0;
  font-size: 18px;
}

.mobile-menu-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

@media (max-width: 1100px) {
  .nav-main,
  .nav-cta {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }
}

@media (max-width: 900px) {
  .theme-toggle {
    justify-content: center;
    width: 40px;
    padding: 0;
  }

  .theme-toggle span {
    display: none;
  }

  .brand svg {
    height: 32px;
  }

  .nav.is-floating {
    top: 12px;
    height: 60px;
    padding: 0 14px;
  }

  /* the menu hangs under the rectangle, same width */
  .mobile-menu {
    transition:
      top .6s cubic-bezier(.2, .7, .2, 1),
      left .6s cubic-bezier(.2, .7, .2, 1),
      right .6s cubic-bezier(.2, .7, .2, 1);
  }

  .nav.is-floating ~ .mobile-menu {
    top: 72px;
    left: var(--pad);
    right: var(--pad);
    padding-left: 14px;
    padding-right: 14px;
  }
}

/* ==== media.css ==== */
/* Media: images with a blueprint placeholder behind them.
   The placeholder shows while no image is set, and replaces an image that fails to load (media.js). */

.media {
  position: relative;
  aspect-ratio: var(--ratio, 4 / 3);
  overflow: hidden;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--fg) 3%, transparent);
}

.media img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media.is-broken img {
  display: none;
}

.placeholder-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--guide);
  stroke-width: 1;
  stroke-dasharray: 4 6;
  vector-effect: non-scaling-stroke;
}

.media-note {
  position: absolute;
  left: 12px;
  bottom: 12px;
  right: 12px;
  color: var(--coral);
}

.media img ~ .media-note {
  display: none;
}

.media.is-broken .media-note {
  display: block;
}

/* ==== page.css ==== */
/* Inner pages: page hero (services, special projects, contact, privacy) and the service page sections */

/* ---------- Page hero ---------- */
.page-hero {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: min(var(--vh), 960px);
  padding: calc(var(--nav-h) + clamp(32px, 4vw, 64px)) var(--pad) clamp(56px, 6vw, 96px);
  overflow: hidden;
}

/* Page hero drawing: cropped to its lines (sign.js), its top edge level with the breadcrumb, right edge on the
   content edge. Lighter than on the home chapters: it stays behind the page, never part of the content. */
.page-hero > svg.chapter-sign {
  stroke: var(--line);
}

.page-hero > svg.chapter-sign.is-fitted {
  --sign-top: calc(var(--nav-h) + clamp(32px, 4vw, 64px));
  inset: auto;
  top: var(--sign-top);
  right: var(--pad);
  width: calc(56% - var(--pad));
  height: calc(100% - var(--sign-top) - clamp(56px, 6vw, 96px));
}

.page-hero > .chapter-sign .sign-dash {
  stroke: var(--line);
  opacity: .8;
}

.page-hero > .chapter-sign .sign-dim,
.page-hero > .chapter-sign .sign-accent {
  stroke: var(--line);
}

.page-hero > .chapter-sign .sign-text {
  fill: var(--rule);
  opacity: .25;
  font-size: 13px;
}

/* Special projects, contact: a shorter hero, so the title follows the breadcrumb closely */
.page-hero:not(.service-hero) {
  min-height: min(72vh, 720px);
}

.page-hero:not(.service-hero) .page-hero-body {
  padding-top: clamp(48px, 6vw, 96px);
}

.page-hero-number {
  position: absolute;
  right: var(--pad);
  top: calc(var(--nav-h) + clamp(16px, 2vw, 32px));
  font-weight: 300;
  font-size: clamp(9rem, 24vw, 22rem);
  line-height: .9;
  letter-spacing: -.06em;
  pointer-events: none;
  user-select: none;
}

/* The same dot as the chapter it came from (cross-page view transition) */
.page-hero-dot {
  view-transition-name: wf-dot;
}

.breadcrumb {
  position: relative;
  color: var(--muted);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  opacity: .6;
}

.breadcrumb a {
  transition: color .25s;
}

.breadcrumb a:hover {
  color: var(--coral);
}

.breadcrumb [aria-current] {
  color: var(--fg);
}

.page-hero-body {
  position: relative;
  align-self: end;
  max-width: 960px;
}

.page-hero-title {
  margin-top: 22px;
  font-weight: 300;
  font-size: clamp(52px, 8.4vw, 150px);
  line-height: 1;
  letter-spacing: -.05em;
}

.page-hero-title em {
  display: block;
  margin-top: .1em;
}

.page-hero-body .lead {
  margin-top: clamp(22px, 2.4vw, 36px);
}

.page-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 32px;
  margin-top: clamp(28px, 3vw, 44px);
}

.page-hero-meta {
  color: var(--muted);
}

/* ---------- Shared section frame ---------- */
.capabilities,
.builds,
.phases,
.proof,
.faq,
.columns,
.related {
  padding: clamp(88px, 10vw, 160px) var(--pad);
}

/* ---------- Capabilities: heading left, accordion right ---------- */
.capabilities {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  align-items: start;
  gap: clamp(40px, 6vw, 120px);
}

.capabilities-head {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

.capabilities-head h2 {
  margin-top: 22px;
  font-weight: 300;
  font-size: clamp(38px, 4.6vw, 80px);
  line-height: 1.05;
  letter-spacing: -.045em;
}

.capabilities-head .lead {
  margin-top: 24px;
}

/* ---------- Builds: cards with media ---------- */
.builds-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 40px);
  margin-top: clamp(48px, 5vw, 88px);
  list-style: none;
}

.build-no {
  margin-top: 22px;
  color: var(--coral);
}

.build-card h3 {
  margin-top: 10px;
  font-weight: 400;
  font-size: clamp(22px, 1.9vw, 30px);
  letter-spacing: -.02em;
}

.build-card > p:last-child {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

/* ---------- Phases ---------- */
.phases-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: clamp(48px, 5vw, 88px);
  list-style: none;
}

.phase {
  padding: 0 clamp(16px, 1.6vw, 28px) 0 clamp(16px, 1.6vw, 24px);
  border-left: 1px solid var(--coral);
}

.phase-no {
  color: var(--coral);
}

.phase h3 {
  margin-top: 56px;
  font-weight: 400;
  font-size: clamp(22px, 1.8vw, 28px);
  letter-spacing: -.02em;
}

.phase p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

/* ---------- Proof ---------- */
.proof {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 112px);
}

.proof h2 {
  margin-top: 22px;
  font-weight: 300;
  font-size: clamp(40px, 5vw, 88px);
  line-height: 1.05;
  letter-spacing: -.045em;
}

.proof .lead {
  margin-top: 24px;
}

.proof-points {
  margin-top: 32px;
  list-style: none;
}

.proof-points li {
  display: grid;
  grid-template-columns: minmax(120px, .4fr) 1fr;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.6;
}

.proof-points b {
  font-weight: 500;
}

.proof-points span {
  color: var(--muted);
}

/* ---------- FAQ ---------- */
.faq-list {
  margin-top: clamp(40px, 4vw, 72px);
}

/* ---------- Columns (special projects) ---------- */
.columns-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(20px, 2.4vw, 40px);
  margin-top: clamp(48px, 5vw, 88px);
  list-style: none;
}

.column-item {
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}

.column-item .mono {
  color: var(--coral);
}

.column-item h3 {
  margin-top: 14px;
  font-weight: 400;
  font-size: clamp(22px, 1.8vw, 28px);
  letter-spacing: -.02em;
}

.column-item p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

/* ---------- Related services ---------- */
.related {
  padding-top: clamp(56px, 6vw, 96px);
  padding-bottom: clamp(56px, 6vw, 96px);
  border-top: 1px solid var(--line);
}

.related-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 24px;
  list-style: none;
}

.related-link {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(20px, 1.6vw, 26px);
  font-weight: 300;
  letter-spacing: -.02em;
  transition: color .25s;
}

.related-link .mono {
  color: var(--coral);
}

.related-link i {
  margin-left: auto;
  padding-right: 18px;
  font-style: normal;
  color: var(--coral);
  transition: transform .3s cubic-bezier(.2, .7, .2, 1);
}

.related-link:hover {
  color: var(--coral);
}

.related-link:hover i {
  transform: translate(3px, -3px);
}

@media (max-width: 900px) {
  .capabilities,
  .proof {
    grid-template-columns: 1fr;
  }

  .capabilities-head {
    position: static;
  }

  .builds-grid {
    grid-template-columns: 1fr;
  }

  .page-hero-number {
    font-size: clamp(7rem, 34vw, 12rem);
  }

  .page-hero > svg.chapter-sign.is-fitted {
    width: calc(100% - 2 * var(--pad));
    height: 38%;
  }

  .proof-points li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* ==== chapters.css ==== */
/* Chapters (services): one full-screen sticky card per service; each new card covers the one before */

.chapter {
  position: sticky;
  top: 0;
  min-height: var(--vh);
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: calc(var(--nav-h) + clamp(28px, 4vw, 56px)) var(--pad) clamp(28px, 3vw, 48px);
  border-top: 1px solid var(--line);
}

/* Signature drawing behind each chapter */
.chapter-sign {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

svg.chapter-sign {
  fill: none;
  stroke: var(--rule);
  stroke-width: 1px;
  vector-effect: non-scaling-stroke;
}

svg.chapter-sign * {
  vector-effect: non-scaling-stroke;
}

/* Blueprint drawing: construction lines dashed, dimensions thin, one coral detail, mono notes */
.chapter-sign .sign-dash {
  stroke: var(--line);
  stroke-dasharray: 4 8;
}

.chapter-sign .sign-dim {
  stroke: var(--guide);
}

.chapter-sign .sign-accent {
  stroke: var(--coral);
}

.chapter-sign .sign-text {
  fill: var(--muted);
  opacity: .25;
  stroke: none;
  font-family: "IBM Plex Mono", monospace;
  font-size: 14px;
  letter-spacing: .14em;
}

/* Large outlined number; its coral dot is the logo dot that drops in (chapters.js) */
.chapter-number {
  position: absolute;
  right: var(--pad);
  top: calc(var(--nav-h) + clamp(4px, 1vw, 16px));
  font-weight: 300;
  font-size: clamp(9rem, 26vw, 24rem);
  line-height: .9;
  letter-spacing: -.06em;
  pointer-events: none;
  user-select: none;
}

.chapter-digits {
  color: transparent;
  -webkit-text-stroke: 1px var(--rule);
}

.chapter-dot {
  display: inline-block;
  width: .1em;
  height: .1em;
  margin-left: .03em;
  border-radius: 50%;
  background: var(--brand-coral);
  will-change: transform;
}

.chapter-label {
  position: relative;
}

.chapter-body {
  position: relative;
  align-self: end;
  max-width: 760px;
  padding-bottom: clamp(32px, 5vw, 72px);
}

.chapter-title {
  font-weight: 300;
  font-size: clamp(52px, 9vw, 150px);
  line-height: 1;
  letter-spacing: -.05em;
}

.chapter-title em {
  display: block;
  margin-top: .18em;
  font-size: .42em;
  letter-spacing: -.01em;
}

.chapter-body p {
  max-width: 560px;
  margin-top: clamp(20px, 2.2vw, 32px);
  color: var(--muted);
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.6;
}

.chapter-body .btn {
  margin-top: clamp(24px, 2.6vw, 40px);
}

/* Sub-services: one static row, each item led by a coral dot (stays clean when the row wraps) */
.chapter-tags {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  list-style: none;
  color: var(--muted);
}

.chapter-tags li {
  display: flex;
  align-items: center;
}

.chapter-tags li::before {
  content: "";
  width: 4px;
  height: 4px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--coral);
}

@media (max-width: 900px) {
  .chapter-number {
    font-size: clamp(7rem, 34vw, 12rem);
  }

  .chapter-tags {
    gap: 10px 20px;
  }
}

/* Travelling dot of the home page (journey.js) */
.journey-dot {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 55;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--brand-coral);
  pointer-events: none;
  visibility: hidden;
  transform-origin: 50% 50%;
  will-change: transform;
}

.journey-dot.is-active {
  visibility: visible;
}

/* ==== legal.css ==== */
/* Legal pages (privacy): readable single column */

.legal {
  padding: clamp(72px, 8vw, 128px) var(--pad);
}

.legal-body {
  max-width: 760px;
}

.legal-updated {
  color: var(--muted);
}

.legal-part {
  margin-top: clamp(40px, 4vw, 64px);
  scroll-margin-top: calc(var(--nav-h) + 24px);
}

.legal-part h2 {
  font-weight: 400;
  font-size: clamp(24px, 2.4vw, 36px);
  letter-spacing: -.025em;
}

.legal-part p,
.legal-part li {
  margin-top: 14px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.legal-part ul {
  padding-left: 20px;
}

/* ==== footer.css ==== */
/* Footer: always dark (tokens from base.css) */

.footer {
  padding: clamp(72px, 8vw, 128px) var(--edge) 28px;
  overflow: hidden;
  background: var(--black);
  color: var(--fg);
}

.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
}

.footer-heading {
  margin-bottom: 22px;
  font-weight: 500;
  font-size: clamp(26px, 2.2vw, 34px);
  line-height: 1.1;
  letter-spacing: -.03em;
}

.footer-col a,
.footer-col > span {
  display: block;
  width: fit-content;
  color: var(--muted);
  font-size: 15px;
  line-height: 2;
  transition: color .25s;
}

.footer-col a:hover,
.footer-menu a.is-active {
  color: var(--coral);
}

.footer-menu a.is-active span {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

.footer-social {
  --social-size: 34px;
  --social-gap: clamp(24px, 3vw, 44px);
  justify-content: center;
  margin-top: clamp(40px, 4vw, 64px);
}

/* Large wireframe logo; only the dot is solid (bounces, footer.js) */
.footer-logo {
  margin-top: clamp(40px, 4vw, 64px);
}

.footer-logo svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.footer-logo .logo-frame,
.footer-logo .logo-word {
  fill: none;
  stroke: var(--fg);
  stroke-opacity: .26;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.footer-logo .logo-dot {
  fill: var(--brand-coral);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-bottom a,
.footer-bottom button {
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  transition: color .25s;
}

.footer-bottom a:hover,
.footer-bottom button:hover {
  color: var(--fg);
}

.footer-bottom b,
.footer-clock {
  color: var(--coral);
}

.footer-bottom .lang-switch {
  height: auto;
}

@media (min-width: 901px) {
  .footer-cols > :nth-child(2) {
    justify-self: center;
  }

  .footer-cols > :nth-child(3) {
    justify-self: end;
  }
}

@media (max-width: 900px) {
  .footer-cols {
    grid-template-columns: 1fr;
    row-gap: 0;
  }

  .footer-col {
    padding: 28px 0;
    border-top: 1px solid var(--line);
  }

  .footer-col:first-child {
    padding-top: 0;
    border-top: 0;
  }

  .footer-bottom {
    justify-content: flex-start;
  }
}

/* ==== cookie.css ==== */
/* Cookie consent: small dark panel, bottom left (tokens from base.css). Reopened from the footer. */

.cookie {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 80;
  width: min(420px, calc(100vw - 32px));
  max-height: calc(var(--vh) - 32px);
  padding: 24px;
  overflow-y: auto;
  border: 1px solid var(--rule);
  background: var(--black);
  color: var(--fg);
  box-shadow: 0 24px 60px -24px color-mix(in srgb, var(--black) 60%, transparent);
}

.cookie[hidden] {
  display: none;
}

.cookie-title {
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -.01em;
}

.cookie-text {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.cookie-text a {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-choices fieldset {
  margin-top: 18px;
  border: 0;
}

.cookie-choices legend {
  margin-bottom: 8px;
  color: var(--muted);
}

.cookie-choice {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  cursor: pointer;
}

.cookie-choice input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--coral);
}

.cookie-choice b {
  display: block;
  color: var(--fg);
  font-weight: 500;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

/* Accept and reject carry the same weight on purpose */
.cookie-actions .btn {
  flex: 1 1 auto;
  justify-content: center;
}

.cookie-actions .btn span {
  width: 100%;
  justify-content: center;
}

.cookie-customize {
  flex-basis: 100%;
  padding: 6px 0 2px;
  text-align: left;
}

