/* =========================================================
   PHX Valley Tech — main stylesheet
   Editorial consultancy design. Oversized regular-weight
   type, asymmetric splits, alternating navy/light surfaces.
   Brand: navy #0A1122 · blue #1E88E5 · silver #B0B6C1.
   ========================================================= */

:root {
  --navy: #0A1122;
  --navy-deep: #060B18;
  --surface: #101B38;
  --hairline: rgba(176, 182, 193, 0.16);
  --text: #F4F6FA;
  --text-muted: #AEB5C4;
  --blue: #1E88E5;
  --blue-light: #5FB2FF;
  --silver: #B0B6C1;
  --silver-gradient: linear-gradient(180deg, #FFFFFF 0%, #C9CFDA 55%, #8A92A3 100%);
  --light-bg: #FBFBFD;
  --light-text: #0A1122;
  --light-muted: #5B6478;
  --light-hairline: #E4E8F0;
  --radius: 14px;
  --radius-lg: 22px;
  --font: "Geist", "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display",
          "SF Pro Text", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
  --font-brand: "Michroma", "Geist", sans-serif;
  --ease: cubic-bezier(0.22, 0.08, 0.14, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

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

body {
  background: var(--navy);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; }

ol, ul { list-style: none; }

::selection {
  background: rgba(30, 136, 229, 0.35);
  color: #fff;
}

.section-light ::selection {
  background: rgba(30, 136, 229, 0.2);
  color: var(--light-text);
}

:focus-visible {
  outline: 2px solid var(--blue-light);
  outline-offset: 3px;
  border-radius: 2px;
}

[id] { scroll-margin-top: 76px; }

.container {
  width: min(1160px, 92%);
  margin-inline: auto;
}

/* Oversized, regular-weight display type */
h1, h2 {
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.032em;
  text-wrap: balance;
}

h3, h4 { font-weight: 500; letter-spacing: -0.015em; }

/* Technical micro-label — the small tracked mono used for eyebrows,
   index numbers, and tags throughout */
.mono-label {
  font-family: var(--font-mono);
  font-weight: 500;
  text-transform: uppercase;
}

/* ---------- Brand wordmark ---------- */

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-decoration: none;
}

.brand-phx {
  font-family: var(--font-brand);
  font-size: 1.02rem;
  line-height: 1;
  letter-spacing: 0.06em;
  background: var(--silver-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-x {
  background: linear-gradient(45deg, #C9CFDA 0%, #8A92A3 52%, #1E88E5 52%, #5FB2FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-sub {
  font-size: 0.44rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.48em;
  padding-left: 0.48em;
  color: var(--silver);
  white-space: nowrap;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 17, 34, 0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hairline);
  transition: transform 0.35s var(--ease), background 0.3s ease;
}

.site-header.is-hidden { transform: translateY(-100%); }

.site-header.is-scrolled { background: rgba(8, 13, 26, 0.92); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 56px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-menu a {
  color: rgba(244, 246, 250, 0.75);
  text-decoration: none;
  font-weight: 400;
  font-size: 0.82rem;
  transition: color 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a:focus-visible { color: var(--text); }

.nav-cta {
  background: #F5F6F8;
  color: #0A1122 !important;
  font-weight: 500 !important;
  padding: 0.38rem 1rem;
  border-radius: 999px;
  transition: background 0.2s ease;
}

.nav-cta:hover { background: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  background: none;
  border: 0;
  padding: 0.6rem 0.4rem;
  cursor: pointer;
}

.nav-toggle-bar {
  width: 18px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-block;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: transform 0.25s var(--ease), background 0.2s ease;
}

.btn-primary {
  background: #F5F6F8;
  color: #0A1122;
}

.btn-primary:hover {
  background: #fff;
  transform: scale(1.02);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  color: var(--blue-light);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
}

.link-arrow:hover { text-decoration: underline; }

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

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(7rem, 20vh, 12rem) 0 clamp(6rem, 16vh, 10rem);
}

.hero-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  animation: hero-zoom 45s var(--ease) forwards;
}

@keyframes hero-zoom {
  from { transform: scale(1); }
  to   { transform: scale(1.09); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(100deg, rgba(6, 11, 24, 0.9) 22%, rgba(6, 11, 24, 0.5) 58%, rgba(6, 11, 24, 0.22) 100%),
    linear-gradient(180deg, rgba(10, 17, 34, 0.45) 0%, transparent 30%);
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 2; }

.hero-eyebrow {
  font-family: var(--font-brand);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.36em;
  color: var(--silver);
  margin-bottom: 1.6rem;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.8rem;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(244, 246, 250, 0.55);
}

.scroll-cue span {
  position: relative;
  width: 1px;
  height: 44px;
  background: rgba(244, 246, 250, 0.2);
  overflow: hidden;
}

.scroll-cue span::after {
  content: "";
  position: absolute;
  left: 0;
  top: -14px;
  width: 1px;
  height: 14px;
  background: rgba(244, 246, 250, 0.9);
  animation: cue-drop 2.4s var(--ease) infinite;
}

@keyframes cue-drop {
  0%   { transform: translateY(0); }
  70%, 100% { transform: translateY(60px); }
}

.hero h1 {
  font-size: clamp(3.2rem, 9.5vw, 6.75rem);
  max-width: 14ch;
}

.hero-sub {
  margin-top: 1.8rem;
  max-width: 46ch;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.6rem;
  margin-top: 2.6rem;
}

/* ---------- Sections ---------- */

.section { padding: clamp(5rem, 13vh, 9rem) 0; }

.section-light {
  background: var(--light-bg);
  color: var(--light-text);
}

.section-dark { background: var(--navy); }

.section-deep { background: var(--navy-deep); }

.section-flush { padding-top: 0; }

.section-tight { padding: clamp(3.5rem, 8vh, 5.5rem) 0; }

.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--blue-light);
  margin-bottom: 1.4rem;
}

.section-eyebrow::before {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.section-light .section-eyebrow { color: var(--blue); }

.section-eyebrow-center,
.cta .section-eyebrow {
  justify-content: center;
}

.section-eyebrow-center::before,
.cta .section-eyebrow::before { display: none; }

.section-title {
  font-size: clamp(2.2rem, 4.8vw, 3.6rem);
  max-width: 18ch;
}

.section-sub {
  margin-top: 1.2rem;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 50ch;
  text-wrap: balance;
}

/* ---------- Asymmetric splits ---------- */

.split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.split-sticky > div:first-child {
  position: sticky;
  top: 96px;
}

.lede {
  font-size: clamp(1.15rem, 1.9vw, 1.45rem);
  line-height: 1.55;
  letter-spacing: -0.012em;
  color: var(--light-text);
}

.fact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 2.2rem;
  border-top: 1px solid var(--light-hairline);
}

.fact-row li {
  flex: 1 1 180px;
  padding: 1.1rem 1.4rem 0 0;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--light-muted);
}

/* ---------- Media / photography ---------- */

.media {
  overflow: hidden;
  border-radius: var(--radius-lg);
  position: relative;
}

.media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
}

.media-inset { margin-top: 2.8rem; aspect-ratio: 16 / 9; }

.media-tall { aspect-ratio: 4 / 5; align-self: stretch; }

/* Image mask reveal — clip the child image, never the observed
   container (a fully-clipped target never "intersects"). */
/* Only clip-path transitions here — never transform: the parallax
   JS retargets transform every scroll frame, and transitioning it
   keeps the compositor permanently mid-flight. */
.mask-reveal img {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.1s var(--ease);
}

.mask-reveal.is-revealed img {
  clip-path: inset(0 0 0 0);
}

/* ---------- Capabilities ledger ---------- */

.cap-list { border-top: 1px solid var(--light-hairline); }

.cap-list li {
  position: relative;
  display: grid;
  grid-template-columns: 3.2rem 1fr 1.3fr;
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.6rem 0;
}

.cap-list h3 { transition: color 0.25s ease; }

.cap-list li:hover h3 { color: var(--blue); }

/* Hairlines that draw themselves in as each row reveals */
.cap-list li::after,
.steps li::after,
.standards li::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--light-hairline);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s var(--ease) 0.15s;
}

.standards li::after { background: var(--hairline); }

.cap-list li.is-visible::after,
.steps li.is-visible::after,
.standards li.is-visible::after,
.is-visible .outcomes li::after { transform: scaleX(1); }

/* Cascade for rows that arrive together */
.cap-list li:nth-child(2), .steps li:nth-child(2), .standards li:nth-child(2) { transition-delay: 0.07s; }
.cap-list li:nth-child(3), .steps li:nth-child(3), .standards li:nth-child(3) { transition-delay: 0.14s; }
.cap-list li:nth-child(4), .steps li:nth-child(4), .standards li:nth-child(4) { transition-delay: 0.21s; }
.cap-list li:nth-child(5), .steps li:nth-child(5) { transition-delay: 0.28s; }
.cap-list li:nth-child(6), .steps li:nth-child(6) { transition-delay: 0.35s; }

.cap-list li:nth-child(2)::after, .steps li:nth-child(2)::after, .standards li:nth-child(2)::after { transition-delay: 0.22s; }
.cap-list li:nth-child(3)::after, .steps li:nth-child(3)::after, .standards li:nth-child(3)::after { transition-delay: 0.29s; }
.cap-list li:nth-child(4)::after, .steps li:nth-child(4)::after, .standards li:nth-child(4)::after { transition-delay: 0.36s; }
.cap-list li:nth-child(5)::after, .steps li:nth-child(5)::after { transition-delay: 0.43s; }
.cap-list li:nth-child(6)::after, .steps li:nth-child(6)::after { transition-delay: 0.5s; }

.is-visible .outcomes li:nth-child(1)::after { transition-delay: 0.1s; }
.is-visible .outcomes li:nth-child(2)::after { transition-delay: 0.25s; }
.is-visible .outcomes li:nth-child(3)::after { transition-delay: 0.4s; }

.cap-num {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--blue);
}

.cap-list h3 {
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  font-weight: 500;
}

.cap-list p {
  color: var(--light-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* ---------- Selected work ---------- */

.work-head { margin-bottom: clamp(3.5rem, 8vh, 6rem); }

.case {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

.case + .case { margin-top: clamp(5rem, 12vh, 8.5rem); }

.case-rev .case-body { order: 2; }
.case-rev .case-media { order: 1; }

.case-tag {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--blue-light);
  margin-bottom: 1.1rem;
}

.case h3 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.case-copy {
  margin-top: 1.1rem;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.outcomes {
  margin-top: 1.8rem;
  border-top: 1px solid var(--hairline);
}

.outcomes li {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  padding: 0.85rem 0;
}

.outcomes li::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--hairline);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s var(--ease);
}

.outcomes strong {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  color: var(--text);
  min-width: 7rem;
}

.outcomes span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.work-note {
  margin-top: clamp(3rem, 6vh, 4.5rem);
  font-size: 0.78rem;
  color: rgba(174, 181, 196, 0.6);
}

/* ---------- Product UI mockups ---------- */

.ui-frame {
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 0.78rem;
  line-height: 1.4;
  box-shadow: 0 30px 80px rgba(3, 6, 14, 0.6);
  border: 1px solid var(--hairline);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.case-media:hover .ui-frame {
  transform: translateY(-5px);
  box-shadow: 0 40px 90px rgba(3, 6, 14, 0.7);
}

.ui-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.6rem 0.9rem;
}

.ui-chrome span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.18;
}

.ui-chrome em {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.62rem;
  opacity: 0.45;
  margin-left: 0.6rem;
  letter-spacing: 0.02em;
}

.ui-body { padding: 1rem 1.1rem 1.2rem; }

.ui-dark {
  background: #0C1428;
  color: #E7ECF5;
}

.ui-dark .ui-chrome { border-bottom: 1px solid rgba(176, 182, 193, 0.12); }

.ui-light {
  background: #FFFFFF;
  color: #14203C;
  border-color: rgba(10, 17, 34, 0.08);
}

.ui-light .ui-chrome { border-bottom: 1px solid #EDF0F6; }

.ui-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.ui-title { font-weight: 600; font-size: 0.82rem; }

.ui-pill {
  font-size: 0.66rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: rgba(30, 136, 229, 0.16);
  color: #7CC0FF;
}

.ui-row {
  display: grid;
  grid-template-columns: 3rem 1fr 4rem 6.2rem;
  gap: 0.7rem;
  align-items: center;
  padding: 0.55rem 0.2rem;
  border-top: 1px solid rgba(148, 158, 178, 0.12);
  white-space: nowrap;
}

.ui-light .ui-row { border-top-color: #EFF2F7; }

.ui-row-head {
  border-top: 0;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.5;
}

.ui-light .ui-row { grid-template-columns: 2rem 1fr 6.2rem; }

.ui-dark .ui-row span:nth-child(2),
.ui-light .ui-row span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
}

.ui-avatar {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #EAF3FE;
  color: #1E88E5;
  font-size: 0.56rem;
  font-weight: 600;
}

.chip {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.62rem;
  font-weight: 500;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: rgba(148, 158, 178, 0.14);
  color: inherit;
  opacity: 0.85;
}

.chip-done { background: rgba(52, 199, 123, 0.14); color: #4ED99A; }
.ui-light .chip-done { color: #14855C; }

.chip-route { background: rgba(255, 184, 77, 0.14); color: #FFC66E; }
.ui-light .chip-route { color: #A36A0C; }

.chip-live { background: rgba(30, 136, 229, 0.16); color: #7CC0FF; }
.ui-light .chip-live { color: #1E6FBE; }

.chip-live i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.75); }
}

.ui-stages {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
  flex-wrap: wrap;
}

.ui-stages span {
  font-size: 0.64rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: #F1F4F9;
  color: #5B6478;
}

.ui-stages span.is-active { background: #1E88E5; color: #fff; }

.ui-stages b { font-weight: 600; margin-left: 0.15rem; }

.ui-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}

.ui-kpis div {
  background: rgba(148, 158, 178, 0.08);
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
}

.ui-kpis b {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.ui-kpis span { font-size: 0.62rem; opacity: 0.55; }

.ui-chart {
  display: block;
  width: 100%;
  height: 96px;
  margin-bottom: 0.5rem;
}

/* ---------- Process steps ---------- */

.steps { border-top: 1px solid var(--light-hairline); }

.steps li {
  position: relative;
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 1.5rem;
  padding: 1.7rem 0;
}

.steps h3 {
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  font-weight: 500;
}

.steps h3 em {
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--light-muted);
  letter-spacing: 0;
}

.steps p {
  margin-top: 0.35rem;
  color: var(--light-muted);
  font-size: 0.95rem;
}

/* ---------- Engineering standards ---------- */

.standards { margin-top: 2.4rem; border-top: 1px solid var(--hairline); }

.standards li {
  position: relative;
  padding: 1.35rem 0;
}

.standards h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.standards p {
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.55;
}

/* ---------- Industries ---------- */

.industries {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  row-gap: 1rem;
  margin-top: 0.6rem;
}

.industries li {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--light-muted);
  padding: 0 1.6rem;
}

.industries li + li { border-left: 1px solid var(--light-hairline); }

/* ---------- Who we are / team ---------- */

.team {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 2.8rem;
  margin-top: 2.2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--light-hairline);
}

.person {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.avatar {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  font-family: var(--font-brand);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--silver);
  box-shadow: 0 0 0 1px rgba(10, 17, 34, 0.08), 0 4px 12px rgba(10, 17, 34, 0.16);
}

.person h4 { font-size: 0.98rem; font-weight: 600; color: var(--light-text); }

.person p {
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 500;
}

/* ---------- Contact / CTA ---------- */

.cta { text-align: center; }

.cta .section-eyebrow { text-align: center; }

.cta .section-title { margin-inline: auto; }

.cta .section-sub { margin-inline: auto; }

.contact-ledger {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  max-width: 820px;
  margin: 3rem auto 0;
  border-top: 1px solid var(--hairline);
  text-align: left;
}

.contact-ledger li {
  flex: 1 1 300px;
  padding: 1.5rem 2rem 0 0;
}

.contact-ledger h4 {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--blue-light);
  margin-bottom: 0.6rem;
}

.contact-ledger p {
  color: var(--text-muted);
  font-size: 0.93rem;
}

.contact-ledger li { flex: 1 1 240px; }

.contact-mail {
  color: var(--blue-light);
  text-decoration: none;
}

.contact-mail:hover { text-decoration: underline; }

.copy-btn {
  margin-left: 0.6rem;
  padding: 0.14rem 0.6rem;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  background: none;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.copy-btn:hover {
  color: var(--text);
  border-color: rgba(176, 182, 193, 0.4);
}

.copy-btn.is-copied {
  color: #4ED99A;
  border-color: rgba(78, 217, 154, 0.4);
}

.cta .cta-actions {
  margin-top: 2.2rem;
  justify-content: center;
}

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

.site-footer {
  background: var(--navy-deep);
  border-top: 1px solid var(--hairline);
  padding: 3.5rem 0 2rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2.6rem;
  border-bottom: 1px solid var(--hairline);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
}

.footer-brand .brand { align-items: flex-start; }

.brand-footer .brand-phx { font-size: 1.3rem; }

.footer-tagline {
  font-family: var(--font-brand);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.34em;
  color: var(--text-muted);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding-top: 0.4rem;
}

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.82rem;
  transition: color 0.2s ease;
}

.footer-nav a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem 2rem;
  padding-top: 1.6rem;
}

.footer-copy { color: #6B7488; font-size: 0.74rem; }

/* ---------- Reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .mask-reveal img { clip-path: none; transition: none; }
  .hero-img { animation: none; }
  .media img { transform: none; }
  .chip-live i { animation: none; }
  .scroll-cue span::after { animation: none; }
  .site-header { transition: none; }
  .btn, .nav-cta, .ui-frame { transition: none; }
  .cap-list li::after, .steps li::after, .standards li::after,
  .outcomes li::after { transform: scaleX(1); transition: none; }
}

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

@media (max-width: 960px) {
  .split, .case { grid-template-columns: 1fr; }
  .split-sticky > div:first-child { position: static; }
  .case-rev .case-body { order: 1; }
  .case-rev .case-media { order: 2; }
  .case-media { max-width: 560px; }
  .media-tall { aspect-ratio: 16 / 10; }
  .section-title { max-width: none; }
}

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

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(10, 17, 34, 0.97);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--hairline);
    padding: 0.4rem 4% 1.2rem;
    display: none;
  }

  .nav-menu.is-open { display: flex; }

  .nav-menu li { width: 100%; }

  .nav-menu a {
    display: block;
    padding: 0.9rem 0.2rem;
    font-size: 1.05rem;
    font-weight: 500;
  }

  .nav-cta {
    text-align: center;
    margin-top: 0.7rem;
    border-radius: 12px;
    padding: 0.8rem 1rem;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }

  .cap-list li { grid-template-columns: 2.6rem 1fr; }
  .cap-list p { grid-column: 2; margin-top: 0.3rem; }

  .ui-row { grid-template-columns: 2.4rem 1fr 5.4rem; }
  .ui-row-head span:nth-child(3), .ui-dark .ui-row > span:nth-child(3):not(.chip) { display: none; }

  .industries li { padding: 0 0.9rem; }
}
