/* ============ strawberry matcha · refined ============ */
:root {
  --cream: #fdf8f1;
  --milk: #fffdf9;
  --ink: #4a3536;
  --muted: #8f7b78;
  --line: rgb(74 53 54 / .12);
  --line-strong: rgb(74 53 54 / .22);
  --berry: #e8637b;
  --berry-deep: #c9475f;
  --berry-milk: #fbe1e5;
  --matcha: #8db36f;
  --matcha-deep: #5d8446;
  --matcha-milk: #e3eed8;
  --butter: #fbf0dc;
  --radius: 22px;
  --shadow-sm: 0 1px 2px rgb(74 53 54 / .06), 0 2px 6px -2px rgb(74 53 54 / .08);
  --shadow: 0 1px 2px rgb(74 53 54 / .05), 0 12px 32px -14px rgb(120 60 70 / .22);
  --shadow-lg: 0 2px 6px rgb(74 53 54 / .06), 0 30px 70px -24px rgb(90 50 55 / .38);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background-color: var(--cream);
  background-image:
    radial-gradient(60vw 50vh at 8% 0%, rgb(251 214 222 / .55), transparent 70%),
    radial-gradient(55vw 55vh at 100% 100%, rgb(214 232 199 / .6), transparent 70%),
    radial-gradient(40vw 35vh at 95% 10%, rgb(251 240 220 / .7), transparent 70%);
  background-attachment: fixed;
  color: var(--ink);
  font: 400 15.5px/1.62 var(--serif);
  font-feature-settings: "kern", "liga", "lnum";
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* faint paper grain */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  opacity: .35; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .45  0 0 0 0 .35  0 0 0 0 .33  0 0 0 .09 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
a { color: var(--berry-deep); font-weight: 500; text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ---------- latte layers at the bottom (liquid) ---------- */
.latte {
  position: fixed; left: 0; right: 0; bottom: 0; height: 100px;
  z-index: -1; pointer-events: none;
}
.latte-glow {                      /* soft strawberry → matcha haze rising off the drink */
  position: fixed; left: 0; right: 0; bottom: 0; height: 240px; z-index: -1;
  background:
    radial-gradient(55% 110% at 88% 100%, rgb(190 222 162 / .55), transparent 70%),
    radial-gradient(60% 110% at 12% 100%, rgb(247 185 197 / .45), transparent 70%),
    linear-gradient(to top, rgb(244 168 184 / .26), transparent 75%);
}
.wave { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; overflow: hidden; }

/* matcha sailboat: script.js moves it once a minute, riding the green wave's surface */
.boat {
  position: absolute; left: 0; top: 0; width: 150px; height: 125px;
  transform-origin: 50% 80%;               /* the waterline point */
  opacity: 0; will-change: transform;
}
.boat.sailing { opacity: 1; }
.boat svg { width: 100%; height: 100%; display: block; overflow: visible; }
.boat .arm, .boat .head, .boat .face, .boat .leg { transform-box: view-box; }
.boat .arm  { transform-origin: 31.4px 60.8px; }
.boat .head { transform-origin: 31px 57px; }
.boat .leg.l { transform-origin: 30px 70px; }
.boat .leg.r { transform-origin: 32px 70px; }
.boat.sailing .head { animation: look-head 9s ease-in-out infinite; }
.boat.sailing .face { animation: look-face 9s ease-in-out infinite; }
.boat.sailing .leg.l { animation: kick 1.7s ease-in-out infinite alternate; }
.boat.sailing .leg.r { animation: kick 1.7s ease-in-out -.85s infinite alternate; }
.boat.waving .arm { animation: wave-hello 2.6s ease-in-out 1 both; }
@keyframes wave-hello {
  0%, 100% { transform: rotate(0); }
  18%, 50%, 82% { transform: rotate(-108deg); }
  34%, 66% { transform: rotate(-78deg); }
}
@keyframes look-head {           /* glances left, then right, now and then */
  0%, 30%, 56%, 66%, 92%, 100% { transform: rotate(0); }
  36%, 50% { transform: rotate(-7deg); }
  72%, 86% { transform: rotate(6deg); }
}
@keyframes look-face {
  0%, 30%, 56%, 66%, 92%, 100% { transform: translateX(0); }
  36%, 50% { transform: translateX(-1.5px); }
  72%, 86% { transform: translateX(1.5px); }
}
@keyframes kick { from { transform: rotate(-9deg); } to { transform: rotate(12deg); } }
.wave svg { display: block; width: 200%; height: 100%; }
.wave-pink { animation: bob-wave 5s ease-in-out infinite alternate; }
.wave-pink svg { animation: flow 22s linear infinite; }
.wave-green { animation: bob-wave 4s ease-in-out -2s infinite alternate-reverse; }
.wave-green svg { animation: flow 15s linear infinite reverse; }
@keyframes flow { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes bob-wave { from { transform: translateY(0) scaleY(1); } to { transform: translateY(5px) scaleY(1.08); } }

/* ---------- background decorations ---------- */
.float {
  position: fixed; z-index: -1; pointer-events: none; opacity: .55;
  animation: bob 7s ease-in-out infinite;
}
.float svg { width: 100%; height: 100%; }
.f1 { width: 52px; top: 9%; right: 7%; transform: rotate(14deg); }
.f2 { width: 36px; top: 46%; left: 3%; animation-delay: -2s; transform: rotate(-18deg); }
.f3 { width: 44px; bottom: 110px; right: 4%; animation-delay: -4s; }
.b1, .b2, .b3, .b4, .b5, .b6 { opacity: .65; animation: bob 8s ease-in-out infinite, turn 30s linear infinite; }
.b1 { width: 34px; top: 4%; left: 9%; }
.b2 { width: 22px; top: 22%; left: 4%; animation-delay: -3s, -8s; }
.b3 { width: 28px; top: 30%; right: 3%; animation-delay: -5s, -15s; }
.b4 { width: 20px; top: 62%; right: 10%; animation-delay: -1s, -4s; }
.b5 { width: 30px; bottom: 140px; left: 7%; animation-delay: -6s, -20s; }
.b6 { width: 18px; top: 3%; left: 52%; animation-delay: -2.5s, -11s; }
.b7 { width: 26px; top: 70%; left: 13%; opacity: .45; animation-delay: -3.5s; transform: rotate(40deg); }
@keyframes turn { to { rotate: 360deg; } }

/* petals: scattered in place, gently swaying (no falling) */
.petals { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.petals span {
  position: absolute; width: 19px; height: 19px; opacity: .7;
  animation: petal-sway 6s ease-in-out infinite alternate;
}
.petals span svg { width: 100%; height: 100%; display: block; }
.petals span:nth-child(1) { left: 6%;  top: 12%; animation-delay: 0s; }
.petals span:nth-child(2) { left: 19%; top: 78%; animation-delay: -1.5s; width: 13px; height: 13px; }
.petals span:nth-child(3) { left: 34%; top: 9%;  animation-delay: -3s; }
.petals span:nth-child(4) { left: 47%; top: 70%; animation-delay: -4.5s; width: 14px; height: 14px; }
.petals span:nth-child(5) { left: 62%; top: 15%; animation-delay: -2s; }
.petals span:nth-child(6) { left: 77%; top: 74%; animation-delay: -5s; width: 12px; height: 12px; }
.petals span:nth-child(7) { left: 89%; top: 40%; animation-delay: -1s; }
.petals span:nth-child(8) { left: 95%; top: 86%; animation-delay: -3.5s; width: 13px; height: 13px; }
@keyframes petal-sway {
  from { transform: translate(-3px, 0) rotate(-12deg); }
  to   { transform: translate(3px, -4px) rotate(14deg); }
}

/* ---------- desktop (fits one screen) ---------- */
.desk {
  min-height: 100vh;
  max-width: 1140px;
  margin: 0 auto;
  padding: clamp(22px, 5vh, 52px) 24px 104px;
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 3.5vh, 34px);
}

.hero { display: flex; align-items: center; gap: 24px; }
.avatar {
  width: 104px; height: 104px; flex: none;
  border-radius: 50%;
  background: var(--berry-milk) center/cover;
  display: grid; place-items: center;
  font: 500 36px var(--serif); letter-spacing: -.02em;
  border: 4px solid var(--milk);
  box-shadow: 0 0 0 1px var(--line-strong), var(--shadow);
  position: relative;
}
h1 {
  font: 500 clamp(34px, 5.2vw, 52px)/1.05 var(--serif);
  margin: 0;
  letter-spacing: -.02em;
}
h1 .hl { color: var(--berry); font-style: italic; }
h1, .group h3, .win-bar h2, .series-title, .win-body h4, .avatar {
  font-variation-settings: "SOFT" 100;
}
.tagline { margin: 6px 0 12px; color: var(--muted); font-weight: 400; font-style: italic; font-size: 16px; white-space: nowrap; }
.links { display: flex; gap: 8px; flex-wrap: wrap; }
.links a {
  font: 500 13.5px var(--serif); letter-spacing: 0;
  padding: 4px 15px; border-radius: 999px;
  border: 1px solid var(--line-strong); color: var(--ink);
  background: rgb(255 253 249 / .8);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, background .2s;
}
.links a { display: inline-flex; align-items: center; gap: 6px; }
.link-ic { width: 14px; height: 14px; display: inline-grid; place-items: center; flex: none; }
.link-ic svg { width: 14px; height: 14px; display: block; }
.links a:nth-child(3n+1) { background: var(--berry-milk); }
.links a:nth-child(3n+2) { background: var(--matcha-milk); }
.links a:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow); }
.links a:active { transform: translateY(0); }

/* ---------- icon groups ---------- */
.groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
/* each panel is a little pastry-shop display: striped awning, bakery sign, gingham napkin */
.group {
  --tint: 232 99 123;            /* strawberry */
  --stripe: #f8d3da;
  --fill: rgb(253 236 239 / .9);
  position: relative;
  background-color: var(--fill);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0 14px 16px;
  overflow: hidden;
  outline: 1.5px dashed rgb(var(--tint) / .3);   /* napkin stitching */
  outline-offset: -7px;
}
.group:nth-child(2) { --tint: 109 154 82;  --stripe: #d7e8c6; --fill: rgb(237 245 229 / .92); }   /* matcha */
.group:nth-child(3) { --tint: 214 160 70;  --stripe: #f6e3bd; --fill: rgb(253 245 228 / .92); }   /* butter */

.group h3 {
  position: relative; z-index: 1;
  margin: 0 -14px 20px; padding: 10px 12px 9px;
  display: flex; justify-content: center;
  font: 500 15.5px var(--serif); letter-spacing: -.01em;
  background: repeating-linear-gradient(90deg, var(--stripe) 0 22px, var(--milk) 22px 44px);
  box-shadow: inset 0 -1px 0 rgb(74 53 54 / .06);
}
.group h3::after {                /* scalloped awning edge */
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 11px;
  background:
    radial-gradient(circle at 11px 0, var(--stripe) 10.5px, transparent 11px) 0 0 / 44px 11px repeat-x,
    radial-gradient(circle at 33px 0, var(--milk) 10.5px, transparent 11px) 0 0 / 44px 11px repeat-x;
  filter: drop-shadow(0 1.5px 0 rgb(74 53 54 / .08));
}
.sign {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 3px 14px 3px 8px; border-radius: 999px;
  background: var(--milk);
  border: 1px solid rgb(var(--tint) / .35);
  box-shadow: var(--shadow-sm);
}
.sign-icon { width: 20px; height: 20px; display: grid; place-items: center; }
.sign-icon svg { width: 20px; height: 20px; }

.icons {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 2px;
}
.icon {
  appearance: none; border: 0; background: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 10px 2px 8px; border-radius: 16px;
  font: 500 14px/1.22 var(--serif); letter-spacing: 0; color: var(--ink); text-align: center;
  transition: background .2s;
}
.icon:hover { background: rgb(74 53 54 / .03); }
.icon:focus-visible { outline: 1.5px solid var(--matcha); outline-offset: -2px; }
.tile {
  width: 82px; height: 82px; border-radius: 25px;
  display: grid; place-items: center;
  font-size: 30px;
  border: 1px solid rgb(74 53 54 / .1);
  background-image: linear-gradient(to bottom, rgb(255 255 255 / .55), rgb(255 255 255 / 0));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .9), var(--shadow-sm);
  transition: transform .3s cubic-bezier(.25,1.4,.5,1), box-shadow .3s ease;
}
.tile svg { width: 57px; height: 57px; overflow: visible; }
.icon:hover .tile { transform: translateY(-3px) rotate(-3deg); box-shadow: inset 0 1px 0 rgb(255 255 255 / .9), var(--shadow); }
.icon:active .tile { transform: translateY(0) scale(.97); }


/* ---------- window ---------- */
.scrim {
  position: fixed; inset: 0; z-index: 10;
  background: rgb(74 53 54 / .18);
  backdrop-filter: blur(5px);
  display: grid; place-items: center; padding: 20px;
  animation: fade .2s ease-out;
}
.win {
  width: min(640px, 100%);
  max-height: min(82vh, 740px);
  display: flex; flex-direction: column;
  background: var(--milk);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: pop .32s cubic-bezier(.2,1.2,.4,1);
}
.win-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px 12px 16px;
  background: linear-gradient(to bottom, var(--berry-milk), rgb(251 225 229 / .45));
  border-bottom: 1px solid var(--line);
}
.win[data-tint="1"] .win-bar { background: linear-gradient(to bottom, var(--matcha-milk), rgb(227 238 216 / .45)); }
.win[data-tint="2"] .win-bar { background: linear-gradient(to bottom, var(--butter), rgb(251 240 220 / .45)); }
.win-icon {
  width: 38px; height: 38px; display: grid; place-items: center; font-size: 22px;
  background: var(--milk); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-sm);
}
.win-icon svg { width: 27px; height: 27px; }
.win-bar h2 { flex: 1; margin: 0; font: 500 22px/1.15 var(--serif); letter-spacing: -.015em; }
.close {
  border: 1px solid var(--line-strong); background: rgb(255 253 249 / .8); cursor: pointer;
  width: 32px; height: 32px; border-radius: 50%;
  font: 400 22px/1 var(--serif); color: var(--ink); padding-bottom: 2px;
  transition: background .2s, color .2s, border-color .2s;
}
.close:hover { background: var(--berry); border-color: var(--berry); color: var(--milk); }
.close:active { transform: scale(.95); }

.win-body { padding: 20px 26px 26px; overflow: auto; }
.win-body p { margin: 0 0 10px; }
.win-body h4 {
  margin: 20px 0 6px;
  font: 500 12px var(--serif); letter-spacing: .08em; text-transform: uppercase;
  color: var(--matcha-deep);
  display: flex; align-items: center; gap: 10px;
}
.win-body h4::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.win-body h4:first-child { margin-top: 0; }
.series-title {
  margin: 26px 0 8px; font: 500 21px/1.15 var(--serif); letter-spacing: -.015em;
  color: var(--ink);
}
.series-text { margin-top: 14px; }
.series-text p { color: var(--muted); }
:is(.gallery, .series-text) + .series-title { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.win-body ul { padding-left: 4px; margin: 0; list-style: none; }
.win-body li { margin: 6px 0; padding-left: 20px; position: relative; }
.win-body li::before {
  content: ""; position: absolute; left: 3px; top: .62em;
  width: 7px; height: 7px; border-radius: 50% 0;
  background: var(--matcha);
  transform: rotate(-45deg);
}
.win-body strong { color: var(--ink); font-weight: 600; }
.win-body ul.awards li { margin: 0 0 14px; }
/* About me photo: square, in a dashed "stitched" frame */
.about-photo {
  float: right; width: 210px; margin: 2px 0 12px 20px; padding: 7px;
  border: 2px dashed rgb(232 99 123 / .55); border-radius: 18px;
  background: var(--milk);
}
.about-photo img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 11px; }
.win-body h4 { clear: both; }
@media (max-width: 560px) {
  .about-photo { float: none; width: min(260px, 100%); margin: 0 auto 16px; }
}
.muted { color: var(--muted); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tags span {
  font: 500 11.5px var(--serif); letter-spacing: .02em;
  padding: 2px 11px; border-radius: 999px;
  border: 1px solid rgb(93 132 70 / .25);
  color: var(--matcha-deep);
  background: var(--matcha-milk);
}
.tags span:nth-child(even) { background: var(--berry-milk); border-color: rgb(201 71 95 / .22); color: var(--berry-deep); }

.pdf {
  width: 100%; height: 380px; margin-top: 14px;
  border: 1px solid var(--line); border-radius: 14px; background: #fff;
  box-shadow: var(--shadow-sm);
}
.btns { display: flex; gap: 8px; margin-top: 14px; }
.btn {
  padding: 6px 16px; border-radius: 999px;
  font: 500 13.5px var(--serif); color: var(--ink);
  border: 1px solid var(--line-strong); background: var(--matcha-milk);
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.btn + .btn { background: var(--berry-milk); }
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow); }

/* justified gallery: every photo keeps its original aspect ratio, rows share a height */
.gallery { --row: 300px; display: flex; flex-wrap: wrap; gap: 12px; }
.gallery::after { content: ""; flex: 999 1 0; }       /* keeps the last row from stretching */
.gallery figure { margin: 0; flex: var(--ar) 1 calc(var(--ar) * var(--row)); min-width: 0; }
.gallery img {
  display: block; width: 100%; height: auto; aspect-ratio: var(--ar);
  cursor: zoom-in; border-radius: 10px; background: var(--butter);
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
.gallery img:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

/* larger window for photography */
.win[data-wide] { width: min(1180px, 100%); max-height: 92vh; }
.win[data-wide] .win-body { padding: 22px 30px 32px; }
.win[data-wide] .series-text { max-width: 720px; }
.win[data-wide] .gallery { --row: 270px; }
.win[data-wide] .gallery:first-child, .win[data-wide] .win-body > p + .gallery { margin-top: 18px; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 20;
  background: rgb(52 38 39 / .86);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; gap: 14px;
}
.lightbox img { max-width: 86vw; max-height: 90vh; width: auto; height: auto; border-radius: 14px; box-shadow: var(--shadow-lg); }
.lb-nav {
  border: 1px solid rgb(255 255 255 / .3); background: rgb(255 255 255 / .12); color: #fff; cursor: pointer;
  width: 46px; height: 46px; border-radius: 50%; font: 400 24px/1 var(--serif);
}
.lb-nav:hover { background: rgb(255 255 255 / .22); }

/* ---------- icon hover animations ---------- */
.ic [class^="a-"], .ic [class*=" a-"], .ic-car { transform-box: fill-box; transform-origin: center; }
:is(.icon:hover, .icon:focus-visible) .a-eyes { animation: blink 2.6s ease-in-out infinite; }

/* strawberry · hop */
:is(.icon:hover, .icon:focus-visible) .ic-strawberry .a-hop { transform-origin: 50% 100%; animation: hop .9s ease-in-out infinite; }
:is(.icon:hover, .icon:focus-visible) .ic-strawberry .a-leaves { transform-origin: 50% 100%; animation: wiggle .45s ease-in-out infinite alternate; }

/* resume · writing */
:is(.icon:hover, .icon:focus-visible) .a-write { stroke-dasharray: 1; animation: write 1.8s ease-out infinite both; }
:is(.icon:hover, .icon:focus-visible) .a-write.w2 { animation-delay: .18s; }
:is(.icon:hover, .icon:focus-visible) .a-write.w3 { animation-delay: .36s; }
:is(.icon:hover, .icon:focus-visible) .a-pulse { animation: pulse 1.8s ease-in-out infinite; }

/* cap · toss */
:is(.icon:hover, .icon:focus-visible) .a-toss { animation: toss 1.2s cubic-bezier(.4,0,.3,1) infinite; }
:is(.icon:hover, .icon:focus-visible) .a-tassel { transform-box: view-box; transform-origin: 32px 25px; animation: swing .6s ease-in-out infinite alternate; }

/* toolbox · lid opens, tools pop up */
.ic-toolbox .a-lid { transform-box: view-box; transform-origin: 9px 37px; transition: transform .35s cubic-bezier(.3,1.4,.5,1); }
.ic-toolbox .a-tools { transform: translateY(24px); transition: transform .5s cubic-bezier(.3,1.5,.5,1) .12s; }
.ic-toolbox .a-wrench, .ic-toolbox .a-driver { transform-origin: 50% 100%; }
:is(.icon:hover, .icon:focus-visible) .ic-toolbox .a-lid { transform: rotate(-32deg); }
:is(.icon:hover, .icon:focus-visible) .ic-toolbox .a-tools { transform: translateY(0); }
:is(.icon:hover, .icon:focus-visible) .ic-toolbox .a-wrench { animation: jiggle 1.1s ease-in-out .6s infinite alternate; }
:is(.icon:hover, .icon:focus-visible) .ic-toolbox .a-driver { animation: jiggle 1.1s ease-in-out .9s infinite alternate-reverse; }

/* camera · flash */
.ic-camera .a-burst, .ic-camera .a-glow { opacity: 0; }
.tile:has(.ic-camera) { position: relative; }
.tile:has(.ic-camera)::after {           /* the flash lights up the whole tile, following its rounded corners */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at 68% 38%, #fff 0, rgb(255 255 255 / .75) 35%, rgb(255 251 232 / 0) 80%);
}
:is(.icon:hover, .icon:focus-visible) .ic-camera .a-click { animation: shutter 1.8s ease-out infinite; }
:is(.icon:hover, .icon:focus-visible) .ic-camera .a-flash { animation: flash 1.8s ease-out infinite; }
:is(.icon:hover, .icon:focus-visible) .ic-camera .a-glow  { animation: glow 1.8s ease-out infinite; }
:is(.icon:hover, .icon:focus-visible) .ic-camera .a-burst { animation: burst 1.8s ease-out infinite; }
:is(.icon:hover, .icon:focus-visible) .tile:has(.ic-camera)::after { animation: pop-flash 1.8s ease-out infinite; }
@keyframes shutter { 0%, 14%, 30%, 100% { transform: scale(1); } 18% { transform: scale(.95); } }
@keyframes glow { 0%, 16% { opacity: 0; transform: scale(.3); } 20% { opacity: 1; transform: scale(1.6); } 45%, 100% { opacity: 0; transform: scale(2.6); } }
@keyframes pop-flash { 0%, 17% { opacity: 0; } 20% { opacity: .85; } 34%, 100% { opacity: 0; } }

/* car · drive */
:is(.icon:hover, .icon:focus-visible) .ic-car { animation: drive 1.4s ease-in-out infinite; }
:is(.icon:hover, .icon:focus-visible) .a-wheel { animation: spin .45s linear infinite; }
:is(.icon:hover, .icon:focus-visible) .a-rumble { animation: rumble .22s linear infinite; }
:is(.icon:hover, .icon:focus-visible) .a-speed path { transform-box: fill-box; animation: streak-back .55s linear infinite; }
:is(.icon:hover, .icon:focus-visible) .a-speed .s2 { animation-delay: -.2s; }
:is(.icon:hover, .icon:focus-visible) .a-speed .s3 { animation-delay: -.38s; }

/* sprout · grows out of the pot, then sways; face blinks */
.ic-sprout .a-grow, .ic-sprout .a-sway { transform-box: view-box; transform-origin: 32px 37px; }
.ic-sprout .l1 { transform-box: view-box; transform-origin: 32px 26px; }
.ic-sprout .l2 { transform-box: view-box; transform-origin: 32px 21px; }
:is(.icon:hover, .icon:focus-visible) .ic-sprout .a-grow { animation: grow .9s cubic-bezier(.3,1.35,.5,1) both; }
:is(.icon:hover, .icon:focus-visible) .ic-sprout .a-leaf { animation: unfurl .55s cubic-bezier(.3,1.6,.5,1) both; }
:is(.icon:hover, .icon:focus-visible) .ic-sprout .l1 { animation-delay: .35s; }
:is(.icon:hover, .icon:focus-visible) .ic-sprout .l2 { animation-delay: .5s; }
:is(.icon:hover, .icon:focus-visible) .ic-sprout .a-sway { animation: sway 1.2s ease-in-out 1s infinite alternate; }

/* flask · bubbling */
.ic-flask .b1 { --dx: 5px; } .ic-flask .b2 { --dx: -4px; } .ic-flask .b3 { --dx: 1px; }
:is(.icon:hover, .icon:focus-visible) .a-bubble { animation: bubble 1.5s ease-in infinite both; }
:is(.icon:hover, .icon:focus-visible) .a-bubble.b2 { animation-delay: .5s; }
:is(.icon:hover, .icon:focus-visible) .a-bubble.b3 { animation-delay: 1s; }
:is(.icon:hover, .icon:focus-visible) .a-float { animation: drift 1.5s ease-in-out infinite; }
:is(.icon:hover, .icon:focus-visible) .a-float.f2 { animation-delay: -.75s; }
:is(.icon:hover, .icon:focus-visible) .a-slosh { animation: slosh .5s ease-in-out infinite alternate; }

/* star · twinkle */
.ic-star .a-spark { opacity: 0; }
:is(.icon:hover, .icon:focus-visible) .a-twirl { animation: twirl 1.4s ease-in-out infinite; }
:is(.icon:hover, .icon:focus-visible) .a-spark { animation: sparkle 1.4s ease-in-out infinite; }
:is(.icon:hover, .icon:focus-visible) .a-spark.k2 { animation-delay: .7s; }

/* cookie · a bite, then crumbs */
.ic-cookie .a-bite { transform: scale(0); transform-box: view-box; transform-origin: 54px 12px; }
.ic-cookie .a-crumbs circle { opacity: 0; }
:is(.icon:hover, .icon:focus-visible) .ic-cookie .a-bite { animation: bite 2s ease-out infinite; }
:is(.icon:hover, .icon:focus-visible) .ic-cookie .a-munch { animation: munch 2s ease-out infinite; }
:is(.icon:hover, .icon:focus-visible) .ic-cookie .a-crumbs circle { animation: crumb 2s ease-in infinite; }
:is(.icon:hover, .icon:focus-visible) .ic-cookie .c2 { animation-delay: .06s; }
:is(.icon:hover, .icon:focus-visible) .ic-cookie .c3 { animation-delay: .12s; }
@keyframes bite { 0%, 18% { transform: scale(0); } 26%, 88% { transform: scale(1); } 100% { transform: scale(0); } }
@keyframes munch { 0%, 18%, 40%, 100% { transform: scale(1); } 26% { transform: scale(.94) rotate(-4deg); } }
@keyframes crumb { 0%, 24% { opacity: 0; transform: translate(0, 0); } 30% { opacity: 1; } 70%, 100% { opacity: 0; transform: translate(2px, 22px); } }

/* trophy · raised with sparkles */
.ic-trophy .a-spark { opacity: 0; }
:is(.icon:hover, .icon:focus-visible) .ic-trophy .a-raise { transform-origin: 50% 100%; animation: raise 1.3s ease-in-out infinite; }

/* book · page flip */
.ic-book .a-page { opacity: 0; transform-box: view-box; transform-origin: 32px 36px; }
:is(.icon:hover, .icon:focus-visible) .ic-book .a-page { animation: flip 1.4s ease-in-out infinite; }

/* quill · writing */
:is(.icon:hover, .icon:focus-visible) .ic-quill .a-quill { animation: scribble .6s ease-in-out infinite alternate; }

/* gear · spin */
:is(.icon:hover, .icon:focus-visible) .a-spin { animation: spin 2.4s linear infinite; }

/* robot · bob + antenna */
:is(.icon:hover, .icon:focus-visible) .a-bob { animation: bob-y .8s ease-in-out infinite alternate; }
:is(.icon:hover, .icon:focus-visible) .a-antenna { transform-box: view-box; transform-origin: 32px 20px; animation: wiggle .4s ease-in-out infinite alternate; }

/* ramen · steam */
:is(.icon:hover, .icon:focus-visible) .a-steam { animation: steam 1.8s ease-in-out infinite both; }
:is(.icon:hover, .icon:focus-visible) .a-steam.t2 { animation-delay: .6s; }
:is(.icon:hover, .icon:focus-visible) .a-steam.t3 { animation-delay: 1.2s; }
:is(.icon:hover, .icon:focus-visible) .a-chop { animation: lift .9s ease-in-out infinite alternate; }

/* heart · heartbeat */
:is(.icon:hover, .icon:focus-visible) .a-beat { animation: beat 1.1s ease-in-out infinite; }
:is(.icon:hover, .icon:focus-visible) .a-ecg { stroke-dasharray: 1; animation: write 1.1s linear infinite both; }

@keyframes blink { 0%, 44%, 52%, 100% { transform: scaleY(1); } 48% { transform: scaleY(.1); } }
@keyframes hop { 0%, 100% { transform: translateY(0) scale(1); } 30% { transform: translateY(-5px) scale(.96, 1.05); } 55% { transform: translateY(0) scale(1.05, .95); } 72% { transform: scale(1); } }
@keyframes wiggle { from { transform: rotate(-10deg); } to { transform: rotate(10deg); } }
@keyframes write { 0% { stroke-dashoffset: 1; } 55%, 100% { stroke-dashoffset: 0; } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 60% { transform: scale(1); } 75% { transform: scale(1.22); } 90% { transform: scale(.96); } }
@keyframes toss { 0%, 100% { transform: translateY(0) rotate(0); } 40% { transform: translateY(-7px) rotate(-9deg); } 70% { transform: translateY(1px) rotate(2deg); } }
@keyframes swing { from { transform: rotate(-14deg); } to { transform: rotate(10deg); } }
@keyframes lift { from { transform: translateY(0); } to { transform: translateY(-2px); } }
@keyframes drive { 0%, 100% { transform: translateX(-2px); } 50% { transform: translateX(3px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rumble { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-.8px); } }
@keyframes grow { 0% { transform: translateY(14px) scale(.2); } 100% { transform: translateY(0) scale(1); } }
@keyframes unfurl { 0% { transform: scale(0) rotate(-30deg); } 100% { transform: scale(1) rotate(0); } }
@keyframes jiggle { from { rotate: -5deg; } to { rotate: 5deg; } }
@keyframes burst { 0%, 8% { opacity: 0; transform: scale(.4); } 14% { opacity: 1; transform: scale(1.1); } 40%, 100% { opacity: 0; transform: scale(1.2); } }
@keyframes flash { 0%, 8% { fill: #ffe08a; } 12% { fill: #fffbe8; } 30%, 100% { fill: #ffe08a; } }
@keyframes raise { 0%, 100% { transform: translateY(0) rotate(0); } 30% { transform: translateY(-4px) rotate(-6deg); } 60% { transform: translateY(-4px) rotate(6deg); } }
@keyframes flip { 0%, 8% { opacity: 0; transform: scaleX(1); } 14% { opacity: 1; } 86% { opacity: 1; transform: scaleX(-1); } 100% { opacity: 0; transform: scaleX(-1); } }
@keyframes scribble { from { transform: translate(0, 0) rotate(0); } to { transform: translate(-4px, 1.5px) rotate(-5deg); } }
@keyframes streak-back { 0% { transform: translateX(-6px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateX(7px); opacity: 0; } }
@keyframes sway { from { transform: rotate(-9deg); } to { transform: rotate(9deg); } }
@keyframes bubble { 0% { transform: translate(0, 0) scale(.5); opacity: 0; } 15% { opacity: 1; } 100% { transform: translate(var(--dx), -40px) scale(1.25); opacity: 0; } }
@keyframes drift { 0%, 100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(-4px); opacity: .55; } }
@keyframes slosh { from { transform: translateY(-.6px) skewY(-2deg); } to { transform: translateY(.6px) skewY(2deg); } }
@keyframes twirl { 0%, 100% { transform: rotate(0) scale(1); } 30% { transform: rotate(-14deg) scale(1.08); } 65% { transform: rotate(12deg) scale(1.04); } }
@keyframes sparkle { 0%, 100% { opacity: 0; transform: scale(.3) rotate(0); } 50% { opacity: 1; transform: scale(1.1) rotate(45deg); } }
@keyframes bob-y { from { transform: translateY(1px); } to { transform: translateY(-2px); } }
@keyframes steam { 0% { transform: translateY(4px) scaleX(1); opacity: 0; } 30% { opacity: 1; } 55% { transform: translateY(-1px) scaleX(-1); } 100% { transform: translateY(-7px) scaleX(1); opacity: 0; } }
@keyframes beat { 0%, 100% { transform: scale(1); } 14% { transform: scale(1.12); } 28% { transform: scale(1); } 42% { transform: scale(1.08); } 70% { transform: scale(1); } }

[hidden] { display: none !important; }

@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(8px); } }
@keyframes bob { 50% { translate: 0 -8px; } }

/* ---------- small screens ---------- */
@media (max-width: 1000px) {
  .tagline { white-space: normal; }
}
@media (max-width: 860px) {
  .groups { grid-template-columns: 1fr; }
  .icons { grid-template-columns: repeat(4, 1fr); }
  .float { display: none; }
  .petals span:nth-child(n+5) { display: none; }
}
@media (max-width: 700px) {
  .gallery { --row: 200px; }
}
@media (max-width: 460px) {
  .hero { flex-direction: column; align-items: flex-start; gap: 16px; }
  .icons { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
.close:focus { outline: none; }
.close:focus-visible, .links a:focus-visible, .btn:focus-visible { outline: 1.5px solid var(--matcha); outline-offset: 2px; }
