:root {
      --paper: #ecece7;
      --paper-2: #e4e4de;
      --ink: #171816;
      --muted: #65685f;
      --line: rgba(23, 24, 22, .19);
      --line-strong: rgba(23, 24, 22, .52);
      --panel: rgba(255, 255, 255, .24);
      --green: #315f47;
      --green-soft: rgba(49, 95, 71, .12);
      --max: 1180px;
      --ease: cubic-bezier(.2, .75, .25, 1);
      --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
      --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
      --grid-line: rgba(23, 24, 22, .025);
      --header-bg: rgba(236, 236, 231, .86);
      --body-copy: #343631;
      --card-hover: rgba(255, 255, 255, .28);
      --portrait-label-text: rgba(236, 236, 231, .82);
      --portrait-label-bg: rgba(23, 24, 22, .72);
      color-scheme: light;
    }

    html[data-theme="dark"] {
      --paper: #111310;
      --paper-2: #191b17;
      --ink: #ecece5;
      --muted: #a7aa9f;
      --line: rgba(236, 236, 229, .16);
      --line-strong: rgba(236, 236, 229, .46);
      --panel: rgba(255, 255, 255, .05);
      --green: #74bd8f;
      --green-soft: rgba(116, 189, 143, .14);
      --grid-line: rgba(236, 236, 229, .035);
      --header-bg: rgba(17, 19, 16, .88);
      --body-copy: #d0d2c9;
      --card-hover: rgba(255, 255, 255, .055);
      --portrait-label-text: rgba(236, 236, 229, .88);
      --portrait-label-bg: rgba(8, 9, 8, .76);
      color-scheme: dark;
    }

    * { box-sizing: border-box; }

    html {
      scroll-behavior: smooth;
      scroll-padding-top: 90px;
    }

    body {
      margin: 0;
      color: var(--ink);
      background:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
        var(--paper);
      background-size: 32px 32px;
      font-family: var(--sans);
      font-size: 16px;
      line-height: 1.55;
      text-rendering: optimizeLegibility;
      transition: background-color .28s ease, color .28s ease;
    }

    html[data-theme="dark"] .portrait img {
      filter: grayscale(100%) contrast(1.05) brightness(.82);
    }

    @media (prefers-reduced-motion: no-preference) {
      .site-header,
      .history-card,
      .project-card,
      .capability-card,
      .about-panel,
      .contact-panel,
      .principles,
      .quote-strip,
      footer {
        transition: background-color .28s ease, border-color .28s ease, color .28s ease;
      }
    }

    body::before {
      content: "";
      position: fixed;
      inset: 0;
      z-index: 30;
      pointer-events: none;
      opacity: .18;
      background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.11'/%3E%3C/svg%3E");
      mix-blend-mode: multiply;
    }

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

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

    button {
      color: inherit;
      font: inherit;
    }

    img {
      max-width: 100%;
    }

    h1, h2, h3, p, dl, dd {
      margin-top: 0;
    }

    .wrap {
      width: min(calc(100% - 40px), var(--max));
      margin-inline: auto;
    }

    .rule {
      border-top: 1px solid var(--line);
    }

    .skip {
      position: fixed;
      left: 12px;
      top: 12px;
      z-index: 100;
      transform: translateY(-160%);
      background: var(--ink);
      color: var(--paper);
      padding: 10px 12px;
      font: 11px/1 var(--mono);
    }

    .skip:focus {
      transform: none;
    }

    .site-header {
      position: sticky;
      top: 0;
      z-index: 20;
      backdrop-filter: blur(12px);
      background: var(--header-bg);
      border-bottom: 1px solid var(--line);
    }

    .nav {
      min-height: 68px;
      display: grid;
      grid-template-columns: auto 1fr auto;
      align-items: center;
      gap: 28px;
    }

    .brand {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      font-weight: 760;
      letter-spacing: -.025em;
    }

    .brand-mark {
      width: 26px;
      height: 26px;
      border: 1px solid var(--ink);
      display: grid;
      place-items: center;
      font: 11px/1 var(--mono);
      transform: rotate(-2deg);
    }

    .nav-links {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 20px;
    }

    .nav a {
      position: relative;
      padding: 8px 0;
      font: 12px/1.2 var(--mono);
    }

    .nav-links a::after {
      content: "";
      position: absolute;
      left: 0;
      bottom: 3px;
      width: 100%;
      height: 1px;
      background: currentColor;
      transform: scaleX(0);
      transform-origin: right;
      transition: transform .25s var(--ease);
    }

    .nav-links a:hover::after,
    .nav-links a:focus-visible::after {
      transform: scaleX(1);
      transform-origin: left;
    }

    .nav-status {
      border: 1px solid var(--line-strong);
      padding: 8px 11px !important;
      white-space: nowrap;
      transition: background .2s ease, color .2s ease;
    }

    .nav-status:hover,
    .nav-status:focus-visible {
      background: var(--ink);
      color: var(--paper);
    }

    .nav-actions {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 12px;
    }

    .theme-toggle {
      min-width: 66px;
      height: 34px;
      padding: 0 7px;
      border: 1px solid var(--line-strong);
      background: transparent;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 5px;
      cursor: pointer;
      font-family: var(--mono);
      transition: background .2s ease, border-color .2s ease;
    }

    .theme-toggle:hover,
    .theme-toggle:focus-visible {
      border-color: var(--ink);
      background: var(--panel);
    }

    .theme-toggle:focus-visible {
      outline: 2px solid var(--ink);
      outline-offset: 3px;
    }

    .theme-toggle-icon {
      width: 11px;
      color: var(--muted);
      font-size: 12px;
      line-height: 1;
      text-align: center;
      transition: color .2s ease, opacity .2s ease;
    }

    .theme-toggle-track {
      width: 25px;
      height: 13px;
      padding: 2px;
      border: 1px solid var(--line-strong);
      display: flex;
      align-items: center;
      background: var(--paper-2);
    }

    .theme-toggle-knob {
      width: 7px;
      height: 7px;
      display: block;
      background: var(--ink);
      transform: translateX(0);
      transition: transform .24s var(--ease), background .2s ease;
    }

    html[data-theme="dark"] .theme-toggle-knob {
      transform: translateX(12px);
    }

    html[data-theme="dark"] .theme-toggle-moon,
    html:not([data-theme="dark"]) .theme-toggle-sun {
      color: var(--ink);
    }

    html[data-theme="dark"] .theme-toggle-sun,
    html:not([data-theme="dark"]) .theme-toggle-moon {
      opacity: .48;
    }

    .hero {
      padding: clamp(56px, 8vw, 104px) 0 48px;
      display: grid;
      grid-template-columns: minmax(280px, 390px) minmax(0, 1fr);
      gap: clamp(42px, 7vw, 96px);
      align-items: center;
    }

    .portrait-wrap {
      width: 100%;
      max-width: 390px;
    }

    .portrait {
      width: 100%;
      aspect-ratio: 1;
      overflow: hidden;
      position: relative;
      border: 1px solid var(--line-strong);
      background: var(--paper-2);
    }

    .portrait img {
      width: 100%;
      height: 100%;
      display: block;
      object-fit: cover;
      object-position: center 25%;
      filter: grayscale(100%) contrast(1.04);
    }

    .hero-copy {
      min-height: min(390px, 34vw);
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

    .portrait::after {
      content: "LARS JANSEN / NZ";
      position: absolute;
      right: 9px;
      bottom: 9px;
      padding: 5px 4px;
      color: var(--portrait-label-text);
      background: var(--portrait-label-bg);
      font: 9px/1 var(--mono);
      letter-spacing: .07em;
      writing-mode: vertical-rl;
    }

    .status-line {
      margin-top: 14px;
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 9px;
      color: var(--muted);
      font: 11px/1.5 var(--mono);
      text-transform: uppercase;
      letter-spacing: .04em;
    }

    .status-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: #2f9b57;
      box-shadow: 0 0 0 4px rgba(47, 155, 87, .14);
      animation: status-pulse 1.45s ease-in-out infinite;
    }

    @keyframes status-pulse {
      0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 4px rgba(47, 155, 87, .14), 0 0 0 rgba(47, 155, 87, 0);
      }
      50% {
        opacity: .42;
        box-shadow: 0 0 0 7px rgba(47, 155, 87, .08), 0 0 15px rgba(47, 155, 87, .55);
      }
    }

    .eyebrow {
      margin: 0 0 12px;
      color: var(--muted);
      font: 11px/1.2 var(--mono);
      letter-spacing: .08em;
      text-transform: uppercase;
    }

    h1 {
      margin-bottom: 25px;
      font-size: clamp(61px, 9.4vw, 126px);
      line-height: .83;
      letter-spacing: -.075em;
      font-weight: 790;
    }

    .lede {
      max-width: 780px;
      margin-bottom: 31px;
      font-size: clamp(20px, 2.05vw, 30px);
      line-height: 1.25;
      letter-spacing: -.026em;
    }

    .hero-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 22px;
    }

    .text-link {
      display: inline-flex;
      align-items: center;
      gap: 9px;
      border-bottom: 1px solid var(--line-strong);
      padding-bottom: 3px;
      font: 12px/1.4 var(--mono);
      transition: gap .2s var(--ease), border-color .2s ease;
    }

    .text-link:hover,
    .text-link:focus-visible {
      gap: 15px;
      border-color: var(--ink);
    }

    .principles {
      border-top: 1px solid var(--line-strong);
      border-bottom: 1px solid var(--line-strong);
      display: grid;
      grid-template-columns: repeat(4, 1fr);
    }

    .principle-metric {
      min-height: 150px;
      padding: 23px 22px 20px;
      border-right: 1px solid var(--line);
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }

    .principle-metric:last-child {
      border-right: 0;
    }

    .principle-number {
      font-size: clamp(40px, 5vw, 70px);
      line-height: 1;
      letter-spacing: -.055em;
      font-variant-numeric: tabular-nums;
    }

    .principle-label {
      color: var(--muted);
      font: 11px/1.35 var(--mono);
      text-transform: uppercase;
    }

    section {
      padding: clamp(74px, 10vw, 132px) 0;
    }

    .section-grid {
      display: grid;
      grid-template-columns: minmax(180px, .58fr) minmax(0, 1.7fr);
      gap: clamp(42px, 8vw, 118px);
    }

    .section-copy h2 {
      max-width: 880px;
      margin-bottom: 23px;
      font-size: clamp(43px, 6.3vw, 86px);
      line-height: .95;
      letter-spacing: -.056em;
    }

    .section-copy > p:not(.eyebrow) {
      max-width: 760px;
      color: var(--body-copy);
      font-size: clamp(17px, 1.55vw, 21px);
    }

    .about-panel {
      margin-top: 48px;
      border-top: 1px solid var(--line-strong);
      border-bottom: 1px solid var(--line-strong);
      display: grid;
      grid-template-columns: 1.2fr .8fr;
    }

    .about-copy {
      padding: 30px 38px 34px 0;
      border-right: 1px solid var(--line);
    }

    .about-copy .lead {
      margin-bottom: 22px;
      font-size: clamp(24px, 2.8vw, 39px);
      line-height: 1.13;
      letter-spacing: -.04em;
    }

    .about-copy p:last-child {
      max-width: 680px;
      margin-bottom: 0;
      color: var(--muted);
      font-size: 17px;
    }

    .spec-table {
      margin: 0;
    }

    .spec-row {
      display: grid;
      grid-template-columns: minmax(90px, .62fr) 1fr;
      gap: 20px;
      padding: 18px 0 18px 28px;
      border-bottom: 1px solid var(--line);
      font: 11px/1.45 var(--mono);
      text-transform: uppercase;
    }

    .spec-row:last-child {
      border-bottom: 0;
    }

    .spec-row dt {
      color: var(--muted);
    }

    .spec-row dd {
      margin: 0;
      overflow-wrap: anywhere;
    }

    .history-grid,
    .project-grid,
    .capability-grid {
      margin-top: 52px;
      display: grid;
      border-top: 1px solid var(--line-strong);
      border-left: 1px solid var(--line);
    }

    .history-grid,
    .capability-grid {
      grid-template-columns: repeat(2, 1fr);
    }

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

    .project-card[aria-disabled="true"] {
      cursor: default;
    }

    .project-card[aria-disabled="true"]:hover {
      transform: none;
    }

    .history-card,
    .project-card,
    .capability-card {
      min-height: 276px;
      padding: 28px;
      border-right: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      transition: background .25s ease, transform .25s var(--ease);
    }

    .history-card:hover,
    .project-card:hover,
    .capability-card:hover {
      background: var(--card-hover);
    }

    .project-card:hover {
      transform: translateY(-3px);
    }

    .card-top {
      display: flex;
      justify-content: space-between;
      gap: 18px;
      color: var(--muted);
      font: 10px/1.35 var(--mono);
      letter-spacing: .04em;
      text-transform: uppercase;
    }

    .history-card h3,
    .project-card h3,
    .capability-card h3 {
      margin: 42px 0 13px;
      font-size: clamp(25px, 2.7vw, 38px);
      line-height: 1.04;
      letter-spacing: -.044em;
    }

    .history-card p,
    .project-card p,
    .capability-card p {
      margin-bottom: 0;
      color: var(--muted);
    }

    .project-meta {
      margin-top: 28px;
      font: 10px/1.45 var(--mono);
      text-transform: uppercase;
    }

    .questions {
      margin-top: 52px;
      border-top: 1px solid var(--line-strong);
    }

    .question {
      display: grid;
      grid-template-columns: 72px minmax(0, 1fr) auto;
      gap: 28px;
      align-items: baseline;
      padding: 23px 0;
      border-bottom: 1px solid var(--line);
    }

    .question b,
    .question span {
      color: var(--muted);
      font: 11px/1.35 var(--mono);
    }

    .question h3 {
      margin: 0;
      font-size: clamp(19px, 2.15vw, 29px);
      font-weight: 580;
      letter-spacing: -.028em;
    }

    .question:hover h3,
    .question:focus-visible h3 {
      text-decoration: underline;
      text-decoration-thickness: 1px;
      text-underline-offset: 5px;
    }

    .question:focus-visible {
      outline: 2px solid var(--ink);
      outline-offset: 6px;
    }

    .quote-strip {
      padding: 48px 0;
      border-top: 1px solid var(--line-strong);
      border-bottom: 1px solid var(--line-strong);
      overflow: hidden;
    }

    .marquee {
      display: flex;
      width: max-content;
      animation: drift 30s linear infinite;
      font-size: clamp(31px, 5vw, 68px);
      line-height: 1;
      letter-spacing: -.046em;
    }

    .marquee span {
      padding-right: 90px;
    }

    @keyframes drift {
      to { transform: translateX(-50%); }
    }

    .contact-panel {
      margin-top: 50px;
      border-top: 1px solid var(--line-strong);
      border-bottom: 1px solid var(--line-strong);
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 50px;
      align-items: center;
      padding: 34px 0;
    }

    .contact-panel p {
      max-width: 720px;
      margin-bottom: 21px;
      color: var(--muted);
      font-size: 17px;
    }

    .socials {
      display: flex;
      flex-wrap: wrap;
      gap: 20px;
    }

    .socials a {
      border-bottom: 1px solid var(--line);
      padding-bottom: 2px;
      font: 11px/1.4 var(--mono);
    }

    .socials a:hover,
    .socials a:focus-visible {
      border-color: var(--ink);
    }

    .contact-actions {
      min-width: 235px;
      display: grid;
      gap: 11px;
    }

    .button {
      border: 1px solid var(--line-strong);
      background: transparent;
      padding: 12px 14px;
      cursor: pointer;
      text-align: center;
      font: 11px/1.25 var(--mono);
      transition: background .2s ease, color .2s ease;
    }

    .button:hover,
    .button:focus-visible {
      background: var(--ink);
      color: var(--paper);
    }

    .copy-status {
      min-height: 15px;
      color: var(--green);
      text-align: center;
      font: 10px/1.3 var(--mono);
    }

    footer {
      padding: 54px 0 29px;
    }

    .footer-grid {
      display: grid;
      grid-template-columns: 1.15fr repeat(3, .55fr);
      gap: 54px;
    }

    .footer-intro p {
      max-width: 430px;
      color: var(--muted);
    }

    .footer-col h3 {
      margin-bottom: 18px;
      color: var(--muted);
      font: 11px/1 var(--mono);
      text-transform: uppercase;
    }

    .footer-col a {
      display: block;
      width: fit-content;
      margin: 9px 0;
      font-size: 14px;
    }

    .footer-col a:hover,
    .footer-col a:focus-visible {
      text-decoration: underline;
      text-underline-offset: 4px;
    }

    .footer-bottom {
      margin-top: 62px;
      padding-top: 18px;
      border-top: 1px solid var(--line);
      display: flex;
      justify-content: space-between;
      gap: 20px;
      color: var(--muted);
      font: 10px/1.45 var(--mono);
      text-transform: uppercase;
    }

    .reveal {
      opacity: 0;
      transform: translateY(18px);
      transition: opacity .7s var(--ease), transform .7s var(--ease);
    }

    .reveal.visible {
      opacity: 1;
      transform: none;
    }

    .toast {
      position: fixed;
      right: 20px;
      bottom: 20px;
      z-index: 40;
      border: 1px solid var(--line-strong);
      background: var(--ink);
      color: var(--paper);
      padding: 12px 14px;
      font: 11px/1.2 var(--mono);
      transform: translateY(20px);
      opacity: 0;
      pointer-events: none;
      transition: .25s var(--ease);
    }

    .toast.show {
      opacity: 1;
      transform: none;
    }

    @media (max-width: 960px) {
      .project-grid {
        grid-template-columns: 1fr;
      }

      .project-card {
        min-height: 250px;
      }
    }

    @media (max-width: 820px) {
      .nav {
        grid-template-columns: 1fr auto;
      }

      .nav-links {
        display: none;
      }

      .hero,
      .section-grid {
        grid-template-columns: 1fr;
      }

      .hero {
        align-items: start;
      }

      .portrait-wrap {
        max-width: 320px;
      }

      .hero-copy {
        min-height: 0;
      }

      .principles {
        grid-template-columns: repeat(2, 1fr);
      }

      .principle-metric:nth-child(2) {
        border-right: 0;
      }

      .principle-metric:nth-child(-n+2) {
        border-bottom: 1px solid var(--line);
      }

      .about-panel,
      .contact-panel {
        grid-template-columns: 1fr;
      }

      .about-copy {
        padding-right: 0;
        border-right: 0;
        border-bottom: 1px solid var(--line);
      }

      .spec-row {
        padding-left: 0;
      }

      .history-grid,
      .capability-grid {
        grid-template-columns: 1fr;
      }

      .contact-actions {
        min-width: 0;
        max-width: 360px;
      }

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

    @media (max-width: 560px) {
      .wrap {
        width: min(calc(100% - 24px), var(--max));
      }

      .nav-status {
        display: none;
      }

      .nav-actions {
        gap: 0;
      }

      .theme-toggle {
        min-width: 62px;
      }

      h1 {
        font-size: clamp(58px, 22vw, 91px);
      }

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

      .principle-metric {
        border-right: 0;
        border-bottom: 1px solid var(--line);
      }

      .principle-metric:last-child {
        border-bottom: 0;
      }

      .history-grid,
      .project-grid,
      .capability-grid {
        border-left: 0;
      }

      .history-card,
      .project-card,
      .capability-card {
        border-left: 1px solid var(--line);
      }

      .question {
        grid-template-columns: 55px minmax(0, 1fr);
        gap: 14px;
      }

      .question span {
        display: none;
      }

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

      .footer-bottom {
        flex-direction: column;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }

      *,
      *::before,
      *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
      }

      .reveal {
        opacity: 1;
        transform: none;
      }
    }
