/* HERO */

.home-hero {
  position: relative;
  min-height: 850px;
  overflow: hidden;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 88% 36%, rgba(245, 235, 216, 0.08), transparent 27%),
    linear-gradient(135deg, #173b61 0%, var(--color-navy) 52%, var(--color-navy-dark) 100%);
  color: var(--color-sand);
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(245, 235, 216, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 235, 216, 0.06) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.55), transparent 90%);
}

.hero-brandmark {
  position: absolute;
  width: min(44vw, 650px);
  right: -8%;
  bottom: -12%;
  opacity: 0.055;
  transform: rotate(-5deg);
  pointer-events: none;
}

.hero-metal-line {
  position: absolute;
  right: 7%;
  top: 31%;
  width: 190px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,.7),
    rgba(245,235,216,.25),
    transparent
  );
  opacity: 0.55;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 138px;
  padding-bottom: 96px;
}

.hero-copy {
  width: min(850px, 74%);
}

.hero-copy .eyebrow {
  color: rgba(245, 235, 216, 0.62);
}

.hero-copy h1 {
  margin: 0;
  max-width: 900px;
  color: var(--color-sand);
}

.hero-copy h1 span {
  display: block;
}

.hero-copy .hero-intro {
  max-width: 740px;
  margin-top: 31px;
  font-size: clamp(19px, 1.8vw, 23px);
  line-height: 1.55;
  letter-spacing: -0.02em;
  color: rgba(245, 235, 216, 0.73);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 38px;
}

.hero-actions .text-link {
  color: rgba(245, 235, 216, 0.8);
}

.hero-pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  margin-top: 66px;
  padding-top: 21px;
  border-top: 1px solid var(--border-dark);
  max-width: 750px;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(245, 235, 216, 0.47);
}

/* COMMON SECTION HEADINGS */

.home-section-heading {
  max-width: 860px;
  margin-bottom: 70px;
}

.home-section-heading h2 {
  margin: 0;
  color: var(--color-navy);
}

.home-section-heading .lead {
  margin-top: 26px;
  max-width: 740px;
  color: rgba(19, 51, 84, 0.66);
}

.section--navy .home-section-heading h2 {
  color: var(--color-sand);
}

.section--navy .home-section-heading .lead {
  color: rgba(245, 235, 216, 0.68);
}

/* OPPORTUNITY */

.opportunity-intro {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 74px;
  margin-bottom: 76px;
}

.opportunity-intro h2 {
  margin: 0;
  max-width: 850px;
  color: var(--color-navy);
}

.opportunity-intro-copy {
  max-width: 750px;
}

.opportunity-intro-copy p {
  color: rgba(19, 51, 84, 0.67);
}

.opportunity-intro-copy p + p {
  margin-top: 20px;
}

.opportunity-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.opportunity-item {
  min-height: 310px;
  padding: 34px 34px 30px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border-light);
}

.opportunity-item:last-child {
  border-right: 0;
}

.opportunity-number {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(19, 51, 84, 0.38);
}

.opportunity-label {
  margin-top: auto;
  margin-bottom: 13px;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(19, 51, 84, 0.48);
}

.opportunity-item h3 {
  margin-bottom: 16px;
  color: var(--color-navy);
}

.opportunity-item p {
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.65;
}

/* WHAT WE DO */

.services-list {
  border-top: 1px solid var(--border-light);
}

.service-row {
  min-height: 112px;
  display: grid;
  grid-template-columns: 70px 1fr 1fr auto;
  gap: 30px;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
  transition:
    padding 240ms var(--ease-premium),
    background 240ms ease;
}

.service-row:hover {
  padding-inline: 18px;
  background: rgba(245, 235, 216, 0.35);
}

.service-row-number {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  color: rgba(19, 51, 84, 0.4);
}

.service-row h3 {
  margin: 0;
  color: var(--color-navy);
}

.service-row p {
  max-width: 470px;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.6;
}

.service-row-arrow {
  color: var(--color-navy);
  transition: transform 220ms var(--ease-premium);
}

.service-row:hover .service-row-arrow {
  transform: translateX(5px);
}

.services-footer-link {
  margin-top: 35px;
}

/* APPROACH */

.approach-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
}

.approach-step {
  min-height: 280px;
  padding: 30px 25px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border-dark);
}

.approach-step:last-child {
  border-right: 0;
}

.approach-step-number {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(245, 235, 216, 0.38);
}

.approach-step h3 {
  margin: auto 0 13px;
  color: var(--color-sand);
  font-size: 26px;
}

.approach-step p {
  color: rgba(245, 235, 216, 0.6);
  font-size: 13px;
  line-height: 1.6;
}

.approach-link {
  margin-top: 36px;
  color: var(--color-sand);
}

/* WHY */

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--border-light);
}

.why-item {
  min-height: 270px;
  padding: 34px 34px 30px 0;
  border-bottom: 1px solid var(--border-light);
}

.why-item:nth-child(odd) {
  border-right: 1px solid var(--border-light);
  padding-right: 54px;
}

.why-item:nth-child(even) {
  padding-left: 54px;
}

.why-item span {
  display: block;
  margin-bottom: 78px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  color: rgba(19, 51, 84, 0.36);
}

.why-item h3 {
  margin-bottom: 13px;
  color: var(--color-navy);
}

.why-item p {
  max-width: 500px;
  color: var(--color-muted);
}

/* SCAN CTA */

.scan-home {
  position: relative;
  overflow: hidden;
}

.scan-home::after {
  content: "";
  position: absolute;
  width: 680px;
  height: 680px;
  border: 1px solid rgba(245, 235, 216, 0.07);
  border-radius: 50%;
  right: -250px;
  bottom: -400px;
  box-shadow:
    0 0 0 90px rgba(245,235,216,.012),
    0 0 0 180px rgba(245,235,216,.008);
}

.scan-home-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 100px;
  align-items: end;
}

.scan-home-copy h2 {
  margin: 0;
  max-width: 780px;
  color: var(--color-sand);
}

.scan-home-copy .lead {
  margin-top: 25px;
  max-width: 680px;
  color: rgba(245, 235, 216, 0.68);
}

.scan-home-actions {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-top: 34px;
}

.scan-home-steps {
  border-top: 1px solid var(--border-dark);
}

.scan-home-step {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-dark);
}

.scan-home-step > span {
  padding-top: 4px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(245, 235, 216, 0.37);
}

.scan-home-step h3 {
  margin: 0 0 7px;
  color: var(--color-sand);
  font-size: 20px;
}

.scan-home-step p {
  color: rgba(245, 235, 216, 0.55);
  font-size: 13px;
}

/* FOUNDER TEASER */

.founder-home-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 82px;
  align-items: center;
}

.founder-home-photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--color-navy);
}

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

.founder-home-copy {
  max-width: 680px;
}

.founder-home-copy h2 {
  margin: 0;
  color: var(--color-navy);
}

.founder-home-copy .lead {
  margin-top: 25px;
  color: rgba(19, 51, 84, 0.68);
}

.founder-home-copy .text-link {
  margin-top: 30px;
  color: var(--color-navy);
}

/* FINAL CTA */

.final-cta {
  text-align: center;
}

.final-cta-inner {
  max-width: 900px;
  margin-inline: auto;
}

.final-cta h2 {
  margin: 0;
  color: var(--color-sand);
}

.final-cta p {
  max-width: 670px;
  margin: 26px auto 0;
  color: rgba(245, 235, 216, 0.65);
}

.final-cta-actions {
  margin-top: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
}

@media (max-width: 1050px) {
  .home-hero {
    min-height: 800px;
  }

  .hero-copy {
    width: 85%;
  }

  .opportunity-intro {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .service-row {
    grid-template-columns: 55px 0.8fr 1.2fr auto;
  }

  .approach-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .approach-step:nth-child(3) {
    border-right: 0;
  }

  .approach-step:nth-child(-n+3) {
    border-bottom: 1px solid var(--border-dark);
  }

  .scan-home-inner {
    grid-template-columns: 1fr;
    gap: 60px;
  }
}

@media (max-width: 780px) {
  .opportunity-grid {
    grid-template-columns: 1fr;
  }

  .opportunity-item {
    min-height: auto;
    padding: 29px 0;
    border-right: 0;
    border-bottom: 1px solid var(--border-light);
  }

  .opportunity-item:last-child {
    border-bottom: 0;
  }

  .opportunity-label {
    margin-top: 48px;
  }

  .service-row {
    min-height: 0;
    grid-template-columns: 34px 1fr auto;
    gap: 14px;
    padding: 27px 0;
  }

  .service-row p {
    grid-column: 2 / -1;
    margin-top: -3px;
  }

  .service-row:hover {
    padding-inline: 0;
    background: transparent;
  }

  .approach-grid {
    grid-template-columns: 1fr;
    border-bottom: 0;
  }

  .approach-step,
  .approach-step:nth-child(3) {
    min-height: 0;
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 14px 18px;
    padding: 27px 0;
    border-right: 0;
    border-bottom: 1px solid var(--border-dark);
  }

  .approach-step h3 {
    margin: 0;
  }

  .approach-step p {
    grid-column: 2;
  }

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

  .why-item,
  .why-item:nth-child(odd),
  .why-item:nth-child(even) {
    min-height: 0;
    padding: 30px 0;
    border-right: 0;
  }

  .why-item span {
    margin-bottom: 45px;
  }

  .founder-home-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .founder-home-photo {
    max-width: 570px;
  }
}

@media (max-width: 700px) {
  .home-hero {
    min-height: auto;
    align-items: flex-start;
  }

  .home-hero::before {
    background-size: 54px 54px;
  }

  .hero-brandmark {
    width: 410px;
    right: -180px;
    bottom: -70px;
  }

  .hero-metal-line {
    display: none;
  }

  .hero-inner {
    padding-top: 135px;
    padding-bottom: 84px;
  }

  .hero-copy {
    width: 100%;
  }

  .hero-copy h1 {
    font-size: clamp(46px, 13vw, 58px);
  }

  .hero-copy .hero-intro {
    margin-top: 26px;
    font-size: 18px;
    line-height: 1.55;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    margin-top: 31px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-actions .text-link {
    justify-content: center;
  }

  .hero-pillars {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px 20px;
    margin-top: 47px;
  }

  .home-section-heading {
    margin-bottom: 45px;
  }

  .opportunity-intro {
    margin-bottom: 48px;
  }

  .scan-home-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .scan-home-actions .button {
    width: 100%;
  }

  .scan-home-actions .text-link {
    justify-content: center;
  }

  .founder-home-photo {
    aspect-ratio: 4 / 5;
    width: 100%;
  }

  .final-cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .final-cta-actions .button {
    width: 100%;
  }

  .final-cta-actions .text-link {
    justify-content: center;
  }
}

@media (max-width: 390px) {
  .hero-pillars {
    grid-template-columns: 1fr;
  }
}
