/* ===================================================================
   ES Construction Ltd — Stylesheet
   Warm-minimal: off-white ground, near-black type, mono micro-labels,
   photography does the talking. Motion is slow and low-contrast.
   =================================================================== */

:root {
  --bg: #0b1012;              /* near-black, for the few dark bands */
  --bg-soft: #f3f0ec;         /* warm off-white — the page ground */
  --ink: #212325;             /* near-black type */
  --paper: #f3f0ec;
  --accent: #212325;          /* no colour accent; emphasis is weight + scale */
  --accent-2: #d4cec6;        /* warm greige, for marks on dark */
  --text: #55575a;
  --muted: #8b8880;
  --line: #d4cec6;
  --radius: 2px;
  --container: 1320px;
  --font-display: 'Schibsted Grotesk', system-ui, sans-serif;
  --font-head: 'Schibsted Grotesk', system-ui, sans-serif;
  --font-ui: 'Schibsted Grotesk', system-ui, sans-serif;
  --font-body: 'Schibsted Grotesk', system-ui, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, monospace;
  --ease: cubic-bezier(.16,1,.3,1);
  --ease-io: cubic-bezier(.7,0,.3,1);
  /* --app-h  = usable screen height, --chrome-h = topbar + header above the
     hero. script.js overwrites both with measured pixel values, so the hero
     can fill exactly the remaining screen — never taller, which is what keeps
     the CTA buttons above the fold. These are only the no-JS fallbacks. */
  --app-h: 100svh;
  --chrome-h: 118px;
}
@supports not (height: 100svh) { :root { --app-h: 100vh; } }

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background: var(--bg-soft);
}
body.is-loading { overflow: hidden; height: 100vh; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
::selection { background: var(--accent); color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 28px; }

/* ===== Type helpers ===== */
.eyebrow {
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 1.5px;
  font-size: .68rem; font-weight: 400; color: var(--muted);
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 28px;
}
.eyebrow--light { color: var(--accent-2); }

.section { padding: clamp(48px, 6vh, 84px) 0; position: relative; }
.section--soft { background: #ece8e2; }
.section--dark { background: var(--bg); color: #c7ccd4; }
.section--dark .section__title { color: #fff; }

.section__title {
  font-family: var(--font-head); font-weight: 500;
  font-size: clamp(2.1rem, 5vw, 4rem); line-height: 1.02;
  color: var(--ink); letter-spacing: -1.5px; margin-bottom: 26px; max-width: 18ch;
}
/* No colour accent — the emphasised half just goes lighter. */
.section__title span { color: var(--muted); }
.section__head { max-width: 760px; margin: 0 auto 34px; text-align: center; }
.section__head .section__title { margin-inline: auto; }
.section__head--left { text-align: left; margin-inline: 0; }
.section__head--left .section__title { margin-inline: 0; }

/* ===== Buttons ===== */
.btn {
  position: relative; isolation: isolate;
  /* IMPORTANT: the ::after hover-fill is parked one full height below the
     button. Without overflow:hidden it paints outside the button and looks
     like a second, blank button sitting underneath. */
  overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-ui); font-weight: 500; font-size: .84rem;
  padding: 17px 34px; border-radius: 100px; border: 1px solid transparent; letter-spacing: .2px;
  will-change: transform;
  transition: color .4s var(--ease), border-color .4s, background .4s, transform .35s var(--ease), box-shadow .4s;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--primary::after,
.btn--dark::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; transform: translateY(101%); transition: transform .5s var(--ease); }
.btn--primary::after { background: var(--ink); }
.btn--dark::after { background: var(--accent); }
.btn--primary:hover::after, .btn--dark:hover::after { transform: translateY(0); }
.btn--line { border-color: rgba(255,255,255,.4); color: #fff; backdrop-filter: blur(4px); background: rgba(255,255,255,.06); }
.btn--line:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--full { width: 100%; }

/* Attention pulse for the main CTA. Uses box-shadow (painted outside the
   border box, so overflow:hidden above doesn't clip it). */
@keyframes ctaPulse {
  0%   { box-shadow: 0 0 0 0 rgba(27,79,156,.55); }
  70%  { box-shadow: 0 0 0 20px rgba(27,79,156,0); }
  100% { box-shadow: 0 0 0 0 rgba(27,79,156,0); }
}
.btn--pulse { animation: none; }
.btn--pulse:hover { animation-play-state: paused; }

/* ===================================================================
   PRELOADER
   =================================================================== */
.loader {
  position: fixed; inset: 0; z-index: 1000; background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
  transition: transform .9s var(--ease-io);
}
.loader.is-done { transform: translateY(-100%); }
.loader__inner { text-align: center; width: min(80vw, 420px); }
.loader__brand {
  font-family: var(--font-head); font-weight: 500; font-size: clamp(2.4rem, 8vw, 4.6rem);
  color: var(--ink); letter-spacing: -1px; display: block; line-height: 1;
}
.loader__track { height: 2px; background: rgba(33,35,37,.14); margin: 26px 0 12px; overflow: hidden; }
.loader__fill { display: block; height: 100%; width: 0; background: var(--accent); }
.loader__pct { font-family: var(--font-mono); color: var(--muted); font-size: .8rem; letter-spacing: 2px; }
.loader__pct::after { content: "%"; }

/* ===================================================================
   SCROLL PROGRESS
   =================================================================== */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--accent); z-index: 200; }

/* ===================================================================
   HEADER — logo · phone · menu button. Nothing else.
   Sits ABOVE the overlay menu so the button can morph into the close X.
   =================================================================== */
.header {
  position: sticky; top: 0; z-index: 350;
  background: rgba(243,240,236,.82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: transform .5s var(--ease), box-shadow .4s, background .4s, border-color .4s;
}
.header.is-hidden { transform: translateY(-100%); }
.header.is-scrolled { box-shadow: 0 10px 40px rgba(0,0,0,.06); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.header__actions { display: flex; align-items: center; gap: 10px; }

.logo { display: flex; flex-direction: column; line-height: 1; }
/* The header logo is artwork, not type. Height is fixed and width follows the
   image's own aspect ratio, so it can never stretch. 42px inside a 72px header
   leaves the optical breathing room the mark needs. */
.logo__img { display: block; height: 42px; width: auto; }
.logo__mark { font-family: var(--font-display); font-size: 1.6rem; letter-spacing: 3px; color: var(--ink); transition: color .4s; }
.logo__sub { font-family: var(--font-head); font-weight: 600; font-size: .58rem; letter-spacing: 4px; color: var(--accent); margin-top: 3px; }
.logo--light .logo__mark { color: #fff; }

/* Phone is a first-class action, not a line of small print. */
.header__phone { display: flex; align-items: center; gap: 11px; padding: 8px 18px 8px 10px; border-radius: 100px; transition: background .3s, color .3s; }
.header__phone:hover { background: rgba(27,79,156,.1); }
.header__phone-ico { width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; }
.header__phone-ico svg { width: 15px; height: 15px; fill: currentColor; }
.header__phone-txt { display: flex; flex-direction: column; line-height: 1.15; }
.header__phone-txt strong { font-family: var(--font-ui); font-size: 1.02rem; color: var(--ink); transition: color .4s; }

.menu-btn { display: flex; align-items: center; gap: 12px; background: none; border: 0; padding: 10px 4px 10px 16px; cursor: pointer; }
.menu-btn__label { font-family: var(--font-ui); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: 2px; color: var(--ink); transition: color .4s; }
.menu-btn__bars { position: relative; width: 30px; height: 14px; }
.menu-btn__bars span { position: absolute; left: 0; width: 100%; height: 2.5px; border-radius: 3px; background: var(--ink); transition: transform .45s var(--ease), background .4s, width .4s; }
.menu-btn__bars span:nth-child(1) { top: 0; }
.menu-btn__bars span:nth-child(2) { bottom: 0; width: 62%; }
.menu-btn:hover .menu-btn__bars span:nth-child(2) { width: 100%; }

/* Open state — header goes transparent over the dark overlay */
body.menu-open .header { background: transparent; border-color: transparent; box-shadow: none; transform: none; }
body.menu-open .logo__mark,
body.menu-open .menu-btn__label,
body.menu-open .header__phone-txt strong { color: #fff; }
body.menu-open .menu-btn__bars span { background: #fff; }
/* The mark is black artwork; on the dark overlay it vanished entirely. */
body.menu-open .logo__img { filter: brightness(0) invert(1); }
body.menu-open .menu-btn__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.menu-open .menu-btn__bars span:nth-child(2) { width: 100%; transform: translateY(-6px) rotate(-45deg); }

/* ===================================================================
   FULLSCREEN OVERLAY MENU
   =================================================================== */
.menu {
  position: fixed; inset: 0; z-index: 300; background: var(--bg);
  transform: translateY(-100%); transition: transform .75s var(--ease-io);
  overflow-y: auto; visibility: hidden;
}
.menu.is-open { transform: translateY(0); visibility: visible; }
.menu:focus { outline: none; }
/* Keyboard users still get a clear focus ring; mouse users don't. */
.menu__nav a:focus-visible,
.btn:focus-visible, .tile:focus-within, .menu-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
/* align-items:center against min-height:100% pushes overflow ABOVE the scroll
   origin on short screens, making the top links unreachable. Start-aligned +
   auto margins centres it only when it actually fits. */
.menu__inner { min-height: 100%; display: grid; grid-template-columns: 1.25fr .9fr; gap: 60px; align-items: start; align-content: safe center; padding-top: 96px; padding-bottom: 56px; }

.menu__nav ul { display: grid; gap: 2px; }
.menu__nav a {
  position: relative; display: flex; align-items: baseline; gap: 20px;
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 1px;
  font-size: clamp(2rem, min(6vw, 9vh), 4.4rem); line-height: 1.12; color: #fff;
  padding: 6px 0; transition: color .35s var(--ease), transform .5s var(--ease);
  opacity: 0; transform: translateY(28px);
}
.menu.is-open .menu__nav a { animation: menuIn .7s var(--ease) forwards; animation-delay: calc(.18s + var(--i, 0) * .06s); }
@keyframes menuIn { to { opacity: 1; transform: translateY(0); } }
.menu__nav a em { font-family: var(--font-head); font-style: normal; font-weight: 600; font-size: .7rem; letter-spacing: 3px; color: var(--accent); transform: translateY(-.4em); }
.menu__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: rgba(255,255,255,.12); }
.menu__nav a:hover { color: var(--accent); transform: translateX(14px); }
.menu__nav a.is-active { color: var(--accent); }

.menu__aside { display: grid; gap: 26px; align-content: center; }
.menu__services ul { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; }
.menu__services a { font-family: var(--font-head); font-size: .92rem; color: #9aa0a8; transition: color .3s; }
.menu__services a:hover { color: var(--accent); }
.menu__thumb { aspect-ratio: 4 / 3; border-radius: var(--radius); background-size: cover; background-position: center; background-color: #16181d; filter: grayscale(.35); transition: background-image .4s, filter .5s; }
.menu__lbl { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 3px; font-size: .66rem; color: var(--accent-2); margin-bottom: 10px; }
.menu__big { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.3rem, 2.4vw, 1.9rem); color: #fff; display: block; transition: color .3s; }
.menu__big:hover { color: var(--accent); }
.menu__sm { display: block; color: #8a9099; font-size: .94rem; margin-top: 6px; transition: color .3s; }
a.menu__sm:hover { color: var(--accent); }
.menu__sm--plain { color: #6d737c; }
.menu__social { display: flex; gap: 18px; margin-top: 20px; font-family: var(--font-head); font-size: .8rem; letter-spacing: 1px; color: #8a9099; }
.menu__social a { transition: color .3s; }
.menu__social a:hover { color: #fff; }

/* ===================================================================
   HERO
   =================================================================== */
/* The hero fills exactly the screen that is left under the topbar + header, so
   the headline AND the call-to-action buttons are always visible without a
   single scroll. svh = "small viewport height": on mobile it excludes the
   collapsible browser UI, so nothing is hidden behind the address bar. */
.hero {
  position: relative;
  min-height: calc(var(--app-h) - var(--chrome-h));
  display: flex; align-items: center; overflow: hidden; color: #fff;
}
.hero__slides { position: absolute; inset: -8% 0; will-change: transform; }
.hero__slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transform: scale(1.12); transition: opacity 1.6s var(--ease); }
.hero__slide.is-active { opacity: 1; animation: kenburnsOut 6s ease-out forwards; }
/* Alternate the direction so it reads as motion rather than a repeated tic. */
.hero__slide:nth-child(even).is-active { animation-name: kenburnsIn; }
@keyframes kenburnsOut { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes kenburnsIn  { from { transform: scale(1); } to { transform: scale(1.12); } }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(14,15,18,.9) 0%, rgba(14,15,18,.55) 50%, rgba(14,15,18,.2) 100%); }
.hero__grain { position: absolute; inset: 0; opacity: .5; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E"); }

/* Every vertical value below is height-aware (vh) as well as width-aware (vw),
   so the block shrinks to fit short laptop screens instead of overflowing. The
   bottom padding reserves the strip used by .hero__meta (dots + scroll cue). */
/* NOTE: padding-top/bottom as longhands on purpose — the `padding` shorthand
   would reset .container's horizontal padding to 0 and the copy would run
   into the screen edge on phones. */
.hero__content {
  position: relative; z-index: 3;
  padding-top: clamp(16px, 3.5vh, 48px);
  padding-bottom: clamp(58px, 9vh, 104px);
}
.hero__title, .hero__actions { max-width: 960px; }
.hero__eyebrow { max-width: min(100%, 1100px); }
/* The opening statement. Deliberately NOT a micro-label — it is the one
   sentence that says what the company does, so it reads at body size. */
.hero__eyebrow { display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  font-family: var(--font-head); text-transform: none; letter-spacing: -.2px;
  font-size: clamp(.82rem, 1.15vw, .98rem); font-weight: 400; line-height: 1.5;
  color: rgba(243,240,236,.92); max-width: none;
  margin-bottom: clamp(14px, 2.4vh, 30px); }
.hero__eyebrow > span { display: inline-block; }

.hero__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.4rem, min(8.6vw, 11.5vh), 7rem); line-height: .95; letter-spacing: 1px; text-transform: uppercase; margin-bottom: clamp(14px, 2.6vh, 30px); }
.hero__title .line { display: block; overflow: hidden; }
/* --accent is near-black in this palette; on the dark hero the second line
   was black-on-black. Both lines are light now, the second one softer so
   the headline still reads as two tones. */
.hero__title { color: #f3f0ec; }
.hero__title .line--accent { color: rgba(243,240,236,.82); }
.hero__title .word { display: inline-block; transform: translateY(105%); }
.hero__text { font-size: clamp(.95rem, 1.4vw, 1.15rem); max-width: 540px; color: #dfe2e7; margin-bottom: clamp(18px, 3.2vh, 38px); overflow: hidden; }
.hero__text span { display: inline-block; transform: translateY(110%); }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; opacity: 0; transform: translateY(18px); }

/* Reassurance line directly under the CTAs — removes the "what happens if I
   click?" hesitation at the exact moment of decision. */

.hero__meta { position: absolute; left: 0; right: 0; bottom: clamp(12px, 2.4vh, 30px); z-index: 3; }
.hero__dots { position: absolute; left: 28px; bottom: -16px; display: flex; gap: 10px; align-items: center; }
/* The visible bar stays 3px, but the tappable box is 44px tall via padding
   and a transparent border — Apple/Google minimum for a touch target. */
.hero__dots button { width: 30px; height: 3px; border-radius: 2px; border: 0; background: rgba(255,255,255,.3); cursor: pointer; transition: background .4s;
  padding: 20px 0; background-clip: content-box; box-sizing: content-box; }
.hero__dots button.is-active { background: var(--accent); }
.hero__scroll { position: absolute; right: 28px; bottom: 0; display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: .74rem; letter-spacing: 2px; text-transform: uppercase; color: #cfd3d9; }
.hero__scroll span { width: 26px; height: 40px; border: 1.5px solid rgba(255,255,255,.4); border-radius: 14px; position: relative; }
.hero__scroll span::after { content: ""; position: absolute; left: 50%; top: 8px; width: 3px; height: 7px; background: var(--accent); border-radius: 2px; transform: translateX(-50%); animation: scrollDot 1.8s infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translate(-50%,0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translate(-50%,14px); } 100% { opacity: 0; } }

/* Hero intro animation (added by JS once loaded) */
.hero.is-ready .hero__eyebrow { animation: fadeIn .9s var(--ease) .1s forwards; opacity: 0; }
/* Word delay comes from the inline --w index, so the headline copy can change
   without re-writing a stack of nth-child rules. */
.hero.is-ready .hero__title .word { animation: riseIn 1s var(--ease) forwards; animation-delay: calc(.24s + var(--w, 0) * .06s); }
.hero.is-ready .hero__text span { animation: riseIn .9s var(--ease) .75s forwards; }
.hero.is-ready .hero__actions { animation: riseFade .9s var(--ease) .9s forwards; }
@keyframes riseIn { to { transform: translateY(0); } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes riseFade { to { opacity: 1; transform: translateY(0); } }


/* ===================================================================
   MARQUEE
   =================================================================== */
.marquee { background: var(--bg-soft); color: var(--ink); padding: 26px 0; overflow: hidden; white-space: nowrap; border-block: 1px solid var(--line); }
.marquee__track { display: inline-flex; gap: 0; animation: marquee 26s linear infinite; }
.marquee__track span { font-family: var(--font-mono); font-size: .82rem; letter-spacing: 1px; text-transform: uppercase; padding-right: 20px; }
.marquee__track em { color: var(--muted); font-style: normal; padding: 0 18px; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ===================================================================
   ABOUT
   =================================================================== */
.about__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 72px; align-items: center; }
.about__media { position: relative; }
.about__media img { border-radius: var(--radius); }
.about__body p { color: var(--muted); margin-bottom: 18px; }
.about__list { margin: 26px 0 34px; display: grid; gap: 14px; }
.about__list li { position: relative; padding-left: 34px; font-weight: 500; color: var(--ink); }
.about__list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 18px; height: 2px; background: var(--accent); }


/* ===================================================================
   SERVICES
   =================================================================== */
/* Cards are photography with a caption. No borders, no shadows, no lift —
   the only motion is a slow scale inside the frame. */
.services__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 40px 28px; }
.service-card { position: relative; display: flex; flex-direction: column; background: none; }
.service-card__media {
  display: block; position: relative; aspect-ratio: 3 / 4;
  overflow: hidden; border-radius: var(--radius); background: #e6e2dc;
}
.service-card__media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 1.1s var(--ease);
}
.service-card:hover .service-card__media img { transform: scale(1.05); }
/* Base rule, not :hover — a touch device never hovers, so the badge was
   sitting in normal flow under the photo on every phone. */
.service-card__no {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: 1px; color: #f3f0ec;
  background: rgba(11,16,18,.42); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  padding: 3px 8px; border-radius: 100px;
}
.service-card__body { padding: 18px 2px 0; display: flex; align-items: baseline; justify-content: space-between; gap: 14px; border-top: 1px solid var(--line); margin-top: 18px; }
.service-card h3 { font-family: var(--font-ui); font-weight: 500; font-size: .98rem; letter-spacing: -.2px; color: var(--ink); transition: opacity .35s; }
.service-card__arrow { font-family: var(--font-mono); font-size: .9rem; color: var(--muted); transform: none; opacity: 1; transition: transform .45s var(--ease); }
.service-card:hover .service-card__arrow { transform: translateX(5px); }
.section__lede { max-width: 60ch; margin: 0 auto; color: var(--muted); font-size: .98rem; }

/* "We'll take on bigger work too" — catches the visitor whose job doesn't
   fit any of the six cards, without putting pricing on the page. */
.services__note { margin-top: 40px; text-align: center; color: var(--muted); font-size: .98rem; }
.services__note a { color: var(--ink); font-weight: 600; border-bottom: 1.5px solid var(--accent); padding-bottom: 2px; transition: color .3s; }
.services__note a:hover { color: var(--accent); }

/* ===================================================================
   PROJECTS
   =================================================================== */
.projects__grid { display: grid; grid-template-columns: repeat(3,1fr); grid-auto-rows: 300px; gap: 12px; }
.project { position: relative; border-radius: var(--radius); background-size: cover; background-position: center; overflow: hidden; display: flex; align-items: flex-end; }
.project--tall { grid-row: span 2; }
.project::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14,15,18,.9), rgba(14,15,18,0) 55%); transition: background .5s; z-index: 1; }
.project:hover::before { background: linear-gradient(to top, rgba(11,16,18,.75), rgba(11,16,18,.05) 70%); }
.project__img-scale { position: absolute; inset: 0; background: inherit; }
.project__label { position: relative; z-index: 2; padding: 26px; color: #fff; transform: translateY(8px); transition: transform .5s var(--ease); }
.project:hover .project__label { transform: translateY(0); }
.project__label span { font-family: var(--font-ui); font-weight: 500; font-size: 1.15rem; letter-spacing: -.3px; display: block; }
.project__label small { opacity: .7; font-size: .72rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 1px; }

/* ===================================================================
   PROCESS
   =================================================================== */
.process__grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 34px; }
.process__step { position: relative; padding-top: 30px; border-top: 2px solid rgba(255,255,255,.12); transition: border-color .4s; }
.process__step:hover { border-color: var(--accent); }
.process__step span { font-family: var(--font-display); font-size: 2.4rem; color: var(--accent); display: block; line-height: 1; }
.process__step h4 { font-family: var(--font-head); font-weight: 700; color: #fff; font-size: 1.2rem; margin: 14px 0 10px; }
.process__step p { color: #9aa0a8; font-size: .94rem; }

/* ===================================================================
   FAQ  — native <details>, no JS, readable by crawlers even when collapsed
   =================================================================== */
.faq__list { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .3s, box-shadow .3s; }
.faq__item[open] { border-color: var(--accent); box-shadow: 0 14px 34px rgba(0,0,0,.05); }
.faq__item summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 22px 60px 22px 26px;
  font-family: var(--font-head); font-weight: 600; font-size: 1.04rem; color: var(--ink);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; position: absolute; right: 26px; top: 50%; width: 13px; height: 13px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: translateY(-70%) rotate(45deg); transition: transform .35s var(--ease);
}
.faq__item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq__item summary:hover { color: var(--accent); }
.faq__a { padding: 0 26px 24px; color: var(--muted); }
.faq__a p { max-width: 68ch; }

/* ===================================================================
   SERVICE PAGES
   =================================================================== */
.breadcrumb { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 14px 0; font-size: .84rem; color: var(--muted); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.breadcrumb li { display: flex; align-items: center; gap: 10px; }
.breadcrumb li + li::before { content: "/"; color: var(--line); }
.breadcrumb a { transition: color .3s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 600; }

.subhero { position: relative; color: #fff; overflow: hidden; padding: clamp(64px, 9vw, 116px) 0 clamp(56px, 7vw, 96px); background: var(--bg); }
.subhero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .3; }
.subhero__overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(14,15,18,.94) 0%, rgba(14,15,18,.7) 55%, rgba(14,15,18,.35) 100%); }
/* max-width goes on the children, not on the .container itself — putting it
   here would centre the block and knock it out of line with the logo. */
.subhero__inner { position: relative; z-index: 2; }
.subhero h1, .subhero__lede, .subhero__actions { max-width: 760px; }
.subhero h1 { font-family: var(--font-display); font-size: clamp(2.2rem, 6.4vw, 4.4rem); line-height: .98; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px; }
.subhero h1 span { color: var(--accent); }
.subhero__lede { font-size: clamp(1rem, 1.4vw, 1.14rem); color: #dfe2e7; margin-bottom: 30px; }
.subhero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.svc__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: start; }
.svc__body h2 { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.5rem, 2.4vw, 2rem); color: var(--ink); margin: 0 0 18px; letter-spacing: -.3px; }
.svc__body h2 + p, .svc__body p + p { margin-bottom: 16px; }
.svc__body p { color: var(--muted); }
.svc__body h2:not(:first-child) { margin-top: 44px; }
.svc__list { display: grid; gap: 12px; margin: 22px 0 0; }
.svc__list li { position: relative; padding-left: 32px; color: var(--ink); font-weight: 500; }
.svc__list li::before { content: ""; position: absolute; left: 0; top: 10px; width: 18px; height: 2px; background: var(--accent); }

.svc__aside { position: sticky; top: 96px; display: grid; gap: 20px; }
.svc__card { background: var(--bg); color: #c7ccd4; border-radius: var(--radius); padding: 30px 28px; }
.svc__card h3 { font-family: var(--font-head); font-weight: 700; color: #fff; font-size: 1.2rem; margin-bottom: 12px; }
.svc__card p { font-size: .94rem; margin-bottom: 20px; }
.svc__card .btn { width: 100%; }
.svc__card .btn + .btn { margin-top: 10px; }
.svc__points { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; display: grid; gap: 14px; }
.svc__points li { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: var(--ink); }
.svc__points i { font-style: normal; color: var(--accent); }

.svc__steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; margin-top: 8px; }
.svc__step { border-top: 2px solid var(--line); padding-top: 22px; }
.svc__step span { font-family: var(--font-display); font-size: 1.8rem; color: var(--accent); display: block; line-height: 1; }
.svc__step h4 { font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: 1.02rem; margin: 10px 0 8px; }
.svc__step p { color: var(--muted); font-size: .9rem; }

.svc__gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 12px; }
.svc__gallery div { aspect-ratio: 4 / 3; border-radius: var(--radius); background-size: cover; background-position: center; }

.related__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related__card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 24px 26px; background: #fff; transition: border-color .35s, transform .35s var(--ease), box-shadow .35s; }
.related__card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 16px 34px rgba(0,0,0,.06); }
.related__card strong { display: block; font-family: var(--font-head); font-size: 1.06rem; color: var(--ink); margin-bottom: 6px; }
.related__card span { font-size: .9rem; color: var(--muted); }

.ctaband { background: var(--accent); color: #fff; padding: 64px 0; }
.ctaband__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.ctaband h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 3rem); text-transform: uppercase; letter-spacing: 1px; line-height: 1.02; }
.ctaband p { margin-top: 8px; color: rgba(255,255,255,.85); }
.ctaband__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.ctaband .btn--primary { background: var(--ink); }
.ctaband .btn--primary::after { background: #fff; }
.ctaband .btn--primary:hover { color: var(--ink); }
.ctaband .btn--line { border-color: rgba(255,255,255,.7); }

/* ===================================================================
   CONTACT
   =================================================================== */
.contact { overflow: hidden; }
.contact__spot { position: absolute; width: 480px; height: 480px; border-radius: 50%; background: radial-gradient(circle, rgba(27,79,156,.22), transparent 65%); pointer-events: none; transform: translate(-50%,-50%); left: 30%; top: 40%; transition: left .3s ease, top .3s ease; }
.contact__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: start; }
.contact__info > p { color: #aab0b8; margin-bottom: 30px; max-width: 40ch; }
.contact__details { display: grid; gap: 18px; }
.contact__details li { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; border-bottom: 1px solid rgba(255,255,255,.08); padding-bottom: 16px; }
.contact__details .lbl { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 2px; font-size: .68rem; color: var(--accent-2); min-width: 54px; }
.contact__details a:hover { color: var(--accent); }

.contact__wa { display: inline-flex; align-items: center; gap: 12px; margin-top: 28px; font-family: var(--font-head); font-size: .92rem; color: #cfd3d9; transition: color .3s; }
.contact__wa:hover { color: #fff; }
.contact__wa-ico { width: 36px; height: 36px; flex: none; border-radius: 50%; background: #25d366; color: #06331a; display: grid; place-items: center; }
.contact__wa-ico svg { width: 21px; height: 21px; fill: currentColor; }

/* ===================================================================
   TWO-STEP QUOTE FORM
   =================================================================== */
.qform { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 34px; }
.qform__head { margin-bottom: 26px; }
.qform__bar { height: 3px; background: rgba(255,255,255,.12); border-radius: 3px; overflow: hidden; }
.qform__bar span { display: block; height: 100%; width: 50%; background: var(--accent); border-radius: 3px; transition: width .5s var(--ease); }
.qform__meta { margin-top: 10px; font-family: var(--font-head); font-size: .72rem; letter-spacing: 1.6px; text-transform: uppercase; color: #8a9099; }
.qform__q { font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; color: #fff; margin-bottom: 20px; }
.qform__chosen { font-size: .86rem; color: var(--accent-2); margin: -12px 0 20px; }

/* Steps are stacked; only the active one is in flow. */
.qform__step { display: none; }
.qform__step.is-active { display: block; animation: stepIn .5s var(--ease) forwards; }
@keyframes stepIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }

.qform__tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 22px; }
.tile { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 16px 16px 15px; border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); cursor: pointer; transition: border-color .3s, background .3s, transform .3s var(--ease); }
.tile--wide { grid-column: 1 / -1; }
.tile input { position: absolute; opacity: 0; width: 0; height: 0; }
.tile__t { font-family: var(--font-head); font-weight: 600; font-size: .96rem; color: #fff; }
.tile__p { font-size: .78rem; color: #8a9099; }
.tile:hover { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.04); transform: translateY(-2px); }
.tile.is-selected { border-color: var(--accent); background: rgba(27,79,156,.12); }
.tile.is-selected .tile__p { color: var(--accent-2); }
.tile.is-selected::after { content: "✓"; position: absolute; top: 10px; right: 12px; font-size: .8rem; color: var(--accent); }
.qform__tiles.is-invalid { outline: 1px solid #ff5a5a; outline-offset: 8px; border-radius: var(--radius); }

.qform__actions { display: flex; gap: 12px; align-items: center; }
.qform__actions .btn--primary { flex: 1; }
.btn--ghost { border-color: rgba(255,255,255,.28); color: #cfd3d9; }
.btn--ghost:hover { border-color: #fff; color: #fff; }
.qform__note { margin-top: 14px; font-size: .8rem; color: #7c838d; }

.field { position: relative; margin-bottom: 22px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 16px 4px 8px; border: 0; border-bottom: 1.5px solid rgba(255,255,255,.2);
  background: transparent; color: #fff; font-family: var(--font-body); font-size: 1rem; transition: border-color .3s;
}
.field select { padding-left: 0; color: #c7ccd4; }
.field select option { background: var(--bg); color: #fff; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field label { position: absolute; left: 4px; top: 16px; color: #8a9099; font-size: 1rem; pointer-events: none; transition: transform .3s var(--ease), color .3s, font-size .3s; }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-18px); font-size: .72rem; color: var(--accent-2); letter-spacing: 1px; }
.field input.is-invalid, .field textarea.is-invalid { border-color: #ff5a5a; }
.form__note { margin-top: 8px; padding: 12px 16px; border-radius: var(--radius); font-size: .92rem; }
.form__note.is-success { background: rgba(27,79,156,.14); color: var(--accent-2); }
.form__note.is-error { background: rgba(255,90,90,.14); color: #ff9a9a; }

/* ===================================================================
   FOOTER
   =================================================================== */
.footer { background: #0a0b0d; color: #8a9099; padding-top: 72px; }
.footer__top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.08); flex-wrap: wrap; }
.footer__cta { font-family: var(--font-display); font-size: clamp(1.6rem, 4vw, 2.8rem); color: #fff; text-transform: uppercase; letter-spacing: 1px; transition: color .3s; }
.footer__cta:hover { color: var(--accent); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-top: 50px; padding-bottom: 50px; }
.footer__col p { font-size: .94rem; max-width: 34ch; }
.footer__col h4 { font-family: var(--font-head); color: #fff; font-size: 1rem; margin-bottom: 18px; }
.footer__col ul { display: grid; gap: 11px; }
.footer__col a { transition: color .3s; }
.footer__col a:hover { color: var(--accent); }
.footer__bar { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; }
.footer__bar-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: .84rem; }

/* ===== Back to top ===== */
.to-top { position: fixed; right: 26px; bottom: 26px; z-index: 90; width: 52px; height: 52px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; box-shadow: 0 12px 30px rgba(27,79,156,.4); opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .4s, transform .4s, visibility .4s, background .3s; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--ink); }

/* ===== WhatsApp floating action (desktop) ===== */
.fab { position: fixed; left: 26px; bottom: 26px; z-index: 90; display: flex; align-items: center; gap: 0; height: 54px; padding: 0 16px; border-radius: 100px; background: #25d366; color: #06331a; box-shadow: 0 14px 34px rgba(37,211,102,.35); transition: gap .45s var(--ease), padding .45s var(--ease), transform .35s var(--ease), opacity .4s, visibility .4s; }
.fab__ico { display: grid; place-items: center; }
.fab__ico svg { width: 26px; height: 26px; fill: currentColor; }
.fab__tip { max-width: 0; overflow: hidden; white-space: nowrap; font-family: var(--font-head); font-weight: 600; font-size: .86rem; transition: max-width .45s var(--ease); }
/* Held back until the hero is behind you — otherwise it sits on the slider dots. */
.fab { opacity: 0; visibility: hidden; transform: translateY(14px); }
.fab.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.fab.is-visible:hover { gap: 10px; transform: translateY(-3px); }
.fab.is-visible:hover .fab__tip { max-width: 160px; }

/* ===== Sticky action bar (mobile only) ===== */
.actionbar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 140; padding: 9px 10px calc(9px + env(safe-area-inset-bottom)); gap: 8px; background: rgba(14,15,18,.94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid rgba(255,255,255,.1); transform: translateY(110%); transition: transform .45s var(--ease); }
.actionbar.is-visible { transform: translateY(0); }
.actionbar__btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px; height: 46px; border-radius: 100px; font-family: var(--font-head); font-weight: 600; font-size: .86rem; }
.actionbar__btn svg { width: 17px; height: 17px; fill: currentColor; flex: none; }
.actionbar__btn--call { background: rgba(255,255,255,.1); color: #fff; }
.actionbar__btn--wa { background: #25d366; color: #06331a; }
.actionbar__btn--cta { background: var(--accent); color: #fff; flex: 1.6; }
/* Instagram is an icon-only tap target so the three text buttons keep their room */
.actionbar__btn--ig { flex: 0 0 46px; background: rgba(255,255,255,.1); color: #fff; }
.actionbar__btn--ig svg { width: 19px; height: 19px; }

/* ===================================================================
   REVEAL SYSTEM
   =================================================================== */
[data-reveal] { opacity: 0; transition: opacity .9s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); will-change: transform, opacity; }
[data-reveal="up"] { transform: translateY(40px); }
[data-reveal="left"] { transform: translateX(-40px); }
[data-reveal="right"] { transform: translateX(40px); }
/* "mask" = zoom-in reveal. NOTE: never use a full clip-path (e.g. inset(0 100% 0 0))
   as the hidden state — it collapses the box to zero area and IntersectionObserver
   then never fires, so the element would stay invisible forever. Scale keeps the box intact. */
[data-reveal="mask"] { transform: scale(1.07); }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 1000px) {
  .menu__inner { grid-template-columns: 1fr; gap: 34px; align-items: start; padding-top: 92px; }
  .menu__thumb, .menu__services { display: none; }
  .svc__grid { grid-template-columns: 1fr; gap: 44px; }
  .svc__aside { position: static; }
  .svc__steps { grid-template-columns: 1fr 1fr; gap: 30px; }
  .related__grid { grid-template-columns: 1fr 1fr; }
  .about__grid, .contact__grid { grid-template-columns: 1fr; gap: 48px; }
  .services__grid { grid-template-columns: repeat(2,1fr); }
  .process__grid { grid-template-columns: repeat(2,1fr); gap: 40px; }
  .projects__grid { grid-template-columns: repeat(2,1fr); }
  .project--tall { grid-row: span 1; }
  /* 6 gallery tiles at 3 across become postage stamps on a tablet */
  .svc__gallery { grid-template-columns: repeat(2,1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .about__media { max-width: 560px; }
}

/* ---- Short screens: keep the hero (and its CTAs) inside one screen ---- */
@media (max-height: 720px) {
  /* shrink it, never hide it — this line is the pitch */
  .hero__eyebrow { font-size: clamp(.76rem, 1.7vh, .9rem); margin-bottom: 10px; }
}
@media (max-height: 640px) {
  .hero__scroll { display: none; }
  .btn { padding: 12px 26px; }
}
/* Landscape phones: strip the page back to headline + buttons and drop the
   topbar, so the call to action still lands on the first screen. */
@media (max-height: 480px) and (orientation: landscape) {
  .topbar { display: none; }
  .header__inner { height: 58px; }
  .hero { min-height: 0; }
  .hero__content { padding: 26px 0 32px; }
  .hero__title { font-size: clamp(1.5rem, min(6vw, 13vh), 3rem); margin-bottom: 12px; }
  .hero__text, .hero__meta { display: none; }
}

@media (max-width: 720px) {
  .section { padding: 80px 0; }
  .hero__actions { width: 100%; }
  .hero__actions .btn { flex: 1 1 190px; }

  /* The sticky action bar takes over from the desktop floating buttons */
  body { padding-bottom: 66px; }
  .actionbar { display: flex; }
  .fab { display: none; }
  .to-top { bottom: 80px; right: 16px; width: 44px; height: 44px; }

  .logo__img { height: 34px; }
  .header__phone-txt { display: none; }
  .header__phone { padding: 6px; }
  .menu-btn__label { display: none; }
  .menu-btn { padding: 10px 4px; }

  /* Tiles get taller than they are wide once the grid drops to 2 columns */
  .projects__grid { grid-auto-rows: 200px; }

  .qform { padding: 24px 20px; }
  .qform__tiles { grid-template-columns: 1fr 1fr; }

  .marquee__track span { font-family: var(--font-mono); font-size: .82rem; letter-spacing: 1px; text-transform: uppercase; padding-right: 20px; }
}

@media (max-width: 520px) {
  /* 28px each side is a lot of a 360px screen */
  .container { padding: 0 20px; }
  .hero__dots { left: 20px; }
  .hero__scroll { right: 20px; }
  .services__grid, .projects__grid, .footer__grid, .process__grid { grid-template-columns: 1fr; }
  /* single column: 12 tiles at 240px each is a very long scroll */
  .projects__grid { grid-auto-rows: 190px; }
  .service-card { padding: 32px 24px 34px; }
  .section__title { font-size: clamp(1.7rem, 7.5vw, 2.2rem); }
  .field-row { grid-template-columns: 1fr; }
  .footer__top { flex-direction: column; align-items: flex-start; }
  .qform__actions { flex-wrap: wrap; }
  .qform__actions .btn { flex: 1 1 100%; }
  .actionbar__btn { font-size: .78rem; gap: 5px; }
  /* full-width gallery tiles — detail shots (tile patterns, brickwork,
     leadwork) are unreadable as phone-sized thumbnails */
  .svc__steps, .related__grid, .svc__gallery { grid-template-columns: 1fr; }
  .ctaband__actions .btn { flex: 1 1 100%; }
}

@media (max-width: 380px) {
  .logo__img { height: 30px; }
  .container { padding: 0 16px; }
  .hero__dots { left: 16px; }
  .hero__scroll { right: 16px; }
  .qform__tiles { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1 1 100%; }
  .contact__details .lbl { min-width: 0; }
}

/* ===================================================================
   REDUCED MOTION
   =================================================================== */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; animation-duration: .001s !important; transition-duration: .2s !important; }
  .hero__title .word,
  .hero__eyebrow span,
  .hero__text span { transform: none; }
  .hero__actions, .hero__eyebrow { opacity: 1 !important; transform: none !important; }
  .menu__nav a { opacity: 1 !important; transform: none !important; }
  .btn--pulse { animation: none; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .marquee__track { animation: none; }
  .hero__slide.is-active { animation: none; transform: scale(1); }
}



/* ===================================================================
   SCROLL REVEALS — slow, low-contrast, GSAP-driven
   =================================================================== */
.r-up, .r-img, .r-line { will-change: transform, opacity; }
.r-up { opacity: 0; transform: translateY(26px); }
.r-img { opacity: 0; transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) {
  .r-up, .r-img { opacity: 1 !important; transform: none !important; }
}


/* ===================================================================
   ABOUT — two overlapping frames of the team at work
   =================================================================== */
.about__media { position: relative; }
.about__shot { border-radius: var(--radius); overflow: hidden; }
.about__shot img { width: 100%; height: 100%; object-fit: cover; }
.about__shot--a { aspect-ratio: 3 / 4; }
.about__shot--b {
  position: absolute; right: -6%; bottom: -8%; width: 52%; aspect-ratio: 4 / 3;
  border: 8px solid var(--bg-soft);
}
@media (max-width: 1000px) {
  .about__shot--b { position: static; width: 100%; margin-top: 12px; border: 0; }
}



/* ===================================================================
   MENU — mobile sizing so all five links + the aside actually fit
   =================================================================== */
@media (max-width: 1000px) {
  .menu__inner { padding-top: 84px; gap: 32px; }
  .menu__nav a { font-size: clamp(1.6rem, min(8vw, 6.2vh), 2.6rem); }
}
@media (max-height: 700px) {
  .menu__nav a { font-size: clamp(1.4rem, 5.2vh, 2.1rem); padding: 2px 0; }
  .menu__inner { padding-top: 76px; padding-bottom: 32px; gap: 22px; }
}


/* ===================================================================
   LIGHTBOX
   =================================================================== */
.lightbox {
  position: fixed; inset: 0; z-index: 1400; display: none;
  align-items: center; justify-content: center; padding: 24px;
  background: rgba(11,16,18,.94); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.lightbox.is-open { display: flex; }
.lightbox__img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--radius); }
.lightbox__close {
  position: absolute; top: 18px; right: 22px; width: 44px; height: 44px;
  background: none; border: 0; color: #f3f0ec; font-size: 2rem; line-height: 1; cursor: pointer;
}

/* ===================================================================
   SECTION REVEALS — headings wipe up behind a mask, images un-clip
   =================================================================== */




/* ===================================================================
   COMPARE — drag the handle to wipe between two stages of one job.
   The "after" sits underneath; the "before" is clipped from the right,
   so the divider position is a single inset value.
   =================================================================== */
.compare { position: relative; overflow: hidden; border-radius: var(--radius); background: #ddd8d1; touch-action: pan-y; user-select: none; }
.compare img { display: block; width: 100%; height: 100%; object-fit: cover; }
.compare__after { display: block; }
.compare__before { position: absolute; inset: 0; overflow: hidden; will-change: clip-path; }
.compare__before img { position: absolute; inset: 0; width: 100%; height: 100%; }
.compare__handle {
  position: absolute; top: 0; bottom: 0; width: 2px; background: #f3f0ec;
  transform: translateX(-1px); pointer-events: none; box-shadow: 0 0 0 1px rgba(11,16,18,.18);
}
.compare__grip {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 46px; height: 46px; border-radius: 50%; background: #f3f0ec;
  display: grid; place-items: center; box-shadow: 0 6px 18px rgba(11,16,18,.28);
  font-family: var(--font-mono); font-size: .8rem; color: var(--ink);
}
.compare__tag {
  position: absolute; bottom: 14px; z-index: 3; font-family: var(--font-mono);
  font-size: .6rem; letter-spacing: 1.4px; text-transform: uppercase;
  background: rgba(11,16,18,.62); color: #f3f0ec; padding: 5px 10px; border-radius: 100px;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.compare__tag--l { left: 14px; }
.compare__tag--r { right: 14px; }
.compare__range { position: absolute; inset: 0; width: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 4; }
.compare__range:focus-visible + .compare__handle { box-shadow: 0 0 0 3px var(--accent-2); }

.compare-wrap { display: grid; gap: 14px; }
.compare-wrap .compare { aspect-ratio: 4 / 3; }
.compare__cap { font-family: var(--font-mono); font-size: .64rem; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }

/* ===================================================================
   COST GUIDE — plain table-ish rows, no invented precision
   =================================================================== */
.guide__rows { display: grid; gap: 0; border-top: 1px solid var(--line); margin: 30px 0 8px; }
.guide__row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.guide__row strong { font-family: var(--font-head); font-weight: 500; font-size: 1.02rem; color: var(--ink); }
.guide__row span { font-family: var(--font-mono); font-size: .92rem; color: var(--ink); }
.guide__row small { display: block; color: var(--muted); font-size: .86rem; font-family: var(--font-body); margin-top: 4px; }
.guide__note { font-size: .92rem; color: var(--muted); max-width: 62ch; }
@media (max-width: 640px) { .guide__row { grid-template-columns: 1fr; gap: 4px; } }

.compare__grid { display: grid; grid-template-columns: 1fr; gap: 22px; max-width: 900px; }



/* ===================================================================
   PROJECT MARQUEE — the continuous loop Vitruvius uses
   =================================================================== */
.pmarquee { overflow-x: auto; overflow-y: hidden; padding: 8px 0 14px; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent; cursor: grab; }
.pmarquee:active { cursor: grabbing; }
.pmarquee::-webkit-scrollbar { height: 6px; }
.pmarquee::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.pmarquee__track { display: flex; gap: 12px; width: max-content; padding-inline: 28px; }
.pmarquee:hover .pmarquee__track { display: flex; gap: 12px; width: max-content; padding-inline: 28px; }
.pmarquee__item { position: relative; flex: 0 0 auto; width: clamp(240px, 26vw, 400px); aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; }
.pmarquee__item img { width: 100%; height: 100%; object-fit: cover; }
.pmarquee__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 14px; color: #f3f0ec;
  font-family: var(--font-ui); font-size: .82rem;
  background: linear-gradient(to top, rgba(11,16,18,.82), rgba(11,16,18,0));
}
.pmarquee__item figcaption small { display: block; font-family: var(--font-mono); font-size: .6rem; letter-spacing: 1px; text-transform: uppercase; opacity: .75; margin-top: 3px; }
@keyframes pslide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .pmarquee__track { display: flex; gap: 12px; width: max-content; padding-inline: 28px; }
  .pmarquee { overflow-x: auto; overflow-y: hidden; padding: 8px 0 14px; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent; cursor: grab; }
.pmarquee:active { cursor: grabbing; }
.pmarquee::-webkit-scrollbar { height: 6px; }
.pmarquee::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
}

@media (max-width: 520px) { .pmarquee__track { padding-inline: 20px; } .pmarquee__item { width: 74vw; } }




/* A previous build wrapped every section title in an overflow:hidden mask and
   animated the text up from behind it. When the tween failed to fire the
   heading was invisible with no fallback. The mask is gone; this rule makes
   sure any cached markup that still contains one cannot hide text again. */
.r-mask { overflow: visible !important; display: inline !important; }
.r-mask > i { transform: none !important; font-style: normal; display: inline !important; }


/* Instagram, stacked under the WhatsApp button on desktop */
.fab--ig { bottom: 92px; background: #f3f0ec; color: #212325; }
.fab--ig svg { width: 22px; height: 22px; fill: currentColor; }
