:root {
  --paper: #ffffff;
  --ink: #050505;
  --soft: #2f2f31;
  --muted: #86868b;
  --line: rgba(0, 0, 0, 0.12);
  --line-soft: rgba(0, 0, 0, 0.075);
  --max: 1180px;
  --pad: 34px;
  --scroll-progress: 0;
  --hero-drift: 0px;
  --hero-fade: 1;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  overflow-x: hidden;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 22px var(--pad);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
}

.site-nav {
  pointer-events: auto;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  width: 100%;
  height: 1px;
  background: var(--ink);
  opacity: 0.28;
  pointer-events: none;
  transform: scaleX(var(--scroll-progress));
  transform-origin: left center;
}

.site-nav {
  --indicator-x: 5px;
  --indicator-w: 48px;
  position: relative;
  display: flex;
  gap: 8px;
  padding: 5px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.028);
}

.site-nav::before {
  position: absolute;
  top: 5px;
  left: var(--indicator-x);
  width: var(--indicator-w);
  height: calc(100% - 10px);
  border-radius: 999px;
  background: var(--ink);
  content: "";
  opacity: 0;
  transform: scaleX(0.92);
  transition:
    left 420ms cubic-bezier(0.2, 0.8, 0.2, 1),
    width 420ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 240ms ease,
    transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.site-nav.has-active::before {
  opacity: 1;
  transform: scaleX(1);
}

.site-nav a {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  color: var(--soft);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  transition: color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  color: var(--paper);
  outline: none;
}

main {
  overflow: hidden;
}

.hero {
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 72px var(--pad);
}

.hero-inner {
  position: relative;
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  justify-items: center;
  text-align: center;
  transform: translateY(7vh);
}

.hero-inner.is-visible {
  opacity: var(--hero-fade);
}

.hero-inner::after {
  width: 1px;
  height: 76px;
  margin-top: 54px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.18), transparent);
  content: "";
  opacity: 0;
  transform: scaleY(0);
  transform-origin: top;
}

.hero-logo-shell {
  width: min(52vw, 430px);
  margin: 0 0 72px;
  transform: translateY(var(--hero-drift));
  will-change: transform;
}

.hero-logo {
  display: block;
  width: 100%;
  height: auto;
}

.eyebrow,
.section-kicker,
.label {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  text-transform: uppercase;
}

.eyebrow {
  margin-bottom: 24px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 920px;
  margin-bottom: 24px;
  font-size: 88px;
  line-height: 0.96;
  font-weight: 650;
  text-wrap: balance;
}

.line {
  margin: 0;
  color: var(--soft);
  font-size: 24px;
  line-height: 1.35;
}

.section {
  position: relative;
  width: min(100%, var(--max));
  min-height: 100svh;
  margin: 0 auto;
  padding: 128px var(--pad);
  scroll-margin-top: 0;
}

.section::before {
  position: absolute;
  top: 0;
  left: var(--pad);
  right: var(--pad);
  height: 1px;
  background: var(--line);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(420px, 1.1fr);
  gap: 92px;
  align-items: start;
  margin-top: 34px;
}

h2 {
  max-width: 520px;
  margin: 0;
  font-size: 58px;
  line-height: 1.02;
  font-weight: 650;
  text-wrap: balance;
}

.practice-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px 56px;
}

.practice-list article {
  position: relative;
  min-height: 112px;
  transition: transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.practice-list article::after {
  position: absolute;
  left: 0;
  bottom: -18px;
  width: 46px;
  height: 1px;
  background: var(--line);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.practice-list article:hover {
  transform: translateY(-4px);
}

.practice-list article:hover::after {
  transform: scaleX(1);
}

.practice-list span {
  display: block;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.practice-list h3 {
  max-width: 260px;
  margin: 0;
  color: var(--soft);
  font-size: 24px;
  line-height: 1.14;
  font-weight: 560;
}

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

.signal-list p {
  margin: 0;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  color: var(--soft);
  font-size: 25px;
  line-height: 1.25;
  font-weight: 460;
}

.company-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 56px;
}

.secure-block {
  min-width: 0;
  padding-top: 2px;
}

.secure-block .label {
  margin-bottom: 30px;
}

canvas {
  display: block;
  width: 100%;
}

#contactCanvas {
  height: 54px;
}

#companyCanvas {
  height: 190px;
}

.reveal {
  opacity: 0;
  transform: translateY(calc(7vh + 24px));
  transition: opacity 760ms ease, transform 760ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(7vh);
}

.hero-inner.reveal.is-visible {
  opacity: var(--hero-fade);
}

.section.reveal,
.section.reveal.is-visible {
  transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
  .site-nav {
    animation: navReveal 760ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }

  .hero-logo,
  .hero .eyebrow,
  .hero h1,
  .hero .line {
    opacity: 0;
  }

  .hero-inner.is-visible .hero-logo {
    animation:
      logoReveal 1300ms cubic-bezier(0.2, 0.8, 0.2, 1) 120ms both,
      logoBreath 9200ms ease-in-out 1700ms infinite;
  }

  .hero-inner.is-visible .eyebrow {
    animation: quietRise 760ms cubic-bezier(0.2, 0.8, 0.2, 1) 300ms both;
  }

  .hero-inner.is-visible h1 {
    animation: quietRise 820ms cubic-bezier(0.2, 0.8, 0.2, 1) 390ms both;
  }

  .hero-inner.is-visible .line {
    animation: quietRise 820ms cubic-bezier(0.2, 0.8, 0.2, 1) 510ms both;
  }

  .hero-inner.is-visible::after {
    animation: lineDrop 920ms cubic-bezier(0.2, 0.8, 0.2, 1) 760ms both;
  }

  .section.is-visible::before {
    animation: ruleReveal 980ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }

  .section.is-visible .section-kicker,
  .section.is-visible h2,
  .section.is-visible .practice-list article,
  .section.is-visible .signal-list p,
  .section.is-visible .secure-block {
    animation: quietRise 720ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }

  .section.is-visible h2 {
    animation-delay: 80ms;
  }

  .section.is-visible .practice-list article:nth-child(1),
  .section.is-visible .signal-list p:nth-child(1),
  .section.is-visible .secure-block:nth-child(1) {
    animation-delay: 160ms;
  }

  .section.is-visible .practice-list article:nth-child(2),
  .section.is-visible .signal-list p:nth-child(2),
  .section.is-visible .secure-block:nth-child(2) {
    animation-delay: 230ms;
  }

  .section.is-visible .practice-list article:nth-child(3) {
    animation-delay: 300ms;
  }

  .section.is-visible .practice-list article:nth-child(4) {
    animation-delay: 370ms;
  }

  .signal-list p,
  .secure-block {
    transition:
      transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1),
      color 220ms ease;
  }

  .signal-list p:hover,
  .secure-block:hover {
    transform: translateX(6px);
  }
}

@keyframes navReveal {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes logoReveal {
  from {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(18px) scale(0.985);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }
}

@keyframes logoBreath {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-5px) scale(1.004);
  }
}

@keyframes quietRise {
  from {
    opacity: 0;
    filter: blur(6px);
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@keyframes lineDrop {
  from {
    opacity: 0;
    transform: scaleY(0);
  }

  to {
    opacity: 1;
    transform: scaleY(1);
  }
}

@keyframes ruleReveal {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

@media (max-width: 940px) {
  :root {
    --pad: 24px;
  }

  .site-header {
    padding-top: 18px;
    align-items: flex-start;
  }

  .site-nav a {
    min-height: 32px;
    padding: 0 12px;
  }

  .hero {
    padding-top: 84px;
    padding-bottom: 64px;
  }

  .hero-inner {
    transform: translateY(4.5vh);
  }

  .reveal {
    transform: translateY(calc(4.5vh + 24px));
  }

  .reveal.is-visible {
    transform: translateY(4.5vh);
  }

  .section.reveal,
  .section.reveal.is-visible {
    transform: translateY(0);
  }

  .hero-logo {
    width: 100%;
  }

  .hero-logo-shell {
    width: min(66vw, 340px);
    margin-bottom: 62px;
  }

  h1 {
    font-size: 60px;
  }

  .line {
    font-size: 22px;
  }

  .section {
    padding-top: 96px;
    padding-bottom: 96px;
  }

  .section-grid,
  .company-grid {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  h2 {
    font-size: 44px;
  }
}

@media (max-width: 620px) {
  :root {
    --pad: 20px;
  }

  .site-header {
    padding: 16px var(--pad);
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
  }

  .site-nav a {
    flex: 1;
    padding: 0 7px;
    font-size: 12px;
    white-space: nowrap;
  }

  .hero {
    min-height: 100svh;
    padding-top: 92px;
    padding-bottom: 52px;
  }

  .hero-inner {
    transform: translateY(3vh);
  }

  .reveal {
    transform: translateY(calc(3vh + 20px));
  }

  .reveal.is-visible {
    transform: translateY(3vh);
  }

  .section.reveal,
  .section.reveal.is-visible {
    transform: translateY(0);
  }

  .hero-logo {
    width: 100%;
  }

  .hero-logo-shell {
    width: min(76vw, 270px);
    margin-bottom: 56px;
  }

  h1 {
    font-size: clamp(39px, 11.8vw, 46px);
    line-height: 1;
  }

  .line {
    font-size: 19px;
  }

  .section {
    padding-top: 76px;
    padding-bottom: 76px;
    scroll-margin-top: 0;
  }

  .section-grid {
    margin-top: 28px;
  }

  h2 {
    font-size: clamp(31px, 9vw, 36px);
  }

  .practice-list {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .practice-list article {
    min-height: auto;
  }

  .practice-list h3,
  .signal-list p {
    font-size: 21px;
  }
}

@media (max-width: 380px) {
  :root {
    --pad: 16px;
  }

  .site-header {
    padding-left: 14px;
    padding-right: 14px;
  }

  .site-nav {
    gap: 4px;
    padding: 4px;
  }

  .site-nav a {
    min-height: 31px;
    padding: 0 5px;
    font-size: 11.5px;
  }

  .hero-logo-shell {
    width: min(78vw, 248px);
    margin-bottom: 50px;
  }

  .eyebrow,
  .section-kicker,
  .label {
    font-size: 11px;
  }

  .line {
    font-size: 18px;
  }
}

@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;
  }

  .hero-logo-shell {
    transform: none !important;
  }
}
