/* ==========================================================================
   Kernow Sky High — Design system & site styles
   Static, hand-written CSS. No build step required.
   ========================================================================== */

/* -------------------------------- Tokens -------------------------------- */

:root {
  /* Palette — seeded from the logo (navy/cyan) and the golden-hour cliff shot (gold) */
  --color-navy-900: #0a1b2e;
  --color-navy: #0f2740;
  --color-navy-700: #17324f;
  --color-navy-600: #204163;

  --color-teal: #3fb6c8;
  --color-teal-light: #7fd4e0;
  --color-teal-dark: #1b6b7a;

  --color-gold: #d98a3d;
  --color-gold-dark: #b8712e;
  --color-gold-light: #f0ab63;

  --color-sand: #f5f1ea;
  --color-sand-100: #fbf9f5;
  --color-sand-300: #ece5d8;

  --color-white: #ffffff;
  --color-ink: #14181b;
  --color-ink-soft: #3d4750;
  --color-ink-muted: #5c6670;

  /* Text on dark surfaces */
  --color-on-dark: #f5f1ea;
  --color-on-dark-muted: #b7c3cd;

  /* Semantic */
  --surface-light: var(--color-sand);
  --surface-white: var(--color-white);
  --surface-dark: var(--color-navy);
  --text-on-light: var(--color-ink);
  --text-on-dark: var(--color-on-dark);
  --accent: var(--color-gold);
  --accent-hover: var(--color-gold-dark);
  --link: var(--color-teal-dark);

  --focus-ring: 3px solid var(--color-gold);
  --focus-ring-offset: 2px;

  /* Type */
  --font-heading: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 1.9rem);
  --step-3: clamp(1.9rem, 1.6rem + 1.6vw, 2.6rem);
  --step-4: clamp(2.4rem, 1.9rem + 2.6vw, 3.6rem);
  --step-5: clamp(2.9rem, 2.2rem + 3.6vw, 4.6rem);

  /* Layout */
  --container-max: 1240px;
  --container-pad: 1.25rem;
  --section-pad-y: clamp(3.5rem, 3rem + 2.5vw, 6.5rem);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-card: 0 12px 30px -14px rgba(15, 39, 64, 0.35);
  --shadow-soft: 0 4px 16px -6px rgba(15, 39, 64, 0.2);

  --header-height: 76px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --motion-fast: 200ms;
  --motion-med: 420ms;
}

/* -------------------------------- Reset ---------------------------------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 12px);
}

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

html,
body {
  /* Belt-and-braces guard against any element bleeding past the viewport
     edge (e.g. the phone-landscape video embed fix below) and shifting the
     page sideways. */
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--text-on-light);
  background: var(--surface-white);
  -webkit-font-smoothing: antialiased;
}

img,
picture,
video {
  max-width: 100%;
  display: block;
}

svg {
  display: block;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin: 0 0 0.6em;
  color: var(--color-navy);
}

h1 {
  font-size: var(--step-5);
  letter-spacing: 0.01em;
}
h2 {
  font-size: var(--step-3);
}
h3 {
  font-size: var(--step-2);
}
h4 {
  font-size: var(--step-1);
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--link);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--color-teal);
}

ul,
ol {
  padding-left: 1.25em;
}

button {
  font-family: inherit;
}

:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
  border-radius: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -60px;
  z-index: 1000;
  background: var(--color-navy);
  color: var(--color-on-dark);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  transition: top var(--motion-fast) var(--ease);
}

.skip-link:focus {
  top: 1rem;
}

/* ------------------------------- Layout ---------------------------------- */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

section {
  padding-block: var(--section-pad-y);
}

.section-light {
  background: var(--surface-light);
}

.section-white {
  background: var(--surface-white);
}

.section-dark {
  background: var(--surface-dark);
  color: var(--text-on-dark);
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--color-on-dark);
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2rem, 1.6rem + 1.6vw, 3.25rem);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-teal-dark);
  margin-bottom: 0.75em;
}

.section-dark .eyebrow {
  color: var(--color-teal-light);
}

.section-head p {
  color: var(--color-ink-soft);
  font-size: var(--step-1);
}

.section-dark .section-head p {
  color: var(--color-on-dark-muted);
}

/* -------------------------------- Buttons -------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.03em;
  font-size: var(--step--1);
  text-decoration: none;
  padding: 0.9em 1.6em;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--motion-fast) var(--ease), background-color var(--motion-fast) var(--ease),
    color var(--motion-fast) var(--ease), border-color var(--motion-fast) var(--ease);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: var(--color-navy-900);
  border-color: var(--accent);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--color-navy-900);
}

.btn-outline {
  background: transparent;
  color: var(--color-on-dark);
  border-color: rgba(245, 241, 234, 0.4);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  border-color: var(--color-on-dark);
  color: var(--color-on-dark);
}

.btn-outline-dark {
  background: transparent;
  color: var(--color-navy);
  border-color: var(--color-navy);
}

.btn-outline-dark:hover,
.btn-outline-dark:focus-visible {
  background: var(--color-navy);
  color: var(--color-on-dark);
}

.btn-block {
  width: 100%;
}

/* --------------------------------- Header -------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 39, 64, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--color-on-dark);
  min-width: 0;
}

.brand img {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
}

.brand-word {
  font-family: var(--font-heading);
  line-height: 1.1;
  min-width: 0;
}

.brand-word strong {
  display: block;
  font-size: 1.14rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--color-on-dark);
}

.brand-word span {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--color-teal-light);
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 1vw + 0.5rem, 2rem);
}

.nav-links {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.75rem;
  align-items: center;
}

.nav-links a {
  color: var(--color-on-dark-muted);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 0.4rem 0.1rem;
  border-bottom: 2px solid transparent;
  transition: color var(--motion-fast) var(--ease), border-color var(--motion-fast) var(--ease);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--color-on-dark);
  border-color: var(--color-teal);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-phone {
  display: none;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-on-dark);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
}

.header-phone:hover {
  color: var(--color-teal-light);
}

.nav-toggle {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-sm);
  color: var(--color-on-dark);
  cursor: pointer;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

.nav-toggle .icon-close {
  display: none;
}

.nav-open .nav-toggle .icon-open {
  display: none;
}

.nav-open .nav-toggle .icon-close {
  display: block;
}

.mobile-nav-panel {
  position: fixed;
  inset: var(--header-height) 0 0 0;
  background: var(--color-navy-900);
  z-index: 99;
  padding: 2rem var(--container-pad);
  display: none;
  overflow-y: auto;
}

.nav-open .mobile-nav-panel {
  display: block;
}

.mobile-nav-panel ul {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-nav-panel a {
  display: block;
  color: var(--color-on-dark);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  padding: 0.85rem 0.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav-panel .header-phone {
  display: inline-flex;
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 899px) {
  .site-header .container {
    gap: 0.5rem;
  }
  .brand img {
    width: 46px;
    height: 46px;
  }
  .brand-word strong {
    font-size: 1.02rem;
    letter-spacing: 0.08em;
  }
  .brand-word span {
    font-size: 0.65rem;
    letter-spacing: 0.14em;
  }
  /* Kept out of the blue banner so it can't collide with the burger or the
     brand text; on phones the hero's own CTA row carries "Get a quote". */
  .header-actions > .btn-primary {
    display: none;
  }
}

@media (max-width: 380px) {
  .brand img {
    width: 40px;
    height: 40px;
  }
  .brand-word span {
    display: none;
  }
}

@media (min-width: 900px) {
  .nav-links {
    display: flex;
  }
  .header-phone {
    display: inline-flex;
  }
  .nav-toggle {
    display: none;
  }
  .mobile-nav-panel {
    display: none !important;
  }
}

/* --------------------------------- Hero ---------------------------------- */

.hero {
  position: relative;
  min-height: min(96vh, 980px);
  display: flex;
  align-items: flex-end;
  color: var(--color-on-dark);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 27, 46, 0.55) 0%,
    rgba(10, 27, 46, 0.25) 35%,
    rgba(10, 27, 46, 0.55) 75%,
    rgba(10, 27, 46, 0.92) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-block: clamp(3.5rem, 9vh, 5.75rem) clamp(3.5rem, 8vh, 5.25rem);
  max-width: 46rem;
}

@media (max-width: 899px) {
  /* Trim the excess dark gradient sitting below the text/CTAs on phones.
     .hero is a <section>, so it was also inheriting the generic
     `section { padding-block }` rule on top of .hero-content's own
     padding — the two stacked to leave a large gap of gradient below the
     CTAs before the next section. Zero out .hero's own bottom padding and
     let .hero-content's (smaller, deliberate) padding be the only gap. */
  .hero {
    padding-block-end: 0;
  }
  .hero-content {
    padding-block-end: clamp(1.5rem, 4vh, 2.25rem);
  }
}

/* Looping overlay: tagline, then each testimonial quote in turn.
   Fixed height (no JS measuring/animating it): sized to the tallest of the
   four slides — the tagline is always tallest — measured across 280-1920px
   in 5px steps with the web fonts loaded. Phones (315-899px, where the h1
   drops "across Cornwall"): max 506px, at 370px; 501px at 350px. Below
   315px the tagline wraps to 607px, so that sliver keeps the old taller
   box. From ~900px up, .hero-content's own 46rem max-width caps line-wrap
   so one value covers all desktop widths (measured max: 561px, with the
   tagline's "and beyond" hidden there); 36rem leaves 15px headroom while
   keeping the hero CTAs above the fold at 1440x900 (bottom edge ~871px).
   Phone tiers have ~30px headroom. Slides are always absolutely stacked and
   cross-fade/swipe in place, vertically centred within the fixed box. */
.hero-rotator {
  position: relative;
  min-height: 33.5rem;
}

@media (max-width: 314px) {
  .hero-rotator {
    min-height: 39.5rem;
  }
}

@media (min-width: 900px) {
  .hero-rotator {
    min-height: 36rem;
  }
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translateX(32px);
  transition: opacity var(--motion-med) var(--ease), transform var(--motion-med) var(--ease);
  pointer-events: none;
  z-index: 1;
}

.hero-slide.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  z-index: 2;
}

.hero-slide.is-leaving {
  transform: translateX(-32px);
}

.hero-quote {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: var(--step-2);
  line-height: 1.4;
  color: var(--color-white);
  text-align: center;
  text-wrap: balance;
  max-width: 40rem;
  margin: 0 auto 0.85em;
}

.hero-quote::before {
  content: "\201C";
}

.hero-quote::after {
  content: "\201D";
}

.hero-quote-attribution {
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--step-0);
  letter-spacing: 0.02em;
  color: var(--color-teal-light);
  margin: 0;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-heading);
  font-size: var(--step--1);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-teal-light);
  margin-bottom: 1rem;
}

.hero h1 {
  color: var(--color-white);
  font-size: var(--step-5);
  margin-bottom: 0.5em;
  text-wrap: balance;
}

/* Phones drop the trailing "across Cornwall" from the h1 (it stays in the
   DOM, and on screen from 900px up). */
@media (max-width: 899px) {
  .hero-h1-region {
    display: none;
  }
}

/* Desktop drops "and beyond" from the tagline so it stays one line shorter
   and the hero CTAs clear the fold at 1440x900 (see .hero-rotator). */
@media (min-width: 900px) {
  .hero-sub-reach {
    display: none;
  }
}

/* Manual prev/next for the rotator. Revealed by hero-rotator.js (hidden
   without JS). They sit outside #hero-rotator so using them doesn't trip its
   hover/focus pause. Phones: the visible chevron sits in the side gutter
   (so slide text keeps its full width); the tap area extends a little over
   the text, which is harmless as the slides aren't interactive. From 900px:
   round buttons outside .hero-content's text column. */
.hero-rotator-wrap {
  position: relative;
}

.hero-rotator-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.75rem;
  margin-top: -1.375rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--color-white);
  opacity: 0.75;
  cursor: pointer;
  transition: opacity var(--motion-fast) var(--ease), background-color var(--motion-fast) var(--ease);
}

.hero-rotator-nav[hidden] {
  display: none;
}

.hero-rotator-nav:hover,
.hero-rotator-nav:focus-visible {
  opacity: 1;
}

.hero-rotator-nav svg {
  width: 1.25rem;
  height: 1.25rem;
}

.hero-rotator-prev {
  left: calc(-1 * var(--container-pad));
  justify-content: flex-start;
}

.hero-rotator-next {
  right: calc(-1 * var(--container-pad));
  justify-content: flex-end;
}

@media (min-width: 900px) {
  .hero-rotator-nav {
    width: 2.75rem;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(10, 27, 46, 0.35);
  }
  .hero-rotator-nav:hover,
  .hero-rotator-nav:focus-visible {
    background: rgba(10, 27, 46, 0.6);
  }
  .hero-rotator-prev {
    left: -4rem;
  }
  .hero-rotator-next {
    right: -4rem;
  }
}

.hero-sub {
  font-size: var(--step-1);
  color: var(--color-on-dark-muted);
  max-width: 38rem;
  margin-bottom: 1.75em;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-scroll-cue {
  position: absolute;
  bottom: 1.5rem;
  right: clamp(1.25rem, 4vw, 3rem);
  z-index: 2;
  color: var(--color-on-dark-muted);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  display: none;
}

@media (min-width: 700px) {
  .hero-scroll-cue {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
  }
}

/* ------------------------------ Credentials ------------------------------ */

.credentials-strip {
  background: var(--color-navy-900);
  color: var(--color-on-dark);
  padding-block: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem);
}

.credentials-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.credentials-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 0.95rem;
  color: var(--color-on-dark-muted);
}

.credentials-list svg {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  color: var(--color-teal);
  margin-top: 2px;
}

.credentials-list strong {
  display: block;
  color: var(--color-on-dark);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
}

/* --------------------------------- About ---------------------------------- */

.about-intro {
  max-width: 50rem;
  margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
}

.about-intro p {
  font-size: var(--step-1);
  color: var(--color-ink-soft);
}

.pillars {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: 1fr;
}

@media (min-width: 760px) {
  .pillars {
    grid-template-columns: 1fr 1fr;
  }
  /* an odd card out (the third pillar) runs full width rather than sitting
     half-empty next to a gap */
  .pillars .pillar-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1040px) {
  .pillars {
    grid-template-columns: repeat(3, 1fr);
  }
  .pillars .pillar-card:last-child:nth-child(odd) {
    grid-column: auto;
  }
  .pillar-card-body {
    padding: 1.75rem;
  }
}

.pillar-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  color: var(--color-white);
  box-shadow: var(--shadow-card);
}

.pillar-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--motion-med) var(--ease);
}

.pillar-card:hover img {
  transform: scale(1.04);
}

.pillar-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 27, 46, 0) 20%, rgba(10, 27, 46, 0.72) 58%, rgba(10, 27, 46, 0.92) 100%);
}

.pillar-card-body {
  position: relative;
  z-index: 1;
  padding: 2rem;
}

.pillar-card-body .eyebrow {
  color: var(--color-teal-light);
}

.pillar-card-body h3 {
  color: var(--color-white);
  margin-bottom: 0.4em;
}

.pillar-card-body p {
  color: rgba(245, 241, 234, 0.88);
  margin-bottom: 0;
  max-width: 32rem;
}

/* ------------------------------- Gallery/Work ------------------------------ */

.showreel {
  margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
}

.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-navy-900);
  box-shadow: var(--shadow-card);
}

.video-embed img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Fix: on some phones in landscape the embed was rendering shifted right
   (a black band on the left, content cut off on the right). Pin the
   dimensions explicitly rather than relying on inset shorthand alone. */
@media (max-width: 926px) and (orientation: landscape) {
  .video-embed {
    width: 100%;
    max-width: 100%;
  }
  .video-embed img,
  .video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    transform: none;
  }
}

.video-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: rgba(10, 27, 46, 0.25);
  border: 0;
  cursor: pointer;
  color: var(--color-white);
}

.video-play-btn .play-circle {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: rgba(217, 138, 61, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--motion-fast) var(--ease);
}

.video-play-btn:hover .play-circle,
.video-play-btn:focus-visible .play-circle {
  transform: scale(1.08);
}

.video-play-btn svg {
  width: 32px;
  height: 32px;
  color: var(--color-navy-900);
  margin-left: 4px;
}

.video-caption {
  margin-top: 0.85rem;
  font-size: 0.85rem;
  color: var(--color-ink-muted);
}

.gallery-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1000px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 12px;
    grid-auto-flow: dense;
  }
  .gallery-grid .gallery-item {
    grid-row: span 22;
  }
  .gallery-grid .gallery-item.tall {
    grid-row: span 30;
  }
  .gallery-grid .gallery-item.wide {
    grid-column: span 2;
  }
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  border: 0;
  padding: 0;
  background: var(--color-navy-700);
  aspect-ratio: 4 / 3;
}

@media (min-width: 1000px) {
  .gallery-item {
    aspect-ratio: auto;
  }
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--motion-med) var(--ease);
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.06);
}

.gallery-item-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.9rem 1rem;
  background: linear-gradient(0deg, rgba(10, 27, 46, 0.85), rgba(10, 27, 46, 0));
  color: var(--color-white);
  font-size: 0.8rem;
  text-align: left;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--motion-fast) var(--ease), transform var(--motion-fast) var(--ease);
}

.gallery-item:hover .gallery-item-label,
.gallery-item:focus-visible .gallery-item-label {
  opacity: 1;
  transform: translateY(0);
}

/* -------------------------------- Lightbox -------------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  background: rgba(10, 17, 26, 0.94);
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.lightbox[data-open="true"] {
  display: flex;
}

.lightbox-figure {
  position: relative;
  max-width: min(1100px, 92vw);
  max-height: 86vh;
  width: 100%;
}

.lightbox-figure img {
  width: 100%;
  height: auto;
  max-height: 78vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  margin-inline: auto;
}

.lightbox-caption {
  color: var(--color-on-dark-muted);
  font-size: 0.9rem;
  margin-top: 0.75rem;
  text-align: center;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(245, 241, 234, 0.1);
  border: 1px solid rgba(245, 241, 234, 0.3);
  color: var(--color-white);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox-close svg,
.lightbox-prev svg,
.lightbox-next svg {
  width: 20px;
  height: 20px;
}

.lightbox-close {
  top: -1.25rem;
  right: -1.25rem;
}

.lightbox-prev {
  left: clamp(-3.25rem, -6vw, -0.5rem);
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: clamp(-3.25rem, -6vw, -0.5rem);
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 700px) {
  .lightbox-close {
    top: -3.25rem;
    right: 0;
  }
  .lightbox-prev {
    left: 0;
    top: auto;
    bottom: -3.5rem;
    transform: none;
  }
  .lightbox-next {
    right: 0;
    top: auto;
    bottom: -3.5rem;
    transform: none;
  }
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-navy-900);
}

/* ------------------------------- Trusted by -------------------------------- */

.logo-strip {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
  align-items: stretch;
}

@media (min-width: 640px) {
  .logo-strip {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

@media (min-width: 960px) {
  .logo-strip {
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
  }
}

.logo-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 116px;
  background: var(--surface-white);
  border: 1px solid var(--color-sand-300);
  border-radius: var(--radius-md);
  padding: 0.85rem;
}

@media (min-width: 640px) {
  .logo-tile {
    height: 138px;
    padding: 1rem 1.1rem;
  }
}

@media (min-width: 960px) {
  .logo-tile {
    height: 160px;
    padding: 1.25rem 1.4rem;
  }
}

/* Always shown in full colour (no grayscale-until-hover treatment). */
.logo-tile img {
  max-height: 54px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

@media (min-width: 640px) {
  .logo-tile img {
    max-height: 68px;
    max-width: 188px;
  }
}

@media (min-width: 960px) {
  .logo-tile img {
    max-height: 80px;
    max-width: 220px;
  }
}

.logo-tile.placeholder {
  border-style: dashed;
  color: var(--color-ink-muted);
  font-size: 0.75rem;
  text-align: center;
  line-height: 1.4;
}

/* ------------------------------- Testimonials ------------------------------ */

.testimonial-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .testimonial-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  background: var(--surface-white);
  border: 1px solid var(--color-sand-300);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow-soft);
}

/* Placeholder avatar slot (e.g. Steve Backshall, pending a real photo). */
.testimonial-byline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-navy);
  color: var(--color-teal-light);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-byline .testimonial-attribution {
  margin: 0;
}

.testimonial-quote {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--color-navy);
  margin: 0;
  line-height: 1.5;
}

.testimonial-quote::before {
  content: "\201C";
  color: var(--color-gold);
}

.testimonial-quote::after {
  content: "\201D";
  color: var(--color-gold);
}

.testimonial-attribution {
  font-size: 0.85rem;
  color: var(--color-ink-muted);
  font-weight: 600;
}

/* the long UKSRL quote gets the full row rather than a very tall narrow column */
@media (min-width: 1100px) {
  .testimonial-card-long {
    grid-column: 1 / -1;
  }
}

/* ------------------------------- Equipment -------------------------------- */

.equipment-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 760px) {
  .equipment-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.equipment-card {
  background: var(--surface-white);
  border: 1px solid var(--color-sand-300);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
}

.equipment-card .eyebrow {
  margin-bottom: 0.4rem;
}

.equipment-card ul {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.equipment-card ul li {
  display: flex;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--color-ink-soft);
}

.equipment-card ul li::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-top: 0.55em;
  border-radius: 50%;
  background: var(--color-gold);
}

/* -------------------------------- Pricing ---------------------------------- */

.pricing-card {
  max-width: 46rem;
  margin: 0 auto;
  background: linear-gradient(155deg, var(--color-navy) 0%, var(--color-navy-900) 100%);
  color: var(--color-on-dark);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 1.6rem + 2vw, 3.25rem);
  text-align: center;
  box-shadow: var(--shadow-card);
}

.pricing-card h2 {
  color: var(--color-white);
}

.pricing-card p {
  color: var(--color-on-dark-muted);
  font-size: 1.02rem;
}

.pricing-card .pricing-note {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(245, 241, 234, 0.15);
  font-size: 0.88rem;
  color: var(--color-on-dark-muted);
}

.pricing-card .btn {
  margin-top: 0.75rem;
}

/* ----------------------------------- FAQ ------------------------------------ */

.faq-list {
  max-width: 50rem;
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  background: var(--surface-white);
  border: 1px solid var(--color-sand-300);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.15rem 1.35rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary .faq-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-sand);
  color: var(--color-navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--motion-fast) var(--ease);
}

.faq-item[open] summary .faq-icon {
  transform: rotate(45deg);
  background: var(--color-gold);
  color: var(--color-navy-900);
}

.faq-answer {
  padding: 0 1.35rem 1.35rem;
  color: var(--color-ink-soft);
}

.faq-answer p {
  margin: 0;
}

/* --------------------------------- Contact ---------------------------------- */

.contact-layout {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr 1.3fr;
  }
}

.contact-info-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
}

.contact-info-list a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-on-dark);
  text-decoration: none;
  font-weight: 500;
}

.contact-info-list svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--color-teal);
}

.contact-info-list a:hover {
  color: var(--color-teal-light);
}

.contact-form {
  background: var(--surface-white);
  color: var(--text-on-light);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 1.4rem + 1.6vw, 2.75rem);
  box-shadow: var(--shadow-card);
}

.form-row {
  margin-bottom: 1.25rem;
}

.form-row label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--color-navy);
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.8em 1em;
  border: 1.5px solid var(--color-sand-300);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  background: var(--color-sand-100);
  color: var(--color-ink);
  transition: border-color var(--motion-fast) var(--ease), background var(--motion-fast) var(--ease);
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--color-teal);
  background: var(--surface-white);
}

.form-row input[aria-invalid="true"],
.form-row textarea[aria-invalid="true"] {
  border-color: #c0392b;
}

.form-error {
  display: none;
  color: #c0392b;
  font-size: 0.82rem;
  margin-top: 0.35rem;
}

.form-row.has-error .form-error {
  display: block;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--color-ink-muted);
  margin-top: 0.35rem;
}

.honeypot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin-top: 1.1rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  display: none;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-success {
  background: #e5f4ec;
  color: #1f6f4a;
  border: 1px solid #b9e0c8;
}

.form-status.is-error {
  background: #fbeaea;
  color: #a43a2f;
  border: 1px solid #f0c4bd;
}

/* --------------------------------- Footer ----------------------------------- */

.site-footer {
  background: var(--color-navy-900);
  color: var(--color-on-dark-muted);
  padding-block: clamp(3rem, 2.5rem + 2vw, 4.5rem) 2rem;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  margin-bottom: 2.5rem;
}

@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr;
  }
}

.footer-brand .brand {
  margin-bottom: 1rem;
}

.footer-brand p {
  max-width: 28rem;
  color: var(--color-on-dark-muted);
}

.footer-heading {
  font-family: var(--font-heading);
  color: var(--color-on-dark);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.footer-list a {
  color: var(--color-on-dark-muted);
  text-decoration: none;
}

.footer-list a:hover {
  color: var(--color-teal-light);
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(245, 241, 234, 0.25);
  color: var(--color-on-dark);
}

.footer-socials a:hover {
  background: var(--color-teal);
  border-color: var(--color-teal);
  color: var(--color-navy-900);
}

.footer-socials svg {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  border-top: 1px solid rgba(245, 241, 234, 0.1);
  padding-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.8rem;
}

.footer-legal-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-legal-links a {
  color: var(--color-on-dark-muted);
}

/* --------------------------------- Misc ------------------------------------- */

.hidden-pending {
  display: none;
}

.legal-page main {
  padding-block: clamp(3rem, 2.5rem + 2vw, 5rem);
}

.legal-page .container {
  max-width: 820px;
}

.legal-page h1 {
  margin-bottom: 0.3em;
}

.legal-updated {
  color: var(--color-ink-muted);
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
}

.legal-page h2 {
  font-size: var(--step-2);
  margin-top: 2.2em;
}

.legal-page h3 {
  font-size: var(--step-1);
  margin-top: 1.6em;
}

.legal-page ul {
  color: var(--color-ink-soft);
}

.legal-page p {
  color: var(--color-ink-soft);
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 2rem;
  font-weight: 600;
  text-decoration: none;
}
