/* Affordable Abot-Kaya — site styles. All values come from tokens.css. */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--surface); color: var(--ink); font: 400 16px/1.6 var(--font-sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--steel); text-underline-offset: 3px; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.on-dark :focus-visible, .section--navy :focus-visible, .site-footer :focus-visible, .panel :focus-visible, .hero :focus-visible, .page-hero :focus-visible, .bigword :focus-visible, .site-header:not(.is-scrolled) .nav :focus-visible { outline-color: var(--sky); }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--navy); color: var(--on-navy); padding: 10px 16px; border-radius: var(--radius-sm); }
.skip:focus { top: 16px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: var(--space-9); }
.section--sunken { background: var(--surface-sunken); }
.section--white { background: var(--surface-raised); }
.section--navy { background: var(--navy); color: var(--on-navy); }
.section--tight { padding-block: var(--space-8); }

/* ---------- Type ---------- */
.display-xl, .display-lg, .heading-md, .heading-sm { font-family: var(--font-display); font-stretch: 112%; font-weight: 800; letter-spacing: -0.015em; text-wrap: balance; }
.display-xl { font-size: clamp(44px, 6.2vw, 80px); line-height: 0.98; letter-spacing: -0.02em; }
.display-lg { font-size: clamp(38px, 4.8vw, 60px); line-height: 1.02; }
.heading-md { font-size: clamp(30px, 3.2vw, 42px); line-height: 1.08; }
.heading-sm { font-size: 22px; line-height: 1.2; font-weight: 700; font-stretch: 108%; letter-spacing: -0.005em; }
.lead { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.6; color: var(--ink-muted); max-width: 58ch; }
.muted { color: var(--ink-muted); }
.section--navy .muted, .section--navy .lead { color: var(--on-navy-muted); }
.label { font: 600 13px/1.35 var(--font-sans); letter-spacing: 0.01em; color: var(--ink-muted); }
.eyebrow { display: inline-flex; align-items: center; gap: var(--space-2); font: 700 15px/1.35 var(--font-sans); letter-spacing: 0.005em; color: var(--brick-text); }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; }
.section--navy .eyebrow, .on-dark .eyebrow { color: var(--sky); }
.stack { display: flex; flex-direction: column; gap: var(--space-4); }
.stack--lg { gap: var(--space-5); }
.head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-5) var(--space-7); margin-bottom: var(--space-7); }
.head-row > .stack { max-width: 680px; }
.center { text-align: center; align-items: center; margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn { --_bg: var(--brick); --_fg: var(--on-brick); --_disc: var(--on-brick); --_discfg: var(--brick);
  display: inline-flex; align-items: center; gap: var(--space-3); min-height: 50px; padding: 6px 6px 6px 22px;
  border-radius: var(--radius-pill); border: 1.5px solid transparent; background: var(--_bg); color: var(--_fg);
  font: 600 15px/1 var(--font-sans); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .18s ease, color .18s ease, border-color .18s ease; }
.btn__arrow { width: 38px; height: 38px; flex: none; border-radius: var(--radius-pill); background: var(--_disc); color: var(--_discfg); display: grid; place-items: center; transition: transform .2s ease; }
.btn__arrow svg { width: 16px; height: 16px; }
.btn:hover { --_bg: var(--maroon); }
.btn:hover .btn__arrow { transform: rotate(-45deg); }
.btn--outline { --_bg: transparent; --_fg: var(--ink); --_disc: var(--ink); --_discfg: var(--surface-raised); border-color: var(--line-strong); }
.btn--outline:hover { --_bg: var(--surface-raised); border-color: var(--ink); }
.btn--light { --_bg: var(--on-navy); --_fg: var(--navy); --_disc: var(--brick); --_discfg: var(--on-brick); }
.btn--light:hover { --_bg: var(--sky); --_fg: var(--on-sky); }
.btn--ghost-light { --_bg: transparent; --_fg: var(--on-navy); --_disc: var(--on-navy); --_discfg: var(--navy); border-color: rgba(255, 255, 255, 0.5); }
.btn--ghost-light:hover { --_bg: rgba(255, 255, 255, 0.1); border-color: var(--on-navy); }
.btn--sm { min-height: 42px; font-size: 14px; padding-left: 18px; }
.btn--sm .btn__arrow { width: 32px; height: 32px; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.text-link { font-weight: 600; color: var(--steel); display: inline-flex; align-items: center; gap: 6px; }
.text-link::after { content: "→"; transition: transform .18s ease; }
.text-link:hover::after { transform: translateX(3px); }

/* ---------- Tags & chips ---------- */
.tag { display: inline-flex; align-items: center; gap: var(--space-1); padding: 4px 10px; border-radius: var(--radius-sm); background: var(--sky-tint); color: var(--ink); font: 500 13px/1.3 var(--font-sans); }
.tag--code { font: 600 12px/1.3 var(--font-sans); font-variant-numeric: tabular-nums; background: transparent; border: 1px solid var(--line-strong); color: var(--ink-muted); }
.tag--trade { background: transparent; color: var(--steel); padding-inline: 0; }
.tag--trade::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sky); }
.tag--quote { background: var(--brick-tint); color: var(--brick-text); font-weight: 700; }
.chip { display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px; border-radius: var(--radius-pill); border: 1.5px solid var(--line); background: var(--surface-raised); color: var(--ink); font: 500 14px/1 var(--font-sans); cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.chip:hover { border-color: var(--line-strong); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--on-navy); }
.chip-list { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.pill-list li { padding: 8px 16px; border-radius: var(--radius-pill); background: var(--surface-raised); border: 1px solid var(--line); font-weight: 500; }

/* ---------- Tape measure ---------- */
.tape { height: 34px; border-radius: var(--radius-sm); background-color: var(--sky);
  background-image: linear-gradient(to right, var(--on-sky) 1.5px, transparent 1.5px), linear-gradient(to right, var(--on-sky) 1px, transparent 1px), linear-gradient(to right, var(--on-sky) 1px, transparent 1px);
  background-size: 80px 60%, 40px 40%, 10px 22%; background-repeat: repeat-x; background-position: 12px 0; position: relative; overflow: hidden; }
.tape__nums { position: absolute; inset: auto 0 4px 0; display: flex; padding-left: 16px; font: 600 10px/1 var(--font-sans); font-variant-numeric: tabular-nums; color: var(--on-sky); }
.tape__nums span { flex: none; width: 80px; }
.tape--thin { height: 14px; background-size: 80px 100%, 40px 70%, 10px 40%; }

/* ---------- Header: glass pill with a round logo badge, quote button and menu button ---------- */
.site-header { position: fixed; z-index: 50; top: 0; left: 0; right: 0; padding: calc(24px + env(safe-area-inset-top, 0px)) var(--gutter) 0; pointer-events: none; transition: padding .4s ease; }
.header-bar { max-width: 1320px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); }
.nav { pointer-events: auto; position: relative; display: flex; align-items: center; gap: 24px; min-height: 76px; padding: 10px 34px 10px 10px; border-radius: var(--radius-pill);
  color: var(--on-navy); background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.42);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  transition: background-color .4s ease, border-color .4s ease, box-shadow .4s ease, min-height .4s ease, padding .4s ease, color .4s ease; }
/* The round logo forms the pill's rounded left end, standing slightly proud of it */
.brand { flex: none; display: grid; place-items: center; width: 98px; height: 98px; margin-block: -21px; transition: width .4s ease, height .4s ease, margin .4s ease; }
.brand img { width: 100%; height: auto; filter: drop-shadow(0 6px 14px rgba(5, 13, 22, 0.35)); transition: filter .4s ease; }
.nav__divider { flex: none; width: 1px; align-self: stretch; margin-block: 8px; background: rgba(255, 255, 255, 0.4); transition: background-color .4s ease; }
.nav__links { display: flex; align-items: center; gap: 30px; margin: 0; padding: 0; list-style: none; }
.nav__links > li { position: relative; }
.nav__links > li > a { display: inline-flex; align-items: center; gap: 5px; color: inherit; text-decoration: none; font: 500 15px/1 var(--font-sans); padding-block: 9px; border-bottom: 2px solid transparent; transition: border-color .2s ease; }
.nav__links > li > a:hover { border-bottom-color: rgba(255, 255, 255, 0.55); }
.nav__links > li > a[aria-current="page"] { border-bottom-color: var(--sky); }
.chev { width: 14px; height: 14px; transition: transform .2s ease; }
.has-drop:hover .chev, .has-drop:focus-within .chev { transform: rotate(180deg); }
.navdrop { position: absolute; top: calc(100% + 26px); left: -28px; width: 600px; padding: 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; border-radius: 22px; background: var(--surface-raised); color: var(--ink); box-shadow: var(--shadow-lift); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s; }
.navdrop::before { content: ""; position: absolute; left: 0; right: 0; top: -28px; height: 28px; }
.has-drop:hover .navdrop, .has-drop:focus-within .navdrop { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.navdrop a { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 14px; color: inherit; text-decoration: none; }
.navdrop a:hover, .navdrop a:focus-visible { background: var(--surface-sunken); }
.navdrop .icon-disc { width: 44px; height: 44px; }
.navdrop .icon-disc svg { width: 21px; height: 21px; }
.navdrop strong { display: block; font: 700 15px/1.25 var(--font-sans); }
.navdrop small { display: block; font-size: 13px; color: var(--ink-muted); margin-top: 2px; }
.navdrop .navdrop__all { grid-column: 1 / -1; justify-content: center; margin-top: 4px; background: var(--surface-sunken); font-weight: 600; color: var(--steel); }

.header-actions { pointer-events: auto; display: flex; align-items: center; gap: 14px; }
.btn--quote { --_disc: var(--navy); --_discfg: var(--on-navy); min-height: 60px; padding: 8px 8px 8px 28px; font-size: 15px; box-shadow: 0 10px 26px rgba(179, 20, 27, 0.3); }
.btn--quote .btn__arrow { width: 44px; height: 44px; }
.btn--quote:hover .btn__arrow { transform: rotate(45deg); }
.grid-btn { width: 62px; height: 62px; flex: none; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.18); background: var(--navy); color: var(--on-navy); display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 26px rgba(5, 13, 22, 0.3); transition: transform .2s ease, background-color .2s ease; }
.grid-btn svg { width: 22px; height: 22px; }
.grid-btn:hover { background: var(--maroon); transform: rotate(90deg); }

/* Scrolled: the bar tightens and turns solid frosted white */
.site-header.is-scrolled { padding-top: calc(10px + env(safe-area-inset-top, 0px)); }
.site-header.is-scrolled .nav { min-height: 62px; padding-block: 6px; color: var(--ink); background: rgba(255, 255, 255, 0.86); border-color: rgba(214, 222, 230, 0.9); box-shadow: var(--shadow-lift); }
.site-header.is-scrolled .brand { width: 66px; height: 66px; margin-block: -8px; }
.site-header.is-scrolled .brand img { filter: drop-shadow(0 3px 8px rgba(15, 33, 51, 0.18)); }
.site-header.is-scrolled .nav__divider { background: var(--line); }
.site-header.is-scrolled .nav__links > li > a:hover { border-bottom-color: var(--line-strong); }
.site-header.is-scrolled .nav__links > li > a[aria-current="page"] { border-bottom-color: var(--brick); }
.site-header.is-scrolled .btn--quote { min-height: 52px; padding-block: 5px; }
.site-header.is-scrolled .btn--quote .btn__arrow { width: 40px; height: 40px; }
.site-header.is-scrolled .grid-btn { width: 54px; height: 54px; }

@media (max-width: 1120px) { .nav__links { gap: 22px; } .nav { padding-right: 26px; gap: 18px; } }
@media (max-width: 1000px) {
  .nav, .site-header.is-scrolled .nav { padding: 0; min-height: 0; background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav__links, .nav__divider { display: none; }
  .brand { width: 78px; height: 78px; margin: 0; }
  .site-header.is-scrolled .brand { width: 58px; height: 58px; margin: 0; }
  .btn--quote { min-height: 52px; padding-left: 20px; }
  .btn--quote .btn__arrow { width: 38px; height: 38px; }
  .grid-btn { width: 52px; height: 52px; }
  .site-header.is-scrolled .grid-btn { width: 50px; height: 50px; }
}
@media (max-width: 380px) { .btn--quote { padding-left: 16px; gap: 8px; font-size: 14px; } .header-actions { gap: 8px; } }

/* ---------- Slide-out panel (menu, contact details) ---------- */
.panel { position: fixed; inset: 0; z-index: 80; }
.panel__scrim { position: absolute; inset: 0; background: rgba(5, 13, 22, 0.55); opacity: 0; transition: opacity .35s ease; }
.panel__sheet { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); overflow-y: auto; background: var(--navy); color: var(--on-navy);
  padding: calc(28px + env(safe-area-inset-top, 0px)) max(28px, env(safe-area-inset-right, 0px)) calc(28px + env(safe-area-inset-bottom, 0px)) 28px;
  display: flex; flex-direction: column; gap: var(--space-6); transform: translateX(100%); transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.panel.is-open .panel__scrim { opacity: 1; }
.panel.is-open .panel__sheet { transform: none; }
.panel__top { display: flex; justify-content: space-between; align-items: flex-start; }
.panel__logo { width: 150px; height: 150px; display: grid; place-items: center; }
.panel__logo img { width: 100%; height: auto; }
.panel__close { width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.35); background: transparent; color: var(--on-navy); display: grid; place-items: center; cursor: pointer; }
.panel__close svg { width: 20px; height: 20px; }
.panel__links { list-style: none; margin: 0; padding: 0; }
.panel__links a { display: flex; justify-content: space-between; align-items: center; padding: 13px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.12); color: var(--on-navy); text-decoration: none; font: 800 28px/1.1 var(--font-display); font-stretch: 112%; }
.panel__links a::after { content: "→"; font: 500 20px/1 var(--font-sans); color: var(--sky); opacity: 0; transform: translateX(-6px); transition: opacity .2s ease, transform .2s ease; }
.panel__links a:hover::after, .panel__links a[aria-current="page"]::after { opacity: 1; transform: none; }
.panel__links a[aria-current="page"] { color: var(--sky); }
.panel__about { color: var(--on-navy-muted); }
.panel__contact { margin: 0; display: flex; flex-direction: column; }
.panel__contact div { display: flex; justify-content: space-between; gap: var(--space-3); padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.12); font-size: 15px; }
.panel__contact dt { color: var(--on-navy-muted); }
.panel__contact dd { margin: 0; text-align: right; }
.panel__contact a { color: var(--on-navy); }
.socials { display: flex; gap: 10px; }
.socials a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.3); color: var(--on-navy); display: grid; place-items: center; transition: background-color .2s ease, color .2s ease; }
.socials a:hover { background: var(--on-navy); color: var(--navy); }
.socials svg { width: 18px; height: 18px; }
body.panel-open { overflow: hidden; }

/* ---------- Home hero: full-bleed photo, social rail, reviews cluster ---------- */
.hero { position: relative; overflow: hidden; display: flex; min-height: min(960px, 100svh); background: var(--navy); color: var(--on-navy); }
.hero__media { position: absolute; inset: 0; animation: hero-zoom 2.6s cubic-bezier(.2, .7, .2, 1) both; }
.hero__img { position: absolute; left: 0; top: -6%; width: 100%; height: 112%; object-fit: cover; will-change: transform; transform: translate3d(0, var(--py, 0px), 0); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(15, 33, 51, 0.9) 0%, rgba(15, 33, 51, 0.62) 42%, rgba(15, 33, 51, 0.12) 75%), linear-gradient(0deg, rgba(15, 33, 51, 0.55) 0%, transparent 35%); }
@keyframes hero-zoom { from { transform: scale(1.14); } to { transform: none; } }
.hero__inner { position: relative; z-index: 2; width: 100%; max-width: 1320px; margin: 0 auto; padding: 200px var(--gutter) 300px; padding-left: calc(var(--gutter) + clamp(0px, 8vw, 150px)); display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: var(--space-7); }
.hero__copy { display: flex; flex-direction: column; gap: var(--space-5); max-width: 820px; }
.hero__title { font: 800 clamp(44px, 5.7vw, 86px)/1.0 var(--font-display); font-stretch: 108%; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
.hero__lead { font-size: clamp(17px, 1.35vw, 19px); line-height: 1.6; color: #d7e0ea; max-width: 54ch; }
.hero__copy .eyebrow { color: var(--sky); }
.hero .rise { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero .rise:nth-child(2) { animation-delay: .12s; } .hero .rise:nth-child(3) { animation-delay: .24s; } .hero .rise:nth-child(4) { animation-delay: .36s; } .hero .rise:nth-child(5) { animation-delay: .48s; }
@keyframes rise { from { opacity: 0; transform: translateY(34px); } to { opacity: 1; transform: none; } }
.hero__social { position: absolute; z-index: 2; left: var(--gutter); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: 22px; }
.hero__social a { color: var(--on-navy); opacity: 0.85; transition: opacity .2s ease, transform .2s ease; }
.hero__social a:hover { opacity: 1; transform: scale(1.12); }
.hero__social svg { width: 20px; height: 20px; display: block; }
.hero__social .scroll-line { position: relative; width: 1px; height: 90px; margin-top: 6px; background: rgba(255, 255, 255, 0.45); }
.hero__social .scroll-line::after { content: ""; position: absolute; left: -3px; top: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--on-navy); animation: scroll-dot 2.4s ease-in-out infinite; }
@keyframes scroll-dot { 0% { top: 0; opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { top: 84px; opacity: 0; } }
.reviews-cluster { display: flex; align-items: center; gap: var(--space-4); padding: 14px 16px 14px 22px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.28); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: var(--on-navy); text-decoration: none; margin-bottom: 8px; transition: background-color .2s ease; }
.reviews-cluster:hover { background: rgba(255, 255, 255, 0.16); }
.reviews-cluster strong { display: block; font: 700 17px/1.2 var(--font-sans); }
.reviews-cluster .stars { color: #ffc531; margin-top: 4px; }
.reviews-cluster .stars svg { width: 17px; height: 17px; }
.faces { display: flex; }
.faces span { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--on-navy); display: grid; place-items: center; font: 700 14px/1 var(--font-sans); margin-left: -12px; }
.faces span:first-child { margin-left: 0; }
.faces span:nth-child(1) { background: var(--sky); color: var(--on-sky); }
.faces span:nth-child(2) { background: var(--brick); color: var(--on-brick); }
.faces span:nth-child(3) { background: var(--surface-raised); color: var(--navy); }
.faces span:nth-child(4) { background: var(--maroon); color: var(--on-navy); }
@media (max-width: 1100px) { .hero__inner { grid-template-columns: minmax(0, 1fr); } .reviews-cluster { justify-self: start; } }
@media (max-width: 760px) { .hero__social { display: none; } .hero__inner { padding: 150px var(--gutter) 230px; } }

/* ---------- Inner page banner ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--navy); color: var(--on-navy); padding: 200px 0 150px; }
.page-hero__img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover; will-change: transform; transform: translate3d(0, var(--py, 0px), 0); }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(15, 33, 51, 0.92) 0%, rgba(15, 33, 51, 0.72) 50%, rgba(15, 33, 51, 0.4) 100%); }
.page-hero > .container { position: relative; z-index: 2; }
.page-hero .lead { color: #d7e0ea; }
.page-hero .eyebrow { color: var(--sky); }
.page-hero .crumbs, .page-hero .crumbs a { color: var(--on-navy-muted); }
.page-hero .search label { color: var(--on-navy); }
.page-hero .search .help { color: var(--on-navy-muted); }
.page-hero .rise { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.page-hero .rise:nth-child(2) { animation-delay: .1s; } .page-hero .rise:nth-child(3) { animation-delay: .2s; } .page-hero .rise:nth-child(4) { animation-delay: .3s; }
.page-head__grid { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--space-6) var(--space-7); }
.page-head__grid > .stack { max-width: 780px; }
.crumbs { font: 500 14px/1.3 var(--font-sans); }
.crumbs a { color: inherit; }
@media (max-width: 760px) { .page-hero { padding: 140px 0 120px; } }

/* ---------- Ruler edge: the next section rises over the photo with tape-measure ticks on its rounded top ---------- */
.ruler-edge { position: relative; z-index: 3; margin-top: -76px; padding-top: 110px; background: var(--surface); border-radius: 56px 56px 0 0; }
.ruler-edge::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 50px; border-radius: 56px 56px 0 0; pointer-events: none;
  background-image: linear-gradient(to right, var(--sky) 2px, transparent 2px), linear-gradient(to right, rgba(15, 33, 51, 0.3) 1.5px, transparent 1.5px), linear-gradient(to right, rgba(15, 33, 51, 0.18) 1px, transparent 1px);
  background-size: 120px 100%, 40px 68%, 8px 40%; background-repeat: repeat-x; background-position: 34px 0, 34px 0, 34px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ruler-edge--navy { background: var(--navy); }
.ruler-edge--navy::before { background-image: linear-gradient(to right, var(--sky) 2px, transparent 2px), linear-gradient(to right, rgba(255, 255, 255, 0.35) 1.5px, transparent 1.5px), linear-gradient(to right, rgba(255, 255, 255, 0.2) 1px, transparent 1px); }
.ruler-edge--sunken { background: var(--surface-sunken); }
@media (max-width: 760px) { .ruler-edge { border-radius: 32px 32px 0 0; margin-top: -48px; padding-top: 84px; } .ruler-edge::before { border-radius: 32px 32px 0 0; height: 40px; } }

/* A photo card that breaks out of the hero over the ruler */
.breakout { position: absolute; z-index: 4; right: max(var(--gutter), calc((100% - 1320px) / 2 + var(--gutter))); top: -250px; width: clamp(280px, 30vw, 430px); padding: 10px; border-radius: 26px; background: var(--surface-raised); box-shadow: 0 30px 60px rgba(5, 13, 22, 0.3); transform: translate3d(0, var(--py, 0px), 0) rotate(-3deg); text-decoration: none; color: var(--ink); will-change: transform; transition: box-shadow .3s ease; }
.breakout .photo { aspect-ratio: 4 / 3; border-radius: 18px; }
.breakout .photo img { transition: transform .6s ease; }
.breakout:hover .photo img { transform: scale(1.05); }
.breakout__chip { position: absolute; left: 22px; bottom: 22px; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-radius: var(--radius-pill); background: var(--surface-raised); box-shadow: var(--shadow-card); font: 600 14px/1.2 var(--font-sans); }
.breakout__chip small { display: block; font-weight: 500; font-size: 12px; color: var(--ink-muted); }
.breakout__chip .btn__arrow { width: 34px; height: 34px; border-radius: 50%; background: var(--brick); color: var(--on-brick); display: grid; place-items: center; }
.breakout__chip .btn__arrow svg { width: 15px; height: 15px; }
@media (max-width: 1000px) { .breakout { position: relative; right: auto; top: auto; margin: -170px 0 var(--space-6) auto; width: min(78%, 420px); display: block; } }
@media (max-width: 760px) { .breakout { margin-top: -150px; margin-right: 14px; } }

/* ---------- Photos ---------- */
.photo { position: relative; overflow: hidden; border-radius: var(--radius-md); background: var(--surface-sunken); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--placeholder { display: grid; place-items: center; background:
  radial-gradient(circle at 50% 38%, var(--sky-tint) 0 18%, transparent 18.5%),
  radial-gradient(ellipse at 50% 92%, var(--sky-tint) 0 34%, transparent 34.5%), var(--surface-sunken); }
.photo--placeholder span { position: absolute; left: var(--space-3); bottom: var(--space-3); background: var(--surface-raised); color: var(--ink-muted); padding: 3px 8px; border-radius: var(--radius-sm); font: 600 12px/1.3 var(--font-sans); }

/* ---------- Stat cards ---------- */
.stat-card { display: grid; gap: var(--space-2); padding: var(--space-5); border-radius: var(--radius-md); background: var(--surface-raised); color: var(--ink); box-shadow: var(--shadow-lift); }
.stat-card__value { font: 800 58px/1 var(--font-display); font-stretch: 112%; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat-card__label { font-size: 15px; line-height: 1.4; color: var(--ink-muted); }

/* ---------- About: stacked photo, offset frame, overlapping stat card ---------- */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-8); align-items: center; }
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-8); align-items: center; padding-bottom: var(--space-9); }
.about__media { position: relative; padding: 0 0 56px 0; max-width: 560px; }
.about__frame { position: absolute; inset: 36px -24px 20px 36px; border: 2px solid var(--sky); border-radius: 30px; }
.about__photo { position: relative; aspect-ratio: 4 / 5; border-radius: 26px; width: 82%; box-shadow: var(--shadow-lift); }
.about__photo2 { position: absolute; right: 0; top: 18%; width: 46%; aspect-ratio: 1 / 1; border-radius: 22px; border: 8px solid var(--surface); box-shadow: var(--shadow-lift); }
.about__stat { position: absolute; left: 32px; bottom: 0; width: 250px; }
.stat-card__value .unit, .mini-stat .unit { color: var(--brick-text); }
.mini-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); }
.mini-stat { padding: 18px; border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--surface-raised); display: grid; gap: 4px; }
.mini-stat b { font: 800 40px/1 var(--font-display); font-stretch: 112%; font-variant-numeric: tabular-nums; }
.mini-stat span { font-size: 14px; line-height: 1.35; color: var(--ink-muted); }
.split--narrow { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); }
@media (max-width: 1000px) { .about { grid-template-columns: minmax(0, 1fr); gap: var(--space-7); } .about__media { max-width: 520px; } }
@media (max-width: 900px) { .split, .split--narrow { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); } }
@media (max-width: 480px) { .mini-stats { grid-template-columns: minmax(0, 1fr); } .about__stat { width: 210px; left: 12px; } .about__frame { inset: 30px -8px 20px 24px; } }

/* ---------- Sections that overlap the one above with a rounded top ---------- */
.overlap { position: relative; z-index: 2; margin-top: -56px; border-radius: 56px 56px 0 0; }
@media (max-width: 760px) { .overlap { margin-top: -32px; border-radius: 32px 32px 0 0; } }

/* ---------- Crossing service bands ---------- */
.crossing { position: relative; height: 190px; overflow: hidden; display: grid; place-items: center; }
.band { position: absolute; left: -5%; width: 110%; padding-block: 18px; overflow: hidden; }
.band--front { z-index: 2; background: var(--maroon); color: var(--on-navy); transform: rotate(-3deg); box-shadow: 0 14px 30px rgba(15, 33, 51, 0.18); }
.band--back { z-index: 1; background: var(--sky); color: var(--on-sky); transform: rotate(2.5deg); }
.band__track { display: flex; width: max-content; animation: ticker 52s linear infinite; }
.band--back .band__track { animation-direction: reverse; animation-duration: 60s; }
.band__track span { display: inline-flex; align-items: center; gap: 30px; padding-right: 30px; font: 800 26px/1 var(--font-display); font-stretch: 112%; text-transform: uppercase; letter-spacing: 0.01em; white-space: nowrap; }
.band--front .band__track span::after { content: "✦"; color: var(--sky); font-size: 20px; }
.band--back .band__track span { -webkit-text-stroke: 1.2px var(--on-sky); color: transparent; }
.band--back .band__track span::after { content: "✦"; -webkit-text-stroke: 0; color: var(--on-sky); font-size: 20px; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (max-width: 620px) { .crossing { height: 150px; } .band__track span { font-size: 20px; } }

/* ---------- Big outlined name over an aerial photo, with a featured review ---------- */
.bigword { position: relative; overflow: hidden; background: var(--navy); color: var(--on-navy); padding: var(--space-9) 0 var(--space-8); }
.bigword__img { position: absolute; left: 0; top: -15%; width: 100%; height: 130%; object-fit: cover; will-change: transform; transform: translate3d(0, var(--py, 0px), 0); }
.bigword::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(15, 33, 51, 0.55) 0%, rgba(15, 33, 51, 0.35) 45%, rgba(15, 33, 51, 0.85) 100%); }
.bigword > :not(.bigword__img) { position: relative; z-index: 2; }
.bigword__text { display: block; text-align: center; font: 900 clamp(64px, 13vw, 230px)/0.9 var(--font-display); font-stretch: 112%; letter-spacing: -0.02em; text-transform: uppercase; white-space: nowrap; color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, 0.7); user-select: none; }
.bigword__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--space-6); margin-top: var(--space-8); }
.feature-review { max-width: 520px; padding: var(--space-6); border-radius: 26px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.28); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); display: flex; flex-direction: column; gap: var(--space-4); }
.feature-review .stars { color: #ffc531; }
.feature-review blockquote { font: 500 19px/1.55 var(--font-sans); }
.feature-review figcaption { display: flex; align-items: center; gap: var(--space-3); color: var(--on-navy-muted); font-size: 14px; }
.feature-review figcaption strong { color: var(--on-navy); display: block; font-size: 16px; }
.bigword__note { max-width: 360px; display: flex; flex-direction: column; gap: var(--space-4); }
.bigword__note p { color: var(--on-navy-muted); }

/* Sample review marker (remove once real reviews are in) */
.review__top { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); }
.review .quote-mark { width: 34px; height: 34px; color: var(--sky); }

/* ---------- Grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-5); }
@media (max-width: 1000px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Service family cards (home) ---------- */
.family { position: relative; display: flex; flex-direction: column; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; text-decoration: none; color: inherit; transition: box-shadow .2s ease, transform .2s ease; }
.family:hover { box-shadow: var(--shadow-lift); transform: translateY(-3px); }
.family .photo { border-radius: 0; aspect-ratio: 16 / 10; }
.family .photo img { transition: transform .5s ease; }
.family:hover .photo img { transform: scale(1.04); }
.family__body { position: relative; display: flex; flex-direction: column; gap: var(--space-3); padding: 34px var(--space-5) var(--space-5); flex: 1; }
.icon-disc { width: 52px; height: 52px; border-radius: var(--radius-pill); background: var(--sky-tint); color: var(--steel); display: grid; place-items: center; flex: none; }
.icon-disc svg { width: 24px; height: 24px; }
.family__body .icon-disc { position: absolute; top: -26px; left: var(--space-5); border: 4px solid var(--surface-raised); width: 56px; height: 56px; }
.family__top { display: flex; justify-content: flex-end; }
.dots { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; color: var(--ink-muted); font-size: 15px; }
.dots li { display: flex; gap: var(--space-2); }
.dots li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 9px; border-radius: 50%; background: var(--brick); }
.family__foot { margin-top: auto; padding-top: var(--space-4); border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); }
.family__go { width: 38px; height: 38px; border-radius: var(--radius-pill); background: var(--navy); color: var(--on-navy); display: grid; place-items: center; transition: background-color .2s ease, transform .2s ease; flex: none; }
.family__go svg { width: 16px; height: 16px; }
.family:hover .family__go { background: var(--brick); transform: rotate(-45deg); }

/* ---------- Options bento ---------- */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); }
.bento__photo { grid-column: span 2; grid-row: span 2; min-height: 440px; }
.bento__photo .photo { height: 100%; }
.bento__photo .photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(15, 33, 51, 0.8), transparent 55%); }
.bento__caption { position: absolute; left: var(--space-5); right: var(--space-5); bottom: var(--space-5); z-index: 1; color: var(--on-navy); display: flex; flex-direction: column; gap: 6px; }
.tile { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-5); background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); }
.tile p { font-size: 15px; color: var(--ink-muted); }
.tile--wide { grid-column: span 2; }
.tile--navy { background: var(--navy); border-color: var(--navy); color: var(--on-navy); flex-direction: row; align-items: center; gap: var(--space-5); }
.tile--navy p { color: var(--on-navy-muted); }
.tile--navy > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 1000px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .bento { grid-template-columns: minmax(0, 1fr); } .bento__photo, .tile--wide { grid-column: auto; } .bento__photo { min-height: 320px; } .tile--navy { flex-direction: column; align-items: flex-start; } }

/* ---------- Project cards ---------- */
.project { display: flex; flex-direction: column; gap: var(--space-3); text-decoration: none; color: inherit; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; }
.project .photo { aspect-ratio: 4 / 3; transition: box-shadow .2s ease; }
.project .photo img { transition: transform .5s ease; }
.project:hover .photo { box-shadow: var(--shadow-lift); }
.project:hover .photo img { transform: scale(1.04); }
.project__meta { display: flex; justify-content: space-between; gap: var(--space-3); }
.project__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.project__view { position: absolute; right: var(--space-3); top: var(--space-3); width: 42px; height: 42px; border-radius: var(--radius-pill); background: var(--surface-raised); color: var(--ink); display: grid; place-items: center; transform: scale(0.85); opacity: 0; transition: opacity .2s ease, transform .2s ease; }
.project__view svg { width: 16px; height: 16px; }
.project:hover .project__view, .project:focus-visible .project__view { opacity: 1; transform: none; }
.projects-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6) var(--space-5); }
.projects-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1000px) { .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .projects-grid, .projects-grid--2 { grid-template-columns: minmax(0, 1fr); } }
.empty { padding: var(--space-7); text-align: center; border: 1.5px dashed var(--line-strong); border-radius: var(--radius-md); color: var(--ink-muted); }

/* ---------- Process ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-7) var(--space-6); counter-reset: step; }
.step { counter-increment: step; display: flex; flex-direction: column; gap: var(--space-2); padding-top: var(--space-4); border-top: 2px solid rgba(255, 255, 255, 0.18); }
.step::before { content: counter(step, decimal-leading-zero); font: 800 44px/1 var(--font-display); font-stretch: 112%; color: var(--sky); margin-bottom: var(--space-2); }
.step h3 { font: 700 19px/1.35 var(--font-sans); }
.step p { color: var(--on-navy-muted); font-size: 15px; }
.steps--light .step { border-top-color: var(--line); }
.steps--light .step::before { color: var(--brick-text); }
.steps--light .step p { color: var(--ink-muted); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Reviews ---------- */
.review { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-6); border-radius: var(--radius-lg); background: var(--surface-raised); border: 1px solid var(--line); }
.stars { display: flex; gap: 3px; color: var(--brick); }
.stars svg { width: 18px; height: 18px; }
.review blockquote { font: 500 19px/1.5 var(--font-sans); text-wrap: pretty; }
.review figcaption { display: flex; gap: var(--space-3); align-items: center; margin-top: auto; }
.avatar { width: 46px; height: 46px; border-radius: var(--radius-pill); background: var(--sky-tint); color: var(--steel); display: grid; place-items: center; font-weight: 700; flex: none; }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: var(--space-8); align-items: start; }
.faq { display: flex; flex-direction: column; gap: var(--space-3); }
.faq details { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); transition: border-color .2s ease; }
.faq details[open] { border-color: var(--line-strong); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); padding: 18px 22px; font: 700 17px/1.4 var(--font-sans); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 34px; height: 34px; border-radius: var(--radius-pill); background: var(--brick); color: var(--on-brick); display: grid; place-items: center; font: 500 22px/1 var(--font-sans); transition: transform .2s ease, background-color .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--navy); }
.faq details > div { padding: 0 22px 20px; color: var(--ink-muted); max-width: 70ch; }
.call-card { display: flex; gap: var(--space-4); align-items: center; padding: var(--space-5); border-radius: var(--radius-md); background: var(--surface-raised); border: 1px solid var(--line); }
.call-card img { width: 84px; height: auto; flex: none; }
.call-card a { font-weight: 700; font-size: 18px; color: var(--ink); text-decoration: none; }
@media (max-width: 900px) { .faq-layout { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); } }

/* ---------- Quote band ---------- */
.quote-band { padding-block: var(--space-8) var(--space-9); }
.quote-band__card { position: relative; overflow: hidden; display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 420px); gap: var(--space-7); align-items: center; padding: var(--space-7); border-radius: var(--radius-lg); background: var(--navy); color: var(--on-navy); }
.quote-band__card::before { content: ""; position: absolute; width: 520px; height: 520px; left: -170px; top: -150px; border-radius: 50%; border: 70px solid rgba(63, 176, 228, 0.12); pointer-events: none; }
.quote-band__mascot { position: relative; width: 220px; height: auto; }
.quote-band__card .eyebrow { color: var(--sky); }
.quote-band__copy { display: flex; flex-direction: column; gap: var(--space-4); position: relative; }
.quote-band__copy p { color: var(--on-navy-muted); font-size: 17px; }
.quote-band__contact { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); font-weight: 600; }
.quote-band__contact a { color: var(--on-navy); text-decoration: none; }
.quick-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); padding: var(--space-5); border-radius: 20px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.16); position: relative; }
.quick-form .field label { color: var(--on-navy); }
.quick-form .field input, .quick-form .field select { background: var(--surface-raised); }
.quick-form .full { grid-column: 1 / -1; }
.quick-form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); }
.quick-form__foot small { color: var(--on-navy-muted); font-size: 13px; }
.quote-band__card--simple { grid-template-columns: auto minmax(0, 1fr) auto; }
@media (max-width: 1080px) { .quote-band__card, .quote-band__card--simple { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .quote-band__mascot { display: none; } }
@media (max-width: 760px) { .quote-band__card { grid-template-columns: minmax(0, 1fr); padding: var(--space-6) var(--space-5); } }
@media (max-width: 420px) { .quick-form { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.field label, .field legend { font: 600 14px/1.3 var(--font-sans); padding: 0; }
.req { color: var(--brick-text); }
.field input, .field select, .field textarea { width: 100%; font: 400 16px/1.4 var(--font-sans); color: var(--ink); background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); padding: 12px; min-height: 48px; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 1px; border-color: var(--focus-ring); }
.quick-form .field input:focus-visible, .quick-form .field select:focus-visible { outline-color: var(--sky); }
.help { font-size: 13px; color: var(--ink-muted); }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--brick-text); }
.field .error { display: none; font-size: 13px; color: var(--brick-text); font-weight: 600; }
.field.has-error .error { display: block; }
.field.has-error .help { display: none; }
.quick-form .field .error { color: #ffb3b6; }
fieldset.field { border: 0; margin: 0; padding: 0; }
.radios { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: 4px; }
.radio { position: relative; display: inline-flex; }
.radio input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.radio span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--radius-pill); border: 1.5px solid var(--line-strong); font-weight: 500; font-size: 15px; transition: background-color .15s ease; }
.radio input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--on-navy); }
.radio input:focus-visible + span { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.drop { display: flex; align-items: center; gap: var(--space-4); padding: 18px; border: 1.5px dashed var(--line-strong); border-radius: 10px; color: var(--ink-muted); font-size: 15px; cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.drop:hover, .drop.is-over { border-color: var(--steel); background: var(--sky-tint); }
.drop strong { color: var(--ink); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop:focus-within { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.file-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.file-list li { font-size: 13px; padding: 4px 10px; border-radius: var(--radius-sm); background: var(--sky-tint); }
.form-status { font-size: 14px; font-weight: 600; color: var(--brick-text); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--on-navy); padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px)); }
.site-footer.ruler-edge { padding-top: 40px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: var(--space-7); padding-top: var(--space-8); }
.footer__brand { display: flex; flex-direction: column; gap: var(--space-4); }
.footer__brand img { width: 150px; height: auto; }
.footer__tagline { font: 800 24px/1.15 var(--font-display); font-stretch: 112%; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col h2 { font: 700 15px/1.3 var(--font-sans); color: var(--sky); margin-bottom: 6px; }
.footer__col a { color: #d7e0ea; text-decoration: none; }
.footer__col a:hover { color: var(--on-navy); text-decoration: underline; }
.footer__col span, .footer__brand p { color: var(--on-navy-muted); }
.footer__brand .footer__tagline { color: var(--on-navy); }
.footer__legal { margin-top: var(--space-8); padding-top: var(--space-5); border-top: 1px solid rgba(255, 255, 255, 0.14); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3) var(--space-6); font-size: 13px; color: var(--on-navy-muted); }
.footer__legal p { max-width: 70ch; }
@media (max-width: 1000px) { .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Services page ---------- */
.search { display: flex; flex-direction: column; gap: 8px; flex: 0 1 400px; min-width: 0; }
.search label { font-weight: 600; font-size: 14px; }
.search__box { position: relative; }
.search__box svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-muted); pointer-events: none; }
.search input { width: 100%; font: 400 16px/1.4 var(--font-sans); padding: 14px 18px 14px 46px; border-radius: var(--radius-pill); border: 1.5px solid var(--line-strong); background: var(--surface-raised); }
.catalogue { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: var(--space-7); align-items: start; }
.side { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 4px; }
.side a:not(.btn) { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; transition: background-color .15s ease; }
.side a:not(.btn):hover { background: var(--surface-sunken); }
.side a:not(.btn) span { font: 600 12px/1 var(--font-sans); font-variant-numeric: tabular-nums; color: var(--ink-muted); }
.side a.is-active { background: var(--navy); color: var(--on-navy); }
.side a.is-active span { color: var(--on-navy-muted); }
.side__cta { margin-top: var(--space-5); padding: var(--space-5); border-radius: var(--radius-md); background: var(--brick-tint); display: flex; flex-direction: column; gap: 10px; }
.side__cta strong { color: var(--brick-text); }
.family-block { display: flex; flex-direction: column; gap: var(--space-3); padding-bottom: var(--space-8); scroll-margin-top: 110px; }
.family-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: var(--space-5); align-items: end; margin-bottom: var(--space-3); }
.family-head__title { display: flex; gap: var(--space-4); align-items: center; }
.family-head__title .icon-disc { width: 60px; height: 60px; }
.family-head p { font-size: 15px; color: var(--ink-muted); }
.family-banner { aspect-ratio: 21 / 7; margin-bottom: var(--space-3); }
.svc { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); transition: border-color .2s ease; }
.svc[open] { border-color: var(--ink); }
.svc summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.6fr) 34px; gap: var(--space-4); align-items: center; padding: 16px 20px; }
.svc summary::-webkit-details-marker { display: none; }
.svc summary::after { content: "+"; width: 34px; height: 34px; border-radius: var(--radius-pill); border: 1.5px solid var(--line-strong); display: grid; place-items: center; font-size: 19px; transition: transform .2s ease; }
.svc[open] summary::after { content: "−"; background: var(--navy); border-color: var(--navy); color: var(--on-navy); }
.svc__code { font: 700 15px/1 var(--font-sans); font-variant-numeric: tabular-nums; color: var(--brick-text); }
.svc__name { font: 700 18px/1.25 var(--font-display); font-stretch: 108%; }
.svc__name .tag--trade { font-family: var(--font-sans); font-size: 13px; margin-left: 6px; font-stretch: 100%; }
.svc__hl { font-size: 14px; color: var(--ink-muted); }
.svc__body { padding: 4px 20px 24px 20px; display: flex; flex-direction: column; gap: var(--space-4); }
.svc__list { columns: 3 210px; column-gap: 28px; margin: 0; padding: 0; list-style: none; font-size: 15px; }
.svc__list li { break-inside: avoid; padding: 4px 0 4px 14px; position: relative; }
.svc__list li::before { content: ""; position: absolute; left: 0; top: 13px; width: 6px; height: 6px; border-radius: 50%; background: var(--brick); }
.note { padding: 12px 16px; border-radius: 10px; background: var(--surface-sunken); font-size: 14px; color: var(--ink-muted); }
.no-results { display: none; }
.no-results.is-shown { display: block; }
@media (max-width: 1000px) {
  .catalogue { grid-template-columns: minmax(0, 1fr); }
  .side { position: sticky; top: 84px; z-index: 5; flex-direction: row; overflow-x: auto; padding: 8px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); background: var(--surface); scrollbar-width: none; }
  .side a:not(.btn) { white-space: nowrap; flex: none; }
  .side__cta { display: none; }
  .family-head { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) { .svc summary { grid-template-columns: minmax(0, 1fr) 34px; } .svc__hl { display: none; } }

/* ---------- Projects page ---------- */
.filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); }
.select-pill { font: 500 14px/1 var(--font-sans); min-height: 42px; padding: 0 38px 0 16px; border-radius: var(--radius-pill); border: 1.5px solid var(--line-strong); background: var(--surface-raised) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%230f2133' stroke-width='2'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 14px center / 14px; appearance: none; }
.featured { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: var(--space-5); }
.ba { position: relative; overflow: hidden; border-radius: var(--radius-md); aspect-ratio: 16 / 10; background: var(--surface-sunken); user-select: none; touch-action: pan-y; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__before { clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.ba__before img.is-sim { filter: grayscale(1) brightness(0.8) contrast(0.9); }
.ba__line { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 3px; margin-left: -1.5px; background: var(--surface-raised); pointer-events: none; }
.ba__handle { position: absolute; top: 50%; left: var(--pos, 50%); width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: var(--radius-pill); background: var(--brick); color: var(--on-brick); display: grid; place-items: center; box-shadow: var(--shadow-card); pointer-events: none; }
.ba__handle svg { width: 22px; height: 22px; }
.ba input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba__tag { position: absolute; top: var(--space-3); padding: 4px 10px; border-radius: var(--radius-sm); background: var(--surface-raised); font: 600 12px/1.3 var(--font-sans); pointer-events: none; }
.ba__tag--l { left: var(--space-3); } .ba__tag--r { right: var(--space-3); }
.ba.is-single :is(.ba__before, .ba__tag, .ba__line, .ba__handle, input) { display: none; }
.ba:has(input:focus-visible) { outline: 2px solid var(--focus-ring); outline-offset: 3px; }
.featured__info { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-6); border-radius: var(--radius-md); background: var(--surface-sunken); }
.facts { display: flex; flex-direction: column; }
.facts div { display: flex; justify-content: space-between; gap: var(--space-4); padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--ink-muted); }
.facts dd { margin: 0; text-align: right; font-weight: 500; }
.facts--dl { margin: 0; }
@media (max-width: 900px) { .featured { grid-template-columns: minmax(0, 1fr); } }

dialog.modal { width: min(1080px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: var(--radius-lg); background: var(--surface-raised); color: var(--ink); box-shadow: var(--shadow-lift); }
dialog.modal::backdrop { background: rgba(15, 33, 51, 0.7); }
.modal__inner { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.modal__media { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-4); }
.modal__media .main { aspect-ratio: 4 / 3; }
.modal__thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); }
.modal__thumbs button { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; cursor: pointer; background: var(--surface-sunken); }
.modal__thumbs button[aria-current="true"] { border-color: var(--brick); }
.modal__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.modal__body { padding: var(--space-6) var(--space-6) var(--space-6) var(--space-3); display: flex; flex-direction: column; gap: var(--space-4); overflow-y: auto; }
.modal__close { position: absolute; right: 14px; top: 14px; width: 44px; height: 44px; border-radius: var(--radius-pill); border: 0; background: var(--surface-raised); box-shadow: var(--shadow-card); display: grid; place-items: center; cursor: pointer; z-index: 2; }
.modal__close svg { width: 18px; height: 18px; }
@media (max-width: 820px) { .modal__inner { grid-template-columns: minmax(0, 1fr); } .modal__body { padding: var(--space-5); } }

/* ---------- Team page ---------- */
.profiles { display: grid; gap: clamp(72px, 9vw, 120px); }
.profile { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: var(--space-8); align-items: center; }
.profile--flip { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); }
.profile--flip .profile__media { order: 2; }
.profile__media { position: relative; padding: 0 24px 24px 0; }
.profile--flip .profile__media { padding: 0 0 24px 24px; }
.profile__media .about__frame { inset: 28px 0 0 28px; }
.profile--flip .profile__media .about__frame { inset: 28px 28px 0 0; }
.profile .profile__photo { display: block; position: relative; aspect-ratio: 4 / 5; border-radius: 26px; box-shadow: var(--shadow-lift); }
.profile__photo img { object-position: 50% 18%; }
.profile__body { max-width: 62ch; }
.profile__body > p { font-size: 17px; line-height: 1.65; color: var(--ink-muted); }
.profile__name { font: 800 clamp(30px, 3vw, 40px)/1.08 var(--font-display); font-stretch: 112%; letter-spacing: -0.01em; }
.profile__role { margin-top: var(--space-2); font: 700 16px/1.4 var(--font-sans); color: var(--brick-text); }
.profile__role span { display: block; font-weight: 500; font-size: 14px; color: var(--ink-muted); }
.profile__body .btn-row { margin-top: var(--space-2); }
@media (max-width: 900px) {
  .profile, .profile--flip { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  .profile--flip .profile__media { order: 0; padding: 0 24px 24px 0; }
  .profile--flip .profile__media .about__frame { inset: 28px 0 0 28px; }
  .profile__media { max-width: 380px; }
}
@media (max-width: 480px) { .profile__media, .profile--flip .profile__media { max-width: 300px; padding: 0 16px 16px 0; } .profile__media .about__frame, .profile--flip .profile__media .about__frame { inset: 20px 0 0 20px; } }
.commit { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-5); border-radius: var(--radius-md); border: 1px solid rgba(255, 255, 255, 0.16); }
.commit .icon-disc { background: var(--sky); color: var(--on-sky); }
.commit p { color: var(--on-navy-muted); font-size: 15px; }
.partners > .stack { max-width: 720px; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: var(--space-6); align-items: start; }
.quote-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: var(--space-6); border-radius: var(--radius-lg); background: var(--surface-raised); border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.quote-form .full { grid-column: 1 / -1; }
.quote-form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-4); }
.contact-aside { display: flex; flex-direction: column; gap: var(--space-4); position: sticky; top: 100px; }
.contact-card { padding: var(--space-6); border-radius: var(--radius-lg); background: var(--navy); color: var(--on-navy); display: flex; flex-direction: column; gap: var(--space-4); }
.contact-card__head { display: flex; gap: var(--space-4); align-items: center; }
.contact-card__head img { width: 84px; height: auto; flex: none; }
.contact-card__head p { color: var(--on-navy-muted); font-size: 14px; }
.contact-list { margin: 0; display: flex; flex-direction: column; }
.contact-list div { display: flex; justify-content: space-between; gap: var(--space-3); padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.14); font-size: 15px; }
.contact-list div:last-child { border-bottom: 0; }
.contact-list dt { color: var(--on-navy-muted); }
.contact-list dd { margin: 0; text-align: right; }
.contact-list a { color: var(--on-navy); }
.next-card { padding: var(--space-6); border-radius: var(--radius-lg); background: var(--surface-sunken); display: flex; flex-direction: column; gap: var(--space-4); }
.next-card ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-4); counter-reset: n; }
.next-card li { counter-increment: n; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; }
.next-card li::before { content: counter(n); width: 36px; height: 36px; border-radius: var(--radius-pill); background: var(--sky); color: var(--on-sky); display: grid; place-items: center; font: 800 15px/1 var(--font-display); }
.next-card li span { display: block; font-size: 14px; color: var(--ink-muted); }
.success { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-7); border-radius: var(--radius-lg); border: 2px solid var(--success); background: var(--surface-raised); }
.success__icon { width: 56px; height: 56px; border-radius: var(--radius-pill); background: var(--success); color: var(--surface-raised); display: grid; place-items: center; }
.success__icon svg { width: 26px; height: 26px; }
.success h2 { color: var(--success); }
@media (max-width: 1000px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } .contact-aside { position: static; } }
@media (max-width: 620px) { .quote-form { grid-template-columns: minmax(0, 1fr); padding: var(--space-5); } }

/* ---------- Reveal on scroll (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .brand, .brand img { transition: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
