/* Creative mode: Marushka's line drawings with watercolor, on matte paper. */
:root {
  --paper: #f7f3ec;
  --ink: #2f2b27;
  --ink-soft: #5d5650;
  --hand: "Caveat", "Bradley Hand", cursive;
  --serif: "EB Garamond", Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.6;
  background-color: var(--paper);
  /* Fine paper grain + large soft mottling, generated in CSS. */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .38 0 0 0 0 .33 0 0 0 .11 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='900'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.006' numOctaves='3' seed='9' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .78 0 0 0 0 .72 0 0 0 0 .62 0 0 0 .22 -.05'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23m)'/%3E%3C/svg%3E");
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
.defs { position: absolute; width: 0; height: 0; }

/* Irregular, hand-drawn looking outline */
.sketch-box {
  border: 1.6px solid var(--ink);
  border-radius: 255px 14px 225px 14px / 14px 225px 14px 255px;
}

/* ---------- Mode toggle ---------- */
.mode-toggle {
  position: fixed; top: 18px; left: 18px; z-index: 20;
  font-family: var(--hand); font-size: 22px; font-weight: 700; line-height: 1;
  text-decoration: none;
  padding: 9px 16px 8px;
  background: rgba(247, 243, 236, .85);
  backdrop-filter: blur(3px);
  transition: transform .25s ease, background .25s ease;
}
.mode-toggle:hover { transform: rotate(-2deg) scale(1.04); background: #fff; }

/* ---------- Stem (drawn by JS across the whole page) ---------- */
#stem { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none; overflow: visible; }
#stem .strand { fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; }
#stem .ink, #stem .root { fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
#stem .wash { mix-blend-mode: multiply; filter: url(#wc); }
#stem .bud { opacity: 0; transition: opacity .9s ease; }
#stem .bud > g { transform: scale(.2); transition: transform 1.1s cubic-bezier(.2, .9, .3, 1.2); }
#stem .bud.on { opacity: 1; }
#stem .bud.on > g { transform: scale(1); }

main { position: relative; z-index: 2; }

/* ---------- Home ---------- */
.home {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 90px 20px 110px;
  position: relative;
  text-align: center;
}
.masthead h1 {
  font-family: var(--hand); font-weight: 700;
  font-size: clamp(54px, 8vw, 104px); line-height: .95;
  letter-spacing: .01em;
}
.masthead p {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(19px, 2.2vw, 26px); color: var(--ink-soft);
  margin-top: 6px;
}
.home .flower { width: min(880px, 98vw); height: auto; margin-top: 18px; overflow: visible; }
.flower .label {
  font-family: var(--hand); font-weight: 700; font-size: 31px; fill: var(--ink);
  transition: fill .3s ease;
}
.petal { cursor: pointer; outline: none; }
.petal .wash { transition: opacity .5s ease; }
.petal .dots { transition: transform .6s cubic-bezier(.2, .9, .3, 1.3); }
.petal .dots circle { fill: var(--ink); }
.petal:hover .wash, .petal:focus-visible .wash { opacity: .85 !important; }
.petal:hover .dots, .petal:focus-visible .dots { transform: translateY(-14px); }
.petal:hover .label, .petal:focus-visible .label { fill: var(--accent); }

/* ---------- Panels ---------- */
.panel {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 150px 1fr;
  grid-template-areas: "left gap right";
  align-items: center;
  padding: 16vh 6vw 18vh;
  position: relative;
}
.panel > .art { grid-area: left; display: flex; justify-content: center; }
.panel > .text { grid-area: right; max-width: 480px; }
.panel.flip > .art { grid-area: right; }
.panel.flip > .text { grid-area: left; justify-self: end; text-align: right; }

/* Her line art on top of watercolor washes */
.art figure { display: flex; flex-direction: column; align-items: center; width: 100%; }
.stack { position: relative; }
.stack .washes { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.stack .ink-img { position: relative; width: 100%; mix-blend-mode: multiply; }
.caption {
  font-family: var(--hand); font-size: 24px; color: var(--ink-soft);
  text-align: center; margin-top: 8px; transform: rotate(-2deg);
}

h2 {
  font-family: var(--hand); font-weight: 700;
  font-size: clamp(44px, 5vw, 62px); line-height: 1;
  margin-bottom: 18px;
  text-wrap: balance;
}
.text p + p { margin-top: 14px; }
.greeting { font-family: var(--hand); font-size: 32px; line-height: 1.2; color: var(--accent); }
.hand-label { font-family: var(--hand); font-size: 30px; font-weight: 700; line-height: 1.1; margin-top: 22px !important; }
.working { list-style: none; margin-top: 4px; }
.working li { position: relative; padding-left: 26px; margin-top: 6px; }
.working li::before { content: "✧"; position: absolute; left: 2px; top: 1px; font-size: 16px; color: var(--accent); }

.project {
  display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap;
  text-decoration: none; margin-bottom: 12px;
}
.flip .project { justify-content: flex-end; }
.project-name {
  font-family: var(--hand); font-weight: 700; font-size: 40px; line-height: 1;
  background-image: linear-gradient(transparent 62%, rgba(243, 213, 138, .7) 62%, rgba(243, 213, 138, .7) 88%, transparent 88%);
  background-size: 0% 100%; background-repeat: no-repeat;
  transition: background-size .5s ease;
}
.project:hover .project-name { background-size: 100% 100%; }
.tag {
  font-family: var(--serif); font-size: 13px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 4px 11px 3px;
}
.more {
  display: inline-block; margin-top: 16px;
  font-family: var(--hand); font-size: 25px; text-decoration: none;
  border-bottom: 1.5px solid currentColor;
  transition: transform .25s ease;
}
.more:hover { transform: translateX(4px); }

/* "Scroll" cue sits just right of the stem */
.scroll-cue {
  position: absolute; bottom: 34px; left: calc(50% + 22px);
  display: flex; align-items: center; gap: 4px;
  font-family: var(--hand); font-size: 23px; color: var(--ink-soft);
  text-decoration: none;
}
.home .scroll-cue { left: calc(50% + 48px); }
.scroll-cue svg { width: 14px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.js .scroll-cue svg { animation: nudge 2.2s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* ---------- Contact + watercolor garden to the page edge ---------- */
.contact { min-height: 100vh; padding-bottom: 470px; overflow: hidden; }
.linkedin {
  display: inline-block; margin-top: 22px;
  font-family: var(--hand); font-size: 30px; font-weight: 700; text-decoration: none;
  padding: 8px 26px 6px;
  transition: transform .25s ease, background .25s ease;
}
.linkedin:hover { transform: rotate(-2deg) scale(1.05); background: rgba(143, 184, 222, .35); }
.garden { position: absolute; left: 0; right: 0; bottom: 0; height: 440px; pointer-events: none; }
.paint { mix-blend-mode: multiply; }
.garden .bloom { position: absolute; bottom: 120px; width: auto; max-width: none; z-index: 1; }
/* Two copies of the greenery painting, the right one mirrored, overlapping in the
   middle and pushed past the bottom edge so the paint bleeds off the page. */
.garden .greenery {
  position: absolute; bottom: -70px; z-index: 2;
  width: 56%; height: 310px; max-width: none;
  object-fit: cover; object-position: center top;
}
.g-left { left: -3%; }
.g-right { right: -3%; scale: -1 1; }
footer {
  position: absolute; right: 26px; bottom: 14px; z-index: 3;
  font-family: var(--hand); font-size: 20px; color: var(--ink);
}

/* ---------- Ink and watercolor ---------- */
.ink { fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wash { mix-blend-mode: multiply; filter: url(#wc); opacity: var(--o, .45); }
.washes .wash { filter: none; }  /* the group carries the filter */

/* ---------- Reveal (only when JS runs) ---------- */
/* Generated SVG ink (the flower) draws itself in. */
.js .drawing .ink { stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0;
  transition: stroke-dashoffset 1.9s ease var(--d, 0s), opacity .2s linear var(--d, 0s); }
.js .drawing.in .ink { stroke-dashoffset: 0; opacity: 1; }
.js .drawing .wash, .js .drawing .dots { opacity: 0; transition: opacity 1.4s ease var(--wd, 1.2s); }
.js .drawing.in .wash { opacity: var(--o, .45); }
.js .drawing.in .dots { opacity: 1; }
/* Her line drawings are uncovered by a soft wipe, then the watercolor blooms in. */
.js .stack .ink-img {
  -webkit-mask-image: linear-gradient(100deg, #000 40%, transparent 60%);
          mask-image: linear-gradient(100deg, #000 40%, transparent 60%);
  -webkit-mask-size: 260% 100%; mask-size: 260% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: 100% 0; mask-position: 100% 0;
  transition: -webkit-mask-position 2.4s ease, mask-position 2.4s ease;
}
.js .stack.in .ink-img { -webkit-mask-position: 0 0; mask-position: 0 0; }
.js .stack .washes { opacity: 0; transition: opacity 1.8s ease 1.3s; }
.js .stack.in .washes { opacity: 1; }
.js .paint { opacity: 0; translate: 0 18px; transition: opacity 1.5s ease var(--d, 0s), translate 1.8s ease var(--d, 0s); }
.js .paint.in { opacity: 1; translate: 0 0; }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s ease .2s, transform .9s ease .2s; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Phones: stem moves to the left edge ---------- */
@media (max-width: 760px) {
  body { font-size: 18px; }
  .mode-toggle { top: 12px; left: 12px; font-size: 19px; }
  .home { padding: 80px 12px 100px; }
  .flower .label { font-size: 34px; }
  .panel, .panel.flip {
    grid-template-columns: 1fr;
    grid-template-areas: "art" "text";
    padding: 90px 22px 110px 64px;
    row-gap: 28px;
  }
  .panel > .art, .panel.flip > .art { grid-area: art; }
  .panel > .text, .panel.flip > .text { grid-area: text; justify-self: start; text-align: left; }
  .flip .project { justify-content: flex-start; }
  .stack { max-width: 290px; }
  .scroll-cue, .home .scroll-cue { left: 64px; }
  .contact { padding-bottom: 330px; }
  .garden { height: 300px; }
  .garden .bloom { height: 170px !important; bottom: 80px; }
  .garden .greenery { height: 190px; bottom: -40px; width: 62%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .drawing .ink, .js .drawing .wash, .js .drawing .dots { transition: none; stroke-dashoffset: 0; opacity: 1; }
  .js .drawing .wash { opacity: var(--o, .45); }
  .js .stack .ink-img { -webkit-mask-image: none; mask-image: none; transition: none; }
  .js .stack .washes, .js .paint { opacity: 1; translate: none; transition: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .scroll-cue svg { animation: none; }
  #stem .bud { opacity: 1; transition: none; }
  #stem .bud > g { transform: none; transition: none; }
}

/* Fill the middle of the garden and let the green run off the page bottom. */
.garden .g-center { left: 22%; width: 56%; height: 270px; bottom: -80px; z-index: 2; }
.garden::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 140px; z-index: 1;
  background: linear-gradient(to bottom, rgba(150, 190, 120, 0), rgba(130, 176, 110, .55) 55%, rgba(110, 158, 98, .7));
  mix-blend-mode: multiply;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='140'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.02 .05' numOctaves='3' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 2.1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
}
@media (max-width: 760px) {
  .garden .g-center { height: 170px; bottom: -50px; left: 18%; width: 64%; }
  .garden::after { height: 90px; }
}

/* Feather the middle greenery copy so its edges melt into the others */
.garden .g-center { -webkit-mask-image: linear-gradient(to right, transparent, #000 22%, #000 78%, transparent); mask-image: linear-gradient(to right, transparent, #000 22%, #000 78%, transparent); }

/* ---------- Botanical flower menu (her image, with clickable petals) ---------- */
.flower-wrap { position: relative; width: min(980px, 96vw); margin-top: 6px; }
.flower-img { width: 100%; mix-blend-mode: multiply; }
.flower-map { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.flower-map .petal { cursor: pointer; outline: none; }
.flower-map .hit { fill: transparent; }
.petal-glow { opacity: 0; mix-blend-mode: multiply; filter: url(#wc-big); transition: opacity .5s ease; }
.petal:hover .petal-glow, .petal:focus-visible .petal-glow { opacity: .5; }
.petal:focus-visible .hit { stroke: var(--accent); stroke-width: 4; stroke-dasharray: 10 8; }
/* The flower grows up from its stem when the page opens. */
.js .flower-img {
  -webkit-mask-image: linear-gradient(to top, #000 42%, transparent 58%);
          mask-image: linear-gradient(to top, #000 42%, transparent 58%);
  -webkit-mask-size: 100% 260%; mask-size: 100% 260%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: 0 0; mask-position: 0 0;
  transition: -webkit-mask-position 2.6s cubic-bezier(.3, .6, .3, 1), mask-position 2.6s cubic-bezier(.3, .6, .3, 1);
}
.js .flower-wrap.in .flower-img { -webkit-mask-position: 0 100%; mask-position: 0 100%; }
@media (prefers-reduced-motion: reduce) {
  .js .flower-img { -webkit-mask-image: none; mask-image: none; transition: none; }
}

/* ================= Delicate watercolor ================= */

/* Washes under her drawings: lighter pigment, plus a soft halo that bleeds past the lines. */
.washes .wash { opacity: calc(var(--o, .45) * 1.25); }
.washes .halo-layer .wash { opacity: calc(var(--o, .45) * .55); }
#stem .wash { filter: url(#wc); }

/* Free-floating splotches of pigment behind each section (built by JS). */
.splotches { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: visible; }
.splotches circle, .splotches ellipse { mix-blend-mode: multiply; }
.home > *:not(.splotches), .panel > *:not(.splotches) { position: relative; z-index: 1; }
.home > .scroll-cue, .panel > .scroll-cue { position: absolute; }
.js .splotches { opacity: 0; transition: opacity 2.2s ease .3s; }
.js .splotches.in { opacity: 1; }

.garden footer { z-index: 3; }
@media (prefers-reduced-motion: reduce) {
  .js .splotches { opacity: 1; transition: none; }
}
.panel > .garden { position: absolute; }
.garden footer { text-shadow: 0 0 6px rgba(247, 243, 236, .95), 0 0 12px rgba(247, 243, 236, .8); }

/* ================= Fonts: Caveat Brush + Cormorant Garamond Italic ================= */
:root {
  --hand: "Caveat Brush", "Caveat", cursive;
  --serif: "Cormorant Garamond", "EB Garamond", Georgia, serif;
}
body { font-family: var(--serif); font-style: normal; font-size: 22px; line-height: 1.55; }
.masthead h1, h2, .greeting, .hand-label, .project-name, .more, .caption,
.mode-toggle, .linkedin, .scroll-cue, footer, .flower-map .label { font-weight: 400; }
.masthead h1 { font-size: clamp(58px, 8.4vw, 110px); line-height: 1; }
.masthead p { font-style: italic; font-size: clamp(22px, 2.5vw, 30px); letter-spacing: .03em; margin-top: 2px; }
.tag { font-style: normal; font-size: 13px; letter-spacing: .16em; }
.text p { font-weight: 500; }
.working li::before { top: 2px; }
@media (max-width: 760px) { body { font-size: 20px; } }

/* ================= Home: her watercolor lotus with labels ================= */
.flower-wrap { width: min(1000px, 98vw); aspect-ratio: 1780 / 1150; margin-top: 4px; }
.flower-wrap > .flower-img { position: absolute; left: 4.494%; top: 12.174%; width: 87.753%; height: auto; }
.flower-map .label { font-family: var(--hand); font-size: 60px; fill: var(--ink); transition: fill .3s ease; }
.flower-map .dots circle { fill: var(--ink); }
.flower-map .dots { transition: transform .6s cubic-bezier(.2, .9, .3, 1.3); transform-box: fill-box; }
.flower-map .petal:hover .label, .flower-map .petal:focus-visible .label { fill: var(--accent); }
.flower-map .petal:hover .dots, .flower-map .petal:focus-visible .dots { transform: scale(1.12); }
.flower-map .petal:focus-visible .hit { stroke: none; }
.flower-map .petal:focus-visible .label { text-decoration: underline; }
.js .flower-map .label, .js .flower-map .dots { opacity: 0; transition: opacity 1.2s ease 1.6s, fill .3s ease, transform .6s ease; }
.js .flower-wrap.in .flower-map .label, .js .flower-wrap.in .flower-map .dots { opacity: 1; }
@media (max-width: 760px) { .flower-map .label { font-size: 82px; } }
@media (prefers-reduced-motion: reduce) { .js .flower-map .label, .js .flower-map .dots { opacity: 1; transition: none; } }

/* ================= Her stars and circles ================= */
#stem .mark-g { opacity: 0; transition: opacity 1s ease; }
#stem .mark-g.on { opacity: 1; }
.garden .mark { position: absolute; z-index: 1; height: auto; mix-blend-mode: multiply; opacity: .85; }
.js .garden .float { animation: drift 7s ease-in-out infinite; }
@keyframes drift { 0%, 100% { translate: 0 0; rotate: 0deg; } 50% { translate: 0 -12px; rotate: 6deg; } }
@media (max-width: 760px) { .garden .mark { scale: .75; } }
@media (prefers-reduced-motion: reduce) { #stem .mark-g { opacity: 1; transition: none; } .js .garden .float { animation: none; } }

/* ================= Tighter rhythm: sections size to their content ================= */
.panel { min-height: 0; padding: 13vh 6vw 15vh; }
.contact { min-height: 0; padding-top: 12vh; }
@media (max-width: 760px) { .panel, .panel.flip { padding-top: 70px; padding-bottom: 96px; } }

/* ================= Proof point under each project ================= */
.proof {
  display: flex; align-items: center; gap: 10px;
  margin-top: 12px !important;
  font-family: var(--hand); font-style: normal; font-weight: 400;
  font-size: 25px; line-height: 1.25; color: var(--accent);
}
.flip .proof { justify-content: flex-end; }
.proof-mark { width: 14px; height: auto; flex: none; mix-blend-mode: multiply; }
@media (max-width: 760px) { .flip .proof { justify-content: flex-start; } .proof { font-size: 22px; } }

/* ================= Floating lotus menu ================= */
.lotus-nav {
  position: fixed; right: 20px; bottom: 22px; z-index: 30;
  display: flex; flex-direction: column-reverse; align-items: flex-end; gap: 10px;
  opacity: 0; translate: 0 14px; pointer-events: none;
  transition: opacity .5s ease, translate .5s ease;
}
.lotus-nav.show { opacity: 1; translate: 0 0; pointer-events: auto; }
.lotus-btn {
  width: 74px; height: 74px; border-radius: 50%;
  border: 1.6px solid var(--ink);
  border-radius: 52% 48% 50% 50% / 48% 52% 48% 52%;
  background: rgba(247, 243, 236, .92);
  backdrop-filter: blur(3px);
  display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 6px 18px rgba(60, 50, 40, .12);
  transition: transform .3s ease;
}
.lotus-btn img { width: 54px; height: auto; }
.lotus-btn:hover, .lotus-btn[aria-expanded="true"] { transform: rotate(-6deg) scale(1.06); }
.lotus-btn:focus-visible { outline: 2px dashed var(--accent); outline-offset: 4px; }
.lotus-menu {
  list-style: none; text-align: right;
  background: rgba(247, 243, 236, .96);
  backdrop-filter: blur(4px);
  border: 1.6px solid var(--ink);
  border-radius: 255px 14px 225px 14px / 14px 225px 14px 255px;
  padding: 14px 22px;
  box-shadow: 0 8px 24px rgba(60, 50, 40, .12);
}
.lotus-menu li + li { margin-top: 2px; }
.lotus-menu a { font-family: var(--hand); font-style: normal; font-size: 24px; text-decoration: none; }
.lotus-menu a:hover, .lotus-menu a:focus-visible { color: var(--accent); }
.lotus-menu li:first-child a { color: var(--accent); }
@media (max-width: 760px) { .lotus-nav { right: 14px; bottom: 16px; } .lotus-btn { width: 62px; height: 62px; } .lotus-btn img { width: 44px; } }
@media (prefers-reduced-motion: reduce) { .lotus-nav { transition: none; } }
.lotus-btn img { width: 62px; }
@media (max-width: 760px) { .lotus-btn img { width: 50px; } }

/* ================= Purple subheader, regular body text ================= */
.masthead p { color: #7a5fa6; font-style: italic; }
.working li { font-style: normal; }

/* ================= Phones: a clear section list under the flower ================= */
.flower-list { display: none; }
@media (max-width: 760px) {
  .flower-list {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px;
    list-style: none; margin: 4px 0 70px; padding: 0 6px; position: relative; z-index: 1;
  }
  .flower-list a {
    display: inline-block; text-decoration: none;
    font-family: var(--hand); font-size: 22px; line-height: 1;
    padding: 9px 15px 8px;
    border: 1.5px solid var(--ink);
    border-radius: 255px 14px 225px 14px / 14px 225px 14px 255px;
    background: color-mix(in srgb, var(--c) 32%, transparent);
  }
  .flower-list a:active { background: color-mix(in srgb, var(--c) 60%, transparent); }
}

/* ================= Creative one-pagers ================= */
.op-back {
  position: fixed; top: 22px; right: 22px; z-index: 20;
  font-family: var(--hand); font-size: 24px; text-decoration: none;
  padding: 6px 14px 5px; background: rgba(247, 243, 236, .85); backdrop-filter: blur(3px);
  border-bottom: 1.5px solid currentColor;
}
.op-back:hover { color: var(--accent); }
.op-main { max-width: 1080px; margin: 0 auto; padding: 120px 6vw 40px; position: relative; z-index: 2; }
.op-hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.op-eyebrow {
  font-size: 14px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: color-mix(in srgb, var(--c) 55%, #2f2b27);
}
.op-intro h1 { font-family: var(--hand); font-weight: 400; font-size: clamp(48px, 6vw, 84px); line-height: 1; margin: 10px 0 12px; text-wrap: balance; }
.op-when { font-style: italic; color: #7a5fa6; font-size: 21px; }
.op-intro .more { margin-top: 18px; }
.op-art { display: flex; flex-direction: column; align-items: center; }
.op-art .stack { width: min(440px, 100%) !important; }

.op-facts { margin-top: 90px; display: grid; gap: 0; }
.op-fact {
  display: grid; grid-template-columns: 180px 1fr; gap: 32px;
  padding: 34px 0; border-top: 1.5px dashed color-mix(in srgb, var(--c) 70%, transparent);
}
.op-fact:last-child { border-bottom: 1.5px dashed color-mix(in srgb, var(--c) 70%, transparent); }
.op-fact h2 {
  font-size: 44px; margin: 0; line-height: 1;
  background: linear-gradient(transparent 58%, color-mix(in srgb, var(--c) 55%, transparent) 58%, color-mix(in srgb, var(--c) 55%, transparent) 90%, transparent 90%);
  justify-self: start; padding: 0 4px;
}
.op-body p + p { margin-top: 14px; }
.op-body ul { list-style: none; display: grid; gap: 10px; }
.op-body li { position: relative; padding-left: 30px; }
.op-body li::before {
  content: ""; position: absolute; left: 4px; top: .35em; width: 14px; height: 19px;
  background: url("assets/art/marks/star2.png") center / contain no-repeat;
  mix-blend-mode: multiply;
}
.op-body .note { font-size: 17px; color: var(--ink-soft); margin-top: 14px; }
.op-body a { color: #7a5fa6; }

.op-garden { position: relative; height: 420px; margin-top: 30px; overflow: hidden; pointer-events: none; }
.op-garden .greenery { position: absolute; bottom: -70px; z-index: 2; width: 56%; height: 310px; max-width: none; object-fit: cover; object-position: center top; }
.op-garden .g-left { left: -3%; }
.op-garden .g-right { right: -3%; scale: -1 1; }
.op-garden .g-center { left: 22%; width: 56%; height: 270px; bottom: -80px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 22%, #000 78%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 22%, #000 78%, transparent); }
.op-garden .mark { position: absolute; z-index: 1; height: auto; mix-blend-mode: multiply; opacity: .85; }
.js .op-garden .float { animation: drift 7s ease-in-out infinite; }
.op-garden footer { position: absolute; right: 26px; bottom: 14px; z-index: 3; font-family: var(--hand); font-size: 20px;
  text-shadow: 0 0 6px rgba(247, 243, 236, .95), 0 0 12px rgba(247, 243, 236, .8); }

@media (max-width: 760px) {
  .op-back { top: 12px; right: 12px; font-size: 20px; }
  .op-main { padding: 96px 22px 20px; }
  .op-hero { grid-template-columns: 1fr; gap: 28px; }
  .op-art { order: -1; }
  .op-art .stack { width: min(300px, 100%) !important; }
  .op-facts { margin-top: 50px; }
  .op-fact { grid-template-columns: 1fr; gap: 12px; padding: 26px 0; }
  .op-fact h2 { font-size: 36px; }
  .op-garden { height: 300px; }
  .op-garden .greenery { height: 200px; bottom: -40px; width: 62%; }
  .op-garden .g-center { height: 170px; bottom: -50px; left: 18%; width: 64%; }
  .op-garden .mark { scale: .75; }
}
.op-fact h2 { align-self: start; height: fit-content; }
@media (max-width: 760px) { .flower-list a { background: color-mix(in srgb, var(--c) 34%, #f7f3ec); } .flower-list a:active { background: color-mix(in srgb, var(--c) 60%, #f7f3ec); } }

/* Accent: the lotus blue, deepened so handwriting stays readable on the paper */
:root { --accent: #3f7d8c; }
.flower-wrap { margin-top: 22px; }

/* ================= One-pagers that fit one screen ================= */
.op { --op-fs: 19px; }
.op-side h1 { font-family: var(--hand); font-weight: 400; font-size: clamp(44px, 6vw, 80px); line-height: 1; margin: 10px 0 12px; text-wrap: balance; }
.op-side .more { margin-top: 14px; }
.op-art { display: flex; flex-direction: column; align-items: center; margin-top: 28px; }
.op-cols { margin-top: 40px; }

@media (min-width: 900px) and (min-height: 560px) {
  body.op { height: 100vh; overflow: hidden; }
  .op-main {
    max-width: none; height: 100vh; margin: 0;
    display: grid; grid-template-columns: minmax(260px, 31%) 1fr; gap: 3.6vw;
    padding: 80px 4.5vw 120px;
  }
  .op-side { display: flex; flex-direction: column; justify-content: center; min-height: 0; }
  .op-side h1 { font-size: clamp(40px, 4.6vh + 1.1vw, 74px); }
  .op-when { font-size: clamp(16px, 2.1vh, 21px); }
  .op-art { margin-top: 2.6vh; }
  .op-art .stack { width: min(100%, calc(28vh * var(--ar))) !important; }
  .op-art .caption { font-size: 20px; }
  .op-cols { margin-top: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 3vw; min-height: 0; }
  .op-col { min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: safe center; gap: 2.6vh; }
  .op-fact { display: block; padding: 0; border: 0 !important; }
  .op-fact h2 { font-size: calc(var(--op-fs) * 1.8); margin-bottom: .3em; }
  .op-body { font-size: var(--op-fs); line-height: 1.42; }
  .op-body p + p { margin-top: .6em; }
  .op-body ul { gap: .32em; }
  .op-body li { padding-left: 1.5em; }
  .op-body li::before { width: .72em; height: 1em; top: .28em; }
  .op-body .note { font-size: calc(var(--op-fs) * .78); margin-top: .6em; }
  .op-garden { position: fixed; left: 0; right: 0; bottom: 0; height: 150px; margin: 0; z-index: 1; }
  .op-garden .greenery { height: 175px; bottom: -62px; }
  .op-garden .g-center { height: 150px; bottom: -70px; }
  .op-garden footer { bottom: 10px; font-size: 18px; }
}

/* Greenery softened toward the lotus green so every watercolor reads as one palette */
.greenery { filter: saturate(.82) brightness(1.03); }
@media (min-width: 900px) and (min-height: 560px) {
  .op-main, .op-cols { grid-template-rows: minmax(0, 1fr); }
  .op-side { overflow: hidden; }
}
@media (min-width: 900px) and (min-height: 560px) {
  .op-main { padding: 76px 4.5vw max(92px, 14vh); }
  .op-garden { height: clamp(100px, 16vh, 150px); }
  .op-garden .greenery { height: clamp(120px, 19vh, 175px); }
  .op-garden .g-center { height: clamp(105px, 16vh, 150px); }
}
/* Narrow screens: one column, in reading order Why, What, Outcomes, Learnings */
@media not all and (min-width: 900px) and (min-height: 560px) {
  .op-cols { display: flex; flex-direction: column; }
  .op-col { display: contents; }
  .op-why { order: 1; } .op-what { order: 2; } .op-outcomes { order: 3; } .op-learnings { order: 4; }
}

/* ================= Header lettering ================= */
/* Her brush-lettered name (artwork), and Caveat 600 for handwritten labels and headings */
:root { --hand: "Caveat", cursive; }
.masthead h1, h2, .greeting, .hand-label, .project-name, .more, .caption,
.mode-toggle, .linkedin, .scroll-cue, footer, .flower-map .label, .proof, .lotus-menu a,
.flower-list a, .op-back, .op-side h1, .op-fact h2 { font-weight: 600; }
.name-img { display: block; width: min(820px, 88vw); height: auto; margin: 0 auto; mix-blend-mode: multiply; }
.masthead p { margin-top: 6px; }
.js .masthead .name-img {
  -webkit-mask-image: linear-gradient(100deg, #000 42%, transparent 58%);
          mask-image: linear-gradient(100deg, #000 42%, transparent 58%);
  -webkit-mask-size: 260% 100%; mask-size: 260% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: 100% 0; mask-position: 100% 0;
  transition: -webkit-mask-position 1.8s ease .1s, mask-position 1.8s ease .1s;
}
.js .masthead.in .name-img { -webkit-mask-position: 0 0; mask-position: 0 0; }
@media (prefers-reduced-motion: reduce) { .js .masthead .name-img { -webkit-mask-image: none; mask-image: none; } }
#stem .strand { stroke: url(#graphite); stroke-linecap: round; }
.flower-wrap { margin-top: 36px; }

/* ================= (i) note about the childhood doodle ================= */
.info-btn {
  position: absolute; left: 57.5%; top: 84%; z-index: 3;
  width: 30px; height: 30px; padding: 0;
  font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 19px; line-height: 1;
  color: var(--accent); background: rgba(247, 243, 236, .9);
  border: 1.5px solid var(--accent);
  border-radius: 52% 48% 50% 50% / 48% 52% 48% 52%;
  cursor: pointer; transition: transform .25s ease, background .25s ease;
}
.info-btn:hover, .info-btn[aria-expanded="true"] { transform: rotate(-8deg) scale(1.08); background: color-mix(in srgb, #8dbec8 30%, #f7f3ec); }
.info-btn:focus-visible { outline: 2px dashed var(--accent); outline-offset: 3px; }
.info-note {
  position: absolute; left: calc(57.5% + 42px); top: 66%; z-index: 4;
  width: min(300px, 70vw); text-align: left;
  padding: 16px 20px 14px;
  background: rgba(247, 243, 236, .97);
  border: 1.6px solid var(--ink);
  border-radius: 255px 14px 225px 14px / 14px 225px 14px 255px;
  box-shadow: 0 8px 24px rgba(60, 50, 40, .12);
  font-size: 18px; line-height: 1.45;
}
.info-title { font-family: var(--hand); font-weight: 600; font-size: 25px; color: var(--accent); margin-bottom: 4px; }
.info-note .more { font-size: 20px; margin-top: 10px; }
.inspo-link { margin-top: 26px !important; font-size: 18px; color: var(--ink-soft); }
.inspo-link .more { margin-top: 0; font-size: 21px; color: var(--ink); }
@media (max-width: 760px) {
  .info-btn { left: 55%; top: 82%; width: 26px; height: 26px; font-size: 16px; }
  .info-note { left: 50%; top: 100%; translate: -50% 0; width: min(320px, 88vw); }
}

/* ================= Website inspo (process) page ================= */
.pr-main { max-width: 1060px; margin: 0 auto; padding: 120px 6vw 30px; position: relative; z-index: 2; }
.pr-head { text-align: center; }
.pr-head h1 { font-family: var(--hand); font-weight: 600; font-size: clamp(46px, 6vw, 80px); line-height: 1; margin: 10px 0 10px; }
.pr-head .op-when { font-size: 22px; }
.pr-steps { list-style: none; counter-reset: step; margin-top: 70px; display: grid; gap: 80px; }
.pr-step { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; counter-increment: step; }
.pr-step:nth-child(even) .pr-text { order: 2; }
.pr-text h2 { font-size: clamp(34px, 3.6vw, 46px); margin-bottom: 12px; position: relative; padding-left: 52px; }
.pr-text h2::before {
  content: counter(step); position: absolute; left: 0; top: 50%; translate: 0 -50%;
  width: 38px; height: 38px; display: grid; place-items: center;
  font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--ink);
  border: 1.5px solid var(--ink); border-radius: 52% 48% 50% 50% / 48% 52% 48% 52%;
  background: color-mix(in srgb, #cbb8e8 35%, #f7f3ec);
}
.pr-step:nth-child(2) h2::before { background: color-mix(in srgb, #8dbec8 35%, #f7f3ec); }
.pr-step:nth-child(3) h2::before { background: color-mix(in srgb, #b5c882 40%, #f7f3ec); }
.pr-text p { font-size: 21px; line-height: 1.6; }
.pr-art { display: flex; justify-content: center; gap: 22px; }
.pr-lotus { width: min(440px, 100%); mix-blend-mode: multiply; }
.pr-sheet {
  width: min(420px, 100%); background: #fff; padding: 10px;
  box-shadow: 0 10px 28px rgba(60, 50, 40, .16), 0 1px 3px rgba(60, 50, 40, .12);
  transition: transform .4s ease, box-shadow .4s ease;
}
.pr-pair a { width: 48%; } .pr-pair .pr-sheet { width: 100%; }
.tilt-l { rotate: -2.2deg; } .tilt-r { rotate: 1.8deg; }
.pr-art a:hover .pr-sheet, .pr-art a:focus-visible .pr-sheet { transform: scale(1.03); box-shadow: 0 16px 36px rgba(60, 50, 40, .2); }
.pr-stars { width: 90px; mix-blend-mode: multiply; rotate: 8deg; }
.js .pr-step { opacity: 0; translate: 0 22px; transition: opacity .9s ease, translate .9s ease; }
.js .pr-step.in { opacity: 1; translate: 0 0; }
.process .op-back { border-bottom-width: 1.5px; }
.process .op-garden { position: relative; height: 420px; margin-top: 40px; }
.process .op-garden .greenery { height: 310px; bottom: -70px; }
.process .op-garden .g-center { height: 270px; bottom: -80px; }
@media (max-width: 760px) {
  .pr-main { padding: 96px 22px 20px; }
  .pr-steps { gap: 56px; margin-top: 44px; }
  .pr-step { grid-template-columns: 1fr; gap: 22px; }
  .pr-step:nth-child(even) .pr-text { order: 0; }
  .process .op-garden { height: 300px; }
}
@media (prefers-reduced-motion: reduce) { .js .pr-step { opacity: 1; translate: none; transition: none; } }
.info-note { top: auto; bottom: calc(16% + 8px); }
@media (max-width: 760px) { .info-note { top: auto; bottom: 20%; } }
.pr-note { font-size: 17px !important; font-style: italic; color: var(--ink-soft); margin-top: 10px; }
.pr-text p + p { margin-top: 12px; }
.pr-globe { width: min(400px, 100%); }

/* Repeating section of her drawn lotus stem (desktop) */
#stem-strip { position: absolute; z-index: 1; pointer-events: none; height: 0; background-image: url("assets/art/stem-tile.png"); background-repeat: repeat-y; background-position: top center; }

/* ================= Bottom-of-page clean-up ================= */
/* Contact: keep the text clear of the garden (the tighter .panel padding had overridden this). */
.panel.contact { padding-bottom: 500px; }
@media (max-width: 760px) { .panel.contact { padding-bottom: 340px; } }
/* Footer bottom-left so it never sits under the floating lotus button (bottom-right). */
.garden footer { right: auto; left: 26px; }
/* Crisper greenery: drop the pale haze band, solid middle copy. */
.garden::after { display: none; }
.garden .g-center { opacity: 1; }
/* The stem dissolves softly into the foliage instead of stopping in mid-air. */
#stem-strip {
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 150px), transparent);
          mask-image: linear-gradient(to bottom, #000 calc(100% - 150px), transparent);
}
#stem .strand { -webkit-mask: none; }

/* Inspo page: no empty gap before the greenery. */
.pr-main { padding-bottom: 0; }
.process .op-garden { height: 300px; margin-top: 10px; }
.process .op-garden .greenery { height: 280px; bottom: -60px; }
.process .op-garden .g-center { height: 250px; bottom: -70px; }

/* One-pagers: show the whole greenery painting along the bottom, seamlessly repeated. */
.op .op-garden {
  background-image: url("assets/paint/greenery-strip.png");
  background-repeat: repeat-x; background-position: left bottom; background-size: auto 100%;
}
.op .op-garden .greenery { display: none; }
.op .op-garden { height: 200px; }
@media (min-width: 900px) and (min-height: 560px) {
  .op .op-garden { height: clamp(130px, 21vh, 200px); }
  .op .op-main { padding-bottom: calc(clamp(130px, 21vh, 200px) + 14px); }
}
@media (max-width: 760px) { .op .op-garden { height: 150px; } }
.process .op-garden { margin-top: -50px; }
@media (max-width: 760px) { .panel, .panel.flip { padding-left: 64px; padding-right: 22px; } }
@media (max-width: 760px) { .garden footer { left: 50%; right: auto; translate: -50% 0; white-space: nowrap; } }

/* Hovering a label colours it like the petal it belongs to (deepened for legibility). */
.flower-map .petal[href="#about"]:hover .label, .flower-map .petal[href="#about"]:focus-visible .label,
.flower-map .petal[href="#contact"]:hover .label, .flower-map .petal[href="#contact"]:focus-visible .label { fill: #6c8a45; }
.flower-map .petal[href="#sustainability"]:hover .label, .flower-map .petal[href="#sustainability"]:focus-visible .label,
.flower-map .petal[href="#tech"]:hover .label, .flower-map .petal[href="#tech"]:focus-visible .label { fill: #3f7d8c; }
.flower-map .petal[href="#nonprofit"]:hover .label, .flower-map .petal[href="#nonprofit"]:focus-visible .label { fill: #7a5fa6; }

/* ================= Top toggle: Corporate mode ================= */
.top-toggles { position: fixed; top: 18px; left: 18px; z-index: 20; display: flex; gap: 10px; align-items: center; }
.top-toggles .mode-toggle { position: static; }
.mode-toggle:focus-visible { outline: 2px dashed var(--accent); outline-offset: 3px; }
@media (max-width: 760px) {
  .top-toggles { top: 12px; left: 12px; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) { .mode-toggle, .lotus-btn, .lotus-menu { transition: none; } }

/* ================= Launch polish ================= */
/* Less empty paper between the Contact text and the greenery */
.panel.contact { padding-bottom: 310px; }
@media (max-width: 760px) { .panel.contact { padding-bottom: 250px; } }

/* "← Back" matches the LinkedIn button: hand-drawn outline, Caveat */
.op-back {
  font-family: var(--hand); font-weight: 600; font-size: 26px; line-height: 1; text-decoration: none; color: var(--ink);
  padding: 8px 22px 6px;
  border: 1.6px solid var(--ink);
  border-radius: 255px 14px 225px 14px / 14px 225px 14px 255px;
  background: rgba(247, 243, 236, .9);
  transition: transform .25s ease, background .25s ease;
}
.op-back:hover, .op-back:focus-visible { color: var(--ink); transform: rotate(-2deg) scale(1.05); background: rgba(143, 184, 222, .3); }
@media (max-width: 760px) { .op-back { font-size: 21px; padding: 7px 14px 5px; } }

/* Accessibility: the small category label on one-pagers now meets 4.5:1 contrast */
.op-eyebrow { color: var(--ink-soft); }

/* ================= One-pagers: big, scannable, under 30 seconds ================= */
.op { --op-fs: 25px; }
.op-body strong {
  font-weight: 600;
  background: linear-gradient(transparent 58%, color-mix(in srgb, var(--c) 55%, transparent) 58%, color-mix(in srgb, var(--c) 55%, transparent) 92%, transparent 92%);
  padding: 0 2px;
}
.op-body { line-height: 1.38; }
.op-body li { padding-left: 1.4em; }
@media (min-width: 900px) and (min-height: 560px) {
  .op-main { grid-template-columns: minmax(250px, 27%) 1fr; gap: 3vw; }
  .op-cols { gap: 3.4vw; }
  .op-col { gap: 3.2vh; }
  .op-fact h2 { font-size: calc(var(--op-fs) * 1.55); }
  .op-art .stack { width: min(100%, calc(25vh * var(--ar))) !important; }
}
@media not all and (min-width: 900px) and (min-height: 560px) {
  .op-body { font-size: 22px; }
}
/* More room for the text: shorter greenery band and tighter top on one-pagers */
@media (min-width: 900px) and (min-height: 560px) {
  .op .op-garden { height: clamp(100px, 15vh, 140px); }
  .op .op-main { padding-top: 76px; padding-bottom: calc(clamp(100px, 15vh, 140px) + 8px); }
  .op-side h1 { font-size: clamp(38px, 4.2vh + 1vw, 68px); }
}
