/* ════════════════════════════════════════
   EQUIST THEME — COMPONENTS
   Buttons, Hero, Tabs, Business grid
════════════════════════════════════════ */

/* ── Buttons ── */
.eq-btn {
  display: inline-flex; align-items: center; gap: 16px;
  padding: 13px 26px;
  border: 1px solid rgba(255,255,255,1);
  color: var(--white);
  font-size: 11px; font-weight: 400; letter-spacing: .22em; text-transform: uppercase;
  text-decoration: none; cursor: none; position: relative; overflow: hidden;
  transition: color .35s ease, border-color .35s ease;
}
.eq-btn::before {
  content: ''; position: absolute; inset: 0;
  background: var(--white);
  clip-path: inset(100% 0 0 0);
  transition: clip-path .45s var(--ease-expo); z-index: 0;
}
.eq-btn:hover::before { clip-path: inset(0% 0 0 0); }
.eq-btn:hover { color: var(--charcoal); border-color: var(--white); }
.eq-btn--light { border-color: rgba(0,0,0,1); color: var(--black); }
.eq-btn--light::before { background: var(--black); }
.eq-btn--light:hover { color: var(--white); border-color: var(--black); }
.btn-text, .btn-arrow-wrap { position: relative; z-index: 1; }
.btn-arrow-wrap { display: flex; align-items: center; width: 26px; height: 12px; overflow: hidden; flex-shrink: 0; }
.arr-p, .arr-s { position: absolute; display: flex; align-items: center; left: 0; transition: transform .38s var(--ease-expo), opacity .3s ease; }
.arr-p { transform: translateX(0); opacity: 1; }
.arr-s { transform: translateX(-30px); opacity: 0; }
.eq-btn:hover .arr-p { transform: translateX(30px); opacity: 0; }
.eq-btn:hover .arr-s { transform: translateX(0); opacity: 1; }
.arr-line { display: block; width: 16px; height: 1px; background: currentColor; flex-shrink: 0; }
.arr-head { display: block; width: 5px; height: 5px; border-right: 1px solid currentColor; border-top: 1px solid currentColor; transform: rotate(45deg) translate(-1px,1px); flex-shrink: 0; margin-left: 1px; }

/* ── Hero Carousel ── */
.hero { position: relative; height: 100vh; overflow: hidden; background: var(--black); }
.slide { position: absolute; inset: 0; display: flex; visibility: hidden; }
.slide.active { visibility: visible; }
.slide-photo { position: absolute; top:0; bottom:0; overflow: hidden; width: 50%; }
.slide[data-side="left"]  .slide-photo { left: 0; }
.slide[data-side="right"] .slide-photo { right: 0; }
.slide-content {
  position: absolute; top:0; bottom:0; width: 50%;
  background: var(--charcoal);
  display: flex; flex-direction: column; justify-content: center;
  padding: 70px 100px; overflow: hidden;
}
.slide[data-side="left"]  .slide-content { left: 50%; }
.slide[data-side="right"] .slide-content { right: 50%; }

.photo-bg {
  position: absolute;
  inset: 0; /* shorthand for top:0; right:0; bottom:0; left:0 */
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Panel transition animations */
.slide.slide-enter-left  .slide-photo   { animation: wipeFromLeft  0.85s cubic-bezier(0.76,0,0.24,1) forwards; }
.slide.slide-enter-left  .slide-content { animation: wipeFromRight 0.85s cubic-bezier(0.76,0,0.24,1) forwards; }
.slide.slide-enter-right .slide-photo   { animation: wipeFromRight 0.85s cubic-bezier(0.76,0,0.24,1) forwards; }
.slide.slide-enter-right .slide-content { animation: wipeFromLeft  0.85s cubic-bezier(0.76,0,0.24,1) forwards; }
.slide.slide-exit-left   .slide-photo   { animation: wipeToLeft    0.42s cubic-bezier(0.76,0,0.24,1) forwards; }
.slide.slide-exit-left   .slide-content { animation: wipeToRight   0.42s cubic-bezier(0.76,0,0.24,1) forwards; }
.slide.slide-exit-right  .slide-photo   { animation: wipeToRight   0.42s cubic-bezier(0.76,0,0.24,1) forwards; }
.slide.slide-exit-right  .slide-content { animation: wipeToLeft    0.42s cubic-bezier(0.76,0,0.24,1) forwards; }

@keyframes wipeFromLeft  { from{ clip-path:inset(0 100% 0 0); } to{ clip-path:inset(0 0% 0 0); } }
@keyframes wipeFromRight { from{ clip-path:inset(0 0 0 100%); } to{ clip-path:inset(0 0% 0 0); } }
@keyframes wipeToLeft    { from{ clip-path:inset(0 0% 0 0);   } to{ clip-path:inset(0 100% 0 0); } }
@keyframes wipeToRight   { from{ clip-path:inset(0 0% 0 0);   } to{ clip-path:inset(0 0 0 100%); } }

/* Accent line on seam */
.slide-content::before {
  content: ''; position: absolute; top:0; bottom:0; width: 2px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.35) 50%, transparent);
  transform: scaleY(0); transition: transform .9s var(--ease-expo) .2s;
}
.slide[data-side="left"]  .slide-content::before { left: 0;  transform-origin: top; }
.slide[data-side="right"] .slide-content::before { right: 0; transform-origin: top; }
.slide.active .slide-content::before { transform: scaleY(1); }

/* Slide content elements */
.slide-label    { font-size:10px; letter-spacing:.38em; color:rgba(255,255,255,0.45); text-transform:uppercase; margin-bottom:26px; opacity:0; transform:translateY(8px); transition:opacity .55s ease .5s, transform .55s var(--ease-expo) .5s; }
.slide-headline { font-size:clamp(24px,3vw,42px); font-weight:700; line-height:1.4; color:var(--white); margin-bottom:22px; letter-spacing:-.01em; opacity:0; transform:translateY(14px); transition:opacity .65s ease .62s, transform .65s var(--ease-expo) .62s; }
.slide-rule     { width:32px; height:1px; background:rgba(255,255,255,0.3); margin-bottom:20px; transform:scaleX(0); transform-origin:left; transition:transform .55s var(--ease-expo) .75s; }
.slide-desc     { font-size:clamp(11px,1vw,13px); font-weight:300; line-height:2; color:rgba(255,255,255,0.5); margin-bottom:34px; max-width:300px; opacity:0; transform:translateY(10px); transition:opacity .6s ease .82s, transform .6s var(--ease-expo) .82s; }
.slide-stat     { display:flex; align-items:baseline; gap:8px; margin-bottom:38px; opacity:0; transition:opacity .6s ease .92s; }
.slide.active .slide-label, .slide.active .slide-headline, .slide.active .slide-desc { opacity:1; transform:none; }
.slide.active .slide-rule { transform:scaleX(1); }
.slide.active .slide-stat { opacity:1; }
.stat-num   { font-size:clamp(48px,6vw,76px); font-weight:700; color:var(--white); line-height:1; letter-spacing:-.03em; }
.stat-label { font-size:11px; color:rgba(255,255,255,0.35); letter-spacing:.08em; }

/* Hero CTA */
.slide-cta {
  display:inline-flex; align-items:center; gap:16px;
  padding:13px 26px; border:1px solid rgba(255,255,255,0.22);
  color:var(--white); font-size:11px; letter-spacing:.22em; text-transform:uppercase;
  text-decoration:none; cursor:none; position:relative; overflow:hidden;
  width:fit-content; opacity:0; transform:translateY(8px);
  transition:opacity .55s ease 1.02s, transform .55s var(--ease-expo) 1.02s, color .35s ease, border-color .35s ease;
}
.slide.active .slide-cta { opacity:1; transform:none; }
.slide-cta::before { content:''; position:absolute; inset:0; background:var(--white); clip-path:inset(100% 0 0 0); transition:clip-path .45s var(--ease-expo); z-index:0; }
.slide-cta:hover::before { clip-path:inset(0% 0 0 0); }
.slide-cta:hover { color:var(--charcoal); border-color:var(--white); }
.cta-text, .cta-arrow { position:relative; z-index:1; }
.cta-arrow { width:18px; height:1px; background:currentColor; transition:width .3s ease; flex-shrink:0; }
.cta-arrow::after { content:''; position:absolute; right:0; top:-3px; width:6px; height:6px; border-right:1px solid currentColor; border-top:1px solid currentColor; transform:rotate(45deg); }
.slide-cta:hover .cta-arrow { width:26px; }

/* Split line */
.split-line {
  position:absolute; top:0; bottom:0; left:50%;
  width:1px; transform:translateX(-50%);
  background:rgba(255,255,255,0.15); z-index:20; pointer-events:none;
}
.split-line.morphing { animation:lineMorph .85s var(--ease-quart) forwards; }
@keyframes lineMorph {
  0%  { clip-path:inset(0 0 0 0); opacity:1; }
  25% { clip-path:inset(22% 0 22% 0); opacity:.6; }
  50% { clip-path:inset(48% 0 48% 0); opacity:.05; }
  75% { clip-path:inset(22% 0 22% 0); opacity:.6; }
  100%{ clip-path:inset(0 0 0 0); opacity:1; }
}

/* Progress bars */
.progress-wrap {
  position:absolute; bottom:36px;
  display:flex; align-items:center; gap:10px; z-index:30;
  left:calc(50% + 44px);
}
.hero[data-cur="1"] .progress-wrap { left:44px; }
.pbar { height:1.5px; background:rgba(255,255,255,0.12); position:relative; cursor:none; overflow:hidden; transition:width .3s ease; }
.pbar.active { width:56px; } .pbar:not(.active) { width:36px; }
.pbar-fill { position:absolute; left:0; top:0; bottom:0; width:0%; background:var(--white); }
.pbar.running .pbar-fill { animation:fillPbar var(--dur,7s) linear forwards; }
.pbar.paused  .pbar-fill { animation-play-state:paused; }
@keyframes fillPbar { from{width:0%} to{width:100%} }
.slide-counter { position:absolute; bottom:42px; font-size:10px; letter-spacing:.18em; color:rgba(255,255,255,0.25); z-index:30; right:44px; }
.hero[data-cur="1"] .slide-counter { right:auto; left:calc(50% + 44px); }

/* Chevrons */
.chevron {
  position:absolute; top:50%; transform:translateY(-50%);
  z-index:30; width:48px; height:48px;
  display:flex; align-items:center; justify-content:center;
  cursor:none; border:1px solid rgba(255,255,255,0.45);
  background:rgba(0,0,0,0.45); backdrop-filter:blur(8px);
  opacity:.85; color:#f5f4f0; /* forces currentColor strokes white */
  transition:background .35s ease, border-color .35s ease, opacity .3s ease, transform .35s var(--ease-spring);
}
.chevron:hover { background:rgba(255,255,255,0.15); border-color:rgba(255,255,255,0.8); opacity:1; transform:translateY(-50%) scale(1.08); }
.chevron:active { transform:translateY(-50%) scale(0.95); }
.chevron-prev { left:20px; } .chevron-next { right:20px; }
.chevron svg { width:14px; height:14px; fill:none; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; transition:transform .35s var(--ease-expo); }
.chevron-prev:hover svg { transform:translateX(-2px); }
.chevron-next:hover svg { transform:translateX(2px); }

/* ── Business Tabs ── */
.eq-business-layout { display:grid; grid-template-columns:200px 1fr; gap:0; align-items:start; }
.eq-tabs-col { position:sticky; top:0; height:100vh; display:flex; flex-direction:column; justify-content:center; padding:60px 0; border-right:1px solid rgba(0,0,0,0.08); background:var(--white); z-index:10; }
.eq-tabs-content { min-height:100vh; }
.eq-tab-list { list-style:none; display:flex; flex-direction:column; gap:2px; }
.eq-tab-btn {
  display:block; width:100%; padding:13px 24px 13px 32px;
  background:transparent; border:none; border-left:1px solid rgba(0,0,0,0.1);
  text-align:left; cursor:none; position:relative; overflow:hidden;
  font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;
  font-size:10px; font-weight:400; letter-spacing:.25em; text-transform:uppercase;
  color:rgba(0,0,0,0.4); transition:color .3s ease, border-color .3s ease;
}
.eq-tab-btn::before { content:''; position:absolute; inset:0; background:#0e0e0e; clip-path:inset(0 100% 0 0); transition:clip-path .4s var(--ease-expo); z-index:0; }
.eq-tab-btn-text { position:relative; z-index:1; display:block; }
.eq-tab-btn:hover { color:rgba(0,0,0,0.75); border-color:rgba(0,0,0,0.25); }
.eq-tab-btn.is-active { border-color:#0e0e0e; color:var(--white); }
.eq-tab-btn.is-active::before { clip-path:inset(0 0% 0 0); }
.eq-tab-btn.is-active .eq-tab-btn-text { color:var(--white); }
.eq-tab-num { font-size:19px; letter-spacing:.1em; color:inherit; opacity:.4; margin-bottom:2px; display:block; position:relative; z-index:1; }
.eq-tab-section { padding:100px 80px 100px 72px; border-bottom:1px solid rgba(0,0,0,0.06); min-height:60vh; display:flex; flex-direction:column; justify-content:center; }
.eq-tab-section:last-child { border-bottom:none; min-height:80vh; }
.eq-section-header { margin-bottom:48px; }
.eq-section-title-en { display:block; font-size:clamp(28px,3.5vw,44px); font-weight:700; letter-spacing:-.01em; line-height:1; margin-bottom:6px; }
.eq-section-title-ja { display:inline-block; font-size:11px; letter-spacing:.08em; color:rgba(0,0,0,0.4); margin-bottom:16px; }
.eq-section-rule { display:block; width:32px; height:1.5px; background:#0e0e0e; }
.eq-section-body { display:grid; grid-template-columns:300px 1fr; gap:56px; align-items:start; }
.eq-section-text { font-size:13px; line-height:2; color:rgba(0,0,0,0.65); max-width:480px; }
.eq-section-text p+p { margin-top:16px; }
.eq-features-list { display:flex; flex-direction:column; list-style:none; }
.eq-feature-item { display:grid; grid-template-columns:64px 1fr; gap:24px; padding:36px 0; border-bottom:1px solid rgba(0,0,0,0.06); align-items:start; }
.eq-feature-item:first-child { padding-top:0; }
.eq-feature-item:last-child { border-bottom:none; }
.eq-feature-num { font-size:40px; font-weight:700; color:rgba(0,0,0,0.07); line-height:1; padding-top:4px; }
.eq-feature-title { font-size:16px; font-weight:700; margin-bottom:10px; }
.eq-feature-rule { display:block; width:24px; height:1px; background:rgba(0,0,0,0.2); margin-bottom:12px; }
.eq-feature-text { font-size:13px; line-height:1.9; color:rgba(0,0,0,0.6); }
/* Tab progress bar — left edge of tab column, below the header */
.eq-scroll-progress {
  position: fixed;
  left: calc(var(--sidebar) + 200px); /* default: sidebar width + tab col */
  top: 0;
  width: 2px; height: 0%;
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.15), #0e0e0e);
  z-index: 5;
  transition: height .1s linear, opacity .3s ease;
  pointer-events: none; opacity: 0;
}
/* Top-bar modes: no sidebar on left, tab column starts at x=0 */
body.sidebar-pos--top-horizontal .eq-scroll-progress,
body.sidebar-pos--top-hide-scroll .eq-scroll-progress {
  left: 200px;          /* tab col only — no sidebar offset */
  top: var(--topbar, 60px); /* start below the top bar */
}
