/*
 * Durior — design system "Blok"
 * "Durior" is Latijn voor 'harder/sterker': zware blokken, harde voegen, geen franje.
 * Paper + ink met staalblauwe accentvlakken; display in Archivo Expanded Black,
 * lopende tekst in Archivo, alle UI-tekst in JetBrains Mono.
 */

/* ---------- Fonts (zelf gehost, SIL OFL 1.1 — zie app/assets/fonts/OFL-*.txt) ----------
 * Alleen de latin-subset (dekt ook é, ë, ï, — en €); beide variabel.
 * Archivo: assen wdth 62–125 en wght 100–900. JetBrains Mono: wght 400–800.
 */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("/assets/archivo-latin-2348e0b4.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: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/jetbrains-mono-latin-8a992d39.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 {
  --ink: #0b0e11;
  --paper: #e9edf0;
  --steel: #4a90a4;        /* accentvlakken, altijd met ink-tekst */
  --steel-dark: #2f6678;
  --steel-light: #7fb8cb;
  --rails: #cc0000;        /* alleen bij "Ruby on Rails" */
  --rails-light: #e85d52;
  --label: #3d474e;        /* kleine labels op paper */

  --font-body: "Archivo", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --gutter: clamp(16px, 3.4vw, 48px);
  --rule: 4px solid var(--ink);
  --joint: 3px;            /* voeg tussen blokken */
  --ease: 0.15s ease;
}

/* ---------- Basis ---------- */

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-stretch: 100%;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--ink); }

::selection {
  background: var(--steel);
  color: var(--ink);
}

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

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 10;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
}

.skip-link:focus { top: 12px; }

/* ---------- Typografie ---------- */

/* Display: Archivo Expanded Black (variant B) */
.disp {
  font-family: var(--font-body);
  font-stretch: 125%;
  font-weight: 900;
  letter-spacing: -0.03em;
}

/* UI-tekst: navigatie, knoppen, labels, nummers, tags, metadata */
.mono {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--label);
}

.tag {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 2px solid currentColor;
  padding: 6px 10px;
}

.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  line-height: 1.5;
}

.rails { color: var(--rails); }

.wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* Twee kolommen (kop links, tekst rechts) */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 24px 64px;
}

.split--narrow { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }

/* Raster van blokken met 3px ink-voegen */
.ruled {
  display: grid;
  gap: var(--joint);
  background: var(--ink);
  border: var(--joint) solid var(--ink);
}

.ruled > * { background: var(--paper); }

.ruled--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

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

.site-header { border-bottom: var(--rule); }

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 18px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand sup {
  font-size: 9px;
  letter-spacing: 0;
}

.brand-mark {
  display: inline-block;
  width: 28px;
  height: 28px;
  background: var(--steel);
  border: 3px solid var(--ink);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.nav-link { text-decoration: none; }

.nav-link:hover {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

/* ---------- Knoppen ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 3px solid var(--ink);
  padding: 14px 22px;
  text-decoration: none;
  transition: background var(--ease), color var(--ease);
}

.btn--small { padding: 10px 16px; }

.btn--black { background: var(--ink); color: var(--paper); }
.btn--black:hover { background: var(--paper); color: var(--ink); }

.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }

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

.hero { padding-top: 40px; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  letter-spacing: 0.1em;
  color: var(--label);
}

.hero-title {
  font-size: clamp(3.3rem, 14.4vw, 13rem);
  line-height: 0.86;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin: 28px 0 0 -0.04em;
}

.hero-rule {
  margin-top: 32px;
  border-top: var(--rule);
  border-bottom: var(--rule);
  padding: 40px 0;
  gap: 32px 64px;
  align-items: start;
}

.tagline {
  font-size: clamp(2rem, 3.9vw, 3.5rem);
  line-height: 0.98;
}

.facts {
  margin-top: var(--joint);
  border-top: 0;
}

.fact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 24px;
}

.fact-value {
  font-size: clamp(1.5rem, 2.2vw, 2.1rem);
  line-height: 1;
}

.ruled > .fact--accent { background: var(--steel); }
.fact--accent .label { color: var(--ink); }

/* ---------- Kernwoorden-band ---------- */

.band {
  margin-top: 56px;
  background: var(--steel);
  border-top: var(--rule);
  border-bottom: var(--rule);
}

.band-words {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  padding-block: 22px;
  font-size: clamp(1.3rem, 2.5vw, 2.2rem);
  line-height: 1.05;
  text-transform: uppercase;
}

/* ---------- Secties ---------- */

.section { padding-top: 96px; }

.section-head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.section-num {
  letter-spacing: 0.1em;
  background: var(--ink);
  color: var(--paper);
  padding: 6px 10px;
}

.section-label {
  letter-spacing: 0.1em;
  color: var(--label);
}

.section-line {
  flex: 1;
  height: 3px;
  background: var(--ink);
}

.section-title {
  font-size: clamp(2.25rem, 5.6vw, 5.25rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.section-intro {
  align-items: end;
  margin-bottom: 40px;
}

.section-intro .lead { padding-bottom: 6px; }

/* ---------- Diensten ---------- */

.services { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.service {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  min-height: 300px;
  padding: 32px;
  transition: background var(--ease), color var(--ease);
}

.service--wide { grid-column: span 2; }

.ruled > .service--accent {
  grid-row: span 2;
  background: var(--steel);
}

.ruled > .service:hover {
  background: var(--ink);
  color: var(--paper);
}

.service-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.service-num {
  font-size: clamp(2.5rem, 4vw, 3.75rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.service-title,
.principle-title {
  font-size: clamp(1.35rem, 2.1vw, 2rem);
  line-height: 1.02;
}

.service-title { margin-bottom: 12px; }

/* ---------- Over ---------- */

.over-title {
  display: flex;
  flex-direction: column;
  font-size: clamp(2.5rem, 6.2vw, 6rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.text-stroke {
  color: var(--steel);
  -webkit-text-stroke: 3px var(--ink);
  paint-order: stroke fill;
}

.over-intro {
  gap: 40px 64px;
  align-items: start;
}

.stats { margin-top: 48px; }

.stat {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  min-height: 150px;
  padding: 24px;
}

.stat-value {
  font-size: clamp(1.25rem, 1.8vw, 1.65rem);
  line-height: 1.02;
}

.stat-value--big {
  font-size: clamp(2.1rem, 3.3vw, 3.1rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.stat-value--small {
  font-size: clamp(1.05rem, 1.45vw, 1.3rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.principles {
  margin-top: 48px;
  border-top: var(--rule);
}

.principle {
  gap: 16px 64px;
  padding: 28px 0;
  border-bottom: var(--joint) solid var(--ink);
  align-items: baseline;
}

.principle:last-child { border-bottom: var(--rule); }

.principle-title {
  display: flex;
  gap: 20px;
  align-items: baseline;
}

.principle-title .mono { color: var(--label); letter-spacing: 0.1em; }

/* ---------- Portfolio-mozaïek ---------- */

.mosaic { grid-template-columns: repeat(12, minmax(0, 1fr)); }

.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-6 { grid-column: span 6; }
.span-12 { grid-column: span 12; }

.tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--ink);
  transition: background var(--ease), color var(--ease);
}

.tile--xl { min-height: 420px; padding: 32px; gap: 48px; }
.tile--l  { min-height: 340px; padding: 28px; gap: 40px; }
.tile--m  { min-height: 260px; padding: 24px; gap: 28px; }

.ruled > .tile--accent { background: var(--steel); }
.ruled > .tile--ink { background: var(--ink); color: var(--paper); }

.ruled > .tile:hover { background: var(--ink); color: var(--paper); }
.ruled > .tile--ink:hover { background: var(--paper); color: var(--ink); }

.tile-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.tile-num {
  line-height: 0.85;
  letter-spacing: -0.05em;
}

.tile--xl .tile-num { font-size: clamp(3.25rem, 5.6vw, 5.25rem); }
.tile--l  .tile-num { font-size: clamp(2.5rem, 4vw, 3.75rem); }
.tile--m  .tile-num { font-size: clamp(1.75rem, 2.4vw, 2.25rem); letter-spacing: -0.04em; }

.tile--ink .tile-num { color: var(--steel); }

.tile--m .tag { font-size: 11px; padding: 5px 8px; }

.tile-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tile-title { line-height: 1; }

.tile--xl .tile-title { font-size: clamp(1.75rem, 2.9vw, 2.75rem); line-height: 0.96; }
.tile--l  .tile-title { font-size: clamp(1.35rem, 2.1vw, 2rem); }
.tile--m  .tile-title { font-size: clamp(1.1rem, 1.45vw, 1.35rem); letter-spacing: -0.02em; }

.tile--xl .tile-text { max-width: 32em; font-size: 1.05rem; }
.tile--m .tile-text { font-size: 15px; }

.tile-link {
  color: inherit;
  text-decoration: none;
}

/* Pijl blijft achter het laatste woord, ook als de naam over twee regels loopt */
.tile-link svg {
  display: inline-block;
  margin-left: 0.3em;
  vertical-align: -0.05em;
  transition: transform var(--ease);
}

.tile-link:hover {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
}

.tile-link:hover svg { transform: translate(3px, -3px); }

.mosaic-note {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 13px;
  color: var(--label);
}

/* ---------- Techniek ---------- */

.tech {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  min-height: 220px;
  padding: 28px;
  transition: background var(--ease), color var(--ease);
}

.ruled > .tech:hover { background: var(--ink); color: var(--paper); }
.tech:hover .rails { color: var(--rails-light); }

.tech-name {
  font-size: clamp(1.6rem, 2.7vw, 2.6rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
}

/* ---------- Contact ---------- */

.contact {
  margin-top: 96px;
  background: var(--steel);
  border-top: var(--rule);
  border-bottom: var(--rule);
}

.contact-inner { padding-block: 72px 80px; }

.contact .section-head { margin-bottom: 28px; }
.contact .section-label { color: var(--ink); }

.contact-title {
  font-size: clamp(2.75rem, 9.4vw, 8.75rem);
  line-height: 0.88;
  letter-spacing: -0.05em;
}

.contact-row {
  margin-top: 40px;
  border-top: var(--rule);
  padding-top: 32px;
  gap: 28px 64px;
  align-items: end;
}

.contact-meta { font-size: 13px; }

.mail-big {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: clamp(1.35rem, 3.2vw, 3rem);
  line-height: 1;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.mail-big svg {
  width: 0.7em;
  height: 0.7em;
}

.mail-big:hover {
  text-decoration: underline;
  text-decoration-thickness: 6px;
  text-underline-offset: 10px;
}

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

.site-footer {
  background: var(--ink);
  color: var(--paper);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px 40px;
  padding-block: 36px;
  font-size: 13px;
}

.footer-row a { color: var(--paper); text-decoration: none; }

.footer-row a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.footer-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.site-footer .brand { font-size: 16px; }
.site-footer .brand sup { font-size: 8px; }

.site-footer .brand-mark {
  width: 22px;
  height: 22px;
  border-color: var(--paper);
}

/* ---------- Tekstpagina's (privacy) ---------- */

.prose-page { padding-block: 64px 96px; }

.prose-title {
  font-size: clamp(2.25rem, 6vw, 5rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
}

.prose {
  max-width: 46rem;
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
}

.prose section {
  border-top: var(--joint) solid var(--ink);
  padding-top: 24px;
}

.prose h2 {
  font-size: clamp(1.25rem, 1.9vw, 1.75rem);
  line-height: 1.05;
  margin-bottom: 12px;
}

.prose a {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* ---------- Responsief ---------- */

@media (max-width: 1000px) {
  .split,
  .split--narrow { grid-template-columns: minmax(0, 1fr); }

  .ruled--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services > * { grid-column: span 1; grid-row: auto; }
  .ruled > .service--accent { grid-row: auto; }

  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mosaic > .tile { grid-column: span 1; min-height: 280px; }
  .mosaic > .tile--xl,
  .mosaic > .span-12 { grid-column: span 2; }

  .nav-cta { display: none; }
}

@media (max-width: 640px) {
  .ruled--4,
  .services,
  .mosaic { grid-template-columns: minmax(0, 1fr); }

  .mosaic > .tile,
  .mosaic > .tile--xl,
  .mosaic > .span-12 { grid-column: span 1; min-height: 240px; }

  .nav-row { flex-direction: column; align-items: flex-start; }
  .nav-links { width: 100%; justify-content: space-between; gap: 12px 20px; }

  .hero-rule { padding: 28px 0; }
}

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