:root {
  --navy-950: #020916;
  --navy-900: #06172e;
  --navy-800: #0b2a52;
  --navy-700: #123f72;
  --accent-600: #2e7fd0;
  --accent-500: #61aef7;
  --accent-300: #b9dcff;
  --paper: #f3f7fc;
  --white: #ffffff;
  --ink: #102039;
  --muted: #60738c;
  --line: #c9d9eb;
  --shadow: 0 24px 60px rgba(2, 9, 22, 0.18);
  --shadow-hover: 0 30px 74px rgba(2, 9, 22, 0.25);
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 8px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 94px;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: 9999;
}

body::before {
  inset: 0;
  background:
    radial-gradient(circle at 50% 46%, rgba(97, 174, 247, 0.22), transparent 34%),
    linear-gradient(135deg, rgba(2, 9, 22, 0.98), rgba(11, 42, 82, 0.98)),
    var(--navy-950);
  opacity: 0;
  clip-path: circle(0% at 50% 50%);
  transform: scale(0.98);
  transition: opacity 520ms var(--ease-smooth), clip-path 560ms var(--ease-smooth), transform 560ms var(--ease-smooth);
}

body::after {
  inset: 0;
  background:
    linear-gradient(115deg, transparent 0%, transparent 18%, rgba(185, 220, 255, 0.16) 18%, rgba(185, 220, 255, 0.16) 27%, transparent 27%, transparent 44%, rgba(97, 174, 247, 0.18) 44%, rgba(97, 174, 247, 0.18) 57%, transparent 57%, transparent 100%),
    linear-gradient(115deg, transparent 0%, transparent 64%, rgba(46, 127, 208, 0.16) 64%, rgba(46, 127, 208, 0.16) 76%, transparent 76%);
  opacity: 0;
  transform: translateX(-100%);
  transition: opacity 520ms var(--ease-out), transform 620ms var(--ease-smooth);
}

html.page-transitioning body {
  overflow: hidden;
}

html.page-transitioning body::before {
  opacity: 1;
  clip-path: circle(145% at 50% 50%);
  transform: scale(1);
}

html.page-transitioning body::after {
  opacity: 0.82;
  transform: translateX(0);
}

body.nav-open {
  overflow: hidden;
}

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

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

p,
h1,
h2,
h3 {
  margin-top: 0;
}

p {
  color: inherit;
}

ul {
  margin-top: 0;
}

.container {
  width: min(100% - 40px, var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(20px, 4vw, 48px);
  color: var(--white);
  background: rgba(6, 21, 44, 0.98);
  border-bottom: 1px solid rgba(97, 174, 247, 0.46);
  box-shadow: 0 14px 32px rgba(6, 21, 44, 0.24);
  backdrop-filter: blur(18px);
  transition: min-height 240ms var(--ease-out), padding 240ms var(--ease-out), box-shadow 240ms var(--ease-out), background 240ms var(--ease-out), opacity 300ms var(--ease-out), transform 300ms var(--ease-out);
  animation: headerEnter 540ms var(--ease-smooth);
}

.site-header.is-scrolled {
  min-height: 66px;
  background: rgba(6, 21, 44, 0.94);
  box-shadow: 0 18px 44px rgba(6, 21, 44, 0.3);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  color: var(--navy-950);
  background: linear-gradient(135deg, var(--accent-300), var(--accent-600));
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0;
  transition: transform 280ms var(--ease-out), box-shadow 280ms var(--ease-out);
}

.brand-mark svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.brand:hover .brand-mark,
.brand:focus-visible .brand-mark {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 14px 30px rgba(97, 174, 247, 0.28);
}

.brand-copy {
  display: grid;
  min-width: 0;
}

.brand-title {
  font-weight: 800;
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.brand-subtitle {
  color: var(--accent-300);
  font-size: 0.74rem;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.primary-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 700;
  font-size: 0.92rem;
  transition: color 220ms var(--ease-out), background 220ms var(--ease-out), transform 220ms var(--ease-out);
}

.nav-list a:hover,
.nav-list a:focus-visible,
.nav-list a.is-active {
  color: var(--white);
  background: rgba(97, 174, 247, 0.16);
  outline: none;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid rgba(185, 220, 255, 0.42);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: background 220ms var(--ease-out), border-color 220ms var(--ease-out), transform 220ms var(--ease-out);
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  background: rgba(97, 174, 247, 0.14);
  border-color: rgba(185, 220, 255, 0.8);
  outline: none;
  transform: translateY(-1px);
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--accent-300);
  transition: transform 220ms var(--ease-out), opacity 220ms var(--ease-out);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero,
.page-hero {
  position: relative;
  isolation: isolate;
  color: var(--white);
  overflow: hidden;
  background: var(--navy-950);
}

.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--hero-image, url("../images/kermena-hero.png"));
  background-size: cover;
  background-position: center right;
  filter: grayscale(0.18) hue-rotate(178deg) saturate(1.28) brightness(0.82);
  transform: scale(1);
  animation: heroImageSettleLayer 1200ms var(--ease-smooth) both;
}

.home-hero {
  min-height: calc(100vh - 180px);
  display: flex;
  align-items: center;
  padding: clamp(56px, 7vw, 86px) 0;
}

.page-hero {
  min-height: 380px;
  display: flex;
  align-items: center;
  padding: 86px 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(6, 21, 44, 0.96) 0%, rgba(6, 21, 44, 0.86) 42%, rgba(6, 21, 44, 0.38) 100%),
    linear-gradient(180deg, rgba(6, 21, 44, 0.2), rgba(6, 21, 44, 0.44));
  animation: overlayReveal 1000ms ease both;
}

.hero-content,
.page-hero-content {
  max-width: 860px;
}

.hero h1,
.page-hero h1 {
  margin-bottom: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 4.8vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-content .eyebrow,
.page-hero-content .eyebrow,
.hero h1,
.page-hero h1,
.hero-subheadline,
.page-hero p:not(.eyebrow),
.hero-actions {
  animation: fadeRise 760ms var(--ease-smooth) both;
}

.hero h1,
.page-hero h1 {
  animation-delay: 90ms;
}

.hero-subheadline,
.page-hero p:not(.eyebrow) {
  animation-delay: 180ms;
}

.hero-actions {
  animation-delay: 270ms;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 4.7vw, 4.3rem);
}

.hero-subheadline,
.page-hero p:not(.eyebrow) {
  max-width: 650px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.06rem, 2vw, 1.35rem);
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--accent-500);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  line-height: 1.2;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform 240ms var(--ease-out), box-shadow 240ms var(--ease-out), background 240ms var(--ease-out), border-color 240ms var(--ease-out);
}

.button::after {
  content: "";
  position: absolute;
  inset: -40% -60%;
  z-index: -1;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.36) 50%, transparent 78%);
  transform: translateX(-120%) rotate(8deg);
  transition: transform 620ms var(--ease-smooth);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.button:hover::after,
.button:focus-visible::after {
  transform: translateX(120%) rotate(8deg);
}

.button-primary:hover,
.button-primary:focus-visible {
  box-shadow: 0 20px 42px rgba(46, 127, 208, 0.34);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(185, 220, 255, 0.92);
  background: rgba(255, 255, 255, 0.13);
}

.button-primary {
  color: var(--navy-950);
  background: linear-gradient(135deg, var(--accent-300), var(--accent-600));
  box-shadow: 0 16px 34px rgba(46, 127, 208, 0.26);
}

.button-secondary {
  color: var(--white);
  border-color: rgba(185, 220, 255, 0.58);
  background: rgba(255, 255, 255, 0.08);
}

.section {
  padding: clamp(68px, 8vw, 110px) 0;
}

.section-soft {
  background: #eaf2fb;
}

.section-navy {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(9, 27, 56, 0.98), rgba(16, 40, 77, 0.98)),
    var(--navy-900);
}

.section-navy p,
.section-navy li {
  color: rgba(255, 255, 255, 0.78);
}

.trust-strip {
  padding: 26px 0;
  color: var(--white);
  background: var(--navy-900);
  border-top: 1px solid rgba(97, 174, 247, 0.36);
  border-bottom: 1px solid rgba(97, 174, 247, 0.28);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.trust-grid > div {
  padding: 12px 18px;
  border-left: 1px solid rgba(97, 174, 247, 0.34);
}

.metric,
.metric-label {
  display: block;
}

.metric {
  color: var(--accent-300);
  font-weight: 850;
  font-size: 1.02rem;
}

.metric-label {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
}

.split-layout,
.process-layout,
.authority-panel,
.values-grid,
.compliance-list {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.25fr);
  gap: clamp(34px, 6vw, 76px);
  align-items: start;
}

.split-layout h2,
.authority-panel h2,
.section-heading h2,
.cta-content h2,
.compliance-list h2 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.rich-text p {
  color: var(--muted);
  font-size: 1.04rem;
}

.rich-text p:last-child {
  margin-bottom: 0;
}

.section-heading {
  width: min(780px, 100%);
  margin: 0 auto 42px;
  text-align: center;
}

.section-heading.align-left {
  margin-left: 0;
  text-align: left;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.03rem;
}

.section-navy .section-heading p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.76);
}

.service-preview-grid,
.feature-grid,
.services-grid,
.client-logo-grid,
.credentials-grid {
  display: grid;
  gap: 22px;
}

.service-preview-grid {
  grid-template-columns: repeat(3, 1fr);
}

.feature-grid.three-columns {
  grid-template-columns: repeat(3, 1fr);
}

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

.client-logo-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.credentials-grid {
  grid-template-columns: 1.15fr 0.85fr 1fr;
}

.service-card,
.feature-card,
.service-detail-card,
.client-logo,
.credential-card,
.contact-panel,
.contact-form {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 320ms var(--ease-out), box-shadow 320ms var(--ease-out), border-color 320ms var(--ease-out), background 320ms var(--ease-out);
}

.service-card {
  min-height: 230px;
  padding: 30px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(185, 220, 255, 0.24);
}

.service-card:hover,
.feature-card:hover,
.service-detail-card:hover,
.client-logo:hover,
.credential-card:hover,
.contact-panel:hover,
.contact-form:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.service-card:hover,
.service-detail-card:hover,
.feature-card:hover,
.client-logo:hover,
.credential-card:hover {
  border-color: rgba(97, 174, 247, 0.54);
}

.service-card h3,
.feature-card h3,
.service-detail-card h3,
.client-logo h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
  line-height: 1.25;
}

.service-card p {
  margin-bottom: 0;
}

.card-number {
  display: inline-block;
  margin-bottom: 26px;
  color: var(--accent-300);
  font-weight: 900;
  transition: transform 280ms var(--ease-out), color 280ms var(--ease-out);
}

.service-card:hover .card-number {
  transform: translateX(4px);
  color: var(--white);
}

.process-list {
  display: grid;
  gap: 18px;
}

.process-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 280ms var(--ease-out), border-color 280ms var(--ease-out), box-shadow 280ms var(--ease-out);
}

.process-item:hover {
  transform: translateX(6px);
  border-color: rgba(97, 174, 247, 0.58);
  box-shadow: 0 18px 42px rgba(6, 21, 44, 0.12);
}

.process-item span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--navy-950);
  background: var(--accent-300);
  border-radius: 8px;
  font-weight: 900;
}

.process-item h3,
.process-item p {
  margin-bottom: 0;
}

.process-item p,
.feature-card p,
.service-detail-card p,
.service-detail-card li,
.client-logo p,
.credential-card p {
  color: var(--muted);
}

.cta-band {
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(6, 21, 44, 0.98), rgba(16, 40, 77, 0.92)),
    var(--navy-900);
}

.cta-content {
  justify-content: space-between;
  gap: 28px;
}

.cta-content > div {
  max-width: 760px;
}

.cta-content h2 {
  color: var(--white);
}

.feature-card,
.service-detail-card,
.client-logo,
.credential-card {
  background: var(--white);
  border: 1px solid var(--line);
}

.feature-card {
  padding: 28px;
}

.authority-panel {
  padding: clamp(30px, 5vw, 52px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.value-list {
  display: grid;
  gap: 20px;
}

.value-list > div {
  padding: 24px 0 24px 24px;
  border-left: 2px solid var(--accent-500);
}

.value-list h3,
.value-list p {
  margin-bottom: 0;
}

.service-detail-card {
  min-height: 100%;
  padding: 32px;
}

.service-card-wide {
  grid-column: span 2;
}

.service-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  color: var(--navy-950);
  background: linear-gradient(135deg, var(--accent-300), var(--accent-600));
  border-radius: 8px;
  font-weight: 900;
  transition: transform 320ms var(--ease-out), box-shadow 320ms var(--ease-out);
}

.service-detail-card:hover .service-icon,
.client-logo:hover .client-initials {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 16px 30px rgba(46, 127, 208, 0.22);
}

.service-detail-card ul {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding-left: 20px;
}

.client-logo {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px 24px;
  text-align: center;
}

.client-initials {
  min-width: 94px;
  min-height: 62px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 18px;
  color: var(--accent-300);
  background: var(--navy-900);
  border: 1px solid rgba(97, 174, 247, 0.5);
  border-radius: 8px;
  font-size: 1.45rem;
  font-weight: 900;
  transition: transform 320ms var(--ease-out), box-shadow 320ms var(--ease-out), background 320ms var(--ease-out);
}

.client-logo h3 {
  max-width: 260px;
  overflow-wrap: anywhere;
}

.client-logo p {
  margin-bottom: 0;
  font-size: 0.94rem;
}

.portfolio-proof .feature-card {
  box-shadow: none;
}

.credential-card {
  padding: 32px;
}

.primary-credential {
  background:
    linear-gradient(135deg, rgba(9, 27, 56, 0.96), rgba(16, 40, 77, 0.96)),
    var(--navy-900);
  color: var(--white);
}

.primary-credential p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.78);
}

.credential-card h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 3.2vw, 2.65rem);
  line-height: 1.12;
}

.summary-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.summary-list li {
  padding: 18px 20px;
  border: 1px solid rgba(185, 220, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: 28px;
  align-items: start;
}

.contact-panel,
.contact-form {
  padding: clamp(28px, 4vw, 40px);
  background: var(--white);
  border: 1px solid var(--line);
}

.contact-panel h2 {
  margin-bottom: 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.1;
}

.contact-detail {
  display: grid;
  gap: 6px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.contact-detail span {
  color: var(--accent-600);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-detail a {
  color: var(--navy-800);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.contact-detail p {
  margin-bottom: 0;
  color: var(--muted);
}

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

.form-row {
  display: grid;
  gap: 8px;
}

.two-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label {
  color: var(--navy-900);
  font-size: 0.9rem;
  font-weight: 850;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--ink);
  background: #f7fbff;
  border: 1px solid #bdd0e5;
  border-radius: 8px;
  font: inherit;
  transition: border-color 220ms var(--ease-out), box-shadow 220ms var(--ease-out), background 220ms var(--ease-out);
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent-600);
  box-shadow: 0 0 0 4px rgba(97, 174, 247, 0.18);
  outline: none;
}

.form-submit {
  width: fit-content;
  border: 0;
  cursor: pointer;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--navy-800);
  font-weight: 750;
}

.site-footer {
  padding: 26px 20px;
  color: rgba(255, 255, 255, 0.78);
  background: var(--navy-950);
  text-align: center;
  border-top: 1px solid rgba(97, 174, 247, 0.42);
}

.site-footer p {
  margin: 0;
  font-size: 0.92rem;
}

main,
.site-footer {
  animation: pageEnter 520ms var(--ease-smooth);
  transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out), filter 300ms var(--ease-out);
}

html.page-transitioning .site-header {
  opacity: 0.72;
  transform: translateY(-8px);
}

html.page-transitioning main,
html.page-transitioning .site-footer {
  opacity: 0;
  transform: translateY(-10px);
  filter: blur(3px);
}

.motion-ready .revealable {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity 760ms var(--ease-smooth), transform 760ms var(--ease-smooth);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.motion-ready .revealable.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.motion-ready .revealable.reveal-scale {
  transform: translate3d(0, 24px, 0) scale(0.98);
}

.motion-ready .revealable.reveal-scale.is-visible {
  transform: translate3d(0, 0, 0) scale(1);
}

@keyframes fadeRise {
  from {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes pageEnter {
  from {
    opacity: 0;
    transform: translateY(14px);
    filter: blur(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes headerEnter {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes overlayReveal {
  from {
    opacity: 0.62;
  }

  to {
    opacity: 1;
  }
}

@keyframes heroImageSettle {
  from {
    background-size: 104% auto;
  }

  to {
    background-size: 100% auto;
  }
}

@keyframes heroImageSettleLayer {
  from {
    transform: scale(1.04);
  }

  to {
    transform: scale(1);
  }
}

@media (max-width: 1040px) {
  .site-header {
    align-items: flex-start;
  }

  .menu-toggle {
    display: inline-flex;
    margin-top: 2px;
  }

  .primary-nav {
    position: fixed;
    inset: 76px 20px auto 20px;
    z-index: 55;
    display: block;
    padding: 16px;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    background: var(--navy-950);
    border: 1px solid rgba(97, 174, 247, 0.42);
    border-radius: 8px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px) scale(0.98);
    transform-origin: top right;
    transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out), visibility 220ms var(--ease-out);
  }

  .primary-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .nav-list {
    display: grid;
    gap: 8px;
  }

  .nav-list a {
    justify-content: center;
    width: 100%;
    background: rgba(255, 255, 255, 0.045);
  }

  .primary-nav .nav-list li {
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out);
    transition-delay: calc(var(--nav-delay, 0) * 32ms);
  }

  .primary-nav.is-open .nav-list li {
    opacity: 1;
    transform: translateY(0);
  }

  .trust-grid,
  .service-preview-grid,
  .feature-grid.three-columns,
  .client-logo-grid,
  .credentials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-layout,
  .process-layout,
  .authority-panel,
  .values-grid,
  .compliance-list,
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .site-header {
    min-height: 72px;
    padding: 12px 14px;
  }

  .brand {
    gap: 10px;
    max-width: calc(100% - 58px);
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .brand-subtitle {
    font-size: 0.66rem;
  }

  .primary-nav {
    inset: 72px 14px auto 14px;
  }

  .home-hero {
    min-height: auto;
    padding: 78px 0 74px;
    animation-name: none;
  }

  .page-hero {
    min-height: 330px;
    padding: 68px 0;
    animation-name: none;
  }

  .home-hero::before,
  .page-hero::before {
    background-position: 68% center;
    animation-name: none;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(6, 21, 44, 0.97) 0%, rgba(6, 21, 44, 0.9) 58%, rgba(6, 21, 44, 0.58) 100%),
      linear-gradient(180deg, rgba(6, 21, 44, 0.18), rgba(6, 21, 44, 0.62));
  }

  .hero-actions,
  .cta-content {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .form-submit {
    width: 100%;
  }

  .trust-grid,
  .service-preview-grid,
  .feature-grid.three-columns,
  .services-grid,
  .client-logo-grid,
  .credentials-grid,
  .two-fields {
    grid-template-columns: 1fr;
  }

  .service-card-wide {
    grid-column: auto;
  }

  .trust-grid > div {
    border-left: 0;
    border-top: 1px solid rgba(97, 174, 247, 0.24);
  }

  .process-item {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .brand-title {
    font-size: 0.96rem;
  }

  .brand-subtitle {
    display: none;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 2.08rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  .motion-ready .revealable,
  .motion-ready .revealable.reveal-scale {
    opacity: 1;
    transform: none;
  }
}
