/* Color and interaction layer. Base content/layout rules live in styles.css. */
:root {
  --paper: #fffdf6;
  --ink: #202322;
  --muted: #4e5653;
  --line: #202322;
  --accent: #8b2645;
  --tint: #eeebe2;
  --outline: #202322;
  --yellow: #ffdf66;
  --blue: #b6d8f6;
  --mint: #c7eedb;
  --coral: #ffb9a5;
  --lilac: #ded3fa;
  --pink: #f6cae6;
  --surface: #fffdf6;
  --shadow: #202322;
  --panel-ink: #202322;
  --serif: var(--sans);
  --section: 80px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --paper: #191d22;
  --ink: #f4f0e5;
  --muted: #c3c8ca;
  --line: #7d8990;
  --accent: #ffd46c;
  --tint: #2c323b;
  --outline: #10161d;
  --shadow: #080c11;
  --yellow: #eac75c;
  --blue: #aacbe8;
  --mint: #b5d9c6;
  --coral: #e5a28e;
  --lilac: #cbbce9;
  --pink: #e3b5d2;
  --surface: #252b33;
  color-scheme: dark;
}
html {
  scrollbar-gutter: stable;
}
body {
  background: var(--paper);
}
h1,
h2 {
  font-family: var(--sans);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.05em;
}
a:hover {
  text-decoration-color: currentColor;
}
::selection {
  background: var(--coral);
  color: var(--panel-ink);
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
button,
a {
  transition:
    background-color 0.16s,
    color 0.16s,
    box-shadow 0.16s,
    transform 0.16s;
}
main > .wrap {
  max-width: none;
  padding: 0;
}
.header {
  border-bottom: 2px solid var(--outline);
}
.header-inner {
  max-width: 1600px;
  min-height: 76px;
  padding-inline: clamp(22px, 3vw, 48px);
  gap: 24px;
}
.brand {
  font-weight: 700;
  font-size: 20px;
  gap: 11px;
}
.brand-mark {
  background: var(--yellow);
  color: var(--panel-ink);
  border: 2px solid var(--outline);
  box-shadow: 2px 2px 0 var(--outline);
  font: 700 24px/1 var(--sans);
  padding: 0 0 4px;
  transform: rotate(-6deg);
  width: 37px;
  height: 37px;
}
.nav {
  margin-left: auto;
  gap: 26px;
}
.nav > a {
  font-weight: 500;
  font-size: 13px;
}
.nav .nav-contact {
  background: var(--ink);
  color: var(--paper);
  min-height: 40px;
  padding: 8px 13px;
  border: 0;
}
.nav .nav-contact:hover {
  background: var(--accent);
}
.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.quick-toggle,
.theme-toggle {
  background: var(--surface);
  border: 1.5px solid var(--line);
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 12px;
  padding: 0 10px;
}
.quick-toggle svg,
.theme-toggle svg {
  width: 17px;
  height: 17px;
}
.quick-toggle kbd {
  font: 10px var(--mono);
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 1px 4px;
}
.theme-toggle {
  width: 40px;
  padding: 0;
}
.theme-toggle:hover,
.quick-toggle:hover {
  background: var(--tint);
  transform: translateY(-2px);
  box-shadow: 2px 2px 0 var(--line);
}
.theme-sun {
  display: none;
}
[data-theme="dark"] .theme-sun {
  display: block;
}
[data-theme="dark"] .theme-moon {
  display: none;
}
.menu-toggle {
  border: 1.5px solid var(--line);
  background: var(--surface);
}
.hero {
  padding: 0;
  display: grid;
  grid-template-columns: 1.16fr 1fr;
  min-height: 685px;
}
.hero-copy {
  padding: 48px clamp(30px, 5vw, 80px) 44px
    max(var(--gutter), calc((100vw - 1280px) / 2));
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.hero-topline {
  width: 100%;
  margin: 0 0 28px;
  gap: 15px;
  align-items: center;
}
.hero-topline .eyebrow {
  font-size: 9px;
  letter-spacing: 0.035em;
}
.hero-topline > .eyebrow:first-child {
  background: var(--blue);
  color: var(--panel-ink);
  padding: 6px 10px;
  border: 1px solid var(--outline);
  border-radius: 30px;
}
.hero-location::before {
  background: var(--accent);
}
.hero-greeting {
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 13px;
}
.hero h1 {
  font-size: clamp(45px, 4.7vw, 76px);
  max-width: 800px;
  line-height: 1.06;
  letter-spacing: -0.06em;
}
.hero h1 .name-highlight {
  position: relative;
  width: fit-content;
  isolation: isolate;
}
.name-highlight::after {
  content: "";
  position: absolute;
  bottom: 3px;
  left: -3px;
  right: -10px;
  height: 29%;
  background: var(--coral);
  transform: rotate(-1deg);
  z-index: -1;
}
[data-theme="dark"] .name-highlight::after {
  background: #765442;
}
.hero h1 .name-dot {
  display: inline;
  color: var(--accent);
}
.hero-intro {
  font-size: 16px;
  line-height: 1.8;
  margin: 25px 0 0;
  max-width: 540px;
  letter-spacing: -0.015em;
}
.hero-actions {
  margin-top: 25px;
  gap: 16px;
  flex-wrap: wrap;
}
.button,
.button-outline {
  padding: 12px 18px;
  font-size: 12px;
  font-weight: 600;
  gap: 25px;
  min-height: 47px;
  border: 2px solid var(--line);
  box-shadow: 4px 4px 0 var(--line);
  background: var(--ink);
  color: var(--paper);
}
.button-outline {
  background: var(--paper);
  color: var(--ink);
}
.button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--line);
  background: var(--coral);
  color: var(--panel-ink);
  border-color: var(--line);
}
.button:active {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 var(--line);
}
.hero-note {
  border: 0;
  border-top: 1px solid var(--line);
  margin-top: 34px;
  padding: 22px 0 0;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 525px;
}
.note-spark {
  font-size: 29px;
  line-height: 1.2;
  color: var(--accent);
}
.hero-note h2 {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 7px;
  letter-spacing: -0.015em;
}
.hero-note p {
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
}
.hero-lab {
  min-width: 0;
  background: var(--yellow);
  color: var(--panel-ink);
  border-left: 2px solid var(--outline);
  padding: 28px 30px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.lab-heading {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}
.lab-heading h2 {
  font-size: 13px;
  letter-spacing: -0.02em;
  font-weight: 600;
  line-height: 1.5;
}
.lab-dot {
  width: 7px;
  height: 7px;
  border: 1px solid var(--outline);
  background: var(--panel-ink);
  border-radius: 50%;
}
.lab-index {
  margin-left: 5px;
  font-size: 17px;
}
.lab-caption {
  font-size: 11px;
  line-height: 1.6;
  margin-top: 6px;
}
.lab-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 530px;
  isolation: isolate;
  margin-top: 5px;
}
.lab-stage::before {
  content: "";
  width: 350px;
  height: 350px;
  background: var(--pink);
  border: 2px solid var(--outline);
  border-radius: 43% 57% 66% 34% / 45% 37% 63% 55%;
  position: absolute;
  transform: rotate(-13deg);
  z-index: -1;
  top: 50px;
}
.phone-anchor {
  perspective: 1200px;
  width: 254px;
  height: 470px;
  position: relative;
  z-index: 2;
  transform: rotate(-5deg);
}
.phone-tilt {
  height: 100%;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  transition: transform 0.25s ease-out;
  will-change: auto;
}
.phone-flip {
  position: relative;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.22, 0.8, 0.25, 1);
}
.lab-stage[data-flipped] .phone-flip {
  transform: rotateY(180deg);
}
.phone-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border: 3px solid var(--outline);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 9px 10px 0 var(--outline);
  background: #fffdf6;
  color: #202322;
}
.phone-back {
  transform: rotateY(180deg);
  background: #263b36;
  color: #fffdf6;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
}
.phone-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 18px 7px;
  font-size: 8px;
  font-weight: 700;
  position: relative;
  line-height: 1.5;
}
.phone-camera {
  width: 63px;
  height: 15px;
  border-radius: 20px;
  background: var(--outline);
  position: absolute;
  left: 50%;
  top: 7px;
  transform: translateX(-50%);
}
.phone-app {
  padding: 6px 17px 15px;
}
.app-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  padding-bottom: 12px;
  border-bottom: 1px solid #d5d9d0;
}
.app-icon {
  background: #b6d8f6;
  border: 1px solid #202322;
  width: 21px;
  height: 21px;
  font-size: 13px;
  font-weight: 700;
  display: grid;
  place-items: center;
  padding-bottom: 2px;
}
.app-demo {
  margin-left: auto;
  border: 1px solid #202322;
  border-radius: 20px;
  padding: 1px 5px;
  font: 7px var(--mono);
}
.asset-heading {
  margin-top: 12px;
}
.asset-heading > span {
  display: block;
  font-size: 8px;
  color: #535b55;
}
.asset-heading > strong {
  display: flex;
  justify-content: space-between;
  font-size: 21px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: -0.06em;
}
.asset-heading strong span {
  font-size: 20px;
  color: #1e694b;
}
.demo-chart {
  height: 50px;
  color: #27664c;
  margin-top: 6px;
}
.demo-chart svg {
  width: 100%;
  height: 100%;
}
.trade-side {
  display: flex;
  background: #e9ece4;
  border: 1px solid #202322;
  border-radius: 6px;
  padding: 3px;
  gap: 3px;
  margin-top: 10px;
}
.trade-side button {
  flex: 1;
  min-height: 27px;
  border: 0;
  background: none;
  font-size: 9px;
  border-radius: 3px;
  color: #202322;
  font-weight: 600;
}
.trade-side button[aria-pressed="true"] {
  background: #c7eedb;
  box-shadow: 0 0 0 1px #202322;
}
.trade-side button[data-side="sell"][aria-pressed="true"] {
  background: #ffb9a5;
}
.quantity-row,
.demo-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9px;
  margin-top: 11px;
  gap: 10px;
}
.stepper {
  display: flex;
  align-items: center;
  border: 1px solid #202322;
  border-radius: 4px;
  overflow: hidden;
}
.stepper button {
  width: 25px;
  height: 25px;
  border: 0;
  background: #ecece5;
  color: #202322;
  font-size: 14px;
  line-height: 1;
}
.stepper button:hover {
  background: #ffdf66;
}
.stepper output {
  width: 28px;
  text-align: center;
  font-size: 9px;
  font-weight: 600;
}
.demo-total strong {
  font-size: 10px;
}
.lab-status {
  font-size: 8px;
  line-height: 1.65;
  min-height: 27px;
  margin: 10px 0 0;
  color: #344e42;
}
.lab-primary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 31px;
  border: 1px solid #202322;
  border-radius: 4px;
  background: #202322;
  color: #fffdf6;
  padding: 0 10px;
  font-size: 9px;
  font-weight: 600;
}
.lab-primary:hover {
  background: #345c47;
}
.lab-edit {
  display: block;
  width: 100%;
  background: transparent;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: #202322;
  font-size: 8px;
  padding: 3px;
  min-height: 22px;
}
.demo-disclosure {
  font-size: 7px;
  line-height: 1.5;
  text-align: center;
  color: #515c55;
  margin-top: 7px;
}
.phone-home {
  position: absolute;
  bottom: 5px;
  left: calc(50% - 35px);
  height: 3px;
  width: 70px;
  background: #202322;
  border-radius: 20px;
}
.phone-front:focus-within {
  outline: 3px solid #8b2645;
  outline-offset: 5px;
}
.phone-front :focus-visible {
  outline-color: #8b2645;
  outline-width: 2px;
  outline-offset: 2px;
}
.back-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #c7eedb;
  font-size: 25px;
}
.back-title .mono {
  font-size: 8px;
}
.phone-back h3 {
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1.2;
  margin-top: 18px;
}
.phone-back pre {
  font: 13px/1.8 var(--mono);
  margin: 20px 0;
}
.phone-back pre span {
  color: #ffdf66;
}
.phone-back > p {
  font-size: 11px;
  line-height: 1.7;
}
.phone-back .back-note {
  font-size: 9px;
  color: #c5d7cc;
  margin-top: auto;
}
.lab-sticker {
  position: absolute;
  border: 2px solid var(--outline);
  box-shadow: 3px 3px 0 var(--outline);
  font-weight: 700;
  line-height: 1;
  z-index: 3;
  pointer-events: none;
}
.sticker-swift {
  top: 34px;
  left: calc(50% - 180px);
  background: var(--coral);
  padding: 16px 18px;
  transform: rotate(-15deg);
  font-size: 21px;
  letter-spacing: -0.055em;
  border-radius: 7px;
}
.sticker-state {
  right: calc(50% - 192px);
  bottom: 65px;
  background: var(--blue);
  padding: 12px 15px;
  transform: rotate(11deg);
  font: 600 11px var(--mono);
  border-radius: 4px;
}
.lab-flower {
  width: 73px;
  height: 73px;
  position: absolute;
  top: 35px;
  right: calc(50% - 190px);
  color: var(--mint);
  transform: rotate(14deg);
  z-index: 1;
}
.state-readout {
  position: absolute;
  bottom: 1px;
  display: flex;
  gap: 18px;
  align-items: center;
  background: #fffdf6;
  color: #202322;
  border: 2px solid var(--outline);
  box-shadow: 3px 3px 0 var(--outline);
  padding: 10px 16px;
  z-index: 4;
  transform: rotate(2deg);
}
.readout-label {
  font: 7px var(--mono);
  letter-spacing: 0.08em;
}
.state-readout output {
  font: 600 12px var(--mono);
  min-width: 66px;
}
.readout-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3e7858;
  border: 1px solid #202322;
}
.flip-control {
  display: flex;
  gap: 10px;
  align-items: center;
  background: #fffdf6;
  color: #202322;
  border: 2px solid var(--outline);
  box-shadow: 3px 3px 0 var(--outline);
  padding: 9px 17px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 30px;
  margin-top: 19px;
  min-height: 40px;
}
.flip-control:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--outline);
}
.flip-control > span {
  font-size: 18px;
  line-height: 1;
}
.hero-lab :focus-visible {
  outline-color: #8b2645;
}
.chapter-nav {
  padding-inline: max(var(--gutter), calc((100% - var(--width)) / 2));
  border-block: 2px solid var(--outline);
  background: var(--paper);
}
.chapter-nav a {
  padding-block: 20px;
  font-weight: 600;
  font-size: 11px;
}
.chapter-nav a:not(:first-child) {
  border-color: var(--line);
}
.chapter-nav span {
  font-size: 9px;
}
.section {
  padding: var(--section) max(var(--gutter), calc((100% - var(--width)) / 2));
  border-bottom: 2px solid var(--outline);
}
.section-heading {
  grid-template-columns: 220px 1fr;
  gap: 36px;
  margin-bottom: 38px;
}
.section-heading h2 {
  font-size: clamp(34px, 3.4vw, 51px);
  line-height: 1.13;
  letter-spacing: -0.05em;
}
.section-deck {
  font-size: 14px;
  max-width: 675px;
  line-height: 1.8;
}
.section-label {
  gap: 12px;
}
.section-label .eyebrow {
  font-size: 10px;
}
.section-no {
  background: var(--ink);
  color: var(--paper);
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  font-size: 9px;
  box-shadow: 2px 2px 0 var(--line);
}
#work {
  background: var(--blue);
  color: var(--panel-ink);
  --ink: #202322;
  --muted: #354b5c;
  --line: #6888a2;
  --accent: #762640;
  --paper: #fffdf6;
}
.work-row {
  padding: 27px 0;
  border-top: 1px solid var(--line);
}
.work-meta b {
  font-weight: 700;
  font-size: 13px;
}
.work-meta {
  font-size: 11px;
}
.work-body h3 {
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -0.035em;
}
.work-body > p {
  font-size: 14px;
  line-height: 1.8;
}
.work-tags {
  font-size: 10px;
}
.measurement b {
  font-size: 33px;
  font-weight: 600;
  letter-spacing: -0.07em;
}
.measurement span {
  font-size: 10px;
}
.work-details {
  border-top: 1px solid var(--line);
}
.work-details summary {
  font-weight: 600;
  font-size: 13px;
}
#projects {
  background: var(--paper);
}
.feature-grid {
  gap: 26px;
}
.feature {
  border: 2px solid var(--line);
  box-shadow: 6px 6px 0 var(--line);
  background: var(--mint);
  color: #202322;
  display: flex;
  flex-direction: column;
  --ink: #202322;
  --muted: #375043;
  --accent: #77263d;
  --line: #202322;
}
.feature:nth-child(2) {
  background: var(--lilac);
  --muted: #49405b;
}
.feature-preview {
  margin: 20px 20px 0;
  padding: 24px;
  background: #fffdf6;
  min-height: 262px;
  border: 2px solid #202322;
  color: #202322;
}
.feature-preview.dark {
  background: #263b36;
  color: #fffdf6;
}
.feature-info {
  padding: 22px 24px 28px;
}
.feature h3 {
  font-size: 24px;
  font-weight: 700;
}
.feature-info p {
  font-size: 13px;
  line-height: 1.8;
}
.feature-code {
  font-size: 11px;
}
.code-key {
  color: #8b2645;
}
.code-comment {
  color: #546054;
}
.project-shortlist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 37px;
  border: 0;
}
.short-project {
  position: relative;
  grid-template-columns: 1fr 22px;
  gap: 8px 18px;
  border: 2px solid var(--line);
  padding: 23px;
  background: var(--yellow);
  color: var(--panel-ink);
  box-shadow: 3px 3px 0 var(--line);
}
.short-project:nth-child(2) {
  background: var(--coral);
}
.short-project:nth-child(3) {
  background: var(--blue);
}
.short-project:nth-child(4) {
  background: var(--pink);
}
.short-project h3 {
  font-weight: 700;
  grid-column: 1;
  font-size: 16px;
}
.short-project p {
  grid-column: 1;
  color: #333e38;
  font-size: 12px;
  line-height: 1.7;
}
.short-project svg {
  grid-row: 1/3;
  grid-column: 2;
}
.short-project:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--line);
  color: #712a45;
}
.section-footer {
  margin-top: 32px;
}
.studio-note {
  background: var(--tint);
  border: 1.5px solid var(--line);
  padding: 28px;
  margin-top: 37px;
  grid-template-columns: 190px 1fr;
  gap: 30px;
}
.studio-note h3 {
  font-weight: 700;
}
#approach {
  background: var(--lilac);
  color: var(--panel-ink);
  --ink: #202322;
  --muted: #4c425e;
  --line: #8e7fa9;
  --accent: #762640;
  --paper: #fffdf6;
}
.approach-statement {
  font: 600 clamp(24px, 2.7vw, 36px) / 1.4 var(--sans);
  letter-spacing: -0.04em;
}
.approach-text p {
  font-size: 14px;
  line-height: 1.8;
}
.review-process {
  border: 2px solid var(--outline);
  background: #fffdf6;
  color: #202322;
  box-shadow: 5px 5px 0 var(--outline);
  --muted: #4e5653;
  --accent: #8b2645;
}
.review-step {
  padding: 23px !important;
}
.review-step + .review-step {
  border-left: 1px solid #a5a69c;
}
.review-step h3 {
  font-weight: 700;
  font-size: 13px;
}
.review-step:last-child {
  background: var(--mint);
}
.contributions h3 {
  font-weight: 600;
}
#about {
  background: var(--mint);
  color: var(--panel-ink);
  --ink: #202322;
  --muted: #365547;
  --line: #7eac94;
  --accent: #762640;
  --paper: #fffdf6;
}
.about-intro {
  font-size: 17px;
  line-height: 1.8;
}
.experience-item h3,
.education h3 {
  font-weight: 700;
}
.about-sidebar h3 {
  font-weight: 600;
}
.contact {
  padding: 75px max(var(--gutter), calc((100% - var(--width)) / 2));
  background: var(--coral);
  color: var(--panel-ink);
  --ink: #202322;
  --muted: #4e342b;
  --accent: #752741;
  --paper: #fffdf6;
}
.contact h2 {
  font-size: clamp(44px, 4.7vw, 71px);
  line-height: 1.1;
}
.contact-email {
  font-weight: 600;
  font-size: clamp(16px, 1.7vw, 25px);
}
.contact-links a {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.contact-utilities {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}
.copy-email {
  display: flex;
  gap: 16px;
  align-items: center;
  background: #fffdf6;
  color: #202322;
  border: 1.5px solid #202322;
  box-shadow: 2px 2px 0 #202322;
  padding: 8px 12px;
  min-height: 40px;
  font-size: 11px;
  font-weight: 600;
}
.copy-email:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 #202322;
}
.copy-status {
  font-size: 10px;
}
.footer {
  border-top: 2px solid var(--outline);
  padding-block: 24px;
}
.footer-inner {
  font-size: 11px;
}
.directory-hero {
  padding: 45px max(var(--gutter), calc((100% - var(--width)) / 2));
  background: var(--yellow);
  color: #202322;
  border-bottom: 2px solid var(--outline);
}
.directory-hero h1 {
  font-size: clamp(50px, 5.6vw, 82px);
  line-height: 1.1;
  letter-spacing: -0.06em;
  margin: 20px 0 23px;
}
.directory-hero p,
.directory-meta {
  color: #4e4d35;
}
.directory-hero .back-link {
  font-size: 12px;
}
.directory-hero a:hover {
  color: #852440;
}
.directory-meta {
  gap: 12px 22px;
}
section[aria-label="Project directory"] {
  padding-inline: max(var(--gutter), calc((100% - var(--width)) / 2));
  padding-top: 30px;
}
.directory-tools {
  border: 0;
  padding-top: 0;
}
input[type="search"],
select {
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}
input[type="search"] {
  min-height: 48px;
}
.filter {
  border: 1.5px solid var(--line);
  background: var(--surface);
  font-weight: 500;
}
.filter[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 2px 2px 0 var(--line);
}
.filter:hover {
  transform: translateY(-2px);
}
.project-list {
  border-top: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}
.project-row {
  position: relative;
  display: grid;
  grid-template-columns: 25px 1fr;
  gap: 13px 12px;
  padding: 24px;
  border: 1.5px solid var(--outline);
  box-shadow: 3px 3px 0 var(--outline);
  background: var(--blue);
  color: #202322;
  align-content: start;
  --muted: #354b5c;
  --line: #809cb5;
  --accent: #762640;
}
.project-row[data-category="ios"] {
  background: var(--mint);
  --muted: #365547;
}
.project-row[data-category="data"] {
  background: var(--lilac);
  --muted: #4c425e;
}
.project-row[data-category="forks"] {
  background: var(--tint);
  color: var(--ink);
  --muted: inherit;
}
.project-row[data-category="studio"] {
  background: var(--coral);
  --muted: #4e342b;
}
.project-row[data-category="profile"] {
  background: var(--yellow);
  --muted: #514e30;
}
.project-no {
  grid-row: 1;
  font-size: 9px;
}
.project-main {
  grid-column: 2;
  min-width: 0;
}
.project-main h2 {
  font: 700 17px/1.4 var(--sans);
  letter-spacing: -0.035em;
}
.project-main h2 a {
  display: inline;
}
.project-main svg {
  display: inline-block;
  vertical-align: baseline;
  margin-left: 6px;
}
.project-description {
  grid-column: 2;
}
.project-description p {
  font-size: 12px;
  line-height: 1.8;
}
.project-category {
  margin-top: 5px;
  font-size: 9px;
}
.project-description a {
  font-weight: 600;
}
.project-flags {
  grid-column: 2;
  grid-row: auto;
  justify-content: flex-start;
  gap: 7px;
  margin-top: 2px;
}
.badge {
  background: #fffdf6;
  color: #202322;
  border: 1px solid #202322;
  border-radius: 20px;
  font-size: 9px;
  padding: 3px 9px;
}
.badge-fork {
  background: #202322;
  color: #fffdf6;
}
.directory-end {
  padding: 5px max(var(--gutter), calc((100% - var(--width)) / 2)) 45px;
  font-size: 11px;
}
.quick-dialog {
  width: min(600px, calc(100% - 36px));
  max-height: min(640px, calc(100dvh - 64px));
  margin: auto;
  padding: 25px;
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--line);
  box-shadow: 8px 8px 0 var(--outline);
  overflow: auto;
}
.quick-dialog::backdrop {
  background: rgba(18, 25, 24, 0.68);
  backdrop-filter: blur(5px);
}
.quick-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 21px;
}
.quick-heading h2 {
  font-size: 30px;
}
.quick-close {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 7px 10px;
  font: 11px var(--mono);
  min-width: 40px;
  min-height: 36px;
}
.quick-dialog input {
  padding: 12px;
  font-size: 14px;
}
#quick-status {
  font-size: 10px;
  color: var(--muted);
  margin-top: 13px;
  min-height: 18px;
}
#quick-results {
  list-style: none;
  margin: 13px 0 0;
  padding: 0;
}
#quick-results li + li {
  border-top: 1px solid var(--line);
}
#quick-results a {
  display: grid;
  grid-template-columns: 1fr auto 15px;
  align-items: center;
  gap: 20px;
  padding: 14px 8px;
  text-decoration: none;
  font-size: 13px;
  min-height: 47px;
}
#quick-results a:hover,
#quick-results a:focus {
  background: var(--yellow);
  color: #202322;
  outline-offset: 0;
}
#quick-results small {
  font: 9px var(--mono);
  color: var(--muted);
}
#quick-results a:focus small,
#quick-results a:hover small {
  color: #4e5653;
}
.quick-help {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid var(--line);
  padding-top: 17px;
  margin-top: 20px;
  font: 9px var(--mono);
  color: var(--muted);
}
.quick-empty {
  font-size: 13px;
  padding: 25px 0;
  color: var(--muted);
}
.dialog-open {
  overflow: hidden;
}
.error-page {
  background: var(--lilac);
  color: #202322;
  --muted: #4c425e;
  --ink: #202322;
  --line: #202322;
  --accent: #762640;
  --paper: #fffdf6;
  max-width: none;
  padding-inline: max(var(--gutter), calc((100% - var(--width)) / 2));
}
.error-page h1 {
  font-size: clamp(55px, 6vw, 90px);
}
@media (min-width: 1600px) {
  .hero {
    min-height: 720px;
  }
  .hero-copy {
    padding-left: max(var(--gutter), calc((100vw - 1280px) / 2));
  }
  .hero-lab {
    padding-right: max(30px, calc((100vw - 1550px) / 2));
  }
}
@media (max-width: 1150px) {
  .nav {
    gap: 17px;
  }
  .header-inner {
    gap: 17px;
  }
  .quick-toggle kbd {
    display: none;
  }
  .hero-copy {
    padding-right: 32px;
    padding-left: var(--gutter);
  }
  .hero {
    grid-template-columns: 1.1fr 1fr;
  }
  .hero-topline {
    gap: 8px;
  }
  .hero-topline .eyebrow {
    font-size: 8px;
  }
  .hero h1 {
    font-size: 5.3vw;
  }
  .hero-lab {
    padding-inline: 15px;
  }
  .hero-intro {
    font-size: 15px;
  }
  .hero-actions {
    gap: 12px;
  }
  .hero-actions .button {
    padding: 10px 12px;
    gap: 15px;
    font-size: 11px;
  }
  .hero-note {
    margin-top: 28px;
  }
  .section-heading {
    grid-template-columns: 160px 1fr;
    gap: 30px;
  }
}
@media (max-width: 900px) {
  .header-inner {
    min-height: 70px;
    gap: 15px;
    position: relative;
  }
  .brand {
    font-size: 18px;
  }
  .brand-mark {
    height: 33px;
    width: 33px;
    font-size: 22px;
  }
  .header-actions {
    margin-left: auto;
    gap: 8px;
  }
  .quick-toggle {
    font-size: 11px;
    gap: 6px;
  }
  .theme-toggle,
  .quick-toggle {
    height: 38px;
  }
  .theme-toggle {
    width: 38px;
  }
  .menu-toggle {
    display: block;
    min-height: 38px;
    font-size: 11px;
    padding: 7px 10px;
    order: 4;
  }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    padding: 16px var(--gutter);
    border-bottom: 2px solid var(--line);
    background: var(--paper);
    flex-wrap: wrap;
    gap: 6px 25px;
  }
  .nav:not([data-open]) {
    display: none;
  }
  .nav > a {
    min-height: 44px;
    font-size: 14px;
  }
  .nav .nav-contact {
    background: none;
    color: var(--ink);
    padding: 0;
    min-height: 44px;
  }
  .no-js .header-inner {
    flex-wrap: wrap;
    gap: 6px;
    padding-block: 15px;
  }
  .no-js .nav {
    display: flex;
    position: static;
    width: 100%;
    padding: 0;
    border: 0;
    gap: 4px 20px;
  }
  .no-js .menu-toggle {
    display: none;
  }
  .hero {
    min-height: 650px;
    grid-template-columns: 1fr 1fr;
  }
  .hero-copy {
    padding: 36px 25px 35px var(--gutter);
  }
  .hero-greeting {
    font-size: 16px;
  }
  .hero h1 {
    font-size: 5.4vw;
  }
  .hero-intro {
    font-size: 14px;
    line-height: 1.8;
    margin-top: 20px;
  }
  .hero-topline .hero-location {
    display: none;
  }
  .hero-actions {
    margin-top: 20px;
    gap: 12px;
  }
  .hero-note h2 {
    font-size: 12px;
  }
  .hero-note p {
    font-size: 10px;
  }
  .hero-note {
    gap: 10px;
  }
  .note-spark {
    font-size: 23px;
  }
  .hero-lab {
    padding-inline: 12px;
  }
  .lab-heading h2 {
    font-size: 11px;
  }
  .lab-caption {
    font-size: 9px;
  }
  .phone-anchor {
    width: 234px;
    height: 470px;
  }
  .phone-app {
    padding-inline: 13px;
  }
  .lab-stage::before {
    width: 280px;
    height: 320px;
    top: 63px;
  }
  .sticker-swift {
    left: calc(50% - 145px);
    font-size: 17px;
    padding: 12px;
  }
  .sticker-state {
    right: calc(50% - 147px);
    font-size: 9px;
    padding: 10px;
  }
  .lab-flower {
    right: calc(50% - 145px);
    width: 60px;
    height: 60px;
  }
  .state-readout {
    gap: 12px;
    padding: 9px 12px;
  }
  .flip-control {
    font-size: 10px;
  }
  .section {
    padding-block: 65px;
  }
  .section-heading {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .section-heading h2 {
    font-size: 40px;
  }
  .project-row {
    padding: 19px;
    gap: 12px 8px;
  }
  .project-no {
    font-size: 8px;
  }
  .feature-preview {
    padding: 18px;
    margin: 15px 15px 0;
    min-height: 240px;
  }
  .feature-code {
    font-size: 10px;
  }
  .feature-info {
    padding: 20px;
  }
  .feature h3 {
    font-size: 22px;
  }
  .feature-preview .mono {
    font-size: 8px;
  }
}
@media (max-width: 650px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .hero-copy {
    padding: 34px var(--gutter) 37px;
  }
  .hero-topline {
    margin-bottom: 24px;
  }
  .hero-topline .hero-location {
    display: flex;
  }
  .hero-topline .eyebrow {
    font-size: 8px;
  }
  .hero h1 {
    font-size: clamp(43px, 10.6vw, 68px);
    line-height: 1.08;
  }
  .hero-greeting {
    font-size: 16px;
    margin-bottom: 11px;
  }
  .hero-intro {
    font-size: 15px;
    max-width: 560px;
    margin-top: 21px;
  }
  .hero-actions .button {
    font-size: 11px;
    padding: 11px 15px;
    gap: 20px;
    min-height: 44px;
  }
  .hero-note {
    max-width: 100%;
    margin-top: 27px;
    padding-top: 20px;
    gap: 13px;
  }
  .hero-note h2 {
    font-size: 12px;
  }
  .hero-note p {
    font-size: 11px;
  }
  .note-spark {
    font-size: 26px;
  }
  .hero-lab {
    border-left: 0;
    border-top: 2px solid var(--outline);
    padding: 23px 22px 27px;
  }
  .lab-heading h2 {
    font-size: 12px;
  }
  .lab-caption {
    font-size: 10px;
  }
  .lab-stage {
    height: 530px;
    max-width: 440px;
  }
  .phone-anchor {
    width: 254px;
    height: 470px;
  }
  .phone-app {
    padding-inline: 17px;
  }
  .lab-stage::before {
    width: 320px;
    height: 340px;
    top: 55px;
  }
  .sticker-swift {
    left: calc(50% - 173px);
    top: 34px;
    font-size: 20px;
    padding: 14px 16px;
  }
  .sticker-state {
    right: calc(50% - 171px);
    font-size: 10px;
    padding: 11px 13px;
    bottom: 67px;
  }
  .lab-flower {
    right: calc(50% - 169px);
    width: 66px;
    height: 66px;
  }
  .state-readout {
    bottom: 0;
    gap: 18px;
    padding: 10px 15px;
  }
  .flip-control {
    margin-top: 19px;
    font-size: 11px;
  }
  .chapter-nav {
    padding-inline: var(--gutter);
    grid-template-columns: 1fr 1fr;
  }
  .chapter-nav a {
    font-size: 10px;
    padding-block: 15px;
    gap: 10px;
  }
  .chapter-nav a:not(:first-child) {
    border-left: 0;
    padding-left: 0;
  }
  .chapter-nav a:nth-child(even) {
    border-left: 1px solid var(--line);
    padding-left: 17px;
  }
  .chapter-nav a:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .section {
    padding: 48px var(--gutter);
  }
  .section-heading {
    gap: 18px;
    margin-bottom: 28px;
  }
  .section-heading h2 {
    font-size: 35px;
    letter-spacing: -0.05em;
  }
  .section-deck {
    font-size: 13px;
    line-height: 1.8;
  }
  .section-label {
    padding: 0;
  }
  .section-label .eyebrow {
    font-size: 9px;
  }
  .work-row {
    grid-template-columns: 1fr;
    gap: 13px;
    padding: 24px 0;
  }
  .work-meta {
    font-size: 10px;
  }
  .work-body h3 {
    font-size: 20px;
  }
  .work-body > p {
    font-size: 13px;
  }
  .work-tags {
    font-size: 9px;
  }
  .measurement b {
    font-size: 29px;
  }
  .measurement span {
    font-size: 9px;
  }
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .feature-preview {
    padding: 22px;
    margin: 18px 18px 0;
    min-height: 244px;
  }
  .feature-code {
    font-size: 11px;
  }
  .feature-preview .mono {
    font-size: 9px;
  }
  .feature-info {
    padding: 21px 23px 25px;
  }
  .feature h3 {
    font-size: 23px;
  }
  .feature-info p {
    font-size: 13px;
  }
  .project-shortlist {
    grid-template-columns: 1fr;
    margin-top: 30px;
    gap: 15px;
  }
  .short-project {
    padding: 20px;
    gap: 8px 15px;
  }
  .short-project h3 {
    font-size: 15px;
  }
  .short-project p {
    font-size: 12px;
  }
  .section-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 11px;
  }
  .section-footer p {
    font-size: 11px;
  }
  .section-footer .text-link {
    font-size: 13px;
  }
  .studio-note {
    grid-template-columns: 1fr;
    padding: 23px;
    gap: 12px;
  }
  .studio-note h3 {
    font-size: 16px;
  }
  .studio-note p {
    font-size: 13px;
  }
  .approach {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .approach-statement {
    font-size: 26px;
  }
  .approach-text p {
    font-size: 13px;
  }
  .review-process {
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }
  .review-step {
    padding: 20px 17px !important;
  }
  .review-step + .review-step {
    border-left: 0;
  }
  .review-step:nth-child(even) {
    border-left: 1px solid #a5a69c;
  }
  .review-step:nth-child(-n + 2) {
    border-bottom: 1px solid #a5a69c;
  }
  .review-step h3 {
    font-size: 12px;
  }
  .review-step p {
    font-size: 11px;
  }
  .review-step span {
    font-size: 9px;
  }
  .about-grid {
    display: flex;
    flex-direction: column-reverse;
  }
  .about-intro {
    font-size: 15px;
  }
  .about-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .experience-list {
    margin-top: 28px;
  }
  .experience-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .experience-date {
    font-size: 9px;
  }
  .experience-item h3 {
    font-size: 14px;
  }
  .experience-item p {
    font-size: 12px;
  }
  .education {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .education h3 {
    font-size: 12px;
  }
  .education p {
    font-size: 11px;
  }
  .contact {
    padding: 48px var(--gutter);
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .contact h2 {
    font-size: 45px;
  }
  .contact-email {
    font-size: 18px;
  }
  .contact p {
    font-size: 13px;
  }
  .contact-links {
    gap: 23px;
  }
  .contributions {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .contributions li {
    font-size: 12px;
    flex-direction: column;
    gap: 5px;
  }
  .footer-inner {
    font-size: 9px;
  }
  .directory-hero {
    padding: 30px var(--gutter);
  }
  .directory-hero h1 {
    font-size: 52px;
    margin-block: 18px 20px;
  }
  .directory-hero p {
    font-size: 13px;
  }
  .directory-meta {
    font-size: 9px;
    gap: 8px 18px;
  }
  .project-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .project-row {
    grid-template-columns: 22px 1fr;
    padding: 21px;
    gap: 11px;
  }
  .project-description {
    grid-column: 2;
  }
  .project-main h2 {
    font-size: 16px;
  }
  .project-flags {
    grid-column: 2;
    grid-row: auto;
  }
  .directory-tools .filter {
    font-size: 10px;
    padding: 8px 10px;
  }
  .directory-status {
    min-height: 64px;
  }
  .directory-end {
    flex-direction: column;
    gap: 12px;
  }
  .quick-dialog {
    padding: 20px;
    width: calc(100% - 32px);
    max-height: calc(100dvh - 60px);
  }
  .quick-heading h2 {
    font-size: 26px;
  }
  #quick-results a {
    font-size: 12px;
    gap: 12px;
    grid-template-columns: 1fr auto 12px;
  }
  #quick-results small {
    font-size: 8px;
  }
  .quick-help {
    font-size: 8px;
    gap: 10px;
  }
}
@media (max-width: 360px) {
  .quick-toggle > span {
    display: none;
  }
  .quick-toggle {
    width: 36px;
    padding: 0;
  }
  .header-inner {
    gap: 10px;
  }
  .header-actions {
    gap: 6px;
  }
  .hero h1 {
    font-size: 11.7vw;
  }
  .hero-topline .hero-location {
    display: none;
  }
  .hero-actions .button {
    gap: 14px;
    padding: 10px 12px;
    font-size: 10px;
  }
  .lab-stage {
    height: 530px;
  }
  .sticker-swift {
    left: calc(50% - 143px);
    top: 30px;
    font-size: 16px;
    padding: 12px;
  }
  .sticker-state {
    right: calc(50% - 145px);
    bottom: 61px;
    font-size: 9px;
    padding: 10px;
  }
  .lab-flower {
    right: calc(50% - 139px);
    width: 53px;
    height: 53px;
    top: 25px;
  }
  .lab-stage::before {
    width: 270px;
    height: 320px;
    top: 60px;
  }
  .phone-anchor {
    width: 238px;
    height: 470px;
  }
  .phone-app {
    padding-inline: 13px;
  }
  .state-readout {
    font-size: 10px;
    gap: 12px;
  }
  .section-heading h2 {
    font-size: 31px;
  }
  .contact-email {
    font-size: 16px;
    gap: 10px;
  }
  .contact-email svg {
    width: 19px;
  }
  .education {
    grid-template-columns: 1fr;
  }
  .project-row {
    padding: 17px;
    grid-template-columns: 18px 1fr;
    gap: 10px;
  }
  .quick-help span:first-child {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
  .phone-tilt {
    transform: none !important;
  }
}
@media print {
  html[data-theme] {
    --paper: #fff;
    --ink: #111;
    --muted: #333;
    --line: #999;
  }
  .header-actions,
  .hero-lab,
  .contact-utilities,
  .quick-dialog {
    display: none !important;
  }
  .hero {
    display: block;
    min-height: 0;
  }
  .hero-copy {
    padding: 20px 0;
  }
  .hero h1 {
    font-size: 55px;
  }
  .hero-note {
    margin-top: 20px;
  }
  .section {
    padding: 28px 0;
    background: white !important;
    color: black;
    --ink: black;
    --muted: #333;
    --line: #999;
  }
  .feature,
  .project-row,
  .short-project {
    box-shadow: none;
  }
  .project-list {
    grid-template-columns: 1fr 1fr;
  }
  .contact {
    padding: 25px 0;
    background: white;
  }
  .contact h2 {
    font-size: 35px;
  }
  .directory-hero {
    padding: 25px 0;
    background: white;
  }
  .directory-hero h1 {
    font-size: 45px;
  }
  section[aria-label="Project directory"] {
    padding-inline: 0;
  }
  .project-row[hidden] {
    display: grid !important;
  }
  .directory-end {
    padding-inline: 0;
  }
  .feature-preview {
    min-height: 170px;
  }
}
/* Review makes room for the edit action without moving the primary control out of view. */
.lab-stage[data-state="review"] .demo-chart,
.lab-stage[data-state="complete"] .demo-chart {
  height: 30px;
}
.project-row[data-category="forks"] {
  --accent: var(--ink);
}
.skip,
.skip:focus {
  background: #202322;
  color: #fffdf6;
}
