:root {
  --cobalt: #2448d8;
  --deep: #173d36;
  --cream: #f4ecd9;
  --sun: #ffd95c;
  --mint: #bdf3c8;
  --green: #2fcf73;
  --coral: #ff6a52;
  --sky: #8cc8ff;
  --line: rgba(23, 61, 54, 0.25);
  --pad: 52px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--deep);
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--deep);
  background: var(--cream);
  font-family: "Noto Sans SC", sans-serif;
}

body.menu-open {
  overflow: hidden;
}

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

button {
  color: inherit;
  font: inherit;
}

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

::selection {
  color: var(--deep);
  background: var(--sun);
}

.pointer {
  position: fixed;
  z-index: 120;
  top: 0;
  left: 0;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  pointer-events: none;
  border: 1px solid var(--sun);
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: width 180ms ease, height 180ms ease, background 180ms ease;
}

.pointer::after {
  width: 5px;
  height: 5px;
  background: var(--sun);
  border-radius: 50%;
  content: "";
}

.pointer.is-hovering {
  width: 68px;
  height: 68px;
  background: rgba(255, 217, 92, 0.16);
}

.topbar {
  position: absolute;
  z-index: 40;
  top: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  min-height: 82px;
  padding: 0 var(--pad);
  color: var(--cream);
  border-bottom: 1px solid rgba(244, 236, 217, 0.32);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  width: max-content;
  font-weight: 700;
}

.wordmark-icon {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  color: var(--deep);
  background: var(--sun);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 600;
}

.desktop-nav {
  display: flex;
  gap: 36px;
  font-size: 13px;
}

.desktop-nav a {
  position: relative;
  padding: 8px 0;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 2px;
  background: var(--sun);
  content: "";
  transform: scaleX(0);
  transition: transform 220ms ease;
}

.desktop-nav a:hover::after {
  transform: scaleX(1);
}

.topbar-status {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 9px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
}

.status-light {
  width: 8px;
  height: 8px;
  background: var(--mint);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(189, 243, 200, 0.8);
  animation: pulse 2s infinite;
}

.menu-button,
.mobile-menu {
  display: none;
}

.hero {
  position: relative;
  min-height: 94svh;
  overflow: hidden;
  isolation: isolate;
  color: var(--cream);
  background: var(--cobalt);
}

.hero-image,
.hero-color,
.hero-grid {
  position: absolute;
  inset: 0;
}

.hero-image {
  z-index: -4;
  background-image: url("https://images.unsplash.com/photo-1558494949-ef010cbdcc31?auto=format&fit=crop&w=2400&q=92");
  background-position: center;
  background-size: cover;
  filter: saturate(1.25) contrast(1.06);
  transform: scale(1.04);
  animation: hero-enter 1.5s cubic-bezier(0.2, 0.7, 0, 1) forwards;
}

.hero-color {
  z-index: -3;
  background: rgba(36, 72, 216, 0.73);
  mix-blend-mode: multiply;
}

.hero-grid,
.closing-grid {
  z-index: -2;
  opacity: 0.28;
  background-image: linear-gradient(rgba(244, 236, 217, 0.35) 1px, transparent 1px), linear-gradient(90deg, rgba(244, 236, 217, 0.35) 1px, transparent 1px);
  background-size: 96px 96px;
}

.hero-main {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 94svh;
  flex-direction: column;
  justify-content: flex-end;
  padding: 150px 13% 102px var(--pad);
}

.hero-code,
.section-label,
.metric-note span,
.project-id,
.project-badge,
.career-index,
.career-location,
.career-date,
.closing-label,
footer {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.hero-code {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
  color: var(--sun);
}

.hero-code::before {
  width: 38px;
  height: 2px;
  background: currentColor;
  content: "";
}

.hero h1 {
  display: flex;
  flex-direction: column;
  margin: 0;
  font-family: "Noto Sans SC", sans-serif;
  font-size: 7.4rem;
  font-weight: 900;
  line-height: 0.94;
  letter-spacing: 0;
}

.outline-text {
  color: transparent;
  font-family: "Manrope", sans-serif;
  font-size: 0.73em;
  font-weight: 800;
  -webkit-text-stroke: 2px var(--cream);
}

.hero-statement {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-top: 46px;
}

.hero-statement p {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.65;
}

.hero-action {
  display: flex;
  width: 156px;
  height: 58px;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  color: var(--deep);
  background: var(--sun);
  font-size: 13px;
  font-weight: 700;
  transition: color 220ms ease, background 220ms ease, transform 220ms ease;
}

.hero-action:hover {
  color: var(--cream);
  background: var(--coral);
  transform: translateY(-4px);
}

.hero-side {
  position: absolute;
  z-index: 2;
  top: 82px;
  right: 0;
  bottom: 46px;
  display: flex;
  width: 10%;
  min-width: 96px;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  border-left: 1px solid rgba(244, 236, 217, 0.32);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  writing-mode: vertical-rl;
}

.hero-side span:nth-child(2) {
  color: var(--sun);
}

.hero-footer {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 46px;
  align-items: center;
  padding: 0 13% 0 var(--pad);
  color: var(--deep);
  background: var(--mint);
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.07em;
}

.hero-footer span:nth-child(2) {
  text-align: center;
}

.hero-footer span:last-child {
  text-align: right;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--sun);
}

.metric {
  display: flex;
  min-height: 280px;
  flex-direction: column;
  justify-content: space-between;
  padding: 34px;
  border-right: 1px solid rgba(23, 61, 54, 0.35);
}

.metric:last-child {
  border-right: 0;
}

.metric-value {
  font-family: "Manrope", sans-serif;
  font-size: 5.3rem;
  font-weight: 800;
  line-height: 1;
}

.metric-value sup {
  color: var(--coral);
  font-size: 0.36em;
  vertical-align: top;
}

.metric p {
  max-width: 190px;
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}

.metric-note {
  color: var(--cream);
  background: var(--coral);
}

.metric-note span {
  color: var(--sun);
}

.metric-note p {
  max-width: 240px;
  font-size: 20px;
  font-weight: 700;
}

.toolhub {
  overflow: hidden;
  background: var(--cream);
}

.toolhub-copy {
  padding-top: 120px;
  padding-bottom: 100px;
}

.toolhub-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.65fr);
  gap: 70px;
  align-items: end;
  padding: 72px 0 90px;
}

.product-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: var(--cobalt);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.product-status span {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(47, 207, 115, 0.65);
  animation: product-pulse 2s infinite;
}

.toolhub h2 {
  margin: 0;
  font-size: 5.6rem;
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: 0;
}

.toolhub h2 span {
  color: var(--cobalt);
  font-family: "Manrope", sans-serif;
  font-size: 0.76em;
}

.toolhub-intro p {
  margin: 0;
  color: #4b6e66;
  font-size: 15px;
  line-height: 1.9;
}

.toolhub-intro > a {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  margin-top: 34px;
  padding: 18px 20px;
  color: var(--cream);
  background: var(--cobalt);
  font-size: 13px;
  font-weight: 700;
  transition: color 220ms ease, background 220ms ease, transform 220ms ease;
}

.toolhub-intro > a:hover {
  color: var(--deep);
  background: var(--sun);
  transform: translateY(-3px);
}

.toolhub-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--deep);
  border-bottom: 1px solid var(--deep);
}

.toolhub-features > a {
  display: grid;
  grid-template-columns: 38px 1fr 34px;
  gap: 20px;
  align-items: center;
  min-height: 150px;
  padding: 28px 32px;
  border-right: 1px solid var(--deep);
  border-bottom: 1px solid var(--deep);
  transition: color 220ms ease, background 220ms ease;
}

.toolhub-features > a:nth-child(3n) { border-right: 0; }
.toolhub-features > a:nth-child(n + 4) { border-bottom: 0; }

.toolhub-features > a:hover {
  color: var(--cream);
  background: var(--coral);
}

.feature-index {
  color: var(--cobalt);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  font-weight: 600;
}

.toolhub-features > a:hover .feature-index {
  color: var(--sun);
}

.toolhub-features strong {
  display: block;
  font-size: 20px;
}

.toolhub-features p {
  margin: 9px 0 0;
  color: #4b6e66;
  font-size: 12px;
  line-height: 1.6;
}

.toolhub-features > a:hover p {
  color: rgba(244, 236, 217, 0.76);
}

.feature-arrow {
  justify-self: end;
  font-size: 28px;
  transition: transform 220ms ease;
}

.toolhub-features > a:hover .feature-arrow {
  transform: rotate(45deg);
}

.toolhub-preview {
  position: relative;
  margin: 0 var(--pad) 140px;
  overflow: hidden;
  background: var(--cobalt);
  border: 2px solid var(--deep);
  box-shadow: 18px 18px 0 var(--sun);
}

.browser-bar {
  display: grid;
  grid-template-columns: 10px 10px 10px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  color: var(--deep);
  background: var(--mint);
  border-bottom: 2px solid var(--deep);
}

.browser-bar > span {
  width: 10px;
  height: 10px;
  border: 1px solid var(--deep);
  border-radius: 50%;
}

.browser-bar > span:first-child { background: var(--coral); }
.browser-bar > span:nth-child(2) { background: var(--sun); }
.browser-bar > span:nth-child(3) { background: var(--sky); }

.browser-bar div {
  min-width: 0;
  margin-left: 8px;
  overflow: hidden;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser-bar strong {
  padding: 5px 8px;
  color: var(--cream);
  background: var(--coral);
  font-family: "IBM Plex Mono", monospace;
  font-size: 8px;
}

.toolhub-preview iframe {
  display: block;
  width: 100%;
  height: min(720px, 72vh);
  min-height: 540px;
  background: var(--cream);
  border: 0;
}

.section-pad {
  padding-right: var(--pad);
  padding-left: var(--pad);
}

.projects {
  padding-top: 120px;
  padding-bottom: 150px;
}

.section-label {
  display: flex;
  justify-content: space-between;
  padding-bottom: 18px;
  color: var(--cobalt);
  border-bottom: 1px solid var(--line);
}

.projects-heading {
  display: grid;
  grid-template-columns: 1.6fr 0.7fr;
  gap: 60px;
  align-items: end;
  padding: 70px 0 88px;
}

.projects-heading h2,
.experience h2,
.stack h2,
.closing h2 {
  margin: 0;
  font-size: 4.8rem;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0;
}

.projects-heading p {
  max-width: 360px;
  margin: 0 0 8px;
  color: #4b6e66;
  font-size: 15px;
  line-height: 1.8;
}

.project-console {
  display: grid;
  grid-template-columns: minmax(290px, 0.72fr) minmax(0, 1.8fr);
  border: 1px solid var(--deep);
}

.project-tabs {
  display: flex;
  flex-direction: column;
  background: var(--mint);
  border-right: 1px solid var(--deep);
}

.project-tab {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 8px 14px;
  min-height: 120px;
  align-content: center;
  padding: 20px 24px;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(23, 61, 54, 0.34);
  cursor: pointer;
  transition: color 220ms ease, background 220ms ease;
}

.project-tab:last-child {
  border-bottom: 0;
}

.project-tab > span {
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.06em;
}

.project-tab > span:last-child {
  grid-column: 2;
  color: #52736c;
}

.project-tab strong {
  font-size: 16px;
  font-weight: 700;
}

.project-tab:hover,
.project-tab.is-active {
  color: var(--cream);
  background: var(--cobalt);
}

.project-tab:hover > span:last-child,
.project-tab.is-active > span:last-child {
  color: var(--sun);
}

.project-panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
  background: var(--cream);
}

.project-photo-wrap {
  position: relative;
  height: 460px;
  flex: none;
  overflow: hidden;
  background: var(--cobalt);
}

.project-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.15) contrast(1.03);
  transition: opacity 180ms ease, transform 700ms cubic-bezier(0.2, 0.7, 0, 1);
}

.project-photo.is-switching {
  opacity: 0;
  transform: scale(1.03);
}

.project-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 10px 12px;
  color: var(--deep);
  background: var(--sun);
}

.project-detail {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 38px;
  padding: 36px;
}

.project-id {
  color: var(--coral);
}

.project-detail h3 {
  margin: 12px 0 0;
  font-size: 28px;
  font-weight: 700;
}

.project-description {
  margin: 0;
  color: #4b6e66;
  font-size: 14px;
  line-height: 1.8;
}

.project-tags {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-live-link {
  grid-column: 1 / -1;
  display: flex;
  width: 180px;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  color: var(--cream);
  background: var(--cobalt);
  font-size: 12px;
  font-weight: 700;
  transition: color 220ms ease, background 220ms ease, transform 220ms ease;
}

.project-live-link[hidden] {
  display: none;
}

.project-live-link:hover {
  color: var(--deep);
  background: var(--sun);
  transform: translateY(-3px);
}

.project-tags span {
  padding: 7px 10px;
  color: var(--cobalt);
  background: var(--sky);
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  font-weight: 600;
}

.experience {
  color: var(--cream);
  background: var(--cobalt);
}

.experience-intro {
  padding-top: 110px;
  padding-bottom: 100px;
}

.experience .section-label {
  color: var(--sun);
  border-color: rgba(244, 236, 217, 0.28);
}

.experience h2 {
  margin-top: 70px;
}

.career-list {
  border-top: 1px solid rgba(244, 236, 217, 0.42);
}

.career-row {
  display: grid;
  grid-template-columns: 80px minmax(320px, 1fr) 130px 190px;
  gap: 30px;
  align-items: center;
  min-height: 150px;
  padding: 28px var(--pad);
  border-bottom: 1px solid rgba(244, 236, 217, 0.42);
  transition: color 260ms ease, background 260ms ease;
}

.career-row:hover {
  color: var(--deep);
  background: var(--sun);
}

.career-index {
  color: var(--sun);
}

.career-row:hover .career-index {
  color: var(--coral);
}

.career-company h3 {
  margin: 0 0 10px;
  font-size: 28px;
  font-weight: 600;
}

.career-company p {
  margin: 0;
  color: rgba(244, 236, 217, 0.65);
  font-size: 13px;
}

.career-row:hover .career-company p {
  color: #4b6e66;
}

.career-location,
.career-date {
  justify-self: end;
}

.education-row {
  color: var(--deep);
  background: var(--mint);
}

.education-row .career-company p {
  color: #4b6e66;
}

.stack {
  padding-top: 120px;
  padding-bottom: 150px;
  background: var(--mint);
}

.capability-route {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 72px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--deep);
}

.capability-route li {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 112px;
  flex-direction: column;
  justify-content: flex-end;
  gap: 9px;
  padding: 28px 28px 22px 0;
}

.capability-route li::before {
  position: absolute;
  top: -7px;
  left: 0;
  width: 13px;
  height: 13px;
  background: var(--coral);
  border: 3px solid var(--mint);
  border-radius: 50%;
  content: "";
}

.capability-route li:not(:last-child)::after {
  position: absolute;
  right: 18px;
  bottom: 28px;
  color: var(--cobalt);
  content: "→";
  font-family: "IBM Plex Mono", monospace;
  font-size: 18px;
}

.capability-route span {
  color: var(--coral);
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  font-weight: 600;
}

.capability-route strong {
  min-width: 0;
  padding-right: 24px;
  font-size: 17px;
  font-weight: 700;
}

.stack-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 90px;
  margin-top: 80px;
}

.stack h2 {
  font-size: 4rem;
}

.stack-table {
  border-top: 1px solid var(--deep);
}

.stack-row {
  display: grid;
  grid-template-columns: 48px minmax(150px, 0.7fr) 1fr;
  gap: 24px;
  align-items: baseline;
  padding: 31px 0;
  border-bottom: 1px solid var(--deep);
}

.stack-row > span {
  color: var(--coral);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  font-weight: 600;
}

.stack-row h3 {
  margin: 0;
  font-size: 21px;
  font-weight: 700;
}

.stack-row p {
  margin: 0;
  color: #4b6e66;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  line-height: 1.7;
}

.closing {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 110px var(--pad) 0;
  color: var(--cream);
  background: var(--deep);
}

.closing-grid {
  position: absolute;
  inset: 0;
  opacity: 0.14;
}

.closing-label {
  color: var(--sun);
}

.closing h2 {
  position: relative;
  margin-top: 76px;
  font-size: 6.4rem;
}

.mail-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 100px;
  padding: 34px 0;
  color: var(--deep);
  background: var(--sun);
  box-shadow: 0 0 0 100vmax var(--sun);
  clip-path: inset(0 -100vmax);
  font-family: "Manrope", sans-serif;
  font-size: 3rem;
  font-weight: 800;
  transition: color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.mail-link:hover {
  color: var(--cream);
  background: var(--coral);
  box-shadow: 0 0 0 100vmax var(--coral);
}

.mail-link span:last-child {
  font-size: 4rem;
  line-height: 1;
}

footer {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 108px;
  color: rgba(244, 236, 217, 0.65);
}

footer span:nth-child(2) {
  color: var(--mint);
}

footer a {
  justify-self: end;
  color: var(--cream);
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.7, 0, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 9px rgba(189, 243, 200, 0); }
  100% { box-shadow: 0 0 0 0 rgba(189, 243, 200, 0); }
}

@keyframes hero-enter {
  from { transform: scale(1.12); }
  to { transform: scale(1.04); }
}

@keyframes product-pulse {
  70% { box-shadow: 0 0 0 9px rgba(47, 207, 115, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 207, 115, 0); }
}

@media (max-width: 1050px) {
  :root { --pad: 30px; }

  .hero h1 { font-size: 6rem; }
  .metric-value { font-size: 4rem; }
  .toolhub h2 { font-size: 4.7rem; }
  .projects-heading h2,
  .experience h2,
  .stack h2 { font-size: 3.8rem; }
  .career-row { grid-template-columns: 60px minmax(280px, 1fr) 100px 165px; }
  .career-company h3 { font-size: 23px; }
  .project-photo-wrap { height: 420px; }
}

@media (max-width: 800px) {
  :root { --pad: 20px; }

  .pointer { display: none; }
  .topbar { grid-template-columns: 1fr auto; min-height: 70px; }
  .desktop-nav,
  .topbar-status { display: none; }

  .menu-button {
    position: relative;
    z-index: 62;
    display: grid;
    width: 44px;
    height: 44px;
    place-content: center;
    gap: 7px;
    padding: 0;
    color: var(--cream);
    background: transparent;
    border: 0;
  }

  .menu-button span {
    display: block;
    width: 23px;
    height: 2px;
    background: currentColor;
    transition: transform 220ms ease;
  }

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

  .mobile-menu {
    position: fixed;
    z-index: 60;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: var(--pad);
    color: var(--cream);
    background: var(--coral);
    font-size: 3.8rem;
    font-weight: 800;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-14px);
    transition: opacity 240ms ease, transform 240ms ease, visibility 240ms;
  }

  .mobile-menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .hero-main { min-height: 91svh; padding: 130px 18% 90px var(--pad); }
  .hero h1 { font-size: 4.5rem; }
  .hero-side { top: 70px; width: 14%; min-width: 62px; }
  .hero-footer { grid-template-columns: 1fr 1fr; padding-right: 17%; }
  .hero-footer span:nth-child(2) { display: none; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metric { min-height: 220px; border-bottom: 1px solid rgba(23, 61, 54, 0.35); }
  .toolhub-copy { padding-top: 90px; padding-bottom: 80px; }
  .toolhub-heading { grid-template-columns: 1fr; padding: 58px 0 65px; }
  .toolhub h2 { font-size: 4.2rem; }
  .toolhub-intro { max-width: 520px; }
  .toolhub-preview { margin-bottom: 105px; box-shadow: 12px 12px 0 var(--sun); }
  .toolhub-preview iframe { height: 620px; min-height: 0; }
  .projects { padding-top: 90px; padding-bottom: 100px; }
  .projects-heading { grid-template-columns: 1fr; padding: 55px 0 65px; }
  .projects-heading h2,
  .experience h2,
  .stack h2 { font-size: 3.4rem; }
  .project-console { grid-template-columns: 1fr; }
  .project-tabs { display: grid; grid-template-columns: repeat(2, 1fr); border-right: 0; border-bottom: 1px solid var(--deep); }
  .project-tab { min-height: 105px; border-right: 1px solid rgba(23, 61, 54, 0.34); }
  .project-photo-wrap { height: 390px; }
  .project-detail { grid-template-columns: 1fr; }
  .project-tags { grid-column: 1; }
  .career-row { grid-template-columns: 44px 1fr auto; gap: 20px; }
  .career-date { grid-column: 2; justify-self: start; }
  .career-location { grid-column: 3; grid-row: 1 / span 2; }
  .stack-layout { grid-template-columns: 1fr; gap: 65px; }
  .closing h2 { font-size: 4.8rem; }
  .mail-link { font-size: 2rem; }
}

@media (max-width: 520px) {
  .hero-main { padding-right: 16%; padding-bottom: 80px; }
  .hero h1 { font-size: 3.5rem; line-height: 1; }
  .outline-text { font-size: 0.58em; -webkit-text-stroke-width: 1px; }
  .hero-statement { align-items: flex-start; flex-direction: column; margin-top: 34px; }
  .hero-statement p { font-size: 15px; }
  .hero-action { width: 138px; height: 50px; }
  .hero-footer { padding-right: 18%; }
  .hero-footer span:last-child { display: none; }
  .hero-footer { grid-template-columns: 1fr; }
  .metric { min-height: 185px; padding: 22px; }
  .metric-value { font-size: 3rem; }
  .metric-note p { font-size: 16px; }
  .toolhub h2 { font-size: 3.2rem; }
  .toolhub-features { grid-template-columns: 1fr; }
  .toolhub-features > a,
  .toolhub-features > a:nth-child(3n),
  .toolhub-features > a:nth-child(n + 4) {
    min-height: 130px;
    padding: 22px 18px;
    border-right: 0;
    border-bottom: 1px solid var(--deep);
  }
  .toolhub-features > a:last-child { border-bottom: 0; }
  .toolhub-preview { margin-right: 12px; margin-left: 0; border-left: 0; }
  .toolhub-preview iframe { height: 520px; }
  .projects-heading h2,
  .experience h2,
  .stack h2 { font-size: 2.7rem; }
  .section-label span:last-child { display: none; }
  .project-tabs { display: flex; overflow-x: auto; flex-direction: row; }
  .project-tab { min-width: 230px; border-bottom: 0; }
  .project-photo-wrap { height: auto; aspect-ratio: 4 / 3; }
  .project-detail { padding: 24px; }
  .career-row { grid-template-columns: 32px 1fr; min-height: 180px; padding-top: 26px; padding-bottom: 26px; }
  .career-location { grid-column: 2; grid-row: auto; justify-self: start; }
  .career-date { grid-column: 2; }
  .career-company h3 { font-size: 20px; }
  .stack-row { grid-template-columns: 32px 1fr; }
  .stack-row p { grid-column: 2; }
  .capability-route {
    grid-template-columns: 1fr;
    margin-top: 56px;
    border-top: 0;
    border-left: 1px solid var(--deep);
  }
  .capability-route li {
    min-height: 78px;
    justify-content: center;
    padding: 12px 20px 12px 30px;
  }
  .capability-route li::before {
    top: 50%;
    left: -7px;
    transform: translateY(-50%);
  }
  .capability-route li:not(:last-child)::after {
    right: auto;
    bottom: -6px;
    left: 26px;
    content: "↓";
  }
  .closing { padding-top: 85px; }
  .closing h2 { margin-top: 55px; font-size: 3.6rem; }
  .mail-link { margin-top: 75px; font-size: 1.25rem; }
  .mail-link span:last-child { font-size: 2.4rem; }
  footer { grid-template-columns: 1fr auto; font-size: 9px; }
  footer span:nth-child(2) { display: none; }
}

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