/* Site-wide typography baseline: one family, one scale for every page. */
body {
  font-family: Montserrat, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Display headings (home / page / project / robotics heroes) */
.hero h1,
.page-hero h1,
.project-hero h1,
.rb-hero h1 {
  font-family: Montserrat, Arial, sans-serif;
  font-weight: 800;
  font-size: clamp(48px, 5.5vw, 82px);
  line-height: .98;
  letter-spacing: -.035em;
}

/* Section headings */
.section h2,
.statement h2,
.rb-section h2,
.cta h2,
.team-culture h2 {
  font-family: Montserrat, Arial, sans-serif;
  font-weight: 800;
  font-size: clamp(36px, 4vw, 58px);
  line-height: 1.03;
  letter-spacing: -.045em;
  margin: 0 0 18px;
}

/* Card / subsection headings */
.step h3,
.why-card h3,
.priority h3,
.rb-capability-title h3 {
  font-size: 21px;
  line-height: 1.22;
  letter-spacing: -.025em;
  font-weight: 800;
}

/* Lead and intro copy */
.hero p,
.page-hero p,
.project-hero p,
.section-lead,
.rb-hero-lead,
.rb-section-heading > p {
  font-size: 18px;
  line-height: 1.65;
}

/* Small labels */
.eyebrow,
.kicker,
.project-type,
.rb-eyebrow,
.rb-index {
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 700;
}

/* Breadcrumb: same size, but keeps sentence case */
.breadcrumbs {
  font-size: 12px;
  letter-spacing: .02em;
}

@media (max-width: 760px) {
  .hero h1,
  .page-hero h1,
  .project-hero h1,
  .rb-hero h1 {
    font-size: clamp(38px, 11vw, 54px);
    line-height: 1.02;
  }

  .section h2,
  .statement h2,
  .rb-section h2,
  .cta h2 {
    font-size: clamp(28px, 7.4vw, 40px);
  }
}

/* Project section index label — identical on every project page.
   Robotics previously showed a bare number; it now carries the same
   "01 · Section name" wording and colour as the AI Sports page. */
.rb-index {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #4D144A;
  margin-bottom: 14px;
}

/* Same metrics for the section label on every project page,
   whether it is marked up as .kicker or .rb-index. */
.kicker,
.rb-index {
  line-height: 1.2;
  margin-bottom: 14px;
}

/* Numbered section labels (01 · 02 · 03 · 04) share one size and one
   spacing everywhere: index principles, about process steps, detail
   steps and project section headings. */
.principles b,
.team-values b,
.process-num,
.step b,
.kicker,
.rb-index {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: 14px;
  padding: 0;
}

.rb-on-dark .rb-index,
.diff .kicker,
.purple .kicker,
.black .kicker {
  color: #D9C1D8;
}

/* Section rhythm — one vertical padding for every content section on
   every page (homepage Connect/Join keep their bespoke layouts). */
.section:not(.contact):not(.join),
.statement,
.incubator,
.rb-section,
.culture-content,
.partner,
.projects-page .current-projects {
  padding-top: 52px;
  padding-bottom: 52px;
}

@media (max-width: 760px) {

  .section:not(.contact):not(.join),
  .statement,
  .incubator,
  .rb-section,
  .culture-content,
  .partner,
  .projects-page .current-projects {
    padding-top: 32px;
    padding-bottom: 32px;
  }
}

/* Project section navigation — one style for all four project pages
   (AI Sports / Tire Inspection use .flowbar, Vertical Accelerator uses
   .flow, Robotics uses .rb-section-nav). */
.flow,
.flowbar,
.rb-section-nav {
  background: #fff;
  border-bottom: 1px solid #D9C1D8;
}

.flow a,
.flowbar a,
.rb-section-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  border-left: 1px solid #D9C1D8;
  border-right: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  color: #1E0013;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s, color .2s;
}

.flow a:last-child,
.flowbar a:last-child,
.rb-section-nav a:last-child {
  border-right: 1px solid #D9C1D8;
}

.flow a b,
.flowbar a b,
.rb-section-nav a b {
  color: #9E2018;
  font-size: 10px;
  font-weight: 800;
}

.flow a:hover,
.flowbar a:hover,
.rb-section-nav a:hover {
  background: #F1E1ED;
  color: #1E0013;
}

/* Hero imagery — one treatment on every page: the photo stretches to the full
   height of the hero band, runs to the band's right edge, and dissolves into
   the hero background on its left side. */
.hero-photo img,
.page-hero-photo img,
.project-hero-photo img,
.rb-page .rb-hero-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .35) 22%, rgba(0, 0, 0, .85) 46%, #000 62%);
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .35) 22%, rgba(0, 0, 0, .85) 46%, #000 62%);
}

/* Hero copy ceiling: the text column never runs the full width of the band. */
.hero h1,
.page-hero h1,
.rb-hero h1,
.hero p,
.page-hero p,
.hero .lead,
.hero .explain,
.rb-hero-lead {
  max-width: none
}

/* Hero copy padding: one stacked value below each page's two-column breakpoint,
   one desktop value above it. */
.hero-copy,
.page-hero-copy,
.rb-hero-copy,
.project-hero-copy,
.hero .wrap:not(.hero-grid) {
  padding: 48px 0 40px
}

/* Desktop heroes only: the photo leaves the grid flow and is pinned to the band's
   right edge at its former column width; the copy keeps a 75% ceiling and sits
   over the faded left side of the photo. Each page flips at the breakpoint where
   its own hero stops stacking. */
@media (min-width: 761px) {

  .page-hero-grid,
  .index-page .hero-grid {
    display: block;
    position: relative
  }

  .index-page .hero-copy,
  .page-hero-copy {
    max-width: 75%;
    padding: 52px 62px 54px 0
  }

  .hero .wrap>h1,
  .hero .wrap>p {
    max-width: 75%
  }

  .ai-sports-page .hero .wrap>h1,
  .ai-sports-page .hero .wrap>p {
    max-width: 100%
  }

  .index-page .hero-photo,
  .page-hero-photo,
  .projects-page .page-hero-photo {
    position: absolute;
    top: 0;
    bottom: 0;
    left: auto;
    right: min(-40px, calc((1280px - 100vw) / 2));
    width: 60%;
    height: auto !important;
    min-height: 0 !important;
    margin: 0;
    background: transparent !important;
    overflow: hidden
  }

  .projects-page .two-col {
    grid-template-columns: 1fr 200px;
  }
}

@media (min-width: 901px) {

  .tire-page .hero-grid,
  .rb-page .rb-hero-grid,
  .vertical-page .hero-grid {
    display: block;
    position: relative
  }

  .tire-page .hero-copy,
  .rb-page .rb-hero-copy,
  .vertical-page .hero-copy {
    max-width: 75%;
    padding: 52px 62px 54px 0
  }

  .hero .wrap:not(.hero-grid) {
    padding: 52px 62px 54px 0
  }

  .tire-page .hero-photo,
  .rb-page .rb-hero-visual,
  .vertical-page .hero-photo {
    position: absolute;
    top: 0;
    bottom: 0;
    left: auto;
    right: min(-40px, calc((1280px - 100vw) / 2));
    width: 60%;
    height: auto !important;
    min-height: 0 !important;
    margin: 0;
    aspect-ratio: auto;
    background: transparent !important;
    overflow: hidden;
    box-shadow: none
  }
}
