/*
 * Marcin Cuber — portfolio visual system
 * No framework, no remote fonts, no render-blocking third-party assets.
 */

:root {
  color-scheme: light;
  /* Keep these identity colours aligned with portfolio_site/brand.py. */
  --cube-void: #061426;
  --brand-accent: #b9f36a;
  --cube-top: #9bd7ff;
  --cube-left: #39bce8;
  --cube-right: #2563eb;
  --cube-line: rgb(6 20 38 / 22%);
  --cube-glow: rgb(37 99 235 / 24%);
  --cube-text: #f7fbff;
  --cube-facet: conic-gradient(
    from 30deg,
    var(--cube-top) 0 33.333%,
    var(--cube-left) 0 66.666%,
    var(--cube-right) 0
  );
  --cube-shape: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  --ink: #09110f;
  --ink-soft: #26312d;
  --night: var(--cube-void);
  --night-2: #0c1b29;
  --night-3: #112638;
  --paper: #f1f2ec;
  --paper-warm: #e8e9e1;
  --surface: #fbfcf7;
  --line: #ccd0c7;
  --line-dark: rgb(213 236 255 / 16%);
  --muted: #606a65;
  --muted-dark: #9eaaa5;
  --lime: var(--brand-accent);
  --lime-strong: #9bdd45;
  --cyan: var(--cube-left);
  --violet: #af9cff;
  --orange: #ffb36c;
  --rose: #ff8d9d;
  --blue: #7eb7ff;
  --white: var(--cube-text);
  --shadow: 0 24px 80px rgb(4 14 25 / 11%);
  --radius-sm: 0.55rem;
  --radius: 0.85rem;
  --radius-lg: 1.15rem;
  --max-width: 78rem;
  --gutter: clamp(1.25rem, 4vw, 3.25rem);
  --section-space: clamp(5rem, 10vw, 8.5rem);
  --font-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
}

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

body,
button,
a {
  -webkit-tap-highlight-color: transparent;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

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

h1,
h2,
h3 {
  font-weight: 650;
  line-height: 1.06;
  letter-spacing: -0.04em;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

::selection {
  background: var(--lime);
  color: var(--night);
}

:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 4px;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 1rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.4rem;
  background: var(--lime);
  color: var(--night);
  font-weight: 700;
  transform: translateY(-200%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.section-shell {
  width: min(100% - (var(--gutter) * 2), var(--max-width));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-space);
}

.eyebrow,
.terminal-label,
.project-topline,
.timeline-period,
.article-meta,
.hero-role {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow {
  margin-bottom: 1.35rem;
  color: #466458;
}

:is(
    .section-heading .eyebrow,
    .impact-heading > .eyebrow,
    .journey-sticky > .eyebrow,
    .contact-layout > div > .eyebrow
  ) {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

:is(
    .section-heading .eyebrow,
    .impact-heading > .eyebrow,
    .journey-sticky > .eyebrow,
    .contact-layout > div > .eyebrow
  )::before {
  width: 0.62rem;
  height: 0.7rem;
  background: var(--cube-facet);
  clip-path: var(--cube-shape);
  content: "";
  flex: 0 0 auto;
}

.section-heading {
  max-width: 53rem;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.section-heading h2,
.impact-heading h2,
.journey-sticky h2,
.contact-layout h2 {
  margin-bottom: 1.15rem;
  font-size: clamp(2.05rem, 4.3vw, 4rem);
}

.section-heading > p:last-child,
.section-heading--split > p,
.impact-heading > p:last-child,
.journey-sticky > p,
.contact-layout > div > p {
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.7;
}

.section-heading--split {
  display: grid;
  max-width: none;
  grid-template-columns: minmax(0, 1.4fr) minmax(18rem, 0.6fr);
  gap: clamp(2rem, 8vw, 7rem);
  align-items: end;
}

.section-heading--split h2 {
  margin-bottom: 0;
}

.section-heading--split > p {
  margin-bottom: 0.4rem;
}

.button {
  display: inline-flex;
  min-height: 3.25rem;
  padding: 0.85rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease,
    transform 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  background: var(--lime);
  color: var(--night);
}

.button--primary:hover {
  background: #ceff8e;
}

.button--ghost {
  border-color: rgb(255 255 255 / 24%);
  color: var(--white);
}

.button--ghost:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.button--dark {
  background: var(--night);
  color: var(--white);
}

.button--dark:hover {
  background: #193129;
}

.button--large {
  min-height: 4rem;
  padding-inline: 1.65rem;
  white-space: nowrap;
}

.text-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 750;
  text-decoration: none;
}

.text-link::after {
  position: absolute;
  bottom: -0.12rem;
  left: 0;
  width: 0;
  height: 1px;
  background: currentcolor;
  content: "";
  transition: width 180ms ease;
}

.text-link:hover {
  color: #416e5b;
}

.text-link:hover::after {
  width: 100%;
}

.text-link--large {
  font-size: 1.05rem;
}

.icon {
  width: 1.1rem;
  height: 1.1rem;
  fill: currentcolor;
}

/* Scroll progress */
.scroll-progress {
  display: none;
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: rgb(255 255 255 / 8%);
  pointer-events: none;
}

.js .scroll-progress {
  display: block;
}

.scroll-progress::after {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--cube-top), var(--cube-left), var(--cube-right));
  content: "";
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: left;
}

/* Section quick-navigation rail */
.section-rail {
  display: none;
  position: fixed;
  z-index: 15;
  top: 50%;
  right: clamp(0.45rem, 1vw, 1.25rem);
  padding: 0.55rem 0.25rem;
  border: 1px solid rgb(213 236 255 / 18%);
  border-radius: 999px;
  background: rgb(6 20 38 / 82%);
  box-shadow: 0 10px 28px rgb(0 0 0 / 22%);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transform: translateY(-50%);
}

.section-rail ul {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  list-style: none;
}

.section-rail a {
  display: flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
}

.section-rail__tick {
  width: 0.72rem;
  height: 0.72rem;
  opacity: 0.52;
  filter: saturate(0.75);
  transition: filter 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.section-rail__top {
  fill: var(--cube-top);
}

.section-rail__left {
  fill: var(--cube-left);
}

.section-rail__right {
  fill: var(--cube-right);
}

.section-rail a:hover .section-rail__tick,
.section-rail a:focus-visible .section-rail__tick,
.section-rail a.is-active .section-rail__tick {
  opacity: 1;
  filter: saturate(1.1) drop-shadow(0 0.2rem 0.32rem rgb(57 188 232 / 42%));
  transform: scale(1.45);
}

@media (min-width: 64rem) {
  .section-rail {
    display: block;
  }
}

/* Header */
.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid rgb(255 255 255 / 11%);
  color: var(--white);
}

.header-inner {
  display: flex;
  width: min(100% - (var(--gutter) * 2), var(--max-width));
  min-height: 5.5rem;
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.brand-mark {
  display: block;
  flex: 0 0 auto;
  width: 2.45rem;
  height: 2.45rem;
  filter: drop-shadow(0 0.45rem 0.8rem rgb(0 0 0 / 18%));
  transform-origin: 50% 58%;
  transition: filter 180ms ease, transform 180ms ease;
}

.brand:is(:hover, :focus-visible) .brand-mark {
  filter: drop-shadow(0 0.6rem 1rem var(--cube-glow));
  transform: translateY(-0.08rem);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.brand-copy strong {
  font-size: 0.88rem;
  letter-spacing: 0.01em;
}

.brand-copy span {
  color: var(--muted-dark);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-controls {
  display: flex;
  margin-left: auto;
  align-items: center;
  gap: clamp(0.55rem, 1.2vw, 1rem);
}

.header-journey-link {
  display: inline-flex;
  min-height: 44px;
  padding: 0.62rem 0.9rem;
  border: 1px solid rgb(126 165 255 / 58%);
  border-radius: 999px;
  background: linear-gradient(135deg, rgb(37 99 235 / 88%), rgb(23 78 166 / 94%));
  box-shadow: 0 8px 20px rgb(0 0 0 / 18%);
  color: #fff;
  align-items: center;
  gap: 0.35rem;
  flex: 0 0 auto;
  font-size: 0.72rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.header-journey-link:hover {
  border-color: #a8c0ff;
  box-shadow: 0 11px 26px rgb(37 99 235 / 32%);
  color: #fff;
  transform: translateY(-1px);
}

.theme-toggle {
  position: relative;
  display: none;
  min-width: 44px;
  width: 2.75rem;
  min-height: 44px;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 50%;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  flex: 0 0 2.75rem;
  line-height: 0;
  place-items: center;
  touch-action: manipulation;
  transition: border-color 160ms ease, color 160ms ease;
}

.js .theme-toggle {
  display: grid;
}

.theme-toggle:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.theme-icon {
  position: absolute;
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentcolor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  transition: opacity 180ms ease, transform 180ms ease;
}

.theme-icon--moon {
  fill: currentcolor;
  stroke: none;
}

.theme-icon--sun {
  opacity: 0;
  transform: rotate(-45deg) scale(0.65);
}

html[data-theme="dark"] .theme-icon--moon {
  opacity: 0;
  transform: rotate(45deg) scale(0.65);
}

html[data-theme="dark"] .theme-icon--sun {
  opacity: 1;
  transform: rotate(0) scale(1);
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.5vw, 1.3rem);
  list-style: none;
}

.site-nav a {
  color: #c2cbc7;
  font-size: 0.82rem;
  font-weight: 650;
  text-decoration: none;
  transition: color 160ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--white);
}

.site-nav .nav-cv {
  padding: 0.62rem 1rem;
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 999px;
}

.site-nav .nav-cv:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.site-nav .nav-external-item {
  margin-left: 0.15rem;
  padding-left: clamp(0.8rem, 1.5vw, 1.25rem);
  border-left: 1px solid rgb(255 255 255 / 16%);
}

.site-nav .nav-native-cube {
  display: inline-flex;
  color: #dbe5ff;
  align-items: center;
  gap: 0.3rem;
}

.site-nav .nav-native-cube > span {
  color: #8cafff;
  font-size: 0.7rem;
}

.site-nav .nav-native-cube:hover {
  color: #fff;
}

.nav-toggle {
  position: relative;
  display: none;
  min-width: 44px;
  width: 2.75rem;
  min-height: 44px;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 50%;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  flex: 0 0 2.75rem;
  line-height: 0;
  place-items: center;
  touch-action: manipulation;
}

.nav-toggle > span:not(.sr-only) {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1rem;
  height: 2px;
  border-radius: 999px;
  background: currentcolor;
  transform-origin: center;
  transition: transform 160ms ease;
}

.nav-toggle > span:nth-last-child(2) {
  transform: translate(-50%, -50%) translateY(-3px);
}

.nav-toggle > span:last-child {
  transform: translate(-50%, -50%) translateY(3px);
}

.nav-toggle[aria-expanded="true"] > span:nth-last-child(2) {
  transform: translate(-50%, -50%) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] > span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* Hero */
.hero-shell {
  position: relative;
  overflow: hidden;
  background: var(--night);
  color: var(--white);
  isolation: isolate;
}

.hero-shell::before {
  position: absolute;
  z-index: -2;
  width: 34rem;
  height: 39rem;
  background: conic-gradient(
    from 30deg at 50% 50%,
    color-mix(in srgb, var(--cube-top) 13%, transparent) 0 33.333%,
    color-mix(in srgb, var(--cube-left) 8%, transparent) 0 66.666%,
    color-mix(in srgb, var(--cube-right) 11%, transparent) 0
  );
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  content: "";
  opacity: 0.42;
  right: -11rem;
  top: -13rem;
  transform: rotate(-8deg);
}

.hero-shell::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: linear-gradient(
      30deg,
      transparent 49.55%,
      rgb(255 255 255 / 3.5%) 50%,
      transparent 50.45%
    ),
    linear-gradient(
      150deg,
      transparent 49.55%,
      rgb(255 255 255 / 3.5%) 50%,
      transparent 50.45%
    ),
    linear-gradient(
      90deg,
      transparent 49.55%,
      rgb(255 255 255 / 2.5%) 50%,
      transparent 50.45%
    );
  background-size: 4rem 6.928rem;
  content: "";
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 88%);
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.hero {
  display: grid;
  min-height: min(52rem, calc(100svh - 5.5rem));
  padding-block: clamp(4.5rem, 9vw, 8rem);
  grid-template-areas: "console copy";
  grid-template-columns: minmax(24rem, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(2.75rem, 5vw, 5rem);
  align-items: center;
}

.hero-copy {
  min-width: 0;
  grid-area: copy;
}

.terminal-label {
  margin-bottom: 1.15rem;
  color: var(--lime);
  letter-spacing: 0.03em;
  text-transform: lowercase;
}

.terminal-label span {
  margin-right: 0.55rem;
  color: var(--cyan);
}

.hero-role {
  max-width: 42rem;
  margin-bottom: 1.25rem;
  color: #c3cec8;
  letter-spacing: 0.1em;
}

.hero h1 {
  max-width: 15ch;
  margin-bottom: 1.75rem;
  font-size: clamp(3.1rem, 5.6vw, 5.75rem);
  letter-spacing: -0.06em;
}

.hero-intro {
  max-width: 42rem;
  margin-bottom: 2.2rem;
  color: #aab7b1;
  font-size: clamp(1.06rem, 1.6vw, 1.23rem);
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.profile-console {
  position: relative;
  min-width: 0;
  border: 1px solid rgb(255 255 255 / 15%);
  border-radius: var(--radius-lg);
  background: rgb(9 25 20 / 88%);
  box-shadow: 0 34px 90px rgb(0 0 0 / 28%);
  overflow: hidden;
  grid-area: console;
  transform: rotate(1.2deg);
  backdrop-filter: blur(12px);
}

.profile-console::before {
  position: absolute;
  z-index: 3;
  width: 0.32rem;
  background: linear-gradient(
    to bottom,
    var(--cube-top) 0 33.333%,
    var(--cube-left) 0 66.666%,
    var(--cube-right) 0
  );
  clip-path: polygon(100% 0, 100% 100%, 0 calc(100% - 0.45rem), 0 0.45rem);
  content: "";
  inset: 3rem 0 0 auto;
  opacity: 0.82;
  pointer-events: none;
}

.profile-console::after {
  position: absolute;
  z-index: 0;
  width: 10rem;
  height: 11.5rem;
  background: conic-gradient(
    from 30deg,
    color-mix(in srgb, var(--cube-top) 8%, transparent) 0 33.333%,
    color-mix(in srgb, var(--cube-left) 6%, transparent) 0 66.666%,
    color-mix(in srgb, var(--cube-right) 8%, transparent) 0
  );
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  content: "";
  opacity: 0.34;
  right: -3.8rem;
  top: 6.5rem;
  transform: rotate(-7deg);
  pointer-events: none;
}

.profile-console > * {
  position: relative;
  z-index: 1;
}

.console-bar {
  display: flex;
  min-height: 3rem;
  padding-inline: 1rem;
  border-bottom: 1px solid var(--line-dark);
  align-items: center;
  gap: 0.4rem;
}

.console-bar > span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #fb7d74;
}

.console-bar > span:nth-child(2) {
  background: #f6ca63;
}

.console-bar > span:nth-child(3) {
  background: #6dd27d;
}

.console-bar code {
  display: inline-flex;
  margin-left: auto;
  color: #82928b;
  align-items: center;
  gap: 0.42rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
}

.console-bar code::before {
  width: 0.5rem;
  height: 0.56rem;
  background: var(--cube-facet);
  clip-path: var(--cube-shape);
  content: "";
  flex: 0 0 auto;
  opacity: 0.85;
}

.console-profile {
  display: grid;
  padding: 1.75rem 1.6rem;
  grid-template-columns: 7.25rem 1fr;
  gap: 1.45rem;
  align-items: center;
}

.profile-photo-trigger {
  position: relative;
  z-index: 1;
  display: block;
  width: 7.25rem;
  height: 7.25rem;
  border-radius: 1.5rem;
  text-decoration: none;
  transform-origin: center;
  transition: transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.profile-photo-trigger > img {
  display: block;
  width: 7.25rem;
  height: 7.25rem;
  border: 2px solid rgb(185 243 106 / 55%);
  border-radius: 1.5rem;
  background: var(--night-3);
  box-shadow: 0 14px 32px rgb(0 0 0 / 24%), 0 0 0 5px rgb(185 243 106 / 5%);
  object-fit: cover;
  object-position: center 42%;
  filter: saturate(0.94) contrast(1.03);
  transition: border-color 280ms ease, box-shadow 280ms ease, filter 280ms ease;
}

.profile-photo-action {
  position: absolute;
  right: 0.45rem;
  bottom: 0.45rem;
  display: grid;
  width: 1.9rem;
  height: 1.9rem;
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 0.65rem;
  background: rgb(7 17 15 / 78%);
  box-shadow: 0 6px 18px rgb(0 0 0 / 24%);
  color: #e9f2ed;
  place-items: center;
  backdrop-filter: blur(8px);
  transition: background 220ms ease, color 220ms ease, transform 220ms ease;
}

.profile-photo-action svg {
  width: 0.9rem;
  height: 0.9rem;
  fill: none;
  stroke: currentcolor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.profile-photo-trigger:focus-visible {
  transform: translateY(-0.2rem) scale(1.04);
}

@media (hover: hover) and (pointer: fine) {
  .profile-photo-trigger:hover {
    z-index: 3;
    transform: translateY(-0.42rem) scale(1.09) rotate(-0.6deg);
  }

  .profile-photo-trigger:hover > img {
    border-color: rgb(185 243 106 / 85%);
    box-shadow: 0 24px 48px rgb(0 0 0 / 34%), 0 0 0 7px rgb(185 243 106 / 8%);
    filter: saturate(1) contrast(1.04);
  }

  .profile-photo-trigger:hover .profile-photo-action {
    background: var(--lime);
    color: var(--night);
    transform: scale(1.08);
  }
}

.availability {
  display: inline-flex;
  margin-bottom: 0.75rem;
  border-radius: 0.2rem;
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 0.61rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  align-items: center;
  gap: 0.45rem;
  transition: color 160ms ease;
}

.availability:hover {
  color: var(--cube-top);
}

.availability__arrow {
  font-size: 0.72rem;
}

.availability i,
.project-status i {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: currentcolor;
  box-shadow: 0 0 0 4px rgb(185 243 106 / 12%);
}

.console-profile h2 {
  margin-bottom: 0.25rem;
  font-size: 1.35rem;
  letter-spacing: -0.025em;
}

.console-profile p {
  margin-bottom: 0;
  color: var(--muted-dark);
  font-size: 0.78rem;
  line-height: 1.5;
}

.yaml-list {
  padding: 0 1.6rem 1.4rem;
  font-family: var(--font-mono);
  font-size: clamp(0.68rem, 1.1vw, 0.78rem);
}

.yaml-list > div {
  display: grid;
  padding-block: 0.5rem;
  border-top: 1px dashed rgb(255 255 255 / 9%);
  grid-template-columns: 7rem 1fr;
  gap: 0.75rem;
}

.yaml-list dt {
  color: var(--cyan);
}

.yaml-list dd {
  margin-bottom: 0;
  color: #d8e2dd;
}

.yaml-list > .yaml-list__consulting {
  padding-block: 0.7rem;
  border-top-color: rgb(111 208 236 / 24%);
}

.consulting-availability {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.65rem;
  line-height: 1.45;
}

.console-link {
  display: flex;
  min-height: 3.75rem;
  padding-inline: 1.6rem;
  border-top: 1px solid var(--line-dark);
  background: rgb(255 255 255 / 3%);
  color: #c5d1cb;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-decoration: none;
}

.console-link--github {
  display: grid;
  min-height: 5rem;
  padding-block: 0.7rem;
  grid-template-columns: 3rem minmax(0, 1fr) auto;
  gap: 0.85rem;
}

.github-profile-avatar {
  width: 3rem;
  height: 3rem;
  border: 1px solid rgb(185 243 106 / 38%);
  border-radius: 0.85rem;
  background: var(--night-3);
  object-fit: cover;
}

.github-identity {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.28rem;
}

.github-identity__label {
  display: flex;
  color: #84958d;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.github-identity__label .icon {
  width: 0.85rem;
  height: 0.85rem;
  color: var(--lime);
}

.github-identity code {
  color: #d4dfd9;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  overflow-wrap: anywhere;
}

.github-identity__arrow {
  color: var(--lime);
  font-size: 0.8rem;
}

html.has-open-dialog {
  overflow: hidden;
}

.portrait-dialog {
  width: min(calc(100% - 2rem), 58rem);
  max-width: none;
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 0;
  border-radius: 1.5rem;
  background: transparent;
  color: var(--white);
  opacity: 0;
  overflow: visible;
  transform: translateY(0.8rem) scale(0.965);
  transition: opacity 220ms ease, transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.portrait-dialog.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.portrait-dialog::backdrop {
  background: rgb(2 8 14 / 84%);
  backdrop-filter: blur(16px) saturate(0.75);
}

.portrait-dialog__surface {
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 1.5rem;
  background: linear-gradient(145deg, var(--night-3), var(--night));
  box-shadow: 0 40px 120px rgb(0 0 0 / 55%);
}

.portrait-dialog__header {
  display: flex;
  min-height: 4.75rem;
  padding: 0.8rem 0.9rem 0.8rem 1.25rem;
  border-bottom: 1px solid var(--line-dark);
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.portrait-dialog__header .terminal-label {
  margin-bottom: 0.18rem;
  font-size: 0.55rem;
}

.portrait-dialog__header h2 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.portrait-dialog__close {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 0.85rem;
  background: rgb(255 255 255 / 5%);
  color: #dbe6e0;
  cursor: pointer;
  flex: 0 0 auto;
  place-items: center;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease,
    transform 180ms ease;
}

.portrait-dialog__close:hover {
  border-color: rgb(185 243 106 / 55%);
  background: rgb(185 243 106 / 10%);
  color: var(--lime);
  transform: rotate(3deg);
}

.portrait-dialog__close svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentcolor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.portrait-dialog__figure {
  margin: 0;
  padding: 0.65rem;
}

.portrait-dialog__figure img {
  display: block;
  width: 100%;
  max-height: calc(100dvh - 9rem);
  border-radius: 1.05rem;
  background: var(--night-3);
  object-fit: contain;
}

.portrait-dialog__figure figcaption {
  display: flex;
  padding: 0.75rem 0.45rem 0.2rem;
  color: #82938a;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.56rem;
}

.portrait-dialog__figure code {
  color: #bdc9c3;
  font-family: inherit;
}

.hero-metrics {
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

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

.metric {
  display: flex;
  min-width: 0;
  padding: 1.6rem 1.5rem;
  align-items: flex-start;
  gap: 0.9rem;
}

.metric + .metric {
  border-left: 1px solid var(--line-dark);
}

.metric > strong {
  display: inline-flex;
  color: var(--lime);
  align-items: center;
  gap: 0.24em;
  font-size: clamp(1.65rem, 3vw, 2.3rem);
  letter-spacing: -0.06em;
  line-height: 1;
}

.metric > strong::before {
  width: 0.2em;
  height: 0.23em;
  background: var(--cube-facet);
  clip-path: var(--cube-shape);
  content: "";
  flex: 0 0 auto;
}

.metric span {
  display: block;
  margin-bottom: 0.3rem;
  color: #d9e1dd;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
}

.metric p {
  margin-bottom: 0;
  color: #7f8d87;
  font-size: 0.67rem;
  line-height: 1.5;
}

/* Approach */
.section--approach {
  background: var(--paper);
}

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

.principle-card {
  min-height: 18rem;
  padding: 2rem clamp(1.5rem, 3vw, 2.5rem) 2.25rem;
}

.principle-card + .principle-card {
  border-left: 1px solid var(--line);
}

.principle-number {
  display: inline-grid;
  width: 2.35rem;
  height: 2.65rem;
  margin-bottom: clamp(3rem, 7vw, 5rem);
  background: conic-gradient(
    from 30deg,
    color-mix(in srgb, var(--cube-top) 62%, white) 0 33.333%,
    color-mix(in srgb, var(--cube-left) 62%, white) 0 66.666%,
    color-mix(in srgb, var(--cube-right) 62%, white) 0
  );
  clip-path: var(--cube-shape);
  color: var(--cube-void);
  filter: drop-shadow(0 0.35rem 0.65rem rgb(6 20 38 / 10%));
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 850;
  place-items: center;
}

.principle-card h3 {
  margin-bottom: 0.9rem;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
}

.principle-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

/* Cube-tick section break */
.cube-rule-shell {
  padding-block: clamp(1.5rem, 3vw, 2.5rem);
}

.cube-rule {
  position: relative;
  display: flex;
  height: 0.7rem;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}

.cube-rule::before {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
  background: var(--line);
  content: "";
  transform: translateY(-50%);
}

.cube-rule i {
  position: relative;
  width: 0.62rem;
  height: 0.7rem;
  background: var(--cube-facet);
  clip-path: var(--cube-shape);
  flex: 0 0 auto;
  filter: drop-shadow(0 0.15rem 0.25rem rgb(6 20 38 / 12%));
}

/* Projects */
.section--projects {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.organisation-grid {
  display: grid;
  margin-bottom: 1rem;
  gap: 1rem;
}

.organisation-card {
  position: relative;
  display: grid;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #10241d, #0a1511 65%);
  color: var(--white);
  grid-template-columns: minmax(17rem, 0.9fr) minmax(0, 1.1fr);
  overflow: hidden;
  isolation: isolate;
}

.organisation-card::before {
  position: absolute;
  z-index: -1;
  width: 29rem;
  height: 33rem;
  background: conic-gradient(
    from 30deg,
    color-mix(in srgb, var(--cube-top) 10%, transparent) 0 33.333%,
    color-mix(in srgb, var(--cube-left) 7%, transparent) 0 66.666%,
    color-mix(in srgb, var(--cube-right) 10%, transparent) 0
  );
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  content: "";
  left: -16rem;
  top: -19rem;
  transform: rotate(9deg);
}

.organisation-card__intro,
.organisation-card__catalogue {
  min-width: 0;
  padding: clamp(1.5rem, 3.4vw, 2.75rem);
}

.organisation-card .eyebrow {
  color: var(--lime);
}

.organisation-card__identity {
  display: flex;
  margin-bottom: 1.35rem;
  align-items: center;
  gap: 1rem;
}

.organisation-card__mark {
  display: grid;
  position: relative;
  width: 3.6rem;
  height: 3.6rem;
  border: 1px solid rgb(185 243 106 / 45%);
  border-radius: 0.72rem;
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--cube-top) 16%, var(--cube-void)) 0 48%,
    color-mix(in srgb, var(--cube-left) 11%, var(--cube-void)) 48% 72%,
    color-mix(in srgb, var(--cube-right) 16%, var(--cube-void)) 72%
  );
  box-shadow: 0.24rem 0.24rem 0 color-mix(in srgb, var(--cube-right) 17%, transparent);
  color: var(--lime);
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  place-items: center;
}

.organisation-card__logo {
  width: 2.55rem;
  height: 2.55rem;
  filter: drop-shadow(0 0.42rem 0.55rem rgb(37 99 235 / 24%));
}

.organisation-card h3 {
  margin-bottom: 0.18rem;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.055em;
}

.organisation-card__title-link {
  color: inherit;
  text-decoration-color: transparent;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.12em;
}

.organisation-card__title-link:hover {
  color: var(--lime);
  text-decoration-color: currentcolor;
}

.organisation-card__identity code {
  color: #8fa299;
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

.organisation-card__summary {
  max-width: 35rem;
  margin-bottom: 1.35rem;
  color: #c8d3cd;
  font-size: 0.9rem;
  line-height: 1.68;
}

.organisation-tools {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
}

.organisation-tools a {
  display: flex;
  min-height: 3.5rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #2a4036;
  border-radius: 0.55rem;
  background: rgb(255 255 255 / 2.5%);
  color: #d6dfda;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  font-size: 0.64rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.organisation-tools a:hover {
  border-color: rgb(185 243 106 / 50%);
  background: rgb(185 243 106 / 5%);
  color: var(--lime);
}

.organisation-signals {
  display: grid;
  margin-bottom: 1.45rem;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.organisation-signals > div {
  min-width: 0;
  padding: 0.9rem 0;
}

.organisation-signals > div + div {
  padding-left: 1rem;
  border-left: 1px solid var(--line-dark);
}

.organisation-signals dt {
  margin-bottom: 0.3rem;
  color: #81938a;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.organisation-signals dd {
  margin: 0;
  color: #d6dfda;
  font-size: 0.67rem;
  line-height: 1.45;
}

.organisation-signals strong {
  margin-right: 0.25rem;
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 1rem;
}

.organisation-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
}

.organisation-links a {
  display: inline-flex;
  min-height: 2.75rem;
  color: #eff6f2;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 750;
  text-decoration: none;
}

.organisation-links a:hover {
  color: var(--lime);
}

.organisation-card__catalogue {
  border-left: 1px solid var(--line-dark);
  background: rgb(255 255 255 / 2%);
}

.organisation-catalogue__header {
  display: flex;
  margin-bottom: 1.15rem;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.organisation-catalogue__header .eyebrow {
  margin: 0;
}

.organisation-catalogue__header > span {
  color: #7f9188;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  white-space: nowrap;
}

.organisation-catalogue__header--modules {
  margin-top: 1.4rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-dark);
}

.organisation-modules {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
}

.organisation-modules li {
  position: relative;
  min-width: 0;
}

.organisation-modules a {
  position: relative;
  display: grid;
  min-height: 5.7rem;
  padding: 0.8rem;
  border: 1px solid #2a4036;
  border-radius: 0.8rem;
  background: rgb(255 255 255 / 2.5%);
  color: #edf4f0;
  grid-template-columns: 1.25rem minmax(0, 1fr) auto;
  gap: 0.45rem;
  isolation: isolate;
  box-shadow: 0.22rem 0.22rem 0
    color-mix(in srgb, var(--cube-right) 10%, transparent);
  text-decoration: none;
  overflow: hidden;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.organisation-modules a::before {
  position: absolute;
  z-index: -1;
  width: 3.5rem;
  height: 4rem;
  background: conic-gradient(
    from 30deg,
    color-mix(in srgb, var(--cube-top) 14%, transparent) 0 33.333%,
    color-mix(in srgb, var(--cube-left) 10%, transparent) 0 66.666%,
    color-mix(in srgb, var(--cube-right) 14%, transparent) 0
  );
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  content: "";
  pointer-events: none;
  right: -1.25rem;
  top: -1.45rem;
  transform: rotate(8deg);
}

.organisation-modules a:hover {
  border-color: rgb(185 243 106 / 50%);
  background: rgb(185 243 106 / 5%);
  box-shadow: 0.3rem 0.3rem 0
    color-mix(in srgb, var(--cube-right) 14%, transparent);
  transform: translateY(-2px);
}

.organisation-module__index {
  color: #74877e;
  font-family: var(--font-mono);
  font-size: 0.57rem;
}

.organisation-module__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.3rem;
}

.organisation-module__copy code {
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.organisation-module__copy > span {
  display: -webkit-box;
  overflow: hidden;
  color: #aebdb6;
  font-size: 0.6rem;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.organisation-module__arrow {
  color: #75887f;
  font-size: 0.75rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.project-card {
  --project-accent: var(--cube-left);
  position: relative;
  display: flex;
  min-height: 27rem;
  padding: clamp(1.35rem, 3vw, 2rem);
  border: 1px solid #d4d8d0;
  border-radius: var(--radius);
  background: #f1f3ed;
  flex-direction: column;
  grid-column: span 4;
  overflow: hidden;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.project-card:hover {
  border-color: #a5afa6;
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.project-card--featured {
  min-height: 30rem;
}

.project-card--lime {
  --project-accent: var(--cube-top);
}

.project-card--cyan {
  --project-accent: var(--cube-left);
}

.project-card--violet {
  --project-accent: var(--cube-right);
}

.project-card--orange {
  --project-accent: var(--cube-top);
}

.project-card--rose {
  --project-accent: var(--cube-right);
}

.project-card--blue {
  --project-accent: var(--cube-left);
}

.project-card::before {
  position: absolute;
  width: 12rem;
  height: 13.75rem;
  background: conic-gradient(
    from 30deg,
    color-mix(in srgb, var(--cube-top) 18%, transparent) 0 33.333%,
    color-mix(in srgb, var(--cube-left) 12%, transparent) 0 66.666%,
    color-mix(in srgb, var(--cube-right) 16%, transparent) 0
  );
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  content: "";
  right: -5.75rem;
  top: 1.75rem;
  transform: rotate(8deg);
}

.project-topline {
  display: flex;
  margin-bottom: 2rem;
  color: var(--muted);
  justify-content: space-between;
  gap: 1rem;
  letter-spacing: 0.07em;
}

.project-status {
  display: inline-flex;
  color: #52715f;
  align-items: center;
  gap: 0.45rem;
}

.project-status i {
  background: #62a870;
  box-shadow: 0 0 0 4px rgb(98 168 112 / 12%);
}

.project-icon {
  position: relative;
  display: block;
  width: 4.2rem;
  height: 4.2rem;
  margin-bottom: 2.25rem;
  border: 1px solid color-mix(in srgb, var(--project-accent) 50%, var(--cube-line));
  border-radius: 1.05rem;
  background: color-mix(in srgb, var(--project-accent) 9%, white);
  transform: rotate(-2deg);
}

.project-icon span {
  position: absolute;
  display: block;
  border-radius: 0;
  transition: filter 180ms ease, transform 180ms ease;
}

.project-icon span:nth-child(1) {
  width: 2.3rem;
  height: 1.25rem;
  background: var(--cube-top);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  left: 0.9rem;
  top: 0.68rem;
  transform: translateY(-0.08rem);
}

.project-icon span:nth-child(2) {
  width: 1.15rem;
  height: 1.72rem;
  background: var(--cube-left);
  clip-path: polygon(0 0, 100% 34%, 100% 100%, 0 66%);
  left: 0.9rem;
  top: 1.88rem;
  transform: translateX(-0.06rem);
}

.project-icon span:nth-child(3) {
  width: 1.15rem;
  height: 1.72rem;
  background: var(--cube-right);
  clip-path: polygon(0 34%, 100% 0, 100% 66%, 0 100%);
  left: 2.05rem;
  top: 1.88rem;
  transform: translateX(0.06rem);
}

.project-card:hover .project-icon span {
  filter: saturate(1.06);
  transform: translate(0);
}

.project-card h3 {
  margin-bottom: 0.4rem;
  font-size: clamp(1.5rem, 2.3vw, 2rem);
}

.project-card code {
  margin-bottom: 1.15rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

.project-card > p {
  margin-bottom: 1.4rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.tag-list {
  display: flex;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
}

.tag {
  padding: 0.3rem 0.55rem;
  border: 1px solid #ccd2ca;
  border-radius: 999px;
  color: #4a5751;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  line-height: 1.3;
}

.project-footer {
  display: flex;
  padding-top: 1rem;
  border-top: 1px solid #d2d6ce;
  margin-top: auto;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.project-footer > span {
  color: var(--muted);
  font-size: 0.65rem;
  line-height: 1.4;
}

.project-footer a {
  display: inline-flex;
  color: #25332d;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.73rem;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.section-cta {
  margin: 2.5rem 0 0;
  text-align: right;
}

/* Expertise */
.section--expertise {
  position: relative;
  background: var(--night);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}

.section--expertise::before {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 20%, rgb(79 195 151 / 12%), transparent 25%),
    radial-gradient(circle at 85% 80%, rgb(126 183 255 / 8%), transparent 28%);
  content: "";
  pointer-events: none;
}

.section--expertise::after {
  position: absolute;
  z-index: 0;
  inset: 0;
  background-image: linear-gradient(
      30deg,
      transparent 49.6%,
      rgb(155 215 255 / 5%) 50%,
      transparent 50.4%
    ),
    linear-gradient(
      150deg,
      transparent 49.6%,
      rgb(57 188 232 / 4%) 50%,
      transparent 50.4%
    ),
    linear-gradient(
      90deg,
      transparent 49.6%,
      rgb(37 99 235 / 4%) 50%,
      transparent 50.4%
    );
  background-size: 5rem 8.66rem;
  content: "";
  -webkit-mask-image: radial-gradient(circle at 82% 52%, black, transparent 62%);
  mask-image: radial-gradient(circle at 82% 52%, black, transparent 62%);
  pointer-events: none;
}

.section--expertise .section-shell {
  position: relative;
  z-index: 1;
}

.section-heading--light .eyebrow {
  color: var(--lime);
}

.section-heading--light > p {
  color: var(--muted-dark);
}

.architecture-label {
  display: flex;
  margin-bottom: 1.2rem;
  color: #778781;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.architecture-label i {
  position: relative;
  height: 1px;
  background: linear-gradient(
    90deg,
    var(--cube-top),
    var(--cube-left),
    var(--cube-right)
  );
  flex: 1;
}

.architecture-label i::after {
  position: absolute;
  width: 0.58rem;
  height: 0.66rem;
  background: var(--cube-facet);
  clip-path: var(--cube-shape);
  content: "";
  right: 0;
  top: 50%;
  transform: translate(50%, -50%);
}

.expertise-grid {
  display: grid;
  border-top: 1px solid var(--line-dark);
  border-left: 1px solid var(--line-dark);
  grid-template-columns: repeat(3, 1fr);
}

.expertise-card {
  min-height: 26rem;
  padding: clamp(1.5rem, 3vw, 2.2rem);
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  background: rgb(255 255 255 / 1.5%);
  transition: background-color 180ms ease;
}

.expertise-card:hover {
  background: rgb(255 255 255 / 4%);
}

.expertise-index {
  display: flex;
  margin-bottom: 4.5rem;
  color: #667770;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
}

.expertise-index i {
  width: 2rem;
  height: 1px;
  background: #34483f;
}

.expertise-card .eyebrow {
  margin-bottom: 0.7rem;
  color: var(--lime);
}

.expertise-card h3 {
  margin-bottom: 1rem;
  font-size: clamp(1.55rem, 2.5vw, 2.1rem);
}

.expertise-card > p:not(.eyebrow) {
  color: var(--muted-dark);
  font-size: 0.9rem;
}

.expertise-card ul {
  margin-top: 1.5rem;
  list-style: none;
}

.expertise-card li {
  position: relative;
  padding: 0.38rem 0 0.38rem 1rem;
  color: #c7d1cc;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  line-height: 1.5;
}

.expertise-card li::before {
  position: absolute;
  width: 0.38rem;
  height: 0.44rem;
  left: 0;
  top: 0.72rem;
  background: var(--cube-facet);
  clip-path: var(--cube-shape);
  content: "";
}

/* Impact */
.section--impact {
  position: relative;
  background: linear-gradient(
    135deg,
    var(--lime),
    color-mix(in srgb, var(--lime) 82%, var(--cube-left))
  );
  overflow: hidden;
  isolation: isolate;
}

.section--impact::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  background-image: linear-gradient(
      30deg,
      transparent 49.55%,
      rgb(6 20 38 / 8%) 50%,
      transparent 50.45%
    ),
    linear-gradient(
      150deg,
      transparent 49.55%,
      rgb(6 20 38 / 8%) 50%,
      transparent 50.45%
    ),
    linear-gradient(
      90deg,
      transparent 49.55%,
      rgb(6 20 38 / 6%) 50%,
      transparent 50.45%
    );
  background-size: 4.5rem 7.794rem;
  content: "";
  -webkit-mask-image: radial-gradient(circle at 84% 20%, black, transparent 60%);
  mask-image: radial-gradient(circle at 84% 20%, black, transparent 60%);
  pointer-events: none;
}

.section--impact .section-shell {
  position: relative;
  z-index: 1;
}

.impact-heading {
  display: grid;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 1.4fr) minmax(16rem, 0.6fr);
  gap: 3rem;
  align-items: end;
}

.impact-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -1.4rem;
  color: #3d602c;
}

.impact-heading h2 {
  margin-bottom: 0;
}

.impact-heading > p:last-child {
  margin-bottom: 0.5rem;
  color: #3c552f;
}

.impact-grid {
  display: grid;
  border-top: 1px solid rgb(25 54 17 / 25%);
  grid-template-columns: repeat(3, 1fr);
}

.impact-card {
  padding: 2.25rem clamp(1rem, 3vw, 2.25rem) 0.5rem 0;
}

.impact-card + .impact-card {
  padding-left: clamp(1rem, 3vw, 2.25rem);
  border-left: 1px solid rgb(25 54 17 / 25%);
}

.impact-card strong {
  display: inline-flex;
  margin-bottom: 2rem;
  align-items: center;
  gap: 0.2em;
  font-size: clamp(3.6rem, 7vw, 6.8rem);
  font-weight: 650;
  letter-spacing: -0.08em;
  line-height: 0.9;
}

.impact-card strong::before {
  width: 0.16em;
  height: 0.19em;
  background: var(--cube-facet);
  clip-path: var(--cube-shape);
  content: "";
  flex: 0 0 auto;
}

.impact-card h3 {
  margin-bottom: 0.85rem;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.impact-card p {
  margin-bottom: 0;
  color: #38502e;
  font-size: 0.85rem;
}

/* Writing */
.section--writing {
  background: var(--paper);
}

.articles-grid {
  display: grid;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  grid-template-columns: repeat(3, 1fr);
}

.article-card {
  position: relative;
  display: flex;
  min-height: 26rem;
  padding: clamp(1.4rem, 3vw, 2rem);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  flex-direction: column;
  transition: background-color 180ms ease;
}

.article-card:hover {
  background: var(--surface);
}

.article-meta {
  display: flex;
  margin-bottom: 4rem;
  color: var(--muted);
  justify-content: space-between;
  gap: 1rem;
  letter-spacing: 0.04em;
}

.article-meta span {
  color: #3f6a57;
}

.article-index {
  position: absolute;
  display: grid;
  width: 3rem;
  height: 3.4rem;
  right: 1.5rem;
  top: 4rem;
  background: conic-gradient(
    from 30deg,
    color-mix(in srgb, var(--cube-top) 32%, transparent) 0 33.333%,
    color-mix(in srgb, var(--cube-left) 28%, transparent) 0 66.666%,
    color-mix(in srgb, var(--cube-right) 25%, transparent) 0
  );
  clip-path: var(--cube-shape);
  color: #456070;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 850;
  line-height: 1;
  place-items: center;
}

.article-card h3 {
  max-width: 17ch;
  margin-bottom: 1rem;
  font-size: clamp(1.45rem, 2.3vw, 1.9rem);
  letter-spacing: -0.035em;
}

.article-card h3 a {
  text-decoration: none;
}

.article-card h3 a:hover {
  color: #3d6b57;
}

.article-card > p {
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.article-card .text-link {
  margin-top: auto;
  font-size: 0.78rem;
}

/* Journey */
.section--journey {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.journey-layout {
  display: grid;
  grid-template-columns: minmax(18rem, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(3rem, 9vw, 8rem);
  align-items: start;
}

.journey-sticky {
  position: sticky;
  top: 3rem;
}

.journey-sticky h2 {
  font-size: clamp(2.25rem, 4.3vw, 4.1rem);
}

.journey-sticky > p {
  margin-bottom: 2rem;
}

.timeline-entry {
  display: grid;
  min-height: 11rem;
  grid-template-columns: 1.5rem 9rem 1fr;
  gap: 1.1rem;
}

.timeline-rail {
  position: relative;
  display: flex;
  justify-content: center;
}

.timeline-rail::after {
  position: absolute;
  width: 1px;
  background: linear-gradient(
    to bottom,
    var(--cube-top),
    var(--cube-left),
    var(--cube-right)
  );
  content: "";
  inset: 0 auto;
  opacity: 0.52;
}

.timeline-rail span {
  position: relative;
  z-index: 1;
  width: 0.84rem;
  height: 0.96rem;
  margin-top: 0.15rem;
  background: var(--cube-facet);
  clip-path: var(--cube-shape);
  filter: drop-shadow(0 0.2rem 0.3rem rgb(6 20 38 / 18%));
}

.timeline-entry--current .timeline-rail span {
  background: var(--cube-facet);
  animation: timeline-current-pulse 2.4s ease-in-out infinite;
}

@keyframes timeline-current-pulse {
  0%,
  100% {
    filter: drop-shadow(0 0 0.28rem color-mix(in srgb, var(--lime) 55%, transparent));
  }

  50% {
    filter: drop-shadow(0 0 0.6rem color-mix(in srgb, var(--lime) 88%, transparent));
  }
}

.timeline-period {
  padding-top: 0.12rem;
  color: var(--muted);
  letter-spacing: 0.03em;
  text-transform: none;
}

.timeline-copy {
  padding-bottom: 2.6rem;
}

.timeline-copy > div {
  display: flex;
  margin-bottom: 0.3rem;
  align-items: center;
  gap: 0.75rem;
}

.timeline-copy h3 {
  margin-bottom: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
}

.current-marker {
  padding: 0.22rem 0.48rem;
  border-radius: 999px;
  background: #dff6c4;
  color: #426c24;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.timeline-company {
  margin-bottom: 0.75rem !important;
  color: #416b58 !important;
  font-weight: 700;
}

.timeline-copy > p {
  max-width: 42rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Credentials */
.section--credentials {
  padding-block: clamp(4.25rem, 8vw, 6.75rem);
  border-top: 1px solid var(--line);
  background: var(--paper-warm);
}

.section--credentials .section-heading {
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.credential-layout {
  display: grid;
  margin-bottom: 1rem;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 1rem;
  align-items: stretch;
}

.credential-panel {
  display: flex;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #c9cec5;
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgb(255 255 255 / 50%), rgb(255 255 255 / 20%));
  box-shadow: 0 14px 36px rgb(36 53 45 / 6%);
  flex-direction: column;
}

.credential-panel__header {
  display: flex;
  min-height: 6.25rem;
  padding: 1.25rem clamp(1.25rem, 2.4vw, 1.75rem) 1.15rem;
  border-bottom: 1px solid #c9cec5;
  background: rgb(255 255 255 / 20%);
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.credential-panel__header .eyebrow {
  margin-bottom: 0.35rem;
  font-size: 0.61rem;
}

.credential-panel__header h3 {
  margin-bottom: 0;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  letter-spacing: -0.03em;
}

.credential-count {
  display: inline-flex;
  color: #536b61;
  font-family: var(--font-mono);
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.credential-count::before {
  width: 0.65rem;
  height: 0.74rem;
  background: var(--cube-facet);
  clip-path: var(--cube-shape);
  content: "";
  flex: 0 0 auto;
}

.credential-count strong {
  color: #365146;
  font-size: 1.15rem;
  letter-spacing: -0.06em;
  line-height: 1;
}

.credential-count small {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.education-list {
  display: flex;
  padding-inline: clamp(1.25rem, 2.4vw, 1.75rem);
  flex: 1;
  flex-direction: column;
}

.education-item {
  display: grid;
  min-width: 0;
  padding-block: 1.15rem;
  flex: 1;
  grid-template-columns: 6.4rem minmax(0, 1fr);
  gap: 1rem;
  align-content: center;
}

.education-item + .education-item {
  border-top: 1px solid #c9cec5;
}

.education-period {
  margin: 0.14rem 0 0;
  color: #536b61;
  font-family: var(--font-mono);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.45;
  text-transform: uppercase;
}

.education-copy {
  min-width: 0;
}

.education-item h4 {
  margin: 0 0 0.32rem;
  font-size: 1rem;
  font-weight: 680;
  letter-spacing: -0.025em;
  line-height: 1.28;
}

.education-institution {
  margin-bottom: 0.45rem;
  color: #416453;
  font-size: 0.76rem;
  font-weight: 750;
  line-height: 1.45;
}

.education-summary {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.certification-list {
  display: grid;
  padding-inline: clamp(1.25rem, 2.4vw, 1.75rem);
  list-style: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.certification-list li {
  display: flex;
  min-width: 0;
  padding-block: 0.78rem;
  gap: 0.65rem;
  align-items: center;
}

.certification-list li:nth-child(odd) {
  padding-right: 1rem;
}

.certification-list li:nth-child(even) {
  padding-left: 1rem;
  border-left: 1px solid #cbd0c7;
}

.certification-list li:nth-child(n + 3) {
  border-top: 1px solid #cbd0c7;
}

.cert-mark {
  display: grid;
  width: 1.35rem;
  height: 1.53rem;
  background: var(--cube-facet);
  clip-path: var(--cube-shape);
  color: #fff;
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 800;
  text-shadow: -0.055em -0.055em 0 var(--cube-void), 0.055em -0.055em 0 var(--cube-void),
    -0.055em 0.055em 0 var(--cube-void), 0.055em 0.055em 0 var(--cube-void);
  filter: drop-shadow(0 0.2rem 0.32rem rgb(6 20 38 / 14%));
  place-items: center;
}

.certification-list div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.certification-list strong {
  font-size: 0.78rem;
  line-height: 1.35;
}

.certification-list div span {
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.45;
}

.recognition-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.recognition-card {
  position: relative;
  min-height: 9.5rem;
  padding: 1.35rem;
  border: 1px solid #c9cec5;
  border-radius: var(--radius);
  background: rgb(255 255 255 / 22%);
  text-decoration: none;
  transition: background-color 180ms ease, transform 180ms ease;
}

.recognition-card:hover {
  background: rgb(255 255 255 / 58%);
  transform: translateY(-3px);
}

.recognition-arrow {
  position: absolute;
  right: 1.2rem;
  top: 1rem;
  color: #547060;
}

.recognition-card h3 {
  max-width: 16ch;
  margin: 1.75rem 0 0.55rem;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.recognition-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.55;
}

/* Contact and footer */
.contact-section {
  position: relative;
  padding-block: clamp(5rem, 10vw, 8rem);
  background: var(--night-2);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}

.contact-section::before {
  position: absolute;
  z-index: 0;
  width: clamp(20rem, 36vw, 31rem);
  aspect-ratio: 0.866 / 1;
  background: conic-gradient(
    from 30deg,
    color-mix(in srgb, var(--cube-top) 14%, transparent) 0 33.333%,
    color-mix(in srgb, var(--cube-left) 10%, transparent) 0 66.666%,
    color-mix(in srgb, var(--cube-right) 14%, transparent) 0
  );
  clip-path: var(--cube-shape);
  content: "";
  bottom: -16rem;
  pointer-events: none;
  right: -8rem;
  transform: rotate(-8deg);
}

.contact-layout {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 3rem;
}

.contact-layout > div {
  max-width: 50rem;
}

.contact-layout .eyebrow {
  color: var(--lime);
}

.contact-layout h2 {
  font-size: clamp(2.2rem, 4.6vw, 4.3rem);
}

.contact-layout > div > p:last-child {
  max-width: 39rem;
  margin-bottom: 0;
  color: var(--muted-dark);
}

.journey-support {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.journey-support__card {
  display: flex;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  border: 1px solid #cbd8e8;
  border-left: 0.35rem solid var(--cube-right);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(120deg, rgb(37 99 235 / 8%), transparent 58%),
    #f8fbff;
  align-items: center;
  justify-content: space-between;
  gap: clamp(2rem, 6vw, 5rem);
  box-shadow: 0 18px 50px rgb(23 78 166 / 8%);
}

.journey-support__card > div {
  max-width: 48rem;
}

.journey-support__card .eyebrow {
  margin-bottom: 0.65rem;
  color: var(--cube-right);
}

.journey-support__card h2 {
  margin-bottom: 0.65rem;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.journey-support__card p:last-child {
  max-width: 43rem;
  margin-bottom: 0;
  color: var(--muted);
}

.button--journey {
  border-color: #174ea6;
  background: linear-gradient(135deg, #2563eb, #174ea6);
  box-shadow: 0 12px 28px rgb(37 99 235 / 24%);
  color: #fff;
  flex: 0 0 auto;
}

.button--journey:hover {
  background: linear-gradient(135deg, #3473f4, #1c57ba);
  box-shadow: 0 16px 34px rgb(37 99 235 / 32%);
}

.site-footer {
  padding-block: 3rem;
  border-top: 1px solid var(--line-dark);
  background: var(--night);
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(16rem, 1fr) auto auto;
  gap: 3rem;
  align-items: end;
}

.brand--footer {
  margin-bottom: 1.2rem;
}

.footer-grid > div > p {
  max-width: 31rem;
  margin-bottom: 0;
  color: #77877f;
  font-size: 0.75rem;
}

.social-list {
  list-style: none;
}

.social-list li + li {
  margin-top: 0.5rem;
}

.social-list a {
  display: flex;
  min-width: 14rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line-dark);
  color: #ccd6d1;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.social-list a > span:last-child {
  margin-left: auto;
}

.social-label {
  display: flex;
  flex-direction: column;
}

.social-label strong {
  font-size: 0.72rem;
}

.social-label > span {
  color: #77877f;
  font-family: var(--font-mono);
  font-size: 0.58rem;
}

.social-list--compact {
  display: flex;
  gap: 0.6rem;
}

.social-list--compact li + li {
  margin-top: 0;
}

.social-list--compact a {
  min-width: 0;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  justify-content: center;
}

.social-list--compact .social-label,
.social-list--compact a > span:last-child {
  display: none;
}

.social-list--compact a:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.footer-meta {
  margin-bottom: 0;
  color: #77877f;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  line-height: 1.8;
  text-align: right;
}

/* CV */
.cv-document {
  background: #eceee9;
}

.cv-shell .site-header {
  background: var(--night);
}

.cv-page {
  width: min(100% - (var(--gutter) * 2), 72rem);
  margin: clamp(1.75rem, 3vw, 3rem) auto;
  padding: clamp(2.25rem, 4.5vw, 4rem);
  border: 1px solid #dde1da;
  background: #fff;
  box-shadow: 0 18px 55px rgb(22 36 29 / 10%);
}

.cv-hero {
  display: flex;
  padding-bottom: 2.1rem;
  border-bottom: 2px solid var(--ink);
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cv-identity {
  display: grid;
  min-width: 0;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  gap: 1.2rem;
  align-items: start;
}

.cv-brand-mark {
  width: 3.25rem;
  height: 3.25rem;
  filter: drop-shadow(0 0.45rem 0.8rem rgb(4 16 11 / 12%));
}

.cv-identity__copy {
  min-width: 0;
}

.cv-hero .eyebrow {
  margin-bottom: 0.6rem;
}

.cv-hero h1 {
  margin-bottom: 0.35rem;
  font-size: clamp(2.8rem, 5.2vw, 4.25rem);
}

.cv-title {
  margin-bottom: 0.65rem;
  color: #385d4d;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  font-weight: 700;
  line-height: 1.35;
}

.cv-location {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.65;
}

.cv-location a {
  font-weight: 650;
  white-space: nowrap;
}

.cv-pdf-download {
  flex: 0 0 auto;
  white-space: nowrap;
}

.cv-pdf-download:focus-visible {
  outline-color: var(--cube-right);
}

.cv-summary {
  display: grid;
  padding-block: 2.25rem;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 1.75rem;
}

.cv-summary h2,
.cv-section > h2 {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-transform: uppercase;
}

.cv-summary-copy {
  display: grid;
  max-width: 56rem;
  padding-left: 1.5rem;
  border-left: 2px solid #89958f;
  gap: 0.9rem;
}

.cv-summary-copy p {
  margin: 0;
  color: #46534d;
  font-size: 0.94rem;
  line-height: 1.64;
}

.cv-summary-copy p:first-child {
  color: #26352e;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.62;
}

.cv-layout {
  display: grid;
  padding-top: 2.75rem;
  grid-template-columns: minmax(0, 1.58fr) minmax(18rem, 0.86fr);
  gap: clamp(2.5rem, 4.5vw, 3.5rem);
}

.cv-primary,
.cv-sidebar {
  min-width: 0;
}

.cv-sidebar a {
  overflow-wrap: anywhere;
}

.cv-section + .cv-section {
  margin-top: 3rem;
}

.cv-section > h2 {
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #58645e;
  margin-bottom: 1.35rem;
}

.cv-role {
  padding-bottom: 1.55rem;
  border-bottom: 1px solid #d9ddd6;
  margin-bottom: 1.55rem;
}

.cv-role-heading {
  display: flex;
  margin-bottom: 0.75rem;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
}

.cv-role-heading h3,
.cv-skill h3,
.cv-education h3 {
  margin-bottom: 0.25rem;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.cv-role-heading p {
  margin-bottom: 0;
  color: #426653;
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.45;
}

.cv-role-heading time {
  padding-top: 0.12rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.67rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.45;
  white-space: nowrap;
}

.cv-role > p,
.cv-skill > p,
.cv-education > p {
  margin-bottom: 0;
  color: #4d5953;
  font-size: 0.86rem;
  line-height: 1.6;
}

.cv-skills {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.35rem 1.6rem;
}

.cv-skill {
  padding-bottom: 1.3rem;
  border-bottom: 1px solid #d9ddd6;
}

.cv-skill h3,
.cv-education h3 {
  font-size: 0.98rem;
}

.cv-skill > p,
.cv-education > p {
  font-size: 0.8rem;
}

.cv-skill ul {
  margin-top: 0.8rem;
  padding-left: 1.05rem;
  color: #3f4b45;
  font-size: 0.75rem;
  line-height: 1.55;
}

.cv-skill li + li {
  margin-top: 0.2rem;
}

.cv-education + .cv-education {
  padding-top: 1.25rem;
  border-top: 1px solid #d9ddd6;
  margin-top: 1.25rem;
}

.cv-education p + p {
  margin-top: 0.55rem;
}

.cv-list {
  list-style: none;
}

.cv-list li {
  padding-block: 0.72rem;
  border-bottom: 1px solid #d9ddd6;
}

.cv-list strong,
.cv-list span {
  display: block;
}

.cv-list strong {
  font-size: 0.77rem;
  line-height: 1.45;
}

.cv-list span {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.67rem;
  line-height: 1.5;
}

.cv-list--links a {
  text-decoration: none;
}

.cv-list--links a:hover strong {
  color: #426653;
}

.cv-organisation {
  break-inside: avoid;
}

.cv-organisation h3 {
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
  letter-spacing: -0.025em;
  line-height: 1.35;
}

.cv-organisation__website {
  color: #294d3d;
  font-weight: 750;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

.cv-organisation > p {
  margin-bottom: 0;
  color: #4d5953;
  font-size: 0.8rem;
  line-height: 1.6;
}

.cv-organisation__website:hover {
  color: #426653;
}

.cv-footer {
  padding: 0 2rem 3rem;
  color: #66736c;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-align: center;
}

/* 404 */
.not-found-shell {
  position: relative;
  min-height: 100svh;
  background: var(--night);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}

.not-found-cube {
  position: absolute;
  z-index: 0;
  top: clamp(2rem, 10vw, 5.5rem);
  right: clamp(0.5rem, 8vw, 7rem);
  width: 14rem;
  height: 14rem;
  pointer-events: none;
}

.not-found-cube i {
  position: absolute;
  display: block;
  width: 3.4rem;
  height: 3.85rem;
  background: var(--cube-facet);
  clip-path: var(--cube-shape);
  filter: drop-shadow(0 0.6rem 1rem rgb(0 0 0 / 30%));
}

.not-found-cube i:nth-child(1) {
  top: 0;
  left: 2.4rem;
  opacity: 0.55;
  transform: rotate(-14deg);
}

.not-found-cube i:nth-child(2) {
  top: 4.6rem;
  left: 8.4rem;
  opacity: 0.4;
  transform: rotate(20deg) scale(0.8);
}

.not-found-cube i:nth-child(3) {
  top: 8.8rem;
  left: 0.6rem;
  opacity: 0.3;
  transform: rotate(-32deg) scale(0.6);
}

.not-found {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(100% - (var(--gutter) * 2), 54rem);
  min-height: calc(100svh - 5.5rem);
  margin-inline: auto;
  padding-block: 5rem;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.not-found-code {
  margin-bottom: -2rem;
  color: rgb(185 243 106 / 10%);
  font-size: clamp(9rem, 28vw, 20rem);
  font-weight: 800;
  letter-spacing: -0.1em;
  line-height: 0.8;
}

.not-found h1 {
  margin-bottom: 1rem;
  font-size: clamp(2.6rem, 7vw, 5rem);
}

.not-found > p:not(.terminal-label, .not-found-code) {
  max-width: 38rem;
  margin-bottom: 2rem;
  color: var(--muted-dark);
}

/* Optional dark theme. The existing editorial palette remains the default. */
@media screen {
  html[data-theme="dark"] {
    color-scheme: dark;
    --cube-void: #040e1d;
    --brand-accent: #c3f77b;
    --cube-top: #b3e0ff;
    --cube-left: #57cdf2;
    --cube-right: #5b86f5;
    --cube-line: rgb(213 236 255 / 20%);
    --cube-glow: rgb(37 99 235 / 30%);
    --cube-text: #f4f9ff;
    --ink: #edf5f0;
    --ink-soft: #ccd8d1;
    --paper: #0a1411;
    --paper-warm: #0d1815;
    --surface: #101e1a;
    --line: #2d4037;
    --muted: #9eada6;
    --shadow: 0 24px 80px rgb(0 0 0 / 30%);
  }

  html[data-theme="dark"] :is(
      .section--approach,
      .section--projects,
      .section--writing,
      .section--journey,
      .section--credentials,
      .cv-page
    ) .eyebrow {
    color: #92b2a3;
  }

  html[data-theme="dark"] .text-link:hover {
    color: var(--lime);
  }

  html[data-theme="dark"] .cv-page .button--dark {
    background: var(--lime);
    color: var(--night);
  }

  html[data-theme="dark"] .cv-page .button--dark:hover {
    background: #ceff8e;
  }

  html[data-theme="dark"] .cv-pdf-download:focus-visible {
    outline-color: var(--lime);
  }

  html[data-theme="dark"] .principle-number {
    color: var(--cube-void);
  }

  html[data-theme="dark"] .project-card {
    border-color: color-mix(in srgb, var(--cube-line) 72%, #30453c);
    background: linear-gradient(
      145deg,
      #14241e,
      color-mix(in srgb, var(--cube-right) 6%, #14241e)
    );
  }

  html[data-theme="dark"] .project-card:hover {
    border-color: #587065;
  }

  html[data-theme="dark"] .project-topline,
  html[data-theme="dark"] .project-card code,
  html[data-theme="dark"] .project-footer > span {
    color: #98a9a1;
  }

  html[data-theme="dark"] .project-status {
    color: #a6d0ba;
  }

  html[data-theme="dark"] .project-icon {
    border-color: color-mix(in srgb, var(--project-accent) 50%, #53675e);
    background: color-mix(in srgb, var(--project-accent) 12%, #14241e);
  }

  html[data-theme="dark"] .tag {
    border-color: #3b5046;
    color: #c0ccc6;
  }

  html[data-theme="dark"] .project-footer {
    border-color: #30443b;
  }

  html[data-theme="dark"] .project-footer a {
    color: #e5eee9;
  }

  html[data-theme="dark"] .organisation-card .eyebrow {
    color: var(--lime);
  }

  html[data-theme="dark"] .section--impact {
    color: #14200e;
  }

  html[data-theme="dark"] .article-meta {
    color: #9daca5;
  }

  html[data-theme="dark"] .article-meta span {
    color: #9dc9b3;
  }

  html[data-theme="dark"] .article-index {
    color: var(--cube-text);
  }

  html[data-theme="dark"] .article-card h3 a:hover {
    color: var(--lime);
  }

  html[data-theme="dark"] .timeline-rail::after {
    background: linear-gradient(
      to bottom,
      var(--cube-top),
      var(--cube-left),
      var(--cube-right)
    );
    opacity: 0.6;
  }

  html[data-theme="dark"] .timeline-rail span {
    background: var(--cube-facet);
    filter: drop-shadow(0 0.2rem 0.3rem rgb(0 0 0 / 32%));
  }

  html[data-theme="dark"] .timeline-period {
    color: #9aaba3;
  }

  html[data-theme="dark"] .current-marker {
    background: rgb(185 243 106 / 14%);
    color: #c9f991;
  }

  html[data-theme="dark"] .timeline-company {
    color: #9bc9b2 !important;
  }

  html[data-theme="dark"] .credential-panel {
    border-color: #344a40;
    background: linear-gradient(145deg, rgb(255 255 255 / 5%), rgb(255 255 255 / 1%));
    box-shadow: 0 14px 36px rgb(0 0 0 / 18%);
  }

  html[data-theme="dark"] .credential-panel__header {
    border-color: #344a40;
    background: rgb(255 255 255 / 3%);
  }

  html[data-theme="dark"] .credential-count {
    color: #9aafa5;
  }

  html[data-theme="dark"] .credential-count strong {
    color: #c2d4cb;
  }

  html[data-theme="dark"] .education-item + .education-item,
  html[data-theme="dark"] .certification-list li:nth-child(even),
  html[data-theme="dark"] .certification-list li:nth-child(n + 3) {
    border-color: #344a40;
  }

  html[data-theme="dark"] .education-period {
    color: #9bb3a7;
  }

  html[data-theme="dark"] .education-institution {
    color: #9fcab4;
  }

  html[data-theme="dark"] .certification-list div span {
    color: #9caba4;
  }

  html[data-theme="dark"] .recognition-card {
    border-color: #344a40;
    background: rgb(255 255 255 / 3%);
  }

  html[data-theme="dark"] .recognition-card:hover {
    background: rgb(255 255 255 / 7%);
  }

  html[data-theme="dark"] .recognition-arrow {
    color: #9bc6b0;
  }

  html[data-theme="dark"] .journey-support__card {
    border-color: #344a40;
    border-left-color: var(--cube-right);
    background:
      linear-gradient(120deg, rgb(91 134 245 / 12%), transparent 58%),
      #101e1a;
    box-shadow: 0 18px 50px rgb(0 0 0 / 18%);
  }

  html[data-theme="dark"] .journey-support__card .eyebrow {
    color: #8cafff;
  }

  html[data-theme="dark"] .cv-document {
    background: #07100d;
  }

  html[data-theme="dark"] .cv-page {
    border-color: #2b3d35;
    background: #101e1a;
    box-shadow: 0 22px 70px rgb(0 0 0 / 32%);
  }

  html[data-theme="dark"] .cv-hero,
  html[data-theme="dark"] .cv-section > h2 {
    border-color: #809188;
  }

  html[data-theme="dark"] .cv-title,
  html[data-theme="dark"] .cv-role-heading p {
    color: #9bc9b2;
  }

  html[data-theme="dark"] .cv-summary-copy {
    border-color: #71847a;
  }

  html[data-theme="dark"] .cv-summary-copy p {
    color: #b9c7c0;
  }

  html[data-theme="dark"] .cv-summary-copy p:first-child {
    color: #e3ede7;
  }

  html[data-theme="dark"] .cv-role,
  html[data-theme="dark"] .cv-skill,
  html[data-theme="dark"] .cv-education + .cv-education,
  html[data-theme="dark"] .cv-list li {
    border-color: #30443b;
  }

  html[data-theme="dark"] .cv-skill ul {
    color: #bcc9c2;
  }

  html[data-theme="dark"] .cv-list--links a:hover strong {
    color: var(--lime);
  }

  html[data-theme="dark"] :is(
      .cv-role > p,
      .cv-skill > p,
      .cv-education > p,
      .cv-organisation > p
    ) {
    color: #b4c1ba;
  }

  html[data-theme="dark"] .cv-organisation__website {
    color: var(--lime);
  }

  html[data-theme="dark"] .cv-footer {
    color: #91a29a;
  }
}

/* Progressive enhancement */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 600ms cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 52.01rem) {
  .console-bar {
    min-height: 3.25rem;
    padding-inline: 1.15rem;
  }

  .console-bar code {
    font-size: 0.7rem;
  }

  .console-profile {
    padding: 2rem 1.85rem;
  }

  .console-profile h2 {
    font-size: 1.45rem;
  }

  .yaml-list {
    padding: 0 1.85rem 1.65rem;
    font-size: clamp(0.72rem, 1vw, 0.82rem);
  }

  .yaml-list > div {
    padding-block: 0.62rem;
    grid-template-columns: 7.6rem 1fr;
  }

  .console-link {
    padding-inline: 1.85rem;
  }

  .console-link--github {
    min-height: 5.4rem;
  }
}

@media (max-width: 68rem) {
  .hero {
    grid-template-columns: minmax(22rem, 0.82fr) minmax(0, 1.18fr);
    gap: clamp(2.25rem, 4vw, 3.25rem);
  }

  .hero h1 {
    font-size: clamp(3rem, 5.8vw, 4.9rem);
  }

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

  .metric:nth-child(3) {
    border-top: 1px solid var(--line-dark);
    border-left: 0;
  }

  .metric:nth-child(4) {
    border-top: 1px solid var(--line-dark);
  }

  .project-card {
    grid-column: span 6;
  }

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

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

  .footer-meta {
    grid-column: 1 / -1;
    text-align: left;
  }
}

@media (max-width: 52rem) {
  .section-heading--split,
  .impact-heading,
  .journey-layout,
  .credential-layout,
  .organisation-card,
  .cv-layout {
    grid-template-columns: 1fr;
  }

  .section-heading--split {
    align-items: start;
    gap: 1.5rem;
  }

  .hero {
    min-height: auto;
    grid-template-areas:
      "copy"
      "console";
    grid-template-columns: 1fr;
  }

  .hero-shell::before {
    width: 26rem;
    height: 30rem;
    opacity: 0.34;
    right: -12rem;
    top: -7rem;
  }

  .hero h1 {
    max-width: 12ch;
    font-size: clamp(2.8rem, 12vw, 4rem);
  }

  .profile-console {
    width: min(100%, 32rem);
    transform: none;
  }

  .profile-console::after {
    right: -4.8rem;
    top: 7rem;
  }

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

  .principle-card {
    min-height: auto;
  }

  .principle-card + .principle-card {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .principle-number {
    margin-bottom: 2rem;
  }

  .organisation-card__catalogue {
    border-top: 1px solid var(--line-dark);
    border-left: 0;
  }

  .impact-heading .eyebrow {
    margin-bottom: -1.5rem;
  }

  .impact-card {
    padding: 2rem 0;
  }

  .impact-card + .impact-card {
    padding-left: 0;
    border-top: 1px solid rgb(25 54 17 / 25%);
    border-left: 0;
  }

  .journey-sticky {
    position: static;
  }

  .contact-layout,
  .journey-support__card {
    align-items: flex-start;
    flex-direction: column;
  }

  .cv-sidebar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .cv-sidebar .cv-section + .cv-section {
    margin-top: 0;
  }
}

@media (max-width: 60rem) {
  .no-js .header-inner {
    padding-block: 0.75rem;
    flex-wrap: wrap;
  }

  .no-js .header-controls {
    width: 100%;
    margin-left: 0;
    flex-wrap: wrap;
  }

  .no-js .site-nav {
    order: 2;
    width: 100%;
    overflow-x: auto;
  }

  .header-controls {
    gap: 0.55rem;
  }

  .js .nav-toggle {
    display: grid;
  }

  .js .site-nav {
    position: absolute;
    right: var(--gutter);
    top: calc(100% - 0.4rem);
    width: min(20rem, calc(100vw - (var(--gutter) * 2)));
    padding: 0.8rem;
    border: 1px solid var(--line-dark);
    border-radius: 0.9rem;
    background: #10221c;
    box-shadow: 0 24px 60px rgb(0 0 0 / 30%);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-0.5rem);
    visibility: hidden;
    transition: opacity 160ms ease, transform 160ms ease, visibility 0s linear 160ms;
  }

  .js .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
    transition-delay: 0s;
  }

  .js .site-nav ul {
    align-items: stretch;
    flex-direction: column;
    gap: 0;
  }

  .js .site-nav a {
    display: block;
    padding: 0.8rem 0.9rem;
  }

  .js .site-nav .nav-cv {
    margin-top: 0.3rem;
    text-align: center;
  }

  .js .site-nav .nav-external-item {
    margin: 0.45rem 0 0;
    padding: 0.45rem 0 0;
    border-top: 1px solid var(--line-dark);
    border-left: 0;
  }

  .js .site-nav .nav-native-cube {
    display: flex;
    justify-content: space-between;
  }
}

@media (max-width: 44rem) {

  .metrics-grid,
  .expertise-grid,
  .articles-grid,
  .cv-skills,
  .cv-sidebar {
    grid-template-columns: 1fr;
  }

  .metric + .metric,
  .metric:nth-child(3),
  .metric:nth-child(4) {
    border-top: 1px solid var(--line-dark);
    border-left: 0;
  }

  .project-card {
    grid-column: 1 / -1;
  }

  .contact-section::before,
  .not-found-cube {
    display: none;
  }

  .organisation-card__intro,
  .organisation-card__catalogue {
    padding: 1.35rem;
  }

  .organisation-catalogue__header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.45rem;
  }

  .organisation-tools,
  .organisation-modules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .organisation-modules a {
    min-height: 4.5rem;
    box-shadow: 0.16rem 0.16rem 0
      color-mix(in srgb, var(--cube-right) 10%, transparent);
  }

  .organisation-module__copy > span {
    display: none;
  }

  .organisation-signals {
    grid-template-columns: 1fr;
  }

  .organisation-signals > div + div {
    padding-left: 0;
    border-top: 1px solid var(--line-dark);
    border-left: 0;
  }

  .expertise-card,
  .article-card {
    min-height: auto;
  }

  .expertise-index,
  .article-meta {
    margin-bottom: 2.5rem;
  }

  .credential-panel__header {
    min-height: 5.75rem;
    padding: 1.1rem 1.15rem 1rem;
  }

  .education-list,
  .certification-list {
    padding-inline: 1.15rem;
  }

  .education-item {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .education-period {
    margin-top: 0;
  }

  .certification-list {
    grid-template-columns: 1fr;
  }

  .certification-list li:nth-child(odd),
  .certification-list li:nth-child(even) {
    padding-inline: 0;
    border-left: 0;
  }

  .certification-list li:nth-child(n + 2) {
    border-top: 1px solid #cbd0c7;
  }

  .timeline-entry {
    grid-template-columns: 1.2rem 1fr;
    gap: 0.8rem;
  }

  .timeline-period {
    grid-column: 2;
    margin-bottom: 0.5rem;
  }

  .timeline-copy {
    grid-column: 2;
  }

  .timeline-rail {
    grid-row: 1 / span 2;
  }

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

  .footer-meta {
    grid-column: auto;
  }

  .cv-page {
    width: 100%;
    margin: 0;
    padding: 2rem var(--gutter) 2.75rem;
    border: 0;
    box-shadow: none;
  }

  .cv-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .cv-identity {
    width: 100%;
    grid-template-columns: 3rem minmax(0, 1fr);
  }

  .cv-brand-mark {
    width: 3rem;
    height: 3rem;
  }

  .cv-summary {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .cv-summary-copy {
    padding-left: 1rem;
  }
}

@media (max-width: 30rem) {
  .header-inner {
    gap: 0.45rem;
  }

  .header-controls {
    gap: 0.35rem;
  }

  .header-journey-link {
    padding-inline: 0.65rem;
    font-size: 0.66rem;
  }

  .brand-copy {
    display: none;
  }

  .hero-actions .button,
  .contact-layout .button {
    width: 100%;
  }

  .console-profile {
    grid-template-columns: 5.5rem 1fr;
  }

  .profile-console::before {
    width: 0.25rem;
  }

  .profile-photo-trigger,
  .profile-photo-trigger > img {
    width: 5.5rem;
    height: 5.5rem;
  }

  .portrait-dialog {
    width: calc(100% - 1rem);
    max-height: calc(100dvh - 1rem);
  }

  .portrait-dialog__header {
    padding-left: 1rem;
  }

  .portrait-dialog__figure img {
    max-height: calc(100dvh - 10rem);
  }

  .portrait-dialog__figure figcaption {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
  }

  .yaml-list > div {
    grid-template-columns: 6rem 1fr;
  }

  .metric {
    padding-inline: 0.5rem;
  }

  .project-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-card::before {
    width: 10rem;
    height: 11.5rem;
    right: -5.25rem;
  }

  .cv-role-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }

  .cv-role-heading time {
    padding-top: 0;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .profile-photo-trigger,
  .profile-photo-trigger > img,
  .profile-photo-action,
  .portrait-dialog,
  .portrait-dialog__close {
    transition: none !important;
  }

  .profile-photo-trigger:hover,
  .profile-photo-trigger:focus-visible {
    transform: none;
  }

  .brand:is(:hover, :focus-visible) .brand-mark,
  .project-icon span,
  .project-card:hover .project-icon span {
    transform: none;
  }
}

@media (forced-colors: active) {
  .hero-shell::before,
  .hero-shell::after,
  .profile-console::before,
  .profile-console::after,
  .section--expertise::after,
  .section--impact::before,
  .contact-section::before,
  .organisation-card::before,
  .organisation-modules a::before,
  .project-card::before,
  .architecture-label i::after,
  .expertise-card li::before,
  .credential-count::before,
  .metric > strong::before,
  .impact-card strong::before,
  .console-bar code::before,
  .cube-rule,
  .scroll-progress,
  .not-found-cube,
  :is(
      .section-heading .eyebrow,
      .impact-heading > .eyebrow,
      .journey-sticky > .eyebrow,
      .contact-layout > div > .eyebrow
    )::before {
    display: none !important;
  }

  .principle-number,
  .article-index,
  .timeline-rail span,
  .section-rail__tick,
  .cert-mark {
    border: 1px solid CanvasText;
    background: Canvas;
    clip-path: none;
    color: CanvasText;
    filter: none;
    text-shadow: none;
    animation: none;
  }

  .section-rail__tick path {
    fill: CanvasText;
  }

  .brand-mark {
    filter: none;
    forced-color-adjust: auto;
  }

  .brand-mark > rect,
  .brand-mark > circle {
    fill: Canvas;
    stroke: CanvasText;
    stroke-opacity: 1;
  }

  .brand-mark > path:nth-of-type(-n + 3),
  .brand-mark > path:last-child,
  .project-icon span {
    fill: CanvasText;
    background: CanvasText;
  }

  .brand-mark > path:nth-of-type(4) {
    stroke: Canvas;
  }

  .organisation-card__mark,
  .organisation-modules a {
    box-shadow: none;
  }

  .organisation-card__logo path {
    fill: CanvasText;
  }

  .organisation-card__logo path:last-child {
    fill: Canvas;
  }

  .cv-pdf-download:focus-visible {
    outline-color: Highlight;
  }

}

@media print {
  @page {
    size: A4;
    margin: 12mm;
  }

  html {
    color-scheme: light;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 9pt;
    line-height: 1.45;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .hero-shell::before,
  .hero-shell::after,
  .profile-console::before,
  .profile-console::after,
  .section--expertise::after,
  .section--impact::before,
  .contact-section::before,
  .organisation-card::before,
  .organisation-modules a::before,
  .project-card::before,
  .architecture-label i::after,
  .expertise-card li::before,
  .credential-count::before,
  .metric > strong::before,
  .impact-card strong::before,
  .console-bar code::before,
  .cube-rule-shell,
  :is(
      .section-heading .eyebrow,
      .impact-heading > .eyebrow,
      .journey-sticky > .eyebrow,
      .contact-layout > div > .eyebrow
    )::before {
    display: none !important;
  }

  .principle-number,
  .cert-mark {
    width: auto;
    height: auto;
    background: none;
    clip-path: none;
    color: #000;
    filter: none;
    text-shadow: none;
  }

  .article-index {
    display: none;
  }

  .organisation-modules a {
    box-shadow: none;
  }

  .cv-brand-mark {
    filter: grayscale(1) contrast(1.55);
  }

  .cv-brand-mark > rect {
    fill: #fff !important;
    stroke: #000 !important;
    stroke-opacity: 1 !important;
  }

  .cv-brand-mark > path:nth-of-type(-n + 3) {
    fill: #d7d7d7 !important;
  }

  .cv-brand-mark > path:nth-of-type(4) {
    stroke: #000 !important;
  }

  .cv-brand-mark > circle {
    fill: #fff !important;
    stroke: #000 !important;
  }

  .cv-brand-mark > path:last-child {
    fill: #000 !important;
  }

  .skip-link,
  .site-header,
  .cv-pdf-download,
  .profile-photo-action,
  .portrait-dialog,
  .scroll-progress,
  .section-rail,
  .not-found-cube,
  .cv-footer {
    display: none !important;
  }

  .cv-page {
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: #fff;
    color: #000;
    box-shadow: none;
  }

  .cv-document {
    background: #fff;
  }

  .cv-hero {
    padding-bottom: 6.5mm;
  }

  .cv-identity {
    grid-template-columns: 10mm minmax(0, 1fr);
    gap: 3.5mm;
  }

  .cv-brand-mark {
    width: 10mm;
    height: 10mm;
  }

  .cv-hero h1 {
    font-size: 27pt;
  }

  .cv-title {
    margin-bottom: 1.5mm;
    font-size: 10.5pt;
  }

  .cv-location {
    font-size: 7.5pt;
  }

  .cv-summary {
    display: block;
    padding-block: 5.5mm;
  }

  .cv-summary > h2 {
    margin-bottom: 2.5mm;
  }

  .cv-summary-copy {
    max-width: none;
    padding-left: 3.2mm;
    border-left-width: 0.6mm;
    gap: 2.2mm;
  }

  .cv-summary-copy p {
    font-size: 8.2pt;
    line-height: 1.42;
    orphans: 3;
    widows: 3;
  }

  .cv-summary-copy p:first-child {
    font-size: 8.5pt;
    line-height: 1.42;
  }

  .cv-layout {
    padding-top: 6.5mm;
    grid-template-columns: minmax(0, 1.7fr) minmax(48mm, 0.8fr);
    gap: 6mm;
  }

  .cv-sidebar {
    display: block;
  }

  .cv-role,
  .cv-skill,
  .cv-education,
  .cv-organisation {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .cv-section {
    break-inside: auto;
  }

  .cv-section > h2 {
    margin-bottom: 3mm;
    padding-bottom: 2mm;
    break-after: avoid;
    page-break-after: avoid;
  }

  .cv-role {
    margin-bottom: 4mm;
    padding-bottom: 4mm;
  }

  .cv-role-heading {
    margin-bottom: 1.5mm;
  }

  .cv-role-heading h3,
  .cv-skill h3,
  .cv-education h3 {
    font-size: 9pt;
  }

  .cv-role > p,
  .cv-skill > p,
  .cv-education > p {
    font-size: 7.8pt;
    line-height: 1.45;
    orphans: 3;
    widows: 3;
  }

  .cv-skills {
    gap: 3mm 4mm;
  }

  .cv-skill {
    padding-bottom: 3mm;
  }

  .cv-skill ul {
    margin-top: 1.8mm;
    font-size: 7pt;
    line-height: 1.45;
  }

  .cv-list li {
    padding-block: 1.5mm;
  }

  .cv-list strong {
    font-size: 7.3pt;
  }

  .cv-list span {
    font-size: 6.7pt;
  }

  .cv-organisation h3 {
    margin-bottom: 1.5mm;
    font-size: 8pt;
  }

  .cv-organisation > p {
    font-size: 7.2pt;
    line-height: 1.45;
  }

  .education-item,
  .certification-item {
    break-inside: avoid;
  }

  .cv-section + .cv-section {
    margin-top: 5.5mm;
  }

  a {
    text-decoration: none;
  }
}
