/* =========================================================
   Stonemark Construction (DEMO) — Greater Manchester
   Warm graphite + stone + structural yellow.
   Type: Bricolage Grotesque (display) + Inter (body).
   Full-bleed image/video hero, editorial build sections.
   ========================================================= */

:root {
  --graphite:  #1b1a17;
  --graphite-2:#242220;
  --graphite-3:#131210;
  --stone:     #f1ede5;
  --stone-2:   #e6e0d5;
  --canvas:    #faf8f4;
  --ink:       #1b1a17;
  --muted:     #6c665e;
  --muted-d:   rgba(241,237,229,.66);
  --line:      #ddd6c9;
  --line-d:    rgba(255,255,255,.14);
  --accent:    #ffcb05;   /* structural yellow */
  --accent-2:  #ffd83f;
  --accent-ink:#1b1a17;

  --wrap: 1240px;
  --radius: 3px;
  --sect: clamp(70px, 9vw, 128px);
  --ease: cubic-bezier(.2,.7,.2,1);
  --shadow: 0 30px 70px -34px rgba(27,26,23,.5);

  --f-disp: "Bricolage Grotesque", system-ui, sans-serif;
  --f-body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--f-body); color: var(--ink); background: var(--canvas); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(100% - 44px, var(--wrap)); margin-inline: auto; }

/* ---------- Type helpers ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.eyebrow span { color: var(--accent-ink); background: var(--accent); font-size: 11px; padding: 2px 7px; border-radius: 2px; }
.eyebrow--light { color: var(--muted-d); }
.head { max-width: 660px; margin-bottom: clamp(38px, 5vw, 62px); }
.head--light .head__title { color: var(--stone); }
.head--light .head__lead { color: var(--muted-d); }
.head__title { font-family: var(--f-disp); font-weight: 700; font-size: clamp(34px, 5.2vw, 62px); line-height: 1.02; letter-spacing: -.02em; margin: 18px 0 0; }
.head__lead { margin-top: 16px; color: var(--muted); font-size: clamp(16px, 1.35vw, 18px); max-width: 56ch; }

/* ---------- Buttons ---------- */
.btn { --bg: var(--graphite); --fg: #fff; display: inline-flex; align-items: center; gap: 10px; justify-content: center; background: var(--bg); color: var(--fg); font-weight: 700; font-size: 15px; padding: 14px 24px; border-radius: var(--radius); border: 1.5px solid transparent; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s; }
.btn span { transition: transform .2s var(--ease); }
.btn:hover span { transform: translateX(4px); }
.btn--accent { --bg: var(--accent); --fg: var(--accent-ink); }
.btn--accent:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(255,203,5,.85); }
.btn--glass { --bg: rgba(255,255,255,.08); --fg: #fff; border-color: rgba(255,255,255,.4); backdrop-filter: blur(6px); }
.btn--glass:hover { background: rgba(255,255,255,.16); border-color: #fff; }
.btn--sm { padding: 9px 17px; font-size: 14px; }
.btn--lg { padding: 16px 30px; font-size: 16px; }
.btn--block { display: flex; width: 100%; }

/* ---------- Demo badge ---------- */
.demobadge { position: fixed; left: 14px; bottom: 14px; z-index: 200; font-size: 11.5px; font-weight: 600; letter-spacing: .02em; color: var(--graphite); background: var(--accent); border-radius: 999px; padding: 7px 14px; box-shadow: var(--shadow); transition: transform .2s var(--ease); }
.demobadge::before { content: "●"; margin-right: 7px; font-size: 8px; vertical-align: middle; }
.demobadge:hover { transform: translateY(-2px); }
@media (max-width: 560px){ .demobadge { font-size: 10.5px; padding: 6px 11px; } }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; transition: background .3s, box-shadow .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.is-stuck { background: rgba(27,26,23,.92); backdrop-filter: blur(12px); border-color: var(--line-d); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 78px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-family: var(--f-disp); font-weight: 700; font-size: 22px; letter-spacing: -.01em; }
.brand__mark { color: #fff; display: inline-grid; place-items: center; }
.nav__links { display: flex; gap: 30px; }
.nav__links a { color: rgba(255,255,255,.82); font-weight: 600; font-size: 15px; position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0; background: var(--accent); transition: width .25s var(--ease); }
.nav__links a:hover { color: #fff; } .nav__links a:hover::after { width: 100%; }
.nav__actions { display: flex; align-items: center; gap: 16px; }
.nav__phone { color: #fff; font-weight: 700; font-size: 15px; }
.nav__phone:hover { color: var(--accent); }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav__toggle span { width: 24px; height: 2px; background: #fff; transition: .3s; }
.nav__mobile { display: none; }

/* ---------- HERO (image/video background) ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; background: var(--graphite); overflow: hidden; padding-bottom: clamp(28px, 4vw, 48px); }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__asset { width: 100%; height: 100%; object-fit: cover; animation: kenburns 22s ease-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.09); } }
.hero__ph { position: absolute; inset: 0; display: grid; place-content: center; gap: 8px; text-align: center; color: rgba(255,255,255,.4);
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.02) 0 18px, transparent 18px 36px),
    radial-gradient(120% 100% at 70% 0%, #33302b, #1b1a17 70%); }
.hero__ph span { font-family: var(--f-disp); font-weight: 700; font-size: clamp(20px,3vw,30px); letter-spacing: .02em; }
.hero__ph small { font-size: 13px; letter-spacing: .04em; }
.hero__scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(19,18,16,.55) 0%, rgba(19,18,16,.15) 32%, rgba(19,18,16,.35) 62%, rgba(19,18,16,.88) 100%); }
.hero__inner { position: relative; z-index: 2; padding-top: clamp(120px, 20vh, 220px); }
.hero__eyebrow { color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.hero__title { font-family: var(--f-disp); font-weight: 700; font-size: clamp(58px, 10vw, 150px); line-height: .92; letter-spacing: -.035em; margin: 18px 0 0; text-wrap: balance; }
.hero__title .hl { color: var(--accent); }
.hero__lead { margin-top: 22px; font-size: clamp(17px, 1.5vw, 21px); color: rgba(255,255,255,.86); max-width: 52ch; }
.hero__cta { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero__foot { position: relative; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-top: clamp(40px, 7vw, 80px); padding-top: 22px; border-top: 1px solid rgba(255,255,255,.18); flex-wrap: wrap; }
.hero__stats { list-style: none; display: flex; gap: clamp(28px, 5vw, 60px); }
.hero__stats b { font-family: var(--f-disp); font-weight: 700; font-size: clamp(26px,3vw,38px); display: block; line-height: 1; }
.hero__stats span { font-size: 12.5px; color: rgba(255,255,255,.66); text-transform: uppercase; letter-spacing: .05em; }
.hero__scroll { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.8); }
.hero__scroll span { animation: bob 1.8s var(--ease) infinite; }
@keyframes bob { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(4px);} }

/* ---------- Accreditation strip ---------- */
.accred { background: var(--graphite); color: #fff; border-top: 1px solid var(--line-d); }
.accred__inner { display: flex; align-items: center; gap: clamp(18px,3vw,40px); flex-wrap: wrap; padding: 20px 0; }
.accred__lead { font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); }
.accred ul { list-style: none; display: flex; flex-wrap: wrap; gap: clamp(14px,2.4vw,34px); }
.accred li { font-weight: 600; font-size: 14px; color: rgba(255,255,255,.72); display: flex; align-items: center; gap: 10px; }
.accred li::before { content: ""; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }

/* ---------- Sections ---------- */
.section { padding: var(--sect) 0; }
.section--dark { background: var(--graphite); color: #fff; }
.section--stone { background: var(--stone); }

/* ---------- What we build ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; border-top: 1px solid var(--line); }
.svc-card { position: relative; padding: clamp(28px,2.8vw,40px) clamp(24px,2.4vw,34px); border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); transition: background .25s, color .25s; }
.svc-card:nth-child(3n) { border-right: 0; }
.svc-card__n { font-family: var(--f-disp); font-weight: 700; font-size: 15px; color: var(--accent-ink); background: var(--accent); display: inline-block; padding: 1px 8px; border-radius: 2px; }
.svc-card h3 { font-family: var(--f-disp); font-weight: 700; font-size: 23px; letter-spacing: -.01em; margin-top: 20px; }
.svc-card p { margin-top: 10px; color: var(--muted); font-size: 15px; }
.svc-card:hover { background: var(--graphite); color: #fff; }
.svc-card:hover p { color: var(--muted-d); }
.svc-card--accent { background: var(--graphite); color: #fff; }
.svc-card--accent p { color: var(--muted-d); }

/* ---------- Projects ---------- */
.proj-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px,1.6vw,22px); }
.proj { border-radius: var(--radius); overflow: hidden; position: relative; background: var(--graphite-2); }
.proj--lg { grid-row: span 2; }
.proj__media { aspect-ratio: 3/2; overflow: hidden; background: repeating-linear-gradient(45deg, #2a2824 0 20px, #322f2a 20px 40px); display: grid; place-items: center; }
.proj--lg .proj__media { aspect-ratio: 4/5; }
.proj__ph { font-weight: 600; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: rgba(255,255,255,.4); }
.proj__img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.proj:hover .proj__img { transform: scale(1.05); }
.proj__cap { padding: clamp(18px,1.8vw,24px); color: #fff; }
.proj__type { display: inline-block; font-weight: 700; font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.proj__cap h3 { font-family: var(--f-disp); font-weight: 700; font-size: clamp(18px,1.8vw,24px); margin-top: 8px; letter-spacing: -.01em; }
.proj__cap p { color: var(--muted-d); font-size: 14px; margin-top: 6px; }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: clamp(16px,2vw,30px); }
.step { padding-top: 24px; border-top: 3px solid var(--graphite); }
.step__num { font-family: var(--f-disp); font-weight: 700; font-size: 34px; color: var(--accent-ink); background: var(--accent); display: inline-block; padding: 0 10px; border-radius: 3px; }
.step h3 { font-family: var(--f-disp); font-weight: 700; font-size: 20px; margin-top: 14px; }
.step p { margin-top: 8px; color: var(--muted); font-size: 14.5px; }

/* ---------- Stats ---------- */
.stats-band { background: var(--graphite-3); color: #fff; padding: clamp(50px,6vw,80px) 0; }
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.stat { padding-left: 22px; border-left: 3px solid var(--accent); }
.stat__num { font-family: var(--f-disp); font-weight: 700; font-size: clamp(42px,5vw,66px); line-height: 1; display: block; letter-spacing: -.02em; }
.stat__label { font-size: 13px; color: rgba(255,255,255,.6); margin-top: 8px; display: block; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(30px,5vw,64px); align-items: center; }
.about__media { aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; background: repeating-linear-gradient(45deg, #ded8cc 0 22px, #e6e0d5 22px 44px); display: grid; place-items: center; }
.about__media .proj__ph { color: rgba(27,26,23,.4); }
.about__media img { width: 100%; height: 100%; object-fit: cover; }
.ticks { list-style: none; margin-top: 24px; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 32px; font-weight: 500; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: -1px; width: 22px; height: 22px; background: var(--accent); color: var(--accent-ink); border-radius: 3px; display: grid; place-items: center; font-size: 13px; font-weight: 800; }

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(14px,1.6vw,22px); }
.review { background: var(--canvas); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px,2.4vw,30px); }
.review__stars { color: var(--accent); letter-spacing: 2px; -webkit-text-stroke: .5px #d9a800; }
.review blockquote { margin: 14px 0 18px; font-size: 16px; font-weight: 500; line-height: 1.55; }
.review figcaption b { font-family: var(--f-disp); font-weight: 700; }
.review figcaption span { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ---------- CTA + Contact ---------- */
.cta-contact { background: var(--graphite); color: #fff; padding: var(--sect) 0; }
.cta-contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px,5vw,64px); align-items: start; }
.cta-contact__title { font-family: var(--f-disp); font-weight: 700; font-size: clamp(42px,6vw,80px); line-height: .95; letter-spacing: -.03em; margin: 16px 0 0; }
.cta-contact__lead { margin-top: 18px; color: rgba(255,255,255,.8); font-size: 17px; max-width: 42ch; }
.cta-contact__info { list-style: none; margin-top: 30px; display: grid; gap: 14px; }
.cta-contact__info li { display: flex; align-items: center; gap: 14px; font-weight: 600; }
.cta-contact__info .k { font-size: 11px; color: var(--accent); border: 1px solid var(--line-d); border-radius: 3px; padding: 3px 7px; letter-spacing: .05em; }
.cta-contact__info a:hover { color: var(--accent); }
.enquiry { background: var(--canvas); color: var(--ink); border-radius: var(--radius); padding: clamp(24px,3vw,34px); box-shadow: var(--shadow); }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 15px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.field label { font-weight: 700; font-size: 13px; }
.field input, .field select, .field textarea { font-family: inherit; font-size: 15px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255,203,5,.22); }
.field input.err, .field select.err, .field textarea.err { border-color: #e0533a; box-shadow: 0 0 0 4px rgba(224,83,58,.14); }
.enquiry .btn { margin-top: 6px; }
.enquiry__note { text-align: center; margin-top: 14px; font-size: 13px; color: var(--muted); }
.enquiry-ok { text-align: center; padding: 26px 8px; }
.enquiry-ok__tick { display: inline-grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 27px; font-weight: 800; margin-bottom: 16px; }
.enquiry-ok h3 { font-family: var(--f-disp); font-weight: 700; font-size: 25px; }
.enquiry-ok p { color: var(--muted); margin-top: 8px; }
.enquiry-ok__demo { display: block; font-size: 12px; color: var(--muted); margin-top: 12px; }

/* ---------- Footer ---------- */
.footer { background: var(--graphite-3); color: rgba(241,237,229,.66); padding: clamp(56px,7vw,84px) 0 30px; }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: clamp(28px,4vw,50px); }
.footer__brand .brand { color: #fff; margin-bottom: 16px; }
.footer__brand p { max-width: 34ch; font-size: 15px; }
.footer__col h4 { color: #fff; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
.footer__col ul { list-style: none; display: grid; gap: 10px; }
.footer__col a:hover { color: var(--accent); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line-d); font-size: 13px; }
.footer__bottom a { color: var(--accent); font-weight: 700; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .svc-grid, .reviews { grid-template-columns: repeat(2,1fr); }
  .svc-card:nth-child(3n) { border-right: 1px solid var(--line); }
  .svc-card:nth-child(2n) { border-right: 0; }
  .steps, .stats { grid-template-columns: repeat(2,1fr); gap: 30px 20px; }
  .proj-grid { grid-template-columns: 1fr; }
  .proj--lg { grid-row: auto; } .proj--lg .proj__media { aspect-ratio: 3/2; }
  .about, .cta-contact__inner { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .nav__links, .nav__phone { display: none; }
  .nav__toggle { display: flex; }
  .nav__mobile { display: none; flex-direction: column; padding: 12px 22px 20px; background: rgba(27,26,23,.98); border-top: 1px solid var(--line-d); }
  .nav__mobile.open { display: flex; }
  .nav__mobile a { color: rgba(255,255,255,.85); font-weight: 600; padding: 13px 4px; border-bottom: 1px solid var(--line-d); }
  .nav__mobile .btn { margin-top: 12px; }
  .nav.is-open { background: rgba(27,26,23,.98); }
}
@media (max-width: 560px) {
  .svc-grid, .reviews { grid-template-columns: 1fr; }
  .svc-card { border-right: 0 !important; }
  .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero__stats { gap: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__asset, .hero__scroll span { animation: none; }
  html { scroll-behavior: auto; }
}
