/* =========================================================
   Buildstory — tokens
   ========================================================= */
:root{
  --navy:      #0F2B46;
  --navy-deep: #091b2f;
  --steel:     #2D5B7F;
  --slate:     #6B7C93;
  --sand:      #D4B483;
  --sand-dark: #bd975f;
  --gray:      #E9EEF2;
  --white:     #FFFFFF;

  --ink:       #14293b;
  --line:      #dde3ea;

  --font-head: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;

  --wrap: 1160px;
  --radius: 6px;
  --shadow-card: 0 1px 2px rgba(15,43,70,.06), 0 8px 24px rgba(15,43,70,.06);
}

*, *::before, *::after{ box-sizing: border-box; }

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

body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3{
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 .5em;
}
h1{ font-weight: 800; }
h2{ font-weight: 700; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.35rem); }
h3{ font-weight: 700; font-size: 1.1rem; }

p{ margin: 0 0 1em; color: var(--ink); }
ul{ margin: 0; padding: 0; list-style: none; }
a{ color: inherit; text-decoration: none; }

.wrap{
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link{
  position: absolute; left: -999px; top: 0;
  background: var(--sand); color: var(--navy); padding: 10px 16px;
  z-index: 200; font-weight: 600;
}
.skip-link:focus{ left: 12px; top: 12px; }

svg{ fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* =========================================================
   Buttons
   ========================================================= */
.btn{
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover{ transform: translateY(-1px); }
.btn-primary{
  background: var(--sand);
  color: var(--navy-deep);
}
.btn-primary:hover{ background: var(--sand-dark); }
.btn-ghost{
  border-color: rgba(255,255,255,.55);
  color: var(--white);
}
.btn-ghost:hover{ border-color: var(--white); background: rgba(255,255,255,.08); }
.btn-block{ width: 100%; }

/* =========================================================
   Header
   ========================================================= */
.site-header{
  position: sticky; top: 0; z-index: 100;
  background: rgba(9, 27, 47, .92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-inner{
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand{ display: flex; align-items: center; gap: 12px; }
.brand-mark{ width: 34px; height: 30px; color: var(--sand); flex: none; }
.brand-word{ display: flex; flex-direction: column; line-height: 1.1; }
.brand-word strong{
  font-family: var(--font-head); font-weight: 800; letter-spacing: .06em;
  color: var(--white); font-size: .95rem;
}
.brand-word em{
  font-style: normal; font-size: .58rem; letter-spacing: .12em;
  color: var(--sand); text-transform: uppercase; margin-top: 2px;
}

.main-nav{ display: flex; align-items: center; gap: 30px; }
.main-nav a{
  color: rgba(255,255,255,.85);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .92rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.main-nav a:hover{ color: var(--white); border-color: var(--sand); }
.main-nav a.nav-cta{
  background: var(--sand);
  color: var(--navy-deep);
  padding: 10px 18px;
  border-radius: var(--radius);
  border-bottom: none;
}
.main-nav a.nav-cta:hover{ background: var(--sand-dark); color: var(--navy-deep); }

.nav-toggle{
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px;
  background: transparent; border: none; cursor: pointer;
}
.nav-toggle span{ display: block; width: 22px; height: 2px; background: var(--white); margin: 0 auto; }

/* =========================================================
   Hero
   ========================================================= */
.hero{
  position: relative;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 70%);
  color: var(--white);
  overflow: hidden;
  padding: 100px 0 150px;
}
.hero-bg{ position: absolute; inset: 0; z-index: 0; }
.hero-grid{
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, black, transparent 75%);
}
.hero-skyline{
  position: absolute; bottom: -2px; left: 0; width: 100%; height: 220px;
  color: rgba(212,180,131,.14);
}
.hero-skyline polyline{ fill: rgba(212,180,131,.08); stroke: rgba(212,180,131,.28); stroke-width: 1.5; }

.hero-inner{ position: relative; z-index: 1; max-width: 660px; }
.eyebrow{
  font-family: var(--font-head); font-weight: 700; font-size: .8rem;
  letter-spacing: .06em; color: var(--sand); margin-bottom: 18px;
}
.hero h1{
  color: var(--white);
  font-size: clamp(2.1rem, 1.6rem + 2.4vw, 3.1rem);
  margin-bottom: 22px;
}
.hero-lede{
  font-size: 1.08rem;
  color: rgba(255,255,255,.82);
  max-width: 540px;
  margin-bottom: 34px;
}
.hero-actions{ display: flex; flex-wrap: wrap; gap: 16px; }

.hero .eyebrow, .hero h1, .hero-lede, .hero-actions{
  opacity: 0; transform: translateY(14px);
  animation: heroIn .7s ease forwards;
}
.hero .eyebrow{ animation-delay: .05s; }
.hero h1{ animation-delay: .15s; }
.hero-lede{ animation-delay: .28s; }
.hero-actions{ animation-delay: .4s; }
@keyframes heroIn{ to{ opacity: 1; transform: translateY(0); } }

/* =========================================================
   Positioning strip
   ========================================================= */
.strip{
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.strip-inner{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 28px 24px;
}
.strip-item{
  display: flex; align-items: center; gap: 12px;
  justify-content: center;
  text-align: left;
}
.strip-item svg{ width: 30px; height: 30px; color: var(--steel); flex: none; }
.strip-item span{
  font-family: var(--font-head); font-weight: 600; font-size: .88rem; color: var(--navy);
}

/* =========================================================
   Sections, generic
   ========================================================= */
.section{ padding: 96px 0; }
.section-alt{ background: var(--gray); }
.section-navy{ background: var(--navy); color: var(--white); }

.section-head{ max-width: 620px; margin-bottom: 52px; }
.section-head p{ color: var(--slate); font-size: 1.05rem; }
.section-head-light h2{ color: var(--white); }
.section-head-light p{ color: rgba(255,255,255,.7); }

/* =========================================================
   Services
   ========================================================= */
.service-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service-card{
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--sand);
  border-radius: var(--radius);
  padding: 30px 24px;
  box-shadow: var(--shadow-card);
}
.service-card svg{ width: 34px; height: 34px; color: var(--steel); margin-bottom: 16px; }
.service-card h3{ margin-bottom: 12px; }
.service-card ul li{
  position: relative;
  padding-left: 16px;
  font-size: .92rem;
  color: var(--slate);
  margin-bottom: 7px;
}
.service-card ul li::before{
  content: ''; position: absolute; left: 0; top: .6em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--sand-dark);
}
.service-note{
  margin-top: 40px;
  color: var(--slate);
  font-size: .98rem;
}
.service-note a{ color: var(--steel); font-weight: 600; border-bottom: 1px solid var(--sand); }
.service-note a:hover{ color: var(--navy); }

/* =========================================================
   Who we work with
   ========================================================= */
.who-grid{
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: start;
}
.who-copy h2{ margin-bottom: 22px; }
.who-copy p{ color: var(--slate); font-size: 1.03rem; }
.who-list{
  display: grid;
  gap: 12px;
  padding-top: 8px;
}
.who-list li{
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  color: var(--navy);
  padding: 14px 18px;
  background: var(--white);
  border-left: 3px solid var(--steel);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* =========================================================
   Process
   ========================================================= */
.process-list{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  counter-reset: none;
}
.process-list li{
  border-top: 2px solid var(--line);
  padding-top: 22px;
}
.process-num{
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--sand-dark);
  margin-bottom: 10px;
}
.process-list h3{ margin-bottom: 8px; font-size: 1.02rem; }
.process-list p{ color: var(--slate); font-size: .92rem; margin: 0; }

/* =========================================================
   Difference
   ========================================================= */
.diff-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.12);
}
.diff-item{
  background: var(--navy);
  padding: 30px 26px;
}
.diff-item h3{
  color: var(--sand);
  font-size: 1rem;
  margin-bottom: 10px;
}
.diff-item p{
  color: rgba(255,255,255,.72);
  font-size: .92rem;
  margin: 0;
}

/* =========================================================
   Contact
   ========================================================= */
.contact-section{ background: var(--gray); }
.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: start;
}
.contact-copy h2{ margin-bottom: 20px; }
.contact-copy p{ color: var(--slate); font-size: 1.03rem; }
.contact-note{
  font-weight: 600;
  color: var(--navy);
  font-size: .96rem;
  border-left: 3px solid var(--sand);
  padding-left: 14px;
}

.contact-form{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-card);
}
.hp-field{ position: absolute; left: -9999px; }
.form-row{ margin-bottom: 18px; }
.form-row-split{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 0;
}
.form-row-split .form-row,
.form-row-split > div{ margin-bottom: 18px; }
.contact-form label{
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .82rem;
  color: var(--navy);
  margin-bottom: 6px;
}
.contact-form input,
.contact-form textarea{
  width: 100%;
  font-family: var(--font-body);
  font-size: .95rem;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus{
  outline: 2px solid var(--steel);
  outline-offset: 1px;
  border-color: var(--steel);
}
.form-status{
  margin: 14px 0 0;
  font-size: .9rem;
  font-weight: 600;
  color: var(--steel);
  min-height: 1.2em;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer{ background: var(--navy-deep); color: rgba(255,255,255,.75); }
.footer-inner{
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 24px;
  padding: 44px 24px 28px;
}
.brand-footer .brand-word strong{ color: var(--white); }
.footer-nav{ display: flex; gap: 26px; flex-wrap: wrap; }
.footer-nav a{ font-size: .9rem; color: rgba(255,255,255,.75); }
.footer-nav a:hover{ color: var(--sand); }
.footer-social{ display: flex; gap: 14px; }
.footer-social svg{
  width: 20px; height: 20px; color: rgba(255,255,255,.75);
  transition: color .15s ease;
}
.footer-social a:hover svg{ color: var(--sand); }

.footer-bottom{
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  padding: 18px 24px 30px;
  font-size: .82rem;
  color: rgba(255,255,255,.5);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px){
  .service-grid{ grid-template-columns: repeat(2, 1fr); }
  .process-list{ grid-template-columns: repeat(2, 1fr); }
  .diff-grid{ grid-template-columns: repeat(2, 1fr); }
  .who-grid, .contact-grid{ grid-template-columns: 1fr; gap: 36px; }
  .strip-inner{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px){
  .main-nav{
    position: absolute; top: 76px; left: 0; right: 0;
    background: var(--navy-deep);
    flex-direction: column; align-items: flex-start;
    padding: 12px 24px 24px;
    gap: 4px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    display: none;
  }
  .main-nav.open{ display: flex; }
  .main-nav a{ width: 100%; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
  .main-nav a.nav-cta{ margin-top: 8px; text-align: center; }
  .nav-toggle{ display: flex; }

  .service-grid{ grid-template-columns: 1fr; }
  .process-list{ grid-template-columns: 1fr; }
  .diff-grid{ grid-template-columns: 1fr; }
  .form-row-split{ grid-template-columns: 1fr; }
  .section{ padding: 68px 0; }
  .hero{ padding: 70px 0 100px; }
}
