:root {
  --radius: 6px;
  --shadow: var(--panel-shadow);
  --max: 1140px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
}

body {
  overflow-x: clip;
}

.site-header,
main,
section,
.site-footer {
  overflow-x: clip;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 1.4rem;
}

body {
  font-family: "Open Sans", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

html {
  scrollbar-width: thin;
  scrollbar-color: var(--highlight-strong) var(--bg);
}

*::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}

*::-webkit-scrollbar-track {
  background: var(--bg);
}

*::-webkit-scrollbar-thumb {
  border-radius: 999px;
  border: 2px solid var(--bg);
  background: linear-gradient(
    180deg,
    var(--highlight-strong),
    var(--primary),
    var(--accent),
    var(--highlight-strong)
  );
  background-size: 100% 240%;
  animation: scrollbarThumbFlow 12s linear infinite;
}

*::-webkit-scrollbar-thumb:hover {
  background-size: 100% 180%;
  animation-duration: 6s;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  background: var(--white);
  color: var(--skip-link-text);
  border: 2px solid var(--focus-ring);
  border-radius: var(--radius);
  padding: 0.5rem 0.8rem;
  z-index: 200;
  font-weight: 700;
}

.skip-link:focus {
  top: 0.75rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(100% - 2.4rem, var(--max));
  margin-inline: auto;
}

.topbar {
  background: var(--topbar-bg);
  color: var(--topbar-text);
  font-size: 0.82rem;
  padding: 0.5rem 0;
}

.topbar-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.5rem;
}

.topbar-inner a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  border-bottom: 0;
  transform: translateY(0);
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 520ms ease,
    background-color 520ms ease, backdrop-filter 520ms ease;
}

.site-header.scrolled {
  box-shadow: var(--header-shadow);
  background: var(--header-bg-scrolled);
  backdrop-filter: blur(6px);
}

.site-header.is-hidden {
  transform: translateY(-104%);
}

.site-header.is-floating {
  top: 0.6rem;
  width: min(100% - 1.4rem, var(--max));
  margin-inline: auto;
  border: 1px solid var(--header-border);
  border-radius: 20px;
  box-shadow: 0 18px 32px rgba(12, 12, 12, 0.22);
  overflow: hidden;
}

.site-header.is-floating::after {
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0;
  border-radius: 999px;
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    var(--header-border),
    var(--highlight-strong),
    var(--accent),
    var(--header-border)
  );
  background-size: 220% 100%;
  animation: headerLineFlow 18s linear infinite;
  pointer-events: none;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    90deg,
    var(--header-border),
    var(--highlight-strong),
    var(--accent),
    var(--header-border)
  );
  background-size: 220% 100%;
  background-position: 0% 50%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 320ms ease;
  pointer-events: none;
}

.site-header.is-floating::before {
  opacity: 1;
  animation: headerLineFlow 18s linear infinite;
}

.site-header.is-floating::after {
  opacity: 0;
}

.nav {
  min-height: 5rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  transition: min-height 520ms ease;
}

.site-header.scrolled .nav {
  min-height: 4.35rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-right: auto;
}

.logo strong {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: 1.02rem;
}

.logo small {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.logo-badge {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  display: grid;
  place-content: center;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  color: var(--white);
  background: var(--logo-badge-gradient);
}

.menu {
  display: flex;
  justify-content: flex-end;
  gap: 1.25rem;
  font-weight: 700;
  font-family: "Montserrat", sans-serif;
  font-size: 0.89rem;
  text-transform: uppercase;
}

.menu a {
  position: relative;
}

.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 700ms ease;
  background: linear-gradient(
    90deg,
    var(--header-border),
    var(--highlight-strong),
    var(--accent),
    var(--header-border)
  );
  background-size: 220% 100%;
}

.menu a:hover::after,
.menu a:focus-visible::after {
  transform: scaleX(1);
  animation: headerLineFlow 18s linear infinite;
}

.nav-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.4rem;
  padding-left: 0.9rem;
  border-left: 1px solid var(--line);
}

.theme-toggle {
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-content: center;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 50%;
  background:
    linear-gradient(var(--white), var(--white)) padding-box,
    linear-gradient(90deg, var(--line), var(--line)) border-box;
  background-size: 100% 100%, 220% 100%;
  background-position: 0 0, 0% 50%;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 300ms ease, background-color 300ms ease, border-color 300ms ease,
    color 300ms ease;
}

#theme-toggle-icon {
  display: block;
  line-height: 1;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  background:
    linear-gradient(var(--white), var(--white)) padding-box,
    linear-gradient(
        90deg,
        var(--header-border),
        var(--highlight-strong),
        var(--accent),
        var(--header-border)
      )
      border-box;
  background-size: 100% 100%, 220% 100%;
  background-position: 0 0, 0% 50%;
  animation: themeToggleBorderFlow 18s linear infinite;
}

.theme-toggle:focus-visible {
  background:
    linear-gradient(var(--white), var(--white)) padding-box,
    linear-gradient(
        90deg,
        var(--header-border),
        var(--highlight-strong),
        var(--accent),
        var(--header-border)
      )
      border-box;
  background-size: 100% 100%, 220% 100%;
  background-position: 0 0, 0% 50%;
  animation: themeToggleBorderFlow 18s linear infinite;
}

.menu-toggle {
  display: none;
  font-size: 1.6rem;
  border: 0;
  background: transparent;
  color: var(--primary);
}

.hero {
  position: relative;
  min-height: 86vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--hero-bg);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: background-image 1800ms ease, transform 2200ms cubic-bezier(0.16, 1, 0.3, 1);
  animation: slowZoom 34s linear infinite;
}

.hero:hover .hero-bg,
.hero:focus-within .hero-bg {
  transform: scale(1.12);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 2rem;
  align-items: center;
  padding: 5.2rem 0;
}

.hero-content {
  color: var(--hero-text);
  max-width: 42rem;
}

.kicker,
.section-kicker {
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.79rem;
  font-weight: 700;
  color: var(--highlight-strong);
}

.hero .kicker {
  color: var(--highlight-strong);
}

h1,
h2,
h3 {
  margin: 0 0 0.75rem;
  line-height: 1.2;
  font-family: "Montserrat", sans-serif;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.45rem);
}

h2 {
  font-size: clamp(1.65rem, 3vw, 2.45rem);
}

.hero p {
  margin: 0;
  max-width: 39rem;
  color: var(--hero-text);
}

.hero-actions {
  margin-top: 1.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  position: relative;
  overflow: hidden;
  min-height: 2.9rem;
  padding: 0.3rem 1.3rem;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: "Montserrat", sans-serif;
  border: 1px solid transparent;
  transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1),
    background-color 700ms ease, color 700ms ease, box-shadow 700ms ease,
    border-color 700ms ease;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -30%;
  width: 24%;
  background: linear-gradient(105deg, transparent 0%, var(--btn-gloss) 50%, transparent 100%);
  transform: skewX(-18deg);
  opacity: 0;
  transition: left 1400ms cubic-bezier(0.16, 1, 0.3, 1), opacity 800ms ease;
  pointer-events: none;
}

.btn:hover {
  transform: translateY(-4px) scale(1.03);
}

.btn:hover::before {
  left: 112%;
  opacity: 1;
}

.btn:active {
  transform: translateY(-1px) scale(0.99);
}

.hero .btn:hover,
.contact .btn:hover {
  transform: translateY(-4px);
}

.hero .btn:active,
.contact .btn:active {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--btn-primary-text);
}

.btn-primary:hover {
  background: var(--btn-primary-hover);
  box-shadow: var(--btn-primary-shadow);
}

.btn-light {
  background: transparent;
  color: var(--hero-text);
  border-color: var(--btn-light-border);
}

.btn-light:hover {
  background: var(--btn-light-hover-bg);
  border-color: var(--highlight-strong);
  box-shadow: var(--btn-light-shadow);
}

.hero-card {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border-top: 4px solid var(--highlight-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.2rem 1.2rem 1rem;
  transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 900ms cubic-bezier(0.16, 1, 0.3, 1), border-top-color 800ms ease,
    background-color 800ms ease;
}

.hero-card > * {
  position: relative;
  z-index: 2;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: -12%;
  background: linear-gradient(
    115deg,
    transparent 0%,
    var(--hero-card-contrast-1) 16%,
    var(--hero-card-contrast-2) 34%,
    var(--hero-card-contrast-3) 52%,
    var(--hero-card-contrast-1) 70%,
    var(--hero-card-contrast-2) 86%,
    transparent 100%
  );
  background-size: 240% 240%;
  background-position: 0% 50%;
  transform: translate3d(0, 0, 0) scale(1.05);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
  animation: none;
  transition: opacity 800ms ease;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 0%,
    transparent 35%,
    var(--highlight-soft) 50%,
    transparent 65%,
    transparent 100%
  );
  transform: translateX(-120%);
  opacity: 0;
  transition: transform 1400ms cubic-bezier(0.16, 1, 0.3, 1), opacity 900ms ease;
  z-index: 3;
  pointer-events: none;
}

.hero-card:hover,
.hero-card.mobile-scroll-active {
  transform: translateY(-12px) scale(1.045);
  box-shadow: 0 30px 56px rgba(12, 12, 12, 0.28), 0 0 0 1px var(--highlight-strong),
    0 0 0 8px var(--highlight-soft);
  border-top-color: var(--highlight-strong);
  background-color: var(--white);
}

.hero-card:hover::after,
.hero-card:focus-within::after,
.hero-card.mobile-scroll-active::after {
  opacity: 1;
  animation: heroCardFlow 7.5s linear infinite;
}

.hero-card:hover::before,
.hero-card.mobile-scroll-active::before {
  transform: translateX(120%);
  opacity: 1;
}

.hero-card h3 {
  font-size: 1.1rem;
}

.hero-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-card li {
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--line);
}

.hero-card li:last-child {
  border-bottom: 0;
}

main section {
  padding: 5rem 0;
}

#main-content section[id],
main section[id],
footer[id] {
  scroll-margin-top: 1.4rem;
}

.services {
  background: var(--bg);
}

.services-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.service {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(var(--white), var(--white)) padding-box,
    linear-gradient(120deg, var(--line), var(--line)) border-box;
  border: 1px solid transparent;
  padding: 1.3rem 1.1rem;
  border-radius: var(--radius);
  transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 900ms cubic-bezier(0.16, 1, 0.3, 1), background-position 1400ms ease;
  background-size: 100% 100%, 220% 100%;
  background-position: 0 0, 0% 50%;
}

.service h3,
.service p {
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

.service::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 0%,
    transparent 35%,
    var(--highlight-soft) 50%,
    transparent 65%,
    transparent 100%
  );
  transform: translateX(-120%);
  opacity: 0;
  transition: transform 1400ms cubic-bezier(0.16, 1, 0.3, 1), opacity 900ms ease;
  pointer-events: none;
}

.service::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    90deg,
    var(--header-border),
    var(--highlight-strong),
    var(--accent),
    var(--header-border)
  );
  background-size: 220% 100%;
  background-position: 0% 50%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transform: scale(0.985);
  transition: opacity 1600ms ease, transform 1600ms cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.service:hover,
.service:focus-within,
.service.mobile-scroll-active {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 24px 42px rgba(12, 12, 12, 0.22), 0 0 0 1px var(--highlight-strong),
    0 0 0 8px var(--highlight-soft);
  background:
    linear-gradient(var(--white), var(--white)) padding-box,
    linear-gradient(
        90deg,
        var(--header-border),
        var(--highlight-strong),
        var(--accent),
        var(--header-border)
      )
      border-box;
  background-size: 100% 100%, 220% 100%;
  background-position: 0 0, 0% 50%;
  animation: headerLineFlow 18s linear infinite;
}

.service:hover::before,
.service:focus-within::before,
.service.mobile-scroll-active::before {
  transform: translateX(120%);
  opacity: 1;
}

.service:hover::after,
.service:focus-within::after,
.service.mobile-scroll-active::after {
  opacity: 1;
  transform: scale(1);
  animation: headerLineFlow 18s linear infinite;
}

.icon {
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-content: center;
  border-radius: 50%;
  font-family: "Montserrat", sans-serif;
  font-size: 0.84rem;
  color: var(--white);
  background: var(--logo-badge-gradient);
  margin-bottom: 0.8rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.about-image {
  position: relative;
  overflow: hidden;
  min-height: 25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: box-shadow 1200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.about-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--about-image-overlay),
    url("../media/IMG_2126.jpg") center / cover;
  transform: scale(1);
  transition: transform 1200ms cubic-bezier(0.16, 1, 0.3, 1), filter 1200ms ease;
  filter: saturate(1.18) brightness(1.18);
}

.about-image:hover,
.about-image:focus-within {
  box-shadow: 0 28px 56px rgba(12, 12, 12, 0.25);
}

.about-image:hover::before,
.about-image:focus-within::before {
  transform: scale(1.08);
  filter: saturate(1.58) brightness(1.58);
}

.progress-list {
  margin-top: 1.45rem;
  display: grid;
  gap: 0.95rem;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.32rem;
  font-weight: 700;
  font-size: 0.9rem;
}

.progress-track {
  height: 0.5rem;
  border-radius: 999px;
  background: var(--progress-track-bg);
  overflow: hidden;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--progress-fill);
  transition: width 3400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.stats {
  background: var(--stats-overlay),
    url("../media/parallax-scott-graham.jpg") center / cover fixed;
  color: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  text-align: center;
}

.stats strong {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.9rem, 4vw, 3rem);
  color: var(--accent);
}

.stats span {
  color: var(--stats-text);
  font-weight: 600;
}

.process {
  background: var(--bg);
}

.center {
  text-align: center;
}

.process-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  align-items: stretch;
}

.process-grid article {
  position: relative;
  overflow: hidden;
  height: 100%;
  padding: 1.1rem;
  border-radius: var(--radius);
  background:
    linear-gradient(var(--white), var(--white)) padding-box,
    linear-gradient(120deg, var(--line), var(--line)) border-box;
  border: 1px solid transparent;
  transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 900ms cubic-bezier(0.16, 1, 0.3, 1), background-position 1400ms ease;
  background-size: 100% 100%, 220% 100%;
  background-position: 0 0, 0% 50%;
}

.process-grid article h3,
.process-grid article p {
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

.process-grid article::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 0%,
    transparent 35%,
    var(--highlight-soft) 50%,
    transparent 65%,
    transparent 100%
  );
  transform: translateX(-120%);
  opacity: 0;
  transition: transform 1400ms cubic-bezier(0.16, 1, 0.3, 1), opacity 900ms ease;
  pointer-events: none;
}

.process-grid article::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    90deg,
    var(--header-border),
    var(--highlight-strong),
    var(--accent),
    var(--header-border)
  );
  background-size: 220% 100%;
  background-position: 0% 50%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transform: scale(0.985);
  transition: opacity 1600ms ease, transform 1600ms cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.process-grid article:hover,
.process-grid article:focus-within,
.process-grid article.mobile-scroll-active {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 24px 42px rgba(12, 12, 12, 0.22), 0 0 0 1px var(--highlight-strong),
    0 0 0 8px var(--highlight-soft);
  background:
    linear-gradient(var(--white), var(--white)) padding-box,
    linear-gradient(
        90deg,
        var(--header-border),
        var(--highlight-strong),
        var(--accent),
        var(--header-border)
      )
      border-box;
  background-size: 100% 100%, 220% 100%;
  background-position: 0 0, 0% 50%;
  animation: headerLineFlow 18s linear infinite;
}

.process-grid article:hover::before,
.process-grid article:focus-within::before,
.process-grid article.mobile-scroll-active::before {
  transform: translateX(120%);
  opacity: 1;
}

.process-grid article:hover::after,
.process-grid article:focus-within::after,
.process-grid article.mobile-scroll-active::after {
  opacity: 1;
  transform: scale(1);
  animation: headerLineFlow 18s linear infinite;
}

.process-grid article span {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-content: center;
  border-radius: 50%;
  color: var(--white);
  font-family: "Montserrat", sans-serif;
  background: var(--highlight-strong);
  margin-bottom: 0.6rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.contact-form {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border: 1px solid transparent;
  box-shadow: var(--shadow);
  padding: 1.3rem 1.25rem;
  border-radius: var(--radius);
  display: grid;
  gap: 0.85rem;
  background:
    linear-gradient(var(--white), var(--white)) padding-box,
    linear-gradient(120deg, var(--line), var(--line)) border-box;
  background-size: 100% 100%, 220% 100%;
  background-position: 0 0, 0% 50%;
  transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 900ms cubic-bezier(0.16, 1, 0.3, 1), background-position 1400ms ease;
}

.contact-form::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 0%,
    transparent 35%,
    var(--highlight-soft) 50%,
    transparent 65%,
    transparent 100%
  );
  transform: translateX(-120%);
  opacity: 0;
  transition: transform 1400ms cubic-bezier(0.16, 1, 0.3, 1), opacity 900ms ease;
  pointer-events: none;
}

.contact-form::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    90deg,
    var(--header-border),
    var(--highlight-strong),
    var(--accent),
    var(--header-border)
  );
  background-size: 220% 100%;
  background-position: 0% 50%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transform: scale(0.985);
  transition: opacity 1600ms ease, transform 1600ms cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.contact-form:hover,
.contact-form:focus-within,
.contact-form.mobile-scroll-active {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 24px 42px rgba(12, 12, 12, 0.22), 0 0 0 1px var(--highlight-strong),
    0 0 0 8px var(--highlight-soft);
  background:
    linear-gradient(var(--white), var(--white)) padding-box,
    linear-gradient(
        90deg,
        var(--header-border),
        var(--highlight-strong),
        var(--accent),
        var(--header-border)
      )
      border-box;
  background-size: 100% 100%, 220% 100%;
  background-position: 0 0, 0% 50%;
  animation: headerLineFlow 18s linear infinite;
}

.contact-form:hover::before,
.contact-form:focus-within::before,
.contact-form.mobile-scroll-active::before {
  transform: translateX(120%);
  opacity: 1;
}

.contact-form:hover::after,
.contact-form:focus-within::after,
.contact-form.mobile-scroll-active::after {
  opacity: 1;
  transform: scale(1);
  animation: headerLineFlow 18s linear infinite;
}

.contact-card-header {
  display: grid;
  gap: 0.2rem;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 0.7rem;
}

.contact-name {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
}

.contact-role {
  margin: 0;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.contact .btn-light {
  color: var(--primary);
  border-color: var(--line);
  background: transparent;
}

.contact .btn-light:hover {
  background: var(--bg);
  border-color: var(--highlight-strong);
  box-shadow: var(--btn-light-shadow);
}

.contact-phone {
  margin: 0.35rem 0 0;
  font-weight: 600;
}

.contact-phone a {
  font-weight: 700;
  color: var(--primary);
}

.contact-form label {
  font-weight: 700;
  font-size: 0.92rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--input-border);
  border-radius: 4px;
  padding: 0.72rem;
  font: inherit;
  color: var(--ink);
  background: var(--white);
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--focus-ring);
  outline: none;
  box-shadow: var(--input-focus-shadow);
}

.form-feedback {
  min-height: 1.2rem;
  margin: 0;
  font-size: 0.9rem;
  color: var(--feedback-text);
}

.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 2rem 0 1.05rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.footer-grid h3 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  color: var(--color-light-2);
}

.footer-grid p {
  margin: 0.25rem 0;
  font-size: 0.78rem;
  line-height: 1.45;
}

.footer-list {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
}

.footer-list li {
  margin: 0.22rem 0;
  font-size: 0.78rem;
  line-height: 1.45;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.35rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.4;
}

.footer-grid a,
.footer-bottom a {
  color: var(--highlight-strong);
  font-weight: 700;
  font-size: 0.78rem;
}

.legal-main {
  padding: 4rem 0;
  background: var(--bg);
}

.legal-card {
  background: transparent;
  color: var(--ink);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.legal-card + .legal-card {
  margin-top: 1.75rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.legal-card h2 {
  margin-bottom: 0.45rem;
}

.legal-card p,
.legal-card li {
  overflow-wrap: anywhere;
}

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
}

.js .reveal[data-animate="left"] {
  transform: translateX(-32px);
}

.js .reveal[data-animate="right"] {
  transform: translateX(32px);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translate(0, 0);
  transition:scale 250ms, opacity 2200ms ease, transform 2200ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 250ms;
}

@keyframes slowZoom {
  0% {
    transform: scale(1.03);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1.03);
  }
}

@keyframes heroCardFlow {
  0% {
    background-position: 0% 50%;
    transform: translate3d(-1%, 0, 0) scale(1.04);
    filter: saturate(1.1);
  }
  100% {
    background-position: 100% 50%;
    transform: translate3d(1%, 0, 0) scale(1.1);
    filter: saturate(1.25);
  }
}

@keyframes headerLineFlow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 220% 50%;
  }
}

@keyframes themeToggleBorderFlow {
  0% {
    background-position: 0 0, 0% 50%;
  }
  100% {
    background-position: 0 0, 220% 50%;
  }
}

@keyframes scrollbarThumbFlow {
  0% {
    background-position: 50% 0%;
  }
  100% {
    background-position: 50% 100%;
  }
}

@media (max-width: 1024px), (max-height: 740px) {
  .site-header {
    overflow: visible;
  }

  .nav {
    position: relative;
  }

  .menu-toggle {
    display: inline-block;
  }

  .menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 60;
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--header-shadow);
    padding: 0.9rem 1.2rem 1rem;
  }

  .nav-controls {
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
  }

  .js .menu {
    display: none;
  }

  .js .menu.open {
    display: flex;
  }
}

@media (max-width: 1024px) {
  .site-header.is-floating {
    top: 0;
    width: 100%;
    border: 0;
    border-radius: 0;
    box-shadow: var(--header-shadow);
    overflow: visible;
  }

  .site-header.is-floating::before {
    opacity: 0;
  }

  .site-header.is-floating::after {
    opacity: 1;
  }

  .topbar {
    display: none;
  }

  .nav {
    min-height: 4.25rem;
  }

  .hero-layout,
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 82vh;
  }

  .hero-layout {
    padding: 3.6rem 0 2.6rem;
  }

  .services-grid,
  .stats-grid,
  .process-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    padding: 1.4rem 0 0.8rem;
  }

  .footer-grid {
    gap: 0.9rem;
  }

  .footer-grid h3 {
    margin-bottom: 0.3rem;
  }

  .footer-grid p {
    margin: 0.15rem 0;
  }

  .footer-list {
    margin: 0.25rem 0 0;
    padding-left: 0.9rem;
  }

  .footer-list li {
    margin: 0.12rem 0;
  }

  .footer-bottom {
    margin-top: 0.85rem;
    padding-top: 0.6rem;
    gap: 0.5rem;
  }

  .about-image {
    box-shadow: 0 28px 56px rgba(12, 12, 12, 0.25);
  }

  .about-image::before {
    transform: scale(1.08);
    filter: saturate(1.58) brightness(1.58);
  }
}

@media (max-width: 760px) and (max-height: 740px) {
  .hero {
    min-height: auto;
  }

  .hero-layout {
    gap: 0.9rem;
    padding: 1.7rem 0 2rem;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero .kicker {
    margin-bottom: 0.45rem;
    font-size: 0.72rem;
  }

  .hero h1 {
    font-size: clamp(1.35rem, 5.8vh, 1.85rem);
    margin-bottom: 0.5rem;
  }

  .hero #hero-text {
    font-size: 0.95rem;
    line-height: 1.45;
  }

  .hero-actions {
    margin-top: 1rem;
    gap: 0.5rem;
  }

  .hero-actions .btn {
    min-height: 2.45rem;
    padding: 0.2rem 0.8rem;
  }

  .hero-card {
    padding: 0.9rem 0.85rem 0.75rem;
  }

  .hero-card h3 {
    font-size: 1rem;
  }

  .hero-card li {
    padding: 0.36rem 0;
    font-size: 0.9rem;
    line-height: 1.35;
  }
}

@media (max-width: 920px) and (max-height: 520px) and (orientation: landscape) {
  .hero {
    min-height: auto;
  }

  .hero-layout {
    gap: 0.65rem;
    padding: 1.35rem 0 1.2rem;
  }

  .hero .kicker {
    display: none;
  }

  .hero h1 {
    font-size: clamp(1.18rem, 4.8vh, 1.45rem);
    margin-bottom: 0.35rem;
    line-height: 1.15;
  }

  .hero #hero-text {
    font-size: 0.88rem;
    line-height: 1.35;
    max-width: 100%;
  }

  .hero-actions {
    margin-top: 0.65rem;
    gap: 0.45rem;
  }

  .hero-actions .btn {
    min-height: 2.2rem;
    padding: 0.15rem 0.7rem;
    font-size: 0.8rem;
  }

  .hero-card {
    display: none;
  }
}

@media (max-width: 400px) {
  .container {
    width: min(100% - 0.9rem, var(--max));
  }

  .nav {
    min-height: 3.9rem;
    gap: 0.4rem;
  }

  .logo strong {
    font-size: 0.86rem;
  }

  .logo small {
    display: none;
  }

  .logo-badge,
  .theme-toggle,
  .menu-toggle {
    width: 1.9rem;
    height: 1.9rem;
  }

  .menu-toggle {
    font-size: 1.3rem;
    line-height: 1;
  }

  .menu {
    padding: 0.7rem 0.65rem 0.8rem;
    font-size: 0.78rem;
  }

  .hero-layout {
    padding: 2.2rem 0 2.4rem;
    gap: 0.9rem;
  }

  .hero .kicker {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
  }

  h1 {
    font-size: 1.38rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  .hero #hero-text {
    font-size: 0.92rem;
  }

  .hero-actions .btn {
    min-height: 2.45rem;
    font-size: 0.83rem;
    padding: 0.2rem 0.75rem;
  }

  .hero-card h3 {
    font-size: 0.96rem;
  }

  .hero-card li {
    font-size: 0.84rem;
    padding: 0.3rem 0;
  }

  .service,
  .process-grid article {
    padding: 0.8rem 0.72rem;
  }

  .icon {
    width: 1.85rem;
    height: 1.85rem;
    font-size: 0.74rem;
  }

  .contact-form {
    padding: 0.8rem;
    gap: 0.55rem;
  }

  .contact-form label {
    font-size: 0.86rem;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 0.58rem;
    font-size: 0.92rem;
  }

  .footer-grid h3 {
    font-size: 0.9rem;
  }

  .footer-grid p,
  .footer-list li,
  .footer-bottom p,
  .footer-grid a,
  .footer-bottom a {
    font-size: 0.72rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

}
