/* 808 Locksmith: site styles. Mobile first; desktop layout from 960px.
   Built on the approved Alpine design (navy, brass, Montserrat, "/ 0x" sections). */

@font-face {
  font-family: "Montserrat";
  src: url("/fonts/montserrat.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0E1D2D;
  --bg-2: #13263A;
  --panel: #40576E;
  --muted: #8FA7B8;
  --text: #E6ECF1;
  --accent: #C9A46A;
  --accent-hover: #D8B67F;
  --accent-ink: #1A1208;
  --line: rgba(143, 167, 184, 0.18);
  --error: #E29A8C;
  --todo-bg: rgba(143, 167, 184, 0.10);
  --todo-text: #9AA8B4;

  --rail: 88px;
  --gutter: 20px;
  --maxw: 1200px;
  --callbar-h: 64px;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--callbar-h) + env(safe-area-inset-bottom));
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.icon { width: 18px; height: 18px; flex: none; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; font-weight: 700;
}
.skip:focus { top: 12px; }

/* Missing answers: gray placeholder text, like the form's examples. */
.todo {
  color: var(--todo-text);
  font-style: italic;
  font-weight: 400;
  background: var(--todo-bg);
  border: 1px dashed rgba(143, 167, 184, .35);
  padding: 2px 8px;
  border-radius: 3px;
}
p.todo, blockquote.todo, figcaption.todo { display: block; padding: 12px 14px; }

/* ---------- Shared bits ---------- */
.index {
  display: inline-block;
  font-size: 15px;
  letter-spacing: 0.04em;
  padding-bottom: 10px;
  margin-bottom: 16px;
  min-width: 170px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.index::after {
  content: "";
  position: absolute; left: 0; bottom: -1px;
  width: 70%; height: 1px;
  background: var(--accent);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px;
  padding: 0 18px;
  white-space: nowrap;
  font: 700 13px/1 var(--font);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); opacity: .85; }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: var(--accent-hover); }
.btn--ghost { border-color: rgba(230, 236, 241, .35); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--sm { min-height: 44px; font-size: 12px; }
.btn--block { width: 100%; }

.link-accent { color: var(--accent); font-weight: 700; }

/* ---------- Rail (desktop only) ---------- */
.rail { display: none; }

/* ---------- Top bar ---------- */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 30;
  display: flex; align-items: center; gap: 16px;
  padding: 14px var(--gutter);
  padding-top: calc(14px + env(safe-area-inset-top));
  border-bottom: 1px solid transparent;
  transition: background-color .3s, padding .3s, border-color .3s;
}
.topbar.is-scrolled,
.topbar--solid {
  background: rgba(14, 29, 45, .96);
  border-bottom-color: var(--line);
}
.topbar.is-scrolled { padding-top: calc(8px + env(safe-area-inset-top)); padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; position: relative; z-index: 2; }
.brand__mark { width: 28px; height: 28px; color: var(--accent); }
.brand__name { font-weight: 700; font-size: 21px; letter-spacing: -0.01em; white-space: nowrap; }
.topbar__phone { display: none; }

.nav-toggle,
.rail__menu {
  width: 44px; height: 44px;
  display: inline-flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 5px;
  background: transparent; border: 0; cursor: pointer; padding: 10px;
  position: relative; z-index: 2;
}
.nav-toggle span,
.rail__menu span { display: block; height: 1.5px; background: var(--text); transition: transform .25s, opacity .25s, width .25s; }
.nav-toggle span:nth-child(1), .rail__menu span:nth-child(1) { width: 22px; }
.nav-toggle span:nth-child(2), .rail__menu span:nth-child(2) { width: 16px; }
.nav-toggle span:nth-child(3), .rail__menu span:nth-child(3) { width: 10px; }
.nav-open .nav-toggle span:nth-child(1),
.nav-open .rail__menu span:nth-child(1) { width: 22px; transform: translateY(6.5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2),
.nav-open .rail__menu span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3),
.nav-open .rail__menu span:nth-child(3) { width: 22px; transform: translateY(-6.5px) rotate(-45deg); }

/* Menu: a full-screen overlay on phones */
.nav {
  position: fixed; inset: 0;
  z-index: 1;
  display: flex; flex-direction: column;
  padding: calc(88px + env(safe-area-inset-top)) 28px 40px;
  background: var(--bg);
  overflow-y: auto;
  opacity: 0; visibility: hidden;
  transition: opacity .25s, visibility .25s;
}
.nav-open { overflow: hidden; }
.nav-open .nav { opacity: 1; visibility: visible; }
.nav-open .topbar { background: transparent; border-bottom-color: transparent; }
.nav-open .callbar { visibility: hidden; }
.nav__links a {
  display: block;
  font-size: 24px; font-weight: 300;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  transition: color .2s;
}
.nav__links a:hover,
.nav__links a[aria-current="page"] { color: var(--accent); }
.nav__actions { display: grid; gap: 12px; margin-top: 32px; max-width: 360px; }
.nav__actions .btn { min-height: 56px; }

/* ---------- Home hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column;
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(120% 70% at 30% 20%, #16304A 0%, var(--bg) 60%);
}
.hero__inner {
  flex: 1;
  display: flex; flex-direction: column; justify-content: flex-end;
  gap: 24px;
  padding: 16px var(--gutter) 28px;
}
.hero__detail { display: none; }
.hero__detail-title { font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.hero__detail-list { display: flex; flex-direction: column; gap: 4px; }
.hero__detail-list li { font-size: 13px; color: var(--muted); }

.hero__title {
  font-weight: 700;
  font-size: clamp(36px, 10.5vw, 88px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}
.hero__sub { color: var(--muted); font-size: 15px; max-width: 38ch; margin-bottom: 16px; }
.hero__phone {
  display: inline-block;
  font-weight: 700;
  font-size: clamp(32px, 9.6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--accent);
  margin-bottom: 18px;
  white-space: nowrap;
}
.hero__ctas { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hero__ctas .btn { min-height: 56px; }

/* Info strip under the hero */
.strip {
  display: grid;
  background: rgba(19, 38, 58, .82);
  border-top: 1px solid var(--line);
}
.strip__panel { padding: 22px var(--gutter); }
.strip__panel--alt { border-top: 1px solid var(--line); background: rgba(64, 87, 110, .18); }
.strip__heading { font-size: 14px; font-weight: 700; margin-bottom: 10px; color: var(--accent); }
.strip__cols { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 24px; }
.strip__label { font-size: 12px; color: var(--muted); }
.strip__value { font-size: 13px; font-weight: 700; }
.strip__text { font-size: 14px; color: var(--muted); margin-bottom: 8px; max-width: 40ch; }
.strip__image { display: none; }

/* ---------- Inner page header ---------- */
.page-head {
  padding: calc(110px + env(safe-area-inset-top)) var(--gutter) 56px;
  background: radial-gradient(120% 90% at 20% 0%, #16304A 0%, var(--bg) 65%);
  border-bottom: 1px solid var(--line);
}
.page-head--short { min-height: 70svh; }
.page-head__inner { max-width: var(--maxw); margin: 0 auto; }
.page-head__title {
  font-weight: 700;
  font-size: clamp(34px, 9vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  max-width: 16ch;
}
.page-head__lede { color: var(--muted); max-width: 52ch; margin-bottom: 28px; }
.page-head__ctas { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 460px; }
.page-head__ctas .btn { min-height: 56px; padding: 0 12px; white-space: normal; text-align: center; line-height: 1.3; }

/* ---------- Sections ---------- */
.section { padding: 60px var(--gutter); scroll-margin-top: 60px; }
.section > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section--panel { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { margin-bottom: 28px; }
.section__title {
  font-weight: 700;
  font-size: clamp(30px, 7vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.section__lede { color: var(--muted); max-width: 52ch; font-size: 15px; }

/* Service cards (home) */
.cards { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card { background: var(--bg); padding: 22px 20px; position: relative; transition: background .25s; }
.card--link { display: grid; grid-template-columns: 28px 1fr; column-gap: 14px; align-items: center; }
.card--link:hover { background: #112336; }
.card__icon { width: 28px; height: 28px; color: var(--accent); }
.card__title { font-size: 17px; font-weight: 700; }
.card__list {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px;
  margin-top: 14px;
}
.card__list li { font-size: 13px; line-height: 1.35; color: var(--muted); padding: 8px 0; border-top: 1px solid var(--line); }
.card__more {
  grid-column: 1 / -1;
  margin-top: 14px;
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent);
}
.card__more::after { content: " →"; }
.card--cta { background: var(--panel); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.card__cta-text { font-size: 18px; font-weight: 300; line-height: 1.35; margin-bottom: 16px; }
.card::after, .review::after {
  content: ""; position: absolute; left: 0; top: -1px;
  height: 1px; width: 0; background: var(--accent);
  transition: width .5s var(--ease-out);
}
.card--link:hover::after { width: 100%; }

/* How I work */
.features { display: grid; gap: 28px; }
.feature { border-top: 1px solid var(--line); padding-top: 18px; position: relative; }
.feature::before { content: ""; position: absolute; top: -1px; left: 0; width: 48px; height: 1px; background: var(--accent); }
.feature__title { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.feature__text { color: var(--muted); font-size: 15px; }

/* Photo blanks */
.gallery { display: grid; gap: 12px; }
.gallery__blank {
  aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 20px;
  font-size: 14px;
}
.gallery img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }

/* Service area */
.area { display: grid; gap: 36px; }
.area .section__head { margin-bottom: 0; }
.area__list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.area__list li {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--line);
  padding: 10px 16px;
  font-size: 15px;
}
.area__list li::before { content: ""; width: 6px; height: 6px; border: 1px solid var(--accent); transform: rotate(45deg); }
.area__list li.is-home { background: var(--panel); font-weight: 700; }
.area__list li.is-home::before { background: var(--accent); }

.map { border: 1px solid var(--line); background: var(--bg); }
.map__svg { display: block; width: 100%; height: auto; color: var(--muted); }
.map__grid { opacity: .25; }
.map__ring { fill: rgba(201, 164, 106, .06); stroke: var(--accent); stroke-width: 1.2; stroke-dasharray: 6 5; }
.map__ring--far { fill: rgba(201, 164, 106, .03); stroke-opacity: .5; }
.map__road { fill: none; stroke: var(--muted); stroke-width: 2.4; opacity: .7; }
.map__road-label, .map__ringlabel { fill: var(--muted); font: 700 11px var(--font); letter-spacing: .14em; }
.map__ringlabel { fill: var(--accent); }
.map__town { fill: var(--bg); stroke: var(--text); stroke-width: 2; }
.map__home { fill: var(--accent); }
.map__home-ring { fill: none; stroke: var(--accent); stroke-width: 1.5; }
.map__label { fill: var(--text); font: 700 17px var(--font); }
.map__label--home { fill: var(--accent); font-size: 20px; }
.map__north path { fill: var(--muted); }
.map__north text { fill: var(--muted); font: 700 12px var(--font); }

/* Reviews */
.cards--reviews { background: none; border: 0; gap: 12px; }
.review { margin: 0; background: var(--bg-2); border: 1px solid var(--line); padding: 24px 20px; display: flex; flex-direction: column; gap: 16px; position: relative; }
.review__quote { font-weight: 300; font-size: 16px; line-height: 1.55; flex: 1; }
.review__by { font-size: 13px; font-weight: 700; }

/* About */
.about__story { font-size: 19px; font-weight: 300; line-height: 1.6; max-width: 46ch; margin-bottom: 28px; }
.about-teaser { margin-top: 32px; color: var(--muted); max-width: 60ch; }
.about-teaser .link-accent { white-space: nowrap; }
.about-teaser .link-accent::after { content: " →"; }
.section--panel .review { background: var(--bg); }

/* FAQ */
.faq-wrap { display: grid; gap: 8px; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 0;
  font-weight: 700; font-size: 16px;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none;
  width: 10px; height: 10px;
  border-right: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.faq summary:hover { color: var(--accent); }
.faq details p { color: var(--muted); padding: 0 0 20px; max-width: 60ch; }

/* Service pages */
.services { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service { background: var(--bg); padding: 24px 20px; }
.service__title { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.service p { color: var(--muted); font-size: 15px; }
.service p.todo { color: var(--todo-text); }
.facts { display: grid; gap: 0; max-width: 760px; }
.facts li { padding: 16px 0 16px 24px; border-top: 1px solid var(--line); position: relative; color: var(--muted); }
.facts li:last-child { border-bottom: 1px solid var(--line); }
.facts li::before { content: ""; position: absolute; left: 2px; top: 25px; width: 7px; height: 7px; background: var(--accent); transform: rotate(45deg); }
.facts strong { color: var(--text); }

/* ---------- Contact ---------- */
.contact { display: grid; gap: 36px; }
.contact__quick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 32px; }
.contact__quick .btn { min-height: 56px; }
.contact__list { margin: 0; display: grid; gap: 18px; }
.contact__list > div { display: grid; grid-template-columns: 84px 1fr; gap: 12px; border-top: 1px solid var(--line); padding-top: 16px; }
.contact__list dt { font-size: 13px; font-weight: 700; color: var(--muted); padding-top: 3px; }
.contact__list dd { margin: 0; font-size: 15px; overflow-wrap: anywhere; }
.contact__list a:hover { color: var(--accent); }
.accent-link { color: var(--accent); font-weight: 700; font-size: 20px; }
.hours li { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; padding: 2px 0; max-width: 280px; }
.hours li span:first-child { color: var(--muted); }

.form { background: var(--bg-2); border: 1px solid var(--line); padding: 24px 18px; display: grid; gap: 16px; align-content: start; }
.form__title { font-size: 22px; font-weight: 700; }
.form__intro { color: var(--muted); font-size: 14px; margin-top: -6px; }
.form__row { display: grid; gap: 6px; margin: 0; }
.form label, .form legend { font-size: 13px; font-weight: 700; color: var(--muted); }
.form__opt { font-weight: 400; opacity: .8; }
.form input[type="text"], .form input[type="tel"], .form input[type="email"], .form textarea {
  width: 100%;
  font: 400 16px/1.4 var(--font);
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 13px 14px;
  transition: border-color .2s;
  -webkit-appearance: none; appearance: none;
}
.form ::placeholder { color: #6B8193; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); }
.form [aria-invalid="true"] { border-color: var(--error); }
.form textarea { resize: vertical; min-height: 96px; }
.form__choices { border: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.form__choices legend { width: 100%; margin-bottom: 6px; padding: 0; }
.choice {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 46px; padding: 0 16px;
  border: 1px solid var(--line); background: var(--bg);
  color: var(--text) !important; font-weight: 400 !important; font-size: 15px !important;
  cursor: pointer;
}
.choice input { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; }
.choice:has(input:checked) { border-color: var(--accent); }
.form__error { color: var(--error); font-size: 13px; }
.form__error:empty { display: none; }
.form__status { font-size: 14px; color: var(--muted); }
.form__status:empty { display: none; }
.form__status.is-err { color: var(--error); }
.form__done { font-size: 17px; }
.form__done strong { display: block; font-size: 22px; margin-bottom: 8px; color: var(--accent); }
.field--trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 36px var(--gutter) 32px; }
.footer__inner { max-width: var(--maxw); margin: 0 auto; display: grid; gap: 24px; }
.footer__brand { font-weight: 700; font-size: 18px; margin-bottom: 4px; }
.footer__meta { font-size: 13px; color: var(--muted); }
.footer__links { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 14px; }
.footer__links a, .footer__contact a { display: inline-block; padding: 6px 0; }
.footer__links a:hover, .footer__contact a:hover { color: var(--accent); }
.footer__contact { display: grid; gap: 0; font-size: 14px; }
.footer__contact a:first-child { color: var(--accent); font-weight: 700; }

/* ---------- Phone call bar ---------- */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: 40;
  height: calc(var(--callbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: grid; grid-template-columns: 1fr 96px;
  background: var(--bg);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(0,0,0,.35);
}
.callbar a {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 700; font-size: 14px; letter-spacing: .12em; text-transform: uppercase;
}
.callbar a:active { filter: brightness(.92); }
.callbar__call { background: var(--accent); color: var(--accent-ink); }
.callbar__text { border-left: 1px solid var(--line); }

/* =========================================================
   Tablet
   ========================================================= */
@media (min-width: 640px) {
  :root { --gutter: 36px; }
  .hero__inner { padding: 24px var(--gutter) 48px; gap: 40px; }
  .hero__sub { font-size: 16px; }
  .hero__ctas { display: flex; flex-wrap: wrap; }
  .hero__ctas .btn { min-width: 180px; padding: 0 26px; }
  .section { padding: 80px var(--gutter); }
  .section__head { margin-bottom: 40px; }
  .cards--services { grid-template-columns: 1fr 1fr; }
  .cards--reviews { grid-template-columns: 1fr 1fr; }
  .features { grid-template-columns: 1fr 1fr; gap: 44px 36px; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .services { grid-template-columns: repeat(3, 1fr); }
  .services:has(> :only-child) { grid-template-columns: 1fr; }
  .form { padding: 36px 32px; }
  .footer__inner { grid-template-columns: 1fr auto auto; gap: 40px; align-items: start; }
  .footer__links { flex-direction: column; }
}

/* =========================================================
   Desktop
   ========================================================= */
@media (min-width: 960px) {
  :root { --gutter: 56px; }
  body { padding-bottom: 0; padding-left: var(--rail); }
  .callbar { display: none; }

  .rail {
    display: flex; flex-direction: column; justify-content: space-between;
    position: fixed; top: 0; left: 0; bottom: 0;
    width: var(--rail);
    z-index: 50;
    background: #0B1826;
    border-right: 1px solid var(--line);
  }
  .rail__menu { width: var(--rail); height: var(--rail); align-items: center; background: var(--panel); }
  .rail__menu:hover span { background: var(--accent); }
  .rail__call { display: flex; align-items: center; justify-content: center; height: 88px; color: var(--muted); }
  .rail__call:hover { color: var(--accent); }
  .rail__call svg { width: 20px; height: 20px; }

  .topbar { position: absolute; left: var(--rail); padding: 30px var(--gutter); gap: 40px; }
  .topbar.is-scrolled { background: none; border-bottom-color: transparent; padding: 30px var(--gutter); }
  .brand__name { font-size: 24px; }
  .nav-toggle { display: none; }

  .nav { position: static; flex-direction: row; align-items: center; padding: 0; background: none; opacity: 1; visibility: visible; overflow: visible; }
  .nav__links { display: flex; gap: clamp(18px, 2.2vw, 34px); }
  .nav__links a { font-size: 13px; font-weight: 400; padding: 8px 0; border: 0; position: relative; }
  .nav__links a::after {
    content: ""; position: absolute; left: 0; bottom: 0;
    width: 0; height: 1.5px; background: var(--accent);
    transition: width .25s;
  }
  .nav__links a:hover::after, .nav__links a[aria-current="page"]::after { width: 100%; }
  .nav__actions { display: none; }

  .topbar__phone {
    display: inline-block;
    font-size: 13px; font-weight: 700; letter-spacing: .04em;
    color: var(--accent);
    padding: 10px 16px;
    border: 1px solid rgba(201, 164, 106, .45);
    white-space: nowrap;
  }
  .topbar__phone:hover { background: var(--accent); color: var(--accent-ink); }

  /* The rail button opens the big menu on desktop too */
  .nav-open .nav {
    position: fixed; inset: 0 0 0 var(--rail);
    flex-direction: column; align-items: flex-start; justify-content: center;
    padding: 80px 120px;
    background: rgba(14, 29, 45, .98);
  }
  .nav-open .nav__links { flex-direction: column; gap: 6px; }
  .nav-open .nav__links a { font-size: 42px; font-weight: 300; }
  .nav-open .nav__actions { display: flex; gap: 16px; margin-top: 40px; max-width: none; }
  .nav-open .topbar__phone { visibility: hidden; }

  .hero { min-height: max(720px, 100vh); }
  /* Wash over the drawing so the headline side stays readable */
  .hero::after {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(90deg, rgba(14,29,45,0) 0%, rgba(14,29,45,0) 38%, rgba(14,29,45,.82) 56%, rgba(14,29,45,.94) 100%);
  }
  .hero__inner {
    display: grid;
    grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr);
    align-items: center;
    padding: 150px var(--gutter) 70px;
  }
  .hero__detail { display: block; align-self: center; margin-top: -120px; }
  .hero__copy { padding-left: 8%; }
  .hero__title { font-size: clamp(52px, 4.8vw, 84px); margin-bottom: 18px; }
  .hero__sub { font-size: 17px; margin-bottom: 22px; }
  .hero__phone { font-size: clamp(44px, 4.4vw, 68px); margin-bottom: 26px; }

  .strip { grid-template-columns: 1.65fr .55fr 1fr; min-height: 150px; }
  .strip__panel { padding: 30px var(--gutter); }
  .strip__panel--alt { border-top: 0; padding: 30px 44px; }
  .strip__cols { gap: 56px; }
  .strip__value { font-size: 15px; }
  .strip__image {
    display: flex; align-items: center; justify-content: center;
    background: var(--bg);
    border-left: 1px solid var(--line); border-right: 1px solid var(--line);
    color: var(--muted);
  }
  .strip__image svg { width: 100%; height: 100%; opacity: .7; }

  .page-head { padding: 170px var(--gutter) 90px; }

  .section { padding: 120px var(--gutter); scroll-margin-top: 0; }
  .section__head { margin-bottom: 56px; }
  .cards--services { grid-template-columns: repeat(4, 1fr); }
  .card { padding: 30px 26px 32px; }
  .card--link { display: flex; flex-direction: column; align-items: flex-start; }
  .card__icon { width: 34px; height: 34px; margin-bottom: 22px; }
  .card__title { font-size: 19px; margin-bottom: 4px; }
  .card__list { grid-template-columns: 1fr; width: 100%; }
  .card__more { margin-top: auto; padding-top: 20px; }
  .features { grid-template-columns: repeat(4, 1fr); gap: 40px; }

  .area { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
  .about__story { font-size: 24px; }
  .faq-wrap { grid-template-columns: 1fr 2fr; gap: 64px; align-items: start; }

  .contact { grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
  .contact__quick { display: none; }
  .contact__list > div { grid-template-columns: 110px 1fr; }

  .footer { padding: 48px var(--gutter); }
}
@media (min-width: 1400px) {
  .hero__inner { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
}

/* =========================================================
   Blueprint art (pin-tumbler cylinder)
   ========================================================= */
.hero__art {
  position: relative;
  z-index: -1;
  flex: none;
  width: 100%;
  height: min(52vw, 26svh);
  margin-top: calc(64px + env(safe-area-inset-top));
  padding: 0 12px;
  color: var(--muted);
  opacity: .55;
  pointer-events: none;
}
.lockart { display: block; width: 100%; height: 100%; overflow: visible; }
.lockart .lk-line   { fill: none; stroke: currentColor; stroke-width: 1.1; vector-effect: non-scaling-stroke; }
.lockart .lk-thin   { fill: none; stroke: currentColor; stroke-width: .7; opacity: .75; }
.lockart .lk-dash   { fill: none; stroke: currentColor; stroke-width: .8; stroke-dasharray: 6 5; }
.lockart .lk-center { fill: none; stroke: currentColor; stroke-width: .6; stroke-dasharray: 22 5 3 5; opacity: .6; }
.lockart .lk-solid  { fill: var(--bg); }
.lockart .lk-solid.lk-line, .lockart .lk-solid.lk-dash { fill: var(--bg); }
.lockart .lk-hatchfill  { fill: url(#lk-hatch); }
.lockart .lk-hatch2fill { fill: url(#lk-hatch2); }
.lockart .lt-hatchfill  { fill: url(#lt-hatch); }
.lockart .lt-hatch2fill { fill: url(#lt-hatch2); }
.lockart .lk-grid { opacity: .35; }
.lockart .lk-spring { fill: none; stroke: currentColor; stroke-width: 1; vector-effect: non-scaling-stroke; }
.lockart .lk-text { fill: currentColor; font-family: var(--font); font-size: 12px; letter-spacing: .18em; }
.lockart .lk-text--sm { font-size: 10px; }
.lockart .lk-shear-hi, .lockart .lt-ring { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-opacity: 0; }
.lockart .lk-keyprof { fill: var(--accent); fill-opacity: 0; }

/* 14s loop: key slides in, pins lift to the shear line, plug turns, key withdraws */
.lockart .lk-key, .lockart .lk-pin, .lockart .lk-spring, .lockart .lk-shear-hi, .lockart .lk-rotor, .lockart .lk-keyprof {
  animation-duration: 14s;
  animation-iteration-count: infinite;
  animation-timing-function: cubic-bezier(.65, 0, .35, 1);
  animation-fill-mode: both;
}
.lockart .lk-spring { transform-box: fill-box; transform-origin: 50% 0; }
.lockart .lk-rotor  { transform-box: fill-box; transform-origin: 50% 50%; animation-name: lk-rotor; }
.lockart .lk-key { animation-name: lk-key; }
.lockart .lk-shear-hi { animation-name: lk-shear; }
.lockart .lk-keyprof { animation-name: lk-kp; }
.lockart .p1 { animation-name: lk-p1; } .lockart .s1 { animation-name: lk-s1; }
.lockart .p2 { animation-name: lk-p2; } .lockart .s2 { animation-name: lk-s2; }
.lockart .p3 { animation-name: lk-p3; } .lockart .s3 { animation-name: lk-s3; }
.lockart .p4 { animation-name: lk-p4; } .lockart .s4 { animation-name: lk-s4; }
.lockart .p5 { animation-name: lk-p5; } .lockart .s5 { animation-name: lk-s5; }

@keyframes lk-key {
  0%, 6%   { transform: translateX(-620px); opacity: 0; }
  11%      { opacity: 1; }
  34%, 72% { transform: translateX(0); opacity: 1; }
  88%      { transform: translateX(-620px); opacity: 1; }
  96%, 100%{ transform: translateX(-620px); opacity: 0; }
}
@keyframes lk-p1 { 0%, 12% { transform: translateY(52px); } 16%, 77% { transform: translateY(0); } 80%, 100% { transform: translateY(52px); } }
@keyframes lk-p2 { 0%, 16.5% { transform: translateY(24px); } 20.5%, 76% { transform: translateY(0); } 79%, 100% { transform: translateY(24px); } }
@keyframes lk-p3 { 0%, 21% { transform: translateY(40px); } 25%, 75% { transform: translateY(0); } 78%, 100% { transform: translateY(40px); } }
@keyframes lk-p4 { 0%, 25.5% { transform: translateY(16px); } 29.5%, 74% { transform: translateY(0); } 77%, 100% { transform: translateY(16px); } }
@keyframes lk-p5 { 0%, 30% { transform: translateY(46px); } 34%, 73% { transform: translateY(0); } 76%, 100% { transform: translateY(46px); } }
@keyframes lk-s1 { 0%, 12% { transform: scaleY(1.481); } 16%, 77% { transform: scaleY(1); } 80%, 100% { transform: scaleY(1.481); } }
@keyframes lk-s2 { 0%, 16.5% { transform: scaleY(1.222); } 20.5%, 76% { transform: scaleY(1); } 79%, 100% { transform: scaleY(1.222); } }
@keyframes lk-s3 { 0%, 21% { transform: scaleY(1.370); } 25%, 75% { transform: scaleY(1); } 78%, 100% { transform: scaleY(1.370); } }
@keyframes lk-s4 { 0%, 25.5% { transform: scaleY(1.148); } 29.5%, 74% { transform: scaleY(1); } 77%, 100% { transform: scaleY(1.148); } }
@keyframes lk-s5 { 0%, 30% { transform: scaleY(1.426); } 34%, 73% { transform: scaleY(1); } 76%, 100% { transform: scaleY(1.426); } }
@keyframes lk-shear { 0%, 34% { stroke-opacity: 0; } 38%, 66% { stroke-opacity: .9; } 72%, 100% { stroke-opacity: 0; } }
@keyframes lk-rotor { 0%, 38% { transform: rotate(0deg); } 48%, 60% { transform: rotate(90deg); } 70%, 100% { transform: rotate(0deg); } }
@keyframes lk-kp    { 0%, 30% { fill-opacity: 0; } 34%, 72% { fill-opacity: .35; } 76%, 100% { fill-opacity: 0; } }

.lockart--tile .lt-rotor { transform-box: fill-box; transform-origin: 50% 50%; animation: lt-rotor 10s cubic-bezier(.65,0,.35,1) infinite both; }
.lockart--tile .lt-ring  { animation: lt-ring 10s cubic-bezier(.65,0,.35,1) infinite both; }
@keyframes lt-rotor { 0%, 25% { transform: rotate(0deg); } 40%, 65% { transform: rotate(90deg); } 80%, 100% { transform: rotate(0deg); } }
@keyframes lt-ring  { 0%, 20% { stroke-opacity: 0; } 30%, 70% { stroke-opacity: .9; } 85%, 100% { stroke-opacity: 0; } }

.hero.is-paused .lockart * { animation-play-state: paused; }

@media (min-width: 960px) {
  .hero__art {
    position: absolute;
    margin: 0; padding: 0;
    top: 70px; bottom: 170px; height: auto;
    left: 4%; width: 74%;
    opacity: .42;
    -webkit-mask-image: linear-gradient(90deg, #000 48%, rgba(0,0,0,.35) 70%, transparent 100%);
            mask-image: linear-gradient(90deg, #000 48%, rgba(0,0,0,.35) 70%, transparent 100%);
  }
}

/* =========================================================
   Motion
   ========================================================= */
@keyframes rise   { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade   { from { opacity: 0; } to { opacity: 1; } }
@keyframes lineUp { from { transform: translateY(105%); } to { transform: none; } }

.hero__title .line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.hero__title .line > span { display: block; animation: lineUp 1.1s var(--ease-out) both; }
.hero__title .line:nth-child(1) > span { animation-delay: .15s; }
.hero__title .line:nth-child(2) > span { animation-delay: .28s; }
.hero__sub    { animation: rise .9s var(--ease-out) .55s both; }
.hero__phone  { animation: rise .9s var(--ease-out) .7s both; }
.hero__ctas   { animation: rise .9s var(--ease-out) .85s both; }
.hero__detail { animation: rise .9s var(--ease-out) 1s both; }
.strip        { animation: fade 1.2s ease 1.1s both; }
.hero__art    { animation: fade 2s ease .2s both; }

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s ease, transform .9s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .section__head.reveal .index::after { width: 0; transition: width 1s var(--ease-out) .35s; }
.js .section__head.reveal.is-visible .index::after { width: 70%; }

@media (hover: none) {
  .card--link:hover { background: var(--bg); }
  .card--link:hover::after { width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .section__head.reveal .index::after { width: 70%; }
  .lockart .lk-shear-hi, .lockart .lt-ring { stroke-opacity: .9; }
  .lockart .lk-keyprof { fill-opacity: .35; }
}

/* Short phones (iPhone SE): keep name, number and buttons on the first screen */
@media (max-width: 639px) and (max-height: 700px) {
  .hero__art { height: min(40vw, 20svh); }
  .hero__title { font-size: 34px; }
  .hero__sub { font-size: 14px; margin-bottom: 12px; }
  .hero__phone { font-size: 30px; margin-bottom: 14px; }
}

/* Small laptops: not enough room for every link, so the rail menu button carries them */
@media (min-width: 960px) and (max-width: 1279px) {
  body:not(.nav-open) .nav__links { display: none; }
}
.nav__links a, .strip__value { white-space: nowrap; }
