/* Site-wide readability and width correction.
   Do not use CSS zoom here: it reduces the layout viewport and makes desktop
   pages behave like narrower screens. Keep the real viewport width and raise
   the small fixed type sizes directly instead. */

:root {
  --max: 100%;
}

body {
  min-width: 320px;
  font-size: 24px;
  line-height: 1.55;
}

/* Permanent type floor. The source design contains many 9–14px declarations;
   applying the floor to every semantic text element prevents those rules from
   becoming unreadable on any route or in a published build. */
:where(main, .site-header, .site-footer) :where(
  p,
  li,
  a,
  span,
  strong,
  i,
  small,
  label,
  td,
  th,
  button,
  summary,
  input,
  textarea,
  select
) {
  font-size: max(1em, 24px) !important;
}

main :where(p, li, td, th) {
  line-height: 1.6;
}

/* Headings must not be included in the text-floor rule above. Doing so makes
   40–64px source headings inherit the 18px body size through `1em`. */
main h2 {
  font-size: clamp(44px, 4.8vw, 72px) !important;
  line-height: 1.05 !important;
}

main h3 {
  font-size: clamp(30px, 2.6vw, 40px) !important;
  line-height: 1.18 !important;
}

main h4 {
  font-size: clamp(26px, 1.9vw, 32px) !important;
  line-height: 1.25 !important;
}

main,
main > section,
.content-section,
.growth-track,
.technical-grid,
.evidence-callout,
.research-map-grid,
.roadmap-section article,
.status-ledger-head,
.status-ledger-section article,
.footer-main,
.footer-bottom {
  width: 100%;
  max-width: none;
}

/* Header bar — matches reference: roomy bar, legible wordmark and nav */
.site-header {
  min-height: 69px !important;
  gap: 32px;
  padding-left: clamp(24px, 4.0625vw, 78px);
  padding-right: clamp(24px, 4.6875vw, 90px);
}

.site-header .wordmark {
  font-size: 19px !important;
  letter-spacing: 0.32em;
}

.site-header .brand {
  gap: 32px;
}

.site-header .brand-line {
  font-size: 14px !important;
  white-space: nowrap;
  line-height: 1.3;
}

.desktop-nav {
  font-size: 14px !important;
  gap: clamp(16px, 1.55vw, 30px);
}

.desktop-nav a {
  font-size: 14px !important;
  padding: 6px 0;
  white-space: nowrap;
}

.desktop-nav .nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 115px;
  min-width: 115px;
  min-height: 48px;
  padding: 0 !important;
  border-radius: 0;
  border: 1px solid var(--ink);
  font-size: 13px !important;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.desktop-nav .nav-cta:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff !important;
}


.stage-line,
.footer-bottom,
.team-member p {
  font-size: 22px;
}


.eyebrow,
.quality-grid article > span,
.proof-grid article > span,
.pillar-grid article > span,
.investor-thesis-grid article > span,
.card-number,
.status-badge,
.growth-track span,
.data-measure > span,
.application-list span,
.footer-links nav p,
.updated-line,
.diagram-frame figcaption span,
.concept-video-placeholder span,
.concept-video-placeholder strong,
.process-step > span,
.technical-grid span,
.evidence-callout > p,
.team-group > h2,
.layer-stack span,
.sensor-bars span,
.packet-visual > p,
.roadmap-section article strong,
.now-strip p span {
  font-size: 20px !important;
}

.button,
.text-link,
.arrow-link,
.card-link,
.growth-track p,
.footer-links nav a,
.diagram-caption,
.founder-card .role-line {
  font-size: 24px;
}

.now-strip {
  font-size: 15px;
}

.section-heading > p:last-child:not(.eyebrow),
.image-hero-actions > div:first-child > p:last-child,
.concept-video-placeholder p,
.team-founder > p:last-child,
.capabilities-intro,
.work-path-grid p,
.investor-thesis-grid p,
.roadmap-section article > div:nth-child(2) > p:last-child {
  font-size: 26px;
}

/* Technical figures need compact labels, but never illegible ones. */
.research-figure,
.rf-module strong,
.rf-compatibility-gate strong,
.diagram-frame figcaption strong {
  font-size: 21px !important;
}

.rf-section-label,
.rf-module .rf-code,
.rf-code,
.rf-module small,
.rf-sensor span,
.rf-history b,
.rf-evaluator > strong,
.rf-extension-grid strong,
.rf-audit-header strong,
.rf-openvla-branch > strong,
.rf-local-event strong,
.rf-manipulation-scene > strong {
  font-size: 20px !important;
}

.eyebrow,
.team-group > h2,
.sensor-bars i,
.approach-caption,
.footer-links nav p {
  font-size: 20px !important;
}

/* Card and grid copy was the smallest material in the supplied screenshot. */
.quality-grid p,
.proof-grid p,
.pillar-grid p,
.investor-thesis-grid p,
.research-now-card p,
.data-measure p,
.application-list p,
.team-member h3,
.team-member p,
.research-map-grid strong,
.work-path-grid strong,
.collaboration-grid p,
.resource-placeholder p,
.resource-placeholder strong,
.sensor-stage-table strong {
  font-size: 24px !important;
  line-height: 1.55;
}

.quality-grid article > strong,
.proof-grid article > strong,
.pillar-grid article > strong,
.investor-thesis-grid article > strong {
  font-size: 26px !important;
  line-height: 1.35;
}

/* Preserve the large, page-filling proportions shown in the references. */
.image-hero > img,
.visual-band > img,
.why-now-visual,
.approach-visual img,
.founder-monogram img,
.team-member img {
  width: 100%;
}

/* Orange frame around the founder photo on /company */
.founder-monogram {
  border: 4px solid var(--orange);
  box-sizing: border-box;
}

.page-hero,
.content-section,
.sensor-attention-section,
.active-palm-section,
.next-section,
.applications-section,
.proof-section,
.company-preview,
.team-groups,
.work-with-section {
  padding-inline: clamp(24px, 3.5vw, 64px);
}

/* Why now section: dark uniform background that connects the image to the
   preceding applications section and the following company preview. */
.why-now-section {
  background: var(--ink);
  color: #fff;
}

.why-now-section .why-now-visual {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 440px;
  padding: 0;
  background: transparent;
  object-fit: cover;
  object-position: center;
  -webkit-mask-image: linear-gradient(to right, #000 55%, transparent 100%);
  mask-image: linear-gradient(to right, #000 55%, transparent 100%);
}

.why-now-copy h2 {
  color: #fff;
}

.why-now-copy > p:last-child {
  color: #ffffff94;
}

@media (max-width: 900px) {
  body {
    font-size: 21px;
  }

  p,
  li,
  td,
  th {
    font-size: max(1em, 21px);
  }

  main h2 {
    font-size: clamp(38px, 8vw, 52px) !important;
  }

  main h3 {
    font-size: clamp(28px, 5vw, 34px) !important;
  }

  .site-header {
    min-height: 54px !important;
  }


  .page-hero,
  .content-section,
  .sensor-attention-section,
  .active-palm-section,
  .next-section,
  .applications-section,
  .proof-section,
  .company-preview,
  .team-groups,
  .work-with-section {
    padding-inline: 20px;
  }

  .why-now-section .why-now-visual {
    min-height: 320px;
    -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
  }
}

/* The larger, readable desktop navigation needs more horizontal room. Switch
   to the existing menu before it can crowd or widen the viewport. */
@media (max-width: 900px) {
  .site-header {
    min-height: 60px !important;
    padding-inline: 16px;
  }

  .site-header .wordmark {
    font-size: 14px;
    letter-spacing: 0.22em;
  }

  .site-header .brand-line {
    font-size: 12px !important;
  }

  .mobile-nav summary {
    min-height: 38px;
    min-width: 60px;
    font-size: 13px;
  }


  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    display: block;
  }
}

/* The PlainHand approach section */
.approach-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--ink, #0a0a0a);
  color: #fff;
}

.approach-visual {
  position: relative;
  min-height: 560px;
}

.approach-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.approach-caption {
  position: absolute;
  left: 24px;
  bottom: 18px;
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffffff8c;
}

.approach-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  padding: 96px 72px;
}

.approach-copy .eyebrow {
  color: #f06a35;
}

.approach-copy h2 {
  color: #fff;
  font-size: clamp(38px, 4.4vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
}

.approach-copy > p:not(.eyebrow) {
  color: #ffffffb8;
  font-size: 18px;
  line-height: 1.65;
  max-width: 46ch;
  margin: 0;
}

.approach-copy .arrow-link {
  color: #fff;
  border-bottom: 1px solid #ffffff4d;
  padding-bottom: 10px;
  align-self: flex-start;
}

@media (max-width: 900px) {
  .approach-section {
    grid-template-columns: 1fr;
  }

  .approach-visual {
    min-height: 320px;
  }

  .approach-copy {
    padding: 56px 24px 72px;
  }
}

/* Reusable dark visual band */
.visual-band {
  position: relative;
  background: var(--ink, #0a0a0a);
  color: #fff;
  overflow: hidden;
}

.visual-band > img {
  display: block;
  width: 100%;
  height: clamp(420px, 46vw, 720px);
  object-fit: cover;
  object-position: center;
}

.visual-band-copy {
  position: absolute;
  inset: auto 0 0 0;
  padding: 72px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: linear-gradient(to top, rgba(8, 8, 8, 0.95) 30%, rgba(8, 8, 8, 0));
}

.visual-band-copy .eyebrow {
  color: #f06a35;
  margin: 0;
}

.visual-band-copy h2 {
  color: #fff;
  margin: 0;
  font-size: clamp(28px, 3.2vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 20ch;
}

.visual-band-copy > p:not(.eyebrow) {
  color: #ffffffb8;
  font-size: 18px;
  line-height: 1.65;
  max-width: 62ch;
  margin: 0;
}

@media (max-width: 900px) {
  .visual-band > img {
    height: 300px;
  }

  .visual-band-copy {
    position: static;
    padding: 32px 24px 56px;
    background: var(--ink, #0a0a0a);
  }
}

/* Founder section on /company — enlarge only this card while keeping the rest
   of the page scale intact. */
.founder-section {
  padding-block: clamp(60px, 7vw, 110px);
}

.founder-card {
  grid-template-columns: minmax(280px, 360px) 1fr;
  gap: clamp(40px, 5vw, 72px);
  max-width: 1200px;
  margin: 65px 0 40px;
  padding: clamp(28px, 3vw, 40px);
}

.founder-card.large {
  grid-template-columns: minmax(320px, 420px) 1fr;
  max-width: 1320px;
}

.founder-monogram {
  aspect-ratio: 1;
  width: 100%;
  height: auto;
  max-width: 420px;
  background: var(--ink);
}

.founder-card h3 {
  font-size: clamp(34px, 3vw, 48px) !important;
  margin: 22px 0 8px;
}

.founder-card .role-line {
  font-size: 24px !important;
  margin: 0 0 28px;
}

.founder-card div:last-child > p:last-child {
  font-size: 24px;
  line-height: 1.65;
  color: var(--muted);
}

@media (max-width: 900px) {
  .founder-card,
  .founder-card.large {
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 100%;
  }

  .founder-monogram {
    max-width: 260px;
    margin: 0 auto;
  }
}

/* ------------------------------------------------------------------
   "What we are building now" — uniform, symmetric card grid (10 cards)
   ------------------------------------------------------------------ */
.research-now-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-right: 0;
  border-bottom: 0;
  margin-top: 60px;
}

.research-now-card {
  min-height: 0;
  height: 100%;
  padding: 26px 24px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  row-gap: 12px;
  transition: background 0.18s ease;
}

.research-now-card:hover {
  background: var(--cream);
}

.research-now-card .card-number {
  font-size: 12px !important;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.research-now-card .status-badge {
  margin-top: 0 !important;
  align-self: start;
  font-size: 10px !important;
  letter-spacing: 0.12em;
  min-height: 22px;
}

.research-now-card h3 {
  margin: 0 !important;
  font-size: 19px !important;
  line-height: 1.28;
  font-weight: 600;
  min-height: 2.56em;
}

.research-now-card p {
  margin: 0 !important;
  font-size: 15px !important;
  line-height: 1.55;
}

.research-now-card .card-link {
  align-self: end;
  font-size: 13px !important;
  font-weight: 650;
  color: var(--ink);
}

@media (max-width: 1400px) {
  .research-now-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .research-now-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .research-now-card h3 { min-height: 0; }
}
@media (max-width: 560px) {
  .research-now-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Neutralize legacy asymmetric spans on the research-now cards */
.research-now-card,
.research-now-card:first-child,
.research-now-card:nth-child(n),
.research-now-card:nth-child(odd),
.research-now-card:nth-child(2n),
.research-now-card:last-child {
  grid-column: auto !important;
  border-left: 0 !important;
  border-top: 0 !important;
  border-right: 1px solid var(--line) !important;
  border-bottom: 1px solid var(--line) !important;
}

/* Card 09 on /research is a static (non-clickable) div; give it the same
   box model as the linked cards so its text lines up with neighbors. */
.research-map-grid > .research-map-card {
  display: flex;
  flex-direction: column;
  min-height: 360px;
  padding: 28px;
  border-right: 1px solid #ffffff2e;
  border-bottom: 1px solid #ffffff2e;
  cursor: default;
}

.research-map-grid > .research-map-card:hover {
  background: transparent;
}

@media (max-width: 900px) {
  .research-map-grid > .research-map-card {
    border-right: 0;
    border-bottom: 1px solid #ffffff2e;
  }

  .research-map-grid > .research-map-card:last-child {
    border-bottom: 0;
  }
}
