/* Busy Bee Studio: brand yellow, navy and warm white. No framework, no build step. */
@font-face { font-family: 'Bricolage Grotesque'; src: url(/fonts/display.woff2) format('woff2'); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url(/fonts/body.woff2) format('woff2'); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;
  --yellow: #F7D011; --yellow-2: #FFE46B; --yellow-soft: #FFF7CF; --navy: #181833; --navy-2: #26264F; --navy-3: #34346A;
  --paper: #FFFDF6; --white: #fff; --muted: #4F4F73; --line: #E6E1CC; --ok: #0F7A4A; --err: #B42318; --wa: #1FAF5A;
  --radius: 18px; --radius-lg: 28px; --pad: clamp(1rem, 4vw, 2rem); --max: 1180px;
  --font-display: 'Bricolage Grotesque', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', 'Hiragino Sans GB', system-ui, sans-serif;
  --font-body: 'Instrument Sans', system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', 'Segoe UI', sans-serif;
  --shadow-pop: 6px 6px 0 var(--navy);
  --header-h: 4.5rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-block-start: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font: 400 1.0625rem/1.65 var(--font-body); color: var(--navy); background: var(--paper); text-rendering: optimizeLegibility; overflow-x: clip; }
body[data-lang="zh"] { line-height: 1.8; letter-spacing: 0.01em; }
img, svg, picture { display: block; max-inline-size: 100%; }
img { block-size: auto; }
a { color: inherit; text-decoration-thickness: 0.08em; text-underline-offset: 0.2em; }
a:hover { text-decoration-color: var(--yellow); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -0.025em; margin: 0 0 0.5em; font-weight: 700; text-wrap: balance; }
body[data-lang="zh"] :is(h1, h2, h3, h4) { line-height: 1.25; letter-spacing: 0; }
h1 { font-size: clamp(2.4rem, 1.2rem + 5vw, 5rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 1.2rem + 2.8vw, 3.2rem); }
h3 { font-size: clamp(1.2rem, 1rem + 0.7vw, 1.5rem); letter-spacing: -0.015em; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
mark { background: linear-gradient(transparent 62%, var(--yellow) 62%); color: inherit; padding-inline: 0.06em; white-space: nowrap; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 4px; }
.theme-dark :focus-visible, .site-footer :focus-visible { outline-color: var(--yellow); }
.sr { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 1rem; inset-block-start: -4rem; z-index: 100; background: var(--navy); color: #fff; padding: 0.7rem 1.1rem; border-radius: 10px; }
.skip:focus { inset-block-start: 1rem; }
main:focus { outline: none; }
.wrap { inline-size: min(100% - 2 * var(--pad), var(--max)); margin-inline: auto; }
.center { text-align: center; margin-block-start: 2.5rem; }
.fine { font-size: 0.92rem; color: var(--muted); }
.i { inline-size: 1.25em; block-size: 1.25em; flex: none; }
.i-sm { inline-size: 1em; block-size: 1em; }
.i-lg { inline-size: 1.6em; block-size: 1.6em; }

/* ---------- Buttons ---------- */
.btn { --bg: var(--yellow); --fg: var(--navy); display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem; min-block-size: 3.1rem; padding: 0.7rem 1.5rem; font: 700 1rem/1.2 var(--font-body); color: var(--fg); background: var(--bg); border: 2px solid var(--navy); border-radius: 999px; text-decoration: none; box-shadow: 4px 4px 0 var(--navy); transition: translate 0.15s, box-shadow 0.15s, background-color 0.15s; cursor: pointer; }
.btn:hover { translate: 2px 2px; box-shadow: 2px 2px 0 var(--navy); }
.btn:active { translate: 4px 4px; box-shadow: 0 0 0 var(--navy); }
.btn-ghost { --bg: var(--white); }
.btn-sm { min-block-size: 2.6rem; padding: 0.45rem 1.1rem; font-size: 0.95rem; box-shadow: 3px 3px 0 var(--navy); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem 1.1rem; margin-block-start: 1.75rem; }
.theme-yellow .btn-primary, .sec-hero .btn-primary { --bg: var(--navy); --fg: #fff; box-shadow: 4px 4px 0 var(--white); }
.theme-yellow .btn-primary:hover, .sec-hero .btn-primary:hover { box-shadow: 2px 2px 0 var(--white); }
.theme-dark .btn { border-color: var(--yellow); box-shadow: 4px 4px 0 var(--yellow); }
.theme-dark .btn-ghost { --bg: transparent; --fg: #fff; }
.theme-dark .btn:hover { box-shadow: 2px 2px 0 var(--yellow); }
.more { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 700; text-decoration: none; color: inherit; }
.more .i { transition: translate 0.2s; }
a:hover > .more .i, .more:hover .i { translate: 3px 0; }

/* ---------- Header ---------- */
.site-header { position: sticky; inset-block-start: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-block-end: 1px solid transparent; transition: border-color 0.2s, box-shadow 0.2s; }
.site-header.scrolled { border-block-end-color: var(--line); box-shadow: 0 8px 24px -16px rgba(24, 24, 51, 0.4); }
.header-inner { inline-size: min(100% - 2 * var(--pad), var(--max)); margin-inline: auto; min-block-size: var(--header-h); display: flex; align-items: center; gap: 1rem; justify-content: space-between; }
.header-inner > * { flex-shrink: 0; white-space: nowrap; }
.site-logo { display: inline-flex; align-items: center; text-decoration: none; }
.site-logo img { inline-size: auto; block-size: 2.25rem; }
.site-nav { display: contents; }
.menu-button { display: inline-flex; align-items: center; gap: 0.5rem; font: 700 1rem var(--font-body); color: var(--navy); background: var(--yellow); border: 2px solid var(--navy); border-radius: 999px; padding: 0.5rem 1rem; min-block-size: 2.75rem; cursor: pointer; anchor-name: --menu-button; margin-inline-start: auto; }
.header-actions { display: flex; align-items: center; gap: 0.9rem; }
.header-actions .lang-switch, .header-cta { display: none; }
.site-menu { margin: 0; padding: 0.75rem; list-style: none; background: var(--paper); color: var(--navy); border: 2px solid var(--navy); border-radius: var(--radius); box-shadow: var(--shadow-pop); position: fixed; inset: auto; inset-block-start: 4.75rem; inset-block-start: anchor(--menu-button bottom); inset-inline-end: 1rem; inline-size: min(88dvw, 24rem); max-inline-size: calc(100dvw - 2rem); block-size: fit-content; max-block-size: calc(100dvh - 6rem); margin-block-start: 0.5rem; overflow: auto; }
.site-menu a:not(.btn), .dropdown-trigger { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; inline-size: 100%; padding: 0.8rem 0.9rem; border-radius: 12px; font: 600 1.05rem var(--font-body); color: inherit; background: none; border: 0; text-decoration: none; cursor: pointer; text-align: start; }
.site-menu a:not(.btn):hover, .dropdown-trigger:hover { background: var(--yellow-soft); }
.site-menu [aria-current="page"], .dropdown-trigger[data-current] { background: var(--yellow); }
.dropdown-list { padding-inline-start: 0.75rem; }
.dropdown-list a { font-weight: 500; font-size: 1rem; }
.dropdown-trigger[aria-expanded="true"] .i { rotate: 180deg; }
/* One drop-down today. Give each further one its own anchor name. */
.dropdown-trigger { anchor-name: --dd-services; }
.menu-cta { padding: 0.5rem 0.25rem 0.25rem; }
.menu-cta .btn { inline-size: 100%; }
.menu-lang { padding: 0.5rem 0.9rem 0.25rem; }
.site-menu::backdrop { background: rgba(24, 24, 51, 0.35); }
.lang-switch { display: inline-flex; gap: 0.15rem; padding: 0.2rem; border: 2px solid var(--navy); border-radius: 999px; background: var(--white); }
.lang-switch a { font: 700 0.85rem var(--font-body); text-decoration: none; padding: 0.3rem 0.7rem; border-radius: 999px; min-inline-size: 2.4rem; text-align: center; }
.lang-switch a[aria-current="true"] { background: var(--navy); color: #fff; }
.lang-switch a:not([aria-current]):hover { background: var(--yellow); }

/* Wide: the whole row fits, so the menu becomes an inline navigation */
.site-header.is-wide .menu-button { display: none; }
.site-header.is-wide .site-nav { display: block; margin-inline: auto; }
.site-header.is-wide .header-actions .lang-switch, .site-header.is-wide .header-cta { display: inline-flex; }
.site-header.is-wide .menu-lang, .site-header.is-wide .menu-cta { display: none; }
.site-header.is-wide .site-menu { position: static; display: flex; align-items: center; gap: 0.15rem; inline-size: auto; max-inline-size: none; block-size: auto; max-block-size: none; overflow: visible; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
.site-header.is-wide .site-menu::backdrop { display: none; }
.site-header.is-wide .site-menu > li > a:not(.btn), .site-header.is-wide .dropdown-trigger { inline-size: auto; padding: 0.55rem 0.8rem; font-size: 1rem; }
.site-header.is-wide .site-menu [aria-current="page"], .site-header.is-wide .dropdown-trigger[data-current] { background: transparent; box-shadow: inset 0 -3px 0 var(--yellow); border-radius: 0; }
.site-header.is-wide .dropdown-list[popover] { position: absolute; position-anchor: --dd-services; position-area: block-end span-inline-end; position-try-fallbacks: flip-block, flip-inline; inset: auto; block-size: auto; inline-size: max-content; min-inline-size: 15rem; margin-block-start: 0.5rem; overflow: visible; padding: 0.5rem; background: var(--paper); border: 2px solid var(--navy); border-radius: var(--radius); box-shadow: var(--shadow-pop); }
.site-header.is-wide .dropdown-list::before { content: ''; position: absolute; inset-inline: 0; inset-block-end: 100%; block-size: 0.5rem; }
.site-header.is-wide .dropdown-list:not(:is(:popover-open, .\:popover-open)) { display: none; }
.site-header.is-wide .dropdown-list:is(:popover-open, .\:popover-open) { display: grid; }
.site-header.is-wide .dropdown-list a { padding-inline: 0.8rem; }
.site-header.is-measuring * { transition: none !important; }
@media (prefers-reduced-motion: no-preference) {
  .site-menu:popover-open { animation: menu-in 0.22s ease-out; }
  .dropdown-list:popover-open { animation: menu-in 0.18s ease-out; }
  @keyframes menu-in { from { opacity: 0; translate: 0 -8px; } }
}

/* ---------- Sections ---------- */
.sec { padding-block: clamp(3.5rem, 8vw, 6.5rem); position: relative; }
.sec-tight { padding-block: clamp(2rem, 5vw, 3.5rem); }
.theme-soft { background: var(--yellow-soft); }
.theme-yellow { background: var(--yellow); }
.theme-dark { background: var(--navy); color: #fff; }
.theme-dark mark { background: linear-gradient(transparent 62%, var(--yellow) 62%); color: #fff; }
.sec-head { max-inline-size: 48rem; margin-block-end: clamp(2rem, 4vw, 3.25rem); }
.sec-head .lead { margin-block-end: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 0.6rem; font: 700 0.8rem/1 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; margin-block-end: 1rem; }
.eyebrow::before { content: ''; inline-size: 0.8rem; block-size: 0.9rem; background: var(--yellow); border: 2px solid var(--navy); clip-path: none; border-radius: 3px; rotate: 30deg; }
.sec-hero .eyebrow::before, .theme-yellow .eyebrow::before { background: var(--navy); border-color: var(--navy); }
.theme-dark .eyebrow::before { border-color: var(--yellow); }
.lead { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem); line-height: 1.55; color: color-mix(in srgb, currentColor 82%, transparent); max-inline-size: 38rem; }

/* Hero */
.sec-hero { background: var(--yellow); padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 6rem); overflow: clip; isolation: isolate; }
.sec-hero::before, .sec-hero::after { content: ''; position: absolute; z-index: -1; background: rgba(24, 24, 51, 0.045); clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%); }
.sec-hero::before { inline-size: clamp(14rem, 34vw, 30rem); aspect-ratio: 1; inset-block-start: -12%; inset-inline-start: -6%; }
.sec-hero::after { inline-size: clamp(10rem, 24vw, 22rem); aspect-ratio: 1; inset-block-end: -14%; inset-inline-end: 8%; background: rgba(255, 255, 255, 0.28); }
.hero-grid { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.hero-copy h1 { margin-block-end: 0.35em; }
.sec-hero mark { background: linear-gradient(transparent 68%, #fff 68%); }
.hero-media { justify-self: center; inline-size: min(100%, 36rem); }
@media (max-width: 55.99rem) { .hero-media:not(.char) { inline-size: min(86%, 24rem); } }
.hero-media img { inline-size: 100%; }
.badges { display: flex; flex-wrap: wrap; gap: 0.6rem 1.25rem; margin-block-start: 1.75rem; font-weight: 600; font-size: 0.95rem; }
.badges li { display: inline-flex; align-items: center; gap: 0.4rem; }
.badges .i { padding: 0.2em; background: var(--navy); color: var(--yellow); border-radius: 50%; inline-size: 1.3em; block-size: 1.3em; }
.hero-page .hero-copy h1 { font-size: clamp(2.2rem, 1.1rem + 4vw, 4rem); }
.hero-post .hero-copy h1 { font-size: clamp(2rem, 1rem + 3.4vw, 3.4rem); }
.hero-post .hero-media img { border-radius: var(--radius); }
@media (min-width: 56rem) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; } .hero-grid:not(:has(.hero-media, .hero-art)) { grid-template-columns: minmax(0, 52rem); } }
.hero-home { padding-block: clamp(3rem, 7vw, 6rem) clamp(3.5rem, 8vw, 7rem); }
.hero-home .hero-copy h1 { font-size: clamp(2.5rem, 1.2rem + 4.6vw, 4.9rem); }

/* Hero with a stock photo and the page's character standing on it */
.hero-media.duo { position: relative; inline-size: min(100%, 34rem); padding: 0 0.6rem 2.2rem 2.4rem; justify-self: center; }
.hero-photo img { inline-size: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 2px solid var(--navy); border-radius: var(--radius-lg); box-shadow: 8px 8px 0 #fff; background: var(--yellow-soft); }
.hero-char { position: absolute; inset-inline-start: 0; inset-block-end: 0; inline-size: 38%; pointer-events: none; }
.hero-char img { inline-size: 100%; max-block-size: none; block-size: auto; filter: none; }
.hero-char.framed { inline-size: 46%; }
.hero-char.framed img { border: 2px solid var(--navy); border-radius: 14px; box-shadow: 4px 4px 0 var(--navy); }
@media (prefers-reduced-motion: no-preference) { .hero-char:not(.framed) img { animation: float 6s ease-in-out infinite; } }
@media (max-width: 55.99rem) { .hero-media.duo { inline-size: min(100%, 28rem); } .hero-char { inline-size: 34%; } }

/* Breadcrumbs sit at the top of each page's hero */
.crumbs { margin-block-end: 1.25rem; font-size: 0.9rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.15rem 0.5rem; }
.crumbs li { display: inline-flex; align-items: center; gap: 0.5rem; }
.crumbs li + li::before { content: '/'; opacity: 0.5; }
.crumbs a { text-decoration: none; font-weight: 600; } .crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { opacity: 0.75; }

/* Character illustrations: each page keeps its own Busy Bee */
.hero-media.char { inline-size: min(100%, 24rem); }
.hero-media.char img { inline-size: auto; max-inline-size: 100%; max-block-size: min(30rem, 62vh); margin-inline: auto; }

/* Beehive backgrounds: a honeycomb that drifts slowly as the page scrolls (soft and dark sections) */
.sec.theme-soft:not(.sec-hscroll), .sec.theme-dark:not(.sec-hscroll) { isolation: isolate; overflow: clip; }
.sec.theme-soft:not(.sec-hscroll)::before, .sec.theme-dark:not(.sec-hscroll)::before { content: ''; position: absolute; inset: -14% 0; z-index: -1; pointer-events: none; background: url(/img/hive-light.svg) 0 0 / 56px 100px; }
.sec.theme-dark:not(.sec-hscroll)::before { background-image: url(/img/hive-dark.svg); }

/* Why partner with a bee: sideways cards. Plain sideways scroll by default; pinned and driven by the page scroll when site.js turns it on */
.sec-hscroll { padding-block: 0; position: relative; }
.hs-pin { padding-block: clamp(3rem, 7vw, 5rem); }
.hs-head { position: relative; }
.hs-head h2, .hs-head .lead { max-inline-size: 40rem; }
.hs-bee { position: absolute; inset-block-start: 0; inset-inline-end: var(--pad); inline-size: 5.5rem; block-size: auto; translate: 0 calc(var(--bob, 0) * -26px); }
.hs-viewport { overflow-x: auto; scroll-snap-type: x mandatory; margin-block-start: 2.5rem; padding-block: 0.5rem 1rem; padding-inline: max(var(--pad), calc((100% - var(--max)) / 2)); scroll-padding-inline: var(--pad); }
.hs-track { display: flex; gap: 1.25rem; inline-size: max-content; }
.hs-card { position: relative; flex: 0 0 min(80vw, 20rem); scroll-snap-align: start; min-block-size: 16rem; padding: 1.6rem; background: var(--navy-2); border: 2px solid var(--yellow); border-radius: var(--radius-lg); }
.hs-n { position: absolute; inset-block-start: 0.9rem; inset-inline-end: 1.2rem; font: 800 3rem/1 var(--font-display); color: rgba(247, 208, 17, 0.22); }
.hs-card p { color: rgba(255, 255, 255, 0.8); margin: 0; }
.hs-on .hs-pin { position: sticky; inset-block-start: var(--header-h); block-size: calc(100vh - var(--header-h)); box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding-block: 0; }
.hs-on .hs-viewport { overflow: visible; scroll-snap-type: none; }
.hs-on .hs-track { translate: calc(var(--hs-p, 0) * var(--hs-dist, 0px) * -1) 0; will-change: translate; }

/* Marquee of client names */
.sec-marquee { background: var(--navy); color: #fff; padding-block: 1.1rem; overflow: hidden; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; inline-size: max-content; gap: 0; }
.marquee-track li { font: 700 1.15rem var(--font-display); white-space: nowrap; padding-inline: 1.4rem; display: inline-flex; align-items: center; gap: 2.8rem; }
.marquee-track li::after { content: '✦'; color: var(--yellow); font-size: 0.9em; }
@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: marquee 48s linear infinite; }
  .marquee:hover .marquee-track { animation-play-state: paused; }
  @keyframes marquee { to { translate: -50% 0; } }
}
@media (prefers-reduced-motion: reduce) { .marquee-track { flex-wrap: wrap; inline-size: auto; justify-content: center; } .marquee-track li[aria-hidden] { display: none; } }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: 1.25rem; }
.stats li { background: var(--white); border: 2px solid var(--navy); border-radius: var(--radius); padding: 1.5rem; box-shadow: 4px 4px 0 var(--yellow); }
.stats strong { display: block; font: 800 clamp(2.4rem, 2rem + 2vw, 3.6rem)/1 var(--font-display); letter-spacing: -0.03em; }
.stats span { display: block; margin-block-start: 0.4rem; color: var(--muted); font-weight: 500; }

/* Cards */
.cards { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 36rem) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62rem) { .cards.cols-3 { grid-template-columns: repeat(3, 1fr); } .cards.cols-4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--white); border: 2px solid var(--navy); border-radius: var(--radius); display: flex; flex-direction: column; transition: translate 0.2s, box-shadow 0.2s; position: relative; }
.card-link, .card-body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem; }
.card-link { text-decoration: none; }
.card:has(.card-link):hover { translate: -3px -3px; box-shadow: 6px 6px 0 var(--navy); }
.card:has(.card-link:focus-visible) { box-shadow: 6px 6px 0 var(--navy); }
.card h3 { margin-block-end: 0.4rem; }
.card p { color: var(--muted); margin-block-end: 0.9rem; }
.card .more { margin-block-start: auto; color: var(--navy); }
.card-icon .i { inline-size: 1.6rem; block-size: 1.6rem; }
.card-icon { display: grid; place-items: center; inline-size: 3.25rem; block-size: 3.25rem; margin-block-end: 1.1rem; background: var(--yellow); border: 2px solid var(--navy); border-radius: 14px; rotate: -4deg; transition: rotate 0.25s; }
.card:hover .card-icon { rotate: 4deg; }
.theme-dark .card { background: var(--navy-2); border-color: var(--yellow); }
.theme-dark .card:has(.card-link):hover { box-shadow: 6px 6px 0 var(--yellow); }
.theme-dark .card p { color: rgba(255, 255, 255, 0.78); }
.theme-dark .card .more { color: var(--yellow); }

/* Split (text + picture) */
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 56rem) { .split { grid-template-columns: 1fr 1fr; } .split.reverse .split-media { order: -1; } }
.split-media { padding: 0 10px 10px 0; }
.split-media.photo img { aspect-ratio: 4 / 3; object-fit: cover; }
.split-media.char { max-inline-size: 16rem; margin-inline: auto; padding: 0; }
.split-media.char img { border: 0; box-shadow: none; border-radius: 0; }
.split-media img { border-radius: var(--radius-lg); border: 2px solid var(--navy); box-shadow: 8px 8px 0 var(--yellow); inline-size: 100%; }
.ticks { display: grid; gap: 0.7rem; margin-block: 1.25rem; }
.ticks li { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: start; }
.ticks .i { margin-block-start: 0.2em; padding: 0.22em; background: var(--yellow); color: var(--navy); border-radius: 50%; inline-size: 1.35em; block-size: 1.35em; }
.theme-dark .ticks .i { background: var(--yellow); }

/* Steps */
.steps { display: grid; gap: 1.25rem; counter-reset: s; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.step { padding: 1.5rem; border-radius: var(--radius); background: var(--white); border: 2px solid var(--navy); }
.step-n { display: inline-grid; place-items: center; min-inline-size: 3rem; block-size: 3rem; padding-inline: 0.6rem; margin-block-end: 1rem; font: 800 1.25rem var(--font-display); background: var(--yellow); border: 2px solid var(--navy); border-radius: 50%; }
.step p { color: var(--muted); margin: 0; }
.theme-dark .step { background: var(--navy-2); border-color: var(--yellow); } .theme-dark .step p { color: rgba(255, 255, 255, 0.78); }

/* Prose */
.prose { font-size: 1.1rem; }
.prose.narrow { max-inline-size: 46rem; }
.prose h2 { margin-block: 2.2em 0.6em; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); }
.prose h3 { margin-block: 1.8em 0.5em; }
.prose :is(ul, ol) { padding-inline-start: 1.4rem; margin-block-end: 1.2em; list-style: revert; display: grid; gap: 0.45rem; }
.prose li::marker { color: var(--navy); font-weight: 700; }
.prose a { text-decoration-color: var(--yellow); text-decoration-thickness: 0.18em; }
.prose blockquote { margin: 1.5em 0; padding: 1rem 1.4rem; background: var(--yellow-soft); border-radius: var(--radius); font-weight: 500; }
.prose img { border-radius: var(--radius); margin-block: 1.5em; }
.article-grid { display: grid; gap: 2.5rem; }
@media (min-width: 64rem) { .article-grid { grid-template-columns: minmax(0, 46rem) 16rem; justify-content: center; } .toc { position: sticky; inset-block-start: calc(var(--header-h) + 1.5rem); align-self: start; } }
.toc { font-size: 0.95rem; } .toc-title { font-weight: 700; margin-block-end: 0.6rem; }
.toc ol { display: grid; gap: 0.4rem; border-inline-start: 3px solid var(--yellow); padding-inline-start: 1rem; }
.toc a { text-decoration: none; color: var(--muted); } .toc a:hover { color: var(--navy); text-decoration: underline; }

/* FAQ accordion (native details) */
.accordion { display: grid; gap: 0.75rem; max-inline-size: 52rem; }
.accordion details { background: var(--white); border: 2px solid var(--navy); border-radius: var(--radius); }
.accordion summary { list-style: none; display: flex; align-items: center; gap: 0.75rem; padding: 1.1rem 1.35rem; cursor: pointer; font: 700 1.1rem/1.35 var(--font-display); }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::before { content: ''; inline-size: 1.1rem; block-size: 1.1rem; flex: none; background: var(--navy); mask: url(/img/icons.svg#chevron-down) no-repeat center / contain; -webkit-mask: url(/img/icons.svg#chevron-down) no-repeat center / contain; rotate: -90deg; }
.accordion summary:dir(rtl)::before { rotate: 90deg; }
.accordion details[open] > summary::before { rotate: 0deg; }
.accordion details[open] { box-shadow: 5px 5px 0 var(--yellow); }
.accordion .answer { padding: 0 1.35rem 1.2rem 3.2rem; color: var(--muted); }
.accordion .answer p:last-child { margin: 0; }
@media (prefers-reduced-motion: no-preference) {
  .accordion summary::before { transition: rotate 0.2s; }
  .accordion details::details-content { interpolate-size: allow-keywords; overflow: clip; contain: layout; transition: block-size 0.3s ease-in-out, content-visibility 0.3s allow-discrete; }
  .accordion details:not([open])::details-content { block-size: 0; }
}

/* CTA band */
.cta-band { display: grid; gap: 1.5rem; align-items: center; background: var(--yellow); border: 2px solid var(--navy); border-radius: var(--radius-lg); padding: clamp(1.75rem, 5vw, 3.5rem); box-shadow: 8px 8px 0 var(--navy); }
.cta-band h2 { margin: 0 0 0.3em; font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); } .cta-band p { margin: 0; max-inline-size: 36rem; }
.cta-band .btn-row { margin: 0; } .cta-band .btn-primary { --bg: var(--navy); --fg: #fff; box-shadow: 4px 4px 0 var(--white); }
@media (min-width: 56rem) { .cta-band { grid-template-columns: 1fr auto; } }

/* Tables */
.table-scroll { overflow-x: auto; border: 2px solid var(--navy); border-radius: var(--radius); background: var(--white); }
table { inline-size: 100%; border-collapse: collapse; min-inline-size: 38rem; }
th, td { padding: 0.85rem 1rem; text-align: center; border-block-end: 1px solid var(--line); }
thead th { background: var(--navy); color: #fff; font: 700 0.95rem var(--font-body); }
th[scope="row"], th.first { text-align: start; font-weight: 600; }
tbody th { background: var(--paper); position: sticky; inset-inline-start: 0; }
tbody tr:last-child > * { border-block-end: 0; }
.yes { color: var(--ok); display: inline-grid; } .yes .i { inline-size: 1.2rem; } .no { color: var(--muted); }

/* Pricing */
.plans { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--white); border: 2px solid var(--navy); border-radius: var(--radius-lg); padding: 2rem 1.75rem 1.75rem; }
.plan.popular { background: var(--yellow); box-shadow: 8px 8px 0 var(--navy); }
.plan-badge { position: absolute; inset-block-start: -0.9rem; inset-inline-start: 1.5rem; background: var(--navy); color: var(--yellow); font: 700 0.8rem var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; padding: 0.35rem 0.9rem; border-radius: 999px; }
.plan-kicker { font: 700 0.8rem var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-block-end: 0.5rem; }
.plan.popular .plan-kicker, .plan.popular .plan-blurb, .plan.popular .plan-sub { color: var(--navy); }
.plan h3 { font-size: 1.7rem; margin-block-end: 0.3rem; }
.plan-blurb { color: var(--muted); }
@media (min-width: 62rem) { .plan-blurb { min-block-size: 5em; } }
.plan-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.3rem 0.5rem; margin: 0.5rem 0 0; }
.plan-price .amount { font: 800 clamp(2.4rem, 2rem + 1.4vw, 3.2rem)/1 var(--font-display); letter-spacing: -0.03em; }
.plan-price .per, .plan-price .from { font-weight: 600; color: var(--muted); } .plan.popular .plan-price :is(.per, .from) { color: var(--navy); }
.plan-sub { color: var(--muted); font-size: 0.95rem; margin-block: 0.2rem 1.25rem; min-block-size: 1.5em; }
.plan .ticks { margin-block: 0 1.75rem; font-size: 0.98rem; flex: 1; }
.plan.popular .ticks .i { background: var(--navy); color: var(--yellow); }
.plan .btn { inline-size: 100%; } .plan.popular .btn { --bg: var(--navy); --fg: #fff; box-shadow: 4px 4px 0 var(--white); }
.billing, .filters { display: inline-flex; flex-wrap: wrap; gap: 0.25rem; padding: 0.3rem; border: 2px solid var(--navy); border-radius: 999px; background: var(--white); margin: 0 0 2rem; }
.billing label, .filters label { cursor: pointer; }
.billing input, .filters input { position: absolute; opacity: 0; pointer-events: none; }
.billing span, .filters span { display: inline-block; padding: 0.5rem 1.15rem; border-radius: 999px; font-weight: 700; font-size: 0.95rem; transition: background-color 0.15s; }
.billing label:hover span, .filters label:hover span { background: var(--yellow-soft); }
:is(.billing, .filters) input:checked + span { background: var(--navy); color: #fff; }
:is(.billing, .filters) input:focus-visible + span { outline: 3px solid var(--navy); outline-offset: 2px; }
.has-billing:not(:has(input[value="y"]:checked)) .p-yearly, .has-billing:has(input[value="y"]:checked) .p-monthly { display: none; }
.filters { max-inline-size: 100%; border-radius: 22px; }

/* Portfolio */
.work-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.work { background: var(--white); border: 2px solid var(--navy); border-radius: var(--radius); overflow: hidden; transition: translate 0.2s, box-shadow 0.2s; }
.work:hover { translate: -3px -3px; box-shadow: 6px 6px 0 var(--navy); }
.work a, .work-static { display: flex; flex-direction: column; block-size: 100%; text-decoration: none; }
.work-sq .work-shot { aspect-ratio: 1 / 1; }
.work-sq .work-shot img { object-position: center; }
.work-shot { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--yellow-soft); border-block-end: 2px solid var(--navy); }
.work-shot img { inline-size: 100%; block-size: 100%; object-fit: cover; object-position: top; transition: scale 0.5s; }
.work:hover .work-shot img { scale: 1.04; }
.work-ph { display: grid; place-items: center; block-size: 100%; font: 800 1.6rem var(--font-display); }
.work-meta { display: flex; flex-direction: column; gap: 0.25rem; padding: 1.15rem 1.25rem 1.3rem; flex: 1; }
.work-cat { font: 700 0.75rem var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.work-meta strong { font: 700 1.3rem/1.2 var(--font-display); letter-spacing: -0.015em; }
.work-desc { color: var(--muted); font-size: 0.97rem; margin-block-end: 0.5rem; }
.work .more { margin-block-start: auto; font-size: 0.9rem; word-break: break-all; }
.sec-portfolio:has(input[value="website"]:checked) .work:not([data-cat="website"]), .sec-portfolio:has(input[value="store"]:checked) .work:not([data-cat="store"]), .sec-portfolio:has(input[value="design"]:checked) .work:not([data-cat="design"]), .sec-portfolio:has(input[value="branding"]:checked) .work:not([data-cat="branding"]), .sec-portfolio:has(input[value="social"]:checked) .work:not([data-cat="social"]) { display: none; }

/* Reviews */
.reviews { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.review { background: var(--white); border: 2px solid var(--navy); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; }
.stars { display: flex; gap: 0.15rem; color: #E8A400; margin-block-end: 0.8rem; }
.review blockquote { margin: 0 0 1.2rem; flex: 1; font-size: 1.02rem; }
.review-by { margin: 0; display: grid; font-size: 0.92rem; color: var(--muted); } .review-by strong { color: var(--navy); font-size: 1rem; }

/* Blog cards */
.post-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-block-end: 2px solid var(--navy); border-radius: calc(var(--radius) - 2px) calc(var(--radius) - 2px) 0 0; padding: 0 !important; }
.post-img img { inline-size: 100%; block-size: 100%; object-fit: cover; }
.post-card .card-link { padding: 0; }
.post-card .card-link > :not(.post-img) { margin-inline: 1.5rem; }
.post-date { margin-block-start: 1.25rem; font: 700 0.8rem var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.post-card .more { margin-block-end: 1.5rem; }

/* Contact + forms */
.contact-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (min-width: 56rem) { .contact-grid { grid-template-columns: 0.85fr 1.15fr; } }
.contact-list { display: grid; gap: 1rem; margin-block: 1.5rem; }
.contact-list li { display: grid; grid-template-columns: auto 1fr; gap: 0.9rem; align-items: start; }
.contact-list .i { padding: 0.5rem; inline-size: 2.6rem; block-size: 2.6rem; background: var(--yellow); border: 2px solid var(--navy); border-radius: 12px; }
.contact-list a { text-decoration: none; font-weight: 600; } .contact-list a:hover { text-decoration: underline; }
.form-card { background: var(--white); border: 2px solid var(--navy); border-radius: var(--radius-lg); padding: clamp(1.4rem, 4vw, 2.5rem); box-shadow: 8px 8px 0 var(--yellow); }
.form-card h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); }
.form-wide { max-inline-size: 56rem; margin-inline: auto; }
.fields { display: grid; gap: 1rem; margin-block: 1.25rem; }
@media (min-width: 40rem) { .fields { grid-template-columns: 1fr 1fr; } .field.wide { grid-column: 1 / -1; } }
.field { display: grid; gap: 0.4rem; align-content: start; border: 0; padding: 0; margin: 0; min-inline-size: 0; }
.field > label, .field > legend { font-weight: 700; font-size: 0.95rem; padding: 0; }
.field abbr { color: var(--err); text-decoration: none; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea { inline-size: 100%; font: inherit; color: var(--navy); background: var(--paper); border: 2px solid var(--navy); border-radius: 12px; padding: 0.8rem 1rem; min-block-size: 3rem; }
textarea { resize: vertical; min-block-size: 7rem; }
:is(input, select, textarea):focus-visible { outline: 3px solid var(--yellow); outline-offset: 0; box-shadow: 3px 3px 0 var(--navy); }
:is(input, textarea):user-invalid { border-color: var(--err); background: #FFF4F2; }
.hp { position: absolute; inset-inline-start: -9999px; inline-size: 1px; block-size: 1px; overflow: hidden; }
.styles { display: grid; gap: 0.75rem; }
@media (min-width: 40rem) { .styles { grid-template-columns: repeat(3, 1fr); } .styles legend { grid-column: 1 / -1; } }
.style-opt { cursor: pointer; display: block; }
.style-opt input { position: absolute; opacity: 0; }
.style-opt span { display: grid; gap: 0.2rem; padding: 0.9rem 1rem; border: 2px solid var(--navy); border-radius: 14px; background: var(--paper); transition: background-color 0.15s, box-shadow 0.15s; block-size: 100%; }
.style-opt small { color: var(--muted); font-size: 0.85rem; }
.style-opt input:checked + span { background: var(--yellow); box-shadow: 4px 4px 0 var(--navy); } .style-opt input:checked + span small { color: var(--navy); }
.style-opt input:focus-visible + span { outline: 3px solid var(--navy); outline-offset: 2px; }
.check { grid-template-columns: auto 1fr; align-items: start; gap: 0.7rem; cursor: pointer; font-weight: 500; }
.check input { inline-size: 1.3rem; block-size: 1.3rem; accent-color: var(--navy); margin-block-start: 0.2rem; }
.form-status { margin: 1rem 0 0; font-weight: 600; min-block-size: 1.5em; } .form-status.err { color: var(--err); }
.notfound { text-align: center; padding-block: 5rem; } .notfound .lead { margin-inline: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; padding-block: 1.25rem; } .chips a { display: inline-block; text-decoration: none; font-weight: 700; padding: 0.45rem 1.1rem; border: 2px solid var(--navy); border-radius: 999px; background: var(--white); } .chips a:hover { background: var(--yellow); }
.sec-anchors { background: var(--paper); border-block-end: 1px solid var(--line); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, 0.82); padding-block: clamp(3rem, 6vw, 5rem) 0; margin-block-start: 0; }
.site-footer a { color: #fff; text-decoration: none; } .site-footer a:hover { text-decoration: underline; text-decoration-color: var(--yellow); }
.footer-grid { display: grid; gap: 2.5rem 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
.footer-brand { grid-column: span 2; min-inline-size: min(100%, 18rem); }
.footer-brand .site-logo img { filter: brightness(0) invert(1); } .footer-brand p, .footer-brand address { margin-block: 1rem 0; font-style: normal; max-inline-size: 26rem; }
.footer-links-inline { margin-block-start: 1rem !important; }
.footer-col h2 { font: 700 0.85rem var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--yellow); margin-block-end: 1rem; }
.footer-col ul { display: grid; gap: 0.6rem; }
.social a { display: inline-flex; align-items: center; gap: 0.55rem; }
.footer-lang { margin-block-start: 1.5rem; } .footer-lang .lang-switch { background: transparent; border-color: var(--yellow); } .footer-lang .lang-switch a { color: #fff; } .footer-lang .lang-switch a[aria-current="true"] { background: var(--yellow); color: var(--navy); }
.footer-bar { padding-inline-end: 5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; margin-block-start: 3rem; padding-block: 1.5rem; border-block-start: 1px solid rgba(255, 255, 255, 0.16); font-size: 0.9rem; } .footer-bar p { margin: 0; } .footer-bar a { margin-inline-end: 1rem; }
.flybee { display: none; }
/* A small bee that follows the mouse pointer (mouse and trackpad only; hidden on touch screens and for reduced motion). site.js moves it. */
@media (hover: hover) and (pointer: fine) and (min-width: 48rem) and (prefers-reduced-motion: no-preference) {
  .flybee { display: block; position: fixed; inset: 0 auto auto 0; inline-size: 46px; z-index: 60; pointer-events: none; opacity: 0; transition: opacity 0.3s; }
  .flybee.on { opacity: 1; }
  .flybee img { inline-size: 100%; block-size: auto; animation: flutter 0.4s ease-in-out infinite alternate; }
  @keyframes flutter { from { rotate: -6deg; scale: 1 1; } to { rotate: 6deg; scale: 1.07 0.94; } }
}
.wa-float { position: fixed; inset-block-end: max(1rem, env(safe-area-inset-bottom)); inset-inline-end: 1rem; z-index: 40; display: grid; place-items: center; inline-size: 3.6rem; block-size: 3.6rem; border-radius: 50%; color: #fff; background: var(--wa); border: 2px solid var(--navy); box-shadow: 3px 3px 0 var(--navy); transition: translate 0.15s, box-shadow 0.15s; }
.wa-float:hover { translate: 2px 2px; box-shadow: 1px 1px 0 var(--navy); }
@media (prefers-reduced-motion: no-preference) { .wa-float::after { content: ''; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--wa); animation: ping 2.6s ease-out infinite; } @keyframes ping { 0% { scale: 1; opacity: 0.8; } 80%, 100% { scale: 1.55; opacity: 0; } } }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* Hero: content rises in once; the mascot floats */
  .hero-copy > * { animation: rise-in 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero-copy > :nth-child(2) { animation-delay: 0.08s; } .hero-copy > :nth-child(3) { animation-delay: 0.16s; } .hero-copy > :nth-child(4) { animation-delay: 0.24s; } .hero-copy > :nth-child(5) { animation-delay: 0.32s; }
  .hero-media { animation: pop-in 0.9s cubic-bezier(0.2, 0.9, 0.3, 1.2) 0.15s both; }
  .hero-home .hero-media img, .hero-media.char img { animation: float 6s ease-in-out infinite; }
  @keyframes rise-in { from { opacity: 0; translate: 0 26px; } }
  @keyframes pop-in { from { opacity: 0; scale: 0.9; translate: 0 20px; } }
  @keyframes float { 50% { translate: 0 -14px; rotate: -1deg; } }

  /* Scroll reveal: native scroll-driven animation where available (see site.js for the fallback) */
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry calc(var(--i, 0) * 4%) entry calc(38% + var(--i, 0) * 4%); }
    @keyframes reveal { from { opacity: 0; translate: 0 34px; scale: 0.985; } to { opacity: 1; translate: 0 0; scale: 1; } }
  }
  .js-reveal .reveal { opacity: 0; translate: 0 26px; transition: opacity 0.6s ease-out, translate 0.6s ease-out; transition-delay: calc(var(--i, 0) * 70ms); }
  .js-reveal .reveal.in { opacity: 1; translate: 0 0; }

  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    .sec.theme-soft:not(.sec-hscroll)::before, .sec.theme-dark:not(.sec-hscroll)::before { animation: hive-drift linear both; animation-timeline: view(); }
    @keyframes hive-drift { from { translate: 0 7%; } to { translate: 0 -7%; } }
  }

  /* Smooth cross-fade between pages */
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: 0.18s ease-in both fade-out; } ::view-transition-new(root) { animation: 0.28s ease-out both fade-in; }
  @keyframes fade-out { to { opacity: 0; } } @keyframes fade-in { from { opacity: 0; } }
}

@media (forced-colors: active) { .btn, .card, .plan, .work, .review { border: 2px solid CanvasText; } .site-header.is-wide .site-menu [aria-current="page"] { text-decoration: underline; } }
@media print { .flybee, .site-header, .wa-float, .sec-marquee, .site-footer { display: none; } body { background: #fff; } }
