
:root {
  --frontier-header-height: 88px;
  --frontier-screen:
    calc(100svh - var(--frontier-header-height));
  --frontier-blue: #0057B8;
}

html {
  scroll-padding-top: var(--frontier-header-height);
}

#private-groups.frontierBespoke,
#encounters.frontierCulture,
#philosophy.frontierFounder {
  box-sizing: border-box;
  font-family: Inter, Arial, sans-serif;
}

#private-groups.frontierBespoke *,
#encounters.frontierCulture *,
#philosophy.frontierFounder * {
  box-sizing: border-box;
}

/* BESPOKE EXPEDITIONS */

#private-groups.frontierBespoke {
  position: relative;
  isolation: isolate;
  background: #202522;
  color: #F2F0E9;
  padding: clamp(32px, 5vh, 72px) 7%;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

#private-groups .fb-images,
#private-groups .fb-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
}

#private-groups .fb-images img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .7s ease;
}

#private-groups .fb-images img.is-active {
  opacity: 1;
}

#private-groups .fb-shade {
  background:
    linear-gradient(90deg, #101711bb, #10171150),
    linear-gradient(0deg, #101711e8, #10171155);
}

#private-groups .fb-heading,
#private-groups .fb-discovery {
  display: grid;
  grid-template-columns: .75fr 1.4fr;
  gap: 8%;
  align-items: start;
}

#private-groups .fb-eyebrow {
  font-size: 11px;
  line-height: 1.8;
  letter-spacing: .15em;
  text-transform: uppercase;
  margin: 5px 0;
  color: #D8D0C0;
}

#private-groups h2 {
  font-family: 'Barlow Condensed', Impact, sans-serif;
  font-weight: 500;
  font-size: clamp(62px, 7.3vw, 112px);
  line-height: .88;
  letter-spacing: -.015em;
  text-transform: uppercase;
  margin: 0 0 24px;
  color: #F2F0E9;
}

#private-groups .fb-intro {
  font-size: clamp(13px, 1vw, 15px);
  line-height: 1.85;
  max-width: 650px;
  margin: 0;
  color: #F2F0E9;
}

#private-groups .fb-discovery {
  margin-top: auto;
  align-items: center;
}

#private-groups .fb-tabs {
  display: flex;
  flex-direction: column;
  max-width: 260px;
}

#private-groups .fb-tabs button {
  font-family: inherit;
  color: #D8D0C0;
  background: none;
  border: 0;
  border-top: 1px solid #f2f0e94d;
  text-align: left;
  font-size: 16px;
  line-height: 1.5;
  padding: 13px 0;
  min-height: 48px;
}

#private-groups .fb-tabs button:last-child {
  border-bottom: 1px solid #f2f0e94d;
}

#private-groups .fb-tabs button[aria-selected=true] {
  color: #F2F0E9;
}

#private-groups .fb-tabs button[aria-selected=true]:before {
  content: '↗';
  margin-right: 15px;
}

#private-groups .fb-story p {
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.8;
  max-width: 550px;
  margin: 0;
  color: #F2F0E9;
}

#private-groups .fb-footer {
  border-top: 1px solid #f2f0e94d;
  padding-top: 20px;
  text-align: right;
}

#private-groups .fb-footer a,
#encounters .fc-copy a {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  color: inherit;
  border-bottom: 1px solid #f2f0e980;
  padding-bottom: 9px;
  text-decoration: none;
  font-size: 12px;
  line-height: 1.7;
}

#private-groups .fb-footer a span,
#encounters .fc-copy a span {
  font-size: 23px;
}

/* CULTURAL EXPERIENCES */

#encounters.frontierCulture {
  background: #202522;
  color: #F2F0E9;
  padding: 32px 5% 24px;
  display: flex;
  flex-direction: column;
  gap: 25px;
  position: relative;
}

#encounters .fc-heading p {
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #D8D0C0;
  line-height: 1.6;
  margin: 0 0 12px;
}

#encounters .fc-heading h2 {
  font-family: 'Barlow Condensed', Impact, sans-serif;
  font-size: clamp(30px, 2.7vw, 43px);
  font-weight: 500;
  line-height: 1.05;
  text-transform: uppercase;
  margin: 0;
  color: #F2F0E9;
}

#encounters .fc-window {
  overflow: hidden;
  min-height: 0;
  flex: 1;
}

#encounters .fc-track {
  display: flex;
  height: 100%;
  transform: translateX(0);
  transition: transform .65s cubic-bezier(.22, .65, .25, 1);
}

#encounters .fc-panel {
  flex: 0 0 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 56% 44%;
  align-items: center;
  margin: 0;
}

#encounters .fc-image {
  position: relative;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

#encounters .fc-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#encounters .fc-image:after {
  content: '';
  position: absolute;
  inset: 60% 0 0;
  background: linear-gradient(transparent, #20252299);
}

#encounters .fc-image > span {
  position: absolute;
  bottom: 22px;
  left: 25px;
  right: 25px;
  z-index: 1;
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: .1em;
}

#encounters .fc-copy {
  padding: 20px 10% 20px 15%;
}

#encounters .fc-copy h3 {
  font-family: 'Barlow Condensed', Impact, sans-serif;
  font-size: clamp(43px, 4.4vw, 76px);
  line-height: .97;
  font-weight: 500;
  text-transform: uppercase;
  margin: 0 0 26px;
  color: #F2F0E9;
}

#encounters .fc-copy > p {
  font-size: 14px;
  line-height: 1.9;
  color: #D8D0C0;
  max-width: 360px;
  margin: 0 0 30px;
}

#encounters .fc-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

#encounters .fc-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  min-width: 0;
}

#encounters .fc-tabs button {
  font-family: inherit;
  font-size: 11px;
  line-height: 1.5;
  background: none;
  color: #D8D0C0;
  border: 0;
  border-bottom: 1px solid transparent;
  min-height: 44px;
  padding: 10px 0;
}

#encounters .fc-tabs button[aria-pressed=true] {
  color: #F2F0E9;
  border-bottom-color: var(--frontier-blue);
}

#encounters .fc-arrows {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

#encounters .fc-arrows button {
  background: none;
  border: 1px solid #f2f0e940;
  color: #F2F0E9;
  width: 44px;
  height: 44px;
  font-size: 24px;
}

#encounters .fc-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  margin: 0;
}

/* FOUNDER */

#philosophy.frontierFounder {
  background: #F2F0E9;
  color: #202522;
  padding: clamp(45px, 7vh, 95px) 8%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12%;
  align-items: center;
}

#philosophy .ff-eyebrow {
  font-size: 11px;
  line-height: 1.8;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #59604E;
  margin: 0 0 30px;
}

#philosophy h2 {
  font-family: 'Barlow Condensed', Impact, sans-serif;
  font-weight: 500;
  font-size: clamp(58px, 6.5vw, 100px);
  line-height: .94;
  text-transform: uppercase;
  margin: 0;
  color: #202522;
}

#philosophy .ff-copy > p {
  font-size: clamp(14px, 1.15vw, 17px);
  line-height: 1.9;
  color: #59604E;
  margin: 0 0 22px;
  max-width: 600px;
}

#philosophy .ff-copy > p:first-child {
  color: #202522;
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.75;
}

#philosophy .ff-signature {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 30px;
}

#philosophy .ff-signature strong {
  font-size: 18px;
  font-weight: 500;
}

#philosophy .ff-signature span {
  font-size: 12px;
  color: #59604E;
}

/* DESKTOP: ONE SECTION PER AVAILABLE SCREEN */

@media (min-width: 1024px) and (min-height: 700px) {
  main > section {
    box-sizing: border-box;
    height: var(--frontier-screen) !important;
    min-height: 0 !important;
    max-height: none !important;
    scroll-margin-top: var(--frontier-header-height);
  }

  main > .hero {
    height: 100svh !important;
  }

  #riding {
    padding-top: 28px !important;
    padding-bottom: 28px !important;
  }

  #riding .rideFieldHeader {
    top: 25px;
  }

  #riding .rideCopy h2 {
    font-size: clamp(56px, 6vw, 90px);
    margin-bottom: 24px;
  }

  #riding .rideFieldFacts {
    padding-top: 15px;
    padding-bottom: 15px;
  }

  #expeditions.expeditionCollection {
    padding-top: 24px;
    padding-bottom: 18px;
  }

  #responsibility {
    padding: 35px 7% !important;
    align-items: stretch;
    gap: 8%;
  }

  #responsibility .responsibilityImage {
    height: 100%;
    min-height: 0;
  }

  #responsibility .responsibilityCopy {
    padding: 18px 0;
    align-self: center;
  }

  #responsibility .responsibilityCopy h2 {
    font-size: clamp(50px, 5vw, 72px);
    margin-top: 18px;
    margin-bottom: 20px;
  }

  #responsibility .responsibilityCopy > p:not(.eyebrow) {
    font-size: 14px;
    line-height: 1.8;
  }

  #responsibility details {
    padding: 14px 0;
  }

  #planning {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 45px 8% !important;
  }

  #planning h2 {
    font-size: clamp(65px, 7vw, 105px);
  }

  /* Allow extra room when content cannot fit readably. */
  main > section.frontierNeedsSpace {
    height: auto !important;
    min-height: var(--frontier-screen) !important;
  }

  #encounters.frontierNeedsSpace .fc-window {
    flex: none;
    height: 480px;
  }
}

/* SMALLER WINDOWS */

@media (max-width: 1023px), (max-height: 699px) {
  #private-groups.frontierBespoke {
    height: auto;
    min-height: 0;
    padding: 60px 7%;
    gap: 45px;
  }

  #private-groups .fb-discovery {
    margin-top: 0;
  }

  #encounters.frontierCulture {
    height: auto;
    min-height: 0;
    padding: 60px 6% 35px;
  }

  #encounters .fc-window {
    flex: none;
    height: 520px;
  }

  #philosophy.frontierFounder {
    height: auto;
    min-height: 0;
    padding: 70px 7%;
  }
}

/* MOBILE */

@media (max-width: 700px) {
  #private-groups .fb-heading,
  #private-groups .fb-discovery {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  #private-groups h2 {
    font-size: clamp(60px, 16vw, 88px);
  }

  #private-groups .fb-intro {
    font-size: 14px;
  }

  #private-groups .fb-discovery {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  #private-groups .fb-tabs {
    flex-direction: row;
    max-width: none;
    gap: 20px;
    order: 2;
  }

  #private-groups .fb-tabs button {
    flex: 1;
    font-size: 13px;
    white-space: nowrap;
  }

  #private-groups .fb-tabs button:last-child {
    border-bottom: 0;
  }

  #private-groups .fb-tabs button[aria-selected=true] {
    border-top-color: #F2F0E9;
  }

  #private-groups .fb-tabs button[aria-selected=true]:before {
    content: none;
  }

  #private-groups .fb-story {
    order: 1;
  }

  #private-groups .fb-story p {
    font-size: 17px;
  }

  #private-groups .fb-footer {
    text-align: left;
  }

  #encounters .fc-window {
    height: 650px;
  }

  #encounters .fc-panel {
    grid-template-columns: 1fr;
    grid-template-rows: 48% 52%;
    align-items: start;
  }

  #encounters .fc-copy {
    padding: 27px 0 0;
  }

  #encounters .fc-copy h3 {
    font-size: clamp(40px, 11vw, 58px);
    margin-bottom: 18px;
  }

  #encounters .fc-copy > p {
    font-size: 14px;
    margin-bottom: 20px;
  }

  #encounters .fc-controls {
    align-items: flex-end;
    gap: 12px;
  }

  #encounters .fc-tabs {
    gap: 0 18px;
  }

  #encounters .fc-arrows {
    gap: 6px;
  }

  #philosophy.frontierFounder {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  #philosophy h2 {
    font-size: 68px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #private-groups .fb-images img,
  #encounters .fc-track {
    transition: none;
  }
}
