/* Who We Are page */

/* ---------- Hero: "Who are we?" with founder cards ---------- */

.who-hero {
  position: relative;
  padding: calc(var(--header-h) + 64px) 0 88px;
  overflow: hidden;
  text-align: center;
}

.who-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(50% 45% at 50% 0%, rgba(52, 89, 166, 0.12), transparent 70%);
}

.who-stage {
  position: relative;
}

.who-title {
  font-size: clamp(60px, 9vw, 124px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.who-title .accent {
  color: var(--blue);
}

.who-sub {
  max-width: 620px;
  margin: 28px auto 0;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.6;
  color: var(--ink-2);
  text-wrap: balance;
}

.who-cities {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  box-shadow: 0 16px 40px -28px rgba(37, 63, 122, 0.45);
  font-size: 14px;
  font-weight: 600;
}

.who-city {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.who-city svg {
  width: 16px;
  height: 16px;
  color: var(--blue);
}

.who-city small {
  font-weight: 500;
  color: var(--ink-2);
}

.who-arc {
  flex: none;
  width: 72px;
  height: 22px;
  overflow: visible;
}

.who-arc path {
  fill: none;
  stroke: rgba(52, 89, 166, 0.45);
  stroke-width: 1.5;
  stroke-dasharray: 3 4;
}

.who-arc circle {
  fill: var(--blue);
}

.who-hero .page-actions {
  justify-content: center;
}

/* Founder business cards */

.fcards {
  display: flex;
  justify-content: center;
  margin-top: 56px;
  perspective: 1000px;
}

.fcard-wrap {
  width: min(280px, 46vw);
}

.fcard-wrap + .fcard-wrap {
  margin-left: -28px;
}

.fcard {
  --r: 0deg;
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 176px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  text-align: left;
  box-shadow: 0 40px 70px -40px rgba(37, 63, 122, 0.5);
  transform: rotate(var(--r)) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform 0.7s var(--ease), box-shadow 0.4s ease;
}

.fcard.is-tilting {
  transition-duration: 0.12s;
  box-shadow: 0 50px 80px -40px rgba(37, 63, 122, 0.6);
}

.fcard::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.55), transparent 55%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.fcard.is-tilting::after {
  opacity: 0.6;
}

.fcard-a { --r: -5deg; }
.fcard-b { --r: 4deg; }

.fcard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fcard-top img {
  width: 26px;
  height: auto;
}

.fcard-role {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.fcard-name {
  margin-top: auto;
  padding-top: 28px;
  font-size: clamp(19px, 2vw, 23px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.fcard-lines {
  display: grid;
  gap: 2px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-2);
}

.fcard-lines a {
  display: flex;
  align-items: center;
  min-height: 26px;
}

.fcard-lines a:hover {
  color: var(--blue);
}

.fcard-dark {
  border-color: transparent;
  color: var(--white);
  background:
    radial-gradient(80% 90% at 100% 0%, rgba(52, 89, 166, 0.6), transparent 70%),
    var(--ink);
}

.fcard-dark .fcard-top img {
  filter: brightness(0) invert(1);
}

.fcard-dark .fcard-role,
.fcard-dark .fcard-lines {
  color: rgba(255, 255, 255, 0.6);
}

.fcard-dark .fcard-lines {
  border-top-color: rgba(255, 255, 255, 0.12);
}

.fcard-dark .fcard-lines a:hover {
  color: var(--white);
}

.fcard-dark::after {
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(142, 168, 220, 0.35), transparent 55%);
}

/* ---------- Story ---------- */

.story {
  display: grid;
  gap: 48px;
}

.milestones {
  display: grid;
  gap: 12px;
}

.ms {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
}

.ms-num {
  flex: none;
  min-width: 3.2ch;
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}

.ms-label {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink-2);
}

.story-body .section-title {
  margin-top: 8px;
}

.story-lead {
  margin-top: 28px;
  font-size: clamp(19px, 1.9vw, 23px);
  font-weight: 500;
  line-height: 1.6;
  color: var(--ink);
}

.story-p {
  margin-top: 20px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-2);
}

.mission {
  position: relative;
  margin: 36px 0 0;
  padding: 36px 28px 32px;
  overflow: hidden;
  border-radius: 28px;
  color: var(--white);
  background:
    radial-gradient(60% 90% at 100% 0%, rgba(255, 255, 255, 0.16), transparent 60%),
    linear-gradient(135deg, var(--blue) 0%, var(--blue-600) 100%);
}

.mission-mark {
  width: 36px;
  height: 36px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.5);
}

.mission p {
  font-size: clamp(21px, 2.2vw, 28px);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.015em;
}

.mission .hl-word {
  color: rgba(255, 255, 255, 0.6);
}

.mission .hl-word.is-lit {
  color: var(--white);
}

.signature {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.signature p {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.6;
}

.sig-names {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
}

.sig-avatars {
  display: flex;
}

.sig-avatars span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 3px solid var(--white);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-600));
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
}

.sig-avatars span + span {
  margin-left: -12px;
  background: var(--ink);
}

.sig-names strong {
  font-size: 15px;
  font-weight: 700;
}

/* ---------- The company: fact grid ---------- */

.facts {
  display: grid;
  gap: 14px;
}

.fact {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  transition: border-color 0.3s ease, box-shadow 0.4s ease;
}

.fact:hover {
  border-color: rgba(52, 89, 166, 0.25);
  box-shadow: 0 24px 50px -32px rgba(37, 63, 122, 0.4);
}

.fact p {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink);
}

.fact-big {
  font-size: clamp(52px, 5.6vw, 76px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}

.fact-num {
  justify-content: space-between;
  min-height: 220px;
  background: var(--surface);
}

.fact .dropdown-icon {
  width: 44px;
  height: 44px;
}

/* Office hours with live status */

.hours-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.hours-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
}

.hours-status .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(11, 13, 18, 0.3);
}

.fact-hours.is-open .hours-status {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
}

.fact-hours.is-open .hours-status .dot {
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
  animation: blink-soft 1.6s ease-in-out infinite;
}

@keyframes blink-soft {
  50% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0.05); }
}

.hours-time {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.week span {
  padding: 9px 0;
  border-radius: 10px;
  background: var(--blue-50);
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--blue);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.week span.off {
  background: var(--surface);
  color: rgba(11, 13, 18, 0.35);
}

.week span.today {
  background: var(--blue);
  color: var(--white);
}

.week span.off.today {
  background: var(--ink);
  color: var(--white);
}

.dayline {
  position: relative;
  height: 8px;
  margin-top: 4px;
  border-radius: 8px;
  background: var(--surface);
}

.dayline-open {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(8 / 24 * 100%);
  width: calc(9 / 24 * 100%);
  border-radius: 8px;
  background: linear-gradient(90deg, var(--blue), var(--blue-300));
}

.dayline-now {
  position: absolute;
  top: 50%;
  left: var(--now, 50%);
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border: 3px solid var(--white);
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 4px 12px -2px rgba(11, 13, 18, 0.4);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.fact-hours.has-time .dayline-now {
  opacity: 1;
}

.dayline-labels {
  position: relative;
  height: 16px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-2);
}

.dayline-labels span {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
}

/* Dark flat-hierarchy card */

.fact-dark {
  justify-content: space-between;
  border-color: transparent;
  color: var(--white);
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(52, 89, 166, 0.55), transparent 65%),
    var(--ink);
}

.fact-dark p {
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 600;
  color: var(--white);
}

.fact-dark:hover {
  border-color: transparent;
}

.flat {
  display: flex;
  align-items: center;
  gap: 0;
}

.flat span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--blue-300);
  box-shadow: 0 0 0 5px rgba(142, 168, 220, 0.15);
}

.flat i {
  flex: 1;
  max-width: 70px;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-300), rgba(142, 168, 220, 0.3));
}

.fact-dark-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

/* ---------- Closing statement ---------- */

.who-statement {
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
  font-size: clamp(34px, 5.2vw, 72px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.who-statement .accent {
  color: var(--blue);
}

/* ---------- Breakpoints ---------- */

@media (max-width: 639px) {
  .who-cities {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 6px;
    border-radius: 22px;
  }

  .who-city small {
    display: none;
  }

  .who-hero .page-actions .btn {
    flex: 1 1 100%;
    justify-content: space-between;
  }

  .fcard-wrap {
    width: calc(50% - 6px);
  }

  .fcard-wrap + .fcard-wrap {
    margin-left: 12px;
  }

  .fcard-a { --r: -2deg; }
  .fcard-b { --r: 2deg; }

  .fcard {
    min-height: 150px;
    padding: 14px;
  }

  .fcard-top img {
    width: 22px;
  }

  .fcard-role {
    font-size: 9.5px;
    letter-spacing: 0.1em;
  }

  .fcard-name {
    font-size: 16px;
  }

  .fcard-lines {
    font-size: 11px;
    word-break: break-all;
  }

  .mission {
    padding: 28px 22px 26px;
  }
}

@media (min-width: 768px) {
  .facts {
    grid-template-columns: repeat(2, 1fr);
  }

  .fact-hours,
  .fact-dark {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .story {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 96px;
    align-items: start;
  }

  .story-aside {
    position: sticky;
    top: calc(var(--header-h) + 48px);
  }

  .facts {
    grid-template-columns: repeat(12, 1fr);
  }

  .fact { grid-column: span 4; }
  .fact-hours { grid-column: span 7; }
  .fact-core { grid-column: span 5; }
  .fact-fast { grid-column: span 5; }
  .fact-dark { grid-column: span 7; }
}

/* Founder cards flank the headline on wide screens */
@media (min-width: 1180px) {
  .who-hero {
    padding-bottom: 120px;
  }

  .who-title {
    font-size: clamp(80px, 7.6vw, 116px);
  }

  .who-center {
    max-width: 640px;
    margin: 0 auto;
  }

  .fcards {
    position: absolute;
    inset: 0;
    margin: 0;
    pointer-events: none;
  }

  .fcard-wrap {
    position: absolute;
    width: 270px;
    pointer-events: auto;
  }

  .fcard-wrap + .fcard-wrap {
    margin-left: 0;
  }

  .fcard-wrap:first-child {
    left: 0;
    top: 12%;
  }

  .fcard-wrap:last-child {
    right: 0;
    top: 46%;
  }

  .fcard-a { --r: -7deg; }
  .fcard-b { --r: 6deg; }
}

@media (prefers-reduced-motion: reduce) {
  .fact-hours.is-open .hours-status .dot {
    animation: none;
  }
}
