/* ============================================================
   HWH Capital Partners — Homepage
   Black & white minimal landing. One single active strategy.
   ============================================================ */

/* ─── Tokens ──────────────────────────────────────────────── */
*,
*::before,
*::after { box-sizing: border-box; }

:root {
  --bg: #000000;
  --bg-elev-1: #0a0a0b;
  --bg-card: #0c0c10;
  --bg-card-hover: #15151a;

  --text: #ffffff;
  --text-muted: #a8a8b3;
  --text-dim: #6b6b78;
  --text-faint: #2a2a30;

  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.18);
  --border-bright: rgba(255, 255, 255, 0.4);

  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Consolas, monospace;

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }

a {
  color: inherit;
  text-decoration: none;
  transition: color 200ms var(--ease-out), border-color 200ms var(--ease-out);
}

::selection { background: #ffffff; color: #000; }

/* ─── Layout ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ─── Eyebrow / labels ────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--text-muted);
  margin: 0 0 36px;
}

.eyebrow__line {
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--text-muted);
}

.eyebrow__num {
  color: var(--text);
  font-weight: 600;
}

/* ─── Brand mark (B&W version of MIRAI's logo) ────────────── */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
}

.brand__square {
  display: inline-block;
  width: 12px;
  height: 12px;
  background: var(--text);
  position: relative;
  top: -8px;
  transition: background 240ms;
}

.brand__name {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.1;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.18em;
}

.brand__sub {
  font-size: 9px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-top: 5px;
}

a.brand:hover .brand__square { background: var(--text-muted); }

/* ─── Header ──────────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: all 320ms var(--ease-out);
}

.header.is-scrolled {
  padding: 14px 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ─── Hero ────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 140px 0 120px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 800px 600px at 80% 50%, rgba(255, 255, 255, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse 600px 400px at 20% 30%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.hero__canvas {
  position: absolute;
  top: 0;
  right: 0;
  width: clamp(360px, 50vw, 720px);
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.85;
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.35) 20%, rgba(0, 0, 0, 0.85) 50%, #000 70%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.35) 20%, rgba(0, 0, 0, 0.85) 50%, #000 70%);
}

@media (max-width: 760px) {
  .hero__canvas {
    width: 100%;
    opacity: 0.22;
    mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.6) 40%, #000 100%);
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.6) 40%, #000 100%);
  }
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  width: 100%;
}

.hero__title {
  margin: 0;
  font-size: clamp(64px, 13vw, 184px);
  line-height: 0.88;
  font-weight: 800;
  letter-spacing: -0.045em;
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 1vw, 14px);
}

.hero__title-mark {
  background: linear-gradient(180deg, #ffffff 0%, #c8c8d0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__title-sub {
  font-size: clamp(28px, 5.5vw, 72px);
  font-weight: 300;
  letter-spacing: -0.025em;
  color: var(--text);
  line-height: 1;
}

.hero__title-sub em {
  font-style: italic;
  font-weight: 300;
}

.hero__rule {
  width: 88px;
  height: 2px;
  background: var(--text);
  margin: 44px 0 28px;
}

.hero__lead {
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 400;
  color: var(--text);
  margin: 0 0 14px;
  line-height: 1.5;
}

.hero__intro {
  font-size: clamp(15px, 1.4vw, 17px);
  color: var(--text-muted);
  margin: 0;
  max-width: 580px;
  line-height: 1.65;
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 24px;
  height: 38px;
  border: 1.5px solid var(--text-dim);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
  transition: border-color 240ms;
}

.hero__scroll:hover { border-color: var(--text); }

.hero__scroll span {
  width: 2px;
  height: 6px;
  background: var(--text-dim);
  border-radius: 1px;
  animation: scrollHint 1.8s ease-in-out infinite;
}

.hero__scroll:hover span { background: var(--text); }

@keyframes scrollHint {
  0%   { transform: translateY(0); opacity: 1; }
  50%  { transform: translateY(8px); opacity: 0; }
  51%  { transform: translateY(0); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* ─── Strategies section ──────────────────────────────────── */
.strategies {
  padding: clamp(80px, 11vw, 140px) 0 clamp(100px, 14vw, 180px);
  background: var(--bg-elev-1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.strategies__header {
  max-width: 880px;
  margin: 0 auto 64px;
}

.strategies__title {
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 500;
  margin: 0;
  color: var(--text);
}

.strategies__title em {
  font-weight: 300;
  font-style: italic;
}

/* ─── Strategy card ───────────────────────────────────────── */
.strategy {
  display: block;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-card);
  position: relative;
  overflow: hidden;
}

.strategy::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, transparent 60%);
  pointer-events: none;
}

.strategy__inner {
  padding: clamp(36px, 5vw, 64px);
  position: relative;
  z-index: 1;
}

.strategy__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 48px;
}

.strategy__tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text);
  padding: 8px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
}

.strategy__tag::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
  animation: pulseDot 2.4s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}

.strategy__name {
  margin: 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 0.92;
  letter-spacing: -0.035em;
}

.strategy__name-mark {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  color: var(--text);
}

.strategy__name-sub {
  font-size: clamp(22px, 3.5vw, 38px);
  font-weight: 300;
  color: var(--text);
}

.strategy__name-sub em {
  font-style: italic;
  font-weight: 300;
}

.strategy__type {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 28px;
}

.strategy__desc {
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 0 44px;
}

.strategy__meta {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.strategy__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  padding: 14px 24px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  transition: all 280ms var(--ease-out);
  white-space: nowrap;
  text-decoration: none;
}

.strategy__cta:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.strategy__cta svg {
  transition: transform 280ms var(--ease-out);
}

.strategy__cta:hover svg {
  transform: translateX(4px);
}

@media (max-width: 560px) {
  .strategy__cta { width: 100%; justify-content: center; }
}

/* ─── Footer ──────────────────────────────────────────────── */
.footer {
  padding: 72px 0 56px;
  background: var(--bg);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.footer__col--brand { grid-row: span 1; }

.footer__label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 16px;
}

.footer__body {
  font-style: normal;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text);
  margin: 0;
}

.footer__body a {
  color: var(--text);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms;
}

.footer__body a:hover { border-color: var(--text); }

.footer__legal {
  grid-column: 1 / -1;
  margin: 56px 0 0;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-dim);
}

@media (max-width: 760px) {
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer__legal { margin-top: 24px; }
}

/* ─── Reveal on scroll ────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 800ms var(--ease-out), transform 900ms var(--ease-out);
  will-change: opacity, transform;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; }
}
