:root {
  color-scheme: dark;
  --background: #111412;
  --panel: #181d19;
  --ink: #f0f1e9;
  --subtle: #bdc7bd;
  --accent: #ffad64;
  --line: #363f36;
  --layout: 1160px;
  --gutter: clamp(20px, 5vw, 72px);
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  line-height: 1.55;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--ink); }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, h4, figure, dd { margin: 0; }
button { font: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
[id] { scroll-margin-top: 96px; }

.container { width: min(var(--layout), calc(100% - 2 * var(--gutter))); margin-inline: auto; }

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 5;
  padding: 0.5rem 1rem;
  transform: translateY(-160%);
  background: var(--accent);
  color: #111412;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 2;
  border-bottom: 1px solid var(--line);
  background: #111412f5;
}

.header-layout {
  min-height: 73px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.wordmark { width: max-content; font-size: 1.12rem; font-weight: 730; letter-spacing: -0.035em; line-height: 1.1; white-space: nowrap; }
.primary-nav { display: flex; align-items: center; gap: clamp(16px, 4vw, 42px); }
.primary-nav a, .site-footer a, .site-footer span { color: var(--subtle); font-size: 0.94rem; }
.primary-nav a:hover, .header-linkedin:hover, .site-footer a:hover { color: var(--accent); }

.header-actions { display: flex; align-items: center; justify-self: end; gap: 15px; }
.header-linkedin { display: inline-flex; align-items: center; min-height: 32px; color: var(--subtle); font-size: 0.875rem; white-space: nowrap; }

.language {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 650;
  letter-spacing: 0.035em;
}
.language > * { display: grid; place-items: center; min-width: 35px; min-height: 32px; padding-inline: 3px; }
.language [aria-current] { background: var(--accent); color: #111412; border-radius: 2px; }
.language a:hover { color: var(--accent); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  align-items: center;
  gap: clamp(28px, 8vw, 116px);
  padding-block: clamp(66px, 10vw, 124px);
}

.eyebrow, .date {
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 650;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -0.052em;
  font-weight: 720;
  margin-block: 15px 19px;
  white-space: nowrap;
}
.introduction { max-width: 45ch; color: var(--subtle); font-size: clamp(1.08rem, 1.8vw, 1.26rem); }

.hero-actions, .contact-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hero-actions { margin-top: 30px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 45px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 680;
  cursor: pointer;
}
.button:hover { border-color: var(--accent); }
.button.primary { border-color: var(--accent); background: var(--accent); color: #111412; }
.button.primary:hover { background: #ffc18a; }
.email-action { max-width: 100%; overflow-wrap: anywhere; }

.profile-photo {
  position: relative;
  justify-self: end;
  width: min(100%, 382px);
  border: 1px solid var(--line);
  padding: 15px;
  border-radius: 5px;
  background: var(--panel);
}
.profile-photo::before {
  content: "";
  position: absolute;
  width: 36%;
  height: 1px;
  background: var(--accent);
  inset-block-start: -1px;
  inset-inline-start: 16px;
}
.photo-frame { overflow: hidden; border-radius: 2px; aspect-ratio: 1; background: #080a09; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.profile-photo figcaption { display: flex; align-items: center; gap: 9px; padding: 14px 1px 0; color: var(--subtle); font-size: 0.94rem; }
.location-mark { width: 8px; height: 8px; border: 1px solid var(--accent); transform: rotate(45deg); }

.content-section { padding-block: clamp(40px, 6.5vw, 80px); border-top: 1px solid var(--line); }
.section-heading { margin-bottom: clamp(25px, 4.2vw, 43px); }
h2 { font-size: clamp(2.15rem, 5.2vw, 4.4rem); font-weight: 740; letter-spacing: -0.07em; line-height: 1.05; }
h3 { letter-spacing: -0.04em; line-height: 1.22; }

.on-premises {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(22px, 4vw, 56px);
  margin-bottom: 13px;
  padding: clamp(19px, 3.5vw, 39px);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 5px;
  background: var(--panel);
}
.on-premises h3 { font-size: clamp(1.55rem, 3vw, 2.3rem); margin-bottom: 10px; }
.on-premises p, .on-premises dd { color: var(--subtle); }
.on-premises dl { display: grid; gap: 12px; margin: 0; }
.on-premises dt { margin-bottom: 3px; font-weight: 675; }
.on-premises dl > div + div { border-top: 1px solid var(--line); padding-top: 12px; }

.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; align-items: start; }

.project-card {
  display: grid;
  grid-template-rows: minmax(225px, auto) auto;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel);
}

.project-main { padding: clamp(16px, 2.2vw, 23px); }
.project-main h3 { font-size: clamp(1.39rem, 2.5vw, 1.88rem); margin-block: 12px; }
.project-main > p:last-child, .project-details p, .experience-row p:not(.date), .qualification-card li > p:last-child, .contact p { color: var(--subtle); }

details { border-top: 1px solid var(--line); }
summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-height: 49px;
  padding: 10px clamp(16px, 2.2vw, 23px);
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary:hover { color: var(--accent); }
summary:focus-visible { outline-offset: -4px; }
.detail-symbol { position: relative; width: 13px; height: 13px; flex-shrink: 0; color: var(--accent); }
.detail-symbol::before, .detail-symbol::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 0;
  width: 13px;
  height: 1px;
  background: currentColor;
}
.detail-symbol::after { transform: rotate(90deg); }
details[open] .detail-symbol::after { transform: none; }
.project-details { padding: 2px clamp(16px, 2.2vw, 23px) 22px; }
.project-details h4 { margin-block: 12px 4px; font-size: 1rem; }
.tools-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 7px 0 0; padding: 0; list-style: none; }
.tools-list li { padding: 2px 7px; border: 1px solid var(--line); border-radius: 3px; color: var(--subtle); font-size: 0.875rem; }

.career-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); align-items: start; gap: clamp(24px, 4vw, 58px); }
.experience-list, .qualification-card ul { margin: 0; padding: 0; list-style: none; }
.experience-row {
  display: grid;
  grid-template-columns: 123px minmax(0, 1fr);
  gap: 13px;
  padding-block: 21px;
  border-top: 1px solid var(--line);
}
.experience-row h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
.experience-row p.date { margin-top: 3px; }
.experience-row p.employer { margin-block: 5px 8px; color: var(--ink); font-weight: 620; }
.employer span { color: var(--subtle); font-weight: 400; }

.application-scope { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); }
.application-scope h4 { margin-bottom: 12px; font-size: 1rem; }
.scope-group + .scope-group { margin-top: 14px; }
.scope-group h5 { margin: 0; color: var(--ink); font-size: 0.94rem; font-weight: 650; }
.scope-group .tools-list { margin-top: 6px; }

.qualifications { display: grid; gap: 13px; }
.qualification-card { padding: 20px; border: 1px solid var(--line); border-radius: 5px; background: var(--panel); }
.qualification-card h2 { margin-bottom: 17px; font-size: 1.6rem; letter-spacing: -0.045em; }
.qualification-card h3 { font-size: 1.04rem; margin-block: 4px; }
.qualification-card ul { display: grid; gap: 18px; }
.languages { margin: 0; }
.languages > div { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 3px 8px; }
.languages > div + div { margin-top: 9px; }
.languages dd { color: var(--subtle); }

.contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: clamp(30px, 6vw, 73px);
  padding: clamp(20px, 4vw, 46px);
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel);
}
.contact p { margin-top: 12px; }
.site-footer { display: flex; justify-content: space-between; gap: 12px; padding-block: 19px 28px; border-top: 1px solid var(--line); }

@media (max-width: 900px) {
  .project-grid { grid-template-columns: 1fr; }
  .project-card { grid-template-rows: auto auto; }
}

@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(2.2rem, 9vw, 4rem); }
  .profile-photo { justify-self: start; width: min(100%, 300px); }
  .on-premises { grid-template-columns: 1fr; }
  .career-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  [id] { scroll-margin-top: 112px; }
  .header-layout { grid-template-columns: 1fr 1fr; grid-template-rows: 52px 33px; gap: 0; }
  .primary-nav { grid-column: 1 / -1; grid-row: 2; gap: 22px; }
  .header-actions { grid-column: 2; grid-row: 1; gap: 10px; }
}

@media (max-width: 475px) {
  .experience-row { grid-template-columns: 1fr; gap: 5px; }
  .site-footer { flex-wrap: wrap; }
}

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

@media print {
  :root {
    color-scheme: light;
    --background: white;
    --panel: white;
    --ink: #161616;
    --subtle: #383838;
    --accent: #252525;
    --line: #b7b7b7;
  }
  .site-header, .skip-link, .hero-actions, .expertise, .contact-actions button, .site-footer { display: none; }
  .container { width: 100%; }
  .hero { grid-template-columns: 1fr 100px; gap: 20px; padding: 0 0 22px; }
  .hero h1 { margin-block: 8px 10px; font-size: 39pt; }
  .introduction { font-size: 10pt; }
  .profile-photo { width: 100px; padding: 2px; border: 0; }
  .profile-photo figcaption { display: none; }
  .content-section { padding-block: 15px; }
  .section-heading { margin-bottom: 12px; }
  .section-heading h2, .contact h2 { font-size: 21pt; }
  .career-grid { grid-template-columns: 1fr 210px; gap: 15px; }
  .experience-row { grid-template-columns: 82px 1fr; padding-block: 8px; }
  .experience-row h3 { font-size: 12pt; }
  .experience-row p, .qualification-card p, .languages { font-size: 9pt; }
  .application-scope { margin-top: 8px; padding-top: 7px; }
  .application-scope h4 { margin-bottom: 6px; font-size: 10pt; }
  .scope-group + .scope-group { margin-top: 6px; }
  .scope-group h5, .scope-group .tools-list li { font-size: 8pt; }
  .scope-group .tools-list { gap: 2px 4px; }
  .qualification-card { padding: 8px; }
  .qualification-card h2 { font-size: 14pt; margin-bottom: 7px; }
  .qualification-card ul { gap: 8px; }
  .experience-row, .qualification-card, .contact { break-inside: avoid; }
  .contact { margin: 0; padding: 14px 0 0; border: 0; border-top: 1px solid var(--line); }
  .contact p { font-size: 10pt; }
  .contact-actions .email-action { min-height: 0; padding: 0; border: 0; color: var(--ink); background: transparent; }
}
