/* ==========================================================================
   VALTIERA GROUP — Design System
   Tokens derived from VALTIERA_BRAND.md v1.0
   ========================================================================== */

:root {
  /* Core palette */
  --deep-slate: #0B1F3B;
  --sage-gray: #6B7A8F;
  --stone: #DAD6CD;
  --mist: #F7F6F3;

  /* Extended neutrals */
  --white: #FFFFFF;
  --ink: #050F1E;
  --slate-700: #2C3E56;
  --slate-400: #8D99A8;
  --hairline: #E5E2DB;
  --hairline-dark: rgba(255, 255, 255, 0.14);

  /* Spacing scale */
  --s1: 8px;   --s2: 16px;  --s3: 24px;  --s4: 32px;
  --s5: 48px;  --s6: 64px;  --s7: 96px;  --s8: 128px;
  --s9: 160px;

  /* Layout */
  --content: 1280px;
  --gutter: 32px;
  --radius: 2px;

  /* Type */
  --font-display: 'Jost', 'Futura', 'Century Gothic', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--mist);
  color: var(--slate-700);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); color: var(--deep-slate); }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--deep-slate); color: var(--mist); }

:focus-visible {
  outline: 2px solid var(--deep-slate);
  outline-offset: 3px;
}

.dark :focus-visible, .hero :focus-visible, .pagehead :focus-visible, .cta-band :focus-visible { outline-color: var(--stone); }

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */

.display {
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.04;
  font-weight: 300;
  letter-spacing: -0.02em;
}

h1, .h1 {
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.1;
  font-weight: 300;
  letter-spacing: -0.02em;
}

h2, .h2 {
  font-size: clamp(27px, 3.4vw, 38px);
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: -0.01em;
}

h3, .h3 {
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.34;
  font-weight: 500;
  letter-spacing: 0;
}

.lead {
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.75;
  color: var(--slate-700);
  max-width: 62ch;
}

.small { font-size: 15px; line-height: 1.6; }

.label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage-gray);
}

.measure { max-width: 66ch; }

/* Dark-section type inversion */
.dark, .hero, .pagehead, .cta-band { background: var(--deep-slate); color: rgba(247, 246, 243, 0.78); }
.dark h1, .dark h2, .dark h3, .dark .h1, .dark .h2, .dark .h3,
.hero h1, .pagehead h1, .pagehead .h1, .cta-band h2 { color: var(--mist); }
.dark .label, .hero .label, .pagehead .label, .cta-band .label { color: var(--slate-400); }
.dark .lead, .pagehead .lead, .hero .lead { color: rgba(247, 246, 243, 0.78); }
.dark .caps, .pagehead .caps, .cta-band .caps { color: var(--slate-400); }

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--content);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--s8); }
.section--tight { padding-block: var(--s7); }

.rule { height: 1px; background: var(--hairline); border: 0; margin: 0; }
.dark .rule { background: var(--hairline-dark); }

.grid { display: grid; gap: var(--s5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Section heading + body, split layout */
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--s6) var(--s7);
  align-items: start;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding-inline: var(--s4);
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--deep-slate);
  background: var(--deep-slate);
  color: var(--mist);
  cursor: pointer;
  transition: background 220ms var(--ease), color 220ms var(--ease), border-color 220ms var(--ease);
}

.btn:hover { background: var(--ink); border-color: var(--ink); }

.btn--ghost { background: transparent; color: var(--deep-slate); }
.btn--ghost:hover { background: var(--deep-slate); color: var(--mist); }

.dark .btn, .hero .btn, .pagehead .btn, .cta-band .btn { background: var(--mist); border-color: var(--mist); color: var(--deep-slate); }
.dark .btn:hover, .hero .btn:hover, .pagehead .btn:hover, .cta-band .btn:hover { background: var(--stone); border-color: var(--stone); }
.dark .btn--ghost, .hero .btn--ghost, .pagehead .btn--ghost, .cta-band .btn--ghost { background: transparent; color: var(--mist); border-color: rgba(247,246,243,0.4); }
.dark .btn--ghost:hover, .hero .btn--ghost:hover, .pagehead .btn--ghost:hover, .cta-band .btn--ghost:hover { background: var(--mist); color: var(--deep-slate); border-color: var(--mist); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s2); }

.textlink {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--deep-slate);
  border-bottom: 1px solid var(--stone);
  padding-bottom: 4px;
  transition: border-color 220ms var(--ease);
}
.textlink:hover { border-color: var(--deep-slate); }
.dark .textlink, .hero .textlink, .pagehead .textlink, .cta-band .textlink { color: var(--mist); border-color: rgba(247,246,243,0.35); }
.dark .textlink:hover, .hero .textlink:hover, .cta-band .textlink:hover { border-color: var(--mist); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 246, 243, 0.92);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 220ms var(--ease);
}
.header.is-scrolled { border-bottom-color: var(--hairline); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  height: 84px;
}

.brand { display: flex; align-items: center; gap: 14px; }
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__type { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 400;
  letter-spacing: 0.22em;
  color: var(--deep-slate);
}
.brand__sub {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.42em;
  color: var(--sage-gray);
  margin-top: 5px;
}

.nav { display: flex; align-items: center; gap: var(--s4); }
.nav a {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate-700);
  padding-block: 6px;
  border-bottom: 1px solid transparent;
  transition: color 200ms var(--ease), border-color 200ms var(--ease);
}
.nav a:hover { color: var(--deep-slate); border-bottom-color: var(--deep-slate); }
.nav a[aria-current="page"] { color: var(--deep-slate); border-bottom-color: var(--stone); }

.header .btn { height: 44px; font-size: 12px; padding-inline: var(--s3); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: none; border: 1px solid var(--hairline);
  border-radius: var(--radius); cursor: pointer;
}
.nav-toggle span { display: block; width: 18px; height: 1px; background: var(--deep-slate); position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ''; position: absolute; left: 0; width: 18px; height: 1px; background: var(--deep-slate);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--deep-slate);
  padding-block: var(--s9) var(--s8);
}

.hero__mark {
  position: absolute;
  top: 50%;
  right: -6%;
  transform: translateY(-50%);
  width: min(38vw, 520px);
  opacity: 0.06;
  pointer-events: none;
}

.hero__inner { position: relative; z-index: 1; max-width: 900px; }

.hero .display { color: var(--mist); }
.hero .display span { display: block; }

.hero__lead {
  margin-top: var(--s4);
  max-width: 58ch;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.7;
  color: rgba(247, 246, 243, 0.76);
}

.hero__cta { margin-top: var(--s5); }

/* Page hero (interior pages) */
.pagehead { background: var(--deep-slate); padding-block: var(--s7) var(--s7); }
.pagehead .h1 { color: var(--mist); max-width: 20ch; }
.pagehead .lead { margin-top: var(--s3); color: rgba(247,246,243,0.76); }
.pagehead .label { margin-bottom: var(--s3); }

/* --------------------------------------------------------------------------
   Pillars
   -------------------------------------------------------------------------- */

.pillars { border-bottom: 1px solid var(--hairline); }
.pillar { padding-right: var(--s4); border-left: 1px solid var(--hairline); padding-left: var(--s3); }
.pillar h3 {
  font-size: 13px; font-weight: 500; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--deep-slate); margin-bottom: 12px;
}
.pillar p { font-size: 15px; line-height: 1.62; color: var(--sage-gray); }

/* --------------------------------------------------------------------------
   Domain / item lists
   -------------------------------------------------------------------------- */

.items { border-top: 1px solid var(--hairline); }
.item {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  gap: var(--s5);
  padding-block: var(--s5);
  border-bottom: 1px solid var(--hairline);
}
.item__title { display: flex; flex-direction: column; gap: 10px; }
.item__title h3 { color: var(--deep-slate); }
.item__flag {
  align-self: flex-start;
  font-family: var(--font-display);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--deep-slate); background: var(--stone);
  padding: 5px 10px; border-radius: var(--radius);
}
.item__body p + p { margin-top: var(--s2); }
.caps {
  font-family: var(--font-display);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--sage-gray); margin-bottom: 10px;
}

.dark .items, .dark .item { border-color: var(--hairline-dark); }

/* Bullet list */
.blist li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 9px;
  font-size: 16px;
  line-height: 1.6;
}
.blist li::before {
  content: '';
  position: absolute;
  left: 0; top: 11px;
  width: 6px; height: 1px;
  background: var(--sage-gray);
}
.blist--tight li { margin-bottom: 6px; }

/* --------------------------------------------------------------------------
   Metrics
   -------------------------------------------------------------------------- */

.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); margin-top: var(--s6); }
.metric { border-top: 1px solid var(--hairline-dark); padding-top: var(--s3); }
.metric__n {
  font-family: var(--font-display);
  font-size: clamp(44px, 5vw, 68px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--mist);
}
.metric p { margin-top: 14px; font-size: 15px; line-height: 1.6; color: rgba(247,246,243,0.7); max-width: 30ch; }

.footnote { margin-top: var(--s5); font-size: 14px; color: rgba(247,246,243,0.55); max-width: 70ch; }

/* --------------------------------------------------------------------------
   Process steps (a real sequence — numbering is warranted)
   -------------------------------------------------------------------------- */

.steps { border-top: 1px solid var(--hairline); }
.step {
  display: grid;
  grid-template-columns: 64px minmax(0, 4fr) minmax(0, 6fr);
  gap: var(--s4);
  padding-block: var(--s5);
  border-bottom: 1px solid var(--hairline);
}
.step__n {
  font-family: var(--font-display);
  font-size: 14px; font-weight: 400; letter-spacing: 0.1em;
  color: var(--sage-gray); padding-top: 6px;
}

/* --------------------------------------------------------------------------
   Verticals / tag row
   -------------------------------------------------------------------------- */

.tagrow { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--s4); }
.tag {
  font-family: var(--font-display);
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--deep-slate);
  border: 1px solid var(--hairline);
  padding: 10px 16px;
  border-radius: var(--radius);
  background: var(--white);
}
.dark .tag { color: var(--mist); border-color: var(--hairline-dark); background: transparent; }

/* --------------------------------------------------------------------------
   Roles (careers)
   -------------------------------------------------------------------------- */

.role {
  display: flex; flex-wrap: wrap; align-items: baseline;
  justify-content: space-between; gap: var(--s3);
  padding-block: var(--s4);
  border-bottom: 1px solid var(--hairline);
}
.role:first-child { border-top: 1px solid var(--hairline); }
.role h3 { font-size: 20px; font-weight: 400; }
.role__meta { font-size: 14px; color: var(--sage-gray); letter-spacing: 0.04em; }

/* --------------------------------------------------------------------------
   Form
   -------------------------------------------------------------------------- */

.form { display: grid; gap: var(--s3); max-width: 640px; }
.field { display: grid; gap: 8px; }
.field label {
  font-family: var(--font-display);
  font-size: 11px; font-weight: 500; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--sage-gray);
}
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--deep-slate);
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 14px 16px;
  width: 100%;
  transition: border-color 200ms var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--sage-gray); outline: none;
}
.field textarea { min-height: 120px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.form-note { font-size: 14px; color: var(--sage-gray); }

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */

.cta-band { background: var(--ink) !important; padding-block: var(--s7); text-align: center; }
.cta-band h2 {
  color: var(--mist);
  font-weight: 300;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: clamp(22px, 3vw, 34px);
}
.cta-band p { margin: var(--s3) auto 0; max-width: 56ch; color: rgba(247,246,243,0.72); }
.cta-band .btn-row { justify-content: center; margin-top: var(--s5); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer { background: var(--ink); color: rgba(247,246,243,0.62); padding-block: var(--s7) var(--s5); }
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: var(--s5);
}
.footer h4 {
  font-family: var(--font-display);
  font-size: 11px; font-weight: 500; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--slate-400); margin-bottom: var(--s3);
}
.footer li { margin-bottom: 11px; font-size: 15px; }
.footer a { color: rgba(247,246,243,0.62); transition: color 200ms var(--ease); }
.footer a:hover { color: var(--mist); }
.footer__brand .brand__name { color: var(--mist); }
.footer__brand p { margin-top: var(--s3); font-size: 14px; line-height: 1.7; max-width: 34ch; color: rgba(247,246,243,0.5); }
.footer__tag {
  font-family: var(--font-display);
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--slate-400); margin-top: var(--s4);
}
.footer__base {
  display: flex; flex-wrap: wrap; gap: var(--s3);
  justify-content: space-between; align-items: center;
  margin-top: var(--s6); padding-top: var(--s4);
  border-top: 1px solid var(--hairline-dark);
  font-size: 13px; color: rgba(247,246,243,0.42);
}

/* --------------------------------------------------------------------------
   Hero entrance — the single orchestrated motion moment
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .hero__inner > * {
    opacity: 0;
    transform: translateY(14px);
    animation: rise 900ms var(--ease) forwards;
  }
  .hero__inner > *:nth-child(1) { animation-delay: 80ms; }
  .hero__inner > *:nth-child(2) { animation-delay: 200ms; }
  .hero__inner > *:nth-child(3) { animation-delay: 320ms; }
  .hero__inner > *:nth-child(4) { animation-delay: 440ms; }

  .hero__mark { opacity: 0; animation: markIn 1600ms var(--ease) 300ms forwards; }
}

@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes markIn { to { opacity: 0.06; } }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .nav { display: none; }
  .nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s3);
    position: absolute;
    top: 84px; left: 0; right: 0;
    background: var(--mist);
    border-bottom: 1px solid var(--hairline);
    padding: var(--s4) var(--gutter) var(--s5);
  }
  .nav-toggle { display: inline-flex; }
  .header .btn { display: none; }
}

@media (max-width: 900px) {
  :root { --gutter: 24px; }
  .section { padding-block: var(--s7); }
  .section--tight { padding-block: var(--s6); }
  .hero { padding-block: var(--s7) var(--s6); }
  .pagehead { padding-block: var(--s6); }
  .split { grid-template-columns: 1fr; gap: var(--s4); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: var(--s4); }
  .item { grid-template-columns: 1fr; gap: var(--s3); }
  .step { grid-template-columns: 44px 1fr; gap: var(--s2) var(--s3); }
  .step__body { grid-column: 2; }
  .metrics { grid-template-columns: 1fr; gap: var(--s4); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--s5); }
  .footer__brand { grid-column: 1 / -1; }
  .field-row { grid-template-columns: 1fr; }
  .pillar { border-left: 0; border-top: 1px solid var(--hairline); padding-left: 0; padding-top: var(--s3); }
  .hero__mark { width: 70vw; right: -22%; opacity: 0.05; }
}

@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
}

/* ==========================================================================
   MOTION LAYER
   Restrained by design: reveal, hover response, counters. Nothing bounces.
   ========================================================================== */

/* Pricing tiers */
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s3); }

.tier {
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: var(--s4) var(--s4) var(--s5);
  transition: border-color 320ms var(--ease), transform 320ms var(--ease), box-shadow 320ms var(--ease);
}
.tier:hover {
  border-color: var(--sage-gray);
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -28px rgba(11, 31, 59, 0.45);
}
.tier__head { padding-bottom: var(--s3); border-bottom: 1px solid var(--hairline); }
.tier h3 { font-size: 21px; font-weight: 500; }
.tier__lead { margin-top: 10px; font-size: 14px; line-height: 1.55; color: var(--sage-gray); min-height: 44px; }
.tier__price { margin-top: var(--s3); display: flex; align-items: baseline; gap: 8px; }
.tier__amt { font-family: var(--font-display); font-size: 40px; font-weight: 300; letter-spacing: -0.02em; color: var(--deep-slate); }
.tier__per { font-size: 13px; color: var(--sage-gray); }
.tier__feat { margin-top: var(--s3); flex: 1; }
.tier__feat li { font-size: 14.5px; }
.tier__cta { margin-top: var(--s4); width: 100%; }

/* Scroll reveal */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 700ms var(--ease), transform 700ms var(--ease);
    transition-delay: var(--d, 0ms);
    will-change: opacity, transform;
  }
  [data-reveal].is-in { opacity: 1; transform: none; }
}

/* Item rows respond to pointer */
.item, .step, .role { transition: background 300ms var(--ease); }
.item:hover, .step:hover, .role:hover { background: rgba(11, 31, 59, 0.022); }
.dark .item:hover, .dark .step:hover { background: rgba(247, 246, 243, 0.03); }

/* Item title gains a rule on hover */
.item__title h3, .step h3 { position: relative; display: inline-block; }
.item__title h3::after, .step h3::after {
  content: ''; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 1px; background: var(--sage-gray);
  transition: width 420ms var(--ease);
}
.item:hover .item__title h3::after, .step:hover h3::after { width: 100%; }

/* Navigation underline slides in */
.nav a { position: relative; border-bottom: 0 !important; }
.nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--deep-slate);
  transition: width 300ms var(--ease);
}
.nav a:hover::after { width: 100%; }
.nav a[aria-current="page"]::after { width: 100%; background: var(--stone); }

/* Buttons lift */
.btn { transition: background 240ms var(--ease), color 240ms var(--ease),
       border-color 240ms var(--ease), transform 240ms var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* Tags */
.tag { transition: border-color 260ms var(--ease), transform 260ms var(--ease), background 260ms var(--ease); }
.tag:hover { border-color: var(--sage-gray); transform: translateY(-2px); }

/* Header compresses on scroll */
.header__inner { transition: height 320ms var(--ease); }
.header.is-scrolled .header__inner { height: 68px; }
.brand__mark { transition: transform 320ms var(--ease); }
.header.is-scrolled .brand__mark { transform: scale(0.88); }

/* Hero watermark drifts slowly */
@media (prefers-reduced-motion: no-preference) {
  .hero__mark { animation: markIn 1600ms var(--ease) 300ms forwards, drift 26s ease-in-out 2s infinite; }
  @keyframes drift {
    0%, 100% { transform: translateY(-50%) translateX(0); }
    50%      { transform: translateY(-52%) translateX(-14px); }
  }
}

/* Metric counters hold their box while animating */
.metric__n { font-variant-numeric: tabular-nums; }

/* Text links slide their rule */
.textlink { position: relative; border-bottom-color: transparent !important; }
.textlink::after {
  content: ''; position: absolute; left: 0; bottom: -1px;
  width: 100%; height: 1px; background: var(--stone);
  transform: scaleX(1); transform-origin: left;
  transition: transform 380ms var(--ease), background 380ms var(--ease);
}
.textlink:hover::after { background: var(--deep-slate); }
.dark .textlink::after, .cta-band .textlink::after { background: rgba(247,246,243,0.35); }
.dark .textlink:hover::after, .cta-band .textlink:hover::after { background: var(--mist); }

/* Form focus lift */
.field input, .field select, .field textarea {
  transition: border-color 240ms var(--ease), box-shadow 240ms var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  box-shadow: 0 0 0 3px rgba(107, 122, 143, 0.12);
}

@media (max-width: 1080px) { .tiers { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px)  { .tiers { grid-template-columns: 1fr; } .tier__lead { min-height: 0; } }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .hero__mark { animation: none; opacity: 0.06; }
  .btn:hover, .tier:hover, .tag:hover { transform: none; }
}

/* Fix: .item__title h3 and .caps set explicit dark-text colours later in the
   cascade than the .dark block, which made them invisible on dark sections. */
.dark .item__title h3,
.dark .step h3,
.dark .role h3 { color: var(--mist); }

.dark .item__flag { background: var(--stone); color: var(--deep-slate); }

/* --------------------------------------------------------------------------
   Booking embed
   -------------------------------------------------------------------------- */

.split--booking { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }

.booking {
  position: relative;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 760px;
}
.booking iframe {
  display: block;
  width: 100%;
  height: 760px;
  border: 0;
}
.booking__fallback { margin-top: var(--s2); color: var(--sage-gray); }

@media (max-width: 900px) {
  .split--booking { grid-template-columns: 1fr; }
  .booking, .booking iframe { min-height: 700px; height: 700px; }
}

/* ==========================================================================
   PAGE TRANSITIONS
   View Transitions API where supported; a CSS/JS fade elsewhere.
   ========================================================================== */

@view-transition { navigation: auto; }

/* The header holds its position across navigations instead of cross-fading */
.header { view-transition-name: site-header; }

::view-transition-old(root) {
  animation: vt-out 200ms cubic-bezier(0.4, 0, 1, 1) both;
}
::view-transition-new(root) {
  animation: vt-in 420ms cubic-bezier(0, 0, 0.2, 1) both;
}
::view-transition-old(site-header),
::view-transition-new(site-header) {
  animation: none;
  mix-blend-mode: normal;
}

@keyframes vt-out { to   { opacity: 0; transform: translateY(-10px); } }
@keyframes vt-in  { from { opacity: 0; transform: translateY(16px);  } }

/* Fallback for browsers without the View Transitions API */
.no-vt body {
  animation: page-enter 460ms cubic-bezier(0.4, 0, 0.2, 1) both;
}
.no-vt body.is-leaving {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 190ms ease-in, transform 190ms ease-in;
}
@keyframes page-enter {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* In-page anchors should glide, not jump */
html { scroll-behavior: smooth; scroll-padding-top: 110px; }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .no-vt body { animation: none; }
  .no-vt body.is-leaving { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   PAGE TRANSITIONS
   Native View Transitions where supported; JS crossfade fallback elsewhere.
   ========================================================================== */

@view-transition { navigation: auto; }

@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) {
    animation: vtOut 200ms cubic-bezier(0.4, 0, 1, 1) both;
  }
  ::view-transition-new(root) {
    animation: vtIn 380ms cubic-bezier(0, 0, 0.2, 1) both;
  }
  /* header and footer persist rather than crossfading with the content */
  .header { view-transition-name: site-header; }
  .footer { view-transition-name: site-footer; }
}

@keyframes vtOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-8px); }
}
@keyframes vtIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Fallback for browsers without View Transitions */
.pt-fallback main { animation: ptIn 420ms cubic-bezier(0, 0, 0.2, 1) both; }
.pt-fallback.is-leaving main { animation: ptOut 200ms cubic-bezier(0.4, 0, 1, 1) both; }

@keyframes ptIn  { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes ptOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-8px); } }

@media (prefers-reduced-motion: reduce) {
  .pt-fallback main, .pt-fallback.is-leaving main { animation: none; }
}

/* Three-up pillars need a divider on the last column too */
.grid-3 .pillar:last-child { padding-right: 0; }

/* ==========================================================================
   OUTBOUND PAGE — compact layouts
   ========================================================================== */

/* Fact bar in the page header */
.factbar {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: var(--s5);
  justify-content: start;
  margin-top: var(--s5);
  padding-top: var(--s4);
  border-top: 1px solid var(--hairline-dark);
}
.hero .factbar { margin-top: var(--s5); max-width: 860px; }
.hero .hero__cta { margin-top: var(--s5); }
.factbar div { display: flex; flex-direction: column; gap: 4px; }
.factbar strong {
  font-family: var(--font-display);
  font-size: 26px; font-weight: 300; letter-spacing: -0.01em;
  color: var(--mist);
}
.factbar span {
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--slate-400);
}

/* Vertical cards — 10 industries without 10 screens of scroll */
.vgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--hairline-dark); }
.vcard { border-right: 1px solid var(--hairline-dark); border-bottom: 1px solid var(--hairline-dark); }
.vgrid > .vcard:nth-child(3n) { border-right: 0; }
.vcard { background: var(--deep-slate); padding: var(--s4); transition: background 280ms var(--ease); }
.vcard:hover { background: #0E274A; }
.vcard h3 { font-size: 17px; font-weight: 500; color: var(--mist); margin-bottom: 10px; }
.vcard p { font-size: 14.5px; line-height: 1.6; color: rgba(247,246,243,0.66); }

/* Process cards */
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5) var(--s4); }
.pcard { border-top: 1px solid var(--hairline); padding-top: var(--s3); }
.pcard__n {
  font-family: var(--font-display); font-size: 12px; letter-spacing: 0.16em;
  color: var(--sage-gray); display: block; margin-bottom: 10px;
}
.pcard h3 { font-size: 19px; font-weight: 500; margin-bottom: 8px; }
.pcard p { font-size: 15px; line-height: 1.6; color: var(--slate-700); }

/* FAQ accordion */
.faqs { border-top: 1px solid var(--hairline-dark); }
.faq { border-bottom: 1px solid var(--hairline-dark); }
.faq summary {
  list-style: none; cursor: pointer;
  padding: var(--s3) 40px var(--s3) 0;
  position: relative;
  font-family: var(--font-display);
  font-size: 19px; font-weight: 400; color: var(--mist);
  transition: color 220ms var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 6px; top: 50%;
  width: 11px; height: 11px;
  border-right: 1px solid var(--slate-400);
  border-bottom: 1px solid var(--slate-400);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 300ms var(--ease), border-color 300ms var(--ease);
}
.faq[open] summary::after { transform: translateY(-30%) rotate(-135deg); border-color: var(--mist); }
.faq summary:hover { color: var(--stone); }
.faq p {
  padding: 0 var(--s6) var(--s4) 0;
  font-size: 16px; line-height: 1.7;
  color: rgba(247,246,243,0.72);
  max-width: 76ch;
}
@media (prefers-reduced-motion: no-preference) {
  .faq[open] p { animation: faqIn 320ms var(--ease) both; }
}
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Tier cards without prices need less vertical run */
.tier__lead { min-height: 0; font-size: 13.5px; letter-spacing: 0.02em; }

@media (max-width: 1080px) {
  .vgrid { grid-template-columns: repeat(2, 1fr); }
  .pgrid { grid-template-columns: repeat(2, 1fr); }
  .factbar { grid-template-columns: repeat(2, auto); gap: var(--s3) var(--s5); }
}
@media (max-width: 700px) {
  .vgrid { grid-template-columns: 1fr; }
  .pgrid { grid-template-columns: 1fr; gap: var(--s4); }
  .faq summary { font-size: 17px; }
}

/* Legal document pages */
.legal { max-width: 74ch; }
.legal h3 {
  font-size: 19px; font-weight: 500;
  margin: var(--s5) 0 var(--s2);
  color: var(--deep-slate);
}
.legal h3:first-of-type { margin-top: var(--s6); }
.legal p { margin-bottom: var(--s2); font-size: 16.5px; line-height: 1.75; }
.legal p strong { color: var(--deep-slate); font-weight: 500; }
.legal .lead { margin-bottom: var(--s3); }

/* Partner tier cards on dark sections */
.dark .tier, .tier--dark {
  background: rgba(247, 246, 243, 0.04);
  border-color: var(--hairline-dark);
}
.dark .tier:hover, .tier--dark:hover {
  background: rgba(247, 246, 243, 0.07);
  border-color: var(--sage-gray);
  box-shadow: none;
}
.dark .tier h3, .tier--dark h3 { color: var(--mist); }
.dark .tier__head, .tier--dark .tier__head { border-bottom-color: var(--hairline-dark); }
.dark .tier__lead, .tier--dark .tier__lead { color: var(--slate-400); }
.dark .tier__amt, .tier--dark .tier__amt { color: var(--mist); }
.dark .tier__per, .tier--dark .tier__per { color: var(--slate-400); }
.dark .tier__feat li, .tier--dark .tier__feat li { color: rgba(247,246,243,0.76); }

/* Vertical grid on light sections */
.vgrid--light { border-color: var(--hairline); }
.vgrid--light .vcard { background: var(--white); border-color: var(--hairline); }
.vgrid--light .vcard:hover { background: var(--mist); }
.vgrid--light .vcard h3 { color: var(--deep-slate); }
.vgrid--light .vcard p { color: var(--slate-700); }

/* Referral banner */
.refbar {
  background: var(--stone);
  color: var(--deep-slate);
  font-size: 14px;
  text-align: center;
  padding: 10px var(--gutter);
}
.refbar strong { font-weight: 500; }

/* Process cards on dark sections */
.pcard--dark { border-top-color: var(--hairline-dark); }
.pcard--dark h3 { color: var(--mist); }
.pcard--dark p { color: rgba(247,246,243,0.7); }
.pcard--dark .pcard__n { color: var(--slate-400); }

/* ==========================================================================
   ASSISTANT WIDGET
   ========================================================================== */

.vg-launch {
  position: fixed; right: 24px; bottom: 24px; z-index: 900;
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 20px;
  background: var(--deep-slate); color: var(--mist);
  border: 1px solid var(--deep-slate); border-radius: var(--radius);
  font-family: var(--font-display); font-size: 13px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 12px 32px -16px rgba(11,31,59,0.6);
  transition: background 240ms var(--ease), transform 240ms var(--ease);
}
.vg-launch:hover { background: var(--ink); transform: translateY(-2px); }
.vg-launch svg { width: 17px; height: 17px; flex: none; }
.vg-launch.is-hidden { display: none; }

.vg-panel {
  position: fixed; right: 24px; bottom: 24px; z-index: 901;
  width: 388px; max-width: calc(100vw - 32px);
  height: 560px; max-height: calc(100vh - 48px);
  display: none; flex-direction: column;
  background: var(--mist);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: 0 32px 64px -24px rgba(11,31,59,0.42);
  overflow: hidden;
}
.vg-panel.is-open { display: flex; }
@media (prefers-reduced-motion: no-preference) {
  .vg-panel.is-open { animation: vgIn 300ms var(--ease) both; }
}
@keyframes vgIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.vg-head {
  background: var(--deep-slate); color: var(--mist);
  padding: 18px 20px; display: flex; align-items: center; gap: 12px;
}
.vg-head svg { width: 26px; height: 26px; flex: none; }
.vg-head__t { display: flex; flex-direction: column; gap: 3px; line-height: 1; }
.vg-head__t b { font-family: var(--font-display); font-size: 14px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }
.vg-head__t span { font-size: 12px; color: var(--slate-400); letter-spacing: 0.02em; }
.vg-close {
  margin-left: auto; background: none; border: 0; cursor: pointer;
  width: 30px; height: 30px; color: var(--slate-400); font-size: 20px; line-height: 1;
  transition: color 200ms var(--ease);
}
.vg-close:hover { color: var(--mist); }

.vg-body { flex: 1; overflow-y: auto; padding: 20px; }
.vg-msg {
  background: var(--white); border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 14px 16px; font-size: 15px; line-height: 1.62; color: var(--slate-700);
  margin-bottom: 12px; max-width: 92%;
}
.vg-msg strong { color: var(--deep-slate); font-weight: 500; }
.vg-msg--you {
  margin-left: auto; background: var(--deep-slate); color: var(--mist);
  border-color: var(--deep-slate);
}
@media (prefers-reduced-motion: no-preference) {
  .vg-msg { animation: vgMsg 320ms var(--ease) both; }
}
@keyframes vgMsg { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.vg-opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.vg-opt {
  background: var(--white); color: var(--deep-slate);
  border: 1px solid var(--stone); border-radius: var(--radius);
  padding: 9px 14px; font-family: var(--font-body); font-size: 13.5px;
  cursor: pointer; text-align: left;
  transition: border-color 200ms var(--ease), background 200ms var(--ease);
}
.vg-opt:hover { border-color: var(--sage-gray); background: var(--mist); }
.vg-opt--cta {
  background: var(--deep-slate); color: var(--mist); border-color: var(--deep-slate);
  font-family: var(--font-display); font-size: 12px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; padding: 11px 16px;
}
.vg-opt--cta:hover { background: var(--ink); border-color: var(--ink); }

.vg-foot {
  border-top: 1px solid var(--hairline); padding: 12px 20px;
  font-size: 12.5px; color: var(--sage-gray); background: var(--white);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.vg-foot a { color: var(--deep-slate); border-bottom: 1px solid var(--stone); }
.vg-foot button {
  background: none; border: 0; cursor: pointer; padding: 0;
  font-family: var(--font-body); font-size: 12.5px; color: var(--sage-gray);
  border-bottom: 1px solid transparent;
}
.vg-foot button:hover { color: var(--deep-slate); border-bottom-color: var(--stone); }

@media (max-width: 560px) {
  .vg-launch { right: 16px; bottom: 16px; padding: 0 16px; }
  .vg-launch span { display: none; }
  .vg-launch { width: 52px; justify-content: center; padding: 0; }
  .vg-panel { right: 12px; left: 12px; bottom: 12px; width: auto; height: calc(100vh - 100px); }
}

/* Assistant input row */
.vg-ask {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; background: var(--white);
  border-top: 1px solid var(--hairline);
}
.vg-ask input {
  flex: 1; min-width: 0;
  font-family: var(--font-body); font-size: 15px; color: var(--deep-slate);
  background: var(--mist); border: 1px solid var(--hairline);
  border-radius: var(--radius); padding: 11px 13px;
  transition: border-color 200ms var(--ease);
}
.vg-ask input:focus { outline: none; border-color: var(--sage-gray); }
.vg-ask input::placeholder { color: var(--slate-400); }
.vg-ask button {
  flex: none; width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--deep-slate); color: var(--mist);
  border: 1px solid var(--deep-slate); border-radius: var(--radius);
  cursor: pointer; transition: background 200ms var(--ease);
}
.vg-ask button:hover { background: var(--ink); }
.vg-ask svg { width: 18px; height: 18px; }
.vg-opts { flex-direction: column; align-items: flex-start; }
.vg-opt { width: auto; }

/* Assistant typing indicator */
.vg-typing { display: inline-flex; gap: 5px; align-items: center; padding: 16px; }
.vg-typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--slate-400); display: inline-block;
}
@media (prefers-reduced-motion: no-preference) {
  .vg-typing span { animation: vgDot 1.2s infinite ease-in-out both; }
  .vg-typing span:nth-child(2) { animation-delay: 0.16s; }
  .vg-typing span:nth-child(3) { animation-delay: 0.32s; }
}
@keyframes vgDot {
  0%, 80%, 100% { opacity: 0.25; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}


/* ==========================================================================
   Rebrand: Galaxy Call Centers -> Valtiera Group (added Nov 2026)
   ========================================================================== */
.label__formerly { display: inline-block; margin-left: 10px; padding-left: 10px; border-left: 1px solid rgba(255,255,255,0.25); color: var(--stone); }
.footer__formerly { margin-top: 12px; font-size: 13px; color: var(--slate-400); }
.footer__formerly a { color: var(--stone); text-decoration: underline; text-underline-offset: 3px; }
.metrics-4 { grid-template-columns: repeat(4, 1fr); }
.btn--light { background: var(--mist); color: var(--deep-slate); border-color: var(--mist); }
.btn--light:hover { background: var(--stone); border-color: var(--stone); }
.btn--ghost-light { color: var(--mist); border-color: rgba(255,255,255,0.4); }
.btn--ghost-light:hover { background: var(--mist); color: var(--deep-slate); }

/* Testimonial cards */
.tgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
.tgrid--media { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.tcard { margin: 0; background: var(--white); border: 1px solid var(--hairline); border-radius: var(--radius); display: flex; flex-direction: column; min-width: 0; }
.tcard > blockquote, .tcard__body { padding: var(--s4); }
.tcard__body { display: grid; gap: 14px; }
.tcard blockquote { margin: 0; font-family: var(--font-display); font-weight: 300; font-size: 20px; line-height: 1.45; color: var(--deep-slate); flex: 1; }
.tcard > figcaption { padding: 0 var(--s4) var(--s4); }
.tcard figcaption { display: grid; gap: 2px; font-size: 14px; }
.tcard figcaption strong { color: var(--deep-slate); font-weight: 500; }
.tcard figcaption span { color: var(--sage-gray); font-size: 13px; }
.tcard .caps { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage-gray); }
.tcard__media { background: var(--ink); }
.tcard__media video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.tcard__media--audio { background: var(--mist); padding: var(--s2); }
.tcard__media--audio audio { width: 100%; display: block; }
.tcard__media--link { background: var(--mist); padding: var(--s3); text-align: center; }
.tcard__tr { border-top: 1px solid var(--hairline); padding-top: 12px; }
.tcard__tr summary { cursor: pointer; font-size: 14px; font-weight: 500; color: var(--deep-slate); list-style: none; }
.tcard__tr summary::-webkit-details-marker { display: none; }
.tcard__tr summary::after { content: ' \2193'; }
.tcard__tr[open] summary::after { content: ' \2191'; }
.tcard__tr p { margin-top: 10px; font-size: 14.5px; line-height: 1.65; color: var(--slate-700); white-space: pre-line; }
.tcard[hidden] { display: none; }
.tabs { display: flex; flex-wrap: wrap; gap: var(--s1); }
.tabs .tag { cursor: pointer; font: inherit; }
.tabs .tag[aria-pressed="true"] { background: var(--deep-slate); color: var(--mist); border-color: var(--deep-slate); }

/* Brand reveal (galaxy-call-centers.html) */
.reveal { position: relative; overflow: hidden; color: var(--mist); background: linear-gradient(135deg,#2A0940 0%,#4A0F52 35%,#1A1B4A 70%,#0B1F3B 100%); transition: background 1.6s cubic-bezier(.7,0,.2,1); }
.reveal.is-valtiera { background: linear-gradient(135deg,#3A0E4C 0%,#1E1744 45%,#0B1F3B 80%,#050F1E 100%); }
.reveal::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(900px 600px at 15% 10%, rgba(255,0,80,.28), transparent 60%), radial-gradient(900px 700px at 85% 90%, rgba(11,31,59,.9), transparent 60%); transition: opacity 1.6s; }
.reveal.is-valtiera::after { opacity: .55; }
#sky { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.reveal__stage { position: relative; z-index: 1; min-height: 84vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-block: var(--s7); }
.reveal__logos { position: relative; width: min(420px, 88vw); height: 150px; display: grid; place-items: center; }
.reveal__logo { position: absolute; inset: 0; display: grid; place-items: center; transition: opacity .9s ease, transform 1.1s cubic-bezier(.2,.8,.2,1), filter .9s ease; }
.reveal__logo img { max-height: 130px; max-width: 100%; object-fit: contain; filter: drop-shadow(0 8px 30px rgba(0,0,0,.45)); }
#gal { opacity: 0; transform: scale(.6); } #val { opacity: 0; transform: translateY(40px) scale(.9); }
.s1 #gal { opacity: 1; transform: scale(1); } .s2 #gal { opacity: 0; transform: scale(1.25); filter: blur(14px); } .s2 #val { opacity: 1; transform: none; }
.reveal__copy { margin-top: var(--s5); display: grid; gap: var(--s3); justify-items: center; opacity: 0; transform: translateY(16px); transition: opacity .8s ease .3s, transform .8s ease .3s; }
.s3 .reveal__copy { opacity: 1; transform: none; }
.reveal .display { color: var(--mist); } .reveal .display span { display: block; }
.reveal .label { color: var(--stone); }
.reveal .hero__lead { max-width: 60ch; color: rgba(247,246,243,0.8); }
.reveal__pills { justify-content: center; margin-top: 0; }
.reveal__pills .tag { color: var(--mist); border-color: rgba(255,255,255,0.35); background: rgba(255,255,255,0.06); }
.reveal__row { display: flex; align-items: center; justify-content: center; gap: var(--s4); margin-top: var(--s6); }
.reveal__row img { height: 96px; } .reveal__row svg { height: 56px; width: 56px; } .reveal__row span { font-size: 28px; color: var(--sage-gray); }
@media (max-width: 1024px) { .tgrid { grid-template-columns: repeat(2, 1fr); } .metrics-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .tgrid { grid-template-columns: 1fr; } .metrics-4 { grid-template-columns: 1fr; } .label__formerly { display: block; margin: 6px 0 0; padding: 0; border: 0; } .reveal__stage { min-height: 70vh; } }
@media (prefers-reduced-motion: reduce) { .reveal, .reveal__logo, .reveal__copy { transition: none; } }

/* Header: formerly Galaxy Call Centers */
.brand-formerly { flex: none; display: flex; align-items: center; gap: 8px; margin-left: calc(var(--s2) - var(--s4)); margin-right: auto; padding-right: var(--s3); padding-left: var(--s2); border-left: 1px solid var(--hairline); text-decoration: none; line-height: 1.05; white-space: nowrap; }
.brand-formerly img { height: 28px; width: auto; }
.brand-formerly span { display: flex; flex-direction: column; font-family: var(--font-display); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--deep-slate); }
.brand-formerly small { font-family: var(--font-body); font-size: 9px; letter-spacing: 0.06em; color: var(--sage-gray); text-transform: none; }
.brand-formerly:hover span { color: var(--ink); }
.header .nav { gap: 16px; }
.header .nav a { font-size: 10.5px; letter-spacing: 0.08em; white-space: nowrap; }
.header .btn { white-space: nowrap; }
@media (max-width: 1340px) { .brand-formerly span { display: none; } .brand-formerly { gap: 0; } }
@media (max-width: 640px) { .brand-formerly { margin-left: 8px; padding-left: 10px; } .brand-formerly img { height: 24px; } }

.tcard--portrait .tcard__media { display: flex; justify-content: center; }
.tcard--portrait .tcard__media video { aspect-ratio: 9 / 16; max-height: 460px; width: auto; max-width: 100%; }
.tcard--landscape .tcard__media video { aspect-ratio: 16 / 9; }

/* Dropdown navigation */
.header .nav .nav__item { position: relative; }
.nav__item > a { display: inline-flex; align-items: center; gap: 6px; }
.caret { width: 6px; height: 6px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.sub { position: absolute; top: calc(100% + 14px); left: -16px; min-width: 300px; background: var(--white); border: 1px solid var(--hairline); border-radius: var(--radius); box-shadow: 0 18px 50px rgba(5,15,30,0.12); padding: 10px; display: none; z-index: 30; text-align: left; }
.sub::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.header .nav .sub a { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: var(--radius); text-transform: none; letter-spacing: 0; font-family: var(--font-body); border: 0 !important; white-space: normal; font-size: 13px; }
.sub a b { font-family: var(--font-display); font-weight: 500; font-size: 14px; color: var(--deep-slate); letter-spacing: 0.02em; }
.sub a span { font-size: 12.5px; color: var(--sage-gray); line-height: 1.4; }
.sub a:hover { background: var(--mist); }
.sub--wide { display: none; grid-template-columns: repeat(3, 236px); gap: 10px; min-width: 0; left: 50%; transform: translateX(-50%); }
.sub__col { display: flex; flex-direction: column; }
.sub__head { font-family: var(--font-display) !important; font-size: 11px !important; letter-spacing: 0.14em !important; text-transform: uppercase !important; color: var(--sage-gray) !important; padding-bottom: 4px !important; }
.sub__head:hover { background: transparent !important; color: var(--deep-slate) !important; }
.nav__item:hover > .sub, .nav__item:focus-within > .sub, .nav__item.is-open > .sub { display: block; }
.nav__item:hover > .sub--wide, .nav__item:focus-within > .sub--wide, .nav__item.is-open > .sub--wide { display: grid; }

@media (max-width: 1080px) {
  .nav.is-open .nav__item { width: 100%; }
  .nav.is-open .sub, .nav.is-open .sub--wide { position: static; transform: none; display: flex; flex-direction: column; box-shadow: none; border: 0; border-left: 1px solid var(--hairline); border-radius: 0; margin: 8px 0 4px 8px; padding: 0 0 0 12px; min-width: 0; }
  .nav.is-open .sub a span { display: none; }
  .nav.is-open .sub a { padding: 7px 8px; }
  .nav.is-open .sub__head { padding-top: 8px !important; }
}
/* Industry / service page pieces */
.stack { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
.stack .pillar { border-left: 1px solid var(--hairline); padding-left: var(--s3); }
.stack .pillar .caps { display: block; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage-gray); margin-bottom: 10px; }
.quote-strip { background: var(--white); border: 1px solid var(--hairline); padding: var(--s4); display: grid; grid-template-columns: 1fr auto; gap: var(--s4); align-items: center; }
.quote-strip blockquote { margin: 0; font-family: var(--font-display); font-weight: 300; font-size: 22px; line-height: 1.4; color: var(--deep-slate); }
.quote-strip figcaption { font-size: 13px; color: var(--sage-gray); margin-top: 8px; }
.quote-strip video { width: 140px; aspect-ratio: 9/16; background: #000; border-radius: var(--radius); }
.faqs.light { border-top-color: var(--hairline); } .faqs.light .faq { border-bottom-color: var(--hairline); } .faqs.light .faq summary { color: var(--deep-slate); } .faqs.light .faq p { color: var(--slate-700); } .faqs.light .faq summary::after { border-color: var(--sage-gray); }
@media (max-width: 900px) { .stack { grid-template-columns: 1fr; } .quote-strip { grid-template-columns: 1fr; } .quote-strip video { width: 120px; } }
