:root{
  --bg:#f7f7f4;
  --paper:#ffffff;
  --ink:#090d14;
  --muted:#5c6470;
  --line:#e4e1d9;
  --gold:#d89a24;
  --blue:#1e63d6;
  --dark:#080d13;
  --shadow:0 28px 80px rgba(8,13,19,.12);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background:var(--bg);
  color:var(--ink);
  line-height:1.55;
}

img{max-width:100%; display:block}
a{color:inherit; text-decoration:none}

.site-header{
  width:min(1180px, calc(100% - 40px));
  margin:0 auto;
  padding:22px 0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  letter-spacing:.18em;
  font-size:13px;
}
.brand-mark{
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border:2px solid var(--ink);
  transform:rotate(0deg);
  font-size:18px;
}
.brand small{display:block; font-size:10px; letter-spacing:.26em; margin-top:-3px}

.nav{
  display:flex;
  align-items:center;
  gap:34px;
  font-size:15px;
}
.nav a{opacity:.9}
.nav a:hover{opacity:1}
.nav-button{
  background:var(--ink);
  color:#fff;
  padding:13px 20px;
  border-radius:5px;
  box-shadow:0 8px 24px rgba(0,0,0,.12);
}

.hero{
  width:min(1180px, calc(100% - 40px));
  margin:38px auto 70px;
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:48px;
  align-items:end;
}
.eyebrow{
  margin:0 0 12px;
  color:var(--gold);
  text-transform:uppercase;
  letter-spacing:.16em;
  font-weight:800;
  font-size:13px;
}
h1,h2,h3,p{margin-top:0}
h1{
  font-size:clamp(44px, 7vw, 84px);
  line-height:.96;
  letter-spacing:-.06em;
  margin-bottom:24px;
  max-width:850px;
}
.hero-text{
  color:var(--muted);
  max-width:590px;
  font-size:20px;
}
.hero-actions{display:flex; gap:14px; flex-wrap:wrap; margin-top:30px}

.button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:0 22px;
  border-radius:6px;
  font-weight:800;
  border:1px solid transparent;
}
.button.primary{
  background:linear-gradient(135deg,#efbd54,#c88918);
  color:#101010;
}
.button.secondary,.button.outline{
  border-color:#c99434;
  color:#111;
  background:rgba(255,255,255,.6);
}
.button.outline{margin-top:30px}

.hero-card{
  background:var(--paper);
  padding:34px;
  border-radius:22px;
  box-shadow:var(--shadow);
  border:1px solid var(--line);
}
.hero-card p{font-weight:900; font-size:20px}
.hero-card ul{padding-left:20px; margin:0; color:var(--muted)}
.hero-card li{margin:9px 0}

.work-section{
  width:min(1180px, calc(100% - 40px));
  margin:0 auto;
}
.section-intro{
  max-width:630px;
  margin-bottom:42px;
}
.section-intro h2{
  font-size:clamp(40px, 5vw, 68px);
  line-height:1;
  letter-spacing:-.055em;
  margin-bottom:18px;
}
.section-intro p{color:var(--muted); font-size:18px}

.case-study{
  display:grid;
  grid-template-columns:.95fr 1.35fr;
  gap:52px;
  align-items:center;
  padding:48px 0 70px;
  border-bottom:1px solid var(--line);
}
.case-study.reverse{
  grid-template-columns:.95fr 1.35fr;
}
.case-copy{max-width:430px}
.case-number{
  color:var(--blue);
  font-weight:800;
  letter-spacing:.08em;
  margin-bottom:12px;
}
.case-number:after{
  content:"";
  display:inline-block;
  width:38px;
  height:1px;
  background:currentColor;
  margin-left:12px;
  vertical-align:middle;
}
.case-number.gold{color:var(--gold)}
.case-copy h3{
  font-size:clamp(30px, 3vw, 44px);
  line-height:1.05;
  margin-bottom:4px;
  letter-spacing:-.035em;
}
.project-url{
  display:inline-block;
  color:var(--muted);
  margin-bottom:20px;
}
.case-copy p{color:var(--muted); font-size:17px}

.feature-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:0;
  margin-top:36px;
  border-top:0;
}
.feature-grid div{
  padding:0 18px;
  border-right:1px solid var(--line);
}
.feature-grid div:first-child{padding-left:0}
.feature-grid div:last-child{border-right:0}
.icon{
  color:var(--gold);
  font-size:28px;
  display:block;
  margin-bottom:11px;
}
.feature-grid strong{
  display:block;
  text-transform:uppercase;
  font-size:12px;
  letter-spacing:.03em;
}
.feature-grid small{
  display:block;
  color:var(--muted);
  margin-top:8px;
  font-size:13px;
}

.showcase-card{
  position:relative;
  background:linear-gradient(135deg,#f0f7ff,#fff);
  padding:18px;
  border-radius:26px;
  box-shadow:var(--shadow);
  overflow:hidden;
}
.showcase-card:before{
  content:"";
  position:absolute;
  inset:auto -10% -30% 20%;
  height:180px;
  background:radial-gradient(circle, rgba(30,99,214,.18), transparent 60%);
}
.showcase-card.gold-card{
  background:linear-gradient(135deg,#fff8e7,#fff);
}
.showcase-card.gold-card:before{
  background:radial-gradient(circle, rgba(216,154,36,.20), transparent 60%);
}
.showcase-card img{
  position:relative;
  border-radius:18px;
  box-shadow:0 20px 48px rgba(0,0,0,.18);
}

.dark-strip{
  width:min(1180px, calc(100% - 40px));
  margin:70px auto;
  background:
    radial-gradient(circle at top left, rgba(216,154,36,.12), transparent 28%),
    linear-gradient(135deg,#090e15,#111820);
  color:#fff;
  border-radius:18px;
  padding:48px;
  display:grid;
  grid-template-columns:.9fr 1.4fr;
  gap:48px;
  align-items:center;
  box-shadow:var(--shadow);
}
.dark-strip h2{
  font-size:40px;
  line-height:1.05;
  letter-spacing:-.04em;
}
.dark-strip p{color:#c6ccd4}
.strip-features{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:0;
}
.strip-features div{
  padding:0 22px;
  border-left:1px solid rgba(255,255,255,.18);
}
.strip-features span{
  display:block;
  color:#e6af3c;
  font-size:34px;
  margin-bottom:16px;
}
.strip-features strong{display:block; margin-bottom:8px}
.strip-features p{font-size:14px; margin:0}

.services{
  width:min(1180px, calc(100% - 40px));
  margin:0 auto 70px;
}
.narrow{max-width:720px}
.services-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:22px;
}
.service-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
  padding:30px;
  box-shadow:0 14px 40px rgba(8,13,19,.06);
}
.service-card h3{font-size:24px; margin-bottom:12px}
.service-card p{color:var(--muted); margin:0}

.contact{
  width:min(1180px, calc(100% - 40px));
  margin:0 auto 70px;
  padding:54px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:22px;
  text-align:center;
  box-shadow:var(--shadow);
}
.contact h2{
  font-size:clamp(36px,5vw,62px);
  line-height:1;
  letter-spacing:-.05em;
  margin-bottom:14px;
}
.contact p{color:var(--muted); max-width:600px; margin:0 auto 28px}

.footer{
  width:min(1180px, calc(100% - 40px));
  margin:0 auto;
  padding:28px 0 42px;
  border-top:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  color:var(--muted);
  font-size:14px;
}

@media (max-width:900px){
  .site-header{align-items:flex-start}
  .nav{gap:14px; flex-wrap:wrap; justify-content:flex-end}
  .hero,.case-study,.dark-strip{
    grid-template-columns:1fr;
  }
  .case-copy{max-width:none}
  .showcase-card{order:-1}
  .strip-features,.services-grid{grid-template-columns:1fr 1fr}
}

@media (max-width:640px){
  .site-header,.hero,.work-section,.dark-strip,.services,.contact,.footer{
    width:min(100% - 28px, 1180px);
  }
  .site-header{display:block}
  .nav{
    margin-top:18px;
    justify-content:flex-start;
    gap:12px 18px;
  }
  .nav-button{padding:10px 14px}
  .hero{margin-top:26px}
  h1{font-size:46px}
  .feature-grid,.strip-features,.services-grid{grid-template-columns:1fr}
  .feature-grid div{
    border-right:0;
    border-bottom:1px solid var(--line);
    padding:18px 0;
  }
  .feature-grid div:first-child{padding-top:0}
  .feature-grid div:last-child{border-bottom:0}
  .dark-strip,.contact{padding:30px}
  .strip-features div{
    border-left:0;
    border-top:1px solid rgba(255,255,255,.18);
    padding:20px 0;
  }
  .footer{display:block}
  .footer span{display:block; margin-bottom:8px}
}


/* Mobile case study fix: keep project visuals prominent */
@media (max-width: 768px){

  .case-study,
  .case-study.reverse{
    display:flex;
    flex-direction:column;
    gap:24px;
    padding:38px 0 52px;
  }

  .case-study .showcase-card{
    order:-1;
    width:100%;
    padding:10px;
    border-radius:18px;
    margin:0;
  }

  .case-study .showcase-card img{
    width:100%;
    border-radius:14px;
  }

  .case-copy{
    max-width:100%;
  }

  .case-copy h3{
    font-size:34px;
    line-height:1.05;
  }

  .case-copy p{
    font-size:16px;
    line-height:1.55;
  }

  .project-url{
    display:block;
    margin-bottom:18px;
    word-break:break-word;
  }

  .feature-grid{
    display:grid;
    grid-template-columns:1fr;
    gap:16px;
    margin-top:24px;
  }

  .feature-grid div{
    border-right:0;
    border-bottom:1px solid var(--line);
    padding:0 0 16px;
  }

  .feature-grid div:first-child{
    padding-left:0;
  }

  .feature-grid div:last-child{
    border-bottom:0;
    padding-bottom:0;
  }

  .button.outline{
    width:100%;
    margin-top:24px;
  }
}


.reviews{
  width:min(1180px, calc(100% - 40px));
  margin:0 auto 70px;
}

.reviews-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:22px;
}

.review-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:20px;
  padding:30px;
  box-shadow:0 16px 40px rgba(8,13,19,.06);
}

.review-card p{
  color:var(--muted);
  line-height:1.7;
  margin:14px 0 20px;
}

.review-card strong{
  display:block;
}

.review-card small{
  color:var(--muted);
}

.stars{
  color:#d89a24;
  letter-spacing:.12em;
  font-size:18px;
}

.contact-number{
  font-size:20px;
  color:var(--ink) !important;
  margin-bottom:28px !important;
}

@media (max-width:900px){
  .reviews-grid{
    grid-template-columns:1fr;
  }
}


/* Complete build additions */
.brand-logo{
  width:190px;
  max-width:46vw;
  height:auto;
  display:block;
}

.menu-toggle{
  display:none;
  background:var(--ink);
  color:#fff;
  border:0;
  border-radius:8px;
  padding:10px 13px;
  font-size:20px;
}

.muted-link{
  color:var(--muted);
  cursor:default;
}

.contact-form{
  max-width:720px;
  margin:28px auto 0;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
  text-align:left;
}

.contact-form label{
  display:grid;
  gap:8px;
  font-weight:800;
  color:var(--ink);
}

.contact-form label:nth-child(5){
  grid-column:1 / -1;
}

.contact-form input,
.contact-form textarea{
  width:100%;
  border:1px solid var(--line);
  border-radius:12px;
  padding:14px 15px;
  font:inherit;
  background:#fff;
  color:var(--ink);
}

.contact-form textarea{
  resize:vertical;
}

.contact-form button{
  grid-column:1 / -1;
  border:0;
  cursor:pointer;
}

.form-note{
  font-size:14px;
  margin-top:14px !important;
}

.legal-page{
  width:min(900px, calc(100% - 40px));
  margin:40px auto 90px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:22px;
  padding:46px;
  box-shadow:var(--shadow);
}

.legal-page h1{
  font-size:clamp(42px, 6vw, 72px);
  margin-bottom:22px;
}

.legal-page h2{
  margin-top:30px;
}

.legal-page p{
  color:var(--muted);
}

.thank-you{
  margin-top:70px !important;
}

@media (max-width: 768px){
  .site-header{
    display:flex;
    align-items:center;
  }

  .menu-toggle{
    display:block;
    margin-left:auto;
  }

  .nav{
    display:none;
    width:100%;
    margin-top:18px;
    padding:18px;
    background:#fff;
    border:1px solid var(--line);
    border-radius:16px;
    box-shadow:var(--shadow);
  }

  .nav.open{
    display:grid;
    gap:14px;
  }

  .site-header.nav-is-open{
    flex-wrap:wrap;
  }

  .brand-logo{
    width:165px;
  }

  .contact-form{
    grid-template-columns:1fr;
  }

  .contact-form label:nth-child(5),
  .contact-form button{
    grid-column:auto;
  }

  .legal-page{
    padding:28px;
  }
}
