/* =========================================================
   Prime Tech — prime-tech.site
   Font: PrimeTech only | Buttons: solid + hover
   ========================================================= */

/* Metric-matched fallback so any early font apply doesn't shift layout */
@font-face {
  font-family: "PrimeTech Fallback";
  src: local("Arial");
  size-adjust: 105%;
  ascent-override: 95%;
  descent-override: 22%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "PrimeTech";
  src: url("/fonts/PrimeTech.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: optional;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --brand-blue: #2bb8ff;
  --brand-blue-hover: #1197db;
  /* AA contrast on white button text (≥4.5:1) */
  --brand-blue-btn: #0b7eb5;
  --brand-blue-btn-hover: #0a6f9c;
  --brand-teal: #12b5a8;
  --brand-teal-hover: #0e968c;
  /* Text on light surfaces (AA) — icons/accents keep --brand-teal */
  --brand-teal-text: #0a7a70;
  --brand-green: #1ed760;
  --brand-wa: #25d366;
  --brand-wa-hover: #1dae56;

  --surface-0: #eef3f7;
  --surface-1: #ffffff;
  --surface-2: #e2eaf0;
  --surface-dark: #060d14;
  --surface-dark-2: #0c1620;
  --surface-dark-3: #132030;

  --text-1: #0b1520;
  --text-2: #3a4a5c;
  --text-3: #6b7c8f;
  --text-on-dark: #f3f6f9;
  --text-on-dark-2: #a8b6c5;
  --text-on-dark-3: #7d8d9e;

  --border: rgb(11 21 32 / 0.1);
  --border-strong: rgb(11 21 32 / 0.16);
  --border-dark: rgb(243 246 249 / 0.12);

  --container: 84rem;
  --radius-sm: 0.5rem;
  --radius-md: 0.85rem;
  --radius-pill: 999px;
  --shadow-xs: 0 1px 0 rgb(11 21 32 / 0.05);
  --shadow-sm: 0 14px 36px rgb(11 21 32 / 0.12);

  --font: "PrimeTech", "PrimeTech Fallback", ui-sans-serif, system-ui, sans-serif;
  --fs-xs: clamp(0.72rem, 0.7rem + 0.12vw, 0.8rem);
  --fs-sm: clamp(0.875rem, 0.84rem + 0.18vw, 0.9375rem);
  --fs-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --fs-lg: clamp(1.125rem, 1.05rem + 0.35vw, 1.25rem);
  --fs-xl: clamp(1.4rem, 1.15rem + 0.9vw, 1.85rem);
  --fs-2xl: clamp(2rem, 1.45rem + 2.2vw, 3.25rem);
  --fs-3xl: clamp(2.5rem, 1.7rem + 3vw, 4.25rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 220ms;

  --z-header: 40;
  --z-fab: 70;
  --z-overlay: 80;
  --z-sidebar: 90;
  --z-skip: 100;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.55;
  color: var(--text-1);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgb(43 184 255 / 0.1), transparent 55%),
    radial-gradient(900px 420px at 90% 0%, rgb(30 215 96 / 0.08), transparent 50%),
    var(--surface-0);
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea,
select {
  font-family: var(--font);
}

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

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

button {
  font: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: var(--z-skip);
  padding: 0.65rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--surface-1);
  border: 1px solid var(--border-strong);
  font-weight: 600;
}

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

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

/* Buttons — one solid + one hover */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: var(--fs-sm);
  font-weight: 650;
  white-space: nowrap;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease),
    color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

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

.btn-primary {
  color: #fff;
  background-color: var(--brand-blue-btn);
}

.btn-primary:hover {
  background-color: var(--brand-blue-btn-hover);
}

.btn-dark {
  color: #fff;
  background-color: var(--surface-dark);
}

.btn-dark:hover {
  background-color: #132030;
}

.btn-ghost {
  color: var(--text-1);
  background-color: var(--surface-1);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  background-color: var(--surface-2);
}

.btn-block {
  width: 100%;
}

.btn svg {
  width: 1.05rem;
  height: 1.05rem;
}

/* =========================================================
   HEADER
   ========================================================= */
/* Header height token — hero uses this so navbar + hero = 90vh */
:root {
  --header-h: calc(2.35rem + 4.4rem);
}

@media (min-width: 900px) {
  :root {
    --header-h: calc(2.35rem + 5rem);
  }
}

/* Reserve space before JS injects header — kills CLS */
#site-header {
  min-height: var(--header-h);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  transition: transform 320ms var(--ease);
  will-change: transform;
}

.site-header.is-header-hidden {
  transform: translate3d(0, -100%, 0);
}

.site-header.is-scrolled .nav2 {
  background: #fff;
  border-bottom-color: var(--border);
  box-shadow: none;
}

.site-header.is-compact .nav1 {
  max-height: 0;
  min-height: 0;
  opacity: 0;
  overflow: hidden;
  border-bottom-width: 0;
  pointer-events: none;
}

.site-header.is-compact .nav2-inner {
  min-height: 3.65rem;
}

@media (min-width: 1024px) {
  .site-header.is-compact .nav2-inner {
    min-height: 4.1rem;
  }

  .site-header.is-compact .brand-mark {
    width: 2.85rem;
    height: 2.85rem;
  }
}

.nav1 {
  background: var(--surface-dark);
  color: var(--text-on-dark-2);
  border-bottom: 1px solid var(--border-dark);
  max-height: 3rem;
  transition: max-height 320ms var(--ease), opacity 240ms var(--ease),
    border-color 240ms var(--ease);
}

.nav1-inner {
  min-height: 2.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: var(--fs-xs);
}

.nav1-left,
.nav1-right {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.nav1-right {
  flex-shrink: 0;
  flex-wrap: nowrap;
}

.nav1-brand-name {
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-on-dark);
}

.nav1-tagline {
  color: var(--text-on-dark-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 11rem;
}

@media (min-width: 640px) {
  .nav1-tagline {
    max-width: none;
  }
}

.nav1-sep {
  width: 1px;
  height: 0.85rem;
  background: rgb(255 255 255 / 0.16);
  flex-shrink: 0;
}

.nav1-meta {
  display: none;
  color: var(--text-on-dark-3);
  white-space: nowrap;
}

@media (min-width: 900px) {
  .nav1-meta {
    display: inline;
  }
}

.nav1-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-on-dark-2);
  white-space: nowrap;
  flex-shrink: 0;
  transition: color var(--dur) var(--ease);
}

.nav1-link:hover {
  color: var(--text-on-dark);
}

.nav1-link svg {
  width: 0.9rem;
  height: 0.9rem;
  flex-shrink: 0;
}

.nav1-link--email span {
  white-space: nowrap;
}

.nav1-link--hide-sm {
  display: none;
}

@media (min-width: 900px) {
  .nav1-link--hide-sm {
    display: inline-flex;
  }
}

.icon-wa {
  color: var(--brand-wa);
  display: inline-flex;
}

.social-rail {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 1100px) {
  .social-rail--nav1 {
    display: flex;
  }
}

.social-link {
  width: 1.85rem;
  height: 1.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  border: 1px solid rgb(255 255 255 / 0.14);
  color: var(--text-on-dark-2);
  background: rgb(255 255 255 / 0.04);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.social-link svg {
  width: 0.8rem;
  height: 0.8rem;
}

.social-link:hover {
  color: #fff;
  border-color: transparent;
  background-color: var(--brand-teal);
}

.social-link--dark {
  border-color: var(--border-dark);
  color: var(--text-on-dark-2);
  background: rgb(255 255 255 / 0.04);
}

.social-link--dark:hover {
  color: #fff;
  background-color: var(--brand-teal);
}

/* Nav2 */
.nav2 {
  background: #fff;
  border-bottom: 1px solid var(--border);
  transition: background-color 280ms var(--ease), border-color 280ms var(--ease),
    box-shadow 280ms var(--ease);
}

.nav2-inner {
  min-height: 4.15rem;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.75rem;
  transition: min-height 280ms var(--ease);
}

@media (min-width: 1024px) {
  .nav2-inner {
    min-height: 4.5rem;
    grid-template-columns: auto minmax(0, 1fr) auto;
    width: min(100% - 1.5rem, var(--container));
    margin-inline: auto;
  }

  .nav-links {
    min-width: 0;
    flex-wrap: nowrap;
    overflow: visible;
  }
}

@media (min-width: 1280px) {
  .nav1-inner {
    width: min(100% - 1.5rem, var(--container));
    margin-inline: auto;
  }

  .nav-link {
    padding: 0.48rem 0.62rem;
  }
}

@media (min-width: 1600px) {
  .nav1-tagline,
  .nav1-meta {
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

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

.brand-mark {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
  flex-shrink: 0;
  transition: width 280ms var(--ease), height 280ms var(--ease);
}

@media (min-width: 1024px) {
  .brand-mark {
    width: 3.45rem;
    height: 3.45rem;
  }
}

.brand-wordmark {
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.05;
}

.brand-wordmark span {
  display: block;
}

.brand-wordmark span:last-child {
  /* Darker teal for AA contrast on white (same brand family) */
  color: #0a7a70;
}

.brand-wordmark--on-dark span:first-child {
  color: var(--text-on-dark);
}

.brand-wordmark--on-dark span:last-child {
  color: var(--brand-blue);
}

.nav-links {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
}

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.48rem 0.72rem;
  border-radius: 0.65rem;
  font-size: var(--fs-sm);
  font-weight: 520;
  color: var(--text-2);
  white-space: nowrap;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.nav-link__icon {
  display: inline-flex;
  color: var(--brand-teal);
}

.nav-link__icon svg {
  width: 0.95rem;
  height: 0.95rem;
}

.nav-link:hover {
  color: var(--text-1);
  background-color: var(--surface-2);
}

.nav-actions {
  display: none;
  justify-self: end;
}

@media (min-width: 1024px) {
  .nav-actions {
    display: flex;
  }
}

.nav2-tools {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  justify-self: end;
}

@media (min-width: 1024px) {
  .nav2-tools {
    display: none;
  }
}

.menu-toggle {
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface-1);
  color: var(--text-1);
}

.menu-toggle__bars {
  display: grid;
  gap: 0.28rem;
  width: 1.05rem;
}

.menu-toggle__bars i {
  display: block;
  height: 2px;
  border-radius: var(--radius-pill);
  background: currentColor;
  transition: transform 0.28s var(--ease), opacity 0.28s var(--ease);
}

body.nav-open .menu-toggle__bars i:nth-child(1) {
  transform: translateY(0.34rem) rotate(45deg);
}

body.nav-open .menu-toggle__bars i:nth-child(2) {
  opacity: 0;
}

body.nav-open .menu-toggle__bars i:nth-child(3) {
  transform: translateY(-0.34rem) rotate(-45deg);
}

/* =========================================================
   SIDEBAR — light sheet, matched to navbar
   ========================================================= */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background: rgb(11 21 32 / 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.nav-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.nav-overlay[hidden] {
  display: block !important;
  visibility: hidden;
}

.nav-overlay.is-open[hidden] {
  visibility: visible;
}

.sidebar {
  position: fixed;
  inset: 0;
  z-index: var(--z-sidebar);
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 0.85rem 1rem 1.1rem;
  background: #fff;
  color: var(--text-1);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transform: translateY(-0.5rem);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.22s var(--ease), opacity 0.22s var(--ease), visibility 0.22s;
  overflow: hidden;
}

.sidebar.is-open {
  transform: none;
  opacity: 1;
  visibility: visible;
}

@media (min-width: 1024px) {
  .nav-overlay,
  .sidebar {
    display: none !important;
  }
}

body.nav-open {
  overflow: hidden;
}

body.nav-open .corner-stack {
  opacity: 0;
  pointer-events: none;
}

.sidebar__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}

.sidebar__top .brand-mark {
  width: 2.55rem;
  height: 2.55rem;
}

.sidebar__close {
  width: 2.4rem;
  height: 2.4rem;
  position: relative;
  flex-shrink: 0;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface-0);
}

.sidebar__close span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.85rem;
  height: 2px;
  border-radius: var(--radius-pill);
  background: var(--text-1);
}

.sidebar__close span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

.sidebar__close span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  overflow-y: auto;
  flex: 1;
  padding: 0.75rem 0;
}

.side-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 2.85rem;
  padding: 0.45rem 0.65rem;
  border-radius: 0.75rem;
  border: 1px solid transparent;
  background: transparent;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.sidebar.is-open .side-link {
  animation: side-in 0.36s var(--ease) both;
}

.sidebar.is-open .side-link:nth-child(1) { animation-delay: 40ms; }
.sidebar.is-open .side-link:nth-child(2) { animation-delay: 70ms; }
.sidebar.is-open .side-link:nth-child(3) { animation-delay: 100ms; }
.sidebar.is-open .side-link:nth-child(4) { animation-delay: 130ms; }
.sidebar.is-open .side-link:nth-child(5) { animation-delay: 160ms; }
.sidebar.is-open .side-link:nth-child(6) { animation-delay: 190ms; }

@keyframes side-in {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.side-link:hover {
  background: var(--surface-0);
  border-color: var(--border);
}

.side-link__icon {
  width: 1.85rem;
  height: 1.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 0.5rem;
  background: var(--surface-0);
  color: var(--brand-teal);
}

.side-link__icon svg {
  width: 0.95rem;
  height: 0.95rem;
}

.side-link__label {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-1);
}

.sidebar__foot {
  display: grid;
  gap: 0.6rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.sidebar__row {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: var(--fs-sm);
  color: var(--text-2);
  white-space: nowrap;
}

.sidebar__row svg {
  width: 0.9rem;
  height: 0.9rem;
  flex-shrink: 0;
}

.sidebar__social {
  display: flex;
  gap: 0.35rem;
  margin: 0.05rem 0 0.15rem;
}

.social-link--light {
  border-color: var(--border);
  color: var(--text-2);
  background: var(--surface-0);
}

.social-link--light:hover {
  color: #fff;
  border-color: transparent;
  background-color: var(--brand-teal);
}

.sidebar .btn-block {
  min-height: 2.65rem;
}

/* =========================================================
   CORNER FABs
   ========================================================= */
.corner-stack {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: var(--z-fab);
  display: grid;
  gap: 0.55rem;
  transition: opacity var(--dur) var(--ease);
}

.fab {
  width: 3.15rem;
  height: 3.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease),
    transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.fab svg {
  width: 1.25rem;
  height: 1.25rem;
}

.fab:active {
  transform: scale(0.96);
}

.fab-wa {
  color: #fff;
  background-color: var(--brand-wa);
}

.fab-wa:hover {
  background-color: var(--brand-wa-hover);
}

.fab-top {
  color: #fff;
  background-color: var(--surface-dark);
  border: 2px solid var(--brand-teal);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(0, 14px, 0) scale(0.86);
  transition:
    opacity 320ms var(--ease),
    transform 380ms var(--ease),
    visibility 320ms var(--ease),
    background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.fab-top.is-shown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1);
}

.fab-top.is-shown:hover {
  background-color: #132030;
  border-color: var(--brand-blue);
  transform: translate3d(0, -2px, 0) scale(1.04);
}

.fab-top.is-shown:active {
  transform: translate3d(0, 1px, 0) scale(0.96);
}

/* =========================================================
   HERO — full-bleed photo under nav
   Desktop landscape: subject right, copy left
   Mobile portrait: subject right/center, copy left
   ========================================================= */
.hero {
  position: relative;
  width: 100%;
  /* Navbar + hero together = 100vh */
  min-height: calc(100svh - var(--header-h));
  height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  --hero-stats-h: 4.65rem;
  padding-bottom: var(--hero-stats-h);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media picture,
.hero-media img {
  width: 100%;
  height: 100%;
}

.hero-media img {
  object-fit: cover;
  object-position: 78% center;
}

@media (min-width: 768px) {
  .hero-media img {
    object-position: right center;
  }
}

@media (min-width: 1200px) {
  .hero-media img {
    object-position: 85% center;
  }
}

/* Large laptops & desktop — keep copy in left column, subject on the right */
@media (min-width: 1280px) {
  .hero {
    height: auto;
    min-height: calc(100svh - var(--header-h));
    max-height: min(56rem, calc(100svh - var(--header-h)));
    align-items: stretch;
    padding-top: clamp(1.25rem, 3vw, 2.5rem);
    padding-bottom: calc(0.75rem + var(--hero-stats-h));
  }

  .hero-media img {
    object-position: 88% center;
  }

  .hero-shade {
    background:
      linear-gradient(
        90deg,
        rgb(238 243 247 / 0.98) 0%,
        rgb(238 243 247 / 0.94) 32%,
        rgb(238 243 247 / 0.72) 50%,
        rgb(238 243 247 / 0.18) 68%,
        transparent 84%
      ),
      linear-gradient(
        180deg,
        rgb(238 243 247 / 0.35) 0%,
        transparent 22%,
        transparent 78%,
        rgb(238 243 247 / 0.6) 100%
      );
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: min(38rem, 46vw);
    max-width: 38rem;
    min-height: min(32rem, calc(100svh - var(--header-h) - 4rem));
    padding-block: clamp(1.5rem, 3vw, 3rem);
  }

  .hero h1 {
    font-size: clamp(2.35rem, 1.6rem + 1.45vw, 3.65rem);
    max-width: 12ch;
  }

  .hero-lead {
    max-width: 32rem;
  }
}

/* Ultra-wide / TV — cap scale, anchor background, prevent header crowding */
@media (min-width: 1600px) {
  .hero-media img {
    object-position: 92% center;
  }

  .hero-shade {
    background:
      linear-gradient(
        90deg,
        rgb(238 243 247 / 0.99) 0%,
        rgb(238 243 247 / 0.96) 38%,
        rgb(238 243 247 / 0.55) 54%,
        rgb(238 243 247 / 0.1) 72%,
        transparent 88%
      ),
      linear-gradient(
        180deg,
        rgb(238 243 247 / 0.4) 0%,
        transparent 24%,
        transparent 76%,
        rgb(238 243 247 / 0.65) 100%
      );
  }

  .hero-content {
    width: 38rem;
  }

  .hero h1 {
    font-size: 3.65rem;
  }
}

@media (min-width: 1920px) {
  .hero {
    max-height: min(52rem, calc(100svh - var(--header-h)));
  }

  .hero-media img {
    object-position: 94% center;
  }

  .nav1-inner,
  .nav2-inner {
    width: min(100% - 1.5rem, var(--container));
  }
}

@media (min-width: 2560px) {
  .hero h1 {
    font-size: 3.75rem;
  }

  .hero-lead {
    font-size: 1.2rem;
  }
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgb(238 243 247 / 0.96) 0%,
      rgb(238 243 247 / 0.9) 28%,
      rgb(238 243 247 / 0.55) 48%,
      rgb(238 243 247 / 0.12) 68%,
      transparent 82%
    ),
    linear-gradient(180deg, rgb(238 243 247 / 0.25) 0%, transparent 28%, transparent 72%, rgb(238 243 247 / 0.55) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100% - 1.5rem, 38rem);
  margin-inline: auto 0;
  margin-left: max(0.75rem, calc((100% - var(--container)) / 2 + 0.75rem));
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

@media (max-width: 767px) {
  .hero {
    min-height: calc(100svh - var(--header-h));
    height: calc(100svh - var(--header-h));
    align-items: flex-end;
    padding-bottom: calc(0.85rem + var(--hero-stats-h));
  }

  .hero-media img {
    object-position: 72% 12%;
  }

  .hero-shade {
    background:
      linear-gradient(
        180deg,
        rgb(238 243 247 / 0.08) 0%,
        rgb(238 243 247 / 0.05) 32%,
        rgb(238 243 247 / 0.78) 62%,
        rgb(238 243 247 / 0.97) 100%
      );
  }

  .hero-content {
    width: min(100% - 1.5rem, var(--container));
    margin-inline: auto;
    padding-block: 0;
  }

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

  .hero h1 {
    font-size: clamp(1.85rem, 7.2vw, 2.35rem);
    max-width: 14ch;
    line-height: 1.08;
  }

  .hero-lead--desktop {
    display: none;
  }

  .hero-lead--mobile {
    display: block;
    margin-top: 0.75rem;
    font-size: 1rem;
    line-height: 1.45;
    max-width: 28rem;
    font-weight: 500;
  }

  .hero-actions {
    margin-top: 1.25rem;
    gap: 0.55rem;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
    min-width: 9.5rem;
  }
}

.hero-lead--mobile {
  display: none;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1rem;
  font-size: var(--fs-xs);
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-teal);
}

.hero-kicker::before {
  content: "";
  width: 1.75rem;
  height: 2px;
  background: var(--brand-teal);
}

.hero h1 {
  margin: 0;
  font-size: var(--fs-3xl);
  line-height: 1.05;
  letter-spacing: -0.035em;
  max-width: 12ch;
  color: var(--text-1);
  text-wrap: balance;
}

.hero-lead {
  margin: 1.15rem 0 0;
  max-width: 34rem;
  font-size: var(--fs-lg);
  color: var(--text-2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.75rem;
}

.hero .btn-ghost {
  background-color: rgb(255 255 255 / 0.82);
}

.hero .btn-ghost:hover {
  background-color: #fff;
}

.hero-stats {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--hero-stats-h);
  overflow: hidden;
  background: #fff;
  border-top: 1px solid var(--border);
}

.hero-stats__track {
  display: flex;
  width: max-content;
  height: 100%;
  animation: hero-stats-marquee 28s linear infinite;
}

.hero-stats:hover .hero-stats__track {
  animation-play-state: paused;
}

@keyframes hero-stats-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.hero-stats__list {
  display: flex;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-stats__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 0 0 auto;
  width: max(18rem, 25vw);
  padding: 0.55rem 1.15rem;
  border-left: 1px solid var(--border);
}

.hero-stats__icon {
  width: 2.45rem;
  height: 2.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 0.7rem;
  background: var(--surface-0);
  color: var(--brand-teal);
}

.hero-stats__icon svg {
  width: 1.2rem;
  height: 1.2rem;
}

.hero-stats__text {
  display: grid;
  gap: 0.05rem;
  min-width: 0;
}

.hero-stats__text strong {
  color: var(--text-1);
  font-size: 1.02rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.hero-stats__text span {
  color: var(--text-3);
  font-size: 0.78rem;
  line-height: 1.25;
  white-space: nowrap;
}

.ai-strip {
  position: relative;
  z-index: 2;
  padding: 0.85rem 0;
  background: var(--surface-0);
}

.ai-strip + .services-stage .services-wrap {
  padding-top: 0;
}

.ai-strip__bar {
  display: grid;
  grid-template-columns: minmax(15rem, 1.2fr) auto auto;
  align-items: center;
  gap: 1.15rem 1.4rem;
  padding: 0.8rem 1rem 0.8rem 1.1rem;
  background: #f4f9fc;
  border: 1px solid rgb(11 126 181 / 0.16);
  border-radius: 1rem;
}

.ai-strip__lead {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  min-width: 0;
}

.ai-strip__mark {
  width: 2.15rem;
  height: 2.15rem;
  display: inline-flex;
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: var(--brand-blue);
}

.ai-strip__mark svg {
  width: 100%;
  height: 100%;
}

.ai-strip__name,
.ai-strip__title,
.ai-strip__sub {
  margin: 0;
}

.ai-strip__name {
  color: var(--text-1);
  font-size: 0.98rem;
  font-weight: 750;
  line-height: 1.3;
}

.ai-strip__title {
  margin-top: 0.12rem;
  color: var(--brand-blue-btn);
  font-size: 1.05rem;
  font-weight: 750;
  line-height: 1.25;
}

.ai-strip__sub {
  margin-top: 0.12rem;
  color: var(--text-2);
  font-size: 0.8rem;
  line-height: 1.35;
}

.ai-strip__nets {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ai-strip__net {
  display: grid;
  justify-items: center;
  gap: 0.28rem;
  width: 3.35rem;
  color: var(--text-3);
  font-size: 0.66rem;
  line-height: 1.1;
  text-align: center;
}

.ai-strip__glyph {
  width: 1.95rem;
  height: 1.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.45rem;
  color: #fff;
}

.ai-strip__glyph svg {
  width: 1.05rem;
  height: 1.05rem;
}

.ai-strip__glyph--ig { background: #e1306c; }
.ai-strip__glyph--fb { background: #1877f2; }
.ai-strip__glyph--tt,
.ai-strip__glyph--th,
.ai-strip__glyph--x { background: #111; }
.ai-strip__glyph--yt { background: #ff0033; }
.ai-strip__glyph--web {
  background: var(--brand-blue-btn);
}

.ai-strip__actions {
  display: grid;
  justify-items: end;
  gap: 0.35rem;
}

.ai-strip__more {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--brand-blue-btn);
  font-size: 0.84rem;
  font-weight: 650;
}

.ai-strip__more svg {
  width: 0.9rem;
  height: 0.9rem;
}

.ai-strip__more:hover {
  color: var(--brand-blue-btn-hover);
}

@media (max-width: 1100px) {
  .ai-strip__bar {
    grid-template-columns: 1fr auto;
  }

  .ai-strip__nets {
    grid-column: 1 / -1;
    flex-wrap: wrap;
  }
}

@media (max-width: 720px) {
  .ai-strip__bar {
    grid-template-columns: 1fr;
  }

  .ai-strip__actions {
    justify-items: stretch;
  }

  .ai-strip__actions .btn {
    width: 100%;
  }
}

.section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.section--dark {
  background: var(--surface-dark);
  color: var(--text-on-dark);
}

.section-head {
  margin-bottom: 2rem;
  max-width: 36rem;
}

.section-head .eyebrow {
  margin: 0 0 0.65rem;
  font-size: var(--fs-xs);
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-teal-text);
}

.section--dark .section-head .eyebrow {
  color: var(--brand-blue);
}

.section-head h2 {
  margin: 0;
  font-size: var(--fs-2xl);
  letter-spacing: -0.03em;
  max-width: 16ch;
  line-height: 1.1;
}

.section-head p {
  margin: 0.85rem 0 0;
  color: var(--text-2);
  font-size: var(--fs-lg);
}

.section--dark .section-head p {
  color: var(--text-on-dark-2);
}

.page-intro {
  padding-top: clamp(2.5rem, 5vw, 4rem);
}

.about-intro {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
}

@media (min-width: 900px) {
  .about-intro {
    grid-template-columns: minmax(0, 1.15fr) minmax(14rem, 0.85fr);
  }
}

.about-intro__copy .eyebrow {
  margin: 0 0 0.65rem;
  font-size: var(--fs-xs);
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-teal);
}

.about-intro__copy h1 {
  margin: 0;
  font-size: var(--fs-2xl);
  letter-spacing: -0.035em;
  line-height: 1.08;
  max-width: 14ch;
}

.about-intro__copy p {
  margin: 0.9rem 0 0;
  max-width: 38rem;
  color: var(--text-2);
  font-size: var(--fs-lg);
  line-height: 1.55;
}

.about-intro__copy .hero-actions {
  margin-top: 1.5rem;
}

.about-intro__copy .btn-ghost {
  border-color: var(--border-strong);
  color: var(--text-1);
  background: transparent;
}

.about-intro__copy .btn-ghost:hover {
  background: var(--surface-2);
  color: var(--text-1);
}

.about-intro__visual {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
}

.about-intro__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

@media (max-width: 899px) {
  .about-intro {
    justify-items: center;
    text-align: center;
  }

  .about-intro__copy h1,
  .about-intro__copy p {
    margin-inline: auto;
  }

  .about-intro__copy .hero-actions {
    justify-content: center;
  }

  .about-intro__visual {
    width: min(100%, 18rem);
  }
}

/* —— Offer cards (About section) —— */
.section--offers {
  background:
    radial-gradient(ellipse 70% 50% at 10% 0%, rgb(43 184 255 / 0.08), transparent 55%),
    radial-gradient(ellipse 60% 45% at 90% 20%, rgb(30 215 96 / 0.07), transparent 50%),
    var(--surface-0);
}

.offers-head {
  max-width: 40rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

.offers-head__more {
  margin-top: 1.15rem;
  border-color: var(--border-strong);
  color: var(--text-1);
  background: transparent;
}

.offers-head__more:hover {
  background: var(--surface-1);
  color: var(--text-1);
}

.offer-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .offer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.35rem;
  }
}

.offer-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 1.1rem;
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.offer-card:hover {
  border-color: rgb(18 181 168 / 0.45);
  box-shadow: var(--shadow-sm);
}

.offer-card__media {
  display: block;
  aspect-ratio: 16 / 10;
  background: #f4f7fa;
  overflow: hidden;
}

.offer-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 420ms var(--ease);
}

.offer-card:hover .offer-card__media img {
  transform: scale(1.03);
}

.offer-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.65rem;
  padding: 1.25rem 1.2rem 1.35rem;
}

.offer-card__body h3 {
  margin: 0;
  font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem);
  letter-spacing: -0.025em;
}

.offer-card__body > p {
  margin: 0;
  color: var(--text-2);
  font-size: var(--fs-sm);
  line-height: 1.55;
}

.offer-card__for {
  color: var(--text-3) !important;
  font-size: var(--fs-xs) !important;
  line-height: 1.45 !important;
}

.offer-card__for span {
  display: inline-block;
  margin-right: 0.35rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-teal);
}

.offer-card__body .btn {
  margin-top: auto;
  align-self: start;
  min-height: 2.65rem;
  padding-inline: 1.1rem;
}

/* —— Topic / offering pages —— */
.topic-hero {
  padding-top: clamp(2.5rem, 5vw, 4rem);
  background:
    linear-gradient(180deg, var(--surface-1), var(--surface-0));
}

.topic-hero__grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.75rem);
  align-items: center;
}

@media (min-width: 900px) {
  .topic-hero__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }
}

.topic-hero__copy .eyebrow {
  margin: 0 0 0.65rem;
  font-size: var(--fs-xs);
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-teal);
}

.topic-hero__copy h1 {
  margin: 0;
  font-size: var(--fs-2xl);
  letter-spacing: -0.035em;
  line-height: 1.08;
  max-width: 14ch;
}

.topic-hero__copy > p {
  margin: 0.95rem 0 0;
  max-width: 38rem;
  color: var(--text-2);
  font-size: var(--fs-lg);
  line-height: 1.55;
}

.topic-hero__copy .hero-actions {
  margin-top: 1.5rem;
}

.topic-hero__copy .btn-ghost {
  border-color: var(--border-strong);
  color: var(--text-1);
  background: transparent;
}

.topic-hero__copy .btn-ghost:hover {
  background: var(--surface-2);
  color: var(--text-1);
}

.topic-hero__visual {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #f4f7fa;
}

.topic-hero__visual img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.topic-split {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .topic-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: 2.5rem;
  }

  .topic-split .section-head {
    margin-bottom: 0;
  }
}

.topic-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.topic-list li {
  position: relative;
  padding: 0.85rem 0 0.85rem 1.35rem;
  border-top: 1px solid var(--border);
  color: var(--text-2);
  font-size: var(--fs-base);
  line-height: 1.5;
}

.topic-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.2rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--brand-teal);
}

@media (max-width: 899px) {
  .topic-hero__copy h1 {
    max-width: 16ch;
  }
}

.section--orbit {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--surface-1);
}

.orbit-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.orbit-shape {
  position: absolute;
  border: 1.5px solid currentColor;
  opacity: 0.11;
}

.orbit-shape--circle {
  border-radius: 50%;
}

.orbit-shape--square {
  border-radius: 0.75rem;
  transform: rotate(18deg);
}

.orbit-shape--ring {
  border-radius: 50%;
  background: transparent;
}

.orbit-shape--dot {
  border: 0;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.14;
}

.orbit-shape.c1 {
  width: 14rem;
  height: 14rem;
  top: -3rem;
  right: 8%;
  color: var(--brand-blue);
}

.orbit-shape.c2 {
  width: 8rem;
  height: 8rem;
  bottom: 12%;
  left: 6%;
  color: var(--brand-teal);
}

.orbit-shape.s1 {
  width: 5.5rem;
  height: 5.5rem;
  top: 28%;
  left: 18%;
  color: var(--brand-green);
}

.orbit-shape.s2 {
  width: 3.8rem;
  height: 3.8rem;
  bottom: 22%;
  right: 18%;
  color: var(--brand-blue);
  transform: rotate(-12deg);
}

.orbit-shape.r1 {
  width: 18rem;
  height: 18rem;
  top: 35%;
  right: -4rem;
  color: var(--brand-teal);
  opacity: 0.08;
}

.orbit-shape.r2 {
  width: 10rem;
  height: 10rem;
  bottom: -2rem;
  left: 35%;
  color: var(--brand-blue);
  opacity: 0.09;
}

.orbit-shape.d1 {
  width: 0.55rem;
  height: 0.55rem;
  top: 18%;
  left: 42%;
  color: var(--brand-teal);
}

.orbit-shape.d2 {
  width: 0.7rem;
  height: 0.7rem;
  top: 55%;
  right: 28%;
  color: var(--brand-blue);
}

.orbit-shape.d3 {
  width: 0.45rem;
  height: 0.45rem;
  bottom: 18%;
  left: 22%;
  color: var(--brand-green);
}

.orbit-logo {
  position: absolute;
  width: 2.75rem;
  height: 2.75rem;
  opacity: 0.13;
  color: currentColor;
}

.orbit-logo svg {
  width: 100%;
  height: 100%;
  display: block;
}

.orbit-logo.l-react {
  top: 12%;
  left: 8%;
  color: #61dafb;
  width: 3.2rem;
  height: 3.2rem;
}

.orbit-logo.l-next {
  top: 20%;
  right: 12%;
  color: #111111;
  opacity: 0.1;
}

.orbit-logo.l-node {
  bottom: 28%;
  left: 12%;
  color: #68a063;
}

.orbit-logo.l-ts {
  top: 48%;
  left: 4%;
  color: #3178c6;
}

.orbit-logo.l-vite {
  bottom: 16%;
  right: 10%;
  color: #a855f7;
}

.orbit-logo.l-py {
  top: 62%;
  right: 24%;
  color: #3776ab;
  width: 2.4rem;
  height: 2.4rem;
}

.orbit-logo.l-docker {
  bottom: 38%;
  right: 6%;
  color: #2496ed;
  width: 3rem;
  height: 3rem;
}

.services-stage {
  position: relative;
  isolation: isolate;
  overflow: clip;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  background: var(--surface-1);
}

.services-wrap {
  position: relative;
  z-index: 1;
}

/* —— POS wide banner (Industries slot) —— */
.pos-shell {
  position: relative;
  z-index: 1;
}

.pos-banner {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 1.15rem;
  background: rgb(255 255 255 / 0.9);
  backdrop-filter: blur(8px);
}

.pos-banner__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.35rem, 3.5vw, 2.35rem);
  min-width: 0;
}

.pos-banner__copy .eyebrow {
  margin: 0 0 0.55rem;
  font-size: var(--fs-xs);
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-teal);
}

.pos-banner__copy h2 {
  margin: 0;
  font-size: clamp(1.55rem, 1.2rem + 1.4vw, 2.35rem);
  letter-spacing: -0.035em;
  line-height: 1.08;
  max-width: 14ch;
}

.pos-banner__copy > p {
  margin: 0.85rem 0 0;
  max-width: 34rem;
  color: var(--text-2);
  font-size: var(--fs-base);
  line-height: 1.55;
}

.pos-banner__points {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.pos-banner__points li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--text-2);
  font-size: var(--fs-sm);
  line-height: 1.4;
}

.pos-banner__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--brand-teal);
}

.pos-banner__copy .btn {
  align-self: start;
  margin-top: 1.35rem;
}

.pos-banner__visual {
  margin: 0;
  position: relative;
  overflow: hidden;
  background: #f3f7fa;
}

.pos-banner__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

/* Laptop / wide: one card, full image visible on the right */
@media (min-width: 900px) {
  .pos-banner {
    grid-template-columns: minmax(0, 1.05fr) minmax(16rem, 1fr);
    min-height: min(28rem, 62vh);
    align-items: stretch;
  }

  .pos-banner__visual {
    align-self: stretch;
    height: 100%;
    min-height: 100%;
    margin: 0;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .pos-banner__visual img {
    position: static;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    transform: none;
  }
}

/* Portrait / phone: stacked, wide image (no rotate) */
@media (max-width: 899px) {
  .pos-banner {
    grid-template-columns: 1fr;
  }

  .pos-banner__visual {
    order: -1;
    width: 100%;
    aspect-ratio: auto;
    max-height: none;
    min-height: 0;
  }

  .pos-banner__visual img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center center;
    transform: none;
  }

  .pos-banner__copy {
    text-align: center;
    align-items: center;
  }

  .pos-banner__copy h2,
  .pos-banner__copy > p {
    margin-inline: auto;
  }

  .pos-banner__points {
    text-align: left;
    width: 100%;
    max-width: 22rem;
  }

  .pos-banner__copy .btn {
    align-self: center;
    width: 100%;
    max-width: 22rem;
    justify-content: center;
  }
}

.services-stage .services-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  flex: 1;
  min-height: 0;
  padding-block: 1.5rem 1.75rem;
}

/* —— Resources —— */
.resources-shell {
  position: relative;
  z-index: 1;
}

.resources-head {
  max-width: 36rem;
  margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
}

.resources-head p {
  max-width: 34rem;
}

.resource-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem;
  }
}

.resource-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-height: 0;
  padding: 1.15rem 1.15rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: rgb(255 255 255 / 0.9);
  backdrop-filter: blur(8px);
  color: inherit;
  text-decoration: none;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.resource-card:hover {
  border-color: rgb(18 181 168 / 0.45);
  box-shadow: var(--shadow-sm);
}

.resource-card--static {
  cursor: default;
}

.resource-card__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-teal);
}

.resource-card h3 {
  margin: 0;
  font-size: clamp(1.02rem, 0.96rem + 0.3vw, 1.15rem);
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: var(--text-1);
}

.resource-card p {
  margin: 0;
  color: var(--text-2);
  font-size: var(--fs-sm);
  line-height: 1.45;
}

.services-head {
  flex: 0 0 auto;
  max-width: 38rem;
}

.services-head .eyebrow {
  margin: 0 0 0.45rem;
  font-size: var(--fs-xs);
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-teal);
}

.services-head h2 {
  margin: 0;
  font-size: clamp(1.85rem, 1.4rem + 1.6vw, 3rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
  max-width: 14ch;
}

.services-head p {
  margin: 0.55rem 0 0;
  color: var(--text-2);
  font-size: var(--fs-base);
  max-width: 36ch;
}

.service-acc {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: min(28rem, 52vh);
  border: 1px solid var(--border);
  border-radius: 1.1rem;
  background: rgb(255 255 255 / 0.82);
  backdrop-filter: blur(8px);
  overflow: hidden;
}

.service-acc__item {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-height: 3.5rem;
  border-bottom: 1px solid var(--border);
}

.service-acc__item:last-child {
  border-bottom: 0;
}

.service-acc__item.is-open {
  flex: 0 0 auto;
}

.service-acc__trigger {
  width: 100%;
  flex: 1 0 auto;
  display: grid;
  grid-template-columns: minmax(8rem, 13rem) minmax(0, 1fr) 2.55rem;
  align-items: center;
  gap: 0.85rem 1.15rem;
  min-height: 3.5rem;
  padding: 0.85rem 1.15rem;
  border: 0;
  cursor: pointer;
  font: inherit;
  text-align: left;
  color: var(--text-1);
  background: transparent;
  transition: background-color var(--dur) var(--ease);
}

.service-acc__item.is-open .service-acc__trigger {
  flex: 0 0 auto;
  background: rgb(238 243 247 / 0.95);
}

@media (max-width: 760px) {
  .service-acc {
    min-height: 0;
  }

  .service-acc__item {
    flex: 0 0 auto;
  }

  .service-acc__trigger {
    grid-template-columns: minmax(0, 1fr) 2.45rem;
    gap: 0.2rem 0.75rem;
    padding-block: 0.8rem;
  }

  .service-acc__teaser {
    grid-column: 1;
    grid-row: 2;
    white-space: normal;
  }

  .service-acc__chev {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}

.service-acc__trigger:hover {
  background: rgb(238 243 247 / 0.9);
}

.service-acc__title {
  font-size: clamp(1.05rem, 0.95rem + 0.45vw, 1.3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.service-acc__teaser {
  color: var(--text-2);
  font-size: var(--fs-sm);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.service-acc__chev {
  width: 2.2rem;
  height: 2.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface-1);
  color: var(--brand-teal);
  transition: transform 0.3s var(--ease), background-color var(--dur) var(--ease),
    color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.service-acc__chev svg {
  width: 1.05rem;
  height: 1.05rem;
}

.service-acc__item.is-open .service-acc__chev {
  transform: rotate(180deg);
  background: var(--brand-teal);
  border-color: transparent;
  color: #fff;
}

.service-acc__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease);
}

.service-acc__panel-inner {
  overflow: hidden;
  min-height: 0;
  opacity: 0;
  transition: opacity 0.28s var(--ease);
}

.service-acc__item.is-open .service-acc__panel {
  grid-template-rows: 1fr;
}

.service-acc__item.is-open .service-acc__panel-inner {
  opacity: 1;
  padding: 0 1.15rem 1.25rem;
  display: grid;
  gap: 0.75rem;
}

.service-acc__panel p {
  margin: 0;
  max-width: 44rem;
  color: var(--text-2);
  font-size: var(--fs-base);
}

.service-acc__panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  max-width: 40rem;
}

.service-acc__panel li {
  position: relative;
  padding-left: 0.9rem;
  color: var(--text-2);
  font-size: var(--fs-sm);
}

.service-acc__panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--brand-teal);
}

.service-acc__panel .btn {
  justify-self: start;
  margin-top: 0.15rem;
}

.section--craft {
  --craft-bg: #000000;
  background: var(--craft-bg);
  color: #f5f7fa;
  overflow: hidden;
  min-height: 80vh;
  height: 80vh;
  display: flex;
  flex-direction: column;
}

.section--craft .shell.craft-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 1.5rem;
  padding-block: 1.5rem;
  height: auto;
}

@media (min-width: 900px) {
  .section--craft .shell.craft-grid {
    grid-template-columns: minmax(16rem, 0.72fr) minmax(0, 1.28fr);
    gap: clamp(1.5rem, 3vw, 3rem);
    align-items: stretch;
  }
}

.craft-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  padding-block: 0.5rem;
}

.craft-copy .eyebrow {
  margin: 0 0 0.55rem;
  color: var(--brand-blue);
}

.craft-copy h2 {
  margin: 0;
  font-size: clamp(1.55rem, 1.15rem + 1.4vw, 2.6rem);
  letter-spacing: -0.035em;
  max-width: 16ch;
  line-height: 1.05;
  color: #fff;
}

.craft-copy > p {
  margin: 0.8rem 0 0;
  max-width: 40rem;
  color: rgb(255 255 255 / 0.62);
  font-size: var(--fs-base);
  line-height: 1.55;
}

.craft-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.2rem;
}

.craft-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 1.85rem;
  padding: 0.22rem 0.7rem;
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgb(255 255 255 / 0.88);
  background: #111111;
}

.craft-copy .btn {
  align-self: start;
  margin-top: 1.35rem;
}

.craft-visual {
  margin: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1.15rem;
  overflow: hidden;
  border: 0;
  box-shadow: none;
  background: #000;
}

.craft-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

/* Portrait phone */
@media (max-width: 899px) {
  .section--craft {
    height: auto;
    min-height: 100svh;
  }

  .section--craft .shell.craft-grid {
    width: min(100% - 2.25rem, 28rem);
    margin-inline: auto;
    gap: 1.35rem;
    padding-block: 2rem 2.5rem;
    justify-items: center;
    text-align: center;
  }

  .craft-visual {
    width: min(100%, 20rem);
    height: auto;
    aspect-ratio: auto;
    max-height: none;
    margin: 0 auto;
    border: 0;
    border-radius: 0;
    background: #000;
    box-shadow: none;
  }

  .craft-visual img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center center;
  }

  .craft-copy {
    padding-block: 0;
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .craft-copy .eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.16em;
  }

  .craft-copy h2 {
    font-size: clamp(1.7rem, 7.2vw, 2.15rem);
    max-width: 14ch;
    margin-inline: auto;
  }

  .craft-copy > p {
    margin-top: 0.7rem;
    margin-inline: auto;
    font-size: 0.95rem;
    max-width: 34ch;
  }

  .craft-tags {
    margin-top: 1.15rem;
    gap: 0.4rem;
    justify-content: center;
  }

  .craft-tags span {
    min-height: 2rem;
    padding: 0.3rem 0.75rem;
    font-size: 0.78rem;
    background: #0a0a0a;
    border-color: rgb(255 255 255 / 0.14);
  }

  .craft-copy .btn {
    width: 100%;
    max-width: 22rem;
    min-height: 3rem;
    margin-top: 1.5rem;
    margin-inline: auto;
    justify-content: center;
    align-self: center;
  }
}

@media (max-width: 420px) {
  .section--craft .shell.craft-grid {
    width: min(100% - 1.75rem, 28rem);
    gap: 1.15rem;
  }

  .craft-visual {
    width: min(100%, 18rem);
  }

  .craft-copy h2 {
    font-size: clamp(1.55rem, 8vw, 1.9rem);
  }
}

.work-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 760px) {
  .work-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

.work-item {
  padding: 1.35rem 0 0;
  border-top: 2px solid var(--brand-teal);
}

.work-item h3 {
  margin: 0;
  font-size: var(--fs-xl);
}

.work-item p {
  margin: 0.55rem 0 0;
  color: var(--text-on-dark-2);
  font-size: var(--fs-sm);
}

.cta-band {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  border-top: 1px solid var(--border);
}

.cta-band h2 {
  margin: 0;
  font-size: var(--fs-2xl);
  max-width: 16ch;
  letter-spacing: -0.03em;
}

.cta-band p {
  margin: 0.85rem 0 0;
  max-width: 34rem;
  color: var(--text-2);
  font-size: var(--fs-lg);
}

.cta-band .hero-actions {
  margin-top: 1.5rem;
}

.contact-shell {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.25rem);
}

@media (min-width: 900px) {
  .contact-shell {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: start;
    gap: 2.5rem;
  }
}

.contact-head .eyebrow {
  margin: 0 0 0.55rem;
  font-size: var(--fs-xs);
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-teal);
}

.contact-head h2 {
  max-width: 14ch;
}

.contact-head > p {
  font-size: var(--fs-base);
}

.contact-direct {
  display: grid;
  gap: 0.7rem;
  margin: 1.35rem 0 0;
  padding: 0;
  font-style: normal;
}

.contact-direct__item {
  display: grid;
  gap: 0.15rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  background: var(--surface-1);
  color: var(--text-1);
  text-decoration: none;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.contact-direct__item:hover {
  border-color: rgb(18 181 168 / 0.45);
  box-shadow: var(--shadow-xs);
}

.contact-direct__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-teal);
}

.contact-direct__item > span:last-child {
  font-size: var(--fs-base);
  font-weight: 650;
  letter-spacing: -0.01em;
  word-break: break-word;
}

.contact-direct__meta {
  margin: 0.15rem 0 0;
  font-size: var(--fs-sm);
  color: var(--text-3);
}

.contact-form {
  display: grid;
  gap: 0.9rem;
  padding: 1.25rem 1.2rem 1.35rem;
  border: 1px solid var(--border);
  border-radius: 1.1rem;
  background: var(--surface-1);
  box-shadow: var(--shadow-xs);
}

.contact-form__row {
  display: grid;
  gap: 0.9rem;
}

@media (min-width: 560px) {
  .contact-form__row {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-field {
  display: grid;
  gap: 0.4rem;
}

.contact-field > span {
  font-size: var(--fs-xs);
  font-weight: 650;
  letter-spacing: 0.04em;
  color: var(--text-2);
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  min-height: 2.85rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border-strong);
  border-radius: 0.7rem;
  background: var(--surface-0);
  color: var(--text-1);
  font: inherit;
  font-size: var(--fs-base);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.contact-field textarea {
  min-height: 5.5rem;
  resize: vertical;
  line-height: 1.45;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: var(--text-3);
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: var(--brand-teal);
  box-shadow: 0 0 0 3px rgb(18 181 168 / 0.18);
}

.contact-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236b7c8f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.4rem;
}

.contact-field.is-invalid input,
.contact-field.is-invalid select,
.contact-field.is-invalid textarea {
  border-color: #d64545;
}

.contact-field__limit {
  display: none;
  font-size: 0.72rem;
  font-weight: 600;
  color: #d64545;
  letter-spacing: 0.01em;
}

.contact-field__limit.is-visible {
  display: block;
}

.contact-field.is-at-limit input,
.contact-field.is-at-limit textarea {
  border-color: #d64545;
}

.contact-form__submit {
  width: 100%;
  justify-content: center;
  min-height: 3rem;
  margin-top: 0.25rem;
}

.contact-form__hint {
  margin: 0 !important;
  font-size: var(--fs-xs) !important;
  color: var(--text-3) !important;
  max-width: none !important;
  text-align: center;
}

/* —— About page blocks —— */
.about-points {
  display: grid;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

@media (min-width: 760px) {
  .about-points {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }

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

.about-points article {
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--border);
}

.about-points h3 {
  margin: 0;
  font-size: var(--fs-lg);
  letter-spacing: -0.02em;
}

.about-points p {
  margin: 0.55rem 0 0;
  color: var(--text-2);
  font-size: var(--fs-base);
  line-height: 1.55;
}

.about-steps {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.15rem;
}

@media (min-width: 760px) {
  .about-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.35rem 1.75rem;
  }
}

.about-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem 1rem;
  align-items: start;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
}

.about-steps__n {
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brand-teal);
  line-height: 1.6;
}

.about-steps h3 {
  margin: 0;
  font-size: var(--fs-lg);
  letter-spacing: -0.02em;
}

.about-steps p {
  margin: 0.4rem 0 0;
  color: var(--text-2);
  font-size: var(--fs-base);
  line-height: 1.55;
}

/* —— FAQ accordion —— */
.section--faq {
  background: var(--surface-1);
  border-top: 1px solid var(--border);
}

.faq-wrap {
  max-width: 46rem;
}

.faq-head {
  margin-bottom: 1.5rem;
}

.faq-acc {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  background: var(--surface-0);
}

.faq-acc__item {
  border-bottom: 1px solid var(--border);
}

.faq-acc__item:last-child {
  border-bottom: 0;
}

.faq-acc__trigger {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2.4rem;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.4rem;
  padding: 0.95rem 1.1rem;
  border: 0;
  cursor: pointer;
  font: inherit;
  text-align: left;
  color: var(--text-1);
  background: transparent;
  transition: background-color var(--dur) var(--ease);
}

.faq-acc__trigger:hover {
  background: rgb(255 255 255 / 0.7);
}

.faq-acc__item.is-open .faq-acc__trigger {
  background: #fff;
}

.faq-acc__q {
  font-size: clamp(1rem, 0.94rem + 0.3vw, 1.12rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.faq-acc__icon {
  position: relative;
  width: 1.55rem;
  height: 1.55rem;
  justify-self: end;
  border-radius: 999px;
  background: var(--surface-dark);
  flex-shrink: 0;
}

.faq-acc__icon::before,
.faq-acc__icon::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 0.62rem;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transform: translate(-50%, -50%);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.faq-acc__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-acc__item.is-open .faq-acc__icon::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg) scaleX(0.2);
}

.faq-acc__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 280ms var(--ease);
}

.faq-acc__item.is-open .faq-acc__panel {
  grid-template-rows: 1fr;
}

.faq-acc__panel-inner {
  overflow: hidden;
  min-height: 0;
}

.faq-acc__panel-inner p {
  margin: 0;
  padding: 0 1.1rem 1.1rem;
  color: var(--text-2);
  font-size: var(--fs-base);
  line-height: 1.55;
  max-width: 40rem;
}

.faq-acc__panel-inner a {
  color: var(--brand-teal);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.faq-acc__panel-inner a:hover {
  color: var(--brand-teal-hover);
}

.faq-more {
  margin-top: 1.5rem;
}

.faq-more .btn {
  min-height: 2.85rem;
}

@media (max-width: 560px) {
  .faq-more .btn {
    width: 100%;
    justify-content: center;
  }
}

.site-footer {
  background: var(--surface-dark);
  color: var(--text-on-dark-2);
  padding: 3rem 0 2rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

@media (max-width: 899px) {
  .site-footer {
    text-align: center;
  }

  .footer-grid {
    justify-items: center;
    gap: 2.25rem;
  }

  .footer-grid > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .site-footer .brand {
    justify-content: center;
  }

  .site-footer p {
    margin-inline: auto;
    max-width: 26rem;
  }

  .site-footer ul {
    justify-items: center;
  }

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

.site-footer h2 {
  margin: 0 0 0.85rem;
  font-size: var(--fs-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-on-dark);
}

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

.site-footer a:hover {
  color: var(--text-on-dark);
}

.site-footer .footer-ico {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
  fill: currentColor;
}

.site-footer .footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.site-footer .footer-link .footer-ico {
  opacity: 0.92;
  color: var(--brand-teal);
}

.site-footer .footer-link--muted {
  color: var(--text-on-dark-2);
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-dark);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
  font-size: var(--fs-xs);
  color: var(--text-on-dark-3);
}

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

  .sidebar,
  .hero-stats__track,
  .nav-overlay,
  .menu-toggle__bars i,
  .sidebar.is-open .side-link,
  .site-header,
  .nav1,
  .nav2,
  .nav2-inner,
  .brand-mark,
  .reveal,
  .fab {
    transition: none !important;
    animation: none !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .site-header.is-header-hidden {
    transform: none !important;
  }

  .motion-ready .hero-media,
  .motion-ready .hero-media img,
  .motion-ready .hero-shade,
  .motion-ready .hero-line,
  .motion-ready .hero-actions.hero-line .btn {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .fab-top {
    transition: none !important;
  }
}

/* —— Hero stays static above the fold (animations hurt Speed Index) —— */

.reveal {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  filter: blur(2px);
  transition:
    opacity 620ms var(--ease),
    transform 620ms var(--ease),
    filter 620ms var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal.is-in {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
}

.reveal-left {
  transform: translate3d(-24px, 0, 0);
}

.reveal-left.is-in {
  transform: translate3d(0, 0, 0);
}

.reveal-scale {
  transform: translate3d(0, 12px, 0) scale(0.98);
}

.reveal-scale.is-in {
  transform: translate3d(0, 0, 0) scale(1);
}

.offer-card,
.resource-card,
.service-acc__item,
.faq-acc__item {
  transition:
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    transform 280ms var(--ease),
    opacity 620ms var(--ease),
    filter 620ms var(--ease);
}

.offer-card.reveal.is-in:hover,
a.resource-card.reveal.is-in:hover {
  transform: translate3d(0, -3px, 0);
}

.resource-card--static:hover {
  transform: none;
}

.btn {
  transition:
    background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    color var(--dur) var(--ease),
    transform 180ms var(--ease),
    box-shadow 220ms var(--ease);
}

.btn:hover {
  transform: translate3d(0, -1px, 0);
}

.btn:active {
  transform: translate3d(0, 1px, 0);
}

.nav-link,
.side-link {
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease),
    transform 180ms var(--ease);
}

.nav-link:hover {
  transform: translate3d(0, -1px, 0);
}

.motion-reduce .reveal {
  opacity: 1;
  transform: none;
  filter: none;
  transition: none;
}

/* =========================================================
   LEGAL PAGES
   ========================================================= */
.legal-hero {
  padding-block: clamp(2.5rem, 5vw, 3.75rem) 1.25rem;
  background:
    radial-gradient(900px 420px at 8% -20%, rgb(43 184 255 / 0.1), transparent 55%),
    radial-gradient(700px 360px at 92% 0%, rgb(18 181 168 / 0.08), transparent 50%),
    var(--surface-0);
}

.legal-hero__inner {
  max-width: 46rem;
}

.legal-hero h1 {
  margin: 0.35rem 0 0.65rem;
  font-size: clamp(1.85rem, 4.5vw, 2.65rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.legal-meta {
  margin: 0;
  color: var(--text-3);
  font-size: var(--fs-sm);
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.25rem;
}

.legal-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface-1);
  color: var(--text-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.legal-nav a:hover,
.legal-nav a.is-active {
  color: var(--text-1);
  border-color: rgb(11 21 32 / 0.18);
  background: #fff;
}

.legal-nav a.is-active {
  color: #fff;
  background: var(--brand-blue-btn);
  border-color: transparent;
}

.legal-section {
  padding-top: 0.5rem;
}

.legal-doc {
  max-width: 46rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
}

.legal-doc > p:first-child {
  margin-top: 0;
  font-size: var(--fs-lg);
  color: var(--text-2);
}

.legal-doc h2 {
  margin: 2rem 0 0.75rem;
  font-size: clamp(1.15rem, 2.4vw, 1.35rem);
  line-height: 1.25;
}

.legal-doc h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1.02rem;
}

.legal-doc p,
.legal-doc li {
  color: var(--text-2);
  line-height: 1.65;
}

.legal-doc ul {
  margin: 0.5rem 0 1rem;
  padding-left: 1.2rem;
}

.legal-doc a {
  color: var(--brand-teal-text);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.legal-doc a:hover {
  color: var(--brand-blue-btn);
}

.legal-related {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: var(--fs-sm);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.25rem;
  font-size: var(--fs-sm);
}

.legal-table th,
.legal-table td {
  border: 1px solid var(--border);
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  background: var(--surface-2);
  color: var(--text-1);
  font-weight: 650;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.footer-legal a {
  color: var(--text-on-dark-2);
  font-size: var(--fs-sm);
}

.footer-legal a:hover {
  color: var(--text-on-dark);
}

/* White bar — services menu, auth actions, mobile drawer */
.nav-link.is-active {
  color: var(--brand-teal-text);
}

.nav-chevron {
  width: 0.85rem;
  height: 0.85rem;
  flex-shrink: 0;
  transition: transform 0.18s var(--ease);
}

.nav-drop.is-open .nav-chevron,
.side-link--toggle[aria-expanded="true"] .nav-chevron {
  transform: rotate(180deg);
}

.nav-drop {
  position: relative;
}

.nav-drop__panel {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  z-index: 5;
  width: min(20.5rem, 72vw);
  padding: 0.35rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.16s var(--ease), transform 0.16s var(--ease), visibility 0.16s;
}

.nav-drop--end .nav-drop__panel {
  left: auto;
  right: 0;
  width: 12.5rem;
}

.nav-drop.is-open .nav-drop__panel {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}

.nav-drop__item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid transparent;
  border-radius: 0.65rem;
  color: var(--text-1);
  text-align: left;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.nav-drop__item:hover,
.nav-drop__item.is-active {
  background: var(--surface-0);
}

.nav-drop__item--new {
  background: rgb(43 184 255 / 0.08);
  border-color: rgb(43 184 255 / 0.28);
}

.nav-drop__item--btn {
  cursor: pointer;
}

.nav-drop__icon {
  width: 1.7rem;
  height: 1.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.1rem;
  border-radius: 0.45rem;
  background: var(--surface-0);
  color: var(--brand-teal-text);
}

.nav-drop__icon svg {
  width: 0.95rem;
  height: 0.95rem;
}

.nav-drop__copy {
  display: grid;
  gap: 0.08rem;
  min-width: 0;
}

.nav-drop__title {
  font-size: var(--fs-sm);
  font-weight: 650;
  line-height: 1.3;
}

.nav-drop__sub {
  font-size: 0.75rem;
  color: var(--text-3);
  line-height: 1.35;
}

.nav-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 0.28rem;
  padding: 0.08rem 0.38rem;
  border-radius: var(--radius-pill);
  background: var(--brand-blue-btn);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.35;
  text-transform: uppercase;
  vertical-align: 1px;
}

.nav-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-pill);
  color: var(--text-1);
  font-size: var(--fs-sm);
  font-weight: 650;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.nav-login:hover,
.nav-login.is-active {
  color: var(--brand-teal-text);
  background: var(--surface-0);
}

.nav-avatar {
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--surface-0);
  color: var(--brand-teal-text);
  font-size: 0.9rem;
  font-weight: 750;
}

.nav-avatar:hover {
  border-color: var(--brand-teal);
}

.btn-arrow {
  width: 1rem;
  height: 1rem;
}

.side-link--toggle,
.side-link--btn {
  width: 100%;
  cursor: pointer;
}

.side-link--toggle {
  justify-content: space-between;
}

.side-subnav {
  display: grid;
  padding: 0.15rem 0 0.35rem 0.35rem;
}

.side-subnav[hidden] {
  display: none;
}

.side-sub {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 0.7rem;
  color: var(--text-2);
  font-size: var(--fs-sm);
}

.side-sub:hover {
  background: var(--surface-0);
  color: var(--text-1);
}

.sidebar__foot .side-link {
  min-height: 2.75rem;
}

.sidebar__foot form {
  margin: 0;
}

@media (min-width: 1024px) and (max-width: 1180px) {
  .nav-link {
    padding: 0.4rem 0.4rem;
    font-size: 0.84rem;
  }

  .nav-actions .btn {
    padding-inline: 0.85rem;
  }
}

.auth-panel {
  width: min(100% - 1.5rem, 28rem);
  margin: 3rem auto 4rem;
}

.auth-panel h1 {
  margin: 0 0 0.4rem;
  font-size: var(--fs-xl);
}

.auth-panel > p {
  margin: 0 0 1.1rem;
  color: var(--text-2);
}

.auth-note {
  margin: 0.85rem 0 0;
  color: var(--text-2);
  font-size: var(--fs-sm);
}

.auth-note a {
  color: var(--brand-teal-text);
  font-weight: 650;
}

.form-error {
  color: #b42318;
  font-size: var(--fs-sm);
}

.auth-status {
  margin: 0 0 0.8rem;
  color: var(--brand-teal-text);
  font-weight: 650;
}

.auth-screen {
  height: calc(100svh - var(--header-h));
  overflow: hidden;
  background:
    radial-gradient(46rem 28rem at 22% 86%, rgb(43 184 255 / 0.1), transparent 68%),
    #f5f8fb;
}

.auth-screen__grid {
  width: min(100% - 2rem, var(--container));
  height: 100%;
  min-height: 0;
  margin: 0 auto;
}

.auth-hero {
  display: none;
}

.auth-screen__card-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: safe center;
  height: 100%;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1.35rem 0 1.5rem;
}

.auth-card {
  width: min(100%, 26.25rem);
  flex-shrink: 0;
  padding: 1.55rem 1.35rem 1.2rem;
  background: #fff;
  border: 1px solid rgb(11 21 32 / 0.08);
  border-radius: 1.35rem;
  box-shadow: 0 10px 30px rgb(11 21 32 / 0.05);
}

.auth-card__logo {
  display: flex;
  justify-content: center;
  margin-bottom: 0.85rem;
}

.auth-card__logo img {
  width: 3.15rem;
  height: 3.15rem;
}

.auth-card h2 {
  margin: 0;
  color: var(--text-1);
  font-size: 1.45rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  text-align: center;
}

.auth-card__sub {
  margin: 0.4rem 0 1rem;
  color: var(--text-2);
  font-size: 0.92rem;
  line-height: 1.45;
  text-align: center;
}

.auth-card__sub strong {
  color: var(--text-1);
  font-weight: 700;
}

.auth-form {
  display: grid;
  gap: 0.75rem;
}

.auth-field {
  display: grid;
  gap: 0.32rem;
}

.auth-field__label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.auth-field__label label {
  color: var(--text-1);
  font-size: 0.84rem;
  font-weight: 650;
}

.auth-field__link {
  color: var(--brand-blue-btn);
  font-size: 0.8rem;
  font-weight: 650;
}

.auth-control {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.85rem;
  padding: 0 0.7rem;
  background: #fff;
  border: 1px solid rgb(11 21 32 / 0.12);
  border-radius: 0.8rem;
}

.auth-control:focus-within {
  border-color: var(--brand-blue-btn);
  box-shadow: 0 0 0 3px rgb(11 126 181 / 0.14);
}

.auth-control.is-invalid {
  border-color: #d92d20;
}

.auth-control.is-invalid:focus-within {
  box-shadow: 0 0 0 3px rgb(217 45 32 / 0.12);
}

.auth-control__icon,
.auth-control__eye {
  display: inline-flex;
  color: var(--text-3);
}

.auth-control__icon svg,
.auth-control__eye svg {
  width: 1.05rem;
  height: 1.05rem;
}

.auth-control input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text-1);
  font: inherit;
  font-size: 0.95rem;
}

.auth-control input:focus {
  outline: none;
}

.auth-control__eye {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0.2rem;
}

.auth-error {
  margin: 0;
  color: #b42318;
  font-size: 0.78rem;
  line-height: 1.35;
}

.auth-check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--text-2);
  font-size: 0.86rem;
  line-height: 1.4;
}

.auth-check input {
  width: 1rem;
  height: 1rem;
  margin-top: 0.15rem;
  accent-color: var(--brand-blue-btn);
}

.auth-check a {
  color: var(--brand-blue-btn);
  font-weight: 650;
}

.auth-submit {
  width: 100%;
  min-height: 3.05rem;
  margin-top: 0.15rem;
}

.auth-submit:disabled {
  opacity: 0.72;
  cursor: progress;
}

.auth-or {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0.95rem 0 0.7rem;
  color: var(--text-3);
  font-size: 0.78rem;
}

.auth-or::before,
.auth-or::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--border);
}

.auth-google {
  width: 100%;
  min-height: 2.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 1px solid rgb(11 21 32 / 0.14);
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--text-1);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 650;
  cursor: pointer;
}

.auth-google svg {
  width: 1.1rem;
  height: 1.1rem;
}

.auth-google:hover {
  border-color: rgb(11 21 32 / 0.28);
  background: var(--surface-0);
}

.auth-secure {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.4rem;
  margin: 0.85rem 0 0;
  color: var(--text-3);
  font-size: 0.75rem;
  line-height: 1.4;
  text-align: left;
}

.auth-secure svg {
  width: 0.95rem;
  height: 0.95rem;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

.auth-switch {
  margin: 0.9rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  color: var(--text-2);
  font-size: 0.88rem;
  text-align: center;
}

.auth-switch a,
.auth-text-btn {
  color: var(--brand-blue-btn);
  font-weight: 700;
}

.auth-switch a {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.auth-switch svg {
  width: 0.85rem;
  height: 0.85rem;
}

.auth-text-btn {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}

@media (min-width: 1100px) {
  .auth-screen__grid {
    display: grid;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-width: none;
    grid-template-columns: minmax(0, 1fr) 26.5rem;
    align-items: stretch;
    gap: 1.25rem;
    padding-right: 2.25rem;
  }

  .auth-hero {
    position: relative;
    display: flex;
    align-items: center;
    align-self: stretch;
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  .auth-hero-visual {
    position: absolute;
    z-index: 1;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
  }

  .auth-hero-image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center center;
  }

  .auth-screen__card-col {
    align-self: stretch;
    height: 100%;
    min-height: 0;
  }

  .auth-hero__copy {
    position: relative;
    z-index: 2;
    max-width: 34rem;
    padding: 2.5rem 1.5rem 2rem clamp(1.5rem, 4vw, 3.25rem);
  }

  .auth-hero__kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0 0.9rem;
    color: var(--brand-teal);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }

  .auth-hero__kicker::before {
    content: "";
    width: 1.6rem;
    height: 2px;
    background: var(--brand-teal);
  }

  .auth-hero__title {
    margin: 0;
    max-width: 8ch;
    color: var(--text-1);
    font-size: clamp(3.15rem, 2rem + 2.1vw, 4.25rem);
    font-weight: 750;
    letter-spacing: -0.04em;
    line-height: 0.98;
  }

  .auth-hero__lead {
    max-width: 28rem;
    margin: 1rem 0 0;
    color: var(--text-2);
    font-size: 1.02rem;
    line-height: 1.5;
  }

  .auth-hero__benefits {
    display: grid;
    gap: 0.7rem;
    margin: 1.35rem 0 0;
    padding: 0;
    list-style: none;
  }

  .auth-hero__benefits li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--text-1);
    font-size: 0.98rem;
    font-weight: 600;
  }

  .auth-hero__benefits span {
    width: 1.35rem;
    height: 1.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgb(43 184 255 / 0.14);
  }

  .auth-hero__benefits span::after {
    content: "";
    width: 0.38rem;
    height: 0.22rem;
    margin-top: -0.08rem;
    border-left: 2px solid var(--brand-blue-btn);
    border-bottom: 2px solid var(--brand-blue-btn);
    transform: rotate(-45deg);
  }

  .auth-hero__trust {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 1.6rem 0 0;
    color: var(--text-3);
    font-size: 0.86rem;
  }

  .auth-hero__trust svg {
    width: 1rem;
    height: 1rem;
  }

  .auth-screen__card-col {
    padding: 1.5rem 0;
  }

  .auth-card {
    width: min(100%, 26.5rem);
    padding: 1.7rem 1.55rem 1.25rem;
  }
}

