/* ============================================================
   WTHEORY LANDING — page layout on top of ledger.css
   ============================================================ */

/* ── Navigation over the hero: transparent until scrolled ──── */
.page--home .nav:not(.is-scrolled) {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom-color: transparent;
}
.page--home .nav:not(.is-scrolled) .nav__logo,
.page--home .nav:not(.is-scrolled) .nav__mobile-toggle { color: var(--paper); }
.page--home .nav:not(.is-scrolled) .nav__links a { color: rgba(246, 242, 234, 0.88); }
.page--home .nav:not(.is-scrolled) .nav__links a:hover { color: var(--paper); }

/* ── Hero ───────────────────────────────────────────────────── */
.page--home .hx {
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  padding: 0;
  text-align: left;
  background: var(--ink-deep);
}

.page--home .hx .hero__scrim {
  background:
    linear-gradient(180deg, rgba(20, 18, 15, 0.62) 0%, rgba(20, 18, 15, 0.12) 30%, rgba(20, 18, 15, 0.35) 58%, rgba(20, 18, 15, 0.9) 100%),
    radial-gradient(70% 60% at 0% 100%, rgba(182, 59, 31, 0.28), transparent 70%);
}

.page--home .hx .hero__scrim::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.12;
  mix-blend-mode: overlay;
}

.page--home .hx__inner {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 140px var(--gutter) 0;
  color: var(--paper);
}

.page--home .hx__top {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: end;
  gap: 32px;
}

.page--home .hx__title {
  grid-column: 1 / span 8;
  margin: 0;
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(56px, 9.2vw, 152px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--paper);
  font-optical-sizing: auto;
}

.page--home .hx__line { display: block; }

.page--home .hx__line--em {
  margin-left: 0.62em;
  font-style: italic;
  font-weight: 300;
  color: #f3e2c6;
}

.page--home .hx__aside {
  grid-column: 9 / span 4;
  padding-bottom: 0.6em;
}

.page--home .hx__intro {
  max-width: 38ch;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(246, 242, 234, 0.9);
}

.page--home .hx__cue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(246, 242, 234, 0.5);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper);
}

.page--home .hx__cue span { transition: transform 0.3s ease; }
.page--home .hx__cue:hover span { transform: translateY(3px); }

.page--home .hx__ledger {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: clamp(56px, 8vw, 104px) 0 0;
  border-top: 1px solid rgba(246, 242, 234, 0.3);
}

.page--home .hx__stat {
  padding: 22px 24px 32px;
  border-left: 1px solid rgba(246, 242, 234, 0.18);
}

.page--home .hx__stat:first-child { padding-left: 0; border-left: 0; }

.page--home .hx__stat dt {
  font-family: var(--serif);
  font-size: clamp(34px, 3.6vw, 52px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--paper);
  font-variant-numeric: lining-nums;
}

.page--home .hx__stat dd {
  margin: 10px 0 0;
  max-width: 24ch;
  font-size: 13.5px;
  line-height: 1.45;
  color: rgba(246, 242, 234, 0.82);
}

.page--home .lang-switch {
  top: 88px;
  right: var(--gutter);
  padding: 6px 12px;
  border: 1px solid rgba(246, 242, 234, 0.45);
  border-radius: 2px;
  background: transparent;
  box-shadow: none;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--paper);
}

.page--home .lang-switch:hover { background: rgba(246, 242, 234, 0.12); }

/* Orchestrated page load */
@keyframes hx-rise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}
@keyframes hx-rule {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.page--home .hx__line,
.page--home .hx__aside,
.page--home .hx__stat { animation: hx-rise 1s cubic-bezier(0.22, 1, 0.36, 1) both; }
.page--home .hx__line:nth-child(1) { animation-delay: 0.1s; }
.page--home .hx__line:nth-child(2) { animation-delay: 0.22s; }
.page--home .hx__aside { animation-delay: 0.45s; }
.page--home .hx__stat:nth-child(1) { animation-delay: 0.6s; }
.page--home .hx__stat:nth-child(2) { animation-delay: 0.68s; }
.page--home .hx__stat:nth-child(3) { animation-delay: 0.76s; }
.page--home .hx__stat:nth-child(4) { animation-delay: 0.84s; }

@media (max-width: 1024px) {
  .page--home .hx__title { grid-column: 1 / -1; }
  .page--home .hx__aside { grid-column: 1 / span 9; padding-bottom: 0; }
  .page--home .hx__ledger { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page--home .hx__stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .page--home .hx__stat:nth-child(n+3) { border-top: 1px solid rgba(246, 242, 234, 0.18); }
}

@media (max-width: 640px) {
  .page--home .hx__inner { padding-top: 132px; }
  .page--home .hx__top { gap: 24px; }
  .page--home .hx__aside { grid-column: 1 / -1; }
  .page--home .hx__line--em { margin-left: 0.4em; }
  .page--home .hx__stat { padding: 18px 14px 22px; }
  .page--home .lang-switch { top: 76px; }
}

/* ── 01 Intelligent Website ────────────────────────────────── */
.page--home .iw { background: var(--paper); }

.page--home .iw-intro {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px clamp(48px, 7vw, 120px);
}

.page--home .iw-intro__lead { gap: clamp(36px, 4vw, 56px); }

.page--home .iw-intro__body { gap: 20px; padding-top: 10px; }

.page--home .iw-intro__body p:not(.lede) {
  font-size: 16.5px;
  line-height: 1.68;
  color: var(--ink-2);
}

/* Dark stage, recoloured into the ink palette */
.page--home .iw-stage {
  margin-top: clamp(72px, 9vw, 128px);
  border-radius: 4px;
  background:
    radial-gradient(55% 70% at 28% 45%, rgba(239, 230, 210, 0.08), transparent 70%),
    radial-gradient(40% 55% at 88% 62%, rgba(255, 122, 87, 0.12), transparent 70%),
    linear-gradient(180deg, #1c1a17 0%, #12100d 100%);
  box-shadow: 0 40px 90px -40px rgba(28, 26, 23, 0.55);
}

.page--home .iw-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: var(--grain);
  opacity: 0.08;
  mix-blend-mode: screen;
}

.page--home .iw-stage__eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.16em;
  color: var(--accent-bright);
}

.page--home .iw-stage__title {
  max-width: 22ch;
  font-family: var(--serif);
  font-size: clamp(24px, 2.6vw, 36px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.page--home .iw-tag {
  border-radius: 2px;
  border-color: rgba(246, 242, 234, 0.2);
  background: rgba(20, 18, 15, 0.78);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #e6e0d4;
}

.page--home .iw-tag.is-hot {
  border-color: rgba(255, 122, 87, 0.75);
  background: rgba(182, 59, 31, 0.4);
  color: #fff;
}

.page--home .iw-tag--demand.is-hot {
  border-color: rgba(232, 167, 60, 0.8);
  background: rgba(232, 167, 60, 0.28);
}

.page--home .iw-legend {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #e6e0d4;
}

.page--home .iw-legend i.iw-legend__consent {
  background: var(--accent-bright);
  box-shadow: 0 0 0 2px rgba(255, 122, 87, 0.25), 0 0 12px var(--accent-bright);
}

.page--home .iw-steps { border-top-color: rgba(246, 242, 234, 0.12); }
.page--home .iw-steps li + li { border-left-color: rgba(246, 242, 234, 0.12); }

.page--home .iw-step { padding: 24px 28px 30px; color: #e6e0d4; }
.page--home .iw-step.is-active,
.page--home .iw-step:hover { background: rgba(246, 242, 234, 0.05); }

.page--home .iw-step__num {
  font-family: var(--mono);
  font-weight: 400;
  letter-spacing: 0.12em;
  color: #bdb5a4;
}

.page--home .iw-step.is-active .iw-step__num { color: var(--accent-bright); }

.page--home .iw-step__name {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--paper);
}

.page--home .iw-step__desc { font-size: 14px; color: #e0d9cc; }
.page--home .iw-step__bar i { background: var(--accent-bright); }
.page--home .iw-step:focus-visible { outline-color: var(--accent-bright); }

@media (max-width: 1024px) {
  .page--home .iw-steps li:nth-child(n+3) { border-top-color: rgba(246, 242, 234, 0.12); }
}
@media (max-width: 640px) {
  .page--home .iw-steps li + li { border-top-color: rgba(246, 242, 234, 0.12); }
}

/* Platforms ledger */
.page--home .iw-proof { margin-top: clamp(88px, 10vw, 144px); }
.page--home .iw-proof .display-h3 { max-width: 20ch; margin-bottom: 40px; }

.page--home .ledger {
  width: 100%;
  border-collapse: collapse;
  border-top: 2px solid var(--ink);
  font-size: 15px;
}

.page--home .ledger thead th {
  padding: 14px 16px 14px 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-align: left;
  text-transform: uppercase;
  color: var(--muted);
}

.page--home .ledger tbody th,
.page--home .ledger tbody td {
  padding: 22px 16px 22px 0;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: baseline;
}

.page--home .ledger tbody th {
  width: 22%;
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.page--home .ledger tbody td { line-height: 1.5; color: var(--ink-2); }

.page--home .ledger__n,
.page--home .ledger thead th:first-child { width: 64px; }

.page--home .ledger__n {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted) !important;
}

.page--home .ledger tbody tr { transition: background 0.25s ease; }
.page--home .ledger tbody tr:not(.ledger__you):hover { background: var(--paper-2); }

.page--home .ledger tr.ledger__you { background: var(--ink); }
.page--home .ledger tr.ledger__you th,
.page--home .ledger tr.ledger__you td { color: var(--paper); border-bottom-color: var(--ink); }
.page--home .ledger tr.ledger__you th { font-style: italic; }
.page--home .ledger tr.ledger__you .ledger__n { color: var(--accent-bright) !important; padding-left: 16px; }

.page--home .iw-cta { gap: 12px; margin-top: 48px; }

.page--home .iw-note {
  margin-top: 24px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

@media (max-width: 1024px) {
  .page--home .iw-intro { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .page--home .ledger thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .page--home .ledger tbody tr {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 6px 0;
    padding: 20px 0;
    border-bottom: 1px solid var(--rule);
  }
  .page--home .ledger tbody th,
  .page--home .ledger tbody td { padding: 0; border: 0; width: auto; }
  .page--home .ledger__n { grid-row: 1 / span 3; padding-top: 8px !important; }
  .page--home .ledger tbody td:not(.ledger__n)::before {
    display: block;
    margin-bottom: 2px;
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .page--home .ledger tbody td:nth-of-type(2)::before { content: "Learns from"; }
  .page--home .ledger tbody td:nth-of-type(3)::before { content: "Delivers"; }
  .page--home .ledger tr.ledger__you { padding-left: 14px; padding-right: 14px; }
  .page--home .ledger tr.ledger__you .ledger__n { padding-left: 0; }
  .page--home .ledger tr.ledger__you td::before { color: #d9d2c3; }
  .page--home .iw-cta .cta { flex: 1 1 auto; justify-content: space-between; }
}

/* ── 02 Access Canada (ink) ────────────────────────────────── */
.page--home .ac {
  color: var(--paper);
  background:
    radial-gradient(55% 45% at 92% 6%, rgba(255, 122, 87, 0.16), transparent 70%),
    radial-gradient(45% 40% at 0% 100%, rgba(124, 195, 207, 0.1), transparent 70%),
    var(--ink);
}

.page--home .ac::before {
  background-image:
    linear-gradient(rgba(246, 242, 234, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246, 242, 234, 0.04) 1px, transparent 1px);
}

.page--home .ac::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: var(--grain);
  opacity: 0.07;
  mix-blend-mode: screen;
}

.page--home .ac .display-h2 { max-width: 14ch; color: var(--paper); }
.page--home .ac .display-h3 { color: var(--paper); }
.page--home .ac .story__content { gap: 24px; }
.page--home .ac .text-base { font-size: 16px; line-height: 1.65; color: #e6e0d4; }

.page--home .ac .label {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.16em;
  color: var(--accent-bright);
}

.page--home .ac-money {
  border-radius: 4px;
  border-color: rgba(246, 242, 234, 0.12);
  background: linear-gradient(180deg, rgba(246, 242, 234, 0.06) 0%, rgba(246, 242, 234, 0.015) 100%);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.6);
}

.page--home .ac-money__eyebrow {
  font-family: var(--mono);
  font-weight: 400;
  letter-spacing: 0.16em;
  color: #d9d2c3;
}

.page--home .ac-money__value {
  font-family: var(--serif);
  font-weight: 350;
  letter-spacing: -0.045em;
  background: linear-gradient(120deg, #fffdf9 0%, #f3e2c6 50%, #ff9a7d 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.page--home .ac-money__caption { color: #e6e0d4; }

.page--home .ac-money__card {
  border-radius: 2px;
  border-color: rgba(246, 242, 234, 0.08);
  background: rgba(246, 242, 234, 0.035);
}

.page--home .ac-money__num {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.page--home .ac-money__label { color: #f3efe7; }
.page--home .ac-money__meta { font-family: var(--mono); font-size: 11px; letter-spacing: 0.02em; color: #cfc7b6; }

.page--home .ac-stack { height: 14px; gap: 2px; border-radius: 0; }

.page--home .ac-grid {
  border-radius: 2px;
  border-color: rgba(246, 242, 234, 0.1);
  background: rgba(246, 242, 234, 0.1);
}

.page--home .ac-tile { background: #201d19; }
.page--home .ac-tile:hover { background: #27231e; }

.page--home .ac-tile__count {
  font-family: var(--serif);
  font-size: 52px;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.page--home .ac-tile__name { font-size: 16px; color: var(--paper); }
.page--home .ac-tile__desc { color: #ddd6c8; }
.page--home .ac-tile__bar { background: rgba(246, 242, 234, 0.08); height: 2px; }

.page--home .ac-footnote {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: #cfc7b6;
}

/* ── 03 Solutions index ────────────────────────────────────── */
.page--home .sx { background: var(--paper); }
.page--home .sx__title { margin-bottom: clamp(48px, 6vw, 88px); }

.page--home .sx__list { list-style: none; border-top: 2px solid var(--ink); }
.page--home .sx__list > li { border-bottom: 1px solid var(--rule); }

.page--home .sx__item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 24px clamp(32px, 4vw, 64px);
  padding: clamp(32px, 4vw, 52px) 0;
  color: var(--ink);
}

.page--home .sx__num {
  align-self: start;
  padding-top: 14px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.page--home .sx__body { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }

.page--home .sx__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.page--home .sx__name {
  font-family: var(--serif);
  font-size: clamp(34px, 4.2vw, 64px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
  transition: color 0.3s ease;
}

.page--home .sx__desc {
  max-width: 46ch;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-2);
}

.page--home .sx__cta {
  display: inline-flex;
  gap: 10px;
  margin-top: 8px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.page--home .sx__cta span { color: var(--accent); transition: transform 0.25s ease; }

.page--home .sx__media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 2px;
  background: var(--paper-2);
}

.page--home .sx__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.02);
  transform: scale(1.02);
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), filter 0.6s ease;
}

.page--home .sx__item:hover .sx__name { color: var(--accent); }
.page--home .sx__item:hover .sx__cta span { transform: translateX(4px); }
.page--home .sx__item:hover .sx__media img { transform: scale(1.07); filter: saturate(1) contrast(1.04); }

/* Asymmetry: alternate the image side */
.page--home .sx__list > li:nth-child(even) .sx__item { grid-template-columns: 72px minmax(0, 0.95fr) minmax(0, 1fr); }
.page--home .sx__list > li:nth-child(even) .sx__media { grid-column: 2; grid-row: 1; }
.page--home .sx__list > li:nth-child(even) .sx__body { grid-column: 3; }

@media (max-width: 860px) {
  .page--home .sx__item,
  .page--home .sx__list > li:nth-child(even) .sx__item { grid-template-columns: 44px minmax(0, 1fr); }
  .page--home .sx__media,
  .page--home .sx__list > li:nth-child(even) .sx__media { grid-column: 2; grid-row: auto; }
  .page--home .sx__list > li:nth-child(even) .sx__body { grid-column: 2; }
  .page--home .sx__num { grid-row: 1 / span 2; padding-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .page--home .hx__line,
  .page--home .hx__aside,
  .page--home .hx__stat { animation: none; }
}

/* ── Review fixes ─────────────────────────────────────────── */
/* Language switch sits in the masthead row, left of the nav links */
.page--home .lang-switch { top: 21px; z-index: 1001; }
.page--home .nav:not(.is-scrolled) { pointer-events: none; }
.page--home .nav:not(.is-scrolled) .nav__inner > * { pointer-events: auto; }
@media (min-width: 769px) {
  .page--home .nav__links { margin-right: 76px; }
  .page--home .nav.is-scrolled .nav__links { margin-right: 0; }
}
@media (max-width: 768px) {
  .page--home .lang-switch { top: 17px; right: calc(var(--gutter) + 48px); }
}

.page--home .ac .display-h2 { max-width: 18ch; font-size: clamp(38px, 4.4vw, 64px); }
.page--home .iw .display-h2 { max-width: 16ch; }

/* Stronger scrim behind the intro where the video is brightest on phones */
@media (max-width: 1024px) {
  .page--home .hx .hero__scrim {
    background:
      linear-gradient(180deg, rgba(20, 18, 15, 0.55) 0%, rgba(20, 18, 15, 0.45) 30%, rgba(20, 18, 15, 0.82) 62%, rgba(20, 18, 15, 0.94) 100%),
      radial-gradient(70% 60% at 0% 100%, rgba(182, 59, 31, 0.28), transparent 70%);
  }
}

/* Red strike through "$2,000": money an intelligent website helps you keep.
   Drawn left to right when the heading scrolls into view. */
.page--home .strike {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.page--home .strike::after {
  content: "";
  position: absolute;
  left: -5%;
  right: -5%;
  top: 54%;
  height: 0.085em;
  min-height: 3px;
  border-radius: 999px;
  background: var(--accent);
  transform: rotate(-5deg) scaleX(1);
  transform-origin: left center;
  pointer-events: none;
}

.page--home .rv-ready:not(.is-in) .strike::after { transform: rotate(-5deg) scaleX(0); }

.page--home .is-in .strike::after {
  transition: transform 0.75s cubic-bezier(0.65, 0, 0.35, 1) 0.55s;
}
