:root {
  --bg: #ffffff;
  --ink: #111111;
  --muted: #3f3f3f;
  --nav: #161616;
  --line: #ececec;
  --hair: rgba(17, 17, 17, 0.1);
  --max: 1180px;
  --gutter: 20px;
  --inset: 24px;
  --header-space: 72px;
  --sans: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Instrument Serif", "Times New Roman", Times, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --curtain-ease: cubic-bezier(0.76, 0, 0.24, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 110;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
}

.skip:focus {
  left: 8px;
}

.curtain {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.15rem;
  width: 100%;
  height: 100%;
  height: 100dvh;
  background: #fff;
  color: var(--ink);
  transform: translateY(0);
  -webkit-transform: translateY(0);
  transition: transform 1.15s var(--curtain-ease);
}

.curtain.is-away {
  transform: translateY(-100%);
  -webkit-transform: translateY(-100%);
}

.curtain-mark {
  margin: 0;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.85s var(--curtain-ease) 0.12s forwards;
}

.curtain-mark span {
  font-style: italic;
  font-weight: 400;
}

.curtain-line {
  display: block;
  width: 4.75rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  animation: curtain-draw 0.8s var(--curtain-ease) 0.75s forwards;
}

html.is-curtained,
body.is-curtained {
  overflow: hidden;
  height: 100%;
}

html.curtain-done .curtain {
  display: none;
}

html.curtain-done.html.is-curtained,
html.curtain-done body.is-curtained {
  overflow: visible;
  height: auto;
}

html:not(.curtain-done):not(.is-revealed) body.is-curtained .float-nav,
html:not(.curtain-done):not(.is-revealed) .hero-aside {
  animation: none;
  opacity: 0;
}

html:not(.curtain-done):not(.is-revealed) .hero-media {
  animation: none;
  transform: scale(1.12);
}

html.is-revealed .float-nav {
  animation: rise 0.8s var(--ease) 0.35s both;
}

html.is-revealed .hero-media {
  animation: hero-unscale 1.2s var(--ease) 0.45s both;
}

html.is-revealed .hero-aside {
  animation: rise 0.85s var(--ease) 0.62s both;
}

.wrap {
  position: relative;
  width: min(var(--max), calc(100% - (var(--gutter) * 2)));
  margin: 0 auto;
  min-height: 100vh;
  padding: 16px var(--inset) 0;
}

.wrap--fit {
  width: max-content;
  max-width: min(var(--max), calc(100% - (var(--gutter) * 2)));
}

.wrap::before,
.wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--hair);
  pointer-events: none;
  z-index: 4;
}

.wrap::before {
  left: 0;
}

.wrap::after {
  right: 0;
}

/* Floating pill nav */
.site-header {
  position: sticky;
  top: 16px;
  z-index: 20;
  width: 0;
  min-width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

.float-nav {
  --flip: 0;
  pointer-events: auto;
  width: 100%;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 56px;
  padding: 8px 8px 8px 22px;
  background: color-mix(in srgb, #fff calc((1 - var(--flip)) * 100%), var(--nav));
  color: color-mix(in srgb, var(--ink) calc((1 - var(--flip)) * 100%), #fff);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  animation: rise 0.7s var(--ease) both;
}

.float-nav .btn-nav {
  background: color-mix(in srgb, var(--ink) calc((1 - var(--flip)) * 100%), #fff);
  color: color-mix(in srgb, #fff calc((1 - var(--flip)) * 100%), var(--ink));
  transition: transform 0.25s var(--ease);
}

.logo {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.logo span {
  font-style: italic;
  font-weight: 400;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: -0.02em;
  padding: 11px 18px;
  border-radius: 999px;
  transition: transform 0.25s var(--ease), background 0.25s ease, color 0.25s ease;
}

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

.btn-nav {
  background: #fff;
  color: var(--ink);
  padding: 10px 16px;
}

.btn-dark {
  background: var(--ink);
  color: #fff;
}

/* Hero */
.hero {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  margin-top: calc(-1 * var(--header-space));
  height: 100vh;
  height: 100svh;
  max-height: 100vh;
  max-height: 100svh;
  padding: 0 0 32px;
  overflow: hidden;
}

.hero-media {
  flex: 1 1 0;
  min-height: 0;
  width: min(
    calc(var(--max) - var(--inset) * 2),
    calc(100vw - (var(--gutter) + var(--inset)) * 2)
  );
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: 6px;
  animation: image-in 1.15s var(--ease) both;
  animation-delay: 0.08s;
}

.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  border-radius: 6px;
}

.hero-copy {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  flex: 0 0 auto;
  padding-top: 20px;
  width: 0;
  min-width: 100%;
}

.hero-copy h1 {
  display: flex;
  flex-direction: column;
  margin: 0;
  font-size: clamp(2.6rem, 5.4vw, 4.35rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.hero-copy h1 .hero-line {
  display: flex;
  flex-wrap: nowrap;
  column-gap: 0.32em;
  white-space: nowrap;
}

.hero-copy h1 .hero-line span {
  display: inline-block;
  opacity: 0;
  transform: translateY(22px);
}

html.is-revealed .hero-copy h1 .hero-line span {
  animation: fade-up 0.9s var(--ease) both;
  animation-delay: calc(0.6s + var(--i) * 0.1s);
}

.hero-aside {
  max-width: 28rem;
  animation: rise 0.85s var(--ease) both;
  animation-delay: 0.4s;
}

.hero-aside p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.55;
}

.section {
  width: 0;
  min-width: 100%;
  padding: 80px 0;
  border-top: 1px solid var(--line);
}

.section-head {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 48px;
}

.section-head h2,
.cta h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 1.05;
}

.section-head p {
  margin: 0;
  padding-top: 8px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.55;
  max-width: 28rem;
}

.section-head .stat {
  margin-top: 16px;
  padding-top: 0;
  color: var(--ink);
  font-weight: 500;
}

.approach {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 72px;
  align-items: start;
}

.approach-intro h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.15rem, 4vw, 3.25rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.approach-intro p {
  margin: 18px 0 0;
  max-width: 28rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.55;
}

.process article {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 4px 16px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.process article:last-child {
  border-bottom: 1px solid var(--line);
}

.process .num {
  padding-top: 3px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.process h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.process p {
  margin: 0;
  color: var(--muted);
}

.work-grid {
  display: flex;
  flex-direction: column;
}

.work-card {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  transition: transform 0.25s var(--ease), opacity 0.25s ease;
}

.work-card:last-child {
  border-bottom: 1px solid var(--line);
}

.work-grid:hover .work-card {
  opacity: 0.38;
}

.work-grid:hover .work-card:hover {
  opacity: 1;
  transform: translateX(6px);
}

.work-card img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  transition: transform 0.25s var(--ease);
}

.work-card:hover img {
  transform: scale(1.06);
}

.work-card span {
  flex: 1;
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.work-card::after {
  content: "→";
  color: var(--muted);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.work-card:hover::after {
  opacity: 1;
  transform: none;
}

.work-card.is-static {
  cursor: default;
}

.work-card.is-static::after {
  content: none;
}

.work-grid:hover .work-card.is-static:hover {
  transform: none;
}

.work-card.is-static:hover img {
  transform: none;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.cta .btn {
  flex-shrink: 0;
  margin-right: 8px;
}

/* Contact */
.contact-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 40px;
  align-items: stretch;
  margin-top: 16px;
  min-height: calc(100vh - var(--header-space) - 48px);
  min-height: calc(100svh - var(--header-space) - 48px);
  padding: 0 0 32px;
}

.contact-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-copy h1 {
  margin: 0 0 12px;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 1.05;
  animation: rise 0.85s var(--ease) both;
  animation-delay: 0.28s;
}

.contact-copy .lede {
  margin: 0 0 32px;
  color: var(--muted);
  max-width: 36rem;
  animation: rise 0.85s var(--ease) both;
  animation-delay: 0.4s;
}

.contact-media {
  position: relative;
  margin: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: 6px;
  animation: image-in 1.15s var(--ease) both;
}

.contact-media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 6px;
}

form.contact-form {
  max-width: 460px;
  animation: rise 0.85s var(--ease) both;
  animation-delay: 0.52s;
}

/* Pitch / demo landing */
.pitch-page {
  width: 0;
  min-width: 100%;
  box-sizing: border-box;
  min-height: calc(100vh - var(--header-space));
  min-height: calc(100svh - var(--header-space));
  padding: 48px 0 64px;
}

.pitch-intro {
  max-width: 38rem;
  margin-bottom: 40px;
}

.pitch-page h1 {
  margin: 0 0 12px;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.pitch-page .lede {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.pitch-body {
  margin: 0;
  color: var(--muted);
}

.pitch-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.pitch-action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 200px;
  padding: 24px 24px 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.pitch-action:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.pitch-action h2 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.pitch-action p {
  margin: 0;
  color: var(--muted);
  flex: 1;
}

.pitch-action::after {
  content: "→";
  margin-top: 28px;
  color: var(--muted);
}

.pitch-note {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.contact-form label {
  display: block;
  margin-bottom: 16px;
  font-size: 0.92rem;
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border: 1px solid #d8d8d8;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
}

.honeypot {
  position: absolute;
  left: -9999px;
  height: 0;
  width: 0;
  opacity: 0;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  width: 0;
  min-width: 100%;
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer .motto {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.88rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.motto-tip {
  position: relative;
  display: inline-block;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: help;
}

.tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  z-index: 6;
  transform: translateX(-50%) translateY(4px);
  white-space: nowrap;
  background: var(--nav);
  color: #fff;
  padding: 8px 12px;
  border-radius: 999px;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

.motto-tip:hover .tooltip,
.motto-tip:focus-visible .tooltip,
.motto-tip[aria-expanded="true"] .tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.site-footer > :first-child span {
  font-style: italic;
  font-weight: 400;
}

.site-footer > :last-child {
  justify-self: end;
}

.site-footer a,
.copy-email {
  position: relative;
  text-decoration: none;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.site-footer a:hover,
.copy-email:hover {
  color: var(--ink);
}

.copy-email.is-copied .tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes image-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes curtain-draw {
  to {
    transform: scaleX(1);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-unscale {
  from {
    transform: scale(1.12);
  }
  to {
    transform: none;
  }
}

@media (max-width: 800px) {
  .site-header {
    width: calc(100% + var(--inset) * 2);
    min-width: calc(100% + var(--inset) * 2);
    max-width: none;
    margin-left: calc(-1 * var(--inset));
  }

  .float-nav {
    padding-left: 16px;
    gap: 12px;
  }

  .hero-copy,
  .section-head {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 28px;
  }

  .cta {
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 28px;
  }

  .section-head {
    margin-bottom: 28px;
    padding-top: 0;
  }

  .approach {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .process {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hero-media {
    width: 100%;
  }

  .hero-media img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-position: left center;
  }

  .pitch-actions {
    grid-template-columns: 1fr;
  }

  .pitch-action {
    min-height: 0;
  }

  .contact-page {
    grid-template-columns: 1fr;
    margin-top: 0;
    min-height: 0;
    padding: 32px 0 64px;
    gap: 32px;
  }

  .contact-copy {
    justify-content: flex-start;
  }

  .contact-media {
    height: min(52vh, 420px);
  }

  .site-footer {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .site-footer > :last-child {
    justify-self: start;
  }
}

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

  .curtain {
    display: none;
  }

  html.is-curtained,
  body.is-curtained {
    overflow: visible;
    height: auto;
  }

  html:not(.curtain-done):not(.is-revealed) body.is-curtained .float-nav,
  html:not(.curtain-done):not(.is-revealed) .hero-aside,
  .hero-copy h1 .hero-line span {
    opacity: 1;
    transform: none;
  }

  .float-nav,
  .hero-media,
  .hero-media img,
  .hero-copy h1,
  .hero-copy h1 .hero-line span,
  .hero-aside,
  .contact-media,
  .contact-copy h1,
  .contact-copy .lede,
  .contact-form,
  .btn {
    animation: none;
    transition: none;
    transform: none;
  }

  .hero-copy h1 .hero-line span {
    opacity: 1;
  }

  .pitch-action:hover,
  .work-card:hover,
  .work-grid:hover .work-card:hover,
  .work-card:hover img,
  .work-card:hover::after {
    transform: none;
  }

  .tooltip {
    transition: none;
  }
}
