:root {
  --bg: #f5f7f9;
  --surface: #ffffff;
  --line: #d9e0e6;
  --text: #1b2430;
  --muted: #5c6b78;
  --faint: #8c99a6;
  --accent: #3e7ca6;
  --accent-ink: #ffffff;
  --term-bg: #0f1419;
  --term-text: #d7dee6;
  --term-prompt: #7fb3d5;
  --term-ok: #8bd3a2;
  --shadow: 0 30px 60px -30px rgba(20, 30, 45, 0.35);
  --sans:
    -apple-system, "SF Pro Text", "Helvetica Neue", "Segoe UI", Arial,
    sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141a21;
    --surface: #1b222b;
    --line: #2b3541;
    --text: #e6ebf0;
    --muted: #98a5b3;
    --faint: #6e7b89;
    --accent: #7fb3d5;
    --accent-ink: #0f1419;
    --shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #141a21;
  --surface: #1b222b;
  --line: #2b3541;
  --text: #e6ebf0;
  --muted: #98a5b3;
  --faint: #6e7b89;
  --accent: #7fb3d5;
  --accent-ink: #0f1419;
  --shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}
body::before {
  z-index: -3;
  background-color: var(--accent);
  opacity: 0.07;
  -webkit-mask-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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mask-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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  -webkit-mask-size: 220px 220px;
  mask-size: 220px 220px;
}
body::after {
  z-index: -2;
  background:
    radial-gradient(
      ellipse 60vw 55vh at 78% 6%,
      color-mix(in srgb, var(--accent) 10%, transparent),
      transparent 60%
    ),
    radial-gradient(
      ellipse 70vw 60vh at 10% 52%,
      color-mix(in srgb, var(--accent) 6%, transparent),
      transparent 62%
    );
  animation: drift 54s ease-in-out infinite;
  will-change: transform;
}
body {
  margin: 0;
  overflow-x: hidden;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--accent);
  text-decoration: none;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 6px;
}
h1,
p {
  margin: 0;
}

.page {
  position: relative;
  isolation: isolate;
  width: min(760px, calc(100% - 48px));
  margin: 0 auto;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 40px 0;
}
.page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    ellipse 55vw 50vh at 50% 42%,
    color-mix(in srgb, var(--accent) 12%, transparent),
    transparent 62%
  );
  transition: opacity 0.7s ease;
  animation: drift 68s ease-in-out infinite reverse;
}
.page.open::before {
  opacity: 0;
}
.entrance {
  position: absolute;
  left: 50%;
  top: 40%;
  transform: translate(-50%, -50%);
  width: min(340px, 82vw);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  transition:
    left 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    top 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.mark {
  display: block;
  width: 100%;
  height: auto;
  color: var(--accent);
  transition:
    filter 0.35s ease,
    transform 0.35s ease;
}
.entrance:hover .mark {
  transform: translateY(-3px);
  filter: drop-shadow(
    0 14px 26px color-mix(in srgb, var(--accent) 32%, transparent)
  );
}
.rule {
  position: relative;
  width: 100%;
  height: 1px;
  background: var(--line);
  transition: opacity 0.4s ease;
}
.rule::before,
.rule::after {
  content: "";
  position: absolute;
  top: -4px;
  width: 1px;
  height: 9px;
  background: var(--faint);
}
.rule::after {
  right: 0;
}
.enter {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap;
  transition:
    opacity 0.3s ease,
    color 0.2s ease;
}
.entrance:hover .enter {
  color: var(--accent);
}

.page.open .entrance {
  left: 0;
  top: 34px;
  transform: none;
  width: 104px;
  gap: 0;
  padding: 0;
}
.page.open .rule,
.page.open .enter {
  opacity: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}
.page.open .entrance:hover .mark {
  transform: none;
}
body:has(.page.logo-intro:not(.open)) {
  background: #f5f7f9;
}
body:has(.page.logo-intro:not(.open))::before,
body:has(.page.logo-intro:not(.open))::after {
  opacity: 0;
}
.page.logo-intro:not(.open) {
  --bg: #f5f7f9;
  --accent: #3e7ca6;
  --text: #1b2430;
  --line: #d9e0e6;
  --faint: #8c99a6;
  color: var(--text);
  color-scheme: light;
}
.page.logo-intro:not(.open)::before {
  background: radial-gradient(
    ellipse 55vw 48vh at 50% 42%,
    color-mix(in srgb, var(--accent) 12%, transparent),
    transparent 62%
  );
  animation: none;
}
.mark-3d,
.logo-fluid,
.logo-field {
  display: none;
}
.page.logo-intro:not(.open) .entrance {
  top: 46%;
  width: min(1100px, 94vw);
  gap: 22px;
}
.page.logo-intro:not(.open) .mark-3d {
  display: block;
  width: 100%;
  height: min(68svh, 640px);
  opacity: 0;
  transition: opacity 0.9s ease-out;
}
.page.logo-intro:not(.open) .mark {
  position: absolute;
  width: min(340px, 82vw);
  top: 40%;
  visibility: hidden;
  opacity: 0;
}
.page.logo-ready:not(.open) .mark {
  opacity: 0;
}
.page.logo-ready:not(.open) .mark-3d {
  opacity: 1;
}
.page.logo-intro:not(.open) .logo-fluid,
.page.logo-intro:not(.open) .logo-field {
  display: block;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.9s ease-out;
}
.page.logo-ready:not(.open) .logo-fluid,
.page.logo-ready:not(.open) .logo-field {
  opacity: 1;
}
.page.logo-intro .foot {
  position: relative;
  z-index: 1;
}
.nav,
.views {
  display: none;
}

.page.open .nav {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 0 26px;
  min-height: 84px;
  padding: 52px 0 0;
  position: relative;
  border-bottom: 1px solid var(--line);
  animation: reveal 0.5s 0.1s both;
}
.page.open .nav::before,
.page.open .nav::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 1px;
  height: 9px;
  background: var(--faint);
}
.page.open .nav::after {
  left: auto;
  right: 0;
}
.tabs {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 24px;
}
.tab-ind {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 2px;
  pointer-events: none;
  background: var(--accent);
  transition:
    transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}
.tabs a {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 12px 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--faint);
  background: none;
  border: 0;
  cursor: pointer;
  transition: color 0.18s ease;
}

.tabs a[aria-current="true"] {
  color: var(--accent);
}
.nav .ask {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 12px 0;
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  background: none;
  border: 0;
  cursor: pointer;
  transition: opacity 0.18s ease;
  position: relative;
}
.nav .ask::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 50%;
  width: 1px;
  height: 14px;
  margin-top: -7px;
  background: var(--line);
}
.ask-mark {
  letter-spacing: 0;
  opacity: 0.8;
}
.ask-mark {
  opacity: 0.75;
}

.page.open .views {
  display: block;
  padding-top: 52px;
}
.view {
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: reveal 0.55s both;
}
.view[hidden] {
  display: none;
}
.view h1,
.view h2 {
  margin: 0;
  font-size: clamp(31px, 4.6vw, 50px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.07;
  text-wrap: balance;
}
.view h1 em,
.view h2 em {
  font-style: normal;
  color: var(--muted);
}
.lead {
  color: var(--muted);
  font-size: 18px;
  max-width: 46ch;
  margin-top: 2px;
}

.entries {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.entries a {
  width: 100%;
  text-align: left;
  font: inherit;
  color: var(--text);
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr 22px;
  gap: 4px 16px;
  align-items: baseline;
  padding: 24px 0;
  transition: background-color 0.18s ease;
}

.entries .t {
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.entries .q {
  grid-column: 1;
  color: var(--muted);
  font-size: 14px;
}
.entries .go {
  grid-column: 2;
  grid-row: 1;
  color: var(--accent);
  font-size: 20px;
}

.foot {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--faint);
  font-size: 13px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.logo {
  transition:
    transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 0.35s ease;
}
.logo:hover {
  transform: translateY(-2px) scale(1.01);
  filter: drop-shadow(0 12px 24px rgba(62, 124, 166, 0.25));
}
.term-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 12, 16, 0.38);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  animation: term-fade 0.28s ease-out both;
}
.term-backdrop[hidden] {
  display: none;
}
.term-backdrop.closing {
  animation: term-fade 0.22s ease-in reverse both;
}
.term {
  --dx: 0px;
  --dy: 0px;
  width: min(720px, 100%);
  color: var(--term-text);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-family: var(--mono);
  font-size: 14px;
  background: rgba(17, 21, 27, 0.84);
  backdrop-filter: blur(34px) saturate(160%);
  -webkit-backdrop-filter: blur(34px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow:
    0 0 0 0.5px rgba(0, 0, 0, 0.7),
    0 46px 90px -24px rgba(0, 0, 0, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  animation: term-pop 0.52s cubic-bezier(0.16, 1, 0.3, 1) both;
  will-change: transform, opacity;
}
.term-backdrop.closing .term {
  animation: term-shrink 0.22s cubic-bezier(0.4, 0, 1, 1) both;
}
@keyframes term-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes term-pop {
  from {
    opacity: 0;
    transform: translate(var(--dx), var(--dy)) scale(0.32);
  }
  55% {
    opacity: 1;
  }
  to {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
}
@keyframes term-shrink {
  from {
    opacity: 1;
    transform: none;
  }
  to {
    opacity: 0;
    transform: translate(var(--dx), var(--dy)) scale(0.4);
  }
}
.term-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 11px 14px;
  background: linear-gradient(
    rgba(255, 255, 255, 0.075),
    rgba(255, 255, 255, 0.025)
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.lights {
  display: flex;
  gap: 8px;
}
.lights i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: block;
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.25);
}
.lights i:nth-child(1) {
  background: #ff5f57;
}
.lights i:nth-child(2) {
  background: #febc2e;
}
.lights i:nth-child(3) {
  background: #28c840;
}
.term-bar .title {
  text-align: center;
  color: #a3aeba;
  font-size: 12.5px;
  letter-spacing: 0.01em;
  font-family: var(--sans);
  font-weight: 500;
}
.term-bar .close {
  justify-self: end;
  background: none;
  border: 0;
  color: #8c99a6;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
}
.term-bar .close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}
.progress {
  height: 2px;
  background: rgba(255, 255, 255, 0.07);
}
.progress i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--term-prompt), var(--term-ok));
  transition: width 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.progress.done i {
  width: 100%;
  opacity: 0;
  transition:
    width 0.4s ease,
    opacity 0.6s ease 0.3s;
}
.term-out {
  padding: 18px 18px 8px;
  min-height: 240px;
  max-height: 60vh;
  overflow-y: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.65;
}
.term-out .q {
  color: var(--term-prompt);
}
.term-out .a {
  color: var(--term-text);
}
.term-out .sys {
  color: #8c99a6;
}
.term-out .ok {
  color: var(--term-ok);
}
.thinking-demo {
  margin: 14px 0 10px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  background: linear-gradient(
    145deg,
    rgba(127, 179, 213, 0.08),
    rgba(255, 255, 255, 0.025)
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  white-space: normal;
}
.think-stage {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 12px;
  min-height: 66px;
}
.think-label {
  margin: 0;
  color: var(--term-prompt);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
}
.think-count {
  color: #6f7d8a;
  font-size: 11px;
}
.think-copy {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--term-text);
  line-height: 1.5;
}
.think-graph {
  display: block;
  width: min(100%, 500px);
  height: auto;
  margin: 12px auto 8px;
  overflow: visible;
}
.think-edge line {
  stroke: #52616e;
  stroke-width: 2.2;
  transition:
    stroke 0.24s ease,
    stroke-width 0.24s ease,
    opacity 0.24s ease;
}
.think-edge text {
  fill: #82909d;
  font: 12px var(--mono);
  paint-order: stroke;
  stroke: #11171d;
  stroke-width: 5px;
  stroke-linejoin: round;
}
.think-edge.is-inspected line {
  stroke: var(--term-prompt);
  stroke-width: 3.2;
}
.think-edge.is-path line {
  stroke: var(--term-ok);
  stroke-width: 4.5;
}
.think-edge.is-path text {
  fill: var(--term-ok);
}
.think-edge.is-excluded line {
  stroke: #e57878;
  stroke-dasharray: 7 6;
  opacity: 0.58;
}
.think-edge.is-excluded text {
  fill: #e58b8b;
  text-decoration: line-through;
}
.think-node circle {
  fill: #18212a;
  stroke: #697785;
  stroke-width: 2;
  transition:
    fill 0.24s ease,
    stroke 0.24s ease,
    stroke-width 0.24s ease;
}
.think-node > text:not(.think-node-cost) {
  fill: var(--term-text);
  font: 700 14px var(--mono);
}
.think-node-cost {
  fill: #83909c;
  font: 11px var(--mono);
}
.think-node.is-visited circle {
  stroke: var(--term-prompt);
  fill: #1b2a35;
}
.think-node.is-active circle {
  stroke: var(--term-ok);
  stroke-width: 4;
  fill: #1d3328;
}
.think-node.is-path circle {
  stroke: var(--term-ok);
  stroke-width: 3.5;
  fill: #1d3328;
}
.think-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.think-controls button {
  min-height: 42px;
  border-radius: 8px;
  font: 12px var(--mono);
}
.think-controls button {
  padding: 9px 13px;
  cursor: pointer;
}
.think-controls button:disabled {
  cursor: default;
  opacity: 0.38;
}
.think-primary {
  color: #10171d;
  background: var(--term-ok);
  border: 1px solid var(--term-ok);
}
.think-secondary {
  color: var(--term-text);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.13);
}
.think-primary:hover:not(:disabled),
.think-secondary:hover:not(:disabled) {
  filter: brightness(1.1);
}
.think-challenge {
  margin-top: 12px;
}
.think-challenge fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}
.think-challenge legend {
  margin-bottom: 7px;
  color: #8f9ca8;
  font-size: 11px;
}
.think-choice-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.think-edge-choice {
  position: relative;
  display: block;
}
.think-edge-choice input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
}
.think-edge-choice span {
  display: grid;
  place-items: center;
  min-height: 40px;
  padding: 8px 11px;
  color: var(--term-text);
  background: #18212a;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  cursor: pointer;
}
.think-edge-choice input:checked + span {
  color: #10171d;
  background: var(--term-ok);
  border-color: var(--term-ok);
}
.thinking-demo button:focus-visible,
.think-edge-choice input:focus-visible + span {
  outline: 2px solid var(--term-prompt);
  outline-offset: 2px;
}
.cursor {
  display: inline-block;
  width: 0.58em;
  height: 1.05em;
  margin-left: 1px;
  background: var(--term-ok);
  vertical-align: -0.15em;
  border-radius: 1px;
  animation: blink 1.05s steps(2, start) infinite;
}
@keyframes blink {
  to {
    visibility: hidden;
  }
}
.term-in {
  display: flex;
  gap: 10px;
  padding: 12px 18px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  align-items: center;
}
.prompt {
  color: var(--term-prompt);
  white-space: nowrap;
}
#term-q {
  flex: 1;
  background: transparent;
  border: 0;
  color: var(--term-text);
  font: inherit;
  caret-color: var(--term-ok);
  min-width: 0;
}
#term-q:focus {
  outline: none;
}
#term-q::placeholder {
  color: #55626f;
}
@media (prefers-reduced-motion: reduce) {
  .logo,
  .card,
  .progress i {
    transition: none;
  }
  .term-backdrop,
  .term,
  .term-backdrop.closing,
  .term-backdrop.closing .term {
    animation: none;
  }
  .cursor {
    animation: none;
  }
  .think-edge line,
  .think-node circle {
    transition: none;
  }
}

@media (max-width: 520px) {
  .term-backdrop {
    padding: 8px;
    align-items: stretch;
  }
  .term {
    border-radius: 10px;
  }
  .term-out {
    max-height: none;
    min-height: 0;
    flex: 1;
    padding: 14px 12px 8px;
  }
  .thinking-demo {
    padding: 12px 9px;
  }
  .think-copy {
    font-size: 12px;
  }
  .think-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .think-controls .think-primary {
    grid-column: 1 / -1;
  }
  .think-controls button {
    width: 100%;
  }
}

.term-note {
  margin: 0;
  padding: 0 18px 14px;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.5;
  color: #7c8896;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 12px;
}
.term-note a {
  color: var(--term-prompt);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.doc {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.doc h1 {
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.doc h2 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.doc section {
  max-width: 62ch;
}
.doc p {
  color: var(--muted);
}
.doc p + p {
  margin-top: 10px;
}
.doc ul {
  color: var(--muted);
  margin: 8px 0 0;
  padding-left: 20px;
}
.doc li + li {
  margin-top: 6px;
}
.doc .meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.doc .back {
  font-family: var(--mono);
  font-size: 13px;
}

.projects {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.projects .go span,
.entries .go {
  display: inline-block;
  transition: transform 0.18s ease;
}
.projects a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 16px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  transition:
    padding 0.2s ease,
    background 0.2s ease;
}

.projects em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
}
.projects .t {
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.projects .q {
  grid-column: 1;
  color: var(--muted);
  max-width: 52ch;
}
.projects .go {
  grid-column: 2;
  grid-row: 1;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
}
.view .k {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.view p {
  color: var(--muted);
  max-width: 56ch;
}
.view p + p {
  margin-top: 12px;
}

.cols {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 40px;
  align-items: start;
  margin-top: 6px;
}
.practice {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.practice li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.practice em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
}

.steps {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.steps li {
  display: block;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.steps h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.steps .eg {
  margin-top: 12px;
  padding-left: 16px;
  border-left: 1px solid var(--line);
  color: var(--faint);
  font-size: 15px;
}

@media (max-width: 620px) {
  .cols {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

@media (max-width: 620px) {
  .projects a {
    grid-template-columns: 1fr;
  }
  .projects .go {
    grid-column: 1;
    grid-row: auto;
    margin-top: 8px;
  }
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 620px) {
  .entrance {
    width: min(280px, 76vw);
    top: 38%;
  }
  .page.open .entrance {
    left: 0;
    top: 26px;
    width: 84px;
  }
  .page.open .nav {
    justify-content: flex-start;
    padding: 62px 0 0;
    min-height: 0;
    gap: 0 16px;
  }
  .tabs {
    max-width: 100%;
    gap: 16px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    overscroll-behavior-x: contain;
  }
  .tabs::-webkit-scrollbar {
    display: none;
  }
  .tabs a {
    font-size: 10px;
    letter-spacing: 0.14em;
    min-height: 40px;
    padding: 10px 0;
  }
  .nav .ask {
    font-size: 10px;
    letter-spacing: 0.14em;
    min-height: 40px;
    padding: 10px 0;
    margin-left: 6px;
  }
  .nav .ask::before {
    left: -12px;
  }
  .page.open .views {
    padding-top: 34px;
  }
  .entries a {
    grid-template-columns: 1fr;
  }
  .entries .go {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .entrance,
  .mark,
  .rule,
  .enter,
  .page::before,
  .tab-ind {
    transition: none !important;
  }
  .view,
  .page.open .nav {
    animation: none !important;
  }
  .page::before,
  body::after {
    animation: none !important;
  }
  .projects .go span,
  .entries .go,
  .tabs a,
  .projects a,
  .entries a {
    transition: none !important;
    transform: none !important;
  }
}

.prose {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 6px;
}
.prose p {
  color: var(--muted);
  max-width: 58ch;
}
.projects .q strong {
  color: var(--text);
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}
.steps .eg + .eg {
  margin-top: 8px;
}

.contact {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.contact a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.foot a {
  color: var(--faint);
}
.foot a:hover {
  color: var(--accent);
}

@media (hover: hover) and (pointer: fine) {
  .tabs a:hover {
    color: var(--text);
  }
  .nav .ask:hover {
    opacity: 0.72;
  }
  .projects a:hover,
  .entries a:hover {
    background-color: color-mix(in srgb, var(--accent) 5%, transparent);
  }
  .projects a:hover .go span,
  .entries a:hover .go {
    transform: translate(3px, -3px);
  }
}
