:root {
  --navy: #111d3d;
  --blue: #1458e8;
  --ink: #17233d;
  --copy: #58657a;
  --line: #dbe2ec;
  --pale: #f4f6fa;
  --content: 1220px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid #9ab8ff; outline-offset: 3px; }
.section-wrap { width: min(var(--content), calc(100% - 64px)); margin: 0 auto; }
.skip-link { position: absolute; top: -60px; left: 16px; z-index: 20; padding: 12px 16px; color: #fff; background: var(--navy); }
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  height: 82px;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(5vw, 28px);
  border-bottom: 1px solid #e8ecf2;
  background: rgba(255,255,255,.98);
}
.brand { display: inline-flex; align-items: center; }
.brand img { display: block; width: 194px; height: 66px; object-fit: contain; mix-blend-mode: multiply; }
.nav { display: flex; align-items: center; gap: 34px; color: #35415a; font-size: 14px; font-weight: 600; }
.nav a:hover, .nav a:focus-visible, .nav a.is-active { color: var(--blue); }
.nav a.is-active:not(.nav-contact) { text-decoration: underline; text-decoration-color: #9db8f4; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.nav .nav-contact.is-active { color: #fff; background: var(--blue); }
.nav .nav-contact { padding: 12px 17px; color: #fff; background: var(--navy); }
.menu-toggle { display: none; }

.hero {
  position: relative;
  display: flex;
  min-height: 630px;
  align-items: center;
  overflow: hidden;
  background: #e7edf6;
}
.hero-photo, .hero-shade { position: absolute; inset: 0; }
.hero-photo { background: url("assets/build-hero.png") 58% center / cover no-repeat; animation: hero-drift 42s ease-in-out infinite alternate; }
.hero-shade { background: linear-gradient(90deg,rgba(248,250,253,.98) 0%,rgba(248,250,253,.96) 30%,rgba(248,250,253,.78) 48%,rgba(248,250,253,.08) 76%); }
.hero-content { position: relative; z-index: 1; width: min(680px, calc(100% - 64px)); margin-left: max(calc((100vw - var(--content)) / 2), 7vw); padding: 66px 0 112px; }
.eyebrow, .section-kicker { margin: 0 0 18px; color: #475672; font-size: 13px; font-weight: 700; letter-spacing: .08em; line-height: 1.5; text-transform: uppercase; }
.hero h1 { max-width: 700px; margin: 0; color: var(--navy); font-size: clamp(52px, 6.2vw, 78px); font-weight: 700; letter-spacing: -.055em; line-height: 1.02; }
.hero-copy { max-width: 570px; margin: 24px 0 27px; color: #46536a; font-size: 18px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 13px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: space-between; gap: 20px; padding: 0 18px; font-size: 14px; font-weight: 650; transition: background-color .15s ease, border-color .15s ease; }
.button-primary { color: #fff; background: var(--blue); }
.button-primary:hover { transform: translateY(-2px); background: #0d47c4; }
.button-primary span { font-size: 17px; }
.button-secondary { border: 1px solid #aeb9ca; color: var(--navy); background: rgba(255,255,255,.72); }
.button-secondary:hover { transform: translateY(-2px); border-color: var(--navy); background: #fff; }
.hero-foot { position: absolute; right: 0; bottom: 0; left: 0; display: flex; min-height: 54px; align-items: center; justify-content: center; gap: clamp(22px,5vw,74px); padding: 10px 28px; color: #fff; background: rgba(17,29,61,.92); font-size: 12px; font-weight: 650; letter-spacing: .08em; text-align: center; text-transform: uppercase; }
.hero-foot span + span::before { display: inline-block; width: 5px; height: 5px; margin: 0 18px 2px 0; background: #75a0ff; content: ""; }

.services { display: grid; grid-template-columns: .85fr 1.6fr; gap: 70px; padding-top: 92px; padding-bottom: 88px; }
.section-heading h2, .experience h2, .contact h2 { margin: 0; color: var(--navy); font-size: clamp(38px, 4.4vw, 54px); font-weight: 700; letter-spacing: -.05em; line-height: 1.07; }
.section-kicker { margin-bottom: 15px; color: var(--blue); }
.section-intro { max-width: 330px; margin: 17px 0 0; color: var(--copy); font-size: 16px; line-height: 1.7; }
.service-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); align-content: center; column-gap: 32px; }
.service-item { display: flex; min-height: 78px; align-items: center; gap: 16px; border-top: 1px solid var(--line); transition: transform .18s ease, border-color .18s ease; }
.service-item:hover { transform: translateX(3px); border-color: var(--blue); }
.service-item span { color: var(--blue); font-size: 12px; font-weight: 700; }
.service-item h3 { margin: 0; color: var(--ink); font-size: 16px; font-weight: 650; line-height: 1.4; }

.specialisms { padding: 86px 0 94px; background: var(--pale); }
.specialisms-heading { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 0 50px; margin-bottom: 36px; }
.specialisms-heading .section-kicker { grid-column: 1 / -1; }
.specialisms-heading h2 { grid-column: 1; }
.specialisms-heading .section-intro { grid-column: 2; grid-row: 2; max-width: 390px; margin: 0 0 3px; }
.specialism-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); border-top: 1px solid #d7deea; border-left: 1px solid #d7deea; }
.specialism { min-height: 205px; padding: 26px 30px 28px; border-right: 1px solid #d7deea; border-bottom: 1px solid #d7deea; background: rgba(255,255,255,.62); transition: background-color .18s ease; }
.specialism { transition: border-color .18s ease, background-color .18s ease; }
.specialism:hover { border-color: #b3c5e4; background: #fff; }
.specialism-index { color: var(--blue); font-size: 12px; font-weight: 700; }
.specialism h3 { margin: 15px 0 10px; color: var(--navy); font-size: 21px; font-weight: 650; letter-spacing: -.025em; transition: color .18s ease; }
.specialism:hover h3 { color: var(--blue); }
.specialism p { max-width: 520px; margin: 0; color: var(--copy); font-size: 15px; line-height: 1.75; }

.process { padding-top: 88px; padding-bottom: 90px; }
.process-heading { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 50px; margin-bottom: 36px; }
.process-heading h2 { margin: 0; color: var(--navy); font-size: clamp(38px, 4.4vw, 54px); font-weight: 700; letter-spacing: -.05em; line-height: 1.07; }
.process-intro { max-width: 440px; margin: 0 0 3px; color: var(--copy); font-size: 16px; line-height: 1.7; }
.process-steps { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); border-top: 1px solid var(--line); }
.process-step { min-height: 190px; padding: 22px 28px 10px 0; }
.process-step + .process-step { padding-left: 28px; border-left: 1px solid var(--line); }
.process-step > span { color: var(--blue); font-size: 12px; font-weight: 700; }
.process-step h3 { margin: 17px 0 9px; color: var(--navy); font-size: 19px; font-weight: 650; }
.process-step p { max-width: 350px; margin: 0; color: var(--copy); font-size: 15px; line-height: 1.7; }
.process-step h3 { transition: color .18s ease; }
.process-step:hover h3 { color: var(--blue); }

.experience { display: grid; grid-template-columns: .95fr 1.05fr; gap: 75px; padding-top: 96px; padding-bottom: 100px; }
.experience-label .section-kicker { margin-bottom: 17px; }
.experience h2 { max-width: 490px; }
.experience-copy { padding-left: 28px; border-left: 2px solid var(--blue); }
.experience-copy p { margin: 0 0 16px; color: var(--copy); font-size: 16px; line-height: 1.8; }
.experience-copy p:first-child { color: var(--ink); font-size: 19px; font-weight: 550; }

.motion-available .reveal-on-scroll { transform: translateY(10px); opacity: 0; transition: opacity .45s ease, transform .45s ease; }
.motion-available .reveal-on-scroll.is-visible { transform: none; opacity: 1; }

@keyframes hero-drift { from { transform: scale(1.005); } to { transform: scale(1.025); } }

.contact { color: #fff; background: var(--navy); }
.contact-inner { display: grid; grid-template-columns: 1fr .85fr; align-items: center; gap: 70px; padding-top: 78px; padding-bottom: 80px; }
.contact .section-kicker { color: #a9c2ff; }
.contact h2 { color: #fff; font-size: clamp(46px,5vw,64px); }
.contact-actions p { max-width: 420px; margin: 0 0 20px; color: #d7deeb; font-size: 16px; line-height: 1.7; }
.button-light { min-width: 270px; color: var(--navy); background: #fff; }
.button-light:hover { background: #eaf0fc; }
.button-social { min-width: 270px; margin-top: 12px; border: 1px solid #7382a0; color: #fff; background: transparent; }
.button-social:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.button-social span { font-size: 17px; }

.site-footer { border-top: 1px solid #e7ebf1; background: #fff; }
.footer-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 6px 30px; padding-top: 28px; padding-bottom: 22px; }
.footer-brand img { width: 172px; height: 58px; }
.footer-inner > p { justify-self: end; margin: 0; color: #657086; font-size: 14px; }
.footer-meta { display: flex; grid-column: 1 / -1; justify-content: space-between; gap: 18px; margin-top: 14px; padding-top: 16px; border-top: 1px solid #e5e9f0; color: #657086; font-size: 12px; }
.footer-meta a { color: #344563; text-decoration: underline; text-underline-offset: 3px; }

.site-header > .nav-cta { padding: 12px 17px; color: #fff; background: var(--navy); font-size: 14px; font-weight: 600; }
.terms { width: min(880px, calc(100% - 48px)); min-height: 72vh; margin: 0 auto; padding: 72px 0 86px; }
.terms .back-link { color: var(--blue); font-size: 14px; font-weight: 650; }
.terms .eyebrow { margin-top: 38px; color: var(--blue); }
.terms h1 { margin: 0 0 24px; color: var(--navy); font-size: clamp(42px, 6vw, 66px); letter-spacing: -.05em; line-height: 1.05; }
.terms h2 { margin: 30px 0 8px; color: var(--navy); font-size: 21px; }
.terms p { color: var(--copy); font-size: 15px; line-height: 1.8; }
.terms .legal-note { margin-top: 35px; padding: 10px 14px; border-left: 2px solid var(--blue); background: var(--pale); font-size: 13px; }

@media (max-width: 900px) {
  .nav { gap: 22px; font-size: 13px; }
  .hero { min-height: 590px; }
  .hero-content { width: min(620px, 78%); margin-left: 6vw; }
  .services { grid-template-columns: .8fr 1.2fr; gap: 40px; }
  .experience { gap: 42px; }
}

@media (max-width: 640px) {
  .section-wrap { width: calc(100% - 40px); }
  .site-header { height: 70px; padding: 0 18px; }
  .brand img { width: 162px; height: 56px; }
  .menu-toggle { display: flex; width: 40px; height: 40px; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 0; background: transparent; }
  .menu-toggle span { width: 22px; height: 2px; background: var(--navy); }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav { position: absolute; top: 69px; right: 0; left: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 20px; border-bottom: 1px solid var(--line); background: #fff; }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 2px; border-bottom: 1px solid #edf0f5; }
  .nav .nav-contact { margin-top: 10px; padding: 13px 15px; border-bottom: 0; }
  .hero { min-height: 650px; align-items: flex-start; }
  .hero-photo { background-position: 64% center; }
  .hero-shade { background: linear-gradient(90deg,rgba(248,250,253,.98),rgba(248,250,253,.88) 63%,rgba(248,250,253,.25)),linear-gradient(0deg,rgba(17,29,61,.45),transparent 34%); }
  .hero-content { width: calc(100% - 40px); margin: 0 20px; padding: 100px 0 130px; }
  .eyebrow, .section-kicker { font-size: 12px; }
  .hero h1 { font-size: clamp(45px,12vw,62px); }
  .hero-copy { max-width: 400px; margin: 20px 0 24px; font-size: 16px; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .hero-foot { min-height: 67px; flex-wrap: wrap; justify-content: flex-start; gap: 8px 17px; padding: 13px 20px; font-size: 10px; }
  .hero-foot span + span::before { margin-right: 9px; }
  .services { display: block; padding-top: 65px; padding-bottom: 65px; }
  .section-heading h2, .experience h2 { font-size: 42px; }
  .section-intro { margin-top: 14px; font-size: 15px; }
  .service-list { grid-template-columns: 1fr; margin-top: 29px; }
  .service-item { min-height: 65px; }
  .service-item h3 { font-size: 16px; }
  .specialisms { padding: 65px 0 68px; }
  .specialisms-heading { display: block; margin-bottom: 25px; }
  .specialisms-heading .section-intro { margin-top: 14px; }
  .specialism-grid { grid-template-columns: 1fr; }
  .specialism { min-height: 0; padding: 22px 20px 24px; border-right: 1px solid #d7deea; }
  .specialism h3 { margin-top: 11px; font-size: 19px; }
  .specialism p { font-size: 14px; }
  .process { padding-top: 67px; padding-bottom: 70px; }
  .process-heading { display: block; margin-bottom: 25px; }
  .process-heading h2 { font-size: 42px; }
  .process-intro { margin-top: 14px; font-size: 15px; }
  .process-steps { grid-template-columns: 1fr; }
  .process-step, .process-step + .process-step { min-height: 0; padding: 19px 0 21px; border-left: 0; border-bottom: 1px solid var(--line); }
  .process-step h3 { margin: 10px 0 6px; font-size: 18px; }
  .process-step p { font-size: 14px; }
  .experience { display: block; padding-top: 68px; padding-bottom: 72px; }
  .experience-copy { margin-top: 25px; padding-left: 18px; }
  .experience-copy p { font-size: 15px; }
  .experience-copy p:first-child { font-size: 17px; }
  .contact-inner { display: block; padding-top: 62px; padding-bottom: 65px; }
  .contact-actions { margin-top: 27px; }
  .contact-actions p { font-size: 15px; }
  .footer-inner { display: block; padding-top: 22px; }
  .footer-inner > p { margin-top: 4px; font-size: 13px; }
  .footer-meta { flex-direction: column; gap: 9px; margin-top: 20px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .motion-available .reveal-on-scroll { transform: none; opacity: 1; }
}
