/* ==========================================================================
   Ozzi Homes – site styles
   Layout concept: split "panel + photograph" heroes taken from the Ozzi
   banner style, then calm white and stone bands with blueprint details.
   ========================================================================== */
:root {
  --navy: #0a1f3c;
  --navy-2: #0f2d57;
  --blue: #1663d6;
  --blue-deep: #0d4fb3;
  --sky: #27a8e8;
  --sky-soft: #e7f4fc;
  --cream: #f8f5ef;
  --stone: #ebe5da;
  --timber: #a97a4c;
  --ink: #0e1b2c;
  --muted: #546274;
  --line: #e2e6ec;
  --white: #ffffff;
  --success: #138a52;
  --error: #c4352b;

  --f-display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --f-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --f-body: "Manrope", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;

  --step--1: clamp(.82rem, .8rem + .1vw, .88rem);
  --step-0: clamp(1rem, .96rem + .2vw, 1.08rem);
  --step-1: clamp(1.2rem, 1.1rem + .4vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.3rem + .9vw, 2rem);
  --step-3: clamp(2rem, 1.6rem + 1.8vw, 3rem);
  --step-4: clamp(2.6rem, 1.9rem + 3.2vw, 4.6rem);
  --step-5: clamp(3rem, 2rem + 4.6vw, 6rem);

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 18px 50px -20px rgba(10, 31, 60, .28);
  --shadow-sm: 0 6px 20px -10px rgba(10, 31, 60, .25);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --container: 1240px;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --header-h: 84px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font: 400 var(--step-0)/1.7 var(--f-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--sky); color: var(--white); }
h1, h2, h3, h4 { margin: 0; line-height: 1.08; text-wrap: balance; color: var(--navy); }
p { margin: 0; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 200; background: var(--navy); color: var(--white); padding: 12px 18px; border-radius: 8px; text-decoration: none; font-weight: 700; transition: top .2s; }
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-left: var(--gutter); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.section { padding-block: clamp(72px, 9vw, 128px); position: relative; }
.section--tight { padding-block: clamp(56px, 6vw, 88px); }
.bg-cream { background: var(--cream); }
.bg-stone { background: var(--stone); }
.bg-navy { background: var(--navy); color: #dbe5f2; }
.bg-navy h2, .bg-navy h3 { color: var(--white); }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font: 700 .74rem/1 var(--f-body); letter-spacing: .22em; text-transform: uppercase; color: var(--blue);
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: currentColor; transform-origin: left; transition: transform .9s var(--ease) .1s; }
.bg-navy .eyebrow { color: var(--sky); }
.display {
  font-family: var(--f-display); font-weight: 800; font-stretch: 78%;
  text-transform: uppercase; letter-spacing: -.005em; line-height: .95;
}
.serif-accent { font-family: var(--f-serif); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: 0; }
.h2 { font-size: var(--step-4); }
.h3 { font-size: var(--step-2); font-family: var(--f-display); font-weight: 750; font-stretch: 85%; }
.lead { font-size: var(--step-1); color: var(--muted); line-height: 1.6; max-width: 62ch; }
.bg-navy .lead { color: #b8c7da; }
.section-head { display: grid; gap: 18px; max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head--split { max-width: none; grid-template-columns: 1fr 1fr; align-items: end; gap: 24px 64px; }
.prose { display: grid; gap: 18px; color: var(--muted); max-width: 66ch; }
.prose strong { color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--blue); --btn-fg: var(--white);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--btn-bg); color: var(--btn-fg); text-decoration: none;
  font: 700 .95rem/1 var(--f-body); letter-spacing: .01em; overflow: hidden; isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .3s;
  box-shadow: 0 10px 24px -12px rgba(22, 99, 214, .7);
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--navy); transform: translateX(-101%); transition: transform .5s var(--ease); }
.btn:hover::before, .btn:focus-visible::before { transform: translateX(0); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(10, 31, 60, .6); }
.btn:active { transform: translateY(0) scale(.98); }
.btn .arrow { width: 18px; height: 18px; transition: transform .45s var(--ease); flex: none; }
.btn:hover .arrow { transform: translateX(5px); }
.btn--sky { --btn-bg: var(--sky); }
.btn--sky::before { background: var(--blue-deep); }
.btn--light { --btn-bg: var(--white); --btn-fg: var(--navy); box-shadow: var(--shadow-sm); }
.btn--light::before { background: var(--sky); }
.btn--light:hover { color: var(--white); }
.btn--ghost { --btn-bg: transparent; --btn-fg: currentColor; box-shadow: inset 0 0 0 2px currentColor; }
.btn--ghost::before { background: currentColor; opacity: .12; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--blue); text-decoration: none; }
.link-arrow span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .45s var(--ease); padding-bottom: 2px; }
.link-arrow:hover span { background-size: 100% 2px; }
.link-arrow svg { width: 18px; height: 18px; transition: transform .45s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ---------- Top bar + header ---------- */
.topbar { background: var(--navy); color: #c5d3e6; font-size: .84rem; position: relative; z-index: 60; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar a { text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: color .2s; }
.topbar a:hover { color: var(--white); }
.topbar svg { width: 15px; height: 15px; color: var(--sky); }
.topbar__group { display: flex; gap: 22px; align-items: center; }

.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: transform .45s var(--ease), border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 10px 30px -22px rgba(10, 31, 60, .5); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); transition: height .35s var(--ease); }
.site-header.is-scrolled .container { height: 70px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.brand svg { height: 54px; width: auto; transition: height .35s var(--ease), transform .4s var(--ease); }
.site-header.is-scrolled .brand svg { height: 46px; }
.brand:hover svg { transform: translateY(-1px); }
.brand .roof-l, .brand .roof-r { transition: transform .5s var(--ease); transform-box: fill-box; transform-origin: center bottom; }
.brand:hover .roof-l { transform: translateY(-2px); }
.brand:hover .roof-r { transform: translateY(-3px); transition-delay: .06s; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav__item { position: relative; }
.nav__link {
  position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 999px;
  text-decoration: none; font-weight: 650; font-size: .95rem; color: var(--ink); background: none; border: 0; cursor: pointer;
  transition: color .25s, background-color .25s;
}
.nav__link::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 2px; background: var(--sky); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after, .nav__item.is-current > .nav__link::after { transform: scaleX(1); transform-origin: left; }
.nav__link:hover { color: var(--blue); }
.nav__link[aria-current="page"], .nav__item.is-current > .nav__link { color: var(--blue); }
.nav__chev { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.nav__item:hover .nav__chev, .nav__item.is-open .nav__chev { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 10px); left: -12px; min-width: 290px; padding: 10px; list-style: none; margin: 0;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .25s, transform .35s var(--ease), visibility .25s;
}
.dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.nav__item:hover .dropdown, .nav__item:focus-within .dropdown, .nav__item.is-open .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: grid; gap: 2px; padding: 12px 14px; border-radius: 10px; text-decoration: none; transition: background-color .2s, transform .3s var(--ease); }
.dropdown a:hover { background: var(--sky-soft); transform: translateX(4px); }
.dropdown strong { font-size: .95rem; color: var(--navy); }
.dropdown small { color: var(--muted); font-size: .8rem; line-height: 1.4; }
.nav__row { display: flex; align-items: center; }
.nav__toggle { width: 30px; height: 40px; margin-left: -10px; border: 0; background: none; color: var(--ink); cursor: pointer; display: grid; place-items: center; border-radius: 8px; }
.nav__toggle:hover { color: var(--blue); }
.nav__toggle svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.nav__item:hover .nav__toggle svg, .nav__item.is-open .nav__toggle svg { transform: rotate(180deg); }
.slide--light .slide__line--accent { color: var(--blue); }
.areas--light .area { background: var(--sky-soft); border-color: transparent; color: var(--navy); }
.areas--light .area svg { color: var(--blue); }
.areas--light .area:hover { background: var(--blue); color: var(--white); }
.areas--light .area--base { background: var(--navy); color: var(--white); }
.areas--light .area--base svg { color: var(--sky); }
.faq-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.faq-layout__aside { display: grid; gap: 22px; position: sticky; top: 110px; }
.notice { font-size: .82rem; color: var(--muted); }
.simple-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding-block: 100px; }
.simple-page .inner { display: grid; gap: 20px; justify-items: center; max-width: 620px; }
.simple-page svg.big { width: 110px; height: 110px; }
.nav__cta { margin-left: 10px; min-height: 46px; padding: 0 20px; }
.menu-toggle { display: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); cursor: pointer; position: relative; }
.menu-toggle span { position: absolute; left: 14px; right: 14px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .4s var(--ease), opacity .2s, top .3s var(--ease); }
.menu-toggle span:nth-child(1) { top: 17px; }
.menu-toggle span:nth-child(2) { top: 23px; }
.menu-toggle span:nth-child(3) { top: 29px; }
.menu-open .menu-toggle span:nth-child(1) { top: 23px; transform: rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { top: 23px; transform: rotate(-45deg); }

/* Scroll progress */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 70; pointer-events: none; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--sky), var(--blue)); transform-origin: left; transform: scaleX(0); }

/* ---------- Hero (home, rotating banners) ---------- */
.hero { position: relative; background: var(--navy); overflow: hidden; isolation: isolate; }
.hero__h1 {
  position: absolute; z-index: 5; top: clamp(26px, 4vw, 46px); left: var(--hero-pad);
  font: 700 .74rem/1.2 var(--f-body); letter-spacing: .22em; text-transform: uppercase; color: var(--hero-kicker, var(--sky));
  display: flex; align-items: center; gap: 12px; transition: color .6s;
}
.hero__h1::before { content: ""; width: 34px; height: 2px; background: currentColor; }
.hero { --hero-pad: max(20px, calc((100vw - var(--container)) / 2 + 20px)); --panel-w: min(max(min(60vw, 860px), calc((var(--hero-pad) + 648px) / .84)), 72vw); }
.hero__slides { position: relative; display: grid; min-height: clamp(560px, 78vh, 820px); }
.slide { grid-area: 1 / 1; position: relative; display: grid; grid-template-columns: minmax(0, 1fr); visibility: hidden; opacity: 0; transition: opacity .9s var(--ease), visibility 0s .9s; }
.slide.is-active { visibility: visible; opacity: 1; transition: opacity .9s var(--ease), visibility 0s 0s; z-index: 2; }
.slide__media { position: absolute; inset: 0 0 0 calc(var(--panel-w) * .62); overflow: hidden; }
.slide__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 8s linear; }
.slide.is-active .slide__media img { transform: scale(1); }
.slide__panel {
  position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; gap: 22px;
  width: var(--panel-w); padding: clamp(96px, 12vh, 130px) calc(var(--panel-w) * .16 + 28px) clamp(96px, 12vh, 120px) var(--hero-pad); min-width: 0;
  clip-path: polygon(0 0, 100% 0, 84% 100%, 0 100%);
  background: var(--panel-bg); color: var(--panel-fg);
}
.slide__panel::after { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 18%; background: linear-gradient(90deg, transparent, var(--panel-edge, transparent)); pointer-events: none; }
.slide__stripe { position: absolute; z-index: 3; top: 0; bottom: 0; left: 0; width: calc(var(--panel-w) + 16px); background: var(--sky); clip-path: polygon(calc(100% - 9px) 0, 100% 0, calc((100% - 16px) * .84 + 16px) 100%, calc((100% - 16px) * .84 + 7px) 100%); pointer-events: none; }
.slide.is-active .slide__stripe { animation: stripein 1.1s var(--ease) both; }
@keyframes stripein { from { clip-path: polygon(calc(100% - 9px) 0, 100% 0, 100% 0, calc(100% - 9px) 0); } }
.slide--light { --panel-bg: linear-gradient(120deg, #fbf9f5 0%, #f6f1e8 100%); --panel-fg: var(--navy); --kicker: var(--blue); }
.slide--navy { --panel-bg: linear-gradient(160deg, #0f2d57 0%, #08182f 100%); --panel-fg: var(--white); --kicker: var(--sky); }
.slide--blue { --panel-bg: linear-gradient(150deg, #1f7ae6 0%, #0c4bb0 100%); --panel-fg: var(--white); --kicker: #bfe6ff; }
.slide__title { display: grid; gap: .04em; font-size: clamp(2.3rem, 1.2rem + 2.6vw + 1.2vh, 4.9rem); max-width: 100%; overflow-wrap: break-word; }
.slide__line--serif { font-size: .94em; }
.slide__line { display: block; overflow: hidden; padding-bottom: .06em; }
.slide__line > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); }
.slide.is-active .slide__line > span { transform: translateY(0); }
.slide.is-active .slide__line:nth-child(2) > span { transition-delay: .12s; }
.slide__line--accent { color: var(--sky); }
.slide--blue .slide__line--accent { color: #bfe6ff; }
.slide__line--serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-stretch: 100%; text-transform: uppercase; letter-spacing: -.01em; }
.slide__text { font-size: var(--step-1); max-width: 34ch; opacity: .92; }
.slide__text, .slide__cta { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease) .35s, transform .8s var(--ease) .35s; }
.slide.is-active .slide__text { opacity: .92; transform: none; }
.slide.is-active .slide__cta { opacity: 1; transform: none; transition-delay: .48s; }
.slide--light .btn { --btn-bg: var(--blue); }
.slide--navy .btn, .slide--blue .btn { --btn-bg: var(--sky); }
.slide--blue .btn::before { background: var(--navy); }

.hero__controls {
  position: absolute; z-index: 6; left: var(--hero-pad); right: var(--hero-pad); bottom: 28px;
  display: flex; align-items: center; gap: 18px; pointer-events: none;
}
.hero__controls > * { pointer-events: auto; }
.hero__dots { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.hero__dot { width: 46px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.hero__dot::before, .hero__dot i { content: ""; position: absolute; left: 0; right: 0; top: 13px; height: 3px; border-radius: 3px; background: color-mix(in srgb, var(--hero-ctrl, #fff) 30%, transparent); }
.hero__dot i { background: var(--hero-ctrl-strong, var(--sky)); transform: scaleX(0); transform-origin: left; }
.hero__dot.is-active i { animation: dotfill var(--hero-interval, 7000ms) linear forwards; }
.hero__dot.is-done i { transform: scaleX(1); }
.hero.is-paused .hero__dot.is-active i { animation-play-state: paused; }
@keyframes dotfill { to { transform: scaleX(1); } }
.hero__btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--hero-ctrl, #fff) 40%, transparent);
  background: transparent; color: var(--hero-ctrl, #fff); display: grid; place-items: center; cursor: pointer;
  transition: background-color .3s, color .3s, transform .3s var(--ease), border-color .3s;
}
.hero__btn:hover { background: var(--sky); border-color: var(--sky); color: var(--white); transform: scale(1.06); }
.hero__btn svg { width: 18px; height: 18px; }
.hero__count { font: 700 .82rem/1 var(--f-body); letter-spacing: .14em; color: var(--hero-ctrl, #fff); font-variant-numeric: tabular-nums; min-width: 60px; }
.hero[data-theme="light"] { --hero-ctrl: var(--navy); --hero-ctrl-strong: var(--blue); --hero-kicker: var(--blue); }
.hero[data-theme="navy"] { --hero-ctrl: #fff; --hero-kicker: var(--sky); }
.hero[data-theme="blue"] { --hero-ctrl: #fff; --hero-ctrl-strong: #fff; --hero-kicker: #d6efff; }
.hero__scroll { position: absolute; z-index: 6; right: max(20px, env(safe-area-inset-right, 0px)); bottom: 30px; width: 30px; height: 48px; border: 2px solid rgba(255, 255, 255, .7); border-radius: 20px; display: grid; justify-items: center; padding-top: 8px; }
.hero__scroll span { width: 4px; height: 8px; border-radius: 4px; background: var(--white); animation: scrollcue 1.8s var(--ease) infinite; }
@keyframes scrollcue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; background: var(--navy); color: var(--white); overflow: hidden; isolation: isolate; }
.page-hero__media { position: absolute; inset: 0 0 0 calc(var(--panel-w) * .62); z-index: -2; }
.page-hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.1); transition: opacity 1.4s var(--ease), transform 9s linear; }
.page-hero__media img.is-active { opacity: 1; transform: scale(1); }
.page-hero__panel { position: relative; width: var(--panel-w); min-width: 0; padding: clamp(70px, 9vw, 130px) calc(var(--panel-w) * .14 + 28px) clamp(80px, 9vw, 130px) var(--hero-pad); background: linear-gradient(160deg, #0f2d57 0%, #08182f 100%); clip-path: polygon(0 0, 100% 0, 86% 100%, 0 100%); display: grid; gap: 22px; }
.page-hero { --hero-pad: max(20px, calc((100vw - var(--container)) / 2 + 20px)); --panel-w: min(max(min(64vw, 900px), calc((var(--hero-pad) + 668px) / .86)), 76vw); }
.page-hero__stripe { position: absolute; top: 0; bottom: 0; left: 0; width: calc(var(--panel-w) + 16px); background: var(--sky); clip-path: polygon(calc(100% - 9px) 0, 100% 0, calc((100% - 16px) * .86 + 16px) 100%, calc((100% - 16px) * .86 + 7px) 100%); z-index: 1; pointer-events: none; animation: stripein 1.1s var(--ease) both; }
.page-hero h1 { color: var(--white); font-size: var(--step-5); }
.page-hero h1 .serif-accent { color: var(--sky); }
.page-hero .lead { color: #c3d2e6; }
.page-hero .eyebrow { color: var(--sky); }
.breadcrumbs { font-size: .82rem; color: #9fb3cc; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 8px; opacity: .6; }
.breadcrumbs a { text-decoration: none; transition: color .2s; }
.breadcrumbs a:hover { color: var(--white); }
.breadcrumbs [aria-current] { color: var(--white); }
.hero-facts { display: grid; grid-template-columns: 1fr .8fr 1.4fr; gap: 18px; margin-top: 10px; }
.hero-fact { border-left: 2px solid rgba(39, 168, 232, .7); padding-left: 16px; display: grid; gap: 4px; min-width: 0; }
.hero-fact small { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--sky); font-weight: 700; }
.hero-fact a, .hero-fact span { color: var(--white); text-decoration: none; font-weight: 650; overflow-wrap: anywhere; }
.hero-fact a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Marquee ---------- */
.marquee { background: var(--blue); color: var(--white); overflow: hidden; padding-block: 18px; position: relative; }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; gap: 34px; padding-right: 34px; }
.marquee__item { font-family: var(--f-display); font-weight: 750; font-stretch: 80%; font-size: clamp(1.2rem, 1rem + 1vw, 1.8rem); text-transform: uppercase; white-space: nowrap; }
.marquee__item.serif-accent { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2.1rem); text-transform: none; }
.marquee__star { width: 18px; height: 18px; color: var(--sky); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Split intro ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.split--reverse > :first-child { order: 2; }
.stack-media { position: relative; padding: 0 0 18% 14%; }
.stack-media__main { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3.3; }
.stack-media__main img, .stack-media__sub img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.stack-media:hover .stack-media__main img { transform: scale(1.04); }
.stack-media__sub { position: absolute; left: 0; bottom: 0; width: 52%; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; border: 8px solid var(--white); box-shadow: var(--shadow); }
.stack-media__badge {
  position: absolute; right: -10px; bottom: 10%; z-index: 2; background: var(--navy); color: var(--white); border-radius: var(--radius);
  padding: 18px 22px; display: grid; gap: 4px; box-shadow: var(--shadow); max-width: 230px;
}
.stack-media__badge strong { font-family: var(--f-display); font-stretch: 80%; font-weight: 800; font-size: 1.25rem; text-transform: uppercase; line-height: 1.05; }
.stack-media__badge span { font-size: .85rem; color: #b9c9dd; line-height: 1.4; }
.ticks { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); font-weight: 600; }
.ticks svg { width: 22px; height: 22px; flex: none; color: var(--sky); margin-top: 2px; }
.ticks--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }

/* ---------- Service cards ---------- */
.services-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.service-card {
  position: relative; display: flex; flex-direction: column; min-height: 460px; border-radius: var(--radius); overflow: hidden;
  text-decoration: none; color: var(--white); isolation: isolate; box-shadow: var(--shadow-sm);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.service-card:hover { box-shadow: var(--shadow); }
.service-card__img { position: absolute; inset: 0; z-index: -2; }
.service-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.service-card:hover .service-card__img img { transform: scale(1.08); }
.service-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 24, 47, .05) 20%, rgba(8, 24, 47, .88) 78%); transition: background .5s; }
.service-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(39, 168, 232, .28), transparent 45%); opacity: 0; transition: opacity .4s; }
.service-card:hover::after { opacity: 1; }
.service-card__body { margin-top: auto; padding: 26px; display: grid; gap: 10px; }
.service-card__num { font: 700 .72rem/1 var(--f-body); letter-spacing: .2em; color: var(--sky); }
.service-card h3 { color: var(--white); font-family: var(--f-display); font-stretch: 80%; font-weight: 800; text-transform: uppercase; font-size: clamp(1.4rem, 1.1rem + .9vw, 1.9rem); }
.service-card p { font-size: .94rem; color: #d3deec; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .6s var(--ease), opacity .4s; }
.service-card:hover p, .service-card:focus-visible p { max-height: 160px; opacity: 1; }
.service-card__more { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9rem; }
.service-card__more svg { width: 18px; height: 18px; transition: transform .45s var(--ease); }
.service-card:hover .service-card__more svg { transform: translateX(6px); }

/* Partner services */
.partners { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.partner {
  display: flex; gap: 20px; align-items: center; padding: 24px 26px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--white); text-decoration: none; transition: border-color .3s, transform .4s var(--ease), box-shadow .4s var(--ease);
}
.partner:hover { border-color: var(--sky); transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.partner__icon { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--sky-soft); color: var(--blue); flex: none; transition: background-color .3s, color .3s, transform .5s var(--ease); }
.partner:hover .partner__icon { background: var(--blue); color: var(--white); transform: rotate(-8deg) scale(1.05); }
.partner__icon svg { width: 28px; height: 28px; }
.partner h3 { font-size: 1.12rem; font-family: var(--f-body); font-weight: 800; }
.partner p { color: var(--muted); font-size: .92rem; line-height: 1.5; margin-top: 4px; }
.partner__ext { margin-left: auto; width: 22px; height: 22px; color: var(--blue); flex: none; transition: transform .4s var(--ease); }
.partner:hover .partner__ext { transform: translate(3px, -3px); }

/* ---------- Feature grid ---------- */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feature { background: var(--white); padding: clamp(26px, 3vw, 40px); display: grid; gap: 12px; align-content: start; position: relative; transition: background-color .4s; }
.feature::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--sky), var(--blue)); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.feature:hover::before { transform: scaleX(1); }
.feature:hover { background: #fbfdff; }
.feature__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--sky-soft); color: var(--blue); transition: transform .6s var(--ease), background-color .3s, color .3s; }
.feature:hover .feature__icon { transform: translateY(-4px) rotate(-6deg); background: var(--blue); color: var(--white); }
.feature__icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.15rem; font-family: var(--f-body); font-weight: 800; }
.feature p { color: var(--muted); font-size: .95rem; line-height: 1.6; }

/* ---------- Process ---------- */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; position: relative; counter-reset: step; }
.process::before { content: ""; position: absolute; left: 30px; right: 30px; top: 30px; height: 2px; background: rgba(255, 255, 255, .14); }
.process::after { content: ""; position: absolute; left: 30px; right: 30px; top: 30px; height: 2px; background: linear-gradient(90deg, var(--sky), var(--blue)); transform: scaleX(var(--progress, 0)); transform-origin: left; transition: transform 1.6s var(--ease); }
.process.is-visible { --progress: 1; }
.step { position: relative; display: grid; gap: 12px; align-content: start; counter-increment: step; }
.step__num {
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; position: relative; z-index: 1;
  background: var(--navy); border: 2px solid rgba(39, 168, 232, .6); color: var(--white);
  font: 800 1.05rem/1 var(--f-display); font-stretch: 80%; transition: background-color .4s, transform .5s var(--ease), border-color .4s;
}
.step__num::before { content: counter(step, decimal-leading-zero); }
.step:hover .step__num { background: var(--sky); border-color: var(--sky); transform: scale(1.08); }
.step h3 { font-family: var(--f-body); font-weight: 800; font-size: 1.1rem; color: var(--white); }
.step p { color: #a9bbd1; font-size: .93rem; line-height: 1.6; }
.bg-cream .step__num, .bg-white .step__num { background: var(--white); color: var(--navy); }
.bg-cream .process::before { background: var(--stone); }
.bg-cream .step h3 { color: var(--navy); }
.bg-cream .step p { color: var(--muted); }

/* ---------- Gallery / masonry ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.filter {
  min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); color: var(--ink);
  font-weight: 700; font-size: .92rem; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  transition: background-color .3s, color .3s, border-color .3s, transform .3s var(--ease);
}
.filter:hover { border-color: var(--sky); transform: translateY(-2px); }
.filter[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.filter small { font-size: .74rem; opacity: .7; font-variant-numeric: tabular-nums; }
.masonry { columns: 3 300px; column-gap: 16px; }
.tile {
  break-inside: avoid; margin: 0 0 16px; position: relative; display: block; width: 100%; border-radius: var(--radius-sm); overflow: hidden; cursor: zoom-in;
  border: 0; padding: 0; background: var(--stone); transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.tile img { width: 100%; height: auto; transition: transform 1s var(--ease), filter .6s; }
.tile--plan { background: var(--white); border: 1px solid var(--line); }
.tile--plan img { padding: 10px; }
.tile:hover img { transform: scale(1.05); }
.tile__cap {
  position: absolute; inset: auto 0 0 0; padding: 40px 18px 16px; color: var(--white); text-align: left; font-size: .88rem; font-weight: 650; line-height: 1.35;
  background: linear-gradient(transparent, rgba(8, 24, 47, .85)); transform: translateY(100%); transition: transform .5s var(--ease);
}
.tile:hover .tile__cap, .tile:focus-visible .tile__cap { transform: translateY(0); }
.tile__zoom { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--navy); display: grid; place-items: center; opacity: 0; transform: scale(.6); transition: opacity .3s, transform .45s var(--ease); }
.tile:hover .tile__zoom, .tile:focus-visible .tile__zoom { opacity: 1; transform: scale(1); }
.tile__zoom svg { width: 18px; height: 18px; }
.tile.is-filtered { display: none; }
.tile.is-entering { animation: tilein .6s var(--ease) both; }
@keyframes tilein { from { opacity: 0; transform: translateY(18px) scale(.97); } }

.preview-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 120px; gap: 14px; }
.preview-grid .tile { margin: 0; height: 100%; }
.preview-grid .tile img { width: 100%; height: 100%; object-fit: cover; }
.preview-grid .tile:nth-child(1) { grid-column: span 7; grid-row: span 4; }
.preview-grid .tile:nth-child(2) { grid-column: span 5; grid-row: span 2; }
.preview-grid .tile:nth-child(3) { grid-column: span 5; grid-row: span 2; }
.preview-grid .tile:nth-child(4) { grid-column: span 4; grid-row: span 3; }
.preview-grid .tile:nth-child(5) { grid-column: span 4; grid-row: span 3; }
.preview-grid .tile:nth-child(6) { grid-column: span 4; grid-row: span 3; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(6, 16, 31, .94); display: grid; grid-template-rows: 1fr auto; padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s .35s; }
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity .35s, visibility 0s; }
.lightbox__stage { display: grid; place-items: center; min-height: 0; position: relative; }
.lightbox__img { max-width: min(1400px, 100%); max-height: calc(100vh - 140px); width: auto; height: auto; border-radius: 6px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); transform: scale(.94); opacity: 0; transition: transform .5s var(--ease), opacity .4s; }
.lightbox.is-open .lightbox__img.is-loaded { transform: scale(1); opacity: 1; }
.lightbox__img.is-plan { background: var(--white); padding: 12px; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; color: #d6e2f0; padding-top: 14px; }
.lightbox__cap { font-size: .95rem; max-width: 70ch; }
.lightbox__count { font-variant-numeric: tabular-nums; font-weight: 700; letter-spacing: .1em; font-size: .85rem; white-space: nowrap; }
.lb-btn { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .1); color: var(--white); display: grid; place-items: center; cursor: pointer; transition: background-color .3s, transform .3s var(--ease); }
.lb-btn:hover { background: var(--sky); transform: scale(1.08); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-prev { left: 4px; top: 50%; translate: 0 -50%; }
.lb-next { right: 4px; top: 50%; translate: 0 -50%; }
.lb-close { right: 4px; top: 4px; }

/* ---------- Testimonials ---------- */
.reviews { position: relative; }
.reviews__viewport { overflow: hidden; }
.reviews__track { display: flex; gap: 22px; transition: transform .8s var(--ease); touch-action: pan-y; }
.review {
  flex: 0 0 calc((100% - 44px) / 3); background: var(--white); border-radius: var(--radius); padding: 34px 30px; display: grid; gap: 18px; align-content: start;
  border: 1px solid var(--line); position: relative; transition: transform .5s var(--ease), box-shadow .5s var(--ease); margin: 0;
}
.review:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.review__quote { position: absolute; right: 24px; top: 18px; width: 54px; height: 54px; color: var(--sky-soft); }
.stars { display: flex; gap: 3px; color: #f2b632; }
.stars svg { width: 18px; height: 18px; }
.review blockquote { margin: 0; font-size: 1.04rem; line-height: 1.65; color: var(--ink); position: relative; }
.review figcaption { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--white); font-weight: 800; font-size: .95rem; flex: none; }
.review figcaption strong { display: block; color: var(--navy); }
.review figcaption span { font-size: .84rem; color: var(--muted); }
.reviews__nav { display: flex; gap: 10px; }
.round-btn { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--white); color: var(--navy); display: grid; place-items: center; cursor: pointer; transition: background-color .3s, color .3s, border-color .3s, transform .3s var(--ease); }
.round-btn:hover:not(:disabled) { background: var(--navy); color: var(--white); border-color: var(--navy); transform: scale(1.06); }
.round-btn:disabled { opacity: .35; cursor: default; }
.round-btn svg { width: 20px; height: 20px; }

/* ---------- Areas ---------- */
.areas { display: flex; flex-wrap: wrap; gap: 10px; }
.area { padding: 10px 18px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); color: var(--white); font-weight: 650; font-size: .94rem; display: inline-flex; align-items: center; gap: 8px; transition: background-color .3s, transform .35s var(--ease), border-color .3s; }
.area:hover { background: var(--sky); border-color: var(--sky); transform: translateY(-3px); }
.area svg { width: 15px; height: 15px; color: var(--sky); transition: color .3s; }
.area:hover svg { color: var(--white); }
.area--base { background: var(--sky); border-color: var(--sky); }
.area--base svg { color: var(--white); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq__item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); overflow: hidden; transition: border-color .3s, box-shadow .3s; }
.faq__item[open] { border-color: var(--sky); box-shadow: var(--shadow-sm); }
.faq__item summary { list-style: none; cursor: pointer; padding: 22px 26px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-weight: 750; color: var(--navy); font-size: 1.04rem; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon { width: 34px; height: 34px; border-radius: 50%; background: var(--sky-soft); color: var(--blue); display: grid; place-items: center; flex: none; transition: transform .45s var(--ease), background-color .3s, color .3s; }
.faq__icon svg { width: 16px; height: 16px; }
.faq__item[open] .faq__icon { transform: rotate(135deg); background: var(--blue); color: var(--white); }
.faq__answer { padding: 0 26px 24px; color: var(--muted); display: grid; gap: 12px; }
.faq__item.is-animating .faq__answer { overflow: hidden; }

/* ---------- Contact / form ---------- */
.contact-band { background: var(--navy); color: #cfdbea; position: relative; overflow: hidden; }
.contact-band::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(39, 168, 232, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(39, 168, 232, .07) 1px, transparent 1px); background-size: 46px 46px; mask-image: radial-gradient(ellipse at 20% 30%, #000 20%, transparent 70%); pointer-events: none; }
.contact-band .container { position: relative; }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.contact-band h2 { color: var(--white); }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.contact-list a, .contact-list div { display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--white); padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .1); transition: background-color .3s, border-color .3s, transform .4s var(--ease); }
.contact-list a:hover { background: rgba(39, 168, 232, .12); border-color: rgba(39, 168, 232, .6); transform: translateX(6px); }
.contact-list .ci { width: 44px; height: 44px; border-radius: 50%; background: rgba(39, 168, 232, .16); color: var(--sky); display: grid; place-items: center; flex: none; }
.contact-list .ci svg { width: 20px; height: 20px; }
.contact-list small { display: block; color: #93a8c2; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.contact-list strong { font-weight: 700; overflow-wrap: anywhere; }

.form-card { background: var(--white); color: var(--ink); border-radius: calc(var(--radius) + 6px); padding: clamp(24px, 3.4vw, 44px); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .55); position: relative; }
.form-card h3 { font-family: var(--f-display); font-stretch: 80%; font-weight: 800; text-transform: uppercase; font-size: var(--step-2); margin-bottom: 6px; }
.form-card > p { color: var(--muted); margin-bottom: 24px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { position: relative; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field input, .field select, .field textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 12px; background: #fbfcfd; padding: 24px 16px 9px; font-size: 1rem; color: var(--ink);
  transition: border-color .25s, box-shadow .25s, background-color .25s; appearance: none; -webkit-appearance: none; min-height: 60px;
}
.field textarea { min-height: 140px; resize: vertical; padding-top: 28px; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231663d6' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 18px; padding-right: 44px; cursor: pointer; }
.field label { position: absolute; left: 17px; top: 19px; font-size: 1rem; color: var(--muted); pointer-events: none; transform-origin: left top; transition: transform .3s var(--ease), color .25s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: var(--white); box-shadow: 0 0 0 4px rgba(22, 99, 214, .12); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field select + label { transform: translateY(-11px) scale(.76); color: var(--blue); font-weight: 700; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); background: #fff8f7; }
.field.has-error label { color: var(--error); }
.field__error { display: block; color: var(--error); font-size: .82rem; font-weight: 650; margin-top: 6px; min-height: 0; }
.field.shake { animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.field--hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-top: 8px; }
.form-foot small { color: var(--muted); font-size: .82rem; max-width: 40ch; }
.btn .spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: var(--white); animation: spin .8s linear infinite; display: none; }
.btn.is-loading .spinner { display: block; }
.btn.is-loading .arrow { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-status { margin-top: 18px; padding: 14px 16px; border-radius: 12px; font-weight: 650; font-size: .95rem; display: none; }
.form-status.is-error { display: block; background: #fdeeec; color: #8f241c; }
.form-status.is-info { display: block; background: var(--sky-soft); color: var(--navy); }
.form-status a { font-weight: 800; }
.form-success { position: absolute; inset: 0; border-radius: inherit; background: var(--white); display: grid; place-items: center; text-align: center; padding: 32px; opacity: 0; visibility: hidden; transition: opacity .5s, visibility 0s .5s; }
.form-card.is-sent .form-success { opacity: 1; visibility: visible; transition: opacity .5s, visibility 0s; }
.form-success__inner { display: grid; gap: 14px; justify-items: center; max-width: 380px; }
.form-success svg { width: 86px; height: 86px; }
.form-success circle { stroke-dasharray: 160; stroke-dashoffset: 160; }
.form-success path { stroke-dasharray: 40; stroke-dashoffset: 40; }
.form-card.is-sent .form-success circle { animation: draw .7s var(--ease) .15s forwards; }
.form-card.is-sent .form-success path { animation: draw .5s var(--ease) .7s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.form-success h3 { margin: 0; }
.form-success p { color: var(--muted); }

.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--stone); min-height: 360px; position: relative; }
.map-wrap iframe { display: block; width: 100%; height: 420px; border: 0; filter: saturate(.85); }
.map-fallback { display: grid; place-items: center; gap: 12px; text-align: center; padding: 40px; min-height: 360px; background: linear-gradient(135deg, var(--sky-soft), var(--cream)); }

/* ---------- Content cards (about / services) ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cards-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 34px); display: grid; gap: 12px; align-content: start; transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card h3 { font-family: var(--f-body); font-weight: 800; font-size: 1.15rem; }
.card p { color: var(--muted); font-size: .96rem; }
.card .feature__icon { margin-bottom: 4px; }
.card:hover .feature__icon { transform: translateY(-4px) rotate(-6deg); background: var(--blue); color: var(--white); }

.service-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 72px); align-items: center; padding-block: clamp(30px, 4vw, 56px); border-top: 1px solid var(--line); }
.service-row:first-child { border-top: 0; padding-top: 0; }
.service-row:nth-child(even) .service-row__media { order: 2; }
.service-row__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow-sm); position: relative; }
.service-row__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.service-row:hover .service-row__media img { transform: scale(1.05); }
.service-row__media .tag { position: absolute; left: 18px; top: 18px; background: var(--white); color: var(--navy); border-radius: 999px; padding: 8px 14px; font-weight: 800; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; }
.service-row__body { display: grid; gap: 18px; }
.service-row__body h3 { font-family: var(--f-display); font-stretch: 80%; font-weight: 800; text-transform: uppercase; font-size: var(--step-3); }

/* Purpose / vision band */
.statement { font-family: var(--f-display); font-weight: 800; font-stretch: 78%; text-transform: uppercase; font-size: var(--step-4); line-height: 1; color: var(--navy); max-width: 22ch; }
.statement .serif-accent { color: var(--blue); }
.bg-navy .statement { color: var(--white); }
.bg-navy .statement .serif-accent { color: var(--sky); }
.parallax-band { position: relative; min-height: 520px; display: grid; align-items: center; overflow: hidden; color: var(--white); isolation: isolate; }
.parallax-band__img { position: absolute; inset: -14% 0; z-index: -2; will-change: transform; }
.parallax-band__img img { width: 100%; height: 100%; object-fit: cover; }
.parallax-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 24, 47, .92) 0%, rgba(8, 24, 47, .7) 45%, rgba(8, 24, 47, .15) 100%); }
.parallax-band h2, .parallax-band .statement { color: var(--white); }
.parallax-band .statement .serif-accent { color: var(--sky); }
.contact-band .lead { color: #b8c7da; }
.btn > svg:not(.arrow) { width: 18px; height: 18px; flex: none; }
.parallax-band .lead { color: #d0dcea; }

/* CTA strip */
.cta-strip { background: linear-gradient(120deg, var(--blue) 0%, var(--blue-deep) 100%); color: var(--white); border-radius: calc(var(--radius) + 6px); padding: clamp(32px, 5vw, 64px); display: grid; grid-template-columns: 1.4fr auto; gap: 30px; align-items: center; position: relative; overflow: hidden; isolation: isolate; }
.cta-strip::after { content: ""; position: absolute; right: -60px; bottom: -110px; width: 420px; height: 260px; z-index: -1; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 120' fill='none' stroke='%23ffffff' stroke-opacity='.14' stroke-width='14' stroke-linejoin='miter'%3E%3Cpath d='M6 90 66 40l46 34'/%3E%3Cpath d='M92 72l64-52 78 64'/%3E%3C/svg%3E") no-repeat center / contain; animation: float 9s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-14px); } }
.cta-strip h2 { color: var(--white); font-size: var(--step-3); }
.cta-strip p { color: #d7e7fb; margin-top: 10px; }

/* Footer */
.site-footer { background: #071730; color: #a6b7cc; padding-top: clamp(60px, 7vw, 96px); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 54px; }
.site-footer h2 { color: var(--white); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; font-family: var(--f-body); font-weight: 800; margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--white); }
.site-footer .foot-links a { display: inline-flex; align-items: center; gap: 0; }
.site-footer .foot-links a::before { content: ""; width: 0; height: 2px; background: var(--sky); transition: width .35s var(--ease), margin .35s var(--ease); }
.site-footer .foot-links a:hover::before { width: 14px; margin-right: 8px; }
.footer-brand svg { height: 62px; width: auto; margin-bottom: 18px; }
.footer-brand p { max-width: 34ch; line-height: 1.6; }
.footer-credit a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .35); }
.footer-credit a:hover { color: var(--sky); text-decoration-color: currentColor; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding-block: 22px calc(22px + env(safe-area-inset-bottom, 0px)); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; font-size: .84rem; }

/* Back to top */
.to-top { position: fixed; right: max(18px, env(safe-area-inset-right, 0px)); bottom: max(18px, env(safe-area-inset-bottom, 0px)); z-index: 40; width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--navy); color: var(--white); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); opacity: 0; transform: translateY(20px) scale(.8); pointer-events: none; transition: opacity .35s, transform .45s var(--ease), background-color .3s; }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--sky); transform: translateY(-3px); }
.to-top svg { width: 20px; height: 20px; position: relative; z-index: 1; }
.to-top circle { fill: none; stroke: var(--sky); stroke-width: 3; }
.to-top .ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }

/* Mobile call bar */
.callbar { display: none; }

/* ---------- Reveal animations ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js [data-reveal="left"] { transform: translateX(-40px); }
.js [data-reveal="right"] { transform: translateX(40px); }
.js [data-reveal="zoom"] { transform: scale(.94); }
.js [data-reveal="clip"] { transform: none; opacity: 1; clip-path: inset(0 100% 0 0); transition: clip-path 1.3s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }
.js .eyebrow[data-reveal]::before { transform: scaleX(0); }
.js .eyebrow[data-reveal].is-visible::before { transform: scaleX(1); }
.split-words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .05em; }
.split-words .w > span { display: inline-block; transform: translateY(110%); transition: transform .9s var(--ease); transition-delay: calc(var(--wi) * 45ms); }
.split-words.is-visible .w > span { transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-card { min-height: 400px; }
  .service-card p { max-height: 160px; opacity: 1; }
  .process { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
  .process::before, .process::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .review { flex-basis: calc((100% - 22px) / 2); }
}
@media (max-width: 960px) {
  :root { --header-h: 72px; }
  .menu-toggle { display: block; }
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--white); }
  .nav { position: fixed; inset: var(--nav-top, 112px) 0 0 0; border-top: 1px solid var(--line); background: var(--white); flex-direction: column; align-items: stretch; padding: 18px max(20px, env(safe-area-inset-right, 0px)) calc(110px + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px)); overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .35s, transform .45s var(--ease), visibility 0s .35s; }
  .menu-open .nav { opacity: 1; visibility: visible; transform: none; transition: opacity .35s, transform .45s var(--ease), visibility 0s; }
  .menu-open { overflow: hidden; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__item { border-bottom: 1px solid var(--line); }
  .nav__link { width: 100%; justify-content: space-between; padding: 18px 4px; font-size: 1.15rem; border-radius: 0; }
  .nav__link::after { display: none; }
  .menu-open .nav__item { animation: navin .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 50ms + 80ms); }
  @keyframes navin { from { opacity: 0; transform: translateX(-16px); } }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; min-width: 0; padding: 0 0 12px; display: none; }
  .nav__item.is-open .dropdown { display: block; }
  .nav__item:hover .dropdown { display: none; }
  .nav__item.is-open:hover .dropdown { display: block; }
  .nav__cta { margin: 22px 0 0; width: 100%; min-height: 56px; }
  .split, .contact-grid, .section-head--split, .faq-layout { grid-template-columns: 1fr; }
  .faq-layout__aside { position: static; }
  .nav__row { justify-content: space-between; }
  .nav__toggle { width: 48px; height: 48px; margin: 0; }
  .split--reverse > :first-child { order: 0; }
  .features, .cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-row { grid-template-columns: 1fr; }
  .service-row:nth-child(even) .service-row__media { order: 0; }
  .cta-strip { grid-template-columns: 1fr; }

  /* Hero: photo on top, panel below */
  .hero__slides { min-height: 0; }
  .slide { grid-template-rows: auto auto; }
  .slide__media { position: relative; inset: auto; height: clamp(260px, 52vw, 440px); }
  .slide__panel { width: 100%; clip-path: polygon(0 28px, 100% 0, 100% 100%, 0 100%); margin-top: -28px; padding: 54px max(20px, env(safe-area-inset-right, 0px)) 96px max(20px, env(safe-area-inset-left, 0px)); gap: 16px; }
  .slide__panel::after { display: none; }
  .slide__stripe { display: none; }
  .hero__h1 { top: auto; bottom: auto; position: absolute; top: 18px; left: 20px; padding: 8px 14px; border-radius: 999px; background: rgba(8, 24, 47, .72); color: var(--white); backdrop-filter: blur(6px); font-size: .66rem; }
  .hero__h1::before { display: none; }
  .hero__controls { bottom: 26px; left: 20px; right: 20px; }
  .hero__scroll { display: none; }
  .hero__prev, .hero__next, .hero__count { display: none; }
  .hero__dot { width: 34px; }
  .page-hero__media { position: relative; inset: auto; height: clamp(220px, 46vw, 380px); }
  .page-hero__panel { width: 100%; clip-path: polygon(0 26px, 100% 0, 100% 100%, 0 100%); margin-top: -26px; padding: 52px max(20px, env(safe-area-inset-right, 0px)) 56px max(20px, env(safe-area-inset-left, 0px)); }
  .page-hero__stripe { display: none; }
  .page-hero { display: flex; flex-direction: column; }
}
@media (max-width: 680px) {
  .topbar__group--secondary { display: none; }
  .topbar .container { justify-content: center; }
  .services-grid, .features, .cards-3, .cards-2, .partners, .form-grid, .ticks--2, .footer-grid, .hero-facts { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .step { grid-template-columns: 60px 1fr; column-gap: 18px; }
  .step__num { grid-row: span 2; }
  .review { flex-basis: 100%; }
  .preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; }
  .preview-grid .tile:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .preview-grid .tile:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .stack-media { padding: 0 0 22% 8%; }
  .stack-media__badge { right: 0; max-width: 200px; padding: 14px 16px; }
  .masonry { columns: 2 140px; column-gap: 10px; }
  .tile { margin-bottom: 10px; }
  .tile__cap { display: none; }
  .partner { padding: 20px; }
  .callbar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: var(--white); border-top: 1px solid var(--line); padding: 10px max(12px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)); gap: 10px; transform: translateY(110%); transition: transform .45s var(--ease); }
  .callbar.is-visible { transform: none; }
  .callbar .btn { min-height: 48px; padding: 0 14px; font-size: .9rem; }
  .to-top { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
  body { padding-bottom: 0; }
  .site-footer { padding-bottom: 70px; }
  .faq__item summary { padding: 18px; }
  .faq__answer { padding: 0 18px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; clip-path: none; }
  .marquee__track { animation: none; }
  .split-words .w > span { transform: none; }
  .slide__media img, .page-hero__media img { transform: none !important; }
}
