:root {
  color-scheme: light;
  --paper: #f7f6f2;
  --surface: #ffffff;
  --ink: #1b211d;
  --ink-2: #39433d;
  --muted: #66716a;
  --line: #dcdfd8;
  --line-strong: #c5cbc2;
  --accent: #40592f;
  --accent-dark: #2f4322;
  --accent-soft: #edf1e6;
  --dark: #1f2a24;
  --danger: #a3352a;
  --mono: ui-monospace, SFMono-Regular, Consolas, 'Liberation Mono', monospace;
  --sans: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --serif: Georgia, 'Times New Roman', serif;
  --radius: 4px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4, p, figure, dl, dd, ol, ul { margin-top: 0; }
::selection { background: var(--accent-soft); color: var(--accent-dark); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 20; top: 10px; left: 10px; padding: 10px 16px; transform: translateY(-160%); background: var(--accent); color: #fff; font-size: 13px; }
.skip-link:focus { transform: translateY(0); }
.section-wrap { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header { position: sticky; z-index: 6; top: 0; border-bottom: 1px solid var(--line); background: rgb(247 246 242 / 96%); backdrop-filter: blur(8px); }
.header-inner { width: min(1180px, calc(100% - 64px)); height: 86px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.wordmark-mark { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--ink); border-radius: 2px; font-family: var(--serif); font-size: 14px; letter-spacing: .01em; }
.wordmark-text { display: grid; line-height: 1.25; }
.wordmark-text strong { font-family: var(--serif); font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.wordmark-text small { color: var(--muted); font-size: 11px; }
.wordmark-dot { color: var(--accent); }
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a { color: var(--ink-2); font-size: 14px; text-decoration: none; padding-bottom: 2px; border-bottom: 1px solid transparent; transition: color .15s ease, border-color .15s ease; }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--accent-dark); border-bottom-color: var(--accent); }
.main-nav .nav-contact { padding: 9px 16px; border: 1px solid var(--ink); border-radius: 2px; color: var(--ink); font-weight: 600; }
.main-nav .nav-contact:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.menu-toggle { display: none; }

/* ---------- Buttons ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border: 1px solid transparent; border-radius: 3px; font-family: var(--sans); font-size: 13.5px; font-weight: 600; line-height: 1; text-decoration: none; cursor: pointer; transition: background .15s ease, color .15s ease, border-color .15s ease; }
.button-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.button-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.button-secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.button-secondary:hover { border-color: var(--ink); background: var(--surface); }
.button-light { background: #fff; color: var(--dark); border-color: #fff; }
.button-light:hover { background: var(--accent-soft); border-color: var(--accent-soft); }
.button-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.button-ghost:hover { border-color: var(--ink); background: var(--surface); }
.button:disabled { opacity: .55; cursor: progress; }
.text-button { margin-top: 12px; padding: 0; border: 0; background: none; color: var(--accent-dark); font: 600 12px var(--sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.32fr) minmax(280px, .68fr); align-items: start; gap: clamp(40px, 6vw, 80px); padding-top: 88px; padding-bottom: 88px; }
.eyebrow, .section-label, .card-label, .access-overline, .project-type, .cv-kicker, .contact-label, .step-index, .fact dt, .profile-facts dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow { margin: 0 0 22px; color: var(--muted); }
.hero h1 { margin: 0; font-family: var(--serif); font-size: clamp(38px, 4.6vw, 58px); font-weight: 600; letter-spacing: -.015em; line-height: 1.12; }
.hero-intro { max-width: 560px; margin: 22px 0 28px; color: var(--ink-2); font-size: 16.5px; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { max-width: 520px; margin: 26px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; line-height: 1.7; }

.profile-card { padding: 26px 26px 22px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); }
.card-label { margin: 0 0 6px; color: var(--muted); }
.profile-facts { margin: 0; }
.profile-facts > div { padding: 15px 0; border-top: 1px solid var(--line); }
.profile-facts > div:first-child { border-top: 0; padding-top: 10px; }
.profile-facts dt { margin: 0 0 4px; color: var(--muted); font-size: 9.5px; }
.profile-facts dd { margin: 0; color: var(--ink); font-size: 13.5px; line-height: 1.6; }
.card-link { display: inline-block; margin-top: 12px; color: var(--accent-dark); font-size: 12.5px; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--accent); padding-bottom: 1px; }
.card-link:hover { color: var(--accent); }

/* ---------- Sections ---------- */
.band { border-block: 1px solid var(--line); background: var(--surface); }
.section-grid { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); padding-top: 84px; padding-bottom: 84px; }
.band .section-grid { padding-top: 84px; padding-bottom: 84px; }
.section-label { padding-top: 9px; color: var(--muted); }
.section-title { margin: 0; font-family: var(--serif); font-size: clamp(28px, 3vw, 38px); font-weight: 600; letter-spacing: -.01em; line-height: 1.22; }
.section-subtitle { max-width: 640px; margin: 14px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.75; }
.intro-lead { max-width: 720px; margin: 18px 0 24px; font-family: var(--serif); font-size: 21px; line-height: 1.6; color: var(--ink-2); }
.intro-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.intro-columns p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.85; }
.traits-row { display: flex; flex-wrap: wrap; gap: 0 18px; margin: 26px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 12.5px; }
.traits-row li + li::before { margin-right: 18px; color: var(--line-strong); content: '·'; }

/* ---------- Skills ---------- */
.skill-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-top: 38px; }
.skill-column { padding-top: 18px; border-top: 1px solid var(--ink); }
.skill-column h3 { margin: 0 0 8px; font-size: 16.5px; font-weight: 600; letter-spacing: -.01em; }
.skill-column > p { min-height: 66px; margin: 0 0 16px; color: var(--muted); font-size: 13.5px; line-height: 1.7; }
.tag-list, .project-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tag-list li, .project-tags li { padding: 4px 8px; border: 1px solid var(--line); border-radius: 2px; background: var(--surface); color: var(--ink-2); font-size: 11.5px; }

/* ---------- Projects ---------- */
.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 32px; }
.project-card { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.project-head { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.project-index { font-family: var(--serif); font-size: 26px; color: var(--accent); line-height: 1; }
.project-type { margin: 0; color: var(--muted); font-size: 9.5px; text-align: right; }
.project-card h3 { margin: 20px 0 10px; font-family: var(--serif); font-size: 23px; font-weight: 600; letter-spacing: -.01em; }
.project-card > p { margin: 0 0 18px; color: var(--muted); font-size: 14px; line-height: 1.75; }

/* ---------- Preview ---------- */
.preview-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: start; gap: 34px; margin-top: 34px; }
.fact-grid { display: grid; grid-template-columns: 1fr 1fr; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.fact { padding: 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact:nth-child(2n) { border-right: 0; }
.fact:nth-last-child(-n + 2) { border-bottom: 0; }
.fact dt { margin: 0 0 8px; color: var(--muted); font-size: 9.5px; }
.fact dd { display: flex; align-items: baseline; gap: 9px; margin: 0; }
.fact dd strong { font-family: var(--serif); font-size: 32px; font-weight: 600; color: var(--accent); line-height: 1; }
.fact dd span { color: var(--muted); font-size: 12px; line-height: 1.45; }
.preview-note { margin: 18px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.75; }

.preview-document { display: flex; flex-direction: column; min-height: 300px; margin: 0; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #efeee8; }
.preview-document-bar { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line-strong); color: var(--muted); font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; }
.seal { padding: 3px 8px; border: 1px solid var(--line-strong); border-radius: 2px; background: var(--paper); color: var(--muted); }
.preview-lines { display: grid; gap: 9px; margin: 22px 2px auto; }
.red-line { display: block; width: 100%; height: 5px; border-radius: 1px; background: #d7d8d1; }
.red-line-title { width: 44%; height: 12px; margin-bottom: 2px; background: #c6c8c0; }
.red-line-sub { width: 28%; }
.red-line-heading { width: 22%; height: 7px; margin-top: 12px; background: #bdc2b6; }
.red-line-short { width: 54%; }
.red-line-mid { width: 76%; }
.preview-document figcaption { margin: 18px 2px 0; color: var(--muted); font-family: var(--mono); font-size: 9px; letter-spacing: .04em; }

.access-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin: 40px 0 0; padding: 0; list-style: none; }
.access-steps li { padding-top: 16px; border-top: 1px solid var(--ink); }
.step-index { display: block; margin-bottom: 10px; color: var(--accent); font-size: 10px; }
.access-steps h3 { margin: 0 0 6px; font-size: 15px; font-weight: 600; }
.access-steps p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.7; }

/* ---------- Access ---------- */
.access-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 24px; margin-top: 32px; }
.access-card { min-width: 0; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.access-card-unlock { border-top: 3px solid var(--accent); }
.access-card-request { border-top: 3px solid var(--line-strong); }
.access-overline { margin: 0 0 10px; color: var(--muted); font-size: 9.5px; }
.access-card > h3 { margin: 0; font-family: var(--serif); font-size: 24px; font-weight: 600; letter-spacing: -.01em; }
.access-card > p { margin: 10px 0 22px; color: var(--muted); font-size: 13.5px; line-height: 1.75; }
.access-form, .request-form { display: grid; gap: 10px; }
.access-form label, .request-form label { display: block; margin-bottom: 5px; color: var(--ink); font-size: 12px; font-weight: 600; }
.key-entry { display: flex; gap: 8px; }
.key-entry input, .request-form input, .request-form textarea { width: 100%; min-width: 0; padding: 0 13px; border: 1px solid var(--line-strong); border-radius: 3px; background: var(--surface); color: var(--ink); font: 14px var(--sans); }
.key-entry input, .request-form input { min-height: 46px; }
.request-form textarea { padding: 11px 13px; resize: vertical; line-height: 1.6; font-size: 13.5px; }
.key-entry input { font-family: var(--mono); font-size: 13px; letter-spacing: .02em; }
.key-entry input::placeholder, .request-form input::placeholder { color: #96a098; }
.key-entry input:focus, .request-form input:focus, .request-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.key-entry .button { flex: 0 0 auto; min-height: 46px; padding-inline: 18px; }
.access-form.is-highlighted, .access-card-unlock.is-highlighted { animation: card-pulse 2.4s ease-out 1; }
@keyframes card-pulse {
  0% { box-shadow: 0 0 0 0 rgb(64 89 47 / 28%); }
  60% { box-shadow: 0 0 0 6px rgb(64 89 47 / 8%); }
  100% { box-shadow: 0 0 0 0 rgb(64 89 47 / 0%); }
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { min-width: 0; }
.optional { color: var(--muted); font-weight: 400; }
.form-status { min-height: 17px; margin: 2px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.form-status.is-error { color: var(--danger); }
.form-status.is-success { color: var(--accent-dark); }
.privacy-note { margin-top: 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 3px; background: var(--paper); }
.privacy-note summary { color: var(--ink-2); cursor: pointer; font-size: 11.5px; }
.privacy-note p { margin: 9px 0 0; color: var(--muted); font-size: 11.5px; line-height: 1.7; }
.privacy-note a { color: var(--accent-dark); text-underline-offset: 2px; }
.notice-check { display: flex; align-items: flex-start; gap: 8px; color: var(--muted); font-size: 11.5px; line-height: 1.6; }
.notice-check input { width: 14px; height: 14px; flex: 0 0 auto; margin: 2px 0 0; accent-color: var(--accent); }
.request-form .button-primary { width: 100%; margin-top: 4px; }
.access-hint { margin: 14px 0 0 !important; padding-left: 12px; border-left: 2px solid var(--line-strong); color: var(--muted) !important; font-size: 11.5px !important; }
.request-success { padding: 20px; border: 1px solid #cfdcc0; border-radius: 3px; background: var(--accent-soft); }
.request-success p:not(.access-overline) { margin: 8px 0 0; color: var(--ink-2); font-size: 13px; line-height: 1.7; }
.dev-note { margin: 16px 0 0 !important; padding: 10px 12px; border: 1px dashed var(--line-strong); border-radius: 3px; color: var(--muted) !important; font-family: var(--mono); font-size: 10px !important; }
.noscript-note { margin-top: 22px; padding: 14px 16px; border: 1px solid #e4d8c4; border-radius: 3px; background: #faf4e9; color: #6b5737; font-size: 12.5px; }

/* ---------- Unlocked CV ---------- */
.cv-section { padding: 64px 0 84px; border-top: 1px solid var(--line); background: #efeee8; }
.cv-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.cv-toolbar .access-overline { margin-bottom: 4px; color: var(--accent); }
.cv-toolbar-meta { margin: 0; color: var(--ink-2); font-size: 13px; }
.cv-toolbar-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cv-toolbar .button { min-height: 42px; font-size: 12.5px; }

.cv-document { padding: clamp(26px, 4.2vw, 52px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgb(27 33 29 / 5%); outline: none; }
.cv-document:focus-visible { box-shadow: 0 0 0 3px var(--accent-soft); }
.cv-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 18px; padding-bottom: 24px; border-bottom: 2px solid var(--ink); }
.cv-kicker { margin: 0 0 10px; color: var(--muted); font-size: 9.5px; letter-spacing: .14em; }
.cv-name { margin: 0; font-family: var(--serif); font-size: clamp(32px, 4vw, 44px); font-weight: 600; letter-spacing: -.015em; line-height: 1.05; color: var(--ink); }
.cv-role { margin: 8px 0 0; color: var(--muted); font-size: 13.5px; }
.cv-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; padding-bottom: 4px; }
.cv-meta-item { color: var(--muted); font-family: var(--mono); font-size: 10.5px; text-decoration: none; }
.cv-meta-item:hover { color: var(--accent-dark); }
.cv-columns { display: grid; grid-template-columns: 1.6fr .9fr; gap: clamp(24px, 3vw, 48px); padding-top: 28px; }
.cv-block { margin-bottom: 30px; }
.cv-block:last-child { margin-bottom: 0; }
.cv-block-title { margin: 0 0 14px; padding-bottom: 7px; border-bottom: 1px solid var(--line); color: var(--accent-dark); font-family: var(--mono); font-size: 9.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.cv-text { margin: 0; color: var(--ink-2); font-size: 13px; line-height: 1.8; }
.cv-timeline { position: relative; padding-left: 18px; border-left: 1px solid var(--line-strong); }
.cv-entry { position: relative; padding-bottom: 20px; }
.cv-entry:last-child { padding-bottom: 0; }
.cv-entry-marker { position: absolute; top: 5px; left: -22.5px; width: 8px; height: 8px; border: 2px solid var(--accent); border-radius: 50%; background: var(--surface); }
.cv-entry-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 14px; margin-bottom: 4px; }
.cv-entry-period { margin: 0; color: var(--accent-dark); font-family: var(--mono); font-size: 9.5px; letter-spacing: .03em; }
.cv-entry-location { margin: 0; color: var(--muted); font-size: 9.5px; }
.cv-entry-title { margin: 0 0 2px; color: var(--ink); font-size: 14px; font-weight: 700; line-height: 1.4; }
.cv-entry-org { margin: 0 0 7px; color: var(--ink-2); font-size: 11.5px; }
.cv-entry-list { display: grid; gap: 4px; margin: 0; padding-left: 16px; color: var(--ink-2); font-size: 11.5px; line-height: 1.7; }
.cv-entry-list li::marker { color: var(--accent); }
.cv-side { padding-left: clamp(0px, 2vw, 22px); border-left: 1px solid var(--line); }
.cv-contact-grid { display: grid; gap: 9px; }
.cv-contact-item { display: grid; gap: 1px; }
.cv-contact-label { color: var(--muted); font-family: var(--mono); font-size: 8.5px; letter-spacing: .08em; text-transform: uppercase; }
.cv-contact-value, .cv-contact-link { color: var(--ink); font-size: 11.5px; text-decoration: none; overflow-wrap: anywhere; }
.cv-contact-link:hover { color: var(--accent-dark); text-decoration: underline; }
.cv-skill-list { display: flex; flex-wrap: wrap; gap: 5px; margin: 0; padding: 0; list-style: none; }
.cv-skill-list li { padding: 4px 8px; border: 1px solid var(--line); border-radius: 2px; background: var(--paper); color: var(--ink-2); font-size: 10px; }
.cv-plain-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.cv-plain-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; color: var(--ink-2); font-size: 11.5px; }
.cv-list-name { font-weight: 600; }
.cv-list-value { color: var(--muted); }
.cv-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; margin-top: 32px; padding-top: 14px; border-top: 1px solid var(--line); }
.cv-footer p { margin: 0; color: var(--muted); font-family: var(--mono); font-size: 8.5px; letter-spacing: .03em; }

/* ---------- Contact / footer ---------- */
.contact-section { padding: 76px 0 80px; background: var(--dark); color: #eef1ec; }
.contact-inner { display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 80px; }
.contact-copy .eyebrow { margin-bottom: 16px; color: #a9b6ac; }
.contact-copy h2 { margin: 0; font-family: var(--serif); font-size: clamp(32px, 3.6vw, 44px); font-weight: 600; letter-spacing: -.01em; line-height: 1.18; }
.contact-copy > p:not(.eyebrow) { max-width: 500px; margin: 16px 0 24px; color: #bcc7bf; font-size: 14px; line-height: 1.8; }
.contact-details { display: grid; gap: 18px; }
.contact-details > div { display: grid; gap: 3px; }
.contact-label { color: #9aa79e; font-size: 9.5px; }
.contact-details a, .contact-details > div > span:last-child { width: fit-content; color: #eef1ec; font-size: 14px; text-decoration: none; }
.contact-details a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.site-footer { border-top: 1px solid rgb(255 255 255 / 12%); background: #1a231e; color: #a9b6ac; }
.footer-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.footer-brand { display: grid; gap: 2px; }
.footer-name { font-family: var(--serif); font-size: 14px; color: #e6ece4; }
.footer-brand p { margin: 0; font-size: 11.5px; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.footer-links a, .footer-links button { padding: 0; border: 0; background: none; color: #c3cdc5; font-family: var(--sans); font-size: 11.5px; text-decoration: none; cursor: pointer; }
.footer-links a:hover, .footer-links button:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Legal pages ---------- */
.legal-main { padding: 64px 0 84px; }
.legal-wrap { max-width: 820px; }
.legal-main h1 { margin: 6px 0 0; font-family: var(--serif); font-size: clamp(32px, 4vw, 44px); font-weight: 600; letter-spacing: -.015em; line-height: 1.15; }
.legal-intro { margin: 14px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.8; }
.legal-content { margin-top: 36px; }
.legal-content h2 { margin: 34px 0 10px; font-family: var(--serif); font-size: 21px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--ink-2); font-size: 14px; line-height: 1.8; }
.legal-content p { margin: 0 0 12px; }
.legal-content ul { display: grid; gap: 6px; margin: 0 0 14px; padding-left: 20px; }
.legal-content li::marker { color: var(--accent); }
.legal-content a { color: var(--accent-dark); text-underline-offset: 3px; }
.legal-content code { padding: 1px 4px; border-radius: 2px; background: var(--accent-soft); font-family: var(--mono); font-size: 12px; }
.legal-address { margin: 0 0 12px; padding: 16px 18px; border-left: 3px solid var(--accent); background: var(--surface); color: var(--ink); font-size: 14px; font-style: normal; line-height: 1.75; }
.legal-updated { margin-top: 40px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }

/* ---------- Consent notice ---------- */
.consent { position: fixed; z-index: 40; right: 0; bottom: 0; left: 0; border-top: 1px solid var(--line-strong); background: var(--surface); box-shadow: 0 -10px 30px rgb(27 33 29 / 8%); transform: translateY(105%); transition: transform .35s ease; }
.consent.is-visible { transform: none; }
.consent-inner { width: min(1120px, calc(100% - 64px)); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 18px 0; }
.consent-kicker { margin: 0 0 4px; color: var(--muted); font-family: var(--mono); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; }
.consent h2 { margin: 0 0 6px; font-family: var(--serif); font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.consent p { max-width: 780px; margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.65; }
.consent-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px !important; font-size: 12px; }
.consent-links a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.consent-actions { display: flex; gap: 10px; }
.consent .button { min-height: 42px; white-space: nowrap; }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Admin ---------- */
.admin-body { background: var(--paper); }
.admin-header { position: sticky; z-index: 5; top: 0; border-bottom: 1px solid var(--line); background: var(--surface); }
.admin-header-inner { width: min(1180px, calc(100% - 56px)); min-height: 76px; margin-inline: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding-block: 12px; }
.admin-header .wordmark-mark { border-color: var(--line-strong); font-family: var(--serif); }
.admin-header-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.admin-status { color: var(--muted); font-family: var(--mono); font-size: 10px; letter-spacing: .04em; }
.admin-header .button { min-height: 38px; padding-inline: 14px; font-size: 12px; }
.admin-main { width: min(1180px, calc(100% - 56px)); margin-inline: auto; padding: 48px 0 84px; }
.admin-login { max-width: 420px; margin: 8vh auto 0; padding: 32px; border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); background: var(--surface); }
.admin-login h1 { margin: 0 0 10px; font-family: var(--serif); font-size: 28px; font-weight: 600; letter-spacing: -.01em; }
.admin-login > p { margin: 0 0 22px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.admin-login-form { display: grid; gap: 10px; }
.admin-login-form label { color: var(--ink); font-size: 12px; font-weight: 600; }
.admin-login-form input { min-height: 46px; padding: 0 13px; border: 1px solid var(--line-strong); border-radius: 3px; background: var(--surface); color: var(--ink); font: 14px var(--sans); }
.admin-login-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.admin-title-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 8px; }
.admin-title-row h1 { margin: 6px 0 0; font-family: var(--serif); font-size: clamp(30px, 3.6vw, 40px); font-weight: 600; letter-spacing: -.01em; line-height: 1.15; }
.admin-mail-state { margin: 0 0 24px; color: var(--muted); font-family: var(--mono); font-size: 10.5px; }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0 0 24px; }
.admin-stat { padding: 18px 20px; border: 1px solid var(--line); border-top: 2px solid var(--ink); border-radius: var(--radius); background: var(--surface); }
.admin-stat dt { margin: 0 0 8px; color: var(--muted); font-family: var(--mono); font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; }
.admin-stat dd { margin: 0; font-family: var(--serif); font-size: 32px; font-weight: 600; color: var(--accent); line-height: 1; }
.admin-panel { margin-bottom: 20px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.admin-panel-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.admin-panel-head h2 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.admin-count { min-width: 24px; padding: 2px 7px; border: 1px solid var(--line-strong); border-radius: 20px; color: var(--muted); font-family: var(--mono); font-size: 9.5px; text-align: center; }
.admin-request-list { display: grid; gap: 12px; }
.admin-request { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 18px; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 3px; background: var(--paper); }
.admin-request h3 { margin: 0 0 3px; font-size: 15px; font-weight: 600; }
.admin-request-meta { margin: 0; color: var(--muted); font-size: 11.5px; line-height: 1.6; }
.admin-request p:not(.admin-request-meta) { margin: 8px 0 0; color: var(--ink-2); font-size: 12.5px; line-height: 1.65; }
.admin-request-actions { display: flex; flex-wrap: wrap; align-items: start; gap: 8px; }
.admin-request-actions .button { min-height: 36px; padding-inline: 12px; font-size: 11.5px; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.admin-table th { padding: 8px 10px; border-bottom: 1px solid var(--line-strong); color: var(--muted); font-family: var(--mono); font-size: 9px; font-weight: 500; letter-spacing: .06em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.admin-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); color: var(--ink-2); vertical-align: top; }
.admin-table tbody tr:hover td { background: #fbfbf8; }
.admin-table .cell-company strong { display: block; color: var(--ink); font-size: 13px; font-weight: 600; }
.admin-table .cell-company span { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
.admin-table .cell-number { color: var(--accent-dark); font-family: var(--mono); font-size: 13px; text-align: center; }
.admin-table th:nth-last-child(3), .admin-table th:nth-last-child(4) { text-align: center; }
.admin-badge { display: inline-block; padding: 3px 8px; border: 1px solid var(--line-strong); border-radius: 20px; color: var(--muted); font-family: var(--mono); font-size: 8.5px; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.admin-badge.is-active { border-color: #b8cba5; background: var(--accent-soft); color: var(--accent-dark); }
.admin-badge.is-expired { border-color: #ddcbab; background: #fbf3e5; color: #7a5a25; }
.admin-badge.is-revoked { border-color: #d9bcb7; background: #fbeeec; color: #8a3a2f; }
.admin-detail td { padding: 0 10px 16px; background: #fbfbf8; }
.admin-events { display: grid; gap: 6px; margin: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 3px; background: var(--surface); list-style: none; }
.admin-events li { display: grid; grid-template-columns: 132px 92px 1fr; gap: 10px; color: var(--ink-2); font-size: 11px; }
.admin-events time, .admin-activity time { color: var(--muted); font-family: var(--mono); font-size: 9.5px; }
.admin-events .event-type, .admin-activity .event-type { color: var(--accent-dark); font-family: var(--mono); font-size: 9px; letter-spacing: .04em; text-transform: uppercase; }
.admin-empty { margin: 12px 0 0; color: var(--muted); font-size: 12px; }
.admin-form { display: grid; gap: 12px; }
.admin-form-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.admin-form .field label { display: block; margin-bottom: 5px; color: var(--ink); font-size: 11.5px; font-weight: 600; }
.admin-form input, .admin-form textarea { width: 100%; min-height: 42px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 3px; background: var(--surface); color: var(--ink); font: 13px var(--sans); }
.admin-form textarea { min-height: 70px; padding: 10px 12px; resize: vertical; }
.admin-form input:focus, .admin-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.admin-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.admin-form-actions .button { min-height: 42px; font-size: 12px; }
.admin-activity { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.admin-activity li { display: grid; grid-template-columns: 132px 92px 1fr; gap: 10px; color: var(--ink-2); font-size: 11.5px; }
.admin-activity strong { color: var(--ink); font-weight: 600; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-action { padding: 4px 9px; border: 1px solid var(--line-strong); border-radius: 2px; background: var(--surface); color: var(--ink-2); font: 600 10px var(--sans); cursor: pointer; white-space: nowrap; transition: border-color .15s ease, color .15s ease; }
.admin-action:hover { border-color: var(--ink); color: var(--ink); }
.admin-action.is-danger:hover { border-color: var(--danger); color: var(--danger); }
.admin-days { width: 66px; min-height: 36px; padding: 0 8px; border: 1px solid var(--line-strong); border-radius: 3px; background: var(--surface); color: var(--ink); font: 12px var(--mono); text-align: center; }
.admin-notes { display: grid; gap: 9px; margin: 0; padding-left: 18px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.admin-notes li::marker { color: var(--accent); }
.admin-notes strong { color: var(--ink); font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .main-nav { gap: 20px; }
  .admin-form-grid { grid-template-columns: 1fr 1fr; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .section-wrap { width: min(100% - 48px, 720px); }
  .header-inner { width: calc(100% - 48px); }
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 64px; padding-bottom: 68px; }
  .profile-card { max-width: 520px; }
  .section-grid { grid-template-columns: 1fr; gap: 22px; padding-top: 64px; padding-bottom: 64px; }
  .section-label { padding-top: 0; }
  .skill-grid { gap: 26px; }
  .preview-grid, .access-grid { grid-template-columns: 1fr; }
  .cv-columns { grid-template-columns: 1.45fr .9fr; gap: 26px; }
  .cv-side { padding-left: 18px; }
  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .admin-header-inner, .admin-main { width: calc(100% - 40px); }
}
@media (max-width: 680px) {
  html { scroll-padding-top: 76px; }
  .section-wrap { width: calc(100% - 40px); }
  .header-inner { width: calc(100% - 40px); height: 72px; }
  .wordmark-text small { display: none; }
  .menu-toggle { width: 42px; height: 38px; display: grid; place-content: center; gap: 5px; border: 1px solid var(--line-strong); border-radius: 3px; background: var(--surface); }
  .menu-toggle span { width: 16px; height: 1px; background: var(--ink); transition: transform .2s ease; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .main-nav { position: absolute; top: 71px; right: 0; left: 0; display: none; align-items: stretch; gap: 0; padding: 8px 20px 14px; border-bottom: 1px solid var(--line); background: var(--surface); box-shadow: 0 12px 24px rgb(27 33 29 / 6%); }
  .main-nav.is-open { display: grid; }
  .main-nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .main-nav .nav-contact { width: fit-content; margin-top: 10px; padding: 9px 14px; border: 1px solid var(--ink); }
  .hero h1 { font-size: clamp(34px, 9vw, 42px); }
  .hero-intro { font-size: 15px; }
  .hero-actions .button { flex: 1 1 auto; }
  .section-grid { padding-top: 52px; padding-bottom: 52px; }
  .intro-lead { font-size: 19px; }
  .intro-columns { grid-template-columns: 1fr; gap: 14px; }
  .skill-grid, .project-grid, .access-steps { grid-template-columns: 1fr; gap: 24px; }
  .skill-column > p { min-height: 0; }
  .fact-grid { grid-template-columns: 1fr 1fr; }
  .fact { padding: 16px; }
  .fact dd strong { font-size: 27px; }
  .preview-document { min-height: 260px; }
  .key-entry { flex-direction: column; }
  .key-entry .button { width: 100%; }
  .field-row { grid-template-columns: 1fr; }
  .access-card { padding: 22px; }
  .cv-section { padding: 44px 0 64px; }
  .cv-toolbar { padding: 16px; }
  .cv-toolbar-actions { width: 100%; }
  .cv-toolbar-actions .button { flex: 1 1 auto; }
  .cv-document { padding: 22px 18px; }
  .cv-columns { grid-template-columns: 1fr; gap: 6px; padding-top: 22px; }
  .cv-side { padding: 0 0 6px; border-left: 0; }
  .cv-contact-grid { grid-template-columns: 1fr 1fr; }
  .cv-footer { flex-direction: column; }
  .contact-section { padding: 56px 0 60px; }
  .contact-details { grid-template-columns: 1fr 1fr; gap: 20px 16px; }
  .contact-details > div:first-child { grid-column: 1 / -1; }
  .footer-inner { min-height: 0; flex-direction: column; align-items: flex-start; gap: 14px; padding-top: 20px; padding-bottom: 20px; }
  .footer-links { gap: 14px; }
  .legal-main { padding: 44px 0 64px; }
  .legal-content h2 { font-size: 19px; }
  .consent-inner { width: calc(100% - 40px); grid-template-columns: 1fr; gap: 12px; padding: 16px 0; }
  .consent-actions .button { width: 100%; }
  .admin-main { padding-top: 30px; }
  .admin-form-grid, .admin-stats { grid-template-columns: 1fr 1fr; }
  .admin-request { grid-template-columns: 1fr; }
  .admin-events li, .admin-activity li { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- Print: nur das freigeschaltete Dokument ---------- */
@media print {
  @page { margin: 13mm; }
  html, body { background: #fff !important; color: #111 !important; }
  .site-header, .site-footer, .skip-link, .cv-toolbar, noscript { display: none !important; }
  main > section:not(.cv-section) { display: none !important; }
  .cv-section { display: block !important; padding: 0 !important; border: 0 !important; background: #fff !important; }
  .cv-section .section-wrap { width: 100% !important; margin: 0 !important; }
  .cv-document { padding: 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: #fff !important; color: #111 !important; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .cv-document *, .cv-block-title, .cv-entry-period, .cv-entry-title, .cv-text, .cv-entry-list, .cv-contact-value { color: #111 !important; }
  .cv-block-title, .cv-kicker, .cv-entry-period { color: #40571f !important; }
  .cv-entry-marker { border-color: #40571f !important; background: #fff !important; }
  .cv-skill-list li { border-color: #c3c9bf !important; background: #f4f4ef !important; }
  .cv-head { break-inside: avoid; }
  .cv-entry, .cv-block { break-inside: avoid; }
  .cv-name { font-size: 30pt; }
  .cv-text, .cv-entry-list { font-size: 9.5pt; }
  .cv-entry-list { line-height: 1.5; }
  .cv-block-title { font-size: 8pt; }
  .cv-footer { margin-top: 18pt; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .reveal { opacity: 1; transform: none; }
}
