/* SP Smart Systems — static HTML/CSS build
   Converted from a Lovable (React/Tailwind) prototype for handoff.
   Design tokens per client brief. */

@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600&display=swap");

:root {
  --color-bg: #F8F9FA;
  --color-text: #1E242B;
  --color-text-muted: #5B6472;
  --color-accent: #C5A059;
  --color-accent-dark: #ab8a4c;
  --color-border: #E1E4E8;
  --color-secondary-bg: #EFF1F3;
  --font-primary: "Plus Jakarta Sans", "Inter", "Helvetica Neue", Arial, sans-serif;
  --page-max-width: 80rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
svg { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: 0; }
p { margin: 0; }
::selection { background: var(--color-accent); color: #fff; }

.page-shell {
  width: min(100% - 2rem, var(--page-max-width));
  margin-inline: auto;
}

.section-space { padding-block: clamp(5rem, 9vw, 9rem); }

.eyebrow {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-accent);
  font-weight: 600;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 3.25rem;
  padding: 0 1.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 1rem; height: 1rem; flex-shrink: 0; }
.btn-gold { background: var(--color-accent); color: #1a1a1a; }
.btn-gold:hover { background: var(--color-accent-dark); }
.btn-architectural { background: transparent; color: var(--color-text); border-color: rgba(30,36,43,0.2); }
.btn-architectural:hover { border-color: var(--color-accent); color: var(--color-accent); }
.btn-architectural-inverse { background: transparent; color: var(--color-bg); border-color: rgba(248,249,250,0.3); }
.btn-architectural-inverse:hover { border-color: var(--color-accent); color: var(--color-accent); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--color-border);
  background: rgba(248,249,250,0.95);
  backdrop-filter: blur(6px);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.site-header .page-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}
.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--color-accent);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-accent);
}
.brand-name {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.3;
  letter-spacing: 0.18em;
}
.main-nav { display: none; align-items: center; gap: 2rem; }
.main-nav .nav-list { display: flex; align-items: center; gap: 2rem; }
.main-nav a {
  position: relative;
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  transition: color .2s ease;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.45rem;
  height: 1px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: right;
}
.main-nav a:hover::after,
.main-nav a:focus-visible::after,
.main-nav a[aria-current="page"]::after,
.main-nav .current-menu-item a::after { transform: scaleX(1); transform-origin: left; }
.main-nav a:hover, .main-nav a[aria-current="page"], .main-nav .current-menu-item a { color: var(--color-accent); }
.main-nav li, .mobile-nav li { list-style: none; }
.header-cta { display: none; }
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 5rem;
  left: 0;
  right: 0;
  height: calc(100vh - 5rem);
  height: calc(100dvh - 5rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg);
  padding: 0 max(1rem, calc((100vw - var(--page-max-width)) / 2));
  padding-bottom: env(safe-area-inset-bottom);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.mobile-menu-open { overflow: hidden; }
.mobile-menu-open .site-header { background: var(--color-bg); backdrop-filter: none; }
.admin-bar .mobile-nav { top: calc(5rem + 32px); height: calc(100dvh - 5rem - 32px); }
@media (max-width: 782px) {
  .admin-bar .mobile-nav { top: calc(5rem + 46px); height: calc(100dvh - 5rem - 46px); }
}
.mobile-nav .nav-list { display: flex; flex: 1; flex-direction: column; }
.mobile-nav li { display: flex; flex: 0.1 4.5rem; }
.mobile-nav a {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 0;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-align: center;
}

@media (min-width: 64rem) {
  .main-nav { display: flex; }
  .header-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none; }
}

/* Footer */
.site-footer { background: var(--color-text); color: var(--color-bg); }
.footer-grid {
  display: grid;
  gap: 3rem;
  padding-block: 4rem;
}
.footer-tagline { margin-top: 1.75rem; max-width: 24rem; font-size: 0.9rem; line-height: 1.75; color: rgba(248,249,250,0.65); }
.footer-contact { font-size: 0.9rem; }
.footer-contact .eyebrow { margin-bottom: 0.75rem; display: block; }
.footer-contact a { display: block; padding: 0.15rem 0; }
.footer-contact a:hover { color: var(--color-accent); }
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-top: 1px solid rgba(248,249,250,0.15);
  padding-block: 1.5rem;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(248,249,250,0.45);
}
@media (min-width: 48rem) {
  .footer-grid { grid-template-columns: 1.4fr 1fr; }
  .footer-contact { justify-self: end; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}

/* Page intro (hero band used on inner pages) */
.page-intro {
  display: grid;
  gap: 2rem;
  border-bottom: 1px solid var(--color-border);
  padding-block: 5rem;
}
.page-intro h1 { max-width: 48rem; font-size: 2.25rem; line-height: 1.12; }
.page-intro p.lead { margin-top: 1.75rem; max-width: 40rem; font-size: 1rem; line-height: 1.8; color: var(--color-text-muted); }
@media (min-width: 48rem) {
  .page-intro { grid-template-columns: 1fr 1.4fr; padding-block: 7rem; }
  .page-intro h1 { font-size: 3.5rem; }
}
@media (min-width: 64rem) {
  .page-intro h1 { font-size: 4rem; }
}

/* Home hero */
.hero {
  position: relative;
  min-height: calc(100svh - 5rem);
  overflow: hidden;
  background: var(--color-text);
  color: var(--color-bg);
}
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.65;
  filter: brightness(50%)
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(30,36,43,0.88), rgba(30,36,43,0.45) 55%, transparent);
}
.hero-content {
  position: relative;
  display: flex;
  min-height: calc(100svh - 5rem);
  flex-direction: column;
  justify-content: flex-end;
  padding-block: 7rem 3.5rem;
}
.hero-content h1 { max-width: 60rem; font-size: 2.25rem; line-height: 1.1; }
.hero-meta {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  border-top: 1px solid rgba(248,249,250,0.3);
  padding-top: 1.75rem;
}
.hero-meta p { max-width: 32rem; font-size: 0.95rem; line-height: 1.75; color: rgba(248,249,250,0.8); }
.hero-arrow { margin-top: 2.5rem; color: var(--color-accent); }
.hero-arrow svg { width: 1.75rem; height: 1.75rem; }
@media (min-width: 40rem) {
  .hero-content h1 { font-size: 3.75rem; }
}
@media (min-width: 64rem) {
  .hero-content h1 { font-size: 4.5rem; }
  .hero-meta { flex-direction: row; align-items: flex-end; justify-content: space-between; }
}

/* Value proposition (home) */
.value-prop {
  display: grid;
  gap: 3rem;
}
.value-prop h2 { font-size: 2.25rem; line-height: 1.2; }
.value-prop .lead { margin-top: 2rem; max-width: 40rem; font-size: 1rem; line-height: 1.9; color: var(--color-text-muted); }
.value-prop .lead p + p { margin-top: 1rem; }
@media (min-width: 48rem) {
  .value-prop { grid-template-columns: 0.85fr 1.15fr; }
  .value-prop h2 { font-size: 2.75rem; }
}

/* Bordered grid (capabilities / pillars / partner logos) */
.grid-lines {
  display: grid;
  border-left: 1px solid var(--color-border);
  border-top: 1px solid var(--color-border);
}
.grid-lines > * {
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 2rem;
}
.grid-lines.inverse { border-color: rgba(248,249,250,0.2); }
.grid-lines.inverse > * { border-color: rgba(248,249,250,0.2); }
@media (min-width: 48rem) { .grid-lines.cols-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 48rem) { .grid-lines.cols-3 { grid-template-columns: repeat(3, 1fr); } }

/* Partner-logo strip: 2 cols on mobile, 4 on desktop */
.grid-lines.partners-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 64rem) { .grid-lines.partners-grid { grid-template-columns: repeat(4, 1fr); } }

/* Workflow steps: 2 cols on small screens, 4 from desktop up */
@media (min-width: 30rem) { .grid-lines.workflow-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .grid-lines.workflow-list { grid-template-columns: repeat(4, 1fr); } }

.capability-card { min-height: 16rem; }
.capability-card .eyebrow { display: block; }
.capability-card h3 { margin-top: 3rem; font-size: 1.25rem; }
.capability-card p { margin-top: 1rem; max-width: 22rem; font-size: 0.9rem; line-height: 1.75; color: var(--color-text-muted); white-space: pre-line; }

.section-band { background: var(--color-secondary-bg); border-block: 1px solid var(--color-border); }
.section-head {
  margin-bottom: 3.5rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.section-head h2 { margin-top: 1rem; font-size: 1.85rem; }
.section-head .more-link { display: none; align-items: center; gap: 0.5rem; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.14em; }
@media (min-width: 48rem) { .section-head .more-link { display: flex; } }

/* Partner logos */
.partners-strip { padding-block: 40px; }
.partners-strip .eyebrow { display: block; text-align: center; margin-bottom: 2rem; color: var(--color-text-muted); letter-spacing: 0.2em; }
.partner-logo {
  display: grid;
  place-items: center;
  height: 6rem;
  padding: 0.5rem;
  text-align: center;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  filter: grayscale(1);
}
.partner-logo img {
  display: block;
  width: 9rem;
  height: 3rem;
  max-width: 100%;
  object-fit: contain;
}

/* Consultation CTA band */
.consultation-band { background: var(--color-secondary-bg); }
.consultation-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 4rem;
}
.consultation-inner h2 { margin-top: 0.5rem; font-size: 1.85rem; }
@media (min-width: 48rem) {
  .consultation-inner { flex-direction: row; align-items: center; }
}

/* Services page */
.service-row {
  display: grid;
  gap: 2.5rem;
  border-bottom: 1px solid var(--color-border);
  padding-block: 4rem;
}
.service-row h2 { margin-top: 1.5rem; max-width: 32rem; font-size: 1.75rem; line-height: 1.25; }
.service-row p { margin-top: 1.5rem; max-width: 32rem; font-size: 0.9rem; line-height: 1.75; color: var(--color-text-muted); }
.service-row ul { margin-top: 2rem; border-top: 1px solid var(--color-border); }
.service-row li { border-bottom: 1px solid var(--color-border); padding-block: 1rem; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; }
.service-row img { aspect-ratio: 4 / 3; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 48rem) {
  .service-row { grid-template-columns: 1fr 1fr; padding-block: 6rem; }
  .service-row.reverse .service-copy { order: 2; }
}

/* Trade partners page */
.pillar-card { padding: 2rem; }
.pillar-card .eyebrow { color: var(--color-accent); }
.pillar-card h2 { margin-top: 4rem; font-size: 1.4rem; }
.pillar-card p { margin-top: 1.25rem; font-size: 0.9rem; line-height: 1.75; color: var(--color-text-muted); }
@media (min-width: 64rem) { .pillar-card { padding: 2.5rem; } }

.workflow-section { background: var(--color-text); color: var(--color-bg); }
.workflow-head { display: grid; gap: 1.5rem; }
.workflow-head h2 { font-size: 2rem; }
@media (min-width: 48rem) { .workflow-head { grid-template-columns: repeat(2, 1fr); } }
.workflow-step { position: relative; padding: 1.75rem; }
.workflow-step .eyebrow { color: var(--color-accent); }
.workflow-step h3 { margin-top: 3.5rem; font-size: 1.1rem; }
.workflow-step p { margin-top: 1rem; font-size: 0.9rem; line-height: 1.75; color: rgba(248,249,250,0.6); }
.workflow-step .arrow { position: absolute; right: 1rem; top: 1.5rem; color: var(--color-accent); display: none; }
@media (min-width: 64rem) { .workflow-step .arrow { display: block; } }
.workflow-list { margin-top: 4rem; }

/* Portfolio gallery */
.gallery-grid {
  display: grid;
  gap: 1px;
  background: var(--color-border);
}
@media (min-width: 30rem) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 0;
  padding: 0;
  cursor: zoom-in;
  overflow: hidden;
  background: var(--color-secondary-bg);
	font: inherit;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-item:hover img { transform: scale(1.03); }
.gallery-caption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
	gap: 1rem;
  background: rgba(30,36,43,0.85);
  padding: 1.1rem;
	text-align: left;
  color: var(--color-bg);
}
.gallery-caption-copy { display: grid; gap: 0.45rem; }
.gallery-title { font-size: 0.85rem; font-weight: 500; }
.gallery-description { font-size: 0.7rem; line-height: 1.5; color: rgba(248,249,250,0.72); }
.gallery-caption svg { width: 1rem; height: 1rem; color: var(--color-accent); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0,0,0,0.85);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.lightbox.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.lightbox img { max-height: 85vh; width: auto; max-width: 100%; object-fit: contain; }
.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  background: none;
  border: 1px solid rgba(248,249,250,0.4);
  color: var(--color-bg);
  cursor: pointer;
}
.lightbox-open { overflow: hidden; }

/* Contact page */
.contact-layout { display: grid; gap: 3.5rem; padding-block: 4rem; }
@media (min-width: 48rem) { .contact-layout { grid-template-columns: 0.72fr 1.28fr; padding-block: 6rem; } }
.contact-details { display: grid; gap: 1.75rem; margin-top: 2rem; font-size: 0.9rem; }
.contact-details .field-label { display: block; font-size: 0.7rem; color: var(--color-text-muted); margin-bottom: 0.4rem; }
.contact-details a:hover { color: var(--color-accent); }
.contact-details p { line-height: 1.75; color: var(--color-text-muted); }
.contact-details .contact-legal-disclosure { margin-top: 0.25rem; max-width: 24rem; font-size: 0.75rem; line-height: 1.6; color: var(--color-text-muted); }
.contact-form { display: grid; gap: 1.75rem; }
@media (min-width: 40rem) { .contact-form { grid-template-columns: repeat(2, 1fr); } }
.form-field { display: grid; gap: 0.5rem; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; }
.form-field.wide { grid-column: 1 / -1; }
.form-field input,
.form-field select,
.form-field textarea {
  height: 3.25rem;
  border: 1px solid var(--color-text);
  border-opacity: 0.2;
  border-color: rgba(30,36,43,0.25);
  background: transparent;
  padding: 0 1rem;
  font-family: var(--font-primary);
  font-size: 0.9rem;
  text-transform: none;
  letter-spacing: normal;
  color: var(--color-text);
}
.form-field textarea { height: auto; padding: 0.85rem 1rem; resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { outline: none; border-color: var(--color-accent); }
.form-submit { grid-column: 1 / -1; }
.contact-form-honeypot { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.contact-form-status { grid-column: 1 / -1; min-height: 1.5em; margin: 0; font-size: 0.8rem; }
.contact-form-status.is-success { color: var(--color-accent); }
.contact-form-status.is-error { color: #a33a2b; }

/* Quiet motion: opacity and transforms only, with no hidden content before JS runs. */
@media (prefers-reduced-motion: no-preference) {
  .motion-ready .site-header { animation: sp-header-in .45s ease both; }
  .motion-ready .hero > img { animation: sp-hero-image-in 1.2s ease both; }
  .motion-ready .hero-content > .eyebrow { animation: sp-hero-content-in .55s .12s ease both; }
  .motion-ready .hero-content > h1 { animation: sp-hero-content-in .65s .2s ease both; }
  .motion-ready .hero-meta { animation: sp-hero-content-in .65s .3s ease both; }
  .motion-ready .hero-arrow { animation: sp-hero-content-in .55s .42s ease both; }
  .motion-ready .page-intro > .eyebrow { animation: sp-hero-content-in .5s .08s ease both; }
  .motion-ready .page-intro > div { animation: sp-hero-content-in .6s .16s ease both; }

  .brand-mark { transition: transform .3s ease, background-color .3s ease, color .3s ease; }
  .brand:hover .brand-mark,
  .brand:focus-visible .brand-mark { transform: rotate(-4deg) scale(1.05); background: var(--color-accent); color: var(--color-bg); }
  .main-nav a::after { transition: transform .25s ease; }
  .nav-toggle svg { transition: transform .25s ease, opacity .2s ease; }
  .nav-toggle[aria-expanded="true"] svg { transform: rotate(90deg); }
  .mobile-nav {
    transform: translateY(-12px);
    transition: opacity .28s ease, transform .28s ease, visibility 0s linear .28s;
  }
  .mobile-nav.is-open {
    transform: translateY(0);
    transition: opacity .28s ease, transform .28s ease, visibility 0s;
  }
  .mobile-nav li {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .32s ease, transform .32s ease;
  }
  .mobile-nav.is-open li {
    opacity: 1;
    transform: translateY(0);
    transition-delay: calc((var(--menu-item-index, 0) + 1) * 45ms);
  }
  .mobile-nav li:nth-child(1) { --menu-item-index: 0; }
  .mobile-nav li:nth-child(2) { --menu-item-index: 1; }
  .mobile-nav li:nth-child(3) { --menu-item-index: 2; }
  .mobile-nav li:nth-child(4) { --menu-item-index: 3; }
  .mobile-nav li:nth-child(5) { --menu-item-index: 4; }
  .mobile-nav li:nth-child(6) { --menu-item-index: 5; }
  .reveal-on-scroll {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .55s ease var(--reveal-delay, 0ms), transform .55s ease var(--reveal-delay, 0ms);
  }
  .reveal-on-scroll.is-revealed {
    opacity: 1;
    transform: translateY(0);
  }
  .btn svg,
  .more-link svg,
  .workflow-step .arrow {
    transition: transform .22s ease;
  }
  .btn:hover svg,
  .btn:focus-visible svg,
  .more-link:hover svg,
  .more-link:focus-visible svg {
    transform: translate(3px, -3px);
  }
  .workflow-step:hover .arrow { transform: translateX(4px); }
  .btn { transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .22s ease, box-shadow .22s ease; }
  .btn:hover,
  .btn:focus-visible { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(30,36,43,.12); }
  .capability-card,
  .pillar-card,
  .workflow-step { transition: background-color .3s ease, transform .3s ease; }
  .capability-card h3,
  .pillar-card h2,
  .workflow-step h3 { transition: transform .3s ease, color .3s ease; }
  .capability-card:hover,
  .pillar-card:hover { background: rgba(197,160,89,.07); transform: translateY(-3px); }
  .workflow-step:hover { background: rgba(248,249,250,.035); transform: translateY(-3px); }
  .capability-card:hover h3,
  .pillar-card:hover h2,
  .workflow-step:hover h3 { transform: translateY(-3px); }
  .partner-logo { transition: background-color .3s ease; }
  .partner-logo img { transition: transform .35s ease, opacity .35s ease; opacity: .72; }
  .partner-logo:hover { background: rgba(197,160,89,.06); }
  .partner-logo:hover img { transform: scale(1.06); opacity: 1; }
  .service-row img { transition: transform .6s ease, filter .6s ease; }
  .service-row:hover img { transform: scale(1.015); filter: contrast(1.03); }
  .gallery-caption { transition: background-color .3s ease, padding-bottom .3s ease; }
  .gallery-item:hover .gallery-caption { background: rgba(30,36,43,.94); padding-bottom: 1.3rem; }
  .lightbox { transition: opacity .25s ease, visibility 0s linear .25s; }
  .lightbox.is-open { transition: opacity .25s ease, visibility 0s; }
  .lightbox img { transform: scale(.97); transition: transform .3s ease; }
  .lightbox.is-open img { transform: scale(1); }
  .hero-arrow svg { animation: sp-arrow-drift 3s ease-in-out infinite; }
  @keyframes sp-header-in {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes sp-hero-image-in {
    from { opacity: 0; transform: scale(1.035); }
    to { opacity: .65; transform: scale(1); }
  }
  @keyframes sp-hero-content-in {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes sp-arrow-drift {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .main-nav a, .main-nav a::after, .gallery-item img, .btn svg, .more-link svg, .workflow-step .arrow, .lightbox, .lightbox img { transition: none; }
  .reveal-on-scroll { opacity: 1; transform: none; transition: none; }
  .hero-arrow svg { animation: none; }
}
