@font-face {
  font-family: Manrope;
  src: url("../assets/fonts/manrope-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../assets/fonts/ibm-plex-mono-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Shared palette and type for the portfolio, case studies, and résumé. */
:root {
  color-scheme: light;
  --bg: #f6f4ed;
  --surface: #fcfaf5;
  --bg-alt: #eeece4;
  --text: #252720;
  --text-soft: #5e6158;
  --text-faint: #707368;
  --line: #d8d9cf;
  --accent: #bd3e23;
  --orange: #e26844;
  --green: #243e33;
  --art-fill: #e26844;
  --art-ink: #432e22;
  --schematic: #e6ebdd;
  --header: rgba(246, 244, 237, 0.94);
  --sans: Manrope, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
  --serif: Georgia, "Times New Roman", serif;
  --shell: 1240px;
  --gutter: clamp(22px, 5vw, 72px);
  --section-space: clamp(76px, 9vw, 132px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #20251f;
  --surface: #292f27;
  --bg-alt: #272d25;
  --text: #f1f0e6;
  --text-soft: #bcc2b4;
  --text-faint: #a3ad9a;
  --line: #424b3e;
  --accent: #f39a74;
  --schematic: #303d30;
  --header: rgba(32, 37, 31, 0.94);
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
::selection {
  background: #f1b197;
  color: #252720;
}
a {
  color: inherit;
  text-underline-offset: 5px;
}
button,
input {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  cursor: default;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: -0.05em;
}
h2 {
  margin-bottom: 0;
  font-size: clamp(38px, 4.7vw, 64px);
  font-weight: 600;
}
h3 {
  font-weight: 600;
}
h1 em,
h2 em {
  font-family: var(--serif);
  font-weight: 400;
}
img,
video,
svg {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
.shell {
  width: min(calc(100% - 2 * var(--gutter)), var(--shell));
  margin-inline: auto;
}
.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;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 12px 20px;
  background: var(--text);
  color: var(--bg);
  transform: translateY(-160%);
}
.skip-link:focus {
  transform: translateY(0);
}

/* Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 94px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.wordmark-mark {
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.08em;
}
.wordmark-mark > span {
  color: var(--accent);
}
.wordmark-name {
  font-size: 13px;
  line-height: 1.45;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.primary-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.primary-nav > a {
  font-size: 14px;
  text-decoration: none;
  position: relative;
  padding: 10px 0;
}
.primary-nav > a > span {
  font-family: var(--mono);
  font-size: 11px;
  margin-left: 3px;
  color: var(--text-faint);
}
.primary-nav > a:hover,
.primary-nav > a[aria-current="true"] {
  color: var(--accent);
}
.primary-nav .nav-contact {
  border-bottom: 1px solid var(--text);
  padding-block: 6px;
}
.primary-nav .nav-contact > span {
  font-size: 16px;
  color: inherit;
  margin-left: 12px;
}
.theme-toggle {
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  background: transparent;
  font-size: 20px;
  flex-shrink: 0;
}
.theme-toggle:hover {
  background: var(--bg-alt);
}
.theme-label {
  display: none;
}
.nav-toggle {
  display: none;
}
.site-header.is-scrolled {
  box-shadow: 0 6px 24px #00000005;
}

/* Introduction and the original code-drawn systems illustration. */
.hero {
  padding-top: clamp(48px, 6vw, 90px);
}
.hero-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(36px, 6vw, 90px);
  align-items: center;
}
.eyebrow,
.micro-label {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  line-height: 1.6;
}
.eyebrow {
  margin-bottom: 25px;
}
.eyebrow > span:first-child:not(.status-dot) {
  color: var(--accent);
  margin-right: 10px;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  margin-bottom: 29px;
}
.status-dot {
  display: inline-block;
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #587751;
}
.hero h1 {
  font-size: clamp(58px, 6.6vw, 92px);
  line-height: 1.035;
  font-weight: 600;
  letter-spacing: -0.065em;
  margin-bottom: 28px;
}
.hero h1 em {
  color: var(--accent);
  letter-spacing: -0.055em;
  white-space: nowrap;
}
.hero-intro {
  font-size: 16px;
  line-height: 1.9;
  max-width: 420px;
  color: var(--text-soft);
  margin-bottom: 28px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 15px 23px;
  border: 1px solid transparent;
  border-radius: 5px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  transition:
    transform 0.2s var(--ease),
    background 0.2s;
}
.button:hover {
  transform: translateY(-3px);
}
.button > span {
  font-size: 19px;
  line-height: 1;
}
.button-primary {
  background: var(--text);
  color: var(--bg);
}
.button-light {
  background: #e8efca;
  color: #243e33;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 19px;
  width: fit-content;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding: 7px 0;
}
.text-link > span {
  font-size: 18px;
  line-height: 1;
  transition: transform 0.2s;
}
.text-link:hover > span {
  transform: translate(3px, -3px);
}
.hero-visual {
  padding: 2px 0 32px;
  position: relative;
}
.systems-art {
  position: relative;
  background: var(--art-fill);
  color: var(--art-ink);
  padding: 24px 26px 18px;
  border-radius: 4px;
  transform: rotate(3deg);
  transition: transform 0.5s var(--ease);
}
.hero-visual:hover .systems-art {
  transform: rotate(0);
}
.art-heading,
.art-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font: 11px var(--mono);
  letter-spacing: 0.09em;
}
.art-heading {
  padding-bottom: 15px;
  border-bottom: 1px solid #432e2250;
}
.orbit-art {
  width: 100%;
  margin: 8px auto 13px;
}
.art-label {
  position: absolute;
  z-index: 1;
  background: #f6f4ed;
  color: #342f25;
  border: 1px solid #432e22;
  padding: 9px 12px;
  font: 12px var(--mono);
  box-shadow: 3px 3px 0 #432e22;
}
.art-label-one {
  top: 24%;
  left: -20px;
  transform: rotate(-7deg);
}
.art-label-two {
  bottom: 22%;
  right: -16px;
  transform: rotate(4deg);
}
.art-footer {
  padding-top: 12px;
  border-top: 1px solid #432e2250;
}
.art-footer > span:last-child {
  font: 26px var(--sans);
}
.current-project {
  position: relative;
  display: flex;
  align-items: center;
  gap: 15px;
  margin: -9px 21px -32px 17px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: 0 8px 18px #20251f08;
  text-decoration: none;
  transition: transform 0.2s;
}
.current-project:hover {
  transform: translateY(-4px);
}
.current-project > img {
  border-radius: 6px;
  width: 58px;
  height: 58px;
  flex-shrink: 0;
}
.current-project > span:nth-child(2) {
  display: flex;
  flex-direction: column;
}
.micro-label {
  color: var(--text-faint);
  font-size: 10px;
  margin-bottom: 3px;
}
.current-project strong {
  font-size: 16px;
  letter-spacing: -0.04em;
}
.current-detail {
  font-size: 11px;
  color: var(--text-soft);
  margin-top: 2px;
}
.current-arrow {
  font-size: 22px;
  margin-left: auto;
}
.hero-footnote {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-top: 64px;
  padding-block: 22px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--text-soft);
}
.hero-footnote p {
  margin: 0;
}
.hero-footnote strong {
  color: var(--text);
  font-weight: 600;
}
.hero-footnote a {
  text-decoration: none;
  display: flex;
  gap: 16px;
}
.local-time {
  font-family: var(--mono);
  font-size: 11px;
}
.local-time span {
  margin-left: 9px;
}

/* Selected projects */
.section {
  padding-block: var(--section-space);
}
.work-section {
  border-top: 1px solid var(--line);
  padding-top: 88px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 44px;
}
.section-heading .eyebrow {
  margin-bottom: 18px;
}
.section-heading > p {
  color: var(--text-soft);
  font-size: 15px;
  margin: 0 0 4px;
  line-height: 1.8;
}
.featured-project {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  background: var(--green);
  border-radius: 9px;
  overflow: hidden;
  color: #f6f4ed;
}
.feature-media {
  position: relative;
  display: block;
  min-height: 430px;
  overflow: hidden;
  background: #75a77a;
}
.feature-media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 43% center;
  transition: transform 0.7s var(--ease);
}
.feature-media:hover > img {
  transform: scale(1.045);
}
.media-chip {
  position: absolute;
  left: 24px;
  top: 24px;
  background: #f6f4ed;
  color: #252720;
  border-radius: 3px;
  font: 11px var(--mono);
  letter-spacing: 0.04em;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.media-arrow {
  position: absolute;
  bottom: 24px;
  right: 24px;
  width: 43px;
  height: 43px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f6f4ed;
  color: #252720;
  font-size: 24px;
}
.feature-copy {
  padding: clamp(30px, 3.7vw, 52px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.feature-copy .eyebrow {
  font-size: 11px;
  color: #c2ceb8;
  margin-bottom: 26px;
}
.feature-copy h3 {
  font-size: clamp(38px, 4.1vw, 57px);
  line-height: 1.06;
  margin-bottom: 22px;
}
.feature-copy h3 > span {
  color: #c5dd8c;
}
.feature-copy > p:not(.eyebrow) {
  font-size: 15px;
  line-height: 1.85;
  color: #d0d8c8;
  max-width: 340px;
  margin-bottom: 18px;
}
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0;
  margin: 0 0 25px;
  list-style: none;
}
.tag-list li {
  font: 11px var(--mono);
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--text-soft);
}
.feature-copy .tag-list li {
  border-color: #546a57;
  color: #d4dfcb;
}
.project-actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px 24px;
}
.project-actions .button {
  font-size: 12px;
  padding: 12px 16px;
  gap: 20px;
}
.project-actions .text-link {
  font-size: 12px;
  gap: 10px;
}
.secondary-project.roster-project {
  padding-top: 0;
  margin-bottom: 38px;
}
.roster-media {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 28px 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-alt);
  text-decoration: none;
}
.roster-media-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  margin-bottom: 22px;
  font: 11px var(--mono);
  letter-spacing: 0.04em;
}
.roster-media-heading img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.roster-media-heading > span:last-child {
  margin-left: auto;
  font: 24px var(--sans);
}
.roster-preview {
  width: min(100%, 410px);
  border-radius: 8px 8px 0 0;
}
.secondary-project {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 0;
  align-items: center;
  padding-top: 38px;
}
.fpga-art {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 340px;
  background: var(--schematic);
  color: var(--text);
  text-decoration: none;
  border-radius: 8px;
  padding: 24px 28px;
  transition: background 0.3s;
}
.fpga-art:hover {
  background: color-mix(in srgb, var(--schematic), var(--accent) 7%);
}
.schematic-label,
.schematic-footer {
  font: 11px var(--mono);
  letter-spacing: 0.06em;
}
.schematic-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.schematic-footer > span {
  font: 23px var(--sans);
}
.fpga-art svg {
  width: 100%;
  height: auto;
}
.secondary-copy {
  padding: 22px clamp(30px, 3.7vw, 52px);
}
.secondary-copy > .eyebrow {
  font-size: 11px;
  color: var(--text-faint);
  margin-bottom: 20px;
}
.secondary-copy h3 {
  font-size: clamp(28px, 3.1vw, 40px);
  margin-bottom: 18px;
}
.secondary-copy > p:not(.eyebrow) {
  font-size: 15px;
  color: var(--text-soft);
  margin-bottom: 18px;
}
.secondary-copy .tag-list {
  margin-bottom: 20px;
}
.secondary-copy .text-link {
  font-size: 13px;
}

/* About and experience */
.skills-section {
  border-top: 1px solid var(--line);
  padding-top: 70px;
}
.toolbox-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  margin: 40px 0 0;
}
.toolbox-groups > div {
  border-top: 1px solid var(--line);
  padding-top: 19px;
}
.toolbox-groups dt {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 11px;
}
.toolbox-groups dd {
  margin: 0;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.9;
}
.project-hero-mark {
  width: 78px;
  margin-bottom: 25px;
}
.project-hero-mark img {
  width: 100%;
  border-radius: 16px;
}
.subpage-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 30px;
  margin-top: 28px;
}
.project-screenshot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 20px;
  align-items: start;
  margin-top: 30px;
}
.project-screenshot {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
  background: var(--surface);
}
.project-screenshot img {
  width: 100%;
}
.project-screenshot figcaption {
  padding: 13px 16px;
  border-top: 1px solid var(--line);
  font: 12px/1.8 var(--mono);
  color: var(--text-faint);
}
.about-section {
  background: var(--bg-alt);
  border-block: 1px solid var(--line);
}
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(44px, 8vw, 120px);
}
.about-layout h2 {
  font-size: clamp(46px, 5.1vw, 70px);
  line-height: 1.1;
}
.about-signature {
  display: flex;
  align-items: center;
  gap: 25px;
  font: 13px var(--mono);
  margin-top: 32px;
}
.about-signature > span {
  font-size: 25px;
  color: var(--accent);
}
.about-copy {
  padding-top: 37px;
}
.about-copy p {
  color: var(--text-soft);
  font-size: 15px;
  margin-bottom: 19px;
  max-width: 520px;
  line-height: 1.95;
}
.about-copy .about-lead {
  color: var(--text);
  font-size: 21px;
  line-height: 1.5;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}
.about-copy .text-link {
  margin-top: 5px;
}
.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 70px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}
.capability-icon {
  display: block;
  color: var(--accent);
  font: 24px var(--mono);
  height: 40px;
  line-height: 1;
}
.capability h3 {
  font-size: 18px;
  letter-spacing: -0.03em;
  margin: 7px 0 14px;
}
.capability p {
  font-size: 13px;
  line-height: 1.95;
  color: var(--text-soft);
  margin: 0;
}
.experience-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(40px, 7vw, 100px);
}
.experience-layout h2 {
  margin-bottom: 30px;
}
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}
.timeline-item {
  padding: 0 0 35px;
  margin-bottom: 35px;
  border-bottom: 1px solid var(--line);
}
.timeline-item:last-child {
  margin-bottom: 0;
}
.timeline-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 15px;
}
.entry-label {
  font: 12px var(--mono);
  color: var(--accent);
  margin: 0;
}
.timeline-date,
.timeline-location {
  font: 11px var(--mono);
  color: var(--text-faint);
}
.timeline-item h3 {
  font-size: 25px;
  margin-bottom: 17px;
}
.timeline-item > p,
.experience-highlights {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-soft);
}
.experience-highlights {
  padding-left: 16px;
  margin-bottom: 20px;
}
.experience-highlights > li {
  padding-left: 5px;
  margin-bottom: 6px;
}
.timeline-location {
  display: block;
  margin-top: 22px;
}

/* Contact */
.contact-section {
  background: #e7aa8c;
  color: #302b23;
  padding-block: 70px 44px;
}
.contact-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.contact-top .eyebrow {
  margin: 0;
}
.contact-top .eyebrow > span:first-child {
  color: #773c26;
}
.contact-star {
  font-size: 49px;
  line-height: 1;
}
.contact-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  margin-block: 36px 52px;
}
.contact-main h2 {
  font-size: clamp(48px, 7.3vw, 100px);
  line-height: 1.07;
}
.contact-arrow {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 110px;
  height: 110px;
  border: 1px solid #68503e;
  border-radius: 50%;
  text-decoration: none;
  font-size: 68px;
  line-height: 1;
  transition:
    background 0.2s,
    transform 0.2s;
}
.contact-arrow:hover {
  background: #f6f4ed66;
  transform: rotate(7deg);
}
.contact-section :focus-visible {
  outline-color: #302b23;
}
.contact-bottom {
  border-top: 1px solid #8e634955;
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
}
.email-link {
  font-size: 16px;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.email-link span {
  padding-left: 15px;
}
.social-links {
  display: flex;
  gap: 27px;
  font-size: 13px;
}
.social-links a {
  text-decoration: none;
}
.social-links a:hover,
.email-link:hover {
  text-decoration: underline;
}
.site-footer {
  padding-block: 24px;
  background: var(--bg);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font: 11px var(--mono);
  color: var(--text-faint);
  line-height: 1.7;
}
.footer-inner p {
  margin: 0;
}
.footer-inner a {
  text-decoration: none;
}
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Case studies and résumé */
.subpage {
  min-height: 70vh;
}
.subpage-hero {
  padding-block: 70px;
  border-bottom: 1px solid var(--line);
}
.subpage-title {
  font-size: clamp(48px, 7vw, 90px);
  max-width: 13ch;
  font-weight: 600;
  margin-bottom: 28px;
}
.subpage-lead {
  max-width: 650px;
  color: var(--text-soft);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.7;
  margin-bottom: 24px;
}
.subpage-hero .tag-list {
  margin: 0;
}
.content-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 70px;
  padding-block: 80px;
}
.content-nav {
  position: sticky;
  top: 135px;
  align-self: start;
}
.content-nav > p {
  font: 12px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-faint);
}
.content-nav ol {
  padding: 0;
  list-style: none;
  font-size: 15px;
}
.content-nav li {
  margin-block: 14px;
}
.content-nav a {
  text-decoration: none;
}
.content-nav a:hover {
  color: var(--accent);
}
.case-study-section {
  padding-bottom: 48px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
.case-study-section:last-child {
  border: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}
.case-study-section h2 {
  font-size: clamp(29px, 3.5vw, 43px);
  max-width: 24ch;
  margin-bottom: 23px;
}
.case-study-section p:not(.eyebrow) {
  color: var(--text-soft);
  font-size: 16px;
  max-width: 760px;
  line-height: 1.9;
}
.case-study-section .eyebrow {
  margin-bottom: 16px;
}
.system-flow {
  display: grid;
  grid-template-columns: 1fr 0.8fr 1fr;
  gap: 15px;
  align-items: center;
  padding: 27px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-top: 25px;
}
.system-flow > div {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.system-flow span {
  font: 12px var(--mono);
  color: var(--accent);
}
.system-flow strong {
  font-size: 16px;
  line-height: 1.6;
}
.system-flow > p {
  font-size: 12px !important;
  line-height: 1.6 !important;
  margin: 0;
  text-align: center;
}
.project-hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 55px;
}
.project-hero-layout .subpage-title {
  font-size: clamp(46px, 6.1vw, 82px);
}
.project-hero-layout img {
  width: 100%;
  aspect-ratio: 1.2;
  object-fit: cover;
  object-position: 43%;
  border-radius: 8px;
}
.project-hero-layout .subpage-lead {
  font-size: 17px;
}
.project-hero-layout .project-actions {
  margin-top: 24px;
}
.project-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 45px;
  padding-top: 25px;
  border-top: 1px solid var(--line);
}
.project-meta dt {
  font: 11px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin-bottom: 7px;
}
.project-meta dd {
  margin: 0;
  font-size: 15px;
}
.gameplay-video {
  width: 100%;
  border-radius: 7px;
  background: #17231c;
  aspect-ratio: 16/9;
}
.video-figure {
  margin: 25px 0 0;
}
.video-figure figcaption {
  font: 12px/1.8 var(--mono);
  color: var(--text-faint);
  margin-top: 13px;
}
.game-loop {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.game-loop li {
  padding: 20px 15px;
  background: var(--bg-alt);
  border-top: 2px solid var(--accent);
}
.game-loop span {
  font: 12px var(--mono);
  color: var(--accent);
  display: block;
  margin-bottom: 17px;
}
.game-loop strong {
  font-size: 17px;
  display: block;
  letter-spacing: -0.035em;
  margin-bottom: 9px;
}
.game-loop p {
  font-size: 13px !important;
  margin-bottom: 0;
}
.engineering-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 30px;
}
.engineering-list h3 {
  font-size: 19px;
  margin-bottom: 13px;
}
.engineering-list p {
  font-size: 15px !important;
  margin: 0;
}
.case-next {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding: 30px 0 60px;
  font-size: 15px;
}
.case-next a {
  text-decoration: none;
}
.resume-sheet {
  max-width: 920px;
  margin: 60px auto;
  padding: 55px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.resume-sheet > h1 {
  font-size: clamp(36px, 5vw, 58px);
  margin-bottom: 15px;
}
.resume-contact {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13px;
}
.resume-section {
  padding-top: 28px;
  margin-top: 28px;
  border-top: 1px solid var(--line);
}
.resume-section h2 {
  font-size: 25px;
  margin-bottom: 20px;
}
.resume-section h3 {
  font-size: 18px;
  margin-bottom: 10px;
}
.resume-section p,
.resume-section li {
  font-size: 15px;
  color: var(--text-soft);
}
.resume-section ul {
  padding-left: 20px;
}
.resume-section .resume-date {
  font: 12px var(--mono);
  color: var(--accent);
}
.resume-section p:last-child {
  margin-bottom: 0;
}
.resume-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}
.resume-tools .eyebrow {
  margin: 0;
}
.print-button {
  font-size: 13px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 9px 13px;
}
.error-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 40px;
}
.error-content {
  max-width: 540px;
}
.error-code {
  font: 100px var(--mono);
  color: var(--accent);
  margin-bottom: 25px;
}
.error-content h1 {
  font-size: 40px;
}
.error-content > p:not(.error-code) {
  color: var(--text-soft);
}

/* Tablet and phone layouts */
/* Toy layer (2026-10): one visual language for the whole site. Rounded display type, bold
   outlines and hard offset shadows, the same treatment as the hero stickers and the mini game. */
:root {
  --display: Fredoka, "Arial Rounded MT Bold", Manrope, sans-serif;
  --outline: #252720;
  --drop: #252720;
  --stroke: 1.5px;
}
:root[data-theme="dark"] {
  --outline: #78846f;
  --drop: #0b0d0a;
}
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.015em;
}
h1 em,
h2 em,
.hero h1 em {
  font-family: var(--display);
  font-style: normal;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.01em;
  text-decoration: underline wavy;
  text-decoration-thickness: 0.055em;
  text-underline-offset: 0.16em;
  text-decoration-skip-ink: none;
}
.hero h1 {
  letter-spacing: -0.025em;
  line-height: 1.02;
}
.subpage-title,
.feature-copy h3,
.timeline-item h3,
.capability h3,
.secondary-copy h3 {
  letter-spacing: -0.015em;
}

/* Buttons and small controls press like keys */
.button {
  border: var(--stroke) solid var(--outline);
  border-radius: 10px;
  box-shadow: 3px 3px 0 var(--drop);
  transition:
    transform 0.15s var(--ease),
    box-shadow 0.15s var(--ease),
    background 0.2s;
}
.button:hover {
  transform: translate(-1px, -2px);
  box-shadow: 4px 5px 0 var(--drop);
}
.button:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--drop);
}
.button-light {
  border-color: #12201a;
  box-shadow: 3px 3px 0 #12201a;
}
.button-light:hover {
  box-shadow: 4px 5px 0 #12201a;
}
.theme-toggle,
.js .nav-toggle {
  border: var(--stroke) solid var(--outline);
  box-shadow: 2px 2px 0 var(--drop);
}
.theme-toggle:active,
.js .nav-toggle:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--drop);
}
.tag-list li {
  border-radius: 99px;
  border-width: var(--stroke);
  padding: 4px 11px;
}

/* Objects on the page are stickers: outline plus a hard shadow */
.systems-art,
.current-project,
.roster-media,
.fpga-art,
.project-screenshot {
  border: var(--stroke) solid var(--outline);
  box-shadow: 6px 6px 0 var(--drop);
}
.current-project {
  box-shadow: 4px 4px 0 var(--drop);
}
.current-project:hover {
  box-shadow: 5px 7px 0 var(--drop);
}
.featured-project {
  border: var(--stroke) solid #12201a;
  box-shadow: 6px 6px 0 #12201a;
}
:root[data-theme="dark"] .featured-project {
  border-color: var(--outline);
  box-shadow: 6px 6px 0 var(--drop);
}
.contact-arrow {
  border: var(--stroke) solid #302b23;
  box-shadow: 4px 4px 0 #302b23;
}
.section-heading .eyebrow > span:first-child,
.contact-top .eyebrow > span:first-child {
  display: inline-block;
  padding: 1px 7px;
  border: var(--stroke) solid currentColor;
  border-radius: 99px;
}

/* Experience as a quest log */
.timeline {
  position: relative;
  padding-left: 34px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 14px;
  bottom: 14px;
  border-left: 2px dashed var(--outline);
  opacity: 0.45;
}
.timeline-item {
  position: relative;
  padding: 24px 26px;
  margin-bottom: 26px;
  border: var(--stroke) solid var(--outline);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 5px 5px 0 var(--drop);
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -32px;
  top: 26px;
  width: 16px;
  height: 16px;
  border: var(--stroke) solid var(--outline);
  border-radius: 50%;
  background: var(--surface);
}
.timeline-item.is-active::before {
  background: var(--accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent), transparent 78%);
}
.quest-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
  padding: 3px 10px;
  border: var(--stroke) solid var(--outline);
  border-radius: 99px;
  font: 11px var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.quest-chip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.timeline-item.is-active .quest-chip {
  color: #2f7a4a;
}
:root[data-theme="dark"] .timeline-item.is-active .quest-chip {
  color: #8fd6a8;
}
.objectives-label {
  margin: 0 0 8px;
  font: 11px var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.experience-highlights.objectives {
  list-style: none;
  padding-left: 0;
}
.objectives > li {
  position: relative;
  padding-left: 30px;
}
.objectives > li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.25em;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border: var(--stroke) solid var(--outline);
  border-radius: 5px;
  background: #e8efca;
  color: #243e33;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}
.quest-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin: 4px 0 6px;
  max-width: 320px;
}
.quest-progress span {
  height: 12px;
  border: var(--stroke) solid var(--outline);
  border-radius: 4px;
  background: var(--accent);
}
.quest-progress span.is-current {
  background: repeating-linear-gradient(
    -45deg,
    var(--accent) 0 5px,
    transparent 5px 10px
  );
}
.quest-progress-label {
  font: 11px var(--mono);
  color: var(--text-faint);
}

/* Skills as an inventory */
.capability {
  padding: 24px;
  border: var(--stroke) solid var(--outline);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 5px 5px 0 var(--drop);
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}
.capability:hover {
  transform: translate(-2px, -3px) rotate(-0.6deg);
  box-shadow: 7px 8px 0 var(--drop);
}
.capability-grid {
  border-top: 0;
  padding-top: 0;
  gap: 26px;
}
.capability-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
  border: var(--stroke) solid var(--outline);
  border-radius: 10px;
  background: var(--art-fill);
  color: var(--art-ink);
  font-size: 15px;
  letter-spacing: -0.08em;
  white-space: nowrap;
  box-shadow: 2px 2px 0 var(--drop);
}
.inventory {
  margin-top: 56px;
  border: var(--stroke) solid var(--outline);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 6px 6px 0 var(--drop);
  overflow: hidden;
}
.inventory-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin: 0;
  padding: 12px 22px;
  border-bottom: var(--stroke) solid var(--outline);
  background: var(--bg-alt);
  font: 11px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.inventory-head strong {
  color: var(--text);
  font-weight: 400;
}
.inventory .toolbox-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
}
.inventory .toolbox-groups > div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: baseline;
  gap: 12px;
  padding: 14px 22px;
  border-top: 1px dashed var(--line);
}
.inventory .toolbox-groups > div:nth-child(-n + 2) {
  border-top: 0;
}
.inventory .toolbox-groups > div:nth-child(even) {
  border-left: 1px dashed var(--line);
}
.inventory .toolbox-groups dt {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font: 600 15px var(--display);
}
.inventory .toolbox-groups dt::before {
  content: "";
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--cat, var(--accent));
}
.inventory .toolbox-groups dd {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  line-height: 1.3;
}
.inv-item {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 7px;
  background: color-mix(in srgb, var(--cat, var(--accent)) 13%, var(--surface));
  color: var(--text);
  font-size: 13px;
  transition:
    transform 0.15s var(--ease),
    background 0.15s;
}
.inv-item:hover {
  background: color-mix(in srgb, var(--cat, var(--accent)) 24%, var(--surface));
  transform: translateY(-2px);
}

/* About: the player card */
.player-card {
  position: relative;
  max-width: 340px;
  margin-top: 34px;
  padding: 18px 20px 16px;
  border: var(--stroke) solid var(--outline);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 6px 6px 0 var(--drop);
  transform: rotate(-1.5deg);
  transition: transform 0.4s var(--ease);
}
.player-card:hover {
  transform: rotate(0);
}
.player-card-top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: var(--stroke) dashed var(--line);
}
.player-avatar {
  flex-shrink: 0;
  width: 84px;
  height: 104px;
  border: var(--stroke) solid var(--outline);
  border-radius: 10px;
  background: linear-gradient(#bfe3ff, #e8f5ff 60%, #5cc23a 60%);
}
.player-name {
  margin: 0;
  font: 600 22px/1.1 var(--display);
}
.player-tag {
  margin: 6px 0 0;
  font: 11px var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.player-stats {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 7px 14px;
  margin: 14px 0 0;
  font-size: 13px;
}
.player-stats dt {
  font: 11px/1.9 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.player-stats dd {
  margin: 0;
  line-height: 1.5;
}
.player-ready {
  margin: 14px 0 0;
  font: 11px var(--mono);
  letter-spacing: 0.08em;
  color: var(--accent);
}
.player-ready::after {
  content: "▮";
  margin-left: 4px;
  animation: player-blink 1s steps(2) infinite;
}
@keyframes player-blink {
  50% {
    opacity: 0;
  }
}

@media (max-width: 760px) {
  .timeline {
    padding-left: 26px;
  }
  .timeline::before {
    left: 6px;
  }
  .timeline-item {
    padding: 18px;
  }
  .timeline-item::before {
    left: -27px;
  }
  .player-card {
    max-width: none;
  }
  .inventory .toolbox-groups {
    grid-template-columns: 1fr;
  }
  .inventory .toolbox-groups > div {
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 14px 18px;
  }
  .inventory .toolbox-groups > div:nth-child(2) {
    border-top: 1px dashed var(--line);
  }
  .inventory .toolbox-groups > div:nth-child(even) {
    border-left: 0;
  }
}
@media (min-width: 1600px) {
  .hero h1 {
    font-size: 96px;
  }
  .hero-layout {
    gap: 110px;
  }
}
@media (max-width: 1050px) {
  .primary-nav {
    gap: 23px;
  }
  .hero h1 {
    font-size: clamp(56px, 6.8vw, 74px);
  }
  .hero-intro {
    font-size: 15px;
  }
  .hero-actions {
    gap: 20px;
  }
  .hero-actions .button {
    gap: 20px;
    padding: 13px 17px;
  }
  .hero-actions .text-link {
    font-size: 13px;
    gap: 10px;
  }
  .current-project {
    margin-inline: 4px;
    padding: 14px 12px;
    gap: 10px;
  }
  .current-project > img {
    width: 46px;
    height: 46px;
  }
  .current-project strong {
    font-size: 16px;
  }
  .current-detail {
    font-size: 10px;
  }
  .feature-media {
    min-height: 430px;
  }
  .featured-project,
  .secondary-project {
    grid-template-columns: 1.1fr 1fr;
  }
  .feature-copy,
  .secondary-copy {
    padding: 30px;
  }
  .feature-copy h3 {
    font-size: 42px;
  }
  .feature-copy .eyebrow {
    font-size: 10px;
  }
  .project-actions {
    gap: 12px;
  }
  .capability-grid {
    gap: 24px;
  }
  .content-layout {
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 38px;
  }
  .project-hero-layout {
    gap: 32px;
  }
  .game-loop {
    grid-template-columns: 1fr 1fr;
  }
  .resume-sheet {
    margin-inline: var(--gutter);
  }
}
@media (max-width: 760px) {
  .toolbox-groups {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .project-screenshot-grid {
    grid-template-columns: 1fr;
  }
  .roster-media {
    padding: 20px 20px 0;
  }
  .secondary-project.roster-project {
    padding-top: 0;
    margin-bottom: 35px;
  }
  html {
    scroll-padding-top: 92px;
  }
  .header-inner {
    min-height: 77px;
    flex-wrap: wrap;
    gap: 0;
  }
  .wordmark-mark {
    font-size: 37px;
  }
  .wordmark-name {
    font-size: 12px;
  }
  .js .nav-toggle {
    display: block;
    font: 13px var(--mono);
    border: 1px solid var(--line);
    border-radius: 4px;
    background: transparent;
    padding: 10px 13px;
  }
  .primary-nav {
    flex-basis: 100%;
    justify-content: space-between;
    gap: 13px;
    padding-block: 12px;
  }
  .js .primary-nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: var(--gutter);
    right: var(--gutter);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 10px 18px;
    box-shadow: 0 12px 25px #0000000c;
  }
  .js .primary-nav.is-open {
    display: flex;
  }
  .js .primary-nav > a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
  }
  .js .primary-nav .theme-toggle {
    margin-block: 14px 5px;
    align-self: flex-start;
  }
  .subpage-body .primary-nav,
  .js .subpage-body .primary-nav {
    position: static;
    display: flex;
    flex-basis: auto;
    flex-direction: row;
    align-items: center;
    gap: 18px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .js .subpage-body .primary-nav > a {
    border: 0;
    font-size: 12px;
  }
  .js .subpage-body .primary-nav .theme-toggle {
    margin: 0;
  }
  .hero {
    padding-top: 42px;
  }
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 47px;
  }
  .hero h1 {
    font-size: clamp(58px, 10.7vw, 83px);
  }
  .hero-eyebrow {
    font-size: 11px;
    margin-bottom: 24px;
  }
  .hero-intro {
    font-size: 16px;
    max-width: 430px;
    margin-bottom: 25px;
  }
  .hero-actions .button {
    padding: 14px 19px;
    font-size: 13px;
  }
  .hero-visual {
    max-width: 440px;
    width: calc(100% - 20px);
    margin-inline: auto;
    padding-bottom: 30px;
  }
  .systems-art {
    padding: 20px 22px 16px;
  }
  .orbit-art {
    max-height: 310px;
  }
  .current-project {
    margin-inline: 12px;
    padding: 14px;
  }
  .current-project > img {
    width: 53px;
    height: 53px;
  }
  .current-project strong {
    font-size: 16px;
  }
  .current-detail {
    font-size: 11px;
  }
  .hero-footnote {
    margin-top: 46px;
    flex-wrap: wrap;
    gap: 13px;
    font-size: 11px;
    padding-block: 20px;
  }
  .hero-footnote > p:first-child {
    flex-basis: 100%;
  }
  .hero-footnote .local-time {
    font-size: 11px;
  }
  .work-section {
    padding-top: 66px;
  }
  .section-heading {
    display: block;
    margin-bottom: 31px;
  }
  .section-heading > p {
    margin-top: 20px;
  }
  .section-heading > p br {
    display: none;
  }
  .section-heading .eyebrow {
    margin-bottom: 13px;
  }
  .featured-project,
  .secondary-project {
    grid-template-columns: 1fr;
  }
  .feature-media {
    min-height: 0;
    aspect-ratio: 16/11;
  }
  .feature-media > img {
    object-position: center;
  }
  .feature-copy {
    padding: 30px;
  }
  .feature-copy h3 {
    font-size: 46px;
  }
  .feature-copy h3 br {
    display: none;
  }
  .feature-copy > p:not(.eyebrow) {
    max-width: 100%;
  }
  .feature-copy .eyebrow {
    font-size: 11px;
    margin-bottom: 20px;
  }
  .feature-copy .tag-list {
    margin-bottom: 25px;
  }
  .project-actions {
    gap: 16px 25px;
  }
  .secondary-project {
    padding-top: 30px;
  }
  .fpga-art {
    min-height: 240px;
    padding: 20px;
  }
  .secondary-copy {
    padding: 27px 4px 0;
  }
  .secondary-copy h3 {
    font-size: 32px;
  }
  .secondary-copy > p:not(.eyebrow) {
    font-size: 15px;
  }
  .about-layout {
    grid-template-columns: 1fr;
    gap: 29px;
  }
  .about-layout h2 {
    font-size: 52px;
  }
  .about-copy {
    padding-top: 0;
  }
  .about-copy .about-lead {
    font-size: 21px;
  }
  .about-signature {
    margin-top: 23px;
  }
  .capability-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 40px;
    padding-top: 30px;
  }
  .capability {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 0 16px;
  }
  .capability-icon {
    grid-row: 1/3;
    margin-top: 7px;
  }
  .capability h3 {
    margin-bottom: 10px;
  }
  .capability p {
    grid-column: 2;
  }
  .experience-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .experience-layout h2 {
    margin-bottom: 22px;
  }
  .timeline-top {
    gap: 10px;
  }
  .timeline-date {
    font-size: 10px;
  }
  .entry-label {
    font-size: 11px;
  }
  .timeline-item h3 {
    font-size: 24px;
  }
  .contact-section {
    padding-block: 45px 30px;
  }
  .contact-top .eyebrow {
    font-size: 10px;
  }
  .contact-star {
    font-size: 37px;
  }
  .contact-main {
    margin-block: 32px 38px;
    gap: 14px;
  }
  .contact-main h2 {
    font-size: clamp(40px, 7.8vw, 60px);
  }
  .contact-arrow {
    width: 66px;
    height: 66px;
    font-size: 41px;
  }
  .contact-bottom {
    display: block;
    padding-top: 24px;
  }
  .email-link {
    font-size: 16px;
    overflow-wrap: anywhere;
  }
  .email-link span {
    padding-left: 5px;
  }
  .social-links {
    margin-top: 20px;
    gap: 28px;
  }
  .footer-inner {
    flex-wrap: wrap;
    font-size: 10px;
    gap: 10px 20px;
  }
  .footer-inner > p:nth-child(2) {
    display: none;
  }
  .subpage-hero {
    padding-block: 45px;
  }
  .subpage-title {
    font-size: 52px;
  }
  .content-layout {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-block: 40px;
  }
  .content-nav {
    position: static;
    border-bottom: 1px solid var(--line);
    padding-bottom: 14px;
  }
  .content-nav ol {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 20px;
    font-size: 13px;
  }
  .content-nav li {
    margin: 0;
  }
  .project-hero-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .project-hero-layout .subpage-title {
    font-size: 56px;
  }
  .project-hero-layout img {
    aspect-ratio: 16/10;
  }
  .project-meta {
    gap: 20px;
    margin-top: 28px;
  }
  .project-meta dd {
    font-size: 12px;
  }
  .project-meta dt {
    font-size: 10px;
  }
  .case-study-section {
    padding-bottom: 32px;
    margin-bottom: 32px;
  }
  .case-study-section h2 {
    font-size: 32px;
  }
  .case-study-section p:not(.eyebrow) {
    font-size: 15px;
  }
  .engineering-list {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .case-next {
    padding-bottom: 35px;
    font-size: 13px;
  }
  .resume-sheet {
    padding: 28px;
    margin-block: 35px;
  }
  .resume-sheet > h1 {
    font-size: 38px;
  }
  .resume-contact {
    font-size: 12px;
    gap: 10px;
  }
  .resume-tools {
    align-items: flex-start;
  }
  .system-flow {
    padding: 18px;
    gap: 12px;
    grid-template-columns: 1fr;
  }
  .system-flow > p {
    text-align: left;
  }
  .system-flow strong {
    font-size: 15px;
  }
}
@media (max-width: 380px) {
  .hero h1 {
    font-size: 54px;
  }
  .hero-actions {
    gap: 18px;
  }
  .hero-actions .button {
    padding: 13px 14px;
    gap: 13px;
  }
  .hero-actions .text-link {
    font-size: 12px;
  }
  .current-project {
    margin-inline: 0;
    padding: 12px;
    gap: 9px;
  }
  .current-detail {
    font-size: 10px;
  }
  .contact-main h2 {
    font-size: 36px;
  }
  .contact-arrow {
    width: 53px;
    height: 53px;
    font-size: 35px;
  }
  .feature-copy {
    padding: 24px;
  }
  .feature-copy h3 {
    font-size: 39px;
  }
  .timeline-top {
    display: block;
  }
  .timeline-date {
    display: block;
    margin-top: 8px;
  }
  .subpage-body .wordmark-name {
    display: none;
  }
  .game-loop {
    gap: 9px;
  }
  .game-loop li {
    padding: 17px 12px;
  }
  .resume-sheet {
    padding: 22px;
  }
  .resume-sheet > h1 {
    font-size: 33px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
  .systems-art,
  .hero-visual:hover .systems-art {
    transform: none;
  }
}
@media print {
  .site-header,
  .site-footer,
  .resume-tools,
  .theme-toggle,
  .nav-toggle,
  .skip-link {
    display: none !important;
  }
  body {
    background: #fff;
    color: #111;
    font-size: 11px;
  }
  .resume-sheet {
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: #fff;
  }
  .resume-sheet > h1 {
    font-size: 32px;
  }
  .resume-section {
    padding-top: 13px;
    margin-top: 13px;
    break-inside: avoid;
  }
  .resume-section h2 {
    font-size: 18px;
    margin-bottom: 12px;
  }
  .resume-section p,
  .resume-section li {
    font-size: 10px;
    color: #333;
  }
  .resume-section h3 {
    font-size: 13px;
  }
  .resume-section .resume-date {
    color: #555;
    font-size: 9px;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
  a {
    color: inherit;
  }
  .resume-contact {
    font-size: 9px;
  }
}
