:root {
  color-scheme: light;
  --bg: #f4f7f8;
  --surface: #ffffff;
  --surface-2: #e9eef1;
  --ink: #111820;
  --soft: #344154;
  --muted: #66717f;
  --line: rgba(17, 24, 32, 0.13);
  --line-strong: rgba(17, 24, 32, 0.24);
  --accent: #1f5f5b;
  --accent-dark: #143d3a;
  --brass: #8a6a3c;
  --night: #111820;
  --night-2: #182231;
  --max: 1180px;
  --radius: 8px;
  --shadow: 0 24px 70px rgba(17, 24, 32, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, #f8fafb 0%, #eef3f4 54%, #f4f7f8 100%);
  color: var(--ink);
  font-family:
    Inter,
    Aptos,
    "Segoe UI",
    system-ui,
    -apple-system,
    sans-serif;
  line-height: 1.5;
}

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

p,
h1,
h2,
h3,
figure,
dl,
dd {
  margin: 0;
}

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

ul {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

::selection {
  background: rgba(31, 95, 91, 0.18);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  transform: translateY(-180%);
  border-radius: var(--radius);
  background: var(--night);
  color: #fff;
  padding: 0.7rem 1rem;
  font-weight: 750;
}

.skip-link:focus {
  transform: translateY(0);
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  width: 100%;
  height: 3px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, #ff365d 0%, #ffb84d 24%, #33d17a 52%, #38e8ff 74%, #2f7dff 100%);
  background-size: 180% 100%;
  box-shadow: 0 0 18px rgba(56, 232, 255, 0.46), 0 0 10px rgba(255, 54, 93, 0.34);
  animation: progressSheen 4s linear infinite;
}

.cursor {
  display: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  width: 100%;
  padding: 1rem 3rem;
  border-bottom: 1px solid transparent;
  transition: background 180ms ease, border-color 180ms ease, backdrop-filter 180ms ease;
}

.site-header.is-elevated {
  border-color: var(--line);
  background: rgba(248, 250, 251, 0.84);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: max-content;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 750;
}

.brand-logo {
  display: block;
  width: 12.5rem;
  height: auto;
}

.footer-links a {
  opacity: 0.82;
  transition: color 160ms ease, opacity 160ms ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--accent);
  opacity: 1;
}

.menu-toggle {
  justify-self: end;
  display: inline-grid;
  gap: 0.3rem;
  width: 2.5rem;
  height: 2.5rem;
  place-content: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  transition: transform 160ms ease;
}

.menu-toggle span {
  display: block;
  width: 1.24rem;
  height: 3px;
  border-radius: 999px;
  background: var(--ink);
  transition: transform 180ms ease, opacity 180ms ease, background 180ms ease;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  transform: translateY(-1px);
}

.site-header.is-menu-open .menu-toggle span:first-child {
  transform: translateY(8px) rotate(45deg);
}

.site-header.is-menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.is-menu-open .menu-toggle span:last-child {
  transform: translateY(-8px) rotate(-45deg);
}

.menu-panel {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 3rem;
  display: grid;
  min-width: 15rem;
  gap: 0.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.5rem;
  background: rgba(248, 250, 251, 0.94);
  box-shadow: 0 22px 60px rgba(17, 24, 32, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-0.4rem);
  transition: opacity 160ms ease, transform 160ms ease;
  backdrop-filter: blur(18px);
}

.site-header.is-menu-open .menu-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.menu-panel a {
  border-radius: calc(var(--radius) - 2px);
  padding: 0.78rem 0.88rem;
  color: var(--soft);
  font-size: 0.95rem;
  font-weight: 650;
  transition: background 160ms ease, color 160ms ease;
}

.menu-panel a:hover,
.menu-panel a:focus-visible {
  background: var(--surface-2);
  color: var(--accent-dark);
}

@keyframes progressSheen {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 180% 50%;
  }
}

.hero,
.section-panel,
.statement-panel,
.contact-panel,
.wire-panel {
  position: relative;
  padding: 8rem 3rem;
}

.hero {
  --grid-x: 0px;
  --grid-y: 0px;
  --hero-mask-x: 50%;
  --hero-mask-y: 50%;
  min-height: 96dvh;
  display: grid;
  align-items: center;
  isolation: isolate;
  overflow: clip;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.78) 48%, rgba(233, 238, 241, 0.45) 100%),
    linear-gradient(180deg, #f8fafb 0%, #eef3f4 100%);
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -3;
  content: "";
  background:
    linear-gradient(rgba(17, 24, 32, 0.063) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 24, 32, 0.063) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.8), transparent 78%);
}

#motion-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 0.42;
  pointer-events: none;
}

.infinite-grid {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

.infinite-grid-base,
.infinite-grid-reveal {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(17, 24, 32, 0.152) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 24, 32, 0.152) 1px, transparent 1px);
  background-position: var(--grid-x) var(--grid-y);
  background-size: 40px 40px;
}

.infinite-grid-base {
  opacity: 0.11;
}

.infinite-grid-reveal {
  opacity: 0.4;
  mask-image: radial-gradient(300px circle at var(--hero-mask-x) var(--hero-mask-y), #000, transparent);
}

.hero-wash {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 82% 10%, rgba(138, 106, 60, 0.2), transparent 34%),
    radial-gradient(ellipse at 14% 84%, rgba(31, 95, 91, 0.18), transparent 38%),
    linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.45) 52%, rgba(233, 238, 241, 0.2) 100%);
}

.hero-grid,
.statement-grid,
.section-heading,
.expertise-list,
.outcomes-intro,
.outcome-grid,
.proof-copy,
.proof-stack,
.contact-card,
.site-footer,
.wire-grid {
  width: min(100%, var(--max));
  margin-right: auto;
  margin-left: auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.58fr) minmax(22rem, 0.42fr);
  gap: 3rem;
  align-items: end;
}

.eyebrow,
.section-kicker {
  color: var(--accent-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2 {
  max-width: 14ch;
  margin-top: 1rem;
  color: var(--ink);
  font-size: clamp(3.2rem, 7vw, 6.35rem);
  font-weight: 680;
  line-height: 0.95;
  letter-spacing: 0;
  text-wrap: balance;
}

h2 {
  max-width: 13ch;
  font-size: clamp(2.7rem, 5.3vw, 5rem);
}

.hero h1 {
  max-width: 13ch;
  font-size: clamp(2.9rem, 6.1vw, 5.7rem);
}

h3 {
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 650;
  line-height: 1.18;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 42rem;
  margin-top: 1.45rem;
  color: var(--soft);
  font-size: 1.2rem;
}

.kinetic-line {
  display: block;
  min-height: 9rem;
  margin-bottom: 0.45rem;
  color: var(--soft);
  font-size: 1.24rem;
}

.kinetic-line span {
  display: block;
}

.kinetic-line strong {
  display: block;
  margin-top: 0.35rem;
  color: var(--accent-dark);
  font-size: clamp(4rem, 7vw, 6.4rem);
  font-weight: 680;
  line-height: 0.88;
  transform-origin: bottom left;
}

.kinetic-line strong.is-swapping {
  animation: wordSwap 520ms ease;
}

@keyframes wordSwap {
  0% {
    opacity: 0;
    transform: translateY(0.5rem);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 3.05rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.82rem 1.2rem;
  font-weight: 720;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--night);
  color: #fff;
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--accent-dark);
}

.button.secondary {
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.58);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.text-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 1.4rem;
  border-bottom: 1px solid currentColor;
  color: var(--accent-dark);
  font-weight: 720;
}

.hero-brief {
  align-self: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 18px 60px rgba(17, 24, 32, 0.1);
  backdrop-filter: blur(12px);
}

.brief-label {
  color: var(--accent-dark);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-brief p {
  margin-top: 0.75rem;
  color: var(--soft);
  font-size: 1.02rem;
}

.brief-metrics {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.brief-metrics div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
}

.brief-metrics dt {
  color: var(--muted);
  font-size: 0.84rem;
}

.brief-metrics dd {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 700;
}

.service-rail {
  --service-rail-height: 4.4rem;
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 72;
  display: flex;
  height: var(--service-rail-height);
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  pointer-events: none;
}

.service-rail-inner {
  display: flex;
  width: fit-content;
  max-width: calc(100vw - 2rem);
  gap: 0.25rem;
  overflow-x: auto;
  pointer-events: auto;
  border: 1px solid rgba(17, 24, 32, 0.1);
  border-radius: 999px;
  padding: 0.26rem;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 14px 44px rgba(17, 24, 32, 0.08);
  scrollbar-width: none;
}

.service-rail-inner::-webkit-scrollbar {
  display: none;
}

.service-rail a {
  position: relative;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 999px;
  padding: 0.56rem 0.74rem;
  color: var(--soft);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.service-rail a::after {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.26) 45%, transparent 70%);
  transform: translateX(-80%);
}

.service-rail a.is-active {
  background: linear-gradient(110deg, var(--night) 0%, var(--accent-dark) 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(31, 95, 91, 0.26);
}

.service-rail a.is-active::after {
  opacity: 1;
  animation: activeServiceSheen 2.6s ease-in-out infinite;
}

.anchor-target {
  position: absolute;
  top: -5rem;
}

@keyframes activeServiceSheen {
  0% {
    transform: translateX(-90%);
  }

  55%,
  100% {
    transform: translateX(110%);
  }
}

.wire-panel {
  position: relative;
  height: 300dvh;
  display: block;
  overflow: visible;
  padding: 0;
  background: #000;
}

.shader-panel {
  min-height: 105dvh;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 72% 20%, rgba(56, 232, 255, 0.13), transparent 36%),
    radial-gradient(ellipse at 20% 78%, rgba(255, 54, 93, 0.12), transparent 34%),
    #000;
}

.shader-panel::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.46), rgba(0, 0, 0, 0.12) 48%, rgba(0, 0, 0, 0.55)),
    radial-gradient(ellipse at 50% 50%, transparent 0%, rgba(0, 0, 0, 0.36) 72%);
}

.wire-sticky {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 100dvh;
  overflow: hidden;
}

.wire-panel.is-wire-active .wire-sticky {
  position: fixed;
}

.wire-panel.is-wire-after .wire-sticky {
  position: absolute;
  top: auto;
  bottom: 0;
}

.wire-effect {
  position: relative;
  width: 100%;
  height: 100%;
}

.wire-shader {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0.82;
}

.shader-canvas {
  z-index: 1;
  opacity: 0.92;
}

.wire-title {
  position: relative;
  z-index: 3;
  max-width: min(50rem, calc(100vw - 2rem));
  margin: 0 auto;
  padding-top: 12dvh;
  padding-bottom: 1rem;
  background: linear-gradient(180deg, #f5f5f5 0%, #d4d4d4 100%);
  background-clip: text;
  color: transparent;
  font-size: 3rem;
  font-weight: 400;
  line-height: 1.08;
  text-align: center;
}

.wire-description {
  position: relative;
  z-index: 3;
  max-width: 34rem;
  margin: 0.4rem auto 0;
  color: #a3a3a3;
  font-size: 1rem;
  font-weight: 400;
  text-align: center;
}

.wire-pill {
  position: absolute;
  top: calc(50dvh + 8.5rem);
  left: 50%;
  z-index: 4;
  width: fit-content;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #fff;
  padding: 0.55rem 1rem;
  color: #000;
  font-size: 0.95rem;
  font-weight: 700;
}

.wire-svg {
  position: absolute;
  top: calc(50dvh - 35.7vw);
  left: 50%;
  z-index: 2;
  width: 100vw;
  max-width: none;
  height: auto;
  transform: translateX(-50%);
  pointer-events: none;
}

.wire-svg path {
  opacity: 0.75;
}

[data-wire] {
  stroke-linecap: round;
  opacity: 0.75;
}

.statement-panel {
  min-height: 78dvh;
  display: grid;
  align-items: center;
  background: var(--bg);
}

.shader-panel .statement-grid {
  position: relative;
  z-index: 3;
}

.shader-panel .section-kicker {
  color: #38e8ff;
}

.shader-panel h2 {
  color: #f5f7f8;
}

.shader-panel .statement-grid p:not(.section-kicker) {
  color: rgba(245, 247, 248, 0.76);
}

.statement-grid {
  display: grid;
  grid-template-columns: 0.28fr 1fr;
  gap: 2rem;
}

.statement-grid p:not(.section-kicker),
.proof-copy p,
.contact-card p {
  max-width: 46rem;
  margin-top: 1.4rem;
  color: var(--soft);
  font-size: 1.18rem;
}

.section-panel {
  min-height: 92dvh;
}

.expertise-panel {
  background: var(--surface);
}

.section-heading {
  margin-bottom: 2.4rem;
}

.expertise-list {
  border-top: 1px solid var(--line);
}

.expertise-list details {
  border-bottom: 1px solid var(--line);
}

.expertise-list summary {
  display: grid;
  grid-template-columns: 4rem 1fr;
  align-items: center;
  min-height: 6.5rem;
  cursor: pointer;
  list-style: none;
}

.expertise-list summary::-webkit-details-marker {
  display: none;
}

.expertise-list summary span,
.outcome-grid span,
.proof-stack span {
  color: var(--accent-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.expertise-list summary strong {
  color: var(--ink);
  font-size: 2.15rem;
  font-weight: 640;
  line-height: 1;
}

.expertise-list details p {
  max-width: 48rem;
  margin: 0 0 1rem 4rem;
  color: var(--soft);
  font-size: 1.05rem;
}

.expertise-list ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 0 2rem 4rem;
}

.expertise-list li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.7rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.outcomes-panel {
  background: var(--surface-2);
}

.outcomes-intro {
  margin-bottom: 2.4rem;
}

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

.outcome-grid article {
  position: relative;
  min-height: 17rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  background: rgba(255, 255, 255, 0.72);
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.outcome-grid article::before,
.contact-card::before {
  position: absolute;
  inset: 0;
  opacity: 0;
  content: "";
  pointer-events: none;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(31, 95, 91, 0.14), transparent 42%);
  transition: opacity 180ms ease;
}

.outcome-grid article:hover::before,
.contact-card:hover::before {
  opacity: 1;
}

.outcome-grid article > *,
.contact-card > * {
  position: relative;
  z-index: 1;
}

.outcome-grid article:hover {
  border-color: var(--line-strong);
  background: #fff;
  transform: translateY(-3px);
}

.outcome-grid h3 {
  margin-top: 3.2rem;
  font-size: 1.45rem;
}

.proof-panel {
  display: grid;
  align-items: center;
  gap: 2.5rem;
  background: var(--bg);
}

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

.proof-stack div {
  min-height: 14rem;
  border-top: 1px solid var(--line-strong);
  padding-top: 1rem;
}

.proof-stack p {
  margin-top: 1.2rem;
  font-size: 1.05rem;
}

.contact-panel {
  min-height: 82dvh;
  display: grid;
  place-items: center;
  overflow: clip;
  background:
    linear-gradient(180deg, #f4f7f8 0%, #e7edf0 100%);
}

.contact-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3rem;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
}

.contact-card h2 {
  max-width: 12ch;
}

.contact-card .button {
  margin-top: 2rem;
}

.grid-loading {
  width: 4rem;
  height: 4rem;
}

.grid-loading-inner {
  display: grid;
  width: 100%;
  height: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.25rem;
}

.grid-loading-cell {
  background: var(--cell-color);
  animation: gridLoadingPulse 1.5s ease-in-out infinite;
  animation-delay: var(--delay, 0ms);
}

.grid-loading-cell.color-red {
  --cell-color: #ff2e2e;
}

.grid-loading-cell.color-green {
  --cell-color: #00c46a;
}

.grid-loading-cell.color-blue {
  --cell-color: #0057ff;
}

.grid-loading-cell.color-black {
  --cell-color: #050505;
}

@keyframes gridLoadingPulse {
  0%,
  100% {
    opacity: 0.18;
  }

  50% {
    opacity: 1;
  }
}

.subpage {
  background:
    linear-gradient(180deg, #f8fafb 0%, #eef3f4 48%, #f4f7f8 100%);
}

.page-hero {
  min-height: 62dvh;
  display: grid;
  align-items: end;
  padding: 10rem 3rem 5rem;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.78) 48%, rgba(233, 238, 241, 0.45) 100%),
    linear-gradient(180deg, #f8fafb 0%, #eef3f4 100%);
}

.compact-hero {
  min-height: 48dvh;
}

.contact-hero {
  min-height: 58dvh;
}

.page-hero-inner,
.page-section > *,
.contact-layout,
.legal-content {
  width: min(100%, var(--max));
  margin-right: auto;
  margin-left: auto;
}

.page-hero p:not(.eyebrow) {
  max-width: 50rem;
  margin-top: 1.45rem;
  color: var(--soft);
  font-size: 1.2rem;
}

.page-section {
  padding: 6.5rem 3rem;
}

.muted-band {
  background: var(--surface-2);
}

.page-split {
  display: grid;
  grid-template-columns: 0.46fr 0.54fr;
  gap: 4rem;
  width: min(100%, var(--max));
  margin: 0 auto;
}

.rich-copy {
  display: grid;
  gap: 1.1rem;
  align-content: start;
}

.rich-copy p,
.contact-aside p,
.legal-content p {
  color: var(--soft);
  font-size: 1.08rem;
}

.rich-copy .button {
  width: fit-content;
  margin-top: 0.7rem;
}

.page-grid {
  display: grid;
  width: min(100%, var(--max));
  margin: 0 auto;
  gap: 1rem;
}

.page-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.page-card {
  position: relative;
  min-height: 18rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem;
  background: rgba(255, 255, 255, 0.74);
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.page-card::before,
.inquiry-form::before {
  position: absolute;
  inset: 0;
  opacity: 0;
  content: "";
  pointer-events: none;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(31, 95, 91, 0.13), transparent 45%);
  transition: opacity 180ms ease;
}

.page-card:hover,
.inquiry-form:hover {
  border-color: var(--line-strong);
  background: #fff;
}

.page-card:hover {
  transform: translateY(-3px);
}

.page-card:hover::before,
.inquiry-form:hover::before {
  opacity: 1;
}

.page-card > *,
.inquiry-form > * {
  position: relative;
  z-index: 1;
}

.page-card span {
  color: var(--accent-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-card h3 {
  margin-top: 2.8rem;
  font-size: 1.42rem;
}

.page-card p {
  margin-top: 1rem;
  color: var(--soft);
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.38fr 0.62fr;
  gap: 2rem;
  align-items: start;
}

.contact-aside {
  position: sticky;
  top: 6rem;
}

.contact-aside h2 {
  font-size: clamp(2.35rem, 4vw, 4.2rem);
}

.contact-aside dl {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.contact-aside dt {
  color: var(--accent-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-aside dd {
  margin-top: 0.35rem;
  color: var(--soft);
}

.inquiry-form {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 24px 70px rgba(17, 24, 32, 0.1);
}

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

.field {
  display: grid;
  gap: 0.45rem;
}

.field span {
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(248, 250, 251, 0.92);
  color: var(--ink);
  font: inherit;
  padding: 0.82rem 0.9rem;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  outline: 0;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(31, 95, 91, 0.12);
}

.field-wide {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-top: 1.2rem;
}

.form-actions p {
  color: var(--soft);
  font-size: 0.95rem;
}

.legal-content {
  max-width: 860px;
  display: grid;
  gap: 1.1rem;
}

.legal-content h2 {
  max-width: none;
  margin-top: 2rem;
  font-size: 1.7rem;
  line-height: 1.1;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content a {
  color: var(--accent-dark);
  font-weight: 720;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1rem;
  align-items: center;
  padding: 2rem 3rem 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

[data-reveal] {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 720ms ease, transform 720ms ease;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(1.2rem);
  transition-delay: var(--reveal-delay, 0ms);
}

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

.js details:not([open]) p,
.js details:not([open]) ul {
  display: none;
}

@media (min-width: 900px) and (max-width: 1179px) {
  .site-header,
  .hero,
  .section-panel,
  .statement-panel,
  .contact-panel,
  .wire-panel,
  .page-hero,
  .page-section {
    padding-right: 2rem;
    padding-left: 2rem;
  }

}

@media (max-width: 899px) {
  .site-header {
    grid-template-columns: 1fr auto;
    padding: 0.85rem 1rem;
  }

  .menu-panel {
    right: 1rem;
    min-width: min(16rem, calc(100vw - 2rem));
  }

  .brand span {
    max-width: 8.5rem;
    white-space: nowrap;
  }

  .brand-logo {
    width: 10.25rem;
  }

  .hero,
  .section-panel,
  .statement-panel,
  .contact-panel,
  .wire-panel,
  .page-hero,
  .page-section {
    padding: 6.5rem 1rem;
  }

  .page-hero {
    min-height: 60dvh;
    padding-top: 8rem;
    padding-bottom: 3.5rem;
  }

  .hero {
    min-height: 100dvh;
    padding-bottom: 7rem;
  }

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

  h1 {
    font-size: 3.05rem;
    line-height: 0.98;
  }

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

  h2 {
    font-size: 2.55rem;
    line-height: 1;
  }

  .hero-lede,
  .statement-grid p:not(.section-kicker),
  .proof-copy p,
  .contact-card p,
  .wire-copy p {
    font-size: 1.04rem;
  }

  .kinetic-line {
    min-height: 7.2rem;
    margin-top: 0;
    margin-bottom: 0;
    font-size: 1.08rem;
  }

  .kinetic-line strong {
    font-size: clamp(3.35rem, 16vw, 5.2rem);
  }

  .service-rail {
    --service-rail-height: calc(3.8rem + env(safe-area-inset-bottom));
    justify-content: center;
    padding: 0 1rem env(safe-area-inset-bottom);
  }

  .service-rail-inner {
    max-width: calc(100vw - 2rem);
  }

  .service-rail a {
    font-size: 0.68rem;
  }

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

  .wire-panel {
    height: 260dvh;
  }

  .wire-title {
    padding-top: 10dvh;
    font-size: 3rem;
  }

  .wire-description {
    max-width: calc(100vw - 2rem);
    font-size: 1rem;
  }

  .wire-pill {
    top: calc(50dvh + 7rem);
    font-size: 0.78rem;
  }

  .wire-svg {
    top: calc(50dvh - 35.7vw);
    width: 100vw;
  }

  .expertise-list summary {
    grid-template-columns: 3rem 1fr;
    min-height: 5.8rem;
  }

  .expertise-list summary strong {
    font-size: 1.55rem;
  }

  .expertise-list details p,
  .expertise-list ul {
    margin-left: 3rem;
  }

  .outcome-grid,
  .proof-stack,
  .page-grid.three,
  .page-split,
  .contact-layout,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .page-card {
    min-height: 12.5rem;
  }

  .page-card h3 {
    margin-top: 2rem;
  }

  .contact-aside {
    position: relative;
    top: auto;
  }

  .outcome-grid article,
  .proof-stack div {
    min-height: 11rem;
  }

  .outcome-grid h3 {
    margin-top: 2.2rem;
    font-size: 1.3rem;
  }

  .contact-card {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.2rem;
  }

  .grid-loading {
    justify-self: start;
  }

  .site-footer {
    grid-template-columns: 1fr;
    padding: 1.5rem 1rem 2rem;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 2.72rem;
  }

  h2 {
    font-size: 2.22rem;
  }

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

  .button {
    width: 100%;
  }

  .expertise-list summary strong {
    font-size: 1.34rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

}
