@font-face {
  font-family: "Amsterdam One";
  src: local("Amsterdam One"), local("AmsterdamOne"), url("../fonts/AmsterdamOne.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
/* Editorial light theme. Loaded after the original component styles. */
:root {
  --color-bg: #f8faf7; --color-bg-elevated: #fff;
  --color-bg-glass: rgba(25,77,66,.035);
  --color-text: #172b29; --color-text-muted: #52635e; --color-text-faint: #64736e;
  --color-border: #dfe6df; --color-border-strong: #c3d1c7;
  --color-accent: #17634f; --color-accent-soft: #23715c;
  --color-accent-glow: rgba(23,99,79,.12); --color-accent-dim: #eaf2eb;
  --content-width: 1360px; --nav-height: 88px;
  --fs-h1: clamp(3.5rem,5.6vw,5.25rem); --fs-h2: clamp(2rem,3.5vw,3rem);
  --radius-md: 12px; --radius-lg: 18px;
}
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 110px; }
body { overflow-x: clip; overflow-wrap: break-word; }
::selection { background: #d5e8ae; color: #172b29; }
.reading-progress { position: fixed; left: 0; top: 0; height: 3px; width: 100%; transform: scaleX(0); transform-origin: left; background: var(--color-accent); z-index: 600; }
#site-nav { background: rgba(248,250,247,.94); border-bottom: 1px solid var(--color-border); }
#site-nav.is-scrolled { background: rgba(248,250,247,.94); box-shadow: 0 4px 24px #183d2906; }
.nav-brand { flex-direction: row; align-items: center; gap: 13px; }
.nav-brand .brand-name { display: block; font-family: "Amsterdam One", "Segoe Script", cursive; font-size: clamp(1.45rem, 2.1vw, 1.85rem); font-weight: 400; font-synthesis: none; line-height: 1.6; letter-spacing: 0; text-transform: none; white-space: nowrap; color: var(--color-text); }
.nav-links { align-items: center; gap: clamp(12px,1.3vw,22px); }
.nav-links a { font-size: .75rem; white-space: nowrap; }
.nav-links .nav-contact { padding: 11px 17px; border: 1px solid var(--color-border-strong); border-radius: 6px; color: var(--color-text); }
.nav-contact span { margin-left: 15px; }
.nav-links a.is-active::after { box-shadow: none; }
#hero { min-height: 830px; min-height: min(950px,100svh); display: block; padding-top: calc(var(--nav-height) + 62px); background: radial-gradient(ellipse at 78% 45%,#e7efde70,transparent 48%); }
.hero-inner { grid-template-columns: 1.18fr 1fr; gap: clamp(40px,6vw,100px); align-items: center; }
.hero-panel { background: none; box-shadow: none; backdrop-filter: none; padding: 0; border-radius: 0; }
.hero-role { display: flex; align-items: center; gap: 10px; font-size: .64rem; letter-spacing: .08em; margin-bottom: 27px; color: var(--color-accent); }
.status-dot { display: inline-block; flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; background: #28765a; box-shadow: 0 0 0 4px #28765a0d; }
h1 { font-weight: 500; letter-spacing: -.065em; line-height: 1.06; margin-bottom: 26px; }
.human-word { color: var(--color-accent); position: relative; }
.human-word::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; border-radius: 50%; background: #b6cd91; transform: rotate(-3deg); }
.hero-intro { color: var(--color-text); font-size: 1.1rem; margin-bottom: 10px; }
.hero-intro strong { font-weight: 600; }
.hero-tagline { font-size: .98rem; line-height: 1.85; max-width: 46ch; }
.hero-actions { margin-top: 28px; gap: 12px; }
.btn { padding: 14px 21px; border-radius: 6px; font-size: .82rem; min-height: 48px; }
.btn span { margin-left: 24px; font-size: 1.1rem; }
.btn-primary,.btn-primary:hover,.filter-pill[aria-pressed="true"] { color: #fff; }
.btn-primary:hover { background: #124e3f; box-shadow: 0 7px 18px #17634f1a; }
.btn-ghost { background: #ffffff60; }
.hero-location { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; color: var(--color-text-faint); font-size: .64rem; margin-top: 30px; }
.hero-location > span:first-child { font-size: 1rem; color: var(--color-accent); }
.location-divider { color: #bccabd; }
.hero-visual { min-width: 0; }
.hero-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 42px; padding-bottom: 26px; color: var(--color-text-faint); }
.hero-bottom a { color: var(--color-text-muted); }
.hero-bottom a span { margin-left: 20px; font-size: 1rem; }
.affiliation-strip { background: #f0f3ed; border-bottom: 1px solid var(--color-border); }
.affiliation-inner { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding-top: 28px; padding-bottom: 28px; }
.affiliation-inner > p { margin: 0; line-height: 1.7; font-size: .55rem; }
.section { padding: 100px 0; }
.section.alt { background: #f0f4ee; }
.section-head { text-align: left; max-width: none; margin-bottom: 46px; border-bottom: 1px solid var(--color-border); padding-bottom: 25px; }
.section-head h2 { font-weight: 500; letter-spacing: -.045em; margin-bottom: 10px; }
.section-head p { max-width: 65ch; }
.eyebrow { font-size: .66rem; letter-spacing: .13em; }
.subsection-title { text-align: left; font-size: 1.2rem; letter-spacing: -.025em; }
.about-intro { max-width: 78ch; margin-left: 0; text-align: left; font-size: 1.05rem; }
.about-intro .mantra { padding-left: 20px; border-left: 2px solid #a0b67e; font-size: 1.25rem; }
.about-intro .mantra { margin-left: 0; margin-right: 0; }
.about-intro .mantra p { margin: 0; }
.about-intro .mantra footer { margin-top: 8px; font: normal .7rem/1.5 var(--font-mono); color: var(--color-text-muted); }
.hero-motto { max-width: 42ch; margin: var(--space-5) 0; padding-left: 18px; border-left: 2px solid #a0b67e; }
.hero-motto p { margin: 0; font-size: 1rem; font-style: italic; line-height: 1.6; color: var(--color-text); }
.hero-motto footer { margin-top: 6px; font: .65rem/1.5 var(--font-mono); color: var(--color-text-muted); }
.card { padding: 27px; box-shadow: 0 2px 5px #172b2903; }
.card:hover { border-color: #b9ccbc; box-shadow: 0 12px 30px #173e2910; }
.credential-card h4 { line-height: 1.45; }
.credential-card .where { font-size: .88rem; margin-bottom: 7px; }
.credential-card .loc,.credential-dates { font-size: .74rem; }
.credential-badge { border-radius: 10px; }
.credential-wordmark { width: 72px; padding: 6px; border-radius: 8px; }
.credential-stack { gap: 16px; }

/* Connected vertical paths for education and honors. */
.credential-timeline { --timeline-gap: 18px; counter-reset: credential-step; gap: var(--timeline-gap); padding-left: 22px; }
.credential-timeline > .credential-card { counter-increment: credential-step; position: relative; z-index: 1; min-width: 0; }
.credential-timeline > .credential-card > div { min-width: 0; }
.credential-timeline > .credential-card::before { content: counter(credential-step,decimal-leading-zero); position: absolute; z-index: 3; top: 22px; left: -38px; display: grid; place-items: center; width: 29px; height: 29px; border: 1px solid #8eaa94; border-radius: 50%; background: var(--color-bg); color: var(--color-accent); font: 600 .55rem var(--font-mono); letter-spacing: -.03em; box-shadow: 0 0 0 5px var(--color-bg); }
.credential-timeline > .credential-card:not(:last-child)::after { content: ''; position: absolute; z-index: -2; top: 36px; bottom: calc(-1 * var(--timeline-gap) - 36px); left: -24px; border-left: 1px solid #9bb3a0; }

/* A compact, connected career path. Desktop rows snake left-to-right, then
   right-to-left, so the chronology reads as one continuous route. */
.job-history-title { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.job-history-title span { color: var(--color-text-faint); font: 400 .62rem var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.job-history { --history-gap-x: 24px; --history-gap-y: 42px; counter-reset: career-step; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: var(--history-gap-y) var(--history-gap-x); margin-bottom: var(--space-9); padding-top: 13px; }
.job-history > .credential-card { counter-increment: career-step; position: relative; z-index: 1; min-width: 0; min-height: 158px; padding: 25px 20px 20px; box-shadow: 0 3px 12px #173e2906; }
.job-history > .credential-card::before { content: counter(career-step,decimal-leading-zero); position: absolute; z-index: 3; top: -14px; left: 20px; display: grid; place-items: center; width: 29px; height: 29px; border: 1px solid #8eaa94; border-radius: 50%; background: var(--color-bg); color: var(--color-accent); font: 600 .55rem var(--font-mono); letter-spacing: -.03em; box-shadow: 0 0 0 6px var(--color-bg); }
.job-history > .credential-card::after { content: ''; position: absolute; z-index: -2; top: -1px; left: 34px; width: calc(100% + var(--history-gap-x)); border-top: 1px solid #9bb3a0; }
.job-history > .credential-card:nth-child(3)::after { left: 34px; width: calc(100% - 22px); height: calc(100% + var(--history-gap-y) + 2px); border-top: 1px solid #9bb3a0; border-right: 1px solid #9bb3a0; border-bottom: 1px solid #9bb3a0; border-radius: 0 22px 22px 0; }
.job-history > .credential-card:nth-child(4) { grid-column: 3; }
.job-history > .credential-card:nth-child(5) { grid-column: 2; grid-row: 2; }
.job-history > .credential-card:nth-child(6) { grid-column: 1; grid-row: 2; }
.job-history > .credential-card:nth-child(4)::after,
.job-history > .credential-card:nth-child(5)::after { right: calc(100% - 34px); left: auto; }
.job-history > .credential-card:nth-child(6)::after { right: calc(100% - 34px); left: auto; width: calc(34px + var(--history-gap-x) / 2); height: calc(100% + var(--history-gap-y) + 2px); border-top: 1px solid #9bb3a0; border-left: 1px solid #9bb3a0; border-bottom: 1px solid #9bb3a0; border-radius: 22px 0 0 22px; }
.job-history > .credential-card:nth-child(7) { grid-column: 1; }
.job-history > .credential-card:nth-child(8) { grid-column: 2; grid-row: 3; }
.job-history > .credential-card:nth-child(9) { grid-column: 3; grid-row: 3; }
.job-history > .credential-card:nth-child(9)::after { display: none; }
@media (max-width: 1000px) and (min-width: 621px) {
  .job-history { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .job-history > .credential-card:nth-child(n) { grid-column: auto; grid-row: auto; }
  .job-history > .credential-card:nth-child(1) { grid-column: 1; grid-row: 1; }
  .job-history > .credential-card:nth-child(2) { grid-column: 2; grid-row: 1; }
  .job-history > .credential-card:nth-child(3) { grid-column: 2; grid-row: 2; }
  .job-history > .credential-card:nth-child(4) { grid-column: 1; grid-row: 2; }
  .job-history > .credential-card:nth-child(5) { grid-column: 1; grid-row: 3; }
  .job-history > .credential-card:nth-child(6) { grid-column: 2; grid-row: 3; }
  .job-history > .credential-card:nth-child(7) { grid-column: 2; grid-row: 4; }
  .job-history > .credential-card:nth-child(8) { grid-column: 1; grid-row: 4; }
  .job-history > .credential-card:nth-child(9) { grid-column: 1; grid-row: 5; }
  .job-history > .credential-card:nth-child(n)::after { left: 34px; right: auto; width: calc(100% + var(--history-gap-x)); height: 0; border: 0; border-top: 1px solid #9bb3a0; border-radius: 0; }
  .job-history > .credential-card:nth-child(3)::after,
  .job-history > .credential-card:nth-child(7)::after { right: calc(100% - 34px); left: auto; }
  .job-history > .credential-card:nth-child(2)::after,
  .job-history > .credential-card:nth-child(6)::after { left: 34px; width: calc(100% - 22px); height: calc(100% + var(--history-gap-y) + 2px); border-top: 1px solid #9bb3a0; border-right: 1px solid #9bb3a0; border-bottom: 1px solid #9bb3a0; border-radius: 0 22px 22px 0; }
  .job-history > .credential-card:nth-child(4)::after,
  .job-history > .credential-card:nth-child(8)::after { right: calc(100% - 34px); left: auto; width: calc(34px + var(--history-gap-x) / 2); height: calc(100% + var(--history-gap-y) + 2px); border-top: 1px solid #9bb3a0; border-left: 1px solid #9bb3a0; border-bottom: 1px solid #9bb3a0; border-radius: 22px 0 0 22px; }
  .job-history > .credential-card:nth-child(9)::after { display: none; }
}
@media (max-width: 620px) {
  .job-history-title { align-items: flex-start; flex-direction: column; gap: 5px; }
  .job-history { --history-gap-y: 18px; display: grid; grid-template-columns: 1fr; gap: var(--history-gap-y); padding: 0 0 0 22px; }
  .job-history > .credential-card:nth-child(n) { grid-column: 1; grid-row: auto; min-height: 0; }
  .job-history > .credential-card:nth-child(n)::before { top: 22px; left: -38px; box-shadow: 0 0 0 5px var(--color-bg); }
  .job-history > .credential-card:nth-child(n)::after { display: block; top: 36px; bottom: calc(-1 * var(--history-gap-y)); left: -24px; right: auto; width: 0; height: auto; border: 0; border-left: 1px solid #9bb3a0; border-radius: 0; }
  .job-history > .credential-card:nth-child(9)::after { display: none; }
}
.stat-tile { padding: 27px 18px; text-align: left; container-type: inline-size; }
.stat-icon { font-size: 1.65rem; }
.stat-value { font-family: var(--font-display); font-size: 2.2rem; font-weight: 500; letter-spacing: -.04em; }
#stat-age, #stat-marriage { font-size: clamp(1rem, 26cqi, 2.2rem); line-height: 1.25; white-space: pre; }
.stat-label { font-size: .75rem; }
.stat-icon img { margin-left: 0; filter: none; }
.chip:hover { box-shadow: none; background: #edf4e8; }
.filter-bar,.chip-cloud { justify-content: flex-start; }
.chip-group h4 { text-align: left; }
.filter-pill { border-radius: 6px; min-height: 40px; }
.pub-item { padding: 28px; margin-bottom: 12px; border: 1px solid var(--color-border); border-radius: 10px; background: #fff; }
.pub-item:last-child { border-bottom: 1px solid var(--color-border); }
.pub-title { line-height: 1.5; }
.timeline { max-width: 900px; margin-left: 0; }
.gallery-item { border-radius: 10px; }
.gallery-item:focus-visible .gallery-caption { transform: translateY(0); }
#contact { background: #eaf0e4; }
#contact h2 { max-width: 18ch; font-size: clamp(2.4rem,4.5vw,4rem); }
#site-footer { background: #f8faf7; padding: 40px 0; }
.js .reveal { opacity: 1; transform: none; transition: opacity .75s ease, transform .75s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-pending { opacity: 0; transform: translateY(28px); }
.js .reveal.is-revealed { opacity: 1; transform: none; }

/* Section entrances: layered movement, with readable content at rest. */
.js main > .section .reveal { transition: opacity .85s ease, transform 1s cubic-bezier(.16,1,.3,1); transition-delay: var(--reveal-delay,0ms); }
.js main > .section .reveal.is-pending { opacity: 0; transform: translate3d(0,42px,0) scale(.985); }
.js main > .section .section-head.is-pending { transform: translate3d(0,32px,0); }
main > .section .section-head { position: relative; }
main > .section .section-head::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 100%; height: 1px; background: linear-gradient(90deg,#347e64,#a8b88a 60%,transparent); transform: scaleX(var(--section-entry,1)); transform-origin: left; pointer-events: none; }
.section-motion-paused main > .section .section-head::after { transform: none; }
.section-motion-paused main > .section .reveal { transition: none; }
html.section-motion-paused main > .section .reveal.is-pending { opacity: 1; transform: none; }
@media (max-width: 620px) {
  .js main > .section .reveal.is-pending { transform: translate3d(0,24px,0); }
}
@media (prefers-reduced-motion: reduce) {
  .js main > .section .reveal { transition: none; }
  .js main > .section .reveal.is-pending { opacity: 1; transform: none; }
  main > .section .section-head::after { transform: none; }
}
@media print {
  .js main > .section .reveal.is-pending { opacity: 1; transform: none; }
  main > .section .section-head::after { display: none; }
}
@media (min-width: 901px) and (max-width: 1100px) { .hero-inner { gap: 35px; } .hero-role { font-size: .53rem; } }
@media (max-width: 900px) {
  :root { --nav-height: 72px; }
  .nav-toggle { display: flex; flex-direction: column; gap: 6px; justify-content: center; width: 44px; height: 44px; }
  .nav-toggle span { width: 22px; height: 2px; background: var(--color-text); }
  .nav-links { background: #f8faf7; align-items: stretch; visibility: hidden; }
  .nav-links.is-open { visibility: visible; }
  .nav-links .nav-contact { margin-top: 18px; }
  #hero { min-height: auto; padding-top: 120px; }
  .hero-inner { grid-template-columns: 1fr 1fr; text-align: left; gap: 30px; }
  h1 { font-size: clamp(2.8rem,6vw,4rem); }
  .hero-role { font-size: .48rem; letter-spacing: .02em; }
  .hero-tagline { font-size: .88rem; }
  .hero-actions { justify-content: flex-start; }
  .hero-actions .btn { padding: 12px; }
  .btn span { margin-left: 8px; }
  .hero-location { font-size: .57rem; }
  .affiliation-inner { flex-wrap: wrap; justify-content: center; gap: 22px 32px; }
  .affiliation-inner > p { flex-basis: 100%; text-align: center; }
  .affiliation-inner > p br { display: none; }
}
@media (max-width: 620px) {
  .hero-inner { grid-template-columns: 1fr; gap: 42px; }
  h1 { font-size: clamp(3.25rem,12.3vw,4.5rem); }
  .hero-role { font-size: .53rem; }
  .hero-tagline { margin-left: 0; font-size: .95rem; }
  .hero-visual { width: 100%; max-width: 430px; margin: 0 auto; }
  .hero-bottom { padding-top: 28px; }
  .hero-bottom > span { display: none; }
  .section { padding: 65px 0; }
  .section-head { margin-bottom: 30px; }
  .card { padding: 22px; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .grid-2 > *, .grid-3 > * { min-width: 0; }
  .stat-value { font-size: 1.8rem; }
  .pub-item { padding: 20px; }
  .gallery-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .gallery-caption { transform: none; font-size: .7rem; }
  .hero-location { font-size: .6rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal.is-pending { opacity: 1; transform: none; }
}
@media print {
  .reading-progress,.hero-visual,.hero-bottom,.affiliation-strip { display: none; }
  #hero { min-height: 0; padding: 0; }
  .hero-inner { display: block; }
  .js .reveal.is-pending { opacity: 1; transform: none; }
}
.footer-explore { display: flex; justify-content: center; flex-wrap: wrap; gap: 15px 28px; margin-bottom: 30px; font-size: .8rem; }
.identity-note { font-size: .7rem; }
.about-quote { font-style: italic; }

/* Hero: a scroll-shaped landscape behind an editorial portrait. */
#hero { isolation: isolate; background: #f8faf7; --hero-travel: 0px; }
#hero::before { content: ''; position: absolute; z-index: -1; inset: 0; background: radial-gradient(ellipse at 84% 45%,#dce7cf95,transparent 53%),radial-gradient(ellipse at 40% 95%,#e4e4cc70,transparent 55%); transform: translateY(var(--hero-travel)); pointer-events: none; }
#hero #bg-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: .8; mask-image: linear-gradient(90deg,transparent,rgba(0,0,0,.15) 33%,#000 64%); }
.hero-inner,.hero-bottom { position: relative; z-index: 1; }
.hero-visual { padding: 12px 24px 0 30px; }
.portrait-composition { position: relative; margin: 0 0 0 auto; max-width: 400px; transform: translateY(var(--hero-travel)); }
.portrait-composition::before { content: ''; position: absolute; inset: -15px -16px 65px 22px; border: 1px solid #90ab8e80; border-radius: 3px; z-index: -1; }
.portrait-frame { overflow: hidden; border-radius: 3px; aspect-ratio: 4 / 4.9; background: #dbe2d6; box-shadow: 0 22px 48px #223e2917; }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; filter: saturate(.7); }
.portrait-side-note { position: absolute; left: -31px; top: 0; writing-mode: vertical-rl; transform: rotate(180deg); color: #526b5b; font: .55rem var(--font-mono); letter-spacing: .15em; }
.portrait-caption { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; padding: 21px 0 0; }
.portrait-caption strong { display: block; font-size: .9rem; font-weight: 600; }
.portrait-caption small { display: block; margin-top: 5px; font-size: .69rem; color: var(--color-text-muted); }
.portrait-signature { font: 600 1.1rem var(--font-display); letter-spacing: -.055em; color: var(--color-text); white-space: nowrap; }
.portrait-signature span { color: var(--color-accent); }
#motion-toggle { display: inline-flex; gap: 13px; align-items: center; font: .6rem var(--font-mono); color: var(--color-text-muted); background: #f8faf7b0; border: 1px solid #c9d6c6; border-radius: 5px; padding: 10px 13px; min-height: 36px; cursor: pointer; }
#motion-toggle:hover { background: #edf3e8; border-color: var(--color-accent); }
.hero-bottom { font-family: var(--font-mono); font-size: .57rem; letter-spacing: .07em; }
.no-js #motion-toggle { display: none; }
@media (max-width: 900px) {
  .hero-visual { padding: 12px 10px 0 24px; }
  .portrait-caption small { font-size: .6rem; }
}
@media (max-width: 620px) {
  .hero-visual { padding: 15px 18px 0 30px; max-width: 420px; }
  .portrait-frame { aspect-ratio: 4 / 4.6; }
  #hero #bg-canvas { mask-image: linear-gradient(180deg,transparent 15%,#000 55%,#000); opacity: .65; }
  .portrait-caption small { font-size: .67rem; }
  .hero-bottom { padding-top: 30px; padding-bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .portrait-composition,#hero::before { transform: none; }
}
@media print { #motion-toggle { display: none; } }
.affiliation-logo { display: flex; flex: 0 1 150px; min-width: 0; height: 64px; align-items: center; justify-content: center; border-radius: 4px; }
.affiliation-logo img { max-width: 100%; height: auto; max-height: 60px; object-fit: contain; opacity: .82; transition: opacity 180ms ease; }
.affiliation-logo:hover img,.affiliation-logo:focus-visible img { opacity: 1; }
@media (max-width: 900px) { .affiliation-logo { flex-basis: 130px; } }
/* Persistent graph sits below the content and remains anchored to the viewport. */
body { isolation: isolate; }
#main { position: relative; z-index: 1; }
#section-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: 0; mask-image: linear-gradient(90deg,#000c,#000a 40%,#000); }
.section.alt { background: rgba(240,244,238,.68); }
#contact { background: rgba(234,240,228,.72); }
#site-footer { position: relative; z-index: 1; }
.floating-page-controls { position: fixed; right: 20px; bottom: max(20px,env(safe-area-inset-bottom)); z-index: 450; display: flex; align-items: center; gap: 8px; }
#section-motion-toggle, #floating-back-to-top { border: 1px solid #c9d6c6; border-radius: 5px; background: #f8faf7ef; color: var(--color-text-muted); font: .6rem var(--font-mono); padding: 11px 14px; min-height: 40px; cursor: pointer; box-shadow: 0 3px 16px #173e2908; }
#floating-back-to-top { display: inline-flex; align-items: center; justify-content: center; width: 40px; padding: 0; font-size: .9rem; text-decoration: none; }
#section-motion-toggle:hover, #floating-back-to-top:hover { border-color: var(--color-accent); }
#section-motion-toggle[hidden], #floating-back-to-top[hidden] { display: none; }
@media (max-width: 620px) { .floating-page-controls { right: 12px; bottom: max(12px,env(safe-area-inset-bottom)); } }
@media print { #section-canvas,.floating-page-controls { display: none !important; } }
/* Early access to social profiles without crowding the main navigation. */
.hero-social { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 24px; max-width: 420px; border-top: 1px solid var(--color-border); margin-top: 19px; padding-top: 9px; }
.hero-social a { display: inline-flex; align-items: center; gap: 9px; min-height: 40px; color: var(--color-text-muted); font-size: .75rem; }
.hero-social a span { color: var(--color-accent); }
.hero-social a:hover { color: var(--color-accent); text-decoration: underline; text-underline-offset: 4px; }
.contact-layout { display: grid; grid-template-columns: .9fr 1.1fr; align-items: start; gap: clamp(40px,6vw,90px); }
.contact-intro { padding-top: 23px; }
#contact .contact-intro h2 { font-weight: 500; line-height: 1.08; letter-spacing: -.055em; max-width: 13ch; font-size: clamp(2.7rem,4.3vw,4rem); margin: 7px 0 25px; }
.contact-description { max-width: 36ch; font-size: 1rem; line-height: 1.85; }
.contact-direct { margin-top: 42px; }
.contact-direct p { font-size: .75rem; margin-bottom: 9px; }
.contact-email { display: inline-flex; align-items: center; gap: 18px; color: var(--color-text); font-size: clamp(.9rem,1.4vw,1.1rem); border-bottom: 1px solid #aabb9e; padding-bottom: 8px; }
.contact-email span { color: var(--color-accent); }
.contact-extras { display: flex; flex-wrap: wrap; gap: 15px 25px; margin-top: 22px; }
.contact-extras a { display: inline-flex; align-items: center; gap: 10px; min-height: 36px; color: var(--color-text-muted); font-size: .72rem; }
.contact-extras a:hover { color: var(--color-accent); }
.contact-card { min-width: 0; background: #fff; border: 1px solid #d6e0d2; border-radius: 14px; padding: clamp(24px,3vw,42px); box-shadow: 0 14px 45px #213e2708; }
.contact-card-head { margin-bottom: 28px; }
.contact-card-head h3 { font-size: 1.35rem; font-weight: 500; letter-spacing: -.035em; margin-bottom: 8px; }
.contact-card-head p { font-size: .73rem; margin: 0; }
.contact-card .field { gap: 8px; margin-bottom: 21px; min-width: 0; }
.contact-card .field label { font-size: .76rem; color: var(--color-text); font-weight: 500; }
.contact-card .field input,.contact-card .field textarea { width: 100%; min-width: 0; border: 1px solid #d8e0d5; border-radius: 6px; background: #fafbf8; padding: 13px 14px; font-size: .88rem; line-height: 1.5; transition: border-color 180ms ease,box-shadow 180ms ease; }
.contact-card .field input::placeholder,.contact-card .field textarea::placeholder { color: #748071; opacity: 1; }
.contact-card .field textarea { min-height: 150px; }
.contact-card .field input:focus,.contact-card .field textarea:focus { background: #fff; border-color: var(--color-accent); box-shadow: 0 0 0 3px #17634f0d; }
.contact-card #contact-submit { width: 100%; justify-content: space-between; margin-top: 2px; }
.contact-card #contact-submit:disabled { opacity: .65; cursor: wait; transform: none; }
.contact-card #contact-status:empty { display: none; }
.contact-card #contact-status { font-size: .8rem; line-height: 1.6; margin-bottom: 0; }
.contact-privacy { font-size: .65rem; line-height: 1.8; margin: 18px 0 0; color: var(--color-text-faint); }
.contact-privacy a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; gap: 32px; }
  .contact-intro { padding-top: 0; }
  #contact .contact-intro h2 { max-width: 18ch; }
  .contact-description { max-width: 52ch; }
  .contact-direct { margin-top: 24px; }
  .contact-extras { margin-top: 10px; }
}
@media (max-width: 620px) {
  .hero-social { gap: 4px 20px; }
  .hero-social a { font-size: .72rem; gap: 6px; }
  .contact-card { padding: 24px 20px; }
  .contact-card .field input,.contact-card .field textarea { font-size: 1rem; }
}
.hero-social { gap: 12px; }
.hero-social a { width: 44px; height: 44px; justify-content: center; border: 1px solid var(--color-border); border-radius: 7px; color: var(--color-text-muted); background: #ffffff70; transition: color 180ms ease,background 180ms ease,border-color 180ms ease; }
.hero-social a:hover { color: var(--color-accent); background: #eaf2e6; border-color: #acc4ae; }
.hero-social svg { display: block; width: 20px; height: 20px; fill: currentColor; }

/* The expanded navigation switches to the drawer before labels become cramped. */
@media (max-width: 1080px) {
  :root { --nav-height: 72px; }
  /* A backdrop filter would anchor the fixed drawer to the header instead of the viewport. */
  #site-nav, #site-nav.is-scrolled {
    background: #f8faf7;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .nav-toggle { display: flex; flex-direction: column; gap: 6px; justify-content: center; width: 44px; height: 44px; }
  .nav-toggle span { width: 22px; height: 2px; background: var(--color-text); }
  .nav-links { position: fixed; z-index: 2; top: var(--nav-height); right: 0; bottom: 0; width: min(370px,88vw); padding: 18px 22px 28px; flex-direction: column; align-items: stretch; gap: 4px; overflow-y: auto; background: #fff; border-left: 1px solid #d4ded3; box-shadow: -18px 0 48px rgba(20,43,36,.14); transform: translateX(100%); visibility: hidden; transition: transform var(--duration-base) var(--ease-standard),visibility 0s linear var(--duration-base); }
  .nav-links.is-open { transform: translateX(0); visibility: visible; transition-delay: 0s; }
  .nav-links a { display: flex; align-items: center; min-height: 50px; padding: 12px 14px; border: 0; border-radius: 7px; color: var(--color-text); font-size: .86rem; }
  .nav-links a:hover,.nav-links a:focus-visible,.nav-links a.is-active { background: #edf3e9; color: var(--color-accent); }
  .nav-links a.is-active::after { display: none; }
  .nav-links .nav-contact { margin-top: 18px; padding: 12px 16px; }
  body.nav-open { overflow: hidden; }
  .nav-backdrop { position: fixed; z-index: 490; inset: var(--nav-height) 0 0; background: rgba(18,35,31,.34); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity var(--duration-base) var(--ease-standard),visibility 0s linear var(--duration-base); }
  .nav-backdrop.is-open { opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
}
@media (max-width: 620px) {
  .nav-links { width: 100%; padding: 16px 20px 28px; border-left: 0; box-shadow: none; }
  .nav-links a { min-height: 52px; font-size: .92rem; }
  .nav-backdrop { display: none; }
}
