/* JENSEN-inspired theme for cv.e2k.dk
 * Standalone stylesheet — load instead of styles.css to test.
 * Design language: industrial automation aesthetic, blue/yellow flow,
 * crisp bordered cards, condensed display type, process-diagram cues. */

@import url("https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;700&family=Barlow+Condensed:wght@600;700;800&display=swap");

:root {
  --blue: #009ade;
  --blue-deep: #00557e;
  --blue-ink: #062a3f;
  --blue-soft: #e6f4fb;
  --blue-line: #c8e4f3;
  --yellow: #ffc20e;
  --yellow-deep: #d99a00;
  --yellow-soft: #fff7d6;

  --paper: #ffffff;
  --paper-warm: #f8fafc;
  --line: #d8dee6;
  --line-strong: #b9c3cf;
  --text: #0a2540;
  --text-soft: #4d5b6e;
  --muted: #6b7a90;

  --display: "Barlow Condensed", "Inter Tight", system-ui, sans-serif;
  --body: "Barlow", "Atkinson Hyperlegible", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  --max: 76rem;

  --step--1: clamp(0.85rem, 0.82rem + 0.15vw, 0.92rem);
  --step-0: clamp(0.98rem, 0.94rem + 0.2vw, 1.05rem);
  --step-1: clamp(1.1rem, 1rem + 0.4vw, 1.25rem);
  --step-2: clamp(1.4rem, 1.1rem + 1vw, 1.75rem);
  --step-3: clamp(2rem, 1.4rem + 2vw, 2.85rem);
  --step-4: clamp(2.6rem, 1.6rem + 3.5vw, 4.25rem);

  --shadow-card: 0 1px 0 var(--line), 0 12px 28px -22px rgba(6, 42, 63, 0.18);
}

[data-theme] {
  /* Theme toggle is harmless here; this stylesheet is intentionally a single
     light, high-contrast theme — Jensen visual language is not a dark theme. */
}

/* ---------- reset + base ---------- */

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0ms !important;
    transition-duration: 0ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  background-image:
    linear-gradient(180deg, var(--blue-soft) 0, transparent 320px),
    radial-gradient(1200px 320px at 100% -100px, rgba(0, 154, 222, 0.12), transparent 60%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.noise {
  display: none;
}

.mono {
  font-family: var(--mono);
  font-size: 0.9em;
  letter-spacing: 0;
}

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

a {
  color: var(--blue-deep);
  text-decoration: underline;
  text-decoration-color: var(--blue-line);
  text-underline-offset: 3px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

a:hover {
  color: var(--blue);
  text-decoration-color: var(--yellow);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  border-radius: 2px;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: 2px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--text);
  padding: 0.5rem 0.95rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.btn:hover {
  background: var(--blue-soft);
  border-color: var(--blue);
  color: var(--blue-deep);
}

.btn:active {
  transform: translateY(1px);
}

.btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.btn--accent {
  background: var(--yellow);
  border-color: var(--yellow-deep);
  color: var(--blue-ink);
}

.btn--accent:hover {
  background: var(--yellow-deep);
  border-color: var(--yellow-deep);
  color: #fff;
}

.btn--compact {
  padding: 0.3rem 0.7rem;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

/* ---------- main + sections ---------- */

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 1.5rem 3rem;
  counter-reset: sec;
}

.section {
  position: relative;
  padding: 3rem 0 2.5rem;
  border-top: 1px solid var(--line);
}

.section:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.section__head {
  margin-bottom: 1.5rem;
  display: grid;
  gap: 0.4rem;
  align-items: end;
}

@media (min-width: 720px) {
  .section__head {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

.section__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--step-3);
  line-height: 1;
  letter-spacing: -0.005em;
  color: var(--blue-ink);
}

.section:not(.contact-panel):not(.section--portfolio) {
  counter-increment: sec;
}

.section:not(.contact-panel):not(.section--portfolio) .section__title::before {
  content: counter(sec, decimal-leading-zero);
  display: inline-block;
  margin-right: 0.85rem;
  font-family: var(--mono);
  font-size: 0.55em;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--blue);
  vertical-align: 0.55em;
  background: var(--blue-soft);
  padding: 0.25em 0.55em;
  border-radius: 2px;
  border: 1px solid var(--blue-line);
}

.section__lede {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  font-family: var(--mono);
  letter-spacing: 0.02em;
}

.prose p {
  margin: 0 0 1rem;
  max-width: 68ch;
}

.prose p:last-child {
  margin-bottom: 0;
}

.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- contact strip: top-of-page utility bar ---------- */

.contact-panel {
  padding: 0 0 0.85rem;
  margin-top: 0;
  margin-bottom: 0;
  border: 0;
  border-bottom: 1px dashed var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.contact-chips {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.78rem;
  padding: 0.25rem 0.65rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-soft);
  border-radius: 999px;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.chip:hover {
  border-color: var(--blue);
  background: var(--blue-soft);
  color: var(--blue-deep);
}

/* ---------- hero band: pipeline + parody tagline + stats ---------- */

.hero {
  position: relative;
  margin: 0.75rem 0 1.5rem;
  padding: 1.75rem 1.5rem 1.5rem;
  border: 1px solid var(--blue-line);
  border-radius: 4px;
  background:
    repeating-linear-gradient(
      135deg,
      transparent 0 14px,
      rgba(0, 154, 222, 0.045) 14px 16px
    ),
    linear-gradient(180deg, #ffffff 0%, var(--blue-soft) 100%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 5rem;
  height: 4px;
  background: var(--yellow);
}

/* --- hero grid: identity + tagline on the left, portrait exhibit on the right --- */

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(180px, 26vw, 240px);
  gap: 1.5rem 2rem;
  align-items: start;
  margin: 0 0 1.5rem;
}

.hero__main {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
}

.hero__identity-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.hero__name {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem);
  letter-spacing: 0.005em;
  line-height: 1.05;
  color: var(--blue-ink);
  cursor: pointer;
}

.hero__role {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* exhibit: portrait framed like a lab/industrial documentation card */

.hero__exhibit {
  margin: 0;
  position: relative;
  background: #ffffff;
  border: 1px solid var(--blue-line);
  padding: 0.5rem 0.5rem 0.55rem;
  box-shadow: 0 3px 0 var(--blue-deep);
  align-self: start;
}

.hero__exhibit::before,
.hero__exhibit::after {
  content: "";
  position: absolute;
  background: var(--yellow);
}

.hero__exhibit::before {
  left: -2px;
  top: -2px;
  width: 26px;
  height: 4px;
}

.hero__exhibit::after {
  left: -2px;
  top: -2px;
  width: 4px;
  height: 26px;
}

.hero__portrait {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--blue-soft);
}

.hero__exhibit-caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0.5rem 0 0;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__exhibit-fig {
  color: var(--blue-deep);
  font-weight: 600;
}

.hero__exhibit-meta {
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

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

  .hero__exhibit {
    max-width: 220px;
    justify-self: start;
  }
}

/* --- pipeline of icon stations connected by dashed yellow flow,
       doubles as the primary site nav. Sits above the hero box. --- */

.pipeline-nav {
  margin: 1.25rem 0;
}

.pipeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: flex-start;
  gap: 0;
  counter-reset: station;
  --icon-size: 56px;
  --chevron: 7px;
}

.pipeline__step {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  justify-content: center;
  position: relative;
  counter-increment: station;
}

/* dashed yellow flow line, ends just before the chevron base */
.pipeline__step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: calc(var(--icon-size) / 2 - 1.5px);
  left: calc(50% + var(--icon-size) / 2 + 4px);
  right: calc(-50% + var(--icon-size) / 2 + var(--chevron) + 1px);
  height: 0;
  border-top: 3px dashed var(--yellow);
  pointer-events: none;
}

/* chevron arrowhead pointing to next icon */
.pipeline__step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: calc(var(--icon-size) / 2 - 5px);
  right: calc(-50% + var(--icon-size) / 2);
  width: 0;
  height: 0;
  border-left: var(--chevron) solid var(--yellow);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  pointer-events: none;
  z-index: 1;
}

.pipeline__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: inherit;
  border-radius: 4px;
  padding: 4px 6px 2px;
  transition: transform 0.15s ease;
}

.pipeline__link:hover {
  transform: translateY(-1px);
}

.pipeline__link:hover .pipeline__icon {
  background: var(--blue-deep);
  box-shadow: 0 3px 0 var(--blue-deep);
}

.pipeline__link:hover .pipeline__label::before {
  color: var(--yellow-deep);
}

.pipeline__link:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

.pipeline__icon {
  width: var(--icon-size);
  height: var(--icon-size);
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: #ffffff;
  border-radius: 4px;
  box-shadow: 0 2px 0 var(--blue-deep);
  position: relative;
  z-index: 1;
  transition: background 0.15s ease;
}

.pipeline__icon svg {
  width: 30px;
  height: 30px;
  display: block;
}

.pipeline__label {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-deep);
  text-align: center;
  line-height: 1.3;
  white-space: nowrap;
}

.pipeline__label::before {
  content: counter(station, decimal-leading-zero) ".\00a0";
  color: var(--yellow-deep);
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: color 0.15s ease;
}

/* --- parody tagline --- */

.hero__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.8rem, 1.2rem + 2.6vw, 3.1rem);
  line-height: 1.04;
  letter-spacing: -0.005em;
  color: var(--blue);
  max-width: 18ch;
}

.hero__highlight {
  color: var(--blue-ink);
  font-weight: 800;
  font-style: normal;
}

.hero__motto {
  margin: -0.5rem 0 0;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--text-soft);
  align-self: start;
}

.hero__motto::before {
  content: "// ";
  color: var(--muted);
  opacity: 0.7;
}

@media (max-width: 600px) {
  .pipeline {
    --icon-size: 44px;
    --chevron: 6px;
  }
  .pipeline__icon svg {
    width: 24px;
    height: 24px;
  }
  .pipeline__label {
    font-size: 0.62rem;
    letter-spacing: 0.06em;
  }
}

/* ---------- profile section: full-width 2-column hero ---------- */

#profile {
  padding-top: 1.5rem;
}

#profile .prose > p:first-child {
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--step-2);
  line-height: 1.18;
  color: var(--blue-ink);
  letter-spacing: -0.005em;
  margin: 0 0 1rem;
  max-width: none;
}

#profile .prose > p:first-child::after {
  content: "";
  display: block;
  width: 3rem;
  height: 4px;
  background: var(--yellow);
  margin-top: 1rem;
}

#profile .prose > p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-soft);
  max-width: 60ch;
}

/* Desktop: split into two columns using the full section width.
   Lede paragraph occupies the left column; supporting paragraphs
   stack in the right column starting on the same row. */
@media (min-width: 720px) {
  #profile {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    column-gap: clamp(1.5rem, 3vw, 3.25rem);
    row-gap: 0;
    align-items: start;
  }

  #profile .section__head {
    grid-column: 1 / -1;
    grid-row: 1;
    margin-bottom: 1.5rem;
  }

  #profile .prose {
    display: contents;
  }

  #profile .prose > p {
    grid-column: 2;
    margin: 0 0 1rem;
  }

  #profile .prose > p:last-child {
    margin-bottom: 0;
  }

  #profile .prose > p:first-child {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    margin: 0;
  }
}

/* ---------- AI section as a process pipeline ---------- */

#ai {
  background: var(--blue-soft);
  border: 1px solid var(--blue-line);
  border-radius: 4px;
  padding: 2.25rem 1.75rem 2.5rem;
  margin: 1rem 0;
}

#ai.section {
  border-top: 1px solid var(--blue-line);
}

#ai .section__title {
  color: var(--blue-deep);
}

#ai .bullet-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  counter-reset: pipe;
}

@media (min-width: 820px) {
  #ai .bullet-list {
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.5rem;
  }
}

#ai .bullet-list li {
  position: relative;
  margin: 0;
  padding: 1rem 1.1rem 1rem 4.25rem;
  background: #fff;
  border: 1px solid var(--blue-line);
  border-radius: 3px;
  font-size: 0.95rem;
  line-height: 1.55;
  counter-increment: pipe;
  box-shadow: var(--shadow-card);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

#ai .bullet-list li:hover {
  transform: translateY(-2px);
  border-color: var(--blue);
  box-shadow: 0 1px 0 var(--blue), 0 18px 32px -20px rgba(0, 85, 126, 0.35);
}

#ai .bullet-list li::marker {
  content: none;
}

#ai .bullet-list li::before {
  content: counter(pipe, decimal-leading-zero);
  position: absolute;
  left: 0.75rem;
  top: 0.85rem;
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: #fff;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.04em;
  border-radius: 3px;
  box-shadow: 0 2px 0 var(--blue-deep);
}

/* dashed orange flow connectors between cards (desktop only) */
@media (min-width: 820px) {
  #ai .bullet-list li:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -1.2rem;
    top: 50%;
    width: 1.2rem;
    height: 0;
    border-top: 2px dashed var(--yellow);
    transform: translateY(-50%);
  }
  #ai .bullet-list li:nth-child(2n)::after {
    display: none;
  }
}

/* ---------- featured system ---------- */

#featured {
  position: relative;
}

#featured .section__head {
  padding-left: 1.25rem;
  border-left: 6px solid var(--yellow);
}

.case-hero {
  position: relative;
  margin: 1.5rem 0 1.25rem;
  background: #ffffff;
  border: 1px solid var(--blue-line);
  padding: 0.5rem 0.5rem 0.65rem;
  box-shadow: 0 3px 0 var(--blue-deep);
}

.case-hero::before,
.case-hero::after,
.case-screens__shot::before,
.case-screens__shot::after {
  content: "";
  position: absolute;
  background: var(--yellow);
  pointer-events: none;
}

.case-hero::before {
  left: -2px;
  top: -2px;
  width: 32px;
  height: 4px;
}

.case-hero::after {
  left: -2px;
  top: -2px;
  width: 4px;
  height: 32px;
}

.case-hero img,
.case-hero video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 380px;
  object-fit: cover;
  background: var(--blue-soft);
}

.case-hero--video video {
  max-height: 460px;
}

.case-hero figcaption,
.case-screens__shot figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.55rem;
  margin: 0.5rem 0 0;
  padding: 0 0.15rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.case-hero__fig {
  color: var(--blue-deep);
  font-weight: 700;
  flex: 0 0 auto;
}

.case-hero__meta {
  color: var(--muted);
}

.case-subhead {
  margin: 1.85rem 0 0.85rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.005em;
  color: var(--blue-ink);
}

.case-subhead::before {
  content: "▸ ";
  color: var(--yellow-deep);
  font-family: var(--mono);
  font-weight: 700;
}

.ai-tools-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  counter-reset: ai-tool;
  display: grid;
  gap: 0.55rem;
}

.ai-tools-list li {
  counter-increment: ai-tool;
  position: relative;
  padding: 0.7rem 0.95rem 0.75rem 2.85rem;
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--yellow);
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text);
}

.ai-tools-list li::before {
  content: counter(ai-tool, decimal-leading-zero);
  position: absolute;
  left: 0.95rem;
  top: 0.7rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--blue-deep);
  letter-spacing: 0.04em;
}

.ai-tools-list__title {
  font-weight: 700;
  color: var(--blue-ink);
}

.case-screens {
  list-style: none;
  margin: 1rem 0 1.25rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.case-screens > li {
  margin: 0;
}

.case-screens__shot {
  position: relative;
  margin: 0;
  background: #ffffff;
  border: 1px solid var(--blue-line);
  padding: 0.4rem 0.4rem 0.5rem;
  box-shadow: 0 2px 0 var(--blue-deep);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.case-screens__shot::before {
  left: -2px;
  top: -2px;
  width: 22px;
  height: 3px;
}

.case-screens__shot::after {
  left: -2px;
  top: -2px;
  width: 3px;
  height: 22px;
}

.case-screens__shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--blue-soft);
}

#featured .tech-line {
  margin-top: 1rem;
}

/* ---------- experience: timeline rail ---------- */

#experience .job {
  position: relative;
  padding: 1.75rem 0 1.75rem 2.75rem;
  border-top: 0;
}

#experience .job::before {
  content: "";
  position: absolute;
  left: 0.7rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: repeating-linear-gradient(
    to bottom,
    var(--yellow) 0 8px,
    transparent 8px 14px
  );
}

#experience .job::after {
  content: "";
  position: absolute;
  left: 0;
  top: 1.85rem;
  width: 1.4rem;
  height: 1.4rem;
  background: var(--blue);
  border: 3px solid #fff;
  outline: 1px solid var(--blue-line);
  border-radius: 2px;
  box-shadow: 0 2px 0 var(--blue-deep);
}

#experience .job:first-of-type::before {
  top: 0.5rem;
}

#experience .job--compact::after {
  background: var(--yellow);
  box-shadow: 0 2px 0 var(--yellow-deep);
}

.job__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem 1rem;
  margin-bottom: 0.5rem;
}

.job__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--step-2);
  line-height: 1.05;
  color: var(--blue-ink);
}

.job__dates {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--muted);
  white-space: nowrap;
  background: var(--paper-warm);
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 2px;
}

.job__subhead {
  margin: 1rem 0 0.5rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}

.bullet-list {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}

.bullet-list li {
  margin-bottom: 0.5rem;
  position: relative;
}

.bullet-list li::marker {
  color: var(--yellow-deep);
}

.tech-line {
  margin: 1.25rem 0 0;
  font-size: 0.88rem;
  color: var(--text-soft);
  background: var(--paper-warm);
  border: 1px dashed var(--line-strong);
  border-radius: 2px;
  padding: 0.75rem 0.95rem;
  line-height: 1.6;
}

.tech-line__label {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
}

.compact-roles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.compact-roles li {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue-line);
  padding: 0.85rem 1rem;
  border-radius: 2px;
  font-size: 0.95rem;
}

.compact-roles li strong {
  color: var(--blue-deep);
}

/* ---------- skills: station grid (Washroom Technology vibe) ---------- */

#skills .skill-grid {
  margin: 0;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.skill-block {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: var(--shadow-card);
}

.skill-block:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 1px 0 var(--blue), 0 16px 30px -20px rgba(0, 85, 126, 0.3);
}

.skill-block dt {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--blue);
  color: #fff;
  padding: 0.6rem 0.95rem;
  border-bottom: 3px solid var(--blue-deep);
}

.skill-block dd {
  margin: 0;
  padding: 0.85rem 0.95rem 1rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-soft);
  flex: 1;
}

/* alternate accent every 3rd block — like the highlighted nodes in the diagram */
.skill-block:nth-child(3n) dt {
  background: var(--yellow);
  color: var(--blue-ink);
  border-bottom-color: var(--yellow-deep);
}

/* ---------- languages + education split ---------- */

.section--split {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .section--split {
    grid-template-columns: 1fr 1fr;
  }
}

.split-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 1.25rem 1.4rem 1.4rem;
  position: relative;
  box-shadow: var(--shadow-card);
}

.split-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 4px;
  background: var(--blue);
}

.split-card:nth-child(2)::before {
  background: var(--yellow);
}

.split-card__title {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.02em;
  color: var(--blue-ink);
}

.plain-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.plain-list li {
  padding: 0.4rem 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.95rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.plain-list li:last-child {
  border-bottom: 0;
}

/* ---------- portfolio ---------- */

.section--portfolio .section__title {
  color: var(--blue-ink);
}

.portfolio-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.portfolio-slot {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 1rem;
  min-height: 12rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  position: relative;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: var(--shadow-card);
}

.portfolio-slot::before {
  content: "";
  position: absolute;
  left: -1px;
  top: -1px;
  bottom: -1px;
  width: 4px;
  background: var(--blue);
}

.portfolio-slot:nth-child(2)::before {
  background: var(--yellow);
}

.portfolio-slot:nth-child(3)::before {
  background: var(--blue-deep);
}

.portfolio-slot:hover {
  transform: translateY(-3px);
  border-color: var(--blue);
  box-shadow: 0 1px 0 var(--blue), 0 20px 36px -22px rgba(0, 85, 126, 0.35);
}

.portfolio-slot__frame {
  flex: 1;
  min-height: 6rem;
  border-radius: 2px;
  background:
    repeating-linear-gradient(
      135deg,
      var(--blue-soft) 0 8px,
      transparent 8px 16px
    ),
    var(--paper-warm);
  border: 1px dashed var(--blue-line);
}

.portfolio-slot__label {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--blue);
  text-transform: uppercase;
}

.portfolio-slot__hint {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

/* filled portfolio card (links to a real case study) */

.portfolio-slot--filled {
  padding: 0;
  overflow: hidden;
}

.portfolio-slot--filled::before {
  background: var(--yellow);
}

.portfolio-slot__link {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0;
  height: 100%;
  color: inherit;
  text-decoration: none;
  background-image: none;
}

.portfolio-slot__media {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--blue-soft);
  border-bottom: 1px solid var(--blue-line);
}

.portfolio-slot__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.portfolio-slot--filled:hover .portfolio-slot__media img {
  transform: scale(1.03);
}

.portfolio-slot__link > p,
.portfolio-slot__link > h3,
.portfolio-slot__link > span {
  margin-left: 1rem;
  margin-right: 1rem;
}

.portfolio-slot__link > .portfolio-slot__label {
  margin-top: 0.85rem;
}

.portfolio-slot__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.005em;
  color: var(--blue-ink);
  line-height: 1.25;
}

.portfolio-slot__lede {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text);
}

.portfolio-slot__cta {
  margin-top: auto;
  margin-bottom: 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--blue-deep);
  text-transform: uppercase;
}

.portfolio-slot__cta span {
  display: inline-block;
  transition: transform 0.18s ease;
  margin-left: 0.15rem;
}

.portfolio-slot--filled:hover .portfolio-slot__cta span {
  transform: translateX(3px);
}

/* ---------- footer ---------- */

.site-footer {
  margin-top: 3rem;
  padding: 2.5rem 0 2rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--paper) 0, var(--blue-soft) 100%);
}

.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 0;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1.1fr 1fr;
    align-items: start;
  }
}

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

.footer-kicker {
  margin: 0 0 0.4rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}

.footer-col p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-soft);
  line-height: 1.55;
}

.footer-col--terminal {
  background: var(--blue-ink);
  color: #d6eef8;
  border-radius: 2px;
  padding: 1rem 1.1rem;
  border: 1px solid var(--blue-deep);
}

.footer-col--terminal .footer-kicker,
.footer-col--terminal p {
  color: #cfe5f1;
}

.terminal-line {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.55;
  color: #d6eef8;
  min-height: 3.25rem;
}

.terminal-line::before {
  content: "❯ ";
  color: var(--yellow);
}

.footer-meta {
  max-width: var(--max);
  margin: 1.75rem auto 0;
  padding: 1rem 0 0;
  border-top: 1px dashed var(--line);
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.7rem;
  align-items: center;
  font-family: var(--mono);
}

.footer-meta a {
  color: var(--blue-deep);
}

.sep {
  opacity: 0.5;
}

/* ---------- subtle entry animation ---------- */

@keyframes jensen-rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

main > section {
  animation: jensen-rise 0.45s ease both;
}

main > section:nth-of-type(1) { animation-delay: 0.02s; }
main > section:nth-of-type(2) { animation-delay: 0.06s; }
main > section:nth-of-type(3) { animation-delay: 0.1s; }
main > section:nth-of-type(4) { animation-delay: 0.14s; }
main > section:nth-of-type(5) { animation-delay: 0.18s; }
main > section:nth-of-type(6) { animation-delay: 0.22s; }
main > section:nth-of-type(7) { animation-delay: 0.26s; }
main > section:nth-of-type(8) { animation-delay: 0.3s; }

/* ---------- mobile tweaks ---------- */

@media (max-width: 760px) {
  #experience .job {
    padding-left: 2.25rem;
  }

  #experience .job::after {
    width: 1.1rem;
    height: 1.1rem;
  }
}

/* ---------- focus styling pass ---------- */

a:focus-visible,
.btn:focus-visible,
.chip:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ============================================ *
 * case study page (case-studies/*.html)        *
 * ============================================ */

body.case-study-page {
  background: var(--paper);
}

body.case-study-page main.case-study {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.case-study__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 920px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--line);
  background: rgba(246, 241, 231, 0.85);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.case-study__back,
.case-study__contact {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-deep);
  text-decoration: none;
  background-image: none;
}

.case-study__back:hover,
.case-study__contact:hover {
  color: var(--yellow-deep);
}

.case-study__breadcrumb {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.case-study__head {
  margin: 2.5rem 0 1.25rem;
  border-left: 6px solid var(--yellow);
  padding-left: 1.25rem;
}

.case-study__kicker {
  margin: 0 0 0.4rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-deep);
}

.case-study__title {
  margin: 0 0 0.65rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.75rem, 4.2vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--blue-ink);
}

.case-study__deck {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text);
  max-width: 60ch;
}

.case-study__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.5rem;
  margin: 1.75rem 0 1.5rem;
  padding: 0;
  border-top: 1px solid var(--blue-line);
  border-bottom: 1px solid var(--blue-line);
}

.case-study__fact {
  padding: 0.85rem 0.95rem;
  border-right: 1px solid var(--blue-line);
}

.case-study__fact:last-child {
  border-right: 0;
}

.case-study__fact dt {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin-bottom: 0.3rem;
}

.case-study__fact dd {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text);
}

@media (max-width: 720px) {
  .case-study__fact {
    border-right: 0;
    border-bottom: 1px solid var(--blue-line);
  }
  .case-study__fact:last-child {
    border-bottom: 0;
  }
}

.case-study__chapter {
  margin: 3rem 0 0;
  position: relative;
}

.case-study__chapter-num {
  margin: 0 0 0.35rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--yellow-deep);
}

.case-study__chapter-title {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.25rem, 2.6vw, 1.55rem);
  line-height: 1.2;
  color: var(--blue-ink);
  border-bottom: 1px solid var(--blue-line);
  padding-bottom: 0.6rem;
}

.case-study .prose p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  margin: 0 0 1rem;
}

.case-study .prose em {
  font-style: italic;
  color: var(--blue-ink);
}

/* themed lists inside the case study */

.pipeline-stages,
.failure-modes,
.proof-list {
  list-style: none;
  margin: 0.75rem 0 1.25rem;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.pipeline-stages li,
.failure-modes li {
  position: relative;
  padding: 0.7rem 0.95rem 0.75rem 2.2rem;
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  font-size: 0.94rem;
  line-height: 1.5;
}

.failure-modes li {
  border-left-color: var(--yellow);
}

.pipeline-stages li::before,
.failure-modes li::before {
  content: "▸";
  position: absolute;
  left: 0.85rem;
  top: 0.7rem;
  font-family: var(--mono);
  color: var(--yellow-deep);
  font-weight: 700;
}

.pipeline-stages li strong,
.failure-modes li strong,
.proof-list li strong {
  color: var(--blue-ink);
  font-weight: 700;
}

.proof-list {
  counter-reset: proof;
}

.proof-list li {
  counter-increment: proof;
  position: relative;
  padding: 0.6rem 0.9rem 0.65rem 2.6rem;
  background: var(--paper-warm);
  border: 1px solid var(--blue-line);
  font-size: 0.95rem;
  line-height: 1.55;
}

.proof-list li::before {
  content: counter(proof, decimal-leading-zero);
  position: absolute;
  left: 0.85rem;
  top: 0.6rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--yellow-deep);
}

/* AI components — each is its own little article */

.ai-component {
  margin: 1.25rem 0 1.75rem;
  padding: 1.1rem 1.25rem 1.1rem;
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  position: relative;
}

.ai-component:nth-of-type(odd) {
  border-left-color: var(--yellow);
}

.ai-component__head {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  margin: 0 0 0.55rem;
}

.ai-component__num {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--blue-deep);
  flex: 0 0 auto;
}

.ai-component__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.005em;
  color: var(--blue-ink);
  line-height: 1.25;
}

.ai-component .prose p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* image figures inside chapters */

.case-screen,
.case-screen-wide {
  margin: 1.25rem 0 1.5rem;
  padding: 0.45rem 0.45rem 0.55rem;
  background: #ffffff;
  border: 1px solid var(--blue-line);
  box-shadow: 0 2px 0 var(--blue-deep);
  position: relative;
}

.case-screen::before,
.case-screen::after,
.case-screen-wide::before,
.case-screen-wide::after {
  content: "";
  position: absolute;
  background: var(--yellow);
  pointer-events: none;
}

.case-screen::before,
.case-screen-wide::before {
  left: -2px;
  top: -2px;
  width: 28px;
  height: 4px;
}

.case-screen::after,
.case-screen-wide::after {
  left: -2px;
  top: -2px;
  width: 4px;
  height: 28px;
}

.case-screen img,
.case-screen-wide img,
.case-screen video,
.case-screen-wide video {
  display: block;
  width: 100%;
  height: auto;
  background: var(--blue-soft);
}

.case-screen--video video,
.case-screen-wide.case-screen--video video {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* portrait phone screenshots — two-up centred layout */

.case-phones {
  list-style: none;
  margin: 1.25rem 0 1.5rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 1.25rem;
}

.case-phones > li {
  margin: 0;
  flex: 0 1 clamp(180px, 30vw, 260px);
}

.case-phones__phone {
  margin: 0;
  position: relative;
  background: #ffffff;
  border: 1px solid var(--blue-line);
  padding: 0.4rem 0.4rem 0.5rem;
  box-shadow: 0 2px 0 var(--blue-deep);
}

.case-phones__phone::before,
.case-phones__phone::after {
  content: "";
  position: absolute;
  background: var(--yellow);
  pointer-events: none;
}

.case-phones__phone::before {
  left: -2px;
  top: -2px;
  width: 22px;
  height: 3px;
}

.case-phones__phone::after {
  left: -2px;
  top: -2px;
  width: 3px;
  height: 22px;
}

.case-phones__phone img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--blue-soft);
}

.case-phones__phone figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.55rem;
  margin: 0.5rem 0 0;
  padding: 0 0.15rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.case-screen-wide {
  margin-left: -1rem;
  margin-right: -1rem;
}

@media (min-width: 920px) {
  .case-screen-wide {
    margin-left: -3rem;
    margin-right: -3rem;
  }
}

.case-screen figcaption,
.case-screen-wide figcaption {
  margin: 0.55rem 0 0;
  padding: 0 0.15rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  line-height: 1.55;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.case-study__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 3rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
