/* Balmossie Building Services. Colours and lettering from the van: slate, white, sky blue stripe. */
@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito-latin.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --van: #1B242B;
  --van-2: #232E37;
  --van-3: #34424D;
  --deep: #131A1F;
  --stripe: #2AA7E1;
  --stripe-ink: #0B6A9A;
  --harl: #EEF0EC;
  --white: #FFFFFF;
  --ink: #1B242B;
  --muted: #56636D;
  --line: #D6DBD8;
  --on-van: #C3CDD3;
  --display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --text: "Archivo", Arial, sans-serif;
  --logo: "Nunito", "Arial Rounded MT Bold", Arial, sans-serif;
  --wrap: 1240px;
  --gutter: 20px;
  --header-h: 64px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
.pic { background-color: var(--ph, var(--harl)); }

a { color: var(--stripe-ink); text-underline-offset: 3px; }

h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 800; text-wrap: balance; }

p { margin: 0; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

a:focus-visible, button:focus-visible, select:focus-visible { outline: 3px solid var(--stripe); outline-offset: 3px; }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--van);
  color: var(--white);
  transition: box-shadow 0.3s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18); }

.header-row { display: flex; align-items: center; gap: 8px; height: var(--header-h); }

.logo { display: inline-flex; flex-direction: column; align-items: flex-start; margin-right: auto; color: var(--white); text-decoration: none; }

.logo-word {
  font-family: var(--logo);
  font-weight: 900;
  font-size: 1.625rem;
  line-height: 1;
  letter-spacing: -0.01em;
  padding-bottom: 5px;
  border-bottom: 3px solid var(--stripe);
}

.logo-sub {
  margin-top: 4px;
  font-size: 0.5625rem;
  font-weight: 700;
  font-stretch: 112%;
  letter-spacing: 0.21em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav { display: none; }

.header-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 14px;
  background: var(--stripe);
  color: var(--van);
  font-weight: 800;
  font-stretch: 105%;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}
.header-call:hover { background: #55BCEB; }
.call-long { display: none; }

.menu-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--van-3);
  color: var(--white);
  cursor: pointer;
}
.menu-lines { position: relative; display: block; width: 20px; height: 12px; }
.menu-lines i { position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; transition: transform 0.35s var(--ease), top 0.35s var(--ease); }
.menu-lines i:first-child { top: 1px; }
.menu-lines i:last-child { top: 9px; }
.menu-toggle[aria-expanded="true"] .menu-lines i:first-child { top: 5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-lines i:last-child { top: 5px; transform: rotate(-45deg); }

@media (max-width: 380px) { .logo-sub { letter-spacing: 0.15em; } }
@media (max-width: 359px) {
  .call-short { display: none; }
  .header-call { width: 44px; padding: 0; justify-content: center; }
}

/* ---------- Phone menu ---------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  padding-top: var(--header-h);
  background: var(--van);
  color: var(--white);
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.menu.is-open { opacity: 1; }
.menu-inner { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; padding: 24px 0 calc(40px + env(safe-area-inset-bottom)); }
.menu ul { margin: 0; padding: 0; list-style: none; }
.menu li { opacity: 0; transform: translateY(12px); transition: opacity 0.4s ease, transform 0.5s var(--ease); }
.menu.is-open li { opacity: 1; transform: none; transition-delay: calc(0.06s + var(--i) * 0.04s); }
.menu-main a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--van-3);
  color: var(--white);
  font-family: var(--display);
  font-stretch: 115%;
  font-weight: 750;
  font-size: 1.5rem;
  line-height: 1.2;
  text-decoration: none;
}
.menu-contact { display: grid; gap: 4px; margin-top: 24px; }
.menu-contact a { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--white); text-decoration: none; }
.menu-contact i { width: 18px; color: var(--stripe); }

/* ---------- Buttons and links ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 24px;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 0;
  font-family: var(--text);
  font-size: 1.0625rem;
  font-weight: 800;
  font-stretch: 105%;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  isolation: isolate;
  transition: color 0.3s ease;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn-stripe { background: var(--stripe); color: var(--van); }
.btn-stripe::before { background: var(--white); }
.btn-line { border-color: currentColor; color: var(--white); }
.btn-line::before { background: var(--white); }
.btn-line:hover { color: var(--van); }
.btn-dark { background: var(--van); color: var(--white); }
.btn-dark::before { background: var(--deep); }

.text-link {
  color: inherit;
  font-weight: 700;
  text-decoration: none;
  padding-bottom: 2px;
  background: linear-gradient(var(--stripe), var(--stripe)) left bottom / 100% 2px no-repeat;
  transition: background-size 0.35s var(--ease);
}
.text-link:hover { background-size: 0% 2px; background-position: right bottom; }

.round-btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}
.round-btn:hover { background: var(--van); border-color: var(--van); color: var(--white); }
.round-btn:disabled { opacity: 0.35; cursor: default; background: var(--white); color: var(--ink); border-color: var(--line); }

/* ---------- Section basics ---------- */
.section { padding: 64px 0; }
.section-head { margin-bottom: 28px; }
.head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 40px; }

.section-title {
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3.5rem);
  font-stretch: 116%;
  line-height: 1.02;
  letter-spacing: -0.015em;
}

.stripe-head { position: relative; padding-bottom: 14px; }
.stripe-head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 5px;
  background: var(--stripe);
  transform-origin: left;
}

.head-note { max-width: 34em; color: var(--muted); }

.tag {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 5px 9px;
  background: var(--van);
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 800;
  line-height: 1.2;
}

/* ---------- Home hero ---------- */
.hero { background: var(--van); color: var(--white); }
.hero-grid { display: grid; }
.hero-media { order: -1; margin-inline: calc(-1 * var(--gutter)); }

.slides { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--van-2); }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1s ease; }
.slide.is-on { opacity: 1; z-index: 1; }
.slide-img { width: 100%; height: 100%; object-fit: cover; }

.slide figcaption { position: absolute; left: 12px; bottom: 12px; z-index: 2; }
.slide figcaption a {
  display: inline-block;
  padding: 7px 11px;
  background: var(--van);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}
.slide figcaption a:hover { color: var(--stripe); }

.slide-bars { position: absolute; left: 12px; right: 12px; top: 12px; z-index: 3; display: grid; grid-auto-flow: column; gap: 6px; }
.slide-bars span { height: 3px; overflow: hidden; background: rgba(255, 255, 255, 0.4); }
.slide-bars i { display: block; height: 100%; background: var(--stripe); transform: scaleX(0); transform-origin: left; }
.slide-bars .is-done i { transform: scaleX(1); }
.slide-bars .is-active i { animation: fill-x var(--dur, 6.5s) linear forwards; }
.slides.is-paused .slide-bars i { animation-play-state: paused; }

.slide-pause {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: rgba(27, 36, 43, 0.8);
  color: var(--white);
  cursor: pointer;
}

.hero-copy { padding: 28px 0 52px; }
.hero-title { font-size: clamp(2.375rem, 1.6rem + 3.2vw, 3.5rem); font-stretch: 112%; line-height: 1; letter-spacing: -0.02em; }
.hero-lede { max-width: 34em; margin: 18px 0 28px; color: var(--on-van); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-actions .btn { flex: 1 1 100%; }

/* Words of the big headings rise into place once the fonts are in */
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
[data-split] .w > span { display: inline-block; }

/* ---------- What we do: photo tiles, three across then four on wide screens ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; margin: 0; padding: 0; list-style: none; }
.svc-grid > li:first-child { grid-column: 1 / -1; }
.svc-tile { display: block; height: 100%; color: inherit; text-decoration: none; }
.svc-media { display: block; overflow: hidden; background: var(--harl); }
.svc-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.7s var(--ease); }
.svc-grid > li:first-child .svc-media img { aspect-ratio: 16 / 9; }
.svc-tile:hover .svc-media img { transform: scale(1.04); }
.svc-name { display: block; margin-top: 12px; font-family: var(--display); font-size: 1.125rem; font-stretch: 108%; font-weight: 750; line-height: 1.2; transition: color 0.2s ease; }
.svc-tile:hover .svc-name { color: var(--stripe-ink); }
.svc-line { display: block; margin-top: 4px; color: var(--muted); font-size: 0.9375rem; line-height: 1.45; }
.svc-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; color: var(--stripe-ink); font-size: 0.9375rem; font-weight: 700; }
.svc-more i { font-size: 0.85em; transition: transform 0.3s var(--ease); }
.svc-tile:hover .svc-more i { transform: translateX(4px); }

/* ---------- Garden room build ---------- */
.build-section { background: var(--van); color: var(--white); }
.build { display: grid; gap: 28px; }
.build-title { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.5rem); font-stretch: 116%; line-height: 1.02; letter-spacing: -0.015em; }
.build-lede { max-width: 34em; margin-top: 14px; color: var(--on-van); }

.build-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; }
.build-step {
  position: relative;
  display: grid;
  width: 100%;
  padding: 12px 0 4px;
  border: 0;
  border-top: 3px solid var(--van-3);
  background: transparent;
  color: var(--on-van);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: color 0.3s ease;
}
.build-step::before { content: ""; position: absolute; left: 0; top: -3px; width: 100%; height: 3px; background: var(--stripe); transform: scaleX(0); transform-origin: left; }
.build-step[aria-selected="true"] { color: var(--white); }
.build-step[aria-selected="true"]::before { transform: scaleX(1); }
.build-step.is-playing::before { animation: fill-x var(--dur, 3.4s) linear forwards; }
.step-no { font-size: 0.8125rem; font-weight: 700; color: var(--stripe); }
.step-name { font-weight: 750; font-stretch: 105%; font-size: 0.9375rem; line-height: 1.2; }
.step-date { font-size: 0.8125rem; opacity: 0.8; }
@media (max-width: 359px) { .build-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 12px; } }

.build-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--van-2); cursor: zoom-in; }
.build-shot { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 0.8s ease; }
.build-shot.is-on { opacity: 1; z-index: 1; }
.build-shot img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Job cards and the phone swipe row ---------- */
.card { scroll-snap-align: start; }
.card-link { display: block; color: inherit; text-decoration: none; }
.card-media { position: relative; display: block; overflow: hidden; background: var(--harl); }
.card-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.7s var(--ease); }
.card-link:hover .card-media img { transform: scale(1.04); }
.card-count {
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  background: var(--van);
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.2;
}
.card-title { margin: 14px 0 2px; font-size: 1.25rem; font-stretch: 108%; font-weight: 750; line-height: 1.2; transition: color 0.2s ease; }
.card-link:hover .card-title { color: var(--stripe-ink); }
.card-meta { display: flex; flex-wrap: wrap; gap: 2px 12px; color: var(--muted); font-size: 0.9375rem; }
.card-type { display: none; }

.track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(82vw, 360px);
  gap: 16px;
  padding: 0 var(--gutter) 6px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.track::-webkit-scrollbar { display: none; }
.track-nav { display: flex; gap: 10px; margin-top: 22px; }

/* ---------- About ---------- */
.about { background: var(--harl); }
.about-grid { display: grid; gap: 36px; }
.about-copy .section-title { margin-bottom: 24px; }
.about-copy p { max-width: 36em; margin-bottom: 18px; font-size: 1.125rem; }
.about-copy p:first-of-type { font-family: var(--display); font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); font-stretch: 104%; font-weight: 600; line-height: 1.35; }
.about-photo { margin: 0; }
.about-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.about-photo figcaption { margin-top: 8px; color: var(--muted); font-size: 0.875rem; }

/* ---------- Reviews ---------- */
.reviews { background: var(--white); }
.quote { margin: 0; }
.quote blockquote { margin: 0; }
.quote blockquote::before {
  content: "\201C";
  display: block;
  height: 0.55em;
  color: var(--stripe);
  font-family: var(--logo);
  font-weight: 900;
  font-size: 4rem;
  line-height: 1;
}
.quote blockquote p { font-family: var(--display); font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.75rem); font-stretch: 104%; font-weight: 600; line-height: 1.35; letter-spacing: -0.006em; }
.quote figcaption { display: grid; margin-top: 18px; line-height: 1.4; }
.quote figcaption strong { font-weight: 800; }
.quote figcaption span { color: var(--muted); font-size: 0.9375rem; }

.quotes-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 32px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.quotes-track::-webkit-scrollbar { display: none; }
.quote-slide { scroll-snap-align: start; }
.quotes-nav { display: flex; align-items: center; gap: 14px; margin-top: 30px; }
.quotes-dots { display: flex; gap: 6px; }
.quotes-dots i { display: block; width: 8px; height: 8px; background: #B7C0BF; transition: width 0.35s var(--ease), background-color 0.3s ease; }
.quotes-dots i.is-on { width: 28px; background: var(--stripe-ink); }

/* ---------- Call to action ---------- */
.cta { padding: 64px 0; background: var(--stripe); color: var(--van); }
.cta-grid { display: grid; gap: 26px; }
.cta-title { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.5rem); font-stretch: 116%; line-height: 1.02; letter-spacing: -0.015em; }
.cta-lede { max-width: 30em; margin-top: 14px; font-size: 1.125rem; }
.cta-actions { display: grid; gap: 14px; justify-items: start; }
.cta-phone {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--van);
  font-family: var(--display);
  font-size: clamp(1.875rem, 1.3rem + 2.6vw, 3.25rem);
  font-stretch: 110%;
  font-weight: 800;
  line-height: 1.05;
  white-space: nowrap;
  text-decoration: none;
}
.cta-phone i { font-size: 0.62em; }

/* ---------- Footer ---------- */
.site-footer { padding: 64px 0 calc(32px + env(safe-area-inset-bottom)); background: var(--deep); color: var(--on-van); }
.livery { display: inline-flex; flex-direction: column; align-items: flex-start; margin-bottom: 44px; color: var(--white); text-decoration: none; }
.livery-word {
  font-family: var(--logo);
  font-size: clamp(3.4rem, 15vw, 8rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.015em;
  padding-bottom: 0.07em;
  border-bottom: max(5px, 0.055em) solid var(--stripe);
}
.livery-sub { margin-top: 0.55em; font-size: clamp(0.8rem, 2.6vw, 1.4rem); font-weight: 800; font-stretch: 115%; letter-spacing: 0.2em; line-height: 1.1; text-transform: uppercase; }
.livery-line { margin-top: 0.45em; color: var(--stripe); font-size: clamp(0.68rem, 2vw, 1rem); font-weight: 700; font-stretch: 112%; letter-spacing: 0.12em; text-transform: uppercase; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; padding: 28px 0; border-top: 1px solid var(--van-3); }
.footer-head { margin-bottom: 10px; color: var(--white); font-weight: 800; }
.footer-list { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.footer-list a, .footer-list span { display: inline-block; padding: 6px 0; color: var(--on-van); text-decoration: none; line-height: 1.4; }
.footer-list a:hover { color: var(--white); }
.footer-contact { grid-column: 1 / -1; }
.legal { max-width: 62em; padding-top: 20px; border-top: 1px solid var(--van-3); color: #8E9AA3; font-size: 0.8125rem; }

/* ---------- Inner page heading (Our work, 404) ---------- */
.page-head { padding: 28px 0 40px; background: var(--harl); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; color: var(--muted); font-size: 0.9375rem; }
.crumbs a { color: inherit; }
.page-title { font-size: clamp(2.375rem, 1.6rem + 3.2vw, 4rem); font-stretch: 114%; line-height: 1; letter-spacing: -0.02em; }
.page-lede { max-width: 36em; margin-top: 16px; color: var(--muted); font-size: 1.125rem; }
.notfound-links { display: flex; gap: 24px; margin: 28px 0 0; padding: 0; list-style: none; }

/* ---------- Our work ---------- */
.work { padding-top: 32px; }
.filters {
  display: flex;
  gap: 4px 22px;
  margin: 0 calc(-1 * var(--gutter)) 28px;
  padding: 0 var(--gutter);
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--line);
}
.filters::-webkit-scrollbar { display: none; }
.filter {
  position: relative;
  flex: none;
  padding: 12px 0 14px;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s ease;
}
.filter:hover { color: var(--ink); }
.filter::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--stripe); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease); }
.filter[aria-pressed="true"] { color: var(--ink); }
.filter[aria-pressed="true"]::after { transform: scaleX(1); }
.filter-n { color: var(--muted); font-weight: 500; font-size: 0.875em; }
.filter-note { max-width: 40em; margin: -8px 0 28px; color: var(--muted); }
.work-grid { display: grid; gap: 34px 20px; }
.work-grid .card[hidden] { display: none; }
.work-grid .card-type { display: inline; }
.work-grid .card-type::before { content: ""; display: inline-block; width: 4px; height: 4px; margin: 0 10px 3px 0; background: var(--stripe); vertical-align: middle; }
.work-grid .card.is-shown { animation: rise 0.5s var(--ease) both; animation-delay: calc(var(--i, 0) * 40ms); }

/* ---------- Contact ---------- */
.contact-page { padding: 28px 0 72px; background: var(--harl); }
.contact-grid { display: grid; gap: 40px; }
.contact-phone {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 10px;
  color: var(--van);
  font-family: var(--display);
  font-size: clamp(1.875rem, 1.3rem + 2.6vw, 3rem);
  font-stretch: 110%;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
  text-decoration: none;
}
.contact-phone i { color: var(--stripe-ink); font-size: 0.66em; }
.contact-list { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.contact-list a, .contact-list span { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--ink); line-height: 1.35; }
.contact-list i { width: 20px; color: var(--stripe-ink); text-align: center; }

.enquiry { display: grid; gap: 16px; margin-inline: calc(-1 * var(--gutter)); padding: 26px var(--gutter) 28px; background: var(--van); color: var(--white); }
.form-title { font-size: 1.625rem; font-stretch: 112%; }
.field label { display: block; margin-bottom: 6px; font-size: 0.9375rem; font-weight: 700; }
.optional { color: var(--on-van); font-weight: 400; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--white);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 1.0625rem;
}
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 3px solid var(--stripe); outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: #F28B82; outline: 2px solid #F28B82; }
.form-status { min-height: 1.5em; color: var(--on-van); font-size: 0.9375rem; }
.form-status.is-error { color: #F28B82; }
.turnstile { min-height: 65px; }
.enquiry button[disabled] { opacity: 0.7; cursor: progress; }
.enquiry.is-done > :not(.form-done) { display: none; }
.form-done { outline: none; }
.form-done p { margin-top: 10px; color: var(--on-van); }
.form-done a { color: var(--white); font-weight: 700; }

/* ---------- Photo viewer ---------- */
.viewer {
  width: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #0F1519;
  color: var(--white);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.viewer::backdrop { background: #0F1519; }
.viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.viewer.is-on { opacity: 1; }
.viewer-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: max(6px, env(safe-area-inset-top)) 6px 6px 20px; }
.viewer-title { font-weight: 700; line-height: 1.3; }
.viewer-close { display: grid; place-items: center; width: 52px; height: 52px; flex: none; padding: 0; border: 0; background: transparent; color: var(--white); font-size: 1.5rem; cursor: pointer; }
.viewer-stage { position: relative; min-height: 0; margin: 0 8px; touch-action: pan-y; }
.viewer-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity 0.2s ease; }
.viewer-img.is-swapping { opacity: 0; }
.viewer-arrow {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  margin-top: -24px;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 21, 25, 0.7);
  color: var(--white);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.viewer-arrow:hover { background: var(--stripe); color: var(--van); }
.viewer-prev { left: 6px; }
.viewer-next { right: 6px; }
.viewer.single .viewer-arrow, .viewer.single .viewer-thumbs, .viewer.single .viewer-count { display: none; }
.viewer-foot { display: grid; gap: 12px; padding: 12px 20px calc(16px + env(safe-area-inset-bottom)); }
.viewer-count { color: var(--stripe); font-size: 0.875rem; font-weight: 700; }
.viewer-cap { color: var(--on-van); line-height: 1.45; }
.viewer-thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.viewer-thumbs::-webkit-scrollbar { display: none; }
.viewer-thumb { flex: none; width: 64px; padding: 0; border: 2px solid transparent; background: var(--van-2); opacity: 0.55; cursor: pointer; transition: opacity 0.2s ease, border-color 0.2s ease; }
.viewer-thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.viewer-thumb:hover { opacity: 0.85; }
.viewer-thumb[aria-current="true"] { border-color: var(--stripe); opacity: 1; }

/* ---------- Bigger phones and small tablets ---------- */
@media (min-width: 560px) {
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Tablets ---------- */
@media (min-width: 760px) {
  :root { --gutter: 36px; }
  body { font-size: 1.125rem; }
  .section { padding: 96px 0; }
  .section-head { margin-bottom: 40px; }
  .hero-actions .btn { flex: 0 0 auto; }
  .hero-grid { padding-top: 36px; }
  .hero-media { margin-inline: 0; }

  .svc-grid { gap: 44px 24px; }
  .svc-name { font-size: 1.375rem; }

  .track { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-columns: auto; gap: 32px 20px; width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; padding: 0; overflow: visible; }
  .track-nav { display: none; }


  .quotes-track { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-columns: auto; gap: 48px 56px; overflow: visible; }
  .quotes-nav { display: none; }

  .cta { padding: 88px 0; }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1.3fr; }
  .footer-contact { grid-column: auto; }
  .filters { margin-inline: 0; padding-inline: 0; flex-wrap: wrap; overflow: visible; }
  .enquiry { margin-inline: 0; padding: 32px; }
}

@media (min-width: 900px) {
  .work-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 24px; }
}

/* ---------- Desktop ---------- */
@media (min-width: 960px) {
  :root { --header-h: 80px; }

  .logo-word { font-size: 1.875rem; }
  .logo-sub { font-size: 0.625rem; }
  .menu-toggle, .menu { display: none !important; }

  .nav { display: block; margin-right: 8px; }
  .nav-list { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
  .nav-list a { display: inline-flex; align-items: center; height: 44px; padding: 0 14px; color: var(--white); font-size: 1rem; font-weight: 600; text-decoration: none; transition: color 0.2s ease; }
  .nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--stripe); }

  .header-call { height: 48px; padding: 0 18px; }
  .call-short { display: none; }
  .call-long { display: inline; }


  .about-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 72px; align-items: center; }

  .cta-grid { grid-template-columns: 1.2fr 1fr; align-items: end; }

  .page-head { padding: 40px 0 56px; }

  .contact-page { padding: 40px 0 112px; }
  .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: start; }

  .viewer-foot { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; padding-inline: 28px; }
  .viewer-top { padding-left: 28px; }
  .viewer-stage { margin: 0 24px; }
  .viewer-arrow { width: 56px; height: 56px; margin-top: -28px; font-size: 1.25rem; }
  .viewer-prev { left: 12px; }
  .viewer-next { right: 12px; }
  .viewer-thumb { width: 84px; }
}

/* ---------- Laptops and up: the hero sits side by side, inside the same column as everything else ---------- */
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 48px; padding: 48px 0 64px; }
  .hero-media { order: 0; }
  .hero-copy { padding: 0; }
  .hero-title { font-size: clamp(2.5rem, 0.9rem + 2.6vw, 3.75rem); }
  .slide-bars { left: 16px; right: 16px; top: 16px; }
  .slide figcaption { left: 16px; bottom: 16px; }
  .slide-pause { right: 16px; bottom: 16px; }
}

@media (min-width: 1200px) {
  .hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; padding: 56px 0 72px; }
  .hero-lede { font-size: 1.1875rem; }
}

@media (min-width: 1100px) {
  .build { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: 64px; }
  .build-steps { grid-template-columns: 1fr; gap: 0; margin-top: 36px; }
  .build-step { grid-template-columns: 36px minmax(0, 1fr) auto; align-items: baseline; gap: 12px; padding: 18px 0 18px 18px; border-top: 0; border-left: 3px solid var(--van-3); }
  .build-step::before { top: 0; left: -3px; width: 3px; height: 100%; transform: scaleY(0); transform-origin: top; }
  .build-step[aria-selected="true"]::before { transform: scaleY(1); }
  .build-step.is-playing::before { animation-name: fill-y; }
  .step-name { font-size: 1.125rem; }
  .step-date { font-size: 0.9375rem; }

  .work-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .svc-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 52px 24px; }
  .svc-grid > li, .svc-grid > li:first-child { grid-column: span 3; }
  .svc-grid > li:nth-child(-n + 3) { grid-column: span 4; }
  .svc-grid > li:first-child .svc-media img { aspect-ratio: 4 / 3; }
}

/* ---------- Motion ---------- */
@keyframes fill-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes fill-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes word-up { from { transform: translateY(110%); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: no-preference) {
  /* Page load: headline words rise, then the text and photo fade up */
  .js:not(.ready) [data-split] .w > span { transform: translateY(110%); }
  .ready [data-split] .w > span { animation: word-up 0.8s var(--ease) both; animation-delay: calc(var(--wi) * 0.035s); }
  .js:not(.ready) .load-in { opacity: 0; }
  .ready .load-in { animation: rise 0.8s var(--ease) both; animation-delay: calc(0.2s + var(--d, 0) * 0.1s); }

  /* Scrolling: things below the first screen fade up as they arrive */
  .pre { opacity: 0; transform: translateY(24px); }
  .pre.is-in { opacity: 1; transform: none; transition: opacity 0.7s ease, transform 0.8s var(--ease); transition-delay: calc(var(--i, 0) * 0.07s); }
  .pre .stripe-head::after, .stripe-head.pre::after { transform: scaleX(0); }
  .pre.is-in .stripe-head::after, .stripe-head.pre.is-in::after { transform: scaleX(1); transition: transform 0.9s var(--ease) 0.25s; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-delay: 0s !important; }
}
