/* ── Shared by every new look: floating glass bar, menu card, page changes, quiet motion ── */
:root { --ease: cubic-bezier(.22, 1, .36, 1); --glass: 255 255 255; --r: 16px; }
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  #nav { view-transition-name: bar; }
  ::view-transition-old(root) { animation: vt-out .18s ease-out both; }
  ::view-transition-new(root) { animation: vt-in .42s var(--ease) both; }
  @keyframes vt-out { to { opacity: 0; } }
  @keyframes vt-in { from { opacity: 0; translate: 0 12px; } }
}

#nav { inset: 12px 0 auto 0; width: min(1240px, 100% - 32px); margin-inline: auto; border-radius: 32px; color: #0A1A36; background: rgb(var(--glass) / .86); -webkit-backdrop-filter: blur(22px) saturate(1.6); backdrop-filter: blur(22px) saturate(1.6); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .6), 0 10px 34px rgb(3 12 34 / .2); transition: width .55s var(--ease), border-radius .55s var(--ease), background-color .3s; }
#nav::before { content: none; }
#nav.is-compact { width: min(940px, 100% - 32px); }
#nav:has(#navLinks.open) { width: min(1240px, 100% - 32px); border-radius: 28px; background: rgb(var(--glass) / .97); }
#nav .nav-inner { width: auto; height: 62px; gap: 6px; padding: 0 8px 0 20px; }
#nav .logo { padding: 0; background: none; border-radius: 4px; }
#nav .logo img { width: 138px; }
#nav :focus-visible { outline-color: #003383; }
.quick { display: flex; gap: 2px; margin-left: auto; }
.quick a { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 22px; font-size: .9375rem; font-weight: 500; text-decoration: none; transition: background-color .2s; }
#nav .nav-phone { margin-left: 4px; padding: 0 12px; font-size: .9688rem; background: none; color: inherit; }
#nav .nav-cta { display: flex; align-items: center; min-height: 46px; padding: 0 20px; border-radius: 23px; background: var(--gold); color: #0A1A36; font-size: .9375rem; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background-color .25s, box-shadow .25s, transform .1s; }
#nav .nav-cta:active, #burger:active { transform: scale(.97); }
body.hero-in-view #nav .nav-cta { background: transparent; box-shadow: inset 0 0 0 1.5px rgb(10 26 54 / .45); }
#burger { display: flex; flex-direction: row; gap: 10px; width: auto; height: 46px; padding: 0 18px; border: 0; border-radius: 23px; background: rgb(10 26 54 / .08); color: #0A1A36; font-size: .9375rem; font-weight: 600; }
#burger i { width: 15px; height: 8px; border-block: 2px solid currentColor; transition: height .25s var(--ease); }
#burger[aria-expanded="true"] i { height: 2px; border-bottom: 0; }
@media (scripting: none) { #burger { display: none; } }
@media (hover: hover) { .quick a:hover, #burger:hover { background: rgb(10 26 54 / .12); } #nav .nav-cta:hover { background: var(--gold-hover); box-shadow: none; } }

.menu-panel { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .55s var(--ease), visibility 0s .55s; }
.menu-panel > div { min-height: 0; overflow: hidden; }
#nav:has(#navLinks.open) .menu-panel { grid-template-rows: 1fr; visibility: visible; transition-delay: 0s; }
.menu-in { display: grid; grid-template-columns: 1.15fr .8fr 1fr; gap: 28px; padding: 14px 20px 20px 28px; max-height: calc(100svh - 110px); overflow-y: auto; overscroll-behavior: contain; }
#navLinks, #navLinks.open { all: unset; display: block; }
#navLinks li { display: block; }
#navLinks a, .menu-more a { display: flex; align-items: center; text-decoration: none; border: 0; }
#navLinks a { min-height: 50px; padding: 0; font-size: clamp(1.5rem, 2.2vw, 2rem); font-weight: 500; font-stretch: 112%; letter-spacing: -.025em; line-height: 1.15; opacity: 0; translate: 0 10px; transition: opacity .5s var(--ease), translate .5s var(--ease), color .2s; }
#navLinks.open a { opacity: 1; translate: none; transition-delay: calc(.06s + var(--i, 0) * .035s), calc(.06s + var(--i, 0) * .035s), 0s; }
#navLinks a:not(.nav-cta)::after { content: none; }
#navLinks a[aria-current] { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 3px; }
.menu-more a { min-height: 44px; font-size: 1rem; color: #31446A; }
@media (hover: hover) { #navLinks a:hover { color: #003383; } .menu-more a:hover { color: #003383; text-decoration: underline; } }
.menu-side { position: relative; display: flex; align-items: flex-end; min-height: 250px; overflow: hidden; border-radius: 18px; background: #0A2A66; color: #fff; }
.menu-side img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.menu-side p { position: relative; width: 100%; padding: 72px 20px 18px; background: linear-gradient(transparent, rgb(3 12 34 / .84)); line-height: 1.45; }
.menu-side a { display: inline-block; padding: 8px 0; font-weight: 600; font-size: 1.25rem; }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { #nav { background: #fff; } }
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) { #nav { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 0 0 1px #31446A; } }

@media (max-width: 73.6875em) {
  .quick { display: none; }
  #nav .nav-phone { margin-left: auto; }
  #navLinks { position: static; max-height: none; }
}
@media (max-width: 759px) {
  #nav { inset: 8px 0 auto 0; width: calc(100% - 16px); }
  #nav.is-compact { width: calc(100% - 16px); }
  #nav .nav-inner { height: 56px; padding: 0 6px 0 16px; }
  #nav .logo img { width: 112px; }
  #nav > .nav-inner > .nav-cta { display: none; }
  #nav .nav-phone { min-height: 44px; padding: 0 16px; border-radius: 22px; background: #0A2A66; color: #fff; }
  #burger { height: 44px; padding: 0 14px; }
  #burger b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .menu-in { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 6px 18px 18px; }
  #navLinks a { min-height: 46px; }
  .menu-more { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; border-top: 1px solid #D5DDEC; padding-top: 6px; }
  .menu-side { min-height: 150px; }
}
@media (max-width: 359px) { #nav .nav-phone-short { display: none; } #nav .nav-phone { padding: 0 13px; } }
@media (max-height: 480px), (max-width: 19em) { #nav { position: absolute; } .menu-in { max-height: none; } }

/* Quiet motion: groups rise a little once. The script hides only what is off screen. */
@media (prefers-reduced-motion: no-preference) {
  .is-waiting { opacity: 0; translate: 0 12px; }
  .is-in { transition: opacity .9s var(--ease), translate .9s var(--ease); transition-delay: calc(var(--i, 0) * .1s); }
  .is-waiting:focus-within { opacity: 1; translate: none; }
  .hero-poster { animation: settle 1.4s var(--ease) backwards; }
  @keyframes settle { from { scale: 1.06; } }
  .shot img { transition: scale .9s var(--ease); }
  @supports (interpolate-size: allow-keywords) {
    :root { interpolate-size: allow-keywords; }
    details::details-content { height: 0; overflow: clip; transition: height .4s var(--ease), content-visibility .4s allow-discrete; }
    details[open]::details-content { height: auto; }
  }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .slab:hover .shot img, .duo:hover .shot img { scale: 1.03; } }
@media (max-width: 759px) and (prefers-reduced-motion: no-preference) { .is-waiting { translate: 0 8px; } .is-in { transition-delay: 0s; } }
@media print { .is-waiting { opacity: 1; translate: none; } }

.btn { border-radius: 26px; }
.fg input, .fg select, .fg textarea { border-radius: 12px; transition: border-color .2s, box-shadow .2s; }
.fg input:focus, .fg select:focus, .fg textarea:focus { border-color: #003383; box-shadow: 0 0 0 4px rgb(0 51 131 / .14); }

/* Service areas as a short list of names, not a tall table */
.areas-list { display: flex; flex-wrap: wrap; gap: 10px; }
.areas-list li { padding: 10px 18px; border: 0; border-radius: 24px; box-shadow: inset 0 0 0 1px var(--rule); font-size: 1.0625rem; font-stretch: 100%; font-weight: 500; letter-spacing: 0; }

/* ── F Sleek: today's page, same order and colours, finished more finely ── */
@media (min-width: 1024px) {
  .hero-media { inset: 0 30vw 0 0; }
  .hero-media::after { background: linear-gradient(180deg, rgb(6 18 43 / .34) 0%, rgb(6 18 43 / 0) 22%, rgb(6 18 43 / 0) 46%, rgb(6 18 43 / .78) 74%, rgb(6 18 43 / .95) 96%); }
  .hero-content .hero-copy h1 { font-weight: 500; }
  .drive-scene { height: 210vh; }
}
.card { border-radius: 24px; }
.slab, .about-shot, .plan, .page-photo .shot, .info-card { border-radius: 22px; }
.duo .shot { border-radius: 22px; box-shadow: none; }
h2 { font-weight: 500; }
/* Two lighter sheets, so the page is not dark all the way down */
.light-sheet { --text: #0A1A36; --soft: #455676; --rule: rgb(10 26 54 / .16); color: var(--text); }
.light-sheet :focus-visible { outline-color: #003383; }
#about.light-sheet { background: #fff; border-radius: 28px 28px 0 0; }
#about.light-sheet .about-copy p { color: var(--soft); }
#about.light-sheet .about-shot { box-shadow: none; }
#reviews { border-radius: 0; }
#faq.light-sheet { background: #fff; }
#faq.light-sheet summary::after { border-color: #0A1A36; }
#areas { padding-block: clamp(64px, 7vw, 100px); }
.page-hero { padding-top: calc(var(--nav-h) + clamp(48px, 7vw, 96px)); }

/* Hero film: the same frame as the photo it fades in over */
.hero-poster, .hero-film { object-position: 50% 40%; }
.film-btn { transition: transform .08s ease-out; }
#hero > .film-btn { left: auto; right: 14px; top: calc(var(--nav-h) + 14px); bottom: auto; width: 44px; height: 44px; }
@media (min-width: 1024px) {
  .hero-film { -webkit-mask-image: linear-gradient(90deg, #000 86%, transparent 100%); mask-image: linear-gradient(90deg, #000 86%, transparent 100%); }
  .hero-media::after { background: linear-gradient(180deg, rgb(6 18 43 / .3) 0%, rgb(6 18 43 / 0) 18%, rgb(6 18 43 / 0) 38%, rgb(6 18 43 / .62) 58%, rgb(6 18 43 / .86) 76%, rgb(6 18 43 / .96) 96%); }
  #hero > .film-btn { left: 24px; right: auto; top: calc(var(--nav-h) + 20px); }
}

/* Intro: a closed truck door with the logo rolls up. 1.2 s in all. */
.intro { display: none; }
@media (prefers-reduced-motion: no-preference) {
  [data-intro] .intro { display: grid; place-content: center; justify-items: center; position: fixed; inset: 0; z-index: 2000; border-bottom: 6px solid #FFC423; background: repeating-linear-gradient(180deg, #FBFAF7 0, #EFEEE8 calc(100% / 7 - 3px), #C9C8C0 calc(100% / 7 - 3px) calc(100% / 7)); box-shadow: 0 10px 50px rgb(3 10 28 / .5); animation: intro-roll .45s cubic-bezier(.65, 0, .2, 1) .75s forwards; }
  .intro img { width: min(340px, 64vw); height: auto; animation: intro-logo .5s var(--ease) backwards; }
  .intro i { position: absolute; top: calc(400% / 7 - 3px); width: min(340px, 64vw); height: 3px; border-radius: 2px; background: linear-gradient(#003383 0 0) no-repeat rgb(10 26 54 / .14); background-size: 100% 100%; animation: intro-fill .7s var(--ease) backwards; }
  .intro button { position: absolute; right: 20px; bottom: 24px; min-width: 72px; min-height: 44px; border: 0; border-radius: 22px; background: #0A1A36; color: #fff; font: 600 .9375rem/1 inherit; font-family: inherit; cursor: pointer; }
  [data-intro] .hero-poster { animation-delay: .75s; }
}
@keyframes intro-roll { to { translate: 0 -102%; visibility: hidden; } }
@keyframes intro-logo { from { opacity: 0; scale: .92; translate: 0 10px; } }
@keyframes intro-fill { from { background-size: 0 100%; } }

/* Swift controls: answers at once on press, settled within a blink */
.btn, .btn-gold, .btn-primary, #nav .nav-cta, #navLinks a.nav-cta, .quick a, #burger, .chat-toggle, .more { transition: background-color .12s ease-out, color .12s ease-out, box-shadow .12s ease-out, transform .12s ease-out; }
.btn:active, #nav .nav-cta:active, #burger:active, .film-btn:active { transition-duration: .04s; }
.quick a:active { transform: scale(.97); }
#burger i { transition-duration: .14s; }
#nav { transition-duration: .3s, .3s, .16s; }
.menu-panel { transition: grid-template-rows .26s var(--ease), visibility 0s .26s; }
#navLinks a { transition-duration: .24s, .24s, .12s; }
#navLinks.open a { transition-delay: calc(.02s + var(--i, 0) * .015s), calc(.02s + var(--i, 0) * .015s), 0s; }
.fg input, .fg select, .fg textarea { transition-duration: .12s; }
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) { animation-duration: .1s; }
  ::view-transition-new(root) { animation-duration: .24s; }
  details::details-content { transition-duration: .22s; }
}
/* Narrow screens: the headline sits on the film, so the shade starts just above it */
@media (max-width: 1023px) {
  .hero-media::after { background: linear-gradient(180deg, rgb(6 18 43 / .3) 0%, rgb(6 18 43 / 0) 22%, rgb(6 18 43 / 0) 36%, rgb(6 18 43 / .66) 56%, rgb(6 18 43 / .9) 82%, var(--night) 100%); }
}

/* Sending: a ring turns round the truck, the truck drives off, the ring fills and the check draws.
   Every end state is the plain one, so it also holds with no motion. */
#estimate { position: relative; }
.send-mark, .send-say { display: none; }
[data-send="busy"] .send-mark { display: grid; position: absolute; left: calc(50% - 56px); top: calc(50% - 76px); }
[data-send="busy"] .send-say { display: block; position: absolute; left: 0; right: 0; top: calc(50% + 52px); text-align: center; font-weight: 600; color: var(--ink); }
[data-send="busy"] > :not(.send-mark, .send-say) { visibility: hidden; opacity: 0; transition: opacity .14s ease-out, visibility 0s .14s; }
[data-send="done"] .send-mark { display: grid; margin: 12px auto 4px; }
[data-send="done"] .success-icon, [data-send="done"] > .card-lede { display: none; }
[data-send="done"] > .card-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
[data-send="done"] .form-success { padding-top: 12px; }
.send-mark { width: 112px; height: 112px; place-items: center; border-radius: 50%; }
.send-mark > * { grid-area: 1 / 1; }
.send-mark svg { width: 100%; height: 100%; overflow: visible; }
.send-mark img { width: 72px; height: auto; }
.send-mark circle, .send-mark polyline { fill: none; stroke-width: 5; transform-origin: 50px 50px; }
.send-mark :is(.guide, .run) { transition: opacity .18s; }
.send-mark .guide { stroke: rgb(10 26 54 / .14); }
.send-mark .run { stroke: #003383; stroke-linecap: round; stroke-dasharray: .28 .72; }
.send-mark .disc { fill: #136C3B; }
.send-mark .halo { stroke: #136C3B; stroke-width: 3; opacity: 0; }
.send-mark .tick { stroke: #fff; stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; }
[data-send="busy"] :is(.disc, .tick, .halo), [data-send="done"] .send-mark :is(img, .guide, .run) { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  [data-send="busy"] .send-mark { animation: mark-in .24s var(--ease) backwards; }
  [data-send="busy"] .run { animation: mark-turn .8s linear infinite; }
  [data-send="busy"] .send-mark img { animation: mark-idle .4s ease-in-out infinite alternate; }
  [data-send="done"] .send-mark { overflow: clip; overflow-clip-margin: 30px; }
  [data-send="done"] .send-mark img { animation: mark-off .34s cubic-bezier(.5, 0, .9, .4); }
  [data-send="done"] .disc { animation: mark-fill .42s var(--ease) .14s backwards; }
  [data-send="done"] .tick { animation: mark-draw .36s cubic-bezier(.4, 0, .2, 1) .36s backwards; }
  [data-send="done"] .halo { animation: mark-halo .7s ease-out .4s; }
  [data-send="done"] .form-success :is(h3, h3 + p) { animation: mark-rise .6s var(--ease) .36s backwards; }
  [data-send="done"] .form-success h3 + p { animation-delay: .44s; }
  [data-send="done"] .next-steps li { animation-delay: calc(.52s + var(--i, 0) * .1s); }
  .next-steps li:nth-child(2) { --i: 1; }
  .next-steps li:nth-child(3) { --i: 2; }
  [data-send="done"] :is(.sent, .ready, .sent-call, #submitAnother) { animation: mark-rise .6s var(--ease) .8s backwards; }
}
@keyframes mark-in { from { opacity: 0; scale: .9; } }
@keyframes mark-turn { to { rotate: 360deg; } }
@keyframes mark-idle { to { translate: 0 -1.5px; } }
@keyframes mark-off { from { opacity: 1; } 70% { opacity: 1; } to { opacity: 0; translate: 46px 0; } }
@keyframes mark-fill { from { scale: 0; } }
@keyframes mark-draw { from { stroke-dashoffset: 1; } }
@keyframes mark-halo { from { opacity: .5; scale: 1; } to { opacity: 0; scale: 1.28; } }
@keyframes mark-rise { from { opacity: 0; translate: 0 12px; } }

/* Moving photos. Scroll-driven CSS only; without it every photo simply stands there in full. */
.grow { position: relative; z-index: 1; margin: 0; overflow: hidden; background: var(--night); }
.grow img { display: block; width: 100%; height: min(86vh, 56.25vw); object-fit: cover; }
.drive-home { height: clamp(110px, 18vw, 190px); margin-bottom: 48px; }
.drive-home img { width: min(300px, 52vw); transform: translateX(calc(100cqi - 100%)); }
.drive-home i { transform: none; }
@media (max-width: 759px) { .grow img { height: 72vw; } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    /* A thin line of the warehouse opens to the full width of the screen */
    .grow { view-timeline: --grow block; }
    .grow picture { display: block; animation: grow-open linear both; animation-timeline: --grow; animation-range: entry 0% cover 46%; }
    .grow img { animation: grow-near linear both; animation-timeline: --grow; }
    /* The camera comes closer while the first screen leaves */
    #hero { view-timeline: --hero block; }
    .hero-media picture, .hero-film { animation: hero-near linear both; animation-timeline: --hero; animation-range: exit; }
    /* Service and inner page photos: the frame opens and the photo settles */
    /* Named on the outer box: a photo frame that hides its overflow would be its own scroller for view() */
    .slab:first-child, .duo, .about-shot, .page-photo .shot { view-timeline: --photo block; }
    .slab:nth-child(2) { view-timeline: --slab-2 block, --photo block; }
    .slab:nth-child(3) { view-timeline: --slab-3 block, --photo block; }
    .slab:nth-child(4) { view-timeline: --slab-4 block, --photo block; }
    .duo .shot, .about-shot, .page-photo .shot { animation: frame-open linear both; animation-timeline: --photo; animation-range: entry 0% cover 34%; }
    .slab .shot picture, .duo .shot picture, .about-shot picture, .page-photo .shot picture { display: block; animation: photo-settle linear both; animation-timeline: --photo; animation-range: entry 0% cover 55%; }
    .drive-home { view-timeline: --home block; }
    .drive-home img { animation: drive-go linear both; animation-timeline: --home; animation-range: entry 0% entry 100%; }
    .drive-home i { animation: drive-fill linear both; animation-timeline: --home; animation-range: entry 0% entry 100%; }
  }
}
@keyframes grow-open { from { clip-path: inset(0 26% 90% 26% round 22px); } to { clip-path: inset(0 round 0); } }
@keyframes grow-near { from { scale: 1.18; } to { scale: 1; } }
@keyframes hero-near { to { scale: 1.1; translate: 0 4%; } }
@keyframes frame-open { from { clip-path: inset(22% 9% round 22px); } to { clip-path: inset(0 round 22px); } }
@keyframes photo-settle { from { scale: 1.16; } to { scale: 1; } }

/* After the door has gone up: the film first, then the name, then the rest */
@media (prefers-reduced-motion: no-preference) {
  [data-arrive] .hero-copy > *, [data-arrive] #estimate { animation: mark-rise .7s var(--ease) .95s backwards; }
  [data-arrive] .hero-copy > :nth-child(n + 2), [data-arrive] #estimate { animation-delay: 1.1s; }
}

/* The answer is taller than the form: the film and the headline keep the size of the first screen */
@media (min-width: 1024px) {
  #hero:has([data-send="done"]) .hero-media { bottom: auto; height: 100svh; }
  #hero:has([data-send="done"]) .hero-copy { align-self: start; display: flex; flex-direction: column; justify-content: flex-end; min-height: calc(100svh - var(--nav-h) - 36px); }
}
