:root {
  color-scheme: light;
  --ink: #0a2140;
  --ink-muted: #334763;
  --orange: #f04716;
  --blue: #1676c8;
  --pale-blue: #eaf4fa;
  --line: #d8e3eb;
  --paper: #fff;
  --space: clamp(1.5rem, 4vw, 4rem);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); }
img { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
.skip-link { position: absolute; z-index: 20; left: 1rem; top: -5rem; padding: .7rem 1rem; background: white; color: var(--ink); }
.skip-link:focus { top: 1rem; }

.site-header { position: relative; z-index: 5; display: flex; align-items: center; justify-content: space-between; min-height: 5.25rem; padding: .8rem var(--space); gap: 2rem; background: white; }
.brand { display: flex; align-items: baseline; gap: .28em; text-decoration: none; font-size: clamp(1.3rem, 2.35vw, 2rem); font-weight: 800; letter-spacing: -.055em; line-height: 1; white-space: nowrap; }
.brand-cwm { color: var(--orange); }
.brand-rest { color: var(--ink); }
.desktop-nav { display: flex; gap: clamp(1.25rem, 3vw, 3rem); align-items: center; font-size: .94rem; font-weight: 650; }
.desktop-nav a { text-decoration: none; border-bottom: 2px solid transparent; padding: .5rem 0; }
.desktop-nav a:hover { border-color: var(--orange); }
.mobile-nav { display: none; }

.hero { position: relative; min-height: clamp(32rem, 47vw, 43rem); display: flex; align-items: center; overflow: hidden; background: #fff; }
.hero-media { position: absolute; inset: 0 0 0 30%; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.94) 18%, rgba(255,255,255,.42) 40%, transparent 68%); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 68% 48%; }
.hero-content { position: relative; z-index: 1; width: min(48%, 39rem); margin-left: var(--space); padding: 4rem 0; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 11ch; margin-bottom: 1.4rem; font-size: clamp(3.55rem, 6.6vw, 7.35rem); line-height: .97; font-weight: 850; letter-spacing: -.055em; }
h1 span, h2 span { color: var(--orange); }
.hero-content p { max-width: 28ch; font-size: clamp(1.12rem, 1.65vw, 1.5rem); line-height: 1.47; color: var(--ink); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 1.15rem; min-height: 3.25rem; padding: .75rem 1.3rem; font-weight: 750; text-decoration: none; border-radius: .2rem; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: var(--orange); }
.button-primary:hover { background: #d93b10; }
.button span { font-size: 1.25em; line-height: 1; }
.button span { transition: transform .22s ease; }
.button:hover span { transform: translateX(3px); }

.section-shell { padding: clamp(4rem, 7vw, 7rem) var(--space); }
.section-label { margin-bottom: .65rem; color: var(--blue); text-transform: uppercase; letter-spacing: .16em; font-size: .75rem; font-weight: 800; }
h2 { font-size: clamp(2.6rem, 4.15vw, 4.75rem); line-height: 1.03; font-weight: 800; letter-spacing: -.05em; }
.services { display: grid; grid-template-columns: minmax(15rem, .95fr) minmax(0, 2.1fr); gap: clamp(2rem, 4vw, 5rem); align-items: start; }
.section-intro h2 { max-width: 10ch; margin-bottom: 1.2rem; }
.section-intro > p:last-child { max-width: 30ch; color: var(--ink-muted); line-height: 1.6; font-size: 1rem; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.75rem, 1.8vw, 1.75rem); }
.service-item { min-width: 0; }
.service-image { position: relative; aspect-ratio: 1.05; overflow: hidden; background: #dbe4e9; }
.service-image img { position: absolute; top: 50%; width: 300%; max-width: none; height: auto; min-height: 100%; transform: translateY(-50%); }
.triptych-left { left: 0; }
.triptych-centre { left: -100%; }
.triptych-right { left: -200%; }
.service-item h3 { margin: 1rem 0 .4rem; font-size: clamp(1.15rem, 1.5vw, 1.55rem); line-height: 1.13; letter-spacing: -.035em; }
.service-item p { margin: 0; max-width: 20ch; color: var(--ink-muted); line-height: 1.45; font-size: .96rem; }

.process { display: grid; grid-template-columns: 43% 57%; min-height: 35rem; background: var(--pale-blue); }
.process-photo { min-height: 100%; overflow: hidden; }
.process-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 38% center; }
.process-copy { padding: clamp(3.5rem, 6vw, 6.5rem) clamp(2rem, 6vw, 7rem); }
.process h2 { margin-bottom: 2rem; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 2.25rem); margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; padding-top: 3.75rem; line-height: 1.45; }
.steps li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; position: absolute; top: 0; left: 0; width: 2.55rem; height: 2.55rem; border-radius: 50%; background: var(--blue); color: white; font-weight: 800; }
.steps li::after { content: ""; position: absolute; top: 1.23rem; left: 2.55rem; right: -1rem; border-top: 1px solid var(--blue); }
.steps li:last-child::after { display: none; }
.steps strong { display: block; margin-bottom: .45rem; font-size: 1rem; }
.steps span { display: block; color: var(--ink-muted); font-size: .94rem; }

.contact { display: flex; align-items: end; justify-content: space-between; gap: 3rem; }
.contact h2 { margin-bottom: 1rem; }
.contact > div > p:last-child { max-width: 37ch; margin-bottom: 0; color: var(--ink-muted); line-height: 1.55; }
.demo-contact { max-width: 15rem; border-left: 3px solid var(--orange); padding-left: 1rem; color: var(--ink-muted); line-height: 1.45; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 6rem; padding: 1.5rem var(--space); color: white; background: var(--ink); font-size: .82rem; }
.footer-brand { font-size: 1.18rem; font-weight: 800; letter-spacing: -.04em; }

@media (max-width: 1020px) {
  .services { grid-template-columns: 1fr; }
  .section-intro { display: grid; grid-template-columns: 1fr 1fr; column-gap: 2rem; align-items: end; }
  .section-intro .section-label { grid-column: 1 / -1; }
  .section-intro h2 { margin-bottom: 0; }
  .section-intro > p:last-child { margin-bottom: .25rem; }
  .process { grid-template-columns: 39% 61%; }
  .process-copy { padding: 3rem 2.25rem; }
  .steps { gap: 1rem; }
}

@media (max-width: 700px) {
  .site-header { min-height: 4.5rem; }
  .brand { font-size: 1.35rem; }
  .desktop-nav { display: none; }
  .mobile-nav { display: block; position: relative; font-size: .94rem; font-weight: 700; }
  .mobile-nav summary { cursor: pointer; padding: .65rem .2rem; }
  .mobile-nav nav { position: absolute; right: 0; top: 100%; display: grid; min-width: 12rem; padding: .4rem; background: white; box-shadow: 0 12px 28px rgba(10,33,64,.18); }
  .mobile-nav nav a { padding: .75rem; text-decoration: none; }
  .mobile-nav nav a:hover { background: var(--pale-blue); }
  .hero { display: flex; flex-direction: column; align-items: stretch; min-height: 0; }
  .hero-media { position: relative; inset: auto; height: clamp(15rem, 65vw, 25rem); order: 1; }
  .hero-media::after { display: none; }
  .hero-media img { object-position: 63% 50%; }
  .hero-content { width: auto; order: 2; margin: 0; padding: 2.25rem var(--space) 3.5rem; }
  h1 { max-width: 12ch; font-size: clamp(3.3rem, 12vw, 5.8rem); }
  .hero-content p { font-size: 1.08rem; }
  .section-shell { padding-top: 4rem; padding-bottom: 4rem; }
  .section-intro { display: block; }
  .section-intro h2 { margin-bottom: 1rem; }
  .service-grid { gap: .8rem; }
  .service-image { aspect-ratio: .85; }
  .service-item p { font-size: .86rem; }
  .process { display: block; }
  .process-photo { height: 15rem; }
  .process-copy { padding: 3.5rem var(--space) 4rem; }
  .contact { display: block; }
  .demo-contact { margin: 2rem 0 0; }
}

@media (max-width: 480px) {
  .brand { font-size: 1.17rem; }
  h1 { font-size: clamp(3rem, 13.5vw, 4.35rem); }
  h2 { font-size: clamp(2.35rem, 10vw, 3.2rem); }
  .service-grid { display: block; }
  .service-item + .service-item { margin-top: 2rem; }
  .service-image { aspect-ratio: 1.8; }
  .service-item p { max-width: 32ch; font-size: .95rem; }
  .steps { display: block; }
  .steps li + li { margin-top: 1.25rem; }
  .steps li::after { display: none; }
  .site-footer { align-items: start; flex-direction: column; gap: .75rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .button span { transition: none; }
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes bike-copy-in {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes bike-photo-in {
    from { opacity: .55; transform: scale(1.035); }
    to { opacity: 1; transform: scale(1); }
  }
  @keyframes bike-menu-in {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .hero-content { animation: bike-copy-in .58s cubic-bezier(.2,.7,.2,1) both; }
  .hero-media img { animation: bike-photo-in .8s ease-out both; }
  .mobile-nav[open] nav { animation: bike-menu-in .18s ease-out both; }
}
