:root {
  --black: #090909;
  --graphite: #111111;
  --panel: #171717;
  --ink: #111111;
  --white: #f1f0eb;
  --white-bright: #faf9f5;
  --muted: #a5a5a2;
  --line: #323232;
  --header-h: 68px;
  --pad: clamp(1.2rem, 4.5vw, 5rem);
  --content-max: 1480px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  background: var(--black);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--white);
  background: var(--black);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  color: inherit;
  font: inherit;
}

button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

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

[hidden] {
  display: none !important;
}

h1,
h2,
h3,
h4,
p,
figure,
dl,
dd,
ul {
  margin-top: 0;
}

button {
  border-radius: 0;
}

.skip-link {
  position: fixed;
  z-index: 999;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--black);
  background: var(--white-bright);
  font-weight: 700;
  transform: translateY(-160%);
}

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

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

.site-header {
  position: fixed;
  z-index: 80;
  top: 0;
  right: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: var(--header-h);
  padding: 0 var(--pad);
  color: var(--white-bright);
  border-bottom: 1px solid transparent;
  transition: background 180ms ease, border-color 180ms ease;
}

.site-header.scrolled {
  border-bottom-color: rgba(255, 255, 255, 0.14);
  background: rgba(9, 9, 9, 0.92);
  backdrop-filter: blur(12px);
}

.wordmark {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 44px;
  color: var(--white-bright);
}

.signature-mark {
  display: block;
  width: clamp(6.8rem, 10vw, 8.3rem);
  height: 38px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 10;
  stroke-linecap: round;
  stroke-linejoin: round;
}

nav {
  display: flex;
  gap: clamp(1.25rem, 2.4vw, 2.5rem);
}

nav a,
.header-links a,
.hero-topline,
.overline,
.section-rail,
.project-number,
.project-facts,
.experience-meta,
.role,
.practice-tools,
.credential-ledger span,
.credential-ledger p,
.github-note,
footer {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

nav a,
.header-links a {
  position: relative;
  padding: 0.35rem 0;
  font-size: 0.67rem;
  letter-spacing: 0.04em;
}

nav a::after,
.header-links a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 170ms ease;
}

nav a:hover::after,
nav a:focus-visible::after,
nav a.active::after,
.header-links a:hover::after,
.header-links a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-links {
  justify-self: end;
  display: flex;
  gap: 1.1rem;
}

.nav-resume {
  display: none;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  color: var(--white-bright);
  background: #050505;
}

.hero-art {
  position: absolute;
  z-index: -2;
  inset: -3%;
  margin: 0;
  overflow: hidden;
}

.hero-art img {
  width: 100%;
  height: 106%;
  object-fit: cover;
  object-position: 50% 62%;
  transform: translate3d(0, var(--hero-shift, 0px), 0) scale(1.035);
  will-change: transform;
}

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

.hero-topline {
  position: absolute;
  top: calc(var(--header-h) + 1.35rem);
  right: var(--pad);
  left: var(--pad);
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-topline p {
  margin: 0;
}

.hero-identity {
  position: absolute;
  right: var(--pad);
  bottom: clamp(5rem, 10vh, 8rem);
  left: var(--pad);
}

.hero h1 {
  max-width: 13ch;
  margin-bottom: clamp(1.6rem, 3vw, 2.8rem);
  font-size: clamp(3.4rem, 8.2vw, 9.25rem);
  font-weight: 500;
  letter-spacing: -0.078em;
  line-height: 0.82;
}

.hero h1 span {
  display: block;
}

.hero-intro {
  display: grid;
  grid-template-columns: minmax(18rem, 34rem) minmax(20rem, 1fr);
  gap: clamp(2rem, 7vw, 8rem);
  align-items: end;
  max-width: 88rem;
  margin-left: clamp(0rem, 11vw, 12rem);
}

.hero-intro > p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.03rem, 1.35vw, 1.3rem);
  line-height: 1.52;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.8rem 1.8rem;
}

.hero-actions a,
.project-link,
.github-intro a,
.email-link,
.contact-links a,
.contact-links button {
  position: relative;
  width: max-content;
  padding: 0.22rem 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  font-size: 0.78rem;
  cursor: pointer;
}

.section {
  display: grid;
  grid-template-columns: clamp(7rem, 14vw, 13rem) minmax(0, 1fr);
  min-height: 60vh;
  padding: clamp(6rem, 10vw, 10rem) var(--pad);
  border-top: 1px solid var(--line);
}

.section-rail {
  padding-right: 2rem;
}

.section-rail p {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
  margin: 0;
  font-size: 0.69rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section-rail span {
  display: inline-block;
  min-width: 2.2rem;
}

.section-body {
  min-width: 0;
  width: min(100%, var(--content-max));
  margin: 0 auto;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(9rem, 0.35fr) minmax(20rem, 1.65fr);
  gap: clamp(1.5rem, 5vw, 6rem);
  align-items: start;
  margin-bottom: clamp(4rem, 7vw, 6.5rem);
}

.overline {
  margin: 0;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-heading h2 {
  max-width: 15ch;
  margin: 0;
  font-size: clamp(2.9rem, 5.8vw, 7.1rem);
  font-weight: 500;
  letter-spacing: -0.072em;
  line-height: 0.91;
}

.build-note summary::-webkit-details-marker {
  display: none;
}

.project-list {
  border-top: 1px solid var(--line);
}

.project {
  display: grid;
  grid-template-columns: minmax(18rem, 0.72fr) minmax(24rem, 1.28fr);
  gap: clamp(3rem, 8vw, 9rem);
  padding: clamp(4rem, 8vw, 8rem) 0;
  border-bottom: 1px solid var(--line);
}

.project-header {
  align-self: start;
}

.project-number {
  margin-bottom: 2.5rem;
  color: var(--muted);
  font-size: 0.69rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.project-header h3 {
  margin-bottom: 0.75rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.5rem, 6.8vw, 8.6rem);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.86;
}

.project-type {
  max-width: 24rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.project-story {
  max-width: 54rem;
}

.project-story > p:not(.project-lead, .project-link) {
  max-width: 46rem;
  color: var(--muted);
  line-height: 1.75;
}

.project-lead {
  margin-bottom: 1.5rem;
  font-size: clamp(1.55rem, 2.65vw, 3rem);
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.project-facts {
  margin: 2.5rem 0 0;
  border-top: 1px solid var(--line);
}

.project-facts div {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1.5rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
}

.project-facts dt,
.project-facts dd {
  margin: 0;
  font-size: 0.72rem;
}

.project-facts dt {
  color: var(--muted);
  text-transform: uppercase;
}

.build-note {
  margin: 2.2rem 0;
  border-bottom: 1px solid var(--line);
}

.build-note summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  cursor: pointer;
  list-style: none;
  font-size: 0.82rem;
  font-weight: 700;
}

.build-note summary span {
  font-size: 1.15rem;
  font-weight: 400;
  transition: transform 160ms ease;
}

.build-note[open] summary span {
  transform: rotate(45deg);
}

.build-note > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 3rem;
  padding: 1.5rem 0 2.5rem;
}

.build-note section {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.build-note h4 {
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
}

.build-note p {
  margin: 0;
  color: var(--muted);
  font-size: 0.91rem;
  line-height: 1.68;
}

.project-link {
  display: inline-block;
  margin: 0;
}

.storyflow-showcase {
  grid-column: 1 / -1;
  min-width: 0;
  width: 100%;
  margin-top: clamp(3.5rem, 7vw, 7rem);
  padding-top: clamp(3.5rem, 6vw, 6rem);
  border-top: 1px solid var(--line);
}

.storyflow-showcase-intro {
  display: grid;
  grid-template-columns: minmax(8rem, 0.3fr) minmax(22rem, 1fr) minmax(17rem, 0.62fr);
  gap: clamp(1.5rem, 4vw, 4.5rem);
  align-items: start;
}

.storyflow-showcase-intro h4 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(2.65rem, 5.2vw, 5.8rem);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.94;
  text-wrap: balance;
}

.storyflow-showcase-intro > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.storyflow-gallery {
  min-width: 0;
  margin: clamp(3rem, 6vw, 5.5rem) 0 0;
}

.storyflow-stage-wrap {
  position: relative;
  min-width: 0;
}

.storyflow-stage {
  display: grid;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #050505;
  place-items: center;
}

.storyflow-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 1;
  transition: opacity 140ms ease;
}

.storyflow-stage img.is-changing {
  opacity: 0.42;
}

.storyflow-caption {
  display: grid;
  grid-template-columns: minmax(14rem, 0.55fr) minmax(20rem, 1fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: start;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
}

.storyflow-caption p {
  margin: 0;
}

.storyflow-caption > p:first-child {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  gap: 1rem;
  align-items: baseline;
}

.storyflow-caption span,
.storyflow-thumbnail-label span {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.66rem;
  font-weight: 400;
}

.storyflow-caption strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 2vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.025em;
}

.storyflow-caption > p:last-child {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.65;
}

.storyflow-gallery-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 1.5rem;
  align-items: center;
  padding: 1rem 0 0;
}

.storyflow-gallery-controls {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem;
  pointer-events: none;
}

.storyflow-gallery-controls button {
  display: grid;
  width: 48px;
  height: 44px;
  padding: 0;
  color: var(--white);
  border: 1px solid var(--line);
  background: rgba(9, 9, 9, 0.88);
  cursor: pointer;
  font-size: 1rem;
  place-items: center;
  pointer-events: auto;
  transition: color 150ms ease, background 150ms ease, border-color 150ms ease;
}

.storyflow-gallery-toolbar > a,
.github-dashboard figcaption a {
  width: max-content;
  border-bottom: 1px solid currentColor;
}

.storyflow-gallery-toolbar > a {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
}

.storyflow-thumbnails {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  min-width: 0;
  max-width: 100%;
  gap: clamp(0.6rem, 1.25vw, 1.2rem);
  margin: 1.8rem 0 0;
  padding: 0;
  list-style: none;
}

.storyflow-thumbnails button {
  width: 100%;
  padding: 0;
  color: var(--muted);
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  opacity: 0.8;
  transition: color 150ms ease, opacity 150ms ease;
}

.storyflow-thumbnail-image {
  display: grid;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #050505;
  place-items: center;
  transition: border-color 150ms ease;
}

.storyflow-thumbnail-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.storyflow-thumbnail-label {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr);
  gap: 0.35rem;
  margin-top: 0.6rem;
  font-size: 0.68rem;
  line-height: 1.35;
}

.storyflow-thumbnails button[aria-current="true"] {
  color: var(--white-bright);
  opacity: 1;
}

.storyflow-thumbnails button[aria-current="true"] .storyflow-thumbnail-image {
  border-color: var(--white-bright);
}

@media (hover: hover) {
  .storyflow-gallery-controls button:hover,
  .storyflow-gallery-controls button:focus-visible {
    color: var(--black);
    border-color: var(--white-bright);
    background: var(--white-bright);
  }

  .storyflow-thumbnails button:hover,
  .storyflow-thumbnails button:focus-visible {
    color: var(--white-bright);
    opacity: 1;
  }
}

.experience-list {
  border-top: 1px solid var(--line);
}

.experience-list article {
  display: grid;
  grid-template-columns: minmax(12rem, 0.4fr) minmax(24rem, 1.6fr);
  gap: clamp(2rem, 6vw, 7rem);
  padding: clamp(3.25rem, 5.5vw, 5.5rem) 0;
  border-bottom: 1px solid var(--line);
}

.experience-meta p {
  margin: 0 0 0.45rem;
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.experience-copy {
  max-width: 64rem;
}

.role {
  margin-bottom: 0.6rem;
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.experience-copy h3 {
  margin-bottom: 1.35rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 4.7rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.experience-copy > p:not(.role) {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.72;
}

.experience-copy > p.experience-context {
  max-width: 52rem;
  margin-bottom: 1.15rem;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 1.85vw, 1.75rem);
  letter-spacing: -0.018em;
  line-height: 1.42;
}

.experience-detail {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.experience-detail summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  cursor: pointer;
  list-style: none;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.64rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.experience-detail summary::-webkit-details-marker {
  display: none;
}

.experience-detail summary span {
  transition: transform 160ms ease;
}

.experience-detail[open] summary span {
  transform: rotate(45deg);
}

.experience-scope {
  margin: 0;
  border-top: 1px solid var(--line);
}

.experience-scope > div {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.experience-scope > div:last-child {
  border-bottom: 0;
}

.experience-scope dt {
  padding-top: 0.12rem;
  color: var(--white);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.experience-scope dd {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

.practice-statement {
  display: grid;
  grid-template-columns: minmax(10rem, 0.4fr) minmax(24rem, 1.2fr) minmax(12rem, 0.5fr);
  gap: clamp(2rem, 5vw, 6rem);
  align-items: start;
  padding-top: clamp(3.5rem, 6vw, 5.5rem);
}

.practice-statement > p:nth-child(2) {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 2.5vw, 2.65rem);
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.practice-tools {
  margin: 0;
  color: var(--muted);
  font-size: 0.64rem;
  line-height: 1.8;
  text-transform: uppercase;
}

.credential-ledger {
  border-top: 1px solid currentColor;
}

.credential-ledger article {
  display: grid;
  grid-template-columns: minmax(8rem, 0.35fr) minmax(14rem, 1fr) minmax(8rem, auto);
  gap: 1.5rem;
  align-items: baseline;
  min-height: 100px;
  padding: 1.3rem 0;
  border-bottom: 1px solid currentColor;
}

.credential-ledger h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3.5vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.045em;
}

.credential-ledger span,
.credential-ledger p {
  margin: 0;
  font-size: 0.62rem;
  text-transform: uppercase;
}

.training-note {
  display: grid;
  grid-template-columns: minmax(12rem, 0.45fr) minmax(20rem, 1.25fr);
  gap: clamp(3rem, 8vw, 9rem);
  align-items: start;
  padding-top: clamp(4rem, 8vw, 8rem);
}

.training-count {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 9vw, 10rem);
  letter-spacing: -0.075em;
  line-height: 0.78;
}

.training-count span {
  display: block;
  margin-top: 1.35rem;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.62rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.training-note ul {
  margin: 0;
  padding: 0;
  border-top: 1px solid currentColor;
  list-style: none;
}

.training-note li {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1.5rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid currentColor;
  font-size: 0.84rem;
}

.training-note li span {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
}

.github-intro {
  display: grid;
  grid-template-columns: minmax(20rem, 1fr) auto;
  gap: 2rem;
  align-items: end;
  max-width: 70rem;
  margin: 0 0 3rem auto;
}

.github-intro p {
  max-width: 48rem;
  margin: 0;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.7;
}

.github-dashboard {
  width: min(100%, 47.125rem);
  margin: 0 0 clamp(4rem, 7vw, 6.5rem) auto;
}

.github-dashboard a {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0d1117;
}

.github-dashboard img {
  width: 100%;
  height: auto;
  filter: grayscale(1) contrast(1.08);
}

.github-dashboard figcaption,
.github-feed-label {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.68rem;
  line-height: 1.5;
  text-transform: uppercase;
}

.github-dashboard figcaption {
  margin-top: 0.75rem;
}

.github-feed-label {
  padding: 0 0 0.75rem;
  border-bottom: 1px solid var(--line);
}

.github-feed {
  border-top: 0;
}

.github-events {
  margin: 0;
  padding: 0;
  list-style: none;
}

.github-event {
  display: grid;
  grid-template-columns: minmax(7rem, 0.3fr) minmax(18rem, 1.2fr) auto;
  gap: 2rem;
  align-items: baseline;
  min-height: 92px;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.github-event-type,
.github-event time {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.62rem;
  text-transform: uppercase;
}

.github-event-main {
  min-width: 0;
}

.github-event-main a {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.5vw, 2.8rem);
  letter-spacing: -0.035em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.github-event-main p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.github-note {
  margin: 1.1rem 0 0;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.7;
  text-transform: uppercase;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(20rem, 1fr) auto;
  gap: clamp(3rem, 8vw, 9rem);
  align-items: end;
}

.contact-copy > p {
  max-width: 32rem;
  margin-bottom: 2.5rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 2.75vw, 3.1rem);
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.email-link {
  margin-bottom: 1.8rem;
  font-size: clamp(0.8rem, 1.4vw, 1rem);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.7rem 1.4rem;
}

.contact-links button,
.contact-links a {
  font-size: 0.72rem;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.4rem var(--pad);
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: var(--black);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.toast {
  position: fixed;
  z-index: 120;
  right: 1.25rem;
  bottom: 1.25rem;
  padding: 0.8rem 1rem;
  color: var(--black);
  background: var(--white-bright);
  border: 1px solid var(--black);
  font-size: 0.76rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.6rem);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.error-page {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: var(--pad);
}

.error-main {
  width: min(100%, 56rem);
}

.error-main h1 {
  max-width: 10ch;
  margin: 1.5rem 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.5rem, 10vw, 8rem);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.9;
}

.error-main > p:not(.overline) {
  max-width: 38rem;
  margin-bottom: 2rem;
  color: var(--muted);
}

.error-link {
  display: inline-block;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid currentColor;
  font-size: 0.78rem;
}

@media (max-width: 1100px) {
  .hero-intro {
    margin-left: 0;
  }

  .section {
    grid-template-columns: 7rem minmax(0, 1fr);
  }

  .project {
    gap: 4rem;
  }

  .storyflow-showcase-intro {
    grid-template-columns: minmax(18rem, 1fr) minmax(16rem, 0.72fr);
  }

  .storyflow-showcase-intro .overline {
    grid-column: 1 / -1;
  }

  .practice-statement {
    grid-template-columns: 1fr 2fr;
  }

  .practice-tools {
    grid-column: 2;
  }
}

@media (max-width: 980px) {
  :root {
    --header-h: 64px;
  }

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

  .site-header.scrolled {
    backdrop-filter: none;
  }

  .header-links {
    display: none;
  }

  .menu-toggle {
    z-index: 3;
    justify-self: end;
    display: grid;
    gap: 7px;
    width: 44px;
    min-height: 44px;
    padding: 10px 5px;
    cursor: pointer;
  }

  .menu-toggle span {
    display: block;
    width: 100%;
    height: 1px;
    background: currentColor;
    transition: transform 180ms ease;
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }

  nav {
    position: fixed;
    z-index: 2;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    padding: calc(var(--header-h) + 2rem) var(--pad) 2rem;
    color: var(--white-bright);
    overflow-y: auto;
    background: var(--black);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.75rem);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms;
  }

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

  nav a {
    width: 100%;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--line);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.5rem, 8vw, 5rem);
    letter-spacing: -0.05em;
    line-height: 1;
  }

  nav .nav-resume {
    display: block;
  }

  nav a::after {
    display: none;
  }

  .hero-intro {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero-actions {
    justify-content: flex-start;
  }

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

  .section-rail {
    margin-bottom: 2.5rem;
    padding-right: 0;
  }

  .section-rail p {
    position: static;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .project,
  .experience-list article,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .project {
    gap: 3rem;
  }

  .project-header h3 {
    font-size: clamp(4rem, 13vw, 7rem);
  }

  .experience-list article {
    gap: 1.5rem;
  }

  .experience-meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
  }

  .github-dashboard {
    margin-left: 0;
  }

  .practice-statement,
  .training-note {
    grid-template-columns: 1fr;
  }

  .practice-tools {
    grid-column: auto;
  }

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

@media (max-width: 680px) {
  .signature-mark {
    width: 5.8rem;
    height: 34px;
  }

  .hero-topline {
    top: calc(var(--header-h) + 0.9rem);
  }

  .hero-topline p:first-child {
    max-width: 18rem;
  }

  .hero-topline p:last-child {
    display: none;
  }

  .hero-identity {
    bottom: 5.2rem;
  }

  .hero h1 {
    max-width: 10ch;
    font-size: clamp(3.25rem, 15vw, 5.4rem);
    line-height: 0.87;
  }

  .hero-intro > p {
    max-width: 32rem;
    font-size: 0.98rem;
  }

  .hero-art img {
    object-position: 56% 62%;
  }

  .section {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .section-heading {
    margin-bottom: 3.8rem;
  }

  .section-heading h2 {
    font-size: clamp(2.75rem, 13vw, 4.4rem);
  }

  .project {
    padding: 4rem 0;
  }

  .project-header h3 {
    font-size: clamp(3.7rem, 17vw, 5.6rem);
  }

  .project-lead {
    font-size: clamp(1.55rem, 7vw, 2.3rem);
  }

  .project-facts div {
    grid-template-columns: 5.6rem 1fr;
    gap: 1rem;
  }

  .build-note > div {
    grid-template-columns: 1fr;
  }

  .storyflow-showcase {
    margin-top: 4rem;
    padding-top: 4rem;
  }

  .storyflow-showcase-intro,
  .storyflow-caption {
    grid-template-columns: 1fr;
  }

  .storyflow-showcase-intro .overline {
    grid-column: auto;
  }

  .storyflow-showcase-intro h4 {
    font-size: clamp(2.75rem, 12vw, 4.2rem);
  }

  .storyflow-caption {
    gap: 0.75rem;
  }

  .storyflow-gallery-toolbar {
    align-items: flex-end;
  }

  .storyflow-thumbnails {
    display: flex;
    width: 100%;
    gap: 0.9rem;
    padding-bottom: 0.8rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: thin;
  }

  .storyflow-thumbnails li {
    flex: 0 0 min(72vw, 17rem);
    scroll-snap-align: start;
  }

  .practice-statement > p:nth-child(2) {
    font-size: clamp(1.8rem, 8vw, 2.7rem);
  }

  .credential-ledger article {
    grid-template-columns: 1fr auto;
    gap: 0.3rem 1rem;
  }

  .credential-ledger h3 {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .training-note li {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .experience-scope > div {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .github-intro {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .github-dashboard figcaption,
  .github-feed-label {
    flex-direction: column;
    gap: 0.2rem;
  }

  .github-event {
    grid-template-columns: 1fr auto;
    gap: 0.55rem 1rem;
  }

  .github-event-main {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .contact-copy > p {
    font-size: clamp(1.6rem, 8vw, 2.45rem);
  }

  footer {
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-art img {
    transform: scale(1.035);
    will-change: auto;
  }
}
