/* ABC Adventure Land, demo v2 by BR Creators
   2026 direction: bento hero, clay-3D surfaces, kinetic variable type, glass nav,
   organic blobs and waves, marquee, scroll-driven reveals. Colours from the school logo. */

/* ---------- fonts (self-hosted, SIL OFL) ---------- */
@font-face { font-family: "Fredoka"; src: url("fonts/fredoka.woff2") format("woff2-variations"), url("fonts/fredoka.woff2") format("woff2"); font-weight: 300 700; font-stretch: 75% 125%; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/figtree.woff2") format("woff2-variations"), url("fonts/figtree.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }

/* ---------- tokens ---------- */
:root {
  --cream: #fff7df;
  --cream-2: #fff0c2;
  --ink: #2a1740;
  --ink-2: #4a3563;
  --white: #ffffff;
  --sun: #ffcd2e;
  --sun-deep: #f2a900;
  --leaf: #5dbb46;
  --leaf-deep: #2e8b3a;
  --leaf-soft: #dff3cf;
  --grape: #7a3db8;
  --grape-deep: #5b2590;
  --grape-soft: #efe2fb;
  --sky: #74c7f5;
  --coral: #ff8a6b;
  --wa: #1fa855;
  --wa-deep: #138a42;

  --font-display: "Fredoka", ui-rounded, system-ui, sans-serif;
  --font-body: "Figtree", ui-sans-serif, system-ui, sans-serif;

  --r-xl: 40px; --r-lg: 32px; --r-md: 22px; --r-pill: 999px;
  --gap: 18px;
  --wrap: 1280px;
  --pad: clamp(16px, 4vw, 48px);
  --section: clamp(72px, 10vw, 140px);

  /* clay: soft 3D surface, light top edge, darker bottom lip, soft drop */
  --clay: inset 0 3px 0 rgb(255 255 255 / .55), inset 0 -7px 0 rgb(0 0 0 / .08), 0 22px 40px -22px rgb(42 23 64 / .45);
  --clay-hover: inset 0 3px 0 rgb(255 255 255 / .55), inset 0 -7px 0 rgb(0 0 0 / .08), 0 30px 50px -22px rgb(42 23 64 / .5);

  --ease: cubic-bezier(.2, .9, .3, 1.2);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; scrollbar-color: var(--grape) var(--cream); }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.55; -webkit-font-smoothing: antialiased; padding-bottom: 56px; }
::selection { background: var(--sun); color: var(--ink); }
:focus-visible { outline: 3px solid var(--grape); outline-offset: 3px; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 650; line-height: 1; letter-spacing: -0.015em; text-wrap: balance; overflow-wrap: break-word; }
p { margin: 0; text-wrap: pretty; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.skip { position: absolute; left: 16px; top: -100px; z-index: 999; background: var(--ink); color: var(--white); padding: 8px 16px; border-radius: var(--r-pill); }
.skip:focus-visible { top: 16px; }

/* ---------- background aura ---------- */
.aura { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.aura span { position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%; filter: blur(70px); opacity: .45; animation: drift 22s ease-in-out infinite alternate; }
.aura span:nth-child(1) { background: var(--sun); left: -12vmax; top: -14vmax; }
.aura span:nth-child(2) { background: var(--leaf-soft); right: -14vmax; top: 20vh; animation-delay: -7s; }
.aura span:nth-child(3) { background: var(--grape-soft); left: 20vw; bottom: -20vmax; animation-delay: -14s; }
@keyframes drift { to { transform: translate(6vmax, 4vmax) scale(1.1); } }

/* ---------- chips & stickers ---------- */
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: var(--r-pill); background: var(--white); font-weight: 700; font-size: .9375rem; box-shadow: inset 0 -3px 0 rgb(0 0 0 / .06); }
.chip--leaf { background: var(--leaf-soft); color: var(--leaf-deep); }
.chip--grape { background: var(--grape-soft); color: var(--grape-deep); }
.chip--sun { background: var(--sun); color: var(--ink); }
.sticker { font-family: var(--font-display); font-weight: 700; font-size: 1.375rem; padding: 10px 20px; border-radius: var(--r-pill); background: var(--sun); color: var(--ink); box-shadow: 0 0 0 5px var(--white), 0 16px 30px -14px rgb(42 23 64 / .5); }
.sticker--tilt { transform: rotate(-7deg); }

/* ---------- buttons (clay) ---------- */
.btn {
  --bg: var(--grape); --fg: var(--white); --lip: var(--grape-deep);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px; white-space: nowrap;
  font-family: var(--font-display); font-weight: 650; font-size: 1.1875rem; text-decoration: none;
  color: var(--fg); background: var(--bg); border: 0; border-radius: var(--r-pill);
  box-shadow: inset 0 2px 0 rgb(255 255 255 / .35), 0 6px 0 var(--lip), 0 16px 24px -12px rgb(42 23 64 / .55);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease-out), filter .2s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-3px); box-shadow: inset 0 2px 0 rgb(255 255 255 / .35), 0 9px 0 var(--lip), 0 22px 28px -12px rgb(42 23 64 / .55); }
.btn:active { transform: translateY(5px); box-shadow: inset 0 2px 0 rgb(255 255 255 / .35), 0 1px 0 var(--lip), 0 6px 10px -6px rgb(42 23 64 / .5); }
.btn--grape { --bg: var(--grape); --lip: var(--grape-deep); }
.btn--wa { --bg: var(--wa); --lip: var(--wa-deep); }
.btn--sun { --bg: var(--sun); --fg: var(--ink); --lip: var(--sun-deep); }
.btn--glass { --bg: rgb(255 255 255 / .16); --lip: rgb(0 0 0 / .18); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 2px rgb(255 255 255 / .5), 0 6px 0 var(--lip); }
.btn--sm { min-height: 46px; padding: 0 22px; font-size: 1.0625rem; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- glass nav ---------- */
.nav {
  position: sticky; top: 12px; z-index: 100;
  width: min(var(--wrap) - 2 * var(--pad), calc(100% - 24px)); margin: 12px auto 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 8px 8px 12px; border-radius: var(--r-pill);
  background: rgb(255 255 255 / .72); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .8), 0 14px 34px -18px rgb(42 23 64 / .45);
}
.nav__brand img { width: 74px; height: 56px; object-fit: contain; }
.nav__links { display: flex; gap: 4px; }
.nav__links a { text-decoration: none; font-weight: 700; padding: 10px 18px; border-radius: var(--r-pill); transition: background-color .2s; }
.nav__links a:hover { background: var(--cream-2); }

/* ---------- hero bento ---------- */
.hero { padding: 28px var(--pad) 40px; max-width: var(--wrap); margin-inline: auto; }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: minmax(360px, auto) 170px; gap: var(--gap); }
.tile { position: relative; border-radius: var(--r-xl); background: var(--white); box-shadow: var(--clay); overflow: hidden; text-decoration: none; transition: transform .35s var(--ease), box-shadow .35s var(--ease-out); }
a.tile:hover, .tile--photo:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: var(--clay-hover); }

.tile--intro { grid-column: 1 / 7; grid-row: 1 / 3; padding: clamp(24px, 3.2vw, 48px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 22px;
  background: radial-gradient(120% 90% at 0% 0%, var(--cream-2), transparent 60%), radial-gradient(90% 80% at 100% 100%, var(--grape-soft), transparent 60%), var(--white); }
.tile--intro::after { content: ""; position: absolute; width: 180px; height: 180px; right: -50px; top: -50px; border-radius: 42% 58% 63% 37% / 46% 40% 60% 54%; background: var(--sun); opacity: .9; z-index: 0; animation: morph 9s ease-in-out infinite; }
.tile--intro > * { position: relative; z-index: 1; }
.lede { font-size: clamp(1.125rem, .5vw + 1rem, 1.3125rem); color: var(--ink-2); max-width: 32ch; }

.kinetic { font-size: clamp(3rem, 6.2vw, 5.75rem); line-height: .95; font-weight: 650; font-stretch: 100%; }
.kinetic .w { display: inline-block; transition: font-weight .4s var(--ease-out), font-stretch .4s var(--ease-out), transform .4s var(--ease); }
.kinetic .w--1 { color: var(--leaf-deep); }
.kinetic .w--2 { color: var(--grape); }
.kinetic .w--3 { color: var(--ink); }
.kinetic .w--4 { color: var(--ink); position: relative; }
.kinetic .w--4::after { content: ""; position: absolute; left: -2%; right: -2%; bottom: .06em; height: .28em; border-radius: 99px; background: var(--sun); z-index: -1; transform-origin: left; animation: swipe .9s .6s var(--ease-out) both; }
.kinetic .w:hover { font-weight: 700; font-stretch: 112%; transform: translateY(-4px) rotate(-2deg); }
.js .kinetic .w { animation: pop .7s var(--ease) both; }
.js .kinetic .w--2 { animation-delay: .08s; } .js .kinetic .w--3 { animation-delay: .16s; } .js .kinetic .w--4 { animation-delay: .24s; }
@keyframes pop { from { transform: translateY(.5em) scale(.8); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes swipe { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes morph { 50% { border-radius: 58% 42% 38% 62% / 55% 61% 39% 45%; transform: rotate(18deg) scale(1.06); } }

.tile--photo { grid-column: 7 / 13; grid-row: 1; margin: 0; background: var(--sun); }
.tile--photo img { width: 100%; height: 100%; object-fit: cover; }
.tile--photo .sticker { position: absolute; left: 22px; bottom: 22px; }

.tile__label { font-weight: 700; color: var(--ink-2); font-size: .9375rem; }
.tile--status, .tile--rating, .tile--where { padding: 22px 24px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; }
.tile--status { grid-column: 7 / 9; background: var(--leaf-soft); }
.tile--status strong { font-family: var(--font-display); font-weight: 650; font-size: 1.3125rem; line-height: 1.1; }
.tile--status.is-closed { background: var(--cream-2); }
.dot { position: absolute; top: 22px; left: 24px; width: 16px; height: 16px; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 0 0 rgb(93 187 70 / .6); animation: ping 1.8s ease-out infinite; }
.is-closed .dot { background: var(--sun-deep); animation: none; }
@keyframes ping { 70% { box-shadow: 0 0 0 14px rgb(93 187 70 / 0); } 100% { box-shadow: 0 0 0 0 rgb(93 187 70 / 0); } }

.tile--rating { grid-column: 9 / 11; background: var(--grape); color: var(--white); }
.tile--rating .tile__label { color: rgb(255 255 255 / .85); }
.big { font-family: var(--font-display); font-weight: 700; font-size: 3.25rem; line-height: .9; }
.stars { display: flex; gap: 3px; position: absolute; top: 24px; left: 24px; }
.stars i { width: 20px; height: 20px; background: var(--sun); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }

.tile--where { grid-column: 11 / 13; background: var(--sky); }
.tile--where strong { font-family: var(--font-display); font-weight: 650; font-size: 1.1875rem; line-height: 1.15; }
.tile--where .tile__label { color: var(--ink); }
.arrow { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 50%; background: var(--white); transition: transform .3s var(--ease); }
.arrow::before { content: ""; position: absolute; inset: 0; margin: auto; width: 14px; height: 14px; border-top: 3px solid var(--ink); border-right: 3px solid var(--ink); transform: translate(-2px, 2px) rotate(45deg); }
.tile--where:hover .arrow { transform: rotate(-45deg) scale(1.08); }

/* ---------- marquee ---------- */
.marquee { margin-block: 30px 10px; background: var(--grape); color: var(--white); transform: rotate(-2deg); width: 104%; margin-left: -2%; padding-block: 16px; overflow: hidden; box-shadow: 0 18px 30px -20px rgb(42 23 64 / .6); }
.marquee__track { display: flex; align-items: center; gap: 28px; width: max-content; animation: slide 28s linear infinite; font-family: var(--font-display); font-weight: 650; font-size: clamp(1.375rem, 2.4vw, 2.125rem); white-space: nowrap; }
.m-star { width: 26px; height: 26px; flex: none; background: var(--sun); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- section heads ---------- */
.head { display: grid; justify-items: start; gap: 14px; margin-bottom: clamp(32px, 4vw, 56px); max-width: 44rem; }
.head h2 { font-size: clamp(2.25rem, 4.4vw, 4rem); }
.head > p:last-child:not(.chip) { font-size: 1.25rem; color: var(--ink-2); }
.head--center { justify-items: center; text-align: center; margin-inline: auto; }

/* ---------- hours caterpillar ---------- */
.hours { padding-block: var(--section) calc(var(--section) * .6); }
.leafbed {
  position: relative; padding: 70px clamp(16px, 3vw, 48px) 56px; border-radius: 64px 120px 64px 120px;
  background: radial-gradient(80% 120% at 20% 0%, #9fe08a, transparent 60%), linear-gradient(160deg, #7ccf62, #4aa83a);
  box-shadow: var(--clay); overflow: hidden;
}
.leafbed::before { content: ""; position: absolute; left: 6%; right: 6%; top: 50%; height: 4px; border-radius: 4px; background: rgb(255 255 255 / .35); transform: rotate(-2deg); }
.cat { position: relative; display: flex; align-items: center; justify-content: center; }
.seg, .cat__head { position: relative; flex: none; border-radius: 50%; }
.seg {
  --c1: #c8f0a8; --c2: #8ad86b; --c3: #4ea83c; --size: clamp(112px, 10.4vw, 148px);
  width: var(--size); height: var(--size); margin-left: -22px;
  display: grid; place-content: center; text-align: center; gap: 2px; color: var(--ink);
  background: radial-gradient(circle at 32% 26%, rgb(255 255 255 / .85) 0 9%, transparent 10%), radial-gradient(circle at 38% 32%, var(--c1), var(--c2) 48%, var(--c3) 100%);
  box-shadow: inset -8px -12px 18px rgb(0 0 0 / .12), 0 18px 24px -14px rgb(0 0 0 / .45);
  animation: crawl 1.6s ease-in-out infinite;
}
.seg:nth-child(odd) { --c1: #e6f9b6; --c2: #b5e35a; --c3: #78b82f; }
.seg::after { content: ""; position: absolute; left: 50%; bottom: -12px; width: 34px; height: 18px; margin-left: -17px; border-radius: 0 0 18px 18px; background: var(--ink); z-index: -1; }
.seg b { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.375rem, 1.6vw, 1.75rem); line-height: 1; }
.seg span { font-size: .875rem; font-weight: 700; line-height: 1.2; }
.seg--sun { --c1: #ffffff; --c2: #f4f0ff; --c3: #cdbbe9; }
.seg.is-today { --c1: #fff6c4; --c2: #ffd43b; --c3: #f0a400; z-index: 5; scale: 1.14; box-shadow: inset -8px -12px 18px rgb(0 0 0 / .1), 0 0 0 6px var(--white), 0 0 40px 10px rgb(255 214 60 / .75), 0 18px 24px -14px rgb(0 0 0 / .45); }
.seg.is-today b::after { content: "Today"; display: block; margin: 4px auto 0; width: max-content; padding: 2px 10px; border-radius: 99px; background: var(--grape); color: var(--white); font-family: var(--font-body); font-size: .75rem; font-weight: 800; }
.seg:nth-child(2) { animation-delay: -.15s; } .seg:nth-child(3) { animation-delay: -.3s; } .seg:nth-child(4) { animation-delay: -.45s; }
.seg:nth-child(5) { animation-delay: -.6s; } .seg:nth-child(6) { animation-delay: -.75s; } .seg:nth-child(7) { animation-delay: -.9s; } .seg:nth-child(8) { animation-delay: -1.05s; }
@keyframes crawl { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.cat__head {
  --size: clamp(150px, 13.5vw, 190px);
  width: var(--size); height: var(--size); z-index: 6; translate: 0 -28px;
  background: radial-gradient(circle at 30% 24%, rgb(255 255 255 / .7) 0 8%, transparent 9%), radial-gradient(circle at 38% 32%, #b98aea, var(--grape) 55%, var(--grape-deep));
  box-shadow: inset -10px -14px 20px rgb(0 0 0 / .18), 0 22px 30px -16px rgb(0 0 0 / .5);
  animation: nod 3.2s ease-in-out infinite;
}
.cat__head::before, .cat__head::after { content: ""; position: absolute; top: -42px; width: 8px; height: 56px; border-radius: 6px; background: var(--ink); transform-origin: bottom center; }
.cat__head::before { left: 30%; transform: rotate(-22deg); }
.cat__head::after { right: 30%; transform: rotate(22deg); }
.cat__head .eye { position: absolute; top: 34%; width: 24%; height: 26%; border-radius: 50%; background: radial-gradient(circle at 60% 40%, var(--white) 0 14%, var(--ink) 15% 52%, var(--white) 53%); animation: blink 5s infinite; }
.cat__head .eye:nth-child(1) { left: 22%; } .cat__head .eye:nth-child(2) { right: 22%; }
.cat__head .cheek { position: absolute; top: 60%; width: 16%; height: 10%; border-radius: 50%; background: var(--coral); opacity: .8; }
.cat__head .cheek:nth-child(3) { left: 12%; } .cat__head .cheek:nth-child(4) { right: 12%; }
.cat__head .smile { position: absolute; left: 50%; top: 62%; width: 30%; height: 16%; margin-left: -15%; border: 5px solid var(--ink); border-top: 0; border-radius: 0 0 40px 40px; }
@keyframes nod { 50% { transform: rotate(-6deg); } }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }

/* ---------- programmes bento ---------- */
.programmes { padding-block: calc(var(--section) * .6) var(--section); }
.pgrid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.card { border-radius: var(--r-xl); padding: clamp(22px, 2.4vw, 34px); box-shadow: var(--clay); display: flex; flex-direction: column; gap: 12px; transition: transform .35s var(--ease); }
.card:hover { transform: translateY(-5px) rotate(.4deg); }
.card h3 { font-size: clamp(1.75rem, 2.2vw, 2.25rem); }
.card p { color: var(--ink-2); }
.card--leaf { grid-column: span 5; background: var(--leaf-soft); }
.card--sun { grid-column: span 4; background: var(--cream-2); }
.card--grape { grid-column: span 3; grid-row: span 2; background: var(--grape); color: var(--white); justify-content: flex-end; background-image: radial-gradient(circle at 80% 15%, rgb(255 255 255 / .18) 0 60px, transparent 61px), radial-gradient(circle at 10% 40%, rgb(255 205 46 / .35) 0 34px, transparent 35px); }
.card--grape h3 { color: var(--white); }
.card--grape p { color: rgb(255 255 255 / .88); }
.card--grape .btn { align-self: flex-start; margin-top: 8px; }
.card--todo { grid-column: span 9; background: transparent; box-shadow: none; border: 3px dashed rgb(42 23 64 / .3); flex-direction: row; align-items: baseline; flex-wrap: wrap; gap: 8px 20px; }
.card--todo h3 { font-size: 1.5rem; }
.polaroid { background: var(--white); padding: 10px 10px 34px; border-radius: 10px; box-shadow: 0 18px 30px -16px rgb(42 23 64 / .5); margin-bottom: 10px; transition: transform .4s var(--ease); }
.polaroid img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; }
.polaroid--l { transform: rotate(-3deg); }
.polaroid--r { transform: rotate(3deg); }
.card:hover .polaroid { transform: rotate(0) scale(1.03); }

/* ---------- find us (grape band with waves) ---------- */
.find { position: relative; background: var(--grape); color: var(--white); padding-block: calc(var(--section) * .9); margin-block: 60px; }
.wave { position: absolute; left: 0; right: 0; height: 60px; background: var(--grape); }
.wave--top { top: -59px; -webkit-mask: radial-gradient(40px 34px at 50% 100%, #000 98%, #0000) 0 0 / 80px 60px repeat-x; mask: radial-gradient(40px 34px at 50% 100%, #000 98%, #0000) 0 0 / 80px 60px repeat-x; }
.wave--bottom { bottom: -59px; -webkit-mask: radial-gradient(40px 34px at 50% 0, #000 98%, #0000) 0 0 / 80px 60px repeat-x; mask: radial-gradient(40px 34px at 50% 0, #000 98%, #0000) 0 0 / 80px 60px repeat-x; }
.find__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.find__copy { display: grid; justify-items: start; gap: 20px; }
.find__copy h2 { font-size: clamp(2.25rem, 4.2vw, 3.75rem); color: var(--white); }
.find__copy address { font-size: 1.25rem; line-height: 1.55; color: rgb(255 255 255 / .92); }
.find__map { position: relative; border-radius: 52% 48% 44% 56% / 40% 46% 54% 60%; overflow: hidden; aspect-ratio: 1.15; background: var(--grape-soft); box-shadow: 0 0 0 10px rgb(255 255 255 / .16), 0 30px 50px -24px rgb(0 0 0 / .6); }
.find__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pin { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -40px 0 0 -17px; border-radius: 50% 50% 50% 0; background: var(--coral); transform: rotate(-45deg); box-shadow: inset 0 0 0 9px var(--white); pointer-events: none; animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 50% { translate: 0 -10px; } }

/* ---------- contact ---------- */
.contact { padding-block: var(--section); }
.cgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.ctile { display: grid; gap: 6px; padding: 30px 32px; min-height: 160px; align-content: end; border-radius: var(--r-xl); text-decoration: none; box-shadow: var(--clay); transition: transform .35s var(--ease), box-shadow .35s var(--ease-out); }
a.ctile:hover { transform: translateY(-5px) rotate(-.6deg); box-shadow: var(--clay-hover); }
a.ctile:active { transform: translateY(2px); }
.ctile span { font-weight: 700; opacity: .85; }
.ctile strong { font-family: var(--font-display); font-weight: 650; font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.05; }
.ctile--call { background: var(--sun); }
.ctile--wa { background: var(--wa); color: var(--white); }
.ctile--todo { background: transparent; box-shadow: none; border: 3px dashed rgb(42 23 64 / .3); }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: var(--cream); padding-block: 48px 40px; border-radius: 48px 48px 0 0; }
.foot__inner { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.foot__inner img { width: 120px; background: var(--white); border-radius: 24px; padding: 8px; }
.foot__text { display: grid; gap: 4px; }
.foot__name { font-family: var(--font-display); font-weight: 650; font-size: 1.375rem; }
.foot__credit { margin-left: auto; }
.foot a:hover { color: var(--sun); }
.foot :focus-visible { outline-color: var(--sun); }

/* ---------- fixed bottom: dock + note ---------- */
.bottom { position: fixed; right: 16px; bottom: 14px; z-index: 200; display: grid; gap: 10px; max-width: 380px; }
.dock { display: none; }
.demo-note { padding: 8px 14px; font-size: .8125rem; line-height: 1.35; background: rgb(255 255 255 / .85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--ink); border-radius: 16px; box-shadow: inset 0 0 0 1.5px rgb(42 23 64 / .15), 0 10px 24px -14px rgb(42 23 64 / .5); }

/* ---------- reveal on scroll (JS adds .in; content stays visible without JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(40px) scale(.97); transition: opacity .6s var(--ease-out), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .pgrid .reveal:nth-child(2) { transition-delay: .08s; } .js .pgrid .reveal:nth-child(3) { transition-delay: .16s; } .js .pgrid .reveal:nth-child(4) { transition-delay: .24s; }
.js .cat { transform: translateX(30%); opacity: 0; transition: transform 1.6s var(--ease-out), opacity .5s; }
.js .cat.in { transform: none; opacity: 1; }

/* ---------- tablet ---------- */
@media (max-width: 64rem) {
  .nav__links { display: none; }
  .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: auto; }
  .tile--intro { grid-column: 1 / -1; grid-row: auto; }
  .tile--photo { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16 / 9; }
  .tile--status, .tile--rating, .tile--where { grid-column: span 2; min-height: 170px; }
  .card--leaf, .card--sun { grid-column: span 6; }
  .card--grape { grid-column: span 12; grid-row: auto; }
  .card--todo { grid-column: span 12; }
  .find__grid { grid-template-columns: minmax(0, 1fr); }
  .find__map { aspect-ratio: 1.3; }
  .cgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ctile--todo { grid-column: 1 / -1; min-height: 0; }
  .leafbed { overflow-x: auto; padding-inline: 0; scroll-snap-type: x proximity; scrollbar-width: none; }
  .cat { justify-content: flex-start; width: max-content; padding-inline: 40px 48px; }
  .seg { scroll-snap-align: center; }
}

/* ---------- phone ---------- */
@media (max-width: 40rem) {
  body { padding-bottom: 150px; }
  .nav { top: 8px; margin-top: 8px; }
  .nav__brand img { width: 58px; height: 44px; }
  .hero { padding-top: 18px; }
  .tile--intro { padding: 28px 22px; }
  .actions .btn { flex: 1 1 100%; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .tile--photo { aspect-ratio: 4 / 3; }
  .tile--status, .tile--rating { grid-column: span 1; }
  .tile--where { grid-column: 1 / -1; min-height: 130px; }
  .tile--status strong { font-size: 1.0625rem; }
  .card--leaf, .card--sun { grid-column: span 12; }
  .card--grape { background-image: radial-gradient(circle at 96% 8%, rgb(255 255 255 / .18) 0 44px, transparent 45px); }
  .cgrid { grid-template-columns: minmax(0, 1fr); }
  .ctile { min-height: 120px; }
  .foot__credit { margin-left: 0; }
  .bottom { left: 10px; right: 10px; bottom: 8px; max-width: none; }
  .dock { display: flex; gap: 10px; transition: transform .3s var(--ease-out), opacity .3s; }
  .js .dock { opacity: 0; transform: translateY(16px); pointer-events: none; }
  .js .dock.is-shown { opacity: 1; transform: none; pointer-events: auto; }
  .dock .btn { flex: 1; }
  .demo-note { font-size: .6875rem; padding: 5px 10px; border-radius: 12px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
