/* ==========================================================
   Delight Direct Marketing — style.css
   Palette taken straight from the logo:
   sky blue #29C5F4, charcoal #323232, white
   ========================================================== */

:root {
  --blue: #29C5F4;          /* logo blue: fills, accents, blue on charcoal */
  --blue-deep: #0A74A2;     /* readable blue for text/links on white */
  --blue-soft: #BDEBFB;
  --ice: #EDF9FE;
  --charcoal: #323232;      /* logo underline bars */
  --muted: #5B666C;
  --line: #D6E4EA;
  --white: #FFFFFF;

  --display: "Playfair Display", Georgia, "Times New Roman", serif;
  --body: "Quicksand", "Segoe UI", system-ui, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(64px, 9vw, 112px);
  --radius: 16px;
}

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

html { scroll-behavior: smooth; }

section[id] { scroll-margin-top: 90px; }

body {
  margin: 0;
  font-family: var(--body);
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

body.nav-open { overflow: hidden; }

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

a { color: var(--blue-deep); text-underline-offset: 3px; }
a:hover { color: var(--charcoal); }

:focus-visible {
  outline: 3px solid var(--blue-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 .5em;
  color: var(--charcoal);
}
h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); letter-spacing: -0.01em; }
h3 { font-size: 1.4rem; font-weight: 700; }

p { margin: 0 0 1.1em; max-width: 64ch; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute; left: -999px; top: 8px;
  background: var(--charcoal); color: var(--white);
  padding: 10px 16px; z-index: 200; border-radius: 6px;
}
.skip-link:focus { left: 8px; color: var(--white); }

/* The thick charcoal rule from under the logo wordmark */
.bar {
  display: block;
  width: 84px;
  height: 9px;
  background: var(--charcoal);
  margin: 0 0 28px;
  border: 0;
}
.bar--blue { background: var(--blue); }

.lead { font-size: 1.2rem; line-height: 1.6; }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--body);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  padding: 16px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(50, 50, 50, .16); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn--blue { background: var(--blue); border-color: var(--blue); color: var(--charcoal); }
.btn--blue:hover { background: var(--charcoal); border-color: var(--charcoal); color: var(--blue); }

.btn--line { border-color: var(--charcoal); color: var(--charcoal); background: transparent; }
.btn--line:hover { background: var(--charcoal); color: var(--white); }

.btn--dark { background: var(--charcoal); border-color: var(--charcoal); color: var(--white); }
.btn--dark:hover { background: var(--white); color: var(--charcoal); }

.btn--line-light { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn--line-light:hover { background: var(--blue); color: var(--charcoal); }

.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 6px 20px rgba(50, 50, 50, .06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}
.brand img { height: 54px; width: auto; }
.brand { display: block; line-height: 0; }

.site-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
}
.site-nav a {
  display: block;
  padding: 10px 14px;
  font-weight: 600;
  color: var(--charcoal);
  text-decoration: none;
  position: relative;
}
.site-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 4px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s;
}
.site-nav a:not(.btn):hover::after,
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav .btn { margin-left: 10px; padding: 13px 22px; }

.nav-toggle {
  display: none;
  width: 48px; height: 48px;
  border: 2px solid var(--charcoal);
  border-radius: 12px;
  background: var(--white);
  color: var(--charcoal);
  font-size: 1.2rem;
  cursor: pointer;
}

/* ---------- Home hero: full-width Ken Burns slider ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(560px, calc(100vh - 84px), 820px);
  overflow: hidden;
  background: var(--charcoal);
  color: var(--white);
}
.hero-slides { position: absolute; inset: 0; z-index: -2; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; overflow: hidden; }
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; transform-origin: 60% 40%; }
.slide.is-active img { animation: kenburns 8s ease-out forwards; }

@keyframes kenburns {
  from { transform: scale(1); }
  to   { transform: scale(1.14); }
}

/* Charcoal from the logo, strongest behind the text */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(50, 50, 50, .92) 0%, rgba(50, 50, 50, .74) 45%, rgba(50, 50, 50, .28) 100%);
}

.hero-content { padding-top: 80px; padding-bottom: 110px; }
.hero h1 {
  color: var(--white);
  max-width: 11ch;
  font-size: clamp(2.8rem, 6.4vw, 5.4rem);
}
.hero .lead { color: #EDEDED; max-width: 46ch; }

.hero-dots { position: absolute; left: 0; right: 0; bottom: 30px; }
.slide-dots { display: flex; gap: 6px; }
.slide-dots button {
  width: 44px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.slide-dots button::after {
  content: "";
  position: absolute;
  left: 4px; right: 4px; top: 9px;
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .4);
  transition: background-color .3s;
}
.slide-dots button:hover::after { background: rgba(255, 255, 255, .75); }
.slide-dots button[aria-current="true"]::after { background: var(--blue); }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section--ice { background: var(--ice); }
.section--dark { background: var(--charcoal); color: var(--white); }
.section--dark h2, .section--dark h3 { color: var(--blue); }
.section--dark p { color: #E4E4E4; }
.section--blue { background: var(--blue); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.split--top { align-items: start; }

.photo {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--blue-soft);
}

/* Home: services list */
.services-layout {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.services-intro { position: sticky; top: 120px; }

.svc-list { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--charcoal); }
.svc-list li { border-bottom: 1px solid var(--line); }
.svc-row {
  position: relative;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 22px;
  align-items: start;
  padding: 26px 12px 26px 18px;
  color: inherit;
  text-decoration: none;
}
.svc-row::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  background: var(--blue);
  transition: width .2s;
}
.svc-row:hover::before, .svc-row:focus-visible::before { width: 6px; }
.svc-row:hover { color: inherit; }
.svc-row h3 { margin: 4px 0 6px; }
.svc-row p { margin: 0; color: var(--muted); }
.svc-icon {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--charcoal);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.member img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  background: #444;
}
.member h3 { font-size: 1.2rem; margin: 16px 0 2px; }
.member .role { margin: 0; font-weight: 600; }
.member .bio { margin-top: 10px; font-size: .98rem; }
.section--dark .member h3 { color: var(--white); }
.section--dark .member .role { color: var(--blue); }
.member .role { color: var(--blue-deep); }

.head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 20px 40px;
}
.head-row p { margin-bottom: 0; }

.recruit {
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid #4A4A4A;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 32px;
}
.recruit p { margin: 0; font-size: 1.15rem; color: var(--white); }

/* Location */
.info-list { list-style: none; margin: 0 0 8px; padding: 0; }
.info-list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.info-list li:first-child { border-top: 1px solid var(--line); }
.info-list i {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--ice);
  color: var(--blue-deep);
}
.section--ice .info-list i { background: var(--white); }
.info-list strong { display: block; font-weight: 700; }
.info-list span, .info-list a { color: var(--muted); }
.info-list a:hover { color: var(--charcoal); }

.map {
  width: 100%;
  min-height: 420px;
  height: 100%;
  border: 0;
  border-radius: var(--radius);
  background: var(--blue-soft);
}

/* ---------- Inner page header ---------- */
.page-head {
  position: relative;
  overflow: hidden;
  background: var(--blue);
  padding: clamp(56px, 8vw, 96px) 0 clamp(52px, 7vw, 84px);
}
.page-head h1 { max-width: 16ch; }
.page-head .lead { max-width: 52ch; margin-bottom: 0; }
.page-head .shield-mark {
  position: absolute;
  right: -40px;
  top: 50%;
  width: clamp(200px, 30vw, 380px);
  height: auto;
  transform: translateY(-50%);
  opacity: .22;
}
.page-head .shield-mark path { fill: none; stroke: var(--charcoal); stroke-width: 3; vector-effect: non-scaling-stroke; }

/* ---------- About page ---------- */
.values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 56px;
  margin-top: 48px;
}
.value { border-left: 6px solid var(--blue); padding-left: 22px; }
.value h3 { margin-bottom: 8px; }
.value p { margin: 0; color: var(--muted); }

.statement {
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
  line-height: 1.3;
  max-width: 30ch;
  margin: 0;
}

/* ---------- CEO message (About page) — styled like the team cards ---------- */
.ceo {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
  margin-top: 48px;
}
.ceo-card { margin: 0; width: 100%; max-width: 440px; }
.ceo-card figcaption h3 { font-size: 1.35rem; }

.ceo-message {
  position: relative;
  margin: 0;
  padding: 64px 0 0;
}
.ceo-message::before {
  content: "\201C";
  position: absolute;
  top: -42px;
  left: -8px;
  font-family: var(--display);
  font-size: 10rem;
  line-height: 1;
  color: var(--blue);
  pointer-events: none;
}
.ceo-message h3 {
  font-size: 1.15rem;
  color: var(--blue-deep);
  margin: 0 0 10px;
}
.ceo-message .statement {
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  line-height: 1.4;
  max-width: 36ch;
  margin: 0 0 36px;
}
.ceo-message .statement:last-child { margin-bottom: 0; }

/* ---------- Services page ---------- */
.feature + .feature { margin-top: clamp(72px, 10vw, 120px); }
.feature { scroll-margin-top: 120px; }
.feature--flip .feature-media { order: 2; }

.checks { list-style: none; padding: 0; margin: 22px 0 0; }
.checks li { position: relative; padding: 7px 0 7px 34px; }
.checks li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0; top: 9px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--charcoal);
  font-size: .7rem;
  display: grid;
  place-items: center;
}

.steps {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
  counter-reset: step;
}
.steps li { border-top: 6px solid var(--charcoal); padding-top: 20px; counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--blue-deep);
  margin-bottom: 12px;
}
.steps h3 { font-size: 1.2rem; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--muted); font-size: .98rem; }

/* ---------- CTA band ---------- */
.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
}
.cta h2 { margin: 0; max-width: 20ch; }
.cta p { margin: 10px 0 0; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: .95rem; }
.field .hint { font-size: .88rem; color: var(--muted); }

.field input,
.field select,
.field textarea {
  font: inherit;
  color: var(--charcoal);
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: 10px;
  padding: 13px 14px;
  width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(41, 197, 244, .3);
}
.field input[readonly] { background: var(--ice); font-weight: 700; cursor: default; }

.file-drop {
  position: relative;
  border: 2px dashed var(--blue);
  border-radius: 12px;
  background: var(--ice);
  padding: 22px;
  text-align: center;
}
.file-drop input[type="file"] {
  position: absolute; inset: 0;
  opacity: 0; cursor: pointer;
  width: 100%; height: 100%;
}
.file-drop:focus-within { box-shadow: 0 0 0 4px rgba(41, 197, 244, .3); }
.file-drop i { font-size: 1.6rem; color: var(--blue-deep); }
.file-drop strong { display: block; margin-top: 6px; }
.file-name { display: block; margin-top: 4px; font-size: .92rem; color: var(--muted); }

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

.notice {
  display: none;
  grid-column: 1 / -1;
  padding: 14px 16px;
  border-radius: 10px;
  font-weight: 600;
}
.notice.is-success { display: block; background: #E3F7EA; color: #1C5E33; border: 2px solid #9BD8AE; }
.notice.is-error { display: block; background: #FDECEC; color: #8A1F1F; border: 2px solid #F0B3B3; }

.perks { list-style: none; margin: 26px 0 0; padding: 0; }
.perks li {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.perks i {
  width: 50px; height: 50px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--blue);
  color: var(--charcoal);
}
.perks strong { display: block; font-size: 1.08rem; }
.perks span { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ice); padding-top: clamp(56px, 8vw, 84px); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.3fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
}
.footer-grid img { height: 62px; width: auto; margin-bottom: 18px; }
.footer-grid h3 { font-size: 1.15rem; margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { padding: 4px 0; }
.footer-grid a { color: var(--charcoal); text-decoration: none; }
.footer-grid a:hover { color: var(--blue-deep); text-decoration: underline; }
.footer-grid p { font-size: .98rem; }

.social { display: flex; gap: 10px; margin-top: 18px; }
.social a {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--charcoal);
  color: var(--white);
  text-decoration: none;
}
.social a:hover { background: var(--blue); color: var(--charcoal); text-decoration: none; }

.footer-bottom { background: var(--charcoal); color: #E4E4E4; font-size: .93rem; }
.footer-bottom .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.footer-bottom p { margin: 0; max-width: none; }
.footer-bottom a { color: var(--blue); }
.footer-bottom a:hover { color: var(--white); }


/* ---------- Photo bands, wide photos ---------- */
.section--photo { background-size: cover; background-position: center; }
.photo--wide { aspect-ratio: 16 / 7; margin-top: 48px; background: #444; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-flow: dense;
  gap: 14px;
  margin-top: 40px;
}
.g-item {
  display: block;
  padding: 0;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--blue-soft);
  cursor: zoom-in;
  aspect-ratio: 1 / 1;
}
.g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.g-item:hover img, .g-item:focus-visible img { transform: scale(1.05); }
@media (min-width: 700px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 960px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(190px, 18vw, 250px); }
  .g-item { aspect-ratio: auto; height: 100%; }
  .g-item:first-child { grid-column: span 2; grid-row: span 2; }
  .g-item--wide { grid-column: span 2; }
}

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(50, 50, 50, .96);
  color: var(--white);
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(50, 50, 50, .96); }
.lightbox img {
  max-width: min(92vw, 1400px);
  max-height: 82vh;
  object-fit: contain;
  border-radius: 8px;
}
.lb-btn {
  position: fixed;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 0;
  background: var(--blue);
  color: var(--charcoal);
  font-size: 1.2rem;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.lb-btn:hover { background: var(--white); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lb-count { position: fixed; bottom: 18px; left: 0; right: 0; margin: 0 auto; text-align: center; color: #E4E4E4; }
@media (max-width: 600px) {
  .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; }
  .lb-count { bottom: 28px; }
  .photo--wide { aspect-ratio: 4 / 3; }
}


/* ==========================================================
   Animations
   1. Page load: header, home hero, inner page headers
   2. Scroll reveals: [data-animate] and [data-stagger] (set in HTML,
      removed by main.js once finished so hover effects work normally)
   3. Hover movement
   ========================================================== */
:root { --ease-out: cubic-bezier(.16, .84, .3, 1); }

@keyframes rise     { from { opacity: 0; transform: translateY(30px); } }
@keyframes grow-x   { from { transform: scaleX(0); } }
@keyframes fade-in  { from { opacity: 0; } }
@keyframes drop-in  { from { transform: translateY(-100%); } }
@keyframes zoom-out { from { transform: scale(1.12); } }
@keyframes mark-in  { from { opacity: 0; transform: translateY(-40%) rotate(-10deg) scale(.85); } }

/* 1. Page load */
.site-header { animation: drop-in .6s var(--ease-out) backwards; }

.hero h1          { animation: rise .9s var(--ease-out) .2s backwards; }
.hero .bar        { transform-origin: left; animation: grow-x .7s var(--ease-out) .5s backwards; }
.hero .lead       { animation: rise .9s var(--ease-out) .6s backwards; }
.hero .actions    { animation: rise .9s var(--ease-out) .75s backwards; }
.hero-slides     { animation: zoom-out 1.8s var(--ease-out) backwards; }
.hero-overlay    { animation: fade-in 1s ease backwards; }
.hero-dots       { animation: fade-in .6s ease 1.3s backwards; }

.page-head h1         { animation: rise .9s var(--ease-out) .15s backwards; }
.page-head .bar       { transform-origin: left; animation: grow-x .7s var(--ease-out) .45s backwards; }
.page-head .lead      { animation: rise .9s var(--ease-out) .55s backwards; }
.page-head .shield-mark { animation: mark-in 1.6s var(--ease-out) .2s backwards; }

/* 2. Scroll reveals */
.js [data-animate] {
  transition: opacity .8s var(--ease-out), transform .9s var(--ease-out), clip-path 1.1s var(--ease-out);
}
.js [data-animate="up"]:not(.is-visible)   { opacity: 0; transform: translateY(32px); }
.js [data-animate="fade"]:not(.is-visible) { opacity: 0; }
.js [data-animate="pop"]:not(.is-visible)  { opacity: 0; transform: scale(.4) rotate(-25deg); }
.js [data-animate="bar"] { transform-origin: left; transition-delay: .15s; }
.js [data-animate="bar"]:not(.is-visible) { transform: scaleX(0); }
.js [data-animate="bar"] + [data-animate="up"] { transition-delay: .25s; }
.js p[data-animate] + p[data-animate] { transition-delay: .35s; }
.js p[data-animate] + p[data-animate] + p[data-animate] { transition-delay: .45s; }
.js .actions[data-animate] { transition-delay: .5s; }
.js [data-animate="wipe"] {
  clip-path: inset(0 0 0 0 round var(--radius));
  transition: clip-path 1.1s var(--ease-out), transform 1.5s var(--ease-out);
}
.js [data-animate="wipe"]:not(.is-visible) { clip-path: inset(100% 0 0 0 round var(--radius)); transform: scale(1.08); }

.js [data-stagger] > * {
  transition: opacity .7s var(--ease-out), transform .8s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js [data-stagger]:not(.is-visible) > * { opacity: 0; transform: translateY(28px); }
[data-stagger] > :nth-child(2)  { --i: 1; }
[data-stagger] > :nth-child(3)  { --i: 2; }
[data-stagger] > :nth-child(4)  { --i: 3; }
[data-stagger] > :nth-child(5)  { --i: 4; }
[data-stagger] > :nth-child(6)  { --i: 5; }
[data-stagger] > :nth-child(7)  { --i: 6; }
[data-stagger] > :nth-child(8)  { --i: 7; }
[data-stagger] > :nth-child(9)  { --i: 8; }
[data-stagger] > :nth-child(10) { --i: 9; }
[data-stagger] > :nth-child(11) { --i: 10; }
[data-stagger] > :nth-child(12) { --i: 11; }

/* 3. Hover movement */
.svc-icon { transition: transform .35s var(--ease-out); }
.svc-row:hover .svc-icon, .svc-row:focus-visible .svc-icon { transform: rotate(-12deg) scale(1.1); }
.svc-row h3 { transition: transform .3s var(--ease-out); }
.svc-row:hover h3 { transform: translateX(4px); }

.member img { transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out); }
.member:hover img { transform: translateY(-8px); box-shadow: 0 22px 34px rgba(50, 50, 50, .22); }

.value { transition: transform .3s var(--ease-out), border-color .3s; }
.value:hover { transform: translateX(6px); border-color: var(--charcoal); }

.steps li { transition: border-color .3s; }
.steps li:hover { border-color: var(--blue); }

.info-list i, .perks i { transition: transform .35s var(--ease-out); }
.info-list li:hover i, .perks li:hover i { transform: scale(1.12) rotate(-8deg); }

.social a { transition: background-color .2s, color .2s, transform .25s var(--ease-out); }
.social a:hover { transform: translateY(-4px); }

.photo { transition: transform .6s var(--ease-out); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .site-nav a { padding: 10px 10px; }
  .site-nav a:not(.btn)::after { left: 10px; right: 10px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 920px) {
  .nav-toggle { display: grid; place-items: center; }
  .site-nav {
    position: fixed;
    inset: 84px 0 0 0;
    background: var(--white);
    padding: 24px var(--gutter) 40px;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .3s ease, visibility .3s;
    overflow-y: auto;
  }
  .site-nav.is-open { transform: none; visibility: visible; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li { border-bottom: 1px solid var(--line); }
  .site-nav li:last-child { border: 0; padding-top: 22px; }
  .site-nav a { padding: 16px 4px; font-size: 1.2rem; }
  .site-nav a:not(.btn)::after { left: 4px; right: auto; width: 48px; bottom: 8px; }
  .site-nav .btn { margin: 0; justify-content: center; }

  .split, .services-layout { grid-template-columns: 1fr; }
  .hero { min-height: clamp(520px, calc(100svh - 84px), 760px); }
  .hero-overlay { background: linear-gradient(180deg, rgba(50, 50, 50, .7) 0%, rgba(50, 50, 50, .86) 100%); }
  .hero-content { padding-top: 56px; padding-bottom: 100px; }
  .services-intro { position: static; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .ceo { grid-template-columns: 1fr; }
  .ceo-card { max-width: 360px; }
  .ceo-message { padding-top: 48px; }
  .ceo-message::before { top: -34px; font-size: 8rem; }
  .feature--flip .feature-media { order: 0; }
  .map { min-height: 340px; }
}

@media (max-width: 600px) {
  .brand img { height: 46px; }
  .values, .form-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .team-grid { gap: 16px; }
  .member h3 { font-size: 1.05rem; }
  .btn { padding: 15px 22px; }
  .page-head .shield-mark { opacity: .12; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  .js [data-animate], .js [data-stagger] > * { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}