/* ==========================================================================
   OAKSTONE CONSTRUCTION GROUP — DESIGN SYSTEM
   Palette: White / Charcoal / Stone / Matte Black / Concrete / Oak / Forest
   Type: Fraunces (display) + Inter (body) + Space Grotesk (utility/data)
   Signature element: The Elevation Line — a surveyor's leveling ruler fixed
   to the left edge, ticking off scroll position. Precision made visible.
   ========================================================================== */

:root{
  --white:      #FFFFFF;
  --charcoal:   #1C1B19;
  --stone:      #A9A296;
  --matte:      #0B0B0A;
  --concrete:   #DCD5C8;
  --concrete-2: #EDE9E1;
  --oak:        #8B5A34;
  --forest:     #214133;
  --forest-2:   #2C5744;
  --forest-tint:#E7EEEA;

  --font-display: 'Fraunces', 'Iowan Old Style', serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-utility: 'Space Grotesk', 'Inter', sans-serif;

  --container: 1320px;
  --gutter: clamp(24px, 5vw, 80px);
  --radius: 2px;
  --ease: cubic-bezier(.16,.84,.44,1);
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{ animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; scroll-behavior:auto !important; }
}

body{
  margin:0;
  background:var(--white);
  color:var(--charcoal);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; cursor:pointer; }
::selection{ background:var(--forest); color:var(--white); }

h1,h2,h3,h4{
  font-family:var(--font-display);
  font-weight:500;
  line-height:1.05;
  letter-spacing:-0.01em;
  margin:0;
  color:var(--matte);
}

.container{
  max-width:var(--container);
  margin:0 auto;
  padding:0 var(--gutter);
}

.eyebrow{
  font-family:var(--font-utility);
  font-size:12px;
  letter-spacing:0.18em;
  text-transform:uppercase;
  color:var(--forest);
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:20px;
}
.eyebrow::before{
  content:'';
  width:28px; height:1px;
  background:var(--oak);
}
.eyebrow.on-dark{ color:var(--concrete); }
.eyebrow.on-dark::before{ background:var(--oak); }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-family:var(--font-utility);
  font-size:13px;
  letter-spacing:0.08em;
  text-transform:uppercase;
  padding:16px 30px;
  border:1px solid transparent;
  border-radius:var(--radius);
  transition:all .35s var(--ease);
  white-space:nowrap;
}
.btn-primary{ background:var(--forest); color:var(--white); border-color:var(--forest); }
.btn-primary:hover{ background:var(--forest-2); transform:translateY(-2px); box-shadow:0 14px 28px -14px rgba(33,65,51,.55); }
.btn-ghost{ background:transparent; color:var(--white); border-color:rgba(255,255,255,.4); }
.btn-ghost:hover{ background:rgba(255,255,255,.1); border-color:#fff; }
.btn-dark{ background:var(--matte); color:var(--white); border-color:var(--matte); }
.btn-dark:hover{ background:var(--charcoal); transform:translateY(-2px); }
.btn-line{ background:transparent; color:var(--forest); border-color:var(--forest); }
.btn-line:hover{ background:var(--forest); color:var(--white); }
.btn svg{ width:14px; height:14px; transition:transform .35s var(--ease); }
.btn:hover svg{ transform:translateX(4px); }

/* ---------- Elevation Line (signature element) ---------- */
#elevation-line{
  position:fixed;
  left:0; top:0;
  width:46px;
  height:100vh;
  z-index:60;
  pointer-events:none;
  display:flex;
  align-items:center;
  mix-blend-mode:difference;
}
#elevation-line svg{ width:100%; height:70vh; }
#elevation-line .rail{ stroke:#fff; stroke-width:1; opacity:.55; }
#elevation-line .tick{ stroke:#fff; stroke-width:1; opacity:.55; }
#elevation-line .tick.major{ opacity:.9; }
#elevation-line text{
  fill:#fff; opacity:.75;
  font-family:var(--font-utility);
  font-size:9px; letter-spacing:.05em;
}
#elevation-line .marker{ fill:var(--oak); opacity:1; }
@media (max-width: 900px){ #elevation-line{ display:none; } }

/* ---------- Header ---------- */
header.site-header{
  position:fixed; top:0; left:0; right:0;
  z-index:50;
  padding:26px var(--gutter);
  display:flex; align-items:center; justify-content:space-between;
  transition:background .4s var(--ease), padding .4s var(--ease), border-color .4s var(--ease);
  border-bottom:1px solid transparent;
}
header.site-header.solid{
  background:rgba(11,11,10,.86);
  backdrop-filter:blur(14px) saturate(140%);
  -webkit-backdrop-filter:blur(14px) saturate(140%);
  padding:16px var(--gutter);
  border-bottom-color:rgba(255,255,255,.08);
}
.brand{ display:flex; align-items:center; gap:12px; }
.brand .mark{
  width:34px; height:34px;
  border:1px solid var(--oak);
  display:flex; align-items:center; justify-content:center;
  font-family:var(--font-display); font-size:15px; color:var(--white);
  transform:rotate(45deg);
}
.brand .mark span{ transform:rotate(-45deg); }
.brand .word{
  font-family:var(--font-utility);
  color:var(--white);
  font-size:15px;
  letter-spacing:.14em;
  text-transform:uppercase;
  line-height:1.15;
}
.brand .word small{ display:block; font-size:9px; letter-spacing:.2em; color:var(--stone); font-weight:400; }

nav.primary-nav{ display:flex; align-items:center; gap:40px; }
nav.primary-nav ul{ list-style:none; display:flex; gap:34px; margin:0; padding:0; }
nav.primary-nav a{
  font-family:var(--font-utility);
  font-size:12.5px; letter-spacing:.06em; text-transform:uppercase;
  color:rgba(255,255,255,.82);
  position:relative; padding-bottom:4px;
}
nav.primary-nav a::after{
  content:''; position:absolute; left:0; bottom:0; height:1px; width:0;
  background:var(--oak); transition:width .35s var(--ease);
}
nav.primary-nav a:hover::after, nav.primary-nav a.active::after{ width:100%; }
nav.primary-nav a.active{ color:#fff; }
.nav-cta{ display:flex; align-items:center; gap:22px; }
.menu-toggle{ display:none; background:none; border:0; }
@media (max-width: 1080px){
  nav.primary-nav ul{ display:none; }
  .menu-toggle{ display:flex; }
}

/* ---------- Hero ---------- */
.hero{
  position:relative;
  min-height:100vh;
  display:flex; align-items:flex-end;
  overflow:hidden;
  background:var(--matte);
}
.hero .hero-media{
  position:absolute; inset:0;
  background-size:cover; background-position:center;
  animation:kenburns 26s ease-in-out infinite alternate;
}
@keyframes kenburns{ from{ transform:scale(1);} to{ transform:scale(1.09);} }
.hero .hero-scrim{
  position:absolute; inset:0;
  background:
    linear-gradient(180deg, rgba(11,11,10,.55) 0%, rgba(11,11,10,.25) 32%, rgba(11,11,10,.75) 100%);
}
.hero-content{
  position:relative; z-index:2;
  width:100%;
  padding:0 var(--gutter) 90px;
  display:grid;
  grid-template-columns:1fr auto;
  gap:60px;
  align-items:end;
}
.hero-content h1{
  color:var(--white);
  font-size:clamp(46px, 6.6vw, 104px);
  font-weight:400;
  max-width:14ch;
}
.hero-content h1 em{ font-style:italic; color:var(--concrete); font-weight:300; }
.hero-sub{
  color:rgba(255,255,255,.78);
  font-size:18px; max-width:38ch; margin:26px 0 38px;
  font-weight:300;
}
.hero-cta{ display:flex; gap:16px; flex-wrap:wrap; }
.hero-meta{
  color:var(--concrete);
  font-family:var(--font-utility);
  font-size:12px; letter-spacing:.1em;
  text-align:right;
  display:flex; flex-direction:column; gap:10px;
  border-left:1px solid rgba(255,255,255,.25);
  padding-left:24px;
}
.hero-meta strong{ color:#fff; font-size:13px; }
.scroll-cue{
  position:absolute; left:var(--gutter); bottom:30px; z-index:2;
  display:flex; align-items:center; gap:12px;
  color:rgba(255,255,255,.7);
  font-family:var(--font-utility); font-size:11px; letter-spacing:.14em; text-transform:uppercase;
}
.scroll-cue .line{ width:1px; height:40px; background:rgba(255,255,255,.4); position:relative; overflow:hidden; }
.scroll-cue .line::after{ content:''; position:absolute; top:-40px; left:0; width:100%; height:40px; background:var(--oak); animation:scrollcue 2.6s ease-in-out infinite; }
@keyframes scrollcue{ 0%{ top:-40px;} 100%{ top:40px;} }

@media (max-width: 780px){
  .hero-content{ grid-template-columns:1fr; }
  .hero-meta{ display:none; }
}

/* ---------- Stats strip ---------- */
.stats-strip{
  background:var(--matte);
  color:var(--white);
  padding:56px var(--gutter);
}
.stats-grid{
  display:grid; grid-template-columns:repeat(4,1fr); gap:40px;
  max-width:var(--container); margin:0 auto;
}
.stat .num{
  font-family:var(--font-display); font-size:clamp(34px,4vw,56px);
  color:var(--white); display:flex; align-items:baseline; gap:4px;
}
.stat .num .suffix{ font-size:.5em; color:var(--oak); }
.stat .label{ font-family:var(--font-utility); font-size:11.5px; letter-spacing:.1em; text-transform:uppercase; color:var(--stone); margin-top:10px; }
@media (max-width: 780px){ .stats-grid{ grid-template-columns:repeat(2,1fr); row-gap:34px; } }

/* ---------- Sections generic ---------- */
section{ position:relative; }
.section-pad{ padding:120px 0; }
.section-pad-sm{ padding:80px 0; }
.bg-white{ background:var(--white); }
.bg-concrete{ background:var(--concrete-2); }
.bg-forest{ background:var(--forest); color:var(--white); }
.bg-matte{ background:var(--matte); color:var(--white); }
.bg-forest h2, .bg-matte h2{ color:var(--white); }

/* Manifesto / intro */
.manifesto{
  display:grid; grid-template-columns:0.9fr 1.1fr; gap:80px; align-items:start;
}
.manifesto h2{
  font-size:clamp(30px, 3.6vw, 50px);
  font-weight:400;
}
.manifesto .lede{ font-size:19px; line-height:1.65; color:var(--charcoal); font-weight:300; }
.manifesto .lede + .lede{ margin-top:18px; color:var(--stone); }
@media (max-width: 900px){ .manifesto{ grid-template-columns:1fr; gap:34px; } }

/* Section headers */
.section-head{ display:flex; justify-content:space-between; align-items:flex-end; gap:40px; margin-bottom:64px; }
.section-head h2{ font-size:clamp(30px,3.4vw,46px); max-width:14ch; }
.section-head p{ max-width:38ch; color:var(--stone); font-weight:300; font-size:16px; }
@media (max-width: 780px){ .section-head{ flex-direction:column; align-items:flex-start; gap:20px; } }

/* ---------- Services grid ---------- */
.services-grid{
  display:grid; grid-template-columns:repeat(3,1fr); gap:1px;
  background:var(--concrete);
  border:1px solid var(--concrete);
}
.service-card{
  background:var(--white);
  padding:44px 36px;
  min-height:280px;
  display:flex; flex-direction:column; justify-content:space-between;
  transition:background .4s var(--ease), color .4s var(--ease);
  position:relative; overflow:hidden;
}
.service-card .idx{ font-family:var(--font-utility); font-size:12px; color:var(--stone); }
.service-card h3{ font-size:24px; font-weight:500; margin:26px 0 12px; }
.service-card p{ color:var(--stone); font-size:14.5px; font-weight:300; margin:0; }
.service-card .go{
  font-family:var(--font-utility); font-size:11px; letter-spacing:.1em; text-transform:uppercase;
  display:flex; align-items:center; gap:8px; margin-top:22px; color:var(--forest);
  opacity:0; transform:translateY(6px); transition:all .4s var(--ease);
}
.service-card:hover{ background:var(--forest); }
.service-card:hover h3, .service-card:hover .go{ color:var(--white); }
.service-card:hover p{ color:rgba(255,255,255,.75); }
.service-card:hover .idx{ color:var(--oak); }
.service-card:hover .go{ opacity:1; transform:translateY(0); }
@media (max-width: 900px){ .services-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width: 600px){ .services-grid{ grid-template-columns:1fr; } }

/* ---------- Projects grid ---------- */
.projects-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:28px; }
.project-card{ position:relative; overflow:hidden; aspect-ratio:4/5; }
.project-card.wide{ grid-column:span 2; aspect-ratio:8/5; }
.project-card img{ width:100%; height:100%; object-fit:cover; transition:transform 1.1s var(--ease); }
.project-card:hover img{ transform:scale(1.08); }
.project-card .scrim{ position:absolute; inset:0; background:linear-gradient(0deg, rgba(11,11,10,.85) 0%, rgba(11,11,10,0) 55%); }
.project-card .info{ position:absolute; left:0; right:0; bottom:0; padding:28px; color:#fff; }
.project-card .tag{ font-family:var(--font-utility); font-size:10.5px; letter-spacing:.12em; text-transform:uppercase; color:var(--oak); margin-bottom:8px; display:block; }
.project-card h3{ color:#fff; font-size:22px; font-weight:500; }
@media (max-width: 900px){ .projects-grid{ grid-template-columns:1fr 1fr; } .project-card.wide{ grid-column:span 2; } }
@media (max-width: 600px){ .projects-grid{ grid-template-columns:1fr; } .project-card.wide{ grid-column:span 1; } }

/* ---------- Why choose / feature rows ---------- */
.feature-row{
  display:grid; grid-template-columns:60px 1fr 1fr; gap:40px;
  padding:44px 0; border-top:1px solid var(--concrete);
  align-items:center;
}
.feature-row:last-child{ border-bottom:1px solid var(--concrete); }
.feature-row .fnum{ font-family:var(--font-display); font-size:22px; color:var(--oak); }
.feature-row h3{ font-size:26px; font-weight:500; }
.feature-row p{ color:var(--stone); font-weight:300; font-size:15.5px; max-width:46ch; }
@media (max-width: 780px){ .feature-row{ grid-template-columns:1fr; gap:12px; } }

/* ---------- Process timeline ---------- */
.timeline{ position:relative; }
.timeline .track{ position:absolute; left:20px; top:10px; bottom:10px; width:1px; background:var(--concrete); }
.timeline-item{ position:relative; padding-left:70px; padding-bottom:64px; }
.timeline-item:last-child{ padding-bottom:0; }
.timeline-item .dot{
  position:absolute; left:0; top:2px; width:41px; height:41px;
  border-radius:50%; border:1px solid var(--oak);
  display:flex; align-items:center; justify-content:center;
  font-family:var(--font-utility); font-size:13px; color:var(--forest);
  background:var(--white);
}
.timeline-item h3{ font-size:24px; font-weight:500; margin-bottom:10px; }
.timeline-item p{ color:var(--stone); font-weight:300; max-width:56ch; }
.timeline-item .phase-label{ font-family:var(--font-utility); font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:var(--oak); margin-bottom:8px; display:block; }

/* ---------- Testimonials ---------- */
.testi-wrap{ position:relative; max-width:900px; margin:0 auto; text-align:center; }
.testi-slide{ display:none; }
.testi-slide.active{ display:block; animation:fadein .8s var(--ease); }
@keyframes fadein{ from{ opacity:0; transform:translateY(10px);} to{ opacity:1; transform:translateY(0);} }
.testi-slide blockquote{
  font-family:var(--font-display); font-weight:400; font-style:italic;
  font-size:clamp(22px,2.6vw,32px); line-height:1.5; margin:0 0 30px; color:var(--white);
}
.testi-slide .attrib{ font-family:var(--font-utility); font-size:12px; letter-spacing:.08em; text-transform:uppercase; color:var(--stone); }
.testi-dots{ display:flex; gap:10px; justify-content:center; margin-top:44px; }
.testi-dots button{ width:8px; height:8px; border-radius:50%; border:1px solid var(--stone); background:transparent; padding:0; }
.testi-dots button.active{ background:var(--oak); border-color:var(--oak); }

/* ---------- FAQ ---------- */
.faq-item{ border-top:1px solid var(--concrete); }
.faq-item:last-child{ border-bottom:1px solid var(--concrete); }
.faq-q{
  width:100%; background:none; border:0; text-align:left;
  display:flex; justify-content:space-between; align-items:center;
  padding:28px 0; font-family:var(--font-display); font-size:19px; font-weight:500; color:var(--matte);
}
.faq-q .plus{ font-family:var(--font-utility); font-size:20px; color:var(--oak); transition:transform .35s var(--ease); flex-shrink:0; margin-left:20px; }
.faq-item.open .plus{ transform:rotate(45deg); }
.faq-a{ max-height:0; overflow:hidden; transition:max-height .45s var(--ease); }
.faq-a p{ padding:0 0 28px; color:var(--stone); font-weight:300; max-width:64ch; }

/* ---------- Final CTA ---------- */
.final-cta{ text-align:center; padding:150px 0; }
.final-cta h2{ font-size:clamp(36px,5vw,66px); color:var(--white); max-width:18ch; margin:0 auto 30px; }
.final-cta p{ color:var(--stone); max-width:50ch; margin:0 auto 46px; font-weight:300; font-size:17px; }
.final-cta .row{ display:flex; gap:18px; justify-content:center; flex-wrap:wrap; }

/* ---------- Footer ---------- */
footer.site-footer{ background:var(--matte); color:var(--concrete); padding:100px 0 0; }
.footer-top{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1.2fr; gap:60px; padding-bottom:80px; border-bottom:1px solid rgba(255,255,255,.1); }
.footer-brand .word{ font-family:var(--font-utility); font-size:16px; letter-spacing:.14em; text-transform:uppercase; color:#fff; }
.footer-brand p{ color:var(--stone); font-size:14px; max-width:36ch; margin-top:18px; font-weight:300; }
footer h4{ font-family:var(--font-utility); font-size:11.5px; letter-spacing:.12em; text-transform:uppercase; color:#fff; margin-bottom:22px; font-weight:500; }
footer ul{ list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:13px; }
footer ul a{ font-size:14.5px; color:var(--stone); transition:color .3s; }
footer ul a:hover{ color:#fff; }
.footer-form{ display:flex; margin-top:6px; border-bottom:1px solid rgba(255,255,255,.3); padding-bottom:10px; }
.footer-form input{ background:none; border:0; color:#fff; font-family:var(--font-body); font-size:14px; width:100%; outline:none; }
.footer-form button{ background:none; border:0; color:var(--oak); font-family:var(--font-utility); font-size:12px; letter-spacing:.08em; text-transform:uppercase; }
.footer-bottom{ display:flex; justify-content:space-between; align-items:center; padding:30px 0; flex-wrap:wrap; gap:16px; }
.footer-bottom p{ font-size:12.5px; color:var(--stone); margin:0; }
.footer-legal{ display:flex; gap:24px; list-style:none; padding:0; margin:0; }
.footer-legal a{ font-size:12.5px; color:var(--stone); }
.footer-legal a:hover{ color:#fff; }
.footer-socials{ display:flex; gap:14px; }
.footer-socials a{ width:34px; height:34px; border:1px solid rgba(255,255,255,.2); border-radius:50%; display:flex; align-items:center; justify-content:center; transition:.3s; }
.footer-socials a:hover{ border-color:var(--oak); background:var(--oak); }
@media (max-width: 900px){ .footer-top{ grid-template-columns:1fr 1fr; } }
@media (max-width: 600px){ .footer-top{ grid-template-columns:1fr; } }

/* ---------- reveal-on-scroll ---------- */
.reveal{ opacity:0; transform:translateY(28px); transition:opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible{ opacity:1; transform:translateY(0); }

/* ---------- misc ---------- */
.divider-line{ height:1px; background:var(--concrete); width:100%; }
.tag-pill{ font-family:var(--font-utility); font-size:11px; letter-spacing:.08em; text-transform:uppercase; padding:6px 14px; border:1px solid var(--concrete); border-radius:20px; color:var(--charcoal); background:transparent; transition:.3s; }
.tag-pill.active, .tag-pill:hover{ background:var(--forest); border-color:var(--forest); color:#fff; }
