:root {
  color-scheme: light;
  --ink: #142131;
  --muted: #647284;
  --navy: #0b1724;
  --teal: #18b8a5;
  --teal-dark: #087f78;
  --line: #e4eaf0;
  --surface: #f5f8fa;
  --white: #fff;
  --button-foreground: #fff;
  --shadow: 0 24px 70px rgba(18, 42, 59, .09);
  --font-body: "DM Sans", sans-serif;
  --font-heading: "Manrope", sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #e8eef3;
  --muted: #a6b3bf;
  --navy: #07111b;
  --teal-dark: #56d8c7;
  --line: #2b3948;
  --surface: #101d2a;
  --white: #172533;
  --button-foreground: #f5f8fa;
  --shadow: 0 24px 70px rgba(0, 0, 0, .28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: var(--font-body); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #18b8a5; outline-offset: 4px; }
.container { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.section { padding: 104px 0; background-color: var(--white); }
.section-soft { background: var(--surface); }
.skip-link { position: absolute; z-index: 20; top: 12px; left: 12px; padding: 10px 16px; transform: translateY(-160%); border-radius: 8px; background: var(--white); color: var(--ink); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; z-index: 10; top: 0; border-bottom: 1px solid rgba(228, 234, 240, .78); background: rgba(255, 255, 255, .94); backdrop-filter: blur(16px); }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 18px var(--font-heading); letter-spacing: -.7px; }
.brand-mark { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 11px; background: var(--navy); color: var(--teal); font-size: 13px; letter-spacing: 0; }
.brand-dot { color: var(--teal-dark); }
.primary-nav { display: flex; align-items: center; gap: 26px; color: #536172; font-size: 13px; font-weight: 600; }
.primary-nav a { transition: color .2s ease; }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--teal-dark); }
.primary-nav .nav-resume { padding: 9px 15px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); }
.primary-nav .nav-resume:hover { border-color: var(--teal); }
.theme-toggle { position: fixed; z-index: 15; right: 24px; bottom: 24px; display: grid; width: 50px; height: 50px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--white); color: var(--ink); box-shadow: 0 8px 24px rgba(11, 23, 36, .2); cursor: pointer; transition: border-color .2s ease, transform .2s ease, background .2s ease; }
.theme-toggle:hover { transform: translateY(-2px); border-color: var(--teal); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.theme-toggle .icon-sun, :root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
.theme-toggle .icon-moon, :root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
.menu-toggle { display: none; }

.hero { overflow: hidden; padding: 83px 0 94px; background: radial-gradient(ellipse at 84% 34%, rgba(24, 184, 165, .11), transparent 37%), linear-gradient(120deg, #fff 25%, #f8fbfc 100%); }
.hero-grid { display: grid; min-height: 478px; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 64px; }
.eyebrow { margin: 0 0 17px; color: var(--teal-dark); font-size: 11px; font-weight: 700; letter-spacing: 1.7px; text-transform: uppercase; }
.status-dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(24, 184, 165, .12); vertical-align: 1px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--font-heading); }
h1 { margin-bottom: 21px; font-size: clamp(42px, 5.3vw, 66px); font-weight: 800; letter-spacing: -3.8px; line-height: 1.12; }
.text-gradient { color: #078c82; background: linear-gradient(100deg, #138d84 4%, #1bb8a6 95%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-intro { max-width: 530px; margin-bottom: 29px; color: var(--muted); font-size: 17px; line-height: 1.8; }
.button-row, .project-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 13px; padding: 0 20px; border: 1px solid transparent; border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 700; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--navy); color: var(--button-foreground); box-shadow: 0 8px 20px rgba(11, 23, 36, .13); }
.button-primary:hover { background: #18354a; box-shadow: 0 12px 26px rgba(11, 23, 36, .19); }
.button-outline { border-color: #d9e1e8; background: var(--white); color: var(--ink); }
.button-outline:hover { border-color: var(--teal); }
.button-small { min-height: 39px; padding: 0 12px; font-size: 11px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 31px; color: #7a8793; font-size: 11px; }
.hero-meta span::before { content: ""; display: inline-block; width: 8px; height: 5px; margin-right: 8px; border-bottom: 1.5px solid var(--teal-dark); border-left: 1.5px solid var(--teal-dark); transform: rotate(-45deg); vertical-align: 2px; }
.hero-visual { position: relative; display: grid; min-height: 430px; place-items: center; }
.portrait { position: relative; z-index: 1; overflow: hidden; display: grid; place-items: center; border: 8px solid rgba(255, 255, 255, .88); border-radius: 48% 48% 43% 43%; background: linear-gradient(145deg, #d6f1ee, #e9eef5 58%, #d7e4ed); box-shadow: var(--shadow); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.portrait-large { width: min(340px, 76vw); height: 366px; }
.portrait-initials { display: none; position: absolute; color: rgba(11, 23, 36, .38); font: 800 80px var(--font-heading); letter-spacing: -7px; }
.portrait.is-placeholder .portrait-initials { display: block; }
.portrait.is-placeholder img { display: none; }
.visual-orbit { position: absolute; width: 400px; height: 400px; border: 1px solid rgba(24, 184, 165, .2); border-radius: 50%; }
.visual-orbit::before, .visual-orbit::after { position: absolute; content: ""; border: 1px solid rgba(24, 184, 165, .13); border-radius: 50%; }
.visual-orbit::before { inset: 28px; }
.visual-orbit::after { inset: 56px; }
.floating-card { position: absolute; z-index: 2; display: grid; grid-template-columns: auto 1fr; gap: 1px 10px; padding: 13px 16px; border: 1px solid rgba(228, 234, 240, .9); border-radius: 11px; background: rgba(255, 255, 255, .94); box-shadow: 0 14px 35px rgba(18, 42, 59, .12); }
.floating-card > span:not(.code-dot) { grid-column: 2; color: var(--muted); font-size: 10px; }
.floating-card strong { grid-column: 2; font: 700 12px var(--font-heading); }
.code-card { top: 245px; right: -10px; }
.code-card .code-dot { grid-row: 1 / span 2; align-self: center; width: 9px; height: 9px; border-radius: 50%; background: var(--teal); }
.code-card b { color: var(--teal-dark); }
.role-card { bottom: 63px; left: -13px; }
.role-icon { grid-row: 1 / span 2; display: grid; width: 31px; height: 31px; place-items: center; border-radius: 8px; background: #e9f7f5; color: var(--teal-dark); font-size: 18px; }

.trust-strip { border-block: 1px solid var(--line); background: #fff; }
.trust-inner { display: flex; min-height: 74px; align-items: center; justify-content: space-between; gap: 20px; color: #516171; font: 700 12px var(--font-heading); }
.trust-inner > span { color: #9aa5af; font: 700 9px var(--font-body); letter-spacing: 1.3px; }
.intro-grid, .values-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.section-heading h2, .about-copy h2, .contact-copy h2, .learning-callout h2 { margin-bottom: 16px; font-size: clamp(30px, 4vw, 43px); letter-spacing: -1.9px; line-height: 1.2; }
.section-heading > p:last-child, .intro-copy p, .learning-callout p { color: var(--muted); }
.intro-copy p { margin-bottom: 19px; line-height: 1.9; }
.text-link { display: inline-flex; align-items: center; gap: 9px; color: var(--teal-dark); font-size: 12px; font-weight: 700; }
.text-link:hover { color: var(--teal-dark); }
.centered { max-width: 630px; margin: 0 auto 42px; text-align: center; }
.centered > p:last-child { color: var(--muted); }
.project-grid, .service-grid, .skill-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 19px; }
.project-card, .service-card, .skill-card { padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.project-card:hover, .service-card:hover, .skill-card:hover { transform: translateY(-4px); border-color: #cde9e5; box-shadow: var(--shadow); }
.project-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 21px; }
.project-icon, .service-icon { display: grid; width: 39px; height: 39px; place-items: center; border: 1px solid #d7eeeb; border-radius: 10px; background: #eff9f8; color: var(--teal-dark); font-size: 20px; }
.project-kind, .service-number { color: #82909d; font-size: 9px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.project-card h2, .project-card h3 { margin-bottom: 10px; font-size: 17px; letter-spacing: -.5px; line-height: 1.4; }
.project-card p, .service-card > p:not(.service-number), .skill-card > p { color: var(--muted); font-size: 12px; line-height: 1.8; }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; margin: 17px 0 19px; }
.tag-list span { padding: 5px 9px; border: 1px solid #e7edf1; border-radius: 5px; background: #f8fafb; color: #576576; font-size: 9px; font-weight: 600; }
.center-action { margin-top: 31px; text-align: center; }
.cta-band { padding: 57px 0; background: var(--navy); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.cta-inner .eyebrow { margin-bottom: 9px; color: #75d5ca; }
.cta-inner h2 { margin: 0; color: #fff; font-size: clamp(27px, 3.5vw, 37px); letter-spacing: -1.7px; }
.cta-inner .button-primary { background: var(--teal); color: var(--navy); }
.site-footer { padding: 35px 0 28px; border-top: 1px solid var(--line); background: #fff; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 25px; }
.footer-brand { grid-column: 1; }
.footer-inner > p { grid-column: 1; margin: 0; color: var(--muted); font-size: 11px; }
.footer-links { display: flex; grid-column: 2; grid-row: 1 / span 2; flex-wrap: wrap; gap: 18px; color: #596777; font-size: 11px; font-weight: 600; }
.footer-links a:hover { color: var(--teal-dark); }
.footer-inner > small { grid-column: 1 / -1; margin-top: 19px; padding-top: 17px; border-top: 1px solid var(--line); color: #82909d; font-size: 10px; }

.page-hero { padding: 82px 0 70px; background: radial-gradient(ellipse at 78% 28%, rgba(24, 184, 165, .1), transparent 38%), var(--surface); }
.page-hero h1 { max-width: 800px; margin-bottom: 15px; font-size: clamp(40px, 5vw, 58px); }
.page-hero .container > p:last-child { max-width: 650px; margin-bottom: 0; color: var(--muted); font-size: 16px; }
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 76px; }
.about-photo-wrap { position: relative; max-width: 390px; margin-inline: auto; }
.portrait-about { width: 100%; height: 440px; border-radius: 47% 47% 14px 14px; }
.portrait-about .portrait-initials { font-size: 96px; }
.photo-caption { position: absolute; right: -22px; bottom: 24px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 9px; background: #fff; box-shadow: var(--shadow); color: #566474; font-size: 11px; font-weight: 600; }
.about-copy h2 { max-width: 520px; }
.about-copy > p:not(.eyebrow) { color: var(--muted); font-size: 14px; line-height: 1.9; }
.about-copy .button { margin-top: 8px; }
.values-grid { align-items: start; }
.value-item { display: grid; grid-template-columns: 42px 1fr; gap: 12px; padding: 20px 0; border-bottom: 1px solid #e2e9ee; }
.value-item > span { color: var(--teal-dark); font: 700 12px var(--font-heading); }
.value-item h3 { margin-bottom: 5px; font-size: 15px; }
.value-item p { margin: 0; color: var(--muted); font-size: 12px; }
.skill-grid { grid-template-columns: repeat(2, 1fr); }
.skill-card { padding: 28px; }
.skill-card-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 16px; }
.skill-card-heading h2 { margin: 0; font-size: 18px; letter-spacing: -.5px; }
.skill-card > p { min-height: 44px; }
.skill-card .tag-list { margin-bottom: 0; }
.learning-callout { display: flex; align-items: center; justify-content: space-between; gap: 35px; padding: 39px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.learning-callout > div { max-width: 650px; }
.learning-callout h2 { font-size: 33px; }
.learning-callout p:last-child { margin-bottom: 0; font-size: 13px; line-height: 1.8; }
.service-grid { grid-template-columns: repeat(2, 1fr); }
.service-card { padding: 30px; }
.service-card .service-icon { margin-bottom: 19px; }
.service-card .service-number { margin-bottom: 8px; }
.service-card h2 { margin-bottom: 11px; font-size: 21px; letter-spacing: -.7px; }
.service-card > p:not(.service-number) { min-height: 66px; font-size: 13px; }
.project-grid-page { grid-template-columns: repeat(2, 1fr); }
.project-grid-page .project-card { padding: 28px; }
.project-grid-page .project-card h2 { font-size: 20px; }
.project-grid-page .project-card > p:not(.demo-note) { min-height: 82px; font-size: 13px; }
.project-actions { gap: 8px; }
.demo-note { margin: 11px 0 0 !important; color: #788592 !important; font-size: 10px !important; }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; align-items: start; gap: 74px; }
.contact-copy h2 { font-size: 38px; }
.contact-copy > p:not(.eyebrow) { color: var(--muted); font-size: 14px; }
.contact-links { display: grid; gap: 8px; margin-top: 30px; }
.contact-links > a { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact-link-icon { display: grid; width: 35px; height: 35px; place-items: center; border: 1px solid #d7eeeb; border-radius: 9px; background: #eff9f8; color: var(--teal-dark); font-size: 15px; font-weight: 700; }
.contact-links small, .contact-links strong { display: block; }
.contact-links small { color: #82909d; font-size: 9px; font-weight: 700; letter-spacing: 1px; }
.contact-links strong { overflow-wrap: anywhere; color: #344456; font-size: 11px; }
.contact-links > a > span:last-child { color: var(--teal-dark); }
.contact-form { padding: 27px; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: 0 15px 50px rgba(18, 42, 59, .06); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-field { display: grid; gap: 7px; margin-bottom: 16px; }
.form-field label { font-size: 11px; font-weight: 700; }
.form-field input, .form-field textarea { width: 100%; border: 1px solid #dfe6ec; border-radius: 7px; background: #fcfdfd; color: var(--ink); font-size: 12px; transition: border-color .2s ease, box-shadow .2s ease; }
.form-field input { min-height: 44px; padding: 0 12px; }
.form-field textarea { min-height: 130px; padding: 11px 12px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(24, 184, 165, .12); }
.form-field input::placeholder, .form-field textarea::placeholder { color: #9aa6b1; }
.form-note { margin: 14px 0 0; color: #788592; font-size: 10px; line-height: 1.6; }
.form-status { min-height: 20px; margin: 10px 0 0; color: var(--teal-dark); font-size: 12px; font-weight: 600; }

:root[data-theme="dark"] .site-header { border-bottom-color: var(--line); background: rgba(23, 37, 51, .94); }
:root[data-theme="dark"] .primary-nav { color: #bac5ce; }
:root[data-theme="dark"] .hero { background: radial-gradient(ellipse at 84% 34%, rgba(24, 184, 165, .12), transparent 37%), linear-gradient(120deg, #111f2c 25%, #152633 100%); }
:root[data-theme="dark"] .text-gradient { background-image: linear-gradient(100deg, #56d8c7 4%, #85eadb 95%); }
:root[data-theme="dark"] .button-outline { border-color: var(--line); }
:root[data-theme="dark"] .hero-meta { color: #a6b3bf; }
:root[data-theme="dark"] .portrait { border-color: rgba(23, 37, 51, .92); background: linear-gradient(145deg, #294740, #273643 58%, #324453); }
:root[data-theme="dark"] .portrait-initials { color: rgba(232, 238, 243, .45); }
:root[data-theme="dark"] .floating-card { border-color: var(--line); background: rgba(23, 37, 51, .96); }
:root[data-theme="dark"] .trust-strip, :root[data-theme="dark"] .site-footer { background-color: var(--white); }
:root[data-theme="dark"] .trust-inner { color: #c5d0d8; }
:root[data-theme="dark"] .trust-inner > span, :root[data-theme="dark"] .footer-inner > small, :root[data-theme="dark"] .project-kind, :root[data-theme="dark"] .service-number, :root[data-theme="dark"] .contact-links small { color: #a6b3bf; }
:root[data-theme="dark"] .project-card, :root[data-theme="dark"] .service-card, :root[data-theme="dark"] .skill-card, :root[data-theme="dark"] .learning-callout, :root[data-theme="dark"] .photo-caption, :root[data-theme="dark"] .contact-form { background: var(--white); }
:root[data-theme="dark"] .project-card:hover, :root[data-theme="dark"] .service-card:hover, :root[data-theme="dark"] .skill-card:hover { border-color: #39786f; }
:root[data-theme="dark"] .project-icon, :root[data-theme="dark"] .service-icon, :root[data-theme="dark"] .contact-link-icon, :root[data-theme="dark"] .role-icon { border-color: #31534f; background: #1d3939; }
:root[data-theme="dark"] .tag-list span { border-color: var(--line); background: #1c2b39; color: #d1d9df; }
:root[data-theme="dark"] .footer-links { color: #c5d0d8; }
:root[data-theme="dark"] .page-hero { background: radial-gradient(ellipse at 78% 28%, rgba(24, 184, 165, .1), transparent 38%), var(--surface); }
:root[data-theme="dark"] .photo-caption { color: #d4dde4; }
:root[data-theme="dark"] .value-item { border-bottom-color: var(--line); }
:root[data-theme="dark"] .contact-links strong { color: #d4dde4; }
:root[data-theme="dark"] .contact-form { border-color: var(--line); }
:root[data-theme="dark"] .form-field input, :root[data-theme="dark"] .form-field textarea { border-color: var(--line); background: #101d2a; color: var(--ink); }
:root[data-theme="dark"] .form-field input::placeholder, :root[data-theme="dark"] .form-field textarea::placeholder { color: #8796a4; }
:root[data-theme="dark"] .form-note, :root[data-theme="dark"] .demo-note { color: #a6b3bf !important; }
:root[data-theme="dark"] .primary-nav .nav-resume { color: var(--ink); }

.js .reveal { opacity: 0; transform: translateY(15px); transition: opacity .65s ease, transform .65s ease; }
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (max-width: 900px) {
  .primary-nav { gap: 15px; }
  .hero-grid { gap: 24px; }
  .hero-visual { transform: scale(.92); }
  .about-grid, .contact-grid { gap: 40px; }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-inner { flex-wrap: wrap; justify-content: center; padding-block: 18px; }
  .trust-inner > span { width: 100%; text-align: center; }
}
@media (max-width: 680px) {
  .container { width: min(100% - 36px, 520px); }
  .section { padding: 72px 0; }
  .header-inner { min-height: 68px; }
  .menu-toggle { display: grid; width: 41px; height: 41px; align-content: center; justify-items: center; gap: 5px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); cursor: pointer; }
  .menu-toggle span { width: 17px; height: 2px; border-radius: 3px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }
  .primary-nav { position: absolute; top: calc(100% + 1px); right: 0; left: 0; display: none; align-items: stretch; gap: 0; padding: 10px 24px 18px; border-bottom: 1px solid var(--line); background: var(--white); box-shadow: 0 18px 26px rgba(18, 42, 59, .08); }
  .primary-nav.is-open { display: flex; flex-direction: column; }
  .primary-nav a { padding: 10px 4px; }
  .primary-nav .nav-resume { margin-top: 5px; text-align: center; }
  .theme-toggle { right: 16px; bottom: 16px; width: 48px; height: 48px; }
  .hero { padding: 61px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .hero-copy { order: 1; }
  .hero-visual { min-height: 340px; order: 0; transform: none; }
  .portrait-large { width: 260px; height: 295px; }
  .visual-orbit { width: 320px; height: 320px; }
  .code-card { top: 210px; right: 0; }
  .role-card { bottom: 33px; left: 0; }
  h1 { font-size: clamp(42px, 12vw, 58px); letter-spacing: -2.7px; }
  .hero-intro { font-size: 15px; }
  .hero-meta { gap: 9px 15px; }
  .trust-inner { gap: 7px 20px; font-size: 10px; }
  .intro-grid, .values-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 29px; }
  .section-heading h2, .about-copy h2, .contact-copy h2 { font-size: 34px; }
  .centered { margin-bottom: 29px; }
  .project-grid, .project-grid-page, .service-grid, .skill-grid { grid-template-columns: 1fr; }
  .cta-inner { align-items: flex-start; flex-direction: column; }
  .footer-inner { grid-template-columns: 1fr; gap: 10px; }
  .footer-links, .footer-inner > p, .footer-brand, .footer-inner > small { grid-column: 1; grid-row: auto; }
  .footer-links { gap: 12px 17px; margin-top: 6px; }
  .page-hero { padding: 60px 0 51px; }
  .page-hero h1 { font-size: clamp(39px, 11vw, 52px); letter-spacing: -2.5px; }
  .about-photo-wrap { width: min(100%, 330px); }
  .portrait-about { height: 360px; }
  .photo-caption { right: -7px; }
  .learning-callout { align-items: flex-start; flex-direction: column; padding: 26px; }
  .learning-callout h2 { font-size: 29px; }
  .service-card > p:not(.service-number), .project-grid-page .project-card > p:not(.demo-note) { min-height: 0; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
