/* ==========================================================================
   WILLOW BEND / process page. Loaded after style.css.
   Geometry measured 1:1 against the reference at 1440x900.
   ========================================================================== */

/* the page opens on white, so the header always reads solid; the reference
   draws a single hairline under the header content, stopping at the band edge */
.site-header {
  background: var(--paper);
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: var(--rail);
  bottom: -1px;
  height: 1px;
  background: #a0a1a5;
}
.site-header.is-solid { border-bottom: 0; }
.site-header .brand-lockup,
.site-header .header-cta { color: var(--ink); }
.site-header .header-cta .arrow-link.on-dark { color: var(--ink); }
.site-header .header-cta .rule { display: none; }

/* every section carries the thin structural rule down the band edge;
   grey on white sections, dim on the dark ones, none on the CTA */
.process-hero::after,
.u-design::after,
.u-built::after,
.u-exp::after,
.u-team::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--content-stop);
  width: 1px;
  background: #a0a1a5;
  z-index: 6;
  pointer-events: none;
}
.u-built::after,
.u-team::after { background: #606065; }

/* shared vocabulary ------------------------------------------------------ */

.pband { background: var(--paper); }
.pband-dark { background: #000; }

.stop {
  padding-left: var(--gutter);
  padding-right: var(--rail);
}

.rule-line {
  height: 1px;
  background: #a0a1a5;
  margin-left: var(--gutter);
  margin-right: var(--rail);
}
.pband-dark .rule-line { background: #606065; }

.section-sub {
  margin-top: 40px;
  font-size: 24px;
  line-height: 1.1667;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.pband-dark .section-sub { color: var(--paper); }

.section-para {
  margin-top: 24px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
  max-width: 430px;
}
.pband-dark .section-para { color: var(--paper); }

/* hero: the proven process ---------------------------------------------- */

.process-hero {
  background: var(--paper);
  position: relative;
  padding-top: 166px;
  min-height: 878px;
}

/* milky frost over the photo's rail portion, as on every photo section */
.process-hero .frost { background: rgba(255, 255, 255, 0.5); }

.process-hero h1 { max-width: 420px; margin-left: var(--gutter); }

.ph-copy {
  width: 354px;
  margin: 64px 0 0 var(--gutter);
}

.ph-copy p { color: var(--ink); }
.ph-copy p + p { margin-top: 15px; }

.ph-photo {
  position: absolute;
  top: 166px;
  left: 30.35%;
  right: 0;
  height: 712px;
}

.ph-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}

/* dusk scrim rising from the photo's base, stopping at the band edge */
.ph-photo::after {
  content: "";
  position: absolute;
  left: 0;
  right: var(--rail);
  bottom: 0;
  height: 443px;
  background: linear-gradient(180deg, rgba(33, 33, 35, 0) 0%, #212123 100%);
  opacity: 0.6;
  mix-blend-mode: multiply;
  z-index: 1;
}

@media (min-width: 1101px) {
  .ph-photo .stars-lockup { left: 119px; bottom: 63px; }
  .ph-photo .stars-lockup .five { font-size: 135px; }
  .ph-photo .stars-lockup .stack { font-size: 40px; }
  .ph-photo .stars-lockup .stack .stars { font-size: 22px; }
}

/* step cards: shared by the design, build, experience and team sections --- */

.step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 24px;
  margin: 24px var(--rail) 0 var(--gutter);
}

.step-card {
  position: relative;
  padding: 24px 24px 24px 0;
  border-right: 1px solid #a0a1a5;
  border-bottom: 1px solid #a0a1a5;
}

.step-card .num {
  display: block;
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 200;
  line-height: 1;
  letter-spacing: 0;
  color: #cbcccc;
}

.step-title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-transform: lowercase;
  color: var(--ink);
  margin: 0 0 24px;
}

.pband-dark .step-card { border-color: #606065; }
.pband-dark .step-card .num { color: #606065; }
.pband-dark .step-title { color: var(--paper); }

/* the whole card is the trigger; the plus sits in its lower right corner */
.step-toggle {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}

.step-toggle .plus {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 24px;
  height: 24px;
  transition: transform 0.3s;
}

.step-toggle .plus::before,
.step-toggle .plus::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3px;
  height: 100%;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: height 0.3s;
}

.step-toggle .plus::after { transform: translate(-50%, -50%) rotate(90deg); }

.step-toggle:hover .plus { transform: rotate(90deg); }

.step-toggle.is-open .plus::before { height: 0; }

.pband-dark .step-toggle .plus::before,
.pband-dark .step-toggle .plus::after { background: var(--paper); }

/* detail panels: full-width rows below each card row; one open per group */
.step-panel {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  overflow: hidden;
  max-height: 0;
  padding: 0 37px 0 0;
  border-bottom: 0 solid #a0a1a5;
  transition: all 0.5s ease-out;
}

.step-panel.is-open {
  max-height: 1000px;
  border-bottom-width: 1px;
  transition: all 0.5s 0.5s ease-in;
}

.step-panel p {
  margin-left: 24px;
  max-width: 546px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
  padding-bottom: 19px;
}

.step-panel .p-num {
  flex: none;
  margin-top: 24px;
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 200;
  line-height: 1;
  color: #cbcccc;
}

.pband-dark .step-panel { border-color: #606065; }
.pband-dark .step-panel p { color: var(--paper); }
.pband-dark .step-panel .p-num { color: #606065; }

/* unique 1: next-level design --------------------------------------------- */

.u-design {
  position: relative;
  padding: 224px 0 128px;
}

.ud-render {
  position: absolute;
  top: 166px;
  left: 50.55%;
  right: 0;
  height: 291px;
  clip-path: inset(0 var(--scrub-clip, 20vw) 0 0);
}

.ud-render img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}

.u-design .rule-line { margin-top: 75px; }

/* unique 2: built to last -------------------------------------------------- */

.u-built { padding: 166px 0 180px; }

.built-intro {
  display: flex;
  align-items: flex-start;
}

.bi-photo {
  flex: none;
  width: 33.75%;
}

.bi-photo img {
  width: 100%;
  height: 291px;
  object-fit: cover;
  object-position: left center;
}

.bi-copy {
  margin-left: 69px;
  padding-top: 58px;
  max-width: 580px;
}

.u-built .rule-line { margin-top: 76px; }
.u-built .section-para { max-width: 460px; }

/* unique 3: customer experience -------------------------------------------- */

.u-exp {
  position: relative;
  padding: 224px 0 78px;
}

.exp-plan {
  position: absolute;
  top: 163px;
  left: 33.47%;
  right: 0;
  pointer-events: none;
}

.exp-plan img { width: 100%; opacity: 0.55; }

.u-exp .stop { position: relative; z-index: 2; }

.u-exp .section-sub { max-width: 400px; }
.u-exp .section-para { max-width: 400px; }
.u-exp .rule-line { margin-top: 90px; }

.exp-grid { grid-template-columns: repeat(2, 1fr); }

.exp-card {
  padding: 24px 24px 24px 0;
  border-right: 1px solid #a0a1a5;
  border-bottom: 1px solid #a0a1a5;
}

.exp-card p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
}

/* our team is --------------------------------------------------------------- */

.u-team { padding: 226px 0 180px; }

.team-grid { margin-top: 20px; }

.team-col {
  padding: 24px 24px 24px 0;
  border-right: 1px solid #606065;
  border-bottom: 1px solid #606065;
}

.team-col .step-title { color: var(--paper); }

.team-col p {
  margin-bottom: 14px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--paper);
}

/* cta: single static photo, anchored to its lower left corner ---------------- */

.cta-photo { height: 831px; }

.cta-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: left bottom;
  background-repeat: no-repeat;
}

.cta-photo .inner {
  top: auto;
  bottom: 148px;
  transform: none;
}

@media (min-width: 1101px) {
  .cta-photo .inner { left: 68px; }
  .cta-photo .display-xl { margin-bottom: 58px; }
}

/* mobile ---------------------------------------------------------------------- */

@media (max-width: 1100px) {
  .stop { padding-right: var(--gutter); }
  .rule-line { margin-right: var(--gutter); }

  .site-header::after { right: 0; }

  .process-hero {
    display: flex;
    flex-direction: column;
    padding-top: var(--header-h);
    min-height: 0;
  }

  .ph-photo {
    position: relative;
    order: -1;
    top: auto;
    left: auto;
    right: auto;
    height: auto;
  }

  .ph-photo img { height: 520px; }
  .ph-photo::after { right: 0; }

  /* keep the five star lockup on the photo, as on the reference */
  .ph-photo .stars-lockup {
    position: absolute;
    left: auto;
    right: 20px;
    bottom: 24px;
    justify-content: flex-end;
    padding: 0;
  }
  .ph-photo .stars-lockup .five { font-size: 64px; }
  .ph-photo .stars-lockup .stack { font-size: 20px; }
  .ph-photo .stars-lockup .stack .stars { font-size: 12px; }

  .process-hero h1 { font-size: 40px; line-height: 1.1; margin: 56px var(--gutter) 0; max-width: none; }
  .process-hero h1 br { display: none; }

  .ph-copy { width: auto; max-width: 460px; margin: 28px var(--gutter) 56px; }

  .section-sub { font-size: 20px; line-height: 1.4; }

  .u-design { padding: 64px 0 72px; }
  .ud-render { display: none; }
  .u-design .rule-line { margin-top: 48px; }

  .step-grid {
    grid-template-columns: 1fr;
    margin-right: var(--gutter);
  }

  /* each panel slots directly beneath its own card */
  .step-grid article:nth-of-type(1) { order: 1; }
  .step-grid article:nth-of-type(2) { order: 3; }
  .step-grid article:nth-of-type(3) { order: 5; }
  .step-grid div:nth-of-type(1) { order: 2; }
  .step-grid div:nth-of-type(2) { order: 4; }
  .step-grid div:nth-of-type(3) { order: 6; }

  .step-card,
  .exp-card,
  .team-col { margin-bottom: 46px; }
  .step-grid article:last-of-type { margin-bottom: 0; }

  .step-card .num { font-size: 48px; }
  .step-title { font-size: 20px; line-height: 1.5; }

  .step-panel p { margin-left: 0; }

  .u-built { padding: 0 0 72px; }
  .built-intro { display: block; }
  .bi-photo { width: 100%; }
  .bi-photo img { height: 375px; }
  .bi-copy { margin: 44px var(--gutter) 0; padding-top: 0; max-width: none; }
  .u-built .rule-line { margin-top: 48px; }

  .u-exp { padding: 72px 0 88px; }
  .exp-plan { position: static; width: 100%; margin-top: 40px; }
  .u-exp .rule-line { margin-top: 48px; }
  .exp-grid { grid-template-columns: 1fr; }

  .u-team { padding: 72px 0 64px; }
  .team-grid { margin-top: 40px; }
  .team-col:last-of-type { margin-bottom: 0; }

  .cta-photo { height: 315px; }
  .cta-photo .inner { bottom: 40px; }
  .cta-photo .display-xl { font-size: 32px; line-height: 1.125; margin-bottom: 21px; }
}
