/* ==========================================================================
   GAIN ACCRE — Design Tokens
   ========================================================================== */

:root{
  --forest:       #0B3D2E;
  --forest-deep:  #06231A;
  --forest-mid:   #103B2C;
  --gold:         #B98F3D;
  --gold-light:   #D9B872;
  --gold-pale:    #EADFC2;
  --stone:        #F1EFE7;
  --stone-dim:    #E6E2D3;
  --ink:          #1C1B17;
  --ink-soft:     #55534A;
  --white:        #FFFFFF;

  --display: "Fraunces", "Iowan Old Style", serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1280px;
  --gutter: clamp(24px, 5vw, 80px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: auto; }

body{
  margin: 0;
  font-family: var(--body);
  background: var(--stone);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img{ max-width: 100%; display: block; }

a{ color: inherit; text-decoration: none; }

.section-bg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.section-tint{
  position: absolute;
  inset: 0;
  z-index: 1;
}

.tint-forest{ background: linear-gradient(180deg, rgba(6,35,26,0.88), rgba(6,35,26,0.94)); mix-blend-mode: normal; }
.tint-forest-light{ background: linear-gradient(180deg, rgba(11,61,46,0.82), rgba(11,61,46,0.9)); }
.tint-ink{ background: linear-gradient(120deg, rgba(28,27,23,0.9), rgba(28,27,23,0.78)); }
.tint-forest-process{ background: linear-gradient(180deg, rgba(6,35,26,0.42), rgba(6,35,26,0.55)); mix-blend-mode: normal; }

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  position: relative;
  z-index: 2;
}

h1, h2, h3, h4{
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.08;
  margin: 0;
  color: var(--ink);
}

p{ margin: 0; }

.eyebrow{
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold);
}

/* Focus visibility */
a:focus-visible, button:focus-visible{
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   Nav
   ========================================================================== */

.nav{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  background: transparent;
  transition: background 0.4s var(--ease-out), padding 0.4s var(--ease-out), box-shadow .4s var(--ease-out);
}

.nav.is-scrolled{
  background: rgba(6, 35, 26, 0.92);
  backdrop-filter: blur(10px);
  padding-top: 12px;
  padding-bottom: 12px;
  box-shadow: 0 1px 0 rgba(185,143,61,0.18);
}

.nav__brand{
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}

.nav.is-scrolled .nav__brand{ opacity: 1; }

.nav__brand img{
  height: 40px;
  width: auto;
}

.nav__brand-text{
  font-family: var(--display);
  font-size: 17px;
  letter-spacing: 0.01em;
  color: var(--white);
  line-height: 1.15;
}

.nav__brand-text span{
  display: block;
  font-family: var(--body);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.09em;
  color: var(--gold-light);
  margin-top: 2px;
}

.nav__links{
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav__links a{
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.82);
  position: relative;
  padding-bottom: 3px;
}

.nav__links a::after{
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transition: right 0.35s var(--ease-out);
}

.nav__links a:hover::after,
.nav__links a:focus-visible::after{ right: 0; }

.nav__phone{
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gold-light);
  white-space: nowrap;
}

.nav__toggle{
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 24px;
  cursor: pointer;
  position: relative;
  z-index: 101;
}

@media (max-width: 860px){
  .nav__links{
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--forest-deep);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 28px;
    padding: 40px var(--gutter);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-out);
  }
  .nav__links.is-open{ transform: translateX(0); }
  .nav__phone{ display: none; }
  .nav__toggle{ display: block; }
  .nav__links a{ font-size: 18px; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero{
  position: relative;
  height: 100svh;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--forest-deep);
  perspective: 1200px;
  perspective-origin: 50% 40%;
}

.hero__video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__scrim{
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6,20,15,0.32) 0%, rgba(6,20,15,0.02) 30%, rgba(6,20,15,0.1) 60%, rgba(4,14,10,0.62) 100%),
    linear-gradient(90deg, rgba(4,14,10,0.38) 0%, rgba(4,14,10,0.0) 42%);
}

.hero__scroll-darken{
  position: absolute;
  inset: 0;
  background: #04120d;
  opacity: 0;
}

.hero__content{
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero__logo{
  height: 76px;
  width: auto;
  margin-bottom: 28px;
  filter: drop-shadow(0 2px 14px rgba(0,0,0,0.45));
}

.hero__headline{
  font-size: clamp(34px, 5.4vw, 74px);
  color: var(--white);
  max-width: 15ch;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.hero__headline .line{
  display: block;
  overflow: hidden;
}

.hero__headline .line span{
  display: block;
  transform: translateY(110%);
}

.hero__sub{
  margin-top: 26px;
  font-size: clamp(15px, 1.6vw, 18px);
  color: rgba(255,255,255,0.82);
  max-width: 46ch;
  line-height: 1.6;
  text-shadow: 0 1px 12px rgba(0,0,0,0.4);
}

.hero__ctas{
  margin-top: 40px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  font-size: 14.5px;
  font-weight: 600;
  border-radius: 2px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.3s var(--ease-out), color 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}

.btn--gold{
  background: var(--gold);
  color: var(--forest-deep);
}
.btn--gold:hover{ background: var(--gold-light); }

.btn--ghost{
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn--ghost:hover{ border-color: var(--gold-light); color: var(--gold-light); }

.hero__scroll-cue{
  position: absolute;
  bottom: 34px;
  left: var(--gutter);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.65);
  font-size: 12px;
  letter-spacing: 0.05em;
}

.hero__scroll-cue .stem{
  width: 1px;
  height: 34px;
  background: rgba(255,255,255,0.4);
  position: relative;
  overflow: hidden;
}
.hero__scroll-cue .stem::after{
  content:"";
  position: absolute;
  top: -100%; left: 0;
  width: 100%; height: 100%;
  background: var(--gold-light);
  animation: cueDrop 2.2s var(--ease-out) infinite;
}
@keyframes cueDrop{
  0%{ top: -100%; }
  60%{ top: 100%; }
  100%{ top: 100%; }
}

/* ==========================================================================
   Section shells
   ========================================================================== */

section{ position: relative; }

.section-pad{ padding: clamp(90px, 12vw, 160px) 0; }

.section-head{
  max-width: 720px;
  margin-bottom: clamp(50px, 6vw, 90px);
}

.section-head .eyebrow{ margin-bottom: 16px; display: block; }

.section-head h2{
  font-size: clamp(30px, 4vw, 48px);
}

.section-head p{
  margin-top: 20px;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 62ch;
}

.dark-section{
  background: var(--forest-deep);
  color: var(--white);
}
.dark-section .section-head h2{ color: var(--white); }
.dark-section .section-head p{ color: rgba(255,255,255,0.72); }

/* ==========================================================================
   Intro / About
   ========================================================================== */

.intro{
  background: var(--forest);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.blueprint-lines{ z-index: 2; }

.intro__grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.intro__lead{
  font-family: var(--display);
  font-size: clamp(24px, 3.4vw, 40px);
  line-height: 1.35;
  max-width: 20ch;
  font-weight: 400;
}

.intro__lead .reveal-word{
  color: rgba(255,255,255,0.28);
  transition: color 0.05s linear;
}
.intro__lead .reveal-word.is-lit{ color: var(--white); }

.intro__aside{
  max-width: 46ch;
  align-self: end;
}

.intro__aside p{
  font-size: 15.5px;
  line-height: 1.75;
  color: rgba(255,255,255,0.7);
}

.intro__aside p + p{ margin-top: 16px; }

.blueprint-lines{
  position: absolute;
  inset: 0;
  opacity: 0.16;
  pointer-events: none;
}

@media (min-width: 900px){
  .intro__grid{ grid-template-columns: 1.3fr 1fr; align-items: center; }
}

/* ==========================================================================
   Services (editorial index)
   ========================================================================== */

.services{ background: var(--stone); }

.services__banner{
  width: 100%;
  height: clamp(220px, 32vw, 420px);
  overflow: hidden;
  margin-bottom: clamp(40px, 6vw, 70px);
  filter: grayscale(15%) contrast(1.05);
}

.services__banner img,
.services__banner video{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.services__list{
  border-top: 1px solid var(--stone-dim);
}

.service-row{
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  padding: 40px 0;
  border-bottom: 1px solid var(--stone-dim);
  align-items: start;
}

.service-row__index{
  font-family: var(--display);
  font-size: 20px;
  color: var(--gold);
  padding-top: 4px;
}

.service-row__body h3{
  font-size: clamp(21px, 2.4vw, 27px);
  font-weight: 500;
  margin-bottom: 12px;
}

.service-row__body p{
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 62ch;
}

@media (min-width: 760px){
  .service-row{ grid-template-columns: 140px 1fr; padding: 52px 0; }
}

/* ==========================================================================
   Process (pinned horizontal timeline)
   ========================================================================== */

.process{
  background: var(--forest-deep);
  color: var(--white);
  overflow: hidden;
}

.process__pin{
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.process__head{
  padding: 0 var(--gutter);
  margin-bottom: clamp(40px, 6vw, 70px);
}

.process__track-wrap{
  overflow: hidden;
}

.process__track{
  display: flex;
  gap: clamp(60px, 10vw, 140px);
  padding: 0 var(--gutter);
  will-change: transform;
}

.process__stage{
  flex: 0 0 auto;
  width: min(72vw, 360px);
  position: relative;
  padding-top: 34px;
}

.process__stage::before{
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(185,143,61,0.2);
}

.process__stage-num{
  font-family: var(--display);
  font-size: 14px;
  color: var(--gold-light);
  letter-spacing: 0.04em;
}

.process__stage h3{
  color: var(--white);
  font-size: clamp(24px, 2.8vw, 32px);
  margin: 14px 0 12px;
}

.process__stage p{
  font-size: 14.5px;
  line-height: 1.65;
  color: rgba(255,255,255,0.65);
}

.process__line{
  position: absolute;
  top: 5px;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), rgba(185,143,61,0.15));
  z-index: -1;
}

/* ==========================================================================
   Forensics
   ========================================================================== */

.forensics{
  background: var(--ink);
  color: var(--white);
}

.forensics__grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: center;
}

.forensics__copy .eyebrow{ color: var(--gold-light); }
.forensics__copy h2{ color: var(--white); font-size: clamp(30px, 4vw, 46px); margin: 16px 0 22px; }
.forensics__copy p{ color: rgba(255,255,255,0.7); font-size: 16px; line-height: 1.75; max-width: 56ch; }

.forensics__art{ width: 100%; }
.forensics__art svg{ width: 100%; height: auto; }

.forensics__photo{
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  margin-bottom: 24px;
  filter: grayscale(20%) contrast(1.05) brightness(0.92);
}

@media (min-width: 900px){
  .forensics__grid{ grid-template-columns: 1fr 0.85fr; }
}

/* ==========================================================================
   Design Review
   ========================================================================== */

.design-review{ background: var(--stone); }

.design-review__grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: center;
}

.design-review__art svg{ width: 100%; height: auto; }

.design-review__photo{
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  margin-bottom: 24px;
}

@media (min-width: 900px){
  .design-review__grid{ grid-template-columns: 0.9fr 1fr; }
  .design-review__art{ order: 2; }
  .design-review__copy{ order: 1; }
}

/* ==========================================================================
   Trust
   ========================================================================== */

.trust{
  background: var(--forest);
  color: var(--white);
  text-align: center;
  overflow: hidden;
}

.trust__tagline{
  color: var(--white);
  font-size: clamp(28px, 5vw, 52px);
  max-width: 16ch;
  margin: 0 auto;
  line-height: 1.25;
}

.trust__sub{
  margin: 26px auto 0;
  max-width: 54ch;
  color: rgba(255,255,255,0.68);
  font-size: 15.5px;
  line-height: 1.7;
}

.trust__mark{
  margin: 0 auto 30px;
  height: 44px;
  opacity: 0.9;
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact{
  background: var(--forest-deep);
  color: var(--white);
  overflow: hidden;
}

.contact__grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
}

.contact__lead h2{
  color: var(--white);
  font-size: clamp(30px, 4vw, 46px);
  max-width: 14ch;
}

.contact__lead p{
  margin-top: 18px;
  color: rgba(255,255,255,0.68);
  max-width: 44ch;
  line-height: 1.7;
  font-size: 15.5px;
}

.contact__ctas{
  margin-top: 30px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.contact__details{
  display: flex;
  flex-direction: column;
  gap: 22px;
  border-top: 1px solid rgba(255,255,255,0.14);
  padding-top: 30px;
}

.contact__detail-label{
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--gold-light);
  margin-bottom: 6px;
}

.contact__detail-value{
  font-size: 16px;
  color: var(--white);
  line-height: 1.6;
}

.contact__subsidiary{
  margin-top: 8px;
  font-size: 13.5px;
  color: rgba(255,255,255,0.5);
}

@media (min-width: 900px){
  .contact__grid{ grid-template-columns: 1.1fr 1fr; }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer{
  background: var(--forest-deep);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 30px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.footer__brand{
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer__brand img{ height: 26px; }

.footer__brand span{
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}

.footer__copy{
  font-size: 12.5px;
  color: rgba(255,255,255,0.42);
}

/* ==========================================================================
   Reveal utility (used by GSAP)
   ========================================================================== */

.reveal{
  opacity: 0;
  transform: translateY(28px);
}
