/* =========================================================
   Elyra Construction - single-page template
   ========================================================= */

:root {
  --navy: #1d2738;
  --navy-2: #263247;
  --navy-3: #313e56;
  --accent: #c8623a;
  --accent-2: #b0522d;
  --accent-soft: #f3dfd4;
  --cream: #f6f2ec;
  --paper: #fbf9f6;
  --white: #ffffff;
  --ink: #1b2230;
  --muted: #687082;
  --line: #e4ddd3;

  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Barlow", system-ui, sans-serif;

  --container: 1200px;
  --gutter: 24px;
  --radius: 2px;
  --shadow: 0 18px 40px -18px rgba(29, 39, 56, .28);
  --ease: cubic-bezier(.22, .8, .24, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Lock the page horizontally on touch screens: no sideways drag, bounce or swipe-shift.
   Vertical scrolling and pinch-zoom keep working. `clip` (unlike `hidden`) keeps the sticky header working. */
html, body { max-width: 100%; overscroll-behavior-x: none; }
html { touch-action: pan-y pinch-zoom; }
@supports (overflow: clip) {
  html, body { overflow-x: clip; }
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-head); margin: 0; line-height: 1.12; }
p { margin: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

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

/* ---------- Load line ---------- */
.load-line { position: fixed; inset: 0 0 auto; height: 3px; z-index: 200; pointer-events: none; transition: opacity .6s .3s; }
.load-line span { display: block; height: 100%; width: 0; background: var(--accent); box-shadow: 0 0 10px rgba(200, 98, 58, .6); }
.is-loaded .load-line { opacity: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 15px 26px;
  font-family: var(--font-head); font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase;
  border: 2px solid transparent; border-radius: var(--radius);
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--primary { background: var(--accent); color: var(--white); }
.btn--primary:hover { background: var(--accent-2); }
.btn--ghost { color: var(--white); border-color: rgba(255, 255, 255, .55); }
.btn--ghost:hover { background: var(--white); color: var(--navy); border-color: var(--white); }

/* ---------- Eyebrow & section heads ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-head); font-weight: 600; font-size: 13px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow--light { color: var(--white); }

.section-head { text-align: center; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; text-transform: uppercase; color: var(--navy); letter-spacing: .01em; }
.section-head h2 span, .contact h2 span, .band h2 span { color: var(--accent); }
.section-head h2::after { content: ""; display: block; width: 48px; height: 3px; background: var(--accent); margin: 16px auto 0; }
.section-head p { color: var(--muted); margin-top: 14px; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy); color: #cfd5df; font-size: 14px; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; min-height: 42px; }
.topbar__info { display: flex; gap: 32px; }
.topbar__info span, .topbar__info a { display: inline-flex; align-items: center; gap: 8px; }
.topbar svg { width: 15px; height: 15px; fill: currentColor; }
.topbar__info a:hover { color: var(--white); }
.topbar__right { display: flex; align-items: stretch; align-self: stretch; gap: 24px; }
.socials { display: flex; align-items: center; gap: 16px; }
.socials a { color: #cfd5df; transition: color .2s; }
.socials a:hover { color: var(--accent); }
.topbar__quote {
  display: flex; align-items: center; padding: 0 26px;
  background: var(--accent); color: var(--white);
  font-family: var(--font-head); font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  transition: background .2s;
}
.topbar__quote:hover { background: var(--accent-2); }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 100; background: rgba(251, 249, 246, .96); backdrop-filter: blur(8px); transition: box-shadow .3s; }
.header.is-scrolled { box-shadow: 0 8px 26px -14px rgba(29, 39, 56, .35); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 80px; }

.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo__mark { width: 50px; height: 42px; }
.logo__dark { fill: var(--navy); }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__text strong { font-family: var(--font-head); font-weight: 800; font-size: 27px; letter-spacing: .14em; color: var(--navy); }
.logo__text small { font-size: 10px; letter-spacing: .42em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }
.logo--light .logo__dark { fill: var(--white); }
.logo--light .logo__text strong { color: var(--white); }
.logo--light .logo__text small { color: #9ea7b6; }

.nav { display: flex; align-items: center; gap: 34px; }
.nav a:not(.btn) { position: relative; font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--navy); padding: 6px 0; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:not(.btn):hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav a.is-active { color: var(--accent); }
.nav__cta { display: none; }

.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; padding: 10px; flex-direction: column; justify-content: space-between; }
.nav-toggle span { display: block; height: 2px; background: var(--navy); transition: transform .3s, opacity .3s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(620px, calc(100vh - 122px), 900px);
  display: flex; align-items: center;
  overflow: hidden;
  color: var(--white);
  background: #1d2738;
  clip-path: polygon(0 0, 100% 0, 100% 90%, 64% 100%, 36% 100%, 0 90%);
  isolation: isolate;
}
.hero::after { /* accent edge along the bottom cut */
  content: ""; position: absolute; inset: auto 0 0; height: 100%; z-index: 4; pointer-events: none;
  background: var(--accent);
  clip-path: polygon(0 89.4%, 36% 99.4%, 64% 99.4%, 100% 89.4%, 100% 90%, 64% 100%, 36% 100%, 0 90%);
}
/* real footage on the right, melting into the navy copy panel */
.hero__media { position: absolute; top: 0; right: 0; bottom: 0; width: 66%; z-index: -1; background: #2a3550 url("../video/excavator-dig.webp") 60% 50% / cover no-repeat; }
.hero__video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero__media::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, var(--navy) 0%, rgba(29, 39, 56, .82) 14%, rgba(29, 39, 56, .35) 30%, rgba(29, 39, 56, 0) 44%),
    linear-gradient(180deg, rgba(29, 39, 56, .28) 0%, rgba(29, 39, 56, 0) 22%);
}

.hero__content { position: relative; z-index: 2; padding-top: 40px; padding-bottom: 140px; }
.hero__slides { display: grid; max-width: 640px; }
.hero__slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease), visibility .7s; }
.hero__slide.is-active { opacity: 1; visibility: visible; transform: none; }
.hero__title { font-size: clamp(34px, 3.7vw, 54px); font-weight: 800; text-transform: uppercase; line-height: 1.04; margin: 18px 0 20px; text-shadow: 0 2px 24px rgba(0, 0, 0, .25); }
.hero__title span { color: #e2774b; }
.hero__lead { max-width: 500px; font-size: 18px; color: rgba(255, 255, 255, .86); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* staggered entrance, runs as soon as the page starts rendering */
.hero__content > * { opacity: 0; transform: translateY(24px); animation: rise .9s var(--ease) forwards; }
.hero__actions { animation-delay: .25s !important; }
@keyframes rise { to { opacity: 1; transform: none; } }

.hero__arrow {
  position: absolute; top: 46%; z-index: 5;
  width: 44px; height: 64px; border: 0; padding: 0;
  display: grid; place-items: center;
  background: rgba(20, 26, 38, .45); color: var(--white);
  transition: background .2s;
}
.hero__arrow:hover { background: var(--accent); }
.hero__arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.hero__arrow--prev { left: 0; }
.hero__arrow--next { right: 0; }

/* ---------- Values ---------- */
.values { padding: 70px 0 40px; }
.values__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.value { text-align: center; padding: 10px 34px; position: relative; }
.value + .value::before { content: ""; position: absolute; left: 0; top: 18%; height: 64%; width: 1px; background: var(--line); }
.value svg { width: 50px; height: 50px; fill: none; stroke: var(--navy); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease), stroke .3s; }
.value:hover svg { transform: translateY(-4px); stroke: var(--accent); }
.value h3 { font-size: 18px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--navy); margin-top: 18px; }
.value h3::before { content: ""; display: block; width: 44px; height: 3px; background: var(--accent); margin: 0 auto 18px; }
.value p { color: var(--muted); margin-top: 10px; font-size: 16px; }

/* ---------- About ---------- */
.about { position: relative; padding: 70px 0 100px; overflow: hidden; }
.about__watermark { position: absolute; left: 1.5%; top: 70px; display: flex; align-items: flex-end; gap: 14px; pointer-events: none; }
.about__word { writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--font-head); font-weight: 800; font-size: 76px; letter-spacing: .08em; color: rgba(29, 39, 56, .07); line-height: 1; }
.about__tags { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: rgba(29, 39, 56, .3); line-height: 1.6; }
.about__blueprint { position: absolute; right: -40px; top: 40px; width: 420px; color: var(--navy); opacity: .1; pointer-events: none; }

.about__tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 900px; margin: 0 auto; }
.tab {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  padding: 32px 18px; border: 0; background: var(--white); color: var(--navy);
  font-family: var(--font-head); font-weight: 700; font-size: 15px; letter-spacing: .06em; text-transform: uppercase;
  box-shadow: var(--shadow);
  transition: background .3s, color .3s, transform .3s var(--ease);
}
.tab svg { width: 48px; height: 48px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tab:hover { transform: translateY(-3px); }
.tab.is-active { background: var(--accent); color: var(--white); }

.about__panels { max-width: 1000px; margin: 44px auto 0; }
.panel { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; animation: fade .6s var(--ease); }
.panel[hidden] { display: none; }
@keyframes fade { from { opacity: 0; transform: translateY(12px); } }
.panel__img { position: relative; }
.panel__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; clip-path: polygon(0 0, 100% 0, 100% 86%, 86% 100%, 0 100%); }
.panel__img::before { content: ""; position: absolute; left: -14px; top: -14px; width: 40%; height: 40%; border-left: 3px solid var(--accent); border-top: 3px solid var(--accent); }
.panel__body h3 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; color: var(--navy); margin: 14px 0 16px; }
.panel__body > p:not(.eyebrow) { color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 12px; align-items: center; font-weight: 600; color: var(--navy); }
.ticks li::before { content: ""; flex: none; width: 20px; height: 20px; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12 4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* ---------- Services ---------- */
.services { position: relative; background: var(--paper); padding: 70px 0 90px; overflow: hidden; }
.services__worker { position: absolute; left: 0; top: 0; bottom: 0; width: 30%; clip-path: polygon(0 0, 72% 0, 100% 100%, 0 100%); }
.services__worker img { width: 100%; height: 100%; object-fit: cover; object-position: 74% center; }
.services__worker::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(29, 39, 56, .1), rgba(29, 39, 56, .35)); }
.services__inner { position: relative; padding-left: max(var(--gutter), 31%); max-width: 1400px; }
.services__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.service { display: block; text-align: center; margin-right: -4%; }
.service__img { overflow: hidden; clip-path: polygon(0 0, 78% 0, 100% 100%, 22% 100%); }
.service:first-child .service__img { clip-path: polygon(0 0, 78% 0, 100% 100%, 22% 100%); }
.service__img img { width: 100%; aspect-ratio: 1 / 1.05; object-fit: cover; transition: transform .7s var(--ease); }
.service:hover .service__img img { transform: scale(1.08); }
.service h3 { font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--navy); margin-top: 18px; transition: color .2s; }
.service:hover h3 { color: var(--accent); }
.service p { font-size: 14.5px; color: var(--muted); margin: 8px auto 0; max-width: 200px; line-height: 1.5; }
.services__cta { margin: 46px auto 0; display: flex; width: max-content; }

/* ---------- Stats ---------- */
.stats { background: var(--accent); color: var(--white); padding: 46px 0; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat strong { display: block; font-family: var(--font-head); font-weight: 800; font-size: clamp(32px, 4vw, 48px); line-height: 1; }
.stat span { display: block; margin-top: 8px; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; opacity: .9; }

/* ---------- Projects ---------- */
.projects { padding: 100px 0 80px; }
.filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: -16px 0 38px; }
.filter { border: 1px solid var(--line); background: var(--white); color: var(--navy); padding: 9px 20px; font-family: var(--font-head); font-weight: 600; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; transition: all .2s; }
.filter:hover { border-color: var(--accent); color: var(--accent); }
.filter.is-active { background: var(--navy); color: var(--white); border-color: var(--navy); }
.projects__grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 280px; gap: 16px; }
.project { position: relative; margin: 0; overflow: hidden; background: var(--navy); transition: opacity .4s, transform .4s var(--ease); }
.project--wide { grid-column: span 2; }
.project img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), opacity .4s; }
.project:hover img { transform: scale(1.06); opacity: .75; }
.project figcaption { position: absolute; inset: auto 0 0; padding: 60px 24px 22px; background: linear-gradient(transparent, rgba(20, 26, 38, .9)); color: var(--white); }
.project figcaption span { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: #f0a07d; font-weight: 600; }
.project figcaption h3 { font-size: 20px; font-weight: 700; margin: 4px 0 2px; }
.project figcaption p { font-size: 14px; opacity: .8; }
.project.is-hidden { display: none; }

/* ---------- Process ---------- */
.process { padding: 30px 0 90px; }
.process__list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.process__list li { position: relative; background: var(--white); padding: 34px 28px 30px; box-shadow: var(--shadow); border-top: 3px solid transparent; transition: border-color .3s, transform .3s var(--ease); }
.process__list li:hover { border-color: var(--accent); transform: translateY(-4px); }
.process__list b { font-family: var(--font-head); font-size: 42px; font-weight: 800; color: var(--accent-soft); line-height: 1; }
.process__list h3 { font-size: 18px; text-transform: uppercase; letter-spacing: .05em; color: var(--navy); margin: 12px 0 10px; }
.process__list p { color: var(--muted); font-size: 15.5px; }

/* ---------- Team ---------- */
.team { background: var(--paper); padding: 90px 0; }
.team__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.member { text-align: center; }
.member__img { overflow: hidden; clip-path: polygon(0 0, 100% 0, 100% 88%, 88% 100%, 0 100%); }
.member__img img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; filter: grayscale(.35); transition: transform .7s var(--ease), filter .4s; }
.member:hover .member__img img { transform: scale(1.05); filter: none; }
.member h3 { font-size: 19px; color: var(--navy); margin-top: 20px; }
.member p { color: var(--accent); font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-top: 6px; }

/* ---------- Testimonials ---------- */
.testimonials { padding: 90px 0; }
.quotes { position: relative; max-width: 820px; margin: 0 auto; text-align: center; display: grid; }
.quotes__mark { width: 54px; height: 54px; fill: var(--accent); margin: 0 auto 18px; }
.quote { grid-area: 2 / 1; margin: 0; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .6s var(--ease), transform .6s var(--ease), visibility .6s; }
.quote.is-active { opacity: 1; visibility: visible; transform: none; }
.quote p { font-family: var(--font-head); font-weight: 600; font-size: clamp(19px, 2.2vw, 25px); line-height: 1.45; color: var(--navy); }
.quote cite { display: block; margin-top: 22px; font-style: normal; font-weight: 600; color: var(--accent); }
.quote cite span { color: var(--muted); font-weight: 400; }
.quotes__dots { grid-area: 3 / 1; display: flex; justify-content: center; gap: 10px; margin-top: 30px; }
.quotes__dots button { width: 34px; height: 4px; border: 0; padding: 0; background: var(--line); transition: background .3s; }
.quotes__dots button.is-active { background: var(--accent); }

/* ---------- CTA band ---------- */
.band { position: relative; background: var(--navy); color: var(--white); padding: 150px 0 80px; overflow: hidden; }
.band__skyline { position: absolute; top: -1px; left: 0; width: 100%; height: 110px; color: var(--cream); }
.band__frame { position: absolute; right: 8%; bottom: 0; width: 520px; color: rgba(255, 255, 255, .06); }
.band__inner { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.band__rule { display: block; width: 56px; height: 3px; background: var(--accent); margin-bottom: 20px; }
.band h2 { font-size: clamp(32px, 4.4vw, 54px); font-weight: 800; text-transform: uppercase; }
.band__sub { font-family: var(--font-head); font-size: clamp(14px, 1.6vw, 20px); letter-spacing: .4em; text-transform: uppercase; margin-top: 10px; color: #dbe0e8; }
.band__right { display: flex; flex-direction: column; align-items: flex-end; gap: 20px; }
.band__words { font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: #aab3c2; }
.band__words i { font-style: normal; margin: 0 10px; color: var(--accent); }

/* ---------- Contact ---------- */
.contact { padding: 100px 0; }
.contact__grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 60px; }
.contact h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; text-transform: uppercase; color: var(--navy); margin: 14px 0 16px; }
.contact__info > p { color: var(--muted); }
.contact__list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 20px; }
.contact__list li { display: flex; gap: 16px; align-items: flex-start; }
.contact__list svg { flex: none; width: 44px; height: 44px; padding: 11px; background: var(--navy); fill: var(--white); }
.contact__list b { display: block; font-family: var(--font-head); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); }
.contact__list a:hover { color: var(--accent); }

.contact__form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; background: var(--white); padding: 40px; box-shadow: var(--shadow); border-top: 4px solid var(--accent); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--font-head); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink);
  padding: 13px 14px; border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius);
  transition: border-color .2s, background .2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: var(--white); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #c0392b; }
.contact__submit { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form-note { font-weight: 600; color: var(--accent); }

/* ---------- Footer ---------- */
.footer { background: #151c29; color: #a3abb9; padding: 70px 0 0; font-size: 15.5px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; }
.footer__brand p { margin-top: 20px; max-width: 320px; }
.footer h4 { color: var(--white); font-size: 14px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a:hover { color: var(--accent); }
.newsletter { display: flex; margin-top: 16px; }
.newsletter input { flex: 1; min-width: 0; padding: 13px 14px; border: 1px solid #2c364a; background: #1d2638; color: var(--white); font: inherit; }
.newsletter input:focus { outline: none; border-color: var(--accent); }
.newsletter button { width: 50px; border: 0; background: var(--accent); color: var(--white); display: grid; place-items: center; }
.newsletter svg, .to-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.footer__bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 56px; padding-top: 22px; padding-bottom: 22px; border-top: 1px solid #263044; font-size: 14px; }

.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 46px; height: 46px; display: grid; place-items: center; background: var(--accent); color: var(--white); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .3s, transform .3s; }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- Copyright watermark ---------- */
.watermark {
  position: fixed; left: 20px; bottom: 20px; z-index: 95;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 18px 9px 14px; border-radius: 999px;
  background: rgba(78, 80, 86, .82); color: #e9eaec;
  font-family: var(--font-body); font-size: 15px; line-height: 1; letter-spacing: .01em;
  box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .45);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  pointer-events: none; user-select: none;
}
.watermark svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.watermark strong { color: #fff; font-weight: 700; }
@media (max-width: 640px) {
  .watermark { left: 12px; bottom: 12px; padding: 7px 14px 7px 11px; font-size: 13px; gap: 8px; }
  .watermark svg { width: 15px; height: 15px; }
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .hero__content > * { opacity: 1; transform: none; animation: none; transition: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .nav { gap: 24px; }
  .services__worker { width: 26%; }
  .services__inner { padding-left: max(var(--gutter), 28%); }
  .services__grid { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .service { margin-right: 0; padding: 0 12px; }
}

@media (max-width: 960px) {
  .topbar__info span { display: none; }
  .nav-toggle { display: flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 99;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); padding: 10px var(--gutter) 24px;
    box-shadow: 0 20px 30px -20px rgba(29, 39, 56, .4);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: transform .3s var(--ease), opacity .3s, visibility .3s;
  }
  .nav-open .nav { transform: none; opacity: 1; visibility: visible; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .nav a:not(.btn)::after { display: none; }
  .nav__cta { display: inline-flex; justify-content: center; margin-top: 18px; }

  /* stacked: copy on navy, then the footage in its own full-width block (nothing overlaps, nothing is cut) */
  .hero { min-height: 0; flex-direction: column; align-items: stretch; clip-path: polygon(0 0, 100% 0, 100% 95%, 50% 100%, 0 95%); }
  .hero::after { clip-path: polygon(0 94.6%, 50% 99.6%, 100% 94.6%, 100% 95%, 50% 100%, 0 95%); }
  .hero__content { padding-top: 56px; padding-bottom: 36px; }
  .hero__media { order: 2; position: relative; top: auto; right: auto; bottom: auto; width: 100%; aspect-ratio: 16 / 9; max-height: 60vh; }
  .hero__video { object-position: 50% 74%; }
  .hero__media::before { background: linear-gradient(180deg, var(--navy) 0%, rgba(29, 39, 56, .55) 9%, rgba(29, 39, 56, 0) 26%); }
  .hero__arrow { top: 40%; width: 40px; height: 48px; }

  .about__blueprint { display: none; }
  .panel { grid-template-columns: 1fr; gap: 30px; }

  .services__worker { display: none; }
  .services__inner { padding-left: var(--gutter); }

  .projects__grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 240px; }
  .process__list { grid-template-columns: 1fr 1fr; }
  .contact__grid { grid-template-columns: 1fr; gap: 44px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .topbar__info { display: none; }
  .topbar__inner { justify-content: flex-end; }
  .header__inner { height: 70px; }
  .logo__mark { width: 42px; height: 36px; }
  .logo__text strong { font-size: 23px; }

  .hero__content { padding-top: 40px; padding-bottom: 28px; }
  .hero__media { aspect-ratio: 1280 / 920; max-height: none; }
  .hero__video { object-position: 50% 50%; }
  .hero__title { margin: 14px 0 16px; }
  .hero__actions { margin-top: 26px; }
  .hero__actions .btn--ghost, .hero__arrow { display: none; }
  .hero__lead { font-size: 16px; }
  .btn { padding: 13px 20px; }

  .values__grid { grid-template-columns: 1fr; gap: 30px; }
  .value + .value::before { display: none; }
  .about__watermark { display: none; }
  .about__tabs { grid-template-columns: 1fr; }
  .tab { flex-direction: row; justify-content: center; padding: 18px; }
  .tab svg { width: 34px; height: 34px; }

  .services__grid { grid-template-columns: 1fr 1fr; gap: 28px 8px; }
  .service { padding: 0; }
  .service p { display: none; }

  .stats__grid { grid-template-columns: 1fr 1fr; row-gap: 30px; }
  .projects__grid { grid-template-columns: 1fr; grid-auto-rows: 260px; }
  .project--wide { grid-column: auto; }
  .process__list { grid-template-columns: 1fr; }
  .team__grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
  .band { padding-top: 120px; }
  .band__right { align-items: flex-start; }
  .contact__form { grid-template-columns: 1fr; padding: 26px 20px; }
  .footer__grid { grid-template-columns: 1fr; }
}
