/* LPNK */

@font-face {
  font-family: "Geist";
  src: url("assets/fonts/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("assets/fonts/geist-mono.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #080808;
  --fg: #f4f3ef;
  --muted: #9b9b97;
  --line: rgba(244, 243, 239, 0.1);
  --silver: linear-gradient(180deg, #f7f7f5 0%, #d3d6db 45%, #8e939b 100%);

  --font: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --max: 80rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --space: clamp(4.5rem, 9vw, 8rem);

  /* Slow in, slow out. And a spring that overshoots, then settles. */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Base */

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

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

/* Big screens: the whole layout scales up with the window, as if zoomed,
   so a full-size window on a large monitor isn't a small column in the middle.
   Capped by height too, so very wide screens don't overshoot. */
@media (min-width: 1600px) and (min-height: 760px) {
  html {
    font-size: min(1vw, 1.78vh);
  }
}

html.sheet-open {
  overflow: hidden;
}

/* Smooth wheel scrolling (Lenis) */
html.lenis,
html.lenis body {
  height: auto;
}

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

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

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

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

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

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

a {
  color: inherit;
}

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

::selection {
  background: var(--fg);
  color: var(--bg);
}

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

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

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.625rem 1rem;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font-weight: 500;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

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

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

/* The form: a low-res canvas scaled up with hard pixel edges, drawn above the page */

.piece {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2;
  pointer-events: none;
  image-rendering: pixelated;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.piece.is-ready {
  opacity: 1;
}

/* Where the form sits: a big full stop at the end of the line you should read */
.orb {
  display: none;
}

.has-piece .orb {
  position: relative;
  display: inline-block;
  width: 0.7em;
  height: 0.7em;
  margin-left: 0.08em;
  vertical-align: baseline;
}

.has-piece .hero-title .orb {
  width: 0.9em;
  height: 0.9em;
}

.has-piece .work-name .orb {
  width: 0.6em;
  height: 0.6em;
}

/* Figure slots cover what the form wraps round; they draw nothing themselves */
.has-piece .orb.orb-figure {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  margin: 0;
  pointer-events: none;
}

.has-piece .orb.orb-figure::after {
  display: none;
}

.closing-cta {
  position: relative;
}

/* Room under the button for the form circling it */
.closing .actions {
  row-gap: 2.25rem;
}

/* On the sea in the footer, where the form ends up (wordmark.js sets the waterline) */
.has-piece .orb.orb-buoy {
  inset: auto;
  right: 16%;
  bottom: var(--water, 30%);
  width: clamp(2rem, 3.4vw, 3.25rem);
  height: clamp(2rem, 3.4vw, 3.25rem);
}

/* Until the form arrives, the slot holds a plain full stop */
.has-piece .orb::after {
  content: "";
  position: absolute;
  left: 0.02em;
  bottom: 0;
  width: 0.15em;
  height: 0.15em;
  border-radius: 50%;
  background: var(--fg);
  transition: opacity 0.4s ease, transform 0.6s var(--ease-spring);
}

.has-piece .silver .orb::after {
  background: #a9adb4;
}

.has-piece .orb.is-active::after,
.has-piece [data-words]:not(.is-written) .orb::after {
  opacity: 0;
  transform: scale(0.3);
}

.has-piece .stop {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* Materials */

/* Liquid glass: blurred, lightly lifted, with a bright edge that fades round the shape */
.glass {
  position: relative;
  isolation: isolate;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
  backdrop-filter: blur(22px) saturate(1.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 1px 2px rgba(0, 0, 0, 0.35),
    0 24px 48px -24px rgba(0, 0, 0, 0.8);
}

.glass::before,
.edge::before,
.sheet-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.08) 28%, rgba(255, 255, 255, 0.02) 60%, rgba(255, 255, 255, 0.2));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}

.edge {
  position: relative;
}

/* Type pieces */

.silver:not(.is-split),
.silver .wi {
  background: var(--silver);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* Words split for the reveal. Each word rises out of its own mask. */
.split .w {
  display: inline-block;
  padding: 0.12em 0.05em 0.18em;
  margin: -0.12em -0.05em -0.18em;
  overflow: hidden;
  vertical-align: top;
}

.split .wi {
  display: inline-block;
  padding: 0.12em 0.05em 0.18em;
  margin: -0.12em -0.05em -0.18em;
}

/* Buttons */

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 3.25rem;
  padding: 0 1.5rem;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  translate: var(--tx, 0) var(--ty, 0);
  transition:
    translate 0.8s var(--ease-spring),
    scale 0.35s var(--ease-spring),
    background-color 0.3s ease;
}

.btn > span {
  display: inline-block;
  translate: var(--lx, 0) var(--ly, 0);
  transition: translate 0.8s var(--ease-spring);
}

.btn.is-tracking,
.btn.is-tracking > span {
  transition-duration: 0.15s;
  transition-timing-function: ease-out;
}

.btn:active {
  scale: 0.95;
}

/* Brushed silver, not chrome */
.btn-solid {
  background: linear-gradient(180deg, #ffffff 0%, #e4e5e8 55%, #c9ccd1 100%);
  color: #0a0a0a;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(0, 0, 0, 0.14),
    0 10px 30px -12px rgba(255, 255, 255, 0.25);
}

.btn-glass {
  color: var(--fg);
}

.btn-sm {
  height: 2.5rem;
  padding: 0 1.125rem;
  font-size: 0.9375rem;
}

.btn-lg {
  height: 3.75rem;
  padding: 0 1.875rem;
  font-size: 1.0625rem;
}

.btn .arrow {
  transition: translate 0.5s var(--ease-spring);
}

.btn:hover .arrow {
  translate: 2px -2px;
}

/* Header */

.site-header {
  position: fixed;
  top: max(0.75rem, env(safe-area-inset-top));
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding-inline: 0.75rem;
  pointer-events: none;
  transition:
    opacity 0.9s var(--ease-out),
    translate 1.1s var(--ease-spring),
    visibility 0s;
}

/* While the opening plays, the header stays out of the way */
.js:not(.orb-landed) .site-header {
  opacity: 0;
  translate: 0 -1.5rem;
  visibility: hidden;
  transition: none;
}

/* A darker tint keeps the header readable over bright content, like Apple's adaptive glass */
.bar.glass {
  background: linear-gradient(180deg, rgba(22, 22, 24, 0.72), rgba(12, 12, 13, 0.62));
}

.bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.5rem;
  width: min(100%, 68rem);
  padding: 0.375rem 0.375rem 0.375rem 1.25rem;
  border-radius: 999px;
  pointer-events: auto;
}

.brand {
  justify-self: start;
  display: inline-flex;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.brand span {
  display: inline-block;
  transition: translate 0.6s var(--ease-spring);
  transition-delay: calc(var(--i, 0) * 45ms);
}

.brand span:nth-child(2) { --i: 1; }
.brand span:nth-child(3) { --i: 2; }
.brand span:nth-child(4) { --i: 3; }

.brand:hover span {
  translate: 0 -3px;
}

.seg {
  position: relative;
  display: flex;
  padding: 0.1875rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.35);
}

.seg a {
  position: relative;
  z-index: 1;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.seg a:hover,
.seg a.is-active {
  color: var(--fg);
}

.seg .short {
  display: none;
}

.seg-indicator {
  position: absolute;
  top: 0.1875rem;
  bottom: 0.1875rem;
  left: 0;
  width: var(--w, 0);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 2px 8px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateX(var(--x, 0));
  transition:
    transform 0.7s var(--ease-spring),
    width 0.7s var(--ease-spring),
    opacity 0.3s ease;
}

.seg-indicator.is-on {
  opacity: 1;
}

.bar .btn-sm {
  justify-self: end;
}

@media (max-width: 480px) {
  .bar {
    grid-template-columns: auto auto auto;
    justify-content: space-between;
    padding-left: 1rem;
  }

  .seg a {
    padding-inline: 0.8rem;
  }

  .seg .long {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .seg .short {
    display: inline;
  }
}

/* Opening */

.hero {
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding-block: 8rem 5rem;
}

.hero-title {
  font-size: clamp(2.4rem, 0.5rem + 5.2vw, 5rem);
  font-weight: 560;
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.hero-title .line {
  display: block;
  text-wrap: balance;
}

.hero-actions {
  margin-top: clamp(2rem, 4vw, 3rem);
  gap: 1.25rem 1.75rem;
}

.text-link {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  text-decoration-color: rgba(244, 243, 239, 0.25);
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.text-link:hover {
  color: var(--fg);
  text-decoration-color: var(--fg);
}

/* Phones: a book button that floats in once the one in the hero has gone */
.dock {
  display: none;
}

@media (max-width: 720px) {
  .dock {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: flex;
    justify-content: center;
    padding: 0 1rem max(1rem, env(safe-area-inset-bottom));
    pointer-events: none;
    transform: translateY(140%);
    transition: transform 0.6s var(--ease-spring);
  }

  .dock.is-on {
    transform: none;
  }

  .dock .btn {
    width: 100%;
    max-width: 22rem;
    pointer-events: auto;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.95),
      inset 0 -1px 0 rgba(0, 0, 0, 0.14),
      0 18px 40px -10px rgba(0, 0, 0, 0.9);
  }
}


/* Sections */

.section {
  padding-block: var(--space) 0;
}

/* Every section opens with a numbered line, so it's always clear where one ends and the next begins */
.section-head {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem);
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

.section-num {
  color: var(--muted);
}

.section-note {
  margin-left: auto;
  color: var(--muted);
}

section[id] {
  scroll-margin-top: 5rem;
}

.statement {
  max-width: 15ch;
  font-size: clamp(2.4rem, 1rem + 4.4vw, 5.5rem);
  font-weight: 560;
  line-height: 0.98;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.lead {
  max-width: 34rem;
  margin-top: clamp(1.25rem, 2.5vw, 1.75rem);
  color: var(--muted);
  font-size: clamp(1.0625rem, 0.97rem + 0.4vw, 1.3125rem);
  line-height: 1.5;
  text-wrap: pretty;
}

/* The funky one: Fraunces italic, soft and wonky, each letter free to change weight */
.funky {
  max-width: 14ch;
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.8rem, 1rem + 5.4vw, 6.5rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  touch-action: manipulation;
  cursor: default;
}

.funky .c {
  display: inline-block;
  translate: 0 calc(var(--lift, 0) * -0.18em);
  rotate: calc(var(--lift, 0) * -9deg);
  transition: translate 0.5s var(--ease-spring), rotate 0.5s var(--ease-spring);
}

.funky .c.pulse {
  animation: hop 0.7s var(--ease-spring);
}

@keyframes hop {
  40% {
    translate: 0 -0.22em;
    rotate: -8deg;
  }
}

/* Typed lines: the letters hold their place, invisible until the cursor reaches them */
.typed .tw {
  white-space: nowrap;
}

.js .is-typable .ch {
  opacity: 0;
  transition: opacity 0.35s ease;
}

.js .is-typable .ch.on {
  opacity: 1;
}

/* What we do */

/* Who does what: two sides of one panel, with the form as the arrow between */
.handoff {
  display: grid;
  gap: 1.5rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding: clamp(1.5rem, 3.5vw, 3rem);
  border: 1px solid var(--line);
  border-radius: clamp(1.25rem, 2.5vw, 2rem);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
}

@media (min-width: 760px) {
  .handoff {
    grid-template-columns: minmax(0, 1fr) clamp(6rem, 12vw, 11rem) minmax(0, 1fr);
    align-items: center;
  }
}

.handoff-label {
  margin-bottom: 1rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.handoff-side ul {
  display: grid;
  gap: 0.35rem;
}

.handoff-side li {
  color: #8d8d89;
  font-size: clamp(1.5rem, 1rem + 1.6vw, 2.5rem);
  font-weight: 560;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.handoff-side.is-us li {
  background: var(--silver);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.handoff-side.is-us .handoff-label {
  color: var(--fg);
}

/* Between the sides: an arrow, or the form drawn as one */
.handoff-link {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 6.5rem;
  color: var(--muted);
  font-size: 2rem;
}

.has-piece .handoff-arrow {
  visibility: hidden;
}

@media (max-width: 759px) {
  .handoff-arrow {
    rotate: 90deg;
  }
}

.handoff-note {
  grid-column: 1 / -1;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

/* Client work */

.work-head {
  display: grid;
  gap: 2rem;
  align-items: end;
}

@media (min-width: 720px) {
  .work-head {
    grid-template-columns: 1fr auto;
  }
}

.work-name {
  font-size: clamp(3.5rem, 1rem + 9vw, 9.5rem);
  font-weight: 560;
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.work-tag {
  margin-top: 1.25rem;
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.4375rem);
  font-weight: 500;
  letter-spacing: -0.015em;
}

.showcase {
  --p: 1;
  position: relative;
  /* Sized so the whole laptop and phone fit on screen at once */
  width: min(100%, calc((100vh - 13rem) * 1.5));
  width: min(100%, calc((100svh - 13rem) * 1.5));
  margin: clamp(2.5rem, 5vw, 4rem) auto clamp(3rem, 6vw, 5rem);
  perspective: 1600px;
}

/* Concentric corners: outer radius = inner radius + padding */
.browser {
  --r: clamp(10px, 1.6vw, 20px);
  --pad: clamp(6px, 0.8vw, 10px);
  padding: 0 var(--pad) var(--pad);
  border-radius: calc(var(--r) + var(--pad));
  transform-origin: 50% 100%;
  transform:
    translateY(calc((1 - var(--p)) * 60px))
    rotateX(calc((1 - var(--p)) * 26deg))
    scale(calc(0.88 + var(--p) * 0.12));
}

.browser img {
  width: 100%;
  border-radius: var(--r);
  filter: grayscale(calc(1 - var(--p)));
}

.browser-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(28px, 3vw, 42px);
}

.dots {
  position: absolute;
  left: calc(var(--r) * 0.4);
  display: flex;
  gap: 6px;
}

.dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.url {
  padding: 0.2rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
}

.phone {
  --r: clamp(22px, 3vw, 40px);
  --pad: clamp(4px, 0.5vw, 7px);
  position: absolute;
  right: -2%;
  bottom: -9%;
  width: clamp(6rem, 21%, 16rem);
  padding: var(--pad);
  border-radius: calc(var(--r) + var(--pad));
  background: #0b0b0c;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.95);
  transform:
    translateY(calc((1 - var(--p)) * 180px))
    rotate(calc((1 - var(--p)) * -6deg));
}

.phone img {
  filter: grayscale(calc(1 - var(--p)));
  border-radius: var(--r);
}

.caption {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
}

/* What Kaviqa does, in one go */
.work-about {
  max-width: 44rem;
  margin: clamp(2rem, 4vw, 3rem) auto 0;
  color: var(--muted);
  font-size: clamp(1.0625rem, 0.97rem + 0.4vw, 1.3125rem);
  line-height: 1.55;
  text-align: center;
  text-wrap: pretty;
}

/* How it works */

.steps {
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
}

.step {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  max-width: 54rem;
  padding-block: clamp(2.25rem, 6vh, 4rem);
  border-top: 1px solid var(--line);
}

@media (min-width: 900px) {
  .step {
    grid-template-columns: 7rem minmax(0, 1fr);
  }
}

.step-num {
  grid-row: span 2;
  padding-top: 0.9em;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
}

.step h3 {
  font-size: clamp(2.5rem, 1rem + 5vw, 5.5rem);
  font-weight: 560;
  line-height: 1;
  letter-spacing: -0.05em;
}

.step p {
  max-width: 30rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  text-wrap: pretty;
}

.how-visual {
  display: none;
}

/* The pinned scene: only with the form and with motion allowed */
@media (prefers-reduced-motion: no-preference) {
  .has-piece .how {
    padding-top: calc(var(--space) * 0.5);
  }

  .has-piece .how-track {
    height: calc(100svh + 4 * 70svh);
  }

  .has-piece .how-stage {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    height: 100vh;
    height: 100svh;
    padding-top: 4.5rem;
  }

  .has-piece .how-inner {
    width: min(100% - 2 * var(--gutter), var(--max));
  }

  .has-piece .how-grid {
    display: grid;
    align-items: center;
    gap: 1rem;
    margin-top: clamp(1rem, 3vh, 2rem);
  }

  .has-piece .how-visual {
    position: relative;
    display: grid;
    place-items: center;
  }

  .has-piece .orb-stage {
    display: block;
    width: min(44vw, 56vh);
    height: min(44vw, 56vh);
    margin: 0;
  }

  .has-piece .orb-stage::after {
    display: none;
  }

  .has-piece .how-progress {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
  }

  .has-piece .how-progress i {
    width: 1.75rem;
    height: 2px;
    border-radius: 2px;
    background: var(--line);
    transition: background-color 0.4s ease, width 0.6s var(--ease-spring);
  }

  .has-piece .how-progress i.is-on {
    width: 3rem;
    background: var(--fg);
  }

  .has-piece .how .steps {
    position: relative;
    display: grid;
    margin: 0;
  }

  /* All four steps sit in the same place; only the current one shows */
  .has-piece .how .step {
    grid-area: 1 / 1;
    align-content: center;
    padding: 0;
    border: 0;
    opacity: 0;
    filter: blur(10px);
    translate: 0 2.5rem;
    transition:
      opacity 0.45s ease,
      filter 0.55s ease,
      translate 0.8s var(--ease-out);
    pointer-events: none;
  }

  .has-piece .how .step.is-past {
    translate: 0 -2.5rem;
  }

  .has-piece .how .step.is-current {
    opacity: 1;
    filter: blur(0);
    translate: 0 0;
    pointer-events: auto;
    transition-delay: 0.12s;
  }

  .has-piece .how .step h3 {
    font-size: clamp(2.75rem, 1rem + 5.4vw, 6rem);
  }

  @media (min-width: 900px) {
    .has-piece .how-grid {
      grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    }
  }

  @media (max-width: 899px) {
    .has-piece .how-grid {
      grid-template-rows: auto auto;
    }

    .has-piece .how-visual {
      order: -1;
    }

    .has-piece .orb-stage {
      width: min(62vw, 30vh);
      height: min(62vw, 30vh);
    }

    .has-piece .how .step {
      grid-template-columns: 3rem minmax(0, 1fr);
    }
  }
}

/* Pricing */

.price-list {
  display: grid;
  gap: 0.75rem;
  margin-top: clamp(2.5rem, 6vw, 4rem);
}

@media (min-width: 900px) {
  .price-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.price {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.price h3 {
  font-size: clamp(1.25rem, 1rem + 0.8vw, 1.625rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.price p {
  max-width: 24rem;
  margin-top: 0.625rem;
  color: var(--muted);
}

.price-note {
  margin-top: clamp(2rem, 4vw, 3rem);
  color: var(--fg);
  font-size: clamp(1.0625rem, 0.97rem + 0.4vw, 1.3125rem);
}

/* Closing: what you leave the call with */
.leave {
  max-width: 34rem;
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
}

.leave-title {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.leave-list {
  margin-top: 0.875rem;
}

.leave-list li {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  padding-block: 0.75rem;
  border-top: 1px solid var(--line);
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.3125rem);
  letter-spacing: -0.015em;
}

.leave-num {
  padding-top: 0.2em;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
}

/* Closing */

.closing {
  padding-block: var(--space);
}

.closing-title {
  max-width: 13ch;
  font-size: clamp(2.8rem, 0.6rem + 6.6vw, 7.5rem);
  font-weight: 560;
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.closing-text {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: clamp(1.125rem, 1rem + 0.45vw, 1.375rem);
}

.closing .actions {
  margin-top: clamp(2rem, 4vw, 3rem);
}

/* Footer */

.site-footer {
  background: var(--bg);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1.75rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
}

.footer-links a {
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--fg);
}

/* Full width, so the waves run edge to edge */
.wordmark {
  position: relative;
  padding: clamp(0.5rem, 2vw, 1.5rem) 0 clamp(1rem, 3vw, 2rem);
}

.wordmark .giant {
  padding-inline: var(--gutter);
}

.wordmark-canvas {
  display: none;
  width: 100%;
}

.wordmark.is-live .wordmark-canvas {
  display: block;
}

.wordmark.is-live .giant {
  display: none;
}

/* Without WebGL: the same halftone, printed still */
.giant {
  color: var(--fg);
  font-size: clamp(6rem, 30vw, 36rem);
  font-weight: 700;
  line-height: 0.78;
  letter-spacing: -0.07em;
  text-align: center;
  user-select: none;
  -webkit-mask:
    radial-gradient(circle, #000 42%, transparent 46%) 0 0 / 6px 6px,
    linear-gradient(#000 20%, rgba(0, 0, 0, 0.35));
  -webkit-mask-composite: source-in;
  mask:
    radial-gradient(circle, #000 42%, transparent 46%) 0 0 / 6px 6px,
    linear-gradient(#000 20%, rgba(0, 0, 0, 0.35));
  mask-composite: intersect;
}

/* Let's talk sheet */

.sheet {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--fg);
  overflow: hidden;
}

.sheet::backdrop {
  background: rgba(4, 4, 5, 0.62);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity 0.45s ease;
}

.sheet.is-open::backdrop {
  opacity: 1;
}

.sheet-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  width: min(52rem, 100% - 2rem);
  height: min(48rem, 100% - 2rem);
  border-radius: 2rem;
  background: linear-gradient(180deg, rgba(26, 26, 28, 0.94), rgba(14, 14, 15, 0.96));
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.9);
  translate: -50% -50%;
  transition: clip-path 0.5s cubic-bezier(0.5, 0, 0.75, 0);
}

.sheet.is-open .sheet-panel {
  transition: clip-path 0.75s var(--ease-out);
}

.sheet-head,
.cal,
.cal-note {
  opacity: 0;
  transition: opacity 0.25s ease;
}

.sheet.is-open .sheet-head,
.sheet.is-open .cal,
.sheet.is-open .cal-note {
  opacity: 1;
  transition: opacity 0.45s ease 0.2s;
}

.sheet-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: start;
  gap: 1rem;
  padding: 1.5rem 1.5rem 1.25rem 1.75rem;
}

.sheet-title:focus {
  outline: none;
}

.sheet-alt .short {
  display: none;
}

.sheet-title {
  font-size: clamp(2rem, 1.2rem + 2.4vw, 3.25rem);
  font-weight: 560;
  line-height: 1;
  letter-spacing: -0.045em;
}

.sheet.is-booked .sheet-title {
  animation: land 0.8s var(--ease-spring);
}

@keyframes land {
  from {
    opacity: 0;
    transform: translateY(0.4em) scale(0.96);
  }
}

.sheet-sub {
  margin-top: 0.5rem;
  color: var(--muted);
}

.sheet-alt {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.sheet-close {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 50%;
  color: var(--fg);
  cursor: pointer;
}

/* Concentric: panel radius minus the gap around the calendar */
.cal-note {
  order: 3;
  margin: 0 1.75rem 1.1rem;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.cal {
  position: relative;
  flex: 1;
  margin: 0 0.75rem 0.75rem;
  overflow: hidden;
  border-radius: 1.25rem;
  background: #000;
}

/* Calendly's light page, turned to black and silver so it belongs here */
.cal-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  filter: invert(1) hue-rotate(180deg) grayscale(1) blur(12px);
  transform: scale(0.985);
  transition:
    opacity 0.7s ease,
    filter 0.7s ease,
    transform 0.9s var(--ease-out);
}

.cal.is-loaded .cal-frame {
  opacity: 1;
  filter: invert(1) hue-rotate(180deg) grayscale(1) blur(0);
  transform: none;
}

/* While Calendly loads: rings of dots pulse out from the middle */
@property --ring {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}

.cal-loader {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transition: opacity 0.5s ease;
}

.cal-loader::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(244, 243, 239, 0.6) 1.1px, transparent 1.7px) 0 0 / 10px 10px;
  -webkit-mask: radial-gradient(circle at 50% 50%, transparent calc(var(--ring) - 120px), #000 calc(var(--ring) - 50px), transparent var(--ring));
  mask: radial-gradient(circle at 50% 50%, transparent calc(var(--ring) - 120px), #000 calc(var(--ring) - 50px), transparent var(--ring));
  animation: ring 2.4s cubic-bezier(0.3, 0, 0.3, 1) infinite;
}

.cal-loader span {
  position: relative;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.cal.is-loaded .cal-loader {
  opacity: 0;
  pointer-events: none;
}

@keyframes ring {
  from {
    --ring: 0px;
  }
  to {
    --ring: 900px;
  }
}

@media (max-width: 720px) {
  .sheet-panel {
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    height: calc(100% - max(0.75rem, env(safe-area-inset-top)));
    border-radius: 1.75rem 1.75rem 0 0;
    translate: none;
  }

  .sheet-head {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 1.25rem 1rem 1rem 1.25rem;
  }

  .sheet-alt {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
  }

  .sheet-alt .long {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .sheet-alt .short {
    display: inline;
  }

  .cal {
    margin: 0 0.5rem max(0.5rem, env(safe-area-inset-bottom));
  }
}

/* Motion. Everything above works without it. */

@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(1.5rem);
    transition:
      opacity 1.1s var(--ease-out),
      transform 1.1s var(--ease-out),
      filter 1.1s var(--ease-out),
      translate 0.8s var(--ease-spring),
      scale 0.35s var(--ease-spring);
    transition-delay: var(--delay, 0ms), var(--delay, 0ms), var(--delay, 0ms), 0ms, 0ms;
  }

  .js [data-reveal].is-in {
    opacity: 1;
    filter: blur(0);
    transform: none;
  }

  .js [data-words] .wi {
    translate: 0 115%;
    transition: translate 0.9s var(--ease-out);
    transition-delay: calc(var(--i) * 45ms);
  }

  .js [data-words].is-in .wi {
    translate: 0 0;
  }

  .js [data-words] .w.bump {
    animation: bump 0.75s var(--ease-spring);
  }

  .js .funky .wi {
    translate: 0 0;
  }

  .js .funky .w .c {
    opacity: 0;
    translate: 0 0.45em;
    rotate: 10deg;
    transition:
      opacity 0.35s ease,
      translate 0.6s var(--ease-spring),
      rotate 0.6s var(--ease-spring);
    transition-delay: calc(var(--i) * 45ms + var(--ci, 0) * 22ms);
  }

  .js .funky.is-in .c {
    opacity: 1;
    translate: 0 calc(var(--lift, 0) * -0.18em);
    rotate: calc(var(--lift, 0) * -9deg);
  }

  /* Once it's in, the letters answer the pointer straight away */
  .js .funky.is-settled .c {
    transition-delay: 0ms;
  }

  /* One pass of light across the silver line once it has landed */
  .js .silver .wi {
    background:
      linear-gradient(100deg, transparent 42%, rgba(255, 255, 255, 0.95) 50%, transparent 58%) 160% 0 / 260% 100% no-repeat,
      var(--silver);
    -webkit-background-clip: text;
    background-clip: text;
  }

  .js .is-written .silver .wi {
    animation: sheen 1.8s ease-in-out forwards;
    animation-delay: calc(200ms + var(--i) * 90ms);
  }

}

@keyframes bump {
  30% {
    transform: translateY(-0.09em) scale(1.04, 0.96);
  }
  60% {
    transform: translateY(0.03em) scale(0.99, 1.01);
  }
}

@keyframes sheen {
  to {
    background-position: -60% 0, 0 0;
  }
}

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