/* Assured Builders, Inc. */

:root {
  --white: #ffffff;
  --mist: #f3f5f8;
  --mist-2: #e9edf2;
  --ink: #0d1726;
  --navy: #0e2240;
  --navy-deep: #08162b;
  --slate: #56627a;
  --line: #c9d1dc;
  --on-navy: #ffffff;
  --on-navy-soft: #b9c4d6;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --wide: 112;

  --step-hero: clamp(2.75rem, 1.2rem + 5.4vw, 6rem);
  --step-1: clamp(2.25rem, 1.3rem + 3.4vw, 4.25rem);
  --step-2: clamp(1.5rem, 1.15rem + 1.2vw, 2.125rem);
  --step-3: 1.25rem;
  --text: 1.125rem;
  --small: 0.9375rem;

  --gutter: clamp(20px, 4.5vw, 72px);
  --max: 1400px;
  --section: clamp(96px, 12vw, 180px);
  --header-h: 118px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--text);
  line-height: 1.55;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  font-variation-settings: "wdth" var(--wide);
  letter-spacing: -0.025em;
  line-height: 1.02;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--navy); color: var(--white); }
:focus-visible { outline: 3px solid #3d7bd9; outline-offset: 3px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--navy); color: var(--white); padding: 12px 18px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 54px; padding: 0 28px;
  border: 0; border-radius: 0;
  background: var(--navy); color: var(--white);
  font-weight: 600; font-size: 1rem; letter-spacing: 0.005em;
  font-variation-settings: "wdth" 106;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.btn:hover { background: #17325a; }
.btn:active { transform: translateY(1px); }
.btn--light { background: var(--white); color: var(--navy); }
.btn--light:hover { background: var(--mist-2); }
.btn--ghost { background: transparent; color: currentColor; box-shadow: inset 0 0 0 2px currentColor; }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn svg { width: 18px; height: 18px; flex: none; }

.text-link {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-weight: 600; text-decoration: none; color: var(--navy);
  font-variation-settings: "wdth" 106;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat;
  padding-bottom: 4px;
  transition: background-size 0.3s var(--ease-out);
}
.text-link:hover { background-size: 40% 2px; }

/* Header ------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  color: var(--white);
  transition: background-color 0.35s var(--ease-out), color 0.35s var(--ease-out), height 0.35s var(--ease-out);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 32px; }
.site-header.is-solid,
.site-header.is-open { background: var(--white); color: var(--ink); --header-h: 88px; height: 88px; }
.page--plain .site-header { background: var(--white); color: var(--ink); }

/* The stacked logo is one SVG used as a mask, so each place colours it with CSS. */
.logo {
  display: block; aspect-ratio: 4941 / 3832; background-color: currentColor;
  -webkit-mask: url("../assets/logo/assured-builders-logo-mask.svg") center / contain no-repeat;
  mask: url("../assets/logo/assured-builders-logo-mask.svg") center / contain no-repeat;
}
.brand { display: block; flex: none; height: 94px; color: var(--white); transition: height 0.35s var(--ease-out), color 0.35s var(--ease-out); }
.brand .logo { height: 100%; width: auto; }
.site-header.is-solid .brand,
.site-header.is-open .brand,
.page--plain .brand { height: 68px; color: var(--navy); }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 36px); }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 0; font-size: 1rem; font-weight: 500; text-decoration: none;
  font-variation-settings: "wdth" 104;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  transition: background-size 0.3s var(--ease-out);
}
.nav__link:hover,
.nav__link[aria-current="page"] { background-size: 100% 2px; }
.nav__link svg { width: 12px; height: 12px; transition: transform 0.25s var(--ease-out); }
.nav__item:hover .nav__link svg,
.nav__item:focus-within .nav__link svg { transform: rotate(180deg); }

.submenu {
  position: absolute; top: 100%; left: -24px; min-width: 260px;
  padding: 14px 0; background: var(--white); color: var(--ink);
  box-shadow: 0 18px 40px rgba(8, 22, 43, 0.16);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.2s, transform 0.25s var(--ease-out), visibility 0.2s;
}
.nav__item:hover .submenu,
.nav__item:focus-within .submenu { opacity: 1; visibility: visible; transform: none; }
.submenu a { display: block; padding: 10px 24px; text-decoration: none; font-size: 0.975rem; }
.submenu a:hover { background: var(--mist); color: var(--navy); }

.header-actions { display: flex; align-items: center; gap: 22px; margin-left: clamp(16px, 2vw, 40px); }
.header-phone { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; white-space: nowrap; font-variation-settings: "wdth" 104; }
.header-phone svg { width: 18px; height: 18px; }
.site-header .btn { min-height: 48px; padding: 0 22px; }
.site-header:not(.is-solid):not(.is-open) .btn { background: var(--white); color: var(--navy); }
.page--plain .site-header:not(.is-solid):not(.is-open) .btn,
.page--plain .site-header .btn { background: var(--navy); color: var(--white); }

.menu-toggle { display: none; margin-left: auto; width: 48px; height: 48px; border: 0; background: none; cursor: pointer; padding: 12px; }
.menu-toggle span { display: block; height: 2px; background: currentColor; margin: 6px 0; transition: transform 0.3s var(--ease-out), opacity 0.2s; }
.is-open .menu-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.is-open .menu-toggle span:nth-child(2) { opacity: 0; }
.is-open .menu-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1180px) {
  .header-phone span { display: none; }
}
@media (max-width: 1020px) {
  :root { --header-h: 84px; }
  .site-header, .site-header.is-solid, .site-header.is-open { height: 84px; --header-h: 84px; }
  .brand, .site-header.is-solid .brand, .site-header.is-open .brand, .page--plain .brand { height: 64px; }
  .menu-toggle { display: block; }
  .header-actions { display: none; }
  .nav {
    position: fixed; inset: 84px 0 0; margin: 0;
    background: var(--white); color: var(--ink);
    padding: 24px var(--gutter) 40px; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.3s var(--ease-out), visibility 0.25s;
  }
  .is-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link { width: 100%; padding: 16px 0; font-size: 1.5rem; font-weight: 600; font-variation-settings: "wdth" 110; background: none; }
  .nav__link svg { display: none; }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 12px; min-width: 0; }
  .submenu a { padding: 8px 0; color: var(--slate); font-size: 1.0625rem; }
  .submenu a:hover { background: none; }
  .nav__mobile-cta { display: grid; gap: 12px; margin-top: 28px; }
}
@media (min-width: 1021px) { .nav__mobile-cta { display: none; } }

/* Hero (home) -------------------------------------------------------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  color: var(--white); background: var(--navy-deep); overflow: hidden;
}
.hero__slides { position: absolute; inset: 0; }
.hero__slide { position: absolute; inset: 0; visibility: hidden; }
.hero__slide.is-active,
.hero__slide.is-entering { visibility: visible; }
.hero__slide.is-entering { z-index: 2; }
.hero__slide img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.02); transform-origin: 60% 50%;
}
.hero__slide.is-active img,
.hero__slide.is-entering img { animation: drift 9s linear forwards; }
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.09); } }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 22, 43, 0.55) 0%, rgba(8, 22, 43, 0) 26%, rgba(8, 22, 43, 0) 42%, rgba(8, 22, 43, 0.78) 100%);
}
.hero__content {
  position: relative; z-index: 4; width: 100%;
  padding-top: calc(var(--header-h) + 48px); padding-bottom: clamp(40px, 6vw, 72px);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 40px;
}
.hero h1 { font-size: var(--step-hero); max-width: 12.5ch; }
.hero__lead { max-width: 36rem; margin-top: 28px; font-size: clamp(1.0625rem, 0.95rem + 0.4vw, 1.3125rem); line-height: 1.5; color: #eef2f8; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__actions .btn:first-child { background: var(--white); color: var(--navy); }
.hero__actions .btn:first-child:hover { background: var(--mist-2); }

.hero__project { justify-self: end; text-align: right; min-width: 240px; }
.hero__project-name { display: block; font-size: 1.375rem; font-weight: 600; font-variation-settings: "wdth" 110; letter-spacing: -0.01em; }
.hero__project-meta { display: block; color: #d5dce8; margin-top: 4px; font-size: var(--small); }
.hero__project a { margin-top: 14px; color: var(--white); }
.hero__bars { display: flex; justify-content: flex-end; gap: 6px; margin-top: 22px; }
.hero__bar {
  position: relative; width: 44px; height: 22px; padding: 0; border: 0; background: none; cursor: pointer;
}
.hero__bar::before,
.hero__bar::after { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 3px; background: rgba(255, 255, 255, 0.35); }
.hero__bar::after { background: var(--white); transform: scaleX(0); transform-origin: left; }
.hero__bar.is-active::after { animation: bar var(--slide-time, 7s) linear forwards; }
@keyframes bar { to { transform: scaleX(1); } }

@media (max-width: 860px) {
  .hero__content { grid-template-columns: 1fr; }
  .hero__project { justify-self: start; text-align: left; }
  .hero__bars { justify-content: flex-start; }
}

/* Page hero (inner pages) -------------------------------------------- */
.page-hero {
  position: relative; min-height: min(78vh, 760px);
  display: flex; align-items: flex-end; color: var(--white); background: var(--navy-deep); overflow: hidden;
}
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8, 22, 43, 0.55) 0%, rgba(8, 22, 43, 0) 30%, rgba(8, 22, 43, 0.15) 50%, rgba(8, 22, 43, 0.8) 100%);
}
.page-hero .wrap { position: relative; z-index: 1; padding-top: calc(var(--header-h) + 40px); padding-bottom: clamp(40px, 6vw, 80px); }
.page-hero h1 { font-size: var(--step-1); max-width: 16ch; }
.page-hero p { max-width: 38rem; margin-top: 22px; font-size: 1.1875rem; color: #eef2f8; }
.crumbs { display: flex; gap: 10px; margin-bottom: 18px; font-size: var(--small); color: #d5dce8; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* Sections ----------------------------------------------------------- */
.section { padding-block: var(--section); }
.section--mist { background: var(--mist); }
.section--navy { background: var(--navy); color: var(--on-navy); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px 48px; margin-bottom: clamp(40px, 5vw, 72px); }
.section-head h2 { font-size: var(--step-1); }
.section-head p { max-width: 34rem; color: var(--slate); }
.section--navy .section-head p { color: var(--on-navy-soft); }

/* Experience (split) ------------------------------------------------- */
.experience { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 110px); align-items: center; }
.experience__media { position: relative; aspect-ratio: 5 / 4; overflow: hidden; background: var(--navy-deep); }
.experience__media > img { width: 100%; height: 100%; object-fit: cover; }
.experience__media::after { content: ""; position: absolute; inset: 0; background: rgba(8, 22, 43, 0.55); }
.experience__logo { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; }
.experience__logo .logo { width: min(62%, 420px); color: var(--white); }
.experience h2 { font-size: var(--step-1); }
.experience__body { margin-top: 32px; display: grid; gap: 20px; max-width: 34rem; }
.facts { margin-top: 40px; display: grid; gap: 0; }
.facts li { display: grid; grid-template-columns: 9.5rem 1fr; gap: 20px; padding: 18px 0; background: linear-gradient(var(--mist-2), var(--mist-2)) 0 0 / 100% 2px no-repeat; }
.facts dt, .facts .k { font-weight: 600; font-variation-settings: "wdth" 106; }
.facts .v { color: var(--ink); }

@media (max-width: 900px) {
  .experience { grid-template-columns: 1fr; }
  .facts li { grid-template-columns: 1fr; gap: 2px; }
}

/* Projects ----------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px 30px; margin-bottom: 44px; }
.filter {
  padding: 8px 0; border: 0; background: none; cursor: pointer;
  font-weight: 500; font-size: 1.0625rem; color: inherit; opacity: 0.72;
  font-variation-settings: "wdth" 106;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  transition: opacity 0.2s, background-size 0.3s var(--ease-out);
}
.filter:hover { opacity: 1; }
.filter[aria-pressed="true"] { opacity: 1; background-size: 100% 2px; }

.mosaic { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); }
.tile { position: relative; overflow: hidden; background: var(--navy-deep); color: var(--white); text-decoration: none; min-height: 340px; grid-column: span 5; }
.tile--wide { grid-column: span 7; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease-out); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 22, 43, 0) 35%, rgba(8, 22, 43, 0.82) 100%); }
.tile__text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: clamp(20px, 2.4vw, 34px); display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.tile h3 { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem); }
.tile__meta { display: block; margin-top: 8px; color: #d5dce8; font-size: var(--small); }
.tile__arrow { flex: none; width: 52px; height: 52px; display: grid; place-items: center; background: var(--white); color: var(--navy); transform: translateX(-8px); opacity: 0; transition: transform 0.4s var(--ease-out), opacity 0.3s; }
.tile__arrow svg { width: 20px; height: 20px; }
.tile:hover img, .tile:focus-visible img { transform: scale(1.05); }
.tile:hover .tile__arrow, .tile:focus-visible .tile__arrow { transform: none; opacity: 1; }
.tile.is-hidden { display: none; }
.mosaic--grid .tile { grid-column: span 6; min-height: 420px; }
.mosaic .tile.tile--full { grid-column: 1 / -1; min-height: 460px; }
.mosaic__row-tall .tile { min-height: 460px; }
.tile.tall { min-height: 520px; }

@media (max-width: 900px) {
  .tile, .tile--wide, .mosaic--grid .tile, .mosaic .tile.tile--full { grid-column: span 12; min-height: 300px; }
  .tile__arrow { opacity: 1; transform: none; width: 44px; height: 44px; }
}

/* Services ----------------------------------------------------------- */
.section--services { padding-bottom: 0; }
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.service { display: flex; flex-direction: column; background: var(--mist); }
.service:nth-child(even) { background: var(--white); }
.service__img { aspect-ratio: 4 / 3; overflow: hidden; }
.service__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease-out); }
.service:hover .service__img img { transform: scale(1.04); }
.service__body { display: flex; flex-direction: column; flex: 1; padding: clamp(26px, 2.6vw, 40px); }
.service h3 { font-size: var(--step-2); }
.service p { margin-top: 16px; color: var(--ink); }
.service .text-link { margin-top: auto; padding-top: 28px; align-self: flex-start; background-position: 0 100%; }
@media (max-width: 1100px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } .service:nth-child(4n + 1), .service:nth-child(4n) { background: var(--mist); } .service:nth-child(4n + 2), .service:nth-child(4n + 3) { background: var(--white); } }
@media (max-width: 640px) { .services { grid-template-columns: 1fr; } .service:nth-child(odd) { background: var(--mist); } .service:nth-child(even) { background: var(--white); } }

/* Estimate ----------------------------------------------------------- */
.estimate { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 110px); align-items: start; }
.estimate h2 { font-size: var(--step-1); }
.estimate__lead { margin-top: 26px; max-width: 30rem; }
.contact-lines { margin-top: 44px; display: grid; gap: 28px; }
.contact-lines h3 { font-size: 1rem; font-weight: 600; letter-spacing: 0; font-variation-settings: "wdth" 106; color: var(--slate); }
.contact-lines a, .contact-lines p { display: block; margin-top: 6px; font-size: clamp(1.25rem, 1rem + 0.8vw, 1.75rem); font-weight: 600; font-variation-settings: "wdth" 108; letter-spacing: -0.01em; text-decoration: none; line-height: 1.25; }
.contact-lines a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 5px; }
.contact-lines p.addr { font-size: 1.125rem; font-weight: 400; font-variation-settings: "wdth" 100; letter-spacing: 0; }

.form { background: var(--white); padding: clamp(24px, 3.4vw, 52px); }
.section--mist .form { background: var(--white); }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; }
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 600; font-size: 0.975rem; font-variation-settings: "wdth" 104; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 54px; padding: 14px 16px;
  border: 0; border-radius: 0; background: var(--mist);
  box-shadow: inset 0 -2px 0 var(--line);
  transition: box-shadow 0.2s, background-color 0.2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; background: var(--mist-2); box-shadow: inset 0 -2px 0 var(--navy); }
.field input:user-invalid { box-shadow: inset 0 -2px 0 #b3261e; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 46px; padding: 0 18px;
  background: var(--mist); font-weight: 500; font-size: 0.975rem; cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.chip input:hover + span { background: var(--mist-2); }
.chip input:checked + span { background: var(--navy); color: var(--white); }
.chip input:focus-visible + span { outline: 3px solid #3d7bd9; outline-offset: 2px; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 30px; }
.form__note { font-size: var(--small); color: var(--slate); max-width: 26rem; }
.form__status { margin-top: 18px; font-weight: 600; color: var(--navy); }
.form__status:empty { display: none; }

@media (max-width: 960px) { .estimate { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form__grid { grid-template-columns: 1fr; } }

/* Split rows (services page, about) ---------------------------------- */
.rows { display: grid; gap: var(--section); }
.row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 110px); align-items: center; }
.row:nth-child(even) .row__media { order: 2; }
.row__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--mist); }
.row__media img { width: 100%; height: 100%; object-fit: cover; }
.row h2 { font-size: var(--step-1); }
.row p { margin-top: 22px; max-width: 34rem; }
.ticks { margin-top: 28px; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 14px; height: 14px; background: var(--navy); clip-path: polygon(0 0, 22% 0, 22% 100%, 0 100%, 0 0, 39% 0, 61% 0, 61% 100%, 39% 100%, 39% 0, 78% 0, 100% 0, 100% 100%, 78% 100%, 78% 0); }
.row .btn, .row .text-link { margin-top: 34px; }
@media (max-width: 900px) { .row { grid-template-columns: 1fr; } .row:nth-child(even) .row__media { order: 0; } }

/* Process (about) ---------------------------------------------------- */
.process { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
.process li { padding: 34px 26px 38px; background: rgba(255, 255, 255, 0.06); }
.process li:nth-child(even) { background: rgba(255, 255, 255, 0.11); }
.process h3 { font-size: 1.375rem; }
.process p { margin-top: 14px; color: var(--on-navy-soft); font-size: 1.0625rem; }
@media (max-width: 1100px) { .process { grid-template-columns: repeat(2, minmax(0, 1fr)); } .process li:last-child { grid-column: 1 / -1; } }
@media (max-width: 600px) { .process { grid-template-columns: 1fr; } }

.areas { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 110px); align-items: start; }
.areas h2 { font-size: var(--step-1); }
.areas p { margin-top: 22px; max-width: 30rem; }
.area-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.area-list li { padding: 20px 0; font-size: clamp(1.375rem, 1.1rem + 0.9vw, 2rem); font-weight: 600; font-variation-settings: "wdth" 110; letter-spacing: -0.015em; background: linear-gradient(var(--mist-2), var(--mist-2)) 0 100% / 100% 2px no-repeat; }
.area-list small { display: block; font-size: var(--small); font-weight: 400; color: var(--slate); letter-spacing: 0; font-variation-settings: "wdth" 100; margin-top: 2px; }
@media (max-width: 900px) { .areas { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .area-list { grid-template-columns: 1fr; } }

/* Project detail ----------------------------------------------------- */
.project-intro { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 110px); align-items: start; }
.project-intro h2 { font-size: var(--step-2); }
.project-intro .copy { display: grid; gap: 20px; max-width: 40rem; }
.spec { display: grid; gap: 0; }
.spec div { padding: 18px 0; background: linear-gradient(var(--mist-2), var(--mist-2)) 0 100% / 100% 2px no-repeat; }
.spec dt { font-size: var(--small); color: var(--slate); }
.spec dd { margin: 4px 0 0; font-weight: 600; font-size: 1.1875rem; font-variation-settings: "wdth" 106; }
@media (max-width: 900px) { .project-intro { grid-template-columns: 1fr; } }

.gallery { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: clamp(170px, 17vw, 290px); grid-auto-flow: dense; gap: clamp(10px, 1.2vw, 18px); }
.gallery button { position: relative; padding: 0; border: 0; background: var(--mist-2); cursor: zoom-in; overflow: hidden; grid-column: span 2; }
.gallery button.g-wide { grid-column: span 4; grid-row: span 2; }
.gallery button.g-tall { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out); }
.gallery button:hover img { transform: scale(1.04); }
@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 42vw; }
  .gallery button, .gallery button.g-tall { grid-column: span 1; }
  .gallery button.g-wide { grid-column: 1 / -1; grid-row: span 1; }
  .gallery button.g-tall { grid-row: span 2; }
}

.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(8, 22, 43, 0.96); color: var(--white); }
.lightbox::backdrop { background: rgba(8, 22, 43, 0.96); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: min(92vw, 1600px); max-height: 84vh; width: auto; height: auto; object-fit: contain; }
.lightbox__close, .lightbox__nav { position: absolute; border: 0; background: var(--white); color: var(--navy); width: 52px; height: 52px; display: grid; place-items: center; cursor: pointer; }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__nav--prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox svg { width: 22px; height: 22px; }
.lightbox__count { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; color: var(--on-navy-soft); font-size: var(--small); }

.next-project { position: relative; display: block; min-height: 380px; color: var(--white); text-decoration: none; overflow: hidden; background: var(--navy-deep); }
.next-project img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; transition: transform 1s var(--ease-out), opacity 0.4s; }
.next-project:hover img { transform: scale(1.04); opacity: 0.65; }
.next-project .wrap { position: relative; z-index: 1; min-height: 380px; display: flex; flex-direction: column; justify-content: center; }
.next-project small { font-size: 1.0625rem; color: #d5dce8; }
.next-project strong { display: block; margin-top: 10px; font-size: var(--step-1); font-weight: 600; font-variation-settings: "wdth" var(--wide); letter-spacing: -0.025em; line-height: 1.02; }

/* CTA band ----------------------------------------------------------- */
.cta-band { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px 60px; }
.cta-band h2 { font-size: var(--step-1); max-width: 14ch; }
.cta-band p { margin-top: 20px; color: var(--on-navy-soft); max-width: 32rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 14px; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } }

.map { width: 100%; aspect-ratio: 16 / 7; border: 0; display: block; filter: grayscale(0.4); background: var(--mist); }
@media (max-width: 760px) { .map { aspect-ratio: 4 / 3; } }

/* Footer ------------------------------------------------------------- */
.site-footer { background: var(--navy-deep); color: var(--on-navy); padding-top: clamp(80px, 9vw, 130px); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr)); gap: 48px; }
.footer-logo { width: min(260px, 70%); color: var(--white); }
.footer-top h2 { font-size: 1rem; letter-spacing: 0; font-variation-settings: "wdth" 106; color: var(--on-navy-soft); font-weight: 600; }
.footer-top p, .footer-top li { margin-top: 12px; font-size: 1.0625rem; }
.footer-top a { text-decoration: none; }
.footer-top a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-big { margin-top: 12px; display: block; font-size: 1.5rem; font-weight: 600; font-variation-settings: "wdth" 108; }
.footer-area { margin-top: 18px; color: var(--on-navy-soft); max-width: 22rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 40px; margin-top: clamp(64px, 8vw, 110px); padding-block: 28px; font-size: var(--small); color: var(--on-navy-soft); background: linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1)) 0 0 / 100% 1px no-repeat; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: var(--white); }
@media (max-width: 1000px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }

/* Mobile call bar ---------------------------------------------------- */
.call-bar { display: none; }
@media (max-width: 1020px) {
  /* Shown with opacity, not a slide: iOS Safari can leave the tap area of a moved
     fixed bar behind, so taps fell through to the link underneath. */
  .call-bar {
    position: fixed; z-index: 40; left: 0; right: 0; bottom: 0;
    display: grid; grid-template-columns: 1fr 1fr;
    background: var(--white); padding-bottom: env(safe-area-inset-bottom, 0px);
    box-shadow: 0 -1px 0 var(--mist-2);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.25s var(--ease-out), visibility 0s linear 0.25s;
  }
  .call-bar.is-visible { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity 0.25s var(--ease-out), visibility 0s; }
  .call-bar a { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 58px; font-weight: 600; text-decoration: none; -webkit-tap-highlight-color: transparent; }
  .call-bar a:first-child { background: var(--white); color: var(--navy); }
  .call-bar a:last-child { background: var(--navy); color: var(--white); }
  .call-bar svg { width: 18px; height: 18px; }
  body { padding-bottom: 0; }
  .site-footer { padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px)); }
}

/* Motion ------------------------------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); transition-delay: var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .hero__slide img { transform: none !important; }
}

@media (max-width: 860px) {
  .hero::after { background: linear-gradient(180deg, rgba(8, 22, 43, 0.6) 0%, rgba(8, 22, 43, 0.45) 30%, rgba(8, 22, 43, 0.6) 60%, rgba(8, 22, 43, 0.85) 100%); }
}

/* Figures band ------------------------------------------------------- */
.figures { background: var(--mist); }
.figures__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); padding-block: clamp(36px, 4.5vw, 64px); gap: 32px clamp(20px, 3vw, 48px); }
.figures li { display: grid; gap: 8px; align-content: start; }
.figure__n { font-size: clamp(2.5rem, 1.6rem + 2.8vw, 4.25rem); font-weight: 600; line-height: 1; letter-spacing: -0.035em; font-variation-settings: "wdth" 116; color: var(--navy); font-variant-numeric: tabular-nums; }
.figure__l { max-width: 17rem; font-size: 1rem; line-height: 1.4; color: var(--ink); }

/* How we work -------------------------------------------------------- */
.how { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr); gap: clamp(40px, 6vw, 110px); align-items: start; }
.how__intro h2 { font-size: var(--step-1); }
.how__intro p { margin-top: 26px; max-width: 30rem; }
.section--navy .how__intro p { color: var(--on-navy-soft); }
.pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.pillars li { padding: clamp(26px, 2.6vw, 40px); background: var(--mist); }
.section--navy .pillars li { background: rgba(255, 255, 255, 0.07); }
.pillars h3 { position: relative; padding-top: 34px; font-size: var(--step-2); }
.pillars h3::before { content: ""; position: absolute; left: 0; top: 0; width: 22px; height: 16px; background: var(--navy); clip-path: polygon(0 0, 18% 0, 18% 100%, 0 100%, 0 0, 41% 0, 59% 0, 59% 100%, 41% 100%, 41% 0, 82% 0, 100% 0, 100% 100%, 82% 100%, 82% 0); }
.section--navy .pillars h3::before { background: var(--white); }
.pillars p { margin-top: 14px; }
.section--navy .pillars p { color: var(--on-navy-soft); }
@media (max-width: 960px) { .how { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .pillars { grid-template-columns: 1fr; } }

/* Testimonials (layout preview only) --------------------------------- */
.quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.quote { margin: 0; padding: clamp(28px, 3vw, 48px); background: var(--white); display: flex; flex-direction: column; gap: 24px; }
.quote blockquote { margin: 0; }
.quote p { font-size: clamp(1.125rem, 1rem + 0.4vw, 1.375rem); line-height: 1.5; }
.quote figcaption { margin-top: auto; font-weight: 600; color: var(--navy); font-variation-settings: "wdth" 106; }
.sample-flag { color: #b3261e !important; font-weight: 600; }
@media (max-width: 760px) { .quotes { grid-template-columns: 1fr; } }

/* Footer badge, thank-you page --------------------------------------- */
.footer-badge { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; font-weight: 600; font-variation-settings: "wdth" 106; }
.footer-badge svg { width: 20px; height: 20px; }
.thanks { min-height: 70vh; display: flex; align-items: center; padding-top: calc(var(--header-h) + 80px); }
.thanks h1 { font-size: var(--step-1); max-width: 16ch; }
.thanks p { margin: 24px 0 36px; max-width: 34rem; }
