:root {
  color-scheme: light;
  --background: #f6f4ef;
  --surface: #ffffff;
  --surface-subtle: #eef3f0;
  --ink: #17211d;
  --text: #34433c;
  --muted: #52625b;
  --border: #cbd5cf;
  --border-strong: #8da097;
  --accent: #0b5d4f;
  --accent-hover: #08483d;
  --accent-soft: #dcebe6;
  --focus: #a74412;
  --max-width: 72rem;
  --reading-width: 58rem;
  --radius: 0.75rem;
  --shadow: 0 1rem 2.5rem rgba(23, 33, 29, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  font-size: 100%;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--background);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-hover);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible,
textarea:focus-visible {
  outline: 0.2rem solid var(--focus);
  outline-offset: 0.2rem;
}

h1,
h2,
h3,
p,
ul,
figure {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-weight: 720;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

h1 {
  margin-bottom: 0.65rem;
  font-size: clamp(2.5rem, 7vw, 5.2rem);
}

h2 {
  margin-bottom: 1.25rem;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

h3 {
  margin-bottom: 0.7rem;
  font-size: 1.2rem;
}

p,
li {
  max-width: 72ch;
}

.container {
  width: min(calc(100% - 2.5rem), var(--max-width));
  margin-inline: auto;
}

.reading-width {
  max-width: var(--reading-width);
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  color: #ffffff;
  background: var(--accent);
  font-weight: 700;
  transform: translateY(-180%);
}

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

.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--border);
  background: rgba(246, 244, 239, 0.97);
}

.nav-shell {
  display: flex;
  min-height: 5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  min-height: 2.75rem;
  flex: 0 0 auto;
  flex-direction: column;
  justify-content: center;
  color: var(--ink);
  font-weight: 760;
  line-height: 1.2;
  text-decoration: none;
}

.brand small {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 620;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.15rem;
}

.site-header nav a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  border-radius: 0.35rem;
  padding: 0.45rem 0.65rem;
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 650;
  text-decoration: none;
}

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

.site-header nav .language-link {
  margin-left: 0.4rem;
  border: 1px solid var(--border-strong);
}

.hero {
  padding-block: clamp(4rem, 9vw, 7.5rem);
  background: var(--surface);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 13rem;
  align-items: center;
  gap: clamp(2rem, 7vw, 6rem);
}

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

.eyebrow {
  margin-bottom: 0.75rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  line-height: 1.4;
  text-transform: uppercase;
}

.role {
  margin-bottom: 1.75rem;
  color: var(--accent);
  font-size: clamp(1.15rem, 3vw, 1.55rem);
  font-weight: 720;
  line-height: 1.3;
}

.value-proposition {
  max-width: 56ch;
  margin-bottom: 0.8rem;
  color: var(--ink);
  font-size: clamp(1.2rem, 2.7vw, 1.6rem);
  font-weight: 560;
  line-height: 1.45;
}

.technical-line {
  margin-bottom: 1.5rem;
  color: var(--muted);
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.35rem;
  margin: 0 0 2rem;
  padding: 0;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 650;
  list-style: none;
}

.hero-facts li {
  position: relative;
}

.hero-facts li:not(:last-child)::after {
  position: absolute;
  right: -0.78rem;
  color: var(--border-strong);
  content: "·";
}

.hero-actions,
.case-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  min-height: 2.9rem;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  border-radius: 0.45rem;
  padding: 0.65rem 1rem;
  font-size: 0.94rem;
  font-weight: 760;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.button-primary {
  color: #ffffff;
  background: var(--accent);
}

.button-primary:hover {
  color: #ffffff;
  background: var(--accent-hover);
}

.button-secondary {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
}

.button-secondary:hover {
  color: #ffffff;
  background: var(--accent);
}

.text-link {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  font-weight: 740;
}

.profile-photo {
  width: 13rem;
  aspect-ratio: 1;
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  object-fit: cover;
}

.section {
  padding-block: clamp(4rem, 8vw, 6.5rem);
  background: var(--surface);
}

.section + .section {
  border-top: 1px solid var(--border);
}

.section-tinted {
  background: var(--surface-subtle);
}

.section-tight {
  padding-block: 3rem;
}

.section-heading {
  max-width: 46rem;
  margin-bottom: 2.5rem;
}

.section-heading > p:last-child {
  color: var(--muted);
  font-size: 1.06rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.skill-group {
  padding-top: 1rem;
  border-top: 0.22rem solid var(--accent);
}

.skill-group p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

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

.proof {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: var(--surface);
}

.proof p {
  margin-bottom: 0.65rem;
  font-size: 0.94rem;
}

.proof .result {
  margin-bottom: 0;
  color: var(--ink);
  font-weight: 720;
}

.experience-list {
  border-top: 1px solid var(--border-strong);
}

.experience-item {
  padding-block: 2rem;
  border-bottom: 1px solid var(--border);
}

.experience-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1.5rem;
}

.experience-heading h3 {
  margin-bottom: 0.2rem;
  font-size: 1.35rem;
}

.experience-heading h3 a {
  color: var(--ink);
}

.experience-heading p {
  margin-bottom: 0;
}

.date {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 720;
}

.context {
  margin: 0.85rem 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.experience-item ul,
.case-section ul,
.summary-panel ul {
  padding-left: 1.25rem;
}

.experience-item li,
.case-section li,
.summary-panel li {
  margin-bottom: 0.45rem;
}

.stack {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.stack span {
  margin-right: 0.35rem;
  color: var(--ink);
  font-weight: 780;
  text-transform: uppercase;
}

.section-action {
  margin: 1.5rem 0 0;
}

.heavents-summary,
.heavents-cv {
  background: var(--accent-soft);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: clamp(2rem, 7vw, 6rem);
}

.summary-panel,
.contact-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 4vw, 2rem);
  background: var(--surface);
}

.summary-panel ul {
  margin-bottom: 1.5rem;
}

.ai-note {
  margin-bottom: 1.5rem;
  border-left: 0.22rem solid var(--accent);
  padding-left: 1rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.contact-section {
  background: var(--ink);
}

.contact-section h2,
.contact-section .section-heading > p:last-child {
  color: #ffffff;
}

.contact-section .eyebrow {
  color: #9bd1c2;
}

.contact-card {
  color: var(--text);
  font-style: normal;
}

.contact-card p {
  margin: 1rem 0 0;
}

.site-footer {
  border-top: 1px solid #34433c;
  padding-block: 2.5rem;
  color: #dbe3df;
  background: var(--ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.footer-grid p {
  margin-bottom: 0;
  font-size: 0.88rem;
}

.footer-grid a {
  color: #ffffff;
}

.page-hero {
  padding-block: clamp(4rem, 9vw, 7rem);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.page-hero h1 {
  max-width: 18ch;
  font-size: clamp(2.35rem, 6vw, 4.6rem);
}

.page-intro {
  max-width: 61ch;
  margin-bottom: 1.5rem;
  color: var(--ink);
  font-size: clamp(1.15rem, 2.8vw, 1.45rem);
}

.timeline-note {
  max-width: 70ch;
  margin-bottom: 0;
  border-left: 0.22rem solid var(--accent);
  padding-left: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.downloads-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.download-link {
  display: flex;
  min-height: 4.4rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--border-strong);
  border-radius: 0.5rem;
  padding: 1rem;
  color: var(--ink);
  background: var(--surface);
  font-weight: 720;
  text-decoration: none;
}

.download-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.download-link small {
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

.detailed-skill p {
  font-size: 0.9rem;
}

.detailed-experience ul {
  margin-top: 1.2rem;
}

.compact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.compact-item {
  border-top: 0.18rem solid var(--border-strong);
  padding-top: 1rem;
}

.compact-item h3,
.compact-item p {
  margin-bottom: 0.45rem;
}

.compact-item p:last-child {
  color: var(--muted);
  font-size: 0.93rem;
}

.two-column-details {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr);
  gap: 3rem;
}

.education-item {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.education-item h3,
.education-item p {
  margin-bottom: 0.2rem;
}

.case-hero {
  background: linear-gradient(135deg, var(--surface) 0%, var(--accent-soft) 100%);
}

.case-hero h1 {
  max-width: 21ch;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.status-item {
  border: 1px solid var(--border);
  border-left: 0.28rem solid var(--accent);
  border-radius: 0.4rem;
  padding: 1.25rem;
  background: var(--surface);
}

.status-item h3,
.status-item p {
  margin-bottom: 0.45rem;
}

.status-item p {
  color: var(--muted);
  font-size: 0.93rem;
}

.case-content {
  padding-block: clamp(3rem, 7vw, 6rem);
}

.case-section {
  padding-block: 2.25rem;
  border-bottom: 1px solid var(--border);
}

.case-section:first-child {
  padding-top: 0;
}

.case-section:last-child {
  border-bottom: 0;
}

.case-section h2 {
  font-size: clamp(1.55rem, 3.5vw, 2.1rem);
}

.case-section p,
.case-section ul {
  max-width: 70ch;
}

.case-actions {
  margin-top: 1.5rem;
}

.demo-access-note {
  max-width: 62ch;
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.workflow-graphic {
  max-width: 52rem;
  margin: 2rem 0 0;
}

.workflow-graphic-preview {
  display: block;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 0.55rem;
  background: var(--surface);
}

.workflow-graphic img {
  display: block;
  width: 100%;
  height: auto;
}

.workflow-graphic figcaption {
  max-width: 70ch;
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.workflow-graphic-links {
  margin-bottom: 0;
  font-weight: 680;
}

.workflow-transcript {
  max-width: 70ch;
  margin-top: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 0.55rem;
  background: var(--surface);
}

.workflow-transcript summary {
  cursor: pointer;
  padding: 0.85rem 1rem;
  color: var(--ink);
  font-weight: 700;
}

.workflow-transcript[open] summary {
  border-bottom: 1px solid var(--border);
}

.workflow-transcript p,
.workflow-transcript ul {
  margin: 1rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.gallery figure {
  margin-bottom: 0;
  border: 1px solid var(--border);
  border-radius: 0.55rem;
  overflow: hidden;
  background: var(--surface);
}

.gallery a {
  display: block;
  background: var(--surface-subtle);
}

.gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.gallery figcaption {
  padding: 0.75rem 1rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 680;
}

.redirect-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 1.25rem;
}

.redirect-card {
  width: min(100%, 38rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 6vw, 3rem);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.redirect-card h1 {
  font-size: clamp(2.3rem, 8vw, 4rem);
}

@media (max-width: 56rem) {
  .nav-shell {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.7rem;
    padding-block: 0.85rem;
  }

  .site-header nav {
    width: 100%;
    justify-content: flex-start;
  }

  .site-header nav a {
    padding-inline: 0.55rem;
  }

  .site-header nav .language-link {
    margin-left: 0;
  }

  .skills-grid,
  .proofs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 42rem) {
  .container {
    width: min(calc(100% - 1.5rem), var(--max-width));
  }

  .site-header nav {
    gap: 0;
  }

  .site-header nav a {
    font-size: 0.82rem;
  }

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

  .profile-photo {
    width: 7.5rem;
    border-radius: 0.75rem;
  }

  .hero {
    padding-block: 2.75rem 3.5rem;
  }

  .hero-facts {
    display: grid;
    gap: 0.45rem;
  }

  .hero-facts li::after {
    display: none;
  }

  .hero-actions,
  .case-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button,
  .case-actions .button,
  .hero-actions .text-link,
  .case-actions .text-link {
    width: 100%;
    justify-content: center;
  }

  .skills-grid,
  .proofs-grid,
  .downloads-grid,
  .compact-grid,
  .status-grid,
  .gallery,
  .footer-grid,
  .two-column-details {
    grid-template-columns: 1fr;
  }

  .experience-heading {
    flex-direction: column;
    gap: 0.4rem;
  }

  .date {
    white-space: normal;
  }
}

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

@media print {
  @page {
    margin: 15mm;
  }

  body {
    color: #000000;
    background: #ffffff;
    font-size: 10pt;
  }

  .site-header,
  .site-footer,
  .hero-actions,
  .case-actions,
  .demo-access-note,
  .workflow-graphic-links,
  .skip-link {
    display: none;
  }

  .section,
  .page-hero,
  .case-content {
    padding-block: 1.2rem;
    background: #ffffff;
  }

  .experience-item,
  .proof,
  .skill-group,
  .case-section {
    break-inside: avoid;
  }

  a {
    color: #000000;
  }
}
