:root {
  --charcoal: #161d27;
  --slate: #232d3b;
  --steel: #5d6b7d;
  --orange: #e8722a;
  --orange-dark: #cf5f1c;
  --concrete: #f4f3f0;
  --line: #e3e1db;
  --ink: #1c232c;
  --ink-soft: #5a6472;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(22, 29, 39, .12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--ink); background: var(--concrete); line-height: 1.6; }
img { display: block; max-width: 100%; }
a { color: inherit; }

.kicker {
  text-transform: uppercase; letter-spacing: .2em; font-size: .78rem; font-weight: 800;
  color: var(--orange); margin-bottom: 10px;
}
.kicker.center { text-align: center; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--charcoal);
  border-bottom: 3px solid var(--orange);
}
.nav-inner {
  max-width: 1140px; margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; gap: 26px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand-mark {
  width: 40px; height: 40px; display: grid; place-items: center;
  background: var(--orange); color: #fff; font-weight: 900; font-size: 1.05rem;
  letter-spacing: .02em; clip-path: polygon(0 0, 100% 0, 100% 78%, 78% 100%, 0 100%);
}
.brand-text { font-weight: 900; font-size: 1.15rem; letter-spacing: .06em; line-height: 1.1; }
.brand-text small { display: block; font-weight: 500; font-size: .62rem; letter-spacing: .08em; color: #9fb0c3; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a {
  text-decoration: none; font-size: .92rem; font-weight: 600; color: #c6d1dd;
  text-transform: uppercase; letter-spacing: .06em; transition: color .15s;
}
.nav-links a:hover { color: #fff; }
.nav-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 14px 28px; border-radius: 6px;
  font-weight: 700; font-size: .95rem; text-decoration: none; letter-spacing: .03em;
  border: none; cursor: pointer; transition: transform .15s, background .15s, border-color .15s;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.5); }
.btn-ghost:hover { border-color: #fff; }
.btn-nav { background: var(--orange); color: #fff; padding: 10px 18px; font-size: .88rem; white-space: nowrap; }
.btn-nav:hover { background: var(--orange-dark); }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--charcoal); }
.hero-media {
  position: absolute; inset: -20px;
  background: url("images/hero.jpg") center 35% / cover no-repeat;
  filter: blur(6px) brightness(.55) saturate(.85);
  transform: scale(1.06);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(22,29,39,.92) 25%, rgba(22,29,39,.55) 60%, rgba(22,29,39,.75));
}
.hero-inner {
  position: relative; z-index: 2; max-width: 1140px; margin: 0 auto;
  padding: 120px 24px 130px;
}
.eyebrow {
  text-transform: uppercase; letter-spacing: .22em; font-size: .8rem; font-weight: 800;
  color: var(--orange); margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2.3rem, 5.2vw, 3.8rem); font-weight: 900; line-height: 1.08;
  letter-spacing: -.01em; text-transform: uppercase; margin-bottom: 22px;
}
.hero h1 span { color: var(--orange); }
.lede { font-size: 1.12rem; color: #cfd9e4; max-width: 560px; margin-bottom: 34px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-license { font-size: .82rem; letter-spacing: .08em; color: #8fa1b5; text-transform: uppercase; }

/* ---------- Credential bar ---------- */
.credbar {
  background: #fff; border-bottom: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(4, 1fr);
  max-width: 1140px; margin: -60px auto 0; position: relative; z-index: 3;
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 10px;
}
.cred-item { text-align: center; padding: 0 12px; border-right: 1px solid var(--line); }
.cred-item:last-child { border-right: none; }
.cred-item strong { display: block; font-size: 1.9rem; font-weight: 900; color: var(--charcoal); }
.cred-item span { font-size: .82rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .05em; }

/* ---------- Sections ---------- */
.section { max-width: 1140px; margin: 0 auto; padding: 90px 24px; }
.section-head { max-width: 640px; margin-bottom: 46px; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; color: var(--charcoal); }
.section-head .sub { color: var(--ink-soft); margin-top: 12px; }

/* ---------- Service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 4px 16px rgba(22,29,39,.07); transition: transform .18s, box-shadow .18s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card img { width: 100%; height: 190px; object-fit: cover; }
.card figcaption { padding: 22px 22px 26px; border-top: 3px solid var(--orange); }
.card h3 { font-size: 1.1rem; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; color: var(--charcoal); margin-bottom: 8px; }
.card p { font-size: .93rem; color: var(--ink-soft); }

/* ---------- Agencies ---------- */
.agencies { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 46px 24px; }
.logo-row {
  max-width: 1140px; margin: 18px auto 0;
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 20px; align-items: center;
}
.logo-row img {
  width: 100%; height: 72px; object-fit: contain;
  filter: grayscale(1) contrast(.85); opacity: .75; transition: filter .2s, opacity .2s;
}
.logo-row img:hover { filter: none; opacity: 1; }

/* ---------- Projects ---------- */
.section-dark { max-width: none; background: var(--charcoal); color: #fff; }
.section-dark > * { max-width: 1140px; margin-left: auto; margin-right: auto; }
.section-dark .section-head { padding-top: 0; }
.section-dark h2 { color: #fff; }
.section-dark { padding: 90px 24px; }
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.project { background: var(--slate); border-radius: var(--radius); overflow: hidden; }
.project img { width: 100%; height: 200px; object-fit: cover; }
.project-body { padding: 22px; }
.project-client { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--orange); font-weight: 800; margin-bottom: 8px; }
.project h3 { font-size: 1.12rem; font-weight: 800; margin-bottom: 8px; }
.project p { font-size: .92rem; color: #b6c2cf; }
.projects-more { margin-top: 28px; font-size: .92rem; color: #8fa1b5; font-style: italic; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; align-items: center; }
.about-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.about-text h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); font-weight: 900; text-transform: uppercase; color: var(--charcoal); margin-bottom: 16px; }
.about-text p { color: var(--ink-soft); margin-bottom: 14px; }
.about-text strong { color: var(--ink); }
.about-list { list-style: none; margin-top: 8px; }
.about-list li { padding-left: 26px; position: relative; margin-bottom: 8px; font-weight: 600; color: var(--ink); }
.about-list li::before { content: "■"; position: absolute; left: 0; color: var(--orange); font-size: .8rem; top: 2px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(100deg, var(--orange), var(--orange-dark));
  color: #fff; text-align: center; padding: 66px 24px;
}
.cta-band h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); font-weight: 900; text-transform: uppercase; margin-bottom: 10px; }
.cta-band p { color: #ffe3cf; margin-bottom: 26px; }
.cta-band .btn-primary { background: var(--charcoal); }
.cta-band .btn-primary:hover { background: #000; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; align-items: start; }
.contact-info h2 { font-size: 2rem; font-weight: 900; text-transform: uppercase; color: var(--charcoal); margin-bottom: 24px; }
.contact-row { margin-bottom: 14px; display: flex; flex-direction: column; }
.contact-row strong { font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; color: var(--steel); }
.contact-row a { color: var(--orange-dark); font-weight: 700; text-decoration: none; font-size: 1.05rem; }
.license-box {
  margin-top: 26px; padding: 18px 20px; background: #fff; border-left: 4px solid var(--orange);
  border-radius: 6px; font-size: .88rem; color: var(--ink-soft); box-shadow: 0 3px 12px rgba(22,29,39,.06);
}
.license-box strong { display: block; font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; color: var(--steel); margin-bottom: 6px; }

.contact-form { background: #fff; border-radius: var(--radius); padding: 34px 30px; box-shadow: var(--shadow); border-top: 4px solid var(--orange); }
.contact-form h3 { font-size: 1.3rem; font-weight: 800; text-transform: uppercase; color: var(--charcoal); margin-bottom: 20px; }
.contact-form label { display: block; font-size: .84rem; font-weight: 700; color: var(--steel); margin-bottom: 16px; }
.contact-form input, .contact-form textarea {
  width: 100%; margin-top: 6px; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: 6px; font: inherit; background: var(--concrete);
  transition: border-color .15s;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--orange); }
.form-note { margin-top: 12px; font-size: .88rem; color: var(--orange-dark); font-weight: 700; }

/* ---------- Footer ---------- */
.footer { background: var(--charcoal); color: #8fa1b5; text-align: center; padding: 30px 24px; font-size: .85rem; line-height: 1.8; }
.footer strong { color: #cfd9e4; }

/* ---------- Demo badge ---------- */
.demo-badge {
  position: fixed; right: 14px; bottom: 14px; z-index: 60;
  background: rgba(22, 29, 39, .92); color: #cfd9e4;
  font-size: .78rem; padding: 8px 14px; border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0,0,0,.3);
}
.demo-badge strong { color: var(--orange); }

/* ---------- Reveal animation (JS-gated; content visible without JS) ---------- */
html.js.noanim .reveal { opacity: 1; transform: none; transition: none; }
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
html.js .reveal.visible { opacity: 1; transform: none; }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .cards, .projects { grid-template-columns: 1fr 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .credbar { grid-template-columns: repeat(2, 1fr); gap: 20px 0; margin: -50px 20px 0; }
  .cred-item:nth-child(2) { border-right: none; }
  .logo-row { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 620px) {
  .cards, .projects { grid-template-columns: 1fr; }
  .nav-inner { gap: 12px; }
  .brand-text { font-size: 1rem; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--charcoal); flex-direction: column; padding: 18px 24px; gap: 16px;
    border-bottom: 3px solid var(--orange);
  }
  .nav-links.open { display: flex; }
  .btn-nav { margin-left: auto; padding: 8px 12px; font-size: .8rem; }
  .nav-toggle { display: flex; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 6px; }
  .nav-toggle span { width: 22px; height: 2.5px; background: #fff; border-radius: 2px; }
  .hero-inner { padding: 90px 20px 120px; }
  .logo-row { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .logo-row img { height: 52px; }
}
