:root {
    --ink: #3b1727;
    --ink-deep: #26101a;
    --ink-soft: #512536;
    --paper: #fbf5ed;
    --paper-warm: #f4e6e0;
    --paper-deep: #ead5d1;
    --rose: #c88689;
    --rose-dark: #975665;
    --moss: #55634e;
    --muted: #72585f;
    --line: #d8babe;
    --line-dark: #704052;
    --white: #fffdf9;
    --focus: #975665;
    --font-display: "Cormorant Garamond", Georgia, serif;
    --font-sans: "DM Sans", "Avenir Next", "Segoe UI", sans-serif;
    --text-xs: .72rem;
    --text-sm: .84rem;
    --text-base: 1rem;
    --text-lg: 1.18rem;
    --text-xl: 1.5rem;
    --text-2xl: clamp(2.9rem, 6vw, 5.8rem);
    --display: clamp(4.2rem, 11vw, 9.4rem);
    --space-0: 0;
    --space-1: .25rem;
    --space-2: .5rem;
    --space-3: .75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-7: 3rem;
    --space-8: 4rem;
    --space-9: 5.5rem;
    --space-10: 8rem;
    --shell: 80rem;
    --border: 1px solid var(--line-dark);
    --border-light: 1px solid var(--line);
    --ease: 180ms ease;
    --control-size: 2.75rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--paper); }

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body::before {
    position: fixed;
    z-index: 20;
    inset: 0;
    pointer-events: none;
    content: "";
    opacity: .065;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
    mix-blend-mode: multiply;
}

::selection { color: var(--paper); background: var(--rose-dark); }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.045em; line-height: .92; }
h1 em, h2 em { color: var(--rose-dark); font-style: italic; font-weight: 500; }
section[id] { scroll-margin-top: var(--space-6); }

.shell { width: min(var(--shell), calc(100% - (var(--space-6) * 2))); margin-inline: auto; }

.skip-link {
    position: fixed;
    z-index: 100;
    top: var(--space-3);
    left: var(--space-3);
    padding: var(--space-2) var(--space-3);
    color: var(--paper);
    background: var(--ink);
    font-size: var(--text-sm);
    font-weight: 700;
    text-decoration: none;
    transform: translateY(-180%);
    transition: transform var(--ease);
}
.skip-link:focus { transform: translateY(0); }

.site-header { position: relative; z-index: 10; border-bottom: var(--border-light); background: var(--paper); }
.header-inner { display: flex; min-height: 5.25rem; align-items: center; justify-content: space-between; gap: var(--space-5); }
.brand { display: inline-flex; align-items: center; gap: var(--space-3); color: var(--ink); font-family: var(--font-display); font-size: var(--text-xl); font-weight: 600; text-decoration: none; }
.brand-mark { display: inline-grid; width: 2.25rem; height: 2.25rem; place-items: center; color: var(--paper); background: var(--ink); font-family: var(--font-display); font-size: 1.45rem; line-height: 1; }
.brand-mark span { margin: -.6rem 0 0 -.3rem; color: var(--rose); font-family: var(--font-sans); font-size: .8rem; }
.brand-name { white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: var(--space-6); color: var(--muted); font-size: var(--text-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.site-nav a { position: relative; display: inline-flex; min-height: var(--control-size); align-items: center; text-decoration: none; }
.site-nav a::after { position: absolute; right: 0; bottom: .35rem; left: 0; height: 1px; content: ""; background: var(--rose-dark); transform: scaleX(0); transform-origin: right; transition: transform var(--ease); }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--ink); }
.site-nav a:hover::after, .site-nav a:focus-visible::after, .site-nav .nav-contact::after { transform: scaleX(1); transform-origin: left; }
.site-nav .nav-contact { color: var(--rose-dark); }
.nav-contact span { margin-left: var(--space-1); font-size: var(--text-base); }
.menu-toggle { display: none; min-height: var(--control-size); align-items: center; gap: var(--space-3); padding: var(--space-2) 0; color: var(--ink); border: 0; background: transparent; font-size: var(--text-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.menu-icon { display: grid; gap: .35rem; width: 1.45rem; }
.menu-icon i { display: block; height: 1px; background: var(--ink); transition: transform var(--ease); }
.menu-toggle[aria-expanded="true"] .menu-icon i:first-child { transform: translateY(.2rem) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon i:last-child { transform: translateY(-.2rem) rotate(-45deg); }

.hero { position: relative; isolation: isolate; overflow: hidden; padding: var(--space-9) 0 var(--space-7); background: radial-gradient(circle at 82% 13%, var(--paper-deep), transparent 30%), var(--paper); }
.hero::after { position: absolute; z-index: -1; right: 8%; bottom: 0; width: 1px; height: 78%; content: ""; background: var(--line); }
.hero-botanical { position: absolute; z-index: -1; top: -2rem; right: 2%; width: clamp(12rem, 30vw, 24rem); color: var(--rose); opacity: .42; pointer-events: none; }
.hero-botanical path, .hero-botanical circle { fill: none; stroke: currentColor; stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(19rem, .8fr); gap: var(--space-8); align-items: center; }
.hero-copy { position: relative; z-index: 1; }
.eyebrow, .section-kicker, .project-topline, .role-label, .date-label, .label, .hero-index, .signal-strip, .project-note, .garden-card-topline, .garden-kicker { font-size: var(--text-xs); letter-spacing: .08em; line-height: 1.4; text-transform: uppercase; }
.eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin-bottom: var(--space-6); color: var(--rose-dark); font-weight: 700; }
.eyebrow-mark { color: var(--rose); font-size: var(--text-lg); }
.eyebrow-rule { display: inline-block; width: 3rem; height: 1px; background: var(--line); }
.hero-main { display: block; }
.hero h1 { max-width: none; color: var(--ink); font-size: clamp(4rem, 7.8vw, 7.7rem); }
.hero h1 em { display: block; }
.hero-role { max-width: 36rem; margin-top: var(--space-5); color: var(--rose-dark); font-size: var(--text-lg); font-weight: 700; letter-spacing: -.02em; }
.hero-summary { max-width: 34rem; margin-top: var(--space-6); padding-bottom: var(--space-1); }
.hero-intro { color: var(--ink); font-family: var(--font-display); font-size: clamp(1.65rem, 3vw, 2.45rem); line-height: 1.02; }
.hero-note { margin-top: var(--space-5); color: var(--muted); font-size: var(--text-sm); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-5); margin-top: var(--space-6); }
.button { display: inline-flex; min-height: var(--control-size); align-items: center; justify-content: center; gap: var(--space-3); padding: var(--space-3) var(--space-5); border: 1px solid transparent; font-size: var(--text-sm); font-weight: 700; text-decoration: none; transition: color var(--ease), background-color var(--ease), border-color var(--ease), transform var(--ease); }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--paper); background: var(--ink); }
.button-primary:hover { color: var(--paper); background: var(--rose-dark); }
.text-link, .project-link { display: inline-flex; width: fit-content; min-height: var(--control-size); align-items: center; gap: var(--space-3); color: var(--ink); font-size: var(--text-sm); font-weight: 700; text-decoration: none; }
.text-link { padding-bottom: var(--space-1); border-bottom: 1px solid var(--line); }
.text-link span, .project-link span { color: var(--rose-dark); transition: transform var(--ease); }
.text-link:hover, .project-link:hover { color: var(--rose-dark); }
.text-link:hover span, .project-link:hover span { transform: translate(.2rem, -.2rem); }
.hero-index { display: flex; justify-content: space-between; gap: var(--space-4); margin-top: var(--space-8); padding-top: var(--space-4); border-top: var(--border-light); color: var(--muted); }
.hero-index span:first-child { color: var(--rose-dark); }

.garden-card { padding: var(--space-5); border: 1px solid var(--line); border-radius: 8px; background: #f8eaec; box-shadow: var(--space-2) var(--space-2) 0 #ead5dc; }
.garden-card-topline { display: flex; justify-content: space-between; color: var(--rose-dark); font-weight: 700; }
.garden-illustration { margin: var(--space-4) calc(var(--space-5) * -1) 0; padding-inline: var(--space-4); color: var(--moss); }
.garden-line { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.1; }
.garden-flower-head { color: var(--rose-dark); }
.garden-copy { margin-top: var(--space-2); }
.garden-kicker { color: var(--moss); font-weight: 700; }
.garden-copy h2 { margin-top: var(--space-2); color: var(--ink); font-size: clamp(2rem, 3vw, 3rem); }
.garden-copy p:last-child { margin-top: var(--space-3); color: var(--muted); font-size: var(--text-sm); }
.garden-status-row { display: grid; grid-template-columns: auto 1fr; gap: var(--space-3); align-items: center; margin-top: var(--space-5); }
.garden-count { color: var(--rose-dark); font-size: var(--text-xs); font-weight: 700; white-space: nowrap; }
.garden-count strong { font-family: var(--font-display); font-size: var(--text-xl); }
.garden-progress { height: .35rem; overflow: hidden; background: var(--paper-deep); }
.garden-progress span { display: block; width: 0; height: 100%; background: var(--moss); transition: width var(--ease); }
.garden-bed { display: flex; min-height: 2.5rem; flex-wrap: wrap; align-items: end; gap: var(--space-2); margin-top: var(--space-3); padding: var(--space-2) var(--space-3); border-bottom: .35rem solid var(--moss); }
.garden-flower { display: inline-grid; width: 1.15rem; height: 1.15rem; place-items: center; color: var(--rose-dark); font-family: var(--font-display); font-size: 1.45rem; line-height: 1; animation: bloom 400ms ease both; animation-delay: calc(var(--flower-index) * 45ms); }
.garden-message { min-height: 1.45rem; margin-top: var(--space-2); color: var(--moss); font-size: var(--text-xs); }
.garden-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; margin-top: var(--space-3); }
.button-garden { color: var(--paper); background: var(--moss); }
.button-garden:hover { background: var(--ink); }
.button-garden:disabled { cursor: default; opacity: .65; transform: none; }
.reset-button { min-height: var(--control-size); padding: var(--space-2) var(--space-3); color: var(--rose-dark); border: 0; background: transparent; font-size: var(--text-xs); font-weight: 700; text-decoration: underline; text-underline-offset: .25rem; cursor: pointer; }

.section-pad { padding: var(--space-10) 0; }
.about-section, .credentials-section { color: var(--ink); background: var(--paper-warm); }
.split-heading, .section-heading-row, .credentials-grid, .contact-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: var(--space-8); }
.section-kicker { margin-bottom: var(--space-5); color: var(--rose-dark); font-weight: 700; }
h2 { font-size: var(--text-2xl); }
.about-copy { max-width: 40rem; padding-top: var(--space-8); color: var(--muted); }
.about-copy p + p { margin-top: var(--space-4); }
.about-copy .lead-copy { color: var(--ink); font-family: var(--font-display); font-size: clamp(1.65rem, 2.6vw, 2.25rem); line-height: 1.1; }
.about-copy .text-link { margin-top: var(--space-6); }
.signal-strip { display: flex; justify-content: space-between; gap: var(--space-4); margin-top: var(--space-10); padding-top: var(--space-4); border-top: var(--border-light); color: var(--muted); font-weight: 700; }
.signal-strip span::before { display: inline-block; width: .35rem; height: .35rem; margin: 0 var(--space-2) 0 0; border-radius: 50%; content: ""; background: var(--moss); }

.research-section, .experience-section, .skills-section { color: var(--ink); background: #f5e6e9; }
.section-heading-row { align-items: end; }
.section-heading-row h2 { color: var(--ink); }
.section-heading-row h2 em { color: var(--rose-dark); }
.section-aside { max-width: 25rem; justify-self: end; color: var(--muted); font-size: var(--text-sm); }
.projects-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: var(--space-9); border-top: var(--border-light); border-left: var(--border-light); }
.project { display: flex; min-height: 23rem; flex-direction: column; align-items: flex-start; padding: var(--space-6); border-right: var(--border-light); border-bottom: var(--border-light); background: #fbf3f1; }
.project-featured { grid-row: span 2; min-height: 38rem; color: var(--ink); background: #edccd5; }
.project-topline { display: flex; width: 100%; justify-content: space-between; color: #854453; font-weight: 700; }
.project-symbol { font-size: var(--text-lg); line-height: .8; }
.project h3 { max-width: 13ch; margin-top: auto; color: var(--ink); font-size: clamp(2.4rem, 4.5vw, 5rem); }
.project:not(.project-featured) h3 { max-width: 12ch; color: var(--ink); font-size: clamp(2rem, 3vw, 3.25rem); }
.project-title { margin-top: var(--space-4); color: #854453; font-family: var(--font-display); font-size: var(--text-xl); line-height: 1.1; }
.project p:not(.project-title):not(.project-note) { max-width: 34rem; margin-top: var(--space-5); color: #6e4855; font-size: var(--text-sm); }
.project-note { margin-top: auto; color: #854453; font-weight: 700; }
.project:not(.project-featured) .project-note { margin-top: var(--space-6); }

.experience-section { background: var(--paper); }
.experience-list { margin-top: var(--space-9); border-top: var(--border-light); }
.experience-item { display: grid; grid-template-columns: 4rem minmax(0, 1fr); gap: var(--space-6); padding: var(--space-7) 0; border-bottom: var(--border-light); }
.experience-index, .skill-number { color: var(--rose-dark); font-size: var(--text-sm); font-weight: 700; }
.experience-heading { display: flex; align-items: start; justify-content: space-between; gap: var(--space-6); }
.role-label, .date-label, .label { color: var(--rose-dark); font-weight: 700; }
.experience-heading h3 { margin-top: var(--space-2); color: var(--ink); font-size: clamp(2rem, 4vw, 4rem); }
.date-label { flex: 0 0 auto; padding-top: var(--space-1); color: var(--muted); text-align: right; }
.date-label span { color: var(--muted); font-size: var(--text-xs); font-weight: 400; }
.detail-list { display: grid; gap: var(--space-3); max-width: 52rem; margin: var(--space-5) 0 0; padding: 0; color: var(--muted); list-style: none; }
.detail-list li { position: relative; padding-left: var(--space-5); }
.detail-list li::before { position: absolute; top: .72em; left: 0; width: .4rem; height: .4rem; border-radius: 50%; content: ""; background: var(--rose); }

.skills-list { margin-top: var(--space-9); border-top: var(--border-light); }
.skill-row { display: grid; grid-template-columns: 4rem minmax(15rem, .8fr) minmax(0, 1.2fr); gap: var(--space-6); align-items: baseline; padding: var(--space-5) 0; border-bottom: var(--border-light); }
.skill-row h3 { color: var(--ink); font-size: clamp(1.4rem, 2.2vw, 2rem); }
.skill-row p { color: var(--muted); font-size: var(--text-sm); }

.credentials-grid { align-items: start; }
.credential-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-7) var(--space-6); padding-top: var(--space-8); }
.credential-block { padding-top: var(--space-4); border-top: var(--border-light); color: var(--muted); font-size: var(--text-sm); }
.credential-block h3 { margin: var(--space-4) 0 var(--space-2); color: var(--ink); font-size: var(--text-xl); }
.credential-block p + p { margin-top: var(--space-4); }
.credential-block strong { color: var(--ink); }
.credential-wide { grid-column: 1 / -1; }
.certificate-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3) var(--space-6); margin-top: var(--space-4); color: var(--ink); }
.certificate-list span::before { margin-right: var(--space-2); color: var(--rose-dark); content: "✽"; }

.contact-section { --focus: #f3b2ad; padding: var(--space-10) 0 var(--space-9); color: var(--paper); background: var(--ink-soft); }
.contact-section .section-kicker { color: #edbfc9; }
.contact-layout { align-items: end; }
.contact-section h2 { max-width: 10ch; color: var(--paper); }
.contact-section h2 em { color: var(--rose); }
.contact-copy { max-width: 31rem; margin-top: var(--space-6); color: var(--paper-deep); font-size: var(--text-lg); }
.contact-details { border-top: var(--border); }
.contact-details a { display: grid; grid-template-columns: 6rem 1fr; gap: var(--space-4); min-height: var(--control-size); padding: var(--space-4) 0; border-bottom: var(--border); color: var(--paper); font-size: var(--text-sm); font-weight: 700; text-decoration: none; transition: color var(--ease), padding-left var(--ease); }
.contact-details a:hover { padding-left: var(--space-2); color: #edbfc9; }
.contact-label { color: var(--paper-deep); font-size: var(--text-xs); letter-spacing: .08em; text-transform: uppercase; }
.site-footer { padding: var(--space-5) 0; color: var(--paper-deep); background: var(--ink-deep); font-size: var(--text-xs); }
.footer-inner { display: flex; justify-content: space-between; gap: var(--space-4); }
.footer-inner p span { margin-inline: var(--space-2); color: var(--rose); }
.footer-inner a { color: var(--paper); text-decoration: none; }
.footer-inner a:hover { color: var(--rose); }

@keyframes bloom { from { opacity: 0; transform: translateY(.4rem) scale(.6); } to { opacity: 1; transform: translateY(0) scale(1); } }

@media (max-width: 64rem) {
    :root { --space-10: 7rem; }
    .hero-grid { grid-template-columns: minmax(0, 1fr); }
    .hero-botanical { right: -2rem; }
    .garden-card { width: min(100%, 30rem); justify-self: end; }
}

.no-js .hero-grid { grid-template-columns: 1fr; }
[hidden] { display: none !important; }

@media (max-width: 52rem) {
    :root { --space-10: 5.5rem; }
    .shell { width: min(var(--shell), calc(100% - (var(--space-5) * 2))); }
    .js-enabled .menu-toggle { display: inline-flex; }
    .no-js .header-inner { flex-wrap: wrap; }
    .no-js .site-nav { width: 100%; flex-direction: column; align-items: flex-start; gap: var(--space-2); padding-block: var(--space-4); }
    .js-enabled .site-nav { position: absolute; top: 100%; right: 0; left: 0; visibility: hidden; flex-direction: column; align-items: flex-start; gap: var(--space-4); padding: var(--space-5) var(--space-5) var(--space-6); border-bottom: var(--border-light); background: var(--paper); opacity: 0; transform: translateY(-.5rem); transition: visibility var(--ease), opacity var(--ease), transform var(--ease); }
    .js-enabled .site-nav.is-open { visibility: visible; opacity: 1; transform: translateY(0); }
    .site-nav a { min-height: var(--control-size); }
    .hero { padding-top: var(--space-8); }
    .hero-grid, .hero-main, .split-heading, .section-heading-row, .credentials-grid, .contact-layout { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
    .hero-main { gap: var(--space-5); }
    .hero h1 { max-width: none; font-size: clamp(3.6rem, 16vw, 7rem); }
    .hero-summary { max-width: 34rem; }
    .hero-index { margin-top: var(--space-6); }
    .hero::after { display: none; }
    .hero-botanical { top: 1rem; right: -4rem; width: 18rem; opacity: .25; }
    .garden-card { justify-self: stretch; }
    .garden-illustration svg { width: 100%; height: 140px; }
    .garden-copy h2 { font-size: 2rem; }
    .experience-heading > div { min-width: 0; }
    h2 { overflow-wrap: break-word; }
    .about-copy, .credential-columns { padding-top: 0; }
    .section-aside { justify-self: start; }
    .projects-grid { grid-template-columns: 1fr; }
    .project-featured { grid-row: auto; min-height: 0; }
    .project { min-height: 0; }
    .project h3, .project:not(.project-featured) h3 { max-width: none; margin-top: var(--space-6); }
    .project-note, .project:not(.project-featured) .project-note { margin-top: var(--space-6); }
    .experience-item { grid-template-columns: 2rem minmax(0, 1fr); gap: var(--space-3); }
    .skill-row { grid-template-columns: 2rem minmax(0, 1fr); gap: var(--space-3); }
    .skill-row p { grid-column: 2; }
}

@media (max-width: 34rem) {
    :root { --space-10: 4.5rem; }
    .shell { width: min(var(--shell), calc(100% - (var(--space-4) * 2))); }
    .header-inner { min-height: 4.5rem; }
    .brand-name { max-width: 11rem; overflow: hidden; font-size: var(--text-lg); text-overflow: ellipsis; }
    .hero { padding-top: var(--space-7); }
    .hero h1 { font-size: clamp(3.6rem, 16vw, 5.5rem); }
    h2 { font-size: clamp(2.35rem, 10vw, 3.3rem); }
    .hero-role { font-size: 1rem; }
    .garden-copy p:last-child { font-size: .8rem; }
    .hero-index { align-items: start; flex-direction: column; gap: var(--space-2); }
    .hero-index span:last-child { display: none; }
    .signal-strip { align-items: start; flex-direction: column; gap: var(--space-3); }
    .project { padding: var(--space-5); }
    .experience-heading { flex-direction: column; gap: var(--space-3); }
    .date-label { padding-top: 0; text-align: left; }
    .credential-columns, .certificate-list { grid-template-columns: 1fr; }
    .footer-inner { align-items: 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; }
}
