/* ==========================================================================
   Handyman Hull – Property & Landscaping
   ========================================================================== */

:root {
  --ink: #0e1a2b;          /* deep navy – from Luke's workwear */
  --ink-2: #16263d;
  --ink-3: #22344f;
  --leaf: #7fb534;         /* logo green */
  --leaf-deep: #5e8f1f;
  --leaf-soft: #eaf3dc;
  --sand: #f5f1e8;         /* warm paper */
  --sand-2: #ece5d6;
  --stone: #b9ac93;
  --text: #1b2230;
  --muted: #5d6573;
  --line: rgba(14, 26, 43, 0.12);
  --white: #ffffff;

  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 1px 2px rgba(14,26,43,.06), 0 12px 32px -12px rgba(14,26,43,.22);
  --shadow-lg: 0 30px 60px -20px rgba(14,26,43,.35);

  --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 128px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); letter-spacing: -0.03em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
p { margin: 0 0 1.1em; }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: var(--muted); max-width: 62ch; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.section { padding-block: var(--section); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--leaf-deep); margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.on-dark .eyebrow { color: var(--leaf); }
.on-dark, .on-dark h1, .on-dark h2, .on-dark h3 { color: var(--white); }
.on-dark .lead, .on-dark p { color: rgba(255,255,255,.78); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 200; background: var(--white); padding: 10px 16px; border-radius: 10px; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--leaf); --fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .95em 1.5em; border-radius: 999px; border: 0;
  background: var(--bg); color: var(--fg);
  font: 600 1rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  box-shadow: 0 8px 24px -10px rgba(127,181,52,.7);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); background: #8cc43d; }
.btn svg { width: 1.1em; height: 1.1em; }
.btn--ghost { --bg: transparent; --fg: var(--white); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.45); }
.btn--ghost:hover { background: rgba(255,255,255,.1); }
.btn--dark { --bg: var(--ink); --fg: var(--white); box-shadow: 0 10px 24px -12px rgba(14,26,43,.6); }
.btn--dark:hover { background: var(--ink-3); }
.btn--line { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--line:hover { background: var(--white); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .45em; font-weight: 600; text-decoration: none; color: var(--ink);
}
.link-arrow svg { transition: transform .25s ease; width: 1.05em; height: 1.05em; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
  padding-block: 18px;
}
.header.is-solid, .header--solid {
  background: rgba(14, 26, 43, .92);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
  padding-block: 12px;
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); }
.brand__mark { width: 44px; height: 44px; flex: none; }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 1.22rem; letter-spacing: -.02em; line-height: 1; }
.brand__tag { display: block; font-family: var(--font-body); font-weight: 500; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--leaf); margin-top: 5px; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) {
  color: rgba(255,255,255,.82); text-decoration: none; font-weight: 500; font-size: .96rem;
  padding: .55em 1em; border-radius: 999px; transition: color .2s, background .2s;
}
.nav a:not(.btn):hover { color: var(--white); background: rgba(255,255,255,.08); }
.nav a[aria-current="page"] { color: var(--white); background: rgba(255,255,255,.1); }
.nav .btn { margin-left: 10px; padding: .8em 1.25em; font-size: .95rem; }

.menu-toggle {
  display: none; width: 46px; height: 46px; border-radius: 12px; border: 0;
  background: rgba(255,255,255,.1); color: var(--white); cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .3s, background .3s;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.nav-open .menu-toggle span { background: transparent; }
.nav-open .menu-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .menu-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; justify-content: center; gap: 8px;
    background: var(--ink);
    opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s;
  }
  .nav a:not(.btn) { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--white); }
  .nav .btn { margin: 24px 0 0; font-size: 1.05rem; padding: 1em 1.6em; }
  .nav-open .nav { opacity: 1; visibility: visible; }
  .nav-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  color: var(--white); overflow: hidden; isolation: isolate;
  padding: 140px 0 clamp(48px, 8vw, 96px);
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg { animation: slowzoom 14s cubic-bezier(.2,.6,.2,1) forwards; transform: scale(1.08); }
.hero__bg img, .hero__bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 60%; }
/* The video is never hidden (iOS won't autoplay an invisible video); instead the poster sits
   on top and fades away once playback starts. */
.hero__poster { z-index: 1; transition: opacity 1s ease; }
.hero.is-playing .hero__poster { opacity: 0; }
@keyframes slowzoom { to { transform: scale(1); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(14,26,43,.75) 0%, rgba(14,26,43,.15) 30%, rgba(14,26,43,.35) 55%, rgba(14,26,43,.94) 100%),
    linear-gradient(90deg, rgba(14,26,43,.7) 0%, rgba(14,26,43,0) 65%);
}
.hero h1 { color: var(--white); max-width: 14ch; margin-bottom: .35em; }
.hero h1 em { font-style: normal; color: var(--leaf); }
.hero .lead { color: rgba(255,255,255,.85); max-width: 52ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px;
  padding: 8px 16px 8px 8px; border-radius: 999px;
  background: rgba(255,255,255,.1); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.18); font-size: .88rem; font-weight: 500;
}
.hero__badge b { background: var(--leaf); color: var(--ink); border-radius: 999px; padding: 4px 10px; font-size: .78rem; font-weight: 700; letter-spacing: .02em; }

.trust {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  margin-top: clamp(40px, 6vw, 72px);
  border-top: 1px solid rgba(255,255,255,.18);
}
.trust__item { display: flex; gap: 14px; align-items: flex-start; padding: 22px 24px 0 0; }
.trust__item + .trust__item { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.18); }
.trust__icon { flex: none; width: 40px; height: 40px; border-radius: 12px; background: rgba(127,181,52,.18); color: var(--leaf); display: grid; place-items: center; }
.trust__icon svg { width: 20px; height: 20px; }
.trust__item strong { display: block; font-family: var(--font-display); font-size: 1.08rem; color: var(--white); }
.trust__item span { font-size: .9rem; color: rgba(255,255,255,.7); line-height: 1.45; display: block; margin-top: 2px; }
@media (max-width: 760px) {
  .trust { grid-template-columns: 1fr; }
  .trust__item, .trust__item + .trust__item { padding: 18px 0 0; border-left: 0; }
}

/* Page hero (inner pages) */
.page-hero {
  position: relative; color: var(--white); background: var(--ink); overflow: hidden; isolation: isolate;
  padding: clamp(150px, 18vw, 210px) 0 clamp(64px, 8vw, 100px);
}
.page-hero__bg { position: absolute; inset: 0; z-index: -2; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, var(--ink) 20%, rgba(14,26,43,.55) 100%); }
.page-hero h1 { color: var(--white); max-width: 16ch; }
.page-hero .lead { color: rgba(255,255,255,.8); }

/* ---------- Intro ---------- */
.intro { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.intro__media { position: relative; }
.intro__media .img-main { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/5; }
.intro__media .img-main img { width: 100%; height: 100%; object-fit: cover; }
.intro__media .img-float {
  position: absolute; right: -8%; bottom: -8%; width: 48%; aspect-ratio: 1; border-radius: var(--radius);
  overflow: hidden; border: 8px solid var(--sand); box-shadow: var(--shadow-lg);
}
.intro__media .img-float img { width: 100%; height: 100%; object-fit: cover; }
.intro__stamp {
  position: absolute; left: -22px; top: 32px; background: var(--ink); color: var(--white);
  padding: 18px 22px; border-radius: 18px; box-shadow: var(--shadow-lg);
}
.intro__stamp strong { display: block; font-family: var(--font-display); font-size: 2.4rem; line-height: 1; color: var(--leaf); }
.intro__stamp span { font-size: .82rem; letter-spacing: .04em; opacity: .85; }
.checks { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 14px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; }
.checks li::before {
  content: ""; flex: none; width: 24px; height: 24px; border-radius: 50%; margin-top: 1px;
  background: var(--leaf) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e1a2b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/14px no-repeat;
}
.checks strong { color: var(--ink); }
@media (max-width: 900px) {
  .intro { grid-template-columns: 1fr; }
  .intro__media { max-width: 520px; margin-right: 10%; }
  .intro__stamp { left: 12px; top: 12px; }
}

/* ---------- Service cards ---------- */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: clamp(36px, 5vw, 60px); flex-wrap: wrap; }
.section-head h2 { margin: 0; max-width: 16ch; }
.section-head p { max-width: 44ch; margin: 0; color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 520px;
  display: flex; flex-direction: column; justify-content: flex-end; color: var(--white);
  text-decoration: none; isolation: isolate; box-shadow: var(--shadow);
}
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14,26,43,0) 30%, rgba(14,26,43,.92) 100%); transition: background .4s; }
.card:hover img { transform: scale(1.06); }
.card__num { position: absolute; top: 22px; left: 24px; font: 600 .8rem/1 var(--font-body); letter-spacing: .14em; padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,.14); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.card__body { padding: 28px; }
.card h3 { color: var(--white); font-size: 1.7rem; margin-bottom: .35em; }
.card p { color: rgba(255,255,255,.78); font-size: .97rem; margin-bottom: 1.2em; }
.card .link-arrow { color: var(--leaf); }
.card:hover .link-arrow svg { transform: translateX(4px); }
@media (max-width: 960px) { .cards { grid-template-columns: 1fr; } .card { min-height: 420px; } }

/* ---------- Community band ---------- */
.community { background: var(--ink); position: relative; overflow: hidden; }
.community::after {
  content: ""; position: absolute; right: -180px; top: -180px; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(127,181,52,.28), rgba(127,181,52,0) 70%);
}
.community__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; position: relative; z-index: 1; }
.community blockquote {
  margin: 0; font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em;
  font-size: clamp(1.7rem, 3.4vw, 2.7rem); line-height: 1.18; color: var(--white);
}
.community blockquote em { font-style: normal; color: var(--leaf); }
.community__panel {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px);
}
.community__panel h3 { color: var(--white); }
.community__panel ul { list-style: none; padding: 0; margin: 18px 0 26px; display: grid; gap: 10px; }
.community__panel li { display: flex; gap: 12px; color: rgba(255,255,255,.82); }
.community__panel li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); margin-top: 10px; flex: none; }
@media (max-width: 900px) { .community__grid { grid-template-columns: 1fr; } }

/* ---------- Meet Luke ---------- */
.meet { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.meet__photo { position: relative; }
.meet__photo .frame { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1; box-shadow: var(--shadow-lg); }
.meet__photo .frame img { width: 100%; height: 100%; object-fit: cover; }
.meet__photo::before {
  content: ""; position: absolute; inset: 24px -24px -24px 24px; border-radius: var(--radius-lg);
  background: var(--leaf); z-index: -1;
}
.meet__sign { display: flex; align-items: center; gap: 16px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.meet__sign strong { font-family: var(--font-display); font-size: 1.25rem; color: var(--ink); display: block; line-height: 1.2; }
.meet__sign span { color: var(--muted); font-size: .92rem; }
.meet blockquote {
  margin: 28px 0 0; padding: 22px 26px; border-left: 4px solid var(--leaf); background: var(--white); border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: var(--ink); line-height: 1.35; letter-spacing: -.01em;
}
@media (max-width: 900px) {
  .meet { grid-template-columns: 1fr; }
  .meet__photo { max-width: 460px; margin-right: 24px; }
}

/* ---------- Gallery ---------- */
.projects { background: var(--white); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button {
  font: 600 .92rem/1 var(--font-body); padding: .8em 1.2em; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--line); background: transparent; color: var(--ink); transition: all .2s;
}
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }

.gallery { columns: 3 300px; column-gap: 18px; }
.gallery figure {
  break-inside: avoid; margin: 0 0 18px; position: relative; border-radius: var(--radius); overflow: hidden;
  cursor: zoom-in; background: var(--sand-2); transition: opacity .35s, transform .35s;
}
.gallery figure.is-hidden { display: none; }
.gallery img { width: 100%; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption {
  position: absolute; left: 12px; bottom: 12px; right: 12px;
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  color: var(--white); font-weight: 600; font-size: .92rem;
  padding: 10px 14px; border-radius: 12px; background: rgba(14,26,43,.62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; transform: translateY(8px); transition: all .3s ease;
}
.gallery figcaption small { font-weight: 500; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--leaf); }
.gallery figure:hover figcaption, .gallery figure:focus-visible figcaption { opacity: 1; transform: none; }
@media (hover: none) { .gallery figcaption { opacity: 1; transform: none; } }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 300; background: rgba(8,14,24,.94);
  display: grid; place-items: center; padding: 24px;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: min(1200px, 100%); max-height: 82vh; border-radius: 14px; box-shadow: var(--shadow-lg); }
.lightbox__cap { color: rgba(255,255,255,.8); text-align: center; margin-top: 14px; font-weight: 500; }
.lightbox button {
  position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.1); color: var(--white); display: grid; place-items: center; transition: background .2s;
}
.lightbox button:hover { background: rgba(255,255,255,.2); }
.lightbox button svg { width: 22px; height: 22px; }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .lightbox__prev, .lightbox__next { top: auto; bottom: 20px; transform: none; }
}

/* ---------- CTA band ---------- */
.cta {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; isolation: isolate;
  padding: clamp(40px, 7vw, 88px); color: var(--white);
  display: grid; grid-template-columns: 1.3fr auto; gap: 32px; align-items: end;
}
.cta img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(14,26,43,.96) 25%, rgba(14,26,43,.55)); }
.cta h2 { color: var(--white); max-width: 15ch; }
.cta p { color: rgba(255,255,255,.8); max-width: 50ch; margin: 0; }
.cta__actions { display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 820px) { .cta { grid-template-columns: 1fr; align-items: start; } .cta__actions { flex-direction: row; flex-wrap: wrap; } }

/* ---------- Services page ---------- */
.subnav {
  position: sticky; top: 70px; z-index: 50; background: rgba(245,241,232,.9);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.subnav .wrap { display: flex; gap: 6px; overflow-x: auto; padding-block: 12px; scrollbar-width: none; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav a {
  flex: none; text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--muted);
  padding: .6em 1.1em; border-radius: 999px; transition: all .2s;
}
.subnav a:hover { color: var(--ink); background: var(--white); }
.subnav a.is-active { color: var(--white); background: var(--ink); }

.service { scroll-margin-top: 140px; }
.service + .service { border-top: 1px solid var(--line); }
.service__top { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; margin-bottom: clamp(40px, 5vw, 64px); }
.service--flip .service__top > :first-child { order: 2; }
.service__num { font-family: var(--font-display); font-weight: 800; font-size: 1rem; color: var(--leaf-deep); letter-spacing: .06em; }
.service__media { display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; }
.service__media figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.service__media figure:first-child { grid-row: span 2; }
.service__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; }
.service__media--single { grid-template-columns: 1fr; }
.service__media--single figure { aspect-ratio: 4/3; }

.tasks { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 0; }
.tasks li {
  display: flex; gap: 14px; align-items: center; background: var(--white); border: 1px solid var(--line);
  padding: 16px 18px; border-radius: 14px; font-weight: 500; color: var(--ink); line-height: 1.4;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.tasks li:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: transparent; }
.tasks li::before {
  content: ""; flex: none; width: 30px; height: 30px; border-radius: 9px;
  background: var(--leaf-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235e8f1f' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/16px no-repeat;
}
@media (max-width: 900px) {
  .service__top { grid-template-columns: 1fr; }
  .service--flip .service__top > :first-child { order: 0; }
}

/* ---------- Contact page ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(36px, 6vw, 72px); align-items: start; }
.contact__cards { display: grid; gap: 14px; margin-top: 32px; }
.ccard {
  display: flex; gap: 18px; align-items: center; padding: 20px 22px; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--line); text-decoration: none; transition: transform .25s, box-shadow .25s;
}
a.ccard:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.ccard__icon { width: 48px; height: 48px; border-radius: 14px; background: var(--ink); color: var(--leaf); display: grid; place-items: center; flex: none; }
.ccard__icon svg { width: 22px; height: 22px; }
.ccard small { display: block; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.ccard strong { font-family: var(--font-display); font-size: 1.2rem; color: var(--ink); font-weight: 700; word-break: break-word; }

.form {
  background: var(--white); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow-lg);
}
.form h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 8px; color: var(--ink); }
.field label span { color: var(--leaf-deep); }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--sand);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--leaf); background: var(--white); box-shadow: 0 0 0 4px rgba(127,181,52,.2);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { margin: 0; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-block; padding: .6em 1em; border-radius: 999px; border: 1.5px solid var(--line);
  font-weight: 500; font-size: .92rem; cursor: pointer; transition: all .2s; color: var(--ink);
}
.chips input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--white); }
.chips input:focus-visible + span { box-shadow: 0 0 0 4px rgba(127,181,52,.35); }
.form__note { font-size: .85rem; color: var(--muted); margin: 14px 0 0; }
.form .btn { width: 100%; padding: 1.1em; font-size: 1.05rem; }
.form__ok { display: none; padding: 16px 18px; border-radius: 12px; background: var(--leaf-soft); color: var(--leaf-deep); font-weight: 600; margin-top: 16px; }
.form__ok.is-shown { display: block; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }

.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--ink); color: var(--white); transition: background .2s, transform .2s;
}
.socials a:hover { background: var(--leaf); color: var(--ink); transform: translateY(-2px); }
.socials svg { width: 20px; height: 20px; }
.footer .socials a { background: rgba(255,255,255,.08); }
.footer .socials a:hover { background: var(--leaf); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,.72); padding: clamp(64px, 8vw, 96px) 0 32px; font-size: .96rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.footer h4 { color: var(--white); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; font-family: var(--font-body); font-weight: 600; margin-bottom: 18px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a { text-decoration: none; transition: color .2s; }
.footer a:hover { color: var(--leaf); }
.footer p { max-width: 38ch; }
.footer__bottom {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .86rem; color: rgba(255,255,255,.5);
}
@media (max-width: 820px) { .footer__grid { grid-template-columns: 1fr; gap: 36px; } }

/* Mobile call bar */
.callbar { display: none; }
@media (max-width: 640px) {
  .callbar {
    display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90; gap: 8px;
    padding: 8px; border-radius: 999px; background: rgba(14,26,43,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-lg); transform: translateY(140%); transition: transform .4s ease;
  }
  .callbar.is-shown { transform: none; }
  .callbar .btn { flex: 1; padding: .9em 1em; }
  body { padding-bottom: 0; }
}

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease-out, transform .6s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* Mobile hero: darker scrim so text stays readable over bright photos */
@media (max-width: 760px) {
  .hero::before {
    background: linear-gradient(180deg, rgba(14,26,43,.82) 0%, rgba(14,26,43,.62) 40%, rgba(14,26,43,.78) 70%, rgba(14,26,43,.96) 100%);
  }
  .hero h1, .hero .lead { text-shadow: 0 2px 18px rgba(14,26,43,.5); }
  .hero__badge { font-size: .8rem; }
  .hero__actions .btn { flex: 1 1 auto; }
}

/* Form fixes */
.field .chips span { color: var(--ink); font-weight: 500; }
.field .chips input:checked + span { color: var(--white); }
.field-row { column-gap: 16px; row-gap: 0; }

@media (max-width: 400px) {
  .brand__mark { width: 40px; height: 40px; }
  .brand__name { font-size: 1.1rem; }
  .brand__tag { font-size: .6rem; letter-spacing: .1em; white-space: nowrap; }
}

/* ---------- Hero video reel ---------- */
.hero .wrap { position: relative; }
.hero__reel {
  position: absolute; right: 0; top: 0; width: 340px;
  padding: 18px 18px 16px; border-radius: 20px;
  background: rgba(14,26,43,.42); border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.5);
  opacity: 0; transform: translateY(12px); transition: opacity .8s ease .4s, transform .8s ease .4s;
}
.hero.is-playing .hero__reel, .hero.is-done .hero__reel { opacity: 1; transform: none; }
.hero__reel-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.hero__reel-title { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.85); }
.hero__live { width: 9px; height: 9px; border-radius: 50%; background: #ff5a4e; box-shadow: 0 0 0 0 rgba(255,90,78,.6); animation: livepulse 1.6s infinite; flex: none; }
.hero.is-done .hero__live { background: var(--leaf); animation: none; box-shadow: 0 0 0 4px rgba(127,181,52,.25); }
@keyframes livepulse { 70% { box-shadow: 0 0 0 8px rgba(255,90,78,0); } 100% { box-shadow: 0 0 0 0 rgba(255,90,78,0); } }
.hero__stages { list-style: none; margin: 0 0 12px; padding: 0; display: flex; justify-content: space-between; gap: 8px; }
.hero__stages li {
  font-size: .82rem; font-weight: 600; color: rgba(255,255,255,.4); transition: color .4s ease;
  display: flex; align-items: center; gap: 6px;
}
.hero__stages li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; transition: background .4s; }
.hero__stages li.is-on { color: var(--white); }
.hero__stages li.is-on::before { background: var(--leaf); }
.hero__progress { height: 4px; border-radius: 4px; background: rgba(255,255,255,.14); overflow: hidden; }
.hero__progress i { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--leaf), #b5e36b); border-radius: inherit; }
.hero__replay {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px;
  font: 600 .85rem/1 var(--font-body); color: var(--white); cursor: pointer;
  padding: 9px 14px 9px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08);
  opacity: 0; pointer-events: none; transition: opacity .4s, background .2s;
}
.hero__replay svg { width: 15px; height: 15px; }
.hero__replay:hover { background: rgba(255,255,255,.18); }
.hero.is-done .hero__replay { opacity: 1; pointer-events: auto; }

@media (max-width: 1080px) {
  .hero__reel {
    position: static; width: 100%; max-width: 440px; margin-top: 22px; padding: 10px 10px 10px 16px; border-radius: 999px;
    display: flex; align-items: center; gap: 12px; transition-delay: 0s;
  }
  .hero__reel-head { margin: 0; }
  .hero__reel-title { display: none; }
  .hero__stages { margin: 0; flex: none; min-width: 96px; }
  .hero__stages li { display: none; }
  .hero__stages li.is-current { display: flex; color: var(--white); }
  .hero__progress { flex: 1; }
  .hero__replay { margin: 0; padding: 8px; font-size: 0; gap: 0; flex: none; }
  .hero:not(.is-done):not(.is-paused) .hero__replay { display: none; }
}
@media (max-width: 400px) { .hero__stages li { font-size: .74rem; } }
.hero.is-paused .hero__reel { opacity: 1; transform: none; }
.hero.is-paused .hero__replay { opacity: 1; pointer-events: auto; }
.hero.is-paused .hero__live { animation: none; background: rgba(255,255,255,.5); }
.hero__stages li, .hero__reel-title { white-space: nowrap; }

/* Autoplay blocked (e.g. Low Power Mode): the reel becomes a single "Watch the build" button */
.hero.is-paused .hero__stages, .hero.is-paused .hero__progress, .hero.is-paused .hero__reel-head { display: none; }
.hero.is-paused .hero__reel { padding: 6px; width: auto; display: inline-flex; background: rgba(14,26,43,.5); }
.hero.is-paused .hero__replay { margin: 0; font-size: .9rem; gap: 8px; padding: 10px 16px 10px 12px; border: 0; background: transparent; }

/* ---------- Phones ---------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hide-sm { display: none; }
  .section { padding-block: 64px; }

  .hero { padding: 108px 0 28px; min-height: 100svh; }
  .hero h1 { font-size: clamp(2.5rem, 11.5vw, 3.2rem); max-width: none; }
  .hero .lead { font-size: 1.02rem; line-height: 1.6; }
  .hero__badge { margin-bottom: 18px; font-size: .8rem; padding: 6px 14px 6px 6px; }
  .hero__actions { margin-top: 22px; gap: 10px; }
  .hero__actions .btn { flex: 1 1 0; padding: 1em .8em; font-size: .95rem; }
  .hero__reel { margin-top: 16px; max-width: none; }
  .hero.is-paused .hero__reel { width: auto; }

  /* Trust points: compact 3-up row */
  .trust { grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 24px; padding-top: 18px; }
  .trust__item, .trust__item + .trust__item { flex-direction: column; gap: 8px; padding: 0; border: 0; }
  .trust__icon { width: 34px; height: 34px; border-radius: 10px; }
  .trust__item strong { font-size: .86rem; line-height: 1.25; }
  .trust__item span { display: none; }

  .card { min-height: 360px; }
  .intro__media { margin-right: 12%; }
  .intro__stamp { padding: 12px 16px; }
  .intro__stamp strong { font-size: 1.9rem; }
  .gallery { columns: 2; column-gap: 10px; }
  .gallery figure { margin-bottom: 10px; border-radius: 12px; }
  .gallery figcaption { display: none; }
  .section-head { gap: 20px; }
  .cta { padding: 32px 22px; }
  .community blockquote { font-size: 1.6rem; }
  .meet blockquote { font-size: 1.1rem; padding: 18px 20px; }

  .callbar { bottom: calc(10px + env(safe-area-inset-bottom)); }
  .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}
.header, .hero, .page-hero, .section, .footer { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
