:root {
  color-scheme: light;
  --paper: #fafaf9;
  --surface: #f1f1ee;
  --surface-raised: #ffffff;
  --ink: #0b0b0c;
  --muted: #555752;
  --line: #deded9;
  --accent: #16845b;
  --accent-deep: #0f6848;
  --accent-wash: #e9f2ed;
  --font-display: "Space Grotesk", "Arial", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --content-width: 1120px;
  --header-height: 80px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-8: 64px;
  --space-10: 80px;
  --space-12: 96px;
  --ease: cubic-bezier(.2, .75, .3, 1);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0b0b0c;
  --surface: #151615;
  --surface-raised: #1c1e1c;
  --ink: #fafaf9;
  --muted: #c1c3bd;
  --line: #343733;
  --accent: #47bc8a;
  --accent-deep: #64d4a0;
  --accent-wash: #1b3026;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) { color-scheme: dark; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 24px); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.65; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
::selection { color: #fff; background: var(--accent-deep); }
.container { width: min(var(--content-width), calc(100% - 48px)); margin-inline: auto; }
.section-shell { padding-block: clamp(72px, 9vw, 128px); }
.text-accent { color: var(--accent-deep); }
.skip-link { position: fixed; z-index: 20; top: 12px; left: 12px; padding: 12px 16px; transform: translateY(-160%); background: var(--ink); color: var(--paper); border-radius: 4px; }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 2px; }
.eyebrow { margin: 0 0 20px; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .12em; line-height: 1.5; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -.045em; }
h1 { margin-bottom: 24px; font-size: clamp(3.2rem, 8vw, 6.8rem); font-weight: 500; line-height: .98; }
h2 { margin-bottom: 0; font-size: clamp(2.35rem, 5vw, 4.4rem); font-weight: 500; line-height: 1.04; }
h3 { font-weight: 500; line-height: 1.18; }
.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; gap: 16px; padding: 0 22px; border: 1px solid transparent; border-radius: 2px; font-size: 14px; font-weight: 600; transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-dark { color: #fff; background: var(--accent-deep); }
.button-dark:hover { background: var(--accent); }
.button-outline { border-color: var(--line); background: transparent; }
.button-outline:hover { border-color: var(--ink); }
.button-small { min-height: 40px; padding-inline: 16px; font-size: 13px; }
.text-link { display: inline-flex; align-items: center; gap: 10px; padding-bottom: 3px; border-bottom: 1px solid var(--accent); font-size: 14px; font-weight: 600; transition: gap .2s ease; }
.text-link:hover { gap: 16px; }

.site-header { position: sticky; z-index: 10; top: 0; height: var(--header-height); border-bottom: 1px solid color-mix(in srgb, var(--line), transparent 25%); background: color-mix(in srgb, var(--paper), transparent 5%); backdrop-filter: blur(14px); }
.header-inner { display: flex; height: 100%; align-items: center; justify-content: space-between; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: 15px; font-weight: 600; letter-spacing: -.03em; }
.wordmark-mark { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--ink); font-size: 11px; letter-spacing: -.08em; }
.primary-nav { display: flex; height: 100%; align-items: center; gap: clamp(18px, 2.5vw, 34px); }
.primary-nav > a:not(.button) { color: var(--muted); font-size: 13px; transition: color .2s ease; }
.primary-nav > a:not(.button):hover, .primary-nav > a[aria-current="location"] { color: var(--ink); }
.primary-nav > a[aria-current="location"] { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 6px; }
.theme-toggle { display: grid; width: 40px; height: 40px; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; }
.header-inner > .theme-toggle { margin-left: auto; margin-right: 12px; }
.theme-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-moon, [data-theme="dark"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: block; }
.menu-toggle { display: none; }

.hero { position: relative; min-height: min(790px, calc(100svh - var(--header-height))); padding-block: clamp(64px, 8vw, 112px) 48px; }
.hero-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center; gap: clamp(24px, 4vw, 48px); }
.hero-copy { grid-column: span 7; }
.hero-art { grid-column: span 5; }
.hero-copy { padding-block: 20px; }
.hero .eyebrow { display: flex; align-items: center; gap: 10px; }
.status-dot, .availability-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--accent); }
.hero-role { margin: 0 0 20px; color: var(--muted); font-size: clamp(12px, 1.25vw, 15px); font-weight: 500; letter-spacing: .01em; }
.hero-role span { padding-inline: 6px; color: var(--accent); }
.hero-intro { max-width: 470px; margin-bottom: 30px; color: var(--muted); font-size: clamp(16px, 1.5vw, 19px); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-availability { display: flex; align-items: center; gap: 9px; margin-top: 38px; font-size: 13px; font-weight: 600; }
.availability-edit { color: var(--muted); font-size: 10px; font-weight: 400; letter-spacing: .08em; }
.hero-tools { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 40px; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
.hero-tools > span { display: inline-flex; align-items: center; gap: 7px; }
.tech-icon { display: grid; width: 18px; height: 18px; place-items: center; border: 1px solid var(--line); border-radius: 3px; color: var(--accent-deep); font-family: var(--font-display); font-size: 8px; font-style: normal; font-weight: 700; letter-spacing: -.05em; }
.hero-tools span + span::before { padding-right: 20px; color: var(--line); content: "/"; }
.hero-art { position: relative; display: grid; min-height: 440px; place-items: center; overflow: hidden; background: var(--surface); }
.hero-art::before, .hero-art::after { position: absolute; width: 100%; height: 1px; background: var(--line); content: ""; }
.hero-art::after { transform: rotate(90deg); }
.art-center { position: relative; width: min(76%, 340px); aspect-ratio: 1; }
.art-orbit { position: absolute; inset: 12%; border: 1px solid var(--line); border-radius: 50%; }
.orbit-two { inset: 24%; border-style: dashed; }
.art-core { position: absolute; top: 50%; left: 50%; display: grid; width: 92px; height: 92px; place-items: center; transform: translate(-50%, -50%); border-radius: 50%; background: var(--accent-deep); color: #fff; font-family: var(--font-display); font-size: 28px; letter-spacing: -.1em; }
.art-node { position: absolute; display: grid; width: 54px; height: 54px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 10px; font-weight: 700; letter-spacing: .06em; }
.node-one { top: 5%; left: 43%; }.node-two { right: 3%; bottom: 30%; }.node-three { bottom: 2%; left: 24%; }
.art-corner { position: absolute; z-index: 1; color: var(--muted); font-size: 9px; font-weight: 600; letter-spacing: .12em; line-height: 1.6; }
.art-corner-top { top: 24px; left: 24px; }.art-corner-bottom { right: 24px; bottom: 24px; text-align: right; }
.art-index { position: absolute; right: 24px; top: 24px; color: var(--muted); font-size: 10px; }
.hero-bottom { display: flex; align-items: center; gap: 16px; margin-top: clamp(48px, 7vw, 88px); color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.hero-bottom > :last-child { margin-left: auto; }
.scroll-line { width: 48px; height: 1px; background: var(--accent); }

.section-work { border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 44px; }
.section-heading .eyebrow { margin-bottom: 16px; }
.section-aside { max-width: 320px; margin-bottom: 4px; color: var(--muted); font-size: 14px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter-button { min-height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 20px; background: transparent; color: var(--muted); font-size: 12px; cursor: pointer; transition: color .2s ease, background .2s ease, border-color .2s ease; }
.filter-button:hover, .filter-button.is-active { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 24px; }
.project-card { min-width: 0; }
.project-image-link { position: relative; display: block; overflow: hidden; background: var(--surface); }
.project-image-link img { width: 100%; aspect-ratio: 10 / 7; object-fit: cover; transition: transform .6s var(--ease); }
.project-image-link:hover img { transform: scale(1.025); }
.project-open { position: absolute; right: 16px; bottom: 16px; display: grid; width: 40px; height: 40px; place-items: center; border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 18px; transition: background .2s ease, color .2s ease; }
.project-image-link:hover .project-open { background: var(--accent-deep); color: #fff; }
.project-card-body { padding-top: 20px; }
.project-meta { display: flex; gap: 14px; margin-bottom: 10px; color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
.project-meta span + span::before { padding-right: 14px; content: "·"; }
.project-card h3 { margin-bottom: 8px; font-size: clamp(21px, 2.2vw, 27px); }
.project-card h3 a:hover { color: var(--accent-deep); }
.project-card-body > p { max-width: 520px; margin-bottom: 16px; color: var(--muted); font-size: 13px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.tag-list li { padding: 5px 9px; border: 1px solid var(--line); border-radius: 2px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.section-end-link { display: flex; align-items: center; justify-content: space-between; padding-top: 32px; margin-top: 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

.section-services { background: var(--surface); }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-card { display: flex; min-height: 290px; flex-direction: column; align-items: flex-start; padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.service-number { margin-bottom: 38px; color: var(--accent-deep); font-size: 11px; font-weight: 600; letter-spacing: .1em; }
.service-card h3 { margin-bottom: 12px; font-size: 22px; }
.service-card > p { color: var(--muted); font-size: 13px; }
.service-card .service-deliverable { margin-top: 0; font-size: 11px; }
.service-card .text-link { margin-top: auto; padding-top: 16px; }

.process-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0; margin: 0; list-style: none; }
.process-step { position: relative; padding: 28px 24px 0 0; border-top: 1px solid var(--line); }
.process-step::before { position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); content: ""; }
.step-number { display: block; margin-bottom: 36px; color: var(--muted); font-size: 11px; }
.process-step h3 { margin-bottom: 10px; font-size: 22px; }
.process-step p { max-width: 230px; margin-bottom: 0; color: var(--muted); font-size: 13px; }

.section-skills { background: var(--surface); }
.skills-layout { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(32px, 6vw, 72px); }
.skills-intro { grid-column: span 4; }
.skills-list { grid-column: span 8; }
.skills-intro h2 { margin-bottom: 20px; }
.skills-intro > p:last-child { max-width: 270px; color: var(--muted); font-size: 14px; }
.skills-list { border-top: 1px solid var(--line); }
.skill-group { display: grid; grid-template-columns: 170px 1fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.skill-group h3 { margin: 4px 0 0; font-family: var(--font-body); font-size: 12px; font-weight: 600; letter-spacing: 0; }

.about-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(32px, 6vw, 72px); align-items: center; }
.about-image { grid-column: span 5; }
.about-copy { grid-column: span 7; }
.about-image { position: relative; }
.about-image img { width: 100%; aspect-ratio: 6 / 7; object-fit: cover; background: var(--surface); }
.image-caption { position: absolute; right: -14px; bottom: 20px; padding: 10px 12px; background: var(--paper); color: var(--muted); font-size: 10px; }
.image-caption span { color: var(--accent-deep); }
.about-copy h2 { margin-bottom: 24px; font-size: clamp(2.3rem, 4.5vw, 3.8rem); }
.about-copy > p:not(.eyebrow) { color: var(--muted); font-size: 14px; }
.education { padding-top: 16px; margin-top: 24px; border-top: 1px solid var(--line); }
.education h3 { margin-bottom: 18px; font-family: var(--font-body); font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.education-entry { display: flex; gap: 12px; margin-bottom: 16px; }
.education-mark { width: 8px; height: 8px; flex: 0 0 auto; margin-top: 7px; border: 2px solid var(--accent); border-radius: 50%; }
.education-entry div { display: grid; gap: 3px; }
.education-entry strong { font-size: 12px; font-weight: 600; }
.education-entry div span { color: var(--muted); font-size: 11px; }
.working-on { display: flex; gap: 14px; padding: 16px; margin: 22px 0; background: var(--surface); }
.working-icon { color: var(--accent-deep); font-size: 18px; }
.working-on p { margin: 0; font-size: 12px; }
.working-on p span { color: var(--muted); }

.section-notes { border-top: 1px solid var(--line); }
.section-testimonials[hidden] { display: none; }
.testimonials-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.testimonial-card { padding: 28px; margin: 0; border: 1px solid var(--line); }
.testimonial-card blockquote { margin: 0 0 24px; font-family: var(--font-display); font-size: 22px; line-height: 1.4; }
.testimonial-card figcaption { display: grid; gap: 3px; font-size: 12px; }
.testimonial-card figcaption span { color: var(--muted); font-size: 11px; }
.notes-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.note-card { display: flex; min-height: 230px; flex-direction: column; align-items: flex-start; padding: 28px; border: 1px solid var(--line); transition: border-color .2s ease, transform .2s ease; }
.note-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.note-meta { color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.note-card h3 { max-width: 440px; margin: 24px 0; font-size: clamp(21px, 2.5vw, 30px); }
.note-card .text-link { margin-top: auto; }

.section-contact { background: var(--surface); }
.contact-layout { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(32px, 6vw, 72px); }
.contact-copy { grid-column: span 5; }
.contact-form { grid-column: span 7; }
.contact-copy h2 { margin-bottom: 24px; font-size: clamp(3rem, 6vw, 5.3rem); }
.contact-copy > p:not(.eyebrow) { max-width: 400px; color: var(--muted); font-size: 14px; }
.contact-email { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 28px; }
.contact-email > a { font-family: var(--font-display); font-size: clamp(16px, 2vw, 21px); font-weight: 500; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 5px; overflow-wrap: anywhere; }
.copy-email { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; }
.copy-email svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.copy-feedback { width: 100%; min-height: 20px; color: var(--accent-deep); font-size: 11px; }
.social-links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 16px; }
.social-links a { color: var(--muted); font-size: 12px; }
.social-links a:hover { color: var(--accent-deep); }
.contact-form { padding: 28px; background: var(--paper); }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; margin-bottom: 7px; font-size: 11px; font-weight: 600; }
.form-field input, .form-field select, .form-field textarea { display: block; width: 100%; min-height: 46px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 0; background: var(--paper); color: var(--ink); font-size: 13px; }
.form-field textarea { min-height: 116px; resize: vertical; }
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--muted); opacity: .8; }
.form-field select:invalid { color: var(--muted); }
.form-submit { width: 100%; cursor: pointer; }
.form-submit:disabled { cursor: wait; opacity: .65; }
.form-feedback { min-height: 24px; margin: 14px 0 0; font-size: 12px; }
.form-feedback.is-success { color: var(--accent-deep); }
.form-feedback.is-error { color: #a12c26; }
.form-note { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

.site-footer { padding-block: 36px 20px; }
.footer-main { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 30px; }
.footer-main > p { margin: 0; color: var(--muted); font-size: 11px; }
.footer-links { display: flex; gap: 18px; }
.footer-links a, .footer-bottom { color: var(--muted); font-size: 10px; }
.footer-links a:hover, .back-to-top:hover { color: var(--accent-deep); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 18px; border-top: 1px solid var(--line); }
.consent-banner { position: fixed; z-index: 15; right: 20px; bottom: 20px; display: flex; width: min(580px, calc(100% - 40px)); align-items: center; justify-content: space-between; gap: 24px; padding: 20px; border: 1px solid var(--line); background: var(--surface-raised); box-shadow: 0 12px 40px #0002; }
.consent-banner[hidden] { display: none; }
.consent-banner strong { font-size: 13px; }
.consent-banner p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.consent-actions { display: flex; flex-shrink: 0; gap: 8px; }

.reveal { opacity: 1; transform: none; }
.has-js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s var(--ease), transform .65s var(--ease); }
.has-js .reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Shared case study, notes, CV, and 404 layouts */
.subpage-main { min-height: 70vh; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; margin: 36px 0 56px; color: var(--muted); font-size: 11px; }
.breadcrumb a:hover { color: var(--accent-deep); }
.case-hero { padding-bottom: 56px; }
.case-hero h1 { max-width: 900px; font-size: clamp(3rem, 8vw, 6rem); }
.case-hero .case-summary { max-width: 650px; color: var(--muted); font-size: clamp(17px, 2vw, 21px); }
.case-cover { width: 100%; max-height: 600px; aspect-ratio: 16 / 8; object-fit: cover; background: var(--surface); }
.case-screenshots { padding-top: 40px; }
.case-screenshots h2 { margin-bottom: 16px; font-size: 24px; }
.case-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.case-gallery figure { margin: 0; }
.case-gallery img { width: 100%; height: auto; }
.case-gallery figcaption { padding-top: 8px; color: var(--muted); font-size: 11px; }
.case-body { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(48px, 10vw, 140px); padding-block: 72px 112px; }
.case-facts { align-self: start; padding-top: 8px; }
.case-facts h2 { margin-bottom: 20px; font-family: var(--font-body); font-size: 12px; font-weight: 600; letter-spacing: .06em; }
.case-facts .tag-list { margin-bottom: 28px; }
.case-section { margin-bottom: 48px; }
.case-section h2 { margin-bottom: 18px; font-size: clamp(24px, 3vw, 34px); }
.case-section p, .case-section li { color: var(--muted); font-size: 15px; }
.case-section ul { padding-left: 20px; }
.case-section li + li { margin-top: 10px; }
.case-back { padding-top: 24px; border-top: 1px solid var(--line); }
.subpage-title { max-width: 820px; font-size: clamp(3rem, 7vw, 5.5rem); }
.article-content { max-width: 700px; padding-block: 0 96px; }
.article-content .article-intro { color: var(--muted); font-size: 19px; line-height: 1.7; }
.article-content h2 { margin-top: 48px; margin-bottom: 16px; font-size: 29px; }
.article-content p { color: var(--muted); }
.article-placeholder { padding: 16px; border-left: 3px solid var(--accent); background: var(--surface); color: var(--muted); font-size: 12px; }
.cv-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.cv-header h1 { font-size: clamp(3rem, 7vw, 5rem); }
.cv-section { padding-block: 28px; border-top: 1px solid var(--line); }
.cv-section h2 { margin-bottom: 16px; font-size: 23px; }
.cv-section p, .cv-section li { color: var(--muted); }
.not-found { min-height: 68vh; display: grid; align-content: center; justify-items: start; }
.not-found .error-code { margin: 0 0 12px; color: var(--accent-deep); font-size: 12px; font-weight: 600; letter-spacing: .12em; }
.not-found h1 { font-size: clamp(3.5rem, 10vw, 7rem); }
.not-found p { max-width: 470px; color: var(--muted); }

@media (max-width: 860px) {
  :root { --header-height: 72px; }
  .container { width: min(var(--content-width), calc(100% - 40px)); }
  .menu-toggle { position: relative; z-index: 12; display: flex; width: 42px; height: 42px; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; }
  .menu-toggle span { width: 17px; 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); }
  .primary-nav { position: fixed; z-index: 11; inset: var(--header-height) 0 0; display: flex; height: auto; flex-direction: column; align-items: stretch; gap: 0; padding: 24px 24px 40px; background: var(--paper); opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease; }
  .primary-nav.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .primary-nav > a:not(.button) { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-family: var(--font-display); font-size: 25px; }
  .nav-cta { margin-top: 24px; }
  .hero { min-height: unset; }
  .hero-grid { gap: 24px; }
  .hero-art { min-height: 360px; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-card { min-height: 275px; }
  .skills-layout { grid-template-columns: 1fr; gap: 40px; }
  .skills-intro, .skills-list { grid-column: 1 / -1; }
  .skills-intro h2 br { display: none; }
  .about-grid { gap: 44px; }
  .about-image, .about-copy { grid-column: 1 / -1; }
  .case-body { grid-template-columns: 180px minmax(0, 1fr); gap: 48px; }
}

@media (max-width: 600px) {
  .container { width: calc(100% - 40px); }
  .section-shell { padding-block: 72px; }
  .hero { padding-top: 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-copy, .hero-art { grid-column: 1 / -1; }
  .hero-copy { padding: 0; }
  h1 { font-size: clamp(3.35rem, 15vw, 5rem); }
  .hero-art { min-height: 310px; }
  .hero-bottom { margin-top: 36px; }
  .hero-bottom > :last-child { display: none; }
  .section-heading { display: block; margin-bottom: 32px; }
  .section-aside { margin-top: 16px; }
  .project-grid { grid-template-columns: 1fr; gap: 38px; }
  .project-image-link img { aspect-ratio: 1.2; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 245px; padding: 24px; }
  .service-number { margin-bottom: 26px; }
  .process-list { grid-template-columns: 1fr 1fr; gap: 34px 20px; }
  .process-step { padding-right: 0; }
  .step-number { margin-bottom: 24px; }
  .skill-group { grid-template-columns: 1fr; gap: 12px; }
  .about-grid { grid-template-columns: 1fr; gap: 38px; }
  .about-image { width: min(100%, 400px); }
  .about-copy h2 br { display: none; }
  .notes-grid { grid-template-columns: 1fr; }
  .note-card { min-height: 210px; padding: 24px; }
  .contact-layout { grid-template-columns: 1fr; gap: 36px; }
  .contact-copy, .contact-form { grid-column: 1 / -1; }
  .contact-form { padding: 22px 18px; }
  .footer-main { align-items: flex-start; flex-direction: column; }
  .footer-links { flex-wrap: wrap; }
  .footer-bottom { flex-wrap: wrap; }
  .footer-bottom > :nth-child(2) { order: 3; width: 100%; }
  .consent-banner { right: 12px; bottom: 12px; width: calc(100% - 24px); flex-direction: column; align-items: stretch; gap: 14px; }
  .consent-actions { justify-content: flex-end; }
  .breadcrumb { margin: 28px 0 38px; }
  .case-body { grid-template-columns: 1fr; gap: 24px; padding-block: 40px 72px; }
  .case-facts { order: 1; }
  .case-section { margin-bottom: 36px; }
  .case-cover { aspect-ratio: 1.2; }
  .cv-header { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal, .has-js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .skip-link, .consent-banner, .print-control { display: none !important; }
  body { background: #fff; color: #111; font-size: 11pt; }
  .container { width: 100%; }
  .section-shell { padding-block: 16px; }
  .cv-section { break-inside: avoid; }
  a { text-decoration: none; }
}
