.site-header {
  isolation: isolate;
}

.site-header.overlay-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  border-color: transparent;
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  color: #fff;
  transition: background-color .3s ease, border-color .3s ease, box-shadow .3s ease, color .3s ease;
}

.site-header.overlay-header:not(.is-scrolled) .site-header-logo {
  filter: brightness(0) invert(1);
}

.site-footer-logo {
  filter: brightness(0) invert(1);
}

.site-header.overlay-header:not(.is-scrolled) .site-nav-link,
.site-header.overlay-header:not(.is-scrolled) [aria-label="سلة طلبات التسعير"],
.site-header.overlay-header:not(.is-scrolled) #mobile-menu-button {
  color: rgb(255 255 255 / .9) !important;
}

.site-header.overlay-header:not(.is-scrolled) .site-nav-link:hover,
.site-header.overlay-header:not(.is-scrolled) [aria-label="سلة طلبات التسعير"]:hover,
.site-header.overlay-header:not(.is-scrolled) #mobile-menu-button:hover {
  color: #8edcff !important;
}

.site-header.overlay-header:not(.is-scrolled) .site-nav-link.is-active {
  color: #8edcff !important;
}

.site-header.overlay-header.is-scrolled {
  border-color: rgb(203 221 230 / .9);
  background-color: #fff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 8px 25px rgb(26 27 31 / .08);
  color: var(--logo-charcoal);
}

.site-header.overlay-header.is-scrolled .site-nav-link,
.site-header.overlay-header.is-scrolled [aria-label="سلة طلبات التسعير"],
.site-header.overlay-header.is-scrolled #mobile-menu-button {
  color: #29343b !important;
}

.site-header.overlay-header.is-scrolled .site-nav-link:hover,
.site-header.overlay-header.is-scrolled [aria-label="سلة طلبات التسعير"]:hover,
.site-header.overlay-header.is-scrolled #mobile-menu-button:hover {
  color: var(--logo-blue) !important;
}

.site-header.overlay-header.is-scrolled .site-nav-link.is-active {
  color: #006da9 !important;
}

.about-hero {
  min-height: 42rem;
}

@media (max-width: 767px) {
  .about-hero {
    min-height: 36rem;
  }
}

.services-page {
  direction: rtl;
  background: #fff;
}

.services-hero {
  position: relative;
  display: flex;
  min-height: 38rem;
  align-items: center;
  overflow: hidden;
  background: #0a1721;
}

.services-hero > img,
.services-hero-overlay {
  position: absolute;
  inset: 0;
}

.services-hero > img {
  object-position: center;
}

.services-hero-overlay {
  background: linear-gradient(90deg, rgb(4 16 27 / .18), rgb(4 16 27 / .72) 52%, rgb(4 16 27 / .93));
}

.services-hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 35rem;
  margin-inline-start: auto;
  padding-block: 7rem 5rem;
  color: #fff;
}

.services-hero-content > p:first-child {
  margin: 0 0 .75rem;
  color: #92d2f8;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
}

.services-hero-content h1 {
  margin: 0;
  font-family: var(--app-font-serif);
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  font-weight: 800;
  line-height: 1.18;
}

.services-hero-content h1 strong {
  color: #20a5e7;
  font-weight: inherit;
}

.services-hero-content > span {
  display: block;
  margin-top: .8rem;
  color: #b9d9e9;
  font-size: .9rem;
  font-weight: 700;
}

.services-hero-line {
  width: 3.5rem;
  height: 2px;
  margin: 1.4rem 0;
  background: hsl(var(--accent));
}

.services-hero-description {
  max-width: 31rem;
  margin: 0;
  color: rgb(255 255 255 / .82);
  font-size: .98rem;
  line-height: 2;
}

.services-intro {
  padding-block: 5rem 4rem;
  background: #fff;
}

.services-intro-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: end;
  gap: 5rem;
}

.services-intro h2,
.services-list-heading h2,
.services-process-heading h2 {
  margin: .65rem 0 0;
  color: #10293e;
  font-family: var(--app-font-serif);
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  font-weight: 800;
  line-height: 1.35;
}

.services-intro-grid > p {
  max-width: 30rem;
  margin: 0;
  color: #61717c;
  font-size: .95rem;
  line-height: 2.1;
}

.services-list-section {
  padding-block: 2rem 7rem;
}

.services-list-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.services-list-heading > span {
  color: #6b7d88;
  font-family: monospace;
  font-size: .75rem;
  letter-spacing: .1em;
}

.services-filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 14rem auto auto;
  align-items: end;
  gap: .75rem;
  margin-bottom: 2rem;
  padding: 1rem;
  border: 1px solid #dce7ed;
  background: #f7fafc;
}

.services-filter-bar label {
  display: grid;
  gap: .45rem;
}

.services-filter-bar label > span {
  color: #536a78;
  font-size: .72rem;
  font-weight: 700;
}

.services-filter-bar input,
.services-filter-bar select {
  width: 100%;
  min-height: 2.85rem;
  border: 1px solid #cbdbe4;
  border-radius: 0;
  background: #fff;
  padding: .65rem .8rem;
  color: #10293e;
  font: inherit;
  font-size: .82rem;
  outline: none;
}

.services-filter-bar input:focus,
.services-filter-bar select:focus {
  border-color: hsl(var(--accent));
  box-shadow: 0 0 0 3px rgb(0 119 195 / .1);
}

.services-filter-submit {
  min-height: 2.85rem;
  border: 1px solid hsl(var(--accent));
  cursor: pointer;
  font: inherit;
}

.services-filter-reset {
  display: inline-flex;
  min-height: 2.85rem;
  align-items: center;
  justify-content: center;
  padding-inline: .75rem;
  color: #476270;
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
}

.services-filter-reset:hover {
  color: hsl(var(--accent));
}

.services-hero-filter {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  z-index: 2;
  width: min(58rem, calc(100% - 2rem));
  margin: 0;
  border: 0;
  box-shadow: 0 18px 40px rgb(4 16 27 / .2);
  transform: translateX(-50%);
}

.services-hero-filter .services-filter-submit {
  background: #233b5d;
  border-color: #233b5d;
}

.services-hero-filter .services-filter-submit:hover {
  background: #0b78bd;
  border-color: #0b78bd;
}

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

.services-grid > a {
  border-color: #dce7ed;
  box-shadow: 0 12px 30px rgb(16 41 62 / .05);
}

.services-grid > a:hover {
  border-color: rgb(0 119 195 / .5);
  box-shadow: 0 18px 36px rgb(16 41 62 / .1);
  transform: translateY(-4px);
}

.services-process {
  padding-block: 5.5rem;
  background: #10293e;
  color: #fff;
}

.services-process-heading {
  margin-bottom: 2.5rem;
}

.services-process-heading h2 {
  color: #fff;
}

.services-process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgb(255 255 255 / .18);
}

.services-process-grid article {
  min-height: 15rem;
  padding: 2rem;
  background: #10293e;
}

.services-process-grid article > span {
  display: block;
  margin-bottom: 2.5rem;
  color: #71c8ef;
  font-family: monospace;
  font-size: .8rem;
  letter-spacing: .12em;
}

.services-process-grid h3 {
  margin: 0 0 .75rem;
  font-family: var(--app-font-serif);
  font-size: 1.35rem;
}

.services-process-grid p {
  max-width: 18rem;
  margin: 0;
  color: rgb(255 255 255 / .66);
  font-size: .88rem;
  line-height: 2;
}

@media (max-width: 900px) {
  .services-hero {
    min-height: 34rem;
  }

  .services-hero-content {
    max-width: 31rem;
    padding-inline: 1rem;
  }

  .services-hero-filter {
    bottom: 1.5rem;
    width: min(42rem, calc(100% - 2rem));
  }

  .services-intro-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .services-filter-bar {
    grid-template-columns: minmax(0, 1fr) 12rem;
  }

  .services-filter-submit,
  .services-filter-reset {
    grid-column: span 1;
  }

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

@media (max-width: 600px) {
  .services-hero {
    min-height: 36rem;
  }

  .services-hero-content {
    align-self: end;
    padding-block: 3rem 3.5rem;
  }

  .services-hero-content h1 {
    font-size: 2.25rem;
  }

  .services-hero-filter {
    bottom: 1rem;
  }

  .services-intro {
    padding-block: 3.5rem 2.5rem;
  }

  .services-list-section {
    padding-block: 1rem 4.5rem;
  }

  .services-list-heading {
    align-items: start;
    flex-direction: column;
    gap: .75rem;
  }

  .services-filter-bar {
    grid-template-columns: 1fr;
  }

  .services-filter-submit,
  .services-filter-reset {
    width: 100%;
    grid-column: auto;
  }

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

  .services-process {
    padding-block: 4rem;
  }
}

.site-nav-link.is-active::after {
  position: absolute;
  right: 0;
  bottom: -1.05rem;
  left: 0;
  height: 2px;
  content: "";
  background: hsl(var(--accent));
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  min-height: 3rem;
  padding: .25rem .75rem;
  border-right: 2px solid transparent;
  color: hsl(var(--foreground) / .72);
  font-size: .95rem;
}

.mobile-nav-link.is-active {
  border-color: hsl(var(--accent));
  background: hsl(var(--secondary));
  color: hsl(var(--primary));
  font-weight: 600;
}

.icon-20,
.icon-22,
.icon-24 {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.icon-20 { width: 20px; height: 20px; }
.icon-22 { width: 22px; height: 22px; }
.icon-24 { width: 24px; height: 24px; }

.cart-count-badge {
  position: absolute;
  top: 1px;
  left: 1px;
  display: flex;
  width: 17px;
  height: 17px;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
  border-radius: 999px;
  background: hsl(var(--accent));
  color: white;
  font-family: monospace;
  font-size: 9px;
  font-weight: 700;
}

.select-chevron {
  position: absolute;
  top: 50%;
  left: 1rem;
  pointer-events: none;
  transform: translateY(-50%);
  color: hsl(var(--muted-foreground));
}

.detail-label,
.contact-label,
.form-label {
  display: block;
  margin-bottom: .65rem;
  color: hsl(var(--muted-foreground));
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .04em;
}

.contact-label {
  color: hsl(var(--primary-foreground) / .55);
}

.form-control {
  display: block;
  width: 100%;
  min-height: 3.25rem;
  border: 1px solid hsl(var(--border));
  background: transparent;
  padding: .8rem 1rem;
  color: hsl(var(--foreground));
  font-size: .9rem;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

textarea.form-control {
  min-height: 8rem;
}

.form-control:focus {
  border-color: hsl(var(--accent));
  box-shadow: 0 0 0 3px hsl(var(--accent) / .08);
}

.form-control.is-invalid {
  border-color: hsl(var(--destructive));
}

.field-error {
  display: block;
  margin-top: .45rem;
  color: hsl(var(--destructive));
  font-size: .72rem;
}

.form-error-box {
  border-right: 3px solid hsl(var(--destructive));
  background: hsl(var(--destructive) / .07);
  padding: 1rem 1.25rem;
  color: hsl(var(--destructive));
  font-size: .85rem;
}

.step-number {
  display: flex;
  width: 2.2rem;
  height: 2.2rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid hsl(var(--accent) / .5);
  color: hsl(var(--accent));
  font-family: monospace;
  font-size: .7rem;
}

.image-placeholder {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, transparent 49.5%, hsl(var(--border) / .9) 50%, transparent 50.5%),
    linear-gradient(45deg, transparent 49.5%, hsl(var(--border) / .9) 50%, transparent 50.5%),
    hsl(var(--secondary));
  background-size: 48px 48px;
}

.image-placeholder::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(120deg, transparent 20%, hsl(var(--background) / .45), transparent 80%);
}

.toast-message {
  position: fixed;
  right: 50%;
  bottom: 1.5rem;
  z-index: 100;
  min-width: min(340px, calc(100vw - 2rem));
  transform: translateX(50%) translateY(1rem);
  background: hsl(var(--primary));
  padding: 1rem 1.25rem;
  color: hsl(var(--primary-foreground));
  font-size: .85rem;
  text-align: center;
  opacity: 0;
  box-shadow: 0 15px 40px rgb(0 0 0 / .2);
  transition: opacity .25s ease, transform .25s ease;
}

.toast-message.is-visible {
  transform: translateX(50%) translateY(0);
  opacity: 1;
}

.splash-screen.is-hiding {
  pointer-events: none;
  opacity: 0;
  transition: opacity .55s ease;
}

/* Porcelain assembly splash */
.splash-screen {
  --cube-size: 82px;
  z-index: 1000;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 22% 25%, rgb(20 136 198 / .15), transparent 28rem),
    radial-gradient(circle at 76% 70%, rgb(255 255 255 / .06), transparent 24rem),
    #061722;
  color: #fff;
  animation: none !important;
}

.splash-atmosphere {
  position: absolute;
  inset: -20%;
  background: conic-gradient(from 160deg at 50% 50%, transparent, rgb(10 114 194 / .08), transparent 30%);
  animation: splash-atmosphere-spin 12s linear infinite;
}

.splash-blueprint {
  position: absolute;
  inset: 0;
  opacity: .22;
  background-image:
    linear-gradient(rgb(111 196 238 / .15) 1px, transparent 1px),
    linear-gradient(90deg, rgb(111 196 238 / .15) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(circle at center, #000 8%, transparent 72%);
  mask-image: radial-gradient(circle at center, #000 8%, transparent 72%);
}

.splash-layout {
  position: relative;
  z-index: 2;
  display: block;
  width: min(1080px, calc(100vw - 3rem));
  margin-inline: auto;
  direction: ltr;
}

.splash-stage {
  position: relative;
  width: 100%;
  height: 390px;
  perspective: 1100px;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
}

.splash-floor {
  position: absolute;
  top: 58%;
  left: 50%;
  width: 330px;
  height: 230px;
  background: radial-gradient(ellipse, rgb(0 0 0 / .7), transparent 64%);
  filter: blur(13px);
  transform: translate(-50%, -20%) rotateX(68deg);
  animation: splash-floor-in 1.5s .25s both;
}

.porcelain-cube {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--cube-size);
  height: var(--cube-size);
  margin: calc(var(--cube-size) / -2);
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  will-change: transform, opacity;
  animation:
    porcelain-place 1.05s var(--place-delay) cubic-bezier(.2, .8, .22, 1.15) both,
    porcelain-merge .55s 1.72s ease forwards;
}

.porcelain-cube-1 { --x: -102px; --y: -52px; --z: 0px; --rx: -19deg; --ry: 41deg; --place-delay: .08s; }
.porcelain-cube-2 { --x: -102px; --y: 42px; --z: 0px; --rx: -19deg; --ry: 41deg; --place-delay: .25s; }
.porcelain-cube-3 { --x: 102px; --y: -52px; --z: 0px; --rx: -19deg; --ry: 41deg; --place-delay: .42s; }
.porcelain-cube-4 { --x: 102px; --y: 42px; --z: 0px; --rx: -19deg; --ry: 41deg; --place-delay: .59s; }
.porcelain-cube-5 { --x: -48px; --y: -5px; --z: 28px; --rx: -19deg; --ry: 41deg; --place-delay: .76s; }
.porcelain-cube-6 { --x: 48px; --y: -5px; --z: 28px; --rx: -19deg; --ry: 41deg; --place-delay: .93s; }
.porcelain-cube-7 { --x: 0px; --y: 70px; --z: 52px; --rx: -19deg; --ry: 41deg; --place-delay: 1.1s; }

.cube-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / .75);
  background:
    linear-gradient(135deg, rgb(255 255 255 / .78), transparent 30%),
    repeating-linear-gradient(112deg, transparent 0 18px, rgb(18 88 118 / .05) 19px 20px),
    linear-gradient(145deg, #f9fcfd, #c8d8df);
  box-shadow: inset 0 0 24px rgb(5 45 65 / .09);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.cube-face::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(115deg, transparent 15%, rgb(255 255 255 / .88) 45%, transparent 70%);
  transform: translateX(-130%);
  animation: porcelain-glint 1.6s 1.35s ease-in-out both;
}

.cube-front { transform: translateZ(calc(var(--cube-size) / 2)); }
.cube-back { transform: rotateY(180deg) translateZ(calc(var(--cube-size) / 2)); }
.cube-right { background: linear-gradient(145deg, #c8d7dd, #8ca5af); transform: rotateY(90deg) translateZ(calc(var(--cube-size) / 2)); }
.cube-left { background: linear-gradient(145deg, #e4edf0, #adc0c8); transform: rotateY(-90deg) translateZ(calc(var(--cube-size) / 2)); }
.cube-top { background: linear-gradient(145deg, #fff, #dae6ea); transform: rotateX(90deg) translateZ(calc(var(--cube-size) / 2)); }
.cube-bottom { transform: rotateX(-90deg) translateZ(calc(var(--cube-size) / 2)); }

.porcelain-cube-5 .cube-face,
.porcelain-cube-6 .cube-face {
  border-color: rgb(117 208 247 / .9);
  background:
    linear-gradient(135deg, rgb(255 255 255 / .35), transparent 34%),
    repeating-linear-gradient(112deg, transparent 0 18px, rgb(1 55 94 / .12) 19px 20px),
    linear-gradient(145deg, #38a9df, #0877b8);
}

.splash-logo-symbol {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 4;
  width: clamp(190px, 22vw, 260px);
  opacity: 0;
  transform: translate(-50%, -50%) scale(.82);
  filter: blur(10px) drop-shadow(0 24px 34px rgb(0 0 0 / .38));
  animation:
    splash-logo-lock .9s 1.55s cubic-bezier(.16, 1, .3, 1) forwards,
    splash-logo-shift .75s 2.25s cubic-bezier(.16, 1, .3, 1) forwards;
}

.splash-logo-symbol::after {
  position: absolute;
  inset: -15%;
  background: radial-gradient(circle, rgb(36 165 224 / .22), transparent 64%);
  content: "";
  opacity: 0;
  animation: splash-logo-glow 1s 1.75s ease forwards;
}

.splash-logo-symbol img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
}

.splash-wordmark {
  position: absolute;
  top: 50%;
  left: calc(50% + 15px);
  z-index: 4;
  display: block;
  width: clamp(175px, 27vw, 300px);
  height: auto;
  opacity: 0;
  transform: translateY(-50%) translateX(24px);
  filter: drop-shadow(0 14px 24px rgb(0 0 0 / .22));
  animation: splash-wordmark-in .75s 2.25s cubic-bezier(.16, 1, .3, 1) forwards;
}

.splash-axis {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgb(74 182 234 / .55), transparent);
  opacity: 0;
  animation: splash-axis-in .8s 1.55s forwards;
}

.splash-axis-x { width: 410px; transform: translate(-50%, 122px); }
.splash-axis-y { width: 330px; transform: translate(-50%, 12px) rotate(90deg); }

.splash-brand {
  position: relative;
  padding-right: clamp(1.5rem, 4vw, 4rem);
  border-right: 1px solid rgb(96 188 235 / .25);
  direction: rtl;
  text-align: right;
  opacity: 0;
  transform: translateX(-22px);
  animation: splash-brand-in .85s 1.35s cubic-bezier(.16, 1, .3, 1) forwards;
}

.splash-brand::before {
  position: absolute;
  top: 0;
  left: -2px;
  width: 3px;
  height: 54px;
  background: #0a8bd3;
  content: "";
  box-shadow: 0 0 24px rgb(10 139 211 / .65);
}

.splash-brand-mark {
  position: relative;
  display: inline-flex;
  margin-bottom: 1.6rem;
  background: #fff;
  padding: .72rem .95rem;
  box-shadow: 0 20px 55px rgb(0 0 0 / .28);
}

.splash-brand-mark img {
  width: min(245px, 54vw);
  height: auto;
}

.brand-corner {
  position: absolute;
  width: 13px;
  height: 13px;
  border-color: #26a1e1;
}

.brand-corner-1 { top: -6px; right: -6px; border-top: 2px solid; border-right: 2px solid; }
.brand-corner-2 { bottom: -6px; left: -6px; border-bottom: 2px solid; border-left: 2px solid; }

.splash-brand-kicker {
  margin-bottom: .9rem;
  color: #54bbea;
  font-family: var(--app-font-mono);
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .2em;
}

.splash-brand h2 {
  color: #f4f9fb;
  font-family: var(--app-font-serif);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 700;
  line-height: 1.25;
}

.splash-brand h2 span {
  color: #60c2ef;
}

.splash-brand-tagline {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-top: 1.2rem;
  color: rgb(226 240 247 / .64);
  font-size: .9rem;
}

.splash-brand-tagline::before {
  width: 28px;
  height: 1px;
  background: #1597d8;
  content: "";
}

.splash-loader {
  position: absolute;
  right: 50%;
  bottom: clamp(1.6rem, 5vh, 3.2rem);
  z-index: 3;
  width: min(360px, calc(100vw - 3rem));
  transform: translateX(50%);
}

.splash-loader > span {
  display: block;
  width: 100%;
  height: 2px;
  overflow: hidden;
  background: rgb(255 255 255 / .12);
}

.splash-loader > span::after {
  display: block;
  width: 45%;
  height: 100%;
  background: linear-gradient(90deg, transparent, #34b2ef, #fff);
  content: "";
  animation: splash-build-progress 2.55s .18s cubic-bezier(.65, 0, .35, 1) both;
}

.splash-loader em {
  display: block;
  margin-top: .65rem;
  color: rgb(255 255 255 / .42);
  font-family: var(--app-font-mono);
  font-size: .55rem;
  font-style: normal;
  letter-spacing: .24em;
  text-align: center;
}

@keyframes porcelain-place {
  0% { opacity: 0; transform: translate3d(var(--x), calc(var(--y) - 210px), calc(var(--z) + 220px)) rotateX(-85deg) rotateY(150deg) rotateZ(24deg) scale(.55); }
  62% { opacity: 1; }
  82% { transform: translate3d(var(--x), calc(var(--y) + 8px), var(--z)) rotateX(var(--rx)) rotateY(var(--ry)) rotateZ(0) scale(1.03); }
  100% { opacity: 1; transform: translate3d(var(--x), var(--y), var(--z)) rotateX(var(--rx)) rotateY(var(--ry)) rotateZ(0) scale(1); }
}

@keyframes porcelain-glint {
  0%, 40% { transform: translateX(-130%); }
  100% { transform: translateX(130%); }
}

@keyframes porcelain-merge {
  0% { opacity: 1; filter: blur(0); }
  100% { opacity: 0; filter: blur(8px); }
}

@keyframes splash-logo-lock {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.82); filter: blur(10px) drop-shadow(0 24px 34px rgb(0 0 0 / .38)); }
  70% { opacity: 1; transform: translate(-50%, -50%) scale(1.035); filter: blur(0) drop-shadow(0 24px 34px rgb(0 0 0 / .38)); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); filter: blur(0) drop-shadow(0 24px 34px rgb(0 0 0 / .38)); }
}

@keyframes splash-logo-shift {
  from { transform: translateX(-50%) translateY(-50%) scale(1); }
  to { transform: translateX(calc(-50% - clamp(90px, 11vw, 145px))) translateY(-50%) scale(1); }
}

@keyframes splash-wordmark-in {
  from { opacity: 0; transform: translateY(-50%) translateX(24px); filter: blur(6px); }
  to { opacity: 1; transform: translateY(-50%) translateX(0); filter: blur(0); }
}

@keyframes splash-logo-glow {
  to { opacity: 1; }
}

@keyframes splash-floor-in {
  from { opacity: 0; transform: translate(-50%, -20%) rotateX(68deg) scale(.55); }
  to { opacity: 1; transform: translate(-50%, -20%) rotateX(68deg) scale(1); }
}

@keyframes splash-axis-in {
  from { opacity: 0; clip-path: inset(0 50%); }
  to { opacity: 1; clip-path: inset(0); }
}

@keyframes splash-brand-in {
  to { opacity: 1; transform: translateX(0); }
}

@keyframes splash-build-progress {
  from { transform: translateX(235%); }
  to { transform: translateX(-110%); }
}

@keyframes splash-atmosphere-spin {
  to { transform: rotate(360deg); }
}

.splash-screen.is-preview .porcelain-cube,
.splash-screen.is-preview .splash-logo-symbol,
.splash-screen.is-preview .splash-wordmark,
.splash-screen.is-preview .splash-logo-symbol::after,
.splash-screen.is-preview .splash-floor,
.splash-screen.is-preview .splash-axis,
.splash-screen.is-preview .splash-brand,
.splash-screen.is-preview .cube-face::after,
.splash-screen.is-preview .splash-loader > span::after {
  animation-delay: -5s;
  animation-play-state: paused;
}

@media (max-width: 1023px) {
  .site-nav-link.is-active::after {
    display: none;
  }

  .splash-layout {
    width: calc(100vw - 2rem);
    text-align: center;
  }

  .splash-stage {
    height: 310px;
    transform: scale(.84);
  }

  .splash-brand {
    margin-inline: auto;
    padding: 1.5rem 0 0;
    border-top: 1px solid rgb(96 188 235 / .25);
    border-right: 0;
    border-left: 0;
    text-align: center;
  }

  .splash-brand::before {
    top: -2px;
    right: 50%;
    left: auto;
    width: 52px;
    height: 3px;
    transform: translateX(50%);
  }

  .splash-brand-mark {
    display: none;
  }

  .splash-brand-kicker {
    margin-bottom: .55rem;
  }

  .splash-brand-tagline {
    justify-content: center;
    margin-top: .65rem;
  }
}

@media (max-width: 600px) {
  .splash-layout {
    width: calc(100vw - 1rem);
  }

  .splash-stage {
    height: 300px;
    perspective: 900px;
    transform: none;
  }

  .splash-screen {
    --cube-size: clamp(60px, 17vw, 68px);
  }

  .porcelain-cube {
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
  }

  .porcelain-cube-1 { --x: -78px; --y: -40px; }
  .porcelain-cube-2 { --x: -78px; --y: 34px; }
  .porcelain-cube-3 { --x: 78px; --y: -40px; }
  .porcelain-cube-4 { --x: 78px; --y: 34px; }
  .porcelain-cube-5 { --x: -37px; --y: -4px; --z: 22px; }
  .porcelain-cube-6 { --x: 37px; --y: -4px; --z: 22px; }
  .porcelain-cube-7 { --x: 0px; --y: 54px; --z: 40px; }

  .splash-logo-symbol {
    width: clamp(145px, 42vw, 190px);
  }

  .splash-wordmark {
    left: calc(50% + 8px);
    width: clamp(140px, 43vw, 175px);
  }

  .splash-axis-x {
    width: min(320px, 86vw);
  }

  .splash-axis-y {
    width: min(260px, 70vw);
  }
}

@media (prefers-reduced-motion: reduce) {
  .splash-screen,
  .toast-message {
    transition-duration: .01ms !important;
  }

  .splash-atmosphere,
  .porcelain-cube,
  .splash-floor,
  .splash-axis,
  .splash-logo-symbol,
  .splash-wordmark,
  .splash-brand,
  .cube-face::after,
  .splash-loader > span::after {
    animation-delay: -5s !important;
    animation-play-state: paused !important;
  }
}

/* Homepage refinement */
.home-page {
  overflow: hidden;
  background: #f8fbfd;
}

.home-hero {
  min-height: clamp(590px, calc(100svh - 72px), 720px);
  background: #eaf5fa;
}

.home-hero-image {
  width: 68%;
  object-position: 52% center;
  filter: saturate(.9) contrast(1.03);
}

.home-hero-wash {
  background:
    linear-gradient(90deg, rgb(234 245 250 / 0) 42%, rgb(234 245 250 / .2) 57%, #eaf5fa 77%),
    linear-gradient(180deg, rgb(3 28 44 / .02), rgb(3 28 44 / .14));
}

.home-hero-inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(4rem, 10vh, 7rem) clamp(5rem, 11vh, 7rem);
}

.home-hero-copy {
  width: min(36vw, 31rem);
  margin-right: clamp(1rem, 3vw, 3.25rem);
  padding-inline: 0;
}

.home-hero-copy::before {
  position: absolute;
  top: .25rem;
  right: -1rem;
  width: 3px;
  height: 4.25rem;
  background: hsl(var(--accent));
  content: "";
  box-shadow: 0 0 0 6px hsl(var(--accent) / .09);
}

.home-hero-brand {
  color: #24769b;
  font-size: .62rem;
  letter-spacing: .16em;
}

.home-hero h1 {
  font-size: clamp(2.35rem, 4.8vw, 4.25rem);
  letter-spacing: -.035em;
  line-height: 1.08;
}

.home-hero-copy > p:not(.home-hero-brand) {
  max-width: 28rem;
  color: #486274;
  font-size: .9rem;
  line-height: 1.95;
}

.home-hero-actions {
  gap: .65rem;
  margin-top: 1.65rem;
}

.home-hero-actions .brand-button {
  min-width: 9.5rem;
  box-shadow: 0 12px 24px hsl(var(--accent) / .2);
}

.home-hero-actions .brand-button-outline {
  background: rgb(255 255 255 / .5);
  border-color: #9bb1bf;
}

.home-hero-dots {
  bottom: 2rem;
  inset-inline-start: 50%;
  transform: translateX(-50%);
}

.home-hero-dots span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgb(255 255 255 / .65);
}

.home-hero-dots span.is-current {
  width: 2rem;
  border-radius: 99px;
  background: hsl(var(--accent));
}

.home-trust-wrap {
  margin-top: -3.15rem;
}

.home-trust-card {
  position: relative;
  min-height: 7.1rem;
  padding: .85rem 1.35rem;
  border-color: rgb(188 211 223 / .8);
  border-radius: .7rem;
  box-shadow: 0 18px 44px rgb(18 45 65 / .13);
}

.home-trust-item {
  min-height: 4.5rem;
  gap: .9rem;
}

.home-trust-index {
  align-self: flex-start;
  padding-top: .15rem;
  color: hsl(var(--accent));
  font-family: var(--app-font-mono);
  font-size: .62rem;
  letter-spacing: .08em;
}

.home-trust-item strong {
  font-size: 1.55rem;
  letter-spacing: -.02em;
}

.home-trust-item span:not(.home-trust-index) {
  font-size: .68rem;
}

.home-about {
  padding-block: 7.5rem 6.5rem;
  background:
    linear-gradient(90deg, transparent 0 8%, rgb(217 232 239 / .35) 8% 8.08%, transparent 8.08%),
    #f8fbfd;
}

.home-about-grid {
  gap: clamp(2.5rem, 8vw, 8rem);
}

.home-about-copy {
  padding-top: 1rem;
}

.home-about-copy h2 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  letter-spacing: -.035em;
}

.home-about-copy > p:not(.section-heading-tag) {
  color: #536b7b;
  font-size: .92rem;
}

.home-about-points span {
  padding-top: .75rem;
  border-top: 1px solid #d7e4eb;
  color: #24465b;
}

.home-about-media {
  min-height: 28rem;
  border-radius: .65rem;
  box-shadow: 22px 22px 0 rgb(219 235 243 / .72), 0 20px 45px rgb(21 55 78 / .15);
}

.home-media-caption {
  right: 1.5rem;
  bottom: 1.35rem;
}

.home-media-caption strong {
  font-size: 1.15rem;
}

.home-solutions,
.home-showcase,
.home-project-showcase {
  padding-block: 6.5rem;
}

.home-solutions {
  background:
    radial-gradient(circle at 8% 12%, rgb(61 177 226 / .12), transparent 18rem),
    #0b2636;
}

.home-section-center {
  margin-bottom: 2.5rem;
}

.home-section-center p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.home-section-center p::before,
.home-section-center p::after {
  width: 2.5rem;
  height: 1px;
  background: currentColor;
  content: "";
  opacity: .45;
}

.home-section-center h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  letter-spacing: -.03em;
}

.home-solutions-grid,
.home-product-grid,
.home-project-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.solution-tile,
.home-product-tile,
.home-project-tile {
  border-radius: .6rem;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

.solution-tile:hover,
.home-product-tile:hover,
.home-project-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 32px rgb(0 22 37 / .2);
}

.solution-tile {
  min-height: 18rem;
  border-color: rgb(127 201 232 / .25);
}

.solution-tile > div {
  bottom: 1.25rem;
}

.solution-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border: 1px solid rgb(121 199 247 / .5);
  font-family: var(--app-font-mono);
}

.solution-tile h3 {
  margin-top: .8rem;
  font-size: 1.15rem;
}

.home-showcase,
.home-project-showcase {
  background: #f8fbfd;
}

.home-product-tile {
  aspect-ratio: .92;
  box-shadow: 0 12px 28px rgb(33 57 72 / .1);
}

.home-product-tile > div {
  inset-inline: 1.1rem;
  bottom: 1.1rem;
}

.home-product-tile h3 {
  font-size: 1.05rem;
}

.home-project-showcase {
  padding-top: 1rem;
}

.home-project-tile {
  aspect-ratio: 1.65;
}

.home-cta {
  padding-bottom: 6.5rem;
  background: #f8fbfd;
}

.home-cta-box {
  position: relative;
  background:
    linear-gradient(110deg, rgb(8 58 83 / .96), rgb(11 117 168 / .91)),
    #0b3c57;
  border-radius: .7rem;
  box-shadow: 0 20px 45px rgb(16 55 75 / .16);
}

.home-cta-copy {
  position: relative;
  z-index: 1;
  padding: clamp(2.5rem, 5vw, 4.5rem);
}

.home-cta-copy > p {
  color: #85d2f7;
  letter-spacing: .08em;
}

.home-cta-copy h2,
.home-cta-copy > span {
  color: #fff;
}

.home-cta-copy > span {
  color: rgb(235 248 253 / .72);
}

.home-cta-image {
  min-height: 20rem;
  opacity: .72;
}

.home-cta-image::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #0b3c57, transparent);
  content: "";
}

@media (max-width: 1023px) {
  .home-hero {
    min-height: 620px;
    align-items: flex-end;
  }

  .home-hero-image {
    width: 100%;
    opacity: .78;
  }

  .home-hero-wash {
    background: linear-gradient(180deg, rgb(3 28 44 / .02) 20%, rgb(3 28 44 / .88) 100%);
  }

  .home-hero-copy {
    width: min(100%, 34rem);
    margin-inline: 0 auto;
    padding: 1.5rem 1.25rem 0;
    color: #fff;
  }

  .home-hero-copy::before {
    right: 0;
    background: #65c8f3;
  }

  .home-hero-brand,
  .home-hero-copy > p:not(.home-hero-brand) {
    color: rgb(242 251 255 / .78);
  }

  .home-hero h1 {
    color: #fff;
  }

  .home-hero-actions .brand-button-outline {
    color: #fff;
    background: rgb(5 31 45 / .35);
    border-color: rgb(255 255 255 / .55);
  }

  .home-about {
    background: #f8fbfd;
  }

  .home-about-media {
    box-shadow: 12px 12px 0 rgb(219 235 243 / .72), 0 20px 45px rgb(21 55 78 / .15);
  }
}

@media (max-width: 767px) {
  .home-hero {
    min-height: 610px;
  }

  .home-hero-inner {
    padding-block: 2rem 4.5rem;
  }

  .home-hero-copy {
    width: 100%;
    padding-inline: 1rem;
  }

  .home-hero h1 {
    font-size: 2.55rem;
  }

  .home-trust-wrap {
    margin-top: -1.75rem;
  }

  .home-trust-card {
    padding: .65rem;
  }

  .home-trust-item {
    min-height: 3.7rem;
  }

  .home-trust-index {
    display: none;
  }

  .home-about,
  .home-solutions,
  .home-showcase,
  .home-project-showcase {
    padding-block: 4.5rem;
  }

  .home-about-media {
    min-height: 20rem;
  }

  .home-cta {
    padding-bottom: 4.5rem;
  }

  .home-cta-box {
    grid-template-columns: 1fr;
  }

  .home-cta-image {
    min-height: 12rem;
    order: -1;
  }
}

/* Projects are presented as an immersive image story, not product cards. */
.home-project-showcase {
  padding-block: 5rem 5.5rem;
  background: var(--logo-charcoal);
}

.home-project-showcase .home-section-center {
  margin-bottom: 2rem;
}

.home-project-showcase .home-section-center h2 {
  color: #fff;
}

.home-project-grid {
  grid-template-columns: minmax(0, 1fr);
  max-width: none;
}

.home-project-feature {
  position: relative;
  display: block;
  width: 100%;
  min-height: 430px;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  background: var(--logo-charcoal);
  box-shadow: none;
  overflow: hidden;
}

.home-project-feature::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(0deg, rgb(26 27 31 / .96) 0%, rgb(26 27 31 / .55) 34%, rgb(26 27 31 / .05) 76%);
  content: "";
}

.home-project-feature > img {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.8);
}

.home-project-tile.home-project-feature > .home-project-feature-content {
  position: absolute;
  z-index: 2;
  inset: 0;
  right: 0;
  left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  width: min(100%, 38rem);
  padding: clamp(1.5rem, 4vw, 3.5rem);
  background: none;
}

.home-project-feature-kicker {
  margin-bottom: .75rem;
}

.home-project-feature-content h3 {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
}

.home-project-feature-content > span {
  max-width: 31rem;
}

.home-project-feature-link {
  margin-top: 1.15rem;
}

@media (max-width: 767px) {
  .home-project-showcase {
    padding-block: 3.5rem 4rem;
  }

  .home-project-feature {
    min-height: 360px;
  }

  .home-project-tile.home-project-feature > .home-project-feature-content {
    width: 100%;
    padding: 1.35rem;
  }

  .home-project-feature-content h3 {
    font-size: 1.75rem;
  }
}

/* Logo-led color direction: charcoal, blue, white, and porcelain gray. */
:root {
  --logo-charcoal: #1a1b1f;
  --logo-blue: #0077c3;
  --logo-blue-deep: #005d99;
  --porcelain-gray: #f3f4f5;
}

.home-page {
  background: var(--porcelain-gray);
}

.home-hero {
  min-height: clamp(600px, calc(100svh - 72px), 760px);
  background: var(--logo-charcoal);
}

.home-hero-image {
  width: 100%;
  opacity: .92;
  filter: saturate(.7) contrast(1.1);
}

.home-hero-wash {
  background:
    linear-gradient(90deg, rgb(26 27 31 / .16) 0%, rgb(26 27 31 / .2) 38%, rgb(26 27 31 / .72) 69%, #1a1b1f 100%),
    linear-gradient(180deg, rgb(26 27 31 / .12), rgb(26 27 31 / .55));
}

.home-hero-copy {
  width: min(42vw, 35rem);
  margin-right: clamp(1.5rem, 5vw, 5.5rem);
  color: #fff;
}

.home-hero-copy::before {
  top: .1rem;
  right: -1.25rem;
  height: 4.8rem;
  background: var(--logo-blue);
  box-shadow: 0 0 0 6px rgb(0 119 195 / .16);
}

.home-hero-brand {
  color: rgb(255 255 255 / .68);
  letter-spacing: .2em;
}

.home-hero h1 {
  color: #fff;
  font-size: clamp(2.55rem, 5vw, 4.65rem);
  letter-spacing: -.045em;
}

.home-hero h1 span {
  color: #23a1ec;
}

.home-hero h1 .home-hero-title-main,
.home-hero h1 .home-hero-title-accent {
  display: block;
}

.home-hero h1 .home-hero-title-main {
  color: #fff;
}

.home-hero h1 .home-hero-title-accent {
  color: #23a1ec;
  margin-top: .45rem;
}

.home-hero-copy > p:not(.home-hero-brand) {
  max-width: 30rem;
  color: rgb(255 255 255 / .74);
}

.home-hero-actions .brand-button {
  background: var(--logo-blue);
  box-shadow: 0 12px 25px rgb(0 119 195 / .28);
}

.home-hero-actions .brand-button:hover {
  background: #078bd8;
}

.home-hero-actions .brand-button-outline {
  color: #fff;
  background: rgb(26 27 31 / .3);
  border-color: rgb(255 255 255 / .55);
}

.home-hero-actions .brand-button-outline:hover {
  color: #fff;
  border-color: #23a1ec;
  background: rgb(0 119 195 / .2);
}

.home-hero-dots span {
  background: rgb(255 255 255 / .55);
}

.home-hero-dots .is-current {
  background: #23a1ec;
}

.home-trust-wrap {
  margin-top: -3.4rem;
}

.home-trust-card {
  border-top: 3px solid var(--logo-blue);
  border-radius: .2rem .2rem .7rem .7rem;
  box-shadow: 0 20px 48px rgb(26 27 31 / .18);
}

.home-trust-item strong {
  color: var(--logo-charcoal);
}

.home-trust-index {
  color: var(--logo-blue);
}

.home-about {
  background: #fff;
}

.home-about-copy h2,
.home-section-center h2 {
  color: var(--logo-charcoal);
}

.home-section-light h2 {
  color: #fff;
}

.home-solutions .home-section-center h2 {
  color: #fff;
}

.home-about-copy > p:not(.section-heading-tag) {
  color: #5c626a;
}

.home-about-points span {
  position: relative;
  padding-top: .95rem;
  color: var(--logo-charcoal);
}

.home-about-points span::before {
  width: .45rem;
  height: .45rem;
  margin-bottom: .1rem;
  border-radius: 50%;
  background: var(--logo-blue);
  content: "";
}

.home-about-media {
  border-radius: .2rem;
  box-shadow: 14px 14px 0 rgb(0 119 195 / .1), 0 20px 45px rgb(26 27 31 / .16);
}

.home-about-advantages {
  max-width: 1200px;
  margin: 5.5rem auto 0;
  padding-top: 3.2rem;
  border-top: 1px solid #e3e7ea;
}

.home-about-advantages-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.home-about-advantages-heading .section-heading-tag {
  margin-bottom: .5rem;
}

.home-about-advantages-heading h3 {
  margin: 0;
  color: var(--logo-charcoal);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -.035em;
}

.home-about-advantages-heading > p {
  max-width: 420px;
  margin: 0;
  color: #6a7077;
  font-size: .86rem;
  line-height: 1.9;
}

.home-about-advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid #e3e7ea;
  background: #fff;
}

.home-about-advantages-grid article {
  position: relative;
  display: flex;
  min-height: 180px;
  gap: 1rem;
  padding: 1.8rem 1.4rem;
  border-left: 1px solid #e3e7ea;
  transition: background-color .25s ease, transform .25s ease;
}

.home-about-advantages-grid article:last-child {
  border-left: 0;
}

.home-about-advantages-grid article::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  content: "";
  background: var(--logo-blue);
  transition: width .25s ease;
}

.home-about-advantages-grid article:hover {
  z-index: 1;
  background: #f7fbfe;
  transform: translateY(-4px);
}

.home-about-advantages-grid article:hover::after {
  width: 100%;
}

.home-about-advantages-grid article > span {
  flex: 0 0 auto;
  padding-top: .15rem;
  color: var(--logo-blue);
  font-family: var(--app-font-mono);
  font-size: .68rem;
  font-weight: 700;
}

.home-about-advantages-grid h4 {
  margin: 0 0 .75rem;
  color: var(--logo-charcoal);
  font-size: 1rem;
  font-weight: 700;
}

.home-about-advantages-grid p {
  margin: 0;
  color: #70777e;
  font-size: .78rem;
  line-height: 1.8;
}

@media (max-width: 900px) {
  .home-about-advantages-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-about-advantages-grid article:nth-child(2) {
    border-left: 0;
  }

  .home-about-advantages-grid article:nth-child(-n+2) {
    border-bottom: 1px solid #e3e7ea;
  }
}

@media (max-width: 640px) {
  .home-about-advantages {
    margin-top: 4rem;
    padding-top: 2.5rem;
  }

  .home-about-advantages-heading {
    align-items: start;
    flex-direction: column;
    gap: .8rem;
  }

  .home-about-advantages-grid {
    grid-template-columns: 1fr;
  }

  .home-about-advantages-grid article {
    min-height: auto;
    border-bottom: 1px solid #e3e7ea;
    border-left: 0;
  }

  .home-about-advantages-grid article:last-child {
    border-bottom: 0;
  }
}

.home-solutions {
  background:
    linear-gradient(135deg, rgb(0 119 195 / .14), transparent 32%),
    var(--logo-charcoal);
}

.home-solutions-grid,
.home-product-grid,
.home-project-grid {
  gap: 1.1rem;
}

.solution-tile {
  background: #202226;
  border-color: rgb(255 255 255 / .13);
}

.solution-number {
  color: #23a1ec;
  border-color: rgb(35 161 236 / .5);
}

.solution-tile h3 {
  color: #fff;
}

.home-showcase,
.home-project-showcase,
.home-cta {
  background: #fff;
}

.home-showcase {
  padding-block: 5.25rem 5.5rem;
}

.home-showcase .home-section-center {
  margin-bottom: 1.75rem;
}

.home-showcase .home-section-center h2 {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
}

.home-project-showcase {
  padding-block: 4.75rem 5rem;
}

.home-project-showcase .home-section-center {
  margin-bottom: 1.75rem;
}

.home-project-grid {
  grid-template-columns: minmax(0, 780px);
  justify-content: center;
}

.home-product-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 340px));
  justify-content: center;
}

.home-product-tile,
.home-project-tile {
  border-radius: .2rem;
}

.home-product-tile {
  aspect-ratio: 1;
  box-shadow: 0 12px 28px rgb(26 27 31 / .12);
}

.home-project-tile {
  aspect-ratio: 1.65;
  background: var(--logo-charcoal);
}

.home-project-feature {
  display: flex;
  flex-direction: row;
  aspect-ratio: 2.05;
  border-top: 4px solid var(--logo-blue);
  background: var(--logo-charcoal);
  direction: ltr;
}

.home-project-feature::after {
  display: none;
}

.home-project-feature > img {
  position: relative;
  inset: auto;
  flex: 0 0 58%;
  width: 58%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.home-project-feature:hover > img {
  transform: scale(1.04);
}

.home-project-tile.home-project-feature > .home-project-feature-content {
  position: relative;
  inset: auto;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(1.5rem, 3vw, 2.75rem);
  background:
    linear-gradient(145deg, rgb(0 119 195 / .14), transparent 48%),
    var(--logo-charcoal);
  text-align: right;
  direction: rtl;
}

.home-project-feature-kicker {
  margin: 0 0 1.1rem;
  color: #23a1ec;
  font-family: var(--app-font-mono);
  font-size: .62rem;
  letter-spacing: .08em;
}

.home-project-feature-meta {
  margin: 0 0 .65rem;
  color: rgb(255 255 255 / .58);
  font-size: .68rem;
}

.home-project-feature-content h3 {
  margin: 0;
  color: #fff;
  font-family: var(--app-font-serif);
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  line-height: 1.2;
}

.home-project-feature-content > span {
  max-width: 20rem;
  margin-top: .85rem;
  color: rgb(255 255 255 / .68);
  font-size: .76rem;
  line-height: 1.8;
}

.home-project-feature-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1.5rem;
  padding-bottom: .35rem;
  border-bottom: 1px solid rgb(35 161 236 / .65);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  text-decoration: none;
  transition: color .2s ease, gap .2s ease;
}

.home-project-feature-link:hover {
  gap: .75rem;
  color: #23a1ec;
}

.home-section-action .outline-button:hover {
  color: var(--logo-blue);
  border-color: var(--logo-blue);
}

.home-cta-box {
  background:
    linear-gradient(110deg, rgb(26 27 31 / .98), rgb(0 93 153 / .96)),
    var(--logo-charcoal);
  border-radius: .2rem;
}

.home-cta-copy > p {
  color: #23a1ec;
}

.home-cta-copy h2 {
  color: #fff;
}

.home-cta-copy > span {
  color: rgb(255 255 255 / .68);
}

.home-cta-image {
  position: relative;
}

@media (max-width: 1023px) {
  .home-hero-image {
    width: 100%;
    opacity: .82;
  }

  .home-hero-wash {
    background:
      linear-gradient(180deg, rgb(26 27 31 / .08) 10%, rgb(26 27 31 / .9) 100%),
      linear-gradient(90deg, rgb(26 27 31 / .08), rgb(26 27 31 / .35));
  }

  .home-hero-copy {
    width: min(100%, 35rem);
    margin-right: 0;
  }

  .home-about-media {
    box-shadow: 10px 10px 0 rgb(0 119 195 / .1), 0 20px 45px rgb(26 27 31 / .16);
  }
}

@media (max-width: 767px) {
  .home-hero {
    min-height: 610px;
  }

  .home-hero-inner {
    padding-block: 3.5rem 5.75rem;
  }

  .home-hero-copy {
    width: 100%;
    margin-right: 0;
    padding: 2.25rem 1.5rem 3rem;
  }

  .home-hero-brand {
    margin-bottom: 2rem;
    line-height: 1.6;
  }

  .home-hero h1 {
    display: flex;
    flex-direction: column;
    font-size: 2.7rem;
    gap: 1rem;
    line-height: 1.08;
    margin-bottom: 1.9rem;
  }

  .home-hero h1 .home-hero-title-accent {
    margin-top: 0;
  }

  .home-hero-copy > p:not(.home-hero-brand) {
    margin-top: 0;
    line-height: 2.25;
  }

  .home-hero-actions {
    gap: .9rem;
    margin-top: 2.8rem;
  }

  .home-trust-card {
    border-top-width: 2px;
  }

  .home-showcase {
    padding-block: 3.5rem 4rem;
  }

  .home-project-showcase {
    padding-block: 3.5rem 4rem;
  }

  .home-project-showcase .home-section-center {
    margin-bottom: 1.35rem;
  }

  .home-project-grid {
    grid-template-columns: minmax(0, 360px);
  }

  .home-project-tile {
    aspect-ratio: 1.45;
  }

  .home-project-feature {
    flex-direction: column;
    aspect-ratio: auto;
  }

  .home-project-feature > img {
    flex: none;
    width: 100%;
    height: 13rem;
  }

  .home-project-feature-content {
    min-height: 15rem;
    padding: 1.5rem;
  }

  .home-showcase .home-section-center {
    margin-bottom: 1.35rem;
  }

  .home-product-grid {
    grid-template-columns: minmax(0, 360px);
  }

  .home-product-tile {
    aspect-ratio: 1.08;
  }
}

/* Final project showcase layout: full image story, never a card. */
.home-project-showcase {
  padding-block: 5rem 5.5rem;
  background: var(--logo-charcoal);
}

.home-project-showcase .home-section-center {
  margin-bottom: 2rem;
}

.home-project-showcase .home-section-center h2 {
  color: #fff;
}

.home-project-grid {
  grid-template-columns: minmax(0, 1fr);
  max-width: none;
}

.home-project-tile.home-project-feature {
  position: relative;
  display: block;
  width: 100%;
  min-height: 430px;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  background: var(--logo-charcoal);
  box-shadow: none;
  overflow: hidden;
}

.home-project-tile.home-project-feature > img {
  position: absolute;
  z-index: 0;
  inset: 0;
  flex: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.8);
}

.home-project-tile.home-project-feature > .home-project-feature-content {
  position: absolute;
  z-index: 2;
  inset: 0;
  right: 0;
  left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  width: min(100%, 38rem);
  min-height: 0;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  background: none;
}

.home-project-tile.home-project-feature > img,
.home-project-tile.home-project-feature:hover > img {
  transform: none;
  transition: none;
}

.home-project-carousel {
  position: relative;
}

.home-project-grid {
  display: flex;
  gap: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  direction: ltr;
}

.home-project-grid::-webkit-scrollbar {
  display: none;
}

.home-project-tile.home-project-feature {
  flex: 0 0 100%;
  max-width: 100%;
  scroll-snap-align: start;
}

.home-project-controls {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: .8rem;
  margin-top: 1.25rem;
  direction: ltr;
}

.home-project-control {
  display: grid;
  width: 2.6rem;
  height: 2.6rem;
  place-items: center;
  border: 1px solid rgb(255 255 255 / .34);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.home-project-control:hover {
  border-color: #23a1ec;
  background: var(--logo-blue);
  transform: translateY(-2px);
}

.home-project-progress {
  display: inline-flex;
  align-items: baseline;
  gap: .35rem;
  min-width: 3rem;
  color: rgb(255 255 255 / .58);
  font-family: var(--app-font-mono);
  font-size: .68rem;
}

.home-project-progress b {
  color: #23a1ec;
  font-size: .85rem;
}

.home-project-progress i {
  font-style: normal;
  opacity: .55;
}

@media (max-width: 767px) {
  .home-project-showcase {
    padding-block: 3.5rem 4rem;
  }

  .home-project-tile.home-project-feature {
    min-height: 360px;
    aspect-ratio: auto;
  }

  .home-project-tile.home-project-feature > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .home-project-tile.home-project-feature > .home-project-feature-content {
    width: 100%;
    min-height: 0;
    padding: 1.35rem;
  }

  .home-project-controls {
    margin-top: 1rem;
  }
}

/* Keep the project action and the following CTA visually separated. */
.home-project-showcase .home-section-action {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgb(255 255 255 / .14);
}

.home-cta {
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.home-cta-box {
  height: 24rem;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr);
}

.home-cta-copy {
  min-height: 0;
  padding: clamp(2rem, 3.5vw, 3rem);
}

.home-cta-image {
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.home-cta-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-testimonials {
  border-top: 1px solid #cfdee6;
  background: #fbfdfe;
  padding-block: 5.25rem 5.5rem;
}

.home-testimonials-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 2rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid #cbdde6;
}

.home-testimonials .home-section-center {
  margin: 0;
  text-align: right;
}

.home-testimonials .home-section-center p {
  margin-bottom: .7rem;
}

.home-testimonials .home-section-center h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.55rem);
}

.home-testimonials-note {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding-bottom: .25rem;
  color: #58727f;
  font-size: .72rem;
  white-space: nowrap;
}

.home-testimonials-note strong {
  color: #006da9;
  font-family: var(--app-font-mono);
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1;
}

.home-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2.25rem;
  gap: 0;
}

.home-testimonial-card {
  display: flex;
  min-height: 14rem;
  flex-direction: column;
  padding: 0 clamp(1.25rem, 3vw, 2.3rem);
  border-top: 2px solid var(--logo-blue);
}

.home-testimonial-card + .home-testimonial-card {
  border-inline-start: 1px solid #cbdde6;
}

.home-testimonial-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
}

.home-testimonial-index {
  color: #6f8b99;
  font-family: var(--app-font-mono);
  font-size: .62rem;
  letter-spacing: .08em;
}

.home-testimonial-rating {
  color: #bd7715;
  font-size: .72rem;
  letter-spacing: .18em;
  white-space: nowrap;
}

.home-testimonial-card blockquote {
  margin: 1.35rem 0 1.5rem;
  color: #16364c;
  font-size: .88rem;
  line-height: 2.1;
}

.home-testimonial-card footer {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #d1e1e8;
}

.home-testimonial-card footer strong {
  color: var(--logo-charcoal);
  font-size: .82rem;
}

.home-testimonial-card footer span {
  color: #657d89;
  font-size: .72rem;
}

.home-testimonials-empty {
  position: relative;
  display: flex;
  min-height: 15rem;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding: 2.25rem 2.5rem;
  border-inline-start: 4px solid var(--logo-blue);
  background:
    linear-gradient(110deg, rgb(0 119 195 / .16), transparent 52%),
    var(--logo-charcoal);
  overflow: hidden;
  text-align: right;
}

.home-testimonials-empty::before {
  position: absolute;
  top: -4.4rem;
  left: 1rem;
  color: rgb(35 161 236 / .12);
  content: "“";
  font-family: Georgia, serif;
  font-size: 19rem;
  font-weight: 700;
  line-height: 1;
}

.home-testimonials-empty-mark {
  display: grid;
  position: relative;
  width: 4.25rem;
  height: 4.25rem;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgb(115 207 246 / .45);
  border-radius: 50%;
  background: rgb(0 119 195 / .16);
  color: #75cff6;
  font-family: Georgia, serif;
  font-size: 3.8rem;
  line-height: .7;
}

.home-testimonials-empty > div {
  position: relative;
  flex: 1;
}

.home-testimonials-empty-kicker {
  display: block;
  margin-bottom: .35rem;
  color: #75cff6;
  font-family: var(--app-font-mono);
  font-size: .62rem;
  letter-spacing: .08em;
}

.home-testimonials-empty strong {
  display: block;
  color: #fff;
  font-family: var(--app-font-serif);
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
}

.home-testimonials-empty p {
  margin: 0;
  margin-top: .35rem;
  max-width: 34rem;
  color: rgb(255 255 255 / .64);
  font-size: .78rem;
  line-height: 1.8;
}

.home-testimonials-empty .quiet-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  flex: 0 0 auto;
  padding: .8rem 1.05rem;
  border: 1px solid rgb(117 207 246 / .5);
  color: #fff;
  font-size: .75rem;
}

.home-testimonials-empty .quiet-link:hover {
  border-color: #75cff6;
  background: rgb(0 119 195 / .28);
  color: #fff;
}

.home-services-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
}

.home-services-actions .light-outline-button {
  cursor: pointer;
  font: inherit;
}

body.testimonial-modal-open {
  overflow: hidden;
}

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

.testimonial-modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, visibility .18s ease;
}

.testimonial-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.testimonial-modal-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgb(10 24 34 / .72);
  cursor: pointer;
}

.testimonial-dialog {
  position: relative;
  width: min(100%, 38rem);
  max-height: min(90dvh, 46rem);
  overflow-y: auto;
  padding: clamp(1.35rem, 4vw, 2.5rem);
  border: 1px solid rgb(0 119 195 / .16);
  border-radius: .35rem;
  background: #fff;
  box-shadow: 0 25px 70px rgb(0 0 0 / .25);
  transform: translateY(1rem) scale(.98);
  transition: transform .22s ease;
}

.testimonial-modal.is-open .testimonial-dialog {
  transform: translateY(0) scale(1);
}

.testimonial-dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgb(26 27 31 / .1);
}

.testimonial-dialog-kicker {
  display: block;
  margin-bottom: .55rem;
  color: var(--logo-blue);
  font-family: var(--app-font-mono);
  font-size: .62rem;
  letter-spacing: .08em;
}

.testimonial-dialog h2 {
  margin: 0;
  color: var(--logo-charcoal);
  font-family: var(--app-font-serif);
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.testimonial-dialog-heading p {
  margin: .55rem 0 0;
  color: #687783;
  font-size: .8rem;
  line-height: 1.8;
}

.testimonial-modal-close {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgb(26 27 31 / .12);
  border-radius: 50%;
  background: #fff;
  color: #687783;
  cursor: pointer;
  font-size: 1.55rem;
  line-height: 1;
}

.testimonial-modal-close:hover {
  border-color: var(--logo-blue);
  color: var(--logo-blue);
}

.testimonial-dialog form {
  display: grid;
  gap: 1.15rem;
  padding-top: 1.35rem;
}

.testimonial-rating-field,
.testimonial-form-field {
  display: grid;
  gap: .55rem;
}

.testimonial-form-label,
.testimonial-form-field > span {
  color: var(--logo-charcoal);
  font-size: .78rem;
  font-weight: 700;
}

.testimonial-form-label b,
.testimonial-form-field > span b {
  color: #d45b5b;
}

.testimonial-form-field > span em {
  color: #8a969e;
  font-size: .68rem;
  font-style: normal;
  font-weight: 400;
}

.testimonial-rating-options {
  display: flex;
  gap: .45rem;
}

.testimonial-rating-options label {
  cursor: pointer;
}

.testimonial-rating-options input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.testimonial-rating-options label span {
  display: grid;
  width: 3.25rem;
  height: 3rem;
  place-items: center;
  gap: .05rem;
  border: 1px solid rgb(26 27 31 / .13);
  border-radius: .2rem;
  background: #fff;
  color: #697983;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.testimonial-rating-options label span b {
  font-size: .7rem;
  font-weight: 700;
}

.testimonial-rating-options label span i {
  color: #b6c0c5;
  font-size: .8rem;
  font-style: normal;
}

.testimonial-rating-options label:hover span,
.testimonial-rating-options input:checked + span {
  border-color: var(--logo-blue);
  background: rgb(0 119 195 / .08);
  color: var(--logo-blue);
}

.testimonial-rating-options input:checked + span i {
  color: #e09a2d;
}

.testimonial-rating-options input:focus-visible + span {
  outline: 2px solid var(--logo-blue);
  outline-offset: 2px;
}

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

.testimonial-form-field input,
.testimonial-form-field textarea {
  width: 100%;
  border: 1px solid #d7e0e5;
  border-radius: .2rem;
  background: #fbfdfe;
  color: var(--logo-charcoal);
  font-size: .82rem;
  outline: 0;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.testimonial-form-field input {
  height: 2.8rem;
  padding: 0 .85rem;
}

.testimonial-form-field textarea {
  min-height: 7rem;
  resize: vertical;
  padding: .75rem .85rem;
  line-height: 1.8;
}

.testimonial-form-field input:focus,
.testimonial-form-field textarea:focus {
  border-color: var(--logo-blue);
  box-shadow: 0 0 0 3px rgb(0 119 195 / .1);
}

.testimonial-form-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.testimonial-form-message {
  margin: 0;
  padding: .75rem .9rem;
  border-radius: .2rem;
  font-size: .78rem;
  line-height: 1.7;
}

.testimonial-form-error {
  border: 1px solid rgb(185 67 67 / .18);
  background: #fff4f4;
  color: #a64040;
}

.testimonial-form-success {
  border: 1px solid rgb(25 135 84 / .2);
  background: #f1fbf5;
  color: #187346;
}

.testimonial-dialog-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: .75rem;
  padding-top: .2rem;
}

.testimonial-cancel-button {
  height: 2.8rem;
  padding: 0 1.2rem;
  border: 1px solid #d7e0e5;
  border-radius: .2rem;
  background: #fff;
  color: #687783;
  cursor: pointer;
  font-size: .78rem;
  font-weight: 700;
}

.testimonial-cancel-button:hover {
  border-color: var(--logo-blue);
  color: var(--logo-blue);
}

.testimonial-submit-button {
  border: 0;
  cursor: pointer;
}

.testimonial-submit-button:disabled {
  cursor: wait;
  opacity: .65;
}

@media (max-width: 767px) {
  .home-project-showcase .home-section-action {
    margin-top: 1.5rem;
    padding-top: 1.15rem;
  }

  .home-cta {
    padding-top: 1.75rem;
    padding-bottom: 3rem;
  }

  .home-cta-box {
    height: auto;
  }

  .home-cta-copy {
    padding: 1.75rem 1.35rem;
  }

  .home-cta-image {
    height: 10rem;
    min-height: 10rem;
  }

  .home-testimonials {
    padding-block: 4rem 4.25rem;
  }

  .home-testimonials-header {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding-bottom: 1.35rem;
  }

  .home-testimonials .home-section-center h2 {
    font-size: 1.8rem;
  }

  .home-testimonials-note {
    padding-bottom: 0;
  }

  .home-testimonials-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 1.75rem;
  }

  .home-testimonial-card {
    min-height: 0;
    padding: 0 0 1.75rem;
  }

  .home-testimonial-card + .home-testimonial-card {
    border-top: 1px solid #dce8ee;
    border-inline-start: 0;
    padding-top: 1.75rem;
  }

  .home-testimonials-empty {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.75rem;
    padding: 1.5rem 1.35rem;
  }

  .home-testimonials-empty > div {
    min-width: calc(100% - 4.5rem);
  }

  .home-testimonials-empty .quiet-link {
    width: 100%;
    margin-inline-start: 4.35rem;
  }

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

  .home-services-actions .light-outline-button {
    width: 100%;
  }

  .testimonial-dialog {
    max-height: 92dvh;
    padding: 1.25rem;
  }

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

  .testimonial-rating-options label {
    flex: 1;
  }

  .testimonial-rating-options label span {
    width: 100%;
  }

  .testimonial-dialog-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .testimonial-dialog-actions button {
    width: 100%;
  }
}
/* --- SERVICES REDESIGN --- */
.services-hero {
  min-height: 37rem;
}

.services-hero-content {
  max-width: 100%;
  padding-block: 5rem 6rem;
  text-align: center;
}

.services-hero-content .services-hero-line {
  margin-inline: auto;
}

.services-hero-description {
  margin-inline: auto;
}

.services-hero-content h1 {
  white-space: nowrap;
}

.services-list-heading h2 {
  font-size: clamp(1.55rem, 2.5vw, 2.2rem);
}

.services-hero-filter {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  z-index: 2;
  width: min(64rem, calc(100% - 2rem));
  margin: 0;
  border: 1px solid rgb(255 255 255 / .35);
  border-radius: 3px;
  background: rgb(255 255 255 / .96);
  box-shadow: 0 18px 42px rgb(4 16 27 / .25);
  transform: translateX(-50%);
}

.services-hero-filter.services-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  padding: 1.15rem 1.5rem;
  gap: 1.25rem;
  background: rgb(255 255 255 / .96);
  backdrop-filter: blur(8px);
}

.services-hero-filter label {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.services-hero-filter label > span {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 0.25rem;
  font-size: 0.75rem;
}

.services-hero-filter input,
.services-hero-filter select {
  border: none;
  border-bottom: 2px solid #e2e8f0;
  background: transparent;
  padding: 0.5rem 0;
  font-size: 1rem;
  min-height: auto;
  width: 100%;
  border-radius: 0;
  outline: none;
  box-shadow: none;
}

.services-hero-filter input:focus,
.services-hero-filter select:focus {
  border-color: hsl(var(--accent));
  box-shadow: none;
}

.services-hero-filter .services-filter-submit {
  min-height: 2.85rem;
  background: hsl(var(--accent));
  color: #fff;
  border: none;
  border-radius: 2px;
  padding: 0 2rem;
  font-weight: 600;
  flex: 0 0 auto;
  width: auto;
}

.services-hero-filter .services-filter-submit:hover {
  background: #026ca1;
  border-color: #026ca1;
}

@media (max-width: 900px) {
  .services-hero {
    min-height: 35rem;
  }

  .services-hero-filter {
    bottom: 1.5rem;
    width: calc(100% - 2rem);
  }
  .services-hero-filter.services-filter-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem;
  }
  .services-hero-filter .services-filter-submit {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .services-hero {
    min-height: 36rem;
  }

  .services-hero-content h1 {
    white-space: normal;
  }
}

@media (max-width: 767px) {
  .services-hero {
    display: block;
    min-height: 0;
    padding-bottom: 1rem;
  }

  .services-hero-content {
    padding: 5.25rem 1rem 1.75rem;
  }

  .services-hero-content h1 {
    font-size: clamp(1.85rem, 8vw, 2.45rem);
    line-height: 1.3;
  }

  .services-hero-description {
    font-size: .88rem;
    line-height: 1.9;
  }

  .services-hero-filter {
    position: relative;
    inset: auto;
    width: calc(100% - 2rem);
    margin: 0 auto;
    transform: none;
  }

  .services-hero-filter.services-filter-bar {
    gap: 1rem;
    padding: 1.15rem 1rem;
  }

  .services-hero-filter label {
    min-width: 0;
  }
}

/* Service Card Redesign */
.services-grid {
  gap: 2.5rem 2rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e2e8f0;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  height: 100%;
  text-decoration: none;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.06);
  border-color: #cbd5e1;
}

.service-card-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #f1f5f9;
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.service-card:hover .service-card-image img {
  transform: scale(1.05);
}

.service-card-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.service-card-number {
  font-family: monospace;
  font-size: 0.75rem;
  color: #94a3b8;
  letter-spacing: 0.1em;
}

.service-card-line {
  height: 1px;
  width: 2rem;
  background: #e2e8f0;
  transition: background 0.3s ease;
}

.service-card:hover .service-card-line {
  background: hsl(var(--accent));
}

.service-card-title {
  font-family: var(--app-font-serif);
  font-size: 1.25rem;
  color: #0f172a;
  font-weight: 700;
  margin: 0 0 1rem 0;
  transition: color 0.3s ease;
}

.service-card:hover .service-card-title {
  color: hsl(var(--accent));
}

.service-card-desc {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.7;
  margin: 0 0 1.5rem 0;
  flex: 1;
}

.service-card-link {
  font-size: 0.75rem;
  font-weight: 700;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
}

.service-card:hover .service-card-link {
  color: hsl(var(--accent));
}

/* Shop redesign */
.shop-page {
  direction: rtl;
  background: #f6f9fa;
  color: #10293e;
}

.shop-hero {
  position: relative;
  display: flex;
  min-height: 31rem;
  align-items: center;
  overflow: hidden;
  background: #10293e;
}

.shop-hero-image,
.shop-hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.shop-hero-image {
  object-fit: cover;
  object-position: center;
}

.shop-hero-overlay {
  background: linear-gradient(270deg, rgb(5 21 33 / .9), rgb(5 21 33 / .6) 48%, rgb(5 21 33 / .15));
}

.shop-hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 76rem;
  margin-inline: auto;
  padding: 8rem 1.5rem 9rem;
  color: #fff;
}

.shop-hero-eyebrow {
  margin: 0 0 1.25rem;
  color: #8edcff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
}

.shop-hero h1 {
  max-width: 40rem;
  margin: 0 0 1.25rem;
  font-family: var(--app-font-serif);
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  font-weight: 800;
  line-height: 1.2;
}

.shop-hero-content > p:not(.shop-hero-eyebrow) {
  max-width: 34rem;
  margin: 0;
  color: rgb(255 255 255 / .78);
  font-size: 1rem;
  line-height: 2;
}

.shop-hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
}

.shop-hero-stats span {
  display: grid;
  gap: .2rem;
  color: rgb(255 255 255 / .65);
  font-size: .78rem;
}

.shop-hero-stats strong {
  color: #fff;
  font-family: monospace;
  font-size: 1.4rem;
  letter-spacing: .04em;
}

.shop-catalog {
  position: relative;
  z-index: 2;
  padding-bottom: 7rem;
}

.shop-filter-panel {
  position: relative;
  margin-top: -8rem;
  padding: 1.75rem 2rem 1.5rem;
  border: 1px solid #dce7ed;
  border-radius: 3px;
  background: rgb(255 255 255 / .97);
  box-shadow: 0 18px 42px rgb(16 41 62 / .13);
}

.shop-filter-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.4rem;
}

.shop-filter-heading .section-heading-tag,
.shop-results-heading .section-heading-tag,
.shop-help-card .section-heading-tag {
  margin-bottom: .45rem;
}

.shop-filter-heading h2,
.shop-results-heading h2,
.shop-help-card h2 {
  margin: 0;
  color: #10293e;
  font-family: var(--app-font-serif);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 800;
  line-height: 1.35;
}

.shop-filter-heading > span {
  color: #7a8c96;
  font-size: .78rem;
}

.shop-filter-fields {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) repeat(3, minmax(8rem, 1fr)) auto;
  align-items: end;
  gap: .8rem;
}

.shop-filter-fields label {
  display: grid;
  gap: .45rem;
}

.shop-filter-fields label > span {
  color: #536a78;
  font-size: .72rem;
  font-weight: 700;
}

.shop-input-wrap {
  position: relative;
}

.shop-input-wrap > span {
  position: absolute;
  top: 50%;
  right: .8rem;
  color: #6b8290;
  font-size: 1rem;
  transform: translateY(-50%);
}

.shop-filter-fields input,
.shop-filter-fields select {
  width: 100%;
  min-height: 2.85rem;
  border: 1px solid #cbdbe4;
  border-radius: 0;
  background: #fff;
  padding: .65rem .8rem;
  color: #10293e;
  font: inherit;
  font-size: .82rem;
  outline: none;
}

.shop-filter-fields input {
  padding-right: 2.25rem;
}

.shop-filter-fields input:focus,
.shop-filter-fields select:focus {
  border-color: hsl(var(--accent));
  box-shadow: 0 0 0 3px rgb(0 119 195 / .1);
}

.shop-filter-submit {
  display: inline-flex;
  min-height: 2.85rem;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  border: 1px solid #10293e;
  background: #10293e;
  padding: 0 1.25rem;
  color: #fff;
  font: inherit;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.shop-filter-submit:hover {
  border-color: hsl(var(--accent));
  background: hsl(var(--accent));
  transform: translateY(-2px);
}

.shop-filter-reset {
  display: inline-flex;
  margin-top: 1rem;
  color: hsl(var(--accent));
  font-size: .75rem;
  font-weight: 700;
}

.shop-results-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin: 5rem 0 2rem;
}

.shop-results-count {
  padding-bottom: .25rem;
  color: #6b7d88;
  font-family: monospace;
  font-size: .78rem;
}

.shop-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.shop-product-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #dce7ed;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.shop-product-card:hover {
  border-color: rgb(0 119 195 / .45);
  box-shadow: 0 16px 32px rgb(16 41 62 / .1);
  transform: translateY(-5px);
}

.shop-product-visual {
  position: relative;
  aspect-ratio: 1 / .88;
  overflow: hidden;
  background: #edf3f5;
  padding: 1.5rem;
}

.shop-product-visual img,
.shop-product-visual .image-placeholder {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform .5s ease;
}

.shop-product-card:hover .shop-product-visual img {
  transform: scale(1.06);
}

.shop-product-category {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: .35rem .65rem;
  border: 1px solid rgb(203 219 228 / .7);
  background: rgb(255 255 255 / .88);
  color: #38576a;
  font-size: .68rem;
  font-weight: 700;
}

.shop-product-arrow {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid rgb(16 41 62 / .12);
  background: rgb(255 255 255 / .9);
  color: #10293e;
  font-size: 1rem;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity .25s ease, transform .25s ease, color .25s ease;
}

.shop-product-card:hover .shop-product-arrow {
  color: hsl(var(--accent));
  opacity: 1;
  transform: translateY(0);
}

.shop-product-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.25rem;
}

.shop-product-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .85rem;
  color: #7b8e98;
  font-family: monospace;
  font-size: .68rem;
}

.shop-product-topline span:last-child {
  padding: .25rem .45rem;
  background: #f0f5f6;
  color: #476473;
}

.shop-product-content h3 {
  margin: 0 0 .6rem;
  color: #10293e;
  font-family: var(--app-font-serif);
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.4;
  transition: color .2s ease;
}

.shop-product-card:hover .shop-product-content h3 {
  color: hsl(var(--accent));
}

.shop-product-content p {
  min-height: 3.2rem;
  margin: 0 0 1.25rem;
  color: #71838d;
  font-size: .78rem;
  line-height: 1.8;
}

.shop-product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #e5edf0;
}

.shop-product-footer span {
  color: #7b8e98;
  font-size: .65rem;
}

.shop-product-footer strong {
  color: #10293e;
  font-size: .9rem;
}

.shop-help-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 6rem;
  padding: 2.25rem 2.5rem;
  background: #10293e;
  color: #fff;
}

.shop-help-card h2 {
  color: #fff;
}

.shop-help-card .section-heading-tag {
  color: #8edcff;
}

.shop-help-card > div > p:last-child {
  max-width: 30rem;
  margin: .75rem 0 0;
  color: rgb(255 255 255 / .68);
  font-size: .85rem;
  line-height: 1.9;
}

.shop-help-card .brand-button {
  flex: 0 0 auto;
  background: #fff;
  color: #10293e;
}

.shop-help-card .brand-button:hover {
  background: #8edcff;
}

@media (max-width: 1100px) {
  .shop-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .shop-filter-fields {
    grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(7rem, 1fr));
  }

  .shop-filter-submit {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 800px) {
  .shop-hero {
    min-height: 33rem;
  }

  .shop-hero-content {
    padding-block: 7rem 10rem;
  }

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

  .shop-filter-fields .shop-filter-search,
  .shop-filter-submit {
    grid-column: 1 / -1;
  }

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

@media (max-width: 600px) {
  .shop-hero {
    min-height: 34rem;
  }

  .shop-hero-content {
    padding-inline: 1rem;
  }

  .shop-hero h1 {
    font-size: 2.3rem;
  }

  .shop-hero-content > p:not(.shop-hero-eyebrow) {
    font-size: .9rem;
  }

  .shop-hero-stats {
    gap: 1.5rem;
    margin-top: 2rem;
  }

  .shop-filter-panel {
    margin-top: -3.5rem;
    padding: 1.35rem;
  }

  .shop-filter-heading {
    align-items: start;
    flex-direction: column;
    gap: .5rem;
  }

  .shop-filter-fields {
    grid-template-columns: 1fr;
  }

  .shop-filter-fields .shop-filter-search,
  .shop-filter-submit {
    grid-column: auto;
  }

  .shop-filter-submit {
    width: 100%;
  }

  .shop-results-heading {
    align-items: start;
    flex-direction: column;
    gap: .75rem;
    margin-top: 4rem;
  }

  .shop-product-grid {
    grid-template-columns: 1fr;
  }

  .shop-help-card {
    align-items: start;
    flex-direction: column;
    margin-top: 4.5rem;
    padding: 1.75rem;
  }

  .shop-help-card .brand-button {
    width: 100%;
    justify-content: center;
  }
}

/* Projects no-image redesign */
.projects-page {
  direction: rtl;
  background: #f5f8f9;
  color: #10293e;
}

.projects-hero {
  position: relative;
  display: flex;
  min-height: 27rem;
  align-items: center;
  overflow: hidden;
  background: #10293e;
  color: #fff;
}

.projects-hero-grid {
  position: absolute;
  inset: 0;
  opacity: .28;
  background-image:
    linear-gradient(rgb(142 220 255 / .15) 1px, transparent 1px),
    linear-gradient(90deg, rgb(142 220 255 / .15) 1px, transparent 1px);
  background-size: 5rem 5rem;
  mask-image: linear-gradient(90deg, transparent, #000 48%, #000);
}

.projects-hero::after {
  position: absolute;
  top: -16rem;
  left: -9rem;
  width: 36rem;
  height: 36rem;
  border: 1px solid rgb(142 220 255 / .18);
  border-radius: 50%;
  content: "";
}

.projects-hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 4rem;
  padding: 7rem 1.5rem 6rem;
}

.projects-hero-copy {
  max-width: 48rem;
}

.projects-hero-eyebrow {
  margin: 0 0 1.25rem;
  color: #8edcff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
}

.projects-hero h1 {
  margin: 0 0 1rem;
  font-family: var(--app-font-serif);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.15;
}

.projects-hero-copy > p:last-child {
  max-width: 32rem;
  margin: 0;
  color: rgb(255 255 255 / .7);
  font-size: 1rem;
  line-height: 2;
}

.projects-hero-index {
  display: grid;
  min-width: 9rem;
  gap: .35rem;
  align-content: end;
  padding-inline-start: 1.5rem;
  border-inline-start: 1px solid rgb(142 220 255 / .45);
}

.projects-hero-index span {
  color: rgb(255 255 255 / .55);
  font-size: .72rem;
  letter-spacing: .12em;
}

.projects-hero-index strong {
  color: #8edcff;
  font-family: monospace;
  font-size: 3rem;
  line-height: 1;
}

.projects-hero-index small {
  color: rgb(255 255 255 / .65);
  font-size: .75rem;
}

.projects-workspace {
  padding-top: 5.5rem;
  padding-bottom: 7rem;
}

.projects-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.projects-section-heading h2,
.projects-contact-panel h2 {
  margin: .55rem 0 0;
  color: #10293e;
  font-family: var(--app-font-serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  line-height: 1.35;
}

.projects-section-heading > p {
  max-width: 25rem;
  margin: 0;
  color: #71838d;
  font-size: .88rem;
  line-height: 2;
}

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

.project-editorial-card {
  position: relative;
  display: flex;
  min-height: 21rem;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #dce7ed;
  background: #fff;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.project-editorial-card::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 5px;
  height: 0;
  background: hsl(var(--accent));
  content: "";
  transition: height .35s ease;
}

.project-editorial-card:hover {
  border-color: rgb(0 119 195 / .45);
  box-shadow: 0 18px 36px rgb(16 41 62 / .1);
  transform: translateY(-4px);
}

.project-editorial-card:hover::before {
  height: 100%;
}

.project-card-topline {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: 1.5rem 1.75rem 0;
}

.project-card-number {
  color: hsl(var(--accent));
  font-family: monospace;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
}

.project-card-line {
  width: 3rem;
  height: 1px;
  background: #cbdbe4;
}

.project-card-label {
  color: #80929c;
  font-size: .7rem;
}

.project-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 2rem 1.75rem 1.5rem;
}

.project-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin: 0 0 1.25rem;
  color: #6f8590;
  font-size: .75rem;
}

.project-card-meta span + span {
  padding-inline-start: .75rem;
  border-inline-start: 1px solid #cbdbe4;
}

.project-card-body h3 {
  max-width: 28rem;
  margin: 0 0 1rem;
  color: #10293e;
  font-family: var(--app-font-serif);
  font-size: clamp(1.45rem, 2.5vw, 2.15rem);
  font-weight: 800;
  line-height: 1.3;
  transition: color .2s ease;
}

.project-editorial-card:hover .project-card-body h3 {
  color: hsl(var(--accent));
}

.project-card-description {
  max-width: 31rem;
  margin: 0;
  color: #71838d;
  font-size: .88rem;
  line-height: 2;
}

.project-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 2rem;
  color: #8a9aa2;
  font-family: monospace;
  font-size: .7rem;
}

.project-card-footer span:last-child {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border: 1px solid #dce7ed;
  color: #10293e;
  font-family: sans-serif;
  font-size: 1rem;
  transition: color .2s ease, border-color .2s ease;
}

.project-editorial-card:hover .project-card-footer span:last-child {
  border-color: hsl(var(--accent));
  color: hsl(var(--accent));
}

.projects-contact-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 6rem;
  padding: 2rem 2.5rem;
  background: #e8f2f6;
  border-inline-start: 4px solid hsl(var(--accent));
}

.projects-contact-panel .section-heading-tag {
  margin: 0;
}

.projects-contact-panel .brand-button {
  flex: 0 0 auto;
}

@media (max-width: 800px) {
  .projects-hero-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .projects-hero-index {
    grid-template-columns: auto auto auto;
    align-items: center;
    gap: .75rem 1rem;
    min-width: 0;
    padding-inline-start: 0;
    border-inline-start: 0;
    border-top: 1px solid rgb(142 220 255 / .35);
    padding-top: 1.25rem;
  }

  .projects-hero-index strong {
    font-size: 2rem;
  }

  .projects-section-heading {
    align-items: start;
    flex-direction: column;
    gap: 1rem;
  }

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

@media (max-width: 600px) {
  .projects-hero {
    min-height: 31rem;
  }

  .projects-hero-content {
    padding: 7rem 1rem 4rem;
  }

  .projects-hero h1 {
    font-size: 2.55rem;
  }

  .projects-hero-copy > p:last-child {
    font-size: .9rem;
  }

  .projects-workspace {
    padding-top: 4rem;
    padding-bottom: 5rem;
  }

  .project-card-body {
    padding-inline: 1.35rem;
  }

  .project-card-topline {
    padding-inline: 1.35rem;
  }

  .projects-contact-panel {
    align-items: start;
    flex-direction: column;
    margin-top: 4.5rem;
    padding: 1.5rem;
  }

  .projects-contact-panel .brand-button {
    width: 100%;
    justify-content: center;
  }
}

/* Projects typography and visual refinement */
.projects-hero {
  min-height: 22rem;
  border-bottom: 1px solid #dce7ed;
  background: #f4f8f9;
  color: #10293e;
}

.projects-hero-grid {
  opacity: .5;
  background-image:
    linear-gradient(rgb(0 119 195 / .08) 1px, transparent 1px),
    linear-gradient(90deg, rgb(0 119 195 / .08) 1px, transparent 1px);
}

.projects-hero::after {
  top: -19rem;
  left: -12rem;
  border-color: rgb(0 119 195 / .12);
}

.projects-hero-content {
  grid-template-columns: minmax(0, 1fr) auto;
  padding-block: 6rem 5rem;
}

.projects-hero-eyebrow {
  color: #006da9;
  font-size: .68rem;
}

.projects-hero h1 {
  margin-bottom: .75rem;
  color: #10293e;
  font-size: clamp(2rem, 3.5vw, 3rem);
}

.projects-hero-copy > p:last-child {
  max-width: 29rem;
  color: #6d808a;
  font-size: .86rem;
  line-height: 1.9;
}

.projects-hero-index {
  border-color: #b7d1dc;
}

.projects-hero-index span,
.projects-hero-index small {
  color: #71838d;
}

.projects-hero-index strong {
  color: #006da9;
  font-size: 2.35rem;
}

.projects-workspace {
  width: 100%;
  max-width: none;
  padding-inline: clamp(1rem, 2.5vw, 3rem);
  padding-top: 4.5rem;
}

.projects-section-heading {
  margin-bottom: 2rem;
}

.projects-section-heading h2,
.projects-contact-panel h2 {
  font-size: clamp(1.55rem, 2.35vw, 2.1rem);
}

.projects-section-heading > p {
  font-size: .82rem;
}

.projects-portfolio-video {
  margin-bottom: 4rem;
  padding: clamp(1.5rem, 2.5vw, 2.5rem);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgb(255 255 255 / .04), transparent 45%),
    #10293e;
  color: #fff;
}

.projects-portfolio-video-copy {
  position: relative;
  max-width: 42rem;
  margin-bottom: 2.5rem;
}

.projects-portfolio-video-copy > span {
  display: block;
  margin: .8rem 0 1.1rem;
  color: #7ecdf2;
  font-size: .72rem;
  font-weight: 700;
}

.projects-portfolio-video-copy h2 {
  margin: 0 0 1rem;
  font-family: var(--app-font-serif);
  font-size: clamp(1.8rem, 3.3vw, 3rem);
  line-height: 1.35;
}

.projects-portfolio-video-copy > p:not(.section-heading-tag) {
  max-width: 29rem;
  margin: 0;
  color: rgb(255 255 255 / .68);
  font-size: .9rem;
  line-height: 2;
}

.projects-portfolio-video-meta {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  margin-top: 2.2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgb(255 255 255 / .15);
}

.projects-portfolio-video-meta span {
  color: #62c5f2;
  font-family: var(--app-font-mono);
  font-size: 1.4rem;
}

.projects-portfolio-video-meta small {
  color: rgb(255 255 255 / .55);
  font-size: .72rem;
}

.projects-portfolio-video-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.25rem;
  direction: ltr;
}

.projects-portfolio-video-card {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / .18);
  background: #061722;
  box-shadow: 0 18px 38px rgb(0 0 0 / .25);
  transition: border-color .25s ease, transform .25s ease;
}

.projects-portfolio-video-card:hover {
  border-color: rgb(98 197 242 / .75);
  transform: translateY(-5px);
}

.projects-portfolio-video-card::before {
  position: absolute;
  inset: .75rem;
  z-index: 1;
  border: 1px solid rgb(255 255 255 / .16);
  content: "";
  pointer-events: none;
}

.projects-portfolio-video-card video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.projects-portfolio-video-card video:fullscreen {
  width: 100vw;
  height: 100vh;
  aspect-ratio: auto;
  background: #000;
  object-fit: contain;
}

.projects-portfolio-video-card video:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  aspect-ratio: auto;
  background: #000;
  object-fit: contain;
}

.projects-portfolio-video-card figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .8rem .9rem;
  color: rgb(255 255 255 / .7);
  direction: rtl;
  font-size: .68rem;
}

.projects-portfolio-video-card figcaption span {
  color: #62c5f2;
  font-family: var(--app-font-mono);
}

.project-editorial-card {
  min-height: 17.5rem;
}

.project-card-topline {
  padding: 1.25rem 1.5rem 0;
}

.project-card-body {
  padding: 1.5rem 1.5rem 1.25rem;
}

.project-card-meta {
  margin-bottom: 1rem;
  font-size: .7rem;
}

.project-card-body h3 {
  margin-bottom: .7rem;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
}

.project-card-description {
  font-size: .8rem;
  line-height: 1.85;
}

.project-card-footer {
  padding-top: 1.25rem;
  font-size: .66rem;
}

.projects-contact-panel {
  margin-top: 4.5rem;
  padding: 1.5rem 2rem;
}

@media (max-width: 1023px) {
  .projects-portfolio-video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 760px) and (min-width: 601px) {
  .projects-portfolio-video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .projects-portfolio-video {
    padding: 1.5rem;
  }

  .projects-portfolio-video-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .projects-portfolio-video-card {
    width: min(100%, 20rem);
    margin-inline: auto;
  }

  .projects-hero {
    min-height: 25rem;
  }

  .projects-hero-content {
    padding-block: 5.5rem 3.5rem;
  }

  .projects-hero h1 {
    font-size: 2.05rem;
  }

  .projects-hero-index strong {
    font-size: 2rem;
  }

  .project-card-topline {
    padding-inline: 1.25rem;
  }
}

/* Compact projects composition */
.projects-hero {
  min-height: 19rem;
  background: #fff;
}

.projects-hero-grid {
  opacity: .35;
}

.projects-hero-content {
  grid-template-columns: minmax(0, 1fr) 8rem;
  gap: 3rem;
  padding-block: 5rem 3.5rem;
}

.projects-hero-copy {
  max-width: 42rem;
}

.projects-hero h1 {
  margin-bottom: .6rem;
  font-size: clamp(1.9rem, 3.2vw, 2.7rem);
}

.projects-hero-copy > p:last-child {
  max-width: 28rem;
  font-size: .82rem;
}

.projects-hero-index {
  min-width: 0;
  padding-inline-start: 1.25rem;
}

.projects-hero-index strong {
  font-size: 2rem;
}

.projects-workspace {
  padding-top: 3.5rem;
  padding-bottom: 5.5rem;
}

.projects-section-heading {
  align-items: center;
  margin-bottom: 1.5rem;
}

.projects-section-heading h2,
.projects-contact-panel h2 {
  font-size: clamp(1.4rem, 2.1vw, 1.85rem);
}

.projects-grid {
  grid-template-columns: 1fr;
  gap: 1rem;
}

.project-editorial-card {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr) 10rem;
  min-height: 13rem;
}

.project-editorial-card::before {
  width: 3px;
}

.project-card-rail {
  display: flex;
  flex-direction: column;
  gap: .7rem;
  padding: 1.5rem 1.25rem;
  border-inline-end: 1px solid #e1ebef;
}

.project-card-number {
  font-size: 1.25rem;
}

.project-card-label {
  line-height: 1.6;
}

.project-card-body {
  padding: 1.5rem 1.75rem;
}

.project-card-meta {
  margin-bottom: .75rem;
}

.project-card-body h3 {
  margin-bottom: .5rem;
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
}

.project-card-description {
  max-width: 34rem;
  font-size: .78rem;
}

.project-card-aside {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .5rem;
  padding: 1.5rem;
  border-inline-start: 1px solid #e1ebef;
}

.project-card-aside > span:first-child {
  color: #8a9aa2;
  font-size: .68rem;
}

.project-card-aside strong {
  color: #10293e;
  font-size: .78rem;
}

.project-card-arrow {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  margin-top: .75rem;
  place-items: center;
  border: 1px solid #dce7ed;
  color: #10293e;
  font-size: 1rem;
  transition: color .2s ease, border-color .2s ease;
}

.project-editorial-card:hover .project-card-arrow {
  border-color: hsl(var(--accent));
  color: hsl(var(--accent));
}

.projects-contact-panel {
  margin-top: 4rem;
  padding: 1.25rem 1.5rem;
}

@media (max-width: 700px) {
  .projects-hero {
    min-height: 22rem;
  }

  .projects-hero-content {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding-block: 5rem 3rem;
  }

  .projects-hero-index {
    grid-template-columns: auto auto auto;
    gap: .75rem 1rem;
    padding: 1rem 0 0;
  }

  .project-editorial-card {
    grid-template-columns: 4.5rem minmax(0, 1fr);
  }

  .project-card-aside {
    grid-column: 2;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.25rem 1.25rem;
    border-inline-start: 0;
    border-top: 1px solid #e1ebef;
  }

  .project-card-arrow {
    margin-top: 0;
  }
}

@media (max-width: 480px) {
  .projects-hero h1 {
    font-size: 1.9rem;
  }

  .projects-section-heading {
    align-items: start;
    flex-direction: column;
  }

  .project-editorial-card {
    grid-template-columns: 1fr;
  }

  .project-card-rail {
    flex-direction: row;
    align-items: center;
    padding-bottom: 0;
    border-inline-end: 0;
  }

  .project-card-body {
    padding: 1.25rem;
  }

  .project-card-aside {
    grid-column: 1;
  }
}

/* Projects color and image treatment */
.projects-page {
  background: #f5fbfd;
}

.projects-hero {
  position: relative;
  overflow: hidden;
  min-height: 22rem;
  border-bottom: 0;
  background: #0e2a3c;
  color: #fff;
}

.projects-hero-image,
.projects-hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.projects-hero-image {
  object-fit: cover;
  object-position: center 58%;
}

.projects-hero-overlay {
  z-index: 1;
  background:
    linear-gradient(90deg, rgb(8 34 50 / .76), rgb(8 34 50 / .38) 48%, rgb(8 34 50 / .72)),
    linear-gradient(180deg, rgb(8 34 50 / .22), rgb(8 34 50 / .5));
}

.projects-hero-grid {
  z-index: 2;
  opacity: .45;
  background-image:
    linear-gradient(rgb(142 220 255 / .12) 1px, transparent 1px),
    linear-gradient(90deg, rgb(142 220 255 / .12) 1px, transparent 1px);
}

.projects-hero::after {
  border-color: rgb(142 220 255 / .18);
}

.projects-hero-content {
  position: relative;
  z-index: 3;
  padding-block: 6rem 4.5rem;
}

.projects-hero-eyebrow {
  color: #8edcff;
}

.projects-hero h1 {
  color: #fff;
}

.projects-hero-copy > p:last-child {
  color: rgb(255 255 255 / .7);
}

.projects-hero-index {
  border-color: rgb(142 220 255 / .45);
}

.projects-hero-index span,
.projects-hero-index small {
  color: rgb(255 255 255 / .6);
}

.projects-hero-index strong {
  color: #8edcff;
}

.projects-workspace {
  padding-top: 4rem;
}

.projects-section-heading h2 {
  color: #0e2a3c;
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
}

.projects-section-heading .section-heading-tag {
  font-size: .62rem;
}

.projects-grid {
  gap: 1.25rem;
}

.project-editorial-card {
  grid-template-columns: 13rem minmax(0, 1fr) 9rem;
  min-height: 15rem;
  border-color: #d7e9f0;
  background: #fff;
}

.project-editorial-card::before {
  background: hsl(var(--accent));
}

.project-card-media {
  position: relative;
  min-height: 15rem;
  overflow: hidden;
  background: #d9e2e5;
}

.project-card-media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(14 42 60 / .08), rgb(14 42 60 / .55));
  content: "";
}

.project-card-media img,
.project-card-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.project-card-placeholder {
  background:
    linear-gradient(135deg, rgb(14 42 60 / .18), transparent 55%),
    linear-gradient(45deg, #d7e5e8, #b7cbd1);
}

.project-editorial-card:hover .project-card-media img {
  transform: scale(1.06);
}

.project-card-number {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1;
  color: #fff;
  font-size: 1.15rem;
}

.project-card-media-label {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 1;
  color: rgb(255 255 255 / .8);
  font-size: .68rem;
}

.project-card-body {
  padding: 1.5rem 1.75rem;
}

.project-card-meta {
  color: #72828a;
}

.project-card-body h3 {
  color: #0e2a3c;
}

.project-card-description {
  color: #74838a;
}

.project-card-aside {
  border-inline-start: 0;
  background: #edf8fb;
}

.project-card-aside > span:first-child {
  color: #65818d;
}

.project-card-aside strong {
  color: #0e2a3c;
}

.project-card-arrow {
  border-color: #cfe3eb;
  color: #0e2a3c;
}

.project-editorial-card:hover .project-card-arrow {
  border-color: hsl(var(--accent));
  color: hsl(var(--accent));
}

.projects-contact-panel {
  background: #e5f5fa;
  border-inline-start-color: hsl(var(--accent));
}

.projects-contact-panel h2 {
  color: #0e2a3c;
}

@media (max-width: 700px) {
  .project-editorial-card {
    grid-template-columns: 10rem minmax(0, 1fr);
  }

  .project-card-media {
    min-height: 14rem;
    grid-row: span 2;
  }
}

@media (max-width: 480px) {
  .project-editorial-card {
    grid-template-columns: 1fr;
  }

  .project-card-media {
    min-height: 12rem;
    grid-row: auto;
  }
}

/* Return projects to a card grid */
.projects-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.project-editorial-card {
  display: flex;
  flex-direction: column;
  min-height: 26rem;
  max-width: none;
}

.project-card-media {
  flex: 0 0 13rem;
  min-height: 13rem;
}

.project-card-body {
  flex: 1;
  padding: 1.35rem 1.4rem 1.1rem;
}

.project-card-aside {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 4.2rem;
  padding: .9rem 1.4rem;
  border-top: 1px solid #d7e9f0;
}

.project-card-aside strong {
  margin-inline-start: auto;
  margin-inline-end: .75rem;
}

.project-card-arrow {
  margin-top: 0;
}

@media (max-width: 1000px) {
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-editorial-card {
    min-height: 24rem;
  }

  .project-card-media {
    flex-basis: 12rem;
    min-height: 12rem;
  }
}

/* Contact page */
.contact-page {
  min-height: 100%;
  background: #f5fbfd;
  color: #10293e;
}

.contact-hero {
  position: relative;
  min-height: 25rem;
  overflow: hidden;
  background: #10293e;
}

.contact-hero-image,
.contact-hero-overlay,
.contact-hero-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.contact-hero-image {
  object-fit: cover;
  object-position: center 58%;
}

.contact-hero-overlay {
  z-index: 1;
  background:
    linear-gradient(90deg, rgb(8 34 50 / .78), rgb(8 34 50 / .46) 48%, rgb(8 34 50 / .82)),
    linear-gradient(180deg, rgb(8 34 50 / .14), rgb(8 34 50 / .62));
}

.contact-hero-grid {
  z-index: 2;
  opacity: .38;
  background-image:
    linear-gradient(rgb(142 220 255 / .13) 1px, transparent 1px),
    linear-gradient(90deg, rgb(142 220 255 / .13) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}

.contact-hero-inner {
  position: relative;
  z-index: 3;
  display: flex;
  min-height: 25rem;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  padding-block: 5rem 4rem;
  color: #fff;
}

.contact-hero-copy {
  max-width: 35rem;
}

.contact-hero-eyebrow,
.contact-panel-kicker,
.contact-form-kicker {
  margin: 0 0 .85rem;
  color: #8edcff;
  font-family: var(--app-font-mono);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
}

.contact-hero h1 {
  margin: 0;
  color: #fff;
  font-family: var(--app-font-serif);
  font-size: clamp(2.1rem, 4.2vw, 3.5rem);
  font-weight: 800;
  line-height: 1.22;
}

.contact-hero h1 strong {
  color: #8edcff;
  font-weight: inherit;
}

.contact-hero-copy > p:last-child {
  max-width: 29rem;
  margin: 1.15rem 0 0;
  color: rgb(255 255 255 / .74);
  font-size: .9rem;
  line-height: 2;
}

.contact-hero-note {
  display: grid;
  min-width: 8.5rem;
  gap: .35rem;
  padding-inline-start: 1.35rem;
  border-inline-start: 1px solid rgb(142 220 255 / .5);
  text-align: right;
}

.contact-hero-note span,
.contact-hero-note small {
  color: rgb(255 255 255 / .65);
  font-size: .68rem;
}

.contact-hero-note strong {
  color: #8edcff;
  font-family: var(--app-font-mono);
  font-size: 2rem;
  line-height: 1;
  letter-spacing: .08em;
}

.contact-workspace {
  padding-block: 4.5rem 6rem;
}

.contact-main-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.45fr);
  align-items: stretch;
  gap: 1.25rem;
}

.contact-info-panel {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.25rem;
  background: #10293e;
  color: #fff;
}

.contact-panel-heading h2,
.contact-form-heading h2,
.contact-success h2 {
  margin: 0;
  color: inherit;
  font-family: var(--app-font-serif);
  font-size: clamp(1.65rem, 2.5vw, 2.35rem);
  font-weight: 800;
  line-height: 1.35;
}

.contact-channels {
  display: grid;
  gap: .7rem;
  margin-block: 3.5rem;
}

.contact-channel {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgb(255 255 255 / .14);
  color: #fff;
  text-decoration: none;
}

.contact-channel:last-child {
  border-bottom: 0;
}

.contact-channel-icon {
  display: grid;
  flex: 0 0 2.15rem;
  width: 2.15rem;
  height: 2.15rem;
  place-items: center;
  border: 1px solid rgb(142 220 255 / .55);
  color: #8edcff;
  font-family: var(--app-font-mono);
  font-size: .9rem;
}

.contact-channel > span:last-child {
  display: grid;
  min-width: 0;
  gap: .35rem;
}

.contact-channel small {
  color: rgb(255 255 255 / .58);
  font-size: .68rem;
}

.contact-channel strong {
  color: #fff;
  font-size: .82rem;
  font-weight: 500;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.contact-channel:hover strong {
  color: #8edcff;
}

.contact-hours {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgb(255 255 255 / .14);
}

.contact-hours-dot {
  flex: 0 0 .45rem;
  width: .45rem;
  height: .45rem;
  margin-top: .55rem;
  border-radius: 50%;
  background: #20a5e7;
  box-shadow: 0 0 0 5px rgb(32 165 231 / .12);
}

.contact-hours p {
  margin: 0;
  color: rgb(255 255 255 / .62);
  font-size: .72rem;
  line-height: 1.9;
}

.contact-social-links {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgb(255 255 255 / .14);
}

.contact-social-links > small {
  display: block;
  margin-bottom: .65rem;
  color: rgb(255 255 255 / .52);
  font-size: .68rem;
}

.contact-social-links > div {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.contact-social-links a,
.contact-social-links a:visited {
  padding: .45rem .7rem;
  border: 1px solid rgb(255 255 255 / .2);
  color: rgb(255 255 255 / .78);
  font-size: .68rem;
  text-decoration: none;
  transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}

.contact-social-links a:hover {
  border-color: #8edcff;
  background: rgb(142 220 255 / .08);
  color: #8edcff;
}

.contact-form-panel {
  padding: 2.5rem 2.75rem;
  border: 1px solid #d8e8ee;
  background: #fff;
  box-shadow: 0 18px 45px rgb(16 41 62 / .06);
}

.contact-form-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact-form-heading h2 {
  color: #10293e;
  font-size: clamp(1.55rem, 2.2vw, 2rem);
}

.contact-form-heading > span {
  padding-bottom: .3rem;
  color: #81939c;
  font-size: .68rem;
}

.contact-form {
  display: grid;
  gap: 1.25rem;
}

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

.contact-field {
  display: grid;
  gap: .45rem;
  min-width: 0;
}

.contact-field .form-label {
  color: #405867;
  font-size: .73rem;
  font-weight: 700;
}

.contact-field .form-label em {
  color: #93a1a8;
  font-size: .65rem;
  font-style: normal;
  font-weight: 400;
}

.contact-field .form-control {
  min-height: 3.05rem;
  border: 1px solid #cfdee5;
  border-radius: 0;
  background: #fbfdfe;
  padding: .75rem .85rem;
  color: #10293e;
  font: inherit;
  font-size: .82rem;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.contact-field textarea.form-control {
  min-height: 7.5rem;
  resize: vertical;
}

.contact-field .form-control::placeholder {
  color: #a5b2b8;
}

.contact-field .form-control:focus {
  border-color: hsl(var(--accent));
  background: #fff;
  box-shadow: 0 0 0 3px rgb(0 119 195 / .1);
}

.contact-field .form-control.is-invalid {
  border-color: #d06b6b;
}

.contact-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding-top: .5rem;
}

.contact-submit-row p {
  max-width: 16rem;
  margin: 0;
  color: #81939c;
  font-size: .7rem;
  line-height: 1.8;
}

.contact-submit-button {
  display: inline-flex;
  min-height: 3.3rem;
  min-width: 11rem;
  align-items: center;
  justify-content: center;
  gap: .9rem;
  border: 1px solid hsl(var(--accent));
  background: hsl(var(--accent));
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: .8rem;
  font-weight: 700;
  transition: background-color .2s ease, transform .2s ease;
}

.contact-submit-button:hover {
  background: #075e94;
  transform: translateY(-2px);
}

.form-error-box {
  margin-bottom: .25rem;
  border-color: rgb(194 77 77 / .3);
  background: rgb(194 77 77 / .06);
  color: #a14343;
  font-size: .76rem;
}

.field-error {
  color: #b34a4a;
  font-size: .68rem;
}

.contact-success {
  display: flex;
  min-height: 28rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

.contact-success-mark {
  display: grid;
  width: 4.25rem;
  height: 4.25rem;
  margin-bottom: 1.5rem;
  place-items: center;
  border: 1px solid hsl(var(--accent));
  background: rgb(0 119 195 / .08);
  color: hsl(var(--accent));
  font-size: 1.8rem;
}

.contact-success .contact-form-kicker {
  color: hsl(var(--accent));
}

.contact-success h2 {
  color: #10293e;
  font-size: 1.8rem;
}

.contact-success > p:not(.contact-form-kicker) {
  max-width: 27rem;
  margin: .8rem 0 0;
  color: #71838d;
  font-size: .82rem;
  line-height: 2;
}

.contact-secondary-link {
  margin-top: 1.5rem;
  color: hsl(var(--accent));
  font-size: .78rem;
  font-weight: 700;
}

@media (max-width: 900px) {
  .contact-main-grid {
    grid-template-columns: 1fr;
  }

  .contact-info-panel {
    min-height: auto;
  }

  .contact-channels {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-block: 2.25rem;
  }

  .contact-channel {
    display: grid;
    padding: 0;
    border-bottom: 0;
  }
}

@media (max-width: 600px) {
  .contact-hero {
    min-height: 28rem;
  }

  .contact-hero-inner {
    min-height: 28rem;
    align-items: flex-start;
    flex-direction: column;
    justify-content: end;
    gap: 2rem;
    padding-block: 5rem 3rem;
  }

  .contact-hero h1 {
    font-size: 2.25rem;
  }

  .contact-hero-note {
    grid-template-columns: auto auto auto;
    min-width: 0;
    align-items: center;
    gap: .75rem;
    padding: .85rem 0 0;
    border-top: 1px solid rgb(142 220 255 / .45);
    border-inline-start: 0;
  }

  .contact-hero-note strong {
    font-size: 1.5rem;
  }

  .contact-workspace {
    padding-block: 2.5rem 4rem;
  }

  .contact-info-panel,
  .contact-form-panel {
    padding: 1.5rem;
  }

  .contact-channels {
    grid-template-columns: 1fr;
    gap: .75rem;
    margin-block: 2rem;
  }

  .contact-channel {
    display: flex;
    padding: .85rem 0;
    border-bottom: 1px solid rgb(255 255 255 / .14);
  }

  .contact-channel:last-child {
    border-bottom: 0;
  }

  .contact-form-heading {
    align-items: start;
    flex-direction: column;
    gap: .65rem;
    margin-bottom: 1.5rem;
  }

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

  .contact-submit-row {
    align-items: stretch;
    flex-direction: column;
  }

  .contact-submit-row p {
    max-width: none;
  }

  .contact-submit-button {
    width: 100%;
  }
}

/* Quote cart page */
.cart-page {
  min-height: 100%;
  background: #f5fbfd;
  color: #10293e;
}

.cart-hero {
  position: relative;
  min-height: 23rem;
  overflow: hidden;
  background: #10293e;
  color: #fff;
}

.cart-hero-grid {
  position: absolute;
  inset: 0;
  opacity: .42;
  background-image:
    linear-gradient(rgb(142 220 255 / .12) 1px, transparent 1px),
    linear-gradient(90deg, rgb(142 220 255 / .12) 1px, transparent 1px);
  background-size: 80px 80px;
}

.cart-hero-grid::after {
  position: absolute;
  top: -15rem;
  left: 8%;
  width: 34rem;
  height: 34rem;
  border: 1px solid rgb(142 220 255 / .2);
  border-radius: 50%;
  content: "";
}

.cart-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 23rem;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 5rem 4rem;
}

.cart-hero-eyebrow,
.cart-section-kicker {
  margin: 0 0 .8rem;
  color: #8edcff;
  font-family: var(--app-font-mono);
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .12em;
}

.cart-hero h1 {
  margin: 0;
  color: #fff;
  font-family: var(--app-font-serif);
  font-size: clamp(2.25rem, 4.6vw, 3.75rem);
  font-weight: 800;
  line-height: 1.16;
}

.cart-hero h1 strong {
  color: #8edcff;
  font-weight: inherit;
}

.cart-hero-inner > div:first-child > p:last-child {
  max-width: 28rem;
  margin: 1rem 0 0;
  color: rgb(255 255 255 / .7);
  font-size: .86rem;
  line-height: 2;
}

.cart-hero-mark {
  display: grid;
  min-width: 8.5rem;
  gap: .35rem;
  padding-inline-start: 1.35rem;
  border-inline-start: 1px solid rgb(142 220 255 / .5);
  text-align: right;
}

.cart-hero-mark span,
.cart-hero-mark small {
  color: rgb(255 255 255 / .6);
  font-size: .68rem;
}

.cart-hero-mark strong {
  color: #8edcff;
  font-family: var(--app-font-mono);
  font-size: 2.2rem;
  line-height: 1;
}

.cart-workspace {
  padding-block: 4.5rem 6rem;
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(18rem, .75fr);
  align-items: start;
  gap: 1.25rem;
}

.cart-items-panel,
.cart-summary-panel,
.cart-empty-state {
  border: 1px solid #d8e8ee;
  background: #fff;
}

.cart-items-panel {
  padding: 2rem 2.25rem;
}

.cart-items-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.35rem;
  border-bottom: 1px solid #d8e8ee;
}

.cart-items-heading h2,
.cart-empty-state h2 {
  margin: 0;
  color: #10293e;
  font-family: var(--app-font-serif);
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  font-weight: 800;
}

.cart-items-heading .cart-section-kicker {
  margin-bottom: .45rem;
  color: hsl(var(--accent));
}

.cart-clear-button {
  border: 0;
  background: transparent;
  color: #9b6670;
  cursor: pointer;
  font: inherit;
  font-size: .72rem;
}

.cart-clear-button:hover {
  color: #bd424f;
}

.cart-clear-button span {
  margin-inline-start: .25rem;
  font-size: 1.05rem;
}

.cart-items-list {
  display: grid;
  gap: 0;
}

.cart-product {
  display: none;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.cart-product:last-child {
  border-bottom: 0;
}

.cart-product:hover {
  background: #f8fafc;
}

.cart-product:last-child {
  border-bottom: 0;
  margin-bottom: 0;
}

.cart-product.flex {
  display: grid;
}

.cart-product-index {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  background: #f1f5f9;
  border-radius: 0.5rem;
  color: #475569;
  font-family: var(--app-font-mono);
  font-size: 0.875rem;
  font-weight: 600;
}

.cart-product-copy {
  min-width: 0;
}

.cart-product-copy p {
  margin: 0 0 .35rem;
  color: #81939c;
  font-size: .68rem;
}

.cart-product-copy p span {
  color: #8edcff;
  padding-inline: .2rem;
}

.cart-product-copy h3 {
  margin: 0;
  color: #1e293b;
  font-family: var(--app-font-serif);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
}

.cart-product-copy p {
  margin: 0.25rem 0 0;
  color: #64748b;
  font-size: 0.875rem;
}

.cart-product-copy p span {
  color: #cbd5e1;
  padding-inline: 0.35rem;
}

.cart-product-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  min-width: 14rem;
}

.cart-product-price strong {
  color: #1e293b;
  font-size: 1rem;
  font-weight: 700;
}

.cart-product-price strong small {
  color: #64748b;
  font-size: 0.875rem;
  font-weight: 400;
}

.cart-product-price button {
  border: 0;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 400;
  padding: 0;
  transition: color 0.2s ease;
}

.cart-product-price button:hover {
  color: #dc2626;
}

.cart-product-price button span {
  margin-inline-start: .2rem;
}

.cart-product-actions {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: .55rem;
  align-self: flex-end;
  direction: ltr;
  justify-content: flex-start;
  white-space: nowrap;
}

@media (min-width: 601px) {
  .cart-product {
    position: relative;
  }

  .cart-product-actions {
    position: absolute;
    bottom: 1.5rem;
    left: 0;
  }
}

.cart-product-price .cart-order-now-btn,
.cart-product-price .cart-remove-btn {
  display: inline-flex;
  min-height: 2.35rem;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  padding: .5rem .8rem;
  border: 1px solid transparent;
  border-radius: .45rem;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.cart-product-price .cart-order-now-btn {
  background: hsl(var(--accent));
  color: #fff;
  box-shadow: 0 6px 14px hsl(var(--accent) / .18);
}

.cart-product-price .cart-order-now-btn:hover {
  background: #07588e;
  color: #fff;
  transform: translateY(-1px);
}

.cart-product-price .cart-remove-btn {
  border-color: #fecaca;
  background: #fff;
  color: #b91c1c;
}

.cart-product-price .cart-remove-btn:hover {
  border-color: #fca5a5;
  background: #fef2f2;
  color: #991b1b;
}

.cart-summary-panel {
  display: flex;
  min-height: 22rem;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem;
  background: #10293e;
  color: #fff;
}

.cart-summary-panel .cart-section-kicker {
  color: #8edcff;
}

.cart-summary-panel h2 {
  margin: 0;
  color: #fff;
  font-family: var(--app-font-serif);
  font-size: clamp(1.65rem, 2.5vw, 2.25rem);
  font-weight: 800;
  line-height: 1.35;
}

.cart-summary-panel > div:first-child > p:last-child {
  max-width: 20rem;
  margin: 1rem 0 0;
  color: rgb(255 255 255 / .64);
  font-size: .78rem;
  line-height: 2;
}

.cart-summary-footer {
  display: grid;
  gap: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgb(255 255 255 / .16);
}

.cart-summary-footer > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-summary-footer > div span {
  color: rgb(255 255 255 / .6);
  font-size: .7rem;
}

.cart-summary-footer > div strong {
  color: #8edcff;
  font-family: var(--app-font-mono);
  font-size: 1.25rem;
}

.cart-submit-button,
.cart-outline-button {
  display: inline-flex;
  min-height: 3.15rem;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  padding-inline: 1.1rem;
  font-size: .76rem;
  font-weight: 700;
  text-decoration: none;
}

.cart-submit-button {
  background: hsl(var(--accent));
  color: #fff;
  transition: background-color .2s ease, transform .2s ease;
}

.cart-submit-button:hover {
  background: #075e94;
  color: #fff;
  transform: translateY(-2px);
}

.cart-empty-state {
  display: flex;
  min-height: 18rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  text-align: center;
}

.cart-empty-mark {
  display: grid;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 1.25rem;
  place-items: center;
  border: 1px solid #b8deeb;
  color: hsl(var(--accent));
  font-size: 1.5rem;
}

.cart-empty-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-radius: 50%;
  color: hsl(var(--accent));
  box-shadow: 0 4px 20px rgba(28, 77, 120, 0.1);
}

.cart-empty-icon svg {
  width: 50px;
  height: 50px;
  stroke-width: 1.5;
}

.cart-empty-state .cart-section-kicker {
  margin-bottom: .4rem;
  color: hsl(var(--accent));
}

.cart-empty-state h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.cart-empty-state > p:not(.cart-section-kicker) {
  max-width: 28rem;
  margin: .5rem 0 1.25rem;
  color: #64748b;
  font-size: .85rem;
  line-height: 1.6;
}

.cart-outline-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: 2px solid hsl(var(--accent));
  border-radius: 8px;
  color: hsl(var(--accent));
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.cart-outline-button:hover {
  background: hsl(var(--accent));
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(28, 77, 120, 0.2);
}

.cart-outline-button svg {
  width: 20px;
  height: 20px;
}

.cart-empty-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.25rem;
}

.cart-primary-btn {
  background: hsl(var(--accent));
  color: #fff;
}

.cart-primary-btn:hover {
  background: hsl(var(--primary));
  border-color: hsl(var(--primary));
}

.cart-secondary-btn {
  background: transparent;
  border-color: #cbd5e1;
  color: #475569;
}

.cart-secondary-btn:hover {
  background: #475569;
  border-color: #475569;
  color: #fff;
}

@media (max-width: 640px) {
  .cart-empty-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .cart-outline-button {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 800px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }

  .cart-summary-panel {
    min-height: 18rem;
  }
}

@media (max-width: 600px) {
  .cart-hero,
  .cart-hero-inner {
    min-height: 27rem;
  }

  .cart-hero-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: end;
    gap: 2rem;
    padding-block: 5rem 3rem;
  }

  .cart-hero h1 {
    font-size: 2.35rem;
  }

  .cart-hero-mark {
    grid-template-columns: auto auto auto;
    min-width: 0;
    align-items: center;
    gap: .75rem;
    padding: .85rem 0 0;
    border-top: 1px solid rgb(142 220 255 / .45);
    border-inline-start: 0;
  }

  .cart-hero-mark strong {
    font-size: 1.6rem;
  }

  .cart-workspace {
    padding-block: 2.5rem 4rem;
  }

  .cart-items-panel,
  .cart-summary-panel {
    padding: 1.35rem;
  }

  .cart-items-heading {
    align-items: start;
    flex-direction: column;
  }

  .cart-product {
    grid-template-columns: auto 1fr;
    gap: 0.875rem;
    padding: 1rem;
  }

  .cart-product-index {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 0.75rem;
  }

  .cart-product-price {
    grid-column: 2;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    min-width: 0;
  }
    align-items: center;
    justify-content: space-between;
    justify-items: start;
    padding-top: .75rem;
    border-top: 1px solid #edf3f5;
  }
}

/* Compact quote cart hero */
.cart-hero,
.cart-hero-inner {
  min-height: 17rem;
}

.cart-hero-inner {
  padding-block: 3.5rem 2.75rem;
}

.cart-hero h1 {
  font-size: clamp(1.95rem, 3.7vw, 2.85rem);
}

.cart-hero-inner > div:first-child > p:last-child {
  max-width: 25rem;
  margin-top: .75rem;
  font-size: .78rem;
}

.cart-hero-mark {
  min-width: 7.5rem;
}

.cart-hero-mark strong {
  font-size: 1.85rem;
}

@media (max-width: 600px) {
  .cart-hero,
  .cart-hero-inner {
    min-height: 20rem;
  }

  .cart-hero-inner {
    padding-block: 3.75rem 2.5rem;
  }

  .cart-hero h1 {
    font-size: 2.05rem;
  }
}

/* Testimonial invitation banner */
.contact-testimonial-banner {
  position: relative;
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1.25rem;
  overflow: hidden;
  border-inline-start: 3px solid #20a5e7;
  background:
    radial-gradient(circle at 92% 20%, rgb(32 165 231 / .14), transparent 22%),
    linear-gradient(110deg, #171c26, #10293e);
  padding: 1.4rem 1.75rem;
  color: #fff;
}

.contact-testimonial-banner::before {
  position: absolute;
  top: -4.5rem;
  left: -1.5rem;
  width: 11rem;
  height: 11rem;
  border: 1px solid rgb(142 220 255 / .12);
  border-radius: 50%;
  content: "";
}

.contact-testimonial-quote {
  position: relative;
  z-index: 1;
  display: grid;
  width: 3.35rem;
  height: 3.35rem;
  place-items: center;
  border: 1px solid rgb(142 220 255 / .45);
  border-radius: 50%;
  color: #8edcff;
  font-family: Georgia, serif;
  font-size: 2.8rem;
  line-height: 1;
}

.contact-testimonial-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: .3rem;
}

.contact-testimonial-copy p {
  margin: 0;
  color: #8edcff;
  font-family: var(--app-font-mono);
  font-size: .63rem;
  font-weight: 700;
  letter-spacing: .12em;
}

.contact-testimonial-copy h2 {
  margin: 0;
  color: #fff;
  font-family: var(--app-font-serif);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 800;
}

.contact-testimonial-copy > span {
  color: rgb(255 255 255 / .62);
  font-size: .72rem;
  line-height: 1.8;
}

.contact-testimonial-button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  border: 1px solid rgb(142 220 255 / .5);
  padding-inline: 1.1rem;
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s ease, border-color .2s ease;
}

.contact-testimonial-button:hover {
  border-color: #8edcff;
  background: rgb(142 220 255 / .14);
  color: #fff;
}

@media (max-width: 600px) {
  .contact-testimonial-banner {
    grid-template-columns: 3rem minmax(0, 1fr);
    gap: 1rem;
    padding: 1.15rem;
  }

  .contact-testimonial-quote {
    width: 2.8rem;
    height: 2.8rem;
    font-size: 2.3rem;
  }

  .contact-testimonial-button {
    grid-column: 2;
    justify-self: start;
  }
}

/* User Dropdown Menu Styles */
.user-menu-container {
  position: relative;
}

#user-menu-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  border-radius: 0.5rem;
  color: rgba(15, 23, 42, 0.8);
  transition: all 0.2s ease;
  cursor: pointer;
  background: transparent;
  border: 1px solid transparent;
}

#user-menu-button:hover {
  color: hsl(var(--accent));
  background: rgba(226, 232, 240, 0.5);
  border-color: rgba(203, 213, 225, 0.3);
}

.user-dropdown {
  position: absolute;
  left: 0;
  margin-top: 0.5rem;
  min-width: 14rem;
  background: #ffffff;
  border-radius: 0.75rem;
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.12), 0 4px 16px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.8);
  padding: 0.5rem;
  z-index: 100;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: all 0.2s ease;
}

.user-dropdown:not(.hidden) {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.user-dropdown > div:first-child {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  margin-bottom: 0.25rem;
  background: linear-gradient(135deg, rgba(28, 77, 120, 0.03), rgba(194, 104, 58, 0.03));
  border-radius: 0.5rem;
}

.user-dropdown > div:first-child p:first-child {
  font-size: 0.875rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 0.25rem;
}

.user-dropdown > div:first-child p:last-child {
  font-size: 0.75rem;
  color: #64748b;
}

.user-dropdown a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  color: #334155;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  text-decoration: none;
  font-weight: 500;
}

.user-dropdown a:hover {
  background: rgba(28, 77, 120, 0.08);
  color: hsl(var(--accent));
  transform: translateX(-2px);
}

.user-dropdown a svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  opacity: 0.7;
}

.user-dropdown a:hover svg {
  opacity: 1;
}

.user-dropdown .border-t {
  border-top: 1px solid rgba(226, 232, 240, 0.6);
  margin: 0.375rem 0;
}

.user-dropdown a[href*="logout"] {
  color: #dc2626;
}

.user-dropdown a[href*="logout"]:hover {
  background: rgba(220, 38, 38, 0.08);
  color: #b91c1c;
}

.user-dropdown a[href*="admin"] {
  color: hsl(var(--accent));
  font-weight: 600;
}

.user-dropdown a[href*="admin"]:hover {
  background: rgba(194, 104, 58, 0.1);
}

/* Arrow indicator for dropdown */
#user-menu-button svg:last-child {
  transition: transform 0.2s ease;
}

.user-menu-container.active #user-menu-button svg:last-child {
  transform: rotate(180deg);
}

/* Icon styling */
.icon-20 {
  width: 1.25rem;
  height: 1.25rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Force hide cart sections when JS toggles them */
#cart-empty.hidden,
#cart-content.hidden {
  display: none !important;
}

/* Cart Analytics Section */
.cart-analytics {
  margin-bottom: 2.5rem;
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
}

.analytics-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  transition: all 0.2s ease;
}

.analytics-card:hover {
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.analytics-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.75rem;
  flex-shrink: 0;
}

.analytics-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  stroke: white;
}

.analytics-content {
  flex: 1;
}

.analytics-label {
  margin: 0 0 0.25rem;
  color: #64748b;
  font-size: 0.875rem;
  font-weight: 500;
}

.analytics-value {
  margin: 0;
  color: #1e293b;
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1;
}

@media (max-width: 768px) {
  .analytics-grid {
    grid-template-columns: 1fr;
  }
}


/* Service Request Modal */
.service-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease-out;
  pointer-events: none;
}

.service-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.service-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 19, 31, 0.75);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.service-modal-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 1rem;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.25s ease-out;
}

.service-modal.is-open .service-modal-container {
  transform: translateY(0) scale(1);
}

.service-modal-content {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(11, 19, 31, 0.3);
  overflow: hidden;
}

.service-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #E8E9EC;
}

.service-modal-close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #64748b;
  transition: all 0.2s ease;
  border: none;
  background: transparent;
  cursor: pointer;
}

.service-modal-close:hover {
  background: #f1f5f9;
  color: #0B131F;
}

.service-modal-body {
  padding: 2rem;
}

.service-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.service-action-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: #ffffff;
  border: 2px solid #E8E9EC;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: right;
  width: 100%;
}

.service-action-card:hover {
  border-color: #0B131F;
  background: linear-gradient(to bottom, #ffffff, #f8f9fa);
  transform: translateX(-4px);
  box-shadow: 0 4px 12px rgba(11, 19, 31, 0.08);
}

.service-action-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #0B131F 0%, #195277 100%);
  color: #ffffff;
}

.service-action-content {
  flex: 1;
}

.service-action-title {
  font-size: 1rem;
  font-weight: 600;
  color: #0B131F;
  margin-bottom: 0.25rem;
}

.service-action-description {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.5;
}

.service-action-arrow {
  flex-shrink: 0;
  color: #94a3b8;
  transition: all 0.25s ease;
}

.service-action-card:hover .service-action-arrow {
  color: #0B131F;
  transform: translateX(-3px);
}

.service-modal-info {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: linear-gradient(to bottom, #f8f9fa, #ffffff);
  border-radius: 10px;
  border: 1px solid #E8E9EC;
}

.service-modal-info svg {
  flex-shrink: 0;
  margin-top: 1px;
  color: #C2683A;
}

.service-modal-info p {
  margin: 0;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .service-modal-header {
    padding: 1.25rem 1.5rem;
  }
  
  .service-modal-body {
    padding: 1.5rem;
  }
  
  .service-action-card {
    padding: 1rem;
  }
  
  .service-action-icon {
    width: 40px;
    height: 40px;
  }
  
  .service-action-title {
    font-size: 0.9375rem;
  }
  
  .service-action-description {
    font-size: 0.8125rem;
  }
}

body.service-modal-open {
  overflow: hidden;
}

/* Service Success Animation */
.service-success-animation {
  background: #ffffff;
  border-radius: 16px;
  padding: 3rem 2rem;
  text-align: center;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s ease-out;
}

.service-success-animation.is-visible {
  opacity: 1;
  transform: scale(1);
}

.success-checkmark-circle {
  width: 120px;
  height: 120px;
  margin: 0 auto 1.5rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-checkmark {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: block;
  stroke-width: 3;
  stroke: #ffffff;
  stroke-miterlimit: 10;
  box-shadow: inset 0 0 0 #10b981;
  animation: fill-success 0.4s ease-in-out 0.4s forwards, scale-success 0.3s ease-in-out 0.9s both;
  position: relative;
}

.success-checkmark-circle-bg {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 3;
  stroke-miterlimit: 10;
  stroke: #10b981;
  animation: stroke-success 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.success-checkmark-check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  stroke: #ffffff;
  stroke-width: 3;
  animation: stroke-check 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke-success {
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes stroke-check {
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes fill-success {
  100% {
    box-shadow: inset 0 0 0 60px #10b981;
  }
}

@keyframes scale-success {
  0%, 100% {
    transform: none;
  }
  50% {
    transform: scale3d(1.1, 1.1, 1);
  }
}

.success-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0B131F;
  margin-bottom: 0.75rem;
  font-family: 'Tajawal', sans-serif;
}

.success-message {
  font-size: 1rem;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 640px) {
  .service-success-animation {
    padding: 2rem 1.5rem;
  }
  
  .success-checkmark-circle {
    width: 100px;
    height: 100px;
  }
  
  .success-checkmark {
    width: 100px;
    height: 100px;
  }
  
  .success-title {
    font-size: 1.25rem;
  }
  
  .success-message {
    font-size: 0.9375rem;
  }
}



/* Live Search Enhancements */
.shop-filter-search input:focus,
.services-filter-search input:focus {
  outline: 2px solid #195277;
  outline-offset: 2px;
}

.shop-product-card,
.service-card {
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.shop-product-card[style*="display: none"],
.service-card[style*="display: none"] {
  opacity: 0;
  transform: scale(0.95);
}

.empty-state {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Search loading indicator */
.shop-filter-search input:valid,
.services-filter-search input:valid {
  background-image: none;
}


/* Cart Product Images */
.cart-product-image {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #f8f9fa;
  border: 1px solid #E8E9EC;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-product-image img {
  width: 100%;
  height: 100%;
}

.cart-product-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
}

.cart-product {
  display: flex;
  align-items: center;
  gap: 1rem;
}

@media (max-width: 640px) {
  .cart-product-image {
    width: 60px;
    height: 60px;
  }
}


/* Cart Product Actions */
.cart-product-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.cart-order-now-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #C2683A 0%, #C2933A 100%);
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.2s ease;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.cart-order-now-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(194, 104, 58, 0.3);
}

.cart-remove-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: transparent;
  color: #64748b;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid #E8E9EC;
  border-radius: 6px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.cart-remove-btn:hover {
  background: #fee;
  border-color: #ef4444;
  color: #ef4444;
}

@media (max-width: 640px) {
  .cart-product-actions {
    flex-direction: row;
    width: 100%;
  }
  
  .cart-order-now-btn,
  .cart-remove-btn {
    flex: 1;
    font-size: 0.8125rem;
    padding: 0.5rem 0.75rem;
  }
}

/* Quote Request Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(11, 19, 31, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(11, 19, 31, 0.3);
  transform: translateY(20px) scale(0.95);
  transition: transform 0.25s ease;
}

.modal-overlay.is-open .modal-container {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #E8E9EC;
}

.modal-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0B131F;
}

.modal-close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: #f1f5f9;
  color: #0B131F;
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  padding-top: 1.25rem;
  margin-top: 1.25rem;
  border-top: 1px solid #E8E9EC;
}

.modal-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: #C2683A;
  color: #ffffff;
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-btn-primary:hover {
  background: #195277;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(194, 104, 58, 0.3);
}

.modal-btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.modal-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: transparent;
  color: #64748b;
  font-size: 0.9375rem;
  font-weight: 600;
  border: 1px solid #E8E9EC;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-btn-secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0B131F;
}

body.modal-open {
  overflow: hidden;
}

/* Success Animation for Quote Modal */
#quote-success-animation,
#inspection-success-animation {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  text-align: center;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#quote-success-animation.is-visible,
#inspection-success-animation.is-visible {
  opacity: 1;
  transform: scale(1);
}

#quote-success-animation .success-checkmark,
#inspection-success-animation .success-checkmark {
  width: 80px;
  height: 80px;
  margin-bottom: 1.5rem;
}

#quote-success-animation .success-checkmark-circle,
#inspection-success-animation .success-checkmark-circle {
  stroke: #10b981;
  stroke-width: 2;
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  animation: stroke-success 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

#quote-success-animation .success-checkmark-check,
#inspection-success-animation .success-checkmark-check {
  stroke: #10b981;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: stroke-check 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

#quote-success-animation .success-title,
#inspection-success-animation .success-title {
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #0B131F;
}

#quote-success-animation .success-message,
#inspection-success-animation .success-message {
  margin: 0;
  font-size: 1rem;
  color: #64748b;
}

@media (max-width: 640px) {
  .modal-header {
    padding: 1.25rem 1.5rem;
  }
  
  .modal-body {
    padding: 1.5rem;
  }
  
  .modal-title {
    font-size: 1.25rem;
  }
  
  .modal-footer {
    flex-direction: column-reverse;
  }
  
  .modal-btn-primary,
  .modal-btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

/* Custom button colors for quotes/inspections tables */
.js-view-quote,
.js-view-inspection {
  background-color: #C2683A !important;
}

.js-view-quote:hover,
.js-view-inspection:hover {
  background-color: #0B131F !important;
}

.js-delete-quote,
.js-delete-inspection {
  background-color: #ef4444 !important;
}

.js-delete-quote:hover,
.js-delete-inspection:hover {
  background-color: #dc2626 !important;
}

/* Fix table text visibility */
table tbody tr td {
  color: #1e293b !important;
}

table tbody tr td span {
  color: inherit !important;
}

table thead th {
  color: #64748b !important;
}

/* Ensure status badges are visible */
table tbody tr td .inline-flex {
  opacity: 1 !important;
}

/* Product image gallery */
.product-detail-hero {
  align-items: start;
}

.product-gallery-main {
  min-height: 500px;
}

.product-gallery-main [data-product-main-image] {
  opacity: 1;
}

.product-gallery-main [data-product-main-image].is-changing {
  opacity: 0;
  transform: scale(.98);
}

.product-gallery-thumbs {
  display: flex;
  gap: .7rem;
  margin-top: 1rem;
  padding: .15rem 0 .55rem;
  overflow-x: auto;
  scrollbar-width: thin;
}

.product-gallery-thumbs button {
  flex: 0 0 76px;
  width: 76px;
  height: 76px;
  padding: .35rem;
  overflow: hidden;
  border: 1px solid #dce2e7;
  background: #f7f8f9;
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.product-gallery-thumbs button:hover,
.product-gallery-thumbs button.is-active {
  border-color: #0077c3;
  box-shadow: 0 0 0 2px rgba(0,119,195,.12);
  transform: translateY(-2px);
}

.product-gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-hero-content {
  max-height: none;
  padding-block: 1rem;
  box-sizing: border-box;
  overflow: visible;
}

.product-hero-content > div:first-child {
  margin-bottom: .75rem;
}

.product-hero-content > h1 {
  margin-bottom: .65rem;
  font-size: clamp(2.25rem, 3.4vw, 3.2rem);
  line-height: 1.15;
}

.product-hero-content > h1 + p {
  margin-bottom: 1rem;
}

.product-hero-description {
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
  line-height: 1.75;
}

.product-hero-specs {
  gap: .9rem 2rem;
  margin-bottom: 1.25rem;
  padding-block: 1.1rem;
  font-size: .98rem;
}

.product-hero-specs .detail-label {
  margin-bottom: .3rem;
}

.product-hero-actions > * {
  height: 3rem;
}

@media (max-width: 760px) {
  .product-gallery-main {
    min-height: 360px;
  }

  .product-hero-content {
    max-height: none;
    padding: 0;
    overflow: visible;
  }

  .product-gallery-thumbs button {
    flex-basis: 64px;
    width: 64px;
    height: 64px;
  }
}

/* Product explanation video */
.product-video-section {
  display: grid;
  grid-template-columns: minmax(220px, .58fr) minmax(0, 1.42fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  margin-top: 5.5rem;
  padding: clamp(2rem, 5vw, 4rem);
  background: #0b1d2b;
  color: #fff;
}

.product-video-copy h2 {
  margin: .65rem 0 1rem;
  color: #fff;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 700;
}

.product-video-copy > p:last-child {
  margin: 0;
  color: rgba(226,232,240,.68);
  font-size: .9rem;
  line-height: 1.9;
}

.product-video-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.18);
  background: #050b10;
  box-shadow: 0 22px 50px rgba(0,0,0,.32);
  aspect-ratio: 16 / 9;
}

.product-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 760px) {
  .product-video-section {
    grid-template-columns: 1fr;
    margin-top: 3.5rem;
  }
}

/* Chairman spotlight */
.about-ceo-section {
  position: relative;
  overflow: hidden;
  padding: 7rem 0;
  direction: rtl;
  color: #f8fafc;
  background:
    radial-gradient(circle at 15% 20%, rgba(194, 104, 58, 0.16), transparent 32%),
    linear-gradient(135deg, #07131e 0%, #0b1d2b 58%, #102b3c 100%);
}

.about-ceo-section::before,
.about-ceo-section::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.about-ceo-section::before {
  inset: 0;
  opacity: .16;
  background-image: linear-gradient(rgba(255,255,255,.1) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.1) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: linear-gradient(90deg, #000, transparent 76%);
}

.about-ceo-section::after {
  width: 360px;
  height: 360px;
  left: -170px;
  bottom: -230px;
  border: 1px solid rgba(214, 157, 113, .3);
  transform: rotate(45deg);
}

.about-ceo-section .container-shell {
  position: relative;
  z-index: 1;
}

.about-ceo-heading {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: .65rem;
  max-width: 1120px;
  margin: 0 auto 2.6rem;
  text-align: center;
}

.about-ceo-heading h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -.04em;
}

.about-ceo-heading > p {
  margin: .15rem 0 0;
  color: rgba(226,232,240,.58);
  font-size: .92rem;
  font-weight: 400;
}

.about-ceo-heading-mark {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: #d69c70;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  white-space: nowrap;
}

.about-ceo-heading-mark i {
  display: inline-block;
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #c2683a);
}

.about-ceo-heading-mark i:last-child {
  background: linear-gradient(90deg, #c2683a, transparent);
}

.about-ceo-card {
  display: grid;
  grid-template-columns: minmax(255px, .72fr) minmax(0, 1.6fr);
  max-width: 1120px;
  min-height: 520px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(255,255,255,.055);
  box-shadow: 0 30px 80px rgba(0,0,0,.26);
  backdrop-filter: blur(14px);
}

.about-ceo-portrait {
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 2.3rem;
  background: linear-gradient(160deg, rgba(194,104,58,.18), rgba(5,17,27,.7));
}

.about-ceo-portrait-frame {
  position: relative;
  width: 100%;
  aspect-ratio: .82;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 18px 18px 0 rgba(194,104,58,.18), 0 20px 45px rgba(0,0,0,.35);
}

.about-ceo-portrait-frame::after {
  position: absolute;
  inset: 12px;
  content: "";
  border: 1px solid rgba(255,255,255,.3);
  pointer-events: none;
}

.about-ceo-portrait-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
  filter: saturate(.82) contrast(1.05);
}

.about-ceo-portrait-label {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 1;
  padding: .45rem .75rem;
  color: #fff;
  background: #c2683a;
  font-size: .72rem;
  letter-spacing: .08em;
}

.about-ceo-identity {
  padding-top: 1.9rem;
}

.about-ceo-identity span,
.about-ceo-identity strong {
  display: block;
}

.about-ceo-identity span {
  margin-bottom: .4rem;
  color: #fff;
  font-size: 1.55rem;
  font-weight: 700;
}

.about-ceo-identity strong {
  color: #d69c70;
  font-size: .78rem;
  font-weight: 500;
}

.about-ceo-message {
  position: relative;
  padding: 4.15rem 4.4rem 2.5rem;
}

.about-ceo-quote-mark {
  position: absolute;
  top: 2rem;
  right: 3.9rem;
  color: #c2683a;
  font-family: Georgia, serif;
  font-size: 8rem;
  line-height: .65;
  opacity: .45;
}

.about-ceo-eyebrow {
  position: relative;
  margin: 0 0 1.1rem;
  color: #d69c70;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
}

.about-ceo-message blockquote {
  position: relative;
  max-width: 650px;
  margin: 0 0 1.7rem;
  color: #fff;
  font-size: clamp(1.55rem, 2.45vw, 2.25rem);
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: -.035em;
}

.about-ceo-copy {
  max-width: 690px;
  color: rgba(226,232,240,.74);
  font-size: .98rem;
  line-height: 2;
}

.about-ceo-copy p {
  margin: 0 0 .8rem;
}

.about-ceo-bottom {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 1.65rem;
  border-top: 1px solid rgba(255,255,255,.14);
}

.about-ceo-stats {
  display: flex;
  gap: clamp(1.35rem, 4vw, 3.1rem);
}

.about-ceo-stats div {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.about-ceo-stats strong {
  color: #d69c70;
  font-size: 1.65rem;
  line-height: 1;
}

.about-ceo-stats span {
  color: rgba(226,232,240,.6);
  font-size: .7rem;
  white-space: nowrap;
}

.about-ceo-signature {
  display: flex;
  align-items: center;
  gap: .7rem;
}

.about-ceo-signature > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid #c2683a;
  border-radius: 50%;
  color: #d69c70;
  font-weight: 700;
}

.about-ceo-signature strong,
.about-ceo-signature small {
  display: block;
}

.about-ceo-signature strong {
  color: #fff;
  font-size: .8rem;
}

.about-ceo-signature small {
  margin-top: .15rem;
  color: rgba(226,232,240,.5);
  font-size: .64rem;
}

@media (max-width: 800px) {
  .about-ceo-section {
    padding: 5rem 0;
  }

  .about-ceo-heading {
    gap: .6rem;
  }

  .about-ceo-card {
    grid-template-columns: 1fr;
  }

  .about-ceo-portrait {
    display: grid;
    grid-template-columns: minmax(150px, 38%) 1fr;
    align-items: end;
    gap: 1.5rem;
    padding: 1.5rem;
  }

  .about-ceo-portrait-frame {
    aspect-ratio: .85;
  }

  .about-ceo-identity {
    padding: 0 0 .5rem;
  }

  .about-ceo-message {
    padding: 3.2rem 1.5rem 1.8rem;
  }

  .about-ceo-quote-mark {
    top: 1.6rem;
    right: 1.25rem;
  }

  .about-ceo-bottom {
    align-items: start;
    flex-direction: column;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .about-ceo-portrait {
    grid-template-columns: 1fr;
  }

  .about-ceo-portrait-frame {
    width: min(100%, 250px);
    margin: 0 auto;
  }

  .about-ceo-identity {
    text-align: center;
  }

  .about-ceo-stats {
    justify-content: space-between;
    width: 100%;
    gap: .8rem;
  }

  .about-ceo-stats span {
    font-size: .62rem;
  }
}

/* Fix table alignment - ensure headers and data align properly */
table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto !important;
}

table thead th,
table tbody td {
  text-align: right !important;
  vertical-align: middle !important;
  padding: 12px 16px !important;
  box-sizing: border-box !important;
}

table thead th:last-child,
table tbody td:last-child {
  text-align: center !important;
}

/* Remove all transforms and positioning */
table,
table * {
  transform: none !important;
  position: static !important;
  margin: 0 !important;
}

/* Ensure thead and tbody have same structure */
table thead,
table tbody {
  display: table-row-group !important;
}

table thead tr,
table tbody tr {
  display: table-row !important;
}

table thead th,
table tbody td {
  display: table-cell !important;
}

/* Customer orders page */
.orders-page {
  min-height: 70vh;
  padding: 5rem 0 7rem;
  background:
    radial-gradient(circle at 8% 0%, rgb(142 220 255 / .16), transparent 28rem),
    #f4f9fb;
}

.orders-page-shell {
  max-width: 68rem;
}

.orders-page-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
  padding: 1.5rem 0 1.75rem;
  border-bottom: 1px solid #d9e6eb;
}

.orders-page-eyebrow,
.orders-card-kicker {
  display: block;
  margin-bottom: .45rem;
  color: hsl(var(--accent));
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.orders-page-header h1 {
  margin: 0;
  color: #102f42;
  font-family: var(--app-font-serif);
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.15;
}

.orders-page-header p {
  margin: .65rem 0 0;
  color: #71828c;
  font-size: .92rem;
}

.orders-page-count {
  display: grid;
  min-width: 8rem;
  gap: .15rem;
  padding: .9rem 1.1rem;
  border: 1px solid #d8e7ed;
  border-radius: .8rem;
  background: rgb(255 255 255 / .78);
  text-align: center;
}

.orders-page-count span {
  color: #738690;
  font-size: .68rem;
  font-weight: 700;
}

.orders-page-count strong {
  color: #173e55;
  font-family: var(--app-font-mono);
  font-size: 1.7rem;
  line-height: 1;
}

.orders-list {
  display: grid;
  gap: 1.25rem;
}

.orders-card {
  position: relative;
  overflow: hidden;
  padding: 1.5rem !important;
  border: 1px solid #dce7ec !important;
  border-radius: 1rem !important;
  background: #fff;
  box-shadow: 0 12px 30px rgb(16 47 66 / .06);
}

.orders-card::before {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: .3rem;
  background: hsl(var(--accent));
  content: "";
}

.orders-card-header {
  margin-bottom: 1.2rem !important;
  padding-bottom: 1.15rem !important;
  border-color: #e4edf1 !important;
}

.orders-card-header > div:first-child {
  min-width: 0;
}

.orders-card-header h3 {
  margin: 0 0 .2rem;
  color: #173e55;
  font-family: var(--app-font-serif);
  font-size: 1.3rem;
}

.orders-card-header > div:first-child > p {
  margin: 0;
  color: #7b8c95;
  font-size: .75rem;
}

.orders-card-header > div:last-child {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .6rem;
}

.orders-details-button {
  position: relative;
  min-height: 2.7rem;
  padding: 0 .95rem !important;
  border-radius: .55rem !important;
  background: #173e55 !important;
  box-shadow: 0 7px 16px rgb(23 62 85 / .17);
  font-size: .78rem !important;
  white-space: nowrap;
}

.orders-details-button:hover {
  background: hsl(var(--accent)) !important;
  transform: translateY(-1px);
}

.orders-details-button > span:last-child {
  color: #9ee2ff;
  font-size: 1rem;
}

.orders-unread-badge {
  position: static !important;
  display: inline-flex;
  min-width: 1.25rem !important;
  height: 1.25rem !important;
  align-items: center;
  justify-content: center;
  padding: 0 .25rem !important;
  border: 1px solid rgb(255 255 255 / .45);
  background: #d94f4f !important;
}

.orders-status {
  padding: .45rem .7rem !important;
  border: 1px solid transparent;
  font-size: .68rem !important;
}

.orders-total {
  color: #173e55;
  font-size: 1.25rem !important;
}

.orders-total::first-letter {
  color: hsl(var(--accent));
}

.orders-section {
  margin-top: 1rem;
}

.orders-section > p:first-child {
  margin-bottom: .7rem !important;
  color: #244454;
  font-size: .78rem !important;
}

.orders-items {
  border: 1px solid #e6eef1;
  background: #f8fbfc !important;
}

.orders-item {
  padding: .75rem .15rem;
  border-bottom: 1px solid #e4edf0;
}

.orders-item:last-child {
  border-bottom: 0;
}

.orders-item p {
  margin: 0;
  color: #244454;
  font-size: .82rem;
  font-weight: 700;
}

.orders-item p + p,
.orders-item > div:first-child > p:last-child {
  color: #84949d;
}

.orders-item-total {
  display: grid;
  gap: .15rem;
  color: #6d808a;
  font-size: .72rem;
  text-align: left;
}

.orders-item-total strong {
  color: #244454;
}

.orders-summary,
.orders-note {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e4edf1;
}

.orders-summary > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .45rem;
  color: #71828c;
  font-size: .78rem;
}

.orders-summary-total {
  margin-top: .7rem;
  padding-top: .7rem;
  border-top: 1px solid #e4edf1;
  color: #173e55 !important;
  font-size: .9rem !important;
  font-weight: 800;
}

.orders-summary-total strong {
  color: hsl(var(--accent));
}

.orders-note > p {
  margin: .5rem 0 0;
  padding: .75rem;
  border-radius: .5rem;
  background: #f8fbfc;
  color: #3d5a68;
  font-size: .78rem;
  line-height: 1.8;
}

.orders-note > p + p {
  margin-top: .5rem;
}

.orders-empty {
  padding: 5rem 1.5rem;
  border: 1px solid #dce7ec;
  border-radius: 1rem;
  background: #fff;
  text-align: center;
  box-shadow: 0 12px 30px rgb(16 47 66 / .05);
}

.orders-empty-icon {
  display: grid;
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 1.2rem;
  place-items: center;
  border-radius: 50%;
  color: hsl(var(--accent));
  background: #e8f7fc;
}

.orders-empty-icon svg {
  width: 2rem;
  height: 2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.orders-empty > span {
  color: hsl(var(--accent));
  font-size: .75rem;
  font-weight: 800;
}

.orders-empty h2 {
  margin: .4rem 0 .55rem;
  color: #173e55;
  font-family: var(--app-font-serif);
  font-size: 1.6rem;
}

.orders-empty > p {
  max-width: 28rem;
  margin: 0 auto 1.5rem;
  color: #758790;
  font-size: .85rem;
}

.orders-empty-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .7rem;
}

.orders-empty-actions a {
  display: inline-flex;
  min-height: 2.7rem;
  align-items: center;
  justify-content: center;
  padding: 0 1.1rem;
  border-radius: .5rem;
  font-size: .78rem;
  font-weight: 800;
  text-decoration: none;
}

.orders-empty-primary {
  color: #fff;
  background: hsl(var(--accent));
}

.orders-empty-secondary {
  border: 1px solid #d3e0e6;
  color: #315367;
  background: #fff;
}

@media (max-width: 640px) {
  .orders-page {
    padding: 2.5rem 0 4rem;
  }

  .orders-page-header {
    align-items: stretch;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
    padding-top: .5rem;
  }

  .orders-page-count {
    width: fit-content;
  }

  .orders-card {
    padding: 1.1rem !important;
  }

  .orders-card-header {
    align-items: stretch !important;
    gap: 1rem !important;
  }

  .orders-card-header > div:last-child {
    justify-content: flex-start;
  }

  .orders-details-button {
    width: 100%;
  }

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

  .orders-empty-actions a {
    width: 100%;
  }
}
