/*
Theme Name: AXION
Theme URI: https://nozamaru.com/
Description: AIツールレビュー / アフィリエイトサイト向けのテーマ。Midnight Chrome デザイン、カスタム投稿タイプ「レビュー」、スコアリング、スクロール演出つき。
Version: 1.1.2
Author: AXION
Requires at least: 6.2
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: axion
*/

/* =============================================================
   AXION — Midnight Chrome (navy × silver × glow)
   ============================================================= */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { min-height: 100%; margin: 0; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }

/* ---------- Tokens ---------- */
:root {
  --bg:            #05070e;
  --bg-2:          #0b1020;
  --bg-3:          #121a33;
  --panel:         rgba(255,255,255,0.035);
  --panel-2:       rgba(255,255,255,0.06);
  --stroke:        rgba(154,174,208,0.20);
  --stroke-soft:   rgba(154,174,208,0.12);
  --stroke-strong: rgba(206,220,240,0.46);

  --text:          #e4eaf5;
  --text-dim:      #9aa8c0;
  --text-mute:     #64718c;

  --chrome-hi:     #f4f8ff;
  --chrome-mid:    #aab9d3;
  --chrome-lo:     #6c7c9a;

  --glow:          #4da6ff;
  --glow-soft:     #83c1ff;
  --violet:        #8f7dff;
  --ice:           #c3d9ff;

  --radius:        18px;
  --radius-sm:     12px;
  --maxw:          1240px;
  --gutter:        clamp(20px, 5vw, 64px);

  --ease:          cubic-bezier(.22,.61,.36,1);
  --font-latin:    "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-jp:       "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  --font-serif:    "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
}

/* ---------- Base ---------- */
body {
  font-family: var(--font-jp);
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  letter-spacing: .01em;
  overflow-x: hidden;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }
:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; border-radius: 3px; }

/* Ambient background layers ----------------------------------- */
.bg-field {
  position: fixed; inset: 0; z-index: -3; pointer-events: none;
  background:
    radial-gradient(60vw 60vw at 78% -10%, rgba(77,166,255,0.16), transparent 60%),
    radial-gradient(50vw 50vw at 8% 12%, rgba(143,125,255,0.13), transparent 62%),
    radial-gradient(70vw 55vw at 50% 118%, rgba(77,166,255,0.10), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 45%, var(--bg) 100%);
}
.bg-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(150,168,196,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(150,168,196,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120vw 100vh at 50% 0%, #000 20%, transparent 75%);
  mask-image: radial-gradient(120vw 100vh at 50% 0%, #000 20%, transparent 75%);
}
.bg-grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-family: var(--font-latin);
  font-size: 12px; font-weight: 600;
  letter-spacing: .32em; text-transform: uppercase;
  color: var(--glow-soft);
  display: inline-flex; align-items: center; gap: 14px;
}
.eyebrow::before {
  content: ""; width: 34px; height: 1px;
  background: linear-gradient(90deg, var(--glow), transparent);
}
.chrome-text {
  background: linear-gradient(176deg, #ffffff 0%, #c6d3e8 34%, #7f8fad 52%, #dfe9fb 74%, #9fb0cc 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  text-shadow: 0 0 42px rgba(131,193,255,0.18);
}
h1, h2, h3 { font-weight: 700; line-height: 1.24; letter-spacing: .006em; text-wrap: balance; }

.section-head { max-width: 720px; margin-bottom: clamp(38px, 6vw, 68px); }
.section-head h2 { font-size: clamp(28px, 4.6vw, 46px); margin-top: 20px; }
.section-head p { color: var(--text-dim); margin-top: 18px; font-size: 15.5px; }
.section-note { margin-top: 18px; color: var(--text-mute); font-size: 11.5px; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.axion-section { position: relative; padding-block: clamp(80px, 12vw, 148px); }
.axion-section.has-hairline::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 220px; pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(160,180,214,0.28), transparent) top / 100% 1px no-repeat,
    radial-gradient(60% 220px at 50% 0%, rgba(77,166,255,0.06), transparent 70%);
}
.divider {
  height: 1px; border: 0; margin: 0;
  background: linear-gradient(90deg, transparent, var(--stroke-strong), transparent);
  opacity: .55;
}
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 12px; z-index: 1000; background: var(--bg-2); padding: 10px 16px; border: 1px solid var(--stroke-strong); border-radius: 8px; }

/* ---------- WordPress admin bar offset ---------- */
.admin-bar .nav { top: 32px; }
.admin-bar .reading-progress { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .nav { top: 46px; }
  .admin-bar .reading-progress { top: 46px; }
}

/* ---------- Custom cursor ---------- */
.cursor, .cursor-dot {
  position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none;
  border-radius: 50%; mix-blend-mode: difference;
  translate: -50% -50%;
}
.cursor {
  width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.7);
  transition: width .25s var(--ease), height .25s var(--ease), background .25s var(--ease), opacity .3s var(--ease);
}
.cursor-dot { width: 5px; height: 5px; background: #fff; }
.cursor.is-hover { width: 58px; height: 58px; background: rgba(255,255,255,.12); }
@media (hover: none) { .cursor, .cursor-dot { display: none; } }

/* ---------- Header / Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 900;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 18px var(--gutter);
  transition: padding .4s var(--ease), background .4s var(--ease), border-color .4s var(--ease), transform .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  padding-block: 12px;
  background: rgba(6,9,17,0.72);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom-color: var(--stroke-soft);
}
.nav.hidden { transform: translateY(-102%); }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-latin); }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-name { font-weight: 800; font-size: 19px; letter-spacing: .22em; padding-left: 2px; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  position: relative; font-size: 13.5px; color: var(--text-dim);
  letter-spacing: .04em; transition: color .3s var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 1px;
  background: var(--glow); transition: width .35s var(--ease);
}
.nav-links a:hover, .nav-links li.current-menu-item > a { color: var(--text); }
.nav-links a:hover::after, .nav-links li.current-menu-item > a::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; }
.nav-primary.is-open .nav-links {
  position: absolute; inset: 100% 0 auto 0; flex-direction: column; align-items: flex-start; gap: 18px;
  padding: 22px var(--gutter) 28px; background: rgba(6,9,17,.97);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--stroke);
}

/* ---------- Buttons ---------- */
.btn {
  --pad-y: 13px; --pad-x: 26px;
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: var(--pad-y) var(--pad-x);
  font-family: var(--font-latin); font-size: 13px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  border-radius: 999px; cursor: pointer; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  will-change: transform;
}
.btn svg { width: 15px; height: 15px; }
.btn-primary {
  color: #0a0f1c; border: 1px solid rgba(255,255,255,.5);
  background: linear-gradient(180deg, #ffffff, #c3d2ea 55%, #90a2c1);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 18px 40px -18px rgba(77,166,255,.6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255,255,255,.16), 0 26px 55px -18px rgba(77,166,255,.8); }
.btn-ghost {
  color: var(--text); border: 1px solid var(--stroke-strong);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.01));
}
.btn-ghost::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.03));
  opacity: 0; transition: opacity .35s var(--ease);
}
.btn-ghost:hover { border-color: var(--stroke-strong); transform: translateY(-2px); }
.btn-ghost:hover::after { opacity: 1; }
.btn-sm { --pad-y: 10px; --pad-x: 18px; font-size: 11px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(100svh, 940px); display: flex; align-items: center; padding: 128px 0 90px; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-media img {
  width: 100%; height: 118%; object-fit: cover; object-position: 88% center;
  will-change: transform;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 24%, #000 62%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, transparent 24%, #000 62%, #000 100%);
  opacity: .62;
}
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 0%, var(--bg) 30%, rgba(4,6,12,0.78) 50%, rgba(4,6,12,0.32) 68%, transparent 84%),
    radial-gradient(70% 70% at 24% 52%, rgba(4,6,12,0.7), transparent 70%),
    linear-gradient(0deg, var(--bg) 3%, transparent 34%);
}
/* Explicit box so the canvas' intrinsic (attribute) size can never affect layout. */
.hero canvas.particles { position: absolute; inset: 0; width: 100%; height: 100%; max-width: 100%; z-index: -1; opacity: .55; }
.hero-inner { max-width: 760px; }
.hero h1 { font-size: clamp(38px, 7vw, 84px); line-height: 1.16; letter-spacing: .002em; margin: 26px 0 0; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .line > span { display: block; will-change: transform; transform: translateY(112%); animation: lineUp .9s var(--ease) forwards; }
.hero h1 .line:nth-child(1) > span { animation-delay: .12s; }
.hero h1 .line:nth-child(2) > span { animation-delay: .26s; }
@keyframes lineUp { to { transform: translateY(0); } }
.hero .eyebrow { animation: fadeUp .8s var(--ease) .06s both; }
.hero-sub   { animation: fadeUp .9s var(--ease) .5s both; }
.hero-actions { animation: fadeUp .9s var(--ease) .64s both; }
.hero-meta  { animation: fadeUp .9s var(--ease) .78s both; }
.hero .scroll-hint { animation: fadeUp 1s var(--ease) 1s both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero h1 .chrome-text {
  background: linear-gradient(176deg, #ffffff 0%, #e6eefb 38%, #b7c6df 58%, #ffffff 78%, #cdd9ee 100%);
  -webkit-background-clip: text; background-clip: text;
  text-shadow: 0 2px 30px rgba(4,6,12,0.9), 0 0 60px rgba(131,193,255,0.25);
}
.hero h1 .line:first-child > span { text-shadow: 0 2px 26px rgba(4,6,12,0.92); }
.hero-sub { margin-top: 30px; max-width: 495px; color: var(--text-dim); font-size: clamp(15px, 1.7vw, 17px); }
.hero-actions { margin-top: 42px; display: flex; flex-wrap: wrap; gap: 16px; }
.hero-meta { margin-top: 58px; display: flex; gap: 40px; flex-wrap: wrap; padding-top: 26px; border-top: 1px solid var(--stroke-soft); }
.hero-meta div { display: flex; flex-direction: column; gap: 2px; }
.hero-meta .n { font-family: var(--font-serif); font-size: 26px; font-weight: 800; color: var(--text); }
.hero-meta .k { font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-mute); }
.scroll-hint {
  position: absolute; left: var(--gutter); bottom: 30px;
  font-family: var(--font-latin); font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--text-mute); display: flex; align-items: center; gap: 12px;
}
.scroll-hint::before { content: ""; width: 1px; height: 42px; background: linear-gradient(var(--glow), transparent); animation: drop 2.2s var(--ease) infinite; }
@keyframes drop { 0% { transform: scaleY(0); transform-origin: top; } 45% { transform: scaleY(1); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Marquee ---------- */
.marquee {
  border-block: 1px solid var(--stroke-soft);
  padding-block: 26px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
/* CSS animation is the no-JS fallback only. When JS takes over it adds
   .js-driven and animates the transform directly — never change the
   duration of a running CSS animation, it makes the track jump. */
.marquee-track { display: flex; gap: 64px; width: max-content; animation: slide 38s linear infinite; will-change: transform; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track.js-driven { animation: none; }
.marquee-track span {
  font-family: var(--font-latin); font-size: 15px; font-weight: 600; letter-spacing: .12em;
  color: var(--text-mute); white-space: nowrap; display: inline-flex; align-items: center; gap: 14px;
}
.marquee-track span::before { content: "\25C6"; font-size: 8px; color: var(--glow); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Stats ---------- */
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--stroke-soft); border: 1px solid var(--stroke-soft); border-radius: var(--radius);
  overflow: hidden;
}
.stat { background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.014)); padding: 40px 30px; }
.stat .v {
  font-family: var(--font-serif); font-weight: 800;
  font-size: clamp(34px, 5vw, 54px); line-height: 1;
  background: linear-gradient(180deg,#fff,#b9c7de); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat .l { margin-top: 14px; font-size: 13px; color: var(--text-dim); }
.stat .s { margin-top: 4px; font-size: 11px; color: var(--text-mute); letter-spacing: .08em; }

/* ---------- Method / evaluation axes ---------- */
.method { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.axes { display: flex; flex-direction: column; gap: 22px; }
.axis-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.axis-top b { font-size: 15px; font-weight: 700; }
.axis-top span { font-family: var(--font-latin); font-size: 13px; color: var(--glow-soft); }
.axis-bar { height: 6px; border-radius: 999px; background: rgba(255,255,255,.06); overflow: hidden; }
.axis-bar i {
  display: block; height: 100%; width: 0; border-radius: inherit;
  background: linear-gradient(90deg, var(--violet), var(--glow)); box-shadow: 0 0 18px rgba(77,166,255,.5);
  transition: width 1.3s var(--ease);
}
[data-anim].in .axis-bar i { width: var(--fill, 80%); }
.no-js .axis-bar i, .no-motion .axis-bar i { width: var(--fill, 80%); }
.method-card {
  position: relative; padding: 40px; border-radius: var(--radius);
  border: 1px solid var(--stroke); background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.012));
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.method-card h3 { font-size: 20px; }
.method-card p { color: var(--text-dim); font-size: 14.5px; margin-top: 14px; }
.method-card ol { margin: 22px 0 0; padding: 0; counter-reset: step; display: flex; flex-direction: column; gap: 14px; list-style: none; }
.method-card li { position: relative; padding-left: 42px; font-size: 14px; color: var(--text-dim); }
.method-card li::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 0; font-family: var(--font-latin); font-size: 12px;
  color: var(--glow-soft); border: 1px solid var(--stroke-strong); border-radius: 8px;
  width: 30px; height: 24px; display: grid; place-items: center;
}

/* ---------- Featured — sticky horizontal scroll ---------- */
.gallery { padding: 0; }
.gallery-rail { position: relative; height: 340vh; }
.gallery-sticky {
  position: sticky; top: 0; min-height: 100vh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; gap: 44px;
  padding-block: clamp(70px, 10vw, 120px);
}
.gallery-sticky .section-head { margin-bottom: 0; }
.gallery-track { display: flex; gap: 26px; padding-inline: var(--gutter); will-change: transform; }
.tool-card {
  flex: none; width: min(78vw, 380px);
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--stroke); background: var(--bg-2);
  transition: border-color .4s var(--ease), transform .4s var(--ease);
}
.tool-card:hover { border-color: var(--stroke-strong); transform: translateY(-6px); }
.tool-card .thumb { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--bg-3); }
.tool-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.tool-card:hover .thumb img { transform: scale(1.06); }
.tool-card .thumb.css-art { display: grid; place-items: center; }
.css-art .disc {
  width: 58%; aspect-ratio: 1; border-radius: 50%;
  background: conic-gradient(from 210deg, #dfe9fb, #7f8fad, #4da6ff, #1a2438, #dfe9fb);
  filter: blur(.3px) drop-shadow(0 0 30px rgba(77,166,255,.4));
  animation: spin 14s linear infinite;
  -webkit-mask: radial-gradient(circle, transparent 34%, #000 35%);
  mask: radial-gradient(circle, transparent 34%, #000 35%);
}
.css-art.v2 .disc { background: conic-gradient(from 90deg, #e7ddff, #8f7dff, #4da6ff, #10182b, #e7ddff); }
.css-art.v3 .disc { background: conic-gradient(from 300deg, #ffffff, #c3d9ff, #6c7c9a, #0c1120, #ffffff); }
@keyframes spin { to { transform: rotate(360deg); } }
.tool-card .body { padding: 24px; }
.tool-card .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tool-card .cat { font-family: var(--font-latin); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-mute); }
.score { font-family: var(--font-latin); font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; gap: 7px; color: var(--text); }
.score::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 12px var(--glow); }
.tool-card h3 { font-size: 19px; margin: 14px 0 8px; }
.tool-card p { font-size: 13.5px; color: var(--text-dim); }
.gallery-progress { height: 2px; background: rgba(255,255,255,.08); margin: 8px 0 0; border-radius: 2px; }
.gallery-progress i { display: block; height: 100%; width: 12%; background: linear-gradient(90deg, var(--violet), var(--glow)); border-radius: inherit; }

/* ---------- Categories ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-tile {
  position: relative; padding: 30px 24px; min-height: 168px; border-radius: var(--radius-sm);
  border: 1px solid var(--stroke); background: linear-gradient(165deg, rgba(255,255,255,.05), rgba(255,255,255,.01));
  display: flex; flex-direction: column; justify-content: space-between; overflow: hidden;
  transition: border-color .35s var(--ease), transform .35s var(--ease), background .35s var(--ease);
}
.cat-tile::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(77,166,255,.5), transparent 70%); opacity: 0; transition: opacity .4s var(--ease);
}
.cat-tile:hover { transform: translateY(-5px); border-color: var(--stroke-strong); }
.cat-tile:hover::after { opacity: .5; }
.cat-tile .idx { font-family: var(--font-latin); font-size: 12px; color: var(--text-mute); }
.cat-tile b { font-size: 17px; font-weight: 700; }
.cat-tile span { font-size: 12px; color: var(--text-mute); }

/* ---------- Review cards grid ---------- */
.rev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.rev-grid > [data-anim-child] { display: flex; }
.rev-grid > [data-anim-child] > .rev-card { flex: 1; }
.rev-card {
  display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--stroke); background: var(--bg-2);
  transition: border-color .4s var(--ease), transform .4s var(--ease);
}
.rev-card:hover { border-color: var(--stroke-strong); transform: translateY(-6px); }
.rev-card .rthumb { aspect-ratio: 16/10; overflow: hidden; background: var(--bg-3); position: relative; display: grid; place-items: center; }
.rev-card .rthumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.rev-card:hover .rthumb img { transform: scale(1.05); }
.rev-card .rbody { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.rev-card .tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
  font-family: var(--font-latin); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; border: 1px solid var(--stroke); color: var(--text-dim);
}
.rev-card h3 { font-size: 18px; line-height: 1.5; }
.rev-card .excerpt { font-size: 13px; color: var(--text-dim); flex: 1; }
.rev-card .rfoot { display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; color: var(--text-mute); font-family: var(--font-latin); letter-spacing: .06em; }

/* ---------- Comparison table ---------- */
.cmp { border: 1px solid var(--stroke); border-radius: var(--radius); overflow: hidden; background: var(--bg-2); }
.cmp table { width: 100%; border-collapse: collapse; }
.cmp th, .cmp td { padding: 20px 22px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--stroke-soft); }
.cmp thead th { font-family: var(--font-latin); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); background: rgba(255,255,255,.02); }
.cmp thead th.best { color: var(--glow-soft); }
.cmp tbody th { font-weight: 700; color: var(--text); }
.cmp td { color: var(--text-dim); }
.cmp td.best { color: var(--text); background: rgba(77,166,255,.06); }
.cmp tr:last-child td, .cmp tr:last-child th { border-bottom: 0; }
.cmp .mark { color: var(--glow); }

/* ---------- Newsletter ---------- */
.cta-band {
  position: relative; border-radius: calc(var(--radius) + 6px); overflow: hidden;
  border: 1px solid var(--stroke); padding: clamp(40px, 7vw, 78px);
  background: linear-gradient(150deg, rgba(77,166,255,.14), rgba(143,125,255,.08) 45%, rgba(255,255,255,.02));
  text-align: center;
}
.cta-band::before {
  content: ""; position: absolute; inset: -2px; z-index: -1;
  background: conic-gradient(from 0deg, transparent, rgba(131,193,255,.5), transparent 30%);
  animation: spin 8s linear infinite;
}
.cta-band h2 { font-size: clamp(26px, 4vw, 40px); }
.cta-band p { color: var(--text-dim); margin: 16px auto 0; max-width: 440px; font-size: 14.5px; }
.subscribe { margin: 34px auto 0; display: flex; gap: 10px; max-width: 440px; }
.subscribe input {
  flex: 1; padding: 14px 18px; border-radius: 999px; color: var(--text);
  border: 1px solid var(--stroke-strong); background: rgba(4,6,12,.5); outline: none;
  transition: border-color .3s var(--ease);
}
.subscribe input:focus { border-color: var(--glow); }
.subscribe .btn { flex: none; }
.form-note { margin-top: 14px; font-size: 11px; color: var(--text-mute); }

/* ---------- Disclosure ---------- */
.disclosure {
  border-left: 2px solid var(--glow); padding: 16px 20px; border-radius: 4px;
  background: rgba(77,166,255,.05); font-size: 12.5px; color: var(--text-dim);
}
.disclosure strong { color: var(--text); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--stroke-soft); padding-block: 64px 40px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer .brand-name { font-size: 17px; }
.footer p.tagline { color: var(--text-mute); font-size: 13px; margin-top: 16px; max-width: 280px; }
.footer .fmenus { display: flex; gap: 60px; flex-wrap: wrap; }
.footer .fmenus > div { display: flex; flex-direction: column; gap: 12px; }
.footer .fmenus h4 { font-family: var(--font-latin); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 4px; }
.footer .fmenus a { font-size: 13px; color: var(--text-dim); transition: color .3s var(--ease); }
.footer .fmenus a:hover { color: var(--text); }
.footer-bottom {
  margin-top: 54px; padding-top: 24px; border-top: 1px solid var(--stroke-soft);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: 11.5px; color: var(--text-mute); font-family: var(--font-latin); letter-spacing: .05em;
}

/* ---------- Reveal base ---------- */
[data-anim], [data-anim-child] {
  opacity: 0; transform: translateY(36px); filter: blur(6px);
  transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease);
}
[data-anim].in, [data-anim-child].in { opacity: 1; transform: none; filter: none; }
.no-js [data-anim], .no-js [data-anim-child] { opacity: 1; transform: none; filter: none; }
.no-motion [data-anim], .no-motion [data-anim-child] { opacity: 1 !important; transform: none !important; filter: none !important; transition: none; }

/* =============================================================
   REVIEW SINGLE
   ============================================================= */
.reading-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 950;
  background: linear-gradient(90deg, var(--violet), var(--glow));
  box-shadow: 0 0 14px var(--glow);
}
.article-hero { padding-top: 150px; padding-bottom: 40px; }
.article-hero .crumbs { font-family: var(--font-latin); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-mute); display: flex; gap: 10px; flex-wrap: wrap; }
.article-hero .crumbs a:hover { color: var(--text-dim); }
.article-hero h1 { font-size: clamp(30px, 5vw, 54px); margin: 24px 0 26px; max-width: 940px; }
.article-hero .byline { display: flex; gap: 26px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-mute); font-family: var(--font-latin); letter-spacing: .05em; }
.article-hero .byline b { color: var(--text-dim); font-weight: 600; }
.article-figure { margin-top: 44px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--stroke); aspect-ratio: 16/9; background: var(--bg-3); }
.article-figure img { width: 100%; height: 100%; object-fit: cover; }

.article-layout { display: grid; grid-template-columns: 220px 1fr; gap: clamp(30px, 6vw, 76px); align-items: start; }
.toc { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 10px; }
.admin-bar .toc { top: 142px; }
.toc h4 { font-family: var(--font-latin); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 8px; }
.toc a { font-size: 12.5px; color: var(--text-mute); padding-left: 14px; border-left: 1px solid var(--stroke); transition: color .3s var(--ease), border-color .3s var(--ease); }
.toc a.active { color: var(--text); border-color: var(--glow); }

.prose { max-width: 720px; font-size: 15.5px; }
.prose > * + * { margin-top: 24px; }
.prose h2 { font-size: clamp(23px, 3.4vw, 32px); margin-top: 64px; padding-top: 8px; scroll-margin-top: 110px; }
.prose h3 { font-size: 19px; margin-top: 40px; }
.prose p { color: var(--text-dim); }
.prose strong, .prose b { color: var(--text); font-weight: 700; }
.prose a { color: var(--glow-soft); border-bottom: 1px solid var(--stroke-strong); }
.prose a:hover { color: #fff; }
.prose ul, .prose ol { display: flex; flex-direction: column; gap: 12px; padding-left: 4px; margin: 0; }
.prose ul li, .prose ol li { position: relative; padding-left: 26px; color: var(--text-dim); list-style: none; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: 12px; width: 8px; height: 8px; border: 1px solid var(--glow); rotate: 45deg; }
.prose ol { counter-reset: p; }
.prose ol li::before { counter-increment: p; content: counter(p); position: absolute; left: 0; top: 0; font-family: var(--font-latin); font-size: 11px; color: var(--glow-soft); }
.prose figure { margin-top: 40px; }
.prose figure img { border-radius: var(--radius-sm); border: 1px solid var(--stroke); }
.prose figcaption { margin-top: 12px; font-size: 12px; color: var(--text-mute); font-family: var(--font-latin); text-align: center; }
.prose blockquote {
  margin-top: 40px; padding: 26px 30px; border-radius: var(--radius-sm);
  border: 1px solid var(--stroke); background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.01));
  font-family: var(--font-serif); font-size: 18px; line-height: 1.9; color: var(--text);
}
.prose blockquote p { color: var(--text); }
.prose table { width: 100%; border-collapse: collapse; margin-top: 24px; border: 1px solid var(--stroke); border-radius: var(--radius-sm); overflow: hidden; font-size: 13.5px; display: block; overflow-x: auto; }
.prose table th, .prose table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--stroke-soft); white-space: nowrap; }
.prose table thead th { font-family: var(--font-latin); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); }
.prose table td { color: var(--text-dim); }
.prose img { border-radius: var(--radius-sm); }

.verdict {
  border: 1px solid var(--stroke-strong); border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.012));
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); margin-bottom: 20px;
}
.verdict-top { display: flex; gap: 26px; align-items: center; padding: 28px 30px; border-bottom: 1px solid var(--stroke-soft); }
.verdict-score {
  flex: none; width: 92px; height: 92px; display: grid; place-items: center; border-radius: 50%;
  background: conic-gradient(var(--glow) calc(var(--v,4.6) * 20%), rgba(255,255,255,.07) 0);
  position: relative; font-family: var(--font-latin);
}
.verdict-score::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--bg-2); }
.verdict-score b { position: relative; font-size: 24px; font-weight: 800; }
.verdict-score b small { font-size: 12px; color: var(--text-mute); font-weight: 600; }
.verdict-top div h3 { font-size: 19px; }
.verdict-top div p { font-size: 13px; color: var(--text-dim); margin-top: 6px; }
.verdict-bars { padding: 24px 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 40px; }
.vbar span { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--text-dim); margin-bottom: 7px; }
.vbar span b { color: var(--text); font-family: var(--font-latin); }
.vbar i { display: block; height: 5px; border-radius: 999px; background: rgba(255,255,255,.07); overflow: hidden; }
.vbar i::after { content: ""; display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--violet), var(--glow)); transition: width 1.2s var(--ease) .15s; }
.verdict.in .vbar i::after { width: var(--w, 80%); }
.no-js .vbar i::after, .no-motion .vbar i::after { width: var(--w, 80%); }
.verdict-foot { display: grid; grid-template-columns: 1fr 1fr; }
.verdict-foot div { padding: 22px 30px; font-size: 13px; }
.verdict-foot div:first-child { border-right: 1px solid var(--stroke-soft); }
.verdict-foot h4 { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 10px; font-family: var(--font-latin); }
.verdict-foot p { color: var(--text-dim); }

.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 40px; }
.proscons > div { padding: 24px; border-radius: var(--radius-sm); border: 1px solid var(--stroke); background: var(--bg-2); }
.proscons h4 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; font-family: var(--font-latin); margin-bottom: 14px; }
.proscons .pros h4 { color: #7fe0b0; }
.proscons .cons h4 { color: #ff9a9a; }
.proscons ul { display: flex; flex-direction: column; gap: 10px; }
.proscons li { font-size: 13px; color: var(--text-dim); padding-left: 22px; position: relative; list-style: none; }
.proscons .pros li::before { content: "+"; position: absolute; left: 0; color: #7fe0b0; font-weight: 700; }
.proscons .cons li::before { content: "\2212"; position: absolute; left: 0; color: #ff9a9a; font-weight: 700; }

.affiliate-cta {
  margin-top: 48px; padding: 30px; border-radius: var(--radius);
  border: 1px solid var(--stroke-strong);
  background: linear-gradient(150deg, rgba(77,166,255,.14), rgba(255,255,255,.02));
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.affiliate-cta h3 { font-size: 18px; }
.affiliate-cta p { font-size: 12px; color: var(--text-mute); margin-top: 8px; max-width: 380px; }

.related { margin-top: 90px; }
.related h2 { font-size: 22px; margin-bottom: 26px; }

/* ---------- Archive / ranking ---------- */
.rank-list { display: flex; flex-direction: column; gap: 14px; }
.rank-row {
  display: grid; grid-template-columns: 60px 1fr auto; gap: 24px; align-items: center;
  padding: 22px 26px; border: 1px solid var(--stroke); border-radius: var(--radius); background: var(--bg-2);
  transition: border-color .35s var(--ease), transform .35s var(--ease);
}
.rank-row:hover { border-color: var(--stroke-strong); transform: translateX(4px); }
.rank-row .rk { font-family: var(--font-serif); font-size: 30px; font-weight: 800; color: var(--chrome-mid); }
.rank-row .rk-main h3 { font-size: 17px; }
.rank-row .rk-main p { font-size: 12.5px; color: var(--text-mute); margin-top: 4px; }
.rank-row .rk-score { font-family: var(--font-latin); font-weight: 800; font-size: 22px; }
.rank-row .rk-score small { font-size: 11px; color: var(--text-mute); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 34px; }
.filters a { font-size: 12px; padding: 7px 15px; border-radius: 999px; border: 1px solid var(--stroke); color: var(--text-dim); font-family: var(--font-latin); letter-spacing: .04em; }
.filters a:hover, .filters a.active { color: var(--text); border-color: var(--stroke-strong); background: rgba(255,255,255,.04); }

/* pagination */
.axion-pagination, .navigation.pagination { margin-top: 48px; font-family: var(--font-latin); font-size: 13px; }
.axion-pagination .nav-links, .navigation.pagination .nav-links { display: flex; gap: 8px; justify-content: center; position: static; padding: 0; background: none; border: 0; backdrop-filter: none; flex-direction: row; }
.page-numbers { padding: 8px 14px; border: 1px solid var(--stroke); border-radius: 8px; color: var(--text-dim); }
.page-numbers.current { color: var(--text); border-color: var(--stroke-strong); background: rgba(255,255,255,.04); }
a.page-numbers:hover { color: var(--text); border-color: var(--stroke-strong); }
.wp-link-pages { display: flex; gap: 8px; margin-top: 30px; font-family: var(--font-latin); font-size: 13px; }
.wp-link-pages a, .wp-link-pages > span { padding: 6px 12px; border: 1px solid var(--stroke); border-radius: 8px; color: var(--text-dim); }

/* generic page */
.page-body { padding-top: 150px; }
.page-body .prose { margin-top: 30px; }

/* ---------- WP block / editor bits ---------- */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.alignwide { margin-inline: calc(50% - 50vw); max-width: 100vw; }
.alignfull { margin-inline: calc(50% - 50vw); max-width: 100vw; }
.wp-block-image, .wp-block-embed { margin: 0; }
.aligncenter { text-align: center; }
.wp-caption-text { font-size: 12px; color: var(--text-mute); }

/* =============================================================
   v1.1 — MOTION LAYER
   All effects are opt-in via JS classes and disabled for
   reduced-motion / touch, so the page never depends on them.
   ============================================================= */

/* ---- Hero background video (JS attaches src; image stays as poster) ---- */
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 118%;
  object-fit: cover; object-position: 88% center;
  pointer-events: none; opacity: 0;
  transition: opacity 1.4s var(--ease);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 24%, #000 62%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, transparent 24%, #000 62%, #000 100%);
}
.hero-video.is-playing { opacity: .62; }

/* ---- Cursor glow that follows the pointer over the grid ---- */
.bg-cursor-glow {
  position: fixed; inset: 0; z-index: -2; pointer-events: none; opacity: 0;
  transition: opacity .8s var(--ease);
  background: radial-gradient(460px circle at var(--gx, 50%) var(--gy, 50%), rgba(77,166,255,.11), transparent 66%);
}
.bg-cursor-glow.on { opacity: 1; }

/* ---- Heading wipe reveal (keyed off the proven [data-anim].in system) ---- */
.section-head h2, .cta-band h2 {
  clip-path: inset(0 105% 0 0);
  transition: clip-path 1.15s cubic-bezier(.62,0,.2,1) .1s;
}
[data-anim].in h2 { clip-path: inset(0 -1% 0 0); }
.no-js .section-head h2, .no-js .cta-band h2,
.no-motion .section-head h2, .no-motion .cta-band h2 { clip-path: none; transition: none; }

/* ---- Card 3D tilt + pointer spotlight ---- */
.axion-tilt {
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translate3d(0, var(--ty, 0px), 0);
  transition: transform .55s var(--ease);
  will-change: transform;
}
.axion-tilt.is-tilting { transition: transform .1s linear; }
/* neutralise the plain hover lift while tilt is driving the transform */
.axion-tilt:hover { transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translate3d(0, var(--ty, 0px), 0); }
.axion-spot { position: relative; }
.axion-spot > .spot {
  position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(140,200,255,.16), transparent 62%);
  opacity: 0; transition: opacity .4s var(--ease);
}
.axion-spot:hover > .spot, .axion-tilt.is-tilting > .spot { opacity: 1; }
/* thin chrome edge that lights up toward the pointer */
.axion-spot > .spot::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  border: 1px solid transparent;
  background: radial-gradient(200px circle at var(--mx, 50%) var(--my, 50%), rgba(190,220,255,.5), transparent 60%) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}

/* ---- Primary button shine sweep ---- */
.btn-primary::before {
  content: ""; position: absolute; top: 0; left: -60%; width: 42%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.7), transparent);
  transform: skewX(-18deg); opacity: 0; pointer-events: none;
}
.btn-primary:hover::before { animation: axion-shine .9s var(--ease); }
@keyframes axion-shine {
  0%   { left: -60%; opacity: 0; }
  18%  { opacity: 1; }
  100% { left: 125%; opacity: 0; }
}

/* ---- Eyebrow scan line ---- */
.eyebrow::before { animation: axion-scan 3.4s var(--ease) infinite; transform-origin: left; }
@keyframes axion-scan {
  0%, 62% { transform: scaleX(1); opacity: 1; }
  76%     { transform: scaleX(.35); opacity: .55; }
  100%    { transform: scaleX(1); opacity: 1; }
}

/* ---- Decoding numerals ---- */
.stat .v, .hero-meta .n { font-variant-numeric: tabular-nums; }
.is-decoding { color: var(--glow-soft) !important; -webkit-text-fill-color: var(--glow-soft); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .method { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .rev-grid { grid-template-columns: 1fr 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .toc, .admin-bar .toc { position: relative; top: 0; flex-flow: row wrap; }
  .toc a { border-left: 0; border-top: 1px solid var(--stroke); padding: 8px 0 0; }
}
@media (max-width: 860px) {
  .nav-primary, .nav-cta a.btn { display: none; }
  .nav-primary.is-open { display: block; }
  .nav-toggle { display: inline-flex; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .rev-grid { grid-template-columns: 1fr; }
  .verdict-bars, .verdict-foot, .proscons { grid-template-columns: 1fr; }
  .verdict-foot div:first-child { border-right: 0; border-bottom: 1px solid var(--stroke-soft); }
  .rank-row { grid-template-columns: 44px 1fr; }
  .rank-row .rk-score { grid-column: 2; }
  .hero-media img, .hero-video { -webkit-mask-image: none; mask-image: none; }
  .hero-media img { opacity: .5; }
  .hero-video.is-playing { opacity: .5; }   /* lighter encode, see data-src-mobile */
  .hero-media::after { background: linear-gradient(0deg, var(--bg) 6%, rgba(4,6,12,.55) 60%, rgba(4,6,12,.35)); }
  .gallery { padding-block: clamp(80px, 12vw, 148px); }
  .gallery-rail { height: auto; }
  .gallery-sticky { position: static; min-height: 0; display: block; overflow: visible; padding: 0; }
  .gallery-sticky .section-head { margin-bottom: clamp(38px, 6vw, 68px); }
  /* proximity, not mandatory: mandatory fights the finger and feels sticky */
  .gallery-track { transform: none !important; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; padding-bottom: 12px; -webkit-overflow-scrolling: touch; }
  .tool-card { scroll-snap-align: start; width: min(80vw, 320px); }
  .gallery-progress { display: none; }
}
@media (max-width: 560px) {
  .cat-grid { grid-template-columns: 1fr; }
  .subscribe { flex-direction: column; }
  .subscribe .btn { width: 100%; justify-content: center; }
  .hero-meta { gap: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  [data-anim], [data-anim-child] { opacity: 1 !important; transform: none !important; filter: none !important; }
  .hero h1 .line > span { transform: none !important; }
  .gallery-rail { height: auto !important; }
  .gallery-sticky { position: static !important; min-height: 0 !important; display: block !important; overflow: visible !important; padding: 0 !important; }
  .gallery-sticky .section-head { margin-bottom: 48px !important; }
  .gallery-track { transform: none !important; overflow-x: auto; }
  .gallery { padding-block: clamp(80px, 12vw, 148px) !important; }
  .gallery-progress, .scroll-hint::before { display: none; }
  /* v1.1 motion layer off */
  .hero-video, .bg-cursor-glow { display: none !important; }
  .section-head h2, .cta-band h2 { clip-path: none !important; }
  .axion-tilt { transform: none !important; }
  .axion-spot > .spot { display: none; }
  .eyebrow::before { animation: none !important; }
}
