/* Sweetest Days · design system v3 "funky flat"
   Flat brand colours (no gradients), navy outlines, hard offset shadows that press on tap.
   Contrast rule: navy text on pink/cyan/cream/white; pink or cyan text only on navy. Never white on pink/cyan.
   Type: Taweel (display) + Tajarib (text). RTL-safe: logical properties; shadow offset flips with --sx. */
@font-face { font-family: "Taweel"; src: url("/assets/fonts/taweel-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Taweel"; src: url("/assets/fonts/taweel-900.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Tajarib"; src: url("/assets/fonts/tajarib-300.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Tajarib"; src: url("/assets/fonts/tajarib-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Tajarib"; src: url("/assets/fonts/tajarib-900.woff2") format("woff2"); font-weight: 900; font-display: swap; }

:root {
  --ink: #14163a; --ink-2: #2b2e55; --muted: #4a4f6e;
  --pink: #e5519f; --pink-soft: #ffd6ea; --cyan: #2fb8e6; --cyan-soft: #d4f2fc;
  --paper: #fff8ef; --surface: #fff; --wa: #0b7a43;
  --bw: 2px; --sx: 5px; --sy: 5px;
  --hard: var(--sx) var(--sy) 0 var(--ink);
  --hard-sm: calc(var(--sx) * .6) calc(var(--sy) * .6) 0 var(--ink);
  --hard-lg: calc(var(--sx) * 1.6) calc(var(--sy) * 1.6) 0 var(--ink);
  --r-sm: 14px; --r: 22px; --r-lg: 30px; --r-xl: 40px;
  --f-head: "Taweel", "Tajarib", system-ui, sans-serif;
  --f-body: "Tajarib", system-ui, sans-serif;
  --t-fast: 140ms; --t: 220ms; --t-slow: 420ms;
  --ease: cubic-bezier(.22, 1, .36, 1); --spring: cubic-bezier(.34, 1.56, .64, 1);
  --header-h: 78px; --gutter: 16px;
  --z-sticky: 20; --z-header: 50; --z-bar: 60; --z-drawer: 80; --z-toast: 90;
}
[dir="rtl"] { --sx: -5px; }
@view-transition { navigation: auto; }
::view-transition-group(*) { animation-duration: 360ms; animation-timing-function: cubic-bezier(.22, 1, .36, 1); }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font-family: var(--f-body); font-weight: 400; color: var(--ink-2); background: var(--paper); line-height: 1.85; font-size: 18px; overflow-x: clip; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, select, input { font: inherit; color: inherit; touch-action: manipulation; }
h1, h2, h3 { font-family: var(--f-head); font-weight: 900; color: var(--ink); line-height: 1.25; margin: 0 0 .4em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 1.3rem + 3.8vw, 4.4rem); line-height: 1.2; }
h2 { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.9rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
.wrap { width: min(1220px, 100% - var(--gutter) * 2); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 100; transition: top var(--t); }
.skip:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }
.small { font-size: .9rem; } .muted { color: var(--muted); }
.center { text-align: center; } .center img { margin: 0 auto 1rem; }
svg { width: 1.2em; height: 1.2em; flex: none; fill: currentColor; }
svg.i { fill: none; stroke: currentColor; }
[dir="rtl"] .arr { transform: scaleX(-1); }
.code { font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: .74rem; color: var(--muted); direction: ltr; unicode-bidi: isolate; letter-spacing: .02em; }
mark { background: var(--pink); color: var(--ink); padding: 0 .22em; border-radius: 14px; display: inline-block; transform: rotate(-1.5deg); box-shadow: var(--hard-sm); border: var(--bw) solid var(--ink); line-height: 1.3; margin-block: .08em; }
.deco { width: 100%; height: 100%; display: block; }

.preview-bar { background: var(--ink); color: #f2f3fb; font-size: .82rem; text-align: center; padding: 7px 16px; line-height: 1.5; }

/* ---------------------------------------------------------------- header */
.site-header { position: sticky; top: 0; z-index: var(--z-header); background: var(--paper); border-bottom: var(--bw) solid var(--ink); }
.header-in { display: flex; align-items: center; gap: 18px; height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 10px; flex: none; min-height: 44px; }
.logo img:first-child { transition: transform .9s var(--ease); }
.logo:hover img:first-child { transform: rotate(120deg); }
.wordmark { height: 30px; width: auto; }
.nav { display: flex; gap: 4px; margin-inline-start: auto; }
.nav a { padding: 7px 16px; border-radius: 999px; font-family: var(--f-body); font-weight: 900; font-size: .98rem; color: var(--ink); border: var(--bw) solid transparent; transition: background var(--t-fast), border-color var(--t-fast); min-height: 42px; display: flex; align-items: center; }
.nav a:hover { border-color: var(--ink); background: var(--surface); }
.nav a[aria-current] { background: var(--cyan); border-color: var(--ink); box-shadow: var(--hard-sm); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.lang, .list-btn { width: 46px; height: 46px; border-radius: 50%; border: var(--bw) solid var(--ink); background: var(--surface); display: grid; place-items: center; cursor: pointer; font: 900 1rem var(--f-body); color: var(--ink); transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast); position: relative; box-shadow: var(--hard-sm); }
.lang:hover, .list-btn:hover { transform: translate(calc(var(--sx) * -.3), -2px); box-shadow: var(--hard); }
.lang:active, .list-btn:active { transform: translate(calc(var(--sx) * .6), 3px); box-shadow: none; }
.list-btn svg { color: var(--pink); }
.list-btn .count { position: absolute; top: -6px; inset-inline-end: -6px; }
.count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--pink); color: var(--ink); border: var(--bw) solid var(--ink); font: 900 .74rem var(--f-body); display: inline-grid; place-items: center; line-height: 1; }
.count[data-zero] { display: none; }
.count.bump { animation: bump var(--t-slow) var(--spring); }
@keyframes bump { 40% { transform: scale(1.45) rotate(-8deg); } }
.burger { display: none; width: 46px; height: 46px; border: var(--bw) solid var(--ink); background: var(--surface); cursor: pointer; position: relative; border-radius: 50%; box-shadow: var(--hard-sm); }
.burger span { position: absolute; inset-inline: 12px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform var(--t) var(--ease), top var(--t) var(--ease); }
.burger span:first-child { top: 16px; } .burger span:last-child { top: 25px; }
.nav-open .burger span:first-child { top: 20px; transform: rotate(45deg); }
.nav-open .burger span:last-child { top: 20px; transform: rotate(-45deg); }

/* ---------------------------------------------------------------- buttons (press into their shadow) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 26px; border-radius: 999px; font: 900 1.02rem/1.3 var(--f-body); border: var(--bw) solid var(--ink); cursor: pointer; box-shadow: var(--hard); transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), background var(--t-fast); white-space: nowrap; color: var(--ink); }
.btn:hover { transform: translate(calc(var(--sx) * -.3), -2px); box-shadow: calc(var(--sx) * 1.3) calc(var(--sy) * 1.3) 0 var(--ink); }
.btn:active { transform: translate(var(--sx), var(--sy)); box-shadow: 0 0 0 var(--ink); transition-duration: 60ms; }
.btn-primary { background: var(--pink); }
.btn-ghost { background: var(--surface); }
.btn-light { background: var(--surface); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-lg { min-height: 60px; padding: 14px 32px; font-size: 1.1rem; }
.btn-sm { min-height: 46px; padding: 8px 20px; font-size: .96rem; box-shadow: var(--hard-sm); }
.btn-block { width: 100%; }
.btn-icon { width: 60px; min-height: 60px; padding: 0; background: var(--cyan); }
.btn[aria-pressed="true"] { background: var(--cyan); }
.btn[aria-pressed="true"] svg { fill: currentColor; }
.btn .arr, .link-more .arr { transition: transform var(--t) var(--ease); }
.btn:hover .arr, .link-more:hover .arr { transform: translateX(5px); }
[dir="rtl"] .btn:hover .arr, [dir="rtl"] .link-more:hover .arr { transform: scaleX(-1) translateX(5px); }
.link-btn { background: none; border: 0; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; font-size: .92rem; margin-top: 10px; min-height: 44px; padding: 0 12px; }
.link-more { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font: 900 1rem var(--f-body); min-height: 44px; text-decoration: underline; text-decoration-color: var(--pink); text-decoration-thickness: 3px; text-underline-offset: 6px; }

/* ---------------------------------------------------------------- sections */
.section { padding: clamp(64px, 8vw, 110px) 0; position: relative; }
.section.pt0 { padding-top: 0; }
.band-cyan { background: var(--cyan); border-block: var(--bw) solid var(--ink); }
.band-pink { background: var(--pink-soft); border-block: var(--bw) solid var(--ink); }
.tint-sky { background: var(--cyan-soft); border-block: var(--bw) solid var(--ink); }
.tint-blush { background: var(--pink-soft); border-block: var(--bw) solid var(--ink); }
.sec-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 44px); }
.sec-head.row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 24px; flex-wrap: wrap; }
.sec-head p { color: var(--muted); font-size: 1.08rem; margin: 0; max-width: 60ch; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 900 .86rem var(--f-body); color: var(--ink); margin-bottom: 14px; padding: 4px 14px; border-radius: 999px; background: var(--surface); border: var(--bw) solid var(--ink); }
.eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--pink); border: var(--bw) solid var(--ink); }
.lead { font-size: clamp(1.08rem, 1rem + .35vw, 1.25rem); color: var(--muted); max-width: 56ch; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 26px 0 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }

/* ---------------------------------------------------------------- landing hero */
.hero2 { padding: clamp(36px, 5vw, 76px) 0 clamp(56px, 7vw, 96px); overflow: clip; }
.hero2-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.tag { display: inline-flex; align-items: center; gap: 8px; font: 900 .9rem var(--f-body); color: var(--ink); background: var(--cyan-soft); border: var(--bw) solid var(--ink); padding: 6px 16px; border-radius: 999px; margin-bottom: 18px; transform: rotate(-1deg); }
.tag svg { color: var(--pink); }
.hero2-copy > * { animation: rise .6s var(--ease) both; }
.hero2-copy > :nth-child(2) { animation-delay: 60ms; } .hero2-copy > :nth-child(3) { animation-delay: 120ms; }
.hero2-copy > :nth-child(4) { animation-delay: 180ms; } .hero2-copy > :nth-child(5) { animation-delay: 240ms; }
.collage { position: relative; aspect-ratio: 1 / 1.08; width: 100%; max-width: 500px; justify-self: center; }
.collage figure { position: absolute; margin: 0; background: var(--surface); border: var(--bw) solid var(--ink); border-radius: var(--r); padding: 10px 10px 34px; box-shadow: var(--hard-lg); overflow: hidden; transition: transform var(--t-slow) var(--spring); }
.collage figure img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; border: var(--bw) solid var(--ink); }
.collage figure:hover { transform: rotate(0deg) scale(1.03); z-index: 3; }
.ph1 { width: 64%; aspect-ratio: 4/5; top: 2%; inset-inline-end: 0; transform: rotate(4deg); animation: drop .7s var(--spring) both; }
.ph2 { width: 52%; aspect-ratio: 1; bottom: 2%; inset-inline-start: 0; transform: rotate(-6deg); animation: drop .7s 120ms var(--spring) both; z-index: 2; }
.ph3 { width: 40%; aspect-ratio: 1; top: 8%; inset-inline-start: 4%; transform: rotate(-3deg); animation: drop .7s 240ms var(--spring) both; padding-bottom: 10px; }
.ph3 img { object-fit: contain !important; background: var(--pink-soft); mix-blend-mode: multiply; }
.d-star, .d-ring, .d-squig, .d-spark { position: absolute; pointer-events: none; }
.d-star { width: 78px; height: 78px; bottom: 30%; inset-inline-end: -4%; z-index: 4; animation: spin 18s linear infinite; }
.d-star .deco path { fill: var(--pink); stroke: var(--ink); stroke-width: 4; stroke-linejoin: round; }
.d-ring { width: 64px; height: 64px; top: -2%; inset-inline-start: 46%; }
.d-ring .deco circle { stroke: var(--cyan); }
.d-squig { width: 120px; height: 30px; bottom: -3%; inset-inline-end: 12%; }
.d-squig .deco path { stroke: var(--ink); }
.badge-20 { position: absolute; bottom: 28%; inset-inline-start: 48%; z-index: 5; width: 104px; height: 104px; border-radius: 50%; background: var(--cyan); border: var(--bw) solid var(--ink); box-shadow: var(--hard); display: grid; place-content: center; text-align: center; font: 900 .82rem/1.2 var(--f-body); color: var(--ink); transform: rotate(-10deg); animation: wobble 5s ease-in-out infinite; }
.badge-20 b { font: 900 2rem/1 var(--f-head); display: block; direction: ltr; }
@keyframes rise { from { transform: translateY(16px); } }
@keyframes drop { from { translate: 0 -30px; scale: .92; } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes wobble { 50% { transform: rotate(-4deg) scale(1.04); } }
@keyframes pop { from { scale: .9; } }

/* ticker */
.ticker-wrap { overflow: clip; padding: 14px 0; }
.ticker { background: var(--ink); overflow: hidden; padding: 14px 0; transform: rotate(-1.2deg); margin-inline: -30px; }
.ticker-track { display: flex; align-items: center; gap: 28px; width: max-content; animation: marquee 40s linear infinite; }
[dir="rtl"] .ticker-track { animation-name: marquee-rtl; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker span:not(.x) { display: inline-flex; align-items: center; gap: 10px; color: #fff; font: 900 1.25rem var(--f-head); white-space: nowrap; }
.ticker span svg.i { color: var(--cyan); }
.ticker .deco { width: 22px; height: 22px; }
.ticker .deco path { fill: var(--pink); }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marquee-rtl { to { transform: translateX(50%); } }

/* occasion blocks */
.occ-blocks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.occ-block { position: relative; display: flex; flex-direction: column; min-height: 400px; padding: 24px 22px 0; border: var(--bw) solid var(--ink); border-radius: var(--r-lg); box-shadow: var(--hard); overflow: hidden; transition: transform var(--t) var(--spring), box-shadow var(--t); color: var(--ink); }
.occ-block:nth-child(odd):hover { transform: rotate(-1.5deg) translateY(-6px); box-shadow: var(--hard-lg); }
.occ-block:nth-child(even):hover { transform: rotate(1.5deg) translateY(-6px); box-shadow: var(--hard-lg); }
.c-pink { background: var(--pink); } .c-cyan { background: var(--cyan); } .c-white { background: var(--surface); }
.c-ink { background: var(--ink); color: #fff; } .c-ink h3 { color: #fff; } .c-ink p { color: #d9dbef; }
.occ-num { font: 900 1rem var(--f-body); opacity: .7; direction: ltr; align-self: flex-start; }
.occ-block h3 { font-size: clamp(1.4rem, 1.1rem + .9vw, 1.9rem); margin: 6px 0 6px; }
.occ-block p { font-size: .96rem; margin: 0 0 18px; }
.occ-photo { margin-top: auto; margin-inline: -22px; height: 190px; border-top: var(--bw) solid var(--ink); overflow: hidden; }
.occ-photo img, .occ-photo .ph { width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform .7s var(--ease); }
.occ-block:hover .occ-photo img { transform: scale(1.08); }
.occ-go { position: absolute; top: 18px; inset-inline-end: 18px; display: flex; gap: 4px; align-items: center; padding: 8px 12px; border-radius: 999px; background: var(--surface); color: var(--ink); border: var(--bw) solid var(--ink); }

/* category sticker cloud */
.cat-cloud { display: flex; flex-wrap: wrap; gap: 14px 16px; justify-content: center; }
.cat-sticker { display: inline-flex; align-items: center; gap: 12px; padding: 12px 14px 12px 22px; border: var(--bw) solid var(--ink); border-radius: 999px; font: 900 clamp(1.05rem, 1rem + .4vw, 1.3rem) var(--f-body); color: var(--ink); box-shadow: var(--hard); transform: rotate(var(--r, 0deg)); transition: transform var(--t) var(--spring), box-shadow var(--t); }
[dir="rtl"] .cat-sticker { padding: 12px 22px 12px 14px; }
.cat-sticker:hover { transform: rotate(0deg) scale(1.06); box-shadow: var(--hard-lg); }
.cat-sticker:active { transform: scale(.97); box-shadow: none; }
.cat-sticker svg { width: 28px; height: 28px; }
.cat-sticker b { min-width: 34px; height: 34px; padding: 0 8px; border-radius: 17px; display: grid; place-items: center; background: var(--surface); border: var(--bw) solid var(--ink); font-size: .9rem; }
.s0 { background: var(--pink); } .s1 { background: var(--cyan); } .s2 { background: var(--surface); } .s3 { background: var(--pink-soft); }

/* steps on cyan band */
.steps2 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step-card { position: relative; background: var(--surface); border: var(--bw) solid var(--ink); border-radius: var(--r-lg); padding: 26px 24px; box-shadow: var(--hard); }
.step-card:nth-child(even) { transform: translateY(24px); }
.big-num { display: block; font: 900 4.4rem/1 var(--f-head); color: var(--pink); -webkit-text-stroke: 2px var(--ink); margin-bottom: 10px; }
.step-card p { color: var(--muted); font-size: .98rem; margin: 0; }

/* package tickets */
.tickets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ticket { position: relative; display: flex; flex-direction: column; border: var(--bw) solid var(--ink); border-radius: var(--r-lg); box-shadow: var(--hard); overflow: hidden; transition: transform var(--t) var(--spring), box-shadow var(--t); color: var(--ink);
  -webkit-mask: radial-gradient(circle 16px at 0 58%, transparent 15px, #000 16px) , radial-gradient(circle 16px at 100% 58%, transparent 15px, #000 16px); -webkit-mask-composite: source-in; mask-composite: intersect; }
.ticket:hover { transform: translateY(-6px) rotate(-1deg); }
.t-pink { background: var(--pink); } .t-cyan { background: var(--cyan); } .t-white { background: var(--surface); }
.ticket-imgs { display: flex; justify-content: center; padding: 28px 20px 26px; border-bottom: 3px dashed var(--ink); }
.ticket-imgs span { width: 92px; height: 92px; border-radius: 50%; overflow: hidden; border: var(--bw) solid var(--ink); background: var(--surface); margin-inline-start: -22px; transition: transform var(--t) var(--spring); }
.ticket-imgs span:first-child { margin-inline-start: 0; }
.ticket:hover .ticket-imgs span:nth-child(1) { transform: rotate(-8deg) translateY(-4px); }
.ticket:hover .ticket-imgs span:nth-child(3) { transform: rotate(8deg) translateY(-4px); }
.ticket-imgs img { width: 100%; height: 100%; object-fit: cover; }
.ticket-body { padding: 20px 24px 76px; display: grid; gap: 4px; }
.ticket-body .code { color: var(--ink); opacity: .75; }
.ticket-body strong { font: 900 1.6rem var(--f-head); }
.ticket-body small { font-size: .95rem; line-height: 1.7; }
.ticket-go { position: absolute; bottom: 18px; inset-inline-end: 18px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; }

/* why: stat + checklist */
.why2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.stat-block { position: relative; background: var(--pink); border: var(--bw) solid var(--ink); border-radius: var(--r-xl); padding: clamp(28px, 4vw, 44px); box-shadow: var(--hard-lg); overflow: hidden; color: var(--ink); }
.stat { display: block; font: 900 clamp(5rem, 3.5rem + 6vw, 9rem)/1 var(--f-head); color: var(--paper); -webkit-text-stroke: var(--bw) var(--ink); margin-bottom: 10px; text-shadow: calc(var(--sx) * .8) 4px 0 var(--ink); unicode-bidi: isolate; }
.stat-block h2 { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.2rem); }
.stat-block p { margin: 0; max-width: 42ch; }
.stat-block .d-spark { width: 80px; height: 80px; bottom: 22px; inset-inline-end: 22px; animation: spin 14s linear infinite; }
.stat-block .d-spark path { fill: var(--cyan); stroke: var(--ink); stroke-width: 3; }
.check-block { background: var(--surface); border: var(--bw) solid var(--ink); border-radius: var(--r-xl); padding: clamp(28px, 4vw, 44px); box-shadow: var(--hard-lg); }
.check-block ul { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 12px; }
.check-block li { display: flex; gap: 14px; align-items: center; font-size: 1.02rem; }
.check-block li svg { width: 40px; height: 40px; padding: 8px; border-radius: 12px; border: var(--bw) solid var(--ink); background: var(--cyan-soft); color: var(--ink); box-sizing: border-box; }

/* ---------------------------------------------------------------- inner page heroes */
.page-hero { position: relative; overflow: clip; padding: clamp(28px, 4vw, 56px) 0 clamp(40px, 6vw, 72px); }
.page-hero.slim { padding-bottom: 32px; }
.page-hero h1 { font-size: clamp(2.2rem, 1.3rem + 3.2vw, 3.8rem); }
.page-hero-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 72px); align-items: center; margin-top: 32px; }
.page-hero-art { position: relative; aspect-ratio: 1 / 1.05; max-width: 420px; width: 100%; justify-self: center; }
.arch { position: absolute; inset: 0; border-radius: 999px 999px var(--r-lg) var(--r-lg); overflow: hidden; border: var(--bw) solid var(--ink); box-shadow: var(--hard-lg); background: var(--cyan-soft); animation: pop .6s var(--ease) both; }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.big-ico { position: absolute; bottom: 8%; inset-inline-start: -6%; width: 84px; height: 84px; border-radius: 26px; background: var(--pink); border: var(--bw) solid var(--ink); color: var(--ink); display: grid; place-items: center; box-shadow: var(--hard); transform: rotate(-8deg); animation: wobble 5s ease-in-out infinite; }
.big-ico svg { width: 40px; height: 40px; }
.tabs { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 10px; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 8px 18px; border-radius: 999px; border: var(--bw) solid var(--ink); background: var(--surface); font-weight: 900; font-size: .96rem; transition: transform var(--t-fast), box-shadow var(--t-fast); }
.tab:hover { box-shadow: var(--hard-sm); transform: translateY(-2px); }
.tab.on { background: var(--pink); box-shadow: var(--hard-sm); }

/* ---------------------------------------------------------------- product cards */
.grid.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 22px; }
.card { position: relative; background: var(--surface); border-radius: var(--r); border: var(--bw) solid var(--ink); display: flex; flex-direction: column; box-shadow: var(--hard); transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.card:hover { transform: translate(calc(var(--sx) * -.4), -4px); box-shadow: var(--hard-lg); }
.card:active { transform: translate(var(--sx), var(--sy)); box-shadow: none; transition-duration: 60ms; }
.card:has(a:focus-visible) { outline: 3px solid var(--cyan); outline-offset: 3px; }
.card-media { aspect-ratio: 5/4; display: grid; place-items: center; overflow: hidden; padding: 14px; background: var(--cyan-soft); border-radius: calc(var(--r) - 2px) calc(var(--r) - 2px) 0 0; border-bottom: var(--bw) solid var(--ink); }
.card:nth-child(3n+2) .card-media { background: var(--pink-soft); }
.card:nth-child(3n) .card-media { background: var(--paper); }
.card-media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .5s var(--spring); }
.card:hover .card-media img { transform: scale(1.07) rotate(-2deg); }
.card-body { padding: 14px 18px 16px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.card-body h3 { font-size: 1.12rem; margin: 0; line-height: 1.5; }
.card-body h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-body h3 a:focus-visible { outline: none; }
.card-cat { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--muted); font-weight: 900; }
.card-cat svg { width: 1.05em; height: 1.05em; color: var(--pink); }
.card-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; padding-top: 10px; }
.fav { position: absolute; top: 10px; inset-inline-end: 10px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: var(--bw) solid var(--ink); background: var(--surface); color: var(--ink); cursor: pointer; display: grid; place-items: center; box-shadow: var(--hard-sm); transition: transform var(--t-fast) var(--spring), background var(--t-fast); }
.fav:hover { transform: scale(1.1) rotate(-8deg); }
.fav[aria-pressed="true"] { background: var(--pink); }
.fav[aria-pressed="true"] svg { fill: currentColor; }
.fav.pop { animation: heart var(--t-slow) var(--spring); }
@keyframes heart { 35% { transform: scale(1.35) rotate(-12deg); } 70% { transform: scale(.92); } }
.chip { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: var(--bw) solid var(--ink); background: var(--surface); font: 900 .94rem var(--f-body); color: var(--ink); cursor: pointer; transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast), background var(--t-fast); white-space: nowrap; }
.chip svg { color: var(--pink); }
.chip:hover { transform: translateY(-2px); box-shadow: var(--hard-sm); }
.chip:active { transform: translateY(1px); box-shadow: none; }
.chip.on { background: var(--cyan); box-shadow: var(--hard-sm); } .chip.on svg { color: var(--ink); }
.chip-soft { min-height: 28px; padding: 2px 11px; font-size: .78rem; border-width: 1.5px; background: var(--cyan-soft); cursor: default; gap: 5px; box-shadow: none; }
.chip-soft:hover { transform: none; box-shadow: none; }
.chip-soft svg { color: inherit; width: 1em; height: 1em; }
a.chip-soft { cursor: pointer; min-height: 38px; padding: 6px 14px; font-size: .9rem; background: var(--pink-soft); } a.chip-soft:hover { box-shadow: var(--hard-sm); transform: translateY(-2px); }
.ph { display: grid; place-items: center; background: var(--pink-soft); width: 100%; height: 100%; border-radius: var(--r-sm); }
.ph img { width: 30% !important; height: auto !important; opacity: .5; mix-blend-mode: normal !important; }

/* rail */
.rail { position: relative; }
.rail-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, calc((100% - 66px) / 4)); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 8px 10px 26px; margin: -8px -10px 0; scrollbar-width: none; overscroll-behavior-x: contain; }
.rail-track::-webkit-scrollbar { display: none; }
.rail-track > .card { scroll-snap-align: start; }
.rail-nav { display: flex; gap: 12px; justify-content: flex-end; }
.rail-btn { width: 52px; height: 52px; border-radius: 50%; border: var(--bw) solid var(--ink); background: var(--surface); color: var(--ink); cursor: pointer; display: grid; place-items: center; box-shadow: var(--hard-sm); transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast); }
.rail-btn:hover:not(:disabled) { background: var(--pink); transform: translateY(-2px); box-shadow: var(--hard); }
.rail-btn:active:not(:disabled) { transform: translateY(2px); box-shadow: none; }
.rail-btn:disabled { opacity: .35; cursor: default; box-shadow: none; }
.rail-btn[data-rail-prev] .arr { transform: scaleX(-1); }
[dir="rtl"] .rail-btn[data-rail-prev] .arr { transform: none; }

/* ---------------------------------------------------------------- packages page */
.pkg-list { display: grid; gap: 30px; }
.pkg { display: grid; grid-template-columns: 1fr 1.15fr; background: var(--surface); border-radius: var(--r-xl); border: var(--bw) solid var(--ink); overflow: hidden; box-shadow: var(--hard-lg); scroll-margin-top: calc(var(--header-h) + 24px); }
.pkg:nth-child(2) { background: var(--cyan-soft); } .pkg:nth-child(3) { background: var(--pink-soft); }
.pkg:target { outline: 4px solid var(--pink); outline-offset: 4px; }
.pkg-imgs { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; padding: 14px; min-height: 320px; border-inline-end: var(--bw) solid var(--ink); }
.pkg-imgs figure { margin: 0; background: var(--surface); overflow: hidden; border-radius: var(--r-sm); border: var(--bw) solid var(--ink); display: grid; place-items: center; }
.pkg-imgs figure:first-child { grid-row: span 2; }
.pkg-imgs img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.pkg:hover .pkg-imgs img { transform: scale(1.05); }
.pkg-body { padding: clamp(24px, 3.5vw, 44px); }
.pkg-items { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.pkg-items a { display: inline-flex; min-height: 38px; align-items: center; padding: 6px 14px; border-radius: 999px; background: var(--surface); border: var(--bw) solid var(--ink); font-weight: 900; font-size: .9rem; transition: transform var(--t-fast), box-shadow var(--t-fast); }
.pkg-items a:hover { transform: translateY(-2px); box-shadow: var(--hard-sm); }
.pkg-cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------------------------------------------------------------- tips / checklist / faq / contact */
.tips { margin: 0; padding: 0; list-style: none; counter-reset: t; display: grid; gap: 14px; }
.tips li { counter-increment: t; background: var(--surface); border-radius: var(--r); padding: 18px 22px; border: var(--bw) solid var(--ink); box-shadow: var(--hard-sm); display: flex; gap: 16px; align-items: center; }
.tips li::before { content: counter(t); flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font: 900 1.1rem var(--f-head); color: var(--ink); background: var(--pink); border: var(--bw) solid var(--ink); }
.cgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.cgroup { background: var(--surface); border: var(--bw) solid var(--ink); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--hard); }
.cgroup:nth-child(2) { background: var(--cyan-soft); } .cgroup:nth-child(3) { background: var(--pink-soft); }
.cgroup h2 { font-size: 1.35rem; display: flex; align-items: center; gap: 14px; }
.why-ico { width: 48px; height: 48px; border-radius: 16px; display: inline-grid; place-items: center; background: var(--pink); border: var(--bw) solid var(--ink); color: var(--ink); flex: none; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.checks label { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; padding: 10px 12px; border-radius: var(--r-sm); transition: background var(--t-fast); min-height: 44px; }
.checks label:hover { background: rgba(255,255,255,.7); }
.checks input { width: 22px; height: 22px; accent-color: var(--pink); margin-top: 5px; flex: none; }
.checks input:checked + span { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--pink); text-decoration-thickness: 2px; }
.faq { border: var(--bw) solid var(--ink); border-radius: var(--r); background: var(--surface); margin-bottom: 12px; padding: 0 20px; transition: box-shadow var(--t-fast); }
.faq[open] { box-shadow: var(--hard-sm); background: var(--cyan-soft); }
.faq summary { cursor: pointer; padding: 16px 0; font: 900 1.06rem var(--f-body); color: var(--ink); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--pink); border: var(--bw) solid var(--ink); color: var(--ink); font-size: 1.3rem; line-height: 1; transition: transform var(--t) var(--spring); }
.faq[open] summary::after { transform: rotate(135deg); }
.faq p { color: var(--ink-2); padding-bottom: 18px; margin: 0; }
.faq[open] p { animation: rise var(--t) var(--ease); }
.contact-card { background: var(--pink); color: var(--ink); border: var(--bw) solid var(--ink); border-radius: var(--r-xl); padding: 34px; display: grid; gap: 12px; align-self: start; box-shadow: var(--hard-lg); }
.contact-card .btn-ghost { background: var(--surface); }
.contact-card a:not(.btn) { color: var(--ink); text-decoration: underline; }

/* ---------------------------------------------------------------- catalog */
.filters { position: sticky; top: var(--header-h); z-index: var(--z-sticky); background: var(--paper); padding: 14px 0; margin-bottom: 26px; box-shadow: 0 0 0 100vmax var(--paper), 0 var(--bw) 0 100vmax var(--ink); clip-path: inset(0 -100vmax calc(var(--bw) * -1)); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 4px 4px 14px; }
.chips::-webkit-scrollbar { display: none; }
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.search { flex: 1 1 260px; position: relative; display: flex; align-items: center; }
.search svg { position: absolute; inset-inline-start: 16px; color: var(--ink); pointer-events: none; }
.search input, .sel select, .fields input, .fields select { width: 100%; font: inherit; font-size: 1rem; min-height: 50px; padding: 10px 18px; border-radius: 999px; border: var(--bw) solid var(--ink); background: var(--surface); color: var(--ink); transition: box-shadow var(--t-fast); }
.search input { padding-inline-start: 48px; }
.search input:focus, .sel select:focus, .fields input:focus, .fields select:focus { outline: none; box-shadow: var(--hard-sm); }
.sel { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--muted); font-weight: 900; }
.sel select { width: auto; padding-inline-end: 38px; cursor: pointer; }
.count-out { margin-inline-start: auto; color: var(--muted); font-size: .94rem; white-space: nowrap; padding-inline: 4px; }
.count-out b { color: var(--ink); font: 900 1.1rem var(--f-body); }
.card.hide { display: none; }
.card.show-in { animation: pop var(--t) var(--spring) both; }
.no-results { text-align: center; color: var(--muted); padding: 48px 0; display: grid; justify-items: center; gap: 4px; }
.no-results[hidden] { display: none; }
.empty-ico { width: 76px; height: 76px; border-radius: 24px; display: grid; place-items: center; background: var(--pink); border: var(--bw) solid var(--ink); color: var(--ink); margin-bottom: 10px; box-shadow: var(--hard-sm); transform: rotate(-6deg); }
.empty-ico svg { width: 34px; height: 34px; }

/* ---------------------------------------------------------------- product */
.crumbs { display: flex; gap: 8px; font-size: .92rem; color: var(--muted); margin-bottom: 28px; flex-wrap: wrap; align-items: center; }
.crumbs a { min-height: 32px; display: inline-flex; align-items: center; font-weight: 900; color: var(--ink); } .crumbs a:hover { text-decoration: underline; text-decoration-color: var(--pink); text-decoration-thickness: 3px; }
.product-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.product-media { border-radius: var(--r-xl); padding: clamp(20px, 3vw, 36px); aspect-ratio: 1; display: grid; place-items: center; position: sticky; top: calc(var(--header-h) + 24px); overflow: hidden; background: var(--cyan-soft); border: var(--bw) solid var(--ink); box-shadow: var(--hard-lg); }
.product-media img.main { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.product-info h1 { font-size: clamp(2.2rem, 1.4rem + 2.4vw, 3.4rem); margin-top: 10px; }
.code-line { color: var(--muted); font-size: .92rem; }
.fits { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 18px 0; font-size: .94rem; color: var(--muted); font-weight: 900; }
.spec { background: var(--surface); border: var(--bw) solid var(--ink); border-radius: var(--r); padding: 16px 20px; display: grid; grid-template-columns: auto 1fr; column-gap: 16px; margin: 18px 0; align-items: center; box-shadow: var(--hard-sm); }
.spec::before { content: ""; grid-row: span 3; width: 50px; height: 50px; border-radius: 14px; border: var(--bw) solid var(--ink); background: var(--cyan) center / 26px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314163a' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M8 3H5a2 2 0 0 0-2 2v3M21 8V5a2 2 0 0 0-2-2h-3M3 16v3a2 2 0 0 0 2 2h3M16 21h3a2 2 0 0 0 2-2v-3'/%3E%3C/svg%3E"); }
.spec span { font-size: .84rem; color: var(--muted); font-weight: 900; }
.spec strong { font: 900 1.35rem var(--f-head); color: var(--ink); }
.spec small { color: var(--muted); }
.product-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 12px; }
.note-box { margin-top: 28px; border-radius: var(--r); padding: 22px 24px; background: var(--pink-soft); border: var(--bw) solid var(--ink); }
.note-box h2 { font-size: 1.15rem; }
.note-box ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .98rem; }
.note-box li { display: flex; gap: 10px; align-items: flex-start; } .note-box li svg { color: var(--ink); margin-top: 6px; }

/* ---------------------------------------------------------------- planner */
.planner { max-width: 880px; }
.progress-row { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.step-count { font: 900 .95rem var(--f-body); color: var(--ink); white-space: nowrap; }
.progress { flex: 1; height: 16px; background: var(--surface); border: var(--bw) solid var(--ink); border-radius: 10px; overflow: hidden; }
.progress span { display: block; height: 100%; width: 20%; background: var(--pink) repeating-linear-gradient(-45deg, transparent 0 8px, rgba(20,22,58,.14) 8px 16px); border-inline-end: var(--bw) solid var(--ink); transition: width var(--t-slow) var(--spring); }
.pform { background: var(--surface); border: var(--bw) solid var(--ink); border-radius: var(--r-xl); padding: clamp(22px, 4vw, 44px); box-shadow: var(--hard-lg); }
.pstep { border: 0; padding: 0; margin: 0; display: none; min-width: 0; }
.pstep.on { display: block; animation: slidein var(--t-slow) var(--ease); }
@keyframes slidein { from { opacity: 0; transform: translateX(28px); } }
[dir="rtl"] .pstep.on { animation-name: slidein-rtl; }
@keyframes slidein-rtl { from { opacity: 0; transform: translateX(-28px); } }
.pstep legend { font: 900 clamp(1.4rem, 1.2rem + .8vw, 1.9rem) var(--f-head); color: var(--ink); display: flex; align-items: center; gap: 14px; margin-bottom: 24px; padding: 0; }
.step-n { width: 44px; height: 44px; border-radius: 14px; background: var(--cyan); border: var(--bw) solid var(--ink); color: var(--ink); font: 900 1.1rem var(--f-head); display: inline-grid; place-items: center; flex: none; transform: rotate(-6deg); }
.opt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin-bottom: 8px; }
.opt-grid.tiles { grid-template-columns: repeat(3, 1fr); }
.opt-grid.tiles:has(> :nth-child(4)) { grid-template-columns: repeat(2, 1fr); }
.opt { position: relative; display: flex; }
.opt input { position: absolute; opacity: 0; inset: 0; }
.opt > span { flex: 1; display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 14px 18px; border: var(--bw) solid var(--ink); border-radius: var(--r); cursor: pointer; background: var(--surface); transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast), background var(--t-fast); }
.tiles .opt > span { flex-direction: column; align-items: flex-start; gap: 14px; padding: 20px; min-height: 124px; }
.opt > span svg { width: 44px; height: 44px; padding: 9px; border-radius: 13px; border: var(--bw) solid var(--ink); background: var(--cyan-soft); color: var(--ink); transition: transform var(--t) var(--spring), background var(--t-fast); box-sizing: border-box; }
.opt b { font-weight: 900; color: var(--ink); line-height: 1.5; }
.opt:hover > span { transform: translateY(-2px); box-shadow: var(--hard-sm); }
.opt input:checked + span { background: var(--pink); box-shadow: var(--hard); transform: translate(calc(var(--sx) * -.3), -3px); }
.opt input:checked + span svg { background: var(--surface); transform: rotate(-10deg); }
.opt input:checked + span::after { content: ""; position: absolute; top: 12px; inset-inline-end: 12px; width: 26px; height: 26px; border-radius: 50%; border: var(--bw) solid var(--ink); background: var(--surface) center / 15px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314163a' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E"); animation: pop var(--t) var(--spring); }
.opt input:focus-visible + span { outline: 3px solid var(--cyan); outline-offset: 3px; }
.opt-small > span svg { padding: 12px; } .opt-medium > span svg { padding: 10px; }
.q-sub { display: flex; align-items: center; gap: 8px; font: 900 1rem var(--f-body); color: var(--ink); margin: 8px 0 12px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fields label { display: grid; gap: 8px; }
.fields label > span { display: flex; align-items: center; gap: 8px; font: 900 .95rem var(--f-body); color: var(--ink); }
.fields input, .fields select { border-radius: var(--r-sm); }
.pnav { display: flex; justify-content: space-between; margin-top: 30px; gap: 12px; }
.pnav .btn[disabled] { opacity: .35; pointer-events: none; box-shadow: none; }
.shake { animation: shake .36s; }
@keyframes shake { 25% { transform: translateX(-7px) rotate(-1deg); } 75% { transform: translateX(7px) rotate(1deg); } }
.presult { animation: rise var(--t-slow) var(--ease); }
.summary { display: flex; flex-wrap: wrap; gap: 8px; margin: -12px 0 28px; }
.summary span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: var(--surface); border: var(--bw) solid var(--ink); font-size: .92rem; }
.summary span:nth-child(3n+1) { background: var(--pink-soft); } .summary span:nth-child(3n+2) { background: var(--cyan-soft); }
.summary span b { color: var(--muted); }
.presult-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* ---------------------------------------------------------------- testimonials */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.quote { margin: 0; padding: 28px 26px 24px; border: var(--bw) solid var(--ink); border-radius: var(--r-lg); box-shadow: var(--hard); display: flex; flex-direction: column; gap: 14px; position: relative; }
.quote:nth-child(2) { transform: translateY(18px) rotate(-1deg); }
.quote.reveal.in:nth-child(2) { transform: translateY(18px) rotate(-1deg); }
.q-cyan { background: var(--cyan-soft); } .q-pink { background: var(--pink); } .q-paper { background: var(--surface); }
.quote::before { content: "”"; position: absolute; top: -34px; inset-inline-end: 18px; font: 900 7rem/1 var(--f-head); color: var(--ink); }
.stars { color: var(--ink); letter-spacing: 3px; font-size: 1.1rem; }
.q-pink .stars { color: var(--paper); -webkit-text-stroke: 1px var(--ink); }
.quote blockquote { margin: 0; font: 900 1.14rem/1.75 var(--f-body); color: var(--ink); }
.quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.quote figcaption b { display: block; font-weight: 900; color: var(--ink); }
.quote figcaption small { color: var(--ink-2); }
.avatar { width: 46px; height: 46px; border-radius: 50%; border: var(--bw) solid var(--ink); background: var(--surface); display: grid; place-items: center; font: 900 1.2rem var(--f-head); color: var(--ink); flex: none; }
.q-paper .avatar { background: var(--pink); }

/* ---------------------------------------------------------------- CTA band */
.cta-band { padding: 0 0 clamp(64px, 8vw, 110px); }
.cta-in { background: var(--ink); color: #fff; border-radius: var(--r-xl); padding: clamp(34px, 5vw, 64px); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; position: relative; overflow: hidden; box-shadow: calc(var(--sx) * 1.6) 8px 0 var(--pink); border: var(--bw) solid var(--ink); }
.cta-in > div { position: relative; z-index: 1; }
.cta-in h2 { color: #fff; margin-bottom: 6px; }
.cta-in p { margin: 0; color: #dfe1f3; font-size: 1.08rem; }
.cta-star { position: absolute; width: 150px; height: 150px; inset-inline-end: -30px; top: -40px; animation: spin 24s linear infinite; }
.cta-star path { fill: var(--pink); }
.cta-squig { position: absolute; width: 180px; height: 44px; inset-inline-start: 36%; bottom: 14px; }
.cta-squig path { stroke: var(--cyan); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.cta-in .btn { box-shadow: calc(var(--sx) * .8) 4px 0 var(--cyan); }
.cta-in .btn:hover { box-shadow: calc(var(--sx) * 1.3) 6px 0 var(--cyan); }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--ink); color: #cfd2ea; padding: 64px 0 28px; border-top: var(--bw) solid var(--ink); position: relative; }
.footer-in { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 32px; }
.f-h { color: var(--cyan); font-size: 1.15rem; margin-bottom: 14px; }
.site-footer a { display: flex; align-items: center; gap: 10px; min-height: 38px; font-size: .98rem; transition: color var(--t-fast); width: fit-content; }
.site-footer a:hover { color: var(--pink); }
.f-brand img { width: 118px; height: auto; background: var(--paper); border-radius: 28px; padding: 6px; margin-bottom: 14px; border: var(--bw) solid var(--pink); transform: rotate(-4deg); }
.f-brand p { max-width: 30ch; }
.f-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; border-top: 1px dashed rgba(255,255,255,.25); margin-top: 40px; padding-top: 20px; font-size: .86rem; color: #a9adcb; }

/* ---------------------------------------------------------------- drawer (enter 420ms / exit 220ms) */
.drawer { position: fixed; inset: 0; z-index: var(--z-drawer); visibility: hidden; transition: visibility 0s var(--t); }
.drawer.open { visibility: visible; transition: none; }
.drawer-bg { position: absolute; inset: 0; background: rgba(20,22,58,.55); opacity: 0; transition: opacity var(--t); }
.drawer.open .drawer-bg { opacity: 1; }
.drawer-panel { position: absolute; top: 0; bottom: 0; inset-inline-end: 0; width: min(440px, 100%); background: var(--paper); border-inline-start: var(--bw) solid var(--ink); display: flex; flex-direction: column; transform: translateX(100%); transition: transform var(--t) cubic-bezier(.4, 0, 1, 1); }
[dir="rtl"] .drawer-panel { transform: translateX(-100%); }
.drawer.open .drawer-panel { transform: none; transition: transform var(--t-slow) var(--ease); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: var(--bw) solid var(--ink); background: var(--pink); }
.drawer-head h2 { font-size: 1.45rem; margin: 0; display: flex; align-items: center; gap: 10px; }
.drawer-head .count { background: var(--surface); }
.x { border: var(--bw) solid var(--ink); background: var(--surface); color: var(--ink); width: 46px; height: 46px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; box-shadow: var(--hard-sm); transition: transform var(--t) var(--spring); }
.x:hover { transform: rotate(90deg); }
.drawer-list { list-style: none; margin: 0; padding: 10px 24px; overflow-y: auto; flex: 1; }
.drawer-list:empty { display: none; }
.drawer-list li { display: grid; grid-template-columns: 70px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1.5px dashed var(--ink); animation: rise var(--t) var(--ease); }
.drawer-list img, .drawer-list .ph { width: 70px; height: 70px; object-fit: contain; border-radius: 16px; background: var(--cyan-soft); border: var(--bw) solid var(--ink); padding: 4px; }
.drawer-list a { font: 900 1rem var(--f-body); color: var(--ink); display: block; line-height: 1.45; }
.drawer-list .rm { border: var(--bw) solid transparent; background: none; color: var(--ink); cursor: pointer; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; transition: border-color var(--t-fast), background var(--t-fast); }
.drawer-list .rm:hover { border-color: var(--ink); background: var(--pink-soft); }
.drawer-empty { padding: 40px 24px; color: var(--muted); text-align: center; display: grid; justify-items: center; flex: 1; align-content: center; }
.drawer-empty[hidden] { display: none; }
.drawer-foot { padding: 18px 24px calc(22px + env(safe-area-inset-bottom)); border-top: var(--bw) solid var(--ink); text-align: center; background: var(--surface); }
.drawer-foot .small { color: var(--muted); }
.drawer-foot .btn[aria-disabled="true"] { opacity: .4; pointer-events: none; box-shadow: none; }

/* ---------------------------------------------------------------- toast */
.toast { position: fixed; bottom: 24px; inset-inline-start: 50%; translate: -50% 20px; display: flex; align-items: center; gap: 14px; background: var(--ink); color: #fff; padding: 10px 12px 10px 20px; border-radius: 999px; font-weight: 900; font-size: .96rem; opacity: 0; pointer-events: none; transition: opacity var(--t), translate var(--t) var(--spring); z-index: var(--z-toast); box-shadow: calc(var(--sx) * .8) 4px 0 var(--pink); white-space: nowrap; }
[dir="rtl"] .toast { translate: 50% 20px; padding: 10px 20px 10px 12px; }
.toast.on { opacity: 1; translate: -50% 0; pointer-events: auto; }
[dir="rtl"] .toast.on { translate: 50% 0; }
.toast-undo { border: var(--bw) solid var(--cyan); background: transparent; color: var(--cyan); font: 900 .9rem var(--f-body); padding: 0 16px; min-height: 36px; border-radius: 999px; cursor: pointer; }
.toast-undo:hover { background: var(--cyan); color: var(--ink); }

.mobile-bar { display: none; }

/* ---------------------------------------------------------------- reveal (stagger 40ms) */
.reveal { transform: translateY(20px); transition: transform .5s var(--spring); transition-delay: calc(var(--d, 0) * 40ms); }
.reveal.in { opacity: 1; transform: none; }
.step-card.reveal.in:nth-child(even) { transform: translateY(24px); }
.spin-slow { animation: spin 24s linear infinite; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .nav a { padding: 7px 11px; font-size: .92rem; }
  .occ-blocks { grid-template-columns: repeat(2, 1fr); }
  .occ-block { min-height: 340px; }
  .rail-track { grid-auto-columns: minmax(240px, calc((100% - 44px) / 3)); }
  .steps2 { grid-template-columns: repeat(2, 1fr); }
  .tickets { grid-template-columns: 1fr 1fr; }
  .quotes { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 920px) {
  :root { --header-h: 68px; }
  .burger { display: block; }
  .hide-sm { display: none; }
  .nav { position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; background: var(--paper); padding: 12px var(--gutter) 20px; gap: 6px; border-bottom: var(--bw) solid var(--ink); transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all var(--t) var(--ease); }
  .nav a { padding: 12px 16px; font-size: 1.1rem; min-height: 52px; border-color: var(--ink); background: var(--surface); }
  .nav-open .nav { transform: none; opacity: 1; visibility: visible; }
  .hero2-in, .page-hero-in, .split, .product-in, .pkg, .why2 { grid-template-columns: 1fr; }
  .collage { max-width: 440px; }
  .product-media { position: static; }
  .pkg-imgs { border-inline-end: 0; border-bottom: var(--bw) solid var(--ink); }
  .cgrid { grid-template-columns: 1fr; }
  .footer-in { grid-template-columns: 1fr 1fr; }
  .mobile-bar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; inset-inline: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: var(--z-bar); background: var(--ink); padding: 6px; border-radius: 26px; border: var(--bw) solid var(--ink); box-shadow: calc(var(--sx) * .8) 4px 0 var(--pink); }
  .mobile-bar > * { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 56px; color: #fff; font: 900 .74rem var(--f-body); border-radius: 20px; border: 0; background: none; cursor: pointer; white-space: nowrap; transition: background var(--t-fast); }
  .mobile-bar > * svg { width: 22px; height: 22px; }
  .mobile-bar > *:active { background: rgba(255,255,255,.12); }
  .mobile-bar .mb-plan { background: var(--pink); color: var(--ink); border: var(--bw) solid var(--ink); }
  .mobile-bar .mb-wa { color: #7ee0a8; }
  .mobile-bar .count { position: absolute; top: 4px; inset-inline-end: calc(50% - 26px); }
  body { padding-bottom: 96px; }
  .toast { bottom: 104px; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  :root { --sx: 4px; --sy: 4px; } [dir="rtl"] { --sx: -4px; }
  .wordmark { display: none; }
  .collage { max-width: 340px; margin-top: 8px; }
  .badge-20 { width: 86px; height: 86px; } .badge-20 b { font-size: 1.6rem; }
  .ticker span:not(.x) { font-size: 1.05rem; }
  .occ-blocks { grid-template-columns: 1fr 1fr; gap: 12px; }
  .occ-block { min-height: 250px; padding: 16px 14px 0; }
  .occ-block p { display: none; }
  .occ-block h3 { font-size: 1.2rem; }
  .occ-photo { height: 120px; margin-inline: -14px; }
  .occ-go { top: 12px; inset-inline-end: 12px; padding: 5px 8px; }
  .occ-go .i:not(.arr) { display: none; }
  .grid.cards { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .rail-track { grid-auto-columns: 70%; gap: 14px; }
  .rail-nav { display: none; }
  .card-media { padding: 8px; }
  .card-body { padding: 10px 12px 12px; } .card-body h3 { font-size: 1rem; }
  .card-cat { font-size: .76rem; }
  .card-meta .chip-soft { display: none; }
  .steps2 { grid-template-columns: 1fr; }
  .step-card:nth-child(even), .step-card.reveal.in:nth-child(even) { transform: none; }
  .big-num { font-size: 3.4rem; }
  .cat-cloud { justify-content: flex-start; gap: 10px; }
  .cat-sticker { font-size: 1rem; padding: 8px 10px 8px 14px; } [dir="rtl"] .cat-sticker { padding: 8px 14px 8px 10px; }
  .cat-sticker svg { width: 22px; height: 22px; } .cat-sticker b { min-width: 28px; height: 28px; }
  .tickets { grid-template-columns: 1fr; }
  .quotes { grid-template-columns: 1fr; gap: 26px; }
  .quote:nth-child(2), .quote.reveal.in:nth-child(2) { transform: none; }
  .fields { grid-template-columns: 1fr; }
  .opt-grid.tiles { grid-template-columns: 1fr; }
  .opt-grid.tiles:has(> :nth-child(4)) { grid-template-columns: 1fr 1fr; }
  .opt-grid.tiles:not(:has(> :nth-child(4))) .opt > span { flex-direction: row; align-items: center; min-height: 66px; }
  .tiles .opt > span { min-height: 112px; padding: 16px; }
  .footer-in { grid-template-columns: 1fr; }
  .filters { position: static; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .sel { flex: 1 1 45%; } .sel span { display: none; } .sel select { width: 100%; }
  .count-out { width: 100%; }
  .product-cta .btn-lg { flex: 1 1 auto; }
}
/* ================================================================ v4: quiz · personalisation · skeletons · editorial */

/* onboarding quiz (hero) */
.quiz { margin-top: 26px; background: var(--surface); border: var(--bw) solid var(--ink); border-radius: var(--r-lg); padding: clamp(18px, 3vw, 28px); box-shadow: var(--hard-lg); }
.q-top { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.q-back { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; cursor: pointer; font-weight: 900; color: var(--ink); min-height: 44px; padding: 0 6px; }
.q-back .arr { transform: scaleX(-1); } [dir="rtl"] .q-back .arr { transform: none; }
.q-count { font: 900 .95rem var(--f-body); color: var(--ink); direction: ltr; unicode-bidi: isolate; }
.q-skip { margin-inline-start: auto; font-size: .9rem; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; min-height: 44px; display: inline-flex; align-items: center; }
.q-bar { height: 10px; border: var(--bw) solid var(--ink); border-radius: 8px; overflow: hidden; margin: 8px 0 18px; background: var(--paper); }
.q-bar span { display: block; height: 100%; width: 12%; background: var(--pink); border-inline-end: var(--bw) solid var(--ink); transition: width var(--t-slow) var(--spring); }
.q-panel { display: none; }
.q-panel.on { display: block; animation: slidein-rtl var(--t-slow) var(--ease); }
[dir="ltr"] .q-panel.on { animation-name: slidein; }
.q-title { display: flex; align-items: center; gap: 10px; font: 900 clamp(1.35rem, 1.1rem + .9vw, 1.8rem)/1.3 var(--f-head); color: var(--ink); margin: 0 0 16px; }
.q-title svg { color: var(--pink); }
.q-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.q-opts:has(> :nth-child(4)) { grid-template-columns: repeat(2, 1fr); }
.q-opt { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 16px; border: var(--bw) solid var(--ink); border-radius: var(--r); background: var(--paper); font: 900 1.02rem/1.35 var(--f-body); color: var(--ink); cursor: pointer; transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast), background var(--t-fast); animation: pop var(--t) var(--spring) both; animation-delay: calc(var(--d, 0) * 40ms); }
.q-opt svg { width: 38px; height: 38px; padding: 7px; border-radius: 12px; border: var(--bw) solid var(--ink); background: var(--cyan-soft); flex: none; box-sizing: border-box; transition: transform var(--t) var(--spring); }
.q-opt:hover { transform: translateY(-2px); box-shadow: var(--hard-sm); background: var(--surface); }
.q-opt:hover svg { transform: rotate(-10deg); }
.q-opt:active { transform: translate(calc(var(--sx) * .5), 2px); box-shadow: none; }
.q-opt.sel { background: var(--pink); box-shadow: var(--hard-sm); }
.q-opt.sel svg { background: var(--surface); }
.q-done { animation: pop var(--t-slow) var(--spring); }
.q-sum { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 18px; }
.q-sum span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; border: var(--bw) solid var(--ink); font-weight: 900; font-size: .95rem; background: var(--cyan-soft); }
.q-sum span:first-child { background: var(--pink); }
.q-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.confetti { position: fixed; z-index: var(--z-toast); pointer-events: none; width: 26px; height: 26px; animation: burst .9s var(--ease) forwards; }
.confetti path { stroke: var(--ink); stroke-width: 5; }
@keyframes burst { from { opacity: 1; transform: translate(0, 0) scale(.4) rotate(0); } to { opacity: 0; transform: translate(var(--x), var(--y)) scale(1) rotate(200deg); } }

/* personalised section */
.for-you { background: var(--pink-soft); border-block: var(--bw) solid var(--ink); scroll-margin-top: var(--header-h); }
.for-you .q-sum { margin: 8px 0 0; }
.loading-line { display: flex; align-items: center; gap: 12px; font-weight: 900; color: var(--ink); margin: 0 0 18px; }
.dots { display: inline-flex; gap: 5px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--pink); border: 1.5px solid var(--ink); animation: dot .9s ease-in-out infinite; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 50% { transform: translateY(-7px); } }
.fy-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 30px; }
.reassure { display: flex; align-items: center; gap: 8px; color: var(--muted); margin: 0; flex-basis: 100%; }
.drawer-foot .reassure { justify-content: center; margin-top: 10px; }
.reassure svg { color: var(--wa); }
.fit-badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 12px; border-radius: 999px; background: var(--cyan); border: var(--bw) solid var(--ink); color: var(--ink); font-weight: 900; font-size: .82rem; margin-inline-start: 8px; vertical-align: middle; }
.fit-badge[hidden] { display: none; }
.card-fit { position: absolute; top: 12px; inset-inline-start: 12px; z-index: 2; padding: 2px 10px; border-radius: 999px; background: var(--cyan); border: var(--bw) solid var(--ink); font: 900 .74rem var(--f-body); color: var(--ink); transform: rotate(-4deg); pointer-events: none; }
.chip-you { background: var(--pink); box-shadow: var(--hard-sm); }
.chip-you[hidden] { display: none; }
.chip-you[aria-pressed="true"] { background: var(--ink); color: #fff; } .chip-you[aria-pressed="true"] svg { color: var(--pink); }

/* skeletons: pulse until the image has loaded, then fade the image in */
@keyframes skpulse { 50% { background-color: #ece3f3; } }
.sk-card { pointer-events: none; box-shadow: var(--hard-sm); }
.sk-card .card-media { background: #f1eaf6; animation: skpulse 1.1s ease-in-out infinite; }
.sk-line { display: block; height: 12px; border-radius: 6px; background: #efe8f5; margin: 6px 0; animation: skpulse 1.1s ease-in-out infinite; }
.sk-line.w60 { width: 60%; } .sk-line.w40 { width: 40%; }

/* drawer: complete-the-party nudge */
.drawer-more { padding: 14px 24px; border-top: var(--bw) dashed var(--ink); background: var(--cyan-soft); }
.drawer-more[hidden] { display: none; }
.drawer-more h3 { font-size: 1.05rem; margin-bottom: 8px; }
.drawer-more ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.drawer-more li { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; font-weight: 900; color: var(--ink); }
.drawer-more img, .drawer-more .ph { width: 48px; height: 48px; object-fit: contain; border-radius: 12px; border: var(--bw) solid var(--ink); background: var(--surface); padding: 2px; }
.drawer-more .add-mini { border: var(--bw) solid var(--ink); background: var(--pink); border-radius: 999px; font-weight: 900; min-height: 40px; padding: 0 14px; cursor: pointer; box-shadow: var(--hard-sm); }
.drawer-more .add-mini:active { transform: translateY(2px); box-shadow: none; }

/* ---------- editorial: risograph duotone + halftone (mood images only, never product accuracy) */
.duo { position: relative; margin: 0; overflow: hidden; border: var(--bw) solid var(--ink); border-radius: var(--r-lg); box-shadow: var(--hard-lg); background: var(--pink); isolation: isolate; }
.duo.tone-cyan, .duo.tone-paper { background: var(--cyan); }
.duo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.3) brightness(1.08); mix-blend-mode: multiply; transition: filter .6s var(--ease); }
.duo::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(20,22,58,.4) 1px, transparent 1.5px); background-size: 5px 5px; mix-blend-mode: multiply; pointer-events: none; transition: opacity .6s var(--ease); }
@media (hover: hover) { .duo:hover img { filter: none; mix-blend-mode: normal; } .duo:hover::after { opacity: 0; } }


.ed-statement { padding: clamp(64px, 9vw, 130px) 0; border-block: var(--bw) solid var(--ink); }
.ed-statement.tone-pink { background: var(--pink-soft); } .ed-statement.tone-cyan { background: var(--cyan-soft); }
.ed-statement.tone-paper { background: var(--surface); } .ed-statement.tone-ink { background: var(--ink); }
.ed-statement.tone-ink .ed-statement-text { color: #fff; }
.ed-statement-text { font: 900 clamp(2rem, 1rem + 4vw, 4.8rem)/1.3 var(--f-head); color: var(--ink); margin: 0; max-width: 20ch; text-wrap: balance; }
.st-grid { display: flex; justify-content: flex-start; }

.ed-band { position: relative; border-block: var(--bw) solid var(--ink); background: var(--paper); }
.ed-band-in { position: relative; }
.ed-band-media { border-radius: 0; border: 0; box-shadow: none; height: clamp(380px, 62vh, 680px); }
.ed-band .ed-statement-text { position: absolute; inset-inline-start: max(var(--gutter), calc((100% - 1220px) / 2)); bottom: clamp(24px, 5vw, 64px); max-width: min(18ch, 88%); background: var(--paper); border: var(--bw) solid var(--ink); border-radius: var(--r-lg); padding: clamp(18px, 3vw, 36px); box-shadow: var(--hard-lg); font-size: clamp(1.8rem, 1rem + 3vw, 4rem); }

.giant { font-size: clamp(3.2rem, 1rem + 8vw, 8.5rem); line-height: 1.05; }
.giant-hero { padding-bottom: clamp(40px, 5vw, 64px); }

@media (max-width: 920px) {
}
@media (max-width: 600px) {
  .q-opts, .q-opts:has(> :nth-child(4)) { grid-template-columns: 1fr 1fr; }
  .q-opts:not(:has(> :nth-child(4))) { grid-template-columns: 1fr; }
  .q-opt { min-height: 58px; font-size: .96rem; padding: 10px 12px; }
  .q-skip { font-size: .82rem; }
  .fy-cta .btn { width: 100%; }
  .ed-band-media { height: 420px; }
  .ed-band .ed-statement-text { position: relative; inset: auto; margin: -80px var(--gutter) 0; max-width: none; }
}
@media (prefers-reduced-motion: reduce) { .confetti { display: none; } .sk-line, .sk-card .card-media, .dots i { animation: none !important; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .ticker-track { animation: none; }
}
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* generated product photos: they are real photos on white, so no blend trick and a clean white frame */
.card-media img.photo { mix-blend-mode: normal; object-fit: contain; }
.card-media:has(img.photo) { background: #fff; padding: 6px; }
.gal { margin: 0; display: grid; gap: 10px; }
.gal-main { aspect-ratio: 1; background: #fff; border: var(--bw) solid var(--ink); border-radius: var(--r-lg); overflow: hidden; display: grid; place-items: center; }
.gal-main.k-inuse { aspect-ratio: 16 / 9; }
.gal-main img { width: 100%; height: 100%; object-fit: contain; }
.gal-main.k-inuse img { object-fit: cover; }
.gal-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.g-th { display: grid; gap: 4px; justify-items: center; padding: 4px; border: 2px solid transparent; border-radius: 14px; background: none; cursor: pointer; font: inherit; color: var(--ink); min-width: 44px; }
.g-th img { width: 76px; height: 76px; object-fit: cover; border-radius: 10px; border: 1.5px solid var(--ink); background: #fff; }
.g-th span { font-size: .8rem; font-weight: 700; }
.g-th.on { border-color: var(--pink); }
.g-th:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
.gal figcaption { font-size: .85rem; color: var(--muted); }
/* gallery morph: only the frame's height animates (square <-> 16:9); the old photo fades out on top of the new one */
.gal-main { transition: height .55s cubic-bezier(.65, 0, .35, 1); }
.gal-main .gal-ghost { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; opacity: 1; transition: opacity .45s ease; pointer-events: none; }
.gal-main .gal-ghost.out { opacity: 0; }

/* image skeletons: flat placeholder at once; only if the photo is still loading after .3s does it pulse (opacity = composited, cheap) */
.card-media:has(img), .gal-main { position: relative; }
.card-media:has(img)::before, .gal-main::before { content: ""; position: absolute; inset: 0; background: #f1eaf6; opacity: 0; pointer-events: none; transition: opacity .25s; }
.card-media:has(img):not(.loaded)::before, .gal-main:not(.loaded)::before, .gal-main.is-loading::before { opacity: 1; animation: skglow 1s ease-in-out .3s infinite alternate; }
.card-media img, .gal-main img { position: relative; z-index: 1; }
.gal-main.is-loading img { opacity: .35; transition: opacity .2s; }
@keyframes skglow { to { opacity: .4; } }
@media (prefers-reduced-motion: reduce) { .card-media::before, .gal-main::before { animation: none !important; } }

/* the product frame holds a gallery: let it grow to fit the thumbnails */
.product-media:has(.gal) { aspect-ratio: auto; padding: 14px; place-items: stretch; background: #fff; }
.product-media .gal-main { border-width: 1.5px; border-radius: var(--r-lg); }
.product-media img.main.photo { mix-blend-mode: normal; }

/* "at a party" scene photos fill the card / headline frame edge to edge */
.card-media:has(img.scene) { padding: 0; }
.card-media img.scene, .collage figure img.scene, .arch img.scene { object-fit: cover !important; mix-blend-mode: normal !important; }


/* speed: the catalog has 117 cards; let the browser skip laying out the ones off screen until they scroll near */
.grid.cards > .card { content-visibility: auto; contain-intrinsic-block-size: auto 340px; } /* height only: a width here made phones scroll sideways */
