/* ==========================================================================
   Haynes Window Cleaning, landing page
   Design language adapted from the maidix reference (Webflow template):
   white body, rounded hero card inset in a white frame, navy + blue palette.
   ========================================================================== */

:root {
  --dark: #002147;
  --navy: #001f4e;
  --navy-deep: #00142e;
  --primary: #004d96;
  --primary-light: #006cd3;
  --primary-bright: #0061d6;
  --primary-soft: #8ec2ff;
  --light-blue: #e5edf5;
  --light-gray: #fafafc;
  --stroke: #e5e0e6;
  --paragraph: #58575c;
  --white: #ffffff;

  --font-heading: "Poppins", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-script: "Yellowtail", cursive;

  --container: 1200px;
  --radius-l: 16px;
  --radius-xl: 100px;
  --section-spacing: 90px;

  --shadow-card: 0 24px 48px -28px rgba(0, 33, 71, 0.35);
  --shadow-button: 0 12px 26px -14px rgba(0, 77, 150, 0.85);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3,
h4,
p,
ul {
  margin: 0;
}

ul {
  padding: 0;
}

a {
  color: inherit;
}

::selection {
  background: var(--primary-light);
  color: var(--white);
}

:focus-visible {
  outline: 3px solid rgba(0, 108, 211, 0.6);
  outline-offset: 2px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 2000;
  padding: 12px 20px;
  border-radius: 0 0 12px 12px;
  background: var(--dark);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

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

/* ---------- Typography helpers ---------- */
h1,
h2,
h3 {
  font-family: var(--font-heading);
  color: var(--dark);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.8px;
}

h2 {
  font-size: clamp(30px, 3.4vw, 44px);
}

h3 {
  font-size: 21px;
  letter-spacing: -0.4px;
}

.script {
  font-family: var(--font-script);
  font-weight: 400;
  letter-spacing: 0;
}

.label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-xl);
  background: var(--light-blue);
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  line-height: 1;
}

.label svg {
  width: 16px;
  height: 16px;
  flex: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 53px;
  padding: 7px 7px 7px 28px;
  border: none;
  border-radius: var(--radius-xl);
  font-family: var(--font-heading);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease,
    border-color 0.25s ease;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn-primary {
  background: linear-gradient(180deg, var(--primary-light), var(--primary));
  color: var(--white);
  box-shadow: var(--shadow-button);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -14px rgba(0, 77, 150, 0.95);
}

.btn-circle {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.18);
  transition: background-color 0.25s ease;
}

.btn-primary:hover .btn-circle {
  background: rgba(255, 255, 255, 0.3);
}

.btn-ghost {
  padding: 0 26px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--white);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

.btn-ghost--dark {
  background: var(--light-gray);
  border: 1px solid var(--stroke);
  color: var(--dark);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.btn-ghost--dark:hover {
  background: var(--light-blue);
}

.btn-light {
  padding: 0 28px;
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 14px 30px -16px rgba(0, 0, 0, 0.55);
}

.btn-light:hover {
  transform: translateY(-2px);
  background: var(--light-blue);
}

.icon-button {
  display: grid;
  place-items: center;
  width: 51px;
  height: 51px;
  border-radius: var(--radius-xl);
  background: var(--white);
  border: 1px solid var(--stroke);
  color: var(--primary);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.icon-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px -16px rgba(0, 33, 71, 0.6);
}

.icon-button svg {
  width: 20px;
  height: 20px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-family: var(--font-heading);
  font-weight: 600;
  text-decoration: none;
}

.link-arrow svg {
  width: 18px;
  height: 18px;
  transition: transform 0.25s ease;
}

.link-arrow:hover svg {
  transform: translateX(4px);
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  padding: 20px 0;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-mark,
.brand-name {
  height: 38px;
  width: auto;
}

.navbar .brand-name {
  filter: brightness(0) invert(1);
  opacity: 0.95;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.navbar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.94);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.navbar.scrolled {
  background: transparent;
  box-shadow: 0 1px 0 var(--stroke), 0 18px 40px -34px rgba(0, 33, 71, 0.6);
  padding: 10px 0;
}

.navbar.scrolled::before {
  opacity: 1;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.navbar.scrolled .brand-name {
  filter: none;
  opacity: 1;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  padding: 10px 17px;
  border-radius: var(--radius-xl);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.16);
}

.navbar.scrolled .nav-link {
  color: var(--dark);
}

.navbar.scrolled .nav-link:hover {
  background: var(--light-blue);
}

.nav-link.active {
  background: rgba(255, 255, 255, 0.16);
}

.navbar.scrolled .nav-link.active {
  background: var(--light-blue);
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-menu-head,
.nav-menu-cta {
  display: none;
}

.nav-toggle {
  display: none;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: none;
  border-radius: 14px;
  background: var(--white);
  color: var(--dark);
  cursor: pointer;
  box-shadow: 0 12px 30px -18px rgba(0, 20, 45, 0.65);
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 12px 8px 0;
}

.hero-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: calc(96vh - 12px);
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--navy-deep);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      90deg,
      rgba(0, 15, 38, 0.86) 0%,
      rgba(0, 15, 38, 0.55) 40%,
      rgba(0, 15, 38, 0.05) 80%
    ),
    linear-gradient(0deg, rgba(0, 12, 32, 0.92) 0%, rgba(0, 15, 38, 0.4) 45%, rgba(0, 18, 45, 0.4) 100%),
    url("../assets/hero.jpg");
  background-size: auto, auto, cover;
  background-position: 0 0, 0 0, 62% 48%;
  background-repeat: no-repeat;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 26px;
  padding-top: 160px;
  padding-bottom: 64px;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 18px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.4px;
  line-height: 1;
}

.hero-label svg {
  width: 16px;
  height: 16px;
  color: var(--primary-soft);
}

.hero-title {
  max-width: 760px;
  font-size: clamp(42px, 5.6vw, 64px);
  line-height: 1.04;
  letter-spacing: -1.8px;
  color: var(--white);
}

.hero-title .script {
  display: inline-block;
  font-size: 1.22em;
  line-height: 0.9;
  color: var(--primary-soft);
  letter-spacing: 0;
  transform: translateY(4px);
}

.hero-sub {
  max-width: 540px;
  font-size: 18px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 8px;
  list-style: none;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14.5px;
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.hero-points svg {
  width: 17px;
  height: 17px;
  color: var(--primary-soft);
}

/* ---------- Sections ---------- */
.section {
  padding: var(--section-spacing) 0;
}

.section--gray {
  background: var(--light-gray);
}

.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head h2 {
  margin: 20px 0 16px;
}

.section-head p {
  color: var(--paragraph);
  font-size: 17px;
  line-height: 1.7;
}

/* ---------- Cards ---------- */
.card {
  background: var(--light-gray);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-l);
  padding: 36px 32px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease,
    background-color 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  background: var(--white);
  border-color: rgba(0, 108, 211, 0.35);
  box-shadow: var(--shadow-card);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 22px;
  border-radius: var(--radius-xl);
  background: var(--light-blue);
  color: var(--primary-light);
}

.card-icon svg {
  width: 26px;
  height: 26px;
}

.card-icon--sm {
  width: 42px;
  height: 42px;
  margin: 0;
}

.card-icon--sm svg {
  width: 20px;
  height: 20px;
}

.card h3 {
  margin-bottom: 10px;
}

.card p {
  color: var(--paragraph);
  font-size: 15.5px;
  line-height: 1.65;
}

/* ---------- Pillars ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  align-items: center;
  gap: 64px;
}

.about-media {
  position: relative;
}

.about-media img {
  width: 100%;
  aspect-ratio: 5 / 5.3;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: var(--shadow-card);
}

.about-badge {
  position: absolute;
  left: 20px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 20px 13px 13px;
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 20px 40px -22px rgba(0, 33, 71, 0.5);
}

.about-badge strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 14.5px;
  color: var(--dark);
  line-height: 1.3;
}

.about-badge span:not(.card-icon) {
  font-size: 13px;
  color: var(--paragraph);
}

.about-copy .label {
  margin-bottom: 20px;
}

.about-copy h2 {
  margin-bottom: 18px;
}

.about-copy > p {
  color: var(--paragraph);
  font-size: 16.5px;
  line-height: 1.7;
}

.about-copy > p + p {
  margin-top: 14px;
}

.check-list {
  display: grid;
  gap: 13px;
  margin: 26px 0 30px;
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--dark);
}

.check-list svg {
  width: 22px;
  height: 22px;
  padding: 4px;
  border-radius: var(--radius-xl);
  background: var(--light-blue);
  color: var(--primary-light);
  flex: none;
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.services-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
  padding: 24px 30px;
  border-radius: var(--radius-l);
  background: var(--light-blue);
}

.services-note p {
  font-family: var(--font-heading);
  font-size: 16.5px;
  font-weight: 600;
  color: var(--dark);
}

/* ---------- CTA / Contact ---------- */
.section--cta {
  padding: var(--section-spacing) 8px;
}

.cta-card {
  position: relative;
  border-radius: var(--radius-l);
  background: linear-gradient(140deg, var(--navy) 0%, var(--dark) 45%, #00346e 100%);
  overflow: hidden;
}

.cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 12% 88%, rgba(0, 108, 211, 0.4) 0%, transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(0, 108, 211, 0.32) 0%, transparent 30%),
    radial-gradient(circle at 78% 82%, rgba(255, 255, 255, 0.08) 0%, transparent 18%);
  pointer-events: none;
}

.cta-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 56px;
  padding: 72px 64px;
}

.cta-script {
  display: inline-block;
  margin-bottom: 10px;
  font-family: var(--font-script);
  font-size: clamp(30px, 3.2vw, 42px);
  line-height: 1;
  color: var(--primary-soft);
}

.cta-copy h2 {
  margin-bottom: 16px;
  color: var(--white);
  font-size: clamp(34px, 4vw, 52px);
}

.cta-copy p {
  max-width: 520px;
  margin: 0 0 30px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 16.5px;
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* ---------- Contact form ---------- */
.cta-form-wrap {
  position: relative;
  padding: 32px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 34px 70px -40px rgba(0, 0, 0, 0.7);
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form[hidden] {
  display: none;
}

.form-submit[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field label {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: var(--dark);
}

.field label span {
  font-weight: 400;
  color: var(--paragraph);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  background-color: var(--light-gray);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--dark);
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
  min-height: 112px;
  resize: vertical;
}

.field select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23002147' stroke-width='2' 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 15px center;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary-light);
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(0, 108, 211, 0.16);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #d64545;
  background-color: #fff7f7;
}

.field-error {
  font-size: 13px;
  line-height: 1.4;
  color: #c03232;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-submit {
  width: 100%;
}

.form-note {
  font-size: 12.5px;
  line-height: 1.5;
  text-align: center;
  color: var(--paragraph);
}

.form-success {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 48px 20px;
  text-align: center;
}

.form-success[hidden] {
  display: none;
}

.form-success svg {
  width: 46px;
  height: 46px;
  color: var(--primary-light);
}

.form-success strong {
  font-family: var(--font-heading);
  font-size: 19px;
  color: var(--dark);
}

.form-success span {
  max-width: 320px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--paragraph);
}

.form-success a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.social-row {
  display: flex;
  gap: 12px;
}

.social-button {
  display: grid;
  place-items: center;
  width: 51px;
  height: 51px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--white);
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.social-button:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-2px);
}

.social-button svg {
  width: 21px;
  height: 21px;
}

/* ---------- Page hero (work page) ---------- */
.page-hero {
  padding: 12px 8px 0;
}

.page-hero-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-l);
  background: linear-gradient(140deg, var(--navy) 0%, var(--dark) 45%, #00346e 100%);
}

.page-hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 12% 88%, rgba(0, 108, 211, 0.4) 0%, transparent 30%),
    radial-gradient(circle at 88% 12%, rgba(0, 108, 211, 0.32) 0%, transparent 32%);
  pointer-events: none;
}

.page-hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  padding-top: 170px;
  padding-bottom: 70px;
}

.page-hero .hero-title {
  font-size: clamp(34px, 4.6vw, 54px);
}

/* ---------- Work stack (landing) ---------- */
.section--work .section-head {
  margin-bottom: 48px;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.stack-card {
  position: sticky;
  top: calc(96px + var(--i, 0) * 18px);
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  background: var(--navy-deep);
  box-shadow: 0 34px 70px -38px rgba(0, 33, 71, 0.6);
}

.stack-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.stack-card figcaption {
  position: absolute;
  left: 20px;
  bottom: 20px;
  padding: 9px 16px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.92);
  color: var(--dark);
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.stack-cta {
  display: flex;
  justify-content: center;
  margin-top: 52px;
}

/* ---------- Gallery (work page) ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 0;
  border: none;
  border-radius: 16px;
  overflow: hidden;
  background: var(--white);
  cursor: zoom-in;
  text-align: left;
  box-shadow: 0 20px 44px -30px rgba(0, 33, 71, 0.45);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 54px -30px rgba(0, 33, 71, 0.55);
}

.gallery-media {
  position: relative;
  display: block;
  overflow: hidden;
}

.gallery-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-media img {
  transform: scale(1.05);
}

.gallery-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 15, 38, 0.4), rgba(0, 15, 38, 0) 55%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.gallery-item:hover .gallery-media::after {
  opacity: 1;
}

.gallery-body {
  display: flex;
  align-items: center;
  flex: 1;
  min-height: 80px;
  padding: 18px 20px;
  background: var(--white);
  border-top: 1px solid var(--stroke);
}

.gallery-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--paragraph);
}

.gallery-item:focus-visible {
  outline: 3px solid rgba(0, 108, 211, 0.6);
  outline-offset: 3px;
}

.gallery-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 48px;
  padding: 26px 30px;
  border-radius: var(--radius-l);
  background: var(--light-blue);
}

.gallery-cta p {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 600;
  color: var(--dark);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 15, 38, 0.93);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.lightbox[hidden] {
  display: none;
}

body.lightbox-open {
  overflow: hidden;
}

.lightbox-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
}

.lightbox-img {
  width: auto;
  height: auto;
  max-width: min(1100px, 92vw);
  max-height: 80vh;
  border-radius: 14px;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.85);
}

.lightbox-caption {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14.5px;
  text-align: center;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  cursor: pointer;
  transition: background-color 0.25s ease;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.26);
}

.lightbox-close svg,
.lightbox-nav svg {
  width: 22px;
  height: 22px;
}

.lightbox-close {
  top: 24px;
  right: 24px;
}

.lightbox-prev {
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
}

/* ---------- Footer ---------- */
.footer {
  padding: 72px 0 30px;
  background: var(--white);
  border-top: 1px solid var(--stroke);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr;
  gap: 48px;
}

.brand--footer {
  padding: 0;
  background: none;
  box-shadow: none;
  margin-bottom: 18px;
  gap: 10px;
}

.brand--footer .brand-mark,
.brand--footer .brand-name {
  height: 42px;
}

.footer-brand-col p {
  max-width: 340px;
  color: var(--paragraph);
  font-size: 15px;
  line-height: 1.7;
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-col h3 {
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--dark);
}

.footer-col a {
  margin-bottom: 10px;
  color: var(--paragraph);
  font-size: 15px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--stroke);
  color: var(--paragraph);
  font-size: 14px;
}

.footer-bottom a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-bottom a:hover {
  color: var(--primary-light);
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal[data-delay="1"] {
  transition-delay: 0.1s;
}

.reveal[data-delay="2"] {
  transition-delay: 0.2s;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media screen and (max-width: 1100px) {
  .about-grid {
    gap: 40px;
  }

  .cta-grid {
    padding: 60px 48px;
    gap: 40px;
  }
}

@media screen and (max-width: 991px) {
  .navbar {
    padding: 14px 0;
  }

  .brand-mark,
  .brand-name {
    height: 33px;
  }

  .nav-toggle {
    display: grid;
  }

  .nav-menu {
    position: fixed;
    inset: 0;
    z-index: 1;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding: 0 24px 28px;
    background: var(--white);
    transform: translateX(-100%);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .nav-menu.open {
    transform: none;
  }

  .nav-menu-head {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
    padding: 16px 0;
    background: var(--white);
    border-bottom: 1px solid var(--stroke);
  }

  .nav-menu-logo {
    height: 33px;
    width: auto;
  }

  .nav-close {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid var(--stroke);
    border-radius: 14px;
    background: var(--light-gray);
    color: var(--dark);
    cursor: pointer;
    flex: none;
  }

  .nav-close svg {
    width: 22px;
    height: 22px;
  }

  .nav-link {
    padding: 18px 2px;
    border-bottom: 1px solid var(--stroke);
    border-radius: 0;
    color: var(--dark);
    font-size: clamp(26px, 7vw, 38px);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.8px;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.35s ease, transform 0.35s ease, color 0.2s ease;
  }

  .nav-menu.open .nav-link {
    opacity: 1;
    transform: none;
  }

  .nav-menu.open .nav-link:nth-child(2) {
    transition-delay: 0.06s;
  }

  .nav-menu.open .nav-link:nth-child(3) {
    transition-delay: 0.12s;
  }

  .nav-menu.open .nav-link:nth-child(4) {
    transition-delay: 0.18s;
  }

  .nav-menu.open .nav-link:nth-child(5) {
    transition-delay: 0.24s;
  }

  .nav-menu.open .nav-link:nth-child(6) {
    transition-delay: 0.3s;
  }

  .nav-link:hover {
    background: transparent;
    color: var(--primary-light);
  }

  .navbar .nav-link.active,
  .navbar.scrolled .nav-link.active {
    background: transparent;
    color: var(--primary);
  }

  .nav-menu-cta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
    padding-top: 30px;
  }

  .nav-menu-cta .btn {
    min-height: 58px;
    font-size: 16.5px;
  }

  .nav-menu-quote {
    width: 100%;
  }

  .pillars {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .about-media img {
    aspect-ratio: 5 / 4.4;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-grid {
    grid-template-columns: 1fr;
    padding: 52px 36px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer-brand-col {
    grid-column: 1 / -1;
  }
}

@media screen and (max-width: 767px) {
  :root {
    --section-spacing: 68px;
  }

  html {
    scroll-padding-top: 88px;
  }

  .hero-card {
    min-height: calc(92vh - 12px);
  }

  .hero-content {
    padding-top: 130px;
    padding-bottom: 42px;
    gap: 20px;
  }

  .hero-title {
    letter-spacing: -1px;
  }

  .hero-title .script {
    display: block;
    margin-top: 6px;
    font-size: 1.15em;
  }

  .hero-sub {
    font-size: 16.5px;
  }

  .hero-points {
    display: none;
  }

  .section-head {
    margin-bottom: 40px;
  }

  .card {
    padding: 28px 24px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .stack-card {
    top: calc(80px + var(--i, 0) * 14px);
    border-radius: 16px;
  }

  .stack-card img {
    aspect-ratio: 4 / 3;
  }

  .stack-card figcaption {
    left: 14px;
    bottom: 14px;
    padding: 8px 14px;
    font-size: 12.5px;
  }

  .gallery {
    gap: 14px;
  }

  .gallery-cta {
    padding: 22px 24px;
  }

  .page-hero-content {
    padding-top: 140px;
    padding-bottom: 52px;
    gap: 18px;
  }

  .lightbox {
    padding: 16px;
  }

  .lightbox-img {
    max-height: 72vh;
  }

  .lightbox-close {
    top: 14px;
    right: 14px;
  }

  .lightbox-nav {
    width: 46px;
    height: 46px;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .about-badge {
    left: 14px;
    bottom: 14px;
    padding: 11px 16px 11px 11px;
  }

  .cta-grid {
    padding: 44px 26px;
  }

  .cta-form-wrap {
    padding: 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .cta-actions .btn-light {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .footer-bottom {
    justify-content: flex-start;
  }
}

@media screen and (max-width: 479px) {
  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .icon-button,
  .nav-toggle {
    width: 46px;
    height: 46px;
  }

  .btn {
    padding-left: 24px;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
