/* RYANN KE GROUP - flat, border-built design system.
   Palette: bold red #F80000, black, white. Action red #E00000 for AA text
   contrast on white (pure red is 4.2:1). Blue is the focus outline only.
   No gradients, no shadows. */

:root {
  --red: #F80000;
  --action: #E00000;
  --action-dark: #B40000;
  --ink: #000000;
  --paper: #FFFFFF;
  --grey-50: #F6F6F6;
  --grey-100: #EDEDED;
  --grey-200: #DCDCDC;
  --grey-500: #6B6B6B;
  --blue: #0098F0;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --wrap: 1160px;
  /* image slot aspect ratios - adjust each to the real assets when they arrive */
  --ar-hero: 16 / 10;
  --ar-card: 4 / 3;
  --ar-product: 1 / 1;
  --ar-avatar: 1 / 1;
  --r-card: 5px;
  --r-btn: 4px;
  --r-badge: 3px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--action); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5rem; font-weight: 800; letter-spacing: -.01em; text-wrap: balance; }
p:last-child { margin-bottom: 0; }
h1 { font-size: clamp(1.9rem, 5vw, 3rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1rem; max-width: 68ch; }
ul, ol, dl, figure, blockquote, fieldset { margin: 0; padding: 0; }
fieldset { border: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: .7rem 1.2rem;
}
.skip-link:focus { left: 0; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.lede { font-size: 1.1rem; color: var(--grey-500); max-width: 58ch; }

.kicker {
  display: flex; align-items: center; gap: .6rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; margin-bottom: 1rem;
}
.kicker-ico { width: 20px; height: 20px; display: block; }

/* --- header ------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--paper); border-bottom: 2px solid var(--ink);
}
.header-in { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-name { font-weight: 800; font-size: .95rem; letter-spacing: .02em; }
.brand-name b { color: var(--red); }
.brand-logo { height: 40px; width: auto; display: block; }
.brand-logo-footer { height: 52px; }
.site-footer .brand-logo, .admin-head .brand-logo { background: #fff; padding: .3rem .55rem; }
.nav-toggle {
  display: inline-flex; align-items: center; gap: .5rem;
  background: none; border: 2px solid var(--ink); border-radius: var(--r-btn);
  min-height: 44px; padding: 0 .9rem; cursor: pointer; font-weight: 600;
}
.site-nav { display: none; }
.site-nav.open {
  display: flex; flex-direction: column; position: absolute;
  top: 66px; left: 0; right: 0; background: var(--paper);
  border-bottom: 2px solid var(--ink); padding: .5rem 1.25rem 1rem; z-index: 99;
}
.site-nav a { display: block; padding: .7rem .2rem; color: var(--ink); font-weight: 600; min-height: 44px; }
.site-nav a[aria-current="page"] { color: var(--action); }
.nav-cart { position: relative; display: inline-flex; align-items: center; }
.cart-n {
  position: absolute; top: 2px; right: -8px;
  background: var(--action); color: #fff; font-size: .7rem; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center; padding: 0 4px;
}

/* --- buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .7rem 1.4rem; border-radius: var(--r-btn);
  font-weight: 700; font-size: 1rem; cursor: pointer; text-align: center;
  border: 2px solid transparent; text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--action); color: #fff; border-color: var(--action); }
.btn-primary:hover { background: var(--action-dark); border-color: var(--action-dark); }
.btn-outline { background: var(--paper); color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-ghost-light { background: transparent; color: #fff; border-color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--ink); }
.btn-lg { min-height: 54px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-nav { background: var(--action); color: #fff; border-color: var(--action); min-height: 44px; padding: .55rem 1rem; }
.btn-nav:hover { background: var(--action-dark); border-color: var(--action-dark); }

/* --- hero --------------------------------------------------------------- */
.hero { background: var(--ink); color: #fff; padding: 3rem 0 3.5rem; }
.hero h1 { font-size: clamp(2.4rem, 8vw, 4.4rem); letter-spacing: -.02em; }
.hero .lede { color: #cfcfcf; }
.hero .kicker { color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0; }
.hero-points { list-style: none; display: grid; gap: .5rem; margin-top: 1.6rem; }
.hero-points li { display: flex; align-items: center; gap: .55rem; color: #e8e8e8; font-size: .95rem; }
.hero-points svg { color: var(--red); flex: none; }
.hero-media { margin-top: 2.5rem; }
.hero-media img { width: 100%; aspect-ratio: var(--ar-hero); object-fit: cover; }

/* --- sections ----------------------------------------------------------- */
.section { padding: 3.2rem 0; }
.section-flush { padding-top: 1.6rem; }
.section-alt { background: var(--grey-50); }
.section-dark { background: var(--ink); color: #fff; }
.section-dark .lede, .section-dark .sec-head p { color: #bdbdbd; }
.sec-head { margin-bottom: 2rem; }
.sec-head p { color: var(--grey-500); }
.sec-head-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; }

/* service cards */
.svc-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.svc-card {
  display: block; border: 2px solid var(--ink); border-radius: var(--r-card);
  padding: 1.4rem; color: var(--ink); background: var(--paper); overflow: hidden;
}
.svc-card:hover { text-decoration: none; border-color: var(--action); }
.svc-card:hover h3 { color: var(--action); }
.svc-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border: 2px solid var(--ink); border-radius: var(--r-card);
  color: var(--action); margin-bottom: .9rem;
}
.svc-thumb {
  display: block; margin: -1.4rem -1.4rem 1rem;
  border-bottom: 2px solid var(--ink);
}
.svc-thumb img { display: block; width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.svc-card p { color: var(--grey-500); font-size: .95rem; }
.card-link {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 700; color: var(--action); font-size: .92rem; margin-top: .4rem;
}

/* work cards - editorial: image first, serif title, subtle zoom */
.work-strip { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
.work-grid { display: grid; gap: 1.6rem; grid-template-columns: 1fr; }
.work-card { display: block; color: var(--ink); }
.work-card:hover { text-decoration: none; }
.work-card:hover .work-title { color: var(--action); }
.work-card:hover .work-img img { transform: scale(1.035); }
.work-img { display: block; overflow: hidden; background: var(--grey-100); border-radius: var(--r-card); }
.work-img img { width: 100%; aspect-ratio: var(--ar-card); object-fit: cover; transition: transform .5s ease; }
.work-img img, .hero-media img, .case-img img, .pdp-media img, .owner-photo img { border-radius: var(--r-card); }
.work-meta { display: block; padding-top: .75rem; }
.work-cat { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--grey-500); }
.work-title { display: block; font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 1.3rem; line-height: 1.25; letter-spacing: 0; margin-top: .15rem; }
.work-sum { display: block; color: var(--grey-500); font-size: .92rem; margin-top: .25rem; }

/* product cards - image-first like a gallery storefront, no box */
.prod-grid { display: grid; gap: 1.4rem 1.1rem; grid-template-columns: repeat(2, 1fr); }
.prod-card { display: block; color: var(--ink); }
.prod-card:hover { text-decoration: none; }
.prod-card:hover .prod-name { color: var(--action); }
.prod-card:hover .prod-img img { transform: scale(1.035); }
.prod-img { display: block; background: var(--grey-100); overflow: hidden; border-radius: var(--r-card); }
.prod-img img { width: 100%; aspect-ratio: var(--ar-product); object-fit: cover; border-radius: var(--r-card); transition: transform .5s ease; }
.prod-body { display: block; padding: .6rem 0 0; }
.prod-cat { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--grey-500); }
.prod-name { display: block; font-weight: 700; line-height: 1.3; }
.price { display: block; margin-top: .3rem; font-size: .98rem; }
.price s { color: var(--grey-500); font-weight: 400; margin-right: .3rem; }
.price b { color: var(--ink); }
.price-note { color: var(--grey-500); font-weight: 600; font-size: .9rem; }
.prod-flag { display: inline-block; margin-top: .45rem; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); border: 1.5px solid var(--ink); padding: .15rem .5rem; border-radius: var(--r-badge); }
.prod-flag.flag-sale { color: var(--action); border-color: var(--action); }

/* promo band + steps + reviews */
.promo-band { border: 2px solid var(--action); padding: 1rem 1.2rem; margin-bottom: 2.2rem; }
.promo-band p { margin: 0; }
.promo-terms { color: var(--grey-500); font-size: .9rem; }
.steps { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
.step { border: 2px solid #fff; padding: 1.4rem; position: relative; }
.step p { color: #cfcfcf; font-size: .95rem; }

.rev-marquee { overflow: hidden; margin: 0 -1.25rem; }
.rev-track {
  display: flex; width: max-content;
  animation: rev-scroll 60s linear infinite;
}
.rev-marquee:hover .rev-track { animation-play-state: paused; }
@keyframes rev-scroll {
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .rev-track { animation: none; }
  .rev-marquee { overflow-x: auto; }
  .rev-card[aria-hidden="true"] { display: none; }
}
.rev-card { border: 2px solid var(--ink); border-radius: var(--r-card); padding: 1.3rem; display: flex; flex-direction: column; gap: .7rem; width: min(300px, 78vw); flex: none; margin-right: 1.1rem; }
.rev-card blockquote { font-size: .98rem; }
.rev-card figcaption { font-weight: 700; font-size: .9rem; margin-top: auto; }
.rev-card figcaption span { display: block; font-weight: 400; color: var(--grey-500); font-size: .82rem; }
.stars { display: inline-flex; gap: 2px; color: var(--grey-200); }
.stars .star.on { color: var(--action); }
.stars .star { display: inline-flex; }

/* CTA band */
.section-cta { border-top: 2px solid var(--ink); }
.cta-split { display: grid; gap: 1.6rem; }
.cta-list { list-style: none; display: grid; gap: .4rem; margin-top: 1rem; }
.cta-actions { display: flex; flex-direction: column; gap: .8rem; align-items: flex-start; }
.cta-actions .btn { min-width: 220px; }

/* --- page head ---------------------------------------------------------- */
.page-head { padding: 2.4rem 0 2rem; border-bottom: 2px solid var(--ink); }
.page-head h1 { font-family: var(--font-serif); font-weight: 400; letter-spacing: -.01em; }
.has-hero .page-head {
  position: relative; isolation: isolate; border-bottom-color: transparent;
  color: #fff; padding: 3.4rem 0 2.8rem;
  background: var(--page-hero) center/cover no-repeat var(--ink);
}
.has-hero .page-head::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(0, 0, 0, .58);
}
.has-hero .page-head .lede { color: #e6e6e6; }
.has-hero .page-head .crumbs, .has-hero .page-head .crumbs a { color: #d4d4d4; }
.has-hero .page-head .crumbs span { color: #fff; }
.has-hero .page-head .btn-outline { background: transparent; border-color: #fff; color: #fff; }
.has-hero .page-head .btn-outline:hover { background: #fff; color: var(--ink); }
.crumbs { font-size: .85rem; color: var(--grey-500); margin-bottom: 1.2rem; }
.crumbs a { color: var(--grey-500); }
.crumbs span { color: var(--ink); font-weight: 600; }

/* services index rows */
.svc-list { display: grid; gap: 1.2rem; }
.svc-row { display: grid; gap: 1rem; border: 2px solid var(--ink); border-radius: var(--r-card); padding: 1.4rem; }
.svc-row-img { width: 100%; aspect-ratio: 3/2; object-fit: cover; border: 2px solid var(--ink); border-radius: var(--r-card); }
.svc-price { font-weight: 700; font-size: .9rem; }
.svc-row-actions { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }

/* service detail layout */
.svc-detail { display: grid; gap: 2.5rem; }
.svc-main h2 { margin-top: 2.2rem; }
.svc-main h2:first-child { margin-top: 0; }
.tick-list { list-style: none; display: grid; gap: .6rem; }
.tick-list li { display: flex; gap: .55rem; align-items: baseline; }
.tick-list svg { color: var(--action); flex: none; position: relative; top: 2px; }
.proc-list { display: grid; gap: 1.2rem; }
.proc { display: flex; gap: 1rem; }
.proc p { color: var(--grey-500); font-size: .95rem; margin: 0; }
.faq-list { display: grid; }
.faq { border-top: 1.5px solid var(--grey-200); }
.faq:last-child { border-bottom: 1.5px solid var(--grey-200); }
.faq summary {
  font-weight: 700; cursor: pointer; list-style: none; position: relative;
  padding: .95rem 2.2rem .95rem 0; min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: .15rem; top: .75rem;
  font-size: 1.5rem; font-weight: 400; color: var(--action); line-height: 1;
}
.faq[open] summary::after { content: "−"; }
.faq p { color: var(--grey-500); padding-bottom: 1.1rem; }

.side-card { border: 2px solid var(--ink); border-radius: var(--r-card); padding: 1.3rem; margin-bottom: 1.2rem; }
.side-card h2 { font-size: 1.05rem; }
.side-price { font-weight: 700; }
.side-note { font-size: .88rem; color: var(--grey-500); }
.side-card .btn { margin-top: .6rem; }
.side-wa { display: block; text-align: center; margin-top: .8rem; font-weight: 600; font-size: .92rem; }
.side-work { display: flex; gap: .8rem; align-items: center; color: var(--ink); padding: .5rem 0; border-top: 1px solid var(--grey-100); }
.side-work:first-of-type { border-top: 0; }
.side-work:hover { text-decoration: none; }
.side-work:hover span { color: var(--action); }
.side-work img { width: 74px; height: 56px; object-fit: cover; flex: none; background: var(--grey-100); border-radius: var(--r-badge); }
.side-work span { font-weight: 600; font-size: .9rem; display: block; }
.side-work em { display: block; font-style: normal; font-weight: 400; color: var(--grey-500); font-size: .8rem; }

/* chips */
.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.8rem; }
.chip { border: 2px solid var(--ink); border-radius: var(--r-badge); padding: .45rem 1rem; font-weight: 600; font-size: .88rem; color: var(--ink); min-height: 44px; display: inline-flex; align-items: center; }
.chip:hover { text-decoration: none; background: var(--ink); color: #fff; }
.chip.on { background: var(--action); border-color: var(--action); color: #fff; }

/* case study */
.case-grid { display: grid; gap: 2rem; margin-bottom: 3rem; }
.case-img img { width: 100%; aspect-ratio: var(--ar-card); object-fit: cover; }
.case-facts { display: grid; gap: .6rem; border: 2px solid var(--ink); padding: 1.1rem 1.2rem; margin-bottom: 1.6rem; }
.case-facts div { display: flex; justify-content: space-between; gap: 1rem; font-size: .92rem; }
.case-facts dt { color: var(--grey-500); }
.case-facts dd { margin: 0; font-weight: 600; text-align: right; }
.more-work { margin-top: 3rem; }

/* shop layout */
.shop-grid { display: grid; gap: 2rem; }
.shop-side { display: grid; gap: 1.4rem; align-content: start; }
.shop-search label, .shop-cats h2, .sort-form label { font-weight: 700; font-size: .9rem; display: block; margin-bottom: .5rem; }
.search-row { display: flex; gap: .5rem; }
.search-row input { flex: 1; min-width: 0; }
.shop-cats a { display: block; padding: .55rem 0; border-bottom: 1px solid var(--grey-100); color: var(--ink); font-weight: 600; font-size: .95rem; }
.shop-cats a.on { color: var(--action); }
.shop-note { display: flex; gap: .7rem; border: 2px solid var(--ink); padding: .9rem 1rem; font-size: .88rem; align-items: start; }
.shop-note p { margin: 0; }
.shop-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.shop-count { margin: 0; font-weight: 600; color: var(--grey-500); font-size: .9rem; }
.sort-form { display: flex; align-items: center; gap: .6rem; }

/* product page */
.pdp { display: grid; gap: 2rem; margin-top: 1rem; }
.pdp-media { background: var(--grey-50); border-radius: var(--r-card); padding: 7%; }
.pdp-media img { width: 100%; aspect-ratio: var(--ar-product); object-fit: cover; background: var(--grey-100); }
.pdp-info h1 { margin-bottom: .3rem; }
.pdp-info .price b { font-size: 1.5rem; }
.pdp-short { color: var(--grey-500); margin-top: .8rem; }
.stock { font-weight: 700; font-size: .9rem; }
.stock::before { content: ""; display: inline-block; width: 9px; height: 9px; background: #0a8a3a; border-radius: 50%; margin-right: .45rem; }
.stock-low::before { background: var(--action); }
.buy-box { border: 2px solid var(--ink); border-radius: var(--r-card); padding: 1.1rem; margin-top: 1rem; }
.buy-box p { font-size: .92rem; color: var(--grey-500); }
.buy-box .field { margin-bottom: .9rem; }
.buy-box .btn { margin-top: .3rem; }
.pdp-wa { display: inline-block; margin-top: 1rem; font-weight: 600; }
.pdp-facts { border-top: 2px solid var(--ink); margin-top: 1.6rem; padding-top: 1.1rem; display: grid; gap: .7rem; }
.pdp-facts div { display: flex; gap: .6rem; font-size: .9rem; color: var(--grey-500); align-items: start; }
.pdp-facts svg { flex: none; color: var(--action); margin-top: 3px; }
.pdp-facts b { color: var(--ink); }
.pdp-facts a { color: var(--ink); }
.pdp-hl { margin-top: 1rem; font-size: .92rem; }
.pdp-cols { display: grid; gap: 2.4rem; margin-top: 2.8rem; }
.pdp-sec h2 { font-size: 1.15rem; }
.pdp-sec + .pdp-sec { margin-top: 2rem; }
.pdp-main p { color: var(--grey-500); }
.spec-table { margin: 0; border: 2px solid var(--ink); border-radius: var(--r-card); padding: 1.1rem 1.2rem; }
.spec-table div { display: flex; justify-content: space-between; gap: 1rem; font-size: .92rem; padding: .55rem 0; border-bottom: 1px solid var(--grey-100); }
.spec-table div:first-child { padding-top: 0; }
.spec-table div:last-child { border-bottom: 0; padding-bottom: 0; }
.spec-table dt { color: var(--grey-500); }
.spec-table dd { margin: 0; font-weight: 600; text-align: right; }

/* forms */
.main-form, .checkout-form, .track-form { display: grid; gap: 1.2rem; max-width: 640px; }
.checkout-form { max-width: none; }
.main-form h1, .login-form h1 { font-size: 1.5rem; }
.field { display: grid; gap: .35rem; min-width: 0; }
.field > * { min-width: 0; }
.field-row { display: grid; gap: 1.2rem; grid-template-columns: 1fr; min-width: 0; }
.field label, .field > span, .promo-form label { font-weight: 700; font-size: .9rem; }
.field .opt { font-weight: 400; color: var(--grey-500); }
input[type="text"], input[type="tel"], input[type="email"], input[type="number"],
input[type="date"], input[type="time"], input[type="url"], input[type="search"],
input[type="password"], input[type="file"], select, textarea {
  width: 100%; border: 2px solid var(--ink); border-radius: var(--r-btn);
  padding: .65rem .8rem; min-height: 48px; background: var(--paper); font-size: 16px;
}
textarea { min-height: 96px; resize: vertical; }
select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2.4' d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .75rem center;
  background-size: 16px; padding-right: 2.4rem;
}
input[type="file"] { border-style: dashed; border-color: var(--grey-500); background: var(--grey-50); padding: .55rem .7rem; }
input[type="file"]::file-selector-button {
  border: 2px solid var(--ink); background: var(--paper); border-radius: var(--r-btn);
  padding: .4rem .85rem; font: inherit; font-weight: 700; font-size: .85rem;
  margin-right: .8rem; cursor: pointer; min-height: 38px;
}
input[type="file"]::file-selector-button:hover { background: var(--ink); color: #fff; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--blue); outline-offset: 0; border-color: var(--ink); }
::placeholder { color: var(--grey-500); opacity: 1; }
legend { font-weight: 800; font-size: 1.05rem; padding: 0; margin-bottom: .8rem; border-bottom: 2px solid var(--ink); width: 100%; padding-bottom: .4rem; }
fieldset { display: grid; gap: 1rem; }
.radio-row { display: flex; gap: .8rem; border: 2px solid var(--grey-200); border-radius: var(--r-btn); padding: .85rem 1rem; cursor: pointer; align-items: start; min-height: 44px; }
.radio-row:has(input:checked) { border-color: var(--ink); background: var(--grey-50); }
.radio-row input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--action); }
.radio-body b { display: block; }
.radio-body em { font-style: normal; color: var(--grey-500); font-size: .88rem; }
.check-row { display: flex; gap: .7rem; align-items: start; font-size: .92rem; cursor: pointer; }
.check-row input { width: 20px; height: 20px; flex: none; margin-top: 2px; accent-color: var(--action); }
.form-err { color: var(--action-dark); font-size: .86rem; font-weight: 600; margin: 0; }
.form-ok { color: #0a6d2f; font-size: .9rem; font-weight: 600; margin: 0; }
.form-note { font-size: .85rem; color: var(--grey-500); margin: 0; }
.hp { position: absolute !important; top: 0; left: 0; height: 1px !important; width: 1px !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; opacity: 0; pointer-events: none; }
.sent-panel { border: 2px solid var(--ink); border-radius: var(--r-card); padding: 2rem 1.6rem; max-width: 560px; }
.confirm-badge { width: 62px; height: 62px; border-radius: 50%; border: 3px solid var(--red); color: var(--red); display: flex; align-items: center; justify-content: center; margin-bottom: 1.2rem; }

/* cart + checkout */
.cart-grid, .checkout-grid, .track-grid, .contact-grid, .about-grid, .svc-detail { grid-template-columns: 1fr; }
.cart-lines { display: grid; gap: 1rem; }
.cart-line { display: grid; grid-template-columns: 72px 1fr auto; gap: .8rem; border: 2px solid var(--ink); border-radius: var(--r-card); padding: .9rem; align-items: center; }
.cart-line img { width: 72px; height: 72px; object-fit: cover; background: var(--grey-100); border-radius: var(--r-badge); }
.cl-name { font-weight: 700; color: var(--ink); display: block; line-height: 1.3; }
.cl-var { font-size: .82rem; color: var(--grey-500); display: block; }
.cl-price { font-size: .85rem; color: var(--grey-500); }
.cl-qty input { width: 68px; min-height: 44px; }
.cl-total { font-weight: 700; white-space: nowrap; }
.cl-rm { grid-column: 3; justify-self: end; }
.rm-btn { background: none; border: 0; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--grey-500); min-width: 44px; min-height: 44px; }
.rm-btn:hover { color: var(--action); }
.cart-side { margin-top: 1.6rem; }
.sum-list { display: grid; gap: .5rem; margin: .8rem 0; }
.sum-list div { display: flex; justify-content: space-between; gap: 1rem; font-size: .95rem; }
.sum-list dt { color: var(--grey-500); }
.sum-list dd { margin: 0; font-weight: 600; }
.sum-off dd, .sum-off dt { color: var(--action); }
.sum-total { border-top: 2px solid var(--ink); padding-top: .6rem; margin-top: .3rem; }
.sum-total dd { font-weight: 800; font-size: 1.15rem; }
.promo-form { margin: 1rem 0; }
.promo-form .search-row { margin-top: .35rem; }
.side-link { display: block; text-align: center; margin-top: .9rem; font-weight: 600; font-size: .9rem; }
.mini-lines { list-style: none; display: grid; gap: .5rem; margin: .8rem 0 1rem; }
.mini-lines li { display: flex; justify-content: space-between; gap: 1rem; font-size: .92rem; }
.mini-lines li b { white-space: nowrap; }
.empty { border: 2px dashed var(--grey-200); border-radius: var(--r-card); background: var(--grey-50); padding: 2.4rem 1.6rem; text-align: center; }
.confirm-wrap { max-width: 640px; }
.confirm-card { border: 2px solid var(--ink); border-radius: var(--r-card); padding: 1.4rem; margin: 1.6rem 0; }
.order-num { letter-spacing: .04em; }
.timeline { list-style: none; display: grid; gap: .9rem; margin: 1rem 0; position: relative; padding-left: 1.4rem; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: var(--grey-200); }
.timeline li { position: relative; display: grid; gap: .1rem; }
.timeline li::before { content: ""; position: absolute; left: -1.4rem; top: 6px; width: 8px; height: 8px; background: var(--grey-200); border-radius: 50%; }
.timeline li.now::before { background: var(--red); }
.timeline b { font-size: .95rem; }
.timeline span { font-size: .85rem; color: var(--grey-500); }

/* about + contact */
.about-grid { display: grid; gap: 2.5rem; }
.about-story p { font-size: 1.05rem; }
.owner-slot { display: flex; gap: 1.2rem; align-items: center; border: 2px dashed var(--grey-200); border-radius: var(--r-card); padding: 1rem; margin-top: 1.6rem; }
.owner-photo img { width: 96px; height: 96px; object-fit: cover; aspect-ratio: var(--ar-avatar); background: var(--grey-100); }
.owner-slot p { font-size: .85rem; color: var(--grey-500); margin: 0; }
.value-row { display: flex; gap: 1rem; margin-bottom: 1.4rem; align-items: start; }
.value-row .svc-icon { margin: 0; flex: none; }
.value-row p { font-size: .92rem; color: var(--grey-500); margin: 0; }
.svc-grid-sm .svc-card { padding: 1rem; }
.contact-cards { display: grid; gap: 0; }
.contact-card { display: flex; align-items: center; gap: 1rem; padding: 1.15rem 0; border-bottom: 1.5px solid var(--grey-200); color: var(--ink); }
.contact-card:first-child { border-top: 1.5px solid var(--grey-200); }
.contact-card:hover { text-decoration: none; }
.contact-card:hover h2 { color: var(--action); }
.cc-ico { flex: none; width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--grey-50); color: var(--action); }
.cc-wa { background: #25D366; color: #fff; }
.cc-body { flex: 1; min-width: 0; }
.contact-card h2 { font-family: var(--font-serif); font-weight: 400; font-size: 1.35rem; margin: 0; }
.contact-card p { color: var(--grey-500); margin: 0; font-size: .92rem; }
.contact-card .card-link { margin: 0; flex: none; }
.hours-list div { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; font-size: .92rem; border-bottom: 1px solid var(--grey-100); }
.hours-list dt { color: var(--grey-500); }
.hours-list dd { margin: 0; font-weight: 600; }
.map-slot { border: 2px dashed var(--grey-200); border-radius: var(--r-card); padding: 1.6rem 1.2rem; margin-top: 1rem; color: var(--grey-500); display: grid; gap: .6rem; justify-items: center; text-align: center; font-size: .9rem; }
a.map-slot { color: var(--ink); }
a.map-slot:hover { text-decoration: none; border-color: var(--action); color: var(--action); }
.map-slot p { margin: 0; }
.addr-line { margin-bottom: .2rem; }
.legal h2 { margin-top: 2rem; font-size: 1.15rem; }

/* blog */
.blog-article { max-width: 760px; }
.blog-hero-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border: 2px solid var(--ink); border-radius: var(--r-card); margin-bottom: 1.6rem; }
.prose { font-size: 1.02rem; }
.prose h1, .prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose blockquote { border-left: 3px solid var(--ink); padding-left: 1rem; color: var(--grey-500); }
.prose ul, .prose ol { padding-left: 1.4rem; margin-bottom: 1rem; }
.prose code { background: var(--grey-100); padding: .1rem .35rem; font-size: .9em; }
.blog-back { margin-top: 2.4rem; font-weight: 600; }
.notfound { max-width: 560px; }
.nf-links { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.6rem 0; }
.login-wrap { display: grid; place-items: center; min-height: 40vh; }
.login-form { border: 2px solid var(--ink); border-radius: var(--r-card); padding: 1.8rem; width: min(100%, 400px); }

/* footer */
.site-footer { background: var(--ink); color: #fff; padding: 3rem 0 1.4rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
.brand-foot .brand-name { color: #fff; }
.f-slogan { font-weight: 800; font-size: 1.05rem; margin-top: 1rem; }
.f-tag { color: #bdbdbd; font-size: .9rem; }
.f-social { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; }
.f-social a { color: #fff; font-weight: 600; font-size: .9rem; }
.f-col h2 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: #9a9a9a; margin-bottom: .9rem; }
.f-col a, .f-col span { display: block; color: #e6e6e6; padding: .4rem 0; font-size: .94rem; }
.f-col a:hover { color: #fff; }
.f-hours { font-size: .85rem !important; color: #9a9a9a !important; }
.footer-base { border-top: 1px solid #333; margin-top: 2.4rem; padding-top: 1.2rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; }
.f-legal { display: flex; flex-wrap: wrap; gap: 1.1rem; }
.f-legal a, .footer-base a { color: #bdbdbd; font-size: .85rem; }
.footer-base p { margin: 0; font-size: .85rem; color: #9a9a9a; }

/* floating contact icons - clean brand circles, always visible */
.float-contact { position: fixed; right: 14px; bottom: 14px; z-index: 150; display: grid; gap: .6rem; }
.fc {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.fc:hover { text-decoration: none; }
.fc-wa { background: #25D366; color: #fff; }
.fc-wa:hover { background: #1eb85a; }
.fc-call { background: var(--action); color: #fff; }
.fc-call:hover { background: var(--action-dark); }

/* admin */
.admin-body { background: var(--grey-50); }
.admin-head { background: var(--ink); }
.admin-head .header-in { min-height: 58px; flex-wrap: wrap; padding: .4rem 0; }
.admin-head .brand-name { color: #fff; }
.admin-nav { display: flex; flex-wrap: wrap; gap: .2rem; }
.admin-nav a { color: #e6e6e6; font-weight: 600; font-size: .88rem; padding: .5rem .7rem; min-height: 44px; display: inline-flex; align-items: center; }
.admin-nav a:hover { color: #fff; }
.admin-main { padding: 2rem 0 4rem; }
.adm-title { font-size: 1.6rem; }
.adm-sub { color: var(--grey-500); margin-bottom: 1.6rem; }
.adm-back { margin-bottom: .8rem; }
.adm-warn { border: 2px solid var(--action); padding: .8rem 1rem; background: #fff; }
.stat-grid { display: grid; gap: .8rem; grid-template-columns: repeat(2, 1fr); margin-bottom: 2rem; }
.stat { background: #fff; border: 2px solid var(--ink); border-radius: var(--r-card); padding: 1rem; }
.stat-n { display: block; font-weight: 800; font-size: 1.4rem; }
.stat-l { font-size: .82rem; color: var(--grey-500); }
.adm-cols { display: grid; gap: 1.4rem; }
.adm-panel { background: #fff; border: 2px solid var(--ink); border-radius: var(--r-card); padding: 1.2rem; overflow-x: auto; }
.adm-panel h2 { font-size: 1rem; margin-top: 1.4rem; }
.adm-panel h2:first-child { margin-top: 0; }
.adm-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.adm-table th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--grey-500); padding: .5rem .6rem; border-bottom: 2px solid var(--ink); }
.adm-table td { padding: .55rem .6rem; border-bottom: 1px solid var(--grey-100); vertical-align: top; }
.adm-table-full { min-width: 720px; }
.adm-table-wrap { overflow-x: auto; }
.pill { display: inline-block; background: var(--ink); color: #fff; font-size: .75rem; font-weight: 700; padding: .15rem .55rem; border-radius: var(--r-badge); }
.adm-empty { color: var(--grey-500); }
.adm-list { list-style: none; display: grid; gap: .4rem; font-size: .92rem; }
.adm-form { display: grid; gap: .6rem; margin-bottom: 1.2rem; }
.adm-note { font-size: .84rem; color: var(--grey-500); }
.inline-status select { min-height: 40px; font-size: .85rem; }
.adm-edit { max-width: 860px; }
.adm-edit h2 { margin-top: 1.4rem; font-size: 1.05rem; border-bottom: 2px solid var(--ink); padding-bottom: .4rem; }

/* RYANN KE AI launcher + panel */
.ai-open {
  position: fixed; left: 14px; bottom: 14px; z-index: 150;
  display: inline-flex; align-items: center; gap: .55rem;
  background: var(--ink); color: #fff; border: 2px solid var(--ink);
  border-radius: 999px; min-height: 56px; padding: 0 1.15rem;
  font-weight: 800; font-size: .95rem; cursor: pointer; letter-spacing: .01em;
}
.ai-open:hover { background: #1a1a1a; }
.ai-ico { width: 26px; height: 26px; display: block; }
.ai-ico-head { width: 30px; height: 30px; }
/* mobile: tighter buttons, 2-up card grids, 6px spacing layers */
@media (max-width: 767px) {
  .btn { min-height: 44px; padding: .6rem 1.1rem; font-size: .92rem; }
  .btn-lg { min-height: 48px; font-size: .96rem; }
  .cta-actions { flex-direction: row; align-items: stretch; }
  .hero-actions .btn, .cta-actions .btn, .nf-links .btn, .svc-row-actions .btn {
    flex: 1 1 calc(50% - .5rem); min-width: 0;
    min-height: 42px; padding: .5rem .45rem;
    font-size: .82rem; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis;
  }
  .hero-actions, .nf-links, .cta-actions, .svc-row-actions { gap: .6rem; }

  /* 6px: screen edge to cards */
  .wrap { width: min(100% - 12px, var(--wrap)); }
  .rev-marquee { margin: 0 -6px; }

  /* card grids two per line, 6px between cards */
  .prod-grid, .svc-grid, .work-strip, .work-grid, .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px;
  }
  .prod-grid { gap: 1.1rem 6px; }
  .work-grid-sm { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }

  /* 6px horizontal padding inside those cards */
  .svc-card, .svc-grid-sm .svc-card { padding: 6px; }
  .svc-thumb { margin: -6px -6px .5rem; }
  .svc-card h3 { font-size: .92rem; }
  .svc-card p { font-size: .82rem; margin-bottom: .2rem; }
  .svc-card .card-link { font-size: .8rem; }
  .svc-icon { width: 34px; height: 34px; margin-bottom: .5rem; }
  .prod-body { padding: .5rem 0 0; }
  .prod-body .prod-name { font-size: .88rem; }
  .work-meta { padding: .55rem 0 0; }
  .work-title { font-size: 1.1rem; }
  .work-sum { font-size: .8rem; }
  .contact-card { padding: .9rem 0; gap: .8rem; }
  .contact-card h2 { font-size: 1.15rem; }
  .contact-card p { font-size: .82rem; }
  .cc-ico { width: 38px; height: 38px; }

  /* shop categories: chips instead of a tall list */
  .shop-cats { display: flex; flex-wrap: wrap; gap: 6px; }
  .shop-cats h2 { flex-basis: 100%; }
  .shop-cats a {
    border: 1.5px solid var(--ink); border-radius: var(--r-badge);
    padding: .4rem .75rem; font-size: .85rem;
  }
  .shop-cats a.on { background: var(--ink); color: #fff; }

  /* single-column card layouts: 8px edge to cards */
  .steps, .svc-list, .cart-lines, .proc-list, .faq-list, .tick-list,
  .case-facts, .side-card, .sent-panel, .empty, .confirm-card,
  .main-form, .checkout-form, .track-form, .shop-side,
  .about-story, .about-side, .svc-main,
  .pdp-media, .pdp-info, .pdp-sec, .pdp-facts, .case-img, .case-body,
  .owner-slot, .promo-band, .cta-split {
    margin-inline: 2px;
  }
}

@media (max-width: 419px) {
  .ai-open { width: 56px; padding: 0; justify-content: center; }
  .ai-open-label { display: none; }
}

.ai-panel {
  position: fixed; inset: 0; z-index: 160;
  background: var(--paper); display: flex; flex-direction: column;
}
.ai-head {
  display: flex; align-items: center; gap: .7rem;
  background: var(--ink); color: #fff; padding: .7rem .9rem;
}
.ai-title { flex: 1; line-height: 1.2; }
.ai-title b { display: block; font-size: .95rem; }
.ai-title small { color: #9a9a9a; font-size: .75rem; }
.ai-handover { color: #fff; background: #25D366; border-radius: 50%; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.ai-handover:hover { background: #1FBE5B; }
.ai-close { background: none; border: 0; color: #fff; font-size: 1.7rem; line-height: 1; cursor: pointer; min-width: 44px; min-height: 44px; }
.ai-chips { display: flex; flex-wrap: wrap; gap: .45rem; padding: .7rem .9rem .3rem; }
.ai-chip {
  border: 2px solid var(--ink); border-radius: var(--r-badge); background: var(--paper);
  padding: .4rem .85rem; font-weight: 600; font-size: .82rem; cursor: pointer; min-height: 40px;
}
.ai-chip:hover { background: var(--ink); color: #fff; }
.ai-log {
  flex: 1; overflow-y: auto; padding: .8rem .9rem;
  display: flex; flex-direction: column; gap: .6rem;
}
.ai-msg { max-width: 86%; padding: .6rem .85rem; border-radius: var(--r-card); font-size: .92rem; line-height: 1.5; word-wrap: break-word; }
.ai-msg a { font-weight: 700; }
.ai-user { align-self: flex-end; background: var(--ink); color: #fff; }
.ai-user a { color: #fff; }
.ai-assistant { align-self: flex-start; background: var(--grey-50); border: 1.5px solid var(--grey-200); }
.ai-typing { display: inline-flex; gap: 5px; padding: .8rem .9rem; }
.ai-typing i { width: 7px; height: 7px; background: var(--grey-500); border-radius: 50%; animation: ai-blink 1.2s infinite; }
.ai-typing i:nth-child(2) { animation-delay: .2s; }
.ai-typing i:nth-child(3) { animation-delay: .4s; }
@keyframes ai-blink { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }
.ai-form { display: flex; gap: .5rem; padding: .6rem .9rem; border-top: 2px solid var(--ink); }
.ai-form input { flex: 1; min-width: 0; }
.ai-form button {
  flex: none; width: 52px; min-height: 48px; border: 2px solid var(--action);
  background: var(--action); color: #fff; border-radius: var(--r-btn); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.ai-form button:hover { background: var(--action-dark); }
.ai-foot { padding: 0 .9rem .6rem; }
.ai-clear { background: none; border: 0; color: var(--grey-500); font-size: .8rem; cursor: pointer; padding: .3rem 0; text-decoration: underline; }
.ai-clear:hover { color: var(--action); }

@media (min-width: 768px) {
  :root { --r-card: 8px; --r-btn: 6px; }
  .ai-panel {
    inset: auto; left: 16px; bottom: 84px;
    width: 390px; max-height: min(620px, calc(100vh - 120px));
    border: 2px solid var(--ink); border-radius: var(--r-card);
  }
  .ai-log { min-height: 260px; }
}

/* -------------------------- breakpoints -------------------------------- */
@media (min-width: 480px) {
  .field-row { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
  body { font-size: 16.5px; }
  .nav-toggle { display: none; }
  .site-nav { display: flex; align-items: center; gap: .2rem; }
  .site-nav a { padding: .5rem .65rem; font-size: .92rem; min-height: 44px; display: inline-flex; align-items: center; }
  .site-nav .btn-nav { margin-left: .5rem; }
  .hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
  .hero-media { margin-top: 0; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .work-strip { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  /* editorial rhythm: every sixth portfolio card leads a row */
  .work-grid:not(.work-grid-sm) .work-card:nth-child(6n+1) { grid-column: 1 / -1; }
  .work-grid:not(.work-grid-sm) .work-card:nth-child(6n+1) .work-img img { aspect-ratio: 8 / 5; }
  .prod-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .rev-card { width: 320px; }
  .cta-split { grid-template-columns: 1.4fr .8fr; align-items: center; }
  .cta-actions { align-items: stretch; }
  .svc-row { grid-template-columns: 160px 1fr auto; align-items: center; }
.svc-row-img { width: 160px; aspect-ratio: 4/3; }
  .svc-detail { grid-template-columns: 1.5fr .9fr; align-items: start; }
  .shop-grid { grid-template-columns: 240px 1fr; align-items: start; }
  .shop-side { position: sticky; top: 84px; }
  .cart-grid { grid-template-columns: 1.5fr .8fr; align-items: start; }
  .cart-side { margin-top: 0; }
  .checkout-grid { grid-template-columns: 1.4fr .8fr; align-items: start; }
  .track-grid { grid-template-columns: minmax(0, 480px) 1fr; align-items: start; gap: 2.5rem; }
  .contact-grid { grid-template-columns: 1.2fr .8fr; align-items: start; }
  .about-grid { grid-template-columns: 1.3fr .8fr; }
  .case-grid { grid-template-columns: 1.1fr .9fr; align-items: start; }
  .pdp { grid-template-columns: 1fr 1fr; align-items: start; }
  .pdp-cols { grid-template-columns: 1.6fr .9fr; align-items: start; }
  .cart-line { grid-template-columns: 84px 1fr auto auto auto; gap: 1.2rem; }
  .cart-line img { width: 84px; height: 84px; }
  .cl-rm { grid-column: auto; }
  .footer-grid { grid-template-columns: 1.4fr .8fr .8fr 1fr; }
  .adm-cols { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .svc-grid { grid-template-columns: repeat(3, 1fr); }
  .work-strip { grid-template-columns: repeat(3, 1fr); }
  .work-grid { grid-template-columns: repeat(3, 1fr); }
  .work-grid-sm { grid-template-columns: repeat(3, 1fr); }
  .prod-grid { grid-template-columns: repeat(4, 1fr); }
  .stat-grid { grid-template-columns: repeat(5, 1fr); }
}

@media (min-width: 1280px) {
  body { font-size: 17px; }
  .section { padding: 4rem 0; }
}

/* M-Pesa wait page */
.mpesa-spin { width: 44px; height: 44px; border: 4px solid #e5e7eb; border-top-color: #e00000; border-radius: 50%; margin: 0.8rem auto 1.2rem; animation: mpesa-spin 1s linear infinite; }
@keyframes mpesa-spin { to { transform: rotate(1turn); } }
#mpesa-card { text-align: center; padding: 1.6rem 1.2rem; }
#mpesa-card h2 { margin-bottom: 0.4rem; }
#mpesa-card .btn { margin-top: 1rem; }
