@font-face {
  font-family: Manrope;
  src: url("/assets/nexin-20261022-motion/shared/brand/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #fafafa;
  --panel: #fff;
  --ink: #17181a;
  --muted: #505661;
  --line: #d7dce6;
  --accent: var(--nx-light-blue-0030fd,#0030fd);
  --on-accent: #fff;
  --blue-line: #8da3ff;
}

:root[data-nexin-theme="dark"] {
  color-scheme: dark;
  --paper: #1d1e20;
  --panel: #25272a;
  --ink: #f2f3f5;
  --muted: #c5c8cf;
  --line: #484b51;
  --accent: var(--nx-light-blue-7895ff,#7895ff);
  --on-accent: #111626;
  --blue-line: var(--nx-light-blue-7895ff,#7895ff);
}

* { box-sizing: border-box; }
::selection { color: var(--on-accent); background: var(--accent); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.68 Manrope, system-ui, sans-serif;
}

.wrap {
  width: min(100% - clamp(2rem, 8vw, 6rem), 71rem);
  margin-inline: auto;
}

a { color: var(--ink); text-underline-offset: .24em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

.skip {
  position: absolute;
  z-index: 2;
  left: 1rem;
  top: .5rem;
  padding: .6rem 1rem;
  background: var(--panel);
  transform: translateY(calc(-100% - 1rem));
}
.skip:focus { transform: none; }

.about-head {
  display: flex;
  align-items: center;
  gap: clamp(.65rem, 3vw, 1.55rem);
  padding-block: .65rem;
  border-bottom: 2px solid var(--blue-line);
}

.brand img { display: block; width: clamp(4.5rem, 12vw, 7rem); height: auto; }
[data-nexin-theme="dark"] .brand img { content: url("/assets/nexin-20261022-motion/shared/brand/nexin-woordmerk-licht.svg"); }

.about-head nav {
  display: flex;
  align-items: center;
  gap: clamp(.7rem, 3vw, 1.6rem);
  margin-inline-start: auto;
  font-size: .9rem;
  font-weight: 650;
}

.about-head a, .about-theme {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.about-head nav a { text-decoration: none; }
.about-head nav a:hover { text-decoration: underline; }

.about-theme {
  justify-content: center;
  width: 44px;
  flex: 0 0 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  padding: 0;
}

.about-theme:hover { background: var(--panel); }
.about-theme svg, .cta svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.about-theme .about-sun,
[data-nexin-theme="dark"] .about-theme .about-moon { display: none; }
[data-nexin-theme="dark"] .about-theme .about-sun { display: block; }

h1, h2 {
  font-weight: 720;
  line-height: 1.1;
  letter-spacing: -.035em;
  text-wrap: balance;
  margin: 0;
}

h1 { font-size: clamp(3rem, 7vw, 5.65rem); }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.5rem); }
p { margin: 0; }
p + p { margin-top: 1rem; }

.about-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 22rem);
  align-items: center;
  gap: clamp(1.5rem, 7.5vw, 6rem);
  padding-block: clamp(2.5rem, 5.5vw, 4.75rem);
}

.about-intro h1::after {
  content: "";
  display: block;
  width: clamp(5.5rem, 11vw, 9rem);
  height: 2px;
  margin-top: clamp(.8rem, 2.2vw, 1.35rem);
  background: var(--accent);
}

.about-name {
  margin-top: clamp(1.15rem, 3.2vw, 2rem);
  font-size: clamp(1.32rem, 2.65vw, 2rem);
  font-weight: 670;
  line-height: 1.24;
  letter-spacing: -.032em;
}

.about-lead {
  max-width: 53ch;
  margin-top: .85rem;
  font-size: clamp(1rem, 1.55vw, 1.19rem);
  line-height: 1.66;
  color: var(--muted);
  text-wrap: pretty;
}

.about-portrait {
  width: 100%;
  max-width: 22rem;
  aspect-ratio: 5 / 6;
  overflow: hidden;
  margin: 0;
  justify-self: end;
  border-radius: 1rem;
  background: #f1f0f2;
}

.about-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

.about-story {
  display: grid;
  grid-template-columns: minmax(10rem, 1fr) minmax(0, 3.12fr);
  align-items: start;
  column-gap: clamp(1.5rem, 7vw, 6rem);
}

.about-index {
  position: sticky;
  inset-block-start: 1.5rem;
  border-block-start: 1px solid var(--line);
}

.about-index ul {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.about-index li { border-block-end: 1px solid var(--line); }

.about-index a {
  position: relative;
  display: flex;
  align-items: center;
  min-block-size: 44px;
  padding: .35rem .775rem;
  font-size: .9rem;
  font-weight: 650;
  line-height: 1.35;
  text-decoration: none;
}

.about-index a:is(:hover, :focus-visible, [aria-current]) { color: var(--accent); }

.about-index a[aria-current] {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  font-weight: 750;
}

.about-index a[aria-current]::before {
  content: "";
  position: absolute;
  inset-block: .65rem;
  inset-inline-start: 0;
  inline-size: 2px;
  border-radius: 1px;
  background: currentColor;
}

.about-reading { min-width: 0; }

.about-chapter, .about-contact {
  position: relative;
  padding-block: clamp(1.75rem, 4.7vw, 3.6rem);
  border-block-start: 1px solid var(--line);
}

.about-chapter::before, .about-contact::before {
  content: "";
  position: absolute;
  inset-block-start: -1px;
  inset-inline-start: 0;
  width: 3.25rem;
  height: 1px;
  background: var(--accent);
}

.about-chapter h2 {
  max-width: 25ch;
  font-size: clamp(1.72rem, 3.45vw, 2.6rem);
  scroll-margin-block-start: 1.5rem;
}

.about-chapter .about-copy { margin-top: clamp(.95rem, 2vw, 1.4rem); }

.about-copy {
  max-width: 69ch;
  color: var(--muted);
  line-height: 1.74;
}

.about-copy p + p { margin-top: 1rem; }

.about-local {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(9rem, 14rem);
  align-items: center;
  gap: .85rem clamp(1rem, 3vw, 2.25rem);
  margin-block: 1.35rem;
}

.about-local-mac {
  width: 100%;
  max-width: 14rem;
  margin: 0;
}

.about-local-mac svg { display: block; width: 100%; height: auto; }

.about-contact .about-copy {
  display: flex;
  align-items: center;
  gap: 1rem 2rem;
  color: var(--ink);
}

.cta {
  display: inline-flex;
  gap: .55rem;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: .6rem 1rem;
  border-radius: 2rem;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.cta:hover { color: var(--on-accent); text-decoration: underline; }

.site-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .5rem 1.2rem;
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .875rem;
}

@media (max-width: 56rem) {
  .about-local { grid-template-columns: minmax(0, 1fr); }
  .about-contact .about-copy { flex-wrap: wrap; }
}

@media (max-width: 45rem) {
  .about-intro {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    padding-block: 2rem;
  }

  .about-portrait {
    justify-self: start;
    width: min(78%, 16rem);
  }

  .about-story { grid-template-columns: minmax(0, 1fr); }

  .about-index { position: static; }

  .about-index ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1rem;
  }

  .about-index li { border-block-end: 0; }
  .about-index li:nth-child(n + 3) { border-block-start: 1px solid var(--line); }

  .about-local-mac { width: min(100%, 12.5rem); }
}

/* The existing local-computing figure uses its original geometry. */
.about-local-drawing {
  --machine-surface: #f7f9fc;
  --machine-face: #e5ebf3;
  --machine-line: #516c89;
  --machine-wire: #9babc0;
  --badge-face: #627b96;
  --badge-edge: #344b66;
  --badge-rim: #a6b8cb;
  --badge-shadow: #263e59;
}

[data-nexin-theme="dark"] .about-local-drawing {
  --machine-surface: #192a40;
  --machine-face: #253d58;
  --machine-line: #a8bed5;
  --machine-wire: #547091;
  --badge-face: #d1e0ef;
  --badge-edge: #59718c;
  --badge-rim: #edf5ff;
  --badge-shadow: #091626;
}

.about-local-drawing .shell { fill: var(--machine-surface); stroke: var(--machine-line); stroke-width: 1.5; }
.about-local-drawing .face { fill: var(--machine-face); stroke: var(--machine-line); stroke-width: 1.2; }
.about-local-drawing .thin { fill: none; stroke: var(--machine-line); stroke-width: 1.5; stroke-linecap: round; }
.about-local-drawing .quiet { opacity: .45; }
.about-local-drawing .wire { fill: none; stroke: var(--machine-wire); stroke-width: 1.4; stroke-linecap: round; }
.about-local-drawing .current { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 2 20; }
.about-local-drawing .return { opacity: .65; }
.about-local-drawing .port { fill: var(--machine-line); stroke: var(--panel); stroke-width: .8; }
.about-local-drawing .lit { fill: var(--accent); }
.about-local-drawing .device-body { fill: var(--machine-surface); }
.about-local-drawing .device-top { fill: var(--machine-face); }
.about-local-drawing :is(.device-outline, .device-seam) { fill: none; stroke: var(--machine-line); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.about-local-drawing .device-seam { stroke-width: 1.2; }
.about-local-drawing .badge-shadow { fill: var(--badge-shadow); stroke: var(--badge-shadow); stroke-width: 12; stroke-linejoin: round; opacity: .32; }
.about-local-drawing .badge-edge { fill: var(--badge-edge); stroke: var(--badge-edge); stroke-width: 7; stroke-linejoin: round; }
.about-local-drawing .badge-face { fill: var(--badge-face); stroke: var(--badge-rim); stroke-width: 5; stroke-linejoin: round; paint-order: stroke fill; }
.about-local-drawing .badge-face .mark-accent { fill: var(--accent); stroke: var(--accent); }

@media (prefers-reduced-motion: no-preference) {
  .about-motion-visible .about-local-drawing .current { animation: about-local-flow 4s linear; }
  .about-motion-visible .about-local-drawing .return { animation-duration: 4.7s; }
  .about-motion-visible .about-local-drawing .compute { animation: about-local-compute 2.2s ease-in-out 2; }
}

@keyframes about-local-flow { to { stroke-dashoffset: -88; } }
@keyframes about-local-compute { 50% { opacity: .48; } }
