:root {
  color-scheme: dark;
  --black: #050505;
  --black-soft: #0b0b0c;
  --surface: #121214;
  --surface-raised: #19191c;
  --paper: #f1f1ee;
  --ink: #f4f4f2;
  --muted: #9d9da6;
  --muted-strong: #c3c3c8;
  --line: rgba(255, 255, 255, 0.13);
  --line-strong: rgba(255, 255, 255, 0.25);
  --orange: #ff6a3d;
  --blue: #80a8ff;
  --green: #75d7a9;
  --yellow: #f0d45f;
  --shell: 1200px;
  --pad: 28px;
  --edge: max(var(--pad), calc((100vw - var(--shell)) / 2));
  --radius: 8px;
  --header-height: 80px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  background: var(--black);
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  background: var(--black);
}

body.intro-running {
  overflow: hidden;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  color: inherit;
  font: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
p {
  margin: 0;
}

ol,
ul {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

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

::selection {
  color: var(--black);
  background: var(--orange);
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 300;
  padding: 10px 14px;
  color: var(--black);
  background: var(--paper);
  border-radius: 4px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.intro-reel {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  padding: 30px 34px 26px;
  overflow: hidden;
  color: var(--ink);
  background: #030303;
  pointer-events: none;
  isolation: isolate;
  animation: reel-failsafe 5s steps(1, end) forwards;
}

.intro-reel-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 82px 82px;
}

.intro-reel::before,
.intro-reel::after {
  position: absolute;
  z-index: -1;
  content: "";
}

.intro-reel::before {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: rgba(128, 168, 255, 0.36);
}

.intro-reel::after {
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
  background: rgba(255, 106, 61, 0.52);
}

.intro-reel-topline,
.intro-reel-bottomline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #8c8c94;
  font-size: 0.64rem;
  font-weight: 800;
  text-transform: uppercase;
}

.intro-reel-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
}

.intro-reel-word,
.intro-reel-signature {
  position: absolute;
  margin: 0;
  white-space: nowrap;
}

.intro-reel-word {
  color: var(--paper);
  font-size: 10rem;
  font-weight: 900;
  line-height: 0.8;
}

.intro-reel-word:nth-child(1) {
  color: var(--orange);
}

.intro-reel-word:nth-child(2) {
  color: var(--blue);
}

.intro-reel-word:nth-child(3) {
  color: var(--green);
}

.intro-reel-signature {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 7.5rem;
  font-style: italic;
  line-height: 0.9;
}

.intro-reel-track {
  position: relative;
  width: 100%;
  height: 3px;
  margin-bottom: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
}

.intro-reel-track i {
  position: absolute;
  inset: 0;
  display: block;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
}

@keyframes reel-failsafe {
  0%,
  99% {
    visibility: visible;
  }

  100% {
    visibility: hidden;
  }
}

.announcement {
  position: relative;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 38px;
  padding: 7px var(--edge);
  color: var(--muted-strong);
  background: #080808;
  border-bottom: 1px solid var(--line);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
}

.announcement > span:first-child {
  color: var(--ink);
}

.announcement > span:last-child {
  color: var(--orange);
  transition: transform 180ms ease;
}

.announcement:hover > span:last-child,
.announcement:focus-visible > span:last-child {
  transform: translateX(4px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto minmax(210px, 1fr);
  align-items: center;
  min-height: var(--header-height);
  padding: 12px var(--edge);
  background: rgba(5, 5, 5, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--black);
  background: var(--paper);
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 900;
}

.brand-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.brand-copy strong {
  font-size: 0.96rem;
  line-height: 1.1;
}

.brand-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.62rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.site-nav a,
.github-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 13px;
  color: var(--muted-strong);
  border-radius: 6px;
  font-size: 0.86rem;
  transition: color 180ms ease, background-color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.github-link:hover,
.github-link:focus-visible {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.07);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 7px;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 18px;
  color: var(--black);
  background: var(--paper);
  border: 1px solid var(--paper);
  border-radius: 999px;
  font-size: 0.83rem;
  font-weight: 800;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.header-cta:hover,
.header-cta:focus-visible {
  color: var(--ink);
  background: transparent;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
}

.menu-toggle > span:not(.sr-only) {
  display: block;
  width: 17px;
  height: 1px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100svh - 118px);
  padding: 102px var(--edge) 82px;
  overflow: hidden;
  background: #000;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}

.hero-motion-canvas {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  opacity: 0.62;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -3;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 92px 92px;
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 72%, transparent);
}

.hero::before,
.hero::after {
  position: absolute;
  z-index: -2;
  content: "";
  pointer-events: none;
}

.hero::before {
  top: 34%;
  left: 50%;
  width: 760px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 106, 61, 0.65), transparent);
  transform: translateX(-50%);
}

.hero::after {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(128, 168, 255, 0.34), transparent);
}

.hero-orbit {
  position: absolute;
  z-index: -1;
  width: 520px;
  height: 520px;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.hero-orbit-one {
  top: -340px;
  left: -200px;
  border-top-color: rgba(255, 106, 61, 0.32);
  box-shadow: inset 0 0 0 80px rgba(255, 106, 61, 0.01);
}

.hero-orbit-two {
  right: -260px;
  bottom: -360px;
  border-color: rgba(128, 168, 255, 0.11);
  border-left-color: rgba(128, 168, 255, 0.34);
}

.hero-inner {
  display: grid;
  align-self: center;
  justify-items: center;
  width: min(100%, 820px);
  margin: 0 auto;
  text-align: center;
}

.hero-lockup {
  position: relative;
  z-index: 2;
}

.hero h1 {
  color: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 6rem;
  font-style: italic;
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0;
}

.hero h1 span {
  display: inline-block;
}

.hero-byline {
  margin-top: 8px;
  color: #68686e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.72rem;
}

.hero-byline a {
  color: #9c9ca2;
}

.hero-tagline {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

.brief-panel {
  position: relative;
  display: grid;
  width: min(100%, 760px);
  min-height: 194px;
  margin-top: 42px;
  padding: 20px 22px 18px;
  overflow: hidden;
  text-align: left;
  background: #151517;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.52), inset 0 1px rgba(255, 255, 255, 0.04);
}

.brief-panel::before {
  position: absolute;
  top: 0;
  left: 8%;
  width: 36%;
  height: 1px;
  content: "";
  background: var(--orange);
  opacity: 0.82;
}

.brief-progress {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}

.brief-progress i {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--orange), var(--blue), var(--green));
  transform: scaleX(0);
  transform-origin: left;
}

.brief-topline,
.brief-controls,
.form-topline,
.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brief-topline {
  align-self: start;
  color: #73737b;
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
}

.brief-topline p,
.form-topline > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  display: inline-block;
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(117, 215, 169, 0.1);
}

.brief-output {
  align-self: center;
  max-width: 650px;
  min-height: 3.1em;
  padding: 18px 0 12px;
  color: var(--muted-strong);
  font-size: 1.04rem;
  line-height: 1.55;
}

.brief-controls {
  align-self: end;
  color: #7e7e85;
  font-size: 0.7rem;
}

.brief-context {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.brief-context i {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: var(--muted-strong);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-style: normal;
}

.brief-mode {
  margin-left: auto;
}

.brief-go {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  color: var(--black);
  background: var(--paper);
  border: 0;
  border-radius: 50%;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.brief-go:hover,
.brief-go:focus-visible {
  color: var(--paper);
  background: var(--orange);
  transform: translateY(2px);
}

.brief-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 780px;
  margin-top: 22px;
}

.brief-pills button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  color: #84848b;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-size: 0.72rem;
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.brief-pills button:hover,
.brief-pills button:focus-visible,
.brief-pills button.is-active {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

.brief-pills button.is-active span {
  color: var(--orange);
}

.hero-footnote {
  max-width: 580px;
  margin-top: 26px;
  color: #66666d;
  font-size: 0.72rem;
}

.section {
  position: relative;
  padding: 118px var(--edge);
}

.section-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding-bottom: 20px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.intro {
  color: #18181a;
  background: var(--paper);
}

.intro .section-kicker {
  color: #6d6d72;
  border-color: rgba(0, 0, 0, 0.18);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.7fr);
  gap: 90px;
  align-items: start;
  max-width: var(--shell);
  margin: 70px auto 0;
}

.intro h2,
.section-heading h2,
.contact-heading h2 {
  font-size: 4rem;
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: 0;
}

.intro h2 em,
.section-heading h2 em,
.contact-heading h2 em {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.intro-copy {
  display: grid;
  gap: 20px;
  padding-top: 8px;
  color: #5c5c62;
  font-size: 0.98rem;
  line-height: 1.75;
}

.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  width: fit-content;
  min-height: 40px;
  margin-top: 18px;
  padding-bottom: 5px;
  color: #18181a;
  border-bottom: 1px solid rgba(0, 0, 0, 0.45);
  font-weight: 700;
}

.text-link span {
  color: var(--orange);
  transition: transform 180ms ease;
}

.text-link:hover span,
.text-link:focus-visible span {
  transform: translate(3px, 3px);
}

.work {
  background: var(--black-soft);
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  max-width: 820px;
  margin: 0 auto 64px;
  text-align: center;
}

.eyebrow {
  margin-bottom: 22px;
  color: var(--orange);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.section-heading > p:last-child,
.contact-heading > p:last-child {
  max-width: 620px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.7;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: var(--shell);
  margin: 0 auto;
}

.project-card {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  isolation: isolate;
}

.project-card-wide {
  grid-column: 1 / -1;
  min-height: 640px;
}

.project-visual-canvas {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  background: #09090b;
  transition: transform 800ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.project-card:hover .project-visual-canvas {
  transform: scale(1.025);
}

.project-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.48), transparent 38%, rgba(0, 0, 0, 0.82));
}

.project-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
}

.project-topline > span:first-child {
  color: var(--orange);
}

.project-copy {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 34px 34px 32px;
}

.project-copy > p {
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.project-copy h3 {
  max-width: 760px;
  font-size: 2.7rem;
  font-weight: 500;
  line-height: 1;
}

.project-copy > span {
  display: block;
  max-width: 620px;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  line-height: 1.55;
}

.project-card-studio .project-copy h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
}

.github-card {
  grid-column: 1 / -1;
  min-width: 0;
  padding: 34px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.github-card-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.github-card-heading .eyebrow {
  margin-bottom: 10px;
}

.github-card-heading h3 {
  font-size: 2rem;
  font-weight: 500;
}

.github-card-heading a {
  color: var(--muted-strong);
  font-size: 0.8rem;
}

.github-status-summary {
  margin-top: 26px;
}

.github-status-summary strong {
  display: block;
  font-size: 0.95rem;
}

.github-status-summary p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.8rem;
}

.github-calendar-scroll {
  min-width: 0;
  margin-top: 28px;
  padding: 22px;
  overflow-x: auto;
  background: #0d0d0f;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.github-calendar-placeholder {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  min-width: 620px;
  height: 112px;
  opacity: 0.55;
}

.github-calendar-placeholder span {
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 15px 15px;
}

.github-calendar-grid {
  display: grid;
  grid-template-columns: 26px repeat(var(--weeks), 11px);
  grid-template-rows: 15px repeat(7, 11px);
  gap: 4px;
  width: max-content;
  min-width: 100%;
}

.github-calendar-month,
.github-calendar-weekday {
  color: #66666d;
  font-size: 0.58rem;
  line-height: 11px;
}

.github-calendar-month {
  grid-row: 1;
}

.github-calendar-weekday {
  grid-column: 1;
}

.ContributionCalendar-day,
.github-calendar-footer i {
  display: block;
  width: 11px;
  height: 11px;
  background: #28282c;
  border-radius: 2px;
}

.ContributionCalendar-day[data-level="1"],
.github-calendar-footer i[data-level="1"] {
  background: #4d4730;
}

.ContributionCalendar-day[data-level="2"],
.github-calendar-footer i[data-level="2"] {
  background: #8c7730;
}

.ContributionCalendar-day[data-level="3"],
.github-calendar-footer i[data-level="3"] {
  background: #d0ad31;
}

.ContributionCalendar-day[data-level="4"],
.github-calendar-footer i[data-level="4"] {
  background: var(--yellow);
}

.ContributionCalendar-day.is-empty {
  background: transparent;
}

.github-calendar-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  margin-top: 12px;
  color: #68686f;
  font-size: 0.62rem;
}

.method {
  background: #0f1114;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading-light {
  max-width: 900px;
}

.method-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: var(--shell);
  margin: 0 auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.method-steps li {
  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
  min-height: 410px;
  padding: 24px;
  border-right: 1px solid var(--line);
}

.method-steps li:first-child {
  border-left: 1px solid var(--line);
}

.method-number {
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 800;
}

.method-label {
  margin-top: 54px;
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
}

.method-steps h3 {
  align-self: end;
  margin-top: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.3rem;
  font-style: italic;
  font-weight: 400;
}

.method-steps p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.65;
}

.method-meta {
  margin-top: 28px;
  padding-top: 16px;
  color: #6f7078;
  border-top: 1px solid var(--line);
  font-size: 0.62rem;
  text-transform: uppercase;
}

.contact {
  background: var(--black);
}

.contact-heading {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.request-form {
  width: min(100%, 860px);
  margin: 58px auto 0;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 36px 100px rgba(0, 0, 0, 0.42);
}

.form-topline {
  padding-bottom: 20px;
  color: #7c7c84;
  border-bottom: 1px solid var(--line);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.form-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 24px 0;
}

.form-fields label {
  display: grid;
  gap: 9px;
}

.form-fields label > span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.form-fields input,
.form-fields textarea {
  width: 100%;
  padding: 14px 15px;
  color: var(--ink);
  background: #0c0c0e;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.form-fields input {
  height: 48px;
}

.form-fields textarea {
  min-height: 130px;
  resize: vertical;
}

.form-fields input::placeholder,
.form-fields textarea::placeholder {
  color: #5f5f66;
}

.form-fields input:focus,
.form-fields textarea:focus {
  border-color: rgba(255, 106, 61, 0.7);
  box-shadow: 0 0 0 3px rgba(255, 106, 61, 0.12);
}

.form-message {
  grid-column: 1 / -1;
}

.form-footer {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.form-footer > span {
  color: #696970;
  font-size: 0.67rem;
}

.form-footer button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 18px;
  color: var(--black);
  background: var(--paper);
  border: 0;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.form-footer button:hover,
.form-footer button:focus-visible {
  color: var(--paper);
  background: var(--orange);
  transform: translateY(-1px);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 120px;
  padding: 24px var(--edge);
  color: var(--muted);
  background: #080808;
  border-top: 1px solid var(--line);
  font-size: 0.72rem;
}

.footer-brand {
  justify-self: start;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  font-style: italic;
}

.site-footer > p {
  text-align: center;
}

.footer-meta {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 16px;
}

.version-pill {
  position: relative;
}

.version-trigger {
  min-height: 32px;
  padding: 0 11px;
  color: var(--muted-strong);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 0.68rem;
}

.version-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  display: grid;
  width: 116px;
  padding: 6px;
  visibility: hidden;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.version-menu a {
  padding: 9px 10px;
  border-radius: 4px;
}

.version-menu a:hover,
.version-menu a:focus-visible {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.07);
}

.version-pill.is-open .version-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1020px) {
  :root {
    --pad: 22px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .hero h1 {
    font-size: 5.2rem;
  }

  .intro h2,
  .section-heading h2,
  .contact-heading h2 {
    font-size: 3.3rem;
  }

  .intro-grid {
    gap: 54px;
  }

  .method-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .method-steps li:nth-child(2) {
    border-right: 1px solid var(--line);
  }

  .method-steps li:nth-child(3),
  .method-steps li:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .method-steps li:nth-child(3) {
    border-left: 1px solid var(--line);
  }
}

@media (max-width: 760px) {
  :root {
    --pad: 18px;
    --header-height: 68px;
  }

  .announcement {
    min-height: 34px;
    font-size: 0.62rem;
  }

  .announcement-copy {
    display: none;
  }

  .intro-reel {
    padding: 22px 18px 20px;
  }

  .intro-reel-word {
    font-size: 4rem;
  }

  .intro-reel-signature {
    font-size: 3rem;
  }

  .site-header {
    display: flex;
    justify-content: space-between;
    padding-top: 9px;
    padding-bottom: 9px;
  }

  .brand-mark {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
  }

  .brand-copy small,
  .header-actions {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 80;
    display: grid;
    align-content: center;
    gap: 4px;
    height: calc(100svh - 102px);
    padding: 28px;
    visibility: hidden;
    background: #050505;
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }

  .site-nav a {
    min-height: 62px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
    font-style: italic;
  }

  .menu-open .site-nav {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .menu-open .menu-toggle > span:not(.sr-only):first-child {
    transform: translateY(5px) rotate(45deg);
  }

  .menu-open .menu-toggle > span:not(.sr-only):nth-child(2) {
    opacity: 0;
  }

  .menu-open .menu-toggle > span:not(.sr-only):nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
  }

  .hero {
    min-height: calc(100svh - 102px);
    padding-top: 80px;
    padding-bottom: 58px;
  }

  .hero h1 {
    font-size: 4.2rem;
  }

  .brief-panel {
    min-height: 220px;
    margin-top: 34px;
    padding: 18px;
  }

  .brief-output {
    min-height: 4.5em;
    font-size: 0.95rem;
  }

  .brief-context {
    overflow: hidden;
    max-width: 150px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brief-pills {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .brief-pills button {
    justify-content: center;
    min-width: 0;
    padding-right: 10px;
    padding-left: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .section {
    padding-top: 82px;
    padding-bottom: 82px;
  }

  .intro-grid {
    grid-template-columns: 1fr;
    gap: 34px;
    margin-top: 44px;
  }

  .intro h2,
  .section-heading h2,
  .contact-heading h2 {
    font-size: 2.7rem;
  }

  .intro-copy {
    padding-top: 0;
  }

  .section-heading {
    margin-bottom: 42px;
    text-align: left;
  }

  .section-heading > p:last-child {
    margin-left: 0;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .project-card,
  .project-card-wide {
    grid-column: auto;
    min-height: 460px;
  }

  .project-copy {
    padding: 24px;
  }

  .project-copy h3 {
    font-size: 2.1rem;
  }

  .github-card {
    grid-column: auto;
    padding: 24px;
  }

  .method-steps {
    grid-template-columns: 1fr;
  }

  .method-steps li,
  .method-steps li:first-child,
  .method-steps li:nth-child(2),
  .method-steps li:nth-child(3),
  .method-steps li:nth-child(4) {
    min-height: 330px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    border-left: 1px solid var(--line);
  }

  .method-steps li:last-child {
    border-bottom: 0;
  }

  .method-label {
    margin-top: 34px;
  }

  .form-fields {
    grid-template-columns: 1fr;
  }

  .form-message {
    grid-column: auto;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
  }

  .site-footer > p {
    display: none;
  }
}

@media (max-width: 430px) {
  .hero h1 {
    font-size: 3.4rem;
  }

  .hero-tagline {
    font-size: 0.8rem;
  }

  .brief-panel {
    min-height: 238px;
  }

  .brief-mode {
    display: none;
  }

  .brief-pills {
    grid-template-columns: 1fr;
  }

  .intro h2,
  .section-heading h2,
  .contact-heading h2 {
    font-size: 2.25rem;
  }

  .section-kicker > span:last-child {
    display: none;
  }

  .project-card,
  .project-card-wide {
    min-height: 420px;
  }

  .github-card-heading {
    display: grid;
  }

  .form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .form-footer button {
    width: 100%;
  }

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

  .footer-meta {
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .intro-reel {
    display: none;
  }
}
