/*
  RJ Capital, rjcapital.io (v3)
  Light only. One family (Archivo) and one mono (IBM Plex Mono). Radius 0 everywhere.
  Grid: a frame of 12 columns between two rails; rails show from 640px up. Interior lines only where content divides.
  Navy carries all display type; electric blue is only for live state, the logo's square and focus.
*/

:root {
  color-scheme: light only;

  --paper: #fbfcfe;
  --white: #ffffff;
  --navy: #0b1f3a;
  --navy-2: #1e3a66;
  --ink: #0e1726;
  --muted: #556075;
  --line: #e4e9f0;
  --line-strong: #c9d2de;
  --line-control: #7d889b;
  --signal: #2563ff;
  --haze: #e8edf3;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  --font: "Archivo", "Archivo Fallback", "Helvetica Neue", Arial, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --m: clamp(20px, 5vw, 80px);
  --frame-max: 1440px;
  --rail: max(var(--m), calc((100% - var(--frame-max)) / 2));
  --inset: 24px;
  --head: 72px;
  --sec: clamp(72px, 8.9vw, 144px);
}

@font-face {
  font-family: "Archivo Fallback";
  src: local("Arial");
  size-adjust: 104%;
  ascent-override: 88%;
  descent-override: 22%;
}

@media (max-width: 639px) {
  :root {
    --inset: 0px;
    --head: 56px;
  }
}

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

html {
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--head) + 8px);
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

ul {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

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

button {
  font: inherit;
  color: inherit;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.nw {
  white-space: nowrap;
}

.skip {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 30;
  padding: 12px 18px;
  background: var(--navy);
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

/* Frame, rails and full-bleed rules */

.frame {
  width: min(100% - 2 * var(--m), var(--frame-max));
  margin-inline: auto;
}

.rails {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.rails::before,
.rails::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line);
  transform-origin: top;
}

.rails::before {
  left: var(--rail);
}

.rails::after {
  right: var(--rail);
}

@media (max-width: 639px) {
  .rails {
    display: none;
  }
}

main,
.site-foot,
.site-head {
  position: relative;
  z-index: 1;
}

main {
  flex: 1 0 auto;
}

html:not(.has-js) .js-only,
html:not(.has-js) .pause,
html:not(.has-js) .hero__visual {
  display: none;
}

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

.rule-bottom {
  border-bottom: 1px solid var(--line);
}

/* Type roles */

.label {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.d1,
.d2,
.d3 {
  color: var(--navy);
  font-stretch: 108%;
  text-wrap: balance;
}

.d1 {
  font-size: clamp(2.75rem, 5.85vw, 5.875rem);
  font-weight: 380;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-left: -0.06em;
}

.d2 {
  font-size: clamp(2.25rem, 4.15vw, 4.125rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1;
  margin-left: -0.06em;
}

.lede {
  max-width: 30em;
  font-size: clamp(1.125rem, 1.35vw, 1.3125rem);
  line-height: 1.5;
  letter-spacing: -0.005em;
  color: var(--muted);
  text-wrap: pretty;
}

.h3 {
  font-size: clamp(1.25rem, 1.55vw, 1.5rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.012em;
  color: var(--ink);
  text-wrap: balance;
}

.body {
  max-width: 36em;
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}

@media (max-width: 639px) {
  .d1 {
    font-size: clamp(2.375rem, 10.4vw, 2.875rem);
    letter-spacing: -0.035em;
    line-height: 1;
  }

  .d2 {
    font-size: clamp(2rem, 8.8vw, 2.5rem);
    letter-spacing: -0.03em;
  }

  .lede {
    font-size: 17px;
  }

  .h3 {
    font-size: 19px;
  }

  .body {
    font-size: 16px;
    line-height: 1.55;
  }

  .label {
    font-size: 11px;
  }
}

/* Buttons */

.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--navy);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.005em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    color 0.28s var(--ease-out),
    border-color 0.28s var(--ease-out),
    transform 0.08s linear;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.42s var(--ease-out);
}

.btn--solid {
  min-height: 48px;
  padding: 0 22px;
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.btn--solid::before {
  background: var(--navy-2);
}

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

@media (hover: hover) {
  .btn:hover {
    color: var(--white);
    border-color: var(--navy);
  }

  .btn:hover::before {
    transform: scaleX(1);
  }

  .btn--solid:hover {
    border-color: var(--navy-2);
  }
}

/* Arrows drawn with borders, no icon font */
.arrow {
  position: relative;
  display: inline-block;
  width: 10px;
  height: 12px;
  transition: transform 0.42s var(--ease-out);
}

.arrow::before {
  content: "";
  position: absolute;
  left: 4.5px;
  top: 0;
  width: 1.5px;
  height: 11px;
  background: currentColor;
}

.arrow::after {
  content: "";
  position: absolute;
  left: 1.5px;
  bottom: 1px;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.arrow--out {
  transform: rotate(-135deg);
}

@media (hover: hover) {
  .btn:hover .arrow {
    transform: translateY(3px);
  }
}

/* Header */

.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  height: calc(var(--head) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  transition:
    background-color 0.3s var(--ease-out),
    box-shadow 0.3s var(--ease-out);
}

.site-head.is-scrolled {
  background: rgba(251, 252, 254, 0.95);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  box-shadow: 0 1px 0 var(--line);
}

@media (prefers-reduced-transparency: reduce) {
  .site-head.is-scrolled {
    background: var(--paper);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

.site-head .frame {
  height: var(--head);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-inline: var(--inset);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.brand img {
  width: 159px;
  height: 15px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  position: relative;
  font-size: 14px;
  font-weight: 450;
  color: var(--muted);
  text-decoration: none;
  padding-block: 12px;
  transition: color 0.28s var(--ease-out);
}

.nav__link::after,
.u-line::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}

.nav__link[aria-current="true"] {
  color: var(--ink);
}

.nav__link[aria-current="true"]::after {
  transform: scaleX(1);
}

@media (hover: hover) {
  .nav__link:hover {
    color: var(--ink);
  }

  .nav__link:hover::after,
  .u-line:hover::after {
    transform: scaleX(1);
  }
}

@media (max-width: 639px) {
  .site-head .frame {
    padding-inline: 0;
  }

  .brand img {
    width: 148px;
    height: 14px;
  }

  .nav__link {
    display: none;
  }
}

/* Hero */

.hero {
  position: relative;
  padding-inline: var(--inset);
}

.hero__copy {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: start;
  padding-top: 56px;
}

.hero__copy .label {
  margin-bottom: 28px;
}

.hero h1 {
  max-width: 11.5em;
}

.hero h1 .line {
  display: block;
  overflow: clip;
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}

.hero h1 .line > span {
  display: inline-block;
}

.hero .lede {
  margin-top: 36px;
}

.hero .btn--solid {
  margin-top: 32px;
}

.hero__visual {
  position: relative;
  aspect-ratio: 1;
}

.hero__visual canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.pause {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  min-width: 44px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.pause::before {
  content: "";
  width: 8px;
  height: 10px;
  border-left: 2.5px solid currentColor;
  border-right: 2.5px solid currentColor;
}

.pause.is-paused::before {
  width: 0;
  height: 0;
  border-left: 8px solid currentColor;
  border-right: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

@media (hover: hover) {
  .pause:hover {
    color: var(--ink);
  }
}

.hero__pause {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 3;
}

@media (min-width: 1024px) {
  .hero {
    --hero-h: clamp(640px, calc(100svh - 72px - 160px), 860px);
    --lat: min(39vw, 664px, calc(var(--hero-h) - 48px));
    height: var(--hero-h);
    overflow: clip;
  }

  .hero h1 {
    max-width: none;
  }

  .hero .lede {
    max-width: min(30em, 40%);
  }

  .hero__visual {
    position: absolute;
    width: var(--lat);
    height: var(--lat);
    top: calc((100% - var(--lat)) / 2);
    right: calc(-0.1 * var(--lat));
    z-index: 1;
  }
}

@media (min-width: 1024px) and (max-width: 1199px) {
  .hero {
    --lat: min(36vw, calc(var(--hero-h) - 48px));
  }

  .hero .d1 {
    font-size: clamp(2.75rem, 5.2vw, 5.875rem);
  }
}

@media (max-width: 1023px) {
  .hero {
    padding-bottom: 24px;
  }

  .hero__visual {
    width: min(72vw, 520px);
    margin: 32px auto 0;
  }

  .hero__pause {
    right: calc(var(--inset) - 10px);
    bottom: 8px;
  }
}

@media (max-width: 639px) {
  .hero h1 .line,
  .hero h1 .line > span {
    display: inline;
    overflow: visible;
    padding-bottom: 0;
    margin-bottom: 0;
  }

  .hero__copy {
    padding-top: 32px;
  }

  .hero__copy .label {
    margin-bottom: 16px;
  }

  .hero .lede {
    margin-top: 20px;
  }

  .hero .btn--solid {
    margin-top: 28px;
  }

  .hero__visual {
    width: min(300px, 76vw);
  }
}

/* New York plate */

.city {
  position: relative;
  z-index: 1;
}

.city__frame {
  position: relative;
  height: clamp(440px, 40vw, 680px);
  background: var(--haze);
  overflow: hidden;
}

.city__frame picture,
.city__img {
  display: block;
  width: 100%;
  height: 100%;
}

.city__img {
  object-fit: cover;
  object-position: 50% 0%;
}

@media (min-width: 640px) and (max-width: 1023px) {
  .city__frame {
    height: auto;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 639px) {
  .city__frame {
    height: auto;
    aspect-ratio: 4 / 5;
    max-height: 72svh;
  }
}

@media (orientation: landscape) and (max-height: 500px) {
  :root {
    --head: 56px;
  }

  .hero__copy {
    padding-top: 24px;
  }

  .hero__visual {
    width: min(72vw, 520px, calc(100svh - 64px));
  }

  .city__frame {
    aspect-ratio: auto;
    height: min(80svh, 56.25vw);
    max-height: none;
  }
}

/* Facts */

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.facts > div {
  position: relative;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 24px 24px 28px;
  min-width: 0;
}

.facts > div + div {
  border-left: 1px solid var(--line);
}

.facts dd {
  font-size: 19px;
  font-weight: 450;
  line-height: 1.35;
  letter-spacing: -0.005em;
  color: var(--ink);
}

@media (min-width: 640px) and (max-width: 1023px) {
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .facts > div:nth-child(3) {
    border-left: 0;
  }

  .facts > div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 639px) {
  .facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .facts > div {
    grid-template-columns: 7rem minmax(0, 1fr);
    align-items: baseline;
    gap: 12px;
    padding: 14px 0;
  }

  .facts > div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .facts dd {
    font-size: 16px;
  }
}

/* Philosophy */

.philosophy {
  padding-top: var(--sec);
}

.statement {
  padding-inline: var(--inset);
  line-height: 1.04;
}

.statement .s {
  display: block;
}

.statement .s--muted {
  color: var(--muted);
}

.principles-wrap {
  margin-top: 64px;
}

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

.principle {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 32px 24px 40px;
  min-width: 0;
}

.principle:nth-child(even) {
  border-left: 1px solid var(--line);
}

.principle:nth-child(n + 3) {
  border-top: 1px solid var(--line);
}

@media (min-width: 640px) and (max-width: 767px) {
  .principles {
    grid-template-columns: minmax(0, 1fr);
  }

  .principle:nth-child(even) {
    border-left: 0;
  }

  .principle + .principle {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 639px) {
  .philosophy {
    padding-top: 72px;
  }

  .principles-wrap {
    margin-top: 40px;
    border-top: 0;
  }

  .principles {
    grid-template-columns: minmax(0, 1fr);
  }

  .principle {
    gap: 8px;
    padding: 20px 0 24px;
    border-top: 1px solid var(--line);
  }

  .principle:nth-child(even) {
    border-left: 0;
  }
}

/* Foundation */

.foundation {
  padding-top: var(--sec);
  padding-bottom: clamp(48px, 5vw, 72px);
}

@media (min-width: 1024px) {
  .diagram svg.static {
    height: 420px;
  }
}

@media (max-width: 1023px) {
  .has-js .diagram {
    min-height: 470px;
  }
}

.foundation__head {
  padding-inline: var(--inset);
}

.foundation__head .lede {
  margin-top: 24px;
}

.plate-wrap {
  margin-top: 64px;
}

.plate {
  background: var(--white);
  border-inline: 1px solid var(--line);
}

.diagram {
  position: relative;
}

.diagram svg {
  display: block;
  width: 100%;
  height: auto;
}

.diagram text {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  fill: var(--muted);
}

.diagram .t-ink {
  fill: var(--ink);
}

.diagram .t-white {
  fill: var(--white);
}

.diagram .t-small {
  font-size: 11px;
}

.diagram .t-tight {
  font-size: 10px;
  letter-spacing: 0.02em;
}

.diagram .box {
  fill: var(--white);
  stroke: var(--line-strong);
  stroke-width: 1;
}

.diagram .box--navy {
  fill: var(--navy);
  stroke: var(--navy);
}

.diagram .box--dev {
  stroke: var(--line-control);
  stroke-dasharray: 4 4;
}

.diagram .edge {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 1;
  transition:
    stroke 0.25s var(--ease-out),
    stroke-width 0.25s var(--ease-out),
    opacity 0.25s var(--ease-out);
}

.diagram .edge--dev {
  stroke: var(--line-control);
  stroke-dasharray: 4 5;
  opacity: 0.7;
}

.diagram .is-lit {
  stroke: var(--signal);
  stroke-width: 1.5;
  opacity: 1;
}

.diagram .node,
.diagram .company {
  transition: opacity 0.25s var(--ease-out);
}

.diagram.is-focus .edge.is-dim {
  opacity: 0.3;
}

.diagram.is-focus .company.is-dim .box--dev {
  stroke: var(--line-strong);
}

.diagram .row {
  fill: transparent;
  transition: fill 0.35s var(--ease-out);
}

.diagram .row.is-lit {
  fill: rgba(37, 99, 255, 0.08);
  stroke: none;
}

.diagram .dot {
  fill: var(--navy);
  transition: fill 0.35s var(--ease-out);
}

.diagram .dot.is-lit {
  fill: var(--signal);
  stroke: none;
}

.diagram .company {
  cursor: pointer;
  outline: none;
}

.diagram .company:focus-visible .box {
  stroke: var(--signal);
  stroke-width: 2;
}

.diagram .pulse {
  fill: var(--signal);
}

.diagram .pulse--dev {
  fill: var(--white);
  stroke: var(--line-control);
  stroke-width: 1.25;
}

.notes {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.note {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 24px 16px 28px;
  min-width: 0;
}

.note + .note {
  border-left: 1px solid var(--line);
}

.note p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}

.plate__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding-inline: 16px 12px;
  border-top: 1px solid var(--line);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.legend i {
  width: 18px;
  border-top: 1.5px solid var(--line-control);
}

.legend i.dash {
  border-top-style: dashed;
}

.foundation__status {
  margin-top: 32px;
  padding-inline: var(--inset);
}

@media (max-width: 1023px) {
  .notes {
    grid-template-columns: minmax(0, 1fr);
  }

  .note {
    grid-template-columns: 11rem minmax(0, 1fr);
    align-items: baseline;
    gap: 16px;
    padding: 16px 24px;
  }

  .note + .note {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 639px) {
  .foundation {
    padding-top: 72px;
  }

  .foundation__head .lede {
    margin-top: 16px;
  }

  .plate-wrap {
    margin-top: 28px;
  }

  .plate-wrap .frame {
    width: 100%;
  }

  .plate {
    border-inline: 0;
  }

  .diagram {
    padding: 16px var(--m) 8px;
  }

  .legend {
    gap: 8px 16px;
  }

  .legend span {
    gap: 8px;
  }

  .note {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 14px var(--m);
  }

  .plate__foot {
    min-height: 44px;
    padding: 0 calc(var(--m) - 10px) 0 var(--m);
  }

  .foundation__status {
    margin-top: 24px;
  }
}

/* Diagram entrance: the root, its edges drawing, layers rising, company edges, companies */
.diagram .pre .enter,
.diagram .pre .fade {
  opacity: 0;
}

.diagram .pre .enter {
  transform: translateY(8px);
}

.diagram .pre .draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.diagram .run .enter {
  transition:
    opacity 0.4s var(--ease-out),
    transform 0.4s var(--ease-out);
}

.diagram .run .fade {
  transition: opacity 0.5s var(--ease-out);
}

.diagram .run .draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.6s var(--ease-io);
}

.dly-1 {
  --d: 0.09s;
}

.dly-2 {
  --d: 0.16s;
}

.dly-3 {
  --d: 0.25s;
}

/* Contact */

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

.contact__lead {
  display: grid;
  align-content: start;
  padding: var(--sec) var(--inset);
  min-width: 0;
}

.contact__lead .lede {
  margin-top: 24px;
}

.mail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 48px;
}

.mail__addr {
  position: relative;
  font-size: clamp(1.75rem, 2.85vw, 2.75rem);
  font-weight: 400;
  font-stretch: 108%;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--navy);
  text-decoration: none;
  overflow-wrap: anywhere;
  padding-bottom: 6px;
}

.mail__addr::before {
  content: "";
  position: absolute;
  inset: -7px 0;
}

.mail__addr::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--line-strong);
  transform-origin: left;
  transition: background-color 0.28s var(--ease-out);
}

@media (hover: hover) {
  .mail__addr:hover::after {
    background: var(--signal);
  }
}

.doors {
  border-left: 1px solid var(--line);
  padding-block: calc(var(--sec) - 28px);
  min-width: 0;
}

.door {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 28px 56px 32px 24px;
  text-decoration: none;
  transition: background-color 0.28s var(--ease-out);
}

.door + .door {
  border-top: 1px solid var(--line);
}

.door .arrow {
  position: absolute;
  top: 34px;
  right: 24px;
  color: var(--navy);
}

.door .h3 {
  justify-self: start;
  position: relative;
  padding-bottom: 2px;
}

.door .h3::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}

@media (hover: hover) {
  .door:hover {
    background: var(--white);
  }

  .door:hover .arrow {
    transform: rotate(-135deg) translateY(3px);
  }

  .door:hover .h3::after {
    transform: scaleX(1);
  }
}

@media (max-width: 1023px) {
  .contact {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact__lead {
    padding-bottom: 32px;
  }

  .doors {
    border-left: 0;
    padding: 0 0 72px;
  }

  .door {
    min-height: 72px;
    padding-inline: var(--inset) 48px;
  }

  .door + .door,
  .door:first-child {
    border-top: 1px solid var(--line);
  }

  .door .arrow {
    right: var(--inset);
  }
}

@media (max-width: 639px) {
  .contact__lead {
    padding-top: 72px;
  }

  .contact__lead .lede {
    margin-top: 12px;
  }

  .mail {
    margin-top: 24px;
  }

  .mail__addr {
    font-size: clamp(1.375rem, 6vw, 1.5rem);
  }

  .door {
    padding: 22px 40px 24px 0;
  }

  .door .arrow {
    top: 28px;
    right: 4px;
  }
}

/* Footer */

.site-foot {
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.foot {
  display: grid;
  grid-template-columns: 3fr 6fr 3fr;
  align-items: stretch;
}

.foot > * {
  padding: 28px var(--inset) 40px;
  min-width: 0;
}

.foot__legal {
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.foot__legal p {
  max-width: 64ch;
}

.foot__brand {
  padding-top: 31px !important;
}

.foot__brand img {
  width: 148px;
  height: 14px;
}

.foot__links {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  padding-top: 16px;
}

.foot__links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
}

@media (hover: hover) {
  .foot__links a:hover {
    color: var(--ink);
  }
}

@media (max-width: 1023px) {
  .foot {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .foot__brand {
    padding-top: 16px !important;
  }

  .foot > * {
    padding: 16px var(--inset) 0;
  }

  .foot__links {
    padding-top: 16px;
    gap: 20px;
  }

  .foot__legal {
    grid-column: 1 / -1;
    grid-row: 2;
    border: 0;
    padding-top: 12px;
    padding-bottom: 32px;
  }
}

/* Text pages */

.page-doc {
  padding: var(--sec) var(--inset) 96px;
}

.page-doc .d2 {
  margin-bottom: 16px;
}

.page-doc .stamp {
  font-size: 13px;
  color: var(--muted);
}

.page-doc .body + .body {
  margin-top: 24px;
}

.page-doc .stamp + .body {
  margin-top: 40px;
}

.page-doc a:not(.btn) {
  color: var(--navy);
}

.page-doc .btn {
  margin-top: 40px;
}

/* Motion: load sequence, scroll moments and reveals. Everything is visible without it. */

@media (prefers-reduced-motion: no-preference) {
  @media (min-width: 640px) {
    .rails::before,
    .rails::after {
      animation: rail-draw 0.9s var(--ease-out) both;
    }

    .rails::after {
      animation-delay: 0.06s;
    }
  }

  .hero h1 .line > span {
    animation: line-rise 0.9s var(--ease-out) both;
  }

  @media (max-width: 639px) {
    .hero h1 .line > span {
      animation-name: fade-in;
    }
  }

  .hero h1 .line:nth-child(1) > span {
    animation-delay: 0.12s;
  }

  .hero h1 .line:nth-child(2) > span,
  .hero h1 .line:nth-child(3) > span {
    animation-delay: 0.21s;
  }

  .hero .lede {
    animation: fade-rise 0.6s var(--ease-out) 0.48s both;
  }

  .hero .btn--solid,
  .hero__copy .label {
    animation: fade-in 0.5s var(--ease-out) 0.6s both;
  }

  .hero__copy .label {
    animation-delay: 0s;
  }

  @keyframes rail-draw {
    from {
      transform: scaleY(0);
    }
  }

  @keyframes line-rise {
    from {
      transform: translateY(105%);
    }
  }

  @keyframes fade-rise {
    from {
      opacity: 0;
      transform: translateY(12px);
    }
  }

  @keyframes fade-in {
    from {
      opacity: 0;
    }
  }

  /* Reveals: hidden only once JS is running, shown when they enter */
  .has-js .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition:
      opacity 0.8s var(--ease-out),
      transform 0.8s var(--ease-out);
    transition-delay: var(--d, 0s);
  }

  .has-js .reveal.is-in {
    opacity: 1;
    transform: none;
  }

  .has-js .reveal-rule {
    position: relative;
  }

  .has-js .reveal-rule::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -1px;
    height: 1px;
    background: var(--line-strong);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s var(--ease-out);
    transition-delay: var(--d, 0s);
  }

  .has-js .reveal-rule.is-in::before {
    transform: scaleX(1);
    opacity: 0;
    transition:
      transform 0.6s var(--ease-out),
      opacity 0.6s linear 0.9s;
    transition-delay: var(--d, 0s), calc(var(--d, 0s) + 0.6s);
  }

  @supports (animation-timeline: view()) {
    @media (min-width: 1024px) {
      .hero {
        view-timeline: --hero block;
      }

      .hero__visual {
        animation: lattice-set linear both;
        animation-timeline: --hero;
        animation-range: exit 0% exit 100%;
      }

      @keyframes lattice-set {
        to {
          transform: translate3d(0, calc(var(--lat) * 0.5), 0);
        }
      }
    }

    @media (min-width: 1024px) {
      .city {
        view-timeline: --city block;
      }

      .city__frame {
        --side: max(var(--m), calc((100% - var(--frame-max)) / 2));
        animation: city-open linear both;
        animation-timeline: --city;
        animation-range: entry 0% cover 50%;
      }

      @keyframes city-open {
        0%,
        25% {
          clip-path: inset(0 var(--side));
        }
        100% {
          clip-path: inset(0 0);
        }
      }
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.12s !important;
  }
}

@media (prefers-contrast: more) {
  :root {
    --line: #7d889b;
    --line-strong: #7d889b;
  }
}

@media (forced-colors: active) {
  .diagram .box,
  .diagram .edge {
    stroke: CanvasText;
  }

  .diagram .is-lit {
    stroke: Highlight;
  }
}

/* Lenis */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

/* Print: everything visible, header in flow */
@media print {
  .has-js .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .site-head {
    position: static;
  }

  .pause,
  .rails {
    display: none;
  }
}
