@font-face {
  font-family: "Ceraph";
  src: url("assets/fonts/Ceraph-Roman.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Ceraph";
  src: url("assets/fonts/Ceraph-Italic.otf") format("opentype");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  --brown: #2D180A;
  --blue: #A4BFEA;
  --ink: #2D180A;
  --font: "Ceraph", Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { width: 100%; min-height: 100%; margin: 0; }
body { background: var(--brown); }

.topbar {
  position: fixed;
  top: 14px;
  left: 2%;
  right: 2%;
  height: 64px;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(45, 24, 10, 0.2);
  border-radius: 14px;
  background: var(--blue);
}
.logo-link {
  position: relative;
  justify-self: start;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 108px;
  height: 100%;
  padding: 0 3px;
}
.logo {
  position: absolute;
  display: block;
  height: auto;
  object-fit: contain;
  transition: opacity 220ms ease, transform 220ms ease;
}
.logo-wordmark {
  width: 96px;
  max-height: 58px;
  opacity: 1;
  transform: scale(1);
}
.logo-mark {
  width: 58px;
  max-height: 54px;
  opacity: 0;
  transform: scale(.88);
}
.topbar.is-scrolled .logo-wordmark {
  opacity: 0;
  transform: scale(.88);
  pointer-events: none;
}
.topbar.is-scrolled .logo-mark {
  opacity: 1;
  transform: scale(1);
}
.nav-links {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vw, 42px);
}
.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  white-space: nowrap;
  transition: opacity 180ms ease;
}
.nav-links a:hover { opacity: .58; }

.intro {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: var(--brown);
  padding: 100px 4vw 40px;
}
.hero-title {
  margin: 0;
  color: var(--blue);
  font-family: var(--font);
  font-weight: 400;
  font-size: clamp(54px, 9.2vw, 142px);
  line-height: .88;
  letter-spacing: -.045em;
  text-transform: uppercase;
  overflow: hidden;
}
.hero-line {
  display: block;
  width: fit-content;
  opacity: 0;
  transform: translateY(115%);
  clip-path: inset(0 0 0 0);
  animation: heroLineReveal 1.05s cubic-bezier(.22, .75, .25, 1) forwards;
  will-change: transform, opacity;
}
.hero-line-one { animation-delay: .18s; }
.hero-line-two { animation-delay: .62s; }
@keyframes heroLineReveal {
  0% { opacity: 0; transform: translateY(115%); }
  100% { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-line {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
.everything-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  /* Keep the mountain as a complete, full-screen image. */
  margin-top: -12vh;
  background-color: #e9e9e7;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  /* Compensate for the overlap to keep the headline at its original position. */
  padding: 50vh 4vw 40px;
}
.everything-section::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: url("assets/everything-out-there.png");
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(calc(1 + var(--mountain-zoom, 0) * .34));
  filter: blur(calc(var(--mountain-blur, 0) * 15px));
  will-change: transform, filter;
}
.everything-section::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0 0 auto;
  height: 34vh;
  pointer-events: none;
  /* Brown fades into the actual image; backdrop blur softens the join further. */
  background: linear-gradient(to bottom,
    #2D180A 0%,
    rgba(45, 24, 10, .96) 12%,
    rgba(45, 24, 10, .76) 30%,
    rgba(45, 24, 10, .38) 56%,
    rgba(45, 24, 10, .12) 78%,
    transparent 100%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 1;
  will-change: opacity;
}
.everything-section {
  --about-blend: 0;
}
.everything-section::before {
  background: linear-gradient(to bottom,
    #2D180A 0%,
    rgba(45, 24, 10, .96) 12%,
    rgba(45, 24, 10, .76) 30%,
    rgba(45, 24, 10, .38) 56%,
    rgba(45, 24, 10, .12) 78%,
    transparent 100%),
    linear-gradient(to bottom, transparent 48%, rgba(18, 48, 105, calc(var(--about-blend, 0) * .22)) 100%);
}
.about-section {
  position: fixed;
  isolation: isolate;
  inset: 0;
  z-index: 80;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 4vw 50px;
  background: #12336f;
  color: #f28a3b;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 1.15s ease, visibility 1.15s ease;
}
.about-section::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: #12336f;
  pointer-events: none;
}
body.is-about-active .about-section {
  opacity: 1;
  visibility: visible;
}
body.is-about-entering .everything-section::after,
body.is-about-active .everything-section::after {
  transform: scale(2.7);
  filter: blur(12px);
  transition: transform 1.35s cubic-bezier(.7, 0, .2, 1), filter 1.15s ease;
}
body.is-about-entering .everything-title,
body.is-about-active .everything-title {
  opacity: 0;
  filter: blur(10px);
  transform: scale(1.08);
  transition: opacity .45s ease, filter .8s ease, transform .9s ease;
}
.everything-title {
  transition: opacity .4s ease, filter .4s ease, transform .4s ease;
}
body.is-about-active { overflow: hidden; }

.about-title {
  margin: 0;
  color: #f28a3b;
  font-family: var(--font);
  font-weight: 400;
  font-size: clamp(58px, 7vw, 112px);
  line-height: .95;
  letter-spacing: -.025em;
  opacity: 0;
  filter: blur(14px);
  transform: translateY(28px) scale(.96);
  transition: opacity 1.1s ease .35s, filter 1.1s ease .35s, transform 1.1s cubic-bezier(.2,.7,.2,1) .35s;
  will-change: opacity, filter, transform;
}
body.is-about-active .about-title {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0) scale(1);
}

.everything-title {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #2D180A;
  font-family: var(--font);
  font-size: clamp(34px, 4.4vw, 68px);
  line-height: 1;
  font-weight: 400;
  letter-spacing: .015em;
  text-align: center;
}

@media (max-width: 600px) {
  .topbar {
    top: 10px;
    left: 3%;
    right: 3%;
    height: 54px;
    grid-template-columns: auto 1fr;
    padding: 0 8px;
  }
  .logo-link { width: 78px; }
  .logo-wordmark { width: 70px; max-height: 45px; }
  .logo-mark { width: 46px; max-height: 42px; }
  .nav-links {
    grid-column: 2;
    justify-content: flex-end;
    gap: clamp(8px, 2.5vw, 15px);
  }
  .nav-links a { font-size: clamp(10px, 2.7vw, 13px); }
  .intro { padding: 90px 4vw 30px; }
  .everything-section { min-height: 100svh; margin-top: -12vh; padding-top: 50vh; }
  .about-section { min-height: 100svh; padding: 90px 4vw 35px; }
  body.is-about-entering .everything-section::after,
body.is-about-active .everything-section::after {
  transform: scale(2.7);
  filter: blur(12px);
  transition: transform 1.35s cubic-bezier(.7, 0, .2, 1), filter 1.15s ease;
}
body.is-about-entering .everything-title,
body.is-about-active .everything-title {
  opacity: 0;
  filter: blur(10px);
  transform: scale(1.08);
  transition: opacity .45s ease, filter .8s ease, transform .9s ease;
}
.everything-title {
  transition: opacity .4s ease, filter .4s ease, transform .4s ease;
}
body.is-about-active { overflow: hidden; }

.about-title { font-size: clamp(42px, 10vw, 66px); }
  .everything-title { font-size: clamp(27px, 7vw, 42px); letter-spacing: .005em; }
  .hero-title {
    font-size: clamp(42px, 10.2vw, 68px);
    line-height: .92;
    letter-spacing: -.04em;
  }
}


/* Second interior scene: the company overview revealed after ABOUT US. */
.about-copy-section {
  position: fixed;
  inset: 0;
  z-index: 81;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 4vh, 42px);
  padding: clamp(100px, 15vh, 170px) 8vw 70px;
  background: #12336f;
  color: #f7f3ef;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 1s ease, visibility 1s ease;
}
.about-copy {
  width: min(100%, 1250px);
  margin: 0;
  font-family: var(--font);
  font-size: clamp(25px, 2.55vw, 43px);
  font-weight: 400;
  line-height: 1.42;
  letter-spacing: -.015em;
  text-align: left;
  opacity: 0;
  filter: blur(14px);
  transform: translateY(24px);
  transition: opacity 1.15s ease .2s, filter 1.15s ease .2s, transform 1.15s cubic-bezier(.2,.7,.2,1) .2s;
}
body.is-about-copy-active .about-section {
  opacity: 0;
  visibility: hidden;
}
body.is-about-copy-active .about-copy-section {
  opacity: 1;
  visibility: visible;
}
body.is-about-copy-active .about-copy {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}
.services-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  width: min(100%, 360px);
  min-height: 62px;
  padding: 0 24px;
  border: 0;
  border-radius: 2px;
  background: #f28a3b;
  color: #2D180A;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .075em;
  text-align: left;
  cursor: pointer;
  opacity: 0;
  filter: blur(10px);
  transform: translateY(14px);
  transition: opacity .8s ease .45s, filter .8s ease .45s, transform .8s ease .45s, background .2s ease;
}
.services-cta span { font-size: 22px; line-height: 1; }
.services-cta:hover { background: #ffa05a; }
.services-cta:focus-visible { outline: 2px solid #f7f3ef; outline-offset: 4px; }
body.is-about-copy-active .services-cta {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}
@media (max-width: 600px) {
  .about-copy-section { padding: 100px 7vw 55px; gap: 26px; }
  .about-copy { font-size: clamp(22px, 5.1vw, 30px); line-height: 1.45; }
  .services-cta { width: 100%; min-height: 58px; font-size: 12px; }
}

/* Lock the mountain to the viewport only at the final-edge entry transition. */
body.is-mountain-locked .everything-section {
  position: fixed;
  inset: 0;
  z-index: 79;
  width: 100vw;
  height: 100vh;
  height: 100svh;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  padding: 50vh 4vw 40px;
}
body.is-mountain-locked .everything-section::after {
  background-size: 100% 100%;
}


/* Page 5: OUR SERVICES is a normal scroll section. It softly resolves from
   blur as it enters the viewport; it is not fixed and does not hijack scrolling. */
.services-section {
  scroll-margin-top: 88px;
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 4vw 50px;
  overflow: hidden;
  background: #2D180A;
  opacity: 1;
  filter: none;
  transform: none;
}
.services-section::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 30vh;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(18, 51, 111, .34), rgba(45, 24, 10, 0));
  filter: blur(18px);
}
.services-section.is-visible {
  opacity: 1;
  filter: none;
  transform: none;
}
.services-title {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #f28a3b;
  font-family: var(--font);
  font-weight: 400;
  font-size: clamp(58px, 7vw, 112px);
  line-height: .95;
  letter-spacing: -.025em;
  opacity: 1;
  filter: blur(0);
  transform: none;
}
@media (max-width: 600px) {
  .services-section { padding: 100px 4vw 40px; }
  .services-title { font-size: clamp(42px, 10vw, 66px); }
}


/* Keep the CTA interactive even though its full-screen scene ignores pointer events. */
.about-copy-section .services-cta {
  position: relative;
  z-index: 2;
  pointer-events: auto;
  cursor: pointer;
}
