/* Maze Creative — homepage styles
   World: Perth road-works signage. Orange = lost, navy = guide, green = arrived. */

@font-face {
  font-family: "Overpass";
  src: url("../fonts/overpass-latin-var.woff2") format("woff2");
  font-weight: 500 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("../fonts/public-sans-latin-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ground: #eef1f0;
  --paper: #ffffff;
  --ink: #17212e;
  --navy: #253143;
  --navy-2: #34465f;
  --muted: #4b5a6d;
  --line: #c9d2d6;
  --green: #2da953;
  --green-deep: #1a7f37;
  --green-text: #17702f;
  --orange: #ff7a1a;
  --error: #b3261e;
  --on-navy-muted: #b9c6d4;

  --display: "Overpass", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Public Sans", "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(20px, 4vw, 40px);
  --rail: 0px;
  --focus: var(--navy);
  --header-h: 76px;

  /* type scale */
  --fs-xs: 0.8rem;
  --fs-sm: 0.9rem;
  --fs-md: 1rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.2rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 1.9rem;
  --fs-sub: clamp(1.15rem, 1.9vw, 1.35rem);
  --fs-lead: clamp(1.3rem, 2.4vw, 1.75rem);
  --fs-quote: clamp(1.45rem, 2.7vw, 2.15rem);
  --fs-h3: clamp(1.9rem, 3.6vw, 2.8rem);
  --fs-h2: clamp(2.1rem, 4.6vw, 3.6rem);
  --fs-h2-lg: clamp(2.3rem, 5.2vw, 4.2rem);
  --fs-display: clamp(2.7rem, 6.6vw, 5.75rem);

  /* radius scale */
  --r-hair: 2px;
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* supporting colours */
  --on-navy-soft: #e3eaf1;
  --green-tint: #e4f4e9;
  --star: #ffc233;
  --star-deep: #c77f00;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  scrollbar-color: var(--navy) var(--ground);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--fs-base);
  line-height: 1.65;
  font-variant-numeric: lining-nums;
  caret-color: var(--green-deep);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--green-deep); color: #fff; }
.on-navy ::selection, .on-green ::selection { background: #fff; color: var(--navy); }

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; max-width: 66ch; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 0.22em; }
a:hover { text-decoration-color: var(--green); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}
.on-navy, .on-green { --focus: #fff; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  background: var(--navy); color: #fff; padding: 12px 18px; border-radius: var(--r-sm);
  font-family: var(--display); font-weight: 800; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-left: calc(var(--gutter) + var(--rail));
}
@media (min-width: 1100px) { :root { --rail: 60px; } }

section { padding-block: 80px; padding-block: clamp(56px, 8vw, 112px); }

/* ---------- sign plates (the world's one container) ---------- */
.sign { position: relative; }
.sign::before {
  content: "";
  position: absolute; inset: 9px;
  border: 3px solid var(--sign-line, currentColor);
  border-radius: var(--r-md);
  pointer-events: none;
  opacity: 0.9;
}

/* ---------- buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 0 30px;
  border: 0; border-radius: var(--r-md);
  font-family: var(--display); font-weight: 800; font-size: var(--fs-base); line-height: 1.3; text-align: center;
  text-decoration: none; cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.2s;
  box-shadow: 0 1px 0 rgba(23, 33, 46, 0.2), 0 12px 22px -14px rgba(23, 33, 46, 0.55);
}
.btn::before {
  content: ""; position: absolute; inset: 5px;
  border: 2px solid currentColor; border-radius: var(--r-sm); opacity: 0.4; pointer-events: none;
}
.btn svg { width: 22px; height: 22px; flex: none; stroke: currentColor; fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(23, 33, 46, 0.2), 0 18px 26px -14px rgba(23, 33, 46, 0.6); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-go { background: var(--green-deep); color: #fff; }
.btn-go:hover { background: #166f30; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }
.btn-light { background: #fff; color: var(--navy); }
.btn-ghost { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); }
.btn-ghost:hover { background: #fff; }
.btn-sm { min-height: 46px; padding: 0 20px; font-size: var(--fs-md); }
.btn-sm::before { inset: 4px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--ground);
  border-bottom: 2px solid var(--navy);
}
.header-inner { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); }
/* on desktop the header row spans 90% of the screen; the rail starts below the header, so it needs no side lane here */
@media (min-width: 960px) { .site-header .header-inner { width: 90%; max-width: none; padding-left: 0; padding-right: 0; } }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img:first-child { width: 50px; height: auto; }
.brand img:last-child { width: 118px; height: auto; }
.nav { display: none; gap: 26px; }
.nav a {
  font-family: var(--display); font-weight: 700; font-size: var(--fs-md);
  text-decoration: none; padding: 8px 0;
  background: linear-gradient(var(--green), var(--green)) 0 100% / 0 3px no-repeat;
  transition: background-size 0.3s var(--ease);
}
.nav a:hover { background-size: 100% 3px; }
.header-phone {
  display: none; align-items: center; gap: 8px;
  font-family: var(--display); font-weight: 800; font-size: var(--fs-base); text-decoration: none;
  padding: 8px 14px; border-radius: var(--r-sm); box-shadow: inset 0 0 0 2px var(--navy);
  white-space: nowrap;
}
.header-phone:hover { background: #fff; }
.header-phone svg { width: 18px; height: 18px; fill: none; stroke: var(--navy); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.menu-btn {
  width: 48px; height: 48px; border-radius: var(--r-md); border: 0; background: var(--navy); color: #fff; cursor: pointer;
  display: grid; place-items: center;
}
.menu-btn svg { width: 24px; height: 24px; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; fill: none; }
.menu-btn .x { display: none; }
.menu-open .menu-btn .bars { display: none; }
.menu-open .menu-btn .x { display: block; }
.header-cta { display: none; }

.mobile-nav {
  display: none; border-top: 2px solid var(--navy); background: var(--ground);
}
.menu-open .mobile-nav { display: block; }
.mobile-nav ul { padding: 8px var(--gutter) 20px; }
.mobile-nav a {
  display: flex; align-items: center; min-height: 52px;
  font-family: var(--display); font-weight: 800; font-size: var(--fs-lg); text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.mobile-nav .btn { width: 100%; margin-top: 16px; }

@media (min-width: 960px) {
  .nav { display: flex; }
  .menu-btn, .mobile-nav { display: none !important; }
  .header-cta { display: inline-flex; }
}
@media (min-width: 1180px) { .header-phone { display: inline-flex; } }

/* ---------- route rail (the one signature interaction) ---------- */
.rail { display: none; position: fixed; left: 12px; top: 50%; height: 60vh; min-height: 360px; transform: translateY(-50%); width: 44px; z-index: 40; }
@media (min-width: 1100px) { .rail { display: block; } }
.rail-post {
  position: absolute; inset: 0;
  background: var(--paper); border: 2px solid var(--navy); border-radius: var(--r-pill);
  box-shadow: 0 14px 30px -16px rgba(23, 33, 46, 0.5);
}
.rail-inner { position: absolute; inset: 24px 0; }
.rail-track {
  position: absolute; left: 50%; top: 0; bottom: 0; width: 4px; margin-left: -2px;
  background: rgba(37, 49, 67, 0.2); border-radius: var(--r-hair);
}
.rail-fill {
  position: absolute; left: 50%; top: 0; width: 4px; margin-left: -2px;
  height: calc(var(--p, 0) * 100%); background: var(--green); border-radius: var(--r-hair);
}
.rail-node {
  position: absolute; left: 50%; top: calc(var(--f, 0) * 100%);
  width: 16px; height: 16px; margin: -8px 0 0 -8px; padding: 0;
  border-radius: 50%; background: var(--paper); border: 3px solid var(--navy);
  display: block; text-decoration: none;
  transition: background-color 0.3s;
}
.rail-node::before { content: ""; position: absolute; inset: -12px; }
.rail-node.is-passed { background: var(--navy); }
.rail-node::after {
  content: attr(data-label);
  position: absolute; left: 30px; top: 50%; transform: translate(-6px, -50%);
  background: var(--navy); color: #fff; border-radius: var(--r-sm); padding: 5px 11px;
  font-family: var(--display); font-weight: 800; font-size: var(--fs-sm); line-height: 1.3; white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s, transform 0.3s var(--ease);
}
.rail-node:hover::after, .rail-node:focus-visible::after { opacity: 1; transform: translate(0, -50%); }
@media (min-width: 1500px) {
  .rail-node.is-current::after { opacity: 1; transform: translate(0, -50%); }
}
.rail[hidden] { display: none !important; }
.rail-dot {
  position: absolute; left: 50%; top: calc(var(--p, 0) * 100%);
  width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%;
  background: var(--green); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--navy);
  pointer-events: none;
}

/* mobile: thin route line under the header */
.route-bar { position: fixed; left: 0; top: 0; height: 4px; width: 100%; z-index: 70; background: transparent; pointer-events: none; }
.route-bar i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--green); }
@media (min-width: 1100px) { .route-bar { display: none; } }

/* ---------- hero ---------- */
.hero { padding-block: clamp(40px, 6vw, 88px) clamp(56px, 8vw, 112px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero h1 { font-weight: 900; font-size: var(--fs-display); line-height: 0.98; letter-spacing: -0.025em; }
.plate-found {
  position: relative; display: inline-block;
  background: var(--green-deep); color: #fff;
  padding: 0.219em 0.2em 0.011em; margin-top: 0.08em; line-height: 0.74; border-radius: 0.17em;
  box-shadow: 0 1px 0 rgba(23, 33, 46, 0.25), 0 14px 24px -14px rgba(23, 33, 46, 0.6);
}
.plate-found::before {
  content: ""; position: absolute; inset: 0.06em; border: 0.045em solid rgba(255, 255, 255, 0.55); border-radius: 0.12em;
}
.lede { margin-top: clamp(20px, 3vw, 32px); font-size: var(--fs-sub); line-height: 1.55; max-width: 38em; }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.phone-link { font-family: var(--display); font-weight: 800; font-size: var(--fs-base); }
.facts { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 10px; }
.facts li {
  background: var(--paper); border-radius: var(--r-sm); padding: 8px 14px;
  box-shadow: inset 0 0 0 2px var(--navy);
  font-weight: 600; font-size: var(--fs-md); line-height: 1.3;
}
.hero-maze { justify-self: end; width: 100%; max-width: 540px; color: var(--navy); }
.maze { width: 100%; height: auto; overflow: visible; }
.maze-route { stroke-dasharray: 1; stroke-dashoffset: 0; animation: route-draw 3.6s var(--ease) 0.5s backwards; }
.maze-dot { transform-origin: 300px 300px; animation: dot-arrive 0.9s var(--ease) 3.3s backwards; }
@keyframes route-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes dot-arrive { 0% { transform: scale(0.55); } 55% { transform: scale(1.22); } 100% { transform: scale(1); } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-maze { justify-self: center; max-width: min(420px, 58vw); order: -1; }
  .hero { padding-top: 20px; }
}
@media (max-width: 520px) {
  .hero-maze { max-width: min(250px, 66vw); }
  .hero-actions { margin-top: 24px; }
  .facts { margin-top: 28px; }
}

/* ---------- problem board (the only orange) ---------- */
.board {
  --sign-line: var(--ink);
  background: var(--orange); color: var(--ink);
  border-radius: var(--r-xl);
  padding: clamp(36px, 6vw, 80px) clamp(28px, 5vw, 72px);
  box-shadow: 0 1px 0 rgba(23, 33, 46, 0.3), 0 28px 50px -30px rgba(23, 33, 46, 0.6);
}
.board::before { inset: 12px; border-radius: var(--r-lg); opacity: 1; }
.board-grid { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); }
.board h2 { font-weight: 900; font-size: var(--fs-h2); }
.board .board-intro { margin-top: 24px; font-size: var(--fs-base); font-weight: 500; }
.board-kicker-line { margin-top: 28px; font-family: var(--display); font-weight: 800; font-size: var(--fs-xl); line-height: 1.3; }
.problems { display: grid; }
.problem { display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 26px 0; border-top: 3px solid var(--ink); }
.problem:first-child { border-top: 0; padding-top: 0; }
.problem svg { width: 56px; height: 56px; fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.problem h3 { font-size: var(--fs-xl); margin-bottom: 8px; }
.problem p { font-weight: 500; }
@media (max-width: 900px) { .board-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .problem { grid-template-columns: 1fr; gap: 12px; } }

/* ---------- section heads ---------- */
.head { max-width: 52rem; margin-bottom: clamp(32px, 5vw, 56px); }
.head h2 { font-size: var(--fs-h2); font-weight: 900; }
.head p { margin-top: 20px; font-size: var(--fs-lg); }

/* ---------- services: guide signs ---------- */
.svc { display: grid; grid-template-columns: minmax(230px, 320px) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); padding-block: clamp(28px, 4vw, 44px); border-top: 2px solid var(--navy); }
.svc:last-child { border-bottom: 2px solid var(--navy); }
.svc-sign {
  --sign-line: #fff;
  align-self: start;
  background: var(--navy); color: #fff; border-radius: var(--r-lg);
  padding: 30px 30px 30px; min-height: 148px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  font-size: var(--fs-2xl); font-weight: 900; line-height: 1.1;
  box-shadow: 0 1px 0 rgba(23, 33, 46, 0.3), 0 20px 30px -22px rgba(23, 33, 46, 0.7);
}
.svc-sign svg { width: 42px; height: 24px; stroke: #fff; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; align-self: flex-end; }
.svc-sign span { position: relative; }
.svc-body { display: grid; gap: 14px; align-content: start; }
.svc-lead { font-family: var(--display); font-weight: 800; font-size: var(--fs-lead); line-height: 1.4; }
.svc-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 28px; margin-top: 6px; }
.svc-list li { position: relative; padding-left: 28px; font-weight: 600; font-size: var(--fs-md); line-height: 1.45; }
.svc-list li::before {
  content: ""; position: absolute; left: 0; top: 0.15em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--green-deep) url("../images/tick-white.svg") center / 14px no-repeat;
}
.text-link { font-family: var(--display); font-weight: 800; display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; width: fit-content; }
.text-link svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.25s var(--ease); }
.text-link:hover svg { transform: translateX(4px); }
@media (max-width: 860px) {
  .svc { grid-template-columns: 1fr; }
  .svc-sign { min-height: 0; }
  .svc-list { grid-template-columns: 1fr; }
}

/* ---------- navy sections ---------- */
.on-navy { background: var(--navy); color: #fff; }
.on-navy .muted { color: var(--on-navy-muted); }
.on-navy a:hover { text-decoration-color: var(--green); }

/* proof band */
.band { padding-block: clamp(40px, 5vw, 64px); }
.band-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px 56px; align-items: center; }
.band-lead { font-family: var(--display); font-weight: 800; font-size: var(--fs-lg); margin-bottom: 14px; }
.client-names { display: flex; flex-wrap: wrap; gap: 8px 34px; }
.client-names li { font-family: var(--display); font-weight: 900; font-size: var(--fs-lead); line-height: 1.3; }
.client-names .ghost { color: var(--on-navy-muted); font-weight: 700; border-bottom: 2px dashed var(--on-navy-muted); }
.review-slot {
  --sign-line: rgba(255, 255, 255, 0.6);
  position: relative; border-radius: var(--r-lg); padding: 22px 28px; background: rgba(255, 255, 255, 0.07);
  display: grid; gap: 6px; min-width: 260px;
}
.review-slot::before { border-width: 2px; }
.stars { display: flex; gap: 4px; }
.stars svg { width: 22px; height: 22px; fill: var(--star); }
.review-slot strong { font-family: var(--display); font-weight: 800; font-size: var(--fs-lg); }
.review-slot small { color: var(--on-navy-muted); font-size: var(--fs-sm); line-height: 1.35; }
@media (max-width: 860px) { .band-grid { grid-template-columns: 1fr; } }

/* ---------- placeholders (designed empty slots) ---------- */
.slot {
  display: inline-block; padding: 0 0.45em; border-radius: var(--r-xs);
  border: 2px dashed var(--muted); font-weight: 700; font-variant-numeric: tabular-nums;
  background: rgba(37, 49, 67, 0.05);
}
.on-navy .slot { background: rgba(255, 255, 255, 0.08); border-color: var(--on-navy-muted); }
.on-green .slot { border-color: var(--on-navy-soft); }
.tag-ph {
  display: inline-flex; align-items: center; padding: 2px 10px; border-radius: var(--r-pill);
  border: 2px dashed var(--muted); color: var(--muted);
  font-family: var(--display); font-weight: 800; font-size: var(--fs-xs); letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.5;
}
.on-navy .tag-ph { border-color: var(--on-navy-muted); color: var(--on-navy-muted); }
.ph-note { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: var(--fs-md); color: var(--muted); }

/* ---------- case studies ---------- */
.case {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  grid-template-areas: "head head" "media body";
  gap: clamp(20px, 3vw, 36px) clamp(28px, 4.5vw, 64px);
  padding-block: clamp(36px, 5vw, 64px);
  border-top: 2px solid var(--navy);
}
.case-head { grid-area: head; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 24px; }
.case-head h3 { font-weight: 900; font-size: var(--fs-h3); }
.case-head p { font-family: var(--display); font-weight: 700; font-size: var(--fs-lg); color: var(--muted); max-width: none; }
.case-media { grid-area: media; align-self: start; padding-bottom: 8px; }
.case-body { grid-area: body; display: grid; gap: 22px; align-content: start; }
.case-body h4 { font-size: var(--fs-base); margin-bottom: 6px; }
.case-body p { font-size: var(--fs-md); }

/* box-end spec label */
.spec { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--navy); border: 2px solid var(--navy); border-radius: var(--r-md); overflow: hidden; margin: 0; }
.spec div { padding: 10px 14px 12px; background: var(--paper); }
.spec div.wide { grid-column: 1 / -1; }
.spec dt { font-family: var(--display); font-weight: 800; font-size: var(--fs-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); line-height: 1.3; }
.spec dd { margin: 2px 0 0; font-weight: 700; font-size: var(--fs-md); line-height: 1.35; }

/* measured before/after rows */
.measure { margin: 0; border-top: 2px solid var(--navy); }
.measure div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; }
.measure dt { font-weight: 600; font-size: var(--fs-md); line-height: 1.4; }
.measure dd { margin: 0; font-family: var(--display); font-weight: 800; display: flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.measure dd svg { width: 20px; height: 14px; stroke: var(--green-text); fill: none; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.measure-label { font-family: var(--display); font-weight: 800; font-size: var(--fs-md); margin-bottom: 4px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* illustrative browser mockup + leader-line call-outs */
.mock {
  position: relative; background: #fff; border: 2px solid var(--navy); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: 0 1px 0 rgba(23, 33, 46, 0.2), 0 26px 44px -26px rgba(23, 33, 46, 0.6);
}
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 11px 16px; background: var(--navy);  }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.5); }
.mock-bar span { margin-left: 10px; font-size: var(--fs-xs); color: var(--on-navy-muted); font-weight: 600; letter-spacing: 0.02em; }
.mock-body { display: grid; gap: 16px; padding: 20px; min-height: 330px; align-content: start; background: #fff; }
.mock-nav { display: flex; align-items: center; gap: 12px; }
.mock-nav b { width: 64px; height: 16px; border-radius: var(--r-xs); background: var(--m-a); }
.mock-nav i { height: 8px; width: 40px; border-radius: var(--r-xs); background: rgba(37, 49, 67, 0.18); }
.mock-nav i:first-of-type { margin-left: auto; }
.mock-nav em { width: 74px; height: 26px; border-radius: var(--r-sm); background: var(--m-b); margin-left: 8px; }
.mock-hero { border-radius: var(--r-md); background: var(--m-a); padding: 28px 24px; display: grid; gap: 12px; }
.mock-hero .l1, .mock-hero .l2, .mock-hero .l3 { display: block; height: 18px; border-radius: var(--r-xs); background: #fff; }
.mock-hero .l1 { width: 78%; }
.mock-hero .l2 { width: 52%; }
.mock-hero .l3 { height: 9px; width: 70%; opacity: 0.55; margin-top: 4px; }
.mock-hero .btn-m { width: 138px; height: 36px; border-radius: var(--r-sm); background: var(--m-b); margin-top: 8px; }
.mock-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mock-cols i { display: block; height: 76px; border-radius: var(--r-sm); background: rgba(37, 49, 67, 0.08); }
.callout {
  position: absolute; left: var(--x); top: var(--y); z-index: 2;
  width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: var(--green); border: 2px solid #fff; box-shadow: 0 0 0 2px var(--navy);
}
.callout::after { content: ""; position: absolute; left: 100%; top: 50%; width: 26px; height: 2px; margin-top: -1px; background: var(--navy); margin-left: 2px; }
.callout b {
  position: absolute; left: calc(100% + 30px); top: 50%; transform: translateY(-50%);
  background: #fff; color: var(--ink); border: 2px solid var(--navy); border-radius: var(--r-sm);
  padding: 4px 10px; width: max-content; max-width: 150px;
  font-family: var(--display); font-weight: 800; font-size: var(--fs-xs); line-height: 1.3;
}
.callout.flip::after { left: auto; right: 100%; margin-left: 0; margin-right: 2px; }
.callout.flip b { left: auto; right: calc(100% + 30px); }
.mock-note { margin-top: 12px; font-size: var(--fs-sm); color: var(--muted); }

.more-work { margin-top: 12px; padding-top: 28px; border-top: 2px solid var(--navy); display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.more-work p { font-family: var(--display); font-weight: 800; font-size: var(--fs-lg); max-width: none; }

@media (max-width: 900px) {
  .case { grid-template-columns: 1fr; grid-template-areas: "head" "media" "body"; }
}
@media (max-width: 520px) {
  .spec { grid-template-columns: 1fr; }
  .mock-body { padding: 14px; min-height: 300px; }
  .callout b { max-width: 112px; font-size: var(--fs-xs); }
}

/* ---------- process: the route ---------- */
.process-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.process-intro { position: sticky; top: calc(var(--header-h) + 32px); }
.process-intro h2 { font-size: var(--fs-h2); font-weight: 900; }
.process-intro p { margin-top: 20px; font-size: var(--fs-base); color: var(--on-navy-soft); }
.process-intro .btn { margin-top: 32px; }
.route { position: relative; display: grid; gap: 0; counter-reset: stop; }
.route::before { content: ""; position: absolute; left: 24px; top: 28px; bottom: 28px; width: 4px; margin-left: -2px; background: rgba(255, 255, 255, 0.28); }
.route li { position: relative; padding: 0 0 clamp(28px, 4vw, 44px) 76px; }
.route li:last-child { padding-bottom: 0; }
.route .stop {
  position: absolute; left: 0; top: 0; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy); border: 4px solid #fff; color: #fff;
  font-family: var(--display); font-weight: 900; font-size: var(--fs-lg);
}
.route li:last-child .stop { background: var(--green-deep); border-color: #fff; color: #fff; }
.route h3 { font-size: var(--fs-xl); font-weight: 900; padding-top: 6px; margin-bottom: 8px; }
.route p { color: var(--on-navy-soft); }
@media (max-width: 900px) {
  .process-grid { grid-template-columns: 1fr; }
  .process-intro { position: static; }
}

/* ---------- why maze ---------- */
.why { display: grid; border-top: 2px solid var(--navy); }
.why-row { display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: 12px clamp(20px, 4vw, 56px); padding: 24px 0; border-bottom: 1px solid var(--line); align-items: start; }
.why-row h3 { font-size: var(--fs-xl); font-weight: 900; }
.people { margin-top: clamp(40px, 6vw, 64px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.person { display: grid; grid-template-columns: 88px 1fr; gap: 6px 18px; align-items: center; background: var(--paper); border-radius: var(--r-lg); padding: 18px; box-shadow: inset 0 0 0 2px var(--navy); }
.person-photo {
  grid-row: span 2; width: 88px; height: 88px; border-radius: var(--r-lg); background: var(--ground);
  border: 2px dashed var(--muted); display: grid; place-items: center;
}
.person-photo img { width: 50px; height: auto; opacity: 0.35; }
.person h3 { font-size: var(--fs-lg); line-height: 1.3; }
.person .role { font-size: var(--fs-md); color: var(--muted); font-weight: 600; }
.person p { grid-column: 1 / -1; font-size: var(--fs-md); margin-top: 8px; color: var(--muted); }
.person .role { grid-column: 2; margin-top: 0; align-self: start; }
.person h3 { align-self: end; }
@media (max-width: 900px) { .people { grid-template-columns: 1fr; } .why-row { grid-template-columns: 1fr; } }

/* ---------- reviews ---------- */
.reviews-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px; }
.quote { --sign-line: var(--navy); background: var(--paper); border-radius: var(--r-xl); padding: 40px 40px 34px; display: grid; gap: 18px; align-content: space-between; box-shadow: 0 1px 0 rgba(23, 33, 46, 0.15), 0 22px 36px -26px rgba(23, 33, 46, 0.55); }
.quote.big { grid-row: span 2; padding: clamp(36px, 5vw, 60px) clamp(32px, 4.5vw, 56px); }
.quote .stars svg { fill: var(--star-deep); }
.quote blockquote { margin: 0; font-family: var(--display); font-weight: 700; font-size: var(--fs-lg); line-height: 1.4; position: relative; }
.quote.big blockquote { font-size: var(--fs-quote); line-height: 1.4; font-weight: 800; }
.quote cite { font-style: normal; font-weight: 600; font-size: var(--fs-md); color: var(--muted); position: relative; display: block; }
.quote-top { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
@media (max-width: 900px) { .reviews-grid { grid-template-columns: 1fr; } .quote.big { grid-row: auto; } .quote { padding: 34px 28px 28px; } }

/* ---------- faq ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.faq-intro { position: sticky; top: calc(var(--header-h) + 32px); }
.faq-intro h2 { font-size: var(--fs-h2); font-weight: 900; }
.faq-intro p { margin-top: 18px; }
.faq-list { border-top: 2px solid var(--navy); }
.faq-item { border-bottom: 2px solid var(--navy); }
.faq-item summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 40px; gap: 20px; align-items: center;
  padding: 22px 0; font-family: var(--display); font-weight: 800; font-size: var(--fs-sub); line-height: 1.4;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--green-text); }
.faq-item summary .pm { position: relative; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); }
.faq-item summary .pm::before, .faq-item summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; background: #fff; border-radius: var(--r-hair); transition: transform 0.35s var(--ease); }
.faq-item summary .pm::before { width: 16px; height: 3px; margin: -1.5px 0 0 -8px; }
.faq-item summary .pm::after { width: 3px; height: 16px; margin: -8px 0 0 -1.5px; }
.faq-item[open] summary .pm { background: var(--green-deep); }
.faq-item[open] summary .pm::after { transform: scaleY(0); }
.faq-answer { padding: 0 60px 26px 0; }
.faq-answer p + p { margin-top: 12px; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } .faq-intro { position: static; } .faq-answer { padding-right: 0; } }

/* ---------- arrival: the review form ---------- */
.on-green { background: var(--green-deep); color: #fff; }
.arrive { padding-block: clamp(64px, 9vw, 128px); }
.arrive-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.arrive h2 { font-size: var(--fs-h2-lg); font-weight: 900; line-height: 1; }
.arrive .arrive-lede { margin-top: 22px; font-size: var(--fs-lg); }
.checks { margin-top: 30px; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 38px; font-weight: 600; line-height: 1.45; }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.1em; width: 26px; height: 26px; border-radius: 50%; background: #fff url("../images/tick-green.svg") center / 18px no-repeat; }
.arrive .get { margin-top: 28px; padding: 20px 24px; border-radius: var(--r-lg); background: rgba(23, 33, 46, 0.22); }
.arrive .get strong { font-family: var(--display); font-weight: 800; }
.arrive .or-call { margin-top: 26px; font-size: var(--fs-base); }
.arrive .or-call a { font-weight: 700; }

.form-sign {
  --sign-line: var(--navy);
  background: var(--paper); color: var(--ink); border-radius: var(--r-xl); padding: clamp(32px, 4.5vw, 52px);
  box-shadow: 0 1px 0 rgba(23, 33, 46, 0.2), 0 34px 60px -30px rgba(23, 33, 46, 0.7);
  --focus: var(--navy);
}
.form-inner { position: relative; }
.steps { display: flex; align-items: center; gap: 0; margin-bottom: 26px; }
.steps li { display: flex; align-items: center; flex: 1; }
.steps li:last-child { flex: none; }
.steps .dot { width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--navy); background: #fff; display: grid; place-items: center; font-family: var(--display); font-weight: 900; font-size: var(--fs-sm); color: var(--navy); flex: none; }
.steps .bar { height: 4px; background: rgba(37, 49, 67, 0.2); flex: 1; margin: 0 6px; border-radius: var(--r-hair); }
.steps li.done .dot { background: var(--navy); color: #fff; }
.steps li.done .bar { background: var(--navy); }
.steps li.now .dot { background: var(--green-deep); border-color: var(--navy); color: #fff; }
.step-title { font-size: var(--fs-xl); font-weight: 900; margin-bottom: 6px; }
.step-help { color: var(--muted); font-size: var(--fs-md); margin-bottom: 22px; }
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field label, .field .legend { font-family: var(--display); font-weight: 800; font-size: var(--fs-md); }
.field .hint { font-weight: 500; color: var(--muted); font-family: var(--body); font-size: var(--fs-sm); }
.input, .textarea {
  width: 100%; min-height: 54px; padding: 12px 16px;
  border: 2px solid var(--navy); border-radius: var(--r-md); background: #fff; color: var(--ink);
  font: 500 1.0625rem/1.4 var(--body);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.textarea { min-height: 112px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--muted); }
.input:focus, .textarea:focus { outline: 3px solid var(--navy); outline-offset: 2px; }
.field.has-error .input, .field.has-error .textarea { border-color: var(--error); }
.error-msg { display: none; color: var(--error); font-weight: 600; font-size: var(--fs-sm); }
.field.has-error .error-msg { display: block; }
.opts { display: grid; gap: 10px; border: 0; padding: 0; margin: 0 0 18px; }
.opts legend { padding: 0; margin-bottom: 8px; font-family: var(--display); font-weight: 800; font-size: var(--fs-md); }
.opt { display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 8px 16px; border: 2px solid var(--navy); border-radius: var(--r-md); cursor: pointer; font-weight: 600; background: #fff; transition: background-color 0.2s; }
.opt:hover { background: var(--ground); }
.opt input { width: 22px; height: 22px; accent-color: var(--green-deep); flex: none; margin: 0; }
.opt:has(input:checked) { background: var(--green-tint); }
.opt:has(input:focus-visible) { outline: 3px solid var(--navy); outline-offset: 2px; }
.form-nav { display: flex; gap: 12px; justify-content: space-between; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.form-nav .btn-ghost { box-shadow: inset 0 0 0 2px var(--navy); }
.form-nav .spacer { flex: 1; }
.form-fine { margin-top: 16px; font-size: var(--fs-sm); color: var(--muted); }
.form-status { margin-top: 14px; min-height: 1.4em; font-weight: 600; }
.success { display: none; }
.success.show { display: block; }
.success h3 { font-size: var(--fs-2xl); font-weight: 900; margin-bottom: 12px; }
.success p + p { margin-top: 10px; }
.step[hidden] { display: none; }
@media (max-width: 900px) { .arrive-grid { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { padding-block: clamp(48px, 6vw, 80px) 36px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 36px; }
.footer-brand { display: grid; gap: 14px; align-content: start; }
.footer-brand .logo { display: flex; align-items: center; gap: 12px; }
.footer-brand .logo img:first-child { width: 58px; }
.footer-brand .logo img:last-child { width: 132px; }
.footer-brand p { color: var(--on-navy-muted); font-size: var(--fs-md); }
.site-footer h3 { font-size: var(--fs-md); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; color: #fff; }
.site-footer address { font-style: normal; color: var(--on-navy-soft); line-height: 1.7; }
.site-footer li + li { margin-top: 8px; }
.site-footer a { color: #fff; }
.footer-base { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.25); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; color: var(--on-navy-muted); font-size: var(--fs-sm); }
.footer-base p { max-width: none; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- mobile call/review bar ---------- */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: none; gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: var(--ground); border-top: 2px solid var(--navy);
  transform: translateY(110%); transition: transform 0.4s var(--ease);
}
.mobile-cta.show { transform: translateY(0); }
.mobile-cta .btn { flex: 1; min-height: 50px; padding: 0 14px; font-size: var(--fs-md); }
@media (max-width: 760px) {
  .mobile-cta { display: flex; }
  body { padding-bottom: 72px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
