:root {
  color-scheme: light dark;
  --bg: #f6f1e9;
  --bg-2: #efe7da;
  --ink: #0e1f2a;
  --ink-2: #3c4c56;
  --ink-3: #5d6a72;
  --line: rgba(14, 31, 42, 0.14);
  --line-2: rgba(14, 31, 42, 0.08);
  --pink: #bf1865;
  --aqua: #007169;
  --coral: #ff8a5b;
  --tint: rgba(191, 24, 101, 0.045);
  --card: #fbf8f2;
  --sunset: linear-gradient(90deg, #bf1865 0%, #ff5fa8 28%, #ff8a5b 55%, #3fd9cb 82%, #007169 100%);
  --max: 1280px;
  --pad: clamp(20px, 4vw, 48px);
  --gap: clamp(16px, 2.5vw, 32px);
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --serif: "Instrument Serif", Georgia, serif;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  accent-color: var(--aqua);
  scroll-padding-top: 5.5rem;
}

:root:has(> head > meta[name="color-scheme"][content="dark"]) {
  color-scheme: dark;
}

:root:has(> head > meta[name="color-scheme"][content="light"]) {
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not(:has(> head > meta[name="color-scheme"][content="light"])) {
    --bg: #0b1a23;
    --bg-2: #0f2330;
    --ink: #f3eee6;
    --ink-2: #b9c2c7;
    --ink-3: #83919a;
    --line: rgba(243, 238, 230, 0.14);
    --line-2: rgba(243, 238, 230, 0.07);
    --pink: #ff5fa8;
    --aqua: #3fd9cb;
    --tint: rgba(255, 95, 168, 0.06);
    --card: #102430;
  }
}

:root:has(> head > meta[name="color-scheme"][content="dark"]) {
  --bg: #0b1a23;
  --bg-2: #0f2330;
  --ink: #f3eee6;
  --ink-2: #b9c2c7;
  --ink-3: #83919a;
  --line: rgba(243, 238, 230, 0.14);
  --line-2: rgba(243, 238, 230, 0.07);
  --pink: #ff5fa8;
  --aqua: #3fd9cb;
  --tint: rgba(255, 95, 168, 0.06);
  --card: #102430;
}

:root:has(> head > meta[name="color-scheme"][content="light"]) {
  --bg: #f6f1e9;
  --bg-2: #efe7da;
  --ink: #0e1f2a;
  --ink-2: #3c4c56;
  --ink-3: #5d6a72;
  --line: rgba(14, 31, 42, 0.14);
  --line-2: rgba(14, 31, 42, 0.08);
  --pink: #bf1865;
  --aqua: #007169;
  --tint: rgba(191, 24, 101, 0.045);
  --card: #fbf8f2;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.3s, color 0.3s;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
::selection { background: var(--pink); color: #fff; }

:focus-visible {
  outline: 2px solid var(--aqua);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 99;
  background: var(--ink);
  color: var(--bg);
  padding: 8px 12px;
}

.scroll-sentinel {
  position: absolute;
  inset-block-start: 8px;
  inline-size: 1px;
  block-size: 1px;
  pointer-events: none;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
}

.eyebrow {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow b {
  font-weight: 500;
  color: var(--pink);
}

.accent {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--pink);
}

header.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

header.nav.scrolled { border-bottom-color: var(--line-2); }

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}

.brand i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sunset);
  display: inline-block;
}

.nav nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav nav a {
  font-size: 0.9375rem;
  color: var(--ink-2);
  transition: color 0.2s;
}

.nav nav a:hover { color: var(--ink); }

.toggle {
  appearance: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}

.toggle:hover { border-color: var(--ink-3); }

.toggle svg {
  width: 16px;
  height: 16px;
}

.to-light { display: none; }

@media (prefers-color-scheme: dark) {
  :root:not(:has(> head > meta[name="color-scheme"][content="light"])) .to-dark { display: none; }
  :root:not(:has(> head > meta[name="color-scheme"][content="light"])) .to-light { display: grid; }
}

:root:has(> head > meta[name="color-scheme"][content="dark"]) .to-dark { display: none; }
:root:has(> head > meta[name="color-scheme"][content="dark"]) .to-light { display: grid; }
:root:has(> head > meta[name="color-scheme"][content="light"]) .to-light { display: none; }
:root:has(> head > meta[name="color-scheme"][content="light"]) .to-dark { display: grid; }

.hero { padding: clamp(64px, 10vw, 136px) 0 0; }

.hero .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: 36px;
}

.hero h1 {
  grid-column: 1 / -1;
  margin: 0;
  font-weight: 500;
  font-size: clamp(2.75rem, 7.6vw, 6.875rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.hero h1 .ln {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.hero h1 .ln > span { display: inline-block; }

.hero h1 .accent {
  font-size: 1.06em;
  letter-spacing: -0.02em;
  padding-right: 0.04em;
}

.hero-foot {
  margin-top: clamp(56px, 7vw, 96px);
  align-items: end;
}

.hero-foot .lede {
  grid-column: 1 / 6;
  margin: 0;
  font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 30ch;
}

.stats {
  grid-column: 7 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  margin: 0;
}

.stat {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.stat dt {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 10px;
}

.stat dd {
  margin: 0;
  font-size: clamp(2.25rem, 4.2vw, 3.75rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat dd small {
  font-size: 0.36em;
  letter-spacing: -0.01em;
  color: var(--ink-2);
  font-weight: 400;
  margin-left: 4px;
}

.horizon {
  position: relative;
  margin-top: clamp(64px, 8vw, 112px);
  height: clamp(64px, 8vw, 110px);
  overflow: hidden;
}

.horizon .line {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: var(--sunset);
  transform-origin: left;
}

.horizon .glow {
  position: absolute;
  inset: 0;
  background: var(--sunset);
  opacity: 0.2;
  transform-origin: top;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.35) 35%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.35) 35%, transparent 100%);
}

:root:has(> head > meta[name="color-scheme"][content="dark"]) .horizon .glow,
:root:not(:has(> head > meta[name="color-scheme"][content="light"])) .horizon .glow {
  opacity: 0.2;
}

@media (prefers-color-scheme: dark) {
  :root:not(:has(> head > meta[name="color-scheme"][content="light"])) .horizon .glow { opacity: 0.22; }
}

:root:has(> head > meta[name="color-scheme"][content="dark"]) .horizon .glow { opacity: 0.22; }

section.block { padding: clamp(88px, 11vw, 160px) 0; }

.sec-head {
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 72px);
}

.sec-head .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: 20px;
}

.sec-head h2 {
  grid-column: 1 / 8;
  margin: 0;
  font-size: clamp(2.375rem, 5.2vw, 4.5rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.sec-head p {
  grid-column: 9 / -1;
  margin: 0;
  color: var(--ink-2);
  font-size: 1.0625rem;
  max-width: 36ch;
}

.projects {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.proj {
  position: relative;
  z-index: 0;
  border-bottom: 1px solid var(--line);
}

.proj a {
  position: relative;
  align-items: center;
  padding: clamp(28px, 3.4vw, 44px) 0;
  transition: background-color 0.35s var(--ease);
}

.proj a::before {
  content: "";
  position: absolute;
  inset: 6px -20px;
  border-radius: 16px;
  background: var(--tint);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  z-index: -1;
}

.proj .num {
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0;
  color: var(--ink-3);
  vertical-align: top;
  margin-left: 12px;
  position: relative;
  top: 0.35em;
  font-weight: 400;
}

.proj .name {
  grid-column: 1 / 7;
  font-size: clamp(2.125rem, 4.6vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}

.proj .url {
  grid-column: 7 / 9;
  justify-self: start;
  padding-bottom: 2px;
  color: var(--aqua);
  font-family: var(--mono);
  font-size: 0.875rem;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.4s var(--ease);
}

.proj .desc {
  grid-column: 9 / 12;
  color: var(--ink-2);
  font-size: 1.0625rem;
  line-height: 1.45;
}

.proj .arrow {
  grid-column: 12 / 13;
  justify-self: end;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}

.proj .arrow svg { width: 16px; height: 16px; }

.proj a:hover::before,
.proj a:focus-visible::before { opacity: 1; }

.proj a:hover .url,
.proj a:focus-visible .url { background-size: 100% 1px; }

.proj a:hover .arrow,
.proj a:focus-visible .arrow {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.proj a:hover .arrow svg,
.proj a:focus-visible .arrow svg { transform: rotate(-45deg); }

.card:hover { transform: translateY(-4px); border-color: var(--line); }
.card:hover .av img { transform: scale(1.09); }
.card .mail:hover svg { transform: translate(2px, -2px); }
.btn:hover svg { transform: translateX(4px); }

.approach { background: var(--bg-2); }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.step {
  grid-column: span 4;
  border-top: 1px solid var(--ink);
  padding-top: 24px;
}

.step .n {
  display: block;
  margin-bottom: 56px;
  color: var(--pink);
  font-family: var(--mono);
  font-size: 0.8125rem;
}

.step h3 {
  margin: 0 0 14px;
  max-width: 16ch;
  font-size: clamp(1.5rem, 2.3vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.step p {
  margin: 0;
  max-width: 34ch;
  color: var(--ink-2);
}

.founders {
  list-style: none;
  margin: 0;
  padding: 0;
}

.card {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: 20px;
  padding: 36px 32px 28px;
  transition: border-color 0.3s;
}

.card .av {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 32px;
  background: #f6f1e9;
  box-shadow: 0 0 0 1px var(--line-2);
}

.card .av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.card .top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.card h3 {
  margin: 0;
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.pill {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pink);
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 4px 10px 3px;
}

.card .mail {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 18px;
  border-top: 1px solid var(--line-2);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.875rem;
}

.card .mail span {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.4s var(--ease);
}

.card .mail:hover span { background-size: 100% 1px; }

.card .mail svg {
  width: 14px;
  height: 14px;
  color: var(--ink-3);
}

.contact {
  padding: clamp(96px, 12vw, 176px) 0 clamp(72px, 8vw, 112px);
  border-top: 1px solid var(--line-2);
}

.contact .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: 28px;
}

.contact h2 {
  grid-column: 1 / 9;
  margin: 0;
  font-size: clamp(2.75rem, 7vw, 6.5rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
}

.contact .cta {
  grid-column: 9 / -1;
  align-self: end;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  padding-bottom: 0.6em;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--ink);
  color: var(--bg);
  font-size: 1.0625rem;
  font-weight: 500;
  padding: 18px 26px 18px 28px;
  border-radius: 999px;
  transition: background-color 0.3s, color 0.3s;
}

.btn svg { width: 16px; height: 16px; }

.btn:hover {
  background: #bf1865;
  color: #fff;
}

.cta .note {
  color: var(--ink-3);
  font-size: 0.9375rem;
  max-width: 26ch;
}

footer { padding: 0 0 40px; }

.wordmark {
  display: block;
  margin: 0 0 28px -0.05em;
  padding-bottom: 0.06em;
  font-weight: 600;
  letter-spacing: -0.065em;
  line-height: 0.8;
  font-size: min(calc((100vw - 2 * var(--pad)) / 1.76), calc((var(--max) - 96px) / 1.76));
  background: var(--sunset);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
}

.foot-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--ink-3);
}

.foot-meta a:hover { color: var(--ink); }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  .anim .ln > span { transform: translateY(105%); }
  .anim [data-fade] { opacity: 0; transform: translateY(24px); }
  .anim .horizon .line { transform: scaleX(0); }

  .proj .arrow,
  .proj .arrow svg,
  .card,
  .card .av img,
  .card .mail svg,
  .btn,
  .btn svg {
    transition-property: background-color, border-color, color, transform, opacity;
    transition-duration: 0.4s;
    transition-timing-function: var(--ease);
  }

  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    .horizon .glow {
      animation: glow-drift linear both;
      animation-timeline: view();
      animation-range: entry 0% exit 100%;
    }
  }
}

@supports ((animation-timeline: scroll()) and (animation-range: entry)) {
  header.nav {
    animation: nav-line linear both;
    animation-timeline: scroll();
    animation-range: 0px 8px;
  }
}

@keyframes nav-line {
  to { border-bottom-color: var(--line-2); }
}

@keyframes glow-drift {
  from { transform: scaleY(1) translateY(0); }
  to { transform: scaleY(0.55) translateY(-20px); }
}

@media (max-width: 1024px) {
  .hero-foot .lede {
    grid-column: 1 / -1;
    margin-bottom: 48px;
  }

  .stats { grid-column: 1 / -1; }
  .sec-head h2 { grid-column: 1 / -1; }
  .sec-head p { grid-column: 1 / -1; margin-top: 20px; }
  .proj .name { grid-column: 1 / 11; }
  .proj .url { grid-column: 1 / 9; grid-row: 3; margin-top: 14px; }
  .proj .desc { grid-column: 1 / 10; grid-row: 4; margin-top: 8px; }
  .proj .arrow { grid-column: 11 / 13; grid-row: 1; align-self: center; }
  .contact h2 { grid-column: 1 / -1; }

  .contact .cta {
    grid-column: 1 / -1;
    margin-top: 40px;
    padding: 0;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .step {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 120px 1fr;
    column-gap: 24px;
    padding: 24px 0 40px;
  }

  .step .n { margin: 0; grid-row: 1 / 3; }
  .card { padding: 28px 22px 22px; }
  .card .av { width: 100%; max-width: 200px; height: auto; aspect-ratio: 1; }
  .card h3 { font-size: 1.75rem; }
}

@media (max-width: 720px) {
  body { font-size: 1rem; }
  .hero h1 .ln { white-space: normal; }
  .nav nav { gap: 18px; }
  .nav nav a:not(.keep) { display: none; }
  .stats { gap: 14px; }
  .stat dd { font-size: 2.125rem; }
  .step { grid-template-columns: 1fr; }
  .step .n { margin-bottom: 28px; }
  .card,
  .card:last-child { grid-column: 1 / -1; }
  .contact .cta {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 32px;
  }
  .card { padding: 32px 28px 24px; }
  .card .av { width: 176px; }
  .btn { font-size: 1rem; padding: 16px 22px; }
  .proj .arrow { width: 42px; height: 42px; }
}

@media (pointer: coarse) {
  .toggle,
  .nav nav a,
  .proj .arrow {
    min-width: 44px;
    min-height: 44px;
  }

  .nav nav a { display: inline-flex; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media (forced-colors: active) {
  .wordmark {
    background: none;
    color: CanvasText;
    -webkit-text-fill-color: CanvasText;
  }

  .horizon .line,
  .brand i { background: CanvasText; }
  .horizon .glow { display: none; }
  :focus-visible { outline-color: CanvasText; }
  .btn,
  .proj .arrow,
  .card,
  .toggle { border: 1px solid ButtonText; }
  .stat,
  .proj,
  .projects,
  .step,
  .foot-meta { border-color: CanvasText; }
}
