/* Freedom Oasis homepage visual system. Shared-class overrides stay beneath .fo-home. */

.fo-home {
  --fo-graphite: #111412;
  --fo-deep: #090B0A;
  --fo-ivory: #F1EBDD;
  --fo-ivory-muted: #BDB8AC;
  --fo-teal: #4B9288;
  --fo-teal-light: #79B8AE;
  --fo-ink: #171A18;
  --fo-mineral-gray: #676A65;
  --fo-line-dark: rgba(241, 235, 221, 0.18);
  --fo-line-light: rgba(23, 26, 24, 0.18);
  --fo-header-height: 4.75rem;
  --fo-shell: 86rem;
  min-width: 0;
  overflow-x: clip;
  background: var(--fo-graphite);
  color: var(--fo-ivory);
}

.fo-home main {
  overflow: clip;
}

.fo-home .fo-shell {
  width: min(calc(100% - 4rem), var(--fo-shell));
  margin-inline: auto;
}

.fo-home .fo-label {
  margin: 0;
  color: var(--fo-teal-light);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.3;
}

.fo-home h1,
.fo-home h2,
.fo-home p {
  text-wrap: pretty;
}

.fo-home h1,
.fo-home h2 {
  text-wrap: balance;
}

.fo-home h2 span,
.fo-home .fo-hero__statement span {
  display: block;
}

.fo-home #what-we-build,
.fo-home #philosophy,
.fo-home #about,
.fo-home #contact {
  scroll-margin-top: var(--fo-header-height);
}

.fo-home :focus-visible {
  outline: 3px solid var(--fo-teal-light);
  outline-offset: 5px;
}

.fo-home .skip-link {
  border-radius: 0;
  background: var(--fo-ivory);
  color: var(--fo-graphite);
}

.fo-home .fo-header {
  background: transparent;
  color: var(--fo-ivory);
}

.fo-home .fo-header.is-scrolled {
  border-color: rgba(121, 184, 174, 0.28);
  background: rgba(17, 20, 18, 0.94);
  backdrop-filter: blur(14px);
}

.fo-home .fo-nav-shell {
  position: relative;
  min-height: var(--fo-header-height);
}

.fo-home .fo-wordmark {
  color: var(--fo-ivory);
  letter-spacing: 0.16em;
}

.fo-home .fo-nav ul {
  gap: clamp(0.9rem, 2vw, 1.8rem);
}

.fo-home .fo-nav a {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--fo-ivory-muted);
  font-size: 0.76rem;
  font-weight: 760;
  letter-spacing: 0.1em;
}

.fo-home .fo-nav a:hover,
.fo-home .fo-nav a:focus-visible {
  color: var(--fo-ivory);
}

.fo-home .fo-nav__world {
  padding-inline: 0.85rem;
  border: 1px solid rgba(121, 184, 174, 0.45);
  color: var(--fo-teal-light);
}

.fo-home .fo-menu-toggle {
  border-color: rgba(121, 184, 174, 0.45);
  border-radius: 0;
  color: var(--fo-ivory);
}

.fo-home .fo-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: calc(100vh - var(--fo-header-height));
  min-height: calc(100svh - var(--fo-header-height));
  align-items: stretch;
  overflow: clip;
  background-color: var(--fo-graphite);
  background-image:
    linear-gradient(rgba(121, 184, 174, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(121, 184, 174, 0.055) 1px, transparent 1px);
  background-size: 5rem 5rem;
}

.fo-home .fo-hero::before {
  position: absolute;
  z-index: -1;
  top: 4%;
  right: -13%;
  width: min(68vw, 58rem);
  aspect-ratio: 1;
  border: 1px solid rgba(121, 184, 174, 0.52);
  border-radius: 50%;
  box-shadow:
    0 0 0 7rem rgba(75, 146, 136, 0.035),
    0 0 0 14rem rgba(75, 146, 136, 0.02);
  content: "";
}

.fo-home .fo-hero::after {
  position: absolute;
  z-index: -1;
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--fo-teal) 18%, var(--fo-teal-light) 68%, transparent);
  content: "";
  transform-origin: center;
}

.fo-home .fo-hero__content {
  display: grid;
  min-height: inherit;
  grid-template-rows: auto 1fr auto auto;
  align-items: end;
  padding-block: clamp(3rem, 8vh, 7rem) clamp(2.5rem, 6vh, 5rem);
}

.fo-home .fo-hero__title {
  align-self: center;
  max-width: none;
  margin: 0;
  color: var(--fo-ivory);
  font-size: clamp(4.6rem, 12.2vw, 12rem);
  font-weight: 850;
  letter-spacing: -0.075em;
  line-height: 0.78;
  white-space: nowrap;
}

.fo-home .fo-hero__statement {
  margin: 0 0 clamp(2.25rem, 5vh, 4.5rem);
  color: var(--fo-ivory);
  font-size: clamp(1.5rem, 3.6vw, 3.5rem);
  font-weight: 760;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.fo-home .fo-scroll-cue {
  position: relative;
  display: inline-flex;
  width: fit-content;
  min-height: 44px;
  align-items: center;
  gap: 0.75rem;
  color: var(--fo-teal-light);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-decoration: none;
}

.fo-home .fo-work {
  --fo-passy-violet: #7A3FE0;
  --fo-passy-purple: #32104D;
  --fo-passy-green: #79F044;
  position: relative;
  isolation: isolate;
  min-height: 145rem;
  overflow: clip;
  padding-block: clamp(7rem, 12vw, 12rem) clamp(8rem, 14vw, 14rem);
  background: linear-gradient(
    180deg,
    var(--fo-graphite) 0%,
    #121314 10%,
    #17131D 26%,
    #26133A 46%,
    var(--fo-passy-purple) 68%,
    #210A35 84%,
    #170A25 100%
  );
}

.fo-home .fo-work::before {
  position: absolute;
  z-index: -2;
  inset: 0 -20% 10%;
  background:
    radial-gradient(ellipse 68% 24% at 62% 4%, rgba(122, 63, 224, 0.16), transparent 72%),
    radial-gradient(circle at 66% 44%, rgba(122, 63, 224, 0.52), transparent 34%),
    radial-gradient(circle at 31% 62%, rgba(121, 240, 68, 0.06), transparent 22%),
    radial-gradient(circle at 48% 80%, rgba(84, 24, 132, 0.62), transparent 44%);
  content: "";
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.15) 6%, #000 22%, #000 100%);
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.15) 6%, #000 22%, #000 100%);
}

.fo-home .fo-work::after {
  position: absolute;
  z-index: -1;
  right: -20%;
  bottom: -5%;
  width: 78vw;
  max-width: 72rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(121, 240, 68, 0.22) 0%, rgba(121, 240, 68, 0.08) 38%, transparent 68%);
  content: "";
}

.fo-home .fo-work__intro {
  position: relative;
  z-index: 1;
  max-width: 70rem;
}

.fo-home .fo-work__intro h2 {
  margin: 1.5rem 0 0;
  color: var(--fo-ivory);
  font-size: clamp(4rem, 11vw, 10rem);
  font-weight: 850;
  letter-spacing: -0.07em;
  line-height: 0.82;
}

.fo-home .fo-work__descriptor {
  max-width: 32rem;
  margin: 2.25rem 0 0;
  color: var(--fo-ivory);
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  line-height: 1.35;
}

.fo-home .fo-work__meta {
  margin: 1.5rem 0 0;
  color: var(--fo-teal-light);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.fo-home .fo-work__world {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(18rem, 0.68fr) minmax(18rem, 0.55fr);
  align-items: end;
  justify-content: space-between;
  gap: clamp(4rem, 10vw, 10rem);
  margin-top: clamp(8rem, 14vw, 15rem);
}

.fo-home .fo-work__world::before {
  position: absolute;
  z-index: -1;
  inset: 8% -5% 18%;
  border-top: 1px solid rgba(241, 235, 221, 0.16);
  border-bottom: 1px solid rgba(121, 240, 68, 0.22);
  background-image:
    linear-gradient(rgba(122, 63, 224, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 63, 224, 0.08) 1px, transparent 1px);
  background-size: 4rem 4rem;
  content: "";
}

.fo-home .fo-work__art {
  width: min(100%, 32rem);
  margin: 0;
  justify-self: center;
  padding: clamp(0.5rem, 1vw, 0.85rem);
  border: 1px solid rgba(121, 240, 68, 0.34);
  background: rgba(9, 11, 10, 0.55);
  box-shadow:
    0 2rem 8rem rgba(25, 4, 49, 0.58),
    0 0 4rem rgba(121, 240, 68, 0.12);
}

.fo-home .fo-work__art img {
  display: block;
  width: 100%;
  height: auto;
}

.fo-home .fo-work__entry {
  align-self: end;
  padding-block: 3rem;
  border-block: 1px solid rgba(121, 240, 68, 0.35);
}

.fo-home .fo-world-link {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  gap: 1rem;
  color: var(--fo-ivory);
  font-size: clamp(1.65rem, 3.4vw, 3.2rem);
  font-weight: 820;
  letter-spacing: -0.035em;
  line-height: 1;
  text-decoration-color: var(--fo-passy-green);
  text-underline-offset: 0.28em;
}

.fo-home .fo-philosophy {
  position: relative;
  z-index: 2;
  padding-block: clamp(8rem, 13vw, 13rem);
  background: var(--fo-ivory);
  color: var(--fo-ink);
}

.fo-home .fo-philosophy .fo-label {
  color: var(--fo-teal);
}

.fo-home .fo-philosophy__heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.72fr);
  align-items: end;
  gap: clamp(3rem, 8vw, 8rem);
}

.fo-home .fo-philosophy__heading .fo-label {
  grid-column: 1 / -1;
}

.fo-home .fo-philosophy h2 {
  margin: 0;
  color: var(--fo-ink);
  font-size: clamp(4rem, 9vw, 9rem);
  font-weight: 850;
  letter-spacing: -0.07em;
  line-height: 0.8;
}

.fo-home .fo-philosophy__heading > p:last-child {
  max-width: 34rem;
  margin: 0;
  color: var(--fo-mineral-gray);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.45;
}

.fo-home .fo-principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: clamp(6rem, 10vw, 10rem) 0 0;
  padding: 0;
  border-top: 1px solid var(--fo-teal);
  list-style: none;
}

.fo-home .fo-principle {
  min-height: 17rem;
  padding: 2rem clamp(1.2rem, 2.5vw, 2.5rem) 0;
  border-right: 1px solid var(--fo-line-light);
}

.fo-home .fo-principle:last-child {
  border-right: 0;
}

.fo-home .fo-principle__label {
  margin: 0;
  color: var(--fo-teal);
  font-size: clamp(1.3rem, 2.4vw, 2.4rem);
  font-weight: 820;
  letter-spacing: -0.025em;
}

.fo-home .fo-principle > p:last-child {
  max-width: 20rem;
  margin: 4rem 0 0;
  color: var(--fo-ink);
  font-size: 1.08rem;
}

.fo-home .fo-about {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-block: clamp(8rem, 13vw, 13rem);
  background: var(--fo-graphite);
  color: var(--fo-ivory);
}

.fo-home .fo-about::before {
  position: absolute;
  z-index: -1;
  bottom: -24rem;
  left: -16rem;
  width: min(72vw, 60rem);
  aspect-ratio: 1;
  border: 1px solid rgba(121, 184, 174, 0.38);
  border-radius: 50%;
  content: "";
}

.fo-home .fo-about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(20rem, 0.75fr);
  align-items: end;
  gap: clamp(4rem, 10vw, 11rem);
}

.fo-home .fo-about h2 {
  margin: 1.5rem 0 0;
  font-size: clamp(4rem, 9vw, 9rem);
  font-weight: 850;
  letter-spacing: -0.07em;
  line-height: 0.8;
}

.fo-home .fo-about__copy > p:first-child {
  margin: 0;
  color: var(--fo-ivory-muted);
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  line-height: 1.5;
}

.fo-home .fo-about__point {
  margin: 4rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--fo-teal);
  color: var(--fo-teal-light);
  font-size: 0.82rem;
  font-weight: 820;
  letter-spacing: 0.16em;
}

.fo-home .fo-contact {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-block: clamp(8rem, 14vw, 14rem);
  background: var(--fo-deep);
  color: var(--fo-ivory);
}

.fo-home .fo-contact::before {
  position: absolute;
  z-index: -1;
  right: -22rem;
  bottom: -32rem;
  width: min(86vw, 72rem);
  aspect-ratio: 1;
  border: 1px solid rgba(121, 184, 174, 0.42);
  border-radius: 50%;
  content: "";
}

.fo-home .fo-contact::after {
  position: absolute;
  z-index: -1;
  right: 0;
  bottom: 32%;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--fo-teal), transparent);
  content: "";
}

.fo-home .fo-contact__content {
  position: relative;
}

.fo-home .fo-contact h2 {
  max-width: 12ch;
  margin: 1.5rem 0 0;
  font-size: clamp(4rem, 9vw, 9rem);
  font-weight: 850;
  letter-spacing: -0.07em;
  line-height: 0.8;
}

.fo-home .fo-contact__content > p:not(.fo-label) {
  max-width: 36rem;
  margin: 3rem 0 0;
  color: var(--fo-ivory-muted);
  font-size: 1.12rem;
}

.fo-home .fo-email {
  display: inline-flex;
  min-height: 56px;
  max-width: 100%;
  align-items: center;
  gap: 0.8rem;
  margin-top: 3rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--fo-teal);
  color: var(--fo-ivory);
  font-size: clamp(1.25rem, 3.6vw, 3.4rem);
  font-weight: 760;
  letter-spacing: -0.04em;
  line-height: 1.15;
  text-decoration: none;
}

.fo-home .fo-footer {
  padding-block: clamp(3rem, 6vw, 5rem);
  border-color: rgba(241, 235, 221, 0.16);
  background: var(--fo-graphite);
  color: var(--fo-ivory);
}

.fo-home .fo-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3rem;
}

.fo-home .fo-footer p {
  margin: 0.65rem 0 0;
  color: var(--fo-ivory-muted);
  font-size: 0.82rem;
}

.fo-home .fo-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem 1.25rem;
}

.fo-home .fo-footer__nav a {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--fo-ivory-muted);
  font-size: 0.75rem;
  font-weight: 760;
  letter-spacing: 0.1em;
  text-decoration: none;
}

.fo-home .fo-footer__nav a:hover,
.fo-home .fo-footer__nav a:focus-visible {
  color: var(--fo-ivory);
}

@keyframes fo-portal-drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(-1.2rem, 0.8rem, 0);
  }
}

@keyframes fo-horizon-breathe {
  0%,
  100% {
    opacity: 0.64;
    transform: scaleX(0.96);
  }
  50% {
    opacity: 1;
    transform: scaleX(1);
  }
}

.fo-home .fo-hero::before {
  animation: fo-portal-drift 22s ease-in-out infinite;
}

.fo-home .fo-hero::after {
  animation: fo-horizon-breathe 14s ease-in-out infinite;
}

.fo-home .fo-nav a::after,
.fo-home .fo-scroll-cue::after,
.fo-home .fo-footer__nav a::after {
  position: absolute;
  right: 0;
  bottom: 0.2rem;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.fo-home .fo-nav a:hover::after,
.fo-home .fo-nav a:focus-visible::after,
.fo-home .fo-scroll-cue:hover::after,
.fo-home .fo-scroll-cue:focus-visible::after,
.fo-home .fo-footer__nav a:hover::after,
.fo-home .fo-footer__nav a:focus-visible::after {
  transform: scaleX(1);
}

@media (max-width: 960px) {
  .fo-home .fo-work {
    min-height: auto;
  }

  .fo-home .fo-work__world {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .fo-home .fo-work__art {
    order: 1;
    width: min(100%, 28rem);
  }

  .fo-home .fo-work__entry {
    order: 2;
  }

  .fo-home .fo-philosophy__heading {
    grid-template-columns: 1fr;
  }

  .fo-home .fo-principles {
    grid-template-columns: 1fr;
  }

  .fo-home .fo-principle {
    min-height: 0;
    padding: 2rem 0 3.5rem;
    border-right: 0;
    border-bottom: 1px solid var(--fo-line-light);
  }

  .fo-home .fo-principle > p:last-child {
    margin-top: 2rem;
  }

  .fo-home .fo-about__grid {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .fo-home .fo-about__heading,
  .fo-home .fo-about__copy {
    min-width: 0;
  }

  .fo-home .fo-about__copy {
    max-width: 40rem;
  }
}

@media (max-width: 900px) {
  .fo-home .fo-hero__title {
    max-width: 8ch;
    font-size: clamp(5rem, 15.25vw, 8.25rem);
    line-height: 0.8;
    white-space: normal;
  }

  .fo-home .fo-menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .fo-home .fo-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    padding: 0 1rem 1rem;
    background: rgba(17, 20, 18, 0.98);
  }

  .fo-home .fo-nav ul {
    display: grid;
    gap: 0;
    padding: 0.75rem;
    border: 1px solid rgba(121, 184, 174, 0.3);
    border-radius: 0;
    background: var(--fo-graphite);
  }

  .fo-home .fo-nav a {
    width: 100%;
    min-height: 48px;
    padding-inline: 0.75rem;
  }

  .js .fo-home .fo-nav {
    display: none;
  }

  .js .fo-home .fo-nav.is-open {
    display: block;
  }

  .fo-home .fo-nav__world {
    margin-top: 0.4rem;
  }
}

@media (min-width: 961px) {
  .fo-home .fo-about__point {
    position: relative;
    left: clamp(1.75rem, 3vw, 3rem);
    width: calc(100% - clamp(1.75rem, 3vw, 3rem));
    transform: translateY(clamp(3.5rem, 4.5vw, 4.5rem));
  }
}

@media (max-width: 760px) {
  .fo-home .fo-shell {
    width: min(calc(100% - 2rem), var(--fo-shell));
  }

  .fo-home .fo-hero {
    min-height: auto;
    background-size: 4rem 4rem;
  }

  .fo-home .fo-hero__content {
    min-height: 42rem;
    padding-block: 3.5rem 2.5rem;
  }

  .fo-home .fo-hero__title {
    font-size: clamp(3.7rem, 19vw, 7.5rem);
    line-height: 0.82;
    white-space: normal;
  }

  .fo-home .fo-hero__statement {
    font-size: clamp(1.45rem, 8vw, 2.4rem);
  }

  .fo-home .fo-work {
    padding-block: 6.5rem 7rem;
  }

  .fo-home .fo-work__world {
    margin-top: 6rem;
  }

  .fo-home .fo-philosophy,
  .fo-home .fo-about,
  .fo-home .fo-contact {
    padding-block: 7rem;
  }

  .fo-home .fo-philosophy h2,
  .fo-home .fo-about h2,
  .fo-home .fo-contact h2 {
    font-size: clamp(3.5rem, 17vw, 6.5rem);
  }

  .fo-home .fo-footer__grid {
    grid-template-columns: 1fr;
  }

  .fo-home .fo-footer__nav {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .fo-home .fo-hero {
    background-image: none;
  }

  .fo-home .fo-hero::before,
  .fo-home .fo-about::before,
  .fo-home .fo-contact::before {
    width: 80vw;
  }

  .fo-home .fo-about::before {
    bottom: -42vw;
    left: -34vw;
  }

  .fo-home .fo-contact::before {
    right: -30vw;
    bottom: -48vw;
  }

  .fo-home .fo-work__world::before {
    background-image: none;
  }

  .fo-home .fo-world-link {
    font-size: clamp(1.45rem, 8vw, 2rem);
  }

  .fo-home .fo-footer__nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 360px) {
  .fo-home .fo-shell {
    width: min(calc(100% - 1.5rem), var(--fo-shell));
  }

  .fo-home .fo-wordmark {
    font-size: 0.7rem;
    letter-spacing: 0.11em;
  }

  .fo-home .fo-hero__title {
    font-size: clamp(3.25rem, 18.5vw, 4.2rem);
  }

  .fo-home .fo-email {
    display: inline-block;
    min-height: 44px;
    font-size: 1.22rem;
    overflow-wrap: anywhere;
  }

  .fo-home .fo-footer__nav {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fo-home .fo-hero::before,
  .fo-home .fo-hero::after {
    animation: none;
    transform: none;
  }

  .fo-home .fo-nav a::after,
  .fo-home .fo-scroll-cue::after,
  .fo-home .fo-footer__nav a::after {
    transition: none;
  }

  .js .fo-home .reveal {
    opacity: 1;
    transform: none;
  }
}
