/* Hallmark · checked: portfolio content update · redesign: polish · built: the project · genre: editorial · theme: existing Heiko Deutsch brand · job: contact · hero: Stage · nav: retained portfolio navigation · footer: retained contact links · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R4 V3 · weakest: hierarchy, removed the Scrum credential from the hero and separated responsibilities from outcomes */
/* Hallmark · brand: retained cream surface, DM Serif Display and red identity, read from the existing portfolio source */
/* Hallmark · answered F8 · decorative reveal effects are disabled in the portfolio; the existing freelance interaction remains intact */
:root {
  --font-body: "Inter", sans-serif;
  --font-display: "DM Serif Display", serif;
  --color-paper: var(--background);
  --color-ink: var(--foreground);
  --color-muted: var(--muted-foreground);
  --color-rule: var(--border);
  --color-focus: var(--primary);
  --color-accent-ink: var(--primary-foreground);
  --color-clear: transparent;
  --space-0: 0;
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-28: 7rem;
  --portfolio-width: 75rem;
  --portfolio-gutter: clamp(1.25rem, 4vw, 3rem);
  --portfolio-hero-size: clamp(2.75rem, 4.8vw, 4.5rem);
}
html, body { overflow-x: clip; }
html { scroll-padding-top: var(--space-28); }
body { font-family: var(--font-body); caret-color: var(--color-ink); }
.container { max-width: var(--portfolio-width); margin-inline: auto; padding-inline: var(--portfolio-gutter); }
h1, h2, h3, h4 { overflow-wrap: break-word; min-width: 0; }
h1, h2 { text-wrap: balance; }
h1 span, h2 span { color: inherit !important; font-style: inherit !important; font-weight: inherit !important; }
p { text-wrap: pretty; }
:is(a, button, input, textarea, select, summary):focus-visible {
  outline: 2px solid var(--color-focus) !important;
  outline-offset: 4px;
  transition: none !important;
}
:is(button, input, textarea, select):disabled { opacity: .55; cursor: not-allowed; }
:is(a, button, summary):active { opacity: .85; }
:is(a, button) { white-space: nowrap; }
.transition-all { transition-property: color, background-color, border-color, opacity, transform !important; }
.uppercase, .section-label { text-transform: none !important; letter-spacing: normal !important; font-family: var(--font-body); }
header { background: var(--color-paper) !important; }
header nav { gap: var(--space-4); }
header nav > a { flex-shrink: 0; }
header nav > ul { gap: var(--space-5); }
header nav a { letter-spacing: normal !important; }
header button { min-width: 2.75rem; min-height: 2.75rem; }
.portfolio-hero { min-height: min(50rem, 100svh); padding-block: var(--space-28) var(--space-16); }
.portfolio-hero > .absolute { display: none; }
.portfolio-hero h1 { font-size: var(--portfolio-hero-size); line-height: 1.08; max-width: 16ch; font-family: var(--font-display); }
.portfolio-hero .hero-role { display: inline-block; font-size: .9375rem; color: var(--color-muted); font-weight: 500; }
.portfolio-hero p { line-height: 1.65; }
.portfolio-hero img { aspect-ratio: 4 / 5; }
.portfolio-hero [class~="space-y-8"] > :not(:last-child) { margin-bottom: var(--space-6); }
.hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); padding-top: var(--space-6); border-top: 1px solid var(--color-rule); }
.hero-facts span { display: block; color: var(--color-ink); font-size: 1.8rem; font-variant-numeric: tabular-nums; }
.hero-facts p { font-size: .8125rem; line-height: 1.5; margin-top: var(--space-2); }
section[id] { scroll-margin-top: var(--space-8); }
section[id] > .container > [class~="lg:grid-cols-12"] { grid-template-columns: minmax(0, 1fr); gap: var(--space-0); }
section[id] > .container > [class~="lg:grid-cols-12"] > [class~="lg:col-span-3"] { display: none; }
section[id] > .container > [class~="lg:grid-cols-12"] > [class~="lg:col-span-9"] { grid-column: auto; }
section[id] h2 { font-size: clamp(2rem, 3.1vw, 2.75rem); line-height: 1.15; margin-bottom: var(--space-10); }
section[id] p { font-size: 1rem; line-height: 1.7; }
section[id] .section-label { display: none; }
section[id] :is(.text-xs, [class~="text-[11px]"]) { font-size: .875rem; letter-spacing: normal; }
#about { padding-block: var(--space-20) var(--space-24); }
#about .max-w-2xl { max-width: 67ch; }
#about .space-y-5 > p + p { margin-top: var(--space-6); }
#skills { padding-block: var(--space-24); }
#experience { padding-block: var(--space-24); }
#experience h3 { font-size: 1.2rem; line-height: 1.4; }
#experience .career-entry { padding-bottom: var(--space-16); }
#experience .career-entry:last-child { padding-bottom: var(--space-0); }
#experience .career-entry > .flex { margin-bottom: var(--space-5); gap: var(--space-4); }
#experience .career-entry > .flex > span { font-size: .875rem; }
#experience .career-entry > .flex > div > p { color: var(--color-muted); font-weight: 500; }
.career-description { max-width: 68ch; color: var(--color-muted); margin-bottom: var(--space-5); }
.career-description p + p { margin-top: var(--space-5); }
.career-results { max-width: 68ch; margin-block: var(--space-6); border-block: 1px solid var(--color-rule); }
.career-results summary { font-size: 1rem; font-weight: 600; cursor: pointer; padding-block: var(--space-5); color: var(--color-ink); }
.career-results summary:hover { color: var(--color-focus); }
.career-results dl { margin: var(--space-0); }
.career-results dl > div { padding-block: var(--space-5) var(--space-6); border-top: 1px solid var(--color-rule); }
.career-results dt { font-size: 1rem; line-height: 1.5; font-weight: 600; margin-bottom: var(--space-2); }
.career-results dd { margin: var(--space-0); font-size: 1rem; line-height: 1.7; color: var(--color-muted); }
.career-results .results-note { margin-bottom: var(--space-5); font-size: .875rem; }
#certs { padding-block: var(--space-24); }
#certs h3 { text-transform: none; letter-spacing: normal; }
#projects { padding-block: var(--space-24); }
#projects h3 { line-height: 1.4; }
#projects h3 + p { color: var(--color-muted); }
#projects .space-y-6 > div { margin-bottom: var(--space-6); }
#projects .max-w-2xl, #projects .max-w-xl { max-width: 68ch; }
#projects a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.coursework-project { padding-block: var(--space-5); border-top: 1px solid var(--color-rule); max-width: 68ch; }
.coursework-project h3 { font-size: 1.5rem !important; }
.coursework-stats:empty { display: none; }
#contact { padding-block: var(--space-24); }
#contact .grid.lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#contact label { display: block; font-size: .875rem; }
#contact :is(input, textarea) { font-size: 1rem; min-height: 3rem; }
#contact button { min-height: 3rem; }
footer p { font-size: .875rem; }
@media (max-width: 74rem) {
  header nav > ul, header nav > [class~="lg:flex"] { display: none !important; }
  header nav > [class~="lg:hidden"] { display: flex !important; }
  header > [class~="lg:hidden"] { display: block !important; }
}
@media (max-width: 63.99rem) {
  .portfolio-hero { min-height: auto; padding-block: var(--space-28) var(--space-20); }
  .portfolio-hero h1 { max-width: 13ch; }
  .portfolio-hero [class~="lg:col-span-5"] { max-width: 30rem; width: 100%; margin-inline: auto; }
  .portfolio-hero img { max-height: 30rem; }
  section[id] { padding-block: var(--space-16); }
}
@media (max-width: 40rem) {
  header nav { height: 4.5rem; gap: var(--space-2); }
  header nav > a { gap: var(--space-2); }
  header nav > a > span { font-size: .8125rem; }
  header nav button { min-width: 2.25rem; }
  .portfolio-hero { padding-top: var(--space-24); }
  .portfolio-hero h1 { font-size: 2.8rem; }
  .hero-facts { gap: var(--space-3); }
  .hero-facts span { font-size: 1.5rem; }
  .hero-facts p { font-size: .75rem; }
  #contact .grid.lg\:grid-cols-2 { grid-template-columns: minmax(0, 1fr); }
  #experience .career-entry { padding-left: var(--space-5); }
  .career-entry .flex.flex-wrap span { max-width: 100%; overflow-wrap: break-word; }
  #contact a { white-space: normal; overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (max-width: 22rem) {
  header nav > a > span { display: none; }
}
