/* Farmersdance: a stable final approach at dusk. Calm, precise, on course.
   One mood for everyone (Wilfred, 18 Oct 2026: "schemering als standaard"). Set in B612, the face Airbus had made for cockpit displays. */

@font-face { font-family: "B612"; src: url("fonts/b612-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "B612"; src: url("fonts/b612-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --bg: #0e1522;
  --ink: #edf1f6;
  --ink-2: #a9b4c3;
  --hair: #26324a;
  --line: #3a4964;
  --amber: #f2c46d;
  --edge-light: #f6ead0;
  --threshold-light: #4fd98a;
  --papi-red: #ff5d5d;
  --papi-white: #ffffff;
  --band: #0a0f19;

  --f: "B612", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wrap: 72rem;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: dark;
  accent-color: var(--amber);
  caret-color: var(--amber);
  scrollbar-color: var(--line) var(--bg);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--amber); color: var(--bg); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; border-radius: 2px; }

h1, h2, h3, p, ul, figure { margin: 0; }
p, li { text-wrap: pretty; }
ul { padding: 0; list-style: none; }

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: #6b778a;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
  transition: text-decoration-color 200ms var(--ease), color 200ms var(--ease);
}
@media (hover: hover) { a:hover { text-decoration-color: var(--amber); } }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[id] { scroll-margin-top: 5rem; }

/* Header */

.kop {
  position: sticky; top: 0; z-index: 10;
  background: var(--bg);
  box-shadow: 0 1px 0 var(--hair);
}
.kop-binnen { display: flex; justify-content: space-between; align-items: center; min-height: 4.25rem; }
/* the logo is outlined Michroma (tools/merk.mjs); the link carries the name */
.merk { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: none; }
.merk-logo { display: block; height: 2.625rem; width: auto; }
.nav { display: flex; gap: clamp(1rem, 3vw, 2rem); }
.nav a { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: none; color: var(--ink-2); }
@media (hover: hover) { .nav a:hover { color: var(--ink); } }
@media (max-width: 37.5rem) { .merk-logo { height: 2.3125rem; } .nav .nav-werkwijze { display: none; } }
@media (max-width: 30rem) { .merk-logo { height: 2.125rem; } .nav .nav-projecten { display: none; } }

/* Hero: the view from the left seat, edge to edge, headline in the sky */

.held-beeld { position: relative; }
.avond { display: block; width: 100%; height: auto; aspect-ratio: 1440 / 620; }
@media (max-width: 48rem) { .avond { aspect-ratio: 3 / 4; } }
.held-kop { position: absolute; inset: 0 0 auto 0; padding-top: clamp(2rem, 5.5vw, 4.75rem); }
h1 {
  font-size: clamp(2.2rem, 1rem + 3.3vw, 3.9rem);
  line-height: 1.07;
  letter-spacing: -0.022em;
  font-weight: 700;
  max-width: 15em;
  text-wrap: balance;
  color: var(--papi-white);
}
h1 span { display: block; }
.h1-a { font-weight: 400; color: #c9d2df; }

.ster { fill: #ffffff; opacity: 0.55; }
.einder { fill: #0b1018; opacity: 0.65; }
.baan-avond { fill: #171d27; }
.mark-avond { fill: #5d6673; opacity: 0.55; }
.rand { fill: var(--edge-light); }
.drempel { fill: var(--threshold-light); }
.nadering { fill: #fff6df; }
.papi-eenheid { fill: #05070b; }
.papi-wit { fill: var(--papi-white); }
.papi-rood { fill: var(--papi-red); }
.papi-gloed { opacity: 0.28; }
@media (prefers-reduced-motion: no-preference) {
  .papi { animation: papi-aan 900ms var(--ease) both; }
  .papi-1 { animation-delay: 500ms; }
  .papi-2 { animation-delay: 640ms; }
  .papi-3 { animation-delay: 780ms; }
  .papi-4 { animation-delay: 920ms; }
}
@keyframes papi-aan { from { opacity: 0.15; } to { opacity: 1; } }

.held-onder {
  display: grid; gap: 1.5rem 2.5rem; align-items: end;
  padding-top: clamp(1.75rem, 3.5vw, 2.75rem);
}
@media (min-width: 60rem) { .held-onder { grid-template-columns: minmax(0, 38em) auto; justify-content: space-between; } }
.lead { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); line-height: 1.6; color: var(--ink); max-width: 38em; }
.acties { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.75rem; }

.knop {
  display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: 0 1.5rem;
  border-radius: 999px; background: var(--amber); color: var(--band);
  font-weight: 700; text-decoration: none; transition: background-color 200ms var(--ease);
}
@media (hover: hover) { .knop:hover { background: var(--papi-white); } }
.knop-stil { display: inline-flex; align-items: center; min-height: 3rem; font-weight: 700; }

/* Sections: three acts (who, how, what); acts open with more air */

.blok { padding-top: clamp(4rem, 9vw, 7rem); }
.akte { padding-top: clamp(5.5rem, 13vw, 10rem); }
h2 {
  font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.012em;
  font-weight: 400;
  max-width: 20em;
  text-wrap: balance;
}
h3 { font-size: 1.0625rem; line-height: 1.4; font-weight: 700; }
.tekst { margin-top: 1.25rem; max-width: 36em; color: var(--ink-2); }
.tekst p + p { margin-top: 1rem; }

.twee {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.75rem, 4vw, 4rem);
  margin-top: clamp(1.75rem, 3.5vw, 2.5rem);
}
.twee p { margin-top: 0.5rem; max-width: 34em; color: var(--ink-2); }
@media (max-width: 44rem) { .twee { grid-template-columns: 1fr; } }
.samen { margin-top: clamp(2rem, 4vw, 3rem); padding-top: 1.25rem; border-top: 1px solid var(--hair); }
.samen p { margin-top: 0.5rem; max-width: 38em; color: var(--ink-2); }

/* On course, or a go-around: precise line drawing */

.profiel { display: block; width: 100%; height: auto; margin-top: clamp(2rem, 4vw, 3rem); overflow: visible; }
.profiel * { vector-effect: non-scaling-stroke; }
.p-grond { stroke: var(--hair); stroke-width: 1; }
.p-baan { stroke: var(--ink); stroke-width: 5; }
.p-koers { fill: none; stroke: var(--ink); stroke-width: 1.75; stroke-linecap: round; }
.p-door { fill: none; stroke: var(--amber); stroke-width: 1.75; stroke-dasharray: 6 7; }
.p-pijl { fill: var(--amber); }
.profiel-smal { display: none; }
@media (max-width: 40rem) { .profiel-breed { display: none; } .profiel-smal { display: block; } }
.legenda { width: 2rem; height: 0.5rem; margin-right: 0.65rem; vertical-align: 0.2em; overflow: visible; }
.legenda line { stroke: var(--ink); stroke-width: 2; vector-effect: non-scaling-stroke; }
.legenda-door line { stroke: var(--amber); stroke-dasharray: 5 4; }

.drie {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3.5vw, 3rem);
  margin-top: clamp(2.25rem, 4.5vw, 3.25rem);
}
.drie li { border-top: 1px solid var(--hair); padding-top: 1.1rem; }
.drie p { margin-top: 0.35rem; color: var(--ink-2); }
@media (max-width: 52rem) { .drie { grid-template-columns: 1fr; gap: 0; } .drie li { padding-bottom: 1.25rem; } }

/* The autopilot display: lines and lights only, like the rest of the page */

.plaat { display: block; width: 100%; height: auto; }
.plaat * { vector-effect: non-scaling-stroke; }
.plaat-ap { aspect-ratio: 400 / 260; overflow: visible; }
.ap-kader { fill: none; stroke: var(--threshold-light); stroke-width: 1.25; }
.ap-tekst { fill: var(--threshold-light); font-family: var(--f); font-weight: 700; font-size: 16px; letter-spacing: 0.08em; }
.ap-lijn line { stroke: #c9d2df; stroke-width: 1.25; opacity: 0.75; }
.ap-schaal circle { fill: none; stroke: #c9d2df; stroke-width: 1.25; opacity: 0.6; }
.ap-ruit { fill: var(--papi-white); }
.ap-vlieg { fill: var(--amber); }
.duo { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.plaat-vak.scherm-vak { max-width: 24rem; width: 100%; justify-self: end; }
.scherm-vak figcaption { margin-top: 0.75rem; font-size: 0.875rem; color: var(--ink-2); }
@media (max-width: 52rem) { .duo { grid-template-columns: 1fr; } .plaat-vak.scherm-vak { justify-self: start; } }

/* Work: the real screens are the peak of the page */

.werk { margin-top: clamp(2.5rem, 5vw, 4rem); display: grid; gap: clamp(3.5rem, 8vw, 6.5rem); }
.werk-item { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.75rem, 5vw, 4.5rem); align-items: center; }
.werk-item:nth-child(even) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.werk-item:nth-child(even) .werk-beeld { order: 2; }
.werk-tekst p { margin-top: 0.5rem; color: var(--ink-2); max-width: 30em; }
.werk-tekst h3 { font-size: 1.35rem; }
.werk-tekst .werk-koop { margin-top: 0.25rem; color: var(--ink); }
.werk-koop strong { color: var(--amber); }
.werk-koop a { display: inline-flex; align-items: center; min-height: 2.75rem; }
@media (max-width: 52rem) {
  .werk-item, .werk-item:nth-child(even) { grid-template-columns: 1fr; gap: 1.25rem; }
  .werk-item:nth-child(even) .werk-beeld { order: 0; }
}

.werk-beeld { display: flex; justify-content: center; align-items: center; }
.toestel { margin: 0; background: #1c2535; box-shadow: 0 18px 28px -18px rgba(0, 0, 0, 0.8); }
.toestel img { display: block; width: 100%; height: auto; }
.toestel-tablet { width: 100%; border-radius: 22px; padding: 12px; }
.toestel-tablet img { border-radius: 10px; }
.toestel-browser { width: 100%; border-radius: 12px; padding-top: 26px; overflow: hidden; position: relative; }
.toestel-browser::before {
  content: ""; position: absolute; top: 10px; left: 14px; width: 42px; height: 8px;
  background: radial-gradient(circle at 4px 4px, var(--line) 3.5px, transparent 4px) 0 0 / 14px 8px repeat-x;
}
.toestel-telefoon { width: clamp(9rem, 26vw, 15rem); border-radius: 34px; padding: 8px; }
.toestel-telefoon img { border-radius: 27px; aspect-ratio: 600 / 1298; object-fit: cover; object-position: top; }
.toestel-telefoon img.eigen { aspect-ratio: auto; }
.combi { position: relative; width: 100%; padding-bottom: 6%; }
.combi .toestel-browser { width: 88%; margin-right: auto; }
.combi-telefoon { position: absolute; right: 0; bottom: 0; width: 24%; min-width: 7.5rem; border-radius: 26px; padding: 6px; }
.combi-telefoon img { border-radius: 20px; }
.duo-telefoon { gap: clamp(1rem, 3vw, 2rem); }
.duo-telefoon .toestel-telefoon { width: min(15rem, 41vw); }
.duo-telefoon .toestel-telefoon:last-child { margin-top: 3rem; }

.thuis { margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: 1.25rem; border-top: 1px solid var(--hair); color: var(--ink-2); max-width: 40em; }

/* The landing: the contact band is the touchdown, at night */

.band { background: var(--band); margin-top: clamp(5rem, 11vw, 8.5rem); }
.landing { display: block; width: 100%; height: clamp(8rem, 16vw, 13rem); }
.midden { fill: #fff6df; opacity: 0.85; }
.slot { padding-top: clamp(2.5rem, 6vw, 4rem); padding-bottom: clamp(3.5rem, 8vw, 6rem); }
.slot h2 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.4rem); }
.mail { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.75rem; margin-top: clamp(1.75rem, 3.5vw, 2.5rem); }
.mail-adres {
  display: inline-flex; align-items: center; min-height: 2.75rem;
  font-size: clamp(1.05rem, 0.95rem + 0.6vw, 1.35rem);
  text-decoration-thickness: 2px;
}

.voet {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.35rem 2rem;
  position: relative;
  padding-top: 1.5rem; padding-bottom: max(2.5rem, env(safe-area-inset-bottom));
  font-size: 0.875rem; color: var(--ink-2);
}
.voet::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: var(--hair); }
