/* Opus v4. Calm service site: navy only in the hero and the closing panel, white and a cool wash
   for the body, orange only on primary actions and check marks. Lucide icons (ISC). */

:root {
  --navy: #1A1E49;
  --navy-2: #232861;
  --navy-line: rgba(255, 255, 255, .14);
  --on-navy: #FFFFFF;
  --on-navy-2: #C9CCE3;
  --ink: #1A1E49;
  --text: #3B4064;
  --muted: #5A5F80;
  --line: #E3E5EF;
  --line-2: #D4D7E5;
  --bg: #FFFFFF;
  --wash: #F5F6FA;
  --orange: #F37321;
  --orange-hover: #E0631A;
  --btn: #C45309;        /* deeper orange so white button text passes 4.5:1 */
  --btn-hover: #A84607;
  --orange-text: #B84E00;
  --ok: #1E7A4C;
  --ok-bg: #E7F4ED;
  --esc: #9A3F00;
  --esc-bg: #FDF0E6;

  --font: "tt-commons-pro", "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1200px;
  --gut: clamp(20px, 4vw, 40px);
  --sec: clamp(80px, 9vw, 128px);
  --r: 12px;
  --r-lg: 16px;
  --shadow: 0 1px 2px rgba(26, 30, 73, .06), 0 12px 32px -8px rgba(26, 30, 73, .14);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; font: 400 18px/1.6 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
h1, h2, h3 { color: var(--ink); margin: 0; font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(40px, 5.2vw, 64px); line-height: 1.06; letter-spacing: -0.03em; }
h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.12; letter-spacing: -0.025em; }
h3 { font-size: 19px; line-height: 1.35; letter-spacing: -0.01em; }
p { margin: 0; }
p, li, dd, figcaption, blockquote { text-wrap: pretty; }
a { color: inherit; }
::selection { background: #FBD7BE; color: var(--navy); }
:focus-visible { outline: 3px solid #C45309; outline-offset: 3px; border-radius: 4px; }
/* The brighter orange only on navy, where it has the contrast; the darker one passes 3:1 on white. */
.site-header :focus-visible, .hero :focus-visible, .close-panel :focus-visible, .page-title :focus-visible, .side-cta :focus-visible { outline-color: var(--orange); }
.site-header.is-scrolled :focus-visible { outline-color: #C45309; }
main:focus { outline: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--bg); color: var(--ink); padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* icons */
.i { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 10px; font: 600 17px/1 var(--font); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease); }
.btn:active { transform: translateY(1px); }
.btn .i { width: 20px; height: 20px; }
.btn-primary { background: var(--btn); color: #fff; }
.btn-primary:hover { background: var(--btn-hover); }
.btn-ghost { color: var(--on-navy); border-color: rgba(255, 255, 255, .35); }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.btn-outline { color: var(--ink); border-color: var(--line-2); background: var(--bg); }
.btn-outline:hover { border-color: var(--ink); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn-block { width: 100%; }
.link { padding: 8px 0; margin: -8px 0; display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 6px; text-decoration-thickness: 2px; transition: text-decoration-color .2s; }
.link:hover { text-decoration-color: var(--orange); }
.link .i { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.link:hover .i { transform: translateX(3px); }

/* header: navy over the hero, white once the page scrolls */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy); color: var(--on-navy); transition: background-color .25s, color .25s, box-shadow .25s; }
.site-header.is-scrolled { background: rgba(255, 255, 255, .97); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.header-bar { display: flex; align-items: center; gap: 32px; min-height: 76px; }
.brand { display: inline-flex; color: inherit; padding: 8px 0; margin: -8px 0; }
.logo { display: block; height: auto; }
.nav { display: flex; gap: 28px; margin-left: 24px; }
.nav a, .header-link { font-size: 16px; font-weight: 500; text-decoration: none; color: inherit; opacity: .88; padding: 8px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .header-link:hover { opacity: 1; }
.nav a[aria-current="page"] { opacity: 1; border-bottom-color: var(--orange); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 24px; }
.mnav { display: none; margin-left: auto; position: relative; }
.mnav summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 44px; height: 44px; margin-right: -10px; border-radius: 8px; }
.mnav summary:hover { background: rgba(127, 127, 127, .12); }
.mnav summary::-webkit-details-marker { display: none; }
.burger { display: grid; gap: 5px; } .burger i { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.mnav[open] .burger i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mnav[open] .burger i:nth-child(2) { opacity: 0; }
.mnav[open] .burger i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mnav-panel { position: absolute; right: 0; top: calc(100% + 10px); width: min(320px, calc(100vw - 40px)); background: #fff; color: var(--ink); border-radius: var(--r-lg); box-shadow: 0 2px 4px rgba(0, 0, 0, .12), 0 16px 32px -8px rgba(0, 0, 0, .28); padding: 12px; display: grid; }
.mnav-panel a { padding: 14px 12px; text-decoration: none; font-weight: 500; border-radius: 8px; }
.mnav-panel a:not(.btn):hover { background: var(--wash); }
.mnav-panel a[aria-current="page"] { background: var(--wash); font-weight: 600; text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.mnav-panel .btn { margin-top: 8px; }
@media (max-width: 1080px) { .nav, .header-actions { display: none; } .mnav { display: block; } }

/* hero */
.hero { background: var(--navy); color: var(--on-navy-2); padding: clamp(56px, 7vw, 104px) 0 clamp(72px, 8vw, 120px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.hero h1 { color: var(--on-navy); max-width: 13ch; }
.hero .lede { margin-top: 24px; font-size: 20px; line-height: 1.6; max-width: 34em; color: var(--on-navy-2); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.checks { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 12px; font-size: 16px; color: var(--on-navy); }
.checks li { display: flex; align-items: center; gap: 12px; }
.checks .i { width: 20px; height: 20px; color: var(--orange); stroke-width: 2.25; }

.call-panel { margin: 0; background: #fff; color: var(--text); border-radius: var(--r-lg); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45); overflow: hidden; }
.panel-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink); }
.panel-note { font-weight: 500; color: var(--muted); background: var(--wash); padding: 4px 10px; border-radius: 999px; font-size: 14px; }
.call-list { list-style: none; margin: 0; padding: 8px 24px 16px; position: relative; }
.call-row { position: relative; display: grid; grid-template-columns: 44px 1fr auto; gap: 16px; align-items: start; padding: 16px 0; }
/* Connector from the bottom of each icon to the top of the next one, whatever the row height. */
.call-row:not(:last-child)::after { content: ""; position: absolute; left: 21px; top: 60px; bottom: -16px; width: 2px; background: var(--line); }
.call-ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--wash); color: var(--ink); position: relative; z-index: 1; }
.call-row:nth-child(2) .call-ico { background: var(--navy); color: #fff; }
.call-row:last-child .call-ico { background: var(--ok-bg); color: var(--ok); }
.call-title { color: var(--ink); font-weight: 600; font-size: 17px; line-height: 1.35; padding-top: 2px; }
.call-sub { font-size: 15px; color: var(--muted); margin-top: 2px; }
.call-time { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 4px; white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  .js .call-row { opacity: 0; transform: translateY(8px); animation: rowIn .7s var(--ease) forwards; animation-delay: calc(.35s + var(--n) * .45s); }
  @keyframes rowIn { to { opacity: 1; transform: none; } }
}

/* sections */
.section { padding: var(--sec) 0; }
.wash { background: var(--wash); }
.section-head { max-width: 680px; }
.section-head p { margin-top: 20px; font-size: 19px; color: var(--text); }
.section-head + * { margin-top: clamp(48px, 5vw, 64px); }
.more { margin-top: 40px; }
.two-col { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 104px); align-items: start; }
.two-col > .section-head + * { margin-top: 0; }

/* problem and fix */
.pairs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(24px, 3vw, 40px); }
.pair { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
.vignette { list-style: none; margin: 0; padding: 20px; background: var(--wash); border-radius: var(--r-lg); display: grid; gap: 6px; justify-items: stretch; }
.v-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; font-size: 16px; line-height: 1.3; }
.v-row .i { width: 20px; height: 20px; }
.v-label { flex: 1; min-width: 0; }
.v-meta { font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.v-before { color: var(--muted); border: 1.5px dashed var(--line-2); }
.v-before .v-label { text-decoration: line-through; text-decoration-color: rgba(90, 95, 128, .55); }
.v-after { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(26, 30, 73, .06), 0 6px 16px -8px rgba(26, 30, 73, .18); }
.v-after .i { color: var(--ok); }
.v-after .v-meta { font-weight: 500; color: var(--muted); }
.v-arrow { display: grid; place-items: center; color: var(--line-2); height: 18px; }
.v-arrow .i { width: 18px; height: 18px; }
.pair h3 { margin-top: 28px; }
.pair-problem { margin-top: 10px; color: var(--muted); }
.pair-fix { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; gap: 12px; color: var(--ink); font-size: 17px; }
.pair-fix .i { color: var(--orange-text); width: 20px; height: 20px; margin-top: 3px; stroke-width: 2.25; }

/* the call path */
.flow { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; position: relative; }
.flow-step:not(:last-child)::after { content: ""; position: absolute; top: 27px; left: 72px; right: -16px; height: 2px; background: repeating-linear-gradient(90deg, var(--line-2) 0 8px, transparent 8px 14px); }
.flow-step { position: relative; }
.flow-ico { --ring: var(--bg); width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--ink); box-shadow: 0 0 0 1px var(--line-2), 0 0 0 8px var(--ring); }
.wash .flow-ico { --ring: var(--wash); }
.flow-5 .flow-step:nth-child(3) .flow-ico { background: var(--navy); color: #fff; box-shadow: 0 0 0 8px var(--ring); }
.flow-step h3 { margin-top: 24px; font-size: 18px; }
.flow-step p { margin-top: 8px; font-size: 16px; color: var(--muted); }

/* Midnight */
.split-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.shots { margin: 48px 0 0; display: grid; gap: 24px; }
.shots-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.shots img { width: 100%; height: auto; border-radius: var(--r); border: 1px solid var(--line-2); box-shadow: var(--shadow); background: #fff; }
@media (max-width: 720px) { .shots-2 { grid-template-columns: minmax(0, 1fr); } }
.feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); margin-top: 56px; }
.feat .i { width: 26px; height: 26px; color: var(--ink); }
.feat h3 { margin-top: 16px; }
.feat p { margin-top: 8px; color: var(--muted); }

/* property types */
.types { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 12px; }
.types li { display: flex; align-items: center; gap: 14px; padding: 16px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); font-weight: 500; line-height: 1.35; }
.types span { text-wrap: balance; }
.types .i { color: var(--ink); }

/* trust and team */
.trust { list-style: none; margin: 0; padding: 0; }
.trust li { display: flex; gap: 18px; padding: 24px 0; border-top: 1px solid var(--line); }
.trust li:last-child { border-bottom: 1px solid var(--line); }
.trust .i { width: 26px; height: 26px; color: var(--ink); margin-top: 1px; }
.trust p { margin-top: 6px; color: var(--muted); }
.team { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 16px; }
.team li { display: flex; align-items: center; gap: 16px; }
.team img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--wash); }
.who { color: var(--ink); font-weight: 600; }
.role { font-size: 15px; color: var(--muted); }

/* testimonial slot */
.quote { margin: 0 auto; max-width: 860px; text-align: center; }
.i-quote { width: 40px; height: 40px; color: var(--muted); margin: 0 auto; }
.quote blockquote { margin: 24px 0 0; }
.quote blockquote p { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.4; color: var(--ink); font-weight: 500; letter-spacing: -0.015em; }
.quote figcaption { margin-top: 28px; display: grid; gap: 2px; }
.q-name { color: var(--ink); font-weight: 600; }
.q-role { font-size: 15px; color: var(--muted); }

/* services list */

/* closing */
.closing { padding: clamp(24px, 3vw, 40px) 0 var(--sec); }
.close-panel { background: var(--navy); color: var(--on-navy-2); border-radius: 24px; padding: clamp(32px, 5vw, 72px); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.close-copy { max-width: 460px; }
.close-copy h2 { color: var(--on-navy); }
.close-copy p { margin-top: 20px; font-size: 19px; }
.close-contact { list-style: none; padding: 28px 0 0; margin: 36px 0 0; display: grid; gap: 16px; border-top: 1px solid var(--navy-line); }
.close-contact li { display: flex; align-items: center; gap: 12px; color: var(--on-navy); font-weight: 600; }
.close-contact .i { color: var(--orange); }
.close-contact a { padding: 8px 0; margin: -8px 0; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .3); text-underline-offset: 5px; }
.close-form { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; }
.close-form .field { gap: 10px; }
.close-form .field label { color: #fff; }
.close-form .field input { border-color: transparent; }
.close-form .field input:hover { border-color: transparent; }
.close-form .field input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(243, 115, 33, .35); }
.close-form .btn { margin-top: 12px; min-height: 56px; }
.close-form .form-note { margin-top: -6px; color: var(--on-navy-2); }
.field { display: grid; gap: 8px; }
.field label { font-size: 15px; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea { font: 400 17px/1.4 var(--font); color: var(--ink); background: #fff; border: 1.5px solid var(--line-2); border-radius: 10px; padding: 12px 14px; min-height: 50px; width: 100%; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: #B9BDD3; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(26, 30, 73, .15); }
.close-form .btn, .form-note { grid-column: 1 / -1; }
.form-note { font-size: 14px; color: var(--muted); text-align: center; text-wrap: balance; }


/* title band (inner pages) */
.page-title { background: var(--navy); color: var(--on-navy-2); padding: clamp(48px, 6vw, 88px) 0 clamp(56px, 7vw, 96px); }
.pt-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.page-title h1 { color: var(--on-navy); max-width: 14ch; }
.page-title .lede { font-size: 20px; line-height: 1.6; padding-top: 10px; }
.page-title .actions { margin-top: 28px; }
@media (max-width: 960px) { .pt-grid { grid-template-columns: minmax(0, 1fr); } .page-title .lede { padding-top: 0; } }
.section-head + .trust { margin-top: 40px; }
.call-panel.on-light { border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(26, 30, 73, .04), 0 24px 48px -24px rgba(26, 30, 73, .16); align-self: start; }

/* procedures panel (concierge) */
.proc-list { list-style: none; margin: 0; padding: 8px 24px; }
.proc-list li { display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: start; padding: 16px 0; }
.proc-list li + li { border-top: 1px solid var(--line); }
.proc-list .i { width: 20px; height: 20px; margin-top: 3px; color: var(--orange-text); stroke-width: 2.25; }
.proc-t { color: var(--ink); font-weight: 600; font-size: 17px; line-height: 1.35; }
.proc-d { font-size: 15px; color: var(--muted); margin-top: 2px; }
.proc-foot { display: flex; align-items: center; gap: 10px; padding: 14px 24px; background: var(--wash); border-top: 1px solid var(--line); font-size: 14px; color: var(--ink); font-weight: 500; }
.proc-foot .i { width: 18px; height: 18px; color: var(--ok); }

/* step flow with four steps */
.flow-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; color: var(--ink); font-weight: 600; font-size: 19px; line-height: 1.35; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover .i-plus { background: var(--wash); }
.i-plus { width: 36px; height: 36px; padding: 8px; border-radius: 50%; border: 1px solid var(--line-2); transition: transform .3s var(--ease), background-color .2s; }
.faq-item[open] .i-plus { transform: rotate(45deg); }
.faq-item p { padding: 0 56px 24px 0; color: var(--text); }

/* services page */
.ticks { list-style: none; margin: 14px 0 0; padding: 0; }
.ticks li { display: flex; gap: 12px; padding: 10px 0; color: var(--ink); font-size: 17px; line-height: 1.45; }
.ticks li + li { border-top: 1px solid var(--line-2); }
.ticks .i { width: 20px; height: 20px; color: var(--orange-text); stroke-width: 2.25; margin-top: 2px; }
.best { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line-2); font-size: 16px; color: var(--text); }
.best span { display: block; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.bespoke { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: clamp(28px, 3vw, 40px); border: 1px solid var(--line-2); border-radius: var(--r-lg); margin-top: clamp(24px, 3vw, 40px); }
.bespoke h2 { font-size: 24px; }
.bespoke p { margin-top: 6px; color: var(--text); }
@media (max-width: 960px) {
  .bespoke { grid-template-columns: minmax(0, 1fr); }
}

/* about page */
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 104px); }
.mv h2 { font-size: clamp(28px, 3vw, 38px); }
.mv p { margin-top: 16px; max-width: 32em; }
.commit { list-style: none; margin: clamp(48px, 6vw, 72px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.commit li { display: flex; gap: 14px; align-items: flex-start; padding: 24px; background: var(--wash); border-radius: var(--r-lg); color: var(--ink); font-weight: 500; line-height: 1.45; }
.commit .i { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.person { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(28px, 3vw, 36px); }
.person img { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; }
.person h3 { margin-top: 24px; font-size: 21px; }
.person .role { margin-top: 2px; color: var(--muted); font-weight: 500; font-size: 15px; }
.person .bio { margin-top: 14px; font-size: 16px; color: var(--text); }
.rules { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(40px, 7vw, 104px); }
.rules li { padding: 26px 0; border-top: 1px solid var(--line); }
.rules h3 { font-size: 20px; }
.rules p { margin-top: 6px; color: var(--muted); }
@media (max-width: 720px) { .rules { grid-template-columns: minmax(0, 1fr); } }
.ticks-plain { margin-top: 28px; }
.ticks-plain li { border: 0 !important; padding: 6px 0; }
.note-card { background: var(--wash); border-radius: var(--r-lg); padding: clamp(28px, 3.5vw, 44px); align-self: start; }
.note-card h3 { font-size: 21px; }
.note-card p { margin-top: 10px; color: var(--text); }
.note-card .btn { margin-top: 24px; background: #fff; }
@media (max-width: 960px) {
  .mv, .commit, .people { grid-template-columns: minmax(0, 1fr); }
}

.note-card h3 { display: flex; align-items: center; gap: 12px; margin-top: 0; }
.note-card h3 .i { width: 24px; height: 24px; }

/* contact page */
.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; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 7fr); gap: clamp(48px, 7vw, 112px); align-items: start; }
.contact-h { font-size: 24px; }
.contact-details { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid var(--line); }
.contact-details li { display: grid; grid-template-columns: 24px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-details .i { width: 22px; height: 22px; margin-top: 2px; color: var(--ink); }
.cd-label { font-size: 14px; font-weight: 600; color: var(--muted); }
.cd-value { margin-top: 2px; font-size: 17px; font-weight: 600; color: var(--ink); }
.cd-value a { color: inherit; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; }
.cd-value a:hover { text-decoration-color: currentColor; }
.cd-note { margin-top: 2px; font-size: 15px; color: var(--text); }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 28px; }
.contact-form h2 { grid-column: 1 / -1; font-size: clamp(26px, 2.6vw, 34px); }
.form-intro { grid-column: 1 / -1; margin-top: -18px; font-size: 15px; color: var(--muted); }
.field-full, .contact-form .btn { grid-column: 1 / -1; }
.contact-form .btn { margin-top: 8px; min-height: 56px; justify-self: start; width: auto; padding: 0 40px; }
.contact-form .form-note { text-align: left; margin-top: -10px; }
.field label span { color: var(--orange-text); }
.field textarea { resize: vertical; min-height: 140px; }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }
.select .i { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .contact-form { grid-template-columns: minmax(0, 1fr); } .contact-form .btn { width: 100%; justify-self: stretch; } }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 40px; font-size: 16px; color: var(--muted); }
.foot-grid { display: grid; grid-template-columns: 2fr 1.4fr 1fr 1.4fr; gap: 40px; }
.site-footer .brand { color: var(--ink); }
.foot-brand p { margin-top: 18px; max-width: 30ch; }
.foot-h { font-size: 14px; font-weight: 600; color: var(--ink); letter-spacing: 0; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; display: inline-block; padding: 4px 0; margin: -4px 0; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.foot-legal { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; }

/* responsive */
@media (max-width: 960px) {
  .hero-grid, .two-col, .close-panel { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { max-width: 16ch; }
  .pairs, .feats { grid-template-columns: minmax(0, 1fr); }
  .pair { padding-top: 24px; }
  .flow { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .flow-step:not(:last-child)::after { top: 72px; bottom: 8px; left: 27px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--line-2) 0 8px, transparent 8px 14px); }
  .pairs { row-gap: 48px; } .pair { grid-row: auto; display: flex; flex-direction: column; }
  .flow-step { display: grid; grid-template-columns: 56px 1fr; column-gap: 20px; padding-bottom: 28px; }
  .flow-ico { grid-row: span 2; }
  .flow-step h3 { margin-top: 14px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .types, .close-form { grid-template-columns: minmax(0, 1fr); }
  .types { grid-auto-rows: auto; }
  .actions .btn { width: 100%; }
  .call-list { padding: 4px 16px 12px; }
  .panel-head { padding: 14px 16px; }
  .call-row { grid-template-columns: 40px 1fr; }
  .call-ico { width: 40px; height: 40px; }
  /* The time sits on its own 20px line above the title, so each icon starts 40px into its row
     (16px padding + 20px time + 4px gap). The connector runs from icon bottom to the next icon top. */
  .call-row { row-gap: 4px; }
  .call-row:not(:last-child)::after { left: 19px; top: 80px; bottom: -40px; }
  .call-time { grid-column: 2; padding-top: 0; order: -1; font-size: 13px; line-height: 20px; }
  .close-panel { border-radius: 16px; margin: 0 calc(var(--gut) * -0.5); }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .site-footer ul { gap: 4px; }
  .site-footer a { padding: 10px 0; margin: 0; }
  .bespoke .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* Enquiry forms (served by Midnight): spam trap, sent and error messages, invalid fields. */
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { grid-column: 1 / -1; border-radius: 10px; padding: 12px 14px; font-size: 15px; line-height: 1.45; }
.form-status p { margin: 0 0 4px; font-weight: 600; }
.form-status ul { margin: 0; padding-left: 18px; }
.form-status-ok { background: #E7F5EC; color: #14532D; border: 1.5px solid #9AD3AE; }
.form-status-error { background: #FDECEC; color: #7F1D1D; border: 1.5px solid #F2A8A8; }
.field [aria-invalid="true"], .close-form .field [aria-invalid="true"] { border-color: #C2410C; }
.close-form .field [aria-invalid="true"] { box-shadow: 0 0 0 2px #FCA5A5; }

/* Legal pages (privacy policy): a readable single column. */
.legal { padding-top: clamp(48px, 6vw, 80px); }
.legal-body { max-width: 760px; }
.legal-body h2 { font-size: clamp(22px, 2.2vw, 26px); line-height: 1.25; letter-spacing: -0.015em; margin: 44px 0 14px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li, .legal-body address { font-size: 17px; line-height: 1.7; color: var(--text); }
.legal-body p + p { margin-top: 14px; }
.legal-body ul { margin: 14px 0 0; padding-left: 22px; }
.legal-body li + li { margin-top: 6px; }
.legal-body address { font-style: normal; }
.legal-body a { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(26, 30, 73, .35); text-underline-offset: 3px; }

/* Footer legal row: privacy link and build credit. */
.foot-legal-links { display: inline-flex; gap: 6px 16px; flex-wrap: wrap; align-items: baseline; }
.foot-legal-links a { padding: 0; margin: 0; display: inline; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }

/* Auto-linked phone numbers and emails on navy (page titles, hero, closing panel): white text, so the
   link doesn't disappear into the background and leave only its underline showing. */
.page-title .link, .hero .link, .close-panel .link { color: var(--on-navy); text-decoration-color: var(--navy-line); }
.page-title .link:hover, .hero .link:hover, .close-panel .link:hover { text-decoration-color: var(--orange); }

/* Footer always at the bottom: the page is a column and main takes any spare height. A page that is
   only a title panel (the 404) stretches that navy panel to fill, with its content centred. */
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; display: flex; flex-direction: column; }
body > main > * { flex-shrink: 0; }
body > main > .page-title:only-child { flex: 1 0 auto; display: flex; align-items: center; }
body > main > .page-title:only-child > .wrap { width: 100%; }

/* Privacy policy: contents list beside the text on wide screens, sticky below the header. */
.legal-grid { display: grid; grid-template-columns: minmax(0, 760px) minmax(220px, 280px); justify-content: space-between; gap: 48px; align-items: start; }
.legal-grid .legal-body { grid-column: 1; grid-row: 1; }
.legal-toc { grid-column: 2; grid-row: 1; position: sticky; top: 104px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--wash); font-size: 15px; }
.legal-toc-h { margin: 0 0 10px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.legal-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.legal-toc a { display: block; padding: 4px 0; color: var(--text); text-decoration: none; line-height: 1.4; }
.legal-toc a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 960px) {
  .legal-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .legal-toc { grid-column: 1; grid-row: 1; position: static; }
  .legal-grid .legal-body { grid-row: 2; }
}

/* Integrations page */
.int-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.int-card { padding: 26px 26px 28px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.int-tag { margin: 0 0 14px; display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--wash); color: var(--ink); font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.int-card h3 { font-size: 22px; }
.int-card p:last-child { margin-top: 8px; color: var(--muted); }
.int-note { margin-top: 20px; font-size: 14px; color: var(--muted); }
.int-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.int-panel { padding: clamp(28px, 4vw, 48px); border: 1px solid var(--line); border-radius: 16px; background: var(--bg); display: flex; flex-direction: column; }
.int-panel .section-head p { font-size: 18px; }
.int-panel .actions { margin-top: auto; padding-top: 28px; }
@media (max-width: 860px) { .int-pair { grid-template-columns: minmax(0, 1fr); } }
.section-head + .int-grid { margin-top: clamp(40px, 4vw, 56px); }
.int-panel .section-head h2 { font-size: clamp(26px, 2.6vw, 34px); }
@media (min-width: 961px) { .two-col > .proc-panel { position: sticky; top: 104px; } }

/* Testimonials page and the home page link to it */
.testi-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 24px; }
.testi-card { position: relative; padding: 32px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); display: flex; flex-direction: column; transition: border-color .2s, box-shadow .2s; }
.testi-card:hover { border-color: var(--line-2); box-shadow: 0 10px 30px rgba(26, 30, 73, .08); }
.testi-card .i-quote { width: 28px; height: 28px; color: var(--orange); margin: 0; }
.testi-card.has-photo { padding-top: 0; overflow: hidden; }
.testi-card-photo { display: block; width: calc(100% + 64px); max-width: none; margin: 0 -32px 24px; aspect-ratio: 16 / 9; object-fit: cover; }
.testi-card h2 { margin-top: 18px; font-size: 22px; line-height: 1.3; }
.testi-card h2 a { color: var(--ink); text-decoration: none; }
/* The whole card is the link's click area. */
.testi-card h2 a::after { content: ""; position: absolute; inset: 0; border-radius: 16px; }
.testi-card h2 a:focus-visible { outline: none; }
.testi-card:has(h2 a:focus-visible) { outline: 3px solid var(--orange); outline-offset: 3px; }
.testi-excerpt { margin-top: 14px; color: var(--text); }
.testi-who { margin-top: 22px; display: grid; gap: 2px; }
.testi-more { margin-top: auto; padding-top: 22px; display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; }
.testi-more .i { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.testi-card:hover .testi-more .i { transform: translateX(3px); }
.testi-title .wrap { max-width: var(--wrap); }
.testi-title h1 { max-width: 22ch; }
.testi-title .lede { margin-top: 18px; }
.testi-back { margin: 0 0 24px; }
.testi-back a { color: var(--on-navy-2); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; font-size: 15px; }
.testi-back a:hover { color: var(--on-navy); }
.testi-back .i-back { width: 16px; height: 16px; transform: rotate(180deg); }
.testi-body:first-child { margin-top: 0; }
.testi-photo { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; }
.testi-photo + .testi-body { margin-top: 32px; }
.testi-layout { display: grid; gap: 32px; align-items: start; }
@media (min-width: 961px) {
  .testi-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; }
  .testi-side { position: sticky; top: 104px; }
}
.testi-side { display: grid; gap: 24px; }
.side-cta { padding: 28px; border-radius: 16px; background: var(--navy); color: var(--on-navy-2); display: grid; gap: 14px; justify-items: start; }
.side-cta-title { color: var(--on-navy); font-size: 20px; font-weight: 600; line-height: 1.3; }
.side-cta p { margin: 0; }
.side-cta .btn { width: 100%; justify-content: center; }
.side-cta-call { font-size: 15px; }
.side-cta .link { color: var(--on-navy); }
.quote-more { text-align: center; margin-top: 28px; }
.testi { padding: clamp(28px, 4vw, 56px); border: 1px solid var(--line); border-radius: 16px; background: var(--bg); }
.testi-body { margin-top: 24px; }
.testi-body p, .testi-body li { font-size: 17px; line-height: 1.75; color: var(--text); }
.testi-body p + p, .testi-body ul + p, .testi-body p + ul { margin-top: 16px; }
.testi-body ul { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.testi-by { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; gap: 16px; align-items: center; }
.testi-by .i-quote { width: 28px; height: 28px; color: var(--orange); flex-shrink: 0; margin: 0; }
.testi-by .q-name, .testi-by .q-role { margin: 0; }

/* Field errors sit under their field; long editable headings wrap instead of overflowing on phones. */
.field-error { margin: 2px 0 0; color: #B91C1C; font-size: 15px; }
.close-form .field-error { color: #FECACA; }
h1, h2, h3 { overflow-wrap: break-word; }
.close-form .field label span, .close-form .form-note span { color: #FDBA74; }
.form-status:focus { outline: none; }
