:root {
  --color-primary: #0274be;
  --color-primary-dark: #00568b;
  --color-dark: #0f1f3d;
  --color-muted: #5f6c80;
  --color-light: #f4f7fb;
  --max-width: 1100px;
  --transition: 180ms ease-in-out;
}

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

body {
  margin: 0;
  font-family: "Titillium Web", sans-serif;
  color: var(--color-dark);
  background: #ffffff;
  line-height: 1.6;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover,
a:focus {
  color: var(--color-primary-dark);
}

.skip-link {
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translate(-50%, -200%);
  background: #ffffff;
  color: var(--color-primary);
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  border: 2px solid var(--color-primary);
  font-weight: 700;
  z-index: 2000;
  transition: transform var(--transition);
}

.skip-link:focus {
  transform: translate(-50%, 0);
}

.container {
  width: min(92%, var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(120deg, rgba(15, 18, 26, 0.95), rgba(120, 125, 134, 0.85));
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  color: #ffffff;
}

.logo img {
  display: block;
  max-height: 3.25rem;
  width: auto;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.18));
}

.site-nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  position: relative;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  padding-bottom: 0.35rem;
}

.site-nav a:hover,
.site-nav a:focus {
  color: #ffffff;
}

.site-nav a[aria-current="page"] {
  color: #ffffff;
  border-bottom: 3px solid #4793c4;
}

.nav-toggle {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-weight: 600;
  padding: 0.65rem 1rem;
  border-radius: 0.55rem;
  display: none;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.nav-toggle:hover,
.nav-toggle:focus {
  border-color: rgba(255, 255, 255, 0.6);
}

.nav-toggle-icon {
  width: 1.125rem;
  height: 2px;
  background: currentColor;
  position: relative;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 1.125rem;
  height: 2px;
  background: currentColor;
  transition: transform var(--transition);
}

.nav-toggle-icon::before {
  transform: translateY(-6px);
}

.nav-toggle-icon::after {
  transform: translateY(6px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before {
  transform: translateY(0) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after {
  transform: translateY(0) rotate(-45deg);
}

.hero {
  position: relative;
  isolation: isolate;
  padding: clamp(3rem, 6vw, 6rem) 0;
  background: url("../images/source-web-solutions-hero-home.png") center/cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.84) 40%, rgba(255, 255, 255, 0.55) 70%, rgba(255, 255, 255, 0.2) 100%);
  backdrop-filter: saturate(120%) blur(2px);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero-subhead {
  display: grid;
  gap: 0.35rem;
  margin: 1.25rem 0;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--color-dark);
}

.hero-subhead span {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(2, 116, 190, 0.55);
  text-underline-offset: 0.2em;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.hero-copy {
  color: var(--color-muted);
  max-width: 38ch;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.75rem 0;
}

[data-reveal] {
  --reveal-duration: 600ms;
  --reveal-delay: 0ms;
  --reveal-transform: translateY(48px);
  --reveal-visible-transform: translateY(0);
  --reveal-origin: center;
  opacity: 0;
  transform: var(--reveal-transform);
  transform-origin: var(--reveal-origin);
  transition:
    opacity var(--reveal-duration) ease,
    transform var(--reveal-duration) ease;
  transition-delay: var(--reveal-delay);
  will-change: opacity, transform;
}

[data-reveal="fade-in"] {
  --reveal-transform: translateY(0);
}

[data-reveal="slide-left"] {
  --reveal-transform: translateX(48px);
}

[data-reveal="slide-right"] {
  --reveal-transform: translateX(-48px);
}

[data-reveal="fade-down"] {
  --reveal-transform: translateY(-48px);
}

[data-reveal="zoom-in"] {
  --reveal-transform: scale(0.95);
  --reveal-visible-transform: scale(1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: var(--reveal-visible-transform);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  border: 2px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
}

.btn-primary {
  background: var(--color-primary);
  color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(2, 116, 190, 0.25);
  color: #ffffff;
}

.btn-ghost {
  background: transparent;
  color: var(--color-primary);
  border-color: rgba(2, 116, 190, 0.35);
}

.btn-ghost:hover,
.btn-ghost:focus {
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
}

.btn-small {
  padding: 0.6rem 1.35rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

.btn-popover {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  isolation: isolate;
  z-index: 999;
}

.btn-popover::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 1rem;
  z-index: 10;
}

.btn-popover--top::after {
  top: auto;
  bottom: 100%;
}

.btn-popover-card {
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 50%;
  transform: translate(-50%, -8px);
  width: min(20rem, 80vw);
  padding: 1.75rem;
  border-radius: 0.35rem;
  border: 1px solid #e4ebf5;
  background: #ffffff;
  box-shadow: 0 18px 36px rgba(15, 31, 61, 0.12);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity var(--transition),
    transform var(--transition);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  text-align: left;
}

.btn-popover-card::after,
.btn-popover-card::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-style: solid;
  pointer-events: none;
}

.btn-popover-card::after {
  top: -0.75rem;
  border-width: 0 0.65rem 0.65rem 0.65rem;
  border-color: transparent transparent #e4ebf5 transparent;
}

.btn-popover-card::before {
  top: -0.65rem;
  border-width: 0 0.6rem 0.6rem 0.6rem;
  border-color: transparent transparent #ffffff transparent;
}

.btn-popover:hover .btn-popover-card,
.btn-popover:focus-within .btn-popover-card {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.btn-popover-title {
  margin: 0;
  font-size: 1.1rem;
  color: var(--color-dark);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-popover-title .material-symbols-outlined {
  font-size: 1.4rem;
  line-height: 1;
}

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

.cookie-banner {
  position: fixed;
  bottom: clamp(1rem, 4vw, 2rem);
  left: 50%;
  transform: translateX(-50%);
  width: min(92%, 720px);
  z-index: 1200;
  background: rgba(6, 17, 39, 0.95);
  color: #ffffff;
  border-radius: 0.75rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.cookie-banner__content {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: grid;
  gap: 1.25rem;
}

.cookie-banner__content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  font-size: 0.95rem;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cookie-banner__actions .btn {
  flex: 1 1 160px;
}

.cookie-banner__policy {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

.cookie-banner__policy:hover,
.cookie-banner__policy:focus {
  color: #ffffff;
}

.cookie-preferences-toggle[hidden] {
  display: none !important;
}

.cookie-preferences-toggle {
  position: fixed;
  bottom: clamp(1rem, 4vw, 2rem);
  right: clamp(1rem, 4vw, 2rem);
  z-index: 1100;
  background: rgba(6, 17, 39, 0.9);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0.6rem 1.5rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.cookie-preferences-toggle:hover,
.cookie-preferences-toggle:focus {
  background: rgba(2, 116, 190, 0.9);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-2px);
}

.btn-popover-copy {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.6;
}

.btn-popover-link {
  align-self: flex-start;
  padding: 0.6rem 1.25rem;
  background: transparent;
  border-color: rgba(2, 116, 190, 0.45);
  color: var(--color-primary);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

.btn-popover-link:hover,
.btn-popover-link:focus {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(2, 116, 190, 0.25);
}

.btn-popover--top .btn-popover-card {
  top: auto;
  bottom: calc(100% + 0.6rem);
  transform: translate(-50%, 8px);
}

.btn-popover--top .btn-popover-card::after {
  top: auto;
  bottom: -0.75rem;
  border-width: 0.65rem 0.65rem 0 0.65rem;
  border-color: #e4ebf5 transparent transparent transparent;
}

.btn-popover--top .btn-popover-card::before {
  top: auto;
  bottom: -0.65rem;
  border-width: 0.6rem 0.6rem 0 0.6rem;
  border-color: #ffffff transparent transparent transparent;
}

.btn-popover--top:hover .btn-popover-card,
.btn-popover--top:focus-within .btn-popover-card {
  transform: translate(-50%, 0);
}

.hero-highlight {
  display: grid;
  gap: 1rem;
  margin: 2rem 0 0;
  padding: 1.75rem 1.5rem;
  border-radius: 0.35rem;
  background: #ffffff;
  border: 1px solid #e1e7ef;
  max-width: 28rem;
}

.hero-highlight dt {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary);
}

.hero-highlight dd {
  margin: 0.35rem 0 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.quote-card {
  background: #ffffff;
  border-radius: 0.35rem;
  padding: clamp(2rem, 3vw, 3rem);
  box-shadow: 0 24px 60px rgba(15, 31, 61, 0.07);
  border: 1px solid #e6edf5;
  display: grid;
  gap: 1.5rem;
}

.quote-card h2 {
  margin: 0;
  font-size: 1.45rem;
  text-align: center;
}

.quote-intro {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-muted);
  text-align: center;
  line-height: 1.6;
}

.quote-intro a {
  color: var(--color-primary);
  font-weight: 600;
}

.quote-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.25rem;
}

.quote-form .form-field {
  display: grid;
  gap: 0.45rem;
}

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

.quote-form label {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-dark);
}

.quote-form input,
.quote-form textarea {
  width: 100%;
  border: 1px solid #d9e1ef;
  border-radius: 0.55rem;
  padding: 0.75rem 0.9rem;
  font-size: 0.95rem;
  font-family: inherit;
  background: #f9fbff;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.quote-form input:focus,
.quote-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(2, 116, 190, 0.18);
  background: #ffffff;
}

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

.quote-form[hidden] {
  display: none;
}

.quote-success[hidden] {
  display: none !important;
}

.quote-form .submit-btn {
  grid-column: 1 / -1;
  justify-self: center;
  padding-inline: 2.5rem;
}

.quote-form .form-feedback {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.85rem;
  text-align: center;
  color: var(--color-dark);
  min-height: 1.25rem;
}

.quote-form .form-feedback[data-variant="error"] {
  color: #b2003a;
}

.quote-form .form-feedback[data-variant="success"] {
  color: var(--color-primary);
}

.quote-success {
  display: grid;
  gap: 0.85rem;
  text-align: center;
  padding: 2rem 1.75rem;
  background: linear-gradient(135deg, #f5f9ff 0%, #ffffff 100%);
  border: 1px solid #d9e1ef;
  border-radius: 0.35rem;
  box-shadow: 0 18px 50px rgba(15, 31, 61, 0.08);
}

.quote-success h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--color-dark);
}

.quote-success p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-muted);
}

.quote-success-callout {
  font-weight: 600;
  color: var(--color-primary);
}

.quote-success a {
  color: var(--color-primary);
  font-weight: 700;
}

.quote-success.is-visible {
  animation: quote-success-fade 220ms ease-out;
}

@keyframes quote-success-fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.quote-form .honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.origin {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background:
    radial-gradient(circle, rgba(2, 116, 190, 0.12), transparent 70%) no-repeat,
    linear-gradient(135deg, #f8fbff 0%, #f2f6ff 50%, #ffffff 100%);
  background-size: clamp(180px, 22vw, 260px) clamp(180px, 22vw, 260px), auto;
  background-position: -3rem -2rem, center;
  background-repeat: no-repeat, no-repeat;
  border-top: 3px solid rgba(2, 116, 190, 0.08);
  border-bottom: 3px solid rgba(2, 116, 190, 0.08);
}

.origin-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 5rem);
  align-items: center;
}

.origin-copy h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 1.25rem;
  line-height: 1.25;
}

.origin-text {
  margin: 0;
  color: var(--color-muted);
  font-size: 1.05rem;
  max-width: 48ch;
  margin-bottom:1rem;
}

.origin-flag {
  background: radial-gradient(circle at center, rgba(2, 116, 190, 0.12), transparent 65%);
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 2.5rem);
}

.origin-flag img {
  width: min(360px, 88%);
  border-radius: 50%;
  box-shadow: 0 24px 60px rgba(15, 31, 61, 0.12);
}

.services {
  padding: clamp(3rem, 6vw, 5.5rem) 0;
  background:
    radial-gradient(circle at top right, rgba(2, 116, 190, 0.12), transparent 55%),
    #ffffff;
  background-repeat: no-repeat;
}

.services h2 {
  max-width: 48ch;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
  margin-top: 2.5rem;
}

.card {
  position: relative;
  z-index: 1;
  padding: 2rem;
  border-radius: 0.35rem;
  border: 1px solid #e4ebf5;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 31, 61, 0.04);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  /* background: rgba(2, 116, 190, 0.12); */
  color: var(--color-primary);
  margin-bottom: 1rem;
  border: 1px solid rgba(2, 116, 190, 0.12);
}

.card-icon svg {
  width: 1.6rem;
  height: 1.6rem;
  fill: currentColor;
}

.card-icon .material-symbols-outlined {
  font-size: 1.8rem;
  line-height: 1;
}

.card h3 {
  margin-top: 0;
  font-size: 1.3rem;
}

.card p {
  color: var(--color-muted);
}

.services-links {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  text-align: center;
}

.services-caption {
  width: 100%;
  margin: 0 0 0.5rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
  font-size: 0.85rem;
}

.services-links .btn {
  min-width: 12rem;
  text-align: center;
}

.process {
  padding: clamp(3rem, 6vw, 5.5rem) 0;
  background: var(--color-light);
}

.prototype {
  padding: clamp(3rem, 6vw, 5.5rem) 0;
  background: #ffffff;
  border-top:3px solid #EEE;
}

.prototype-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: center;
}

.prototype-visual {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
}

.prototype-visual img {
  width: 100%;
  display: block;
}

.prototype-copy h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  line-height: 1.2;
}

.prototype-copy h2 small {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-primary);
}

.prototype-copy p {
  color: var(--color-muted);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 56ch;
}

.transparency {
  padding: clamp(3rem, 6vw, 5.5rem) 0;
  background: var(--color-light);
}

.transparency-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: center;
}

.transparency-copy h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 3.4vw, 2.8rem);
}

.transparency-lead {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-dark);
}

.transparency-copy p {
  color: var(--color-muted);
  line-height: 1.7;
  max-width: 52ch;
}

.transparency-highlight {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  border-radius: 0.5rem;
  background: #ffffff;
  border: 1px solid rgba(2, 116, 190, 0.18);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}

.transparency-highlight .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  color: var(--color-primary);
  border: 1px solid rgba(2, 116, 190, 0.12);
  margin-top: 12px;
}

.transparency-highlight svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: currentColor;
}

.transparency-visual {
  border-radius: 0.75rem;
  overflow: hidden;
}

.transparency-visual img {
  width: 100%;
  display: block;
}

.integration {
  padding: clamp(3rem, 6vw, 5.5rem) 0;
  background: #ffffff;
}

.integration-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: center;
}

.integration-copy h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 3.4vw, 2.8rem);
}

.integration-lead {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.integration-copy p {
  color: var(--color-muted);
  line-height: 1.7;
  max-width: 52ch;
}

.integration-visual {
  border-radius: 0.75rem;
  overflow: hidden;
}

.integration-visual img {
  width: 100%;
  display: block;
}

.work-hero {
  padding: clamp(3rem, 6vw, 6rem) 0;
  background:
    radial-gradient(circle at 125% 130%, rgba(2, 116, 190, 0.4), transparent 70%),
    linear-gradient(135deg, #0b1c36 0%, #132b4d 45%, rgba(5, 13, 29, 0.85) 100%);
  color: #ffffff;
  overflow: hidden;
  background-repeat: no-repeat;
}

.work-hero-content,
.work-row-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: center;
}

.work-copy h1,
.work-copy h2,
.work-copy h3 {
  margin-bottom: 0.75rem;
  color: var(--color-dark);
}

.work-copy h1 {
  font-size: clamp(2.5rem, 4vw, 3.4rem);
}

.work-copy h3 {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.work-copy p {
  color: var(--color-muted);
  line-height: 1.7;
  max-width: 56ch;
}

.work-hero .work-copy h1,
.work-hero .work-copy h2,
.work-hero .work-copy h3,
.work-hero .work-copy p {
  color: rgba(255, 255, 255, 0.88);
}

.work-hero .eyebrow,
.work-row.work-row-alt .eyebrow {
  color: rgba(255, 255, 255, 0.68);
}

.work-row .eyebrow {
  color: var(--color-primary);
}

.work-visual {
  position: relative;
}

.work-visual img {
  width: 100%;
  border-radius: 1.2rem;
  box-shadow: 0 32px 70px rgba(5, 12, 26, 0.45);
}

.work-row {
  padding: clamp(3rem, 6vw, 5.5rem) 0;
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 50%, #eef5ff 100%);
}

.work-row.work-row-alt {
  background: linear-gradient(135deg, #0b1c36 0%, #122947 55%, #0f1f3d 100%);
  color: #ffffff;
}

.work-row.work-row-alt .work-copy p {
  color: rgba(255, 255, 255, 0.86);
}

.work-row.work-row-alt .work-copy h2,
.work-row.work-row-alt .work-copy h3 {
  color: #ffffff;
}

.work-row.work-row-alt .work-visual img {
  box-shadow: 0 28px 60px rgba(5, 12, 26, 0.6);
}

.portfolio-highlight {
  padding: clamp(3rem, 6vw, 5.5rem) 0;
  background: linear-gradient(135deg, #0b1c36 0%, #122947 55%, #0f1f3d 100%);
  color: #ffffff;
}

.portfolio-highlight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: center;
}

.portfolio-highlight-media {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: center;
  align-items: center;
}

.portfolio-highlight-video {
  border-radius: 0.85rem;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 24px 40px rgba(5, 12, 26, 0.45);
}

.portfolio-highlight-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portfolio-highlight-badge {
  margin: 0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

.portfolio-highlight-content {
  padding: 0;
  display: grid;
  gap: 1.25rem;
  align-content: center;
  justify-items: start;
}

.portfolio-highlight-content img {
  width: min(240px, 60%);
  max-width: 100%;
  justify-self: start;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.4));
}

.portfolio-highlight-content h2 {
  margin: 0;
  font-size: clamp(2rem, 3.2vw, 2.6rem);
  color: #ffffff;
}

.portfolio-highlight-content h3,
.portfolio-highlight-content h4 {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
}

.portfolio-highlight-content h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.portfolio-highlight-content h4 {
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.portfolio-highlight-content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.7;
  max-width: 60ch;
}

.portfolio-highlight-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.portfolio-highlight-link .material-symbols-outlined {
  font-size: 1.1rem;
}

.portfolio-highlight .btn-ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.55);
}

.portfolio-highlight .btn-ghost:hover,
.portfolio-highlight .btn-ghost:focus {
  border-color: #ffffff;
  color: #0f1f3d;
  background: #ffffff;
}

.work-row-content.reverse {
  direction: rtl;
}

.privacy-hero {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background:
    radial-gradient(circle at top right, rgba(2, 116, 190, 0.16), transparent 60%),
    linear-gradient(135deg, #0b1c36 0%, #122947 55%, #0f1f3d 100%);
  color: #ffffff;
  text-align: center;
}

.privacy-hero .eyebrow {
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 0.75rem;
}

.privacy-hero h1 {
  margin: 0.5rem 0;
  font-size: clamp(2.2rem, 4vw, 3rem);
}

.privacy-update {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.privacy-content {
  padding: clamp(3rem, 6vw, 5.5rem) 0;
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 55%, #eef5ff 100%);
}

.privacy-container {
  display: grid;
  gap: clamp(2rem, 4vw, 2.75rem);
  max-width: 820px;
  margin: 0 auto;
}

.privacy-section {
  background: #ffffff;
  border-radius: 0.75rem;
  border: 1px solid #e4ebf5;
  box-shadow: 0 18px 40px rgba(15, 31, 61, 0.06);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  display: grid;
  gap: 1rem;
}

.privacy-section h2 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--color-dark);
}

.privacy-section p {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.7;
}

.privacy-section ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--color-muted);
  line-height: 1.7;
}

.privacy-section li + li {
  margin-top: 0.5rem;
}

.privacy-section address {
  font-style: normal;
  color: var(--color-muted);
  display: grid;
  gap: 0.35rem;
}

.privacy-section a {
  color: var(--color-primary);
  font-weight: 600;
}

.privacy-section a:hover,
.privacy-section a:focus {
  color: var(--color-primary-dark);
}

.work-row-content.reverse > * {
  direction: ltr;
}

.work-showcase {
  padding: clamp(3rem, 6vw, 5.5rem) 0;
  background: #050d1d;
  color: #ffffff;
}

.work-showcase-title {
  margin: 0 0 2.5rem;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  text-align: center;
  color: rgba(255, 255, 255, 0.82);
}

.work-showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.showcase-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem;
  padding: 1.75rem;
  display: grid;
  gap: 1rem;
  box-shadow: 0 20px 50px rgba(5, 12, 26, 0.28);
}

.showcase-card img {
  width: min(200px, 70%);
  max-height: 90px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35));
}

.showcase-card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.showcase-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
}

.work-cta {
  padding: clamp(3rem, 6vw, 5.5rem) 0;
  background: linear-gradient(135deg, #fef8ff 0%, #eef6ff 100%);
  border-top: 3px solid rgba(2, 116, 190, 0.08);
}

.work-cta-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3rem);
  align-items: center;
}

.work-cta-content p {
  color: var(--color-muted);
  max-width: 48ch;
}

.work-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

.what-hero {
  padding: clamp(3rem, 6vw, 6rem) 0;
  background:
    radial-gradient(circle at 120% 135%, rgba(2, 116, 190, 0.45), transparent 70%),
    linear-gradient(150deg, #06102a 0%, #102346 55%, #051224 100%);
  color: #ffffff;
  text-align: center;
  overflow: hidden;
  background-repeat: no-repeat;
}

.what-hero-content {
  display: grid;
  justify-items: center;
  gap: 1.5rem;
}

.what-hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 4vw, 3.6rem);
  font-weight: 800;
}

.what-hero h3 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 600;
  max-width: 50ch;
}

.what-copy p {
  color: var(--color-muted);
  line-height: 1.7;
}

.what-image {
  padding: clamp(2rem, 5vw, 4rem) 0;
  background: #ffffff;
}

.what-image img {
  width: min(100%, 1080px);
  display: block;
  margin: 0 auto;
}

.what-tech {
  padding: clamp(2rem, 5vw, 4rem) 0;
  /* background: linear-gradient(135deg, #f8fbff 0%, #eef5ff 100%); */
}

.what-tech-logos {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
  justify-items: center;
}

.what-tech-logos img {
  max-width: 160px;
  width: 100%;
  height: auto;
  /* filter: drop-shadow(0 16px 28px rgba(6, 17, 39, 0.15)); */
  filter: grayscale(1);
}

.what-intro {
  padding: clamp(2rem, 5vw, 4rem) 0;
  padding-top: clamp(1.25rem, 3vw, 2.5rem);
  text-align: center;
}

.what-intro h2 {
  margin-bottom: 1.5rem;
  font-size: clamp(2rem, 3vw, 2.6rem);
}

.what-intro p {
  margin: 0 auto;
  color: var(--color-muted);
  max-width: 64ch;
  line-height: 1.7;
}

.what-services {
  padding: clamp(3rem, 6vw, 5.5rem) 0;
  background: #ffffff;
}

.what-service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  counter-reset: service-steps;
}

.what-service-card {
  background: #ffffff;
  border: 1px solid #dfe6f3;
  border-radius: 0.35rem;
  padding: 1.75rem;
  display: grid;
  gap: 0.85rem;
  position: relative;
  min-height: 220px;
  counter-increment: service-steps;
}

.what-service-card::before {
  content: counter(service-steps, decimal-leading-zero);
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-weight: 700;
  color: rgba(2, 116, 190, 0.2);
  font-size: 1.4rem;
}

.what-service-card h3 {
  margin: 0.5rem 0 0;
  font-size: 1.25rem;
  color: var(--color-dark);
}

.what-service-card p {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.6;
}

.what-note {
  padding: clamp(2rem, 5vw, 4rem) 0;
  text-align: center;
  color: var(--color-muted);
}

.what-focus {
  padding: clamp(3rem, 6vw, 5.5rem) 0;
  background: linear-gradient(135deg, #0b1c36 0%, #102346 55%, #0f1f3d 100%);
  color: #ffffff;
}

.what-focus h2 {
  text-align: center;
  margin-bottom: 2.5rem;
}

.what-focus-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.what-focus-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.85rem;
  padding: 1.75rem;
  display: grid;
  gap: 0.75rem;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
}

.what-focus-card h3 {
  margin: 0;
  font-size: 1.2rem;
  color: #ffffff;
}

.what-focus-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.65;
}

.what-graphite {
  padding: clamp(3rem, 6vw, 5.5rem) 0;
  background: #ffffff;
}

.what-stack {
  padding: clamp(3rem, 6vw, 5.5rem) 0;
  background: linear-gradient(135deg, #ffffff 0%, #f5f9ff 100%);
}

.what-stack-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

.what-stack img {
  width: 100%;
  border-radius: 1rem;
  box-shadow: 0 24px 55px rgba(6, 17, 39, 0.2);
}

.what-stack .eyebrow {
  color: var(--color-primary);
}

.what-graphite-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

.what-graphite img {
  width: min(100%, 420px);
  display: block;
  margin: 0 auto;
}

.what-graphite .eyebrow {
  color: var(--color-primary);
}

.what-infra {
  padding: clamp(3rem, 6vw, 5.5rem) 0;
  background: linear-gradient(135deg, #eef6ff 0%, #ffffff 100%);
}

.what-infra-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

.what-infra img {
  width: 100%;
  border-radius: 1rem;
  box-shadow: 0 24px 55px rgba(6, 17, 39, 0.18);
}

.what-contact {
  padding: clamp(3rem, 6vw, 5.5rem) 0;
  background: linear-gradient(135deg, #06102a 0%, #102346 45%, #0f1f3d 100%);
  color: #ffffff;
}

.what-contact-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

.what-contact p {
  color: rgba(255, 255, 255, 0.8);
}

.what-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

.what-contact .btn-ghost {
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
}


.process-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  counter-reset: steps;
}

.process-steps li {
  background: #ffffff;
  border-radius: 0.35rem;
  padding: 1.75rem;
  border: 1px solid #dfe6f3;
  position: relative;
  min-height: 220px;
}

.process-steps li::before {
  counter-increment: steps;
  content: counter(steps, decimal-leading-zero);
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-weight: 700;
  color: rgba(2, 116, 190, 0.2);
  font-size: 1.4rem;
}

.process-steps h3 {
  margin-top: 0.5rem;
  font-size: 1.2rem;
}

.process-steps p {
  color: var(--color-muted);
}

.testimonials {
  padding: clamp(3rem, 6vw, 5.5rem) 0;
  background: #ffffff;
}

.testimonials-container {
  display: grid;
  gap: 1rem;
}

.testimonial-slider {
  position: relative;
  display: grid;
  gap: 1rem;
}

.testimonial-track-wrapper {
  overflow: hidden;
  padding: clamp(0.25rem, 1.5vw, 0.75rem) 0;
  position: relative;
}

.testimonial-track {
  display: flex;
  width: 100%;
  transition: transform 600ms ease;
}

.testimonial-slide {
  flex: 0 0 100%;
  opacity: 0.45;
  transition: opacity 400ms ease;
}

.testimonial-slide.is-active {
  opacity: 1;
}

.testimonial-nav {
  position: absolute;
  top: 50%;
  bottom: auto;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(2, 116, 190, 0.25);
  background: rgba(6, 17, 39, 0.55);
  display: grid;
  place-items: center;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.85);
  transition: border-color var(--transition), background var(--transition), color var(--transition), transform var(--transition);
  box-shadow: 0 12px 28px rgba(15, 31, 61, 0.12);
  transform: translateY(-50%);
  z-index: 2;
}

.testimonial-nav:hover,
.testimonial-nav:focus {
  border-color: rgba(255, 255, 255, 0.9);
  background: rgba(2, 116, 190, 0.95);
  color: #ffffff;
  transform: translateY(-50%) scale(1.05);
}

.testimonial-nav.prev {
  left: clamp(0.25rem, 2vw, 1rem);
}

.testimonial-nav.next {
  right: clamp(0.25rem, 2vw, 1rem);
}

.testimonial-nav svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: currentColor;
}

.testimonial-dots {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 0.5rem;
}

.testimonial-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(2, 116, 190, 0.25);
  cursor: pointer;
  transition: transform 200ms ease, background 200ms ease;
}

.testimonial-dot.is-active,
.testimonial-dot:hover,
.testimonial-dot:focus {
  background: var(--color-primary);
  transform: scale(1.2);
  outline: none;
}

.testimonial-card {
  margin: 0;
  padding: clamp(2.5rem, 5vw, 3.5rem);
  padding-inline: clamp(3.5rem, 7vw, 4.75rem);
  border-radius: 0.35rem;
  background:
    radial-gradient(circle at 130% 160%, rgba(255, 255, 255, 0.18), transparent 65%),
    linear-gradient(130deg, rgba(2, 116, 190, 0.9), rgba(5, 13, 29, 0.88) 90%);
  color: #ffffff;
  display: grid;
  gap: 1.5rem;
  overflow: hidden;
  background-repeat: no-repeat;
}

.testimonial-card blockquote {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.5;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0.3rem;
  margin-top: clamp(1.25rem, 3vw, 1.75rem);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  min-height: 4.2rem;
}

.testimonial-author span {
  display: block;
  line-height: 1.2;
}

.testimonial-author .name {
  font-weight: 700;
}

.testimonial-author .company {
  opacity: 0.8;
}

.news {
  padding: clamp(3rem, 6vw, 5.5rem) 0;
  color: #ffffff;
  background:
    linear-gradient(190deg, rgba(0, 18, 115, 0.8) 0%, rgba(30, 3, 42, 0.6) 100%),
    url("../images/news-background.jpg") center/cover no-repeat;
  background-blend-mode: normal, multiply;
}

.news-container {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.news-heading {
  margin: 0;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.news-slider {
  position: relative;
  display: grid;
  gap: 1.5rem;
}

.news-track-wrapper {
  overflow: hidden;
  border-radius: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(6, 19, 41, 0.65);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.25);
}

.news-track {
  display: flex;
  transition: transform 600ms ease;
}

.news-slide {
  flex: 0 0 100%;
  padding: clamp(2rem, 4vw, 3.5rem);
  display: grid;
  gap: 1.75rem;
  align-items: start;
  opacity: 0.35;
  transition: opacity 400ms ease;
}

.news-slide.is-active {
  opacity: 1;
}

.news-slide-heading {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 1rem;
}

.news-slide-heading img {
  width: min(260px, 70%);
  max-height: 120px;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.35));
}

.news-slide-heading span {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-slide-text {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
}

.news-slide-text h3 {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  color: #ffffff;
  letter-spacing: 0.04em;
}

.news-slide-text p {
  margin: 0;
}

.news-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(6, 19, 41, 0.8);
  color: #ffffff;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 200ms ease, transform 200ms ease;
  z-index: 2;
}

.news-nav svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.news-nav:hover,
.news-nav:focus {
  background: rgba(2, 116, 190, 0.9);
  outline: none;
  transform: translateY(-50%) scale(1.05);
}

.news-nav.prev {
  left: 1rem;
}

.news-nav.next {
  right: 1rem;
}

.news-dots {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.news-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: transform 200ms ease, background 200ms ease;
}

.news-dot.is-active,
.news-dot:hover,
.news-dot:focus {
  background: #ffffff;
  transform: scale(1.2);
  outline: none;
}

.cta {
  padding: clamp(3rem, 6vw, 5.5rem) 0;
  color: #ffffff;
  background-color: #0f1f3d;
  background-image:
    linear-gradient(140deg, rgba(6, 17, 39, 0.92), rgba(2, 116, 190, 0.7)),
    url("../images/cta-open-source.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-blend-mode: normal, lighten;
}

.cta-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 3vw, 3.5rem);
  align-items: center;
}

.cta-card {
  padding: 2rem;
  border-radius: 0.35rem;
  border: 1px solid rgba(2, 116, 190, 0.2);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 50px rgba(15, 31, 61, 0.07);
  display: grid;
  gap: 1rem;
  color: var(--color-dark);
}

.cta-card .phone {
  font-weight: 700;
  color: var(--color-dark);
  font-size: 1.1rem;
}

.cta-note {
  margin: 0;
  color: var(--color-dark);
  font-size: 0.85rem;
}

.site-footer {
  background: #050d1d;
  color: rgba(255, 255, 255, 0.75);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  padding: clamp(3rem, 6vw, 4rem) 0;
}

.footer-brand {
  display: grid;
  gap: 0.75rem;
}

.footer-logo {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.3rem;
}

.footer-tagline {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-heading {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  transition: color var(--transition);
  position: relative;
  padding-bottom: 0.25rem;
}

.footer-nav a:hover,
.footer-nav a:focus {
  color: #ffffff;
}

.footer-nav a[aria-current="page"] {
  color: #ffffff;
  border-bottom: 2px solid #0274be;
}

.footer-cta {
  display: grid;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
}

.footer-cta .btn {
  justify-self: start;
}

.footer-contact {
  display: grid;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
}

.footer-contact address {
  display: grid;
  gap: 0.25rem;
  font-style: normal;
}

.footer-phone {
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.footer-phone:hover,
.footer-phone:focus {
  color: rgba(255, 255, 255, 0.85);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.15);
}

.footer-bottom-content {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

.footer-links a:hover,
.footer-links a:focus {
  color: #ffffff;
}

.back-to-top {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

.back-to-top:hover,
.back-to-top:focus {
  color: #ffffff;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .logo img {
    max-height: 2.5rem;
  }

  .site-nav {
    position: absolute;
    inset: 100% 0 auto 0;
    background: rgba(6, 17, 39, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: none;
  }

  .site-nav.open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    padding: 1rem;
    gap: 0.75rem;
  }

  .hero-content,
  .origin-content,
  .prototype-content,
  .transparency-content,
  .integration-content,
  .work-hero-content,
  .work-row-content,
  .portfolio-highlight-grid,
  .work-cta-content,
  .card-grid,
  .process-steps,
  .cta-container {
    grid-template-columns: 1fr;
  }

  .news-slide {
    padding: 2.25rem 1.75rem;
  }

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

  .quote-card {
    margin-top: 2rem;
  }

  .portfolio-highlight-content {
    text-align: center;
    justify-items: center;
  }

  .portfolio-highlight-content img {
    justify-self: center;
  }

  .portfolio-highlight-link {
    justify-self: center;
  }

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

  .prototype-copy h2 {
    text-align: center;
  }

  .prototype-copy p {
    text-align: center;
    margin-inline: auto;
  }

  .transparency-copy h2,
  .integration-copy h2,
  .work-copy h1,
  .work-copy h2 {
    text-align: center;
  }

  .transparency-copy p,
  .integration-copy p,
  .work-copy p {
    text-align: center;
    margin-inline: auto;
  }

  .transparency-visual,
  .integration-visual,
  .work-row .work-visual,
  .work-hero .work-visual {
    margin-top: 1.5rem;
  }

  .process-steps li,
  .what-service-card {
    min-height: auto;
  }

  .what-tech-logos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .what-focus-grid,
  .what-stack-content,
  .what-graphite-content,
  .what-infra-content,
  .what-contact-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .what-contact-actions {
    justify-content: center;
  }

  .what-graphite img {
    margin: 0 auto 1.5rem;
  }

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

  .work-cta-actions {
    justify-content: center;
  }

  .news-nav.prev {
    left: 0.25rem;
  }

  .news-nav.next {
    right: 0.25rem;
  }

  .testimonial-slider {
    margin-top: 2rem;
  }

  .testimonial-nav {
    width: 44px;
    height: 44px;
    transform: translateY(-50%);
  }

  .testimonial-card {
    padding-inline: clamp(2.25rem, 6vw, 3rem);
  }

  .testimonial-slide {
    opacity: 1;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 15px;
  }

  .nav-container {
    padding: 0.75rem 0;
  }

  .hero {
    padding-top: 2.5rem;
  }

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

  .origin-flag {
    padding: 1.5rem;
  }

  .news-heading {
    font-size: 1.8rem;
  }

  .prototype-copy h2 small {
    font-size: 0.95rem;
  }

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

  .what-service-grid {
    grid-template-columns: 1fr;
  }

  .work-copy h1,
  .work-copy h2 {
    text-align: center;
  }

  .work-copy p,
  .work-showcase-grid p,
  .what-copy p {
    text-align: center;
    margin-inline: auto;
  }

  .work-showcase-grid {
    grid-template-columns: 1fr;
  }

  .what-stack-content,
  .what-graphite-content,
  .what-infra-content,
  .what-contact-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .what-stack img,
  .what-graphite img,
  .what-infra img {
    margin: 0 auto 1.5rem;
  }

  .integration-lead {
    font-size: 0.95rem;
  }

  .news-slide-heading span {
    font-size: 1rem;
  }

  .news-nav {
    width: 42px;
    height: 42px;
  }

  .testimonial-nav {
    width: 40px;
    height: 40px;
    transform: translateY(-50%);
  }

  .testimonial-card {
    padding-inline: clamp(2rem, 8vw, 2.75rem);
  }

  .quote-form .submit-btn {
    width: 100%;
  }

  .card {
    padding: 1.5rem;
  }

  .testimonial-card {
    padding: 2rem;
  }

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

  .footer-cta .btn {
    width: 100%;
  }

  .footer-bottom-content {
    justify-content: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .news-track,
  .news-slide,
  .news-nav {
    transition-duration: 0.01ms !important;
  }
}
