/* =====================================================================
   東海CAIO LP — base.css
   tokens · primitives · header · hero · buttons · motion · directions
   ===================================================================== */
:root {
  --bg: #F4EFE6;
  --bg-2: #ECE5D6;
  --bg-3: #E2DAC7;
  --paper: #FAF6EC;
  --line: #2D2825;
  --line-soft: #C9BFA8;
  --line-thin: #DACFB8;
  --fg: #1A1614;
  --fg-2: #4A4540;
  --fg-3: #76706A;
  --green: #2F5D3E;
  --green-deep: #244A30;
  --green-soft: #3F7150;
  --terra: #C66B3D;
  --terra-deep: #A85631;
  --line-brand: #06C755;      /* LINE green */
  --line-brand-deep: #05a948;

  /* accent role — remapped by direction / accent tweak */
  --accent: var(--green);
  --accent-deep: var(--green-deep);
  --accent-soft: var(--green-soft);

  --maxw: 1240px;
  --pad-x: clamp(20px, 4vw, 56px);

  --sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  --serif: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --en: "Inter Tight", "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --reveal-dist: 26px;
  --display-scale: 1;
}

html.theme-dark {
  --bg: #15130F;
  --bg-2: #1E1B16;
  --bg-3: #28241D;
  --paper: #1A1813;
  --line: #E8E1CF;
  --line-soft: #3A352D;
  --line-thin: #2C2922;
  --fg: #F4EFE6;
  --fg-2: #BDB6A6;
  --fg-3: #8A8478;
  --green: #6FA47B;
  --green-deep: #5A8F65;
  --green-soft: #84B791;
  --terra: #D98A5C;
  --terra-deep: #C66B3D;
}

/* ===== Accent role swap (terra-led) ===== */
html.accent-terra {
  --accent: var(--terra);
  --accent-deep: var(--terra-deep);
  --accent-soft: var(--terra);
}

/* ===== Direction tuning =====
   和紙 editorial : 静か・明朝中心・余白広め・動き控えめ
   躍動 kinetic   : 大きく・力強く・動き強め
   伴走 warm      : 親しみ・やわらかい温度感・読みやすさ重視          */
html.dir-editorial { --reveal-dist: 16px; --display-scale: 0.96; }
html.dir-kinetic   { --reveal-dist: 40px; --display-scale: 1.08; }
html.dir-warm      { --reveal-dist: 22px; --display-scale: 1.02; }

/* display type scales with direction */
.hero h1 { font-size: calc(clamp(34px, 6vw, 78px) * var(--display-scale)); }
.sec-title { font-size: calc(clamp(28px, 4.4vw, 54px) * var(--display-scale)); }

/* editorial — calmer, lighter, hide the kinetic dot field */
html.dir-editorial .hero h1 { font-weight: 600; line-height: 1.5; }
html.dir-editorial .hero { padding-top: clamp(72px, 9vw, 130px); }
html.dir-editorial .sec-num .pin { animation: none; }
html.dir-editorial .field { display: none; }

/* kinetic — bolder display, tighter, energetic */
html.dir-kinetic .hero h1 { font-weight: 700; line-height: 1.32; letter-spacing: 0.005em; }
html.dir-kinetic .sec-title { font-weight: 700; }
html.dir-kinetic .hero h1 .underline { background-size: 100% 6px; }
html.dir-kinetic .hero-meta .live { color: var(--terra); }
html.dir-kinetic .hero-meta .live .blip { background: var(--terra); }

/* warm — friendly: warmer hero wash, larger readable copy, no hard dot field */
html.dir-warm .field { display: none; }
html.dir-warm .hero { background: radial-gradient(ellipse 100% 70% at 80% -5%, color-mix(in oklab, var(--terra) 14%, transparent), transparent 62%), var(--bg); }
html.dir-warm .hero h1 { line-height: 1.46; }
html.dir-warm .hero-sub { font-size: 16.5px; }
html.dir-warm .sec-lead { font-size: 16px; }
html.dir-warm .btn { padding-top: 18px; padding-bottom: 18px; }
html.dir-warm .case h4, html.dir-warm .pain h4 { line-height: 1.7; }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--fg);
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.85;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; }

.en, .num { font-family: var(--en); letter-spacing: -0.01em; }
.mono { font-family: var(--mono); letter-spacing: 0; }
.serif { font-family: var(--serif); }

/* ===== Layout primitives ===== */
.shell { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad-x); }
.section { position: relative; padding: clamp(96px, 12vw, 184px) 0; }
.section:first-of-type { border-top: 0; }

.sec-head { display: grid; grid-template-columns: 200px 1fr; gap: 44px; margin-bottom: 80px; padding-top: 28px; border-top: 1.5px solid var(--fg); align-items: start; }
@media (max-width: 760px) { .sec-head { grid-template-columns: 1fr; gap: 18px; margin-bottom: 52px; padding-top: 20px; } }
.sec-num {
  font-family: var(--mono); font-weight: 500; font-size: 11.5px; color: var(--fg-3);
  letter-spacing: 0.08em;
  display: flex; justify-content: space-between; align-items: center;
}
.sec-num .pin { width: 7px; height: 7px; background: var(--terra); animation: pin-pulse 2.6s var(--ease) infinite; }
@keyframes pin-pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: .55; } }
.sec-title {
  margin: 0; font-family: var(--serif); font-size: clamp(28px, 4.4vw, 54px); font-weight: 600;
  line-height: 1.4; letter-spacing: 0.005em; text-wrap: balance; color: var(--fg);
}
.sec-title em { font-style: normal; color: var(--accent); position: relative; }
.sec-kicker {
  display: block; font-family: var(--en); font-size: 12px; font-weight: 500; color: var(--terra);
  letter-spacing: 0.22em; margin-bottom: 18px; text-transform: uppercase;
}
.sec-lead { margin-top: 24px; font-size: 15.5px; color: var(--fg-2); max-width: 640px; line-height: 1.95; text-wrap: pretty; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 12px; padding: 17px 26px;
  font-weight: 700; font-size: 14.5px; border: 1px solid transparent;
  transition: transform .2s var(--ease), background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  white-space: nowrap; border-radius: 0; position: relative;
}
.btn-primary { background: var(--accent); color: var(--paper); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--fg); }
.btn-ghost:hover { background: var(--fg); color: var(--bg); transform: translateY(-2px); }
.btn .arr { display: inline-block; width: 16px; height: 1px; background: currentColor; position: relative; transition: width .2s var(--ease); }
.btn:hover .arr { width: 22px; }
.btn .arr::after {
  content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px;
  border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg);
}

/* LINE button */
.btn-line { background: var(--line-brand); color: #fff; border-color: var(--line-brand); }
.btn-line:hover { background: var(--line-brand-deep); border-color: var(--line-brand-deep); }
.btn-line .li {
  width: 19px; height: 19px; display: inline-grid; place-items: center;
  background: #fff; color: var(--line-brand); border-radius: 5px; font-weight: 800;
  font-size: 10px; font-family: var(--en); letter-spacing: -0.02em; line-height: 1;
}
.btn-line:hover .li { color: var(--line-brand-deep); }

/* ===== Tags / chips ===== */
.tag {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--en); font-size: 11px;
  letter-spacing: 0.16em; font-weight: 500; color: var(--fg-2); padding: 7px 11px;
  border: 1px solid var(--line-soft); background: var(--paper); text-transform: uppercase;
}
.tag .dot { width: 5px; height: 5px; background: var(--terra); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in oklab, var(--bg) 86%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow .3s ease, background .3s ease;
}
.site-header.scrolled { box-shadow: 0 8px 30px -18px rgba(26,22,20,.5); }
.site-header .row { display: flex; align-items: center; justify-content: space-between; height: 92px; gap: 18px; }
.brand { display: flex; align-items: center; gap: 13px; min-width: 0; }
.brand img { width: 56px; height: 56px; display: block; object-fit: contain; transition: transform .4s var(--ease); }
.brand:hover img { transform: rotate(-6deg) scale(1.05); }
.brand .txt { display: flex; flex-direction: column; line-height: 1.1; }
.brand .name { font-family: var(--serif); font-weight: 600; font-size: 18px; letter-spacing: 0.04em; }
.brand small { font-family: var(--en); font-size: 10px; letter-spacing: 0.22em; color: var(--fg-3); font-weight: 500; margin-top: 4px; }

.nav { display: flex; align-items: center; gap: 26px; font-size: 13px; color: var(--fg-2); }
.nav a.link { white-space: nowrap; position: relative; padding: 4px 0; }
.nav a.link::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1.5px;
  background: var(--accent); transition: width .25s var(--ease);
}
.nav a.link:hover { color: var(--fg); }
.nav a.link:hover::after { width: 100%; }
.nav .pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; background: var(--line-brand); color: #fff; font-weight: 700; font-size: 13px;
  transition: background .2s ease, transform .2s var(--ease);
}
.nav .pill:hover { background: var(--line-brand-deep); }
.nav .pill .li { width: 17px; height: 17px; display: inline-grid; place-items: center; background: #fff; color: var(--line-brand); border-radius: 4px; font-weight: 800; font-size: 9px; font-family: var(--en); }

/* hamburger */
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line-soft); background: var(--paper); position: relative; }
.burger span { position: absolute; left: 11px; width: 22px; height: 1.6px; background: var(--fg); transition: transform .3s var(--ease), opacity .2s ease; }
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* mobile drawer */
.drawer-scrim { position: fixed; inset: 0; background: rgba(20,16,14,.45); z-index: 55; opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.drawer-scrim.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(82vw, 360px); z-index: 58;
  background: var(--bg); border-left: 1px solid var(--line); transform: translateX(100%);
  transition: transform .38s var(--ease); display: flex; flex-direction: column; padding: 28px 26px;
  overflow-y: auto;
}
.drawer.open { transform: translateX(0); }
.drawer .d-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.drawer .d-head .name { font-family: var(--serif); font-size: 18px; font-weight: 600; }
.drawer .d-close { width: 40px; height: 40px; border: 1px solid var(--line-soft); background: var(--paper); position: relative; }
.drawer .d-close::before, .drawer .d-close::after { content: ""; position: absolute; left: 11px; top: 19px; width: 18px; height: 1.6px; background: var(--fg); }
.drawer .d-close::before { transform: rotate(45deg); }
.drawer .d-close::after { transform: rotate(-45deg); }
.drawer nav { display: flex; flex-direction: column; }
.drawer nav a { font-family: var(--serif); font-size: 19px; padding: 16px 0; border-bottom: 1px solid var(--line-soft); display: flex; justify-content: space-between; align-items: center; }
.drawer nav a .en { font-family: var(--en); font-size: 11px; color: var(--fg-3); letter-spacing: .14em; }
.drawer .d-cta { margin-top: 26px; display: grid; gap: 12px; }
.drawer .d-cta .btn { justify-content: center; width: 100%; }

@media (max-width: 920px) {
  .nav .link { display: none; }
  .burger { display: block; }
  .site-header .row { height: 76px; }
  .brand img { width: 48px; height: 48px; }
  .brand small { display: none; }
}
@media (max-width: 420px) {
  .nav .pill span.txt-full { display: none; }
}

/* ===== Hero ===== */
.hero {
  position: relative; padding: clamp(72px, 8vw, 124px) 0 clamp(60px, 7vw, 100px);
  overflow: hidden; border-top: 0;
  /* 深緑パレット：豊かなグリーン地に白文字。テラコッタでアクセント */
  --bg:#143726; --bg-2:#1A4630; --bg-3:#21533A; --paper:#1B4631;
  --line:#EAF2EC; --line-soft:#3A5E48; --line-thin:#2C4D3A;
  --fg:#FFFFFF; --fg-2:#D4E2D8; --fg-3:#9DB6A6;
  --green:#B7ECC2; --green-deep:#98DBA6; --green-soft:#CBF2D2;
  --terra:#F0A472; --terra-deep:#DC8552;
  --accent:#BCEFC6; --accent-deep:#9FE0AE; --accent-soft:#CFF3D6;
  background:
    radial-gradient(ellipse 78% 60% at 86% -8%, color-mix(in oklab, var(--terra) 30%, transparent), transparent 58%),
    radial-gradient(ellipse 70% 58% at 4% 6%, color-mix(in oklab, var(--green) 26%, transparent), transparent 60%),
    linear-gradient(165deg, #16412B 0%, #103420 60%, #0C2A1A 100%);
  color: var(--fg);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 100% 8px; opacity: 1;
  mask-image: linear-gradient(180deg, black, transparent 72%);
  -webkit-mask-image: linear-gradient(180deg, black, transparent 72%); pointer-events: none;
}
/* aurora（ゆっくり漂う光） */
.hero-neural {
  position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none;
  mask-image: radial-gradient(135% 110% at 78% 2%, #000 30%, rgba(0,0,0,0.5) 62%, transparent 100%);
  -webkit-mask-image: radial-gradient(135% 110% at 78% 2%, #000 30%, rgba(0,0,0,0.5) 62%, transparent 100%);
}
html.motion-off .hero-neural { display: none; }
.hero-aura { position: absolute; inset: -12% -6%; z-index: 0; pointer-events: none; overflow: hidden; }
.hero-aura span { position: absolute; border-radius: 50%; filter: blur(72px); opacity: .5; mix-blend-mode: screen; will-change: transform; }
.hero-aura .a1 { width: 48vw; height: 48vw; left: -10vw; top: -16vw; background: radial-gradient(circle at 50% 50%, var(--green-soft), transparent 68%); animation: aura-a 19s ease-in-out infinite; }
.hero-aura .a2 { width: 40vw; height: 40vw; right: -8vw; top: -10vw; background: radial-gradient(circle at 50% 50%, var(--terra), transparent 68%); animation: aura-b 24s ease-in-out infinite; }
.hero-aura .a3 { width: 34vw; height: 34vw; left: 34vw; bottom: -22vw; background: radial-gradient(circle at 50% 50%, var(--green), transparent 70%); opacity: .3; animation: aura-c 28s ease-in-out infinite; }
@keyframes aura-a { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(7vw,5vw) scale(1.18); } }
@keyframes aura-b { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-6vw,6vw) scale(1.12); } }
@keyframes aura-c { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(5vw,-6vw) scale(1.2); } }
@media (prefers-reduced-motion: reduce) { .hero-aura span { animation: none; } }
/* floating dots field (kinetic) */
.hero .field { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero .field i {
  position: absolute; width: 6px; height: 6px; background: var(--terra); opacity: .0;
}
html.dir-kinetic .hero .field i { animation: floaty 9s ease-in-out infinite; opacity: .14; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-22px); } }
.hero .shell { position: relative; z-index: 2; }

.hero-meta {
  display: flex; align-items: center; gap: 14px; margin-bottom: 32px; font-family: var(--en);
  font-size: 11px; letter-spacing: 0.22em; color: var(--fg-3); text-transform: uppercase; flex-wrap: wrap;
}
.hero-meta .region { display: inline-flex; align-items: center; gap: 8px; color: var(--fg); font-weight: 600; }
.hero-meta .region::before { content: ""; width: 6px; height: 6px; background: var(--terra); }
.hero-meta .div { color: var(--line-soft); }
.hero-meta .live { display: inline-flex; align-items: center; gap: 7px; color: var(--green); font-weight: 600; }
.hero-meta .live .blip { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 color-mix(in oklab, var(--green) 60%, transparent); animation: blip 2s infinite; }
@keyframes blip { 0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--green) 55%, transparent); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.hero h1 {
  font-family: var(--serif); font-size: clamp(34px, 6vw, 78px); font-weight: 600;
  line-height: 1.42; letter-spacing: 0.01em; margin: 0 0 32px; text-wrap: balance; color: var(--fg);
}
.hero h1 .accent { color: var(--accent); }
.hero h1 .underline {
  background-image: linear-gradient(var(--terra), var(--terra));
  background-repeat: no-repeat; background-position: 0 100%; background-size: 100% 4px; padding-bottom: 2px;
}
/* rotating word */
.rotor { display: inline-grid; vertical-align: bottom; }
.rotor .slot { grid-area: 1 / 1; display: inline-flex; }
.rotor .word { color: var(--accent); position: relative; }
.rotor .word::after {
  content: ""; position: absolute; left: 0; bottom: 2px; width: 100%; height: 5px;
  background: color-mix(in oklab, var(--terra) 55%, transparent);
}
.rotor .word.out { animation: word-out .5s var(--ease) forwards; }
.rotor .word.in { animation: word-in .5s var(--ease) forwards; }
@keyframes word-out { to { opacity: 0; transform: translateY(-14px) skewX(-6deg); } }
@keyframes word-in { from { opacity: 0; transform: translateY(16px) skewX(6deg); } to { opacity: 1; transform: none; } }

.hero-sub { max-width: 640px; font-size: 16px; color: var(--fg-2); line-height: 2; margin: 0 0 38px; text-wrap: pretty; }
.hero-sub strong { color: var(--fg); font-weight: 700; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; align-items: center; }
.hero-cta .note { font-size: 12.5px; color: var(--fg-3); display: inline-flex; align-items: center; gap: 8px; }
.hero-cta .note::before { content: ""; width: 16px; height: 1px; background: var(--line-soft); }

/* tool ticker */
.ticker { margin-top: 34px; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); overflow: hidden; position: relative; }
.ticker::before, .ticker::after { content: ""; position: absolute; top: 0; bottom: 0; width: 60px; z-index: 2; pointer-events: none; }
.ticker::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.ticker::after { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }
.ticker .track { display: flex; gap: 0; width: max-content; animation: ticker-run 26s linear infinite; }
html.dir-editorial .ticker .track { animation-duration: 40s; }
.ticker:hover .track { animation-play-state: paused; }
.ticker .cell { display: inline-flex; align-items: center; gap: 9px; padding: 15px 26px; border-right: 1px solid var(--line-soft); white-space: nowrap; font-family: var(--en); font-size: 13px; font-weight: 500; color: var(--fg-2); letter-spacing: .04em; }
.ticker .cell .sq { width: 7px; height: 7px; background: var(--accent); }
@keyframes ticker-run { to { transform: translateX(-50%); } }

/* hero stat strip */
.hero-strip { margin-top: 30px; border: 1px solid var(--line); display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; background: var(--paper); }
@media (max-width: 880px) { .hero-strip { grid-template-columns: 1fr 1fr; } }
.hero-strip > div { padding: 24px 26px; border-right: 1px solid var(--line-soft); }
.hero-strip > div:last-child { border-right: 0; }
@media (max-width: 880px) {
  .hero-strip > div:nth-child(2n) { border-right: 0; }
  .hero-strip > div:not(:nth-last-child(-n+2)) { border-bottom: 1px solid var(--line-soft); }
}
.hero-strip .lead { display: flex; flex-direction: column; gap: 6px; }
.hero-strip .lab { font-family: var(--en); font-size: 11px; letter-spacing: 0.18em; color: var(--fg-3); text-transform: uppercase; display: block; margin-bottom: 6px; }
.hero-strip .lead .v { font-family: var(--serif); font-size: 17px; font-weight: 600; color: var(--fg); margin-top: 0; }
.hero-strip .stat .v { font-family: var(--en); font-size: 27px; font-weight: 600; letter-spacing: -0.01em; color: var(--fg); }
.hero-strip .stat .v small, .hero-strip .stat .v sup { font-size: 0.5em; color: var(--fg-3); font-weight: 500; margin-left: 2px; }
@media (max-width: 560px) { .hero-strip { grid-template-columns: 1fr; } .hero-strip > div { border-right: 0; border-bottom: 1px solid var(--line-soft); } .hero-strip > div:last-child { border-bottom: 0; } }

/* ===== Scroll reveal ===== */
.reveal { opacity: 0; transform: translateY(var(--reveal-dist)); transition: opacity .7s var(--ease), transform .7s var(--ease); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
html.motion-off .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
html.motion-off * { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}

/* ===== Floating CTA + back to top ===== */
.float-cta {
  position: fixed; right: clamp(16px, 3vw, 28px); bottom: clamp(16px, 3vw, 28px); z-index: 45;
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
  opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .4s ease, transform .4s var(--ease);
}
.float-cta.show { opacity: 1; transform: none; pointer-events: auto; }
.float-line {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 20px;
  background: var(--line-brand); color: #fff; font-weight: 700; font-size: 14px;
  box-shadow: 0 14px 34px -12px rgba(6,199,85,.6); transition: transform .2s var(--ease), background .2s ease;
}
.float-line:hover { background: var(--line-brand-deep); }
.float-line .li { width: 22px; height: 22px; display: inline-grid; place-items: center; background: #fff; color: var(--line-brand); border-radius: 6px; font-weight: 800; font-size: 11px; font-family: var(--en); }
.float-line .pulse { position: absolute; }
.to-top { width: 46px; height: 46px; align-self: flex-end; border: 1px solid var(--line); background: var(--paper); color: var(--fg); display: grid; place-items: center; transition: transform .2s var(--ease), background .2s ease; }
.to-top:hover { transform: translateY(-2px); background: var(--bg-2); }
.to-top svg { width: 16px; height: 16px; }

::selection { background: var(--accent); color: var(--paper); }

/* ===== Custom cursor ===== */
@media (hover: hover) and (pointer: fine) {
  html.cursor-fx, html.cursor-fx *, html.cursor-fx a, html.cursor-fx button, html.cursor-fx summary, html.cursor-fx input { cursor: none !important; }
}
.cur-dot {
  position: fixed; top: 0; left: 0; width: 8px; height: 8px; background: var(--terra);
  z-index: 10000; pointer-events: none; will-change: transform; transition: opacity .2s ease;
}
.cur-ring {
  position: fixed; top: 0; left: 0; width: 30px; height: 30px; border: 1.5px solid #fff;
  z-index: 9999; pointer-events: none; will-change: transform; mix-blend-mode: difference;
  transition: width .26s var(--ease), height .26s var(--ease), background .26s ease, opacity .2s ease;
}
.cur-ring.hot { width: 54px; height: 54px; background: rgba(255,255,255,0.16); }
.cur-ring.down { width: 20px; height: 20px; }

/* ===== Scroll progress ===== */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 70; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; width: 100%; transform-origin: left center; transform: scaleX(0); background: linear-gradient(90deg, var(--terra), var(--accent)); will-change: transform; }

/* cursor-tracked hero glow */
.hero { --mx: 85%; --my: 0%; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(360px 300px at var(--mx) var(--my), color-mix(in oklab, var(--terra) 13%, transparent), transparent 70%);
  opacity: 0; transition: opacity .4s ease;
}
@media (hover: hover) and (pointer: fine) { html.dir-kinetic .hero::after, html.dir-warm .hero::after { opacity: 1; } }
html.motion-off .hero::after { opacity: 0 !important; }

/* tilt cards keep their own snappy transition (set inline by JS) */
.case, .plan, .review { transform-style: preserve-3d; }
