/* The Empathy Firm. Hand-written styles, no framework. Built into public/assets/ by build.py.
   Look and feel follow the brand guide (EMP_BRANDGUIDE_20220509_001): aqua, beige, and black;
   Cholens for headings, Gotham Book for text; round solid shapes with fine line work. */

@font-face {
  font-family: "Cholens";
  src: url("/assets/fonts/cholens.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Gotham";
  src: url("/assets/fonts/gotham-book.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* brand colors */
  --aqua: #64a0c9;
  --beige: #f3e5ce;
  --black: #000000;
  /* tints made from them */
  --aqua-ink: #2a6792; /* aqua dark enough to read as text on beige */
  --aqua-soft: #b7d5e8;
  --sky: #e2eef5;
  --cream: #faf3e6;
  --stone: #d2d5cc;

  --font-display: "Cholens", "Cooper Black", Georgia, serif;
  --font-text: "Gotham", "Montserrat", "Avenir Next", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --section: clamp(4.25rem, 9vw, 8.5rem);
  --header-h: 76px;

  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --r-panel: 28px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  background: var(--beige);
}
html:has(dialog[open]) {
  overflow: hidden;
}

body {
  margin: 0;
  -webkit-tap-highlight-color: rgba(100, 160, 201, 0.25);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.62;
  font-synthesis: none;
  color: var(--black);
  background: var(--beige);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

strong,
b {
  font-family: var(--font-display);
  font-weight: 400;
}

::selection {
  background: var(--aqua);
  color: var(--black);
}

:focus-visible {
  outline: 2px solid var(--focus, var(--black));
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--black);
  color: var(--beige);
  font-family: var(--font-display);
  text-decoration: none;
}
.skip:focus {
  top: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Grounds. Each restates color so text inside really takes the new ink. */
.on-beige {
  --fg: var(--black);
  --fg-soft: var(--black);
  --rule: rgba(0, 0, 0, 0.16);
  --mark: var(--aqua-ink);
  --focus: var(--black);
  background: var(--beige);
  color: var(--fg);
}
.on-cream {
  --fg: var(--black);
  --fg-soft: var(--black);
  --rule: rgba(0, 0, 0, 0.16);
  --mark: var(--aqua-ink);
  --focus: var(--black);
  background: var(--cream);
  color: var(--fg);
}
.on-aqua {
  --fg: var(--black);
  --fg-soft: var(--black);
  --rule: rgba(0, 0, 0, 0.28);
  --mark: var(--black);
  --focus: var(--black);
  background: var(--aqua);
  color: var(--fg);
}
.on-black {
  --fg: var(--beige);
  --fg-soft: #c9bda9;
  --rule: rgba(243, 229, 206, 0.2);
  --mark: var(--aqua);
  --focus: var(--aqua);
  background: var(--black);
  color: var(--fg);
}

/* the soft, grainy sky from the brand guide */
.sky {
  position: relative;
  isolation: isolate;
  --fg: var(--black);
  --fg-soft: var(--black);
  --rule: rgba(0, 0, 0, 0.16);
  --mark: var(--aqua-ink);
  color: var(--fg);
  background:
    radial-gradient(58% 66% at 6% 0%, rgba(100, 160, 201, 0.62), transparent 64%),
    radial-gradient(46% 54% at 96% 6%, rgba(183, 226, 246, 0.85), transparent 62%),
    radial-gradient(70% 60% at 62% 104%, var(--beige), transparent 72%),
    linear-gradient(180deg, #dcecf5 0%, #f4eee2 62%, var(--beige) 100%);
}
.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.2;
  mix-blend-mode: soft-light;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Type ---------- */

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  text-wrap: balance;
}
.h1 {
  font-size: clamp(2.6rem, 5.7vw, 5.25rem);
  line-height: 1;
  letter-spacing: -0.012em;
}
.h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
}
.h3 {
  font-size: clamp(1.3rem, 1.9vw, 1.6rem);
  line-height: 1.16;
}

/* Emphasis the way the logo does it: the word drawn in outline. */
.outline {
  color: transparent;
  -webkit-text-stroke: 0.024em var(--fg);
  white-space: nowrap;
}
.on-black .mark {
  color: var(--aqua);
}

p {
  margin: 0;
  text-wrap: pretty;
}
.lede {
  max-width: 34em;
  font-size: clamp(1.08rem, 1.4vw, 1.24rem);
  line-height: 1.55;
  color: var(--fg-soft);
}

/* The hairline and two small labels that open every page of the brand guide. */
.rule {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding-top: 0.95rem;
  border-top: 1px solid var(--fg);
  font-size: 0.95rem;
  line-height: 1.3;
}
.rule span:last-child {
  text-align: right;
}
@media (max-width: 560px) {
  .rule {
    font-size: 0.86rem;
  }
}

.link {
  display: inline-block;
  padding-block: 0.6rem;
  color: var(--fg);
  font-family: var(--font-display);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.32em;
  transition: color 0.16s var(--ease);
}
.link:hover {
  color: var(--mark);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  height: 3.35rem;
  padding: 0 1.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.14s var(--ease), background-color 0.16s var(--ease), color 0.16s var(--ease), border-color 0.16s var(--ease);
}
.btn:active {
  transform: scale(0.97);
}
.btn--dark {
  background: var(--black);
  color: var(--beige);
}
.btn--aqua {
  background: var(--aqua);
  color: var(--black);
}
.btn--line {
  background: transparent;
  color: var(--fg);
  border-color: var(--fg);
}
.btn--sm {
  height: 2.7rem;
  padding: 0 1.2rem;
  font-size: 0.98rem;
}
.btn__arrow {
  width: 1.05em;
  height: 1.05em;
  transition: transform 0.2s var(--ease);
}
.btn[disabled] {
  opacity: 0.55;
  cursor: default;
}
@media (hover: hover) and (pointer: fine) {
  .btn--dark:hover {
    background: var(--aqua);
    color: var(--black);
  }
  .on-aqua .btn--dark:hover {
    background: var(--beige);
    color: var(--black);
  }
  .btn--aqua:hover {
    background: var(--beige);
  }
  .btn--line:hover {
    background: var(--fg);
    color: var(--beige);
  }
  .btn:hover .btn__arrow {
    transform: translateX(3px);
  }
}

/* A solid shape with a fine line set just outside it: the brand's panel. */
.panel {
  position: relative;
  border-radius: var(--r-panel);
  background: var(--beige);
  color: var(--black);
}
.panel::before {
  content: "";
  position: absolute;
  inset: -9px;
  border: 1px solid var(--panel-line, var(--black));
  border-radius: calc(var(--r-panel) + 9px);
  pointer-events: none;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  color: var(--black);
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.site-header.is-solid {
  background: rgba(243, 229, 206, 0.93);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: rgba(0, 0, 0, 0.14);
}
.site-header__row {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  color: var(--black);
}
/* the primary logo. The hairline stroke keeps the outlined word readable at this small size. */
.brand svg {
  width: auto;
  height: 54px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 3;
}
.site-nav {
  display: flex;
  gap: clamp(1.1rem, 2.4vw, 2.2rem);
  margin-left: auto;
}
.site-nav a {
  padding: 0.5rem 0;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--black);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 4px) / 0 1px no-repeat;
  transition: background-size 0.25s var(--ease);
}
.site-nav a:hover {
  background-size: 100% 1px;
}
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--black);
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 6px auto;
  background: currentColor;
  transition: transform 0.22s var(--ease);
}
.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2.5rem;
  padding: calc(var(--header-h) + 1rem) var(--gutter) 2.5rem;
  background: var(--beige);
  color: var(--black);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s var(--ease), visibility 0s linear 0.22s;
}
.menu.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.22s var(--ease);
}
.menu nav {
  display: grid;
  gap: 0.4rem;
}
.menu nav a {
  font-family: var(--font-display);
  font-size: 2.2rem;
  line-height: 1.25;
  color: var(--black);
  text-decoration: none;
}
.menu .btn {
  align-self: flex-start;
}

@media (max-width: 900px) {
  .site-nav {
    display: none;
  }
  .site-header__row {
    gap: 0.75rem;
  }
  .site-header .btn {
    margin-left: auto;
  }
  .menu-toggle {
    display: block;
  }
}
@media (max-width: 400px) {
  .brand svg {
    height: 48px;
  }
  .site-header .btn {
    padding: 0 0.95rem;
  }
}
@media (max-width: 350px) {
  .site-header__row {
    gap: 0.45rem;
  }
  .brand svg {
    height: 44px;
  }
  .site-header .btn {
    padding: 0 0.7rem;
    font-size: 0.9rem;
  }
}

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

.hero {
  padding-top: calc(var(--header-h) + clamp(0.75rem, 2vw, 1.5rem));
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  min-height: min(calc(100svh - var(--header-h) - 4.5rem), 780px);
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3.5rem, 8vw, 6.5rem);
}
.hero__copy {
  min-width: 0;
}
.hero__copy .h1 {
  max-width: 10.5em;
}
.hero__copy .lede {
  margin-top: 1.7rem;
  max-width: 30em;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.1rem 1.9rem;
  margin-top: 2.3rem;
}

/* the primary logo on an aqua pill, a ring of words turning around it, a fine orbit line, two dots */
.orbit {
  position: relative;
  justify-self: center;
  width: min(100%, clamp(300px, 36vw, 520px));
  aspect-ratio: 1;
}
.orbit > * {
  position: absolute;
}
.orbit__words {
  inset: 0;
  width: 100%;
  height: 100%;
  animation: turn 70s linear infinite;
}
.orbit__words text {
  font-family: var(--font-text);
  font-size: 21.5px;
  letter-spacing: 0.06em;
  fill: var(--black);
}
.orbit__badge {
  left: 50%;
  top: 50%;
  width: 58%;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 26px 30px rgba(42, 103, 146, 0.28));
}
.orbit__badge svg {
  display: block;
  width: 100%;
  height: auto;
}
.orbit__logo {
  left: 50%;
  top: 45.5%;
  width: 49%;
  transform: translate(-50%, -50%);
}
.orbit__logo svg {
  display: block;
  width: 100%;
  height: auto;
  fill: var(--black);
}
.orbit__line {
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.orbit__line ellipse,
.orbit__line path {
  fill: none;
  stroke: var(--black);
  stroke-width: 1.1;
  vector-effect: non-scaling-stroke;
}
.orbit__dot {
  width: 3.4%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--beige);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.9);
}
.orbit__dot--a {
  left: 10.6%;
  top: 58.8%;
}
.orbit__dot--b {
  right: 10.6%;
  top: 54.5%;
  background: var(--black);
}
@keyframes turn {
  to {
    transform: rotate(360deg);
  }
}

/* hero entrance (CSS only, so it never waits on scripts) */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.hero__copy > * {
  animation: rise 0.9s var(--ease) both;
}
.hero__copy > :nth-child(2) {
  animation-delay: 0.08s;
}
.hero__copy > :nth-child(3) {
  animation-delay: 0.16s;
}
.hero .orbit {
  animation: fade 1.1s 0.1s ease-out both;
}

@media (max-width: 560px) {
  /* sized so the outlined phrase, which never breaks, still fits the narrowest phones */
  .h1 {
    font-size: clamp(2.05rem, 11.2vw, 3.2rem);
  }
}
@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 2.75rem;
  }
  .orbit {
    width: min(86vw, 400px);
  }
}

/* ---------- Section scaffolding ---------- */

.section {
  position: relative;
  padding-block: clamp(1.5rem, 3vw, 2.25rem) var(--section);
}
.section > .wrap > .rule {
  margin-bottom: clamp(3rem, 7vw, 6rem);
}
.sec-head {
  display: grid;
  gap: 1.4rem;
  max-width: 52rem;
}

/* scroll reveal: only when scripts are running */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}
[data-reveal="2"] { --d: 0.08s; }
[data-reveal="3"] { --d: 0.16s; }
[data-reveal="4"] { --d: 0.24s; }

/* ---------- Coverage ---------- */

.formats {
  list-style: none;
  margin: clamp(2.5rem, 5vw, 4.25rem) 0 0;
  padding: 0;
  border-bottom: 1px solid var(--rule);
}
.format {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 5fr) minmax(0, 2fr);
  align-items: center;
  gap: 1rem clamp(1.5rem, 4vw, 4rem);
  padding-block: clamp(1.5rem, 3vw, 2.4rem);
  border-top: 1px solid var(--rule);
}
.format__name {
  font-size: clamp(1.9rem, 3.8vw, 3.2rem);
  line-height: 1;
}
.format__desc {
  max-width: 30em;
  color: var(--fg-soft);
}
.format__tag {
  justify-self: end;
  display: inline-grid;
  place-items: center;
  min-width: 5.2rem;
  height: 2.5rem;
  padding: 0 1.1rem;
  border-radius: 999px;
  background: var(--aqua);
  color: var(--black);
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1;
}
.coverage__note {
  max-width: 27em;
  margin: clamp(2rem, 4vw, 3.25rem) 0 0 auto;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.9vw, 1.6rem);
  line-height: 1.25;
}
@media (max-width: 760px) {
  .format {
    grid-template-columns: 1fr auto;
  }
  .format__desc {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

/* ---------- Finish line (the two timelines) ---------- */

.finish {
  overflow: clip;
}
.finish__inner {
  position: relative;
}
.finish .rule {
  margin-bottom: clamp(3rem, 7vw, 6rem);
}
.tracks {
  display: grid;
  gap: clamp(2rem, 4.5vw, 3.25rem);
  margin-top: clamp(2.5rem, 5.5vw, 4.25rem);
}
.track__label {
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.2;
  color: var(--fg-soft);
}
.track--work .track__label {
  color: var(--aqua);
}
.track__rail {
  position: relative;
  height: 1px;
  margin-top: 1.35rem;
  background: var(--rule);
}
.track__rail i {
  position: absolute;
  inset: 0;
  transform-origin: left center;
  will-change: transform;
}
.track--fade .track__rail i {
  background: linear-gradient(to right, var(--beige) 0%, rgba(243, 229, 206, 0.5) 34%, rgba(243, 229, 206, 0.12) 70%, transparent 100%);
}
.track--work .track__rail i {
  background: var(--aqua);
  height: 2px;
  top: -0.5px;
}
.track__steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.track__steps li {
  position: relative;
  padding-top: 1.35rem;
  will-change: opacity;
}
.track__steps li::before {
  content: "";
  position: absolute;
  left: 0;
  top: -6px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--beige);
}
.track--work .track__steps li::before {
  background: var(--aqua);
  box-shadow: 0 0 0 5px rgba(100, 160, 201, 0.22);
}
.track__when {
  display: block;
  font-size: 0.9rem;
  color: var(--fg-soft);
  font-variant-numeric: tabular-nums;
}
.track__what {
  display: block;
  margin-top: 0.4rem;
  max-width: 13em;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.65vw, 1.4rem);
  line-height: 1.18;
}
/* resting state, also what shows without scripts: one path fades, the other holds */
.track--fade .track__steps li:nth-child(2) {
  opacity: 0.66;
}
.track--fade .track__steps li:nth-child(3) {
  opacity: 0.44;
}
.track--fade .track__steps li:nth-child(4) {
  opacity: 0.3;
}

@media (max-width: 760px) {
  .track {
    position: relative;
    padding-left: 1.6rem;
  }
  .track__rail {
    position: absolute;
    left: 5px;
    top: 2.7rem;
    bottom: 0.6rem;
    width: 1px;
    height: auto;
    margin: 0;
  }
  .track__rail i {
    transform-origin: center top;
  }
  .track--fade .track__rail i {
    background: linear-gradient(to bottom, var(--beige) 0%, rgba(243, 229, 206, 0.5) 34%, rgba(243, 229, 206, 0.12) 70%, transparent 100%);
  }
  .track--work .track__rail i {
    width: 2px;
    height: auto;
    left: -0.5px;
    top: 0;
  }
  .track__steps {
    grid-template-columns: 1fr;
    gap: 1.3rem;
    margin-top: 1.25rem;
  }
  .track__steps li {
    padding-top: 0;
  }
  .track__steps li::before {
    left: -1.6rem;
    top: 0.38rem;
  }
  .track__what {
    max-width: none;
  }
}

/* desktop: hold the timelines in place while the scroll plays them.
   site.js adds .is-loose when the block is taller than the screen, so it is never cut off. */
@media (min-width: 900px) and (min-height: 700px) and (prefers-reduced-motion: no-preference) {
  .js .finish:not(.is-loose) {
    height: 230vh;
    padding-block: 0;
  }
  .js .finish:not(.is-loose) .finish__stick {
    position: sticky;
    top: 0;
    height: 100vh;
    display: grid;
    align-content: center;
    padding-block: var(--header-h) clamp(1.25rem, 3.5vh, 2.5rem);
  }
  .js .finish:not(.is-loose) .rule {
    margin-bottom: clamp(1.25rem, 5vh, 3.5rem);
  }
}
/* the same, on shorter laptop screens: less air so every line stays on screen */
@media (min-width: 900px) and (min-height: 700px) and (max-height: 880px) and (prefers-reduced-motion: no-preference) {
  .js .finish:not(.is-loose) .h2 {
    font-size: clamp(2rem, 6.4vh, 3.4rem);
  }
  .js .finish:not(.is-loose) .sec-head {
    gap: clamp(0.8rem, 2vh, 1.4rem);
  }
  .js .finish:not(.is-loose) .tracks {
    gap: clamp(1.4rem, 4.6vh, 2.75rem);
    margin-top: clamp(1.4rem, 4.4vh, 3rem);
  }
  .js .finish:not(.is-loose) .track__rail {
    margin-top: 1rem;
  }
  .js .finish:not(.is-loose) .track__steps li {
    padding-top: 1.1rem;
  }
}

/* ---------- Leverage ---------- */

.leverage__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 8vw, 8rem);
  align-items: start;
}
.leverage__intro {
  position: sticky;
  top: calc(var(--header-h) + 3rem);
  display: grid;
  gap: 1.5rem;
}
.leverage__intro .btn {
  justify-self: start;
  margin-top: 0.75rem;
}
.uses {
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--rule);
}
.use {
  display: grid;
  gap: 0.55rem;
  padding-block: clamp(1.5rem, 2.8vw, 2.1rem);
  border-top: 1px solid var(--rule);
  transition: opacity 0.4s var(--ease);
}
.use p {
  max-width: 33em;
  color: var(--fg-soft);
}
@media (min-width: 901px) {
  .js .uses.is-tracking .use {
    opacity: 0.36;
  }
  .js .uses.is-tracking .use.is-current {
    opacity: 1;
  }
}
@media (max-width: 900px) {
  .leverage__grid {
    grid-template-columns: 1fr;
  }
  .leverage__intro {
    position: static;
  }
}

/* ---------- Why empathy ---------- */

.why {
  overflow: hidden;
}
.why__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.why__photo {
  position: relative;
  margin: 0 0 0 calc(var(--gutter) * -1);
}
.why__photo img {
  width: 100%;
  height: auto;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 9%, #000 88%, transparent 100%), linear-gradient(to bottom, #000 72%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 9%, #000 88%, transparent 100%), linear-gradient(to bottom, #000 72%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.why__copy {
  display: grid;
  gap: 1.4rem;
}
.why__copy p {
  color: var(--fg-soft);
  max-width: 31em;
}
.why__quote {
  margin: clamp(3rem, 7vw, 6rem) 0 0;
  padding-top: clamp(2.25rem, 4.5vw, 3.5rem);
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: minmax(0, 9fr) minmax(0, 3fr);
  gap: 2rem;
  align-items: end;
}
.why__quote p {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 3rem);
  line-height: 1.1;
  text-wrap: balance;
}
.why__quote footer {
  justify-self: end;
  text-align: right;
  font-size: 0.92rem;
  color: var(--fg-soft);
}
.why__quote footer b {
  display: block;
  font-size: 1.05rem;
  color: var(--fg);
}
@media (max-width: 900px) {
  .why__grid {
    grid-template-columns: 1fr;
  }
  .why__photo {
    margin-inline: calc(var(--gutter) * -1);
  }
  .why__quote {
    grid-template-columns: 1fr;
  }
  .why__quote footer {
    justify-self: start;
    text-align: left;
  }
}

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

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.75rem, 3vw, 2.5rem);
  margin: clamp(2.75rem, 6vw, 4.5rem) 0 0;
  padding: 0;
  list-style: none;
}
.step {
  counter-increment: step;
  display: grid;
  align-content: start;
  gap: 0.7rem;
  padding: 1.6rem 1.5rem 1.8rem;
}
.step::after {
  /* the step number, in a black dot riding the corner of the panel */
  content: counter(step);
  position: absolute;
  top: -1.35rem;
  right: 1.4rem;
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 50%;
  background: var(--black);
  color: var(--beige);
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1;
}
.step p {
  color: var(--black);
  font-size: 1rem;
}
@media (max-width: 1040px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 3rem;
  }
}
@media (max-width: 560px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* ---------- About us ---------- */

.about {
  overflow: hidden;
}
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: center;
}
.about__copy {
  display: grid;
  gap: 1.35rem;
}
.about__copy p {
  max-width: 33em;
  color: var(--fg-soft);
}
.about__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0.6rem 0 0;
  padding: 0;
  list-style: none;
}
.about__facts li {
  display: inline-grid;
  place-items: center;
  height: 2.5rem;
  padding: 0 1.1rem;
  border: 1px solid var(--black);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.98rem;
  line-height: 1;
}

/* the founder portrait: a pill of sky, a black twin behind it, a fine outline,
   an orbit line, and a turning stamp. Each piece moves a little on its own. */
.founder {
  position: relative;
  justify-self: center;
  width: min(100%, clamp(280px, 30vw, 420px));
  margin: 0;
  aspect-ratio: 1200 / 1560;
}
.founder > * {
  position: absolute;
}
.founder__twin {
  inset: 11% 0 0 0;
  border-radius: 999px;
  background: var(--black);
  transform: translate(-7%, 4.5%);
}
.founder__outline {
  inset: 11% 0 0 0;
  border: 1px solid var(--black);
  border-radius: 999px;
  transform: translate(8%, -5%);
}
.founder__window {
  inset: 11% 0 0 0;
  border-radius: 999px;
  overflow: hidden;
  background:
    radial-gradient(90% 60% at 30% 12%, #cfe6f4, transparent 70%),
    linear-gradient(180deg, #8fbcdb 0%, var(--aqua) 55%, #4f8fbd 100%);
}
.founder__subject {
  inset: 0;
  /* free at the top so the head rises out of the pill, rounded at the bottom to stay inside it */
  clip-path: inset(-20% 0 0 0 round 0 0 999px 999px);
}
.founder__subject img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}
.founder__ring {
  left: -19%;
  top: 52%;
  width: 138%;
  height: 26%;
  overflow: visible;
  transform: rotate(-9deg);
  pointer-events: none;
}
.founder__ring ellipse {
  fill: none;
  stroke: var(--black);
  stroke-width: 1.1;
  vector-effect: non-scaling-stroke;
}
.founder__dot {
  width: 4.2%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--cream);
  box-shadow: 0 0 0 1px var(--black);
}
.founder__dot--a {
  left: -16%;
  top: 61%;
}
.founder__dot--b {
  right: -13%;
  top: 60%;
  background: var(--aqua);
}
.founder__stamp {
  right: -21%;
  top: 3%;
  width: 37%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--black);
  color: var(--beige);
}
.founder__stamp svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.founder__stamp .spin {
  transform-origin: 50% 50%;
  animation: turn 26s linear infinite;
}
.founder__stamp text {
  font-family: var(--font-display);
  font-size: 13.2px;
  letter-spacing: 0.05em;
  fill: var(--beige);
}
.founder__stamp .oval {
  fill: var(--aqua);
}
@media (max-width: 900px) {
  .about__grid {
    grid-template-columns: 1fr;
    gap: 3.25rem;
  }
  .founder {
    width: min(64vw, 320px);
  }
}

/* ---------- FAQ ---------- */

.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: start;
}
.faq__grid > .h2 {
  position: sticky;
  top: calc(var(--header-h) + 3rem);
}
.faq__list {
  border-bottom: 1px solid var(--rule);
}
.faq__item {
  border-top: 1px solid var(--rule);
}
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.45rem;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  line-height: 1.2;
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker {
  display: none;
}
.faq__item summary::after {
  content: "";
  flex: none;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background:
    linear-gradient(var(--beige), var(--beige)) center / 0.8rem 1.5px no-repeat,
    linear-gradient(var(--beige), var(--beige)) center / 1.5px 0.8rem no-repeat,
    var(--black);
  transition: transform 0.25s var(--ease);
}
.faq__item[open] summary::after {
  transform: rotate(45deg);
}
.faq__item p {
  max-width: 36em;
  padding-bottom: 1.7rem;
  color: var(--fg-soft);
}
@media (max-width: 900px) {
  .faq__grid {
    grid-template-columns: 1fr;
  }
  .faq__grid > .h2 {
    position: static;
  }
}

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

.contact {
  overflow: hidden;
}
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(2.75rem, 7vw, 7rem);
  align-items: start;
}
.contact__pitch {
  display: grid;
  gap: 1.6rem;
}
.contact__pitch .h2 {
  font-size: clamp(2.2rem, 4.8vw, 4.2rem);
  line-height: 1.02;
}
.contact__pitch .btn {
  justify-self: start;
  margin-top: 0.75rem;
}
.note {
  --panel-line: var(--beige);
  display: grid;
  gap: 1.05rem;
  margin: 9px;
  padding: clamp(1.5rem, 3vw, 2.2rem);
}
.note__title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1.15;
}
.note__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.05rem;
}
.field {
  display: grid;
  gap: 0.4rem;
}
.field label {
  font-size: 0.9rem;
  color: var(--black);
}
.field input,
.field textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.55);
  border-radius: 14px;
  background: var(--cream);
  color: var(--black);
  font: inherit;
  font-size: 1rem;
  caret-color: var(--aqua-ink);
  transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.field textarea {
  min-height: 7.25rem;
  resize: vertical;
}
.field input:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--black);
  box-shadow: 0 0 0 3px var(--aqua);
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.note__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.25rem;
}
.note__status {
  flex: 1 1 12rem;
  font-size: 0.95rem;
}
.note__status[data-state="error"] {
  color: #8a1f12;
}
.note__small {
  font-size: 0.86rem;
  color: var(--black);
}
.note__small a {
  display: inline-block;
  margin: -0.8rem -0.4rem;
  padding: 0.8rem 0.4rem;
  color: inherit;
  text-underline-offset: 0.25em;
}
@media (max-width: 900px) {
  .contact__grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .note__row {
    grid-template-columns: 1fr;
  }
}

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

.site-footer {
  padding: clamp(3rem, 7vw, 5.5rem) 0 2.25rem;
  border-top: 1px solid var(--rule);
}
.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2.5rem;
}
.site-footer__mark {
  display: block;
  width: min(100%, clamp(260px, 38vw, 520px));
  color: var(--beige);
}
.site-footer__mark svg {
  width: 100%;
  height: auto;
  fill: currentColor;
}
.site-footer__nav {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 0 2.75rem;
}
.site-footer__nav a,
.site-footer__row a {
  display: inline-block;
  padding-block: 0.6rem;
}
.site-footer__row {
  align-items: center;
}
@media (max-width: 420px) {
  .site-footer__nav {
    gap: 0 1.25rem;
  }
  .site-footer__nav a {
    font-size: 0.95rem;
    white-space: nowrap;
  }
}
.site-footer__nav a,
.site-footer__row a {
  color: var(--beige);
  font-family: var(--font-display);
  text-decoration: none;
  transition: color 0.16s var(--ease);
}
.site-footer__nav a:hover,
.site-footer__row a:hover {
  color: var(--aqua);
}
.site-footer__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  margin-top: clamp(2.25rem, 5vw, 3.5rem);
  padding-top: 0.95rem;
  border-top: 1px solid var(--beige);
  font-size: 0.95rem;
}

/* ---------- Booking window ---------- */

.book {
  width: min(960px, calc(100vw - 2 * 14px));
  max-width: none;
  max-height: none;
  padding: 9px;
  border: 0;
  background: transparent;
  color: var(--black);
  overflow: visible;
}
.book::backdrop {
  background: rgba(0, 0, 0, 0.62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.book[open] {
  animation: rise 0.35s var(--ease) both;
}
.book__panel {
  --panel-line: var(--beige);
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: min(820px, calc(100dvh - 2 * 22px));
  overflow: visible;
}
.book__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.15rem 1.05rem 1.6rem;
  border-bottom: 1px solid var(--black);
}
.book__head p {
  font-size: 0.92rem;
  color: var(--black);
}
.book__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.05;
}
.book__close {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  border: 0;
  border-radius: 50%;
  background: var(--black);
  color: var(--beige);
  cursor: pointer;
  transition: background-color 0.16s var(--ease), color 0.16s var(--ease), transform 0.14s var(--ease);
}
.book__close:hover {
  background: var(--aqua);
  color: var(--black);
}
.book__close:active {
  transform: scale(0.94);
}
.book__close svg {
  width: 1.05rem;
  height: 1.05rem;
}
.book__frame {
  position: relative;
  min-height: 0;
  background: var(--beige);
}
.book__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.book__loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--black);
}
.book__alt {
  padding: 0.8rem 1.6rem 0.95rem;
  border-top: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 0 0 var(--r-panel) var(--r-panel);
  font-size: 0.88rem;
  color: var(--black);
}
.book__alt a {
  color: var(--black);
  text-underline-offset: 0.25em;
}
@media (max-width: 560px) {
  .book {
    width: calc(100vw - 2 * 10px);
  }
  .book__head {
    padding: 0.9rem 0.9rem 0.85rem 1.2rem;
  }
  .book__alt {
    padding-inline: 1.2rem;
  }
}

/* ---------- Plain pages (privacy, 404) ---------- */

.page {
  padding-top: calc(var(--header-h) + clamp(0.75rem, 2vw, 1.5rem));
  padding-bottom: var(--section);
  min-height: 70vh;
}
.page .rule {
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.page .h1 {
  font-size: clamp(2.3rem, 4.6vw, 4rem);
}
.prose {
  max-width: 44rem;
  margin-top: 2.25rem;
  display: grid;
  gap: 1.05rem;
}
.prose h2 {
  margin-top: 1.6rem;
  font-size: 1.5rem;
  line-height: 1.15;
}
.prose p,
.prose li {
  color: var(--fg-soft);
}
.prose ul {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.5rem;
}
.prose a {
  color: var(--fg);
  text-underline-offset: 0.25em;
}
.notfound {
  min-height: calc(100svh - var(--header-h) - 3rem);
  display: grid;
  align-content: center;
  gap: 1.6rem;
  padding-block: 3rem 5rem;
}
.notfound .btn {
  justify-self: start;
}

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .orbit__words,
  .founder__stamp .spin {
    animation: none !important;
  }
  .js [data-reveal] {
    transform: none;
  }
}

@media print {
  .site-header,
  .menu,
  .book {
    display: none;
  }
}
