/* ==========================================================================
   Finwall Landing Page — site.css
   Depends on: Finwall Classic Design System/colors_and_type.css
   ========================================================================== */

/* --- Reset ---------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

img { display: block; max-width: 100%; }

::selection { background: var(--fw-accent); color: #fff; }

/* --- Layout --------------------------------------------------------------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 96px;
}

.section         { padding: 120px 0; }
.section-white   { background: var(--fw-white); }
.section-canvas  { background: var(--fw-canvas); }

/* --- Sticky Header -------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0 96px;
  background: rgba(255,255,255,0.84);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--border-1);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition:
    opacity var(--dur-normal) var(--ease-standard),
    transform var(--dur-normal) var(--ease-standard);
}

.site-header.header-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.header-lockup { height: 22px; width: auto; }

/* --- Hero ----------------------------------------------------------------- */
.section-hero {
  display: grid;
  grid-template-columns: 5fr 6fr;
  min-height: 100vh;
  background: var(--fw-ink);
  overflow: hidden;
}

/* Left column — text. Padding-left scales with viewport so text doesn't
   strand on the far left of large displays. */
.hero-left {
  display: flex;
  flex-direction: column;
  padding-top: 48px;
  padding-right: 64px;
  padding-bottom: 72px;
  padding-left: clamp(96px, calc((100vw - 1100px) / 2), 320px);
  position: relative;
  z-index: 2;
}

/* Subtle divider between columns */
.hero-left::after {
  content: '';
  position: absolute;
  right: 0; top: 56px; bottom: 56px;
  width: 1px;
  background: rgba(255,255,255,0.07);
}

.hero-brand { flex-shrink: 0; }

.hero-wordmark { height: 26px; width: auto; }

.hero-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 48px;
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: var(--text-4xl);       /* 48px — tighter than before */
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--fw-white);
  margin-bottom: 24px;
  animation: hero-rise 0.9s var(--ease-emphatic) both;
  animation-delay: 0.05s;
}

.hero-lineage {
  font-family: var(--font-sans);
  font-weight: var(--fw-regular);
  font-size: var(--text-sm);
  line-height: var(--lh-body);
  color: rgba(255,255,255,0.38);
  letter-spacing: 0.01em;
  max-width: 340px;
  animation: hero-rise 0.9s var(--ease-emphatic) both;
  animation-delay: 0.2s;
}

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Right column — visual */
.hero-right {
  position: relative;
  overflow: hidden;
  cursor: grab;
}

.hero-right:active { cursor: grabbing; }

/* Subtle CRT scanline texture */
.hero-right::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent        0px,
    transparent        2px,
    rgba(0,0,0,0.055)  2px,
    rgba(0,0,0,0.055)  3px
  );
  pointer-events: none;
  z-index: 5;
}

/* Vignette — focuses eye on centre of visual */
.hero-right::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 52% 50%,
    transparent 28%,
    rgba(0,0,0,0.52) 100%
  );
  pointer-events: none;
  z-index: 4;
}

/* Ecosystem stage — 3D spoke-and-wheel */
.ecosystem-stage {
  position: absolute;
  inset: 0;
  z-index: 1;
}

#ecosystem-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
}

.ecosystem-caption {
  position: absolute;
  bottom: 32px;
  right: 40px;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  pointer-events: none;
}

.ecosystem-caption .fw-eyebrow {
  color: rgba(255, 255, 255, 0.45);
}

.ecosystem-hint {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 0.04em;
}

/* Concentric ring guides — faint background reference */
.hero-right .ecosystem-stage::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 720px;
  height: 720px;
  margin: -360px 0 0 -360px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.04);
  pointer-events: none;
  z-index: 0;
}

/* --- Section label -------------------------------------------------------- */
.section-label { margin-bottom: 28px; }

/* --- Section lead --------------------------------------------------------- */
.section-lead {
  font-family: var(--font-sans);
  font-weight: var(--fw-regular);
  font-size: var(--text-lg);
  line-height: var(--lh-relaxed);
  color: var(--fg-2);
  max-width: 680px;
  margin-bottom: 64px;
}

/* --- What We Do ----------------------------------------------------------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--border-1);
  padding-top: 48px;
}

.text-block { padding-right: 64px; position: relative; }

.text-block + .text-block {
  padding-right: 0;
  padding-left: 64px;
  border-left: 1px solid var(--border-1);
}

.block-marker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  color: var(--fg-3);
}

.block-num {
  font-family: var(--font-display);
  font-weight: var(--fw-thin);
  font-size: var(--text-3xl);
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--fw-haze);
}

.block-glyph {
  color: var(--fg-2);
  flex-shrink: 0;
}

.block-heading {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: var(--text-2xl);
  line-height: var(--lh-snug);
  letter-spacing: var(--tr-heading);
  color: var(--fg-1);
  margin-bottom: 16px;
}

.text-block .fw-body {
  color: var(--fg-2);
  line-height: var(--lh-relaxed);
}

/* --- How We Work ---------------------------------------------------------- */
.process-title {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: var(--text-3xl);
  line-height: var(--lh-snug);
  letter-spacing: var(--tr-heading);
  color: var(--fg-1);
  max-width: 560px;
  margin-bottom: 72px;
}

.process-steps {
  position: relative;
  border-top: 1px solid var(--border-1);
}

/* Vertical timeline line through all steps */
.process-steps::before {
  content: '';
  position: absolute;
  left: 130px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    var(--fw-haze) 4%,
    var(--fw-haze) 96%,
    transparent 100%
  );
  z-index: 0;
}

.process-step {
  position: relative;
  display: grid;
  grid-template-columns: 160px 1fr;
  border-bottom: 1px solid var(--border-1);
  padding: 52px 0;
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.65s var(--ease-emphatic),
    transform 0.65s var(--ease-emphatic);
}

/* Timeline node — the dot at each step */
.process-step::after {
  content: '';
  position: absolute;
  left: 124px;
  top: 64px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--fw-canvas);
  border: 1.5px solid var(--fw-mist);
  z-index: 1;
  transition:
    background var(--dur-slow) var(--ease-emphatic),
    border-color var(--dur-slow) var(--ease-emphatic),
    box-shadow var(--dur-slow) var(--ease-emphatic);
}

.process-step.is-visible::after {
  background: var(--fw-accent);
  border-color: var(--fw-accent);
  box-shadow: 0 0 0 5px rgba(66, 133, 244, 0.14);
}

.process-step.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.step-number {
  font-family: var(--font-display);
  font-weight: var(--fw-thin);       /* 200 — ultra-light, structural not decorative */
  font-size: 72px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--fw-haze);             /* #D8D8D8 — barely there */
  user-select: none;
  padding-top: 4px;
}

.step-content {
  padding-top: 6px;
  max-width: 680px;
}

.step-heading {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: var(--text-2xl);
  line-height: var(--lh-snug);
  letter-spacing: var(--tr-heading);
  color: var(--fg-1);
  margin-bottom: 14px;
}

.step-content .fw-body {
  color: var(--fg-2);
  line-height: var(--lh-relaxed);
}

/* --- Thesis --------------------------------------------------------------- */
.thesis-lead { max-width: 760px; }

.thesis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-top: 1px solid var(--border-1);
}

.thesis-glyph {
  height: 88px;
  margin-bottom: 32px;
  color: var(--fg-2);
  display: flex;
  align-items: center;
}

.thesis-item {
  padding: 48px 48px 48px 0;
  border-right: 1px solid var(--border-1);
}

.thesis-item:nth-child(2) { padding-left: 48px; }

.thesis-item:last-child {
  padding-left: 48px;
  padding-right: 0;
  border-right: none;
}

.thesis-heading {
  font-family: var(--font-sans);
  font-weight: var(--fw-semibold);
  font-size: var(--text-xl);
  line-height: var(--lh-snug);
  letter-spacing: var(--tr-heading);
  color: var(--fg-1);
  margin-bottom: 16px;
}

.thesis-item .fw-body {
  color: var(--fg-2);
  line-height: var(--lh-relaxed);
}

/* --- Backed By: Stats Strip ---------------------------------------------- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border-1);
  border-bottom: 1px solid var(--border-1);
  margin-bottom: 80px;
}

.stat {
  padding: 40px 48px 40px 0;
  border-right: 1px solid var(--border-1);
}
.stat:nth-child(2) { padding-left: 48px; }
.stat:last-child   { padding-left: 48px; padding-right: 0; border-right: none; }

.stat-figure {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--text-5xl);
  line-height: var(--lh-tight);
  letter-spacing: var(--tr-display);
  color: var(--fg-1);
  font-variant-numeric: tabular-nums;
  margin-bottom: 12px;
}

.stat-plus {
  color: var(--fw-accent);
  font-weight: var(--fw-bold);
  margin-left: 2px;
}

.stat-label {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  line-height: var(--lh-body);
  color: var(--fg-3);
  max-width: 240px;
}

.stat-label sup {
  font-size: 0.65em;
  color: var(--fg-4);
}

.stats-footnote {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--fg-4);
  margin: 16px 0 56px;
  letter-spacing: 0.02em;
  font-style: italic;
}

/* --- Backed By: Hierarchy Chain ----------------------------------------- */
.hierarchy {
  position: relative;
  padding: 8px 0 24px;
  margin-bottom: 24px;
}

.hierarchy-axis {
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 1px;
  pointer-events: none;
}

.hierarchy-line {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    var(--fw-mist) 0%,
    var(--fw-mist) 70%,
    var(--fw-accent) 100%
  );
}

.hierarchy-pulse {
  position: absolute;
  left: -3.5px;
  top: 0;
  width: 8px;
  height: 60px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(66, 133, 244, 0.55),
    transparent
  );
  filter: blur(2px);
  animation: hierarchy-flow 4.5s linear infinite;
}

@keyframes hierarchy-flow {
  from { transform: translateY(0); }
  to   { transform: translateY(calc(100% + 480px)); }
}

.hierarchy-node {
  position: relative;
  padding: 20px 0 20px 56px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hierarchy-node::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 30px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--fw-white);
  border: 1.5px solid var(--fw-mist);
  z-index: 1;
}

.hierarchy-node.hierarchy-self::before {
  background: var(--fw-accent);
  border-color: var(--fw-accent);
  box-shadow: 0 0 0 5px rgba(66, 133, 244, 0.18);
}

.hierarchy-eyebrow {
  color: var(--fg-4);
}

.hierarchy-name {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: var(--text-2xl);
  letter-spacing: var(--tr-heading);
  color: var(--fg-1);
}

.hierarchy-self .hierarchy-name {
  color: var(--fw-accent);
}

.hierarchy-detail {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--fg-3);
}

/* --- Backed By: Detail Rows ---------------------------------------------- */
.backed-list {
  border-top: 1px solid var(--border-1);
  padding-top: 24px;
  margin-top: 32px;
}

.backed-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 64px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border-1);
  align-items: start;
}

.backed-row:last-child { border-bottom: none; }

.backed-identity {
  display: flex;
  align-items: flex-start;
  padding-top: 2px;
}

/* Consistent logo frame — same height, left-aligned, sharp rendering */
.logo-frame {
  height: 60px;
  width: 180px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
}

.entity-logo {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
  display: block;
  image-rendering: -webkit-optimize-contrast;
}

/* Per-entity tuning so each logo reads at consistent visual weight */
.entity-logo-judan {
  /* Image is a 1080×1080 JPG with the wordmark centred — zoom & crop whitespace.
     Negative margins shift the visual content flush with the frame's left edge
     without clipping the J. */
  height: 240%;
  margin-top: -42px;
  margin-left: -28px;
}

/* First.tech: typographic treatment. The only available asset is a
   "Finwall × First.tech" co-lockup, which would visually duplicate the
   Finwall mark in this section. A clean wordmark in Urbanist semibold
   matches the visual weight of IHC and Judan and aligns flush left. */
.entity-wordmark {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 34px;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--fg-1);
  display: inline-block;
}

.backed-name {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: var(--text-xl);
  letter-spacing: var(--tr-heading);
  color: var(--fg-1);
  margin-bottom: 10px;
}

.backed-desc .fw-body-sm {
  color: var(--fg-2);
  line-height: var(--lh-relaxed);
}

/* --- Leadership ----------------------------------------------------------- */
.leader-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  border-top: 1px solid var(--border-1);
  padding-top: 48px;
  align-items: start;
}

.leader-name {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: var(--text-2xl);
  letter-spacing: var(--tr-heading);
  color: var(--fg-1);
  margin-bottom: 4px;
}

.leader-title {
  font-size: var(--text-sm);
  color: var(--fg-3);
  margin-bottom: 20px;
}

.leader-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-sans);
  font-weight: var(--fw-medium);
  font-size: var(--text-sm);
  color: var(--fg-3);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-standard);
}

.leader-linkedin:hover { color: var(--fg-1); }

.leader-bio .fw-body { color: var(--fg-2); line-height: var(--lh-relaxed); }

/* --- Contact -------------------------------------------------------------- */
.contact-framing { color: var(--fg-2); }

.contact-body {
  display: grid;
  grid-template-columns: 5fr 4fr;
  gap: 64px;
  align-items: stretch;
  border-top: 1px solid var(--border-1);
  padding-top: 48px;
  margin-top: 40px;
}

.contact-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
}

.contact-email {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: var(--text-3xl);
  letter-spacing: var(--tr-heading);
  color: var(--fg-1);
  text-decoration: none;
  display: inline-block;
  width: max-content;
  transition: color var(--dur-fast) var(--ease-standard);
}

.contact-email:hover { color: var(--fw-accent); }

.contact-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-location {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-loc-name {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: var(--text-md);
  color: var(--fg-1);
  letter-spacing: var(--tr-heading);
}

.contact-coords {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--fg-4);
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

.contact-right {
  position: relative;
  min-height: 240px;
}

.coord-grid {
  position: absolute;
  inset: 0;
  border: 1px solid var(--border-1);
  border-radius: var(--radius-md);
  overflow: hidden;
  color: var(--fg-3);
  background: var(--fw-canvas);
}

/* --- Footer --------------------------------------------------------------- */
.site-footer {
  background: var(--fw-ink);
  padding: 64px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-wordmark  {
  height: 22px;
  width: auto;
  align-self: flex-start;   /* prevent flex stretch */
  flex-shrink: 0;
  margin-bottom: 4px;
}

.footer-lineage {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.35);
  line-height: var(--lh-body);
}

.footer-copy {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.2);
}

/* --- Responsive: 1280px --------------------------------------------------- */
@media (max-width: 1280px) {
  .hero-left { padding: 44px 56px 64px 96px; }
}

/* --- Responsive: 1024px --------------------------------------------------- */
@media (max-width: 1024px) {
  .container    { padding: 0 48px; }
  .site-header  { padding: 0 48px; }
  .hero-left    { padding: 36px 40px 56px 64px; }

  .hero-headline { font-size: var(--text-3xl); }

  .thesis-grid { grid-template-columns: 1fr 1fr; }

  .thesis-item:last-child {
    grid-column: 1 / -1;
    border-right: none;
    border-top: 1px solid var(--border-1);
    padding: 40px 0 0;
  }
  .thesis-item:nth-child(2) { border-right: none; }
}

/* --- Responsive: 768px ---------------------------------------------------- */
@media (max-width: 768px) {
  .container   { padding: 0 24px; }
  .section     { padding: 80px 0; }
  .site-header { padding: 0 24px; }

  /* Stack hero vertically on mobile */
  .section-hero { grid-template-columns: 1fr; grid-template-rows: auto 56vw; }

  .hero-left {
    padding: 28px 24px 48px;
    border-right: none;
  }
  .hero-left::after { display: none; }

  .hero-headline { font-size: var(--text-2xl); }

  .section-lead {
    font-size: var(--text-md);
    margin-bottom: 40px;
  }

  .two-col { grid-template-columns: 1fr; padding-top: 40px; }
  .text-block { padding-right: 0; }
  .text-block + .text-block {
    padding-left: 0;
    border-left: none;
    border-top: 1px solid var(--border-1);
    padding-top: 40px;
  }

  .thesis-grid { grid-template-columns: 1fr; }
  .thesis-item,
  .thesis-item:nth-child(2),
  .thesis-item:last-child {
    border-right: none;
    border-top: 1px solid var(--border-1);
    padding: 32px 0;
    grid-column: auto;
  }
  .thesis-item:first-child { border-top: none; padding-top: 32px; }

  .process-title { font-size: var(--text-2xl); margin-bottom: 48px; }
  .process-step  { grid-template-columns: 1fr; gap: 8px; padding: 40px 0; }
  .step-number   { font-size: 48px; }
  .process-steps::before { display: none; }
  .process-step::after   { display: none; }

  .stats-strip   { grid-template-columns: 1fr; }
  .stat          { padding: 28px 0; border-right: none; border-bottom: 1px solid var(--border-1); }
  .stat:nth-child(2),
  .stat:last-child { padding-left: 0; padding-right: 0; }
  .stat:last-child { border-bottom: none; }
  .stat-figure   { font-size: var(--text-4xl); }
  .stats-footnote{ margin: 0 0 56px; }

  .hierarchy-name { font-size: var(--text-xl); }

  .contact-body  { grid-template-columns: 1fr; gap: 32px; }
  .contact-right { min-height: 200px; }

  .backed-row    { grid-template-columns: 1fr; gap: 20px; }
  .leader-row    { grid-template-columns: 1fr; gap: 32px; }

  .contact-email { font-size: var(--text-2xl); }

  .ecosystem-caption { right: 20px; bottom: 20px; }
  .logo-frame { height: 48px; width: 140px; }
  .entity-logo-judan { margin-left: -28px; }
}
