/* ==========================================================================
   شو أشتري؟ — design system
   Calm palette: warm ivory, deep sage, soft sand, apricot for "buy".
   ========================================================================== */
:root {
  --bg: #f6f4ef;
  --bg-2: #efebe3;
  --surface: #ffffff;
  --ink: #1d2a2b;
  --ink-2: #3c4a4b;
  --muted: #6a7574;
  --line: #e4ded3;
  --brand: #2f6b5e;
  --brand-2: #255a4f;
  --brand-soft: #e5efeb;
  --sand: #f3ead9;
  --accent: #b55a2a;
  --accent-2: #9d4c20;
  --accent-soft: #fbece2;
  --good: #2f7a55;
  --bad: #b2493b;
  --star: #e0a63a;
  --shadow-sm: 0 1px 2px rgba(29, 42, 43, .05), 0 1px 1px rgba(29, 42, 43, .03);
  --shadow: 0 1px 2px rgba(29, 42, 43, .04), 0 8px 24px -10px rgba(29, 42, 43, .14);
  --shadow-lg: 0 2px 4px rgba(29, 42, 43, .04), 0 22px 44px -18px rgba(29, 42, 43, .25);
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --maxw: 1140px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --head: "Readex Pro", "IBM Plex Sans Arabic", Tahoma, sans-serif;
  --body: "IBM Plex Sans Arabic", Tahoma, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111716; --bg-2: #151d1b; --surface: #19221f; --ink: #e7ece9; --ink-2: #c9d2ce; --muted: #93a19c;
    --line: #26322e; --brand: #7fbfac; --brand-2: #96cdbc; --brand-soft: #1c2c27; --sand: #221f19;
    --accent: #e8a073; --accent-2: #f0b48d; --accent-soft: #2b2019; --good: #7cc79e; --bad: #e58a7c; --star: #e9b752;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.3); --shadow: 0 10px 28px -12px rgba(0,0,0,.55); --shadow-lg: 0 24px 48px -18px rgba(0,0,0,.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111716; --bg-2: #151d1b; --surface: #19221f; --ink: #e7ece9; --ink-2: #c9d2ce; --muted: #93a19c;
  --line: #26322e; --brand: #7fbfac; --brand-2: #96cdbc; --brand-soft: #1c2c27; --sand: #221f19;
  --accent: #e8a073; --accent-2: #f0b48d; --accent-soft: #2b2019; --good: #7cc79e; --bad: #e58a7c; --star: #e9b752;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.3); --shadow: 0 10px 28px -12px rgba(0,0,0,.55); --shadow-lg: 0 24px 48px -18px rgba(0,0,0,.7);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.85;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.35; color: var(--ink); letter-spacing: -.005em; }
h1 { font-weight: 700; }
h2, h3 { font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--brand-2); }
img { max-width: 100%; display: block; }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.ic { width: 1.15em; height: 1.15em; flex: none; }
bdi { unicode-bidi: isolate; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
@media (max-width: 560px) { .wrap { padding: 0 16px; } body { font-size: 16.5px; } }
.skip { position: absolute; inset-inline-start: 12px; top: -48px; background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 200; transition: top .2s; }
.skip:focus { top: 12px; }
.price, .num, td, .p-rank, .p-off { font-variant-numeric: tabular-nums; }

/* ---------- reading progress ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--accent), var(--brand)); transform-origin: right center; transform: scaleX(0); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s, background-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.header-row { display: flex; align-items: center; gap: 28px; height: 68px; transition: height .25s var(--ease); }
.site-header.scrolled .header-row { height: 58px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--head); font-weight: 700; font-size: 1.22rem; }
.logo:hover { color: var(--ink); }
.logo em { font-style: normal; color: var(--accent); }
.logo-mark { width: 34px; height: 34px; color: var(--brand); transition: transform .35s var(--ease); }
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.05); }
.nav { display: flex; gap: 4px; margin-inline-start: auto; }
.nav a { position: relative; color: var(--ink-2); text-decoration: none; font-size: .95rem; font-weight: 500; padding: 6px 12px; border-radius: 999px; transition: color .2s, background-color .2s; }
.nav a:hover { color: var(--ink); background: var(--bg-2); }
.nav a[aria-current="page"] { color: var(--brand); background: var(--brand-soft); }
.header-tools { display: flex; gap: 6px; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; transition: transform .2s var(--ease), border-color .2s, color .2s, background-color .3s; }
.icon-btn:hover { color: var(--brand); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); transform: translateY(-1px); }
.icon-btn .ic { width: 19px; height: 19px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}
.menu-toggle { display: none; }
@media (max-width: 820px) {
  .header-row { gap: 12px; }
  .menu-toggle { display: inline-grid; }
  .header-tools { margin-inline-start: auto; }
  .nav {
    position: absolute; inset-inline: 12px; top: calc(100% + 8px); margin: 0;
    flex-direction: column; gap: 2px; padding: 8px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg);
    opacity: 0; transform: translateY(-8px) scale(.98); pointer-events: none; transition: opacity .2s, transform .25s var(--ease);
  }
  .nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: 10px 14px; border-radius: 10px; }
}

/* ---------- buttons & chips ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 12px; font-family: var(--head); font-weight: 600; font-size: .98rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s, background-color .2s, color .2s; }
.btn .ic-go { transition: transform .25s var(--ease); }
.btn:hover .ic-go { transform: translateX(-4px); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--brand) 70%, transparent); }
.btn-primary:hover { background: var(--brand-2); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); color: var(--ink); border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.btn-cta { background: var(--accent); color: #fff; box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--accent) 75%, transparent); }
.btn-cta:hover { background: var(--accent-2); color: #fff; transform: translateY(-1px); }
:root[data-theme="dark"] .btn-cta, :root[data-theme="dark"] .btn-primary { color: #10201b; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-cta, :root:not([data-theme="light"]) .btn-primary { color: #10201b; } }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; color: var(--brand); background: var(--brand-soft); padding: 3px 12px; border-radius: 999px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; color: var(--brand); }
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- home: hero ---------- */
.hero { position: relative; overflow: hidden; padding: 64px 0 72px; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; z-index: -1; }
.hero::before { width: 520px; height: 520px; background: var(--brand-soft); inset-inline-start: -160px; top: -160px; }
.hero::after { width: 420px; height: 420px; background: var(--sand); inset-inline-end: -120px; bottom: -180px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); margin: 14px 0 16px; }
.hero h1 .hl { color: var(--brand); white-space: nowrap; padding: 0 .08em; background-image: linear-gradient(transparent 64%, color-mix(in srgb, var(--accent) 22%, transparent) 64%, color-mix(in srgb, var(--accent) 22%, transparent) 92%, transparent 92%); background-repeat: no-repeat; background-position: right bottom; background-size: 100% 100%; animation: hl 1.1s .5s var(--ease) both; }
@keyframes hl { from { background-size: 0 100%; } to { background-size: 100% 100%; } }
.hero .lead { font-size: 1.12rem; color: var(--ink-2); max-width: 560px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-stats { display: flex; gap: 28px; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats b { font-family: var(--head); font-size: 1.5rem; color: var(--ink); line-height: 1.2; }
.hero-stats span { font-size: .85rem; color: var(--muted); }

.hero-visual { position: relative; min-height: 410px; }
.float-card { position: absolute; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.float-main { inset-inline: 8% 0; top: 10px; padding: 18px; animation: float 7s ease-in-out infinite; }
.float-main .fm-img { background: #fff; border-radius: var(--r); display: grid; place-items: center; height: 190px; }
.float-main .fm-img img { height: 170px; width: auto; object-fit: contain; }
.float-main h3 { font-size: 1rem; margin: 14px 0 4px; }
.fm-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.float-chip { inset-inline-start: -10px; bottom: 0; padding: 12px 16px; display: flex; align-items: center; gap: 10px; font-size: .9rem; animation: float 7s 1.2s ease-in-out infinite; }
.float-chip .dot { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.float-chip b { display: block; font-family: var(--head); line-height: 1.3; }
.float-chip small { color: var(--muted); }
.float-badge { inset-inline-end: -6px; top: -8px; padding: 6px 14px; background: var(--accent); color: #fff; border: 0; font-family: var(--head); font-weight: 600; font-size: .9rem; border-radius: 999px; animation: float 6s .6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 900px) {
  .hero { padding: 40px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { min-height: 360px; max-width: 420px; width: 100%; margin: 0 auto; }
}

/* ---------- sections ---------- */
.section { padding: 56px 0; }
.section-alt { background: var(--bg-2); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); margin: 6px 0 0; }
.section-head p { color: var(--muted); margin: 6px 0 0; max-width: 520px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; transition: transform .3s var(--ease), box-shadow .3s; }
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.step .s-ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 14px; }
.step .s-ic .ic { width: 22px; height: 22px; }
.step::after { counter-increment: step; content: "0" counter(step); position: absolute; inset-inline-end: 20px; top: 18px; font-family: var(--head); font-weight: 700; font-size: 1.6rem; color: var(--line); }
.step h3 { font-size: 1.1rem; margin: 0 0 6px; }
.step p { color: var(--muted); font-size: .95rem; margin: 0; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* featured article card */
.feature { display: grid; grid-template-columns: 1fr 1.1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; text-decoration: none; color: inherit; transition: transform .35s var(--ease), box-shadow .35s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: inherit; }
.feature-media { background: #fff; display: grid; place-items: center; padding: 24px; min-height: 280px; position: relative; }
.feature-media img { max-height: 240px; width: auto; transition: transform .6s var(--ease); }
.feature:hover .feature-media img { transform: scale(1.05); }
.feature-body { padding: 30px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.feature-body h3 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin: 12px 0 10px; }
.feature-body p { color: var(--muted); }
.meta-row { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: .88rem; }
.meta-row span { display: inline-flex; align-items: center; gap: 6px; }
.read-more { display: inline-flex; align-items: center; gap: 8px; font-family: var(--head); font-weight: 600; color: var(--brand); margin-top: 8px; }
.read-more .ic { transition: transform .25s var(--ease); }
.feature:hover .read-more .ic { transform: translateX(-5px); }
@media (max-width: 760px) { .feature { grid-template-columns: 1fr; } .feature-media { min-height: 220px; } .feature-body { padding: 22px; } }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.features .feature { grid-template-columns: 1fr; }
.features .feature-media { min-height: 230px; }
.features .feature-media img { max-height: 200px; }
.features .feature-body { padding: 24px; justify-content: flex-start; }
.features .feature-body h3 { font-size: 1.3rem; }
@media (max-width: 760px) { .features { grid-template-columns: 1fr; } }

/* category tabs */
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.tab { border: 0; background: transparent; color: var(--ink-2); font: 600 .93rem var(--head); padding: 8px 16px; border-radius: 10px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: background-color .2s, color .2s; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: var(--brand); color: #fff; }
:root[data-theme="dark"] .tab[aria-selected="true"] { color: #10201b; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tab[aria-selected="true"] { color: #10201b; } }
.tabpanel[hidden] { display: none; }
.tabpanel { animation: fadeUp .45s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.cat { position: relative; display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; text-decoration: none; color: inherit; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
a.cat:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); color: inherit; }
.cat .c-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-2); color: var(--brand); margin-bottom: 12px; transition: background-color .3s, color .3s, transform .3s var(--ease); }
a.cat:hover .c-ic { background: var(--brand); color: #fff; transform: rotate(-6deg); }
.cat .c-ic .ic { width: 22px; height: 22px; }
.cat h3 { font-size: 1.05rem; margin: 0 0 4px; }
.cat p { color: var(--muted); font-size: .92rem; margin: 0; }
.cat .soon { position: absolute; inset-inline-end: 16px; top: 18px; font-size: .75rem; color: var(--muted); background: var(--bg-2); padding: 1px 10px; border-radius: 999px; }
.cat .count { position: absolute; inset-inline-end: 16px; top: 18px; font-size: .75rem; color: var(--brand); background: var(--brand-soft); padding: 1px 10px; border-radius: 999px; font-weight: 600; }
.cat.is-soon { opacity: .78; }

/* author strip */
.author { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 28px; }
.avatar { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(140deg, var(--brand), color-mix(in srgb, var(--brand) 55%, var(--accent))); color: #fff; font-family: var(--head); font-weight: 700; font-size: 1.5rem; }
.avatar.sm { width: 38px; height: 38px; font-size: 1rem; }
.author h3 { margin: 0 0 4px; font-size: 1.15rem; }
.author p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 680px) { .author { grid-template-columns: auto 1fr; } .author .btn { grid-column: 1 / -1; justify-self: start; } }

/* ---------- article ---------- */
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: .85rem; color: var(--muted); padding-top: 26px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.crumbs .sep { opacity: .5; }
.post-head { padding: 18px 0 30px; max-width: 820px; }
.post-head h1 { font-size: clamp(1.75rem, 4vw, 2.6rem); margin: 14px 0 14px; }
.post-head .lead { font-size: 1.1rem; color: var(--ink-2); }
.byline { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 20px; }
.byline .who { display: flex; align-items: center; gap: 10px; }
.byline .who b { display: block; font-family: var(--head); font-size: .95rem; line-height: 1.3; }
.byline .who small { color: var(--muted); font-size: .82rem; }
.byline .meta-row { margin-inline-start: 6px; }
.share { display: flex; gap: 6px; margin-inline-start: auto; }
.share .icon-btn { width: 38px; height: 38px; }
.disclosure { display: flex; gap: 10px; align-items: flex-start; background: var(--sand); border-radius: var(--r-sm); padding: 10px 14px; font-size: .86rem; color: var(--ink-2); margin: 0 0 30px; }
.disclosure .ic { margin-top: 4px; color: var(--accent); }

.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 44px; align-items: start; padding-bottom: 40px; }
.post { min-width: 0; }
.post > h2 { font-size: clamp(1.35rem, 2.8vw, 1.7rem); margin: 52px 0 14px; scroll-margin-top: 90px; }
.post > h2:first-child { margin-top: 0; }
.post > p, .post > ul { color: var(--ink-2); }
.toc { position: sticky; top: 92px; border-inline-start: 1px solid var(--line); padding-inline-start: 18px; }
.toc h4 { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--muted); margin: 0 0 10px; font-weight: 600; }
.toc a { position: relative; display: block; color: var(--muted); text-decoration: none; font-size: .9rem; padding: 6px 0; transition: color .2s; }
.toc a::before { content: ""; position: absolute; inset-inline-start: -19px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: var(--brand); transform: scaleY(0); transition: transform .3s var(--ease); }
.toc a:hover { color: var(--ink); }
.toc a.active { color: var(--brand); font-weight: 600; }
.toc a.active::before { transform: scaleY(1); }
.toc .toc-cta { margin-top: 22px; padding: 16px; border-radius: var(--r); background: var(--brand-soft); font-size: .88rem; color: var(--ink-2); }
.toc .toc-cta b { display: block; font-family: var(--head); color: var(--ink); margin-bottom: 4px; }
@media (max-width: 1000px) { .post-layout { grid-template-columns: 1fr; } .toc { display: none; } }

/* quick picks */
.picks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pick { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 16px 16px; text-align: center; transition: transform .3s var(--ease), box-shadow .3s; }
.pick:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.pick-label { display: inline-block; font-size: .75rem; font-weight: 600; color: var(--brand); background: var(--brand-soft); padding: 2px 10px; border-radius: 999px; }
.pick img { width: 110px; height: 110px; object-fit: contain; margin: 12px auto 8px; background: #fff; border-radius: 12px; padding: 4px; }
.pick h3 { font-size: .95rem; margin: 0 0 2px; }
.pick-meta { font-size: .82rem; color: var(--muted); margin: 0 0 6px; }
.pick .price { margin: 0 0 6px; }
.pick-more { display: inline-flex; align-items: center; gap: 4px; font-size: .88rem; font-weight: 600; text-decoration: none; }
.pick-more .ic { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.pick-more:hover .ic { transform: translateY(2px); }
@media (max-width: 900px) { .picks { grid-template-columns: repeat(2, 1fr); } }

/* size picker */
.picker { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.picker-q { display: flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 600; margin-bottom: 14px; }
.picker-q .ic { color: var(--brand); width: 22px; height: 22px; }
.seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.rating-none { font-size: .85rem; color: var(--muted); }
.na { color: var(--muted); }
.types { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 14px 0; }
.type { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.type h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 1.08rem; }
.type h3 .ic { color: var(--tone, var(--brand)); width: 22px; height: 22px; }
.type ul { margin: 0; padding-inline-start: 18px; color: var(--ink-2); font-size: .95rem; }
@media (max-width: 680px) { .types { grid-template-columns: 1fr; } }
.seg button { border: 1px solid var(--line); background: var(--bg); color: var(--ink-2); border-radius: 12px; padding: 12px 8px; cursor: pointer; font: 500 .93rem var(--body); line-height: 1.4; transition: border-color .2s, background-color .2s, color .2s, transform .2s var(--ease); }
.seg button b { display: block; font-family: var(--head); font-size: 1.05rem; color: var(--ink); }
.seg button:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); transform: translateY(-1px); }
.seg button[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.seg button[aria-pressed="true"] b { color: var(--brand); }
.picker-out { margin: 14px 0 0; font-size: .95rem; color: var(--ink-2); min-height: 1.85em; }
.picker-out a { font-weight: 600; }
@media (max-width: 600px) { .seg { grid-template-columns: repeat(2, 1fr); } }

/* product card */
.product { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; margin: 18px 0; scroll-margin-top: 90px; transition: opacity .4s var(--ease), filter .4s, box-shadow .3s, border-color .3s, transform .7s var(--ease); }
.product:hover { box-shadow: var(--shadow); }
.product.match { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.product.dim { opacity: .45; filter: saturate(.4); }
.product.dim:hover { opacity: .8; filter: none; }
.product:target { border-color: var(--brand); }
.p-media { position: relative; align-self: start; }
.zoom { display: block; width: 100%; padding: 0; border: 0; background: #fff; border-radius: var(--r); cursor: zoom-in; overflow: hidden; aspect-ratio: 1; }
.zoom img { width: 100%; height: 100%; object-fit: contain; padding: 14px; transition: transform .5s var(--ease); }
.zoom:hover img { transform: scale(1.06); }
.p-rank { position: absolute; inset-inline-start: -8px; top: -8px; width: 34px; height: 34px; border-radius: 11px; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-family: var(--head); font-weight: 700; font-size: .95rem; box-shadow: var(--shadow); z-index: 1; }
.p-off { position: absolute; inset-inline-end: 10px; bottom: 10px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: .8rem; padding: 2px 9px; border-radius: 999px; direction: ltr; }
.p-body h3 { font-size: 1.25rem; margin: 10px 0 4px; }
.rating { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; color: var(--muted); }
.rating .star { color: var(--star); width: 17px; height: 17px; }
.rating b { color: var(--ink); font-family: var(--head); }
.specs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 14px 0; }
.specs li { display: inline-flex; align-items: center; gap: 6px; background: var(--bg); border: 1px solid var(--line); border-radius: 9px; padding: 2px 11px; font-size: .86rem; color: var(--ink-2); }
.specs .ic { width: 15px; height: 15px; color: var(--brand); }
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 4px 0 16px; }
.proscons h4 { font-size: .85rem; color: var(--muted); margin: 0 0 6px; font-weight: 600; }
.proscons ul { list-style: none; margin: 0; padding: 0; }
.proscons li { display: flex; gap: 8px; align-items: flex-start; font-size: .93rem; color: var(--ink-2); margin-bottom: 6px; line-height: 1.65; }
.proscons li .ic { width: 17px; height: 17px; margin-top: 4px; padding: 2px; border-radius: 50%; }
.pros .ic { color: var(--good); background: color-mix(in srgb, var(--good) 14%, transparent); }
.cons .ic { color: var(--bad); background: color-mix(in srgb, var(--bad) 13%, transparent); }
.p-buy { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-top: 16px; border-top: 1px dashed var(--line); }
.price { font-size: .95rem; color: var(--muted); }
.price strong { font-family: var(--head); font-size: 1.5rem; color: var(--ink); }
.price del { margin-inline-start: 6px; font-size: .88rem; }
@media (max-width: 680px) {
  .product { grid-template-columns: 1fr; padding: 18px; gap: 16px; }
  .p-media { max-width: 240px; width: 100%; margin: 0 auto; }
  .proscons { grid-template-columns: 1fr; gap: 8px; }
  .p-buy .btn { width: 100%; justify-content: center; }
}

/* comparison table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 680px; font-size: .9rem; }
th, td { padding: 11px 12px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
th { background: var(--bg-2); font-weight: 600; line-height: 1.4; }
th button { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; font-family: var(--head); font-size: .82rem; color: var(--ink-2); }
td:first-child { min-width: 175px; }
td small { color: var(--muted); }
th button:hover { color: var(--brand); }
th button:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
.sort-ic { width: 14px; height: 14px; opacity: .35; transition: transform .25s var(--ease), opacity .2s; }
th[aria-sort="ascending"] .sort-ic { opacity: 1; transform: rotate(180deg); color: var(--brand); }
th[aria-sort="descending"] .sort-ic { opacity: 1; color: var(--brand); }
tbody tr { transition: background-color .2s; }
tbody tr:hover { background: var(--bg); }
td a { text-decoration: none; font-weight: 500; }
td:first-child { position: sticky; inset-inline-start: 0; background: var(--surface); }
tbody tr:hover td:first-child { background: var(--bg); }
.row-hot td:nth-child(4) { color: var(--accent); font-weight: 700; }
.fine { font-size: .84rem; color: var(--muted); margin-top: 10px; }
tbody.sorting tr { animation: fadeUp .35s var(--ease); }

/* engineer callout */
.callout { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px 26px; overflow: hidden; }
.callout::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 4px; background: var(--brand); }
.callout-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.callout-head .c-ic { width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.callout-head h3 { margin: 0; font-size: 1.1rem; }
.callout ul { padding: 0; list-style: none; margin: 10px 0; }
.callout li { display: flex; gap: 10px; margin-bottom: 8px; color: var(--ink-2); }
.callout li .ic { color: var(--brand); margin-top: 6px; width: 17px; height: 17px; }
.amp-meter { margin: 16px 0 6px; }
.amp-bar { position: relative; height: 12px; border-radius: 999px; background: var(--bg-2); overflow: hidden; }
.amp-fill { position: absolute; inset-block: 0; inset-inline-start: 0; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--good)); transition: width 1.4s var(--ease); }
.amp-meter.in .amp-fill { width: var(--w); }
.amp-labels { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); margin-top: 6px; }

/* FAQ */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 10px; transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; font-family: var(--head); font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { transition: transform .3s var(--ease); color: var(--muted); }
.faq details[open] summary .ic { transform: rotate(180deg); color: var(--brand); }
.faq .a { padding: 0 20px 16px; color: var(--ink-2); }
.faq .a p { margin: 0; }

.verdict { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; background: var(--brand-soft); border-radius: var(--r-lg); padding: 24px; margin-top: 10px; }
.verdict .ic { width: 28px; height: 28px; color: var(--brand); }
.verdict h3 { margin: 0 0 6px; }
.verdict p { margin: 0; color: var(--ink-2); }

/* ---------- about ---------- */
.page-head { padding: 52px 0 26px; max-width: 760px; }
.page-head h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 12px 0; }
.page-head .lead { font-size: 1.1rem; color: var(--ink-2); }
.about-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 36px; align-items: start; padding-bottom: 40px; }
.profile { position: sticky; top: 92px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; text-align: center; }
.profile .avatar { width: 84px; height: 84px; font-size: 2rem; margin: 0 auto 14px; }
.profile h3 { margin: 0 0 4px; }
.profile p { color: var(--muted); font-size: .92rem; }
.profile dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0 0; text-align: center; }
.profile dt { font-family: var(--head); font-weight: 700; font-size: 1.3rem; color: var(--brand); }
.profile dd { margin: 0; font-size: .8rem; color: var(--muted); }
.prose h2 { font-size: 1.4rem; margin: 40px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--ink-2); }
.principles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0; }
.principle { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; transition: transform .3s var(--ease), box-shadow .3s; }
.principle:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.principle .ic { color: var(--brand); width: 24px; height: 24px; margin-bottom: 8px; }
.principle h3 { font-size: 1rem; margin: 0 0 4px; }
.principle p { font-size: .92rem; color: var(--muted); margin: 0; }
.notice { background: var(--sand); border-radius: var(--r); padding: 20px 22px; }
.notice p:last-child { margin-bottom: 0; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } .profile { position: static; } .principles { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { margin-top: 40px; background: var(--surface); border-top: 1px solid var(--line); padding: 44px 0 20px; font-size: .92rem; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-grid p { margin-top: 12px; max-width: 380px; }
.footer-grid h4 { font-size: .9rem; color: var(--ink); margin: 6px 0 10px; }
.footer-grid a:not(.logo) { display: block; color: var(--muted); text-decoration: none; padding: 3px 0; transition: color .2s; }
.footer-grid a:not(.logo):hover { color: var(--brand); }
.logo-sm { font-size: 1.05rem; }
.logo-sm .logo-mark { width: 28px; height: 28px; }
.footer-note { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 30px; padding-top: 18px; font-size: .82rem; }
.footer-note p { margin: 0; }
@media (max-width: 680px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }

/* ---------- floating bits ---------- */
.to-top { position: fixed; inset-inline-start: 20px; bottom: 20px; z-index: 90; box-shadow: var(--shadow); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease); }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 300; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 12px; font-size: .92rem; box-shadow: var(--shadow-lg); transition: opacity .25s, transform .3s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 400; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; background: rgba(12, 18, 17, .82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; cursor: zoom-out; }
.lightbox.open { opacity: 1; visibility: visible; }
.lb-img { max-width: min(92vw, 860px); max-height: 76vh; object-fit: contain; background: #fff; border-radius: 18px; padding: 14px; cursor: default; transform: scale(.94); transition: transform .35s var(--ease); box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); }
.lightbox.open .lb-img { transform: none; }
.lb-caption { color: #fff; margin-top: 14px; font-family: var(--head); text-align: center; }
.lb-count { color: rgba(255,255,255,.6); font-size: .85rem; }
.lb-btn { position: absolute; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; transition: background-color .2s, transform .2s var(--ease); }
.lb-btn:hover { background: rgba(255,255,255,.25); }
.lb-btn .ic { width: 22px; height: 22px; }
.lb-close { top: 16px; inset-inline-end: 16px; }
.lb-prev { inset-inline-start: 16px; top: 50%; transform: translateY(-50%) rotate(180deg); }
.lb-next { inset-inline-end: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lb-prev, .lb-next { top: auto; bottom: 18px; } .lb-prev { transform: rotate(180deg); } .lb-next { transform: none; } }

/* ==========================================================================
   Interactive colour layer
   Each block can carry a tone (sage / sky / amber / plum). Hover, glow,
   chips and icons pick it up through --tone.
   ========================================================================== */
:root { --sage: #2f6b5e; --sky: #3a7ca5; --amber: #b4761c; --plum: #87598b; }
:root[data-theme="dark"] { --sage: #7fbfac; --sky: #7db7d8; --amber: #e2b155; --plum: #c69bc9; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --sage: #7fbfac; --sky: #7db7d8; --amber: #e2b155; --plum: #c69bc9; } }
.tone-sage { --tone: var(--sage); }
.tone-sky { --tone: var(--sky); }
.tone-amber { --tone: var(--amber); }
.tone-plum { --tone: var(--plum); }
[class*="tone-"] { --tone-soft: color-mix(in srgb, var(--tone) 13%, transparent); --tone-line: color-mix(in srgb, var(--tone) 45%, var(--line)); }

[class*="tone-"] .chip, [class*="tone-"] .pick-label { color: var(--tone); background: var(--tone-soft); }
[class*="tone-"] .s-ic, [class*="tone-"] .c-ic { color: var(--tone); background: var(--tone-soft); }
.principle[class*="tone-"] > .ic { color: var(--tone); }
.step[class*="tone-"]:hover { border-color: var(--tone-line); }
.step[class*="tone-"]:hover .s-ic { background: var(--tone); color: #fff; transform: rotate(-6deg) scale(1.06); }
.step .s-ic, .principle > .ic { transition: background-color .3s, color .3s, transform .35s var(--ease); }
.principle[class*="tone-"]:hover { border-color: var(--tone-line); }
.principle[class*="tone-"]:hover > .ic { transform: translateY(-2px) scale(1.1); }
a.cat[class*="tone-"]:hover { border-color: var(--tone-line); }
a.cat[class*="tone-"]:hover .c-ic { background: var(--tone); color: #fff; }
.cat.is-soon[class*="tone-"]:hover { border-color: var(--tone-line); opacity: 1; }
.cat.is-soon[class*="tone-"]:hover .c-ic { transform: rotate(-6deg); }
.pick[class*="tone-"]:hover { border-color: var(--tone-line); }

/* spotlight that follows the cursor + animated gradient border */
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.glow { position: relative; isolation: isolate; }
.glow::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--tone, var(--brand)) 12%, transparent), transparent 65%);
  opacity: 0; transition: opacity .35s;
}
.glow::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--ang), var(--tone, var(--brand)), var(--accent), color-mix(in srgb, var(--tone, var(--brand)) 30%, transparent), var(--tone, var(--brand)));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0; transition: opacity .4s;
  animation: spin 6s linear infinite paused;
}
.glow:hover::before { opacity: 1; }
.glow:hover::after { opacity: 1; animation-play-state: running; }
@keyframes spin { to { --ang: 360deg; } }
@media (hover: none) { .glow::before, .glow::after { display: none; } }

/* product card: tone accents */
.product[class*="tone-"] .p-rank { background: var(--tone); color: #fff; }
:root[data-theme="dark"] .product[class*="tone-"] .p-rank { color: #10201b; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .product[class*="tone-"] .p-rank { color: #10201b; } }
.product[class*="tone-"] .specs .ic { color: var(--tone); }
.product[class*="tone-"] .specs li { transition: border-color .25s, background-color .25s, transform .25s var(--ease); }
.product[class*="tone-"] .specs li:hover { border-color: var(--tone-line); background: var(--tone-soft); transform: translateY(-1px); }
.product[class*="tone-"].match { border-color: var(--tone); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tone) 20%, transparent); }
.product .zoom { position: relative; background: radial-gradient(circle at 50% 60%, #fff 55%, color-mix(in srgb, var(--tone, var(--brand)) 10%, #fff)); }
.p-media { perspective: 800px; }
.p-media .zoom { transform-style: preserve-3d; transition: transform .25s ease-out, box-shadow .3s; will-change: transform; }
.p-media .zoom:hover { box-shadow: 0 18px 36px -18px color-mix(in srgb, var(--tone, var(--brand)) 60%, transparent); }
.zoom-hint { position: absolute; left: 50%; top: 10px; translate: -50% 0; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; color: var(--ink-2); background: rgba(255,255,255,.88); border: 1px solid var(--line); padding: 2px 8px; border-radius: 999px; opacity: 0; transform: translateY(4px); transition: opacity .25s, transform .25s var(--ease); pointer-events: none; }
.zoom-hint .ic { width: 13px; height: 13px; }
.zoom:hover .zoom-hint, .zoom:focus-visible .zoom-hint { opacity: 1; transform: none; }
@media (hover: none) { .zoom-hint { opacity: 1; transform: none; } }
.p-off { animation: pop 2.4s ease-in-out infinite; }
@keyframes pop { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }

/* click feedback: ripple + press */
.ripple-host { position: relative; overflow: hidden; }
.ripple { position: absolute; border-radius: 50%; pointer-events: none; width: 12px; height: 12px; margin: -6px 0 0 -6px; background: currentColor; opacity: .28; transform: scale(0); animation: ripple .65s var(--ease) forwards; }
.zoom .ripple { background: var(--tone, var(--brand)); }
@keyframes ripple { to { transform: scale(40); opacity: 0; } }
.product.pressed { animation: press .45s var(--ease); }
@keyframes press { 0% { transform: scale(1); } 35% { transform: scale(.985); } 100% { transform: scale(1); } }

/* buttons: shimmer sweep */
.btn-cta, .btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.btn-cta::after, .btn-primary::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(110%); transition: transform .7s var(--ease); }
.btn-cta:hover::after, .btn-primary:hover::after { transform: translateX(-110%); }
.btn-cta { background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 75%, #d18a3a)); }

/* hero: drifting colour fields that also react to the pointer */
.hero::before { animation: drift1 18s ease-in-out infinite alternate; }
.hero::after { animation: drift2 22s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(-60px, 50px) scale(1.12); } }
@keyframes drift2 { to { transform: translate(70px, -40px) scale(1.1); } }
.hero .hero-glow { position: absolute; width: 360px; height: 360px; border-radius: 50%; z-index: -1; pointer-events: none; background: radial-gradient(circle, color-mix(in srgb, var(--sky) 22%, transparent), transparent 70%); left: var(--hx, 60%); top: var(--hy, 40%); transform: translate(-50%, -50%); transition: left .8s var(--ease), top .8s var(--ease); }
.hero-visual { transition: transform .6s var(--ease); }

/* section eyebrows & headings in tone */
.section-head .eyebrow { color: var(--tone, var(--brand)); }
.post > h2 { position: relative; }
.post > h2::after { content: ""; display: block; width: 44px; height: 3px; border-radius: 3px; margin-top: 10px; background: linear-gradient(90deg, var(--accent), var(--brand)); transform-origin: right; transform: scaleX(.4); transition: transform .5s var(--ease); }
.post > h2:hover::after { transform: scaleX(1); }

/* lightbox: zoom-in mode and slide */
.lb-stage { position: relative; max-width: min(92vw, 860px); max-height: 76vh; overflow: hidden; border-radius: 18px; background: #fff; cursor: zoom-in; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); touch-action: pan-y; }
.lb-stage .lb-img { max-width: 100%; max-height: 76vh; border-radius: 0; box-shadow: none; transform: none; transition: transform .35s var(--ease); transform-origin: var(--ox, 50%) var(--oy, 50%); cursor: inherit; }
.lightbox.closing { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; transition: background-color .3s; }
.lightbox.closing > :not(.lb-stage) { opacity: 0; transition: opacity .15s; }
.lb-stage.zoomed { cursor: zoom-out; touch-action: none; }
.lb-stage.zoomed .lb-img { transform: scale(2.1); transition: transform .35s var(--ease), transform-origin .08s linear; }
.lb-hint { color: rgba(255,255,255,.65); font-size: .82rem; margin-top: 4px; }
.lb-dots { display: flex; gap: 6px; margin-top: 10px; }
.lb-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.35); cursor: pointer; transition: width .3s var(--ease), background-color .3s; }
.lb-dots button[aria-current="true"] { width: 24px; background: #fff; }

@media (prefers-reduced-motion: reduce) {
  .glow::after, .p-off, .hero::before, .hero::after { animation: none !important; }
}
