/* ==========================================================================
   WeAdapt Studios — design floor, revision 4 (2026-09-08)

   Source: `weadapt-website/DESIGN-SYSTEM-V2.md`, the studio-oker derived
   system. Everything in that document is applied: grayscale with no accent
   colour, weights 400 and 500 only, no italics, hairlines instead of shadows,
   unrounded photography, short captions, and its section order.

   One deliberate difference: V2 is light-only, and this site was asked twice
   for the inverted version. So the dark ground is the default and the literal
   V2 palette ships as `html[data-theme="light"]`, which is a one-attribute
   switch and nothing else.
   ========================================================================== */

@font-face {
  font-family: 'Basis';
  src: url('/fonts/BasisGrotesqueArabicPro-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Basis';
  src: url('/fonts/BasisGrotesqueArabicPro-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  /* --- V2 inverted: the same grayscale, on a dark ground ---------------- */
  --bg: #0d0d0c;
  --panel: #141413; /* tile and placeholder ground */
  --white: #141413;
  --ink: #f7f6f2;
  --ink-mid: #a8a6a0;
  --ink-muted: #8c8a83;
  --line: rgba(247, 246, 242, 0.14);
  --line-strong: rgba(247, 246, 242, 0.3);

  /* No accent. Colour comes out of the photography, never out of the UI. */

  /* --- type: two weights, no italics ----------------------------------- */
  --font: 'Basis', 'Basis Grotesque Pro', ui-sans-serif, system-ui, -apple-system, sans-serif;

  --t-wordmark: clamp(56px, 10vw, 148px);
  --t-wordmark-close: clamp(64px, 14vw, 200px);
  --t-section: clamp(28px, 3.5vw, 40px);
  --t-lead: clamp(22px, 2.2vw, 30px);
  --t-body: 16px;
  --t-small: 14px;
  --t-meta: 12px;

  --lh-wordmark: 0.9;
  --lh-section: 1.08;
  --lh-body: 1.62;
  --track-wordmark: -0.03em;
  --track-section: -0.01em;

  /* --- shape: hairlines, no radius on photography ----------------------- */
  --radius: 0px;
  --wrap: 1440px;
  --gutter: clamp(20px, 3vw, 36px);
  --section-gap: clamp(64px, 7vw, 112px);
  --space-10: 10px;
  --space-14: 14px;
  --space-20: 20px;
  --space-28: 28px;
  --space-40: 40px;
  --space-56: 56px;

  --ease: cubic-bezier(0.22, 0.68, 0, 1);

  /* --- the scroll engine's tokens, mapped onto the above --------------- */
  --sc-canvas: var(--bg);
  --sc-surface: var(--panel);
  --sc-ink: var(--ink);
  --sc-ink-soft: var(--ink-mid);
  --sc-accent: var(--ink);
  --sc-accent-ink: var(--bg);
  --sc-hairline: var(--line);
  --sc-hairline-strong: var(--line-strong);

  --sc-font-display: var(--font);
  --sc-font-text: var(--font);
  --sc-font-mono: var(--font);

  --sc-t-xs: var(--t-meta);
  --sc-t-sm: var(--t-small);
  --sc-t-base: var(--t-body);
  --sc-t-lg: var(--t-lead);
  --sc-t-xl: var(--t-section);
  --sc-t-2xl: var(--t-section);
  --sc-t-3xl: var(--t-section);
  --sc-t-4xl: var(--t-wordmark);

  --sc-track-tight: var(--track-wordmark);
  --sc-track-snug: var(--track-section);
  --sc-track-normal: normal;
  --sc-track-wide: 0.08em;

  --sc-leading-none: var(--lh-wordmark);
  --sc-leading-tight: var(--lh-section);
  --sc-leading-body: var(--lh-body);
  --sc-measure: 62ch;

  --sc-1: 4px;
  --sc-2: 8px;
  --sc-3: 12px;
  --sc-4: 16px;
  --sc-5: 20px;
  --sc-6: 28px;
  --sc-7: 40px;
  --sc-8: 56px;
  --sc-9: 80px;
  --sc-10: 104px;
  --sc-11: 128px;
  --sc-section: var(--section-gap);
  --sc-gutter: var(--gutter);
  --sc-maxw: var(--wrap);

  --sc-r-sm: 0px;
  --sc-r-md: 0px;
  --sc-r-lg: 0px;
  --sc-r-pill: 0px;

  --sc-e1: none;
  --sc-e2: none;
  --sc-e3: none;
  --sc-edge: none;
  --sc-scrim-a: 0%;

  /* Names older pages still reference. */
  --card: var(--panel);
  --card-h: #1a1a18;
  --border: var(--line);
  --border-strong: var(--line-strong);
  --orange: var(--ink);
  --orange-ink: var(--bg);
  --tile-bone: #f7f6f2;
  --tile-cement: #c2c1bf;
  --tile-navy: #1c2a33;
  --tile-void: var(--panel);
  --color-void: var(--bg);
  --color-white: var(--ink);
  --color-cement: var(--tile-cement);
  --color-midnight-navy: var(--tile-navy);
  --radius-card: 0px;
  --radius-tile: 0px;
  --radius-pill: 0px;
  --text-caption: var(--t-meta);
  --text-body-sm: var(--t-body);
  --text-body: var(--t-body);
  --text-small: var(--t-small);
  --text-lede: var(--t-lead);
  --text-h3: var(--t-lead);
  --text-h2: var(--t-section);
  --text-h1: var(--t-section);
  --text-display: var(--t-wordmark);
  --track-head: var(--track-section);
  --track-tight: var(--track-section);
  --track-display: var(--track-wordmark);
  --track-tag: 0.08em;
  --leading-head: var(--lh-section);
  --leading-display: var(--lh-wordmark);
  --leading-body: var(--lh-body);
  --t-hero: var(--t-wordmark);
  --t-sub: var(--t-lead);
  --t-lede: var(--t-lead);
  --t-tag: var(--t-meta);
  --lh-hero: var(--lh-wordmark);
  --lh-sub: 1.2;
}

/* The literal V2: light canvas, black ink, same everything else. Flip with
   `data-theme="light"` on <html>. */
:root[data-theme='light'] {
  --bg: #fafaf8;
  --panel: #ffffff;
  --white: #ffffff;
  --ink: #0a0a0a;
  --ink-mid: #57554f;
  /* V2 lists #8C8A83 here, which measures 3.31:1 on its own canvas and fails
     AA for the 12px labels it is used on. Darkened to clear 4.5:1. */
  --ink-muted: #6e6d69;
  --line: rgba(10, 10, 10, 0.12);
  --line-strong: rgba(10, 10, 10, 0.28);
  --card-h: #ffffff;
  --tile-void: #f1f0ec;
  color-scheme: light;
}

html {
  background: var(--bg);
}

body {
  font-family: var(--font);
  font-size: var(--t-body);
  font-weight: 400;
  line-height: var(--lh-body);
  letter-spacing: normal;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* V2 has no grain and no overlays. */
.sc-grain {
  display: none;
}

/* --- headings: weight 500, never italic ------------------------------- */
h1,
h2,
h3,
h4 {
  font-weight: 500;
  letter-spacing: var(--track-section);
  line-height: var(--lh-section);
  margin: 0;
  text-wrap: balance;
}
h1 {
  font-size: var(--t-section);
}
h2 {
  font-size: var(--t-section);
}
h3 {
  font-size: var(--t-lead);
  line-height: 1.22;
}
h4 {
  font-size: var(--t-body);
  font-weight: 500;
}
/* "Nooit cursief": emphasis is weight or colour, never italic. */
em,
i,
:is(h1, h2, h3, h4) em {
  font-style: normal;
  font-weight: 400;
  color: var(--ink-mid);
}

p,
li,
dd,
dt,
td,
th,
figcaption,
label,
input,
select,
textarea,
button {
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: normal;
  margin: 0;
}

a {
  color: inherit;
}

/* --- labels and metadata ---------------------------------------------- */
.tag,
.wa-tag,
.sc-label {
  display: inline-block;
  font-size: var(--t-meta);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  line-height: 1.4;
}
.tag::before {
  content: none;
}
.tag--accent {
  color: var(--ink-muted);
}

.lead,
.lede,
.wa-lede,
.sc-lede {
  font-size: var(--t-lead);
  font-weight: 400;
  line-height: 1.34;
  letter-spacing: var(--track-section);
  color: var(--ink);
  max-width: 30ch;
}
.meta,
.wa-cap {
  font-size: var(--t-meta);
  line-height: 1.5;
  color: var(--ink-muted);
}
.muted,
.wa-soft {
  color: var(--ink-mid);
}
.sc-body {
  font-size: var(--t-body);
  color: var(--ink-mid);
  max-width: 62ch;
}

/* --- links and actions: underline on hover, no filled buttons --------- */
.link {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.link:hover {
  border-color: var(--ink);
}

/* V2 forbids filled and coloured buttons. A hairline box is neither, and it
   keeps the affordance a form and a funnel need. */
.btn,
.wa-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: var(--t-small);
  font-weight: 500;
  line-height: 1;
  padding: 14px 22px;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.btn:hover,
.wa-cta:hover {
  border-color: var(--ink);
  background: rgba(247, 246, 242, 0.05);
}
:root[data-theme='light'] .btn:hover,
:root[data-theme='light'] .wa-cta:hover {
  background: rgba(10, 10, 10, 0.04);
}
.btn--primary {
  border-color: var(--ink);
}
.btn--ghost {
  color: var(--ink-mid);
}
.btn--ghost:hover {
  color: var(--ink);
}
.btn--sm {
  padding: 10px 16px;
  font-size: var(--t-meta);
}

/* --- layout ------------------------------------------------------------ */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.rule,
.wa-rule,
.sc-rule {
  border: 0;
  border-top: 1px solid var(--line);
  height: 0;
  margin: 0;
}

/* Cards are hairline frames, not raised surfaces: V2 has no shadows. */
.card {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 0;
  transition: border-color 0.25s var(--ease);
}
.card:hover {
  border-color: var(--line-strong);
}

/* --- photography: edge to edge, unrounded ---------------------------- */
.wa-tile,
.tile {
  display: block;
  border-radius: 0;
  overflow: hidden;
  background: var(--panel);
}
.wa-tile img,
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}
.wa-tile--navy,
.tile--navy {
  background: var(--tile-navy);
}
.wa-tile--cement,
.tile--cement {
  background: var(--tile-cement);
}
.wa-tile--white,
.tile--white {
  background: var(--tile-bone);
}
.wa-tile--void,
.tile--void {
  background: var(--panel);
}

/* Captions are one line plus metadata, never a paragraph. */
.wa-caption,
.caption {
  padding-top: 12px;
  display: grid;
  gap: 2px;
}
.wa-caption b,
.caption b {
  font-size: var(--t-small);
  font-weight: 500;
}
.wa-caption span,
.caption span {
  font-size: var(--t-meta);
  font-weight: 400;
  color: var(--ink-muted);
}

/* --- entrance and reveal: kept, they are the site's own effects ------- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.a1 { animation: fadeUp 0.7s var(--ease) 0.05s both; }
.a2 { animation: fadeUp 0.7s var(--ease) 0.16s both; }
.a3 { animation: fadeUp 0.7s var(--ease) 0.26s both; }
.a4 { animation: fadeUp 0.7s var(--ease) 0.36s both; }
.a5 { animation: fadeUp 0.7s var(--ease) 0.46s both; }
.a6 { animation: fadeUp 0.7s var(--ease) 0.56s both; }

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.rd1 { transition-delay: 0.05s; }
.rd2 { transition-delay: 0.15s; }
.rd3 { transition-delay: 0.25s; }
.rd4 { transition-delay: 0.35s; }
.rd5 { transition-delay: 0.45s; }
.rd6 { transition-delay: 0.55s; }

@media (prefers-reduced-motion: reduce) {
  .a1, .a2, .a3, .a4, .a5, .a6 {
    animation: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* V2 has no glow or spotlight effects. */
.glow::before {
  content: none;
}

/* --- browser surfaces ------------------------------------------------- */
::selection {
  background: var(--ink);
  color: var(--bg);
}
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
:where(a) {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}
@supports (scrollbar-color: auto) {
  html {
    scrollbar-color: var(--line-strong) transparent;
    scrollbar-width: thin;
  }
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: var(--gutter);
  top: 16px;
  z-index: 200;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  font-size: var(--t-meta);
  font-weight: 500;
}

/* --- legacy display helpers ------------------------------------------- */
.wa-scale,
.sc-display--xl {
  font-size: var(--t-wordmark);
  line-height: var(--lh-wordmark);
  letter-spacing: var(--track-wordmark);
  font-weight: 500;
  margin: 0;
}
.wa-scale--sm,
.sc-display--lg {
  font-size: var(--t-section);
  line-height: var(--lh-section);
  letter-spacing: var(--track-section);
  font-weight: 500;
}
.sc-display {
  font-family: var(--font);
  font-weight: 500;
  letter-spacing: var(--track-section);
  line-height: var(--lh-section);
}
.sc-display--md {
  font-size: var(--t-lead);
}
.wa-on-light {
  --ink: #0a0a0a;
  --ink-mid: #57554f;
  /* V2 lists #8C8A83 here, which measures 3.31:1 on its own canvas and fails
     AA for the 12px labels it is used on. Darkened to clear 4.5:1. */
  --ink-muted: #6e6d69;
  --line: rgba(10, 10, 10, 0.12);
  --line-strong: rgba(10, 10, 10, 0.28);
  --sc-ink: #0a0a0a;
  --sc-ink-soft: #57554f;
  --sc-hairline: rgba(10, 10, 10, 0.12);
  --sc-hairline-strong: rgba(10, 10, 10, 0.28);
  color: #0a0a0a;
}

@media (pointer: coarse) {
  button,
  [role='button'],
  a.btn,
  a.wa-cta,
  .link,
  .nav a,
  .foot a,
  .tagword,
  .word,
  .chip,
  .tool,
  .lock__btn {
    min-height: 28px;
    min-width: 28px;
    display: inline-flex;
    align-items: center;
  }
}
