:root {
  --electric: #0b20cf;
  --navy: #28529a;
  --steel: #38579d;
  --ice: #a1c7eb;
  --paper: #f4f3f7;
  --ink: #060914;
  --muted: #647086;
  --white: #ffffff;
  --line: rgba(56, 87, 157, 0.18);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 58px);
  background: var(--paper);
  border-bottom: 1px solid rgba(56, 87, 157, 0.14);
}

.logo {
  width: min(360px, 52vw);
  height: 66px;
  display: block;
  overflow: hidden;
  border-radius: 8px;
  background: var(--paper);
}

.logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transform: scale(2.25);
  transform-origin: center;
}

.main-menu {
  position: relative;
  margin-left: auto;
}

.menu-dropdown {
  position: relative;
}

.menu-dropdown summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(11, 32, 207, 0.16);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 850;
  box-shadow: 0 14px 34px rgba(40, 82, 154, 0.12);
  transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.menu-dropdown summary::-webkit-details-marker {
  display: none;
}

.menu-dropdown summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s ease;
}

.menu-dropdown[open] summary {
  color: var(--electric);
  border-color: rgba(11, 32, 207, 0.32);
  box-shadow: 0 18px 48px rgba(40, 82, 154, 0.18);
}

.menu-dropdown[open] summary::after {
  transform: rotate(225deg) translateY(-1px);
}

.menu-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 60;
  display: grid;
  gap: 4px;
  min-width: 230px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 70px rgba(20, 34, 78, 0.18);
  backdrop-filter: blur(18px);
}

.menu-panel a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  color: rgba(6, 9, 20, 0.78);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 820;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.menu-panel a:hover {
  color: var(--electric);
  background: rgba(161, 199, 235, 0.18);
  transform: translateX(2px);
}

.hero {
  position: relative;
  min-height: 78svh;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 0.74fr);
  align-items: center;
  gap: clamp(28px, 5vw, 70px);
  overflow: hidden;
  padding: 110px clamp(18px, 5vw, 72px) clamp(48px, 6vw, 76px);
  color: var(--white);
  background: linear-gradient(135deg, var(--electric), var(--navy) 52%, #101827);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(transparent, rgba(5, 8, 22, 0.94));
  pointer-events: none;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 28%, rgba(161, 199, 235, 0.24), transparent 26%),
    linear-gradient(90deg, rgba(11, 32, 207, 0.2), rgba(6, 9, 20, 0.08));
}

/* Legacy decorative nodes kept harmless if old markup is cached. */
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--ice);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 26px;
  font-size: clamp(2.25rem, 4.8vw, 4.9rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(2rem, 4.2vw, 4.8rem);
  line-height: 1;
  letter-spacing: 0;
}

.lead {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.1rem, 1.7vw, 1.42rem);
  line-height: 1.58;
}

.hero-media {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  align-items: center;
  min-height: clamp(360px, 42vw, 560px);
  padding: clamp(16px, 2.2vw, 28px);
  border-radius: 28px;
  background: rgba(244, 243, 247, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: clamp(300px, 36vw, 500px);
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 24px;
  background: var(--paper);
  object-position: var(--image-x, 50%) var(--image-y, 50%);
  transform: scale(var(--image-zoom, 1));
  transform-origin: center;
}

.hero-media img.has-image {
  object-fit: cover;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 850;
  text-decoration: none;
}

.primary {
  color: var(--white);
  background: var(--electric);
  box-shadow: 0 18px 45px rgba(11, 32, 207, 0.34);
}

.ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(14px);
}

.ghost.light {
  color: var(--navy);
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--line);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.metrics div {
  padding: clamp(28px, 5vw, 56px);
  background: var(--paper);
}

.metrics strong {
  display: block;
  color: var(--electric);
  font-size: clamp(2.8rem, 6vw, 6.4rem);
  line-height: 0.92;
}

.metric-value {
  font-variant-numeric: tabular-nums;
  transition: filter 0.3s ease, transform 0.3s ease;
}

.metric-value:not([data-done="true"]) {
  filter: blur(1px);
}

.metrics span {
  display: block;
  max-width: 240px;
  margin-top: 10px;
  color: var(--muted);
  font-weight: 800;
}

.process-studio {
  min-height: 72svh;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(340px, 1fr);
  gap: clamp(28px, 6vw, 86px);
  align-items: center;
  padding: clamp(82px, 10vw, 150px) clamp(18px, 5vw, 72px);
  background: linear-gradient(180deg, var(--paper), #fff);
}

.process-copy p:not(.eyebrow) {
  max-width: 640px;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.65;
}

.process-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.process-tab {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
  background: var(--white);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.process-tab.active {
  color: var(--white);
  background: var(--electric);
  border-color: var(--electric);
}

.process-visual {
  position: relative;
  display: grid;
  gap: 16px;
  justify-items: center;
}

.process-screen {
  width: min(720px, 100%);
  min-height: 330px;
  display: grid;
  align-content: space-between;
  justify-self: center;
  padding: clamp(24px, 4vw, 42px);
  border-radius: 30px;
  color: var(--white);
  background: linear-gradient(145deg, var(--navy), #111b34);
  box-shadow: 0 24px 80px rgba(40, 82, 154, 0.24);
}

.screen-top strong {
  display: block;
  max-width: 620px;
  font-size: clamp(1.9rem, 4vw, 4rem);
  line-height: 1;
}

.process-screen p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
  line-height: 1.62;
}

.route-map {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto;
  align-items: center;
  gap: 10px;
}

.route-dot {
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  cursor: pointer;
}

.route-dot.active {
  background: var(--ice);
  box-shadow: 0 0 0 7px rgba(161, 199, 235, 0.16);
}

.route-line-wide {
  height: 2px;
  background: rgba(255, 255, 255, 0.24);
}

.section, .about-section, .contact {
  padding: clamp(76px, 10vw, 150px) clamp(18px, 5vw, 72px);
  scroll-margin-top: 96px;
}

.section {
  background: #fff;
}

.section-head {
  max-width: 1080px;
  margin-bottom: 38px;
}

.section-subtitle {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.6;
}

.section .eyebrow,
.process-studio .eyebrow,
.contact .eyebrow {
  color: var(--electric);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  align-items: stretch;
  perspective: 1200px;
}

.service-card {
  position: relative;
  min-height: 360px;
  display: block;
  border-radius: 28px;
  color: inherit;
  text-decoration: none;
  transform-style: preserve-3d;
}

.service-card-inner {
  position: relative;
  display: block;
  height: 100%;
  min-height: 360px;
  transition: transform 0.72s cubic-bezier(.2,.75,.2,1);
  transform-style: preserve-3d;
}

.service-card:hover .service-card-inner,
.service-card:focus-visible .service-card-inner {
  transform: rotateY(180deg);
}

.service-face {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 14px;
  padding: 26px;
  border-radius: 28px;
  overflow: hidden;
  backface-visibility: hidden;
  box-shadow: 0 22px 60px rgba(40, 82, 154, 0.16);
  text-align: center;
}

.service-front {
  color: var(--white);
  background: var(--navy);
}

.service-card:nth-child(2) .service-front { background: var(--navy); }
.service-card:nth-child(3) .service-front { background: var(--steel); }
.service-card:nth-child(4) .service-front { color: var(--ink); background: var(--ice); }

.service-back {
  gap: 10px;
  color: var(--navy);
  background:
    linear-gradient(135deg, rgba(161, 199, 235, 0.32), transparent),
    var(--paper);
  border: 1px dashed rgba(56, 87, 157, 0.34);
  transform: rotateY(180deg);
}

.service-back.has-image {
  color: var(--white);
  background-image:
    linear-gradient(180deg, rgba(6, 9, 20, 0.12), rgba(6, 9, 20, 0.68)),
    var(--slot-image);
  background-size:
    cover,
    calc(100% * var(--image-zoom, 1)) auto;
  background-position:
    center,
    var(--image-x, 50%) var(--image-y, 50%);
  border-style: solid;
}

.service-back.has-image strong,
.service-back.has-image small,
.service-back.has-image em,
.image-placeholder.has-image strong,
.image-placeholder.has-image span,
.image-placeholder.has-image small {
  display: none;
}

.service-back strong {
  font-size: clamp(1.35rem, 2vw, 1.9rem);
}

.service-back small {
  max-width: 260px;
  color: var(--muted);
  line-height: 1.45;
}

.service-back em {
  margin-top: 4px;
  font-style: normal;
  font-weight: 900;
  color: var(--electric);
}

.service-card h3 {
  margin: 0;
  font-size: clamp(1.5rem, 2.2vw, 2.15rem);
  line-height: 1.05;
}

.service-card p {
  max-width: 290px;
  margin: 0;
  color: inherit;
  line-height: 1.55;
  opacity: 0.82;
}

.quote-lab {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1fr);
  gap: clamp(28px, 6vw, 86px);
  align-items: center;
  padding: clamp(78px, 10vw, 150px) clamp(18px, 5vw, 72px);
  color: var(--white);
  background:
    radial-gradient(circle at 15% 18%, rgba(161, 199, 235, 0.18), transparent 28%),
    linear-gradient(145deg, #071026, var(--navy) 72%, var(--steel));
}

.quote-copy .eyebrow {
  color: var(--ice);
}

.quote-copy p:not(.eyebrow) {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 1.12rem;
  line-height: 1.65;
}

.quote-promise {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.quote-promise span,
.social-row a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 850;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.quote-form {
  padding: clamp(18px, 3vw, 30px);
  border-radius: 34px;
  background: rgba(244, 243, 247, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(22px);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.quote-form label {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.88rem;
  font-weight: 850;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  font: inherit;
  outline: none;
}

.quote-form select option {
  color: var(--ink);
}

.quote-form textarea {
  min-height: 122px;
  resize: vertical;
}

.quote-form input::placeholder,
.quote-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  border-color: var(--ice);
  box-shadow: 0 0 0 4px rgba(161, 199, 235, 0.14);
}

.quote-form .wide {
  grid-column: 1 / -1;
}

.quote-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.quote-actions .button {
  border: 0;
  cursor: pointer;
}

.quote-actions .ghost {
  color: var(--white);
}

.quote-note {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.5;
}

.about-section {
  min-height: 76svh;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1fr);
  gap: clamp(28px, 6vw, 90px);
  align-items: center;
  background: linear-gradient(180deg, #fff, var(--paper));
}

.about-copy p {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.68;
}

.about-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.about-points span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--line);
  font-weight: 850;
}

.about-media-grid {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: 14px;
}

.image-placeholder,
.method-card {
  border-radius: 28px;
  border: 1px dashed rgba(56, 87, 157, 0.34);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 20px 60px rgba(40, 82, 154, 0.1);
}

.image-placeholder {
  min-height: 220px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 24px;
  color: var(--navy);
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.image-placeholder.has-image {
  color: var(--white);
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.28);
  background-image:
    linear-gradient(180deg, rgba(6, 9, 20, 0.08), rgba(6, 9, 20, 0.56)),
    var(--slot-image);
  background-size:
    cover,
    calc(100% * var(--image-zoom, 1)) auto;
  background-position:
    center,
    var(--image-x, 50%) var(--image-y, 50%);
  box-shadow: 0 26px 80px rgba(40, 82, 154, 0.18);
}

.image-placeholder.large {
  grid-row: span 2;
  min-height: 460px;
}

.image-placeholder strong {
  font-size: 1.2rem;
}

.image-placeholder span {
  color: var(--muted);
  line-height: 1.45;
}

.method-card {
  padding: 24px;
}

.method-card h3 {
  font-size: 1.35rem;
}

.method-card ol {
  margin: 0;
  padding-left: 22px;
}

.method-card li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 750;
}

.brand-strip {
  display: grid;
  place-items: center;
  padding: clamp(54px, 8vw, 110px) 18px;
  background: var(--paper);
}

.brand-strip img {
  width: min(920px, 88vw);
  border-radius: 28px;
  box-shadow: 0 28px 90px rgba(40, 82, 154, 0.16);
}

.not-found-page {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 0.58fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  padding: 116px clamp(18px, 5vw, 72px) clamp(56px, 8vw, 96px);
  background:
    radial-gradient(circle at 82% 24%, rgba(161, 199, 235, 0.28), transparent 30%),
    linear-gradient(180deg, var(--paper), #fff);
}

.not-found-panel {
  max-width: 760px;
}

.not-found-panel .eyebrow {
  color: var(--electric);
}

.not-found-panel p:not(.eyebrow) {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.65;
}

.not-found-card {
  min-height: 360px;
  display: grid;
  place-items: center;
  gap: 18px;
  padding: 32px;
  border-radius: 30px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 28px 90px rgba(40, 82, 154, 0.14);
}

.not-found-card img {
  width: min(220px, 52vw);
  border-radius: 24px;
}

.not-found-card span {
  color: var(--navy);
  font-weight: 900;
  text-align: center;
}

.quality-page {
  min-height: 100svh;
  background: var(--paper);
}

.quality-hero {
  min-height: 78svh;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(300px, 0.58fr);
  gap: clamp(26px, 5vw, 72px);
  align-items: center;
  padding: 118px clamp(18px, 5vw, 72px) clamp(54px, 8vw, 96px);
}

.quality-hero .eyebrow,
.quality-content .eyebrow,
.quality-commitments .eyebrow {
  color: var(--electric);
}

.quality-hero p:not(.eyebrow) {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.14rem;
  line-height: 1.65;
}

.quality-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.quality-meta span {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--line);
  font-weight: 850;
}

.quality-badge {
  min-height: 360px;
  display: grid;
  place-items: center;
  gap: 14px;
  padding: 30px;
  border-radius: 30px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 28px 90px rgba(40, 82, 154, 0.14);
  text-align: center;
}

.quality-badge img {
  width: min(220px, 54vw);
  border-radius: 24px;
}

.quality-badge strong {
  color: var(--electric);
  font-size: 1.45rem;
}

.quality-badge span {
  color: var(--muted);
  line-height: 1.45;
}

.quality-content {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.72fr);
  gap: clamp(22px, 5vw, 70px);
  padding: 0 clamp(18px, 5vw, 72px) clamp(12px, 3vw, 36px);
}

.quality-statement,
.quality-objectives,
.quality-commitments {
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  box-shadow: 0 22px 70px rgba(40, 82, 154, 0.1);
}

.quality-statement {
  padding: clamp(24px, 4vw, 42px);
}

.quality-statement p:not(.eyebrow),
.quality-close {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.78;
}

.quality-objectives {
  display: grid;
  gap: 12px;
  padding: clamp(20px, 3vw, 30px);
}

.quality-objectives [data-quality-objectives] {
  display: grid;
  gap: 12px;
}

.quality-objectives > div,
.quality-objectives [data-quality-objectives] > div {
  padding: 16px;
  border-radius: 20px;
  background: var(--paper);
  border: 1px solid rgba(56, 87, 157, 0.12);
}

.quality-objectives strong,
.quality-objectives span {
  display: block;
}

.quality-objectives strong {
  color: var(--ink);
  margin-bottom: 8px;
}

.quality-objectives span {
  color: var(--muted);
  line-height: 1.48;
}

.quality-commitments {
  margin: clamp(34px, 5vw, 62px) clamp(18px, 5vw, 72px) clamp(38px, 6vw, 76px);
  padding: clamp(24px, 4vw, 42px);
}

.commitment-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.commitment-grid article {
  min-height: 210px;
  display: grid;
  place-items: center;
  padding: 18px;
  border-radius: 22px;
  color: var(--white);
  background: var(--navy);
  line-height: 1.45;
  font-weight: 750;
  text-align: center;
}

.commitment-grid article:nth-child(2) { background: var(--steel); }
.commitment-grid article:nth-child(3) { background: var(--electric); }
.commitment-grid article:nth-child(4) { color: var(--ink); background: var(--ice); }
.commitment-grid article:nth-child(5) { background: #111b34; }

.quality-close {
  max-width: 860px;
  margin: 28px 0 0;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: start;
  background: #fff;
}

.contact p {
  max-width: 620px;
  color: var(--muted);
  line-height: 1.65;
}

.contact-card {
  padding: 30px;
  border-radius: 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 22px 70px rgba(40, 82, 154, 0.14);
}

.contact-card a {
  color: var(--electric);
  font-weight: 850;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.social-row a {
  color: var(--electric);
  background: var(--white);
  border-color: var(--line);
  text-decoration: none;
}

.quick-actions {
  position: fixed;
  right: 18px;
  bottom: 106px;
  z-index: 35;
  display: grid;
  gap: 8px;
}

.quick-actions a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  color: var(--white);
  background: var(--electric);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 28px rgba(11, 32, 207, 0.22);
  font-weight: 950;
  font-size: 0.82rem;
  text-decoration: none;
}

.quick-actions a svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.quick-actions .quick-whatsapp {
  background: #25d366;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.22);
}

.quick-actions .quick-instagram {
  background:
    radial-gradient(circle at 30% 107%, #fdf497 0 14%, #fd5949 36%, #d6249f 60%, #285aeb 100%);
  box-shadow: 0 12px 28px rgba(214, 36, 159, 0.22);
}

.quick-actions a:nth-child(3) {
  color: var(--ink);
  background: var(--ice);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 5vw, 72px);
  color: #dbe7ff;
  background: var(--ink);
}

footer a {
  color: var(--ice);
  font-weight: 800;
}

.cookie-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 24px;
  color: var(--white);
  background: rgba(6, 9, 20, 0.88);
  box-shadow: 0 18px 70px rgba(16, 24, 32, 0.24);
  backdrop-filter: blur(18px);
}

.cookie-banner[hidden] { display: none; }

.cookie-banner p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
}

.cookie-banner a {
  color: var(--ice);
  font-weight: 850;
}

.cookie-actions {
  display: flex;
  gap: 10px;
}

.legal-page {
  padding: 118px clamp(18px, 5vw, 72px) clamp(58px, 8vw, 100px);
  background: var(--paper);
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.legal-content,
.legal-aside {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--white);
}

.legal-content h1 {
  font-size: clamp(2.7rem, 7vw, 6.4rem);
}

.legal-content h2 {
  margin-top: 34px;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
}

.legal-content p,
.legal-content li {
  color: var(--muted);
  line-height: 1.7;
}

.legal-content a,
.legal-aside a {
  color: var(--electric);
  font-weight: 850;
}

.legal-aside a {
  display: block;
  margin: 10px 0;
}

.internal-page,
.service-page {
  padding: 112px clamp(18px, 5vw, 72px) clamp(64px, 8vw, 110px);
  background: var(--paper);
}

.internal-page.services-page {
  padding: 0 0 clamp(64px, 8vw, 110px);
}

.internal-hero {
  max-width: 980px;
  margin-bottom: 34px;
}

.internal-hero h1,
.service-page h1 {
  color: var(--ink);
}

.internal-hero p,
.service-page p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.65;
}

.services-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.72fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  padding: clamp(58px, 7vw, 104px) clamp(18px, 5vw, 72px) clamp(44px, 6vw, 76px);
}

.services-hero h1 {
  max-width: 900px;
  color: var(--ink);
  font-size: clamp(2.05rem, 4.1vw, 4.4rem);
  line-height: 1.05;
}

.services-hero p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.14rem;
  line-height: 1.68;
}

.services-hero-media {
  min-height: 360px;
}

.service-overview {
  display: grid;
  gap: 18px;
  padding: 0 clamp(18px, 5vw, 72px) clamp(82px, 10vw, 140px);
}

.service-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.74fr);
  gap: clamp(18px, 4vw, 54px);
  align-items: stretch;
  padding: clamp(18px, 3vw, 34px);
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(161, 199, 235, 0.16), rgba(255, 255, 255, 0.86));
  border: 1px solid var(--line);
  box-shadow: 0 22px 70px rgba(40, 82, 154, 0.1);
  scroll-margin-top: 110px;
  transition: border-color 0.28s ease, box-shadow 0.28s ease, transform 0.28s ease;
}

.service-row:nth-child(2) {
  background: linear-gradient(135deg, rgba(40, 82, 154, 0.11), rgba(255, 255, 255, 0.88));
}

.service-row:nth-child(3) {
  background: linear-gradient(135deg, rgba(56, 87, 157, 0.12), rgba(244, 243, 247, 0.92));
}

.service-row:nth-child(4) {
  background: linear-gradient(135deg, rgba(11, 32, 207, 0.08), rgba(161, 199, 235, 0.22));
}

.service-row:focus {
  outline: none;
}

.service-row:target,
.service-row-focus {
  border-color: rgba(11, 32, 207, 0.52);
  box-shadow: 0 28px 90px rgba(11, 32, 207, 0.18);
  transform: translateY(-2px);
}

.service-row:nth-child(even) {
  grid-template-columns: minmax(280px, 0.74fr) minmax(0, 0.9fr);
}

.service-row:nth-child(even) .service-row-copy {
  order: 2;
}

.service-row-copy {
  display: grid;
  align-content: center;
  padding: clamp(12px, 2vw, 22px);
}

.service-row-copy h2 {
  margin: 0 0 14px;
  font-size: clamp(1.9rem, 3.5vw, 3.4rem);
}

.service-row-copy p {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.62;
}

.service-row-copy a {
  width: fit-content;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--white);
  background: var(--electric);
  font-weight: 900;
  text-decoration: none;
}

.service-row-image {
  min-height: 250px;
  background:
    linear-gradient(135deg, rgba(161, 199, 235, 0.24), rgba(244, 243, 247, 0.86)),
    var(--white);
}

.internal-page.resources-page {
  min-height: 100svh;
  padding: 0 0 clamp(64px, 8vw, 110px);
}

.resources-hero {
  display: grid;
  align-items: center;
  padding: 118px clamp(18px, 5vw, 72px) clamp(54px, 8vw, 96px);
}

.resources-hero > div {
  display: grid;
  gap: clamp(20px, 2.8vw, 34px);
}

.resources-hero h1 {
  margin: 0;
  max-width: 900px;
  color: var(--ink);
  font-size: clamp(2.55rem, 4vw, 4.35rem);
  line-height: 1.08;
}

.resources-hero p:not(.eyebrow) {
  margin: 0;
  max-width: 820px;
  color: var(--muted);
  font-size: 1.14rem;
  line-height: 1.68;
}

.resource-library {
  padding: 0 clamp(18px, 5vw, 72px) clamp(82px, 10vw, 140px);
}

.resource-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
  margin-bottom: 24px;
}

.resource-toolbar h2 {
  margin: 0;
  font-size: clamp(1.85rem, 3vw, 3rem);
}

.resource-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.resource-filter {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--navy);
  background: var(--white);
  font-weight: 900;
  cursor: pointer;
}

.resource-filter.active {
  color: var(--white);
  border-color: var(--electric);
  background: var(--electric);
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.resource-card {
  display: grid;
  grid-template-rows: minmax(240px, 0.75fr) 1fr;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--white);
  box-shadow: 0 22px 70px rgba(40, 82, 154, 0.1);
  overflow: hidden;
}

.resource-preview {
  min-height: 240px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(161, 199, 235, 0.2), rgba(244, 243, 247, 0.95)),
    var(--paper);
}

.resource-preview img,
.resource-preview iframe {
  width: 100%;
  height: 100%;
  min-height: 240px;
  border: 0;
  object-fit: cover;
}

.document-icon {
  width: 128px;
  height: 154px;
  display: grid;
  place-items: end center;
  padding: 0 0 26px;
  border-radius: 18px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(11, 32, 207, 0.9), rgba(40, 82, 154, 0.88)),
    var(--electric);
}

.document-icon span {
  font-weight: 950;
  font-size: 1.3rem;
}

.resource-copy {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 24px;
}

.resource-copy span {
  color: var(--electric);
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.resource-copy h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.35rem;
}

.resource-copy p,
.resource-copy small {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.resource-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.resource-actions a,
.resource-actions button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 15px;
  border-radius: 999px;
  border: 0;
  color: var(--white);
  background: var(--electric);
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.resource-actions a {
  color: var(--navy);
  border: 1px solid var(--line);
  background: var(--paper);
}

.resource-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  color: var(--muted);
  font-weight: 850;
}

.resource-pagination[hidden] {
  display: none;
}

.resource-pagination button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
  background: var(--white);
  font: inherit;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(40, 82, 154, 0.08);
}

.resource-pagination button:not(:disabled):hover {
  color: var(--white);
  border-color: var(--electric);
  background: var(--electric);
}

.resource-pagination button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.resource-pagination span {
  min-width: 160px;
  text-align: center;
}

.resource-empty {
  margin-top: 16px;
  padding: clamp(28px, 5vw, 56px);
  border: 1px dashed rgba(56, 87, 157, 0.34);
  border-radius: 26px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.6);
  text-align: center;
}

.resource-empty strong {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 1.35rem;
}

.modal-open {
  overflow: hidden;
}

.resource-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 34px);
  background: rgba(6, 9, 20, 0.62);
}

.resource-modal[hidden] {
  display: none;
}

.resource-modal-panel {
  width: min(1120px, 100%);
  max-height: min(86svh, 920px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.resource-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px clamp(18px, 3vw, 28px);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.resource-modal-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.1rem, 2vw, 1.55rem);
}

.resource-modal-head button,
.resource-modal-fallback a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
  background: var(--paper);
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.resource-modal-viewer {
  min-height: min(70svh, 760px);
  display: grid;
  place-items: center;
  background: #f7f7fa;
}

.resource-modal-viewer iframe,
.resource-modal-viewer img {
  width: 100%;
  height: 100%;
  min-height: min(70svh, 760px);
  border: 0;
  object-fit: contain;
}

.resource-modal-fallback {
  display: grid;
  place-items: center;
  gap: 18px;
  padding: 36px;
}

.service-page {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 0.7fr);
  align-items: center;
  gap: clamp(28px, 6vw, 80px);
}

.page-image {
  min-height: 420px;
}

.service-detail {
  align-content: center;
}

.service-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.service-detail-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  width: 100%;
}

.service-detail-grid article {
  min-height: 210px;
  display: grid;
  align-content: end;
  padding: 24px;
  border-radius: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 18px 54px rgba(40, 82, 154, 0.1);
}

.service-detail-grid span {
  color: var(--electric);
  font-weight: 950;
}

.service-detail-grid h2 {
  margin: 28px 0 10px;
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.service-detail-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

@media (max-width: 980px) {
  .site-header {
    align-items: center;
    flex-direction: row;
    gap: 12px;
  }

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

  .logo {
    width: min(330px, calc(100vw - 190px));
    min-width: 250px;
    height: 64px;
  }

  .logo img {
    transform: scale(2.18);
  }

  .main-menu {
    width: auto;
  }

  .menu-dropdown summary {
    width: auto;
    min-height: 40px;
    padding: 0 14px;
    justify-content: center;
  }

  .menu-panel {
    position: absolute;
    width: min(260px, calc(100vw - 36px));
    margin-top: 10px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: clamp(150px, 34vw, 190px);
  }

  .metrics,
  .process-studio,
  .service-grid,
  .quote-lab,
  .about-section,
  .about-media-grid,
  .contact,
  .cookie-banner,
  .not-found-page,
  .quality-hero,
  .quality-content,
  .legal-layout,
  .services-hero,
  .resources-hero,
  .resource-grid,
  .service-row,
  .service-row:nth-child(even),
  .service-page,
  .service-detail-grid {
    grid-template-columns: 1fr;
  }

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

  .quality-content {
    padding-bottom: 0;
  }

  .quality-commitments {
    margin: 28px clamp(14px, 5vw, 22px) 44px;
    padding: 24px;
    border-radius: 24px;
  }

  .commitment-grid article {
    min-height: 150px;
    padding: 24px 22px;
    border-radius: 20px;
    text-align: center;
  }

  .service-row:nth-child(even) .service-row-copy {
    order: 0;
  }

  .resource-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .resource-filters {
    justify-content: flex-start;
  }

  .hero-media {
    width: 100%;
    max-width: min(620px, 100%);
    min-height: 440px;
  }

  .hero-media img {
    min-height: 380px;
  }

  .service-card {
    min-height: 300px;
  }

  .service-card-inner {
    min-height: 300px;
  }

  .cookie-actions {
    flex-wrap: wrap;
  }

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

  .quick-actions {
    right: 12px;
    bottom: 92px;
  }

  .quick-actions a {
    width: 42px;
    height: 42px;
  }
}
