/* ==========================================================================
   ARTHUB CONSTRUCTION — style.css  (light, airy luxury)

   01. Design tokens
   02. Base & reset
   03. Typography & shared helpers
   04. Logo
   05. Buttons, links & social icons
   06. Loader
   07. Mouse glow & custom cursor
   08. Navbar
   09. Side progress indicator
   10. Hero (the only dark section)
   11. Sections (shared)
   12. About
   13. Services
   14. Projects: filters, featured before/after slider, cards
   15. Video lightbox
   16. Process
   17. Reviews
   18. Service area
   19. Contact form
   20. Footer
   21. Responsive
   22. Reduced motion
   ========================================================================== */


/* 01. DESIGN TOKENS
   ========================================================================== */
:root {
  color-scheme: light;

  /* Colour: warm whites, deep navy, the logo's cyan-blue as accent */
  --cream: #faf8f4;
  --cream-2: #f3eee6;
  --paper: #ffffff;
  --navy: #0f1f38;
  --ink: #23324a;
  --muted: #5a667a;
  --line: rgba(15, 31, 56, .12);
  --line-strong: rgba(15, 31, 56, .22);
  --cyan: #35cfe6;
  --blue: #2b7fff;
  --accent: #1769d6;                 /* accent that is readable as text on cream */
  --cyan-rgb: 53, 207, 230;
  --blue-rgb: 43, 127, 255;
  --navy-rgb: 15, 31, 56;
  --grad: linear-gradient(120deg, var(--cyan), var(--blue));
  --grad-text: linear-gradient(120deg, #12a0c2, #2468e8);

  --shadow-sm: 0 1px 2px rgba(var(--navy-rgb), .04), 0 10px 28px -14px rgba(var(--navy-rgb), .16);
  --shadow-lg: 0 2px 4px rgba(var(--navy-rgb), .04), 0 34px 70px -34px rgba(var(--navy-rgb), .3);

  /* Type */
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --container: 1240px;
  --gutter: clamp(20px, 5vw, 72px);
  --section-y: clamp(88px, 11vw, 168px);
  --radius: 18px;
  --nav-h: 88px;

  /* Motion */
  --ease: cubic-bezier(.22, 1, .36, 1);
}


/* 02. BASE & RESET
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
}

/* Scroll is locked while the intro plays, the mobile menu or the video lightbox is open */
html.is-locked { overflow: hidden; }

/* Lenis smooth scroll (desktop) */
html.lenis,
html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* "clip" (not "hidden") so the hero can stay pinned with position: sticky */
  overflow-x: clip;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { border: 0; background: none; padding: 0; cursor: pointer; }
[hidden] { display: none !important; }

::selection { background: var(--navy); color: var(--cream); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* a section that received focus from an in-page link (script.js) needs no ring */
[data-section]:focus { outline: 0; }

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* "Skip to main content": off screen until a keyboard user tabs to it */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--cream);
  font-size: .875rem;
  font-weight: 500;
  transform: translateY(-200%);
}

.skip-link:focus-visible { transform: none; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}


/* 03. TYPOGRAPHY & SHARED HELPERS
   ========================================================================== */
.h2,
.h3,
.hero__title {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--navy);
  letter-spacing: -.012em;
}

.h2 {
  font-size: clamp(2.6rem, 5.8vw, 5rem);
  line-height: 1.02;
}

.h3 {
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.08;
}

/* Italic accent inside headings, in the logo's cyan-to-blue */
.h2 em,
.h3 em {
  font-style: italic;
  font-weight: 400;
  padding-right: .06em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Word-by-word reveal: script.js wraps each word in .word > .word__inner */
.word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  /* room for descenders and italic overhang inside the clipping box */
  padding: .1em .08em .2em;
  margin: -.1em -.08em -.2em;
}

.word__inner {
  display: inline-block;
  will-change: transform;
}

.is-split em {
  background: none;
  padding-right: 0;
}

.is-split em .word__inner {
  padding-right: .06em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: clamp(1.0625rem, 1.35vw, 1.25rem);
  line-height: 1.75;
  color: var(--ink);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow__num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.125rem;
  letter-spacing: 0;
  color: var(--accent);
}

.eyebrow__num::after {
  content: "";
  display: inline-block;
  width: 40px;
  height: 1px;
  margin-left: 14px;
  vertical-align: middle;
  background: var(--grad);
}

.eyebrow__line {
  width: 48px;
  height: 1px;
  background: var(--grad);
}

.icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* 04. LOGO  (navbar, loader, footer)
   --logo-fg / --logo-tag let the navbar switch the wordmark between white
   (over the hero photo) and navy (on light backgrounds).
   ========================================================================== */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.logo__mark {
  /* assets/logo-mark.webp is 362 × 220, so it stays sharp up to 3x screens at these sizes */
  width: auto;
  height: 40px;
  aspect-ratio: 362 / 220;
  flex: none;
}

.logo__text {
  display: flex;
  flex-direction: column;
  gap: 5px;
  line-height: 1;
}

.logo__name {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: .3em;
  color: var(--logo-fg, var(--navy));
  transition: color .5s;
}

.logo__tag {
  font-size: .5625rem;
  font-weight: 600;
  letter-spacing: .44em;
  color: var(--logo-tag, var(--accent));
  transition: color .5s;
}

/* Stacked variant used by the loader */
.logo--stacked {
  flex-direction: column;
  gap: 22px;
  text-align: center;
}

.logo--stacked .logo__mark { height: 96px; }
.logo--stacked .logo__text { gap: 10px; align-items: center; }
.logo--stacked .logo__name { font-size: 1.75rem; margin-right: -.3em; }
.logo--stacked .logo__tag { font-size: .75rem; margin-right: -.44em; }


/* 05. BUTTONS, LINKS & SOCIAL ICONS
   ========================================================================== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  padding: 10px 28px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  isolation: isolate;
  overflow: hidden;
  transition: box-shadow .5s var(--ease), border-color .5s var(--ease), color .5s var(--ease), background-color .5s var(--ease);
}

/* Buttons that carry an arrow sit tighter on the right */
.btn:has(.btn__icon) { padding-right: 10px; }

.btn__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: transform .6s var(--ease), background-color .5s;
}

.btn__icon .icon { width: 16px; height: 16px; stroke-width: 1.6; }
.btn:hover .btn__icon { transform: rotate(-45deg); }

/* Sheen that sweeps across filled buttons on hover */
.btn--primary::before,
.btn--accent::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
  transform: translateX(-110%);
  transition: transform .9s var(--ease);
}

.btn--primary:hover::before,
.btn--accent:hover::before { transform: translateX(110%); }

/* Primary: navy, for light backgrounds */
.btn--primary {
  color: #fff;
  background: var(--navy);
  box-shadow: 0 16px 36px -18px rgba(var(--navy-rgb), .7);
}

.btn--primary .btn__icon { background: rgba(255, 255, 255, .12); }
.btn--primary:hover { box-shadow: 0 18px 44px -14px rgba(var(--blue-rgb), .7); }
.btn--primary:hover .btn__icon { background: var(--blue); }

/* Accent: the logo gradient, used on the dark hero */
.btn--accent {
  color: #06182b;
  background: var(--grad);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25), 0 16px 44px -14px rgba(var(--blue-rgb), .8);
}

.btn--accent .btn__icon { background: rgba(6, 24, 43, .14); }
.btn--accent:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35), 0 18px 60px -12px rgba(var(--cyan-rgb), .8); }

/* Outline: follows the navbar's current text colour */
.btn--outline {
  color: var(--nav-fg, var(--navy));
  border: 1px solid var(--nav-line, var(--line-strong));
}

.btn--outline .btn__icon { background: var(--nav-chip, rgba(var(--navy-rgb), .07)); }

.btn--outline:hover {
  border-color: var(--blue);
  box-shadow: 0 0 30px -8px rgba(var(--blue-rgb), .6);
}

.btn--sm { min-height: 46px; padding-left: 22px; gap: 12px; }
.btn--sm:has(.btn__icon) { padding-right: 7px; }
.btn--sm .btn__icon { width: 32px; height: 32px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 8px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  background: linear-gradient(var(--cyan), var(--blue)) no-repeat 0 100% / 100% 1px;
  transition: gap .5s var(--ease);
}

.link-arrow .icon { width: 16px; height: 16px; }

/* Social icons: thin round buttons with a soft glow on hover */
.social {
  display: flex;
  gap: 10px;
}

.social a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--social-line, var(--line-strong));
  border-radius: 50%;
  color: var(--social-fg, var(--navy));
  transition: color .4s, border-color .4s, box-shadow .5s var(--ease), transform .5s var(--ease), background-color .4s;
}

.social .icon { width: 18px; height: 18px; }

.social a:hover {
  color: var(--accent);
  border-color: var(--blue);
  background: rgba(var(--blue-rgb), .06);
  box-shadow: 0 0 0 4px rgba(var(--cyan-rgb), .14), 0 0 28px -2px rgba(var(--blue-rgb), .55);
  transform: translateY(-2px);
}


/* 06. LOADER
   ========================================================================== */
.loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: var(--cream);
  /* Safety net: if the scripts fail to load, the loader still gets out of the way */
  animation: loader-failsafe .6s 6s forwards;
}

/* The logo starts hidden; script.js reveals it from the ground up */
.loader .logo__mark { opacity: 0; }

@keyframes loader-failsafe {
  to { opacity: 0; visibility: hidden; }
}

.loader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 34px;
}

.loader__bar {
  width: 180px;
  height: 1px;
  overflow: hidden;
  background: var(--line-strong);
}

.loader__bar-fill {
  display: block;
  height: 100%;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
}

.loader__count {
  margin-top: -14px;
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .34em;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}


/* 07. MOUSE GLOW & CUSTOM CURSOR  (mouse devices only; enabled by script.js)
   ========================================================================== */

/* A soft pool of cyan-blue light that follows the pointer */
.glow {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  display: none;
  width: 560px;
  height: 560px;
  margin: -280px 0 0 -280px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(var(--cyan-rgb), .13), rgba(var(--blue-rgb), .05) 50%, transparent);
  pointer-events: none;
  opacity: 0;
  transition: opacity .6s;
}

html.has-cursor .glow { display: block; }
html.has-cursor .glow.is-visible { opacity: 1; }

.cursor { display: none; }

html.has-cursor .cursor { display: block; }
html.has-cursor,
html.has-cursor * { cursor: none !important; }
html.has-cursor input:not([type="range"]),
html.has-cursor textarea,
html.has-cursor select { cursor: auto !important; }

.cursor__dot,
.cursor__ring-wrap {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 300;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s;
}

.cursor.is-visible .cursor__dot,
.cursor.is-visible .cursor__ring-wrap { opacity: 1; }

.cursor__dot {
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .9), 0 0 14px 3px rgba(var(--blue-rgb), .55);
}

.cursor__ring-wrap {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
}

.cursor__ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(var(--blue-rgb), .65);
  border-radius: 50%;
  box-shadow: 0 0 22px rgba(var(--cyan-rgb), .35);
  transition: transform .5s var(--ease), background-color .4s, border-color .4s;
}

.cursor__label {
  position: relative;
  font-size: .625rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0;
  transition: opacity .3s;
}

/* Over links and buttons */
.cursor.is-hover .cursor__ring {
  transform: scale(1.6);
  background: rgba(var(--blue-rgb), .1);
}

/* Over elements with data-cursor="Label" */
.cursor.is-label .cursor__ring {
  transform: scale(2.1);
  background: rgba(var(--navy-rgb), .82);
  border-color: rgba(var(--cyan-rgb), .9);
}

.cursor.is-label .cursor__label { opacity: 1; }
.cursor.is-label .cursor__dot { opacity: 0; }
.cursor.is-down .cursor__ring { transform: scale(.8); }
.cursor.is-label.is-down .cursor__ring { transform: scale(1.8); }

/* Over form fields the native text cursor takes over */
.cursor.is-hidden .cursor__dot,
.cursor.is-hidden .cursor__ring-wrap { opacity: 0; }


/* 08. NAVBAR
   ========================================================================== */
.nav {
  /* colours on light backgrounds… */
  --nav-fg: var(--navy);
  --nav-muted: #3c4a61;
  --nav-line: var(--line-strong);
  --nav-chip: rgba(var(--navy-rgb), .07);
  --logo-fg: var(--navy);
  --logo-tag: var(--accent);
  --social-fg: var(--navy);
  --social-line: var(--line-strong);

  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
}

/* …and over the hero photo (not while the mobile menu, which is cream, is open) */
html.on-hero .nav:not(.is-open) {
  --nav-fg: #fff;
  --nav-muted: rgba(255, 255, 255, .86);
  --nav-line: rgba(255, 255, 255, .4);
  --nav-chip: rgba(255, 255, 255, .14);
  --logo-fg: #fff;
  --logo-tag: #8fe9f6;
  --social-fg: #fff;
  --social-line: rgba(255, 255, 255, .4);
}

/* The glass background lives on a pseudo-element so the navbar itself never
   becomes a containing block for the full-screen mobile menu. */
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(250, 248, 244, .84);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  transition: opacity .5s;
}

html.on-hero .nav::before { opacity: 0; }

.nav__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  transition: height .5s var(--ease);
}

html:not(.on-hero) .nav__inner { height: 72px; }

.nav__menu {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 36px);
}

.nav__links {
  display: flex;
  gap: clamp(18px, 2.4vw, 36px);
}

.nav__link {
  position: relative;
  padding-block: 8px;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--nav-muted);
  transition: color .4s;
}

.nav__link::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .6s var(--ease);
}

.nav__link:hover,
.nav__link.is-active { color: var(--nav-fg); }

.nav__link:hover::after,
.nav__link.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.social--nav { gap: 6px; }
.social--nav a { width: 36px; height: 36px; }
.social--nav .icon { width: 16px; height: 16px; }

/* Hamburger (mobile only) */
.nav__toggle {
  position: relative;
  z-index: 2;
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--nav-line);
  border-radius: 50%;
}

.nav__toggle span {
  position: absolute;
  left: 13px;
  width: 18px;
  height: 1.5px;
  background: var(--nav-fg);
  transition: transform .5s var(--ease), background-color .4s;
}

.nav__toggle span:first-child { top: 19px; }
.nav__toggle span:last-child { top: 25px; }
.nav.is-open .nav__toggle span:first-child { transform: translateY(3px) rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { transform: translateY(-3px) rotate(-45deg); }


/* 09. SIDE PROGRESS INDICATOR
   ========================================================================== */
.progress-nav {
  /* 0 → 1 down the page; set by script.js */
  --p: 0;
  --pn: var(--navy);
  --pn-accent: var(--accent);

  position: fixed;
  top: 50%;
  right: clamp(10px, 1.6vw, 26px);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transform: translateY(-50%);
}

/* .dots-on-hero = the hero photo is behind the dots (they sit mid-screen, so
   this switches earlier than the navbar's .on-hero) */
html.dots-on-hero .progress-nav {
  --pn: #fff;
  --pn-accent: #8fe9f6;
}

/* thin track behind the dots, filled as far as you have scrolled */
.progress-nav__line {
  position: absolute;
  top: 6px;
  bottom: 6px;
  right: 5px;
  width: 1px;
  background: color-mix(in srgb, var(--pn) 22%, transparent);
}

.progress-nav__fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(var(--cyan), var(--blue));
  transform: scaleY(var(--p));
  transform-origin: top;
}

.progress-nav a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  height: 12px;
}

.progress-nav__dot {
  width: 11px;
  height: 11px;
  flex: none;
  border: 1px solid color-mix(in srgb, var(--pn) 45%, transparent);
  border-radius: 50%;
  background: var(--cream);
  transition: transform .5s var(--ease), background-color .4s, border-color .4s, box-shadow .4s;
}

html.dots-on-hero .progress-nav__dot { background: transparent; }

.progress-nav__label {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .625rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--pn);
  opacity: 0;
  transform: translateX(8px);
  transition: opacity .4s, transform .5s var(--ease);
  pointer-events: none;
}

/* on light backgrounds the label gets a soft plate so it stays readable over photos */
html:not(.dots-on-hero) .progress-nav__label { background: rgba(250, 248, 244, .94); }

/* sections already passed */
.progress-nav a.is-done .progress-nav__dot {
  border-color: var(--blue);
  background: var(--blue);
}

/* the current section */
.progress-nav a.is-active .progress-nav__dot {
  border-color: var(--blue);
  background: var(--blue);
  transform: scale(1.25);
  box-shadow: 0 0 0 5px rgba(var(--blue-rgb), .16), 0 0 16px 1px rgba(var(--cyan-rgb), .8);
}

/* the label shows for a moment when a new section begins (.is-fresh), and on hover */
.progress-nav a.is-active.is-fresh .progress-nav__label,
.progress-nav a:hover .progress-nav__label,
.progress-nav a:focus-visible .progress-nav__label {
  opacity: 1;
  transform: none;
}

.progress-nav a.is-active .progress-nav__label { color: var(--pn-accent); }


/* 10. HERO  (the only dark section)
   The hero is pinned (position: sticky) and the rest of the page slides up
   over it.
   ========================================================================== */
.hero {
  position: sticky;
  top: 0;
  z-index: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  color: rgba(255, 255, 255, .86);
  background: #0a1526;
}

/* once it is fully covered, stop painting and animating it */
html.hero-gone .hero { visibility: hidden; }
html.hero-gone .hero__img { animation-play-state: paused; }

.hero__media,
.hero__overlay,
.hero__shade {
  position: absolute;
  inset: 0;
}

/* Slow cinematic zoom */
.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  transform-origin: 55% 45%;
  animation: hero-zoom 28s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes hero-zoom {
  from { transform: scale(1.02); }
  to { transform: scale(1.16); }
}

/* Gradient overlay: keeps the text readable and gives the photo depth */
.hero__overlay {
  background:
    linear-gradient(to top, rgba(8, 17, 32, .92) 0%, rgba(8, 17, 32, .5) 38%, rgba(8, 17, 32, .2) 62%, rgba(8, 17, 32, .5) 100%),
    linear-gradient(to right, rgba(8, 17, 32, .6), transparent 60%);
}

/* darkens the photo as the page slides over it (driven by script.js) */
.hero__shade {
  background: #081120;
  opacity: 0;
}

.hero__content {
  position: relative;
  padding-bottom: clamp(88px, 14vh, 150px);
}

.hero__eyebrow { color: rgba(255, 255, 255, .86); }

/* The h1 wraps the company name and the tagline; each sets its own type */
.hero__heading { font: inherit; }
.hero__heading > span { display: block; }

.hero__title {
  font-size: clamp(3.4rem, 9.4vw, 9rem);
  font-weight: 500;
  line-height: .96;
  letter-spacing: -.02em;
  color: #fff;
}

.hero__title em {
  font-style: italic;
  font-weight: 400;
  color: #a8eef8;
}

/* (after script.js has split the title into words, the colour sits on each word) */
.hero__title.is-split em .word__inner { background-image: linear-gradient(120deg, #8cecf8, #7fb4ff); }

.hero__lead {
  margin-top: clamp(18px, 2.4vw, 30px);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.375rem, 2.4vw, 2.125rem);
  line-height: 1.3;
  color: rgba(255, 255, 255, .92);
}

.hero__actions { margin-top: clamp(30px, 4vw, 48px); }

.scroll-hint {
  position: absolute;
  left: var(--gutter);
  bottom: clamp(22px, 4vh, 40px);
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .8);
}

.scroll-hint__line {
  position: relative;
  width: 64px;
  height: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, .25);
}

.scroll-hint__line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad);
  animation: scroll-hint 2.4s var(--ease) infinite;
}

@keyframes scroll-hint {
  0% { transform: translateX(-100%); }
  60%, 100% { transform: translateX(100%); }
}


/* 11. SECTIONS (shared)
   Every section is opaque and sits above the pinned hero.
   ========================================================================== */
.section {
  position: relative;
  z-index: 1;
  padding-block: var(--section-y);
  background: var(--cream);
}

.section--tint { background: var(--cream-2); }

/* the first section slides over the hero with rounded shoulders */
.section--first {
  margin-top: -32px;
  border-radius: 32px 32px 0 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: clamp(44px, 6vw, 84px);
}

.section-head__note {
  max-width: 380px;
  padding-bottom: 12px;
}

.section-head--center {
  flex-direction: column;
  align-items: center;
  gap: 0;
  text-align: center;
}

.section-head--center .lead {
  max-width: 560px;
  margin-top: 24px;
}

/* Image that is revealed with a clip-path wipe (script.js); the picture inside scales down as it opens */
[data-wipe] { overflow: hidden; }


/* 12. ABOUT
   ========================================================================== */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(48px, 8vw, 120px);
  align-items: center;
}

.about .lead {
  max-width: 560px;
  margin-top: 32px;
}

/* Counters */
.stats {
  display: flex;
  gap: clamp(32px, 5vw, 72px);
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.stat {
  display: flex;
  flex-direction: column-reverse;
  gap: 6px;
}

.stat dt {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}

.stat dd {
  font-family: var(--serif);
  font-size: clamp(3.25rem, 6vw, 5rem);
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.about__visual {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin-left: auto;
  padding-bottom: 72px;
}

.about__photo {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.about__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__photo--main { aspect-ratio: 4 / 5; }

/* smaller photo overlapping the corner, on its own parallax layer */
.about__photo--small {
  position: absolute;
  left: -22%;
  bottom: 0;
  width: 62%;
  aspect-ratio: 3 / 2;
  border: 8px solid var(--cream);
}


/* 13. SERVICES
   ========================================================================== */
.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 24px);
}

.service {
  --mx: 50%;
  --my: 50%;

  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: clamp(28px, 2.8vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow .6s var(--ease), border-color .6s var(--ease);
}

/* soft light that follows the pointer across the card (--mx / --my set by script.js) */
.service::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(380px circle at var(--mx) var(--my), rgba(var(--cyan-rgb), .16), transparent 62%);
  opacity: 0;
  transition: opacity .5s;
  pointer-events: none;
}

.service:hover {
  border-color: rgba(var(--blue-rgb), .4);
  box-shadow: var(--shadow-lg);
}

.service:hover::before { opacity: 1; }

.service > * { position: relative; }

.service__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.125rem;
  color: var(--muted);
}

.service__icon {
  width: 44px;
  height: 44px;
  margin-top: 26px;
  color: var(--accent);
  stroke-width: 1.1;
  transition: transform .8s var(--ease);
}

.service:hover .service__icon { transform: translateY(-4px); }

.service__title {
  margin: 22px 0 12px;
  font-family: var(--serif);
  font-size: clamp(1.625rem, 2.2vw, 2rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--navy);
}

.service p { font-size: .9375rem; }

/* sixth tile: the end-to-end promise */
.service--cta {
  justify-content: space-between;
  border-color: transparent;
  color: var(--navy);
  background: linear-gradient(140deg, rgba(var(--cyan-rgb), .22), rgba(var(--blue-rgb), .2)), var(--paper);
}

.service--cta .service__num {
  font-family: var(--sans);
  font-style: normal;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink);
}

.service--cta .service__title { margin: 28px 0; }
.service--cta .link-arrow { align-self: flex-start; }
.service--cta:hover .link-arrow { gap: 22px; }


/* 14. PROJECTS
   ========================================================================== */

/* --- Filter buttons --- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.filter {
  padding: 11px 22px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--ink);
  background: transparent;
  transition: color .4s, background-color .4s, border-color .4s, box-shadow .5s var(--ease);
}

.filter:hover {
  border-color: var(--blue);
  box-shadow: 0 0 24px -8px rgba(var(--blue-rgb), .6);
}

.filter.is-active {
  border-color: var(--navy);
  color: #fff;
  background: var(--navy);
}

/* --- Featured project: kitchen before / after slider --- */
.featured { margin-bottom: clamp(56px, 7vw, 104px); }

.featured__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 28px;
}

.featured__text { max-width: 440px; }

.compare {
  /* breaks out of the container to about 90% of the viewport width */
  width: min(90vw, 1800px);
  margin-inline: calc(50% - min(45vw, 900px));
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}

.compare__stage {
  /* --t (0 to 1) is the handle position, set by script.js.
     --photo-w is the width of the uncropped 2:3 photo in the middle of the stage.
     --x turns --t into a position across the photo only, so the handle never
     wanders into the blurred sides. */
  --t: .5;
  --stage-h: clamp(520px, 86vh, 920px);
  --photo-w: calc(var(--stage-h) * 2 / 3);
  --x: calc(50% - var(--photo-w) / 2 + var(--photo-w) * var(--t));

  position: relative;
  width: 100%;
  height: var(--stage-h);
  background: #0a1526;
  cursor: ew-resize;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}

.compare__layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #0a1526;
}

/* The photos are portrait and the stage is wide: a blurred, darkened copy of
   the photo fills the stage, and the whole photo sits uncropped in the centre. */
.compare__backdrop {
  position: absolute;
  top: -8%;
  left: -8%;
  width: 116%;
  height: 116%;
  max-width: none;
  object-fit: cover;
  filter: blur(44px) brightness(.5) saturate(1.1);
}

.compare__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 70px rgba(0, 0, 0, .6));
}

/* The "after" photo sits on top and is clipped to the right of the handle */
.compare__layer--after { clip-path: inset(0 0 0 var(--x)); }

.compare__tag,
.card__badge {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--navy);
  background: rgba(250, 248, 244, .92);
}

.compare__tag {
  position: absolute;
  left: 20px;
  bottom: 20px;
}

.compare__tag--after {
  left: auto;
  right: 20px;
  color: #fff;
  background: var(--blue);
}

.compare__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--x);
  width: 2px;
  margin-left: -1px;
  background: #fff;
  box-shadow: 0 0 18px 1px rgba(var(--cyan-rgb), .9);
  pointer-events: none;
}

.compare__knob {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  border-radius: 50%;
  color: var(--navy);
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35), 0 0 0 6px rgba(255, 255, 255, .25);
}

.compare__knob .icon { width: 20px; height: 20px; stroke-width: 1.8; }

/* Dragging is handled in script.js. This invisible range input stays in the
   page so the slider can be focused and moved with the keyboard. */
.compare__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
}

.compare__stage:has(.compare__range:focus-visible) .compare__knob {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

/* --- Project cards ---
   Two widths: "tall" (one column) and "wide" (two columns), four columns in
   total. script.js orders the visible cards so every row is full; a last,
   incomplete row is centred. */
.projects__grid {
  --gap: clamp(14px, 1.6vw, 24px);
  --card-h: clamp(340px, 31vw, 450px);

  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(32px, 3.4vw, 52px) var(--gap);
}

.card {
  flex: 1 0 calc((100% - var(--gap) * 3) / 4 - .5px);
  min-width: 0;
  /* in a row that is not full (after filtering) cards may widen a little, but
     never so far that the photo is badly cropped */
  max-width: calc((100% - var(--gap) * 3) / 4 * 1.5 + var(--gap) * .5);
}

.card--wide {
  flex-grow: 2;
  flex-basis: calc((100% - var(--gap)) / 2 - .5px);
  max-width: calc((100% - var(--gap) * 3) / 4 * 3 + var(--gap) * 2);
}

.card__frame {
  position: relative;
  display: block;
  width: 100%;
  height: var(--card-h);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--cream-2);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .6s var(--ease);
  /* keeps the rounded corners clipped while the card is tilted (Safari) */
  -webkit-mask-image: -webkit-radial-gradient(#fff, #000);
}

.card__frame:hover { box-shadow: var(--shadow-lg); }

/* Both photos (and the video) fill the frame; --focus picks the part to keep when cropping */
.card__img,
.card__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus, 50% 50%);
  transition: transform 1.5s var(--ease), opacity .7s var(--ease);
}

/* Hover zoom */
.card__frame:hover .card__img,
.card__frame:hover .card__video { transform: scale(1.07); }

/* The "before" photo lies on top, hidden until the toggle is hovered or pressed */
.card__img--before { opacity: 0; }

.card__frame.is-before .card__img--before,
.card__frame.is-peek .card__img--before { opacity: 1; }

/* Before / After toggle */
.card__toggle {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: rgba(250, 248, 244, .92);
  box-shadow: 0 6px 20px rgba(var(--navy-rgb), .25);
}

.card__toggle span {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: .625rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--muted);
  transition: color .4s, background-color .4s;
}

/* The highlighted half names the photo currently on show */
.card__frame:not(.is-before):not(.is-peek) .card__toggle span:last-child,
.card__frame.is-before .card__toggle span:first-child,
.card__frame.is-peek .card__toggle span:first-child {
  color: #fff;
  background: var(--navy);
}

/* Video cards: a "Play" badge and a soft gradient at the bottom */
.card__frame--video::after {
  content: "";
  position: absolute;
  inset: 50% 0 0 0;
  background: linear-gradient(to top, rgba(8, 17, 32, .55), transparent);
  pointer-events: none;
}

.card__badge {
  position: absolute;
  z-index: 1;
  left: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-left: 10px;
}

.card__badge .icon { width: 14px; height: 14px; }

.card__body { padding: 18px 4px 0; }

.card__cat {
  margin-bottom: 6px;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
}

.card__title {
  font-family: var(--serif);
  font-size: clamp(1.375rem, 1.8vw, 1.625rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--navy);
}

.card__text {
  margin-top: 6px;
  font-size: .875rem;
  line-height: 1.6;
}


/* 15. VIDEO LIGHTBOX
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 17, 32, .94);
  animation: lightbox-in .4s var(--ease);
}

@keyframes lightbox-in {
  from { opacity: 0; }
}

.lightbox__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.lightbox__video {
  max-width: min(92vw, 1100px);
  max-height: calc(100vh - 150px);
  max-height: calc(100dvh - 150px);
  border-radius: 14px;
  background: #000;
  box-shadow: 0 40px 100px rgba(0, 0, 0, .6);
}

.lightbox__caption {
  font-family: var(--serif);
  font-size: 1.375rem;
  color: #fff;
}

.lightbox__close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 50%;
  color: #fff;
  transition: background-color .4s, border-color .4s;
}

.lightbox__close:hover {
  border-color: var(--cyan);
  background: rgba(255, 255, 255, .1);
}


/* 16. PROCESS
   ========================================================================== */
.steps {
  /* 0 → 1 as the section scrolls past; drives the line (set by script.js) */
  --p: 1;

  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 56px);
  padding-top: 60px;
}

.steps__line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line-strong);
}

.steps__line-fill {
  position: absolute;
  inset: -0.5px 0;
  background: var(--grad);
  transform: scaleX(var(--p));
  transform-origin: left top;
}

.step { position: relative; }

/* Node on the line */
.step::before {
  content: "";
  position: absolute;
  top: -66px;
  left: 0;
  width: 13px;
  height: 13px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--cream-2);
  transition: background-color .6s, border-color .6s, box-shadow .6s;
}

.step.is-active::before {
  border-color: var(--blue);
  background: var(--blue);
  box-shadow: 0 0 0 6px rgba(var(--blue-rgb), .14), 0 0 18px rgba(var(--cyan-rgb), .9);
}

.step__num {
  display: block;
  font-family: var(--serif);
  font-size: clamp(3.5rem, 6vw, 5.5rem);
  font-weight: 400;
  line-height: 1;
  font-variant-numeric: lining-nums;
  color: rgba(var(--navy-rgb), .18);
  transition: color .8s;
}

.step.is-active .step__num { color: var(--accent); }

.step__title {
  margin: 22px 0 10px;
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--navy);
}

.step p { font-size: .9375rem; }


/* 17. REVIEWS  (rendered by script.js from the REVIEWS array)
   ========================================================================== */
.reviews {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 24px);
}

.review {
  display: flex;
  flex-direction: column;
  padding: clamp(30px, 3vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

/* opening quotation mark */
.review::before {
  content: "\201C";
  height: .55em;
  font-family: var(--serif);
  font-size: 5.5rem;
  line-height: 1;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.review blockquote {
  margin: 18px 0 32px;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.6vw, 1.4375rem);
  line-height: 1.5;
  color: var(--navy);
}

.review figcaption {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink);
}

.review figcaption::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--grad);
}


/* 18. SERVICE AREA
   ========================================================================== */
.cities {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(10px, 1.2vw, 16px);
  max-width: 980px;
  margin-inline: auto;
}

.cities li {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.7vw, 1.5rem);
  font-weight: 500;
  line-height: 1.3;
  color: var(--navy);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: border-color .5s var(--ease), box-shadow .5s var(--ease);
}

.cities li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--grad);
}

.cities li:hover {
  border-color: rgba(var(--blue-rgb), .5);
  box-shadow: 0 0 0 4px rgba(var(--cyan-rgb), .12), 0 14px 34px -14px rgba(var(--blue-rgb), .5);
}


/* 19. CONTACT FORM
   ========================================================================== */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(48px, 7vw, 112px);
  align-items: start;
}

.contact__intro .lead { margin-top: 28px; }

.contact__details {
  margin-top: 44px;
  border-top: 1px solid var(--line);
}

.contact__details li {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-block: 20px;
  border-bottom: 1px solid var(--line);
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--navy);
}

.contact__details .icon {
  width: 26px;
  height: 26px;
  flex: none;
  color: var(--accent);
  stroke-width: 1.1;
}

.contact__details small {
  display: block;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  line-height: 1.6;
  color: var(--muted);
}

.contact__details a {
  overflow-wrap: anywhere;
  transition: color .4s;
}

.contact__details a:hover { color: var(--accent); }

.contact__social {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 32px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.form {
  display: grid;
  gap: 30px;
  padding: clamp(28px, 4vw, 56px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: var(--shadow-lg);
}

.form__title {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 2.4vw, 2.125rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--navy);
}

.form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px 24px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field label {
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .4s;
}

.field:focus-within label { color: var(--accent); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  font-size: 1rem;
  color: var(--navy);
  /* 1px rule + a gradient underline that grows on focus */
  background:
    linear-gradient(var(--cyan), var(--blue)) no-repeat 0 100% / 0 2px,
    linear-gradient(var(--line-strong), var(--line-strong)) no-repeat 0 100% / 100% 1px;
  transition: background-size .7s var(--ease);
}

.field input:focus,
.field select:focus,
.field textarea:focus { background-size: 100% 2px, 100% 1px; }

.field ::placeholder { color: #98a1af; opacity: 1; }

.field textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

.field select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 28px;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%231769d6' stroke-width='1.4'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E"),
    linear-gradient(var(--cyan), var(--blue)),
    linear-gradient(var(--line-strong), var(--line-strong));
  background-repeat: no-repeat;
  background-position: right 4px center, 0 100%, 0 100%;
  background-size: 12px 8px, 0 2px, 100% 1px;
}

.field select:focus { background-size: 12px 8px, 100% 2px, 100% 1px; }
.field select:invalid { color: #98a1af; }
.field option { color: var(--navy); background: #fff; }

/* Only flag fields after the visitor has interacted with them */
.field input:user-invalid {
  background-image: linear-gradient(#d43c3c, #d43c3c), linear-gradient(#d43c3c, #d43c3c);
}

.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 28px;
}

.form__status {
  flex: 1;
  min-width: 200px;
  font-size: .875rem;
  line-height: 1.55;
}

.form__status.is-success { color: var(--accent); }
.form__status.is-error { color: #c23030; }

.form.is-sending button[type="submit"] {
  opacity: .6;
  pointer-events: none;
}


/* 20. FOOTER
   ========================================================================== */
.footer {
  position: relative;
  z-index: 1;
  padding-top: clamp(56px, 7vw, 96px);
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr));
  gap: 44px clamp(24px, 4vw, 64px);
}

.footer__brand p {
  max-width: 300px;
  margin: 22px 0 24px;
  font-size: .9375rem;
}

.footer__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  font-size: .9375rem;
  font-style: normal;   /* the contact column is an <address> */
}

.footer__title {
  margin-bottom: 12px;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--navy);
}

.footer__col a {
  overflow-wrap: anywhere;
  transition: color .4s;
}

.footer__col a:hover,
.footer__bottom a:hover { color: var(--accent); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  position: relative;
  margin-top: clamp(44px, 5vw, 72px);
  padding-block: 26px;
  font-size: .8125rem;
}

.footer__bottom::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  height: 1px;
  background: var(--line);
}

.footer__bottom a { transition: color .4s; }


/* 21. RESPONSIVE
   ========================================================================== */

/* --- Small laptops: the navbar gets tight, so the social icons move to the footer/contact only --- */
@media (max-width: 1180px) {
  .social--nav { display: none; }
  .nav__link { letter-spacing: .12em; }
}

/* --- Tablets: two project columns --- */
@media (max-width: 1000px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .projects__grid { --card-h: auto; }

  .card,
  .card--wide {
    flex-grow: 0;
    max-width: none;
  }

  .card { flex-basis: calc((100% - var(--gap)) / 2 - .5px); }
  .card--wide { flex-basis: 100%; }
  .card__frame { aspect-ratio: 4 / 5; }
  .card--wide .card__frame { aspect-ratio: 16 / 10; }

  .reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review:last-child { grid-column: span 2; }

  .about__photo--small { left: -8%; }
}

/* --- Phones and small tablets: single column, lighter effects --- */
@media (max-width: 899px) {
  :root { --nav-h: 72px; }

  /* Full-screen menu */
  .nav__toggle { display: block; }

  .nav__menu {
    position: fixed;
    inset: 0;
    z-index: 1;
    flex-direction: column;
    justify-content: center;
    gap: 36px;
    padding: var(--nav-h) var(--gutter) 40px;
    background: var(--cream);
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s var(--ease), visibility .5s;
  }

  .nav.is-open .nav__menu {
    opacity: 1;
    visibility: visible;
  }

  .nav .logo {
    position: relative;
    z-index: 2;
  }

  .nav__links {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  .nav__link {
    font-family: var(--serif);
    font-size: 2.25rem;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    color: var(--navy);
  }

  .social--nav {
    display: flex;
    gap: 12px;
  }

  .social--nav a { width: 46px; height: 46px; }
  .social--nav .icon { width: 19px; height: 19px; }

  .scroll-hint { display: none; }
  .hero__content { padding-bottom: clamp(56px, 10vh, 96px); }

  .section--first {
    margin-top: -22px;
    border-radius: 22px 22px 0 0;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }

  .section-head--center {
    align-items: center;
    gap: 0;
  }

  .section-head__note { padding-bottom: 0; }

  .about,
  .contact { grid-template-columns: minmax(0, 1fr); }

  .about__visual {
    margin-inline: auto;
    max-width: 420px;
    padding-left: 10%;
  }

  .about__photo--small { left: 0; }

  .featured__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  /* Kitchen slider: the stage takes the photo's own 2:3 shape, so no backdrop is needed */
  .compare {
    width: min(100%, 560px);
    margin-inline: auto;
    border-radius: var(--radius);
  }

  .compare__stage {
    --photo-w: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
  }

  .compare__backdrop { display: none; }
  .compare__photo { filter: none; }

  /* Process becomes a vertical timeline */
  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    padding: 0 0 0 46px;
  }

  .steps__line {
    top: 8px;
    bottom: 0;
    left: 6px;
    right: auto;
    width: 1px;
    height: auto;
  }

  .steps__line-fill {
    inset: 0 -0.5px;
    transform: scaleY(var(--p));
  }

  .step::before {
    top: 8px;
    left: -46px;
  }

  .step__num { font-size: 3rem; }
  .step__title { margin-top: 12px; }

  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: span 2; }

  /* Progress dots: smaller, no labels */
  .progress-nav { gap: 14px; right: 7px; }
  .progress-nav__dot { width: 7px; height: 7px; }
  .progress-nav__line { right: 3px; }
  .progress-nav__label { display: none; }
  .progress-nav a { height: 16px; width: 16px; }
}

/* --- Phones --- */
@media (max-width: 600px) {
  .btn { min-height: 52px; }

  .hero__actions .btn,
  .form__foot .btn {
    width: 100%;
    justify-content: space-between;
  }

  .stats { gap: 28px; }

  .services,
  .reviews,
  .form__row { grid-template-columns: minmax(0, 1fr); }

  .service { min-height: 0; }
  .review:last-child { grid-column: auto; }

  .filters {
    /* one swipeable row instead of several wrapped rows */
    flex-wrap: nowrap;
    margin-inline: calc(var(--gutter) * -1);
    padding: 4px var(--gutter);
    overflow-x: auto;
    scrollbar-width: none;
  }

  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: none; }

  .card,
  .card--wide { flex-basis: 100%; }
  .card--wide .card__frame { aspect-ratio: 4 / 3; }

  .cities li { padding: 10px 20px; }

  .contact__social {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .footer__brand { grid-column: auto; }
}


/* 22. REDUCED MOTION
   script.js also skips its animations when this preference is set.
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .hero__img { animation: none; }
}
